(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-76626602","chunk-5f16e7ae","chunk-9661a21c","chunk-7c23564f"],{"0144":function(t,e,a){"use strict";a.d(e,"a",(function(){return o})),a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return s}));var n=a("5530"),i=(a("d81d"),a("4de4"),a("d3b7"),a("4fad"),a("ac1f"),a("5319"),a("5b81"),a("b680"),a("159b"),a("25ca")),o=function(t,e){var a=i["a"].table_to_book(t),n=a.Sheets["Sheet1"],o=Object.entries(n).filter((function(t){return t[0].indexOf("!")<0})).map((function(t){try{"s"===t[1]["t"]&&t[1]["v"].indexOf("chendPercent")>-1&&(t[1]["v"].indexOf("%")>-1?(t[1]["t"]="s",t[1]["v"]=t[1]["v"].replaceAll("chendPercent","")):(t[1]["t"]="n",t[1]["v"]=t[1]["v"].replaceAll("chendPercent",""),t[1]["v"]=t[1]["v"].replaceAll(",",""),t[1]["v"]=parseFloat(parseFloat(t[1]["v"]).toFixed(2))))}catch(e){console.warn(e)}return t[0]}));n["!cols"]=o.map((function(t){return{wpx:100}})),console.log(n,"dddddddd"),Object(i["b"])(a,"".concat(e,".xlsx"))},r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={isFirstLineTH:!0,fileName:"myFile"},n=Object.assign({},a,e),i=document.createElement("table"),o=document.createElement("thead"),r=document.createElement("tbody"),s=document.createDocumentFragment();t.forEach((function(t,e){var a=document.createElement("tr"),i=n.isFirstLineTH&&0===e;t.forEach((function(t){var e=i?document.createElement("th"):document.createElement("td");a.className="cell",e.innerText=t,a.appendChild(e)})),i?o.appendChild(a):r.appendChild(a)})),s.appendChild(o),s.appendChild(r),i.appendChild(s),l(i,n.fileName)},s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={isFirstLineTH:!0,fileName:"myFile"},n=Object.assign({},a,e),i=[];t.forEach((function(t){var e=document.createElement("table"),a=document.createElement("thead"),o=document.createElement("tbody"),r=document.createDocumentFragment();t.forEach((function(t,e){var i=document.createElement("tr"),r=n.isFirstLineTH&&0===e;t.forEach((function(t){var e=r?document.createElement("th"):document.createElement("td");i.className="cell",e.innerText=t,i.appendChild(e)})),r?a.appendChild(i):o.appendChild(i)})),r.appendChild(a),r.appendChild(o),e.appendChild(r),i.push(e)})),c(i,n.fileName)},l=function(t,e){var a={worksheet:e||"Worksheet",table:t.innerHTML},i="data:application/vnd.ms-excel;base64,",o='\n    <html xmlns:o="urn:schemas-microsoft-com:office:office"\n      xmlns:x="urn:schemas-microsoft-com:office:excel"\n      xmlns="http://www.w3.org/TR/REC-html40">\n      <head>\n        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n        \x3c!--[if gte mso 9]>\n        <xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook>\n        </xml>\n        <![endif]--\x3e\n      </head>\n      <body>\n        <style>table thead th{background:#33CCCC}table thead th .cell{line-height:2} table caption p{font-size:20px;font-weight:bold;line-height:2}\n        </style>\n        <table border="1"><caption><p>{name}</p></caption>{table}\n        </table>\n      </body>\n    </html>',r=function(t){return window.btoa(unescape(encodeURIComponent(t)))},s=function(t,e){return t.replace(/{(\w+)}/g,(function(t,a){return e[a]}))},l=document.createElement("a");l.href=i+r(s(o,Object(n["a"])({name:e},a))),l.download="".concat(e,".xls"),document.body.appendChild(l),l.click(),document.body.removeChild(l)},c=function(t,e){if(t&&t.length){for(var a=t[0],i={worksheet:e||"Worksheet",table:a.innerHTML},o="data:application/vnd.ms-excel;base64,",r='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e</head><body><style>table thead th{background:#33CCCC}table thead th .cell{line-height:2} table caption p{font-size:20px;font-weight:bold;line-height:2}</style><table border="1"><caption><p>{name}</p></caption>{table}</table>{tableExt}</body></html>',s=function(t){return window.btoa(unescape(encodeURIComponent(t)))},l=function(t,e){return t.replace(/{(\w+)}/g,(function(t,a){return e[a]}))},c="",u='<table border="1">{item}</table>',d=1;d<t.length;d++){var h=t[d];c+=l(u,{item:h.innerHTML})}var p=document.createElement("a");p.href=o+s(l(r,Object(n["a"])({name:e,tableExt:c},i))),p.download="".concat(e,".xls"),document.body.appendChild(p),p.click(),document.body.removeChild(p)}}},"015e":function(t,e,a){},"01bd":function(t,e,a){"use strict";a("e06e")},"0243":function(t,e,a){"use strict";a("d881")},"0487":function(t,e,a){},"05c3":function(t,e,a){},"06c7":function(t,e,a){"use strict";var n=a("6d8b"),i=a("6a2f"),o=a("b682"),r=a("b1d4"),s=a("e0d3"),l=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,a){n["w"](t)&&(a=e,e=t,t=null),t=t||{},n["C"](t)&&(t={order:t});var i,o=t.order||"preorder",r=this[t.attr||"children"];"preorder"===o&&(i=e.call(a,this));for(var s=0;!i&&s<r.length;s++)r[s].eachNode(t,e,a);"postorder"===o&&e.call(a,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(t+1),n.height>e&&(e=n.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].getNodeById(t);if(i)return i}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].contains(t);if(i)return i}},t.prototype.getAncestors=function(t){var e=[],a=t?this:this.parentNode;while(a)e.push(a),a=a.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){var t=[],e=this;while(e)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),c=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,a){this.root.eachNode(t,e,a)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,a=0,n=e.length;a<n;a++)e[a].dataIndex=-1;for(a=0,n=t.count();a<n;a++)e[t.getRawIndex(a)].dataIndex=a},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,a,c){var d=new t(a),h=[],p=1;function f(t,e){var a=t.value;p=Math.max(p,n["t"](a)?a.length:1),h.push(t);var i=new l(Object(s["e"])(t.name,""),d);e?u(i,e):d.root=i,d._nodes.push(i);var o=t.children;if(o)for(var r=0;r<o.length;r++)f(o[r],i)}f(e),d.root.updateDepthAndHeight(0);var m=Object(r["a"])(h,{coordDimensions:["value"],dimensionsCount:p}).dimensions,g=new o["a"](m,a);return g.initData(h),c&&c(g),Object(i["a"])({mainData:g,struct:d,structAttr:"tree"}),d.update(),d},t}();function u(t,e){var a=e.children;t.parentNode!==e&&(a.push(t),t.parentNode=e)}e["a"]=c},"076a":function(t,e,a){},"079b":function(t,e,a){"use strict";a("78eb")},"0b6e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"das-model-margin_bottom"},[n("b-row",[n("b-col",[t.products.length>1?n("div",{staticClass:"imgInfoWrapPop"},[n("span",{staticClass:"productsCount"},[t._v(" "+t._s(t.$t("_COMMON_BUTTON_SELECT_PRODUCT",{num:t.products.length}))+" ")]),t.showAwait?n("swiper",{ref:"swiperMeEditCostDialog",staticClass:"imgInfoContentWrap",attrs:{"auto-destroy":!0,"delete-instance-on-destroy":!0,"cleanup-styles-on-destroy":!0,options:t.swiperOptions}},t._l(t.products,(function(e,a){return n("swiper-slide",{key:e.sku+e.asin+e.parentAsin,staticClass:"imgInfoBlockWrap"},[n("div",{staticClass:"imgInfoBlock"},[n("feather-icon",{staticClass:"XCircleIconStyle",attrs:{icon:"XCircleIcon",size:"16"},on:{click:function(e){return t.deleteProducts(a,t.products)}}}),n("div",{attrs:{id:e.sku+e.asin+e.parentAsin}},[n("img",{staticClass:"productImg",attrs:{src:e.imageUrl,alt:""}}),n("span",{staticClass:"productInfo"},[t._v(" "+t._s(e.sku)+" ")])])],1)])})),1):t._e(),n("i",{staticClass:"leftBtn d-flex align-items-center justify-content-center",attrs:{slot:"button-next"},slot:"button-next"},[n("feather-icon",{attrs:{icon:"ChevronLeftIcon",size:"30"}})],1),n("i",{staticClass:"rightBtn d-flex align-items-center justify-content-center",attrs:{slot:"button-prev"},slot:"button-prev"},[n("feather-icon",{attrs:{icon:"ChevronRightIcon",size:"30"}})],1)],1):t.products[0]?n("product-info",{staticClass:"productInfoContentDiyWrap",attrs:{info:Object.assign({},t.products[0],{image:t.products[0].imageUrl})}}):t._e()],1)],1),n("div",{staticClass:"d-flex align-items-center"},[n("span",[t._v(t._s(t.$t("_SALES_ANALYSIS_ITEM_CURRENCY")))]),n("currency-select",{ref:"currencyRate",staticStyle:{width:"242px","margin-left":"16px"},attrs:{isShowAlert:!0,currency:t.symbol,currencyCode:t.CURRENCY_CODE,selectProps:{size:"mini"}},on:{change:function(e){t.isGoChange=!0},"symbol-change":t.symbolChange,currency:t.setSymbol}}),n("tip-info",{staticClass:"tipInfoRed das-label-left",attrs:{infoType:"AlertTriangleIcon",isRight:"",lokkey:"cost_center_edit_tip3"}})],1),n("div",{staticClass:"editCostDialogTabsWrap"},[n("b-tabs",{model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[n("b-tab",{attrs:{title:t.$t("_SALES_ANALYSIS_MULTI_COST_DEFAULT")}},[n("div",{staticClass:"das-ui defaul-cost-wrap"},[n("div",{staticClass:"tipInfoStyleWrap das-table-padding_left das-table-padding_right"},[n("feather-icon",{attrs:{icon:"InfoIcon",size:"16"}}),n("over-limit-show",{staticStyle:{"max-width":"100%","padding-left":"24px","margin-left":"-24px"},attrs:{showLable:t.$t("cost_center_edit_instr_default_cost")},on:{click:t.goUrl}})],1),n("div",{staticClass:"setting-block-wrap"},[n("b-row",[n("b-col",[n("common-search-form",{attrs:{formId:"customCostEdit",options:t.defaultCostOptions},model:{value:t.defaultCost,callback:function(e){t.defaultCost=e},expression:"defaultCost"}})],1)],1),n("b-row",{staticStyle:{"margin-top":"4px"}},[n("b-col",{staticClass:"d-flex flex-direction--column"},[n("lok",{attrs:{"lok-key":"_COMMON_CURRENCY_RATE_SET"}}),n("div",{staticClass:"das-table-margin_top d-flex flex-column grid-gap-8"},[n("div",{staticClass:"formGroupBlock",staticStyle:{"margin-top":"5px"}},[n("b-form-radio",{attrs:{value:"realTime"},model:{value:t.defaultCost.rateType,callback:function(e){t.$set(t.defaultCost,"rateType",e)},expression:"defaultCost.rateType"}},[t._v(" "+t._s(t.$t("_COMMON_REAL_TIME_CURRENCY_RATE"))+" : "),n("span",[t._v(" 1 "+t._s(t.CURRENCY_CODE)+" = "+t._s(t.realTimeRate&&t.realTimeRate.toFixed(4))+" "+t._s(t.symbol))])])],1),n("div",{staticClass:"formGroupBlock"},[n("b-form-radio",{attrs:{disabled:t.symbol===t.CURRENCY_CODE,value:"static"},model:{value:t.defaultCost.rateType,callback:function(e){t.$set(t.defaultCost,"rateType",e)},expression:"defaultCost.rateType"}},[n("div",{staticClass:"d-flex align-items-center justify-content-start"},[t._v(" "+t._s(t.$t("_COMMON_STATIC_CURRENCY_RATE"))+" : "),n("span",[t._v(" 1 "+t._s(t.CURRENCY_CODE)+" = ")])])]),n("div",{staticClass:"d-flex align-items-center justify-content-center"},[n("b-form-input",{staticStyle:{width:"100px",margin:"0 10px"},attrs:{disabled:"static"!==t.defaultCost.rateType,id:"exchangeRate",type:"number"},on:{blur:function(e){return e.stopPropagation(),t.blurFn(t.defaultCost)}},model:{value:t.defaultCost.exchangeRate,callback:function(e){t.$set(t.defaultCost,"exchangeRate",e)},expression:"defaultCost.exchangeRate"}}),n("span",[t._v(t._s(t.symbol))])],1)],1)])],1)],1)],1),n("div",{staticClass:"d-flex justify-content-flex-end align-items-center"},[n("button",{staticClass:"das-ui-button_ok das-table-margin_bottom das-table-margin_top das-table-margin_right",attrs:{disabled:t.invalidDefaultInput,"data-lokalise":"","data-key":"_DIALOG_SAVE"},on:{click:t.saveDefault}},[t._v(" "+t._s(t.$t("_DIALOG_SAVE"))+" ")])])])]),n("b-tab",{attrs:{title:t.$t("_SALES_ANALYSIS_MULTI_COST_HISTORY")}},[n("div",{staticClass:"das-ui defaul-cost-wrap historyBlockWrap"},[n("div",{staticClass:"das-table-padding_left das-table-padding_right das-table-margin_bottom d-flex align-items-center"},[n("button",{staticClass:"das-ui-button_ok das-table-margin_right flex-shrink-0",attrs:{"data-lokalise":"","data-key":"_SALES_ANALYSIS_MULTI_COST_ADD"},on:{click:t.addTime}},[n("feather-icon",{staticStyle:{"margin-top":"-2px"},attrs:{icon:"PlusIcon",size:"14"}}),t._v(" "+t._s(t.$t("_SALES_ANALYSIS_MULTI_COST_ADD"))+" ")],1),n("span",{staticClass:"tipInfoStyleWrap",staticStyle:{"flex-grow":"1",overflow:"hidden"}},[n("feather-icon",{attrs:{icon:"InfoIcon",size:"16"}}),n("over-limit-show",{key:"lock_exchange_rate_dates"+t.tab,staticStyle:{width:"100%"},attrs:{showLable:t.$t("_SALES_ANALYSIS_MULTI_COST_HISTORY")+t.$t("ae_profanity")+t.$t("lock_exchange_rate_dates")},on:{click:t.goUrl}})],1)]),n("common-table",{key:t.addTimeKey,attrs:{tableId:"success_paste_pane_table",options:t.tableOptions,tableData:t.costLogs},scopedSlots:t._u([{key:"cell(empty)",fn:function(){return[n("div",{staticClass:"noneDataWrap",staticStyle:{"margin-top":"20px"}},[n("img",{attrs:{src:a("3281")}}),n("div",{staticClass:"fs14 mt-2"},[t._v(t._s(t.$t("cost_center_edit_empty_tip")))]),n("button",{staticClass:"\n                    das-ui-button_ok\n                    das-block-margin_top\n                    das-table-margin_right\n                    das-table-margin_left",attrs:{disabled:!t.addAvailable,"data-lokalise":"","data-key":"_SALES_ANALYSIS_MULTI_COST_ADD"},on:{click:t.addTime}},[n("feather-icon",{staticStyle:{"margin-top":"-2px"},attrs:{icon:"PlusIcon",size:"14"}}),t._v(" "+t._s(t.$t("_SALES_ANALYSIS_MULTI_COST_ADD"))+" ")],1)])]},proxy:!0},{key:"cell(operationBtn)",fn:function(e){return[n("button",{staticClass:"das-ui-button-link",on:{click:function(a){return t.deleteDuration(e.data.index)}}},[t._v(t._s(t.$t("_COMMON_ACTION_DELETE")))])]}},{key:"head(date)",fn:function(){return[n("span",{staticClass:"tipInfoRed"},[t._v("*")]),t._v(t._s(t.$t("_TREND_IMPORT_REPORT_LABEL_DATE"))+" "),n("tip-info",{staticClass:"tipInfoGray",attrs:{lokkey:"cost_center_edit_instr_date"}})]},proxy:!0},{key:"head(purchasePrice)",fn:function(){return[n("span",{staticClass:"tipInfoRed"},[t._v("*")]),t._v(t._s(t.$t("_SALES_ANALYSIS_ITEM_PRICE"))),n("span",{staticClass:"headSmallTipWrap"},[t._v("("+t._s(t.CURRENCY_OBJ[t.symbol])+")")])]},proxy:!0},{key:"head(logisticsExpenses)",fn:function(){return[n("span",{staticClass:"tipInfoRed"},[t._v("*")]),t._v(t._s(t.$t("_SALES_ANALYSIS_ITEM_SHIP"))),n("span",{staticClass:"headSmallTipWrap"},[t._v("("+t._s(t.CURRENCY_OBJ[t.symbol])+")")])]},proxy:!0},{key:"cell(date)",fn:function(e){return[n("common-search-form",{ref:"customCostEdit"+e.data.field.key+e.data.index,attrs:{formId:"customCostEdit"+e.data.field.key+e.data.index,options:t.itemDateOptions},on:{changeModel:function(a){return t.searchFn(e.data.item)},event:function(a){return t.eventFn(a,e.data.item)}},model:{value:e.data.item.searchModel,callback:function(a){t.$set(e.data.item,"searchModel",a)},expression:"data.data.item.searchModel"}})]}},{key:"cell(purchasePrice)",fn:function(e){return[n("common-search-form",{ref:"customCostEdit"+e.data.field.key+e.data.index,attrs:{formId:"customCostEdit"+e.data.field.key+e.data.index,options:t.itemPurchasePriceOptions},on:{changeModel:function(a){return t.searchFn(e.data.item)},event:function(a){return t.eventFn(a,e.data.item)}},model:{value:e.data.item.searchModel,callback:function(a){t.$set(e.data.item,"searchModel",a)},expression:"data.data.item.searchModel"}})]}},{key:"cell(logisticsExpenses)",fn:function(e){return[n("common-search-form",{ref:"customCostEdit"+e.data.field.key+e.data.index,staticClass:"customCostEditLogisticsExpenses",attrs:{formId:"customCostEdit"+e.data.field.key+e.data.index,options:t.itemLogisticsExpensesOptions},on:{changeModel:function(a){return t.searchFn(e.data.item)},event:function(a){return t.eventFn(a,e.data.item)}},scopedSlots:t._u([{key:"calculator",fn:function(){return[n("div",{staticClass:"d-flex align-items-center das-label-left"},[n("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.noninteractive",value:{trigger:"hover",boundary:"viewport",placement:"top",title:e.data.item.startDate&&e.data.item.endDate?"":t.$t("cost_center_edit_tip2")},expression:"{\n                      trigger: 'hover',\n                      boundary: 'viewport',\n                      placement: 'top',\n                      title: (data.data.item.startDate && data.data.item.endDate) ? '' : $t('cost_center_edit_tip2')\n                    }",modifiers:{noninteractive:!0}}]},[n("button",{staticClass:"das-ui-button-link-new d-flex align-items-center grid-gap-4",staticStyle:{height:"30px","line-height":"30px","margin-top":"2px"},attrs:{disabled:!e.data.item.startDate&&!e.data.item.endDate},on:{click:function(a){return t.getCalculatorInfo(e.data.item)}}},[e.data.item.startDate||e.data.item.endDate?n("img",{attrs:{src:a("b76ab"),alt:""}}):n("img",{attrs:{src:a("74d6"),alt:""}}),t._v(" "+t._s(t.$t("cost_center_edit_calculator"))+" ")])]),n("tip-info",{staticClass:"tipInfoGray",staticStyle:{"margin-top":"3px"},attrs:{lokkey:"cost_center_edit_instr_calculator"}})],1)]},proxy:!0}],null,!0),model:{value:e.data.item.searchModel,callback:function(a){t.$set(e.data.item,"searchModel",a)},expression:"data.data.item.searchModel"}})]}},{key:"cell(rateType)",fn:function(e){return[n("div",{staticClass:"d-flex flex-column"},[n("div",{staticClass:"formGroupBlock"},[n("b-form-radio",{attrs:{value:"realTime"},model:{value:e.data.item.rateType,callback:function(a){t.$set(e.data.item,"rateType",a)},expression:"data.data.item.rateType"}},[t._v(" "+t._s(t.$t("_COMMON_REAL_TIME_CURRENCY_RATE"))+" : "),n("span",[t._v(" 1 "+t._s(t.CURRENCY_CODE)+" = "+t._s(t.realTimeRate&&t.realTimeRate.toFixed(4))+" "+t._s(t.symbol))])])],1),n("div",{staticClass:"formGroupBlock"},[n("b-form-radio",{attrs:{disabled:t.symbol===t.CURRENCY_CODE,value:"static"},model:{value:e.data.item.rateType,callback:function(a){t.$set(e.data.item,"rateType",a)},expression:"data.data.item.rateType"}},[n("div",{staticClass:"d-flex align-items-center justify-content-start"},[t._v(" "+t._s(t.$t("_COMMON_STATIC_CURRENCY_RATE"))+" : "),n("span",[t._v(" 1 "+t._s(t.CURRENCY_CODE)+" = ")])])]),n("div",{staticClass:"d-flex align-items-center justify-content-center"},[n("b-form-input",{staticStyle:{width:"100px",margin:"0 10px"},attrs:{disabled:"static"!==e.data.item.rateType,id:"exchangeRate",type:"number"},on:{blur:function(e){return e.stopPropagation(),t.blurFn(t.item)}},model:{value:e.data.item.exchangeRate,callback:function(a){t.$set(e.data.item,"exchangeRate",a)},expression:"data.data.item.exchangeRate"}}),n("span",[t._v(t._s(t.symbol))])],1)],1)])]}}])}),n("div",{staticClass:"d-flex justify-content-flex-end align-items-center"},[n("button",{staticClass:"das-ui-button_ok das-table-margin_bottom das-table-margin_top das-table-margin_right",attrs:{"data-lokalise":"","data-key":"_DIALOG_SAVE"},on:{click:t.saveLogs}},[t._v(" "+t._s(t.$t("_DIALOG_SAVE"))+" ")])])],1)]),t.isSku?n("b-tab",{attrs:{title:t.$t("_SALES_ANALYSIS_COST_EDIT_LOG_COST_LOG")}},[n("cost-edit-log",{attrs:{products:t.products}})],1):t._e()],1)],1),n("custom-modal",{attrs:{noMargin:"",hideClose:"",modalClass:"normal-modal","hide-footer":"",visible:t.showEnsureVis,width:500},on:{hidden:function(e){t.showEnsureVis=!1}}},[n("div",{staticClass:"showEnsureEditWrap"},[n("img",{attrs:{src:"/images/icon/warning_icon.png"}}),n("div",{staticClass:"showEnsureEditContentWrap"},[t.isChangeSys?n("div",{staticClass:"showEnsureEditTitle",staticStyle:{color:"red"}},[n("span",{domProps:{innerHTML:t._s(t.$t("cost_center_edit_save_currency_tip"))}})]):t._e(),1===t.tab?n("div",{staticClass:"showEnsureEditTitle"},[n("span",{domProps:{innerHTML:t._s(t.$t("cost_center_edit_save_tip"))}})]):t._e(),0!==t.tab||t.isChangeSys?t._e():n("div",{staticClass:"showEnsureEditTitle"},[n("span",{domProps:{innerHTML:t._s(t.$t("cost_center_edit_default_cost_save_tip"))}})]),n("div",{staticClass:"das-table-margin_bottom"},[t._v(t._s(t.$t("_SALES_ANALYSIS_NOTE"))+t._s(t.$t("ae_profanity")))]),1===t.tab?n("div",{staticClass:"editCostRemarkStyle"},[n("b-form-textarea",{staticClass:"editCostRemarkTextStyle",attrs:{maxlength:"200","no-resize":"",placeholder:t.$t("cost_center_edit_tip4")},model:{value:t.historyRemark,callback:function(e){t.historyRemark=e},expression:"historyRemark"}}),n("span",{staticClass:"limitCount"},[t._v(t._s(t.historyRemark?t.historyRemark.length:0)+"/200")])],1):t._e(),0===t.tab?n("div",{staticClass:"editCostRemarkStyle"},[n("b-form-textarea",{staticClass:"editCostRemarkTextStyle",attrs:{maxlength:"200","no-resize":"",placeholder:t.$t("cost_center_edit_tip4")},model:{value:t.defaultCost.remark,callback:function(e){t.$set(t.defaultCost,"remark",e)},expression:"defaultCost.remark"}}),n("span",{staticClass:"limitCount"},[t._v(t._s(t.defaultCost.remark?t.defaultCost.remark.length:0)+"/200")])],1):t._e()]),n("div",{staticClass:"btnDialogWrap",staticStyle:{"margin-right":"0"}},[n("lok",{staticClass:"das-ui-button_cancel das-ui-button_30",attrs:{"lok-key":"_COMMON_BUTTON_CANCEL","tag-name":"button"},on:{click:function(e){t.showEnsureVis=!1}}}),n("lok",{staticClass:"das-ui-button_ok das-ui-button_30",attrs:{"lok-key":"_SALES_ANALYSIS_OK","tag-name":"button"},on:{click:t.ensureFn}})],1)])]),t.hideFooter?t._e():n("div",{staticClass:"btnFooterWrap",staticStyle:{"padding-bottom":"0"}},[n("b-button",{attrs:{size:"sm",variant:"outline-secondary"},on:{click:t.closeFn}},[n("lok",{attrs:{"lok-key":"_DIALOG_BUTTON_NO"}})],1),n("b-button",{attrs:{size:"sm",variant:"primary"},on:{click:t.previousFn}},[n("lok",{attrs:{"lok-key":"_COMMON_BUTTON_PREVIOUS"}})],1)],1),t.showAwait?n("div",t._l(t.products,(function(e,a){return n("b-popover",{key:a,attrs:{placement:"bottom",target:e.sku+e.asin+e.parentAsin,triggers:"hover"}},[n("div",{staticClass:"productInfoHeader d-flex align-items-center justify-content-start"},[n("img",{staticClass:"productInfoImg",attrs:{src:e.imageUrl,alt:""}}),n("div",{staticClass:"productInfoContent"},[n("p",[t._v(" "+t._s(e.title)+" ")]),n("p",[n("span",[t._v(" SKU： "),n("span",{ref:"sku"+a,refInFor:!0},[t._v(t._s(e.sku))]),n("i",{staticClass:"copyBtn",attrs:{title:t.$t("_COMMON_CLICK_TO_COPY")}},[n("feather-icon",{attrs:{icon:"CopyIcon",size:"14"},on:{click:function(e){return e.stopPropagation(),t.copyToClipboard("sku"+a)}}})],1)]),n("span",[t._v(" ASIN： "),n("span",{ref:"asin"+a,refInFor:!0},[t._v(t._s(e.asin))]),n("i",{staticClass:"copyBtn",attrs:{title:t.$t("_COMMON_CLICK_TO_COPY")}},[n("feather-icon",{attrs:{icon:"CopyIcon",size:"14"},on:{click:function(e){return e.stopPropagation(),t.copyToClipboard("asin"+a)}}})],1)]),n("span",[t._v(" PASIN： "),n("span",{ref:"parentAsin"+a,refInFor:!0},[t._v(t._s(e.parentAsin))]),n("i",{staticClass:"copyBtn",attrs:{title:t.$t("_COMMON_CLICK_TO_COPY")}},[n("feather-icon",{attrs:{icon:"CopyIcon",size:"14"},on:{click:function(e){return e.stopPropagation(),t.copyToClipboard("parentAsin"+a)}}})],1)])])])])])})),1):t._e(),n("b-sidebar",{attrs:{noCloseOnBackdrop:"",width:"900px","bg-variant":"white",right:"","no-header":"",backdrop:"",shadow:""},model:{value:t.showDetail,callback:function(e){t.showDetail=e},expression:"showDetail"}},[n("div",{staticClass:"calcPopDetailSidbarHeader"},[n("lok",{attrs:{"lok-key":"cost_center_edit_calculator"}}),n("div",{staticClass:"calc-pop-sidebar-close--btn",on:{click:function(e){t.showDetail=!1}}},[n("feather-icon",{attrs:{icon:"XIcon",size:"20"}})],1)],1),n("div",{staticClass:"calcPopDetailWrap"},[n("div",{staticClass:"calcPopDetailContentWrap"},[n("div",{staticClass:"d-flex align-items-center justify-content-between"},[n("lok",{staticClass:"calcPopDetailContentTitle",attrs:{"lok-key":"cost_center_edit_instr_method1"}}),n("span",{staticClass:"das-ui-button-link d-flex align-items-center",on:{click:function(e){t.isFold=!t.isFold}}},[n("lok",{attrs:{"lok-key":t.isFold?"_COMMON_ACTION_BUTTON_FOLD":"_COMMON_ACTION_BUTTON_UNFOLD"}}),n("feather-icon",{attrs:{size:"16",icon:t.isFold?"ChevronUpIcon":"ChevronDownIcon"}})],1)],1),n("div",{staticClass:"calcPopDetailContentTipInfo",class:{overflowHide:!t.isFold}},[t.isFold?[n("div",{domProps:{innerHTML:t._s(t.$t("cost_center_edit_instr_method2"))}}),n("div",{staticClass:"calcPopDetailContentSubTitle das-table-padding_top das-table-padding_bottom"},[t._v(t._s(t.$t("cost_center_edit_instr_example")))]),n("div",{domProps:{innerHTML:t._s(t.$t("cost_center_edit_instr_example1",{currency:t.CURRENCY_OBJ[t.symbol]}))}}),n("div",{staticClass:"exampleTableSimpleWrap"},[n("b-table-simple",[n("b-thead",[n("b-tr",[n("b-th",[t._v(t._s(t.$t("_AD_AUTO_MANAGER_BUDGET_REMINDER_EVENT")))]),n("b-th",[t._v(t._s(t.$t("_GLOBAL_PARAMETER_QTY")))]),n("b-th",{staticClass:"greenColorBg"},[t._v(t._s(t.$t("_SALES_ANALYSIS_ITEM_PRICE")))]),n("b-th",{staticClass:"greenColorBg"},[t._v(t._s(t.$t("total_purchase_price")))]),n("b-th",{staticClass:"blueColorBg"},[t._v(t._s(t.$t("shipping_unit_price")))]),n("b-th",{staticClass:"blueColorBg"},[t._v(t._s(t.$t("total_shipping_cost")))])],1)],1),n("b-tbody",[n("b-tr",[n("b-td",[t._v(t._s(t.$t("cost_center_edit_instr_sample1")))]),n("b-td",[t._v("10")]),n("b-td",{staticClass:"greenColorBg"},[t._v("120.00")]),n("b-td",{staticClass:"greenColorBg"},[t._v("1200.00")]),n("b-td",{staticClass:"blueColorBg"},[t._v("100.00")]),n("b-td",{staticClass:"blueColorBg"},[t._v("1000.00")])],1),n("b-tr",[n("b-td",[t._v(t._s(t.$t("cost_center_edit_instr_sample2")))]),n("b-td",[t._v("100")]),n("b-td",{staticClass:"greenColorBg"},[t._v("90.00")]),n("b-td",{staticClass:"greenColorBg"},[t._v("9000.00")]),n("b-td",{staticClass:"blueColorBg"},[t._v("120.00")]),n("b-td",{staticClass:"blueColorBg"},[t._v("12000.00")])],1),n("b-tr",[n("b-td",[t._v(t._s(t.$t("cost_center_edit_instr_sample3")))]),n("b-td",[t._v("110")]),n("b-td",{staticClass:"greenColorBg"},[t._v("92.73")]),n("b-td",{staticClass:"greenColorBg"},[t._v("10200.00")]),n("b-td",{staticClass:"blueColorBg"},[t._v("118.18")]),n("b-td",{staticClass:"blueColorBg"},[t._v("13000.00")])],1),n("b-tr",[n("b-td",[t._v(t._s(t.$t("cost_center_edit_instr_sample4")))]),n("b-td",[t._v("10")]),n("b-td",{staticClass:"greenColorBg"},[t._v("92.73")]),n("b-td",{staticClass:"greenColorBg"},[t._v("927.27")]),n("b-td",{staticClass:"blueColorBg"},[t._v("118.18")]),n("b-td",{staticClass:"blueColorBg"},[t._v("1181.82")])],1),n("b-tr",[n("b-td",[t._v(t._s(t.$t("cost_center_edit_instr_sample5")))]),n("b-td",[t._v("0")]),n("b-td",{staticClass:"greenColorBg"},[t._v("0.00")]),n("b-td",{staticClass:"greenColorBg"},[t._v("0.00")]),n("b-td",{staticClass:"blueColorBg"},[t._v("0.00")]),n("b-td",{staticClass:"blueColorBg"},[t._v("0.00")])],1),n("b-tr",[n("b-td",[t._v(t._s(t.$t("cost_center_edit_instr_sample6")))]),n("b-td",[t._v("10")]),n("b-td",{staticClass:"greenColorBg"},[t._v("92.73")]),n("b-td",{staticClass:"greenColorBg"},[t._v("927.27")]),n("b-td",{staticClass:"blueColorBg"},[t._v("118.18")]),n("b-td",{staticClass:"blueColorBg"},[t._v("1181.82")])],1)],1)],1)],1),n("div",{staticClass:"das-table-padding_top",domProps:{innerHTML:t._s(t.$t("cost_center_edit_instr_example2",{currency:t.CURRENCY_OBJ[t.symbol]}))}})]:[t._v(" "+t._s(t.$t("cost_center_edit_instr_method2"))+" ")]],2)]),n("div",{staticClass:"calcPopDetailContentMain"},[t.currentApplyItem?n("div",{staticClass:"calcPopDetailContentDate"},[t.currentApplyItem.startDate?[t._v(" "+t._s(t.currentApplyItem.startDate.replaceAll("-","/"))+" ")]:t._e(),t.currentApplyItem.endDate?[t._v(" "+t._s(t.currentApplyItem.endDate.replaceAll("-","/"))+" ")]:t._e()],2):t._e(),n("div",{staticClass:"calcPopDetailContentMainBlock"},[n("div",{staticClass:"calcPopDetailContentMainBlockTable das-label-left das-label-right",style:{height:t.isFold?"":t.tableHeight}},[n("b-table-simple",[n("b-thead",[n("b-tr",[n("b-th",[t._v(t._s(t.$t("_AD_AUTO_MANAGER_BUDGET_REMINDER_EVENT")))]),n("b-th",[t._v(t._s(t.$t("_GLOBAL_PARAMETER_QTY")))]),n("b-th",[t._v(t._s(t.$t("_SALES_ANALYSIS_ITEM_PRICE")))]),n("b-th",[t._v(t._s(t.$t("total_purchase_price")))]),n("b-th",[t._v(t._s(t.$t("shipping_unit_price")))]),n("b-th",[t._v(t._s(t.$t("total_shipping_cost")))]),n("b-th",[t._v(t._s(t.$t("_COMMON_TH_OPERATION")))])],1)],1),n("b-tbody",t._l(t.tableList,(function(e,a){return n("b-tr",{key:a},[n("b-td",[n("div",{staticClass:"eventLableShow d-flex align-items-center flex-wrap grid-gap-4"},[n("span",[t._v(" "+t._s(t.labelFormatter(e.label,a))+" ")]),n("span",[t._v(" "+t._s(t.labelFormatter(e.label1,a))+" ")])])]),n("b-td",[n("input",{directives:[{name:"model",rawName:"v-model.number",value:e.count,expression:"item.count",modifiers:{number:!0}}],attrs:{type:"number",placeholder:"0"},domProps:{value:e.count},on:{input:[function(a){a.target.composing||t.$set(e,"count",t._n(a.target.value))},function(a){return a.stopPropagation(),t.countInputFn(a,e)}],blur:[function(a){return a.stopPropagation(),t.blurNumberFn(a,e,"count")},function(e){return t.$forceUpdate()}]}})]),n("b-td",[n("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.noninteractive",value:{trigger:"hover",boundary:"viewport",placement:"top",title:e.count?"":t.$t("cost_center_edit_tip1")},expression:"{\n                      trigger: 'hover',\n                      boundary: 'viewport',\n                      placement: 'top',\n                      title: item.count ? '' : $t('cost_center_edit_tip1')\n                    }",modifiers:{noninteractive:!0}}]},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:e.price,expression:"item.price",modifiers:{number:!0}}],attrs:{type:"number",disabled:!e.count,placeholder:"0.00"},domProps:{value:e.price},on:{input:[function(a){a.target.composing||t.$set(e,"price",t._n(a.target.value))},function(a){return a.stopPropagation(),t.priceInputFn(a,e)}],blur:[function(a){return a.stopPropagation(),t.blurNumberFn(a,e,"price",2)},function(e){return t.$forceUpdate()}]}})])]),n("b-td",[n("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.noninteractive",value:{trigger:"hover",boundary:"viewport",placement:"top",title:e.count?"":t.$t("cost_center_edit_tip1")},expression:"{\n                      trigger: 'hover',\n                      boundary: 'viewport',\n                      placement: 'top',\n                      title: item.count ? '' : $t('cost_center_edit_tip1')\n                    }",modifiers:{noninteractive:!0}}]},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:e.priceTotal,expression:"item.priceTotal",modifiers:{number:!0}}],attrs:{type:"number",disabled:!e.count,placeholder:"0.00"},domProps:{value:e.priceTotal},on:{input:[function(a){a.target.composing||t.$set(e,"priceTotal",t._n(a.target.value))},function(a){return a.stopPropagation(),t.priceTotalInputFn(a,e)}],blur:[function(a){return a.stopPropagation(),t.blurNumberFn(a,e,"priceTotal",2)},function(e){return t.$forceUpdate()}]}})])]),n("b-td",[n("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.noninteractive",value:{trigger:"hover",boundary:"viewport",placement:"top",title:e.count?"":t.$t("cost_center_edit_tip1")},expression:"{\n                      trigger: 'hover',\n                      boundary: 'viewport',\n                      placement: 'top',\n                      title: item.count ? '' : $t('cost_center_edit_tip1')\n                    }",modifiers:{noninteractive:!0}}]},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:e.wlPrice,expression:"item.wlPrice",modifiers:{number:!0}}],attrs:{type:"number",disabled:!e.count,placeholder:"0.00"},domProps:{value:e.wlPrice},on:{input:[function(a){a.target.composing||t.$set(e,"wlPrice",t._n(a.target.value))},function(a){return a.stopPropagation(),t.wlPriceInputFn(a,e)}],blur:[function(a){return a.stopPropagation(),t.blurNumberFn(a,e,"wlPrice",2)},function(e){return t.$forceUpdate()}]}})])]),n("b-td",[n("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.noninteractive",value:{trigger:"hover",boundary:"viewport",placement:"top",title:e.count?"":t.$t("cost_center_edit_tip1")},expression:"{\n                      trigger: 'hover',\n                      boundary: 'viewport',\n                      placement: 'top',\n                      title: item.count ? '' : $t('cost_center_edit_tip1')\n                    }",modifiers:{noninteractive:!0}}]},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:e.wlPriceTotal,expression:"item.wlPriceTotal",modifiers:{number:!0}}],attrs:{type:"number",disabled:!e.count,placeholder:"0.00"},domProps:{value:e.wlPriceTotal},on:{input:[function(a){a.target.composing||t.$set(e,"wlPriceTotal",t._n(a.target.value))},function(a){return a.stopPropagation(),t.wlPriceTotalInputFn(a,e)}],blur:[function(a){return a.stopPropagation(),t.blurNumberFn(a,e,"wlPriceTotal",2)},function(e){return t.$forceUpdate()}]}})])]),n("b-td",[0!==a?n("button",{staticClass:"das-ui-button-link",on:{click:function(e){return t.deleteFn(a)}}},[t._v(t._s(t.$t("_COMMON_ACTION_DELETE")))]):t._e()])],1)})),1)],1)],1),n("div",{ref:"calcPopFooter",staticClass:"calcPopDetailContentMainBlockFooter"},[n("div",{staticClass:"d-flex align-items-center"},[n("button",{staticClass:"das-ui-button_ok outline d-flex align-items-center grid-gap-4",on:{click:t.addEventFn}},[n("feather-icon",{attrs:{icon:"PlusIcon",size:"14"}}),t._v(" "+t._s(t.$t("cost_center_edit_button_add"))+" ")],1)]),n("div",{staticClass:"d-flex align-items-center flex-wrap justify-content-end"},[n("lok",{staticClass:"footerTitle",attrs:{"lok-key":"_CALCULATOR_RESULTS"}}),n("lok",{staticClass:"footerTitle1 das-block-margin_left",attrs:{"lok-key":"_SALES_ANALYSIS_ITEM_PRICE"}}),n("lok",{staticClass:"footerTitle1",staticStyle:{margin:"0 4px"},attrs:{"lok-key":"_COMMON_SYMBOL_COLON"}}),n("span",{staticClass:"footerTitle2"},[t.priceResult.price?[t._v(" "+t._s(t._f("amountAll")(t.priceResult.price,t.symbol))+" ")]:[t._v(" "+t._s(t.CURRENCY_OBJ[t.symbol])+"0.00 ")]],2),n("lok",{staticClass:"footerTitle1 das-block-margin_left",attrs:{"lok-key":"shipping_unit_price"}}),n("lok",{staticClass:"footerTitle1",staticStyle:{margin:"0 4px"},attrs:{"lok-key":"_COMMON_SYMBOL_COLON"}}),n("span",{staticClass:"footerTitle2"},[t.priceResult.wlPrice?[t._v(" "+t._s(t._f("amountAll")(t.priceResult.wlPrice,t.symbol))+" ")]:[t._v(" "+t._s(t.CURRENCY_OBJ[t.symbol])+"0.00 ")]],2),n("button",{staticClass:"das-table-margin_left das-ui-button_ok",on:{click:t.applyFn}},[t._v(" "+t._s(t.$t("cost_center_edit_button_apply"))+" ")])],1)])])])])])],1)},i=[],o=a("2909"),r=a("ade3"),s=a("1da1"),l=a("5530"),c=(a("96cf"),a("d3b7"),a("159b"),a("b680"),a("99af"),a("d81d"),a("f00c"),a("a9e3"),a("caad"),a("2532"),a("e9c4"),a("ac1f"),a("5319"),a("a434"),a("4de4"),a("25f0"),a("4a7a")),u=a.n(c),d=a("a7c5"),h=a("7212"),p=a("bbf0"),f=(a("a7a3"),a("2f62")),m=a("667f"),g=a("bbc6"),_=a("13e5"),v=a("21b3"),y=a.n(v),b=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"formPaddingCostEditLog",attrs:{id:t.$options.name}},[a("b-row",[a("b-col",[a("quick-btn-dateselect",{staticClass:"quick-btn-dateselect-wrap",attrs:{id:t.$options.name+"date",dateOption:t.dateOption,customClass:"justify-content--f-s"}}),a("common-search-form",{attrs:{formId:"sales_analysis_gross_profit_cost_edit_log_search","route-search":!0,options:t.formOptions},model:{value:t.searchModel,callback:function(e){t.searchModel=e},expression:"searchModel"}})],1)],1),a("b-row",[a("b-col",[a("common-table",{key:t.rangeDateKey+t.CURRENT_SHOP_ID+"cost_edit_log_table",ref:"commonTableEle",attrs:{tableId:"sales_analysis_gross_profit_cost_edit_log_search",params:t.tableParams,options:t.tableOptions},scopedSlots:t._u([{key:"cell(editContent)",fn:function(e){return[1===e.data.item.type?[a("div",[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_ITEM_PRICE"))+": "),0===e.data.item.cost.exchangeRate?[t._v(" "+t._s((e.data.item.cost.purchasePrice*t.getRate(e.data.item.cost.currencyCode)).toFixed(2))+" ")]:[t._v(" "+t._s((e.data.item.cost.purchasePrice*e.data.item.cost.exchangeRate).toFixed(2))+" ")],a("em",{staticClass:"das-ui-tip-color"},[t._v(" "+t._s(e.data.item.cost.currencyCode)+" ")])],2),a("div",[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_ITEM_SHIP"))+": "),0===e.data.item.cost.exchangeRate?[t._v(" "+t._s((e.data.item.cost.logisticsExpenses*t.getRate(e.data.item.cost.currencyCode)).toFixed(2))+" ")]:[t._v(" "+t._s((e.data.item.cost.logisticsExpenses*e.data.item.cost.exchangeRate).toFixed(2))+" ")],a("em",{staticClass:"das-ui-tip-color"},[t._v(" "+t._s(e.data.item.cost.currencyCode)+" ")])],2)]:2===e.data.item.type?[e.data.item.cost.costLogs.length>0?[a("div",[t._v(t._s(e.data.item.cost.costLogs[0].startDate)+" "+t._s(t.$t("_SALES_ANALYSIS_COST_EDIT_LOG_TO"))+" "+t._s(e.data.item.cost.costLogs[0].endDate))]),a("div",[t._v(t._s(t.$t("_SALES_ANALYSIS_ITEM_PRICE"))+":"+t._s((e.data.item.cost.costLogs[0].purchasePrice*(0===e.data.item.cost.costLogs[0].exchangeRate?t.getRate(e.data.item.cost.currencyCode):e.data.item.cost.costLogs[0].exchangeRate)).toFixed(2))+t._s(e.data.item.cost.currencyCode))]),a("div",[t._v(t._s(t.$t("_SALES_ANALYSIS_ITEM_SHIP"))+":"+t._s((e.data.item.cost.costLogs[0].logisticsExpenses*(0===e.data.item.cost.costLogs[0].exchangeRate?t.getRate(e.data.item.cost.currencyCode):e.data.item.cost.costLogs[0].exchangeRate)).toFixed(2))+t._s(e.data.item.cost.currencyCode))]),a("span",{staticClass:"showMore",on:{click:function(a){return t.showHistoryCostLog(e.data.item)}}},[t._v(t._s(t.$t("_COMMON_MORE")))])]:[a("span",{staticStyle:{color:"red"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COST_EDIT_LOG_CLEAR_ALL")))])]]:t._e()]}}])})],1)],1),a("custom-modal",{attrs:{hideFooter:"",visible:t.showMore,width:1e3,title:t.$t("_SALES_ANALYSIS_COST_EDIT_LOG_HISTORY_COST_LOG"),noMargin:"","hide-cross":!0},on:{hidden:function(e){t.showMore=!1}}},[a("div",{staticStyle:{height:"480px"}},[a("common-table",{ref:"commonTableEle",attrs:{tableData:t.logList,tableId:"sales_analysis_gross_profit_cost_edit_log_more_search",options:t.moreTableOptions},scopedSlots:t._u([{key:"cell(createAt)",fn:function(){return[t._v(" "+t._s(t.costLogHistoryData.createAt)+" ")]},proxy:!0},{key:"cell(editContent)",fn:function(e){return[a("div",[t._v(t._s(e.data.item.startDate)+" "+t._s(t.$t("_SALES_ANALYSIS_COST_EDIT_LOG_TO"))+" "+t._s(e.data.item.endDate))]),t.getRate(t.costLogHistoryData.cost.currencyCode)?[a("div",[t._v(t._s(t.$t("_SALES_ANALYSIS_ITEM_PRICE"))+":"+t._s((e.data.item.purchasePrice*(0===e.data.item.exchangeRate?t.getRate(t.costLogHistoryData.cost.currencyCode):e.data.item.exchangeRate)).toFixed(2))+" "+t._s(t.costLogHistoryData.cost.currencyCode))]),a("div",[t._v(t._s(t.$t("_SALES_ANALYSIS_ITEM_SHIP"))+":"+t._s((e.data.item.logisticsExpenses*(0===e.data.item.exchangeRate?t.getRate(t.costLogHistoryData.cost.currencyCode):e.data.item.exchangeRate)).toFixed(2))+" "+t._s(t.costLogHistoryData.cost.currencyCode))])]:t._e()]}},{key:"cell(rateSet)",fn:function(e){return[t.getRate(t.costLogHistoryData.cost.currencyCode)?a("span",[t._v("1"+t._s(t.CURRENCY_CODE)+" = "+t._s((0===e.data.item.exchangeRate?t.getRate(t.costLogHistoryData.cost.currencyCode):e.data.item.exchangeRate).toFixed(4))+t._s(t.costLogHistoryData.cost.currencyCode))]):t._e()]}},{key:"cell(userName)",fn:function(){return[t._v(" "+t._s(t.costLogHistoryData.userName)+" ")]},proxy:!0}])})],1)])],1)},S=[],O=a("5222"),T=a("0823"),A=a("2af9"),x=a("6ddf"),C=a("c1df"),E=a.n(C),w=a("4238"),M={name:"costEditLog",props:{products:{}},data:function(){return{showMore:!1,costLogHistoryData:{},logList:[],rates:{},dateOption:{dateSet:[0,1,7,15,30],dateScope:null,dateRange:["2022-02-22","2022-02-22"]},rangeDateKey:"rangeDateKey",searchModel:{type:""}}},components:{customModal:A["l"],commonSearchForm:O["a"],QuickBtnDateselect:A["h"],commonTable:T["a"]},computed:Object(l["a"])(Object(l["a"])({},Object(f["c"])({CURRENT_SHOP_ID:p["g"],CURRENCY_CODE:p["b"]})),{},{costTypeMap:function(){return{1:this.$t("_SALES_ANALYSIS_MULTI_COST_DEFAULT"),2:this.$t("_SALES_ANALYSIS_MULTI_COST_HISTORY")}},base:function(){return this.CURRENCY_CODE},tableOptions:function(){var t=this;return{requestApi:_["E"],stickyHeader:!0,height:"435px",fields:[{key:"createAt",headerPosition:"left",label:this.$t("_AD_AUTO_MANAGER_TH_OP_TIME")},{key:"createAt1",headerPosition:"left",formatter:function(e,a,n){return t.costTypeMap[n.type]},label:this.$t("_SALES_ANALYSIS_COST_EDIT_LOG_EDIT_TYPE")},{key:"editContent",headerPosition:"left",diy:!0,label:this.$t("_SALES_ANALYSIS_COST_EDIT_LOG_EDIT_CONTENT")},{key:"userName",headerPosition:"left",label:this.$t("_SALES_ANALYSIS_COST_EDIT_LOG_OPERATION_ACCOUNT")}]}},moreTableOptions:function(){return{stickyHeader:!0,height:"450px",fields:[{key:"createAt",headerPosition:"left",diy:!0,label:this.$t("_AD_AUTO_MANAGER_TH_OP_TIME")},{key:"editContent",headerPosition:"left",diy:!0,label:this.$t("_SALES_ANALYSIS_COST_EDIT_LOG_EDIT_CONTENT")},{key:"rateSet",headerPosition:"left",diy:!0,label:this.$t("_COMMON_CURRENCY_RATE_SET")},{key:"userName",headerPosition:"left",diy:!0,label:this.$t("_SALES_ANALYSIS_COST_EDIT_LOG_OPERATION_ACCOUNT")}]}},tableParams:function(){var t=this,e={},a=Object(x["e"])(t.dateOption),n=a[0],i=a[1];return e.startDate=Object(x["b"])(E()(n)).format("YYYY-MM-DD"),e.endDate=Object(x["b"])(E()(i)).format("YYYY-MM-DD"),null!==t.searchModel.type&&""!==t.searchModel.type&&(e.type=t.searchModel.type),t.products&&t.products[0]&&(e.sku=t.products[0].sku),e},formOptions:function(){return[{type:"v-select",width:"200px",id:"type",placeholder:this.$t("_COMMON_VALIDATE_SELECT",{field:""}),clearable:!0,options:[{label:this.$t("_SALES_ANALYSIS_MULTI_COST_DEFAULT"),value:1},{label:this.$t("_SALES_ANALYSIS_MULTI_COST_HISTORY"),value:2}]}]},IS_LANG_EN:function(){return"en"===this.$i18n.locale},IS_LANG_ZH:function(){return"zh-CN"===this.$i18n.locale||"zh-TW"===this.$i18n.locale},IS_LANG_JP:function(){return"ja_jp"===this.$i18n.locale}}),watch:{},methods:{getRate:function(t){return t===this.$store.getters[p["b"]]?1:this.rates[t]},showHistoryCostLog:function(t){this.showMore=!0,this.costLogHistoryData=t,this.logList=t.cost.costLogs}},mounted:function(){var t=this;this.base&&Object(w["a"])(this.base).then((function(e){t.rates=e}))}},k=M,I=(a("c585"),a("01bd"),a("2877")),D=Object(I["a"])(k,b,S,!1,null,"4e754281",null),L=D.exports,R=a("2650"),N=a("c38f"),P=a.n(N),j=a("d80f"),$=function(){return{searchModel:{date:[]},startDate:"",endDate:"",purchasePrice:0,logisticsExpenses:0,originalPurchase:0,originalLogistics:0,rateType:"realTime",exchangeRate:0}};a("cbfa");var F={name:"editCostDialog",props:["editCostDialogParam","shopMap","isSku","hideFooter","multiBaseModel"],data:function(){return{contentCurrencyCode:null,isGoChange:!1,addTimeKey:"addTimeKey",showEnsureVis:!1,currentApplyItem:null,tableHeight:"",CURRENCY_OBJ:j["f"],tableList:[],calculatorList:[],isFold:!1,showDetail:!1,calculatorItem:"",historyRemark:"",currentItem:{endDate:"",startDate:""},showAwait:!1,baseModel:"",historySelect:0,dateConfigStart:{locale:"zh",maxDate:this.multiple?Object(x["q"])().format("YYYY-MM-DD"):Object(x["p"])().format("YYYY-MM-DD"),mode:"range",disable:[]},tab:0,symbol:"",realTimeRate:1,costLogs:[],defaultCost:{purchasePrice:0,logisticsExpenses:0,rateType:"realTime",exchangeRate:0},swiperOptions:{slidesPerView:"auto",centeredSlides:!1,spaceBetween:0,navigation:{nextEl:".rightBtn",prevEl:".leftBtn"}},costLogHistoryVisible:!1,costLogHistoryData:{}}},watch:{priceResult:"setCalculatorInfo",showDetail:function(){var t=this;this.$nextTick((function(){t.showDetail?document.getElementById("s-chat-plugin").style.zIndex=1e3:document.getElementById("s-chat-plugin").style.zIndex=999999999}))},CURRENCY_CODE:{immediate:!0,handler:function(t){t&&(this.symbol=t)}}},computed:Object(l["a"])(Object(l["a"])({},Object(f["c"])({CURRENT_SHOP_ID:p["g"]})),{},{isChangeSys:function(){return this.contentCurrencyCode!==this.symbol},tableOptions:function(){return{stickyHeader:!0,hidePagination:!0,diyEmpty:!0,height:"400px",fields:[{key:"operationBtn",diy:!0,headerPosition:"left",label:this.$t("_COMMON_TH_OPERATION")},{key:"date",headerPosition:"left",diyHeader:!0,diy:!0},{key:"purchasePrice",headerPosition:"left",diyHeader:!0,diy:!0},{key:"logisticsExpenses",headerPosition:"left",diyHeader:!0,diy:!0},{key:"rateType",headerPosition:"left",label:this.$t("_COMMON_CURRENCY_RATE_SET"),appendTip:this.$t("cost_center_edit_exchange_rate_tip"),diy:!0}]}},priceResult:function(){var t=0,e=0,a=0;return this.tableList.forEach((function(n){t+=n.priceTotal,e+=n.wlPriceTotal,a+=n.count})),{price:parseFloat(parseFloat(t/a).toFixed(2)),wlPrice:parseFloat(parseFloat(e/a).toFixed(2))}},IS_LANG_ZH:function(){return"zh-CN"===this.$i18n.locale},multiple:function(){return!(!this.multiBaseModel||!this.multiBaseModel.shopId)},CURRENCY_CODE:function(){return this.multiple?this.multiBaseModel.CURRENCY_CODE:this.$store.getters[p["b"]]},CURRENCY_SYMBOL:function(){return this.multiple?this.multiBaseModel.CURRENCY_SYMBOL:this.$store.getters[p["c"]]},defaultCostOptions:function(){return[{type:"b-input",label:this.$t("_SALES_ANALYSIS_ITEM_PRICE")+'<span class="das-ui-tip-color">('.concat(j["f"][this.symbol],")</span>"),placeholder:"0.00",width:"180px",rules:"required|number",attr:{type:"number"},flag:2,blockClass:"flex-direction--column",id:"purchasePrice"},{type:"b-input",label:this.$t("_SALES_ANALYSIS_ITEM_SHIP")+'<span class="das-ui-tip-color">('.concat(j["f"][this.symbol],")</span>"),placeholder:"0.00",width:"180px",rules:"required|number",attr:{type:"number"},flag:2,blockClass:"flex-direction--column",id:"logisticsExpenses"}]},historyDisable:function(){var t=this,e=[];return this.costLogs.forEach((function(a){if(a.startDate!==t.currentItem.startDate||a.endDate!==t.currentItem.endDate){var n={from:a.startDate,to:a.endDate};e=e.concat(n)}})),e},itemDateOptions:function(){return[{type:"date-simple-multi",rules:"required",id:"date",class:"mb0",attr:{disable:this.historyDisable,dateConfigDiy:{maxDate:null}}}]},itemPurchasePriceOptions:function(){return[{type:"b-input",placeholder:"0.00",width:"130px",rules:"required|number:".concat(this.$t("_CUSTOMIZED_COST_ERROR_ENTER")),attr:{type:"number"},flag:2,class:"mb0",id:"purchasePrice"}]},itemLogisticsExpensesOptions:function(){return[{type:"b-input",placeholder:"0.00",width:"130px",rules:"required|number:".concat(this.$t("_CUSTOMIZED_COST_ERROR_ENTER")),attr:{type:"number"},flag:2,class:"mb0",id:"logisticsExpenses"},{type:"div",id:"calculator",class:"mb0",diy:!0}]},itemOptions:function(){return[{type:"date-simple-multi",label:this.$t("_TREND_IMPORT_REPORT_LABEL_DATE"),labelInfo:this.$t("cost_center_edit_instr_date"),rules:"required",id:"date",attr:{disable:this.historyDisable,dateConfigDiy:{maxDate:null}},blockClass:"flex-direction--column",showType:"block"},{type:"b-input",label:this.$t("_SALES_ANALYSIS_ITEM_PRICE")+'<span class="das-ui-tip-color">('.concat(j["f"][this.symbol],")</span>"),placeholder:"0.00",width:"180px",rules:"required|number",attr:{type:"number"},flag:2,blockClass:"flex-direction--column",id:"purchasePrice"},{type:"b-input",label:this.$t("_SALES_ANALYSIS_ITEM_SHIP")+'<span class="das-ui-tip-color">('.concat(j["f"][this.symbol],")</span>"),placeholder:"0.00",width:"180px",rules:"required|number",attr:{type:"number"},flag:2,blockClass:"flex-direction--column",id:"logisticsExpenses"},{type:"div",id:"calculator",blockClass:"flex-direction--column das-model-margin_top",diy:!0}]},invalidLogInput:function(){var t=this,e=t.costLogs.map((function(t){var e=parseFloat(t.purchasePrice),a=parseFloat(t.logisticsExpenses);return!Number.isFinite(e)||!Number.isFinite(a)}));return e.includes(!0)},addAvailable:function(){var t;return!(this.costLogs.length>=1)||!(null===(t=this.costLogs[0])||void 0===t||!t.endDate)},invalidDefaultInput:function(){var t=parseFloat(this.defaultCost.purchasePrice),e=parseFloat(this.defaultCost.logisticsExpenses);return!Number.isFinite(t)||!Number.isFinite(e)},products:function(){return this.editCostDialogParam.products}}),components:{customModal:A["l"],commonTable:A["k"],commonSearchForm:O["a"],productInfo:R["a"],costEditLog:L,flatPickr:P.a,vSelect:u.a,currencySelect:m["a"],Swiper:h["Swiper"],SwiperSlide:h["SwiperSlide"],productInfoTableColumn:d["a"]},methods:{ensureFn:function(){0===this.tab?this.saveDefaultDone():1===this.tab&&this.asyncOkFn()},goUrl:function(t){"A"===t.target.nodeName&&(this.tab=1)},applyFn:function(){var t;if(null!==(t=this.currentApplyItem)&&void 0!==t&&t.searchModel){var e="JPY"===this.symbol?Math.ceil(this.priceResult.price||0):this.priceResult.price||0,a="JPY"===this.symbol?Math.ceil(this.priceResult.wlPrice||0):this.priceResult.wlPrice||0;this.$set(this.currentApplyItem.searchModel,"purchasePrice",e),this.$set(this.currentApplyItem.searchModel,"logisticsExpenses",a)}this.showDetail=!1},addEventFn:function(){this.tableList.push({label:"cost_center_edit_event_replenish",count:"",price:"",priceTotal:"",wlPrice:"",wlPriceTotal:""})},getCalculatorInfo:function(t){var e,a=this,n=[{label:E()(t.startDate).subtract(1,"days").format("YYYY/MM/DD "),label1:"cost_center_edit_event_balance",count:"",price:"",priceTotal:"",wlPrice:"",wlPriceTotal:""},{label:"cost_center_edit_event_replenish",count:"",price:"",priceTotal:"",wlPrice:"",wlPriceTotal:""}];if(this.currentApplyItem=t,1===(null===(e=this.products)||void 0===e?void 0:e.length)){var i=this.products[0].sku+this.products[0].asin+this.products[0].parentAsin+this.products[0].id+this.products[0].shopId+this.CURRENT_SHOP_ID+this.symbol+this.currentApplyItem.startDate+this.currentApplyItem.endDate;try{var o=window.localStorage.getItem(i);o=JSON.parse(o),o&&(n=o)}catch(r){}}this.tableList=n,this.showDetail=!0,this.isFold=!1,this.$nextTick((function(){a.tableHeight="calc(100vh - ".concat(parseInt((a.$refs.calcPopFooter.clientHeight||0)+208),"px)")}))},setCalculatorInfo:function(){var t=this;this.products.forEach((function(e){var a=e.sku+e.asin+e.parentAsin+e.id+e.shopId+t.CURRENT_SHOP_ID+t.symbol+t.currentApplyItem.startDate+t.currentApplyItem.endDate;t.tableList.every((function(t){return!t.count}))||window.localStorage.setItem(a,JSON.stringify(t.tableList))}))},blurNumberFn:function(t,e,a,n){if(null!==t&&void 0!==t&&t.stopPropagation&&t.stopPropagation(),e[a]||0===e[a]){var i=parseFloat(e[a]||0)||0;e[a]=n?parseFloat(i.toFixed(n)):parseInt(i)}},labelFormatter:function(t,e){var a;return null===(a=this.$t(t))||void 0===a?void 0:a.replace("X",e)},deleteFn:function(t){this.tableList.splice(t,1)},countInputFn:function(t,e){null!==t&&void 0!==t&&t.stopPropagation&&t.stopPropagation(),e["price"]="",e["priceTotal"]="",e["wlPrice"]="",e["wlPriceTotal"]=""},priceInputFn:function(t,e){null!==t&&void 0!==t&&t.stopPropagation&&t.stopPropagation(),e["priceTotal"]=parseFloat(parseFloat(e["count"]*e["price"]).toFixed(2))||0},priceTotalInputFn:function(t,e){null!==t&&void 0!==t&&t.stopPropagation&&t.stopPropagation(),e["price"]=parseFloat(parseFloat(e["priceTotal"]/e["count"]).toFixed(2))||0},wlPriceInputFn:function(t,e){null!==t&&void 0!==t&&t.stopPropagation&&t.stopPropagation(),e["wlPriceTotal"]=parseFloat(parseFloat(e["count"]*e["wlPrice"]).toFixed(2))||0},wlPriceTotalInputFn:function(t,e){null!==t&&void 0!==t&&t.stopPropagation&&t.stopPropagation(),e["wlPrice"]=parseFloat(parseFloat(e["wlPriceTotal"]/e["count"]).toFixed(2))||0},blurFn:function(t){var e=parseFloat(t.exchangeRate);e&&(t.exchangeRate=e.toFixed(4))},deleteProducts:function(t,e){e.splice(t,1)},eventFn:function(t,e){switch(t.type){case"date-simple-multi":this.currentItem=e;break}},searchFn:function(t){this.$set(t,"logisticsExpenses",t.searchModel.logisticsExpenses),this.$set(t,"purchasePrice",t.searchModel.purchasePrice),this.$set(t,"startDate",t.searchModel.date[0]),this.$set(t,"endDate",t.searchModel.date[1])},selectProFn:function(t){this.baseModel=t},copyToClipboard:function(t){var e=this,a=this.$refs[t][0];y()(a,(function(){e.$store.dispatch("app/updatePop",{title:e.$t("_KEYWORD_POPULARITY_COPY_SUCCESS"),icon:"EditIcon",variant:"success"})}))},closeFn:function(){this.$emit("cost-batch-edited")},previousFn:function(){this.$emit("previous")},saveLogs:function(){var t=this;if(this.products.length>0){var e=[];this.costLogs=this.costLogs.filter((function(t){return t.searchModel.date.length||""!==t.searchModel.logisticsExpenses&&void 0!==t.searchModel.logisticsExpenses||""!==t.searchModel.purchasePrice&&void 0!==t.searchModel.purchasePrice})),this.$nextTick((function(){t.costLogs.forEach(function(){var a=Object(s["a"])(regeneratorRuntime.mark((function a(n,i){var o,r,s,l,c,u;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return o=t.$refs["customCostEditdate"+i],r=t.$refs["customCostEditpurchasePrice"+i],s=t.$refs["customCostEditlogisticsExpenses"+i],a.next=5,o.$refs.searchForm.validate();case 5:return l=a.sent,e.push(l),a.next=9,r.$refs.searchForm.validate();case 9:return c=a.sent,e.push(c),a.next=13,s.$refs.searchForm.validate();case 13:u=a.sent,e.push(u);case 15:case"end":return a.stop()}}),a)})));return function(t,e){return a.apply(this,arguments)}}()),setTimeout((function(){e.every((function(t){return t}))&&(t.showEnsureVis=!0)}),200)}))}},deleteDuration:function(t){var e=[];e=this.costLogs.map((function(t){return Object(l["a"])({},t)})),e.splice(t,1),this.$set(this,"costLogs",e)},asyncOkFn:function(){var t=this,e=this,a=this.products.map((function(a){var n={sku:a.sku,currencyCode:e.symbol};return t.multiple&&(n.dasCurrentShop=e.multiBaseModel.shopId),n.costLogs=e.costLogs.filter((function(t){return!!t.startDate&&!!t.endDate})).map((function(t){var a="realTime"===t.rateType||t.exchangeRate<=0?e.$refs.currencyRate.rate:t.exchangeRate;return{startDate:t.startDate,endDate:t.endDate,purchasePrice:"JPY"===e.$store.getters[p["b"]]?Math.floor(t.purchasePrice/a)||0:(t.purchasePrice/a||0).toFixed(4),logisticsExpenses:"JPY"===e.$store.getters[p["b"]]?Math.floor(t.logisticsExpenses/a)||0:(t.logisticsExpenses/a||0).toFixed(4),exchangeRate:"realTime"===t.rateType?0:t.exchangeRate,originalPurchase:"JPY"===e.$store.getters[p["b"]]?Math.floor(t.purchasePrice)||0:parseFloat(t.purchasePrice||0).toFixed(4),originalLogistics:"JPY"===e.$store.getters[p["b"]]?Math.floor(t.logisticsExpenses||0):parseFloat(t.logisticsExpenses||0).toFixed(4)}})),n}));this.multiple?Object(_["e"])(a,this.multiBaseModel.shopId,this.historyRemark).then((function(a){var n=a.status,i=a.content;1===n&&(e.$emit("cost-batch-edited",!0),t.$store.dispatch("app/updatePop",{title:i,icon:"EditIcon",variant:"success"}),t.showEnsureVis=!1)})):Object(_["d"])(a,this.historyRemark).then((function(a){var n=a.status,i=a.content;1===n&&(e.$emit("cost-batch-edited",!0),t.$store.dispatch("app/updatePop",{title:i,icon:"EditIcon",variant:"success"}),t.showEnsureVis=!1)}))},init:function(){var t=this,e=this;if(1===this.products.length){var a=this.products[0],n={sku:a.sku};if(this.multiple&&(n.dasCurrentShop=e.multiBaseModel.shopId),e.shopMap&&a.sellerId&&a.marketplaceId){var i=e.shopMap["".concat(a.sellerId,"_").concat(a.marketplaceId)];i&&(n.dasCurrentShop=i.id||"")}Object(_["X"])(n,Object(r["a"])({},g["d"],!0)).then((function(e){var a=e.status,n=e.content;if(1===a)if(n.exchangeRate>0?(t.defaultCost.exchangeRate=n.exchangeRate,t.defaultCost.rateType="static",t.defaultCost.purchasePrice=(n.purchasePrice*n.exchangeRate).toFixed(2),t.defaultCost.logisticsExpenses=(n.logisticsExpenses*n.exchangeRate).toFixed(2)):(t.defaultCost.rateType="realTime",t.defaultCost.purchasePrice=parseFloat(n.purchasePrice).toFixed(2),t.defaultCost.logisticsExpenses=parseFloat(n.logisticsExpenses).toFixed(2)),n.originalPurchase&&(t.defaultCost.purchasePrice=n.originalPurchase,t.defaultCost.originalPurchase=n.originalPurchase),n.originalLogistics&&(t.defaultCost.logisticsExpenses=n.originalLogistics,t.defaultCost.originalLogistics=n.originalLogistics),t.defaultCost.remark=n.remark,n.currencyCode&&(t.symbol=n.currencyCode),t.contentCurrencyCode=n.currencyCode,n.costLogs&&n.costLogs.length){var i=n.costLogs.map((function(e){return e.searchModel={date:[e.startDate,e.endDate]},e.exchangeRate>0?(e.rateType="static",e.purchasePrice=(e.purchasePrice*e.exchangeRate).toFixed(4),e.logisticsExpenses=(e.logisticsExpenses*e.exchangeRate).toFixed(4)):e.rateType="realTime",e.originalPurchase&&(e.purchasePrice=parseFloat(e.originalPurchase).toFixed(4)),e.originalLogistics&&(e.logisticsExpenses=parseFloat(e.originalLogistics).toFixed(4)),t.$set(e.searchModel,"originalPurchase",parseFloat(e.originalPurchase)),t.$set(e.searchModel,"originalLogistics",parseFloat(e.originalLogistics)),t.$set(e.searchModel,"purchasePrice",parseFloat(e.originalPurchase||e.purchasePrice)),t.$set(e.searchModel,"logisticsExpenses",parseFloat(e.originalLogistics||e.logisticsExpenses)),e}));t.costLogs=i}else t.costLogs=[]})).catch((function(t){}))}setTimeout((function(){t.showAwait=!0}),200)},addTime:function(){var t=[$()].concat(Object(o["a"])(this.costLogs));this.$set(this,"costLogs",t),this.addTimeKey=Math.random().toString(16).substring(2,6)},saveDefault:function(){this.showEnsureVis=!0},saveDefaultDone:function(){var t=this,e=this,a="realTime"===e.defaultCost.rateType||e.defaultCost.exchangeRate<=0?e.$refs.currencyRate.rate:e.defaultCost.exchangeRate,n=this.products.map((function(n){var i={sku:n.sku,purchasePrice:"JPY"===e.$store.getters[p["b"]]?Math.floor(e.defaultCost.purchasePrice/a):(e.defaultCost.purchasePrice/a).toFixed(4),logisticsExpenses:"JPY"===e.$store.getters[p["b"]]?Math.floor(e.defaultCost.logisticsExpenses/a):(e.defaultCost.logisticsExpenses/a).toFixed(4),currencyCode:e.symbol,exchangeRate:"realTime"===e.defaultCost.rateType?0:e.defaultCost.exchangeRate};if(i["originalLogistics"]=parseFloat(e.defaultCost.logisticsExpenses).toFixed(4),i["originalPurchase"]=parseFloat(e.defaultCost.purchasePrice).toFixed(4),t.multiple&&(i.dasCurrentShop=e.multiBaseModel.shopId),e.shopMap&&n.sellerId&&n.marketplaceId){var o=e.shopMap["".concat(n.sellerId,"_").concat(n.marketplaceId)];o&&(i.dasCurrentShop=o.id||"")}return i}));Object(_["c"])(n,this.defaultCost.remark).then((function(e){var a=e.status,n=e.content;1===a&&(t.$emit("cost-batch-edited",!0),t.$store.dispatch("app/updatePop",{title:n,icon:"EditIcon",variant:"success"}),t.showEnsureVis=!1)}))},setSymbol:function(t){this.symbol=t,this.symbol===this.CURRENCY_CODE&&(this.defaultCost.rateType="realTime",this.costLogs.forEach((function(t){t.rateType="realTime"})))},symbolChange:function(t,e){var a,n,i=this,o=t/e;(this.realTimeRate=t,"realTime"===this.defaultCost.rateType)&&(this.isGoChange?(this.defaultCost.purchasePrice=(this.defaultCost.purchasePrice*o||0).toFixed(2),this.defaultCost.logisticsExpenses=(this.defaultCost.logisticsExpenses*o||0).toFixed(2)):(this.defaultCost.purchasePrice=(null===(a=this.defaultCost)||void 0===a?void 0:a.originalPurchase)||(this.defaultCost.purchasePrice*o||0).toFixed(2),this.defaultCost.logisticsExpenses=(null===(n=this.defaultCost)||void 0===n?void 0:n.originalLogistics)||(this.defaultCost.logisticsExpenses*o||0).toFixed(2)));this.costLogs.forEach((function(t,e){if("realTime"===i.costLogs[e].rateType){if(t.purchasePrice=(t.purchasePrice*o||0).toFixed(2),t.logisticsExpenses=(t.logisticsExpenses*o||0).toFixed(2),!i.isGoChange){var a,n;if(null!==t&&void 0!==t&&t.originalPurchase)t.purchasePrice=(null===t||void 0===t||null===(a=t.originalPurchase)||void 0===a?void 0:a.toFixed(2))||0;if(null!==t&&void 0!==t&&t.originalLogistics)t.logisticsExpenses=(null===t||void 0===t||null===(n=t.originalLogistics)||void 0===n?void 0:n.toFixed(2))||0}i.$set(t.searchModel,"purchasePrice",parseFloat(t.purchasePrice)),i.$set(t.searchModel,"logisticsExpenses",parseFloat(t.logisticsExpenses))}else{var r,s;if(null!==t&&void 0!==t&&t.originalPurchase)t.purchasePrice=(null===t||void 0===t||null===(r=t.originalPurchase)||void 0===r?void 0:r.toFixed(2))||0;if(null!==t&&void 0!==t&&t.originalLogistics)t.logisticsExpenses=(null===t||void 0===t||null===(s=t.originalLogistics)||void 0===s?void 0:s.toFixed(2))||0}}))}},created:function(){this.init()}},B=F,Y=(a("99c9"),Object(I["a"])(B,n,i,!1,null,null,null));e["a"]=Y.exports},"0c0a":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.pieItemNames.length?a("div",{staticClass:"refundReportWrap",style:{width:t.IS_LANG_ZH?"430px":"530px"}},t._l(t.pieItemNames,(function(e,n){return a("div",{key:n,staticClass:"reportBlock"},[a("span",[a("i",{staticClass:"legend-item__ico",style:{backgroundColor:t.colorFormat(n)}}),t._v(" "+t._s(e.label)+" ")]),"suggestion"===t.type?a("lok",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:""+e.tip,expression:"`${item.tip}`",modifiers:{hover:!0,top:!0}}],staticClass:"btnA",attrs:{"lok-key":"_REFUND_REPORT_BTN_MORE"}}):a("span",[t._v(" "+t._s(e.value)+" ")])],1)})),0):t._e()},i=[],o=a("7aad"),r=a("b9b9"),s={name:"pieList",data:function(){return{}},computed:{IS_LANG_ZH:function(){return"zh-CN"===this.$i18n.locale||"zh-TW"===this.$i18n.locale}},directives:{"b-popover":r["a"]},methods:{colorFormat:o["a"].color},props:{type:{},pieItemNames:{}}},l=s,c=(a("1a99"),a("2877")),u=Object(c["a"])(l,n,i,!1,null,"06ab10f6",null);e["a"]=u.exports},"0e2e":function(t,e,a){},"104d4":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var n=a("22b4"),i=a("e1ff"),o=a("ac12");function r(t){Object(n["a"])(i["a"]),Object(n["a"])(o["a"])}},"123a":function(t,e,a){"use strict";a("1da3")},"128d":function(t,e,a){"use strict";a.d(e,"a",(function(){return Ft}));var n=a("55ac"),i=a("6d8b"),o=["treemapZoomToNode","treemapRender","treemapMove"];function r(t){for(var e=0;e<o.length;e++)t.registerAction({type:o[e],update:"updateView"},i["L"]);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function a(e,a){var i=["treemapZoomToNode","treemapRootToNode"],o=n["c"](t,i,e);if(o){var r=e.getViewRoot();r&&(t.direction=n["a"](r,o.node)?"rollUp":"drillDown"),e.resetViewRoot(o.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},a)}))}var s=a("7fae"),l=a("4f85"),c=a("06c7"),u=a("4319"),d=a("e0d3"),h=a("217c"),p=a("933c"),f=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.preventUsingHoverLayer=!0,a}return Object(s["a"])(e,t),e.prototype.getInitialData=function(t,e){var a={name:t.name,children:t.data};m(a);var n=t.levels||[],o=this.designatedVisualItemStyle={},r=new u["a"]({itemStyle:o},this,e);n=t.levels=g(n,e);var s=i["H"](n||[],(function(t){return new u["a"](t,r,e)}),this),l=c["a"].createTree(a,this,d);function d(t){t.wrapMethod("getItemModel",(function(t,e){var a=l.getNodeByDataIndex(e),n=a?s[a.depth]:null;return t.parentModel=n||r,t}))}return l.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,a){var n=this.getData(),i=this.getRawValue(t),o=n.getName(t);return Object(h["c"])("nameValue",{name:o,value:i})},e.prototype.getDataParams=function(e){var a=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Object(n["d"])(i,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},i["m"](this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=i["f"](),this._idIndexMapCount=0);var a=e.get(t);return null==a&&e.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Object(p["a"])(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(l["b"]);function m(t){var e=0;i["k"](t.children,(function(t){m(t);var a=t.value;i["t"](a)&&(a=a[0]),e+=a}));var a=t.value;i["t"](a)&&(a=a[0]),(null==a||isNaN(a))&&(a=e),a<0&&(a=0),i["t"](t.value)?t.value[0]=a:t.value=a}function g(t,e){var a=Object(d["r"])(e.get("color")),n=Object(d["r"])(e.get(["aria","decal","decals"]));if(a){var o,r;t=t||[],i["k"](t,(function(t){var e=new u["a"](t),a=e.get("color"),n=e.get("decal");(e.get(["itemStyle","color"])||a&&"none"!==a)&&(o=!0),(e.get(["itemStyle","decal"])||n&&"none"!==n)&&(r=!0)}));var s=t[0]||(t[0]={});return o||(s.color=a.slice()),!r&&n&&(s.decal=n.slice()),t}}var _=f,v=a("2dc5"),y=a("c7a2"),b=a("861c"),S=a("7d6c"),O=a("80f0"),T=a("87b1"),A=a("76a5"),x=a("f934"),C=8,E=8,w=5,M=function(){function t(t){this.group=new v["a"],t.add(this.group)}return t.prototype.render=function(t,e,a,n){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&a){var r=i.getModel("itemStyle"),s=r.getModel("textStyle"),l={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,l,s),this._renderContent(t,l,r,s,n),x["i"](o,l.pos,l.box)}},t.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=Object(d["e"])(n.getModel().get("name"),""),o=a.getTextRect(i),r=Math.max(o.width+2*C,e.emptyItemWidth);e.totalWidth+=r+E,e.renderList.push({node:n,text:i,width:r})}},t.prototype._renderContent=function(t,e,a,n,o){for(var r=0,s=e.emptyItemWidth,l=t.get(["breadcrumb","height"]),c=x["e"](e.pos,e.box),u=e.totalWidth,d=e.renderList,h=d.length-1;h>=0;h--){var p=d[h],f=p.node,m=p.width,g=p.text;u>c.width&&(u-=m-s,m=s,g=null);var _=new T["a"]({shape:{points:k(r,0,m,l,h===d.length-1,0===h)},style:Object(i["i"])(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new A["a"]({style:{text:g,fill:n.getTextColor(),font:n.getFont()}}),textConfig:{position:"inside"},z2:1e4*S["j"],onclick:Object(i["h"])(o,f)});_.disableLabelAnimation=!0,this.group.add(_),I(_,t,f),r+=m+E}},t.prototype.remove=function(){this.group.removeAll()},t}();function k(t,e,a,n,i,o){var r=[[i?t:t-w,e],[t+a,e],[t+a,e+n],[i?t:t-w,e+n]];return!o&&r.splice(2,0,[t+a+w,e+n/2]),!i&&r.push([t,e+n/2]),r}function I(t,e,a){Object(b["a"])(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:a&&a.dataIndex,name:a&&a.name},treePathInfo:a&&Object(n["d"])(a,e)}}var D=M,L=a("4a01"),R=a("9850"),N=a("1687"),P=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,a,n,i){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:n,easing:i}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},t}();function j(){return new P}var $=a("282b"),F=a("e887"),B=a("19eb"),Y=a("eda2"),U=a("7837"),z=v["a"],V=y["a"],H=3,G="label",W="upperLabel",K=10*S["j"],Z=2*S["j"],q=3*S["j"],X=Object($["a"])([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Q=function(t){var e=X(t);return e.stroke=e.fill=e.lineWidth=null,e},J=Object(d["o"])(),tt=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a._state="ready",a._storage=et(),a}return Object(s["a"])(e,t),e.prototype.render=function(t,e,a,o){var r=e.findComponents({mainType:"series",subType:"treemap",query:o});if(!(Object(i["r"])(r,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=e;var s=["treemapZoomToNode","treemapRootToNode"],l=n["c"](o,s,t),c=o&&o.type,u=t.layoutInfo,d=!this._oldTree,h=this._storage,p="treemapRootToNode"===c&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:o.direction}:null,f=this._giveContainerGroup(u),m=t.get("animation"),g=this._doRender(f,t,p);!m||d||c&&"treemapZoomToNode"!==c&&"treemapRootToNode"!==c?g.renderFinally():this._doAnimation(f,g,t,p),this._resetController(a),this._renderBreadcrumb(t,a,l)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new z,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,a){var n=e.getData().tree,o=this._oldTree,r=et(),s=et(),l=this._storage,c=[];function u(t,n,i,o){return at(e,s,l,a,r,c,t,n,i,o)}h(n.root?[n.root]:[],o&&o.root?[o.root]:[],t,n===o||!o,0);var d=p(l);return this._oldTree=n,this._storage=s,{lastsForAnimation:r,willDeleteEls:d,renderFinally:f};function h(t,e,a,n,o){function r(t){return t.getId()}function s(i,r){var s=null!=i?t[i]:null,l=null!=r?e[r]:null,c=u(s,l,a,o);c&&h(s&&s.viewChildren||[],l&&l.viewChildren||[],c,n,o+1)}n?(e=t,Object(i["k"])(t,(function(t,e){!t.isRemoved()&&s(e,e)}))):new O["a"](e,t,r,r).add(s).update(s).remove(Object(i["h"])(s,null)).execute()}function p(t){var e=et();return t&&Object(i["k"])(t,(function(t,a){var n=e[a];Object(i["k"])(t,(function(t){t&&(n.push(t),J(t).willDelete=!0)}))})),e}function f(){Object(i["k"])(d,(function(t){Object(i["k"])(t,(function(t){t.parent&&t.parent.remove(t)}))})),Object(i["k"])(c,(function(t){t.invisible=!0,t.dirty()}))}},e.prototype._doAnimation=function(t,e,a,n){var o=a.get("animationDurationUpdate"),r=a.get("animationEasing"),s=(Object(i["w"])(o)?0:o)||0,l=(Object(i["w"])(r)?null:r)||"cubicOut",c=j();Object(i["k"])(e.willDeleteEls,(function(t,e){Object(i["k"])(t,(function(t,a){if(!t.invisible){var i,o=t.parent,r=J(o);if(n&&"drillDown"===n.direction)i=o===n.rootNodeGroup?{shape:{x:0,y:0,width:r.nodeWidth,height:r.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,d=0;r.willDelete||(u=r.nodeWidth/2,d=r.nodeHeight/2),i="nodeGroup"===e?{x:u,y:d,style:{opacity:0}}:{shape:{x:u,y:d,width:0,height:0},style:{opacity:0}}}i&&c.add(t,i,s,0,l)}}))})),Object(i["k"])(this._storage,(function(t,a){Object(i["k"])(t,(function(t,n){var o=e.lastsForAnimation[a][n],r={};o&&(t instanceof v["a"]?null!=o.oldX&&(r.x=t.x,r.y=t.y,t.x=o.oldX,t.y=o.oldY):(o.oldShape&&(r.shape=Object(i["m"])({},t.shape),t.setShape(o.oldShape)),o.fadein?(t.setStyle("opacity",0),r.style={opacity:1}):1!==t.style.opacity&&(r.style={opacity:1})),c.add(t,r,s,0,l))}))}),this),this._state="animating",c.finished(Object(i["c"])((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller;e||(e=this._controller=new L["a"](t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",Object(i["c"])(this._onPan,this)),e.on("zoom",Object(i["c"])(this._onZoom,this)));var a=new R["a"](0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,n){return a.contain(e,n)}))},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>H||Math.abs(t.dy)>H)){var e=this.seriesModel.getData().tree.root;if(!e)return;var a=e.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var e=t.originX,a=t.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;var o=new R["a"](i.x,i.y,i.width,i.height),r=this.seriesModel.layoutInfo;e-=r.x,a-=r.y;var s=N["c"]();N["i"](s,s,[-e,-a]),N["h"](s,s,[t.scale,t.scale]),N["i"](s,s,[e,a]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var a=e.seriesModel.get("nodeClick",!0);if(a){var n=e.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)e._rootToNode(n);else if("zoomToNode"===a)e._zoomToNode(n);else if("link"===a){var o=i.hostTree.data.getItemModel(i.dataIndex),r=o.get("link",!0),s=o.get("target",!0)||"blank";r&&Object(Y["j"])(r,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,a){var i=this;a||(a=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new D(this.group))).render(t,e,a.node,(function(e){"animating"!==i._state&&(n["a"](t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=et(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var a,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},(function(n){var i=this._storage.background[n.getRawIndex()];if(i){var o=i.transformCoordToLocal(t,e),r=i.shape;if(!(r.x<=o[0]&&o[0]<=r.x+r.width&&r.y<=o[1]&&o[1]<=r.y+r.height))return!1;a={node:n,offsetX:o[0],offsetY:o[1]}}}),this),a},e.type="treemap",e}(F["a"]);function et(){return{nodeGroup:[],background:[],content:[]}}function at(t,e,a,n,o,r,s,l,c,u){if(s){var h=s.getLayout(),p=t.getData(),f=s.getModel();if(p.setItemGraphicEl(s.dataIndex,null),h&&h.isInView){var m=h.width,g=h.height,_=h.borderWidth,y=h.invisible,O=s.getRawIndex(),T=l&&l.getRawIndex(),A=s.viewChildren,x=h.upperHeight,C=A&&A.length,E=f.getModel("itemStyle"),w=f.getModel(["emphasis","itemStyle"]),M=f.getModel(["blur","itemStyle"]),k=f.getModel(["select","itemStyle"]),I=E.get("borderRadius")||0,D=at("nodeGroup",z);if(D){if(c.add(D),D.x=h.x||0,D.y=h.y||0,D.markRedraw(),J(D).nodeWidth=m,J(D).nodeHeight=g,h.isAboveViewRoot)return D;var L=at("background",V,u,Z);L&&Y(D,L,C&&h.upperLabelHeight);var R=f.getModel("emphasis"),N=R.get("focus"),P=R.get("blurScope"),j=R.get("disabled"),$="ancestor"===N?s.getAncestorsIndices():"descendant"===N?s.getDescendantIndices():N;if(C)Object(S["y"])(D)&&Object(S["F"])(D,!1),L&&(Object(S["F"])(L,!j),p.setItemGraphicEl(s.dataIndex,L),Object(S["p"])(L,$,P));else{var F=at("content",V,u,q);F&&H(D,F),L.disableMorphing=!0,L&&Object(S["y"])(L)&&Object(S["F"])(L,!1),Object(S["F"])(D,!j),p.setItemGraphicEl(s.dataIndex,D),Object(S["p"])(D,$,P)}return D}}}function Y(e,a,n){var i=Object(b["a"])(a);if(i.dataIndex=s.dataIndex,i.seriesIndex=t.seriesIndex,a.setShape({x:0,y:0,width:m,height:g,r:I}),y)K(a);else{a.invisible=!1;var o=s.getVisual("style"),r=o.stroke,l=Q(E);l.fill=r;var c=X(w);c.fill=w.get("borderColor");var u=X(M);u.fill=M.get("borderColor");var d=X(k);if(d.fill=k.get("borderColor"),n){var h=m-2*_;tt(a,r,o.opacity,{x:_,y:0,width:h,height:x})}else a.removeTextContent();a.setStyle(l),a.ensureState("emphasis").style=c,a.ensureState("blur").style=u,a.ensureState("select").style=d,Object(S["G"])(a)}e.add(a)}function H(e,a){var n=Object(b["a"])(a);n.dataIndex=s.dataIndex,n.seriesIndex=t.seriesIndex;var i=Math.max(m-2*_,0),o=Math.max(g-2*_,0);if(a.culling=!0,a.setShape({x:_,y:_,width:i,height:o,r:I}),y)K(a);else{a.invisible=!1;var r=s.getVisual("style"),l=r.fill,c=Q(E);c.fill=l,c.decal=r.decal;var u=X(w),d=X(M),h=X(k);tt(a,l,r.opacity,null),a.setStyle(c),a.ensureState("emphasis").style=u,a.ensureState("blur").style=d,a.ensureState("select").style=h,Object(S["G"])(a)}e.add(a)}function K(t){!t.invisible&&r.push(t)}function tt(e,a,n,o){var r=f.getModel(o?W:G),l=Object(d["e"])(f.get("name"),null),c=r.getShallow("show");Object(U["g"])(e,Object(U["e"])(f,o?W:G),{defaultText:c?l:null,inheritColor:a,defaultOpacity:n,labelFetcher:t,labelDataIndex:s.dataIndex});var u=e.getTextContent();if(u){var p=u.style,m=Object(i["M"])(p.padding||0);o&&(e.setTextConfig({layoutRect:o}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((o?o.width:e.shape.width)-m[1]-m[3],0),a=Math.max((o?o.height:e.shape.height)-m[0]-m[2],0);p.width===t&&p.height===a||u.setStyle({width:t,height:a})},p.truncateMinChar=2,p.lineOverflow="truncate",et(p,o,h);var g=u.getState("emphasis");et(g?g.style:null,o,h)}}function et(e,a,n){var i=e?e.text:null;if(!a&&n.isLeafRoot&&null!=i){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+i:i}}function at(t,n,i,r){var s=null!=T&&a[t][T],l=o[t];return s?(a[t][T]=null,it(l,s)):y||(s=new n,s instanceof B["c"]&&(s.z2=nt(i,r)),ot(l,s)),e[t][O]=s}function it(t,e){var a=t[O]={};e instanceof z?(a.oldX=e.x,a.oldY=e.y):a.oldShape=Object(i["m"])({},e.shape)}function ot(t,e){var a=t[O]={},i=s.parentNode,r=e instanceof v["a"];if(i&&(!n||"drillDown"===n.direction)){var l=0,c=0,u=o.background[i.getRawIndex()];!n&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),r?(a.oldX=0,a.oldY=c):a.oldShape={x:l,y:c,width:0,height:0}}a.fadein=!r}}function nt(t,e){return t*K+e}var it=tt,ot=a("5f14"),rt=a("41ef"),st="itemStyle",lt=Object(d["o"])(),ct={seriesType:"treemap",reset:function(t){var e=t.getData().tree,a=e.root;a.isRemoved()||ut(a,{},t.getViewRoot().getAncestors(),t)}};function ut(t,e,a,n){var o=t.getModel(),r=t.getLayout(),s=t.hostTree.data;if(r&&!r.invisible&&r.isInView){var l,c=o.getModel(st),u=dt(c,e,n),d=s.ensureUniqueItemVisual(t.dataIndex,"style"),h=c.get("borderColor"),p=c.get("borderColorSaturation");null!=p&&(l=ht(u),h=pt(p,l)),d.stroke=h;var f=t.viewChildren;if(f&&f.length){var m=mt(t,o,r,c,u,f);Object(i["k"])(f,(function(t,e){if(t.depth>=a.length||t===a[t.depth]){var i=_t(o,u,t,e,m,n);ut(t,i,a,n)}}))}else l=ht(u),d.fill=l}}function dt(t,e,a){var n=Object(i["m"])({},e),o=a.designatedVisualItemStyle;return Object(i["k"])(["color","colorAlpha","colorSaturation"],(function(a){o[a]=e[a];var i=t.get(a);o[a]=null,null!=i&&(n[a]=i)})),n}function ht(t){var e=ft(t,"color");if(e){var a=ft(t,"colorAlpha"),n=ft(t,"colorSaturation");return n&&(e=Object(rt["f"])(e,null,null,n)),a&&(e=Object(rt["e"])(e,a)),e}}function pt(t,e){return null!=e?Object(rt["f"])(e,null,null,t):null}function ft(t,e){var a=t[e];if(null!=a&&"none"!==a)return a}function mt(t,e,a,n,i,o){if(o&&o.length){var r=gt(e,"color")||null!=i.color&&"none"!==i.color&&(gt(e,"colorAlpha")||gt(e,"colorSaturation"));if(r){var s=e.get("visualMin"),l=e.get("visualMax"),c=a.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=l&&l>c[1]&&(c[1]=l);var u=e.get("colorMappingBy"),d={type:r.name,dataExtent:c,visual:r.range};"color"!==d.type||"index"!==u&&"id"!==u?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var h=new ot["a"](d);return lt(h).drColorMappingBy=u,h}}}function gt(t,e){var a=t.get(e);return Object(i["t"])(a)&&a.length?{name:e,range:a}:null}function _t(t,e,a,n,o,r){var s=Object(i["m"])({},e);if(o){var l=o.type,c="color"===l&&lt(o).drColorMappingBy,u="index"===c?n:"id"===c?r.mapIdToIndex(a.getId()):a.getValue(t.get("visualDimension"));s[l]=o.mapValueToVisual(u)}return s}var vt=a("3842"),yt=Math.max,bt=Math.min,St=i["O"],Ot=i["k"],Tt=["itemStyle","borderWidth"],At=["itemStyle","gapWidth"],xt=["upperLabel","show"],Ct=["upperLabel","height"],Et={seriesType:"treemap",reset:function(t,e,a,o){var r=a.getWidth(),s=a.getHeight(),l=t.option,c=x["g"](t.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()}),u=l.size||[],d=Object(vt["o"])(St(c.width,u[0]),r),h=Object(vt["o"])(St(c.height,u[1]),s),p=o&&o.type,f=["treemapZoomToNode","treemapRootToNode"],m=n["c"](o,f,t),g="treemapRender"===p||"treemapMove"===p?o.rootRect:null,_=t.getViewRoot(),v=n["b"](_);if("treemapMove"!==p){var y="treemapZoomToNode"===p?Nt(t,m,_,d,h):g?[g.width,g.height]:[d,h],b=l.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var S={squareRatio:l.squareRatio,sort:b,leafDepth:l.leafDepth};_.hostTree.clearLayouts();var O={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};_.setLayout(O),wt(_,S,!1,0),O=_.getLayout(),Ot(v,(function(t,e){var a=(v[e+1]||_).getValue();t.setLayout(i["m"]({dataExtent:[a,a],borderWidth:0,upperHeight:0},O))}))}var T=t.getData().tree.root;T.setLayout(Pt(c,g,m),!0),t.setLayoutInfo(c),jt(T,new R["a"](-c.x,-c.y,r,s),v,_,0)}};function wt(t,e,a,n){var i,o;if(!t.isRemoved()){var r=t.getLayout();i=r.width,o=r.height;var s=t.getModel(),l=s.get(Tt),c=s.get(At)/2,u=$t(s),d=Math.max(l,u),h=l-c,p=d-c;t.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:u},!0),i=yt(i-2*h,0),o=yt(o-h-p,0);var f=i*o,m=Mt(t,s,f,e,a,n);if(m.length){var g={x:h,y:p,width:i,height:o},_=bt(i,o),v=1/0,y=[];y.area=0;for(var b=0,S=m.length;b<S;){var O=m[b];y.push(O),y.area+=O.getLayout().area;var T=Lt(y,_,e.squareRatio);T<=v?(b++,v=T):(y.area-=y.pop().getLayout().area,Rt(y,_,g,c,!1),_=bt(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&Rt(y,_,g,c,!0),!a){var A=s.get("childrenVisibleMin");null!=A&&f<A&&(a=!0)}for(b=0,S=m.length;b<S;b++)wt(m[b],e,a,n+1)}}}function Mt(t,e,a,n,o,r){var s=t.children||[],l=n.sort;"asc"!==l&&"desc"!==l&&(l=null);var c=null!=n.leafDepth&&n.leafDepth<=r;if(o&&!c)return t.viewChildren=[];s=i["n"](s,(function(t){return!t.isRemoved()})),It(s,l);var u=Dt(e,s,l);if(0===u.sum)return t.viewChildren=[];if(u.sum=kt(e,a,u.sum,l,s),0===u.sum)return t.viewChildren=[];for(var d=0,h=s.length;d<h;d++){var p=s[d].getValue()/u.sum*a;s[d].setLayout({area:p})}return c&&(s.length&&t.setLayout({isLeafRoot:!0},!0),s.length=0),t.viewChildren=s,t.setLayout({dataExtent:u.dataExtent},!0),s}function kt(t,e,a,n,i){if(!n)return a;for(var o=t.get("visibleMin"),r=i.length,s=r,l=r-1;l>=0;l--){var c=i["asc"===n?r-l-1:l].getValue();c/a*e<o&&(s=l,a-=c)}return"asc"===n?i.splice(0,r-s):i.splice(s,r-s),a}function It(t,e){return e&&t.sort((function(t,a){var n="asc"===e?t.getValue()-a.getValue():a.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-a.dataIndex:a.dataIndex-t.dataIndex:n})),t}function Dt(t,e,a){for(var n=0,i=0,o=e.length;i<o;i++)n+=e[i].getValue();var r,s=t.get("visualDimension");return e&&e.length?"value"===s&&a?(r=[e[e.length-1].getValue(),e[0].getValue()],"asc"===a&&r.reverse()):(r=[1/0,-1/0],Ot(e,(function(t){var e=t.getValue(s);e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e)}))):r=[NaN,NaN],{sum:n,dataExtent:r}}function Lt(t,e,a){for(var n=0,i=1/0,o=0,r=void 0,s=t.length;o<s;o++)r=t[o].getLayout().area,r&&(r<i&&(i=r),r>n&&(n=r));var l=t.area*t.area,c=e*e*a;return l?yt(c*n/l,l/(c*i)):1/0}function Rt(t,e,a,n,i){var o=e===a.width?0:1,r=1-o,s=["x","y"],l=["width","height"],c=a[s[o]],u=e?t.area/e:0;(i||u>a[l[r]])&&(u=a[l[r]]);for(var d=0,h=t.length;d<h;d++){var p=t[d],f={},m=u?p.getLayout().area/u:0,g=f[l[r]]=yt(u-2*n,0),_=a[s[o]]+a[l[o]]-c,v=d===h-1||_<m?_:m,y=f[l[o]]=yt(v-2*n,0);f[s[r]]=a[s[r]]+bt(n,g/2),f[s[o]]=c+bt(n,y/2),c+=v,p.setLayout(f,!0)}a[s[r]]+=u,a[l[r]]-=u}function Nt(t,e,a,n,i){var o,r=(e||{}).node,s=[n,i];if(!r||r===a)return s;var l=n*i,c=l*t.option.zoomToNodeRatio;while(o=r.parentNode){for(var u=0,d=o.children,h=0,p=d.length;h<p;h++)u+=d[h].getValue();var f=r.getValue();if(0===f)return s;c*=u/f;var m=o.getModel(),g=m.get(Tt),_=Math.max(g,$t(m));c+=4*g*g+(3*g+_)*Math.pow(c,.5),c>vt["a"]&&(c=vt["a"]),r=o}c<l&&(c=l);var v=Math.pow(c/l,.5);return[n*v,i*v]}function Pt(t,e,a){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!a)return n;var i=a.node,o=i.getLayout();if(!o)return n;var r=[o.width/2,o.height/2],s=i;while(s){var l=s.getLayout();r[0]+=l.x,r[1]+=l.y,s=s.parentNode}return{x:t.width/2-r[0],y:t.height/2-r[1]}}function jt(t,e,a,n,i){var o=t.getLayout(),r=a[i],s=r&&r===t;if(!(r&&!s||i===a.length&&t!==n)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new R["a"](e.x-o.x,e.y-o.y,e.width,e.height);Ot(t.viewChildren||[],(function(t){jt(t,l,a,n,i+1)}))}}function $t(t){return t.get(xt)?t.get(Ct):0}function Ft(t){t.registerSeriesModel(_),t.registerChartView(it),t.registerVisual(ct),t.registerLayout(Et),r(t)}},"13e5":function(t,e,a){"use strict";a.d(e,"B",(function(){return d})),a.d(e,"C",(function(){return h})),a.d(e,"S",(function(){return p})),a.d(e,"R",(function(){return f})),a.d(e,"T",(function(){return m})),a.d(e,"nb",(function(){return g})),a.d(e,"h",(function(){return _})),a.d(e,"K",(function(){return v})),a.d(e,"I",(function(){return y})),a.d(e,"J",(function(){return b})),a.d(e,"eb",(function(){return S})),a.d(e,"hb",(function(){return O})),a.d(e,"kb",(function(){return T})),a.d(e,"fb",(function(){return A})),a.d(e,"gb",(function(){return x})),a.d(e,"cb",(function(){return C})),a.d(e,"c",(function(){return E})),a.d(e,"d",(function(){return w})),a.d(e,"e",(function(){return M})),a.d(e,"E",(function(){return k})),a.d(e,"q",(function(){return I})),a.d(e,"f",(function(){return D})),a.d(e,"ib",(function(){return L})),a.d(e,"jb",(function(){return R})),a.d(e,"ab",(function(){return N})),a.d(e,"Z",(function(){return P})),a.d(e,"bb",(function(){return j})),a.d(e,"V",(function(){return $})),a.d(e,"W",(function(){return F})),a.d(e,"X",(function(){return B})),a.d(e,"U",(function(){return Y})),a.d(e,"db",(function(){return U})),a.d(e,"Y",(function(){return z})),a.d(e,"s",(function(){return V})),a.d(e,"n",(function(){return H})),a.d(e,"o",(function(){return G})),a.d(e,"t",(function(){return W})),a.d(e,"m",(function(){return K})),a.d(e,"r",(function(){return Z})),a.d(e,"x",(function(){return q})),a.d(e,"u",(function(){return X})),a.d(e,"z",(function(){return Q})),a.d(e,"y",(function(){return J})),a.d(e,"v",(function(){return tt})),a.d(e,"A",(function(){return et})),a.d(e,"w",(function(){return at})),a.d(e,"k",(function(){return nt})),a.d(e,"j",(function(){return it})),a.d(e,"a",(function(){return ot})),a.d(e,"p",(function(){return rt})),a.d(e,"b",(function(){return st})),a.d(e,"l",(function(){return lt})),a.d(e,"i",(function(){return ct})),a.d(e,"F",(function(){return ut})),a.d(e,"G",(function(){return dt})),a.d(e,"ob",(function(){return ht})),a.d(e,"Q",(function(){return pt})),a.d(e,"rb",(function(){return ft})),a.d(e,"mb",(function(){return mt})),a.d(e,"H",(function(){return gt})),a.d(e,"L",(function(){return _t})),a.d(e,"pb",(function(){return vt})),a.d(e,"D",(function(){return yt})),a.d(e,"lb",(function(){return bt})),a.d(e,"N",(function(){return St})),a.d(e,"M",(function(){return Ot})),a.d(e,"P",(function(){return Tt})),a.d(e,"O",(function(){return At})),a.d(e,"qb",(function(){return xt})),a.d(e,"g",(function(){return Ct})),a.d(e,"sb",(function(){return Et}));var n=a("5530"),i=(a("e9c4"),a("99af"),a("ac1f"),a("1276"),a("b1b6")),o=a("7f80"),r=a("6365"),s=function(){return r["a"].locale},l=s,c="https://das-server.tool4seller.com",u={en:"en_us","zh-CN":"zh_cn","zh-TW":"zh_tw",ja_jp:"ja_jp"},d=function(t){return Object(o["e"])("/posted/profitInfo/financeRemovalDetail",t)},h=function(t){return Object(o["e"])("/posted/profitInfo/financeRemovalSum",t)},p=function(t){return Object(o["f"])("/profitInfo/setting",t)},f=function(t){return Object(o["e"])("/profitInfo/renew",t)},m=function(t){return Object(o["e"])("/profitInfo/taxRate",t)},g=function(t){return Object(o["f"])("/profitInfo/taxRate",t)},_=function(t){return Object(o["e"])("/cost/splitFee/process",t)},v=function(t){return Object(o["e"])("/posted/profitInfo/renew",t)},y=function(t){return Object(o["e"])("/posted/profitInfo/shop/OtherFeeDetail",t)},b=function(t){return Object(o["e"])("/posted/profitInfo/shop/OtherFeeDetail/days",t)},S=function(t){return Object(o["f"])("/profitInfo/shop",t)},O=function(t){return Object(o["f"])("/posted/profitInfo/shop",t)},T=function(t){return Object(o["e"])("/profitInfo/multi-shop/sum",t)},A=function(t){return Object(o["f"])("/profitInfo/shop/days",t)},x=function(t){return Object(o["f"])("/posted/profitInfo/shop/days",t)},C=function(t){return Object(o["e"])("/sales/summary/segment-hour",t)},E=function(t,e){if(t.length&&t[0].dasCurrentShop){var a=t[0].dasCurrentShop||"",n=JSON.parse(JSON.stringify(t));return delete n[0].dasCurrentShop,e?Object(o["f"])("/cost/save/list?dasCurrentShop=".concat(a,"&remark=").concat(e),n):Object(o["f"])("/cost/save/list?dasCurrentShop=".concat(a),n)}return e?Object(o["f"])("/cost/save/list?remark=".concat(e),t):Object(o["f"])("/cost/save/list",t)},w=function(t,e){return Object(o["f"])("/cost/save/costLog?remark=".concat(e),t)},M=function(t,e,a){return Object(o["f"])("/cost/save/costLog?dasCurrentShop=".concat(e,"&remark=").concat(a),t)},k=function(t){return Object(o["e"])("/cost/operateLog",t)},I=function(t){return Object(o["g"])("/cost/operateLog/remark",t)},D=function(t){return Object(o["f"])("/cost/report/operateLog",t)},L=function(t){return Object(o["f"])("/profitInfo/list/sku/page",t)},R=function(t){return Object(o["f"])("/posted/profitInfo/list/sku/page",t)},N=function(t){return Object(o["e"])("/profitInfo/order/list",t)},P=function(t){return Object(o["e"])("/profitInfo/order/detail/".concat(t.orderId),t)},j=function(t){return Object(o["e"])("/profitInfo/list/parentAsin",t)},$=function(t){return Object(o["f"])("/profitInfo/list/asin/all",t)},F=function(t){return Object(o["f"])("/posted/profitInfo/list/asin/all",t)},B=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.dasCurrentShop){var a=t.dasCurrentShop||"",n=JSON.parse(JSON.stringify(t));return delete n.dasCurrentShop,Object(o["f"])("/cost/get?dasCurrentShop=".concat(a),n,e)}return Object(o["f"])("/cost/get",t,e)},Y=function(t){return Object(o["e"])("/sales/realtime-summary/segment",t)},U=function(t){return Object(o["e"])("/refundReport/multi/summary/segment-day",t)},z=function(t){return Object(o["e"])("/profitInfo/shop/financeFeeDetail",t)},V=function(t,e){return e=e||{},Object(o["f"])("/customCost/import",t,e)},H=function(t){return t=Object(n["a"])(Object(n["a"])({},t),{},{token:localStorage.getItem("token").split(" ")[1]}),window.location.href="".concat(c,"/customCost/template")+Object(i["a"])(t)},G=function(t){return Object(o["f"])("/cost/report/template",t)},W=function(t,e,a,n){return e=e||{},e.timeout=12e4,Object(o["f"])("/cost/import/".concat(n,"?remark=").concat(a),t,e)},K=function(t){return t=Object(n["a"])(Object(n["a"])({},t),{},{token:localStorage.getItem("token").split(" ")[1],DisplayLanguage:u[l()]}),window.location.href="".concat(c,"/cost/downTemplate/shipment")+Object(i["a"])(t)},Z=function(t,e){return e=e||{},e.timeout=12e4,Object(o["f"])("/cost/importCost/shipment",t,e)},q=function(t){return t=Object(n["a"])(Object(n["a"])({},t),{},{token:localStorage.getItem("token").split(" ")[1],DisplayLanguage:u[l()]}),window.location.href="".concat(c,"/profitInfo/report/list/parentAsin")+Object(i["a"])(t)},X=function(t){return t=Object(n["a"])(Object(n["a"])({},t),{},{token:localStorage.getItem("token").split(" ")[1],DisplayLanguage:u[l()]}),window.location.href="".concat(c,"/profitInfo/report/list/asin")+Object(i["a"])(t)},Q=function(t){return t=Object(n["a"])(Object(n["a"])({},t),{},{token:localStorage.getItem("token").split(" ")[1],DisplayLanguage:u[l()]}),window.location.href="".concat(c,"/profitInfo/report/list/sku")+Object(i["a"])(t)},J=function(t){return t=Object(n["a"])(Object(n["a"])({},t),{},{token:localStorage.getItem("token").split(" ")[1],DisplayLanguage:u[l()]}),window.location.href="".concat(c,"/posted/profitInfo/report/list/parentAsin")+Object(i["a"])(t)},tt=function(t){return t=Object(n["a"])(Object(n["a"])({},t),{},{token:localStorage.getItem("token").split(" ")[1],DisplayLanguage:u[l()]}),window.location.href="".concat(c,"/posted/profitInfo/report/list/asin")+Object(i["a"])(t)},et=function(t){return t=Object(n["a"])(Object(n["a"])({},t),{},{token:localStorage.getItem("token").split(" ")[1],DisplayLanguage:u[l()]}),window.location.href="".concat(c,"/posted/profitInfo/report/list/sku")+Object(i["a"])(t)},at=function(t){return Object(o["f"])("/posted/profitInfo/list/report",t)},nt=function(t){return Object(o["e"])("/customCost/costType",t)},it=function(t){return Object(o["e"])("/customCost/list",t)},ot=function(t){return Object(o["f"])("/customCost/save",t)},rt=function(t){return Object(o["f"])("/customCost/update",t)},st=function(t){return Object(o["f"])("/customCost/batch/delete",t)},lt=function(t){return Object(o["e"])("/customCost/delete",t)},ct=function(t){return Object(o["e"])("/profitInfo/costDefined/detail",t)},ut=function(t){return Object(o["e"])("/cost/costEmptyCount/asin",t)},dt=function(t){return Object(o["e"])("/cost/costEmptyCount/parentAsin",t)},ht=function(t){return Object(o["f"])("/cost/save/taxRate",t)},pt=function(t){return Object(o["e"])("/cost/get/taxRate",t)},ft=function(t){return Object(o["f"])("/cost/syn/taxRate",t)},mt=function(t,e){return e?Object(o["f"])("/cost/save/taxRate/log?dasCurrentShop=".concat(e),t):Object(o["f"])("/cost/save/taxRate/log",t)},gt=function(t){return Object(o["e"])("/cost/get/taxRate/log",t)},_t=function(t){return Object(o["e"])("/shop/setting",t)},vt=function(t){return Object(o["f"])("/shop/setting",t)},yt=function(t){return Object(o["e"])("/cost/splitFee/autoConfig",t)},bt=function(t){return Object(o["f"])("/cost/splitFee/autoConfig",t)},St=function(t){return Object(o["e"])("/cost/splitFee/list",t)},Ot=function(t){return Object(o["e"])("/cost/splitFee/config/list",t)},Tt=function(t){return Object(o["e"])("/cost/splitFee/history/list",t)},At=function(t){return Object(o["e"])("/cost/splitFee/result/list",t)},xt=function(t,e){return e&&e.startDate&&e.endDate?Object(o["f"])("/cost/splitFee/config/save?startDate=".concat(e.startDate,"&endDate=").concat(e.endDate,"&process=").concat(e.process),t):Object(o["f"])("/cost/splitFee/config/save",t)},Ct=function(t,e){return e=e||{},Object(o["f"])("/cost/splitFee/parser",t,e)},Et=function(t,e){return Object(o["f"])("/cost/splitFee/config/updateRuleType?ruleType=".concat(e),t)}},1459:function(t,e,a){"use strict";a.d(e,"a",(function(){return y}));var n=a("6d8b"),i=a("50e5"),o=a("3842"),r=a("ef6a"),s=a("697e"),l=a("538f"),c=a("e0d3"),u=n["k"],d=o["c"],h=function(){function t(t,e,a,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=a}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(Object(i["e"])(e)){var a=Object(i["d"])(this._dimName),n=e.getReferringComponents(a,c["b"]).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return n["d"](this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,a=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,s=this._dataZoomModel.getRangePropMode(),l=[0,100],c=[],h=[];u(["start","end"],(function(n,r){var u=t[n],d=t[n+"Value"];"percent"===s[r]?(null==u&&(u=l[r]),d=i.parse(o["k"](u,l,a))):(e=!0,d=null==d?a[r]:i.parse(d),u=o["k"](d,a,l)),h[r]=d,c[r]=u})),d(h),d(c);var p=this._minMaxSpan;function f(t,e,a,n,s){var l=s?"Span":"ValueSpan";Object(r["a"])(0,t,a,"all",p["min"+l],p["max"+l]);for(var c=0;c<2;c++)e[c]=o["k"](t[c],a,n,!0),s&&(e[c]=i.parse(e[c]))}return e?f(h,c,a,l,!1):f(c,h,l,a,!0),{valueWindow:h,percentWindow:c}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=p(this,this._dimName,e),this._updateMinMaxSpan();var a=this.calculateDataWindow(t.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var a=this._dimName,i=this.getTargetSeriesModels(),o=t.get("filterMode"),r=this._valueWindow;"none"!==o&&u(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(a);if(i.length){if("weakFilter"===o){var l=e.getStore(),c=n["H"](i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,a,n,o=0;o<i.length;o++){var s=l.get(c[o],t),u=!isNaN(s),d=s<r[0],h=s>r[1];if(u&&!d&&!h)return!0;u&&(n=!0),d&&(e=!0),h&&(a=!0)}return n&&e&&a}))}else u(i,(function(a){if("empty"===o)t.setData(e=e.map(a,(function(t){return s(t)?t:NaN})));else{var n={};n[a]=r,e.selectRange(n)}}));u(i,(function(t){e.setApproximateExtent(r,t)}))}}))}function s(t){return t>=r[0]&&t<=r[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;u(["min","max"],(function(n){var i=e.get(n+"Span"),r=e.get(n+"ValueSpan");null!=r&&(r=this.getAxisModel().axis.scale.parse(r)),null!=r?i=o["k"](a[0]+r,a,[0,100],!0):null!=i&&(r=o["k"](i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=r}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var n=o["f"](a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;0!==e[0]&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),100!==e[1]&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},t}();function p(t,e,a){var n=[1/0,-1/0];u(a,(function(t){Object(s["k"])(n,t.getData(),e)}));var i=t.getAxisModel(),o=Object(l["a"])(i.axis.scale,i,n).calculate();return[o.min,o.max]}var f=h,m={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(a){a.eachTargetAxis((function(n,o){var r=t.getComponent(Object(i["d"])(n),o);e(n,o,r,a)}))}))}e((function(t,e,a,n){a.__dzAxisProxy=null}));var a=[];e((function(e,n,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new f(e,n,o,t),a.push(i.__dzAxisProxy))}));var o=Object(n["f"])();return Object(n["k"])(a,(function(t){Object(n["k"])(t.getTargetSeriesModels(),(function(t){o.set(t.uid,t)}))})),o},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,a){t.getAxisProxy(e,a).reset(t)})),t.eachTargetAxis((function(a,n){t.getAxisProxy(a,n).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var a=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:n[0],endValue:n[1]})}}))}},g=m;function _(t){t.registerAction("dataZoom",(function(t,e){var a=Object(i["c"])(e,t);Object(n["k"])(a,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var v=!1;function y(t){v||(v=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,g),_(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}},"16f6":function(t,e,a){},"18a5":function(t,e,a){"use strict";var n=a("23e7"),i=a("857a"),o=a("af03");n({target:"String",proto:!0,forced:o("anchor")},{anchor:function(t){return i(this,"a","name",t)}})},"18bb":function(t,e,a){},"191a":function(t,e,a){"use strict";a("e2a7")},"19b2":function(t,e,a){},"1a99":function(t,e,a){"use strict";a("6d51")},"1d52":function(t,e,a){"use strict";var n=a("5530"),i=a("8469"),o=a("d80f"),r=a("2f62"),s=a("bbf0");e["a"]={data:function(){return{modalTitle:"",apiParams:{},showDraggablePad:!1}},computed:Object(n["a"])({},Object(r["c"])({CURRENT_SHOP:s["f"]})),components:{DragKeywordChart:i["a"]},methods:{goAmazonKeywordSearch:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",a=arguments.length>2?arguments[2]:void 0,n="";n="https://"+o["C"][a||t.marketplaceId||this.CURRENT_SHOP.marketplaceId].domain+"/s?k=",n+=t[e],window.open(n)},showDetailChart:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",a=arguments.length>2?arguments[2]:void 0;this.modalTitle=t[e],this.apiParams={keywords:t[e],marketplaceId:a||t.marketplaceId||this.CURRENT_SHOP.marketplaceId},this.showDraggablePad=!0}}}},"1da3":function(t,e,a){},"1e5f":function(t,e,a){"use strict";a("453e")},"1f97":function(t,e,a){"use strict";a("6b39")},"1f98":function(t,e,a){"use strict";a.d(e,"p",(function(){return r})),a.d(e,"m",(function(){return s})),a.d(e,"n",(function(){return l})),a.d(e,"v",(function(){return c})),a.d(e,"c",(function(){return u})),a.d(e,"b",(function(){return d})),a.d(e,"u",(function(){return h})),a.d(e,"w",(function(){return p})),a.d(e,"f",(function(){return f})),a.d(e,"s",(function(){return m})),a.d(e,"j",(function(){return g})),a.d(e,"d",(function(){return _})),a.d(e,"h",(function(){return v})),a.d(e,"a",(function(){return y})),a.d(e,"z",(function(){return b})),a.d(e,"x",(function(){return S})),a.d(e,"y",(function(){return O})),a.d(e,"e",(function(){return T})),a.d(e,"t",(function(){return A})),a.d(e,"k",(function(){return x})),a.d(e,"l",(function(){return C})),a.d(e,"r",(function(){return E})),a.d(e,"g",(function(){return w})),a.d(e,"o",(function(){return M})),a.d(e,"i",(function(){return k})),a.d(e,"q",(function(){return I}));var n=a("ade3"),i=(a("d3b7"),a("db49"),a("7f80")),o=a("bbc6"),r=function(t){return t.marketplaceId&&t.asins?Object(i["e"])("/asin-tracker/search",t):Promise.resolve({content:"params are invalid",status:2})},s=function(t){return Object(i["e"])("/asin-tracker/marketplace",t)},l=function(t){return t.currentPage&&t.pageSize?Object(i["e"])("/asin-tracker/page",t):Promise.resolve({content:"params are invalid",status:2})},c=function(t){return Object(i["f"])("/asin-tracker/asin/trace",t)},u=function(t,e){return Object(i["f"])("/asin-tracker/my-product/trace?dasCurrentShop=".concat(e),t)},d=function(t){return Object(i["f"])("/asin-tracker/my-product/competitor/add",t)},h=function(){return Object(i["e"])("/asin-tracker/count",{},Object(n["a"])({},o["b"],!0))},p=function(t){return Object(i["c"])("/asin-tracker/delete",{},{data:t})},f=function(t){return Object(i["e"])("/asin-tracker/category",t)},m=function(t){return Object(i["e"])("/asin-tracker/group",t)},g=function(t){return Object(i["g"])("/asin-tracker/group",t)},_=function(t){return Object(i["f"])("/asin-tracker/group",t)},v=function(t){return Object(i["d"])("/asin-tracker/group",t)},y=function(t){return Object(i["f"])("/asin-tracker/associated-asin",t)},b=function(t){return Object(i["g"])("/asin-tracker/remark",t)},S=function(t){return Object(i["g"])("/asin-tracker/top",t)},O=function(t){return Object(i["g"])("/asin-tracker/untop",t)},T=function(t){return Object(i["f"])("/asin-tracker/group/bind",t)},A=function(t){return Object(i["e"])("/asin-tracker/competitor-page",t)},x=function(t){return Object(i["f"])("/asin-tracker/associated-asin-info",t)},C=function(t){return Object(i["e"])("/asin-tracker/page",t)},E=function(t){return Object(i["e"])("/asin-tracker/traced-asin",t)},w=function(t){return Object(i["d"])("/asin-tracker/my-product/competitor/remove",t)},M=function(t){return Object(i["e"])("/asin-tracker/competitor-asin-page",t)},k=function(t){return Object(i["f"])("/asin-tracker/export",t)},I=function(t){return Object(i["e"])("/asin-tracker/secondary-user",t)}},2145:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"b",(function(){return r}));var n=function(){function t(){}return t}(),i={};function o(t,e){i[t]=e}function r(t){return i[t]}},"23c8":function(t,e,a){"use strict";a("e40b")},2449:function(t,e,a){"use strict";var n=a("7fae"),i=a("6d8b"),o=a("22d1"),r=a("38a2"),s=a("6cb7"),l=a("e0d3"),c=a("217c");function u(t){Object(l["f"])(t,"label",["show"])}var d=Object(l["o"])(),h=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.createdBySelf=!1,a}return Object(n["a"])(e,t),e.prototype.init=function(t,e,a){this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(o["a"].node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,a,n){var o=this.mainType;a||e.eachSeries((function(t){var a=t.get(this.mainType,!0),r=d(t)[o];a&&a.data?(r?r._mergeOption(a,e,!0):(n&&u(a),i["k"](a.data,(function(t){t instanceof Array?(u(t[0]),u(t[1])):u(t)})),r=this.createMarkerModelFromSeries(a,this,e),i["m"](r,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),r.__hostSeries=t),d(t)[o]=r):d(t)[o]=null}),this)},e.prototype.formatTooltip=function(t,e,a){var n=this.getData(),i=this.getRawValue(t),o=n.getName(t);return Object(c["c"])("section",{header:this.name,blocks:[Object(c["c"])("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return d(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(s["a"]);i["K"](h,r["a"].prototype),e["a"]=h},"25ca":function(t,e,a){"use strict";(function(t,n){a.d(e,"b",(function(){return ii})),a.d(e,"a",(function(){return Ai}));
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
var i={version:"0.18.5"},o=1200,r=1252,s=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],l={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},c=function(t){-1!=s.indexOf(t)&&(r=l[0]=t)};function u(){c(1252)}var d=function(t){o=t,c(t)};function h(){d(1200),u()}var p,f=function(t){return String.fromCharCode(t)};var m=null,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function _(t){for(var e="",a=0,n=0,i=0,o=0,r=0,s=0,l=0,c=0;c<t.length;)a=t.charCodeAt(c++),o=a>>2,n=t.charCodeAt(c++),r=(3&a)<<4|n>>4,i=t.charCodeAt(c++),s=(15&n)<<2|i>>6,l=63&i,isNaN(n)?s=l=64:isNaN(i)&&(l=64),e+=g.charAt(o)+g.charAt(r)+g.charAt(s)+g.charAt(l);return e}function v(t){var e="",a=0,n=0,i=0,o=0,r=0,s=0,l=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<t.length;)o=g.indexOf(t.charAt(c++)),r=g.indexOf(t.charAt(c++)),a=o<<2|r>>4,e+=String.fromCharCode(a),s=g.indexOf(t.charAt(c++)),n=(15&r)<<4|s>>2,64!==s&&(e+=String.fromCharCode(n)),l=g.indexOf(t.charAt(c++)),i=(3&s)<<6|l,64!==l&&(e+=String.fromCharCode(i));return e}var y=function(){return"undefined"!==typeof t&&"undefined"!==typeof n&&"undefined"!==typeof n.versions&&!!n.versions.node}(),b=function(){if("undefined"!==typeof t){var e=!t.from;if(!e)try{t.from("foo","utf8")}catch(a){e=!0}return e?function(e,a){return a?new t(e,a):new t(e)}:t.from.bind(t)}return function(){}}();function S(e){return y?t.alloc?t.alloc(e):new t(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function O(e){return y?t.allocUnsafe?t.allocUnsafe(e):new t(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var T=function(t){return y?b(t,"binary"):t.split("").map((function(t){return 255&t.charCodeAt(0)}))};function A(t){if("undefined"===typeof ArrayBuffer)return T(t);for(var e=new ArrayBuffer(t.length),a=new Uint8Array(e),n=0;n!=t.length;++n)a[n]=255&t.charCodeAt(n);return e}function x(t){if(Array.isArray(t))return t.map((function(t){return String.fromCharCode(t)})).join("");for(var e=[],a=0;a<t.length;++a)e[a]=String.fromCharCode(t[a]);return e.join("")}function C(t){if("undefined"===typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(t)}var E=y?function(e){return t.concat(e.map((function(e){return t.isBuffer(e)?e:b(e)})))}:function(t){if("undefined"!==typeof Uint8Array){var e=0,a=0;for(e=0;e<t.length;++e)a+=t[e].length;var n=new Uint8Array(a),i=0;for(e=0,a=0;e<t.length;a+=i,++e)if(i=t[e].length,t[e]instanceof Uint8Array)n.set(t[e],a);else{if("string"==typeof t[e])throw"wtf";n.set(new Uint8Array(t[e]),a)}return n}return[].concat.apply([],t.map((function(t){return Array.isArray(t)?t:[].slice.call(t)})))};function w(t){for(var e=[],a=0,n=t.length+250,i=S(t.length+255),o=0;o<t.length;++o){var r=t.charCodeAt(o);if(r<128)i[a++]=r;else if(r<2048)i[a++]=192|r>>6&31,i[a++]=128|63&r;else if(r>=55296&&r<57344){r=64+(1023&r);var s=1023&t.charCodeAt(++o);i[a++]=240|r>>8&7,i[a++]=128|r>>2&63,i[a++]=128|s>>6&15|(3&r)<<4,i[a++]=128|63&s}else i[a++]=224|r>>12&15,i[a++]=128|r>>6&63,i[a++]=128|63&r;a>n&&(e.push(i.slice(0,a)),a=0,i=S(65535),n=65530)}return e.push(i.slice(0,a)),E(e)}var M=/\u0000/g,k=/[\u0001-\u0006]/g;function I(t){var e="",a=t.length-1;while(a>=0)e+=t.charAt(a--);return e}function D(t,e){var a=""+t;return a.length>=e?a:ae("0",e-a.length)+a}function L(t,e){var a=""+t;return a.length>=e?a:ae(" ",e-a.length)+a}function R(t,e){var a=""+t;return a.length>=e?a:a+ae(" ",e-a.length)}function N(t,e){var a=""+Math.round(t);return a.length>=e?a:ae("0",e-a.length)+a}function P(t,e){var a=""+t;return a.length>=e?a:ae("0",e-a.length)+a}var j=Math.pow(2,32);function F(t,e){if(t>j||t<-j)return N(t,e);var a=Math.round(t);return P(a,e)}function B(t,e){return e=e||0,t.length>=7+e&&103===(32|t.charCodeAt(e))&&101===(32|t.charCodeAt(e+1))&&110===(32|t.charCodeAt(e+2))&&101===(32|t.charCodeAt(e+3))&&114===(32|t.charCodeAt(e+4))&&97===(32|t.charCodeAt(e+5))&&108===(32|t.charCodeAt(e+6))}var Y=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],U=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function z(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',t}var V={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},H={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},G={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function W(t,e,a){var n=t<0?-1:1,i=t*n,o=0,r=1,s=0,l=1,c=0,u=0,d=Math.floor(i);while(c<e){if(d=Math.floor(i),s=d*r+o,u=d*c+l,i-d<5e-8)break;i=1/(i-d),o=r,r=s,l=c,c=u}if(u>e&&(c>e?(u=l,s=o):(u=c,s=r)),!a)return[0,n*s,u];var h=Math.floor(n*s/u);return[h,n*s-h*u,u]}function K(t,e,a){if(t>2958465||t<0)return null;var n=0|t,i=Math.floor(86400*(t-n)),o=0,r=[],s={D:n,T:i,u:86400*(t-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),e&&e.date1904&&(n+=1462),s.u>.9999&&(s.u=0,86400==++i&&(s.T=i=0,++n,++s.D)),60===n)r=a?[1317,10,29]:[1900,2,29],o=3;else if(0===n)r=a?[1317,8,29]:[1900,1,0],o=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),r=[l.getFullYear(),l.getMonth()+1,l.getDate()],o=l.getDay(),n<60&&(o=(o+6)%7),a&&(o=ot(l,r))}return s.y=r[0],s.m=r[1],s.d=r[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=o,s}var Z=new Date(1899,11,31,0,0,0),q=Z.getTime(),X=new Date(1900,2,1,0,0,0);function Q(t,e){var a=t.getTime();return e?a-=1262304e5:t>=X&&(a+=864e5),(a-(q+6e4*(t.getTimezoneOffset()-Z.getTimezoneOffset())))/864e5}function J(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function tt(t){return-1==t.indexOf("E")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function et(t){var e=t<0?12:11,a=J(t.toFixed(12));return a.length<=e?a:(a=t.toPrecision(10),a.length<=e?a:t.toExponential(5))}function at(t){var e=J(t.toFixed(11));return e.length>(t<0?12:11)||"0"===e||"-0"===e?t.toPrecision(6):e}function nt(t){var e,a=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return e=a>=-4&&a<=-1?t.toPrecision(10+a):Math.abs(a)<=9?et(t):10===a?t.toFixed(10).substr(0,12):at(t),J(tt(e.toUpperCase()))}function it(t,e){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):nt(t);case"undefined":return"";case"object":if(null==t)return"";if(t instanceof Date)return Pt(14,Q(t,e&&e.date1904),e)}throw new Error("unsupported value in General format: "+t)}function ot(t,e){e[0]-=581;var a=t.getDay();return t<60&&(a=(a+6)%7),a}function rt(t,e,a,n){var i,o="",r=0,s=0,l=a.y,c=0;switch(t){case 98:l=a.y+543;case 121:switch(e.length){case 1:case 2:i=l%100,c=2;break;default:i=l%1e4,c=4;break}break;case 109:switch(e.length){case 1:case 2:i=a.m,c=e.length;break;case 3:return U[a.m-1][1];case 5:return U[a.m-1][0];default:return U[a.m-1][2]}break;case 100:switch(e.length){case 1:case 2:i=a.d,c=e.length;break;case 3:return Y[a.q][0];default:return Y[a.q][1]}break;case 104:switch(e.length){case 1:case 2:i=1+(a.H+11)%12,c=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:i=a.H,c=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:i=a.M,c=e.length;break;default:throw"bad minute format: "+e}break;case 115:if("s"!=e&&"ss"!=e&&".0"!=e&&".00"!=e&&".000"!=e)throw"bad second format: "+e;return 0!==a.u||"s"!=e&&"ss"!=e?(s=n>=2?3===n?1e3:100:1===n?10:1,r=Math.round(s*(a.S+a.u)),r>=60*s&&(r=0),"s"===e?0===r?"0":""+r/s:(o=D(r,2+n),"ss"===e?o.substr(0,2):"."+o.substr(2,e.length-1))):D(a.S,e.length);case 90:switch(e){case"[h]":case"[hh]":i=24*a.D+a.H;break;case"[m]":case"[mm]":i=60*(24*a.D+a.H)+a.M;break;case"[s]":case"[ss]":i=60*(60*(24*a.D+a.H)+a.M)+Math.round(a.S+a.u);break;default:throw"bad abstime format: "+e}c=3===e.length?1:2;break;case 101:i=l,c=1;break}var u=c>0?D(i,c):"";return u}function st(t){var e=3;if(t.length<=e)return t;for(var a=t.length%e,n=t.substr(0,a);a!=t.length;a+=e)n+=(n.length>0?",":"")+t.substr(a,e);return n}var lt=/%/g;function ct(t,e,a){var n=e.replace(lt,""),i=e.length-n.length;return wt(t,n,a*Math.pow(10,2*i))+ae("%",i)}function ut(t,e,a){var n=e.length-1;while(44===e.charCodeAt(n-1))--n;return wt(t,e.substr(0,n),a/Math.pow(10,3*(e.length-n)))}function dt(t,e){var a,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==e)return"0.0E+0";if(e<0)return"-"+dt(t,-e);var i=t.indexOf(".");-1===i&&(i=t.indexOf("E"));var o=Math.floor(Math.log(e)*Math.LOG10E)%i;if(o<0&&(o+=i),a=(e/Math.pow(10,o)).toPrecision(n+1+(i+o)%i),-1===a.indexOf("e")){var r=Math.floor(Math.log(e)*Math.LOG10E);-1===a.indexOf(".")?a=a.charAt(0)+"."+a.substr(1)+"E+"+(r-a.length+o):a+="E+"+(r-o);while("0."===a.substr(0,2))a=a.charAt(0)+a.substr(2,i)+"."+a.substr(2+i),a=a.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");a=a.replace(/\+-/,"-")}a=a.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(t,e,a,n){return e+a+n.substr(0,(i+o)%i)+"."+n.substr(o)+"E"}))}else a=e.toExponential(n);return t.match(/E\+00$/)&&a.match(/e[+-]\d$/)&&(a=a.substr(0,a.length-1)+"0"+a.charAt(a.length-1)),t.match(/E\-/)&&a.match(/e\+/)&&(a=a.replace(/e\+/,"e")),a.replace("e","E")}var ht=/# (\?+)( ?)\/( ?)(\d+)/;function pt(t,e,a){var n=parseInt(t[4],10),i=Math.round(e*n),o=Math.floor(i/n),r=i-o*n,s=n;return a+(0===o?"":""+o)+" "+(0===r?ae(" ",t[1].length+1+t[4].length):L(r,t[1].length)+t[2]+"/"+t[3]+D(s,t[4].length))}function ft(t,e,a){return a+(0===e?"":""+e)+ae(" ",t[1].length+2+t[4].length)}var mt=/^#*0*\.([0#]+)/,gt=/\).*[0#]/,_t=/\(###\) ###\\?-####/;function vt(t){for(var e,a="",n=0;n!=t.length;++n)switch(e=t.charCodeAt(n)){case 35:break;case 63:a+=" ";break;case 48:a+="0";break;default:a+=String.fromCharCode(e)}return a}function yt(t,e){var a=Math.pow(10,e);return""+Math.round(t*a)/a}function bt(t,e){var a=t-Math.floor(t),n=Math.pow(10,e);return e<(""+Math.round(a*n)).length?0:Math.round(a*n)}function St(t,e){return e<(""+Math.round((t-Math.floor(t))*Math.pow(10,e))).length?1:0}function Ot(t){return t<2147483647&&t>-2147483648?""+(t>=0?0|t:t-1|0):""+Math.floor(t)}function Tt(t,e,a){if(40===t.charCodeAt(0)&&!e.match(gt)){var n=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return a>=0?Tt("n",n,a):"("+Tt("n",n,-a)+")"}if(44===e.charCodeAt(e.length-1))return ut(t,e,a);if(-1!==e.indexOf("%"))return ct(t,e,a);if(-1!==e.indexOf("E"))return dt(e,a);if(36===e.charCodeAt(0))return"$"+Tt(t,e.substr(" "==e.charAt(1)?2:1),a);var i,o,r,s,l=Math.abs(a),c=a<0?"-":"";if(e.match(/^00+$/))return c+F(l,e.length);if(e.match(/^[#?]+$/))return i=F(a,0),"0"===i&&(i=""),i.length>e.length?i:vt(e.substr(0,e.length-i.length))+i;if(o=e.match(ht))return pt(o,l,c);if(e.match(/^#+0+$/))return c+F(l,e.length-e.indexOf("0"));if(o=e.match(mt))return i=yt(a,o[1].length).replace(/^([^\.]+)$/,"$1."+vt(o[1])).replace(/\.$/,"."+vt(o[1])).replace(/\.(\d*)$/,(function(t,e){return"."+e+ae("0",vt(o[1]).length-e.length)})),-1!==e.indexOf("0.")?i:i.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),o=e.match(/^(0*)\.(#*)$/))return c+yt(l,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=e.match(/^#{1,3},##0(\.?)$/))return c+st(F(l,0));if(o=e.match(/^#,##0\.([#0]*0)$/))return a<0?"-"+Tt(t,e,-a):st(""+(Math.floor(a)+St(a,o[1].length)))+"."+D(bt(a,o[1].length),o[1].length);if(o=e.match(/^#,#*,#0/))return Tt(t,e.replace(/^#,#*,/,""),a);if(o=e.match(/^([0#]+)(\\?-([0#]+))+$/))return i=I(Tt(t,e.replace(/[\\-]/g,""),a)),r=0,I(I(e.replace(/\\/g,"")).replace(/[0#]/g,(function(t){return r<i.length?i.charAt(r++):"0"===t?"0":""})));if(e.match(_t))return i=Tt(t,"##########",a),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(o=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return r=Math.min(o[4].length,7),s=W(l,Math.pow(10,r)-1,!1),i=""+c,u=wt("n",o[1],s[1])," "==u.charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),i+=u+o[2]+"/"+o[3],u=R(s[2],r),u.length<o[4].length&&(u=vt(o[4].substr(o[4].length-u.length))+u),i+=u,i;if(o=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return r=Math.min(Math.max(o[1].length,o[4].length),7),s=W(l,Math.pow(10,r)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?L(s[1],r)+o[2]+"/"+o[3]+R(s[2],r):ae(" ",2*r+1+o[2].length+o[3].length));if(o=e.match(/^[#0?]+$/))return i=F(a,0),e.length<=i.length?i:vt(e.substr(0,e.length-i.length))+i;if(o=e.match(/^([#0?]+)\.([#0]+)$/)){i=""+a.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),r=i.indexOf(".");var d=e.indexOf(".")-r,h=e.length-i.length-d;return vt(e.substr(0,d)+i+e.substr(e.length-h))}if(o=e.match(/^00,000\.([#0]*0)$/))return r=bt(a,o[1].length),a<0?"-"+Tt(t,e,-a):st(Ot(a)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(t){return"00,"+(t.length<3?D(0,3-t.length):"")+t}))+"."+D(r,o[1].length);switch(e){case"###,##0.00":return Tt(t,"#,##0.00",a);case"###,###":case"##,###":case"#,###":var p=st(F(l,0));return"0"!==p?c+p:"";case"###,###.00":return Tt(t,"###,##0.00",a).replace(/^0\./,".");case"#,###.00":return Tt(t,"#,##0.00",a).replace(/^0\./,".");default:}throw new Error("unsupported format |"+e+"|")}function At(t,e,a){var n=e.length-1;while(44===e.charCodeAt(n-1))--n;return wt(t,e.substr(0,n),a/Math.pow(10,3*(e.length-n)))}function xt(t,e,a){var n=e.replace(lt,""),i=e.length-n.length;return wt(t,n,a*Math.pow(10,2*i))+ae("%",i)}function Ct(t,e){var a,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==e)return"0.0E+0";if(e<0)return"-"+Ct(t,-e);var i=t.indexOf(".");-1===i&&(i=t.indexOf("E"));var o=Math.floor(Math.log(e)*Math.LOG10E)%i;if(o<0&&(o+=i),a=(e/Math.pow(10,o)).toPrecision(n+1+(i+o)%i),!a.match(/[Ee]/)){var r=Math.floor(Math.log(e)*Math.LOG10E);-1===a.indexOf(".")?a=a.charAt(0)+"."+a.substr(1)+"E+"+(r-a.length+o):a+="E+"+(r-o),a=a.replace(/\+-/,"-")}a=a.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(t,e,a,n){return e+a+n.substr(0,(i+o)%i)+"."+n.substr(o)+"E"}))}else a=e.toExponential(n);return t.match(/E\+00$/)&&a.match(/e[+-]\d$/)&&(a=a.substr(0,a.length-1)+"0"+a.charAt(a.length-1)),t.match(/E\-/)&&a.match(/e\+/)&&(a=a.replace(/e\+/,"e")),a.replace("e","E")}function Et(t,e,a){if(40===t.charCodeAt(0)&&!e.match(gt)){var n=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return a>=0?Et("n",n,a):"("+Et("n",n,-a)+")"}if(44===e.charCodeAt(e.length-1))return At(t,e,a);if(-1!==e.indexOf("%"))return xt(t,e,a);if(-1!==e.indexOf("E"))return Ct(e,a);if(36===e.charCodeAt(0))return"$"+Et(t,e.substr(" "==e.charAt(1)?2:1),a);var i,o,r,s,l=Math.abs(a),c=a<0?"-":"";if(e.match(/^00+$/))return c+D(l,e.length);if(e.match(/^[#?]+$/))return i=""+a,0===a&&(i=""),i.length>e.length?i:vt(e.substr(0,e.length-i.length))+i;if(o=e.match(ht))return ft(o,l,c);if(e.match(/^#+0+$/))return c+D(l,e.length-e.indexOf("0"));if(o=e.match(mt))return i=(""+a).replace(/^([^\.]+)$/,"$1."+vt(o[1])).replace(/\.$/,"."+vt(o[1])),i=i.replace(/\.(\d*)$/,(function(t,e){return"."+e+ae("0",vt(o[1]).length-e.length)})),-1!==e.indexOf("0.")?i:i.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),o=e.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=e.match(/^#{1,3},##0(\.?)$/))return c+st(""+l);if(o=e.match(/^#,##0\.([#0]*0)$/))return a<0?"-"+Et(t,e,-a):st(""+a)+"."+ae("0",o[1].length);if(o=e.match(/^#,#*,#0/))return Et(t,e.replace(/^#,#*,/,""),a);if(o=e.match(/^([0#]+)(\\?-([0#]+))+$/))return i=I(Et(t,e.replace(/[\\-]/g,""),a)),r=0,I(I(e.replace(/\\/g,"")).replace(/[0#]/g,(function(t){return r<i.length?i.charAt(r++):"0"===t?"0":""})));if(e.match(_t))return i=Et(t,"##########",a),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(o=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return r=Math.min(o[4].length,7),s=W(l,Math.pow(10,r)-1,!1),i=""+c,u=wt("n",o[1],s[1])," "==u.charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),i+=u+o[2]+"/"+o[3],u=R(s[2],r),u.length<o[4].length&&(u=vt(o[4].substr(o[4].length-u.length))+u),i+=u,i;if(o=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return r=Math.min(Math.max(o[1].length,o[4].length),7),s=W(l,Math.pow(10,r)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?L(s[1],r)+o[2]+"/"+o[3]+R(s[2],r):ae(" ",2*r+1+o[2].length+o[3].length));if(o=e.match(/^[#0?]+$/))return i=""+a,e.length<=i.length?i:vt(e.substr(0,e.length-i.length))+i;if(o=e.match(/^([#0]+)\.([#0]+)$/)){i=""+a.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),r=i.indexOf(".");var d=e.indexOf(".")-r,h=e.length-i.length-d;return vt(e.substr(0,d)+i+e.substr(e.length-h))}if(o=e.match(/^00,000\.([#0]*0)$/))return a<0?"-"+Et(t,e,-a):st(""+a).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(t){return"00,"+(t.length<3?D(0,3-t.length):"")+t}))+"."+D(0,o[1].length);switch(e){case"###,###":case"##,###":case"#,###":var p=st(""+l);return"0"!==p?c+p:"";default:if(e.match(/\.[0#?]*$/))return Et(t,e.slice(0,e.lastIndexOf(".")),a)+vt(e.slice(e.lastIndexOf(".")))}throw new Error("unsupported format |"+e+"|")}function wt(t,e,a){return(0|a)===a?Et(t,e,a):Tt(t,e,a)}function Mt(t){for(var e=[],a=!1,n=0,i=0;n<t.length;++n)switch(t.charCodeAt(n)){case 34:a=!a;break;case 95:case 42:case 92:++n;break;case 59:e[e.length]=t.substr(i,n-i),i=n+1}if(e[e.length]=t.substr(i),!0===a)throw new Error("Format |"+t+"| unterminated string ");return e}var kt=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function It(t){var e=0,a="",n="";while(e<t.length)switch(a=t.charAt(e)){case"G":B(t,e)&&(e+=6),e++;break;case'"':for(;34!==t.charCodeAt(++e)&&e<t.length;);++e;break;case"\\":e+=2;break;case"_":e+=2;break;case"@":++e;break;case"B":case"b":if("1"===t.charAt(e+1)||"2"===t.charAt(e+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===t.substr(e,3).toUpperCase())return!0;if("AM/PM"===t.substr(e,5).toUpperCase())return!0;if("上午/下午"===t.substr(e,5).toUpperCase())return!0;++e;break;case"[":n=a;while("]"!==t.charAt(e++)&&e<t.length)n+=t.charAt(e);if(n.match(kt))return!0;break;case".":case"0":case"#":while(e<t.length&&("0#?.,E+-%".indexOf(a=t.charAt(++e))>-1||"\\"==a&&"-"==t.charAt(e+1)&&"0#".indexOf(t.charAt(e+2))>-1));break;case"?":while(t.charAt(++e)===a);break;case"*":++e," "!=t.charAt(e)&&"*"!=t.charAt(e)||++e;break;case"(":case")":++e;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":while(e<t.length&&"0123456789".indexOf(t.charAt(++e))>-1);break;case" ":++e;break;default:++e;break}return!1}function Dt(t,e,a,n){var i,o,r,s=[],l="",c=0,u="",d="t",h="H";while(c<t.length)switch(u=t.charAt(c)){case"G":if(!B(t,c))throw new Error("unrecognized character "+u+" in "+t);s[s.length]={t:"G",v:"General"},c+=7;break;case'"':for(l="";34!==(r=t.charCodeAt(++c))&&c<t.length;)l+=String.fromCharCode(r);s[s.length]={t:"t",v:l},++c;break;case"\\":var p=t.charAt(++c),f="("===p||")"===p?p:"t";s[s.length]={t:f,v:p},++c;break;case"_":s[s.length]={t:"t",v:" "},c+=2;break;case"@":s[s.length]={t:"T",v:e},++c;break;case"B":case"b":if("1"===t.charAt(c+1)||"2"===t.charAt(c+1)){if(null==i&&(i=K(e,a,"2"===t.charAt(c+1)),null==i))return"";s[s.length]={t:"X",v:t.substr(c,2)},d=u,c+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":u=u.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(e<0)return"";if(null==i&&(i=K(e,a),null==i))return"";l=u;while(++c<t.length&&t.charAt(c).toLowerCase()===u)l+=u;"m"===u&&"h"===d.toLowerCase()&&(u="M"),"h"===u&&(u=h),s[s.length]={t:u,v:l},d=u;break;case"A":case"a":case"上":var m={t:u,v:u};if(null==i&&(i=K(e,a)),"A/P"===t.substr(c,3).toUpperCase()?(null!=i&&(m.v=i.H>=12?"P":"A"),m.t="T",h="h",c+=3):"AM/PM"===t.substr(c,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"PM":"AM"),m.t="T",c+=5,h="h"):"上午/下午"===t.substr(c,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"下午":"上午"),m.t="T",c+=5,h="h"):(m.t="t",++c),null==i&&"T"===m.t)return"";s[s.length]=m,d=u;break;case"[":l=u;while("]"!==t.charAt(c++)&&c<t.length)l+=t.charAt(c);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match(kt)){if(null==i&&(i=K(e,a),null==i))return"";s[s.length]={t:"Z",v:l.toLowerCase()},d=l.charAt(1)}else l.indexOf("$")>-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",It(t)||(s[s.length]={t:"t",v:l}));break;case".":if(null!=i){l=u;while(++c<t.length&&"0"===(u=t.charAt(c)))l+=u;s[s.length]={t:"s",v:l};break}case"0":case"#":l=u;while(++c<t.length&&"0#?.,E+-%".indexOf(u=t.charAt(c))>-1)l+=u;s[s.length]={t:"n",v:l};break;case"?":l=u;while(t.charAt(++c)===u)l+=u;s[s.length]={t:u,v:l},d=u;break;case"*":++c," "!=t.charAt(c)&&"*"!=t.charAt(c)||++c;break;case"(":case")":s[s.length]={t:1===n?"t":u,v:u},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":l=u;while(c<t.length&&"0123456789".indexOf(t.charAt(++c))>-1)l+=t.charAt(c);s[s.length]={t:"D",v:l};break;case" ":s[s.length]={t:u,v:u},++c;break;case"$":s[s.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+t);s[s.length]={t:"t",v:u},++c;break}var g,_=0,v=0;for(c=s.length-1,d="t";c>=0;--c)switch(s[c].t){case"h":case"H":s[c].t=h,d="h",_<1&&(_=1);break;case"s":(g=s[c].v.match(/\.0+$/))&&(v=Math.max(v,g[0].length-1)),_<3&&(_=3);case"d":case"y":case"M":case"e":d=s[c].t;break;case"m":"s"===d&&(s[c].t="M",_<2&&(_=2));break;case"X":break;case"Z":_<1&&s[c].v.match(/[Hh]/)&&(_=1),_<2&&s[c].v.match(/[Mm]/)&&(_=2),_<3&&s[c].v.match(/[Ss]/)&&(_=3)}switch(_){case 0:break;case 1:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H);break;case 2:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M);break}var y,b="";for(c=0;c<s.length;++c)switch(s[c].t){case"t":case"T":case" ":case"D":break;case"X":s[c].v="",s[c].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":s[c].v=rt(s[c].t.charCodeAt(0),s[c].v,i,v),s[c].t="t";break;case"n":case"?":y=c+1;while(null!=s[y]&&("?"===(u=s[y].t)||"D"===u||(" "===u||"t"===u)&&null!=s[y+1]&&("?"===s[y+1].t||"t"===s[y+1].t&&"/"===s[y+1].v)||"("===s[c].t&&(" "===u||"n"===u||")"===u)||"t"===u&&("/"===s[y].v||" "===s[y].v&&null!=s[y+1]&&"?"==s[y+1].t)))s[c].v+=s[y].v,s[y]={v:"",t:";"},++y;b+=s[c].v,c=y-1;break;case"G":s[c].t="t",s[c].v=it(e,a);break}var S,O,T="";if(b.length>0){40==b.charCodeAt(0)?(S=e<0&&45===b.charCodeAt(0)?-e:e,O=wt("n",b,S)):(S=e<0&&n>1?-e:e,O=wt("n",b,S),S<0&&s[0]&&"t"==s[0].t&&(O=O.substr(1),s[0].v="-"+s[0].v)),y=O.length-1;var A=s.length;for(c=0;c<s.length;++c)if(null!=s[c]&&"t"!=s[c].t&&s[c].v.indexOf(".")>-1){A=c;break}var x=s.length;if(A===s.length&&-1===O.indexOf("E")){for(c=s.length-1;c>=0;--c)null!=s[c]&&-1!=="n?".indexOf(s[c].t)&&(y>=s[c].v.length-1?(y-=s[c].v.length,s[c].v=O.substr(y+1,s[c].v.length)):y<0?s[c].v="":(s[c].v=O.substr(0,y+1),y=-1),s[c].t="t",x=c);y>=0&&x<s.length&&(s[x].v=O.substr(0,y+1)+s[x].v)}else if(A!==s.length&&-1===O.indexOf("E")){for(y=O.indexOf(".")-1,c=A;c>=0;--c)if(null!=s[c]&&-1!=="n?".indexOf(s[c].t)){for(o=s[c].v.indexOf(".")>-1&&c===A?s[c].v.indexOf(".")-1:s[c].v.length-1,T=s[c].v.substr(o+1);o>=0;--o)y>=0&&("0"===s[c].v.charAt(o)||"#"===s[c].v.charAt(o))&&(T=O.charAt(y--)+T);s[c].v=T,s[c].t="t",x=c}for(y>=0&&x<s.length&&(s[x].v=O.substr(0,y+1)+s[x].v),y=O.indexOf(".")+1,c=A;c<s.length;++c)if(null!=s[c]&&(-1!=="n?(".indexOf(s[c].t)||c===A)){for(o=s[c].v.indexOf(".")>-1&&c===A?s[c].v.indexOf(".")+1:0,T=s[c].v.substr(0,o);o<s[c].v.length;++o)y<O.length&&(T+=O.charAt(y++));s[c].v=T,s[c].t="t",x=c}}}for(c=0;c<s.length;++c)null!=s[c]&&"n?".indexOf(s[c].t)>-1&&(S=n>1&&e<0&&c>0&&"-"===s[c-1].v?-e:e,s[c].v=wt(s[c].t,s[c].v,S),s[c].t="t");var C="";for(c=0;c!==s.length;++c)null!=s[c]&&(C+=s[c].v);return C}var Lt=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Rt(t,e){if(null==e)return!1;var a=parseFloat(e[2]);switch(e[1]){case"=":if(t==a)return!0;break;case">":if(t>a)return!0;break;case"<":if(t<a)return!0;break;case"<>":if(t!=a)return!0;break;case">=":if(t>=a)return!0;break;case"<=":if(t<=a)return!0;break}return!1}function Nt(t,e){var a=Mt(t),n=a.length,i=a[n-1].indexOf("@");if(n<4&&i>-1&&--n,a.length>4)throw new Error("cannot find right format for |"+a.join("|")+"|");if("number"!==typeof e)return[4,4===a.length||i>-1?a[a.length-1]:"@"];switch(a.length){case 1:a=i>-1?["General","General","General",a[0]]:[a[0],a[0],a[0],"@"];break;case 2:a=i>-1?[a[0],a[0],a[0],a[1]]:[a[0],a[1],a[0],"@"];break;case 3:a=i>-1?[a[0],a[1],a[0],a[2]]:[a[0],a[1],a[2],"@"];break;case 4:break}var o=e>0?a[0]:e<0?a[1]:a[2];if(-1===a[0].indexOf("[")&&-1===a[1].indexOf("["))return[n,o];if(null!=a[0].match(/\[[=<>]/)||null!=a[1].match(/\[[=<>]/)){var r=a[0].match(Lt),s=a[1].match(Lt);return Rt(e,r)?[n,a[0]]:Rt(e,s)?[n,a[1]]:[n,a[null!=r&&null!=s?2:1]]}return[n,o]}function Pt(t,e,a){null==a&&(a={});var n="";switch(typeof t){case"string":n="m/d/yy"==t&&a.dateNF?a.dateNF:t;break;case"number":n=14==t&&a.dateNF?a.dateNF:(null!=a.table?a.table:V)[t],null==n&&(n=a.table&&a.table[H[t]]||V[H[t]]),null==n&&(n=G[t]||"General");break}if(B(n,0))return it(e,a);e instanceof Date&&(e=Q(e,a.date1904));var i=Nt(n,e);if(B(i[1]))return it(e,a);if(!0===e)e="TRUE";else if(!1===e)e="FALSE";else if(""===e||null==e)return"";return Dt(i[1],e,a,i[0])}function jt(t,e){if("number"!=typeof e){e=+e||-1;for(var a=0;a<392;++a)if(void 0!=V[a]){if(V[a]==t){e=a;break}}else e<0&&(e=a);e<0&&(e=391)}return V[e]=t,e}function $t(t){for(var e=0;392!=e;++e)void 0!==t[e]&&jt(t[e],e)}function Ft(){V=z()}var Bt=function(){var t={};function e(){for(var t=0,e=new Array(256),a=0;256!=a;++a)t=a,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,t=1&t?-306674912^t>>>1:t>>>1,e[a]=t;return"undefined"!==typeof Int32Array?new Int32Array(e):e}t.version="1.2.0";var a=e();function n(t){var e=0,a=0,n=0,i="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(n=0;256!=n;++n)i[n]=t[n];for(n=0;256!=n;++n)for(a=t[n],e=256+n;e<4096;e+=256)a=i[e]=a>>>8^t[255&a];var o=[];for(n=1;16!=n;++n)o[n-1]="undefined"!==typeof Int32Array?i.subarray(256*n,256*n+256):i.slice(256*n,256*n+256);return o}var i=n(a),o=i[0],r=i[1],s=i[2],l=i[3],c=i[4],u=i[5],d=i[6],h=i[7],p=i[8],f=i[9],m=i[10],g=i[11],_=i[12],v=i[13],y=i[14];function b(t,e){for(var n=-1^e,i=0,o=t.length;i<o;)n=n>>>8^a[255&(n^t.charCodeAt(i++))];return~n}function S(t,e){for(var n=-1^e,i=t.length-15,b=0;b<i;)n=y[t[b++]^255&n]^v[t[b++]^n>>8&255]^_[t[b++]^n>>16&255]^g[t[b++]^n>>>24]^m[t[b++]]^f[t[b++]]^p[t[b++]]^h[t[b++]]^d[t[b++]]^u[t[b++]]^c[t[b++]]^l[t[b++]]^s[t[b++]]^r[t[b++]]^o[t[b++]]^a[t[b++]];i+=15;while(b<i)n=n>>>8^a[255&(n^t[b++])];return~n}function O(t,e){for(var n=-1^e,i=0,o=t.length,r=0,s=0;i<o;)r=t.charCodeAt(i++),r<128?n=n>>>8^a[255&(n^r)]:r<2048?(n=n>>>8^a[255&(n^(192|r>>6&31))],n=n>>>8^a[255&(n^(128|63&r))]):r>=55296&&r<57344?(r=64+(1023&r),s=1023&t.charCodeAt(i++),n=n>>>8^a[255&(n^(240|r>>8&7))],n=n>>>8^a[255&(n^(128|r>>2&63))],n=n>>>8^a[255&(n^(128|s>>6&15|(3&r)<<4))],n=n>>>8^a[255&(n^(128|63&s))]):(n=n>>>8^a[255&(n^(224|r>>12&15))],n=n>>>8^a[255&(n^(128|r>>6&63))],n=n>>>8^a[255&(n^(128|63&r))]);return~n}return t.table=a,t.bstr=b,t.buf=S,t.str=O,t}(),Yt=function(){var e,a={};function n(t,e){for(var a=t.split("/"),n=e.split("/"),i=0,o=0,r=Math.min(a.length,n.length);i<r;++i){if(o=a[i].length-n[i].length)return o;if(a[i]!=n[i])return a[i]<n[i]?-1:1}return a.length-n.length}function i(t){if("/"==t.charAt(t.length-1))return-1===t.slice(0,-1).indexOf("/")?t:i(t.slice(0,-1));var e=t.lastIndexOf("/");return-1===e?t:t.slice(0,e+1)}function o(t){if("/"==t.charAt(t.length-1))return o(t.slice(0,-1));var e=t.lastIndexOf("/");return-1===e?t:t.slice(e+1)}function r(t,e){"string"===typeof e&&(e=new Date(e));var a=e.getHours();a=a<<6|e.getMinutes(),a=a<<5|e.getSeconds()>>>1,t.write_shift(2,a);var n=e.getFullYear()-1980;n=n<<4|e.getMonth()+1,n=n<<5|e.getDate(),t.write_shift(2,n)}function s(t){var e=65535&t.read_shift(2),a=65535&t.read_shift(2),n=new Date,i=31&a;a>>>=5;var o=15&a;a>>>=4,n.setMilliseconds(0),n.setFullYear(a+1980),n.setMonth(o-1),n.setDate(i);var r=31&e;e>>>=5;var s=63&e;return e>>>=6,n.setHours(e),n.setMinutes(s),n.setSeconds(r<<1),n}function l(t){pa(t,0);var e={},a=0;while(t.l<=t.length-4){var n=t.read_shift(2),i=t.read_shift(2),o=t.l+i,r={};switch(n){case 21589:a=t.read_shift(1),1&a&&(r.mtime=t.read_shift(4)),i>5&&(2&a&&(r.atime=t.read_shift(4)),4&a&&(r.ctime=t.read_shift(4))),r.mtime&&(r.mt=new Date(1e3*r.mtime));break}t.l=o,e[n]=r}return e}function c(){return e||(e={})}function u(t,e){if(80==t[0]&&75==t[1])return Dt(t,e);if(109==(32|t[0])&&105==(32|t[1]))return zt(t,e);if(t.length<512)throw new Error("CFB file size "+t.length+" < 512");var a=3,n=512,i=0,o=0,r=0,s=0,l=0,c=[],u=t.slice(0,512);pa(u,0);var m=d(u);switch(a=m[0],a){case 3:n=512;break;case 4:n=4096;break;case 0:if(0==m[1])return Dt(t,e);default:throw new Error("Major Version: Expected 3 or 4 saw "+a)}512!==n&&(u=t.slice(0,n),pa(u,28));var _=t.slice(0,n);h(u,a);var v=u.read_shift(4,"i");if(3===a&&0!==v)throw new Error("# Directory Sectors: Expected 0 saw "+v);u.l+=4,r=u.read_shift(4,"i"),u.l+=4,u.chk("00100000","Mini Stream Cutoff Size: "),s=u.read_shift(4,"i"),i=u.read_shift(4,"i"),l=u.read_shift(4,"i"),o=u.read_shift(4,"i");for(var y=-1,b=0;b<109;++b){if(y=u.read_shift(4,"i"),y<0)break;c[b]=y}var S=p(t,n);g(l,o,S,n,c);var O=x(S,r,c,n);O[r].name="!Directory",i>0&&s!==B&&(O[s].name="!MiniFAT"),O[c[0]].name="!FAT",O.fat_addrs=c,O.ssz=n;var T={},A=[],E=[],w=[];C(r,O,S,A,i,T,E,s),f(E,w,A),A.shift();var M={FileIndex:E,FullPaths:w};return e&&e.raw&&(M.raw={header:_,sectors:S}),M}function d(t){if(80==t[t.l]&&75==t[t.l+1])return[0,0];t.chk(Y,"Header Signature: "),t.l+=16;var e=t.read_shift(2,"u");return[t.read_shift(2,"u"),e]}function h(t,e){var a=9;switch(t.l+=2,a=t.read_shift(2)){case 9:if(3!=e)throw new Error("Sector Shift: Expected 9 saw "+a);break;case 12:if(4!=e)throw new Error("Sector Shift: Expected 12 saw "+a);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+a)}t.chk("0600","Mini Sector Shift: "),t.chk("000000000000","Reserved: ")}function p(t,e){for(var a=Math.ceil(t.length/e)-1,n=[],i=1;i<a;++i)n[i-1]=t.slice(i*e,(i+1)*e);return n[a-1]=t.slice(a*e),n}function f(t,e,a){for(var n=0,i=0,o=0,r=0,s=0,l=a.length,c=[],u=[];n<l;++n)c[n]=u[n]=n,e[n]=a[n];for(;s<u.length;++s)n=u[s],i=t[n].L,o=t[n].R,r=t[n].C,c[n]===n&&(-1!==i&&c[i]!==i&&(c[n]=c[i]),-1!==o&&c[o]!==o&&(c[n]=c[o])),-1!==r&&(c[r]=n),-1!==i&&n!=c[n]&&(c[i]=c[n],u.lastIndexOf(i)<s&&u.push(i)),-1!==o&&n!=c[n]&&(c[o]=c[n],u.lastIndexOf(o)<s&&u.push(o));for(n=1;n<l;++n)c[n]===n&&(-1!==o&&c[o]!==o?c[n]=c[o]:-1!==i&&c[i]!==i&&(c[n]=c[i]));for(n=1;n<l;++n)if(0!==t[n].type){if(s=n,s!=c[s])do{s=c[s],e[n]=e[s]+"/"+e[n]}while(0!==s&&-1!==c[s]&&s!=c[s]);c[n]=-1}for(e[0]+="/",n=1;n<l;++n)2!==t[n].type&&(e[n]+="/")}function m(t,e,a){var n=t.start,i=t.size,o=[],r=n;while(a&&i>0&&r>=0)o.push(e.slice(r*F,r*F+F)),i-=F,r=oa(a,4*r);return 0===o.length?fa(0):E(o).slice(0,t.size)}function g(t,e,a,n,i){var o=B;if(t===B){if(0!==e)throw new Error("DIFAT chain shorter than expected")}else if(-1!==t){var r=a[t],s=(n>>>2)-1;if(!r)return;for(var l=0;l<s;++l){if((o=oa(r,4*l))===B)break;i.push(o)}g(oa(r,n-4),e-1,a,n,i)}}function A(t,e,a,n,i){var o=[],r=[];i||(i=[]);var s=n-1,l=0,c=0;for(l=e;l>=0;){i[l]=!0,o[o.length]=l,r.push(t[l]);var u=a[Math.floor(4*l/n)];if(c=4*l&s,n<4+c)throw new Error("FAT boundary crossed: "+l+" 4 "+n);if(!t[u])break;l=oa(t[u],c)}return{nodes:o,data:Ne([r])}}function x(t,e,a,n){var i=t.length,o=[],r=[],s=[],l=[],c=n-1,u=0,d=0,h=0,p=0;for(u=0;u<i;++u)if(s=[],h=u+e,h>=i&&(h-=i),!r[h]){l=[];var f=[];for(d=h;d>=0;){f[d]=!0,r[d]=!0,s[s.length]=d,l.push(t[d]);var m=a[Math.floor(4*d/n)];if(p=4*d&c,n<4+p)throw new Error("FAT boundary crossed: "+d+" 4 "+n);if(!t[m])break;if(d=oa(t[m],p),f[d])break}o[h]={nodes:s,data:Ne([l])}}return o}function C(t,e,a,n,i,o,r,s){for(var l,c=0,u=n.length?2:0,d=e[t].data,h=0,p=0;h<d.length;h+=128){var f=d.slice(h,h+128);pa(f,64),p=f.read_shift(2),l=je(f,0,p-u),n.push(l);var g={name:l,type:f.read_shift(1),color:f.read_shift(1),L:f.read_shift(4,"i"),R:f.read_shift(4,"i"),C:f.read_shift(4,"i"),clsid:f.read_shift(16),state:f.read_shift(4,"i"),start:0,size:0},_=f.read_shift(2)+f.read_shift(2)+f.read_shift(2)+f.read_shift(2);0!==_&&(g.ct=w(f,f.l-8));var v=f.read_shift(2)+f.read_shift(2)+f.read_shift(2)+f.read_shift(2);0!==v&&(g.mt=w(f,f.l-8)),g.start=f.read_shift(4,"i"),g.size=f.read_shift(4,"i"),g.size<0&&g.start<0&&(g.size=g.type=0,g.start=B,g.name=""),5===g.type?(c=g.start,i>0&&c!==B&&(e[c].name="!StreamData")):g.size>=4096?(g.storage="fat",void 0===e[g.start]&&(e[g.start]=A(a,g.start,e.fat_addrs,e.ssz)),e[g.start].name=g.name,g.content=e[g.start].data.slice(0,g.size)):(g.storage="minifat",g.size<0?g.size=0:c!==B&&g.start!==B&&e[c]&&(g.content=m(g,e[c].data,(e[s]||{}).data))),g.content&&pa(g.content,0),o[l]=g,r.push(g)}}function w(t,e){return new Date(1e3*(ia(t,e+4)/1e7*Math.pow(2,32)+ia(t,e)/1e7-11644473600))}function I(t,a){return c(),u(e.readFileSync(t),a)}function D(e,a){var n=a&&a.type;switch(n||y&&t.isBuffer(e)&&(n="buffer"),n||"base64"){case"file":return I(e,a);case"base64":return u(T(v(e)),a);case"binary":return u(T(e),a)}return u(e,a)}function L(t,e){var a=e||{},n=a.root||"Root Entry";if(t.FullPaths||(t.FullPaths=[]),t.FileIndex||(t.FileIndex=[]),t.FullPaths.length!==t.FileIndex.length)throw new Error("inconsistent CFB structure");0===t.FullPaths.length&&(t.FullPaths[0]=n+"/",t.FileIndex[0]={name:n,type:5}),a.CLSID&&(t.FileIndex[0].clsid=a.CLSID),R(t)}function R(t){var e="Sh33tJ5";if(!Yt.find(t,"/"+e)){var a=fa(4);a[0]=55,a[1]=a[3]=50,a[2]=54,t.FileIndex.push({name:e,type:2,content:a,size:4,L:69,R:69,C:69}),t.FullPaths.push(t.FullPaths[0]+e),N(t)}}function N(t,e){L(t);for(var a=!1,r=!1,s=t.FullPaths.length-1;s>=0;--s){var l=t.FileIndex[s];switch(l.type){case 0:r?a=!0:(t.FileIndex.pop(),t.FullPaths.pop());break;case 1:case 2:case 5:r=!0,isNaN(l.R*l.L*l.C)&&(a=!0),l.R>-1&&l.L>-1&&l.R==l.L&&(a=!0);break;default:a=!0;break}}if(a||e){var c=new Date(1987,1,19),u=0,d=Object.create?Object.create(null):{},h=[];for(s=0;s<t.FullPaths.length;++s)d[t.FullPaths[s]]=!0,0!==t.FileIndex[s].type&&h.push([t.FullPaths[s],t.FileIndex[s]]);for(s=0;s<h.length;++s){var p=i(h[s][0]);r=d[p],r||(h.push([p,{name:o(p).replace("/",""),type:1,clsid:z,ct:c,mt:c,content:null}]),d[p]=!0)}for(h.sort((function(t,e){return n(t[0],e[0])})),t.FullPaths=[],t.FileIndex=[],s=0;s<h.length;++s)t.FullPaths[s]=h[s][0],t.FileIndex[s]=h[s][1];for(s=0;s<h.length;++s){var f=t.FileIndex[s],m=t.FullPaths[s];if(f.name=o(m).replace("/",""),f.L=f.R=f.C=-(f.color=1),f.size=f.content?f.content.length:0,f.start=0,f.clsid=f.clsid||z,0===s)f.C=h.length>1?1:-1,f.size=0,f.type=5;else if("/"==m.slice(-1)){for(u=s+1;u<h.length;++u)if(i(t.FullPaths[u])==m)break;for(f.C=u>=h.length?-1:u,u=s+1;u<h.length;++u)if(i(t.FullPaths[u])==i(m))break;f.R=u>=h.length?-1:u,f.type=1}else i(t.FullPaths[s+1]||"")==i(m)&&(f.R=s+1),f.type=2}}}function P(e,a){var n=a||{};if("mad"==n.fileType)return Vt(e,n);switch(N(e),n.fileType){case"zip":return Rt(e,n)}var i=function(t){for(var e=0,a=0,n=0;n<t.FileIndex.length;++n){var i=t.FileIndex[n];if(i.content){var o=i.content.length;o>0&&(o<4096?e+=o+63>>6:a+=o+511>>9)}}var r=t.FullPaths.length+3>>2,s=e+7>>3,l=e+127>>7,c=s+a+r+l,u=c+127>>7,d=u<=109?0:Math.ceil((u-109)/127);while(c+u+d+127>>7>u)d=++u<=109?0:Math.ceil((u-109)/127);var h=[1,d,u,l,r,a,e,0];return t.FileIndex[0].size=e<<6,h[7]=(t.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3),h}(e),o=fa(i[7]<<9),r=0,s=0;for(r=0;r<8;++r)o.write_shift(1,U[r]);for(r=0;r<8;++r)o.write_shift(2,0);for(o.write_shift(2,62),o.write_shift(2,3),o.write_shift(2,65534),o.write_shift(2,9),o.write_shift(2,6),r=0;r<3;++r)o.write_shift(2,0);for(o.write_shift(4,0),o.write_shift(4,i[2]),o.write_shift(4,i[0]+i[1]+i[2]+i[3]-1),o.write_shift(4,0),o.write_shift(4,4096),o.write_shift(4,i[3]?i[0]+i[1]+i[2]-1:B),o.write_shift(4,i[3]),o.write_shift(-4,i[1]?i[0]-1:B),o.write_shift(4,i[1]),r=0;r<109;++r)o.write_shift(-4,r<i[2]?i[1]+r:-1);if(i[1])for(s=0;s<i[1];++s){for(;r<236+127*s;++r)o.write_shift(-4,r<i[2]?i[1]+r:-1);o.write_shift(-4,s===i[1]-1?B:s+1)}var l=function(t){for(s+=t;r<s-1;++r)o.write_shift(-4,r+1);t&&(++r,o.write_shift(-4,B))};for(s=r=0,s+=i[1];r<s;++r)o.write_shift(-4,V.DIFSECT);for(s+=i[2];r<s;++r)o.write_shift(-4,V.FATSECT);l(i[3]),l(i[4]);for(var c=0,u=0,d=e.FileIndex[0];c<e.FileIndex.length;++c)d=e.FileIndex[c],d.content&&(u=d.content.length,u<4096||(d.start=s,l(u+511>>9)));l(i[6]+7>>3);while(511&o.l)o.write_shift(-4,V.ENDOFCHAIN);for(s=r=0,c=0;c<e.FileIndex.length;++c)d=e.FileIndex[c],d.content&&(u=d.content.length,!u||u>=4096||(d.start=s,l(u+63>>6)));while(511&o.l)o.write_shift(-4,V.ENDOFCHAIN);for(r=0;r<i[4]<<2;++r){var h=e.FullPaths[r];if(h&&0!==h.length){d=e.FileIndex[r],0===r&&(d.start=d.size?d.start-1:B);var p=0===r&&n.root||d.name;if(u=2*(p.length+1),o.write_shift(64,p,"utf16le"),o.write_shift(2,u),o.write_shift(1,d.type),o.write_shift(1,d.color),o.write_shift(-4,d.L),o.write_shift(-4,d.R),o.write_shift(-4,d.C),d.clsid)o.write_shift(16,d.clsid,"hex");else for(c=0;c<4;++c)o.write_shift(4,0);o.write_shift(4,d.state||0),o.write_shift(4,0),o.write_shift(4,0),o.write_shift(4,0),o.write_shift(4,0),o.write_shift(4,d.start),o.write_shift(4,d.size),o.write_shift(4,0)}else{for(c=0;c<17;++c)o.write_shift(4,0);for(c=0;c<3;++c)o.write_shift(4,-1);for(c=0;c<12;++c)o.write_shift(4,0)}}for(r=1;r<e.FileIndex.length;++r)if(d=e.FileIndex[r],d.size>=4096)if(o.l=d.start+1<<9,y&&t.isBuffer(d.content))d.content.copy(o,o.l,0,d.size),o.l+=d.size+511&-512;else{for(c=0;c<d.size;++c)o.write_shift(1,d.content[c]);for(;511&c;++c)o.write_shift(1,0)}for(r=1;r<e.FileIndex.length;++r)if(d=e.FileIndex[r],d.size>0&&d.size<4096)if(y&&t.isBuffer(d.content))d.content.copy(o,o.l,0,d.size),o.l+=d.size+63&-64;else{for(c=0;c<d.size;++c)o.write_shift(1,d.content[c]);for(;63&c;++c)o.write_shift(1,0)}if(y)o.l=o.length;else while(o.l<o.length)o.write_shift(1,0);return o}function j(t,e){var a=t.FullPaths.map((function(t){return t.toUpperCase()})),n=a.map((function(t){var e=t.split("/");return e[e.length-("/"==t.slice(-1)?2:1)]})),i=!1;47===e.charCodeAt(0)?(i=!0,e=a[0].slice(0,-1)+e):i=-1!==e.indexOf("/");var o=e.toUpperCase(),r=!0===i?a.indexOf(o):n.indexOf(o);if(-1!==r)return t.FileIndex[r];var s=!o.match(k);for(o=o.replace(M,""),s&&(o=o.replace(k,"!")),r=0;r<a.length;++r){if((s?a[r].replace(k,"!"):a[r]).replace(M,"")==o)return t.FileIndex[r];if((s?n[r].replace(k,"!"):n[r]).replace(M,"")==o)return t.FileIndex[r]}return null}a.version="1.2.1";var $,F=64,B=-2,Y="d0cf11e0a1b11ae1",U=[208,207,17,224,161,177,26,225],z="00000000000000000000000000000000",V={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:B,FREESECT:-1,HEADER_SIGNATURE:Y,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:z,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function H(t,a,n){c();var i=P(t,n);e.writeFileSync(a,i)}function G(t){for(var e=new Array(t.length),a=0;a<t.length;++a)e[a]=String.fromCharCode(t[a]);return e.join("")}function W(a,n){var i=P(a,n);switch(n&&n.type||"buffer"){case"file":return c(),e.writeFileSync(n.filename,i),i;case"binary":return"string"==typeof i?i:G(i);case"base64":return _("string"==typeof i?i:G(i));case"buffer":if(y)return t.isBuffer(i)?i:b(i);case"array":return"string"==typeof i?T(i):i}return i}function K(t){try{var e=t.InflateRaw,a=new e;if(a._processChunk(new Uint8Array([3,0]),a._finishFlushFlag),!a.bytesRead)throw new Error("zlib does not expose bytesRead");$=t}catch(n){console.error("cannot use native zlib: "+(n.message||n))}}function Z(t,e){if(!$)return kt(t,e);var a=$.InflateRaw,n=new a,i=n._processChunk(t.slice(t.l),n._finishFlushFlag);return t.l+=n.bytesRead,i}function q(t){return $?$.deflateRawSync(t):Ot(t)}var X=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Q=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],J=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function tt(t){var e=139536&(t<<1|t<<11)|558144&(t<<5|t<<15);return 255&(e>>16|e>>8|e)}for(var et="undefined"!==typeof Uint8Array,at=et?new Uint8Array(256):[],nt=0;nt<256;++nt)at[nt]=tt(nt);function it(t,e){var a=at[255&t];return e<=8?a>>>8-e:(a=a<<8|at[t>>8&255],e<=16?a>>>16-e:(a=a<<8|at[t>>16&255],a>>>24-e))}function ot(t,e){var a=7&e,n=e>>>3;return(t[n]|(a<=6?0:t[n+1]<<8))>>>a&3}function rt(t,e){var a=7&e,n=e>>>3;return(t[n]|(a<=5?0:t[n+1]<<8))>>>a&7}function st(t,e){var a=7&e,n=e>>>3;return(t[n]|(a<=4?0:t[n+1]<<8))>>>a&15}function lt(t,e){var a=7&e,n=e>>>3;return(t[n]|(a<=3?0:t[n+1]<<8))>>>a&31}function ct(t,e){var a=7&e,n=e>>>3;return(t[n]|(a<=1?0:t[n+1]<<8))>>>a&127}function ut(t,e,a){var n=7&e,i=e>>>3,o=(1<<a)-1,r=t[i]>>>n;return a<8-n?r&o:(r|=t[i+1]<<8-n,a<16-n?r&o:(r|=t[i+2]<<16-n,a<24-n||(r|=t[i+3]<<24-n),r&o))}function dt(t,e,a){var n=7&e,i=e>>>3;return n<=5?t[i]|=(7&a)<<n:(t[i]|=a<<n&255,t[i+1]=(7&a)>>8-n),e+3}function ht(t,e,a){var n=7&e,i=e>>>3;return a=(1&a)<<n,t[i]|=a,e+1}function pt(t,e,a){var n=7&e,i=e>>>3;return a<<=n,t[i]|=255&a,a>>>=8,t[i+1]=a,e+8}function ft(t,e,a){var n=7&e,i=e>>>3;return a<<=n,t[i]|=255&a,a>>>=8,t[i+1]=255&a,t[i+2]=a>>>8,e+16}function mt(t,e){var a=t.length,n=2*a>e?2*a:e+5,i=0;if(a>=e)return t;if(y){var o=O(n);if(t.copy)t.copy(o);else for(;i<t.length;++i)o[i]=t[i];return o}if(et){var r=new Uint8Array(n);if(r.set)r.set(t);else for(;i<a;++i)r[i]=t[i];return r}return t.length=n,t}function gt(t){for(var e=new Array(t),a=0;a<t;++a)e[a]=0;return e}function _t(t,e,a){var n=1,i=0,o=0,r=0,s=0,l=t.length,c=et?new Uint16Array(32):gt(32);for(o=0;o<32;++o)c[o]=0;for(o=l;o<a;++o)t[o]=0;l=t.length;var u=et?new Uint16Array(l):gt(l);for(o=0;o<l;++o)c[i=t[o]]++,n<i&&(n=i),u[o]=0;for(c[0]=0,o=1;o<=n;++o)c[o+16]=s=s+c[o-1]<<1;for(o=0;o<l;++o)s=t[o],0!=s&&(u[o]=c[s+16]++);var d=0;for(o=0;o<l;++o)if(d=t[o],0!=d)for(s=it(u[o],n)>>n-d,r=(1<<n+4-d)-1;r>=0;--r)e[s|r<<d]=15&d|o<<4;return n}var vt=et?new Uint16Array(512):gt(512),yt=et?new Uint16Array(32):gt(32);if(!et){for(var bt=0;bt<512;++bt)vt[bt]=0;for(bt=0;bt<32;++bt)yt[bt]=0}(function(){for(var t=[],e=0;e<32;e++)t.push(5);_t(t,yt,32);var a=[];for(e=0;e<=143;e++)a.push(8);for(;e<=255;e++)a.push(9);for(;e<=279;e++)a.push(7);for(;e<=287;e++)a.push(8);_t(a,vt,288)})();var St=function(){for(var t=et?new Uint8Array(32768):[],e=0,a=0;e<J.length-1;++e)for(;a<J[e+1];++a)t[a]=e;for(;a<32768;++a)t[a]=29;var n=et?new Uint8Array(259):[];for(e=0,a=0;e<Q.length-1;++e)for(;a<Q[e+1];++a)n[a]=e;function i(t,e){var a=0;while(a<t.length){var n=Math.min(65535,t.length-a),i=a+n==t.length;e.write_shift(1,+i),e.write_shift(2,n),e.write_shift(2,65535&~n);while(n-- >0)e[e.l++]=t[a++]}return e.l}function o(e,a){var i=0,o=0,r=et?new Uint16Array(32768):[];while(o<e.length){var s=Math.min(65535,e.length-o);if(s<10){i=dt(a,i,+!(o+s!=e.length)),7&i&&(i+=8-(7&i)),a.l=i/8|0,a.write_shift(2,s),a.write_shift(2,65535&~s);while(s-- >0)a[a.l++]=e[o++];i=8*a.l}else{i=dt(a,i,+!(o+s!=e.length)+2);var l=0;while(s-- >0){var c=e[o];l=32767&(l<<5^c);var u=-1,d=0;if((u=r[l])&&(u|=-32768&o,u>o&&(u-=32768),u<o))while(e[u+d]==e[o+d]&&d<250)++d;if(d>2){c=n[d],c<=22?i=pt(a,i,at[c+1]>>1)-1:(pt(a,i,3),i+=5,pt(a,i,at[c-23]>>5),i+=3);var h=c<8?0:c-4>>2;h>0&&(ft(a,i,d-Q[c]),i+=h),c=t[o-u],i=pt(a,i,at[c]>>3),i-=3;var p=c<4?0:c-2>>1;p>0&&(ft(a,i,o-u-J[c]),i+=p);for(var f=0;f<d;++f)r[l]=32767&o,l=32767&(l<<5^e[o]),++o;s-=d-1}else c<=143?c+=48:i=ht(a,i,1),i=pt(a,i,at[c]),r[l]=32767&o,++o}i=pt(a,i,0)-1}}return a.l=(i+7)/8|0,a.l}return function(t,e){return t.length<8?i(t,e):o(t,e)}}();function Ot(t){var e=fa(50+Math.floor(1.1*t.length)),a=St(t,e);return e.slice(0,a)}var Tt=et?new Uint16Array(32768):gt(32768),At=et?new Uint16Array(32768):gt(32768),xt=et?new Uint16Array(128):gt(128),Ct=1,Et=1;function wt(t,e){var a=lt(t,e)+257;e+=5;var n=lt(t,e)+1;e+=5;var i=st(t,e)+4;e+=4;for(var o=0,r=et?new Uint8Array(19):gt(19),s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,c=et?new Uint8Array(8):gt(8),u=et?new Uint8Array(8):gt(8),d=r.length,h=0;h<i;++h)r[X[h]]=o=rt(t,e),l<o&&(l=o),c[o]++,e+=3;var p=0;for(c[0]=0,h=1;h<=l;++h)u[h]=p=p+c[h-1]<<1;for(h=0;h<d;++h)0!=(p=r[h])&&(s[h]=u[p]++);var f=0;for(h=0;h<d;++h)if(f=r[h],0!=f){p=at[s[h]]>>8-f;for(var m=(1<<7-f)-1;m>=0;--m)xt[p|m<<f]=7&f|h<<3}var g=[];for(l=1;g.length<a+n;)switch(p=xt[ct(t,e)],e+=7&p,p>>>=3){case 16:o=3+ot(t,e),e+=2,p=g[g.length-1];while(o-- >0)g.push(p);break;case 17:o=3+rt(t,e),e+=3;while(o-- >0)g.push(0);break;case 18:o=11+ct(t,e),e+=7;while(o-- >0)g.push(0);break;default:g.push(p),l<p&&(l=p);break}var _=g.slice(0,a),v=g.slice(a);for(h=a;h<286;++h)_[h]=0;for(h=n;h<30;++h)v[h]=0;return Ct=_t(_,Tt,286),Et=_t(v,At,30),e}function Mt(t,e){if(3==t[0]&&!(3&t[1]))return[S(e),2];var a=0,n=0,i=O(e||1<<18),o=0,r=i.length>>>0,s=0,l=0;while(0==(1&n))if(n=rt(t,a),a+=3,n>>>1!=0)for(n>>1==1?(s=9,l=5):(a=wt(t,a),s=Ct,l=Et);;){!e&&r<o+32767&&(i=mt(i,o+32767),r=i.length);var c=ut(t,a,s),u=n>>>1==1?vt[c]:Tt[c];if(a+=15&u,u>>>=4,0===(u>>>8&255))i[o++]=u;else{if(256==u)break;u-=257;var d=u<8?0:u-4>>2;d>5&&(d=0);var h=o+Q[u];d>0&&(h+=ut(t,a,d),a+=d),c=ut(t,a,l),u=n>>>1==1?yt[c]:At[c],a+=15&u,u>>>=4;var p=u<4?0:u-2>>1,f=J[u];p>0&&(f+=ut(t,a,p),a+=p),!e&&r<h&&(i=mt(i,h+100),r=i.length);while(o<h)i[o]=i[o-f],++o}}else{7&a&&(a+=8-(7&a));var m=t[a>>>3]|t[1+(a>>>3)]<<8;if(a+=32,m>0){!e&&r<o+m&&(i=mt(i,o+m),r=i.length);while(m-- >0)i[o++]=t[a>>>3],a+=8}}return e?[i,a+7>>>3]:[i.slice(0,o),a+7>>>3]}function kt(t,e){var a=t.slice(t.l||0),n=Mt(a,e);return t.l+=n[1],n[0]}function It(t,e){if(!t)throw new Error(e);"undefined"!==typeof console&&console.error(e)}function Dt(t,e){var a=t;pa(a,0);var n=[],i=[],o={FileIndex:n,FullPaths:i};L(o,{root:e.root});var r=a.length-4;while((80!=a[r]||75!=a[r+1]||5!=a[r+2]||6!=a[r+3])&&r>=0)--r;a.l=r+4,a.l+=4;var s=a.read_shift(2);a.l+=6;var c=a.read_shift(4);for(a.l=c,r=0;r<s;++r){a.l+=20;var u=a.read_shift(4),d=a.read_shift(4),h=a.read_shift(2),p=a.read_shift(2),f=a.read_shift(2);a.l+=8;var m=a.read_shift(4),g=l(a.slice(a.l+h,a.l+h+p));a.l+=h+p+f;var _=a.l;a.l=m+4,Lt(a,u,d,o,g),a.l=_}return o}function Lt(t,e,a,n,i){t.l+=2;var o=t.read_shift(2),r=t.read_shift(2),c=s(t);if(8257&o)throw new Error("Unsupported ZIP encryption");for(var u=t.read_shift(4),d=t.read_shift(4),h=t.read_shift(4),p=t.read_shift(2),f=t.read_shift(2),m="",g=0;g<p;++g)m+=String.fromCharCode(t[t.l++]);if(f){var _=l(t.slice(t.l,t.l+f));(_[21589]||{}).mt&&(c=_[21589].mt),((i||{})[21589]||{}).mt&&(c=i[21589].mt)}t.l+=f;var v=t.slice(t.l,t.l+d);switch(r){case 8:v=Z(t,h);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+r)}var y=!1;8&o&&(u=t.read_shift(4),134695760==u&&(u=t.read_shift(4),y=!0),d=t.read_shift(4),h=t.read_shift(4)),d!=e&&It(y,"Bad compressed size: "+e+" != "+d),h!=a&&It(y,"Bad uncompressed size: "+a+" != "+h),Gt(n,m,v,{unsafe:!0,mt:c})}function Rt(t,e){var a=e||{},n=[],i=[],o=fa(1),s=a.compression?8:0,l=0,c=!1;c&&(l|=8);var u=0,d=0,h=0,p=0,f=t.FullPaths[0],m=f,g=t.FileIndex[0],_=[],v=0;for(u=1;u<t.FullPaths.length;++u)if(m=t.FullPaths[u].slice(f.length),g=t.FileIndex[u],g.size&&g.content&&"Sh33tJ5"!=m){var y=h,b=fa(m.length);for(d=0;d<m.length;++d)b.write_shift(1,127&m.charCodeAt(d));b=b.slice(0,b.l),_[p]=Bt.buf(g.content,0);var S=g.content;8==s&&(S=q(S)),o=fa(30),o.write_shift(4,67324752),o.write_shift(2,20),o.write_shift(2,l),o.write_shift(2,s),g.mt?r(o,g.mt):o.write_shift(4,0),o.write_shift(-4,8&l?0:_[p]),o.write_shift(4,8&l?0:S.length),o.write_shift(4,8&l?0:g.content.length),o.write_shift(2,b.length),o.write_shift(2,0),h+=o.length,n.push(o),h+=b.length,n.push(b),h+=S.length,n.push(S),8&l&&(o=fa(12),o.write_shift(-4,_[p]),o.write_shift(4,S.length),o.write_shift(4,g.content.length),h+=o.l,n.push(o)),o=fa(46),o.write_shift(4,33639248),o.write_shift(2,0),o.write_shift(2,20),o.write_shift(2,l),o.write_shift(2,s),o.write_shift(4,0),o.write_shift(-4,_[p]),o.write_shift(4,S.length),o.write_shift(4,g.content.length),o.write_shift(2,b.length),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(4,0),o.write_shift(4,y),v+=o.l,i.push(o),v+=b.length,i.push(b),++p}return o=fa(22),o.write_shift(4,101010256),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,p),o.write_shift(2,p),o.write_shift(4,v),o.write_shift(4,h),o.write_shift(2,0),E([E(n),E(i),o])}var Nt={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Pt(t,e){if(t.ctype)return t.ctype;var a=t.name||"",n=a.match(/\.([^\.]+)$/);return n&&Nt[n[1]]||e&&(n=(a=e).match(/[\.\\]([^\.\\])+$/),n&&Nt[n[1]])?Nt[n[1]]:"application/octet-stream"}function jt(t){for(var e=_(t),a=[],n=0;n<e.length;n+=76)a.push(e.slice(n,n+76));return a.join("\r\n")+"\r\n"}function $t(t){var e=t.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(t){var e=t.charCodeAt(0).toString(16).toUpperCase();return"="+(1==e.length?"0"+e:e)}));e=e.replace(/ $/gm,"=20").replace(/\t$/gm,"=09"),"\n"==e.charAt(0)&&(e="=0D"+e.slice(1)),e=e.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A");for(var a=[],n=e.split("\r\n"),i=0;i<n.length;++i){var o=n[i];if(0!=o.length)for(var r=0;r<o.length;){var s=76,l=o.slice(r,r+s);"="==l.charAt(s-1)?s--:"="==l.charAt(s-2)?s-=2:"="==l.charAt(s-3)&&(s-=3),l=o.slice(r,r+s),r+=s,r<o.length&&(l+="="),a.push(l)}else a.push("")}return a.join("\r\n")}function Ft(t){for(var e=[],a=0;a<t.length;++a){var n=t[a];while(a<=t.length&&"="==n.charAt(n.length-1))n=n.slice(0,n.length-1)+t[++a];e.push(n)}for(var i=0;i<e.length;++i)e[i]=e[i].replace(/[=][0-9A-Fa-f]{2}/g,(function(t){return String.fromCharCode(parseInt(t.slice(1),16))}));return T(e.join("\r\n"))}function Ut(t,e,a){for(var n,i="",o="",r="",s=0;s<10;++s){var l=e[s];if(!l||l.match(/^\s*$/))break;var c=l.match(/^(.*?):\s*([^\s].*)$/);if(c)switch(c[1].toLowerCase()){case"content-location":i=c[2].trim();break;case"content-type":r=c[2].trim();break;case"content-transfer-encoding":o=c[2].trim();break}}switch(++s,o.toLowerCase()){case"base64":n=T(v(e.slice(s).join("")));break;case"quoted-printable":n=Ft(e.slice(s));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+o)}var u=Gt(t,i.slice(a.length),n,{unsafe:!0});r&&(u.ctype=r)}function zt(e,a){if("mime-version:"!=G(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=a&&a.root||"",i=(y&&t.isBuffer(e)?e.toString("binary"):G(e)).split("\r\n"),o=0,r="";for(o=0;o<i.length;++o)if(r=i[o],/^Content-Location:/i.test(r)&&(r=r.slice(r.indexOf("file")),n||(n=r.slice(0,r.lastIndexOf("/")+1)),r.slice(0,n.length)!=n))while(n.length>0)if(n=n.slice(0,n.length-1),n=n.slice(0,n.lastIndexOf("/")+1),r.slice(0,n.length)==n)break;var s=(i[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var l="--"+(s[1]||""),c=[],u=[],d={FileIndex:c,FullPaths:u};L(d);var h,p=0;for(o=0;o<i.length;++o){var f=i[o];f!==l&&f!==l+"--"||(p++&&Ut(d,i.slice(h,o),n),h=o)}return d}function Vt(e,a){var n=a||{},i=n.boundary||"SheetJS";i="------="+i;for(var o=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+i.slice(2)+'"',"","",""],r=e.FullPaths[0],s=r,l=e.FileIndex[0],c=1;c<e.FullPaths.length;++c)if(s=e.FullPaths[c].slice(r.length),l=e.FileIndex[c],l.size&&l.content&&"Sh33tJ5"!=s){s=s.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(t){return"_x"+t.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(t){return"_u"+t.charCodeAt(0).toString(16)+"_"}));for(var u=l.content,d=y&&t.isBuffer(u)?u.toString("binary"):G(u),h=0,p=Math.min(1024,d.length),f=0,m=0;m<=p;++m)(f=d.charCodeAt(m))>=32&&f<128&&++h;var g=h>=4*p/5;o.push(i),o.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+s),o.push("Content-Transfer-Encoding: "+(g?"quoted-printable":"base64")),o.push("Content-Type: "+Pt(l,s)),o.push(""),o.push(g?$t(d):jt(d))}return o.push(i+"--\r\n"),o.join("\r\n")}function Ht(t){var e={};return L(e,t),e}function Gt(t,e,a,n){var i=n&&n.unsafe;i||L(t);var r=!i&&Yt.find(t,e);if(!r){var s=t.FullPaths[0];e.slice(0,s.length)==s?s=e:("/"!=s.slice(-1)&&(s+="/"),s=(s+e).replace("//","/")),r={name:o(e),type:2},t.FileIndex.push(r),t.FullPaths.push(s),i||Yt.utils.cfb_gc(t)}return r.content=a,r.size=a?a.length:0,n&&(n.CLSID&&(r.clsid=n.CLSID),n.mt&&(r.mt=n.mt),n.ct&&(r.ct=n.ct)),r}function Wt(t,e){L(t);var a=Yt.find(t,e);if(a)for(var n=0;n<t.FileIndex.length;++n)if(t.FileIndex[n]==a)return t.FileIndex.splice(n,1),t.FullPaths.splice(n,1),!0;return!1}function Kt(t,e,a){L(t);var n=Yt.find(t,e);if(n)for(var i=0;i<t.FileIndex.length;++i)if(t.FileIndex[i]==n)return t.FileIndex[i].name=o(a),t.FullPaths[i]=a,!0;return!1}function Zt(t){N(t,!0)}return a.find=j,a.read=D,a.parse=u,a.write=W,a.writeFile=H,a.utils={cfb_new:Ht,cfb_add:Gt,cfb_del:Wt,cfb_mov:Kt,cfb_gc:Zt,ReadShift:sa,CheckField:ha,prep_blob:pa,bconcat:E,use_zlib:K,_deflateRaw:Ot,_inflateRaw:kt,consts:V},a}();let Ut=void 0;function zt(t){return"string"===typeof t?A(t):Array.isArray(t)?C(t):t}function Vt(t,e,a){if("undefined"!==typeof Ut&&Ut.writeFileSync)return a?Ut.writeFileSync(t,e,a):Ut.writeFileSync(t,e);if("undefined"!==typeof Deno){if(a&&"string"==typeof e)switch(a){case"utf8":e=new TextEncoder(a).encode(e);break;case"binary":e=A(e);break;default:throw new Error("Unsupported encoding "+a)}return Deno.writeFileSync(t,e)}var n="utf8"==a?Se(e):e;if("undefined"!==typeof IE_SaveFile)return IE_SaveFile(n,t);if("undefined"!==typeof Blob){var i=new Blob([zt(n)],{type:"application/octet-stream"});if("undefined"!==typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(i,t);if("undefined"!==typeof saveAs)return saveAs(i,t);if("undefined"!==typeof URL&&"undefined"!==typeof document&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(i);if("object"===typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!==typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(o)}),6e4),chrome.downloads.download({url:o,filename:t,saveAs:!0});var r=document.createElement("a");if(null!=r.download)return r.download=t,r.href=o,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL&&"undefined"!==typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(o)}),6e4),o}}if("undefined"!==typeof $&&"undefined"!==typeof File&&"undefined"!==typeof Folder)try{var s=File(t);return s.open("w"),s.encoding="binary",Array.isArray(e)&&(e=x(e)),s.write(e),s.close(),e}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+t)}function Ht(t){for(var e=Object.keys(t),a=[],n=0;n<e.length;++n)Object.prototype.hasOwnProperty.call(t,e[n])&&a.push(e[n]);return a}function Gt(t){for(var e=[],a=Ht(t),n=0;n!==a.length;++n)e[t[a[n]]]=a[n];return e}function Wt(t){for(var e=[],a=Ht(t),n=0;n!==a.length;++n)e[t[a[n]]]=parseInt(a[n],10);return e}function Kt(t){for(var e=[],a=Ht(t),n=0;n!==a.length;++n)null==e[t[a[n]]]&&(e[t[a[n]]]=[]),e[t[a[n]]].push(a[n]);return e}var Zt=new Date(1899,11,30,0,0,0);function qt(t,e){var a=t.getTime();e&&(a-=1263168e5);var n=Zt.getTime()+6e4*(t.getTimezoneOffset()-Zt.getTimezoneOffset());return(a-n)/864e5}var Xt=new Date("2017-02-19T19:06:09.000Z"),Qt=isNaN(Xt.getFullYear())?new Date("2/19/17"):Xt,Jt=2017==Qt.getFullYear();function te(t,e){var a=new Date(t);if(Jt)return e>0?a.setTime(a.getTime()+60*a.getTimezoneOffset()*1e3):e<0&&a.setTime(a.getTime()-60*a.getTimezoneOffset()*1e3),a;if(t instanceof Date)return t;if(1917==Qt.getFullYear()&&!isNaN(a.getFullYear())){var n=a.getFullYear();return t.indexOf(""+n)>-1||a.setFullYear(a.getFullYear()+100),a}var i=t.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return t.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function ee(t){if("undefined"!=typeof JSON&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if("object"!=typeof t||null==t)return t;if(t instanceof Date)return new Date(t.getTime());var e={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=ee(t[a]));return e}function ae(t,e){var a="";while(a.length<e)a+=t;return a}function ne(t){var e=Number(t);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(t))return e;var a=1,n=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return a*=100,""}));return isNaN(e=Number(n))?(n=n.replace(/[(](.*)[)]/,(function(t,e){return a=-a,e})),isNaN(e=Number(n))?e:e/a):e/a}var ie=["january","february","march","april","may","june","july","august","september","october","november","december"];function oe(t){var e=new Date(t),a=new Date(NaN),n=e.getYear(),i=e.getMonth(),o=e.getDate();if(isNaN(o))return a;var r=t.toLowerCase();if(r.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(r=r.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),r.length>3&&-1==ie.indexOf(r))return a}else if(r.match(/[a-z]/))return a;return n<0||n>8099?a:(i>0||o>1)&&101!=n?e:t.match(/[^-0-9:,\/\\]/)?a:e}function re(t,e,a){if(t.FullPaths){var n;if("string"==typeof a)return n=y?b(a):w(a),Yt.utils.cfb_add(t,e,n);Yt.utils.cfb_add(t,e,a)}else t.file(e,a)}function se(){return Yt.utils.cfb_new()}var le='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';var ce={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},ue=Gt(ce),de=/[&<>'"]/g,he=/[\u0000-\u0008\u000b-\u001f]/g;function pe(t){var e=t+"";return e.replace(de,(function(t){return ue[t]})).replace(he,(function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"}))}var fe=/[\u0000-\u001f]/g;function me(t){var e=t+"";return e.replace(de,(function(t){return ue[t]})).replace(/\n/g,"<br/>").replace(fe,(function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"}))}function ge(t){var e="",a=0,n=0,i=0,o=0,r=0,s=0;while(a<t.length)n=t.charCodeAt(a++),n<128?e+=String.fromCharCode(n):(i=t.charCodeAt(a++),n>191&&n<224?(r=(31&n)<<6,r|=63&i,e+=String.fromCharCode(r)):(o=t.charCodeAt(a++),n<240?e+=String.fromCharCode((15&n)<<12|(63&i)<<6|63&o):(r=t.charCodeAt(a++),s=((7&n)<<18|(63&i)<<12|(63&o)<<6|63&r)-65536,e+=String.fromCharCode(55296+(s>>>10&1023)),e+=String.fromCharCode(56320+(1023&s)))));return e}function _e(t){var e,a,n,i=S(2*t.length),o=1,r=0,s=0;for(a=0;a<t.length;a+=o)o=1,(n=t.charCodeAt(a))<128?e=n:n<224?(e=64*(31&n)+(63&t.charCodeAt(a+1)),o=2):n<240?(e=4096*(15&n)+64*(63&t.charCodeAt(a+1))+(63&t.charCodeAt(a+2)),o=3):(o=4,e=262144*(7&n)+4096*(63&t.charCodeAt(a+1))+64*(63&t.charCodeAt(a+2))+(63&t.charCodeAt(a+3)),e-=65536,s=55296+(e>>>10&1023),e=56320+(1023&e)),0!==s&&(i[r++]=255&s,i[r++]=s>>>8,s=0),i[r++]=e%256,i[r++]=e>>>8;return i.slice(0,r).toString("ucs2")}function ve(t){return b(t,"binary").toString("utf8")}var ye="foo bar bazâð£",be=y&&(ve(ye)==ge(ye)&&ve||_e(ye)==ge(ye)&&_e)||ge,Se=y?function(t){return b(t,"utf8").toString("binary")}:function(t){var e=[],a=0,n=0,i=0;while(a<t.length)switch(n=t.charCodeAt(a++),!0){case n<128:e.push(String.fromCharCode(n));break;case n<2048:e.push(String.fromCharCode(192+(n>>6))),e.push(String.fromCharCode(128+(63&n)));break;case n>=55296&&n<57344:n-=55296,i=t.charCodeAt(a++)-56320+(n<<10),e.push(String.fromCharCode(240+(i>>18&7))),e.push(String.fromCharCode(144+(i>>12&63))),e.push(String.fromCharCode(128+(i>>6&63))),e.push(String.fromCharCode(128+(63&i)));break;default:e.push(String.fromCharCode(224+(n>>12))),e.push(String.fromCharCode(128+(n>>6&63))),e.push(String.fromCharCode(128+(63&n)))}return e.join("")},Oe=function(){var t=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]}));return function(e){for(var a=e.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),n=0;n<t.length;++n)a=a.replace(t[n][0],t[n][1]);return a}}();var Te=/(^\s|\s$|\n)/;function Ae(t,e){return"<"+t+(e.match(Te)?' xml:space="preserve"':"")+">"+e+"</"+t+">"}function xe(t){return Ht(t).map((function(e){return" "+e+'="'+t[e]+'"'})).join("")}function Ce(t,e,a){return"<"+t+(null!=a?xe(a):"")+(null!=e?(e.match(Te)?' xml:space="preserve"':"")+">"+e+"</"+t:"/")+">"}function Ee(t,e){try{return t.toISOString().replace(/\.\d*/,"")}catch(a){if(e)throw a}return""}function we(t,e){switch(typeof t){case"string":var a=Ce("vt:lpwstr",pe(t));return e&&(a=a.replace(/&quot;/g,"_x0022_")),a;case"number":return Ce((0|t)==t?"vt:i4":"vt:r8",pe(String(t)));case"boolean":return Ce("vt:bool",t?"true":"false")}if(t instanceof Date)return Ce("vt:filetime",Ee(t));throw new Error("Unable to serialize "+t)}var Me={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},ke=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Ie={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function De(t,e){for(var a=1-2*(t[e+7]>>>7),n=((127&t[e+7])<<4)+(t[e+6]>>>4&15),i=15&t[e+6],o=5;o>=0;--o)i=256*i+t[e+o];return 2047==n?0==i?a*(1/0):NaN:(0==n?n=-1022:(n-=1023,i+=Math.pow(2,52)),a*Math.pow(2,n-52)*i)}function Le(t,e,a){var n=(e<0||1/e==-1/0?1:0)<<7,i=0,o=0,r=n?-e:e;isFinite(r)?0==r?i=o=0:(i=Math.floor(Math.log(r)/Math.LN2),o=r*Math.pow(2,52-i),i<=-1023&&(!isFinite(o)||o<Math.pow(2,52))?i=-1022:(o-=Math.pow(2,52),i+=1023)):(i=2047,o=isNaN(e)?26985:0);for(var s=0;s<=5;++s,o/=256)t[a+s]=255&o;t[a+6]=(15&i)<<4|15&o,t[a+7]=i>>4|n}var Re=function(t){for(var e=[],a=10240,n=0;n<t[0].length;++n)if(t[0][n])for(var i=0,o=t[0][n].length;i<o;i+=a)e.push.apply(e,t[0][n].slice(i,i+a));return e},Ne=y?function(e){return e[0].length>0&&t.isBuffer(e[0][0])?t.concat(e[0].map((function(e){return t.isBuffer(e)?e:b(e)}))):Re(e)}:Re,Pe=function(t,e,a){for(var n=[],i=e;i<a;i+=2)n.push(String.fromCharCode(aa(t,i)));return n.join("").replace(M,"")},je=y?function(e,a,n){return t.isBuffer(e)?e.toString("utf16le",a,n).replace(M,""):Pe(e,a,n)}:Pe,$e=function(t,e,a){for(var n=[],i=e;i<e+a;++i)n.push(("0"+t[i].toString(16)).slice(-2));return n.join("")},Fe=y?function(e,a,n){return t.isBuffer(e)?e.toString("hex",a,a+n):$e(e,a,n)}:$e,Be=function(t,e,a){for(var n=[],i=e;i<a;i++)n.push(String.fromCharCode(ea(t,i)));return n.join("")},Ye=y?function(e,a,n){return t.isBuffer(e)?e.toString("utf8",a,n):Be(e,a,n)}:Be,Ue=function(t,e){var a=ia(t,e);return a>0?Ye(t,e+4,e+4+a-1):""},ze=Ue,Ve=function(t,e){var a=ia(t,e);return a>0?Ye(t,e+4,e+4+a-1):""},He=Ve,Ge=function(t,e){var a=2*ia(t,e);return a>0?Ye(t,e+4,e+4+a-1):""},We=Ge,Ke=function(t,e){var a=ia(t,e);return a>0?je(t,e+4,e+4+a):""},Ze=Ke,qe=function(t,e){var a=ia(t,e);return a>0?Ye(t,e+4,e+4+a):""},Xe=qe,Qe=function(t,e){return De(t,e)},Je=Qe;function ta(){je=function(t,e,a){return p.utils.decode(1200,t.slice(e,a)).replace(M,"")},Ye=function(t,e,a){return p.utils.decode(65001,t.slice(e,a))},ze=function(t,e){var a=ia(t,e);return a>0?p.utils.decode(r,t.slice(e+4,e+4+a-1)):""},He=function(t,e){var a=ia(t,e);return a>0?p.utils.decode(o,t.slice(e+4,e+4+a-1)):""},We=function(t,e){var a=2*ia(t,e);return a>0?p.utils.decode(1200,t.slice(e+4,e+4+a-1)):""},Ze=function(t,e){var a=ia(t,e);return a>0?p.utils.decode(1200,t.slice(e+4,e+4+a)):""},Xe=function(t,e){var a=ia(t,e);return a>0?p.utils.decode(65001,t.slice(e+4,e+4+a)):""}}y&&(ze=function(e,a){if(!t.isBuffer(e))return Ue(e,a);var n=e.readUInt32LE(a);return n>0?e.toString("utf8",a+4,a+4+n-1):""},He=function(e,a){if(!t.isBuffer(e))return Ve(e,a);var n=e.readUInt32LE(a);return n>0?e.toString("utf8",a+4,a+4+n-1):""},We=function(e,a){if(!t.isBuffer(e))return Ge(e,a);var n=2*e.readUInt32LE(a);return e.toString("utf16le",a+4,a+4+n-1)},Ze=function(e,a){if(!t.isBuffer(e))return Ke(e,a);var n=e.readUInt32LE(a);return e.toString("utf16le",a+4,a+4+n)},Xe=function(e,a){if(!t.isBuffer(e))return qe(e,a);var n=e.readUInt32LE(a);return e.toString("utf8",a+4,a+4+n)},Je=function(e,a){return t.isBuffer(e)?e.readDoubleLE(a):Qe(e,a)}),"undefined"!==typeof p&&ta();var ea=function(t,e){return t[e]},aa=function(t,e){return 256*t[e+1]+t[e]},na=function(t,e){var a=256*t[e+1]+t[e];return a<32768?a:-1*(65535-a+1)},ia=function(t,e){return t[e+3]*(1<<24)+(t[e+2]<<16)+(t[e+1]<<8)+t[e]},oa=function(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]},ra=function(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]};function sa(e,a){var n,i,r,s,l,c,u="",d=[];switch(a){case"dbcs":if(c=this.l,y&&t.isBuffer(this))u=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)u+=String.fromCharCode(aa(this,c)),c+=2;e*=2;break;case"utf8":u=Ye(this,this.l,this.l+e);break;case"utf16le":e*=2,u=je(this,this.l,this.l+e);break;case"wstr":if("undefined"===typeof p)return sa.call(this,e,"dbcs");u=p.utils.decode(o,this.slice(this.l,this.l+2*e)),e*=2;break;case"lpstr-ansi":u=ze(this,this.l),e=4+ia(this,this.l);break;case"lpstr-cp":u=He(this,this.l),e=4+ia(this,this.l);break;case"lpwstr":u=We(this,this.l),e=4+2*ia(this,this.l);break;case"lpp4":e=4+ia(this,this.l),u=Ze(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+ia(this,this.l),u=Xe(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":e=0,u="";while(0!==(r=ea(this,this.l+e++)))d.push(f(r));u=d.join("");break;case"_wstr":e=0,u="";while(0!==(r=aa(this,this.l+e)))d.push(f(r)),e+=2;e+=2,u=d.join("");break;case"dbcs-cont":for(u="",c=this.l,l=0;l<e;++l){if(this.lens&&-1!==this.lens.indexOf(c))return r=ea(this,c),this.l=c+1,s=sa.call(this,e-l,r?"dbcs-cont":"sbcs-cont"),d.join("")+s;d.push(f(aa(this,c))),c+=2}u=d.join(""),e*=2;break;case"cpstr":if("undefined"!==typeof p){u=p.utils.decode(o,this.slice(this.l,this.l+e));break}case"sbcs-cont":for(u="",c=this.l,l=0;l!=e;++l){if(this.lens&&-1!==this.lens.indexOf(c))return r=ea(this,c),this.l=c+1,s=sa.call(this,e-l,r?"dbcs-cont":"sbcs-cont"),d.join("")+s;d.push(f(ea(this,c))),c+=1}u=d.join("");break;default:switch(e){case 1:return n=ea(this,this.l),this.l++,n;case 2:return n=("i"===a?na:aa)(this,this.l),this.l+=2,n;case 4:case-4:return"i"===a||0===(128&this[this.l+3])?(n=(e>0?oa:ra)(this,this.l),this.l+=4,n):(i=ia(this,this.l),this.l+=4,i);case 8:case-8:if("f"===a)return i=8==e?Je(this,this.l):Je([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:u=Fe(this,this.l,e);break}}return this.l+=e,u}var la=function(t,e,a){t[a]=255&e,t[a+1]=e>>>8&255,t[a+2]=e>>>16&255,t[a+3]=e>>>24&255},ca=function(t,e,a){t[a]=255&e,t[a+1]=e>>8&255,t[a+2]=e>>16&255,t[a+3]=e>>24&255},ua=function(t,e,a){t[a]=255&e,t[a+1]=e>>>8&255};function da(t,e,a){var n=0,i=0;if("dbcs"===a){for(i=0;i!=e.length;++i)ua(this,e.charCodeAt(i),this.l+2*i);n=2*e.length}else if("sbcs"===a){if("undefined"!==typeof p&&874==r)for(i=0;i!=e.length;++i){var o=p.utils.encode(r,e.charAt(i));this[this.l+i]=o[0]}else for(e=e.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=e.length;++i)this[this.l+i]=255&e.charCodeAt(i);n=e.length}else{if("hex"===a){for(;i<t;++i)this[this.l++]=parseInt(e.slice(2*i,2*i+2),16)||0;return this}if("utf16le"===a){var s=Math.min(this.l+t,this.length);for(i=0;i<Math.min(e.length,t);++i){var l=e.charCodeAt(i);this[this.l++]=255&l,this[this.l++]=l>>8}while(this.l<s)this[this.l++]=0;return this}switch(t){case 1:n=1,this[this.l]=255&e;break;case 2:n=2,this[this.l]=255&e,e>>>=8,this[this.l+1]=255&e;break;case 3:n=3,this[this.l]=255&e,e>>>=8,this[this.l+1]=255&e,e>>>=8,this[this.l+2]=255&e;break;case 4:n=4,la(this,e,this.l);break;case 8:if(n=8,"f"===a){Le(this,e,this.l);break}case 16:break;case-4:n=4,ca(this,e,this.l);break}}return this.l+=n,this}function ha(t,e){var a=Fe(this,this.l,t.length>>1);if(a!==t)throw new Error(e+"Expected "+t+" saw "+a);this.l+=t.length>>1}function pa(t,e){t.l=e,t.read_shift=sa,t.chk=ha,t.write_shift=da}function fa(t){var e=S(t);return pa(e,0),e}function ma(t){return parseInt(_a(t),10)-1}function ga(t){return""+(t+1)}function _a(t){return t.replace(/\$(\d+)$/,"$1")}function va(t){for(var e=ba(t),a=0,n=0;n!==e.length;++n)a=26*a+e.charCodeAt(n)-64;return a-1}function ya(t){if(t<0)throw new Error("invalid column "+t);var e="";for(++t;t;t=Math.floor((t-1)/26))e=String.fromCharCode((t-1)%26+65)+e;return e}function ba(t){return t.replace(/^\$([A-Z])/,"$1")}function Sa(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Oa(t){for(var e=0,a=0,n=0;n<t.length;++n){var i=t.charCodeAt(n);i>=48&&i<=57?e=10*e+(i-48):i>=65&&i<=90&&(a=26*a+(i-64))}return{c:a-1,r:e-1}}function Ta(t){for(var e=t.c+1,a="";e;e=(e-1)/26|0)a=String.fromCharCode((e-1)%26+65)+a;return a+(t.r+1)}function Aa(t){var e=t.indexOf(":");return-1==e?{s:Oa(t),e:Oa(t)}:{s:Oa(t.slice(0,e)),e:Oa(t.slice(e+1))}}function xa(t,e){return"undefined"===typeof e||"number"===typeof e?xa(t.s,t.e):("string"!==typeof t&&(t=Ta(t)),"string"!==typeof e&&(e=Ta(e)),t==e?t:t+":"+e)}function Ca(t){var e={s:{c:0,r:0},e:{c:0,r:0}},a=0,n=0,i=0,o=t.length;for(a=0;n<o;++n){if((i=t.charCodeAt(n)-64)<1||i>26)break;a=26*a+i}for(e.s.c=--a,a=0;n<o;++n){if((i=t.charCodeAt(n)-48)<0||i>9)break;a=10*a+i}if(e.s.r=--a,n===o||10!=i)return e.e.c=e.s.c,e.e.r=e.s.r,e;for(++n,a=0;n!=o;++n){if((i=t.charCodeAt(n)-64)<1||i>26)break;a=26*a+i}for(e.e.c=--a,a=0;n!=o;++n){if((i=t.charCodeAt(n)-48)<0||i>9)break;a=10*a+i}return e.e.r=--a,e}function Ea(t,e){var a="d"==t.t&&e instanceof Date;if(null!=t.z)try{return t.w=Pt(t.z,a?qt(e):e)}catch(n){}try{return t.w=Pt((t.XF||{}).numFmtId||(a?14:0),a?qt(e):e)}catch(n){return""+e}}function wa(t,e,a){return null==t||null==t.t||"z"==t.t?"":void 0!==t.w?t.w:("d"==t.t&&!t.z&&a&&a.dateNF&&(t.z=a.dateNF),"e"==t.t?Da[t.v]||t.v:Ea(t,void 0==e?t.v:e))}function Ma(t,e){var a=e&&e.sheet?e.sheet:"Sheet1",n={};return n[a]=t,{SheetNames:[a],Sheets:n}}function ka(t,e,a){var n=a||{},i=t?Array.isArray(t):n.dense;null!=m&&null==i&&(i=m);var o=t||(i?[]:{}),r=0,s=0;if(o&&null!=n.origin){if("number"==typeof n.origin)r=n.origin;else{var l="string"==typeof n.origin?Oa(n.origin):n.origin;r=l.r,s=l.c}o["!ref"]||(o["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var u=Ca(o["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),-1==r&&(c.e.r=r=u.e.r+1)}for(var d=0;d!=e.length;++d)if(e[d]){if(!Array.isArray(e[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=e[d].length;++h)if("undefined"!==typeof e[d][h]){var p={v:e[d][h]},f=r+d,g=s+h;if(c.s.r>f&&(c.s.r=f),c.s.c>g&&(c.s.c=g),c.e.r<f&&(c.e.r=f),c.e.c<g&&(c.e.c=g),!e[d][h]||"object"!==typeof e[d][h]||Array.isArray(e[d][h])||e[d][h]instanceof Date)if(Array.isArray(p.v)&&(p.f=e[d][h][1],p.v=p.v[0]),null===p.v)if(p.f)p.t="n";else if(n.nullError)p.t="e",p.v=0;else{if(!n.sheetStubs)continue;p.t="z"}else"number"===typeof p.v?p.t="n":"boolean"===typeof p.v?p.t="b":p.v instanceof Date?(p.z=n.dateNF||V[14],n.cellDates?(p.t="d",p.w=Pt(p.z,qt(p.v))):(p.t="n",p.v=qt(p.v),p.w=Pt(p.z,p.v))):p.t="s";else p=e[d][h];if(i)o[f]||(o[f]=[]),o[f][g]&&o[f][g].z&&(p.z=o[f][g].z),o[f][g]=p;else{var _=Ta({c:g,r:f});o[_]&&o[_].z&&(p.z=o[_].z),o[_]=p}}}return c.s.c<1e7&&(o["!ref"]=xa(c)),o}function Ia(t,e){return ka(null,t,e)}var Da={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},La={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Ra={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Na(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Pa(t,e){var a,n=Kt(La),i=[];i[i.length]=le,i[i.length]=Ce("Types",null,{xmlns:Me.CT,"xmlns:xsd":Me.xsd,"xmlns:xsi":Me.xsi}),i=i.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(t){return Ce("Default",null,{Extension:t[0],ContentType:t[1]})})));var o=function(n){t[n]&&t[n].length>0&&(a=t[n][0],i[i.length]=Ce("Override",null,{PartName:("/"==a[0]?"":"/")+a,ContentType:Ra[n][e.bookType]||Ra[n]["xlsx"]}))},r=function(a){(t[a]||[]).forEach((function(t){i[i.length]=Ce("Override",null,{PartName:("/"==t[0]?"":"/")+t,ContentType:Ra[a][e.bookType]||Ra[a]["xlsx"]})}))},s=function(e){(t[e]||[]).forEach((function(t){i[i.length]=Ce("Override",null,{PartName:("/"==t[0]?"":"/")+t,ContentType:n[e][0]})}))};return o("workbooks"),r("sheets"),r("charts"),s("themes"),["strs","styles"].forEach(o),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),r("metadata"),s("people"),i.length>2&&(i[i.length]="</Types>",i[1]=i[1].replace("/>",">")),i.join("")}var ja={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function $a(t){var e=t.lastIndexOf("/");return t.slice(0,e+1)+"_rels/"+t.slice(e+1)+".rels"}function Fa(t){var e=[le,Ce("Relationships",null,{xmlns:Me.RELS})];return Ht(t["!id"]).forEach((function(a){e[e.length]=Ce("Relationship",null,t["!id"][a])})),e.length>2&&(e[e.length]="</Relationships>",e[1]=e[1].replace("/>",">")),e.join("")}function Ba(t,e,a,n,i,o){if(i||(i={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),e<0)for(e=t["!idx"];t["!id"]["rId"+e];++e);if(t["!idx"]=e+1,i.Id="rId"+e,i.Type=n,i.Target=a,o?i.TargetMode=o:[ja.HLINK,ja.XPATH,ja.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),t["!id"][i.Id])throw new Error("Cannot rewrite rId "+e);return t["!id"][i.Id]=i,t[("/"+i.Target).replace("//","/")]=i,e}var Ya=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Ua(t,e,a,n,i){null==i[t]&&null!=e&&""!==e&&(i[t]=e,e=pe(e),n[n.length]=a?Ce(t,e,a):Ae(t,e))}function za(t,e){var a=e||{},n=[le,Ce("cp:coreProperties",null,{"xmlns:cp":Me.CORE_PROPS,"xmlns:dc":Me.dc,"xmlns:dcterms":Me.dcterms,"xmlns:dcmitype":Me.dcmitype,"xmlns:xsi":Me.xsi})],i={};if(!t&&!a.Props)return n.join("");t&&(null!=t.CreatedDate&&Ua("dcterms:created","string"===typeof t.CreatedDate?t.CreatedDate:Ee(t.CreatedDate,a.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),null!=t.ModifiedDate&&Ua("dcterms:modified","string"===typeof t.ModifiedDate?t.ModifiedDate:Ee(t.ModifiedDate,a.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var o=0;o!=Ya.length;++o){var r=Ya[o],s=a.Props&&null!=a.Props[r[1]]?a.Props[r[1]]:t?t[r[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&Ua(r[0],s,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var Va=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function Ha(t){var e=[],a=Ce;return t||(t={}),t.Application="SheetJS",e[e.length]=le,e[e.length]=Ce("Properties",null,{xmlns:Me.EXT_PROPS,"xmlns:vt":Me.vt}),Va.forEach((function(n){if(void 0!==t[n[1]]){var i;switch(n[2]){case"string":i=pe(String(t[n[1]]));break;case"bool":i=t[n[1]]?"true":"false";break}void 0!==i&&(e[e.length]=a(n[0],i))}})),e[e.length]=a("HeadingPairs",a("vt:vector",a("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+a("vt:variant",a("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),e[e.length]=a("TitlesOfParts",a("vt:vector",t.SheetNames.map((function(t){return"<vt:lpstr>"+pe(t)+"</vt:lpstr>"})).join(""),{size:t.Worksheets,baseType:"lpstr"})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}function Ga(t){var e=[le,Ce("Properties",null,{xmlns:Me.CUST_PROPS,"xmlns:vt":Me.vt})];if(!t)return e.join("");var a=1;return Ht(t).forEach((function(n){++a,e[e.length]=Ce("property",we(t[n],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:a,name:pe(n)})})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var Wa=/^\s|\s$|[\t\n\r]/;function Ka(t,e){if(!e.bookSST)return"";var a=[le];a[a.length]=Ce("sst",null,{xmlns:ke[0],count:t.Count,uniqueCount:t.Unique});for(var n=0;n!=t.length;++n)if(null!=t[n]){var i=t[n],o="<si>";i.r?o+=i.r:(o+="<t",i.t||(i.t=""),i.t.match(Wa)&&(o+=' xml:space="preserve"'),o+=">"+pe(i.t)+"</t>"),o+="</si>",a[a.length]=o}return a.length>2&&(a[a.length]="</sst>",a[1]=a[1].replace("/>",">")),a.join("")}function Za(t){if("undefined"!==typeof p)return p.utils.encode(r,t);for(var e=[],a=t.split(""),n=0;n<a.length;++n)e[n]=a[n].charCodeAt(0);return e}function qa(t){var e,a,n,i,o,r,s=0,l=Za(t),c=l.length+1;for(e=S(c),e[0]=l.length,a=1;a!=c;++a)e[a]=l[a-1];for(a=c-1;a>=0;--a)n=e[a],i=0===(16384&s)?0:1,o=s<<1&32767,r=i|o,s=r^n;return 52811^s}var Xa=6,Qa=Xa;function Ja(t){return Math.floor((t-5)/Qa*100+.5)/100}function tn(t){return Math.round((t*Qa+5)/Qa*256)/256}var en=96,an=en;function nn(t){return 96*t/an}function on(t){var e=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(a){for(var n=a[0];n<=a[1];++n)null!=t[n]&&(e[e.length]=Ce("numFmt",null,{numFmtId:n,formatCode:pe(t[n])}))})),1===e.length?"":(e[e.length]="</numFmts>",e[0]=Ce("numFmts",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function rn(t){var e=[];return e[e.length]=Ce("cellXfs",null),t.forEach((function(t){e[e.length]=Ce("xf",null,t)})),e[e.length]="</cellXfs>",2===e.length?"":(e[0]=Ce("cellXfs",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function sn(t,e){var a,n=[le,Ce("styleSheet",null,{xmlns:ke[0],"xmlns:vt":Me.vt})];return t.SSF&&null!=(a=on(t.SSF))&&(n[n.length]=a),n[n.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',n[n.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',n[n.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',n[n.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(a=rn(e.cellXfs))&&(n[n.length]=a),n[n.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',n[n.length]='<dxfs count="0"/>',n[n.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',n.length>2&&(n[n.length]="</styleSheet>",n[1]=n[1].replace("/>",">")),n.join("")}function ln(t,e){if(e&&e.themeXLSX)return e.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var a=[le];return a[a.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',a[a.length]="<a:themeElements>",a[a.length]='<a:clrScheme name="Office">',a[a.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',a[a.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',a[a.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',a[a.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',a[a.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',a[a.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',a[a.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',a[a.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',a[a.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',a[a.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',a[a.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',a[a.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',a[a.length]="</a:clrScheme>",a[a.length]='<a:fontScheme name="Office">',a[a.length]="<a:majorFont>",a[a.length]='<a:latin typeface="Cambria"/>',a[a.length]='<a:ea typeface=""/>',a[a.length]='<a:cs typeface=""/>',a[a.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',a[a.length]='<a:font script="Hang" typeface="맑은 고딕"/>',a[a.length]='<a:font script="Hans" typeface="宋体"/>',a[a.length]='<a:font script="Hant" typeface="新細明體"/>',a[a.length]='<a:font script="Arab" typeface="Times New Roman"/>',a[a.length]='<a:font script="Hebr" typeface="Times New Roman"/>',a[a.length]='<a:font script="Thai" typeface="Tahoma"/>',a[a.length]='<a:font script="Ethi" typeface="Nyala"/>',a[a.length]='<a:font script="Beng" typeface="Vrinda"/>',a[a.length]='<a:font script="Gujr" typeface="Shruti"/>',a[a.length]='<a:font script="Khmr" typeface="MoolBoran"/>',a[a.length]='<a:font script="Knda" typeface="Tunga"/>',a[a.length]='<a:font script="Guru" typeface="Raavi"/>',a[a.length]='<a:font script="Cans" typeface="Euphemia"/>',a[a.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',a[a.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',a[a.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',a[a.length]='<a:font script="Thaa" typeface="MV Boli"/>',a[a.length]='<a:font script="Deva" typeface="Mangal"/>',a[a.length]='<a:font script="Telu" typeface="Gautami"/>',a[a.length]='<a:font script="Taml" typeface="Latha"/>',a[a.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',a[a.length]='<a:font script="Orya" typeface="Kalinga"/>',a[a.length]='<a:font script="Mlym" typeface="Kartika"/>',a[a.length]='<a:font script="Laoo" typeface="DokChampa"/>',a[a.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',a[a.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',a[a.length]='<a:font script="Viet" typeface="Times New Roman"/>',a[a.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',a[a.length]='<a:font script="Geor" typeface="Sylfaen"/>',a[a.length]="</a:majorFont>",a[a.length]="<a:minorFont>",a[a.length]='<a:latin typeface="Calibri"/>',a[a.length]='<a:ea typeface=""/>',a[a.length]='<a:cs typeface=""/>',a[a.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',a[a.length]='<a:font script="Hang" typeface="맑은 고딕"/>',a[a.length]='<a:font script="Hans" typeface="宋体"/>',a[a.length]='<a:font script="Hant" typeface="新細明體"/>',a[a.length]='<a:font script="Arab" typeface="Arial"/>',a[a.length]='<a:font script="Hebr" typeface="Arial"/>',a[a.length]='<a:font script="Thai" typeface="Tahoma"/>',a[a.length]='<a:font script="Ethi" typeface="Nyala"/>',a[a.length]='<a:font script="Beng" typeface="Vrinda"/>',a[a.length]='<a:font script="Gujr" typeface="Shruti"/>',a[a.length]='<a:font script="Khmr" typeface="DaunPenh"/>',a[a.length]='<a:font script="Knda" typeface="Tunga"/>',a[a.length]='<a:font script="Guru" typeface="Raavi"/>',a[a.length]='<a:font script="Cans" typeface="Euphemia"/>',a[a.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',a[a.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',a[a.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',a[a.length]='<a:font script="Thaa" typeface="MV Boli"/>',a[a.length]='<a:font script="Deva" typeface="Mangal"/>',a[a.length]='<a:font script="Telu" typeface="Gautami"/>',a[a.length]='<a:font script="Taml" typeface="Latha"/>',a[a.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',a[a.length]='<a:font script="Orya" typeface="Kalinga"/>',a[a.length]='<a:font script="Mlym" typeface="Kartika"/>',a[a.length]='<a:font script="Laoo" typeface="DokChampa"/>',a[a.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',a[a.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',a[a.length]='<a:font script="Viet" typeface="Arial"/>',a[a.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',a[a.length]='<a:font script="Geor" typeface="Sylfaen"/>',a[a.length]="</a:minorFont>",a[a.length]="</a:fontScheme>",a[a.length]='<a:fmtScheme name="Office">',a[a.length]="<a:fillStyleLst>",a[a.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',a[a.length]='<a:gradFill rotWithShape="1">',a[a.length]="<a:gsLst>",a[a.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',a[a.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',a[a.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',a[a.length]="</a:gsLst>",a[a.length]='<a:lin ang="16200000" scaled="1"/>',a[a.length]="</a:gradFill>",a[a.length]='<a:gradFill rotWithShape="1">',a[a.length]="<a:gsLst>",a[a.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',a[a.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',a[a.length]="</a:gsLst>",a[a.length]='<a:lin ang="16200000" scaled="0"/>',a[a.length]="</a:gradFill>",a[a.length]="</a:fillStyleLst>",a[a.length]="<a:lnStyleLst>",a[a.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',a[a.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',a[a.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',a[a.length]="</a:lnStyleLst>",a[a.length]="<a:effectStyleLst>",a[a.length]="<a:effectStyle>",a[a.length]="<a:effectLst>",a[a.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',a[a.length]="</a:effectLst>",a[a.length]="</a:effectStyle>",a[a.length]="<a:effectStyle>",a[a.length]="<a:effectLst>",a[a.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',a[a.length]="</a:effectLst>",a[a.length]="</a:effectStyle>",a[a.length]="<a:effectStyle>",a[a.length]="<a:effectLst>",a[a.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',a[a.length]="</a:effectLst>",a[a.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',a[a.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',a[a.length]="</a:effectStyle>",a[a.length]="</a:effectStyleLst>",a[a.length]="<a:bgFillStyleLst>",a[a.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',a[a.length]='<a:gradFill rotWithShape="1">',a[a.length]="<a:gsLst>",a[a.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',a[a.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',a[a.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',a[a.length]="</a:gsLst>",a[a.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',a[a.length]="</a:gradFill>",a[a.length]='<a:gradFill rotWithShape="1">',a[a.length]="<a:gsLst>",a[a.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',a[a.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',a[a.length]="</a:gsLst>",a[a.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',a[a.length]="</a:gradFill>",a[a.length]="</a:bgFillStyleLst>",a[a.length]="</a:fmtScheme>",a[a.length]="</a:themeElements>",a[a.length]="<a:objectDefaults>",a[a.length]="<a:spDef>",a[a.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',a[a.length]="</a:spDef>",a[a.length]="<a:lnDef>",a[a.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',a[a.length]="</a:lnDef>",a[a.length]="</a:objectDefaults>",a[a.length]="<a:extraClrSchemeLst/>",a[a.length]="</a:theme>",a.join("")}function cn(){var t=[le];return t.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n  <metadataTypes count="1">\n    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n  </metadataTypes>\n  <futureMetadata name="XLDAPR" count="1">\n    <bk>\n      <extLst>\n        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n        </ext>\n      </extLst>\n    </bk>\n  </futureMetadata>\n  <cellMetadata count="1">\n    <bk>\n      <rc t="1" v="0"/>\n    </bk>\n  </cellMetadata>\n</metadata>'),t.join("")}var un=1024;function dn(t,e){var a=[21600,21600],n=["m0,0l0",a[1],a[0],a[1],a[0],"0xe"].join(","),i=[Ce("xml",null,{"xmlns:v":Ie.v,"xmlns:o":Ie.o,"xmlns:x":Ie.x,"xmlns:mv":Ie.mv}).replace(/\/>/,">"),Ce("o:shapelayout",Ce("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),Ce("v:shapetype",[Ce("v:stroke",null,{joinstyle:"miter"}),Ce("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:a.join(","),path:n})];while(un<1e3*t)un+=1e3;return e.forEach((function(t){var e=Oa(t[0]),a={color2:"#BEFF82",type:"gradient"};"gradient"==a.type&&(a.angle="-180");var n="gradient"==a.type?Ce("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=Ce("v:fill",n,a),r={on:"t",obscured:"t"};++un,i=i.concat(["<v:shape"+xe({id:"_x0000_s"+un,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(t[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",o,Ce("v:shadow",null,r),Ce("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Ae("x:Anchor",[e.c+1,0,e.r+1,0,e.c+3,20,e.r+5,20].join(",")),Ae("x:AutoFill","False"),Ae("x:Row",String(e.r)),Ae("x:Column",String(e.c)),t[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])})),i.push("</xml>"),i.join("")}function hn(t){var e=[le,Ce("comments",null,{xmlns:ke[0]})],a=[];return e.push("<authors>"),t.forEach((function(t){t[1].forEach((function(t){var n=pe(t.a);-1==a.indexOf(n)&&(a.push(n),e.push("<author>"+n+"</author>")),t.T&&t.ID&&-1==a.indexOf("tc="+t.ID)&&(a.push("tc="+t.ID),e.push("<author>tc="+t.ID+"</author>"))}))})),0==a.length&&(a.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),t.forEach((function(t){var n=0,i=[];if(t[1][0]&&t[1][0].T&&t[1][0].ID?n=a.indexOf("tc="+t[1][0].ID):t[1].forEach((function(t){t.a&&(n=a.indexOf(pe(t.a))),i.push(t.t||"")})),e.push('<comment ref="'+t[0]+'" authorId="'+n+'"><text>'),i.length<=1)e.push(Ae("t",pe(i[0]||"")));else{for(var o="Comment:\n    "+i[0]+"\n",r=1;r<i.length;++r)o+="Reply:\n    "+i[r]+"\n";e.push(Ae("t",pe(o)))}e.push("</text></comment>")})),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function pn(t,e,a){var n=[le,Ce("ThreadedComments",null,{xmlns:Me.TCMNT}).replace(/[\/]>/,">")];return t.forEach((function(t){var i="";(t[1]||[]).forEach((function(o,r){if(o.T){o.a&&-1==e.indexOf(o.a)&&e.push(o.a);var s={ref:t[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+a.tcid++).slice(-12)+"}"};0==r?i=s.id:s.parentId=i,o.ID=s.id,o.a&&(s.personId="{54EE7950-7262-4200-6969-"+("000000000000"+e.indexOf(o.a)).slice(-12)+"}"),n.push(Ce("threadedComment",Ae("text",o.t||""),s))}else delete o.ID}))})),n.push("</ThreadedComments>"),n.join("")}function fn(t){var e=[le,Ce("personList",null,{xmlns:Me.TCMNT,"xmlns:x":ke[0]}).replace(/[\/]>/,">")];return t.forEach((function(t,a){e.push(Ce("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+a).slice(-12)+"}",userId:t,providerId:"None"}))})),e.push("</personList>"),e.join("")}var mn=["xlsb","xlsm","xlam","biff8","xla"];var gn="undefined"!==typeof Map;function _n(t,e,a){var n=0,i=t.length;if(a){if(gn?a.has(e):Object.prototype.hasOwnProperty.call(a,e))for(var o=gn?a.get(e):a[e];n<o.length;++n)if(t[o[n]].t===e)return t.Count++,o[n]}else for(;n<i;++n)if(t[n].t===e)return t.Count++,n;return t[i]={t:e},t.Count++,t.Unique++,a&&(gn?(a.has(e)||a.set(e,[]),a.get(e).push(i)):(Object.prototype.hasOwnProperty.call(a,e)||(a[e]=[]),a[e].push(i))),i}function vn(t,e){var a={min:t+1,max:t+1},n=-1;return e.MDW&&(Qa=e.MDW),null!=e.width?a.customWidth=1:null!=e.wpx?n=Ja(e.wpx):null!=e.wch&&(n=e.wch),n>-1?(a.width=tn(n),a.customWidth=1):null!=e.width&&(a.width=e.width),e.hidden&&(a.hidden=!0),null!=e.level&&(a.outlineLevel=a.level=e.level),a}function yn(t,e){if(t){var a=[.7,.7,.75,.75,.3,.3];"xlml"==e&&(a=[1,1,1,1,.5,.5]),null==t.left&&(t.left=a[0]),null==t.right&&(t.right=a[1]),null==t.top&&(t.top=a[2]),null==t.bottom&&(t.bottom=a[3]),null==t.header&&(t.header=a[4]),null==t.footer&&(t.footer=a[5])}}function bn(t,e,a){var n=a.revssf[null!=e.z?e.z:"General"],i=60,o=t.length;if(null==n&&a.ssf)for(;i<392;++i)if(null==a.ssf[i]){jt(e.z,i),a.ssf[i]=e.z,a.revssf[e.z]=n=i;break}for(i=0;i!=o;++i)if(t[i].numFmtId===n)return i;return t[o]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function Sn(t,e,a){if(t&&t["!ref"]){var n=Ca(t["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+a+"): "+t["!ref"])}}function On(t){if(0===t.length)return"";for(var e='<mergeCells count="'+t.length+'">',a=0;a!=t.length;++a)e+='<mergeCell ref="'+xa(t[a])+'"/>';return e+"</mergeCells>"}function Tn(t,e,a,n,i){var o=!1,r={},s=null;if("xlsx"!==n.bookType&&e.vbaraw){var l=e.SheetNames[a];try{e.Workbook&&(l=e.Workbook.Sheets[a].CodeName||l)}catch(u){}o=!0,r.codeName=Se(pe(l))}if(t&&t["!outline"]){var c={summaryBelow:1,summaryRight:1};t["!outline"].above&&(c.summaryBelow=0),t["!outline"].left&&(c.summaryRight=0),s=(s||"")+Ce("outlinePr",null,c)}(o||s)&&(i[i.length]=Ce("sheetPr",s,r))}var An=["objects","scenarios","selectLockedCells","selectUnlockedCells"],xn=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Cn(t){var e={sheet:1};return An.forEach((function(a){null!=t[a]&&t[a]&&(e[a]="1")})),xn.forEach((function(a){null==t[a]||t[a]||(e[a]="0")})),t.password&&(e.password=qa(t.password).toString(16).toUpperCase()),Ce("sheetProtection",null,e)}function En(t){return yn(t),Ce("pageMargins",null,t)}function wn(t,e){for(var a,n=["<cols>"],i=0;i!=e.length;++i)(a=e[i])&&(n[n.length]=Ce("col",null,vn(i,a)));return n[n.length]="</cols>",n.join("")}function Mn(t,e,a,n){var i="string"==typeof t.ref?t.ref:xa(t.ref);a.Workbook||(a.Workbook={Sheets:[]}),a.Workbook.Names||(a.Workbook.Names=[]);var o=a.Workbook.Names,r=Aa(i);r.s.r==r.e.r&&(r.e.r=Aa(e["!ref"]).e.r,i=xa(r));for(var s=0;s<o.length;++s){var l=o[s];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==n){l.Ref="'"+a.SheetNames[n]+"'!"+i;break}}return s==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+a.SheetNames[n]+"'!"+i}),Ce("autoFilter",null,{ref:i})}function kn(t,e,a,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Ce("sheetViews",Ce("sheetView",null,i),{})}function In(t,e,a,n){if(t.c&&a["!comments"].push([e,t.c]),void 0===t.v&&"string"!==typeof t.f||"z"===t.t&&!t.f)return"";var i="",o=t.t,r=t.v;if("z"!==t.t)switch(t.t){case"b":i=t.v?"1":"0";break;case"n":i=""+t.v;break;case"e":i=Da[t.v];break;case"d":n&&n.cellDates?i=te(t.v,-1).toISOString():(t=ee(t),t.t="n",i=""+(t.v=qt(te(t.v)))),"undefined"===typeof t.z&&(t.z=V[14]);break;default:i=t.v;break}var s=Ae("v",pe(i)),l={r:e},c=bn(n.cellXfs,t,n);switch(0!==c&&(l.s=c),t.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(null==t.v){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=Ae("v",""+_n(n.Strings,t.v,n.revStrings)),l.t="s";break}l.t="str";break}if(t.t!=o&&(t.t=o,t.v=r),"string"==typeof t.f&&t.f){var u=t.F&&t.F.slice(0,e.length)==e?{t:"array",ref:t.F}:null;s=Ce("f",pe(t.f),u)+(null!=t.v?s:"")}return t.l&&a["!links"].push([e,t.l]),t.D&&(l.cm=1),Ce("c",s,l)}function Dn(t,e,a,n){var i,o,r=[],s=[],l=Ca(t["!ref"]),c="",u="",d=[],h=0,p=0,f=t["!rows"],m=Array.isArray(t),g={r:u},_=-1;for(p=l.s.c;p<=l.e.c;++p)d[p]=ya(p);for(h=l.s.r;h<=l.e.r;++h){for(s=[],u=ga(h),p=l.s.c;p<=l.e.c;++p){i=d[p]+u;var v=m?(t[h]||[])[p]:t[i];void 0!==v&&(null!=(c=In(v,i,t,e,a,n))&&s.push(c))}(s.length>0||f&&f[h])&&(g={r:u},f&&f[h]&&(o=f[h],o.hidden&&(g.hidden=1),_=-1,o.hpx?_=nn(o.hpx):o.hpt&&(_=o.hpt),_>-1&&(g.ht=_,g.customHeight=1),o.level&&(g.outlineLevel=o.level)),r[r.length]=Ce("row",s.join(""),g))}if(f)for(;h<f.length;++h)f&&f[h]&&(g={r:h+1},o=f[h],o.hidden&&(g.hidden=1),_=-1,o.hpx?_=nn(o.hpx):o.hpt&&(_=o.hpt),_>-1&&(g.ht=_,g.customHeight=1),o.level&&(g.outlineLevel=o.level),r[r.length]=Ce("row","",g));return r.join("")}function Ln(t,e,a,n){var i=[le,Ce("worksheet",null,{xmlns:ke[0],"xmlns:r":Me.r})],o=a.SheetNames[t],r=0,s="",l=a.Sheets[o];null==l&&(l={});var c=l["!ref"]||"A1",u=Ca(c);if(u.e.c>16383||u.e.r>1048575){if(e.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=xa(u)}n||(n={}),l["!comments"]=[];var d=[];Tn(l,a,t,e,i),i[i.length]=Ce("dimension",null,{ref:c}),i[i.length]=kn(l,e,t,a),e.sheetFormat&&(i[i.length]=Ce("sheetFormatPr",null,{defaultRowHeight:e.sheetFormat.defaultRowHeight||"16",baseColWidth:e.sheetFormat.baseColWidth||"10",outlineLevelRow:e.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(i[i.length]=wn(l,l["!cols"])),i[r=i.length]="<sheetData/>",l["!links"]=[],null!=l["!ref"]&&(s=Dn(l,e,t,a,n),s.length>0&&(i[i.length]=s)),i.length>r+1&&(i[i.length]="</sheetData>",i[r]=i[r].replace("/>",">")),l["!protect"]&&(i[i.length]=Cn(l["!protect"])),null!=l["!autofilter"]&&(i[i.length]=Mn(l["!autofilter"],l,a,t)),null!=l["!merges"]&&l["!merges"].length>0&&(i[i.length]=On(l["!merges"]));var h,p=-1,f=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach((function(t){t[1].Target&&(h={ref:t[0]},"#"!=t[1].Target.charAt(0)&&(f=Ba(n,-1,pe(t[1].Target).replace(/#.*$/,""),ja.HLINK),h["r:id"]="rId"+f),(p=t[1].Target.indexOf("#"))>-1&&(h.location=pe(t[1].Target.slice(p+1))),t[1].Tooltip&&(h.tooltip=pe(t[1].Tooltip)),i[i.length]=Ce("hyperlink",null,h))})),i[i.length]="</hyperlinks>"),delete l["!links"],null!=l["!margins"]&&(i[i.length]=En(l["!margins"])),e&&!e.ignoreEC&&void 0!=e.ignoreEC||(i[i.length]=Ae("ignoredErrors",Ce("ignoredError",null,{numberStoredAsText:1,sqref:c}))),d.length>0&&(f=Ba(n,-1,"../drawings/drawing"+(t+1)+".xml",ja.DRAW),i[i.length]=Ce("drawing",null,{"r:id":"rId"+f}),l["!drawing"]=d),l["!comments"].length>0&&(f=Ba(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",ja.VML),i[i.length]=Ce("legacyDrawing",null,{"r:id":"rId"+f}),l["!legacy"]=f),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}var Rn=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];var Nn="][*?/\\".split("");function Pn(t,e){if(t.length>31){if(e)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var a=!0;return Nn.forEach((function(n){if(-1!=t.indexOf(n)){if(!e)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");a=!1}})),a}function jn(t,e,a){t.forEach((function(n,i){Pn(n);for(var o=0;o<i;++o)if(n==t[o])throw new Error("Duplicate Sheet Name: "+n);if(a){var r=e&&e[i]&&e[i].CodeName||n;if(95==r.charCodeAt(0)&&r.length>22)throw new Error("Bad Code Name: Worksheet"+r)}}))}function $n(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var e=t.Workbook&&t.Workbook.Sheets||[];jn(t.SheetNames,e,!!t.vbaraw);for(var a=0;a<t.SheetNames.length;++a)Sn(t.Sheets[t.SheetNames[a]],t.SheetNames[a],a)}function Fn(t){var e=[le];e[e.length]=Ce("workbook",null,{xmlns:ke[0],"xmlns:r":Me.r});var a=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(Rn.forEach((function(e){null!=t.Workbook.WBProps[e[0]]&&t.Workbook.WBProps[e[0]]!=e[1]&&(n[e[0]]=t.Workbook.WBProps[e[0]])})),t.Workbook.WBProps.CodeName&&(n.codeName=t.Workbook.WBProps.CodeName,delete n.CodeName)),e[e.length]=Ce("workbookPr",null,n);var i=t.Workbook&&t.Workbook.Sheets||[],o=0;if(i&&i[0]&&i[0].Hidden){for(e[e.length]="<bookViews>",o=0;o!=t.SheetNames.length;++o){if(!i[o])break;if(!i[o].Hidden)break}o==t.SheetNames.length&&(o=0),e[e.length]='<workbookView firstSheet="'+o+'" activeTab="'+o+'"/>',e[e.length]="</bookViews>"}for(e[e.length]="<sheets>",o=0;o!=t.SheetNames.length;++o){var r={name:pe(t.SheetNames[o].slice(0,31))};if(r.sheetId=""+(o+1),r["r:id"]="rId"+(o+1),i[o])switch(i[o].Hidden){case 1:r.state="hidden";break;case 2:r.state="veryHidden";break}e[e.length]=Ce("sheet",null,r)}return e[e.length]="</sheets>",a&&(e[e.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach((function(t){var a={name:t.Name};t.Comment&&(a.comment=t.Comment),null!=t.Sheet&&(a.localSheetId=""+t.Sheet),t.Hidden&&(a.hidden="1"),t.Ref&&(e[e.length]=Ce("definedName",pe(t.Ref),a))})),e[e.length]="</definedNames>"),e.length>2&&(e[e.length]="</workbook>",e[1]=e[1].replace("/>",">")),e.join("")}function Bn(t,e,a,n){for(var i=t["!merges"]||[],o=[],r=e.s.c;r<=e.e.c;++r){for(var s=0,l=0,c=0;c<i.length;++c)if(!(i[c].s.r>a||i[c].s.c>r)&&!(i[c].e.r<a||i[c].e.c<r)){if(i[c].s.r<a||i[c].s.c<r){s=-1;break}s=i[c].e.r-i[c].s.r+1,l=i[c].e.c-i[c].s.c+1;break}if(!(s<0)){var u=Ta({r:a,c:r}),d=n.dense?(t[a]||[])[r]:t[u],h=d&&null!=d.v&&(d.h||me(d.w||(wa(d),d.w)||""))||"",p={};s>1&&(p.rowspan=s),l>1&&(p.colspan=l),n.editable?h='<span contenteditable="true">'+h+"</span>":d&&(p["data-t"]=d&&d.t||"z",null!=d.v&&(p["data-v"]=d.v),null!=d.z&&(p["data-z"]=d.z),d.l&&"#"!=(d.l.Target||"#").charAt(0)&&(h='<a href="'+d.l.Target+'">'+h+"</a>")),p.id=(n.id||"sjs")+"-"+u,o.push(Ce("td",h,p))}}var f="<tr>";return f+o.join("")+"</tr>"}var Yn='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Un="</body></html>";function zn(t,e,a){var n=[];return n.join("")+"<table"+(a&&a.id?' id="'+a.id+'"':"")+">"}function Vn(t,e){var a=e||{},n=null!=a.header?a.header:Yn,i=null!=a.footer?a.footer:Un,o=[n],r=Aa(t["!ref"]);a.dense=Array.isArray(t),o.push(zn(t,r,a));for(var s=r.s.r;s<=r.e.r;++s)o.push(Bn(t,r,s,a));return o.push("</table>"+i),o.join("")}function Hn(t,e,a){var n=a||{};null!=m&&(n.dense=m);var i=0,o=0;if(null!=n.origin)if("number"==typeof n.origin)i=n.origin;else{var r="string"==typeof n.origin?Oa(n.origin):n.origin;i=r.r,o=r.c}var s=e.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r:i,c:o}};if(t["!ref"]){var u=Aa(t["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),-1==i&&(c.e.r=i=u.e.r+1)}var d=[],h=0,p=t["!rows"]||(t["!rows"]=[]),f=0,g=0,_=0,v=0,y=0,b=0;for(t["!cols"]||(t["!cols"]=[]);f<s.length&&g<l;++f){var S=s[f];if(Kn(S)){if(n.display)continue;p[g]={hidden:!0}}var O=S.children;for(_=v=0;_<O.length;++_){var T=O[_];if(!n.display||!Kn(T)){var A=T.hasAttribute("data-v")?T.getAttribute("data-v"):T.hasAttribute("v")?T.getAttribute("v"):Oe(T.innerHTML),x=T.getAttribute("data-z")||T.getAttribute("z");for(h=0;h<d.length;++h){var C=d[h];C.s.c==v+o&&C.s.r<g+i&&g+i<=C.e.r&&(v=C.e.c+1-o,h=-1)}b=+T.getAttribute("colspan")||1,((y=+T.getAttribute("rowspan")||1)>1||b>1)&&d.push({s:{r:g+i,c:v+o},e:{r:g+i+(y||1)-1,c:v+o+(b||1)-1}});var E={t:"s",v:A},w=T.getAttribute("data-t")||T.getAttribute("t")||"";null!=A&&(0==A.length?E.t=w||"z":n.raw||0==A.trim().length||"s"==w||("TRUE"===A?E={t:"b",v:!0}:"FALSE"===A?E={t:"b",v:!1}:isNaN(ne(A))?isNaN(oe(A).getDate())||(E={t:"d",v:te(A)},n.cellDates||(E={t:"n",v:qt(E.v)}),E.z=n.dateNF||V[14]):E={t:"n",v:ne(A)})),void 0===E.z&&null!=x&&(E.z=x);var M="",k=T.getElementsByTagName("A");if(k&&k.length)for(var I=0;I<k.length;++I)if(k[I].hasAttribute("href")&&(M=k[I].getAttribute("href"),"#"!=M.charAt(0)))break;M&&"#"!=M.charAt(0)&&(E.l={Target:M}),n.dense?(t[g+i]||(t[g+i]=[]),t[g+i][v+o]=E):t[Ta({c:v+o,r:g+i})]=E,c.e.c<v+o&&(c.e.c=v+o),v+=b}}++g}return d.length&&(t["!merges"]=(t["!merges"]||[]).concat(d)),c.e.r=Math.max(c.e.r,g-1+i),t["!ref"]=xa(c),g>=l&&(t["!fullref"]=xa((c.e.r=s.length-f+g-1+i,c))),t}function Gn(t,e){var a=e||{},n=a.dense?[]:{};return Hn(n,t,e)}function Wn(t,e){return Ma(Gn(t,e),e)}function Kn(t){var e="",a=Zn(t);return a&&(e=a(t).getPropertyValue("display")),e||(e=t.style&&t.style.display),"none"===e}function Zn(t){return t.ownerDocument.defaultView&&"function"===typeof t.ownerDocument.defaultView.getComputedStyle?t.ownerDocument.defaultView.getComputedStyle:"function"===typeof getComputedStyle?getComputedStyle:null}function qn(t){return function(e){for(var a=0;a!=t.length;++a){var n=t[a];void 0===e[n[0]]&&(e[n[0]]=n[1]),"n"===n[2]&&(e[n[0]]=Number(e[n[0]]))}}}function Xn(t){qn([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function Qn(t,e){un=1024,t&&!t.SSF&&(t.SSF=ee(V)),t&&t.SSF&&(Ft(),$t(t.SSF),e.revssf=Wt(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,gn?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var a="xml",n=mn.indexOf(e.bookType)>-1,i=Na();Xn(e=e||{});var o=se(),r="",s=0;if(e.cellXfs=[],bn(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),r="docProps/core.xml",re(o,r,za(t.Props,e)),i.coreprops.push(r),Ba(e.rels,2,r,ja.CORE_PROPS),r="docProps/app.xml",t.Props&&t.Props.SheetNames);else if(t.Workbook&&t.Workbook.Sheets){for(var l=[],c=0;c<t.SheetNames.length;++c)2!=(t.Workbook.Sheets[c]||{}).Hidden&&l.push(t.SheetNames[c]);t.Props.SheetNames=l}else t.Props.SheetNames=t.SheetNames;t.Props.Worksheets=t.Props.SheetNames.length,re(o,r,Ha(t.Props,e)),i.extprops.push(r),Ba(e.rels,3,r,ja.EXT_PROPS),t.Custprops!==t.Props&&Ht(t.Custprops||{}).length>0&&(r="docProps/custom.xml",re(o,r,Ga(t.Custprops,e)),i.custprops.push(r),Ba(e.rels,4,r,ja.CUST_PROPS));var u=["SheetJ5"];for(e.tcid=0,s=1;s<=t.SheetNames.length;++s){var d={"!id":{}},h=t.Sheets[t.SheetNames[s-1]],p=(h||{})["!type"]||"sheet";switch(p){case"chart":default:r="xl/worksheets/sheet"+s+"."+a,re(o,r,Ln(s-1,e,t,d)),i.sheets.push(r),Ba(e.wbrels,-1,"worksheets/sheet"+s+"."+a,ja.WS[0])}if(h){var f=h["!comments"],m=!1,g="";if(f&&f.length>0){var _=!1;f.forEach((function(t){t[1].forEach((function(t){1==t.T&&(_=!0)}))})),_&&(g="xl/threadedComments/threadedComment"+s+"."+a,re(o,g,pn(f,u,e)),i.threadedcomments.push(g),Ba(d,-1,"../threadedComments/threadedComment"+s+"."+a,ja.TCMNT)),g="xl/comments"+s+"."+a,re(o,g,hn(f,e)),i.comments.push(g),Ba(d,-1,"../comments"+s+"."+a,ja.CMNT),m=!0}h["!legacy"]&&m&&re(o,"xl/drawings/vmlDrawing"+s+".vml",dn(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}d["!id"].rId1&&re(o,$a(r),Fa(d))}return null!=e.Strings&&e.Strings.length>0&&(r="xl/sharedStrings."+a,re(o,r,Ka(e.Strings,e)),i.strs.push(r),Ba(e.wbrels,-1,"sharedStrings."+a,ja.SST)),r="xl/workbook."+a,re(o,r,Fn(t,e)),i.workbooks.push(r),Ba(e.rels,1,r,ja.WB),r="xl/theme/theme1.xml",re(o,r,ln(t.Themes,e)),i.themes.push(r),Ba(e.wbrels,-1,"theme/theme1.xml",ja.THEME),r="xl/styles."+a,re(o,r,sn(t,e)),i.styles.push(r),Ba(e.wbrels,-1,"styles."+a,ja.STY),t.vbaraw&&n&&(r="xl/vbaProject.bin",re(o,r,t.vbaraw),i.vba.push(r),Ba(e.wbrels,-1,"vbaProject.bin",ja.VBA)),r="xl/metadata."+a,re(o,r,cn()),i.metadata.push(r),Ba(e.wbrels,-1,"metadata."+a,ja.XLMETA),u.length>1&&(r="xl/persons/person.xml",re(o,r,fn(u,e)),i.people.push(r),Ba(e.wbrels,-1,"persons/person.xml",ja.PEOPLE)),re(o,"[Content_Types].xml",Pa(i,e)),re(o,"_rels/.rels",Fa(e.rels)),re(o,"xl/_rels/workbook."+a+".rels",Fa(e.wbrels)),delete e.revssf,delete e.ssf,o}function Jn(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return Vt(e.file,Yt.write(t,{type:y?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return Yt.write(t,e)}function ti(t,e){var a=ee(e||{}),n=Qn(t,a);return ei(n,a)}function ei(t,e){var a={},n=y?"nodebuffer":"undefined"!==typeof Uint8Array?"array":"string";if(e.compression&&(a.compression="DEFLATE"),e.password)a.type=n;else switch(e.type){case"base64":a.type="base64";break;case"binary":a.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":a.type=n;break;default:throw new Error("Unrecognized type "+e.type)}var i=t.FullPaths?Yt.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[a.type]||a.type,compression:!!e.compression}):t.generate(a);if("undefined"!==typeof Deno&&"string"==typeof i){if("binary"==e.type||"base64"==e.type)return i;i=new Uint8Array(A(i))}return e.password&&"undefined"!==typeof encrypt_agile?Jn(encrypt_agile(i,e.password),e):"file"===e.type?Vt(e.file,i):"string"==e.type?be(i):i}function ai(t,e){h(),$n(t);var a=ee(e||{});if(a.cellStyles&&(a.cellNF=!0,a.sheetStubs=!0),"array"==a.type){a.type="binary";var n=ai(t,a);return a.type="array",A(n)}return ti(t,a)}function ni(t){if(!t.bookType){var e={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},a=t.file.slice(t.file.lastIndexOf(".")).toLowerCase();a.match(/^\.[a-z]+$/)&&(t.bookType=a.slice(1)),t.bookType=e[t.bookType]||t.bookType}}function ii(t,e,a){var n=a||{};return n.type="file",n.file=e,ni(n),ai(t,n)}function oi(t,e,a,n,i,o,r,s){var l=ga(a),c=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),d=!0,h=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:a,enumerable:!1})}catch(g){h.__rowNum__=a}else h.__rowNum__=a;if(!r||t[a])for(var p=e.s.c;p<=e.e.c;++p){var f=r?t[a][p]:t[n[p]+l];if(void 0!==f&&void 0!==f.t){var m=f.v;switch(f.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+f.t)}if(null!=o[p]){if(null==m)if("e"==f.t&&null===m)h[o[p]]=null;else if(void 0!==c)h[o[p]]=c;else{if(!u||null!==m)continue;h[o[p]]=null}else h[o[p]]=u&&("n"!==f.t||"n"===f.t&&!1!==s.rawNumbers)?m:wa(f,m,s);null!=m&&(d=!1)}}else{if(void 0===c)continue;null!=o[p]&&(h[o[p]]=c)}}return{row:h,isempty:d}}function ri(t,e){if(null==t||null==t["!ref"])return[];var a={t:"n",v:0},n=0,i=1,o=[],r=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=e||{},u=null!=c.range?c.range:t["!ref"];switch(1===c.header?n=1:"A"===c.header?n=2:Array.isArray(c.header)?n=3:null==c.header&&(n=0),typeof u){case"string":l=Ca(u);break;case"number":l=Ca(t["!ref"]),l.s.r=u;break;default:l=u}n>0&&(i=0);var d=ga(l.s.r),h=[],p=[],f=0,m=0,g=Array.isArray(t),_=l.s.r,v=0,y={};g&&!t[_]&&(t[_]=[]);var b=c.skipHidden&&t["!cols"]||[],S=c.skipHidden&&t["!rows"]||[];for(v=l.s.c;v<=l.e.c;++v)if(!(b[v]||{}).hidden)switch(h[v]=ya(v),a=g?t[_][v]:t[h[v]+d],n){case 1:o[v]=v-l.s.c;break;case 2:o[v]=h[v];break;case 3:o[v]=c.header[v-l.s.c];break;default:if(null==a&&(a={w:"__EMPTY",t:"s"}),s=r=wa(a,null,c),m=y[r]||0,m){do{s=r+"_"+m++}while(y[s]);y[r]=m,y[s]=1}else y[r]=1;o[v]=s}for(_=l.s.r+i;_<=l.e.r;++_)if(!(S[_]||{}).hidden){var O=oi(t,l,_,h,n,o,g,c);(!1===O.isempty||(1===n?!1!==c.blankrows:c.blankrows))&&(p[f++]=O.row)}return p.length=f,p}var si=/"/g;function li(t,e,a,n,i,o,r,s){for(var l=!0,c=[],u="",d=ga(a),h=e.s.c;h<=e.e.c;++h)if(n[h]){var p=s.dense?(t[a]||[])[h]:t[n[h]+d];if(null==p)u="";else if(null!=p.v){l=!1,u=""+(s.rawNumbers&&"n"==p.t?p.v:wa(p,null,s));for(var f=0,m=0;f!==u.length;++f)if((m=u.charCodeAt(f))===i||m===o||34===m||s.forceQuotes){u='"'+u.replace(si,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==p.f||p.F?u="":(l=!1,u="="+p.f,u.indexOf(",")>=0&&(u='"'+u.replace(si,'""')+'"'));c.push(u)}return!1===s.blankrows&&l?null:c.join(r)}function ci(t,e){var a=[],n=null==e?{}:e;if(null==t||null==t["!ref"])return"";var i=Ca(t["!ref"]),o=void 0!==n.FS?n.FS:",",r=o.charCodeAt(0),s=void 0!==n.RS?n.RS:"\n",l=s.charCodeAt(0),c=new RegExp(("|"==o?"\\|":o)+"+$"),u="",d=[];n.dense=Array.isArray(t);for(var h=n.skipHidden&&t["!cols"]||[],p=n.skipHidden&&t["!rows"]||[],f=i.s.c;f<=i.e.c;++f)(h[f]||{}).hidden||(d[f]=ya(f));for(var m=0,g=i.s.r;g<=i.e.r;++g)(p[g]||{}).hidden||(u=li(t,i,g,d,r,l,o,n),null!=u&&(n.strip&&(u=u.replace(c,"")),(u||!1!==n.blankrows)&&a.push((m++?s:"")+u)));return delete n.dense,a.join("")}function ui(t,e){e||(e={}),e.FS="\t",e.RS="\n";var a=ci(t,e);if("undefined"==typeof p||"string"==e.type)return a;var n=p.utils.encode(1200,a,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function di(t){var e,a="",n="";if(null==t||null==t["!ref"])return[];var i,o=Ca(t["!ref"]),r="",s=[],l=[],c=Array.isArray(t);for(i=o.s.c;i<=o.e.c;++i)s[i]=ya(i);for(var u=o.s.r;u<=o.e.r;++u)for(r=ga(u),i=o.s.c;i<=o.e.c;++i)if(a=s[i]+r,e=c?(t[u]||[])[i]:t[a],n="",void 0!==e){if(null!=e.F){if(a=e.F,!e.f)continue;n=e.f,-1==a.indexOf(":")&&(a=a+":"+a)}if(null!=e.f)n=e.f;else{if("z"==e.t)continue;if("n"==e.t&&null!=e.v)n=""+e.v;else if("b"==e.t)n=e.v?"TRUE":"FALSE";else if(void 0!==e.w)n="'"+e.w;else{if(void 0===e.v)continue;n="s"==e.t?"'"+e.v:""+e.v}}l[l.length]=a+"="+n}return l}function hi(t,e,a){var n,i=a||{},o=+!i.skipHeader,r=t||{},s=0,l=0;if(r&&null!=i.origin)if("number"==typeof i.origin)s=i.origin;else{var c="string"==typeof i.origin?Oa(i.origin):i.origin;s=c.r,l=c.c}var u={s:{c:0,r:0},e:{c:l,r:s+e.length-1+o}};if(r["!ref"]){var d=Ca(r["!ref"]);u.e.c=Math.max(u.e.c,d.e.c),u.e.r=Math.max(u.e.r,d.e.r),-1==s&&(s=d.e.r+1,u.e.r=s+e.length-1+o)}else-1==s&&(s=0,u.e.r=e.length-1+o);var h=i.header||[],p=0;e.forEach((function(t,e){Ht(t).forEach((function(a){-1==(p=h.indexOf(a))&&(h[p=h.length]=a);var c=t[a],u="z",d="",f=Ta({c:l+p,r:s+e+o});n=fi(r,f),!c||"object"!==typeof c||c instanceof Date?("number"==typeof c?u="n":"boolean"==typeof c?u="b":"string"==typeof c?u="s":c instanceof Date?(u="d",i.cellDates||(u="n",c=qt(c)),d=i.dateNF||V[14]):null===c&&i.nullError&&(u="e",c=0),n?(n.t=u,n.v=c,delete n.w,delete n.R,d&&(n.z=d)):r[f]=n={t:u,v:c},d&&(n.z=d)):r[f]=c}))})),u.e.c=Math.max(u.e.c,l+h.length-1);var f=ga(s);if(o)for(p=0;p<h.length;++p)r[ya(p+l)+f]={t:"s",v:h[p]};return r["!ref"]=xa(u),r}function pi(t,e){return hi(null,t,e)}function fi(t,e,a){if("string"==typeof e){if(Array.isArray(t)){var n=Oa(e);return t[n.r]||(t[n.r]=[]),t[n.r][n.c]||(t[n.r][n.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return fi(t,Ta("number"!=typeof e?e:{r:e,c:a||0}))}function mi(t,e){if("number"==typeof e){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}if("string"==typeof e){var a=t.SheetNames.indexOf(e);if(a>-1)return a;throw new Error("Cannot find sheet name |"+e+"|")}throw new Error("Cannot find sheet |"+e+"|")}function gi(){return{SheetNames:[],Sheets:{}}}function _i(t,e,a,n){var i=1;if(!a)for(;i<=65535;++i,a=void 0)if(-1==t.SheetNames.indexOf(a="Sheet"+i))break;if(!a||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(a)>=0){var o=a.match(/(^.*?)(\d+)$/);i=o&&+o[2]||0;var r=o&&o[1]||a;for(++i;i<=65535;++i)if(-1==t.SheetNames.indexOf(a=r+i))break}if(Pn(a),t.SheetNames.indexOf(a)>=0)throw new Error("Worksheet with name |"+a+"| already exists!");return t.SheetNames.push(a),t.Sheets[a]=e,a}function vi(t,e,a){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var n=mi(t,e);switch(t.Workbook.Sheets[n]||(t.Workbook.Sheets[n]={}),a){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+a)}t.Workbook.Sheets[n].Hidden=a}function yi(t,e){return t.z=e,t}function bi(t,e,a){return e?(t.l={Target:e},a&&(t.l.Tooltip=a)):delete t.l,t}function Si(t,e,a){return bi(t,"#"+e,a)}function Oi(t,e,a){t.c||(t.c=[]),t.c.push({t:e,a:a||"SheetJS"})}function Ti(t,e,a,n){for(var i="string"!=typeof e?e:Ca(e),o="string"==typeof e?e:xa(e),r=i.s.r;r<=i.e.r;++r)for(var s=i.s.c;s<=i.e.c;++s){var l=fi(t,r,s);l.t="n",l.F=o,delete l.v,r==i.s.r&&s==i.s.c&&(l.f=a,n&&(l.D=!0))}return t}var Ai={encode_col:ya,encode_row:ga,encode_cell:Ta,encode_range:xa,decode_col:va,decode_row:ma,split_cell:Sa,decode_cell:Oa,decode_range:Aa,format_cell:wa,sheet_add_aoa:ka,sheet_add_json:hi,sheet_add_dom:Hn,aoa_to_sheet:Ia,json_to_sheet:pi,table_to_sheet:Gn,table_to_book:Wn,sheet_to_csv:ci,sheet_to_txt:ui,sheet_to_json:ri,sheet_to_html:Vn,sheet_to_formulae:di,sheet_to_row_object_array:ri,sheet_get_cell:fi,book_new:gi,book_append_sheet:_i,book_set_sheet_visibility:vi,cell_set_number_format:yi,cell_set_hyperlink:bi,cell_set_internal_link:Si,cell_add_comment:Oi,sheet_set_array_formula:Ti,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};i.version}).call(this,a("b639").Buffer,a("4362"))},2650:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"productInfoContentWrap das-table-padding das-ui-card das-table-margin_bottom d-flex align-items-center justify-content-start"},[a("a",{attrs:{href:t._f("amazon_asin_page")(t.info.asin||t.info.parentAsin,t.info&&t.info.marketplaceId),target:"_blank"},on:{click:function(t){t.stopPropagation()}}},[a("img",{staticClass:"imgShow",attrs:{id:"productMe"+t._uid,src:t.info&&t.info.image,alt:""}})]),t.info&&t.info.image?a("b-popover",{attrs:{target:"productMe"+t._uid,triggers:"hover"}},[a("img",{staticStyle:{width:"300px"},attrs:{src:t._f("toBigImage")(t.info.image,18*t.imgSize)}})]):t._e(),a("div",{staticClass:"productInfoContent"},[a("div",{staticClass:"das-ui-content-text bold titleOverhide"},[t._v(t._s(t.info.title))]),a("p",{staticClass:"das-ui-content-text d-flex align-items-center justify-content-start mt8 flex-wrap",staticStyle:{"margin-top":"0"}},[t.info.sku?a("span",{staticClass:"das-block-margin_right d-flex align-items-center justify-content-start"},[a("span",[t._v("SKU:")]),a("span",{ref:"sku",staticClass:"infoBlock"},[t._v(" "+t._s(t.info&&t.info.sku)+" ")]),a("i",{staticClass:"copyBtn2",attrs:{title:t.$t("_COMMON_CLICK_TO_COPY")}},[a("feather-icon",{attrs:{icon:"CopyIcon",size:"12"},on:{click:function(e){return e.stopPropagation(),t.copyToClipboard("sku")}}})],1)]):t._e(),t.info.asin?a("span",{staticClass:"das-block-margin_right d-flex align-items-center"},[a("span",[t._v("ASIN:")]),a("span",{ref:"asin",staticClass:"infoBlock"},[t._v(" "+t._s(t.info&&t.info.asin)+" ")]),a("i",{staticClass:"copyBtn2",attrs:{title:t.$t("_COMMON_CLICK_TO_COPY")}},[a("feather-icon",{attrs:{icon:"CopyIcon",size:"12"},on:{click:function(e){return e.stopPropagation(),t.copyToClipboard("asin")}}})],1)]):t._e(),t.info.parentAsin?a("span",{staticClass:"das-block-margin_right d-flex align-items-center"},[a("span",[t._v("PASIN:")]),a("span",{ref:"parentAsin",staticClass:"infoBlock"},[t._v(" "+t._s(t.info&&t.info.parentAsin)+" ")]),a("i",{staticClass:"copyBtn2",attrs:{title:t.$t("_COMMON_CLICK_TO_COPY")}},[a("feather-icon",{attrs:{icon:"CopyIcon",size:"12"},on:{click:function(e){return e.stopPropagation(),t.copyToClipboard("parentAsin")}}})],1)]):t._e()])])],1)},i=[],o=(a("a9e3"),a("21b3")),r=a.n(o),s={name:"productInfo",data:function(){return{}},props:{info:{},imgSize:{type:Number,default:50}},methods:{copyToClipboard:function(t){var e=this,a=this.$refs[t];r()(a,(function(){e.$store.dispatch("app/updatePop",{title:e.$t("_KEYWORD_POPULARITY_COPY_SUCCESS"),icon:"EditIcon",variant:"success"})}))}}},l=s,c=(a("9939"),a("2877")),u=Object(c["a"])(l,n,i,!1,null,"2f2d40d4",null);e["a"]=u.exports},"27ae":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o}));a("ac1f"),a("1276"),a("d3b7"),a("25f0"),a("a9e3"),a("5319"),a("b680");function n(t,e){var a,n,i,o;try{a=t.toString().split(".")[1].length}catch(s){a=0}try{n=e.toString().split(".")[1].length}catch(s){n=0}if(o=Math.abs(a-n),i=Math.pow(10,Math.max(a,n)),o>0){var r=Math.pow(10,o);a>n?(t=Number(t.toString().replace(".","")),e=Number(e.toString().replace(".",""))*r):(t=Number(t.toString().replace(".",""))*r,e=Number(e.toString().replace(".","")))}else t=Number(t.toString().replace(".","")),e=Number(e.toString().replace(".",""));return(t+e)/i}function i(t,e){var a,n,i,o;try{a=t.toString().split(".")[1].length}catch(r){a=0}try{n=e.toString().split(".")[1].length}catch(r){n=0}return i=Math.pow(10,Math.max(a,n)),o=a>=n?a:n,Number(((t*i-e*i)/i).toFixed(o))}function o(t,e){var a=0,n=t.toString(),i=e.toString();try{a+=n.split(".")[1].length}catch(o){}try{a+=i.split(".")[1].length}catch(o){}return Number(n.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,a)}},"28c6":function(t,e,a){"use strict";a("43df")},"2a2d":function(t,e,a){},"2b1a":function(t,e,a){},"2b63":function(t,e,a){},"2c0a":function(t,e,a){},"2fcc":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"deep-loading",rawName:"v-deep-loading",value:t.categoryLoading,expression:"categoryLoading"}],staticClass:"productAnalysisCoreWrap productAnalysis-caregory-analysis",attrs:{id:t.$options.name}},[t.isFree&!t.categoryLoading?[a("div",{staticClass:"free-user-block"},[a("p",{staticClass:"m-tb-12"},[t._v(" "+t._s(t.$t("global_payment_user_can_view"))+" ")]),a("router-link",{attrs:{to:"/package_center"}},[a("b-button",{attrs:{variant:"primary",size:"sm"}},[t._v(t._s(t.$t("_PROFILE_MY_PACKAGE_CONTACT_CM_BP")))])],1)],1)]:t.categoriesOptions.length?[a("div",{staticClass:"m-b-12 d-flex align-items--center"},[a("b-form-group",[a("b-form-radio-group",{attrs:{size:"sm","button-variant":"outline-primary",options:t.timesOptions,buttons:""},model:{value:t.radioVal,callback:function(e){t.radioVal=e},expression:"radioVal"}})],1),a("router-link",{staticClass:"m-l-16 g-link-btn",attrs:{to:"/category_analysis/main"}},[a("u",[t._v(" "+t._s(t.$t("cr_btn_nav_ci"))+" ")])])],1),a("div",{staticClass:"productAnalysis-caregory-analysis__body"},[a("div",{staticClass:"left-content"},[a("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"-8px","margin-bottom":"4px","grid-gap":"4px"}},[a("b-form-checkbox",{staticClass:"smCheckbox",staticStyle:{display:"inline-block",margin:"0 2px"},attrs:{switch:""},on:{change:t.changeOpenTrans},model:{value:t.openTrans,callback:function(e){t.openTrans=e},expression:"openTrans"}}),a("lok",{style:{color:t.openTrans?"#5759F2":"#333",fontWeight:400},attrs:{"lok-key":"buyer_message_btn_trans"}}),a("span",{directives:[{name:"deep-loading",rawName:"v-deep-loading",value:t.openTransLoading,expression:"openTransLoading"}],staticClass:"deeploadingSm das-label-left"})],1),t._l(t.categoriesOptions,(function(e){return a("div",{key:e.value,staticClass:"radio-item",class:{"radio-item--active":e.value==t.selected},on:{click:function(a){a.stopPropagation(),t.selected=e.value}}},[a("b-form-radio",{staticClass:"d-flex",attrs:{value:e.value},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}},[a("div",{staticStyle:{width:"245px"}},[t._v(t._s(e.text))]),t.openTrans&&t.openTransObj[e.text]?a("div",{staticStyle:{"margin-bottom":"-6px",width:"245px"}},[a("over-limit-show",{attrs:{isTip:"",showLable:t.openTransObj[e.text]}})],1):t._e()])],1)}))],2),a("div",{staticClass:"right-content"},[a("div",{staticClass:"d-flex m-b-12"},[1!=t.baseModel.isSku?a("div",{staticClass:"bg-block flex-one m-r-12"},[a("div",{staticClass:"bg-block-title m-b-8"},[t._v(t._s(t.$t("_COMMON_TH_CONVERSION")))]),a("div",[t._v(" "+t._s(t.$t("_CATEGORY_RANK_CATEGORY")+t.$t("_COMMON_SYMBOL_COLON"))),a("span",{staticClass:"big-txt"},[t._v(" "+t._s("-"!=t.getPerformanceData("searchToPurchaseRatioLast")?t.getPerformanceData("searchToPurchaseRatioLast").toFixed(2)+"%":"-"))])]),t.$route.query.isCompetitor?t._e():a("div",[t._v(" "+t._s(t.$t("cr_compare_me")+t.$t("_COMMON_SYMBOL_COLON"))+" "),a("span",[t._v(" "+t._s(t.profitTotal.sumConv)+"% ")])])]):t._e(),a("div",{staticClass:"bg-block flex-one"},[a("div",{staticClass:"bg-block-title m-b-8"},[t._v(t._s(t.$t("_SALES_ANALYSIS_REFUND_MONEY_RATE")))]),a("div",[t._v(" "+t._s(t.$t("_CATEGORY_RANK_CATEGORY")+t.$t("_COMMON_SYMBOL_COLON"))),a("span",{staticClass:"big-txt"},[t._v(" "+t._s("-"!=t.getPerformanceData("returnRatioLast")?t.getPerformanceData("returnRatioLast").toFixed(2)+"%":"-")+" ")])]),t.$route.query.isCompetitor?t._e():a("div",[t._v(" "+t._s(t.$t("cr_compare_me")+t.$t("_COMMON_SYMBOL_COLON"))+" "),a("span",[t._v(t._s(t.profitTotal.refundRate)+"%")])])])]),a("div",{staticClass:"bg-block"},[a("div",{staticClass:"bg-block-title"},[t._v(t._s(t.$t("_KEYWORD_POPULARITY_KEYWORD_POPULARITY_ROW_TITLE")))]),a("categoryAnaLineChart",{attrs:{goHiddenCurrent:"",radioVal:t.radioVal,datas:t.data_volumne,minInterval:1}})],1),a("div",{staticClass:"bg-block m-t-12"},[a("div",{staticClass:"bg-block-title"},[t._v(t._s(t.$t("ae_glance_views")))]),a("categoryAnaLineChart",{attrs:{radioVal:t.radioVal,asinData:1==t.isSku?null:t.formatDataDays("pageVisits"),datas:t.data_views,dataKey:"pageVisits",minInterval:1}})],1),a("div",{staticClass:"bg-block m-t-12"},[a("div",{staticClass:"bg-block-title"},[t._v(t._s(t.$t("ci_click_count")))]),a("categoryAnaLineChart",{attrs:{isClick:"",radioVal:t.radioVal,dataKeyLabel:t.$t("_COMMON_TH_VISITS"),asinData:t.formatDataDays("sessions"),datas:t.data_clicks,dataKey:"sessions",dataKeyOne:"clicks",dataKeyOneLabel:t.$t("_COMMON_TH_AD_CLICK"),asinDataOne:t.formatDataDays("clicks"),minInterval:1}})],1),a("div",{staticClass:"bg-block m-t-12"},[a("div",{staticClass:"bg-block-title"},[t._v(t._s(t.$t("_COMMON_TH_SALES_COUNT")))]),a("categoryAnaLineChart",{attrs:{radioVal:t.radioVal,asinData:t.formatDataDays("totalQuantity"),datas:t.data_products,dataKey:"totalQuantity",minInterval:1}})],1),a("div",{staticClass:"bg-block m-t-12"},[a("div",{staticClass:"bg-block-title"},[t._v(t._s(t.$t("_COMMON_TH_NET_SALES")))]),a("categoryAnaLineChart",{attrs:{radioVal:t.radioVal,asinData:t.formatDataDays("principal"),datas:t.data_sales,dataKey:"principal",currencySymbol:t.currencySymbol}})],1)])])]:a("emptyBlock",{attrs:{height:"500"}})],2)},i=[],o=a("3835"),r=a("ade3"),s=a("1da1"),l=a("2909"),c=a("5530"),u=(a("96cf"),a("d81d"),a("4e82"),a("a630"),a("3ca3"),a("d3b7"),a("6062"),a("ddb0"),a("99af"),a("159b"),a("498a"),a("b680"),a("4de4"),a("9319")),d=a("27ae"),h=a("2af9"),p=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("app-echart-line-custom",{key:t.echartKey,attrs:{noCenterLine:"",optionData:t.optionData,extraSeries:{animation:!1},height:t.height}})],1)},f=[],m=(a("a9e3"),a("25f0"),a("a15b"),a("c1df")),g=a.n(m),_=a("bb87"),v=(a("33d8"),a("6ddf")),y={name:"lineChart",components:{AppEchartLineCustom:_["a"]},props:{goHiddenCurrent:{type:Boolean,default:!1},list:{type:Array,default:function(){return[]}},asinData:{type:null|Array,default:function(){return null}},asinDataOne:{type:null|Array,default:function(){return null}},dataKey:{type:String,default:function(){return""}},dataKeyLabel:{type:String,default:function(){return""}},dataKeyOne:{type:String,default:function(){return""}},dataKeyOneLabel:{type:String,default:function(){return""}},currencySymbol:{type:String,default:function(){return""}},color:{},radioVal:{},minInterval:{},datas:{type:Object,default:function(){return{}}},height:{type:Number,default:200}},watch:{list:{deep:!0,handler:function(t,e){this.echartKey=Math.random().toString(16).substring(2,6)}}},data:function(){return{echartKey:Math.random().toString(16).substring(2,6)}},computed:{optionData:function(){var t,e,a,n,i,o,r,s,l=this;return{grid:{containLabel:!0,left:0,right:this.asinData?20:30,top:42,bottom:0,width:"auto"},xAxis:{nameTextStyle:{color:" #6E6B7B",fontSize:12,fontWeight:400},type:"category",data:null===(t=this.datas)||void 0===t?void 0:t.xAxisData},yAxis:this.asinData?[{type:"value",show:!0,minInterval:this.minInterval,nameTextStyle:{color:"#000",fontSize:12,fontWeight:400},axisLine:{show:!0},axisTick:{show:!1},splitLine:{show:!1}},{type:"value",show:!0,minInterval:this.minInterval,nameTextStyle:{color:"#000",fontSize:12,fontWeight:400},axisLine:{show:!0},axisTick:{show:!1},splitLine:{show:!1}}]:{type:"value",show:!0,minInterval:this.minInterval,nameTextStyle:{color:"#000",fontSize:12,fontWeight:400},axisLine:{show:!0},axisTick:{show:!1},splitLine:{show:!1}},legend:{top:4,padding:[4,0,0,0],itemGap:12,itemWidth:14,itemHeight:14,textStyle:{padding:[8,8]},data:[this.$t("_CATEGORY_RANK_CATEGORY"),this.$t("cr_compare_me")+(this.dataKeyLabel?"-"+this.dataKeyLabel:""),this.dataKeyOneLabel?this.$t("cr_compare_me")+"-"+this.dataKeyOneLabel:""].filter((function(t){return t}))},tooltip:{trigger:"axis",formatter:function(t){return l.chartOptionsFormatter(t)}},series:[{name:this.$t("_CATEGORY_RANK_CATEGORY"),type:"line",lineStyle:{color:(null===(e=this.color)||void 0===e?void 0:e[0])||"#28C797"},itemStyle:{color:(null===(a=this.color)||void 0===a?void 0:a[0])||"#28C797"},symbol:"circle",showSymbol:!1,data:null===(n=this.datas)||void 0===n?void 0:n.seriesData},!this.asinData||this.$route.query.isCompetitor||this.goHiddenCurrent?void 0:{name:this.$t("cr_compare_me")+(this.dataKeyLabel?"-"+this.dataKeyLabel:""),type:"line",yAxisIndex:1,lineStyle:{color:(null===(i=this.color)||void 0===i?void 0:i[1])||"#FF792E"},itemStyle:{color:(null===(o=this.color)||void 0===o?void 0:o[1])||"#FF792E"},symbol:"circle",showSymbol:!1,data:this.asinData.map((function(t){return null===t||void 0===t?void 0:t[l.dataKey]}))},!this.asinDataOne||this.$route.query.isCompetitor||this.goHiddenCurrent?void 0:{name:this.$t("cr_compare_me")+(this.dataKeyOneLabel?"-"+this.dataKeyOneLabel:""),type:"line",yAxisIndex:1,lineStyle:{color:(null===(r=this.color)||void 0===r?void 0:r[1])||"#D63384"},itemStyle:{color:(null===(s=this.color)||void 0===s?void 0:s[1])||"#D63384"},symbol:"circle",showSymbol:!1,data:this.asinDataOne.map((function(t){return null===t||void 0===t?void 0:t[l.dataKeyOne]}))}].filter(Boolean)}}},methods:{chartOptionsFormatter:function(t){var e=this,a=t.map((function(t){return'<span class="das-label-right">'.concat(t.marker,"</span>")+'<span class="das-table-margin_right">'.concat(t.seriesName,"</span>")+" "+e.currencySymbol+e.$options.filters["thousand"](t.value)})).join("<br/>");return"<div class='AppEchartLineCustom-tooltip-wrapper'>\n            <div class='tooltip-title das-label-bottom'>".concat(t[0].axisValueLabel,"</div>\n            <div class='tooltip-content'>\n                <div class='tooltip-item'>").concat(a,"</div>\n            </div>\n            </div>")}}},b=y,S=a("2877"),O=Object(S["a"])(b,p,f,!1,null,null,null),T=O.exports,A=a("bbf0"),x=a("2f62"),C=a("fc23"),E=a("5efc"),w=a("a9d2"),M=a("708d"),k={name:"caregoryAnalysis",props:{baseModel:{}},components:{categoryAnaLineChart:T,emptyBlock:h["o"]},data:function(){return{openTransLoading:!1,getAiTrans:Object(M["a"])(this.getAiTransTmp,200),openTransObj:{},openTrans:!1,categoryLoading:!1,dataLoading:!1,radioVal:"30D",selected:"first",options:[{text:"Sports & Outdoors > Exercise & Fitness > Running > Waist PacksSports & Outdoors > Exercise & Fitness > Running > Waist Packs",value:"first"},{text:"Second radio",value:"second"},{text:"Third radio",value:"third"}],categoriesOptions:[],rangeDate:["2023-9-21","2023-9-27"],addon:{dates:null,memosData:{list:{},flag:null}},dataDays:[],dataDaysMap:{},profitTotal:{},categoryData:null,myUsage:{}}},mounted:function(){var t={ja_jp:"ja","zh-CN":"zh-cn",en:"en"};g.a.locale(t[this.$i18n.locale])},computed:Object(c["a"])(Object(c["a"])({},Object(x["c"])({USER_INFO:A["I"]})),{},{isFree:function(){var t;return(null===(t=this.myUsage)||void 0===t?void 0:t.usage)<=0},isSku:function(){return this.baseModel.isSku},currencySymbol:function(){var t;return null!==(t=this.baseModel)&&void 0!==t&&t.marketplaceId?this.$options.filters.marketplaceToCurrencySymbol(this.baseModel.marketplaceId):""},timeZone:function(){var t;return this.$route.query.timeZone||(null===(t=this.$store.getters[A["I"]])||void 0===t?void 0:t.timezone)||this.baseModel.timeZone},timesOptions:function(){return[{text:this.$t("ae_filter_last_num_days",{num:30}),value:"30D"},{text:this.$t("ae_filter_last_num_days",{num:90}),value:"90D"},{text:this.$t("ae_filter_last_12_month"),value:"12M"}]},performanceData:function(){var t;return null===(t=this.categoryData)||void 0===t?void 0:t.performance},data_views:function(){return this.formatLineData("glanceViewLast",this.radioVal)},data_products:function(){return this.formatLineData("unitSoldLast",this.radioVal)},data_sales:function(){return this.formatLineData("netSaleLast",this.radioVal)},data_volumne:function(){return this.formatLineData("searchVolumeLast",this.radioVal)},data_clicks:function(){return this.formatLineData("clickCountLast",this.radioVal)},formatXData:function(){var t,e,a,n,i,o,r,s,c,u=(null===(t=this.categoryData)||void 0===t||null===(e=t.performance)||void 0===e||null===(a=e["glanceViewLast"+this.radioVal])||void 0===a?void 0:a.map((function(t){return t.label})))||[],d=(null===(n=this.categoryData)||void 0===n||null===(i=n.performance)||void 0===i||null===(o=i["unitSoldLast"+this.radioVal])||void 0===o?void 0:o.map((function(t){return t.label})))||[],h=(null===(r=this.categoryData)||void 0===r||null===(s=r.performance)||void 0===s||null===(c=s["netSaleLast"+this.radioVal])||void 0===c?void 0:c.map((function(t){return t.label})))||[];return Array.from(new Set([].concat(Object(l["a"])(u),Object(l["a"])(d),Object(l["a"])(h)))).sort((function(t,e){return g()(t).diff(g()(e))}))},chartxAxis:function(){var t;return[this.formatXData[0],this.formatXData[[(null===(t=this.formatXData)||void 0===t?void 0:t.length)-1]]]}}),watch:{"$i18n.locale":"getAiTrans",openTrans:function(t){var e;t&&this.getAiTrans(),window.localStorage.setItem("openTransCateGoryRankDetailRight"+(null===(e=this.USER_INFO)||void 0===e?void 0:e.id),t)},USER_INFO:{immediate:!0,handler:function(t){var e;t&&t.id&&(this.openTrans="true"==window.localStorage.getItem("openTransCateGoryRankDetailRight"+(null===(e=this.USER_INFO)||void 0===e?void 0:e.id)))}},baseModel:{deep:!0,immediate:!0,handler:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!t.asin&&!t.parentAsin){a.next=4;break}return a.next=3,e.getUsage();case 3:e.$nextTick(Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isFree){t.next=3;break}return t.next=3,e.getCategories();case 3:case"end":return t.stop()}}),t)}))));case 4:case"end":return a.stop()}}),a)})))()}},selected:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getCategoryData();case 2:e.getDetail(),e.getDataDays();case 4:case"end":return t.stop()}}),t)})))()},chartxAxis:function(t){this.getDetail(),this.getDataDays()}},methods:{changeOpenTrans:function(t){try{if(window.gtag){var e={event_category:"翻译-".concat(t?"开启":"关闭","-翻译-开启-类目排名-类目分析"),event_label:"翻译-".concat(t?"开启":"关闭","-翻译-开启-类目排名-类目分析")};gtag("event","翻译-".concat(t?"开启":"关闭","-翻译-开启-类目排名-类目分析"),e)}}catch(a){}},getAiTransTmp:function(){var t,e=this,a=[];null===(t=this.categoriesOptions)||void 0===t||t.forEach((function(t){try{t.text&&a.push(t.text.trim())}catch(e){console.warn(e)}})),a.length&&this.openTrans&&(this.openTransLoading=!0,Object(u["d"])({marketplaceId:this.$route.query.marketplaceId,keywords:a}).then((function(t){1===t.status&&t.content&&(e.openTransObj=t.content)})).finally((function(t){e.openTransLoading=!1})))},formatDataDays:function(t){var e,a=this,n={},i={pageVisits:this.data_views,totalQuantity:this.data_products,principal:this.data_sales,searchVolumeLast:this.data_volumne,sessions:this.data_clicks,clicks:this.data_clicks};this.dataDays.forEach((function(e,i){var o,s=a.radioVal?"12M"===a.radioVal?g()(e.date).format("MMM"):"90D"===a.radioVal?a.$t("ae_year_week",{week:g()(e.date).isoWeek()}):e.date:e.date;null!==n&&void 0!==n&&n[s]?n[s]=Object(r["a"])({},t,Object(d["a"])(null===(o=n[s])||void 0===o?void 0:o[t],(null===e||void 0===e?void 0:e[t])||0)):n[s]=Object(r["a"])({},t,(null===e||void 0===e?void 0:e[t])||0)}));var o=null===(e=i[t])||void 0===e?void 0:e.xAxisData.map((function(t){return n[t]||null}));return o},getUsage:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.USER_INFO.isNewVersionPackage){e.next=7;break}return e.next=3,Object(E["f"])({includeItemNames:"category_insights"});case 3:a=e.sent,1===a.status&&(t.myUsage=a.content[0]),e.next=8;break;case 7:t.myUsage={usage:1};case 8:case"end":return e.stop()}}),e)})))()},formatLineData:function(t){var e,a,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=(this.$t("ae_glance_views"),this.$t("_COMMON_TH_SALES_COUNT"),this.$t("_COMMON_TH_NET_SALES"),(null===(e=this.categoryData)||void 0===e||null===(a=e.performance)||void 0===a?void 0:a[t+this.radioVal])||[]),r=[],s=[],l={};return o.sort((function(t,e){return g()(t.label).diff(g()(e.label))})),o.forEach((function(t){var e=i?"12M"===i?g()(t.label).format("MMM"):"90D"===i?n.$t("ae_year_week",{week:g()(t.label).isoWeek()}):t.label:t.label;l[e]=t.label,r.push(e),s.push(t.value)})),{xAxisData:r,seriesData:s,xAxisOriginValueMap:l}},getPerformanceData:function(t){var e,a,n,i;return(null===(e=this.performanceData)||void 0===e||null===(a=e[t+this.radioVal])||void 0===a?void 0:a.value)||(null===(n=this.performanceData)||void 0===n||null===(i=n[t+this.radioVal])||void 0===i?void 0:i.range)||"-"},getPerformanceAdv:function(t){var e,a;return(null===(e=this.performanceData)||void 0===e||null===(a=e[t+this.radioVal])||void 0===a?void 0:a.averageValue)||"-"},getCategories:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.categoryLoading=!0,a={asin:t.baseModel.asin||t.baseModel.parentAsin,marketplaceId:t.baseModel.marketplaceId},e.next=5,Object(C["b"])(a);case 5:n=e.sent,1==n.status&&(t.categoriesOptions=null===(i=n.content)||void 0===i?void 0:i.map((function(t){return{text:t.category,value:t.categoryId}})),t.getAiTrans(),t.$nextTick((function(){t.selected=n.content[0].categoryId})));case 7:return e.prev=7,t.categoryLoading=!1,e.finish(7);case 10:case"end":return e.stop()}}),e,null,[[0,,7,10]])})))()},getCategoryData:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.dataLoading=!0,a={marketplaceId:t.baseModel.marketplaceId,keywordId:t.selected},e.next=5,Object(C["d"])(a);case 5:n=e.sent,1==n.status&&(t.categoryData=n.content);case 7:return e.prev=7,t.dataLoading=!1,e.finish(7);case 10:case"end":return e.stop()}}),e,null,[[0,,7,10]])})))()},getDetail:function(){var t,e=this,a={dasCurrentShop:e.baseModel.shopId},n={};a.isParent=(null===(t=this.baseModel)||void 0===t?void 0:t.isParent)||0,a.asin=e.baseModel.asin||e.baseModel.parentAsin,n.searchKey=e.baseModel.asin||e.baseModel.parentAsin,1==e.isParent?n.parentAsin=e.baseModel.parentAsin:n.asin=e.baseModel.asin,a.startDate=this.chartxAxis[0],a.endDate=this.chartxAxis[1],n.startDate=this.chartxAxis[0],n.endDate=this.chartxAxis[1];var i=[];i=1==e.isSku?[{req:w["r"],param:[n,e.baseModel.shopId]}]:[{req:w["r"],param:[n,e.baseModel.shopId]},{req:w["t"],param:[a]}],Promise.all(i.map((function(t){return t.req.apply(t,Object(l["a"])(t.param))}))).then((function(t){var a=Object(o["a"])(t,2),n=a[0],i=a[1];1==n.status&&(e.profitTotal=Object.assign({cost:0,tacos:0,roas:0,profit:0,profitRate:0,refundRate:0,tax:0,financeTax:0,costCommission:0,costCpc:0,costFbafee:0,costLogistics:0,costOther:0,costPurchase:0,financeCost:0,financePrincipal:0,quantity:0,principal:0,totalPrincipal:0,totalQuantity:0,realPrincipal:0,shippingcharge:0,promotion:0,orders:0,quantityRefund:0,refund:0},n.content?n.content:{}),e.profitTotal.sumQuantity=n.content.quantity||0),1!=e.isSku&&1==i.status&&(e.profitTotal.buyButtonRate=i.content.buyButtonRate?Math.round(i.content.buyButtonRate):0,e.profitTotal.buyButtonVisits=i.content.buyButtonVisits?i.content.buyButtonVisits:0,e.profitTotal.pageVisits=i.content.pageVisits?i.content.pageVisits:0,e.profitTotal.sumAmount=i.content.sumAmount?i.content.sumAmount:0,e.profitTotal.sumConv=i.content.sumConv?i.content.sumConv:0,e.profitTotal.sumVisits=i.content.sumVisits?i.content.sumVisits:0),e.profitTotal.tacos=n.content.totalPrincipal?parseFloat((n.content.costCpc/n.content.totalPrincipal*100).toFixed(2)):0}))},getDataDays:function(){var t,e,a,n,i=this;this.addon.dates=Object(v["k"])(g()(this.chartxAxis[0]),g()(this.chartxAxis[1]));var r={dasCurrentShop:this.baseModel.shopId},s={};this.dataDays=[],r={dasCurrentShop:this.baseModel.shopId,asin:this.baseModel.asin||this.baseModel.parentAsin,isParent:(null===(t=this.baseModel)||void 0===t?void 0:t.isParent)||0},1==(null===(e=this.baseModel)||void 0===e?void 0:e.isParent)?s.parentAsin=this.baseModel.parentAsin:s.asin=this.baseModel.asin,r.startDate=this.chartxAxis[0],r.endDate=this.chartxAxis[1],s.startDate=this.chartxAxis[0],s.endDate=this.chartxAxis[1];var u=[],d={dasCurrentShop:this.baseModel.shopId,asin:this.baseModel.asin||this.baseModel.parentAsin,isParent:(null===(a=this.baseModel)||void 0===a?void 0:a.isParent)||0,startTimestamp:Object(v["a"])(this.chartxAxis[0],this.timeZone).startOf("day").valueOf(),endTimestamp:Object(v["a"])(this.chartxAxis[1],this.timeZone).endOf("day").valueOf()};null!==(n=this.baseModel)&&void 0!==n&&n.isParent&&(d.parentAsin=this.baseModel.parentAsin),1==this.isSku&&(d.sku=this.baseModel.sku),u=[{req:w["s"],param:[s,this.baseModel.shopId]},{req:w["c"],param:[r]},{req:w["g"],param:[d]}],Promise.all(u.map((function(t){return t.req.apply(t,Object(l["a"])(t.param))}))).then((function(t){var e=Object(o["a"])(t,3),a=e[0],n=e[1],r=e[2],s={};if(i.addon.dates.forEach((function(t){s[t]={buyButtonRate:0,buyButtonVisits:0,pageVisits:0,sumConv:0,sumAmount:0,sessions:0,clicks:0,tacos:0,roas:0,sumVisits:0}})),1==n.status&&n.content.forEach((function(t){var e=Object(c["a"])({},t);s[Object(v["a"])(t.time,i.timeZone).format("YYYY-MM-DD")]&&(s[Object(v["a"])(t.time,i.timeZone).format("YYYY-MM-DD")]=e)})),1==r.status){var u=r.content?r.content:[];u.forEach((function(t){s[t.date]&&(s[t.date].clicks=t.clicks?t.clicks:0)}))}if(1==a.status){var d=a.content?a.content:[];d.forEach((function(t){s[t.date]&&(s[t.date].costCpc=t.costCpc?t.costCpc:0,s[t.date].orders=t.orders?t.orders:0,s[t.date].sumQuantity=t.quantity?t.quantity:0,s[t.date].principal=t.principal?t.principal:0,s[t.date].totalPrincipal=t.totalPrincipal?t.totalPrincipal:0,s[t.date].totalQuantity=t.totalQuantity?t.totalQuantity:0,s[t.date].cost=t.cost?t.cost:0,s[t.date].gross=t.profit?t.profit:0,s[t.date].rate=t.profitRate?t.profitRate:0,s[t.date].refundNum=t.quantityRefund?t.quantityRefund:0,s[t.date].refundMoneyRate=t.refundRate?t.refundRate:0,1==i.isSku&&(s[t.date].sumAmount=t.totalPrincipal?t.totalPrincipal:0))}))}var h=function(t){s[t].date=t,0==i.dataDays.filter((function(e){return e.date==t})).length&&(i.dataDays=[].concat(Object(l["a"])(i.dataDays),[s[t]]).map((function(t){return t})))};for(var p in s)h(p);i.dataDaysMap=s}))}}},I=k,D=(a("d6d0"),Object(S["a"])(I,n,i,!1,null,null,null));e["a"]=D.exports},"305a":function(t,e,a){t.exports=a.p+"img/product-analysis-bg_zh-CN.516ef0df.png"},3094:function(t,e,a){"use strict";a.d(e,"a",(function(){return Tt}));var n=a("22b4"),i=a("7fae"),o=a("3a56"),r=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(i["a"])(e,t),e.type="dataZoom.select",e}(o["a"]),s=r,l=a("7dcf"),c=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(i["a"])(e,t),e.type="dataZoom.select",e}(l["a"]),u=c,d=a("1459");function h(t){t.registerComponentModel(s),t.registerComponentView(u),Object(d["a"])(t)}var p=a("6d8b"),f=a("2145"),m=a("6cb7"),g=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(i["a"])(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;p["k"](this.option.feature,(function(t,a){var n=f["b"](a);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(e)),p["I"](t,n.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(m["a"]),_=g,v=a("e86a"),y=a("2306"),b=a("7d6c"),S=a("4319"),O=a("80f0"),T=a("7919"),A=a("b12f"),x=a("8918"),C=a("76a5"),E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.render=function(t,e,a,n){var i=this.group;if(i.removeAll(),t.get("show")){var o=+t.get("itemSize"),r="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),c=[];p["k"](s,(function(t,e){c.push(e)})),new O["a"](this._featureNames||[],c).add(u).update(u).remove(p["h"](u,null)).execute(),this._featureNames=c,T["a"](i,t,a),i.add(T["b"](i.getBoundingRect(),t)),r||i.eachChild((function(t){var e=t.__title,n=t.ensureState("emphasis"),r=n.textConfig||(n.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!p["w"](l)&&e){var c=l.style||(l.style={}),u=v["d"](e,C["a"].makeFont(c)),d=t.x+i.x,h=t.y+i.y+o,f=!1;h+u.height>a.getHeight()&&(r.position="top",f=!0);var m=f?-5-u.height:o+10;d+u.width/2>a.getWidth()?(r.position=["100%",m],c.align="right"):d-u.width/2<0&&(r.position=[0,m],c.align="left")}}))}function u(i,o){var r,u=c[i],h=c[o],p=s[u],m=new S["a"](p,t,t.ecModel);if(n&&null!=n.newTitle&&n.featureName===u&&(p.title=n.newTitle),u&&!h){if(w(u))r={onclick:m.option.onclick,featureName:u};else{var g=Object(f["b"])(u);if(!g)return;r=new g}l[u]=r}else if(r=l[h],!r)return;r.uid=Object(x["c"])("toolbox-feature"),r.model=m,r.ecModel=e,r.api=a;var _=r instanceof f["a"];u||!h?!m.get("show")||_&&r.unusable?_&&r.remove&&r.remove(e,a):(d(m,r,u),m.setIconStatus=function(t,e){var a=this.option,n=this.iconPaths;a.iconStatus=a.iconStatus||{},a.iconStatus[t]=e,n[t]&&("emphasis"===e?b["r"]:b["C"])(n[t])},r instanceof f["a"]&&r.render&&r.render(m,e,a,n)):_&&r.dispose&&r.dispose(e,a)}function d(n,s,l){var c,u,d=n.getModel("iconStyle"),h=n.getModel(["emphasis","iconStyle"]),m=s instanceof f["a"]&&s.getIcons?s.getIcons():n.get("icon"),g=n.get("title")||{};p["C"](m)?(c={},c[l]=m):c=m,p["C"](g)?(u={},u[l]=g):u=g;var _=n.iconPaths={};p["k"](c,(function(l,c){var f=y["createIcon"](l,{},{x:-o/2,y:-o/2,width:o,height:o});f.setStyle(d.getItemStyle());var m=f.ensureState("emphasis");m.style=h.getItemStyle();var g=new C["a"]({style:{text:u[c],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});f.setTextContent(g),y["setTooltipConfig"]({el:f,componentModel:t,itemName:c,formatterParamsExtra:{title:u[c]}}),f.__title=u[c],f.on("mouseover",(function(){var e=h.getItemStyle(),n=r?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";g.setStyle({fill:h.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),f.setTextConfig({position:h.get("textPosition")||n}),g.ignore=!t.get("showTitle"),a.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==n.get(["iconStatus",c])&&a.leaveEmphasis(this),g.hide()})),("emphasis"===n.get(["iconStatus",c])?b["r"]:b["C"])(f),i.add(f),f.on("click",p["c"](s.onclick,s,e,a,c)),_[c]=f}))}},e.prototype.updateView=function(t,e,a,n){p["k"](this._features,(function(t){t instanceof f["a"]&&t.updateView&&t.updateView(t.model,e,a,n)}))},e.prototype.remove=function(t,e){p["k"](this._features,(function(a){a instanceof f["a"]&&a.remove&&a.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){p["k"](this._features,(function(a){a instanceof f["a"]&&a.dispose&&a.dispose(t,e)}))},e.type="toolbox",e}(A["a"]);function w(t){return 0===t.indexOf("my")}var M=E,k=a("22d1"),I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.onclick=function(t,e){var a=this.model,n=a.get("name")||t.get("title.0.text")||"echarts",i="svg"===e.getZr().painter.getType(),o=i?"svg":a.get("type",!0)||"png",r=e.getConnectedDataURL({type:o,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),s=k["a"].browser;if(Object(p["w"])(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=n+"."+o,l.target="_blank",l.href=r;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||i){var u=r.split(","),d=u[0].indexOf("base64")>-1,h=i?decodeURIComponent(u[1]):u[1];d&&(h=window.atob(h));var f=n+"."+o;if(window.navigator.msSaveOrOpenBlob){var m=h.length,g=new Uint8Array(m);while(m--)g[m]=h.charCodeAt(m);var _=new Blob([g]);window.navigator.msSaveOrOpenBlob(_,f)}else{var v=document.createElement("iframe");document.body.appendChild(v);var y=v.contentWindow,b=y.document;b.open("image/svg+xml","replace"),b.write(h),b.close(),y.focus(),b.execCommand("SaveAs",!0,f),document.body.removeChild(v)}}else{var S=a.get("lang"),O='<body style="margin:0;"><img src="'+r+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',T=window.open();T.document.write(O),T.document.title=n}},e.getDefaultOption=function(t){var e={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(f["a"]),D=I,L=a("1be7"),R=a("e0d3"),N="__ec_magicType_stack__",P=[["line","bar"],["stack"]],j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),a={};return p["k"](t.get("type"),(function(t){e[t]&&(a[t]=e[t])})),a},e.getDefaultOption=function(t){var e={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,a){var n=this.model,i=n.get(["seriesIndex",a]);if($[a]){var o,r={series:[]},s=function(t){var e=t.subType,i=t.id,o=$[a](e,i,t,n);o&&(p["i"](o,t.option),r.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===a||"bar"===a)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim,u=c+"Axis",d=t.getReferringComponents(u,R["b"]).models[0],h=d.componentIndex;r[u]=r[u]||[];for(var f=0;f<=h;f++)r[u][h]=r[u][h]||{};r[u][h].boundaryGap="bar"===a}}};p["k"](P,(function(t){p["r"](t,a)>=0&&p["k"](t,(function(t){n.setIconStatus(t,"normal")}))})),n.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},s);var l=a;"stack"===a&&(o=p["I"]({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),"emphasis"!==n.get(["iconStatus",a])&&(l="tiled")),e.dispatchAction({type:"changeMagicType",currentType:l,newOption:r,newTitle:o,featureName:"magicType"})}},e}(f["a"]),$={line:function(t,e,a,n){if("bar"===t)return p["I"]({id:e,type:"line",data:a.get("data"),stack:a.get("stack"),markPoint:a.get("markPoint"),markLine:a.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(t,e,a,n){if("line"===t)return p["I"]({id:e,type:"bar",data:a.get("data"),stack:a.get("stack"),markPoint:a.get("markPoint"),markLine:a.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(t,e,a,n){var i=a.get("stack")===N;if("line"===t||"bar"===t)return n.setIconStatus("stack",i?"normal":"emphasis"),p["I"]({id:e,stack:i?"":N},n.get(["option","stack"])||{},!0)}};L["d"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var F=j,B=a("607d"),Y=new Array(60).join("-"),U="\t";function z(t){var e={},a=[],n=[];return t.eachRawSeries((function(t){var i=t.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)a.push(t);else{var o=i.getBaseAxis();if("category"===o.type){var r=o.dim+"_"+o.index;e[r]||(e[r]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[r].series.push(t)}else a.push(t)}})),{seriesGroupByCategoryAxis:e,other:a,meta:n}}function V(t){var e=[];return p["k"](t,(function(t,a){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,r=[" "].concat(p["H"](t.series,(function(t){return t.name}))),s=[n.model.getCategories()];p["k"](t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var l=[r.join(U)],c=0;c<s[0].length;c++){for(var u=[],d=0;d<s.length;d++)u.push(s[d][c]);l.push(u.join(U))}e.push(l.join("\n"))})),e.join("\n\n"+Y+"\n\n")}function H(t){return p["H"](t,(function(t){var e=t.getRawData(),a=[t.name],n=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,i=arguments[t-1],o=e.getName(i),r=0;r<t-1;r++)n[r]=arguments[r];a.push((o?o+U:"")+n.join(U))})),a.join("\n")})).join("\n\n"+Y+"\n\n")}function G(t){var e=z(t);return{value:p["n"]([V(e.seriesGroupByCategoryAxis),H(e.other)],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+Y+"\n\n"),meta:e.meta}}function W(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function K(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(U)>=0)return!0}var Z=new RegExp("["+U+"]+","g");function q(t){for(var e=t.split(/\n+/g),a=W(e.shift()).split(Z),n=[],i=p["H"](a,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var r=W(e[o]).split(Z);n.push(r.shift());for(var s=0;s<r.length;s++)i[s]&&(i[s].data[o]=r[s])}return{series:i,categories:n}}function X(t){for(var e=t.split(/\n+/g),a=W(e.shift()),n=[],i=0;i<e.length;i++){var o=W(e[i]);if(o){var r=o.split(Z),s="",l=void 0,c=!1;isNaN(r[0])?(c=!0,s=r[0],r=r.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var u=0;u<r.length;u++)l.push(+r[u]);1===l.length&&(c?n[i].value=l[0]:n[i]=l[0])}}return{name:a,data:n}}function Q(t,e){var a=t.split(new RegExp("\n*"+Y+"\n*","g")),n={series:[]};return p["k"](a,(function(t,a){if(K(t)){var i=q(t),o=e[a],r=o.axisDim+"Axis";o&&(n[r]=n[r]||[],n[r][o.axisIndex]={data:i.categories},n.series=n.series.concat(i.series))}else{i=X(t);n.series.push(i)}})),n}var J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var a=e.getDom(),n=this.model;this._dom&&a.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=n.get("backgroundColor")||"#fff";var o=document.createElement("h4"),r=n.get("lang")||[];o.innerHTML=r[0]||n.get("title"),o.style.cssText="margin:10px 20px",o.style.color=n.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var c=n.get("optionToContent"),u=n.get("contentToOption"),d=G(t);if(p["w"](c)){var h=c(e.getOption());p["C"](h)?s.innerHTML=h:p["v"](h)&&s.appendChild(h)}else{l.readOnly=n.get("readOnly");var f=l.style;f.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",f.color=n.get("textColor"),f.borderColor=n.get("textareaBorderColor"),f.backgroundColor=n.get("textareaColor"),l.value=d.value,s.appendChild(l)}var m=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var _="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");_+=";background-color:"+n.get("buttonColor"),_+=";color:"+n.get("buttonTextColor");var b=this;function S(){a.removeChild(i),b._dom=null}Object(B["a"])(v,"click",S),Object(B["a"])(y,"click",(function(){if(null==u&&null!=c||null!=u&&null==c)S();else{var t;try{t=p["w"](u)?u(s,e.getOption()):Q(l.value,m)}catch(a){throw S(),new Error("Data view format error "+a)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),S()}})),v.innerHTML=r[1],y.innerHTML=r[2],y.style.cssText=v.style.cssText=_,!n.get("readOnly")&&g.appendChild(y),g.appendChild(v),i.appendChild(o),i.appendChild(s),i.appendChild(g),s.style.height=a.clientHeight-80+"px",a.appendChild(i),this._dom=i},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){var e={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return e},e}(f["a"]);function tt(t,e){return p["H"](t,(function(t,a){var n=e&&e[a];if(p["A"](n)&&!p["t"](n)){var i=p["A"](t)&&!p["t"](t);i||(t={value:t});var o=null!=n.name&&null==t.name;return t=p["i"](t,n),o&&delete t.name,t}return t}))}L["d"]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var a=[];p["k"](t.newOption.series,(function(t){var n=e.getSeriesByName(t.name)[0];if(n){var i=n.get("data");a.push({name:t.name,data:tt(t.data,i)})}else a.push(p["m"]({type:"scatter"},t))})),e.mergeOption(p["i"]({series:a},t.newOption))}));var et=J,at=p["k"],nt=Object(R["o"])();function it(t,e){var a=lt(t);at(e,(function(e,n){for(var i=a.length-1;i>=0;i--){var o=a[i];if(o[n])break}if(i<0){var r=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(r){var s=r.getPercentRange();a[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}})),a.push(e)}function ot(t){var e=lt(t),a=e[e.length-1];e.length>1&&e.pop();var n={};return at(a,(function(t,a){for(var i=e.length-1;i>=0;i--)if(t=e[i][a],t){n[a]=t;break}})),n}function rt(t){nt(t).snapshots=null}function st(t){return lt(t).length}function lt(t){var e=nt(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.onclick=function(t,e){rt(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(f["a"]);L["d"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var ut=ct,dt=a("fc82"),ht=a("bd9e"),pt=a("ef6a"),ft=a("2f1f"),mt=p["k"],gt=Object(R["p"])("toolbox-dataZoom_"),_t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.render=function(t,e,a,n){this._brushController||(this._brushController=new dt["a"](a.getZr()),this._brushController.on("brush",p["c"](this._onBrush,this)).mount()),St(t,e,this,n,a),bt(t,e)},e.prototype.onclick=function(t,e,a){vt[a].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var a={},n=this.ecModel;this._brushController.updateCovers([]);var i=new ht["a"](yt(this.model),n,{include:["grid"]});i.matchOutputRanges(e,n,(function(t,e,a){if("cartesian2d"===a.type){var n=t.brushType;"rect"===n?(o("x",a,e[0]),o("y",a,e[1])):o({lineX:"x",lineY:"y"}[n],a,e)}})),it(n,a),this._dispatchZoomAction(a)}function o(t,e,i){var o=e.getAxis(t),s=o.model,l=r(t,s,n),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(i=Object(pt["a"])(0,i.slice(),o.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(a[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function r(t,e,a){var n;return a.eachComponent({mainType:"dataZoom",subType:"select"},(function(a){var i=a.getAxisModel(t,e.componentIndex);i&&(n=a)})),n}},e.prototype._dispatchZoomAction=function(t){var e=[];mt(t,(function(t,a){e.push(p["d"](t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(f["a"]),vt={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(ot(this.ecModel))}};function yt(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function bt(t,e){t.setIconStatus("back",st(e)>1?"emphasis":"normal")}function St(t,e,a,n,i){var o=a._isZoomActive;n&&"takeGlobalCursor"===n.type&&(o="dataZoomSelect"===n.key&&n.dataZoomSelectActive),a._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var r=new ht["a"](yt(t),e,{include:["grid"]}),s=r.makePanelOpts(i,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));a._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}Object(ft["b"])("dataZoom",(function(t){var e=t.getComponent("toolbox",0),a=["feature","dataZoom"];if(e&&null!=e.get(a)){var n=e.getModel(a),i=[],o=yt(n),r=Object(R["s"])(t,o);return mt(r.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),mt(r.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),i}function s(t,e,a){var o=t.componentIndex,r={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:gt+e+o};r[a]=o,i.push(r)}}));var Ot=_t;function Tt(t){t.registerComponentModel(_),t.registerComponentView(M),Object(f["c"])("saveAsImage",D),Object(f["c"])("magicType",F),Object(f["c"])("dataView",et),Object(f["c"])("dataZoom",Ot),Object(f["c"])("restore",ut),Object(n["a"])(h)}},"30d1":function(t,e,a){"use strict";a("f931")},3281:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIEAAABbCAMAAABj2xYrAAABLFBMVEUAAADr6PFuanqmo7Ds6fFtanpva3vY1t5ua3vY19/s6fJsbHzV1d9ta3vq6PBtaXpta3twaHhoaHhwcHBua3vr6vLr6PDY1t7s6fDX09vn5+/Y1t9ua3tqaHl9eomuqrjFw87h3+luanrr5+9ubHzZ1t52c4O2sr6/vMbr6fHY1t5tanrq5+/X1NzX1NzX09vr5+/n5++TkJ6em6nLydHg3ubs6fHr6PFsann///+IhZP////s6vHr6vFubHz////r6fFua3u2tb3b2t7Y1t6AfYv29vd2c4Pb2eJ+eonk4eqtq7ako6zu7PPt7O/MytP49/rt7e+0sr1+e4q/vsXIx82JhpTT0dfJx87AvsXk4+a8usWTkZ2Ni5idmqfEws21sr6loq+bmaS8usSdD7LuAAAAP3RSTlMAzIDl32Df39+/n0AQv4BwnyAgEO+/v4BwQCDTzzD44tnPkFCA7+/f3c/Pr2BgUCBAQO7p09CvkFAg8+/v75CwXTz1AAAEK0lEQVRo3u2aaVPaUBSGT5GwBMIOsluw2qqt1u57FgghJKLI6trt//+HnthLA5OUIISktn1mnGO+PXPPee89MwoAueBWPfgE3GPdnwvDvn8d3OKJPwxI2J8Dlwju/6y5IJhCpXgDqVgC7KNOangLTPEV7hkorAWiYBtbYV3FDP6eGYVyIGFbF0j/94O3MEAelj1gD7nxJD65jQFSeBYo2ZXGfQjnMI2WBsZj2PPMxRurPAbrW9gLawMjj9bm4h0Di4MGy1Ph3TVA/hvcTYNk1BPFUsIk8VrscJ6xFLDcJwmo4HxheYSf97EWsGJ5SD5fYN1Y2ygsbBD3qUKPZdlzQRBqWPtYsXTI5xBrg2UbWIb4WcPaxoplRD7PsfYEtVwxNTgI1ncPYCZRlbUFdcPUYHcd1oMwE49gj4GwZmpQJz8ziJ7ZY3BmfgZBPINdmA1rE+aTeLBbDx64ZaDzpxuEavYI1O5bGDiQhaUNTjgLjk5WbHDEWbIag2RjboOjWQaNytJZOLFUMOnC35FG7IItNF7+BWn8hw3cv5X1NBpuQGtsTaPxRnLd4Mgpg2jvN3fiLbvQ27i7WXDfwL5d+e6+TP8N/oRbeTVZCLhuwN8pA9u2tIrBIE65mAWfJuB74KIBEXB3V0YBhyfx2fOyxEvl52ODksNZ6Awk5bjFtY5P5b2EGzfSSDzlxpxuU6QPPM8HHLqVR3KT02nKlNMvU0ckAl2isJ1w2ODbuAX8uBEMWOC31eBc5qYMECkEs6kbduVlUE4NBkrVysDWLAyODQbHxZktqGuMGxFVljaQWgaDVmr+Myg9WtqA11LA68iay/wG8Pa9G2fgh0mFF4ogsIggLFalyTloXslXF4Y5sED7Aw8gngUro0wYdIV2X7z+SrLwZo+hYPWEJN3g8zcWORNjCUAocVgbRGH1MPqdeKGyGm01QAFAER+dRioJKye+Td4FmWuJ5KVrDwIl8LXxt8sQrB6q2+QIQ1ntsDf0xVixj1WoggNQ2/p+cMWPr1mB13pSY8AJ4nvdLzc7kiIxoZg4JK1QbtKaBEcoVYspPlWsal1nRuwElxQ4DSWyk/Sq4DS+6c2vnUqAs1AqO40SYJxtBFNjp7n8+ln2gIPgPTRFX8bHkgfHMBqI+HZeBGBewvnDzcfZyGuafpVO73g1uCm8GmmEpiOR7OPDw3wYpolNr57CtbbBUGBJfjNLp70fuEXYSdORzTwQQmKD1elIeGN/iYEVWS+3NN4I/OTToKMbqAquLV3rPEbsMMgC4YE4+nUEMu5w1zGAeboQoTM73CJ89GboLHZBJ14Uz8kYfscjuNW/F4bzT5/iJEZoOoP8bhJ3MplXNP0aJ3HzKU6iCZRP7ZAkclcUuMIDfKUbYpMk0RXiMVG61JIYAteIUxhFJQZuQvkGOIaukgwl9Y8fy8+R2wcS02YAAAAASUVORK5CYII="},"32a9":function(t,e,a){"use strict";a("efb4")},"32bf":function(t,e,a){"use strict";a("0e2e")},"32fd":function(t,e,a){"use strict";a("63b4")},3339:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-sidebar",{staticClass:"lib-sider--moreList",style:{zIndex:t.zIndex},attrs:{width:"800px","bg-variant":"white",right:"","no-header":"",backdrop:"",shadow:""},on:{hidden:function(e){return t.handleClose()}},model:{value:t.__visible__,callback:function(e){t.__visible__=e},expression:"__visible__"}},[n("div",{staticClass:"common-sider"},[n("div",{staticClass:"common-sider-header"},[n("lok",{staticClass:"common-sider-header__title",attrs:{"lok-key":"router_name_keywords_stock"}}),n("div",{staticClass:"common-sider-header__close-btn",on:{click:function(e){return t.handleClose()}}},[n("feather-icon",{attrs:{icon:"XIcon",size:"18"}})],1)],1),n("div",{staticClass:"sider-content"},[n("div",{staticClass:"sider-content--tips"},[t._v(" "+t._s(t.$t("ks_add_to_other_list_tip"))+" ")]),n("div",{staticClass:"sider-content--title"},[t._v(" "+t._s(t.$t("kr_pick_a_keywords_list"))+" ")]),n("b-input-group",{staticClass:"input-group-merge",staticStyle:{width:"300px"},attrs:{size:"sm"}},[n("b-form-input",{attrs:{placeholder:t.$t("kwsrchfield_placeholder")},model:{value:t.searchKey,callback:function(e){t.searchKey=e},expression:"searchKey"}}),n("b-input-group-append",{attrs:{"is-text":""}},[n("feather-icon",{staticClass:"cursor-pointer",staticStyle:{color:"#b9b9c3"},attrs:{icon:"SearchIcon"},on:{click:t.getKeywordLib}})],1)],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"sider_keyword-item-wrap"},[t.list.length?t._l(t.list,(function(e){return n("div",{key:e.id,staticClass:"sider_keyword-item",on:{click:function(a){return t.handlerSelectKeyword(e)}}},[n("div",{staticClass:"d-flex align-items--center"},[e.asin?n("span",{staticClass:"lib-ai-tag das-label-right"},[t._v("AI")]):t._e(),t._v(" "+t._s(e.name)+" ")]),n("div",{staticClass:"m-t-8 d-flex align-items--center"},[n("span",[t._v(t._s(t.$t("Lk_Package_Item_Text_Size_Keyword",{num:e.count})))]),n("i",{class:"m-l-16 icp-flag icp-flag-"+t.getMarketplace(e.marketplaceId).ico}),e.asin?n("span",{staticClass:"m-l-8"},[t._v(t._s(t.$t("_KEYWORD_ANALYSIS_ASIN")+t.$t("_COMMON_SYMBOL_COLON"))+t._s(e.asin))]):t._e()]),n("div",{staticClass:"m-t-8 fs12 last-text"},[t._v(" "+t._s(t.$t("ks_last_edit_date")+t.$t("_COMMON_SYMBOL_COLON"))+t._s(t.createZonedMoment(1e3*e.updatedTime,t.getTimeZoneMulti()).format("YYYY-MM-DD HH:mm:ss"))+" ")])])})):n("div",{staticClass:"m-t-12 empty-status-block"},[n("img",{attrs:{width:"129",height:"91",src:a("b6c0")}}),n("div",{staticClass:"m-t-24"},[t._v(t._s(t.$t("global_nodata")))])])],2),n("div",{staticClass:"sider-content--title"},[t._v(" "+t._s(t.$t("kr_creat_keywords_list_long"))+" ")]),n("div",{staticClass:"flex-one add-keyword-wrap"},[n("b-button",{staticClass:"fs16",attrs:{variant:"primary"},on:{click:t.toggleAddModal}},[n("feather-icon",{attrs:{icon:"PlusIcon"}}),t._v(" "+t._s(t.$t("kr_creat_keywords_list_long"))+" ")],1)],1)],1)]),n("b-modal",{attrs:{size:"lg",modalClass:"list-sider_keyword-add-modal",title:t.$t("kr_creat_keywords_list_long"),centered:"",hideFooter:""},model:{value:t.showAddModal,callback:function(e){t.showAddModal=e},expression:"showAddModal"}},[n("div",{staticClass:"keyword-add-modal--body"},[n("div",{staticClass:"content-border m-b-16"},[n("div",{staticClass:"content-border-row"},[n("span",{staticClass:"label"},[t._v(t._s(t.$t("_MWS_AUTHORIZATION_AMAZON_SITE")+t.$t("_COMMON_SYMBOL_COLON")))]),n("span",{staticClass:"value"},[n("i",{class:"m-r-8 icp-flag icp-flag-"+t.getMarketplace(t.apiParams.marketplaceId).ico}),n("span",[t._v(t._s(t.getMarketplace(t.apiParams.marketplaceId).label))])])]),n("div",{staticClass:"content-border-row m-t-12"},[n("span",{staticClass:"label"},[t._v(t._s(t.$t("kr_keywords_list_name")+t.$t("_COMMON_SYMBOL_COLON")))]),n("b-input",{attrs:{size:"sm"},model:{value:t.newlistName,callback:function(e){t.newlistName=e},expression:"newlistName"}})],1),t.isErrorTitle?n("div",{staticClass:"content-border-row content-border-row--error"},[n("span",{staticClass:"label"}),n("div",{staticClass:"content-border-row__error-tip"},[t._v(" "+t._s(this.$t("kr_no_list_name"))+" ")])]):t._e()]),n("b-button",{staticClass:"fs16 m-b-28",attrs:{variant:"primary"},on:{click:t.addKeyword}},[n("feather-icon",{attrs:{icon:"PlusIcon"}}),t._v(" "+t._s(t.$t("kr_btn_create_add_keywords"))+" ")],1)],1)])],1)},i=[],o=a("1da1"),r=(a("b0c0"),a("498a"),a("96cf"),a("d771")),s=a("d80f"),l=a("2af9"),c=a("6ddf"),u={name:"LibSiderMoreList",props:{showSider:{type:Boolean,default:!1},apiParams:{type:Object,default:function(){return{keywords:"",marketplaceId:"ATVPDKIKX0DER",asin:"B08125FJ2F",ticket:""}}}},data:function(){return{zIndex:99999,listLoading:!1,list:[],isSearchKey:!1,searchKey:"",showAddModal:!1,isErrorTitle:!1,newlistName:""}},model:{prop:"showSider",event:"toggle"},components:{customModal:l["l"]},watch:{showSider:{immediate:!0,handler:function(t){t&&(this.newlistName="",this.isErrorTitle=!1,this.getKeywordLib())}},showAddModal:function(){this.showAddModal?this.zIndex=9998:this.zIndex=99999}},computed:{__visible__:{get:function(){return this.showSider},set:function(t){this.$emit("toggle",t)}}},methods:{createZonedMoment:c["b"],getTimeZoneMulti:c["w"],toggleAddModal:function(){this.showAddModal=!0,setTimeout((function(){document.querySelector(".list-sider_keyword-add-modal").parentElement.style="z-index:10000",document.querySelector(".list-sider_keyword-add-modal+.modal-backdrop").style="z-index:9999"}),0)},getMarketplace:function(t){return s["E"].getMarketplace(t)},handleClose:function(){this.$emit("toggle",!1),this.$emit("refreshList")},getKeywordLib:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.listLoading=!0,t.isSearchKey=!0,n={marketplaceId:null===(a=t.apiParams)||void 0===a?void 0:a.marketplaceId,currentPage:1,pageSize:99999},t.searchKey&&(n.searchKey=t.searchKey),e.next=7,Object(r["f"])(n);case 7:i=e.sent,1==i.status&&(t.list=i.content.result),e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](0);case 13:return e.prev=13,t.listLoading=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,11,13,16]])})))()},handlerSelectKeyword:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,i,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=e.apiParams.keywords instanceof Array?e.apiParams.keywords:[e.apiParams.keywords],i={marketplaceId:t.marketplaceId,keywords:n,databaseId:t.id,name:t.name},a.next=4,Object(r["e"])(i);case 4:o=a.sent,1==o.status&&(e.$store.dispatch("app/updatePop",{title:e.$t("_COMMON_OPERATE_SUCCESS"),icon:"EditIcon",variant:"success"}),e.getKeywordLib());case 6:case"end":return a.stop()}}),a)})))()},addKeyword:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.newlistName.trim().length){e.next=3;break}return t.isErrorTitle=!0,e.abrupt("return");case 3:return t.isErrorTitle=!1,n={name:t.newlistName,marketplaceId:null===(a=t.apiParams)||void 0===a?void 0:a.marketplaceId,keywords:[t.apiParams.keywords]},e.next=7,Object(r["a"])(n);case 7:i=e.sent,1==i.status&&(t.showAddModal=!1,t.$emit("toggle",!1),t.$store.dispatch("app/updatePop",{title:t.$t("_COMMON_OPERATE_SUCCESS"),icon:"EditIcon",variant:"success"}));case 9:case"end":return e.stop()}}),e)})))()}}},d=u,h=(a("c12b"),a("2877")),p=Object(h["a"])(d,n,i,!1,null,null,null);e["a"]=p.exports},3620:function(t,e,a){"use strict";a.r(e),a.d(e,"amazonSiteMap",(function(){return r})),a.d(e,"amazonSiteA",(function(){return l})),a.d(e,"amazonSiteMpaA",(function(){return c})),a.d(e,"amazonSiteB",(function(){return d})),a.d(e,"amazonSiteMpaB",(function(){return h})),a.d(e,"amazonSiteAIReview",(function(){return f})),a.d(e,"amazonSiteMpaAIReview",(function(){return m})),a.d(e,"amazonSitePatent",(function(){return _})),a.d(e,"amazonSiteMpaPatent",(function(){return v})),a.d(e,"amazonSiteC",(function(){return b})),a.d(e,"amazonSiteMpaC",(function(){return S})),a.d(e,"amazonSiteD",(function(){return T})),a.d(e,"amazonSiteMpaD",(function(){return A})),a.d(e,"amazonSiteE",(function(){return C})),a.d(e,"amazonSiteMpaE",(function(){return E})),a.d(e,"amazonSiteF",(function(){return M})),a.d(e,"amazonSiteMpaF",(function(){return k})),a.d(e,"review",(function(){return I})),a.d(e,"star",(function(){return D})),a.d(e,"price",(function(){return L})),a.d(e,"timePastMonth",(function(){return R}));a("d3b7"),a("159b");var n=a("d80f"),i=a("cf45"),o=function(t){var e={};return t.forEach((function(t){e[t.value]=t.label})),e},r={POL:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_PL",value:n["w"],gy:"EUR",icon:"icp-flag icp-flag-pl",isTranslate:!0},EUR:{label:"_CLAIM_ASSISTANT_EUROPE_SITE",value:n["q"],gy:"EUR",icon:"icp-flag icp-flag-eu",isTranslate:!0},USA:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_US",value:n["B"],gy:"USA",icon:"icp-flag icp-flag-us",isTranslate:!0},CAN:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_CA",value:n["n"],gy:"CAN",icon:"icp-flag icp-flag-ca",isTranslate:!0},MEX:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_MX",value:n["u"],gy:"MEX",icon:"icp-flag icp-flag-mx",isTranslate:!0},GBR:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_UK",value:n["A"],gy:"GBR",icon:"icp-flag icp-flag-uk",isTranslate:!0},DEU:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_DE",value:n["o"],gy:"DEU",icon:"icp-flag icp-flag-de",isTranslate:!0},FRA:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_FR",value:n["q"],gy:"FRA",icon:"icp-flag icp-flag-fr",isTranslate:!0},ESP:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_ES",value:n["p"],gy:"ESP",icon:"icp-flag icp-flag-es",isTranslate:!0},ITA:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_IT",value:n["s"],gy:"ITA",icon:"icp-flag icp-flag-it",isTranslate:!0},JPN:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_JP",value:n["t"],gy:"JPN",icon:"icp-flag icp-flag-jp",isTranslate:!0},AUS:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_AU",value:n["m"],gy:"AUS",icon:"icp-flag icp-flag-au",isTranslate:!0},IND:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_IN",value:n["r"],gy:"IND",icon:"icp-flag icp-flag-in",isTranslate:!0},ARE:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_AE",value:n["l"],gy:"AED",icon:"icp-flag icp-flag-ae",isTranslate:!0},SAU:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_SA",value:n["x"],gy:"SAU",icon:"icp-flag icp-flag-sa",isTranslate:!0},SGP:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_SG",value:n["z"],gy:"SGP",icon:"icp-flag icp-flag-sg",isTranslate:!0},NLD:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_NL",value:n["v"],gy:"NLD",icon:"icp-flag icp-flag-nl",isTranslate:!0},SWE:{label:"_MWS_AUTHORIZATION_AMAZON_SITE_SE",value:n["y"],gy:"SWE",icon:"icp-flag icp-flag-se",isTranslate:!0}},s=["USA","CAN","GBR","FRA","DEU","ITA","ESP","JPN","IND"],l=Object(i["e"])(s,r),c=o(l),u=["USA","CAN","GBR","FRA","DEU","ITA","ESP","JPN","IND"],d=Object(i["e"])(u,r),h=o(u),p=["USA","CAN","DEU","ESP","FRA","GBR","ITA","JPN"],f=Object(i["e"])(p,r),m=o(p),g=["USA","JPN"],_=Object(i["e"])(g,r),v=o(g),y=["USA","CAN","MEX","GBR","FRA","DEU","ITA","ESP","JPN","AUS","IND","ARE","SAU","SGP"],b=Object(i["e"])(y,r),S=o(b),O=["USA","CAN","MEX","GBR","EUR","JPN","AUS","IND"],T=Object(i["e"])(O,r),A=o(T),x=["USA","CAN"],C=Object(i["e"])(x,r),E=o(C),w=["USA","JPN","GBR","DEU"],M=Object(i["e"])(w,r),k=o(w),I=[{value:"0-10",label:"<10"},{value:"10-20",label:"10-20"},{value:"20-50",label:"20-50"},{value:"50-100",label:"50-100"},{value:"100-300",label:"100-300"}],D=[{value:"0-3",label:"0-3.0"},{value:"3-3.5",label:"3.0-3.5"},{value:"3.5-4",label:"3.5-4.0"},{value:"4-4.2",label:"4.0-4.2"},{value:"4.2-4.5",label:"4.2-4.5"},{value:"4.5-5",label:"4.5-5.0"}],L=[{value:"0-10",label:"<10"},{value:"10-30",label:"10-30"},{value:"30-50",label:"30-50"},{value:"50-100",label:"50-100"},{value:"100-500",label:"100-500"},{value:"500-1000",label:"500-1000"},{value:"1000-2500",label:"1000-2500"},{value:"2500-5000",label:"2500-5000"},{value:"5000-20000",label:">5000"}],R=[{value:3,label:"_OPTIONS_LESS_NUM_MONTHS",params:{num:3},isTranslate:!0},{value:6,label:"_OPTIONS_LESS_NUM_MONTHS",params:{num:6},isTranslate:!0},{value:12,label:"_OPTIONS_LESS_NUM_YEARS",params:{num:1},isTranslate:!0},{value:24,label:"_OPTIONS_LESS_NUM_YEARS",params:{num:2},isTranslate:!0}]},3707:function(t,e,a){"use strict";a("5e40")},"372f":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("app-echart-doughnut",{key:t.pieKey,ref:"appEchart",staticStyle:{width:"100%"},attrs:{tooltip:t.tooltip,series:t.series}})],1)},i=[],o=a("5530"),r=(a("d3b7"),a("99af"),a("b0c0"),a("d81d"),a("37b2")),s=a("2f62"),l=a("bbf0"),c=a("33d8"),u={name:"pieChart",props:{pieItemNamesShow:{},baseModel:{},currencySymbol:{},currencyCode:{}},computed:Object(o["a"])(Object(o["a"])({},Object(s["c"])({CURRENCY_CODE:l["b"]})),{},{multiple:function(){return!(!this.baseModel||!this.baseModel.CURRENCY_SYMBOL)},CURRENCY_SYMBOL:function(){return this.currencySymbol||(this.multiple?this.baseModel.CURRENCY_SYMBOL:this.$store.getters[l["c"]])},isEmpt:function(){return this.pieData.every((function(t){return!t}))}}),components:{AppEchartDoughnut:r["a"]},data:function(){var t=this;return{tooltip:{trigger:"item",formatter:function(e){return"".concat(e.data.name,"(").concat(t.$route.query.CURRENCY_SYMBOL||t.CURRENCY_SYMBOL,"): ").concat(e.data.value," </br>").concat(e.percent,"%")}},pieData:[],pieKey:"pieKey",series:[{name:"product cost",type:"pie",radius:["0%","95%"],avoidLabelOverlap:!0,minAngle:4,label:{show:!0,fontSize:12,color:"#666"},labelLine:{show:!0},data:[]}]}},watch:{pieItemNamesShow:"initChart",CURRENCY_SYMBOL:{immediate:!0,handler:function(){var t=this;this.tooltip={trigger:"item",formatter:function(e){return"".concat(e.data.name).concat(t.CURRENCY_SYMBOL?"(".concat(t.$route.query.CURRENCY_SYMBOL||t.CURRENCY_SYMBOL,")"):"",": ").concat(Object(c["b"])(t.currencyCode||t.CURRENCY_CODE,e.data.value,"unshow")," </br>").concat(e.percent,"%")}},this.initChart()}}},methods:{initChart:function(){var t=this.pieItemNamesShow.map((function(t){return{name:t.label,value:t.value||0,itemStyle:{color:t.color,borderWidth:1,borderColor:"#fff"}}}));this.series[0].data=t,this.pieKey=Math.random(),this.$emit("data",t)}},mounted:function(){this.initChart()}},d=u,h=a("2877"),p=Object(h["a"])(d,n,i,!1,null,null,null);e["a"]=p.exports},"37b2":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("e-charts",{ref:"line",style:"height:"+t.height+"px;width:"+t.width+"px",attrs:{autoresize:"",option:t.option,theme:"theme-color","auto-resize":""}})},i=[],o=(a("a9e3"),a("22b4")),r=a("1be7"),s=a("5c7f"),l=a("49bb"),c=a("f95e"),u=a("9394"),d=a("2da7"),h=a("ff32"),p=a("4b2a"),f=a("abd2"),m=a("366f");Object(o["a"])([c["a"],l["a"],u["a"],d["a"],h["a"],p["a"],f["a"]]),Object(r["m"])("theme-color",m);var g={components:{ECharts:s["a"]},data:function(){return{option:{tooltip:this.tooltip,legend:{show:!1,left:10,bottom:"0"},series:this.series}}},props:{width:{type:Number,default:430},height:{type:Number,default:430},optionData:{type:Object,default:null},series:{type:Array,default:null},tooltip:{type:Object,default:function(){return{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"}}}},watch:{optionData:{deep:!0,handler:function(t){this.option=t}}},computed:{}},_=g,v=a("2877"),y=Object(v["a"])(_,n,i,!1,null,null,null);e["a"]=y.exports},"3a1e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"appsettings-wrapper"},[a("custom-modal",{ref:"'appsettings-modal'",attrs:{modalClass:t.$options.name,hideFooter:!!t.okbtnId,visible:t.visible,title:t.title,width:600,"ok-title":t.$t("global_confirm"),"cancel-title":t.$t("global_button_cancel")},on:{hidden:t.hidden,ok:t.handleOk},scopedSlots:t._u([t.okbtnId?{key:"modal-footer",fn:function(){return[a("div",{staticClass:"modal-footer"},[a("b-button",{attrs:{variant:"secondary"},on:{click:t.hidden}},[t._v(" "+t._s(t.$t("global_button_cancel"))+" ")]),a("b-button",{attrs:{id:t.okbtnId,variant:"primary"},on:{click:t.handleOk}},[t._v(" "+t._s(t.$t("global_confirm"))+" ")])],1)]},proxy:!0}:null],null,!0)},[a("div",{staticClass:"appsettings-body",class:t.configs.hasAuthFeature?"appsettings-body--auth":""},[a("div",{staticClass:"appsettings-block-title"},[t._v(" "+t._s(t.$t("asintrack_list_title1"))+" ")]),a("div",{staticClass:"appsettings-content__tip first_tip m-t-4"},[t._v(t._s(t.$t("asintrack_list_box4")))]),a("div",{staticClass:"appsettings-content"},[a("b-form-radio",{attrs:{value:t.frequentType[0].value},model:{value:t.frequent,callback:function(e){t.frequent=e},expression:"frequent"}},[a("div",{staticClass:"fw-600"},[t._v(" "+t._s(t.frequentType[0].text)+" "),"HIGH"==t.frequent?a("span",[t._v(" ("+t._s(t.$t("asin_tracker_limit")+t.$t("_COMMON_SYMBOL_COLON"))+t._s(t.highRest)+") ")]):t._e()]),a("div",{staticClass:"last-color fs12"},[t._v(" "+t._s(t.$t("asin_tracker_setting_tip_high_frequency"))+" ")])]),a("b-form-radio",{staticClass:"m-t-16",attrs:{value:t.frequentType[1].value},model:{value:t.frequent,callback:function(e){t.frequent=e},expression:"frequent"}},[a("div",{staticClass:"fw-600"},[t._v(" "+t._s(t.frequentType[1].text)+" "),"LOW"==t.frequent?a("span",[t._v(" ("+t._s(t.$t("asin_tracker_limit")+t.$t("_COMMON_SYMBOL_COLON"))+t._s(t.lowRest)+") ")]):t._e()]),a("div",{staticClass:"last-color fs12"},[t._v(" "+t._s(t.$t("asin_tracker_setting_tip_low_frequency"))+" ")])])],1),t.configs.hasAuthFeature?[a("div",{staticClass:"promotion-wrapper p-tb-24"},[a("promotion-block",{attrs:{appleID:"competitiveTracker_confirm_appIOS",googleplayID:"competitiveTracker_confirm_appAndroid"}})],1)]:[a("div",{staticClass:"appsettings-block-title"},[t._v(" "+t._s(t.$t("app_track_push_set"))+" ")]),a("div",{staticClass:"d-flex justify-content--space-between align-items--center m-t-4"},[a("div",{staticClass:"last-color fs12"},[t._v(" "+t._s(t.$t("asin_tracker_setting_tip_app"))+" ")]),a("span",{staticClass:"g-link-btn m-l-16",staticStyle:{"white-space":"nowrap"},attrs:{id:t.$options.name+"__"+t._uid}},[t._v(t._s(t.$t("_APP_NOTIFICATION_DOWNLOAD")))]),a("b-popover",{attrs:{triggers:"hover",placement:"bottom",target:t.$options.name+"__"+t._uid}},[a("promotion-block",{attrs:{appleID:"competitiveTracker_list_appIOS",googleplayID:"competitiveTracker_list_appAndroid"}})],1)],1),a("div",{staticClass:"appsettings-content"},[a("div",[a("span",[t._v(" "+t._s(t.$t("asin_tracker_app_notifications")+t.$t("_COMMON_SYMBOL_COLON"))+" ")]),a("b-form-checkbox",{staticClass:"custom-control-primary",staticStyle:{display:"inline-block"},attrs:{checked:"ON"==t.notificationStatus,name:"check-button",switch:""},on:{change:function(e){return t.notificationStatus=e?"ON":"OFF"}}},[a("span",{staticClass:"switch-icon-left"},[a("feather-icon",{attrs:{icon:"CheckIcon"}})],1),a("span",{staticClass:"switch-icon-right"},[a("feather-icon",{attrs:{icon:"XIcon"}})],1)]),a("span",[t._v(t._s("ON"==t.notificationStatus?t.$t("web_search_window_tips_on"):t.$t("web_search_window_tips_off")))])],1),a("div",{staticClass:"m-b-10"},[t._v(" "+t._s(t.$t("asin_tracker_notification_content")+t.$t("_COMMON_SYMBOL_COLON"))+" ")]),a("div",{staticClass:"grey-bg"},[a("div",{staticClass:"d-flex align-items--center"},[a("b-form-checkbox",{attrs:{disabled:"OFF"==t.notificationStatus},on:{change:t.onCheckAll},model:{value:t.allChecked,callback:function(e){t.allChecked=e},expression:"allChecked"}},[t._v(" "+t._s(t.$t("app_search_all"))+" ")]),a("div",{staticClass:"g-link-btn m-l-16",class:{"g-link-btn__disable":"OFF"==t.notificationStatus},on:{click:t.inverseAll}},[t._v(" "+t._s(t.$t("global_InverseChoose"))+" ")])],1),a("b-form-checkbox-group",{attrs:{disabled:"OFF"==t.notificationStatus,id:"settings-group",options:t.options,name:"settings"},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}})],1)])]],2)])],1)},i=[],o=a("5530"),r=a("1da1"),s=(a("96cf"),a("4de4"),a("d3b7"),a("159b"),a("b64b"),a("caad"),a("2532"),a("e9c4"),a("b0c0"),a("d81d"),a("2af9")),l=a("c3e6"),c=a("3b99"),u=a("49bd"),d=a("d80f"),h=a("1f98"),p=a("aae7"),f={LOW:"LOW",HIGH:"HIGH"},m={name:"app-settings-modal",components:{customModal:s["l"],BFormCheckbox:l["a"],BFormCheckboxGroup:c["a"],promotionBlock:p["a"]},props:{okbtnId:{type:String,default:""},isHistoryConfig:{type:Boolean,default:!1},configs:{type:Object,default:{hasAuthFeature:!1,userTrackerCount:{used:0,limit:50},asinList:[],highNumber:0,lowNumber:0,notificationStatus:"ON",config:{price:0,coupon:0,soldout:0}}}},data:function(){return{allChecked:!1,base_frequent:null,FREQUENT_TYPE:f,MARKETPLACE_ID_IN:d["r"],visible:!1,title:this.$t("web_search_window_title",{number:1}),notificationStatus:"ON",frequent:f.HIGH,selected:[],userTrackerCount:{highFrequentLimit:0,highFrequentUsed:0,lowFrequentUsed:0,lowFrequentLimit:0},options:[]}},computed:{lowRest:function(){return this.userTrackerCount.lowFrequentLimit-this.userTrackerCount.lowFrequentUsed},highRest:function(){return this.userTrackerCount.highFrequentLimit-this.userTrackerCount.highFrequentUsed},currentLang:function(){return this.$i18n.locale},VUE_APP_IS_CN:function(){return"false"},frequentType:function(){return[{text:this.$t("asintrack_list_title4"),value:"HIGH"},{text:this.$t("asintrack_list_title3"),value:"LOW"}]},baseOptions:function(){return[{text:this.$t("ae_parameter_month_sales"),value:"monthlySold"},{text:this.$t("global_listing_price"),value:"listPrice"},{text:this.$t("global_trackDetail_operateIndex_buybox"),value:"price"},{text:this.$t("global_trackDetail_operateIndex_buyboxOwner"),value:"buyboxSeller"},{text:this.$t("ae_rating_count"),value:"reviewNum"},{text:this.$t("global_trackDetail_operateIndex_rate"),value:"rating"},{text:this.$t("global_trackDetail_operateIndex_title"),value:"title"},{text:this.$t("global_trackDetail_operateIndex_picture"),value:"image"},{text:this.$t("app_asinFeature"),value:"feature"},{text:this.$t("global_trackDetail_operateIndex_version"),value:"variationNum"},{text:this.$t("global_asinTrack_trackIndex_offShelf"),value:"soldout"},{text:this.$t("global_asinTrack_trackIndex_coupons"),value:"coupon"},{text:this.$t("global_trackDetail_operateIndex_similarBuy"),value:"boughtTogether"},{text:this.$t("global_trackDetail_operateIndex_LD"),value:"deal"},{text:this.$t("global_trackDetail_operateIndex_promotions"),value:"promotion"},{text:this.$t("ae_fba_fee"),value:"fbaFee"},{text:this.$t("ae_parameter_package_dimensions"),value:"packageSize"},{text:this.$t("global_asinDetail_field_ProductWeight"),value:"productWeight"}]}},watch:{configs:{deep:!0,immediate:!0,handler:function(t){this.setOptions(),this.setConfig()}},currentLang:{deep:!0,immediate:!0,handler:function(t){this.setOptions()}},visible:{deep:!0,immediate:!0,handler:function(t){this.setConfig()}},selected:{immediate:!1,handler:function(t){var e,a;this.allChecked=(null===(e=this.selected)||void 0===e?void 0:e.length)===(null===(a=this.options)||void 0===a?void 0:a.length)}}},mounted:function(){this.updateCount()},methods:{setOptions:function(){var t,e=this,a=this.baseOptions,n=null===(t=this.configs.asinList)||void 0===t?void 0:t.filter((function(t){return t.marketplaceId!==e.MARKETPLACE_ID_IN}));null!==n&&void 0!==n&&n.length||(a=this.baseOptions.filter((function(t){return"searchTerm"!==t.value}))),this.options=a},updateCount:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(h["u"])();case 2:a=e.sent,1===a.status&&(t.userTrackerCount=a.content);case 4:case"end":return e.stop()}}),e)})))()},show:function(){this.visible=!0,this.updateCount()},hidden:function(){this.visible=!1,this.$emit("cancel")},setConfig:function(){var t;if(this.isHistoryConfig&&JSON.parse(window.localStorage.getItem("trackerConfigs"))){var e=JSON.parse(window.localStorage.getItem("trackerConfigs")),a=e.config,n=e.notificationStatus,i=e.frequent;this.selected=a,this.notificationStatus=n,this.frequent=i}else{var o=this.configs,r=o.config,s=o.notificationStatus,l=o.frequent,c=[];r&&Object.keys(r).forEach((function(t){1==r[t]&&c.push(t)})),this.selected=c,this.notificationStatus=s,this.frequent=l||this.FREQUENT_TYPE.HIGH,this.base_frequent=l}this.title=this.configs.hasAuthFeature?this.$t("global_title_confirmTrack"):this.$t("web_search_window_title",{number:(null===(t=this.configs)||void 0===t?void 0:t.number)||1})},handleOk:function(){var t,e=this,a={};null===(t=this.options)||void 0===t||t.forEach((function(t){var n;a[t.value]=null!==(n=e.configs)&&void 0!==n&&n.hasAuthFeature||e.selected.includes(t.value)?1:0}));var n=this.userTrackerCount,i=n.highFrequentLimit,r=n.highFrequentUsed,s=n.lowFrequentUsed,l=n.lowFrequentLimit,c={asinList:this.configs.asinList,config:a,notificationStatus:this.notificationStatus,frequent:this.frequent};if(this.frequent===f.LOW){if((this.configs.lowNumber||this.base_frequent===f.LOW?1:0)+(l-s)-this.configs.asinList.length<0)return this.hidden(),void this.payNotice()}else if((this.configs.highNumber||this.base_frequent===f.HIGH?1:0)+(i-r)-this.configs.asinList.length<0)return this.hidden(),void this.payNotice();if(this.$listeners["customHandleok"])this.$emit("customHandleok",c,(function(){if(e.isHistoryConfig){var t=e.selected,a=e.notificationStatus,n=e.frequent;window.localStorage.setItem("trackerConfigs",JSON.stringify({config:t,notificationStatus:a,frequent:n}))}}));else{var d,p=u["a"];null!==(d=this.configs)&&void 0!==d&&d.isRecover&&(p=h["v"],c=Object(o["a"])(Object(o["a"])({},c),this.configs.otherParams)),p(c).then((function(t){var a=t.status,n=t.content;if(1===a){if(e.$store.dispatch("app/updatePop",{title:n,icon:"EditIcon",variant:"success"}),e.isHistoryConfig){var i=e.selected,o=e.notificationStatus,r=e.frequent;window.localStorage.setItem("trackerConfigs",JSON.stringify({config:i,notificationStatus:o,frequent:r}))}e.$emit("callback"),e.hidden()}}))}},payNotice:function(){var t=this;this.$swal({iconHtml:'<img class="swal-custom-icon" src='.concat(a("a786"),"></img>"),text:this.$t("asintrack_list_box2"),showConfirmButton:!0,showCancelButton:!0,confirmButtonText:this.$t("web_search_increaseLimit"),confirmButtonColor:"#5759F2",cancelButtonText:this.$t("_COMMON_BUTTON_CANCEL"),cancelButtonColor:"#fff",customClass:"".concat(this.$options.name,"_warning-swal"),preConfirm:function(e){t.$router.push({name:"package_center"})}})},onCheckAll:function(t){this.selected=t?this.options.map((function(t){return t.value})):[]},inverseAll:function(){var t=this;"OFF"!=this.notificationStatus&&(this.selected=this.options.filter((function(e){return!t.selected.includes(e.value)})).map((function(t){return t.value})))}}},g=m,_=(a("5e6e"),a("2877")),v=Object(_["a"])(g,n,i,!1,null,null,null);e["a"]=v.exports},"3a56":function(t,e,a){"use strict";var n=a("7fae"),i=a("6d8b"),o=a("6cb7"),r=a("50e5"),s=a("e0d3"),l=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),c=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a._autoThrottle=!0,a._noTarget=!0,a._rangePropMode=["percent","percent"],a}return Object(n["a"])(e,t),e.prototype.init=function(t,e,a){var n=u(t);this.settledOption=n,this.mergeDefaultAndTheme(t,a),this._doInit(n)},e.prototype.mergeOption=function(t){var e=u(t);Object(i["I"])(this.option,t,!0),Object(i["I"])(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;Object(i["k"])([["start","startValue"],["end","endValue"]],(function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=a[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(i["f"])(),a=this._fillSpecifiedTargetAxis(e);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(i["k"])(r["a"],(function(a){var n=this.getReferringComponents(Object(r["d"])(a),s["a"]);if(n.specified){e=!0;var o=new l;Object(i["k"])(n.models,(function(t){o.add(t.componentIndex)})),t.set(a,o)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var a=this.ecModel,n=!0;if(n){var o="vertical"===e?"y":"x",c=a.findComponents({mainType:o+"Axis"});u(c,o)}if(n){c=a.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});u(c,"single")}function u(e,a){var o=e[0];if(o){var r=new l;if(r.add(o.componentIndex),t.set(a,r),n=!1,"x"===a||"y"===a){var c=o.getReferringComponents("grid",s["b"]).models[0];c&&Object(i["k"])(e,(function(t){o.componentIndex!==t.componentIndex&&c===t.getReferringComponents("grid",s["b"]).models[0]&&r.add(t.componentIndex)}))}}}n&&Object(i["k"])(r["a"],(function(e){if(n){var i=a.findComponents({mainType:Object(r["d"])(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var o=new l;o.add(i[0].componentIndex),t.set(e,o),n=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,a=this.get("rangeMode");Object(i["k"])([["start","startValue"],["end","endValue"]],(function(n,i){var o=null!=t[n[0]],r=null!=t[n[1]];o&&!r?e[i]="percent":!o&&r?e[i]="value":a?e[i]=a[i]:o&&(e[i]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,a){null==t&&(t=this.ecModel.getComponent(Object(r["d"])(e),a))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(a,n){Object(i["k"])(a.indexList,(function(a){t.call(e,n,a)}))}))},e.prototype.getAxisProxy=function(t,e){var a=this.getAxisModel(t,e);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[e])return this.ecModel.getComponent(Object(r["d"])(t),e)},e.prototype.setRawRange=function(t){var e=this.option,a=this.settledOption;Object(i["k"])([["start","startValue"],["end","endValue"]],(function(n){null==t[n[0]]&&null==t[n[1]]||(e[n[0]]=a[n[0]]=t[n[0]],e[n[1]]=a[n[1]]=t[n[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(i["k"])(["start","startValue","end","endValue"],(function(a){e[a]=t[a]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var a=this.findRepresentativeAxisProxy();return a?a.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,a=this._targetAxisInfoMap.keys(),n=0;n<a.length;n++)for(var i=a[n],o=this._targetAxisInfoMap.get(i),r=0;r<o.indexList.length;r++){var s=this.getAxisProxy(i,o.indexList[r]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(o["a"]);function u(t){var e={};return Object(i["k"])(["start","end","startValue","endValue","throttle"],(function(a){t.hasOwnProperty(a)&&(e[a]=t[a])})),e}e["a"]=c},"3ae1":function(t,e,a){},"3b42":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"competitive-analysis_group-select v-s--option-hidden"},[a("v-select",{key:t.$i18n.locale,staticClass:"semy-inputgroup__box",staticStyle:{"min-width":"160px"},attrs:{show:!0,id:"competitive-analysis-group-select-"+t._uid,multiple:"",clearable:!1,label:"name",options:t.groupList,placeholder:t.$t("_VPANALYSIS_SELECT"),reduce:function(t){return t.id},"dropdown-should-open":t.dropdownShouldOpen},on:{click:function(e){t.curSelectGroupsTmp=t.curSelectGroups}},scopedSlots:t._u([{key:"selected-option-container",fn:function(e){var n=e.option,i=e.deselect;return[a("span",{staticClass:"vs__selected",class:{showFirstSelect:t.curSelectGroups.length>2},staticStyle:{"margin-top":"3px"}},[a("span",{staticClass:"text-ellipsis",staticStyle:{"max-width":"90px",display:"inline-block"}},[t._v(" "+t._s(2==n.type?t.$t("asin_track_group_default"):1==n.type?t.$t("_KEYWORD_RANK_MY_PRODUCT"):n.name)+" ")]),a("button",{staticClass:"vs__deselect",attrs:{type:"button"},on:{click:function(t){return t.stopPropagation(),i(n)}}},[a("feather-icon",{attrs:{size:"14",icon:"XIcon"}})],1)]),t.curSelectGroups.length>2?a("span",{staticClass:"vs__deselect selectOptionsAddTip"},[t._v(" +"+t._s(t.curSelectGroups.length-1)+" ")]):t._e()]}}]),model:{value:t.curSelectGroups,callback:function(e){t.curSelectGroups=e},expression:"curSelectGroups"}}),a("b-popover",{attrs:{"custom-class":"competitive-analysis_group-select-popover",show:t.showPop,triggers:"focus",placement:"bottom",target:"competitive-analysis-group-select-"+t._uid},on:{"update:show":function(e){t.showPop=e}}},[a("div",{staticClass:"competitive-analysis_group-select-popover__body"},t._l(t.groupList,(function(e,n){return a("div",{key:e.id,ref:"popoverlist",refInFor:!0,staticClass:"d-flex align-items-center multiple-options"},[a("div",{staticClass:"flex-between align-items--center"},[a("div",{staticClass:"d-flex align-items--center flex-one"},[a("b-form-checkbox",{staticClass:"multiple-options-checkbox d-flex",class:{"flex-one":t.curEditRow.id!=e.id},attrs:{value:e.id},model:{value:t.curSelectGroupsTmp,callback:function(e){t.curSelectGroupsTmp=e},expression:"curSelectGroupsTmp"}},[a("div",{staticClass:"d-flex",style:{color:t.curSelectGroupsTmp.indexOf(e.id)>-1?"#5759F2!important":""}},[t.curEditRow.id!=e.id?a("div",{staticClass:"text-ellipsis"},[t._v(" "+t._s(2==e.type?t.$t("asin_track_group_default"):1==e.type?t.$t("_KEYWORD_RANK_MY_PRODUCT"):e.name)+" ")]):t._e(),2!=e.type?a("span",{staticClass:"number-item m-l-4",style:{color:t.curSelectGroupsTmp.indexOf(e.id)>-1?"#5759F2":""}},[t._v("("+t._s(e.quantity)+")")]):t._e()])]),t.curEditRow.id==e.id?a("b-form-input",{ref:"input_"+e.id,refInFor:!0,staticStyle:{width:"200px"},attrs:{size:"sm"},model:{value:t.curEditRow.name,callback:function(e){t.$set(t.curEditRow,"name",e)},expression:"curEditRow.name"}}):t._e()],1)])])})),0),a("div",{staticClass:"competitive-analysis_group-select-popover__footer"},[a("span",{staticClass:"g-link-btn",on:{click:function(e){t.showPop=!1,t.$emit("showManage")}}},[t._v(t._s(t.$t("asin_track_group_management")))]),a("div",{staticClass:"d-flex flex-one justify-content--f-e"},[a("b-button",{staticClass:"m-r-12",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.showPop=!1}}},[t._v(t._s(t.$t("_COMMON_BUTTON_CANCEL")))]),a("b-button",{attrs:{variant:"primary",size:"sm"},on:{click:t.onConfirm}},[t._v(t._s(t.$t("global_confirm")))])],1)])])],1)},i=[],o=a("5530"),r=a("1da1"),s=a("2909"),l=(a("96cf"),a("4de4"),a("d3b7"),a("caad"),a("2532"),a("4e82"),a("25f0"),a("c740"),a("a434"),a("1f98")),c=a("a8e0"),u={model:{prop:"selectGroups",event:"setSelectGroups"},components:{GroupSetting:c["a"]},props:{marketplaceId:{},selectGroups:{},filterType:{}},data:function(){return{showNum:2,showPop:!1,curSelectGroupsTmp:[],baseGroupList:[],groupList:[],curEditRow:{name:null,id:null}}},computed:{noGroup:function(){return[{name:this.$t("asin_track_group_default"),id:-1,isNotGroup:!0}]},curSelectGroups:{get:function(){return this.selectGroups},set:function(t){this.$emit("setSelectGroups",t)}}},watch:{selectGroups:{immediate:!0,handler:function(t){this.curSelectGroupsTmp=Object(s["a"])(t)}},showPop:function(t){this.getList()}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,n,i,o,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={},t.marketplaceId&&(a.marketplaceId=t.marketplaceId),e.next=4,Object(l["s"])(a);case 4:n=e.sent,1==n.status&&(r=n.content,null!==(i=t.filterType)&&void 0!==i&&i.length&&(r=null===(s=r)||void 0===s?void 0:s.filter((function(e){return!t.filterType.includes(e.type)}))),r=null===(o=r)||void 0===o?void 0:o.sort((function(t,e){return 2===t.type?-1:2===e.type?1:1===t.type?-1:1===e.type?1:0})),t.groupList=r);case 6:case"end":return e.stop()}}),e)})))()},dropdownShouldOpen:function(){return this.showPop},onConfirm:function(){this.showPop=!1,this.$emit("setSelectGroups",this.curSelectGroupsTmp)},addItem:function(){var t=this,e=Math.random().toString(16).substring(2,6);this.groupList.push({name:"",id:e,isAdd:!0}),this.curEditRow={name:"",id:e,isAdd:!0},setTimeout((function(){var a,n;null===(a=t.$refs["input_"+e])||void 0===a||null===(n=a[0])||void 0===n||n.focus()}),0)},editItem:function(t){var e=this;this.curEditRow=t,setTimeout((function(){var a,n;null===(a=e.$refs["input_"+t.id])||void 0===a||null===(n=a[0])||void 0===n||n.focus()}),0)},handleDelete:function(t){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var i,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:null!==t&&void 0!==t&&t.isAdd?(o=null===(i=e.groupList)||void 0===i?void 0:i.findIndex((function(e){return e.id==t.id})),o>=0&&e.groupList.splice(o,1)):e.$swal({iconHtml:'<img class="swal-custom-icon" src='.concat(a("a786"),"></img>"),text:e.$t("at_confirm_group_deletion"),showConfirmButton:!0,showCancelButton:!0,confirmButtonText:e.$t("global_confirm"),confirmButtonColor:"#5759F2",cancelButtonText:e.$t("_COMMON_BUTTON_CANCEL"),cancelButtonColor:"#fff",customClass:"userTrackerCount-modal_warning-swal",preConfirm:function(){var a=Object(r["a"])(regeneratorRuntime.mark((function a(n){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(l["h"])({id:t.id});case 2:i=a.sent,1==i.status&&e.getList();case 4:case"end":return a.stop()}}),a)})));function n(t){return a.apply(this,arguments)}return n}()});case 1:case"end":return n.stop()}}),n)})))()},handleSave:function(t,e){var a=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var n,i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(null===(n=a.curEditRow)||void 0===n||!n.isAdd){e.next=9;break}return e.next=5,Object(l["d"])({name:t});case 5:i=e.sent,1==i.status&&(a.getList(),a.curEditRow={}),e.next=13;break;case 9:return e.next=11,Object(l["j"])(Object(o["a"])({},a.curEditRow));case 11:r=e.sent,1==r.status&&(a.getList(),a.curEditRow={});case 13:case"end":return e.stop()}}),e)})))()}}},d=u,h=(a("3b64"),a("2877")),p=Object(h["a"])(d,n,i,!1,null,null,null);e["a"]=p.exports},"3b4b":function(t,e,a){},"3b64":function(t,e,a){"use strict";a("cf5a")},"3f23":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var n=a("b1d4"),i=a("b682"),o=a("6d8b");function r(t,e,a){e=Object(o["t"])(e)&&{coordDimensions:e}||Object(o["m"])({encodeDefine:t.getEncode()},e);var r=t.getSource(),s=Object(n["a"])(r,e).dimensions,l=new i["a"](s,t);return l.initData(r,a),l}},"41f2":function(t,e,a){"use strict";a("96df")},"42d6":function(t,e,a){t.exports=a.p+"img/product-analysis-bg_ja_jp.534af90e.png"},"42dd":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"d",(function(){return r})),a.d(e,"a",(function(){return s}));a("e9c4");var n=a("7f80"),i=function(t){return Object(n["e"])("/profitInfo/list/parentAsin/page",t)},o=function(t){return Object(n["e"])("/posted/profitInfo/list/parentAsin/page",t)},r=function(t){return Object(n["e"])("/profitInfo/list/parentAsin",t)},s=function(t){if(t.dasCurrentShop){var e=JSON.parse(JSON.stringify(t)),a=e.dasCurrentShop;return delete e.dasCurrentShop,Object(n["f"])("/tracker/keyword-rank/new/add-track?dasCurrentShop=".concat(a),e)}return Object(n["f"])("/tracker/keyword-rank/new/add-track",t)}},"43df":function(t,e,a){},"453e":function(t,e,a){},4544:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"v-shop-selector",class:{"v-shop-selector--betterlook":t.betterlook}},[a("v-select",{style:{width:t.width},attrs:{placeholder:t.placeholder||"",disabled:t.disabled,clearable:t.clearable,options:t.shopList,label:"id",reduce:function(t){return t.id},"input-id":"calendar"},scopedSlots:t._u([{key:"option",fn:function(e){var n=e.name,i=e.countryCode;return[a("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top.noninteractive",value:n,expression:"name",modifiers:{hover:!0,top:!0,noninteractive:!0}}],staticClass:"d-flex align-items-center justify-content-start v-shop-selector-option"},[a("i",{staticClass:"icp-flag",class:"icp-flag-"+(i&&i.toLowerCase())}),a("span",{staticClass:"v-shop-selector-option__title"},[t._v(t._s(n))])])]}},{key:"selected-option",fn:function(e){var n=e.name,i=e.countryCode;return[a("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top.noninteractive",value:n,expression:"name",modifiers:{hover:!0,top:!0,noninteractive:!0}}],staticClass:"d-flex align-items-center justify-content-start v-shop-selector-option"},[a("i",{staticClass:"icp-flag",class:"icp-flag-"+(i&&i.toLowerCase())}),a("span",{staticClass:"v-shop-selector-option__title"},[t._v(t._s(n))])])]}}]),model:{value:t.currentShop,callback:function(e){t.currentShop=e},expression:"currentShop"}})],1)},i=[],o=a("5530"),r=(a("d3b7"),a("159b"),a("b0c0"),a("4de4"),a("caad"),a("2532"),a("4a7a")),s=a.n(r),l=a("bbf0"),c=a("2f62"),u={name:"vShopSelect",data:function(){return{currentShop:""}},props:{marketplaceId:{type:null|String,default:function(){return null}},isPermissionSellers:{},includeAllShop:{},betterlook:{},placeholder:{},isValidShop:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},currentShopTmp:{},width:{},clearable:{type:Boolean,default:!1}},model:{event:"currentShopTmp",prop:"currentShopTmp"},watch:{currentShopTmp:function(t){t&&(this.currentShop=t)},currentShop:function(t){(t||this.clearable)&&this.$emit("currentShopTmp",t)}},components:{vSelect:s.a},computed:Object(o["a"])(Object(o["a"])({},Object(c["c"])({SELLERS_LIST:l["D"],CURRENT_VALID_SHOP_IDS:l["j"]})),{},{shopList:function(){var t=this,e=[];return this.SELLERS_LIST&&this.SELLERS_LIST.forEach((function(a){a.shops&&a.shops.forEach((function(n){t.isPermissionSellers&&t.isPermissionSellers.indexOf(a.sellerId)<0||(t.includeAllShop||n.active)&&(n.sellerName=a.name||a.sellerId,e.push(n))}))})),this.isValidShop&&(e=e.filter((function(e){return t.CURRENT_VALID_SHOP_IDS.includes(e.id)}))),this.marketplaceId&&(e=e.filter((function(e){return e.marketplaceId==t.marketplaceId}))),this.$emit("getShoplist",e),e}}),methods:{},mounted:function(){this.currentShopTmp&&(this.currentShop=this.currentShopTmp)}},d=u,h=(a("a8d2"),a("2877")),p=Object(h["a"])(d,n,i,!1,null,"0a10b332",null);e["a"]=p.exports},"467d":function(t,e,a){"use strict";a("6a41")},4809:function(t,e,a){},"48cd":function(t,e,a){},"493d":function(t,e,a){"use strict";var n="rgba(0,0,0,0)",i="rgba(76, 130, 255, .03)",o="rgba(76, 130, 255, .07)";e["a"]=function(t){var e=[],a=t.length;while(a--){var r=new Date(t[a]).getDay();switch(r){case 0:e.push(o);break;case 6:e.push(i);break;default:e.push(n);break}}return e.reverse()}},"49bb":function(t,e,a){"use strict";a.d(e,"a",(function(){return U}));var n=a("f3bb"),i=a("3842"),o=a("f934"),r=a("6d8b"),s=2*Math.PI,l=Math.PI/180;function c(t,e){return o["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function u(t,e){var a=c(t,e),n=t.get("center"),o=t.get("radius");r["t"](o)||(o=[0,o]),r["t"](n)||(n=[n,n]);var s=Object(i["o"])(a.width,e.getWidth()),l=Object(i["o"])(a.height,e.getHeight()),u=Math.min(s,l),d=Object(i["o"])(n[0],s)+a.x,h=Object(i["o"])(n[1],l)+a.y,p=Object(i["o"])(o[0],u/2),f=Object(i["o"])(o[1],u/2);return{cx:d,cy:h,r0:p,r:f}}function d(t,e,a){e.eachSeriesByType(t,(function(t){var e=t.getData(),n=e.mapDimension("value"),o=c(t,a),r=u(t,a),d=r.cx,h=r.cy,p=r.r,f=r.r0,m=-t.get("startAngle")*l,g=t.get("minAngle")*l,_=0;e.each(n,(function(t){!isNaN(t)&&_++}));var v=e.getSum(n),y=Math.PI/(v||_)*2,b=t.get("clockwise"),S=t.get("roseType"),O=t.get("stillShowZeroSum"),T=e.getDataExtent(n);T[0]=0;var A=s,x=0,C=m,E=b?1:-1;if(e.setLayout({viewRect:o,r:p}),e.each(n,(function(t,a){var n;if(isNaN(t))e.setItemLayout(a,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:d,cy:h,r0:f,r:S?NaN:p});else{n="area"!==S?0===v&&O?y:t*y:s/_,n<g?(n=g,A-=g):x+=t;var o=C+E*n;e.setItemLayout(a,{angle:n,startAngle:C,endAngle:o,clockwise:b,cx:d,cy:h,r0:f,r:S?Object(i["k"])(t,T,[f,p]):p}),C=o}})),A<s&&_)if(A<=.001){var w=s/_;e.each(n,(function(t,a){if(!isNaN(t)){var n=e.getItemLayout(a);n.angle=w,n.startAngle=m+E*a*w,n.endAngle=m+E*(a+1)*w}}))}else y=A/x,C=m,e.each(n,(function(t,a){if(!isNaN(t)){var n=e.getItemLayout(a),i=n.angle===g?g:t*y;n.startAngle=C,n.endAngle=C+E*i,C+=E*i}}))}))}var h=a("d3f4"),p=a("7fae"),f=a("76a5"),m=a("deab"),g=a("d498"),_=a("4aa2"),v=a("7d6c"),y=a("e887"),b=a("dce8"),S=a("89b6"),O=a("2355"),T=Math.PI/180;function A(t,e,a,n,i,o,r,s,l,c){if(!(t.length<2)){for(var u=t.length,d=0;d<u;d++)if("outer"===t[d].position&&"labelLine"===t[d].labelAlignTo){var h=t[d].label.x-c;t[d].linePoints[1][0]+=h,t[d].label.x=c}Object(O["d"])(t,l,l+r)&&f(t)}function p(t){for(var o=t.rB,r=o*o,s=0;s<t.list.length;s++){var l=t.list[s],c=Math.abs(l.label.y-a),u=n+l.len,d=u*u,h=Math.sqrt((1-Math.abs(c*c/r))*d),p=e+(h+l.len2)*i,f=p-l.label.x,m=l.targetTextWidth-f*i;C(l,m,!0),l.label.x=p}}function f(t){for(var o={list:[],maxY:0},r={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],c=l.label.y>a?r:o,u=Math.abs(l.label.y-a);if(u>=c.maxY){var d=l.label.x-e-l.len2*i,h=n+l.len,f=Math.abs(d)<h?Math.sqrt(u*u/(1-d*d/h/h)):h;c.rB=f,c.maxY=u}c.list.push(l)}p(o),p(r)}}function x(t,e,a,n,i,o,r,s){for(var l=[],c=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h<t.length;h++){var p=t[h].label;E(t[h])||(p.x<e?(u=Math.min(u,p.x),l.push(t[h])):(d=Math.max(d,p.x),c.push(t[h])))}for(h=0;h<t.length;h++){var f=t[h];if(!E(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;p=f.label;var m=f.linePoints,g=void 0;g="edge"===f.labelAlignTo?p.x<e?m[2][0]-f.labelDistance-r-f.edgeDistance:r+i-f.edgeDistance-m[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?p.x<e?u-r-f.bleedMargin:r+i-d-f.bleedMargin:p.x<e?p.x-r-f.bleedMargin:r+i-p.x-f.bleedMargin,f.targetTextWidth=g,C(f,g)}}A(c,e,a,n,1,i,o,r,s,d),A(l,e,a,n,-1,i,o,r,s,u);for(h=0;h<t.length;h++){f=t[h];if(!E(f)&&f.linePoints){p=f.label,m=f.linePoints;var _="edge"===f.labelAlignTo,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,S=f.rect.width+b,O=m[1][0]-m[2][0];_?p.x<e?m[2][0]=r+f.edgeDistance+S+f.labelDistance:m[2][0]=r+i-f.edgeDistance-S-f.labelDistance:(p.x<e?m[2][0]=p.x+f.labelDistance:m[2][0]=p.x-f.labelDistance,m[1][0]=m[2][0]+O),m[1][1]=m[2][1]=p.y}}}function C(t,e,a){if(void 0===a&&(a=!1),null==t.labelStyleWidth){var n=t.label,i=n.style,o=t.rect,r=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,c=i.overflow,u=o.width+(r?0:l);if(e<u||a){var d=o.height;if(c&&c.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",r)}else{var p=e-l,f=e<u?p:a?p>t.unconstrainedWidth?null:p:null;n.setStyle("width",f)}var m=n.getBoundingRect();o.width=m.width;var g=(n.style.margin||0)+2.1;o.height=m.height+g,o.y-=(o.height-d)/2}}}function E(t){return"center"===t.position}function w(t){var e,a,n=t.getData(),o=[],s=!1,l=(t.get("minShowLabelAngle")||0)*T,c=n.getLayout("viewRect"),u=n.getLayout("r"),d=c.width,h=c.x,p=c.y,f=c.height;function m(t){t.ignore=!0}function g(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}n.each((function(t){var c=n.getItemGraphicEl(t),p=c.shape,f=c.getTextContent(),_=c.getTextGuideLine(),v=n.getItemModel(t),y=v.getModel("label"),S=y.get("position")||v.get(["emphasis","label","position"]),O=y.get("distanceToLabelLine"),T=y.get("alignTo"),A=Object(i["o"])(y.get("edgeDistance"),d),x=y.get("bleedMargin"),C=v.getModel("labelLine"),E=C.get("length");E=Object(i["o"])(E,d);var w=C.get("length2");if(w=Object(i["o"])(w,d),Math.abs(p.endAngle-p.startAngle)<l)return Object(r["k"])(f.states,m),void(f.ignore=!0);if(g(f)){var M,k,I,D,L=(p.startAngle+p.endAngle)/2,R=Math.cos(L),N=Math.sin(L);e=p.cx,a=p.cy;var P="inside"===S||"inner"===S;if("center"===S)M=p.cx,k=p.cy,D="center";else{var j=(P?(p.r+p.r0)/2*R:p.r*R)+e,$=(P?(p.r+p.r0)/2*N:p.r*N)+a;if(M=j+3*R,k=$+3*N,!P){var F=j+R*(E+u-p.r),B=$+N*(E+u-p.r),Y=F+(R<0?-1:1)*w,U=B;M="edge"===T?R<0?h+A:h+d-A:Y+(R<0?-O:O),k=U,I=[[j,$],[F,B],[Y,U]]}D=P?"center":"edge"===T?R>0?"right":"left":R>0?"left":"right"}var z=Math.PI,V=0,H=y.get("rotate");if(Object(r["z"])(H))V=H*(z/180);else if("center"===S)V=0;else if("radial"===H||!0===H){var G=R<0?-L+z:-L;V=G}else if("tangential"===H&&"outside"!==S&&"outer"!==S){var W=Math.atan2(R,N);W<0&&(W=2*z+W);var K=N>0;K&&(W=z+W),V=W-z}if(s=!!V,f.x=M,f.y=k,f.rotation=V,f.setStyle({verticalAlign:"middle"}),P){f.setStyle({align:D});var Z=f.states.select;Z&&(Z.x+=f.x,Z.y+=f.y)}else{var q=f.getBoundingRect().clone();q.applyTransform(f.getComputedTransform());var X=(f.style.margin||0)+2.1;q.y-=X/2,q.height+=X,o.push({label:f,labelLine:_,position:S,len:E,len2:w,minTurnAngle:C.get("minTurnAngle"),maxSurfaceAngle:C.get("maxSurfaceAngle"),surfaceNormal:new b["a"](R,N),linePoints:I,textAlign:D,labelDistance:O,labelAlignTo:T,edgeDistance:A,bleedMargin:x,rect:q,unconstrainedWidth:q.width,labelStyleWidth:f.style.width})}c.setTextConfig({inside:P})}})),!s&&t.get("avoidLabelOverlap")&&x(o,e,a,u,d,f,h,p);for(var _=0;_<o.length;_++){var v=o[_],y=v.label,O=v.labelLine,A=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),A&&(Object(r["k"])(y.states,m),y.ignore=!0);var C=y.states.select;C&&(C.x+=y.x,C.y+=y.y)}if(O){var E=v.linePoints;A||!E?(Object(r["k"])(O.states,m),O.ignore=!0):(Object(S["c"])(E,v.minTurnAngle),Object(S["b"])(E,v.surfaceNormal,v.maxSurfaceAngle),O.setShape({points:E}),y.__hostTarget.textGuideLineConfig={anchor:new b["a"](E[0][0],E[0][1])})}}}var M=a("7837"),k=a("d32f"),I=function(t){function e(e,a,n){var i=t.call(this)||this;i.z2=2;var o=new f["a"];return i.setTextContent(o),i.updateData(e,a,n,!0),i}return Object(p["a"])(e,t),e.prototype.updateData=function(t,e,a,n){var i=this,o=t.hostModel,s=t.getItemModel(e),l=s.getModel("emphasis"),c=t.getItemLayout(e),u=Object(r["m"])(Object(k["a"])(s.getModel("itemStyle"),c,!0),c);if(isNaN(u.startAngle))i.setShape(u);else{if(n){i.setShape(u);var d=o.getShallow("animationType");o.ecModel.ssr?(m["c"](i,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===d?(i.shape.r=c.r0,m["c"](i,{shape:{r:c.r}},o,e)):null!=a?(i.setShape({startAngle:a,endAngle:a}),m["c"](i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},o,e)):(i.shape.endAngle=c.startAngle,m["h"](i,{shape:{endAngle:c.endAngle}},o,e))}else Object(m["g"])(i),m["h"](i,{shape:u},o,e);i.useStyle(t.getItemVisual(e,"style")),Object(v["I"])(i,s);var h=(c.startAngle+c.endAngle)/2,p=o.get("selectedOffset"),f=Math.cos(h)*p,g=Math.sin(h)*p,_=s.getShallow("cursor");_&&i.attr("cursor",_),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=Object(r["m"])({r:c.r+(l.get("scale")&&l.get("scaleSize")||0)},Object(k["a"])(l.getModel("itemStyle"),c)),Object(r["m"])(i.ensureState("select"),{x:f,y:g,shape:Object(k["a"])(s.getModel(["select","itemStyle"]),c)}),Object(r["m"])(i.ensureState("blur"),{shape:Object(k["a"])(s.getModel(["blur","itemStyle"]),c)});var y=i.getTextGuideLine(),b=i.getTextContent();y&&Object(r["m"])(y.ensureState("select"),{x:f,y:g}),Object(r["m"])(b.ensureState("select"),{x:f,y:g}),Object(v["J"])(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))}},e.prototype._updateLabel=function(t,e,a){var n=this,i=e.getItemModel(a),o=i.getModel("labelLine"),s=e.getItemVisual(a,"style"),l=s&&s.fill,c=s&&s.opacity;Object(M["g"])(n,Object(M["e"])(i),{labelFetcher:e.hostModel,labelDataIndex:a,inheritColor:l,defaultOpacity:c,defaultText:t.getFormattedLabel(a,"normal")||e.getName(a)});var u=n.getTextContent();n.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var d=t.get(["label","position"]);if("outside"!==d&&"outer"!==d)n.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new g["a"],this.setTextGuideLine(h)),Object(S["d"])(this,Object(S["a"])(i),{stroke:l,opacity:Object(r["Q"])(o.get(["lineStyle","opacity"]),c,1)})}},e}(_["a"]),D=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return Object(p["a"])(e,t),e.prototype.render=function(t,e,a,n){var i,o=t.getData(),r=this._data,s=this.group;if(!r&&o.count()>0){for(var l=o.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c<o.count();++c)l=o.getItemLayout(c);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var d=new _["a"]({shape:u(t,a)});d.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,s.add(d)}o.diff(r).add((function(t){var e=new I(o,t,i);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var a=r.getItemGraphicEl(e);a.updateData(o,t,i),a.off("click"),s.add(a),o.setItemGraphicEl(t,a)})).remove((function(e){var a=r.getItemGraphicEl(e);m["f"](a,t,e)})).execute(),w(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var a=e.getData(),n=a.getItemLayout(0);if(n){var i=t[0]-n.cx,o=t[1]-n.cy,r=Math.sqrt(i*i+o*o);return r<=n.r&&r>=n.r0}},e.type="pie",e}(y["a"]),L=D,R=a("3f23"),N=a("e0d3"),P=a("0f99"),j=a("c4a3"),$=a("4f85"),F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(p["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new j["a"](r["c"](this.getData,this),r["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Object(R["a"])(this,{coordDimensions:["value"],encodeDefaulter:r["h"](P["d"],this)})},e.prototype.getDataParams=function(e){var a=this.getData(),n=t.prototype.getDataParams.call(this,e),o=[];return a.each(a.mapDimension("value"),(function(t){o.push(t)})),n.percent=Object(i["e"])(o,e,a.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},e.prototype._defaultLabelLine=function(t){N["f"](t,"labelLine",["show"]);var e=t.labelLine,a=t.emphasis.labelLine;e.show=e.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}($["b"]),B=F;function Y(t){return{seriesType:t,reset:function(t,e){var a=t.getData();a.filterSelf((function(t){var e=a.mapDimension("value"),n=a.get(e,t);return!(Object(r["z"])(n)&&!isNaN(n)&&n<0)}))}}}function U(t){t.registerChartView(L),t.registerSeriesModel(B),Object(n["a"])("pie",t.registerAction),t.registerLayout(Object(r["h"])(d,"pie")),t.registerProcessor(Object(h["a"])("pie")),t.registerProcessor(Y("pie"))}},"49bd":function(t,e,a){"use strict";a.d(e,"d",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"e",(function(){return r})),a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return l}));a("db49");var n=a("7f80"),i=function(t){return Object(n["e"])("/asin-tracker/detail",t)},o=function(t){return Object(n["e"])("/asin-tracker/history/records",t)},r=function(t){return Object(n["e"])("/asin-tracker/chart",t)},s=function(t){return Object(n["f"])("/asin-tracker/notification/set",t)},l=function(t){return Object(n["e"])("/asin-tracker/history/detail",t)}},"49be":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("app-echart-bar",{key:t.echartKey,staticClass:"echartBarWidth",attrs:{"option-data":t.option}})],1)},i=[],o=a("2909"),r=a("5530"),s=(a("a9e3"),a("b680"),a("99af"),a("b0c0"),a("b588")),l=a("d80f"),c=a("bbf0"),u=a("33d8"),d=a("2f62"),h={name:"barChart",props:{addPromotion:{},CURRENCY_CODE:{},profitTotal:{type:Object,default:function(){return{}}},calType:{type:Number,default:0},isCheckMulti:{type:Boolean,default:!1},baseModel:{type:null|Object,default:null},isAsin:{type:Boolean,default:!1}},computed:Object(r["a"])(Object(r["a"])({},Object(d["c"])({GET_SAME_SELLER_INFO:c["s"]})),{},{multiCost:function(){return parseFloat((this.profitTotal.outsideFbafee+this.profitTotal.outsideLogistics+this.profitTotal.outsidePurchase).toFixed(2))},multiple:function(){return!(!this.baseModel||!this.baseModel.shopId)}}),components:{AppEchartBar:s["a"]},data:function(){return{echartKey:"echartKey",REGION_EU:l["H"]}},methods:{calCost:function(t){return parseFloat((t.costLogistics+t.costPurchase+t.costCpc+t.costFbafee+t.costCommission+this.calOtherFee(t)+t.promotion).toFixed(2))},calOtherFee:function(t){return parseFloat((this.profitTotal.costOther+(this.profitTotal.pointsGranted||0)+(this.profitTotal.financeCost||0)-(this.profitTotal.financePrincipal||0)-this.profitTotal.shippingcharge).toFixed(2))},initChart:function(){var t=this,e=[{type:"bar",data:[].concat(Object(o["a"])("sales_analysis-gross_profit_detail"===this.$route.name||"sales_analysis-product_analysis_detail"===this.$route.name?[{name:t.$t("costCenter_costType_coupon"),value:t.profitTotal.costCouponFee?t.profitTotal.costCouponFee:0,itemStyle:{color:t.profitTotal.principal<t.costCouponFee?"#ff717a":"#4c82ff",barBorderRadius:(t.profitTotal.costCouponFee?t.profitTotal.costCouponFee:0)>0?[0,7.5,7.5,0]:[7.5,0,0,7.5]}},{name:t.$t("global_amz_MonthlyFee"),value:t.profitTotal.costSubscriptionFee?t.profitTotal.costSubscriptionFee:0,itemStyle:{color:t.profitTotal.principal<t.costSubscriptionFee?"#ff717a":"#4c82ff",barBorderRadius:(t.profitTotal.costSubscriptionFee?t.profitTotal.costSubscriptionFee:0)>0?[0,7.5,7.5,0]:[7.5,0,0,7.5]}},{name:t.$t("global_amz_otherApartFee"),value:t.profitTotal.costOtherFee?t.profitTotal.costOtherFee:0,itemStyle:{color:t.profitTotal.principal<t.costOtherFee?"#ff717a":"#4c82ff",barBorderRadius:(t.profitTotal.costOtherFee?t.profitTotal.costOtherFee:0)>0?[0,7.5,7.5,0]:[7.5,0,0,7.5]}}]:[]),Object(o["a"])(t.isCheckMulti?[{name:t.$t("_SALES_ANALYSIS_MULTI"),value:t.multiCost,itemStyle:{color:t.profitTotal.principal<t.multiCost?"#ff717a":"#4c82ff",barBorderRadius:t.multiCost>0?[0,7.5,7.5,0]:[7.5,0,0,7.5]}}]:[]),Object(o["a"])(t.isAsin?[{name:t.$t("_SALES_ANALYSIS_FBA_STORAGE_FEE"),value:t.profitTotal.fbaInventoryInboundFee?t.profitTotal.fbaInventoryInboundFee:0,itemStyle:{color:t.profitTotal.principal<t.fbaInventoryInboundFee?"#ff717a":"#4c82ff",barBorderRadius:(t.profitTotal.fbaInventoryInboundFee?t.profitTotal.fbaInventoryInboundFee:0)>0?[0,7.5,7.5,0]:[7.5,0,0,7.5]}}]:[]),[{name:t.$t("_CUSTOMIZED_COST_CUSTOMIZED_COST_TITLE"),value:t.profitTotal.costDefined},{name:t.$t("_SALES_ANALYSIS_TAX_FEE"),value:t.profitTotal.tax,itemStyle:{color:t.profitTotal.principal<t.profitTotal.tax?"#ff717a":"#4c82ff",barBorderRadius:t.profitTotal.tax>0?[0,7.5,7.5,0]:[7.5,0,0,7.5]}}],Object(o["a"])(t.calType?[]:[{name:t.$t("_SALES_ANALYSIS_AD_COST"),value:t.profitTotal.costCpc,itemStyle:{color:t.profitTotal.principal<t.profitTotal.costCpc?"#ff717a":"#4c82ff",barBorderRadius:t.profitTotal.costCpc>0?[0,7.5,7.5,0]:[7.5,0,0,7.5]}}]),[{name:t.$t("_SALES_ANALYSIS_FBAFEE"),value:t.profitTotal.costFbafee,itemStyle:{color:t.profitTotal.principal<t.profitTotal.costFbafee?"#ff717a":"#4c82ff",barBorderRadius:t.profitTotal.costFbafee>0?[0,7.5,7.5,0]:[7.5,0,0,7.5]}}],Object(o["a"])("0"==t.addPromotion?[{name:t.$t("_SALES_ANALYSIS_PROMOTION"),value:t.profitTotal.promotion,itemStyle:{color:t.profitTotal.principal<t.profitTotal.promotion?"#ff717a":"#4c82ff",barBorderRadius:t.profitTotal.promotion>0?[0,7.5,7.5,0]:[7.5,0,0,7.5]}}]:[]),[{name:t.$t("_SALES_ANALYSIS_REFERRAL_FEE"),value:t.profitTotal.costCommission,itemStyle:{color:t.profitTotal.principal<t.profitTotal.costCommission?"#ff717a":"#4c82ff",barBorderRadius:t.profitTotal.costCommission>0?[0,7.5,7.5,0]:[7.5,0,0,7.5]}},{name:t.$t("_SALES_ANALYSIS_SHIPPING"),value:t.profitTotal.costLogistics,itemStyle:{color:t.profitTotal.principal<t.profitTotal.costLogistics?"#ff717a":"#4c82ff",barBorderRadius:t.profitTotal.costLogistics>0?[0,7.5,7.5,0]:[7.5,0,0,7.5]}},{name:t.$t("_SALES_ANALYSIS_PURCHASE_COST"),value:t.profitTotal.costPurchase,itemStyle:{color:t.profitTotal.principal<t.profitTotal.costPurchase?"#ff717a":"#4c82ff",barBorderRadius:t.profitTotal.costPurchase>0?[0,7.5,7.5,0]:[7.5,0,0,7.5]}},{name:t.$t("_COMMON_TH_TOTAL_COST"),value:t.isCheckMulti?(t.multiCost+t.profitTotal.cost).toFixed(2):t.profitTotal.cost,itemStyle:{color:t.profitTotal.principal<t.profitTotal.cost?"#ff717a":"#4c82ff",barBorderRadius:(t.isCheckMulti?(t.multiCost+t.profitTotal.cost).toFixed(2):t.profitTotal.cost)>0?[0,7.5,7.5,0]:[7.5,0,0,7.5]}},{name:t.$t("_SALES_ANALYSIS_NET_SALES"),value:t.profitTotal.principal,itemStyle:{barBorderRadius:t.profitTotal.principal>0?[0,7.5,7.5,0]:[7.5,0,0,7.5]}}]),label:{normal:{show:!0,position:"right",formatter:function(e,a,n){var i="";return t.CURRENCY_CODE?c["s"].regionType:t.$store.getters[c["d"]].regionType,t.REGION_EU,i=Object(u["b"])(t.CURRENCY_CODE||t.$route.query.CURRENCY_CODE||t.$store.getters[c["f"]].amazonSiteInfo.currencyCode,e.value)+"("+(100*(0===t.profitTotal.principal?0:e.value/t.profitTotal.principal)).toFixed(2)+"%)",i}}},barWidth:"15px"}],a={legend:{show:!1},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){var a=e[0],n="",i=a.name;return n=i+":<br/>"+(t.CURRENCY_CODE?c["s"].regionType:t.$store.getters[c["d"]].regionType)===t.REGION_EU?Object(u["b"])(t.CURRENCY_CODE||t.$route.query.CURRENCY_CODE||t.$store.getters[c["f"]].amazonSiteInfo.currencyCode,a.value):Object(u["b"])(t.CURRENCY_CODE||t.$route.query.CURRENCY_CODE||t.$store.getters[c["f"]].amazonSiteInfo.currencyCode,a.value)+"("+(100*(0===t.profitTotal.principal?0:a.value/t.profitTotal.principal)).toFixed(2)+"%)",'<div style="padding:12px;">'.concat(n,"</div>")}},xAxis:{type:"value",splitLine:{show:!1}},grid:{show:!0,top:0,left:10,bottom:"30px",width:"auto",containLabel:!0,barBorderRadius:8,borderWidth:1,borderColor:"#E2E1E5"},yAxis:{type:"category",splitLine:{show:!0},axisLabel:{color:"#6E6B7B",fontSize:"12"},data:[].concat(Object(o["a"])("sales_analysis-gross_profit_detail"===t.$route.name||"sales_analysis-product_analysis_detail"===t.$route.name?[t.$t("costCenter_costType_coupon"),t.$t("global_amz_MonthlyFee"),t.$t("global_amz_otherApartFee")]:[]),Object(o["a"])(t.isAsin?[t.$t("_SALES_ANALYSIS_FBA_STORAGE_FEE")]:[]),Object(o["a"])(t.isCheckMulti?[t.$t("_SALES_ANALYSIS_MULTI")]:[]),[t.$t("_CUSTOMIZED_COST_CUSTOMIZED_COST_TITLE"),t.$t("_SALES_ANALYSIS_TAX_FEE")],Object(o["a"])(t.calType?[]:[t.$t("_SALES_ANALYSIS_AD_COST")]),[t.$t("_SALES_ANALYSIS_FBAFEE")],Object(o["a"])("0"==t.addPromotion?[t.$t("_SALES_ANALYSIS_PROMOTION")]:[]),[t.$t("_SALES_ANALYSIS_REFERRAL_FEE"),t.$t("_SALES_ANALYSIS_SHIPPING"),t.$t("_SALES_ANALYSIS_PURCHASE_COST"),t.$t("_COMMON_TH_TOTAL_COST"),t.$t("_SALES_ANALYSIS_NET_SALES")])},series:e};this.option=a,this.echartKey=Math.random()}},watch:{profitTotal:{deep:!0,immediate:!0,handler:"initChart"},calType:"initChart","$i18n.locale":"initChart"}},p=h,f=(a("467d"),a("2877")),m=Object(f["a"])(p,n,i,!1,null,"6a9803fc",null);e["a"]=m.exports},"4a01":function(t,e,a){"use strict";var n=a("7fae"),i=a("6fd3"),o=a("607d"),r=a("a4fe"),s=a("6d8b"),l=function(t){function e(e){var a=t.call(this)||this;a._zr=e;var n=Object(s["c"])(a._mousedownHandler,a),i=Object(s["c"])(a._mousemoveHandler,a),o=Object(s["c"])(a._mouseupHandler,a),r=Object(s["c"])(a._mousewheelHandler,a),l=Object(s["c"])(a._pinchHandler,a);return a.enable=function(t,a){this.disable(),this._opt=Object(s["i"])(Object(s["d"])(a)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",n),e.on("mousemove",i),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",r),e.on("pinch",l))},a.disable=function(){e.off("mousedown",n),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",r),e.off("pinch",l)},a}return Object(n["a"])(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(o["d"](t)||t.target&&t.target.draggable)){var e=t.offsetX,a=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,a)&&(this._x=e,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&d("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!r["a"](this._zr,"globalPan")){var e=t.offsetX,a=t.offsetY,n=this._x,i=this._y,s=e-n,l=a-i;this._x=e,this._y=a,this._opt.preventDefaultMouseMove&&o["g"](t.event),u(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:n,oldY:i,newX:e,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){o["d"](t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=d("zoomOnMouseWheel",t,this._opt),a=d("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,i=Math.abs(n),o=t.offsetX,r=t.offsetY;if(0!==n&&(e||a)){if(e){var s=i>3?1.4:i>1?1.2:1.1,l=n>0?s:1/s;c(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:r,isAvailableBehavior:null})}if(a){var u=Math.abs(n),h=(n>0?1:-1)*(u>3?.4:u>1?.15:.05);c(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:o,originY:r,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!r["a"](this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;c(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(i["a"]);function c(t,e,a,n,i){t.pointerChecker&&t.pointerChecker(n,i.originX,i.originY)&&(o["g"](n.event),u(t,e,a,n,i))}function u(t,e,a,n,i){i.isAvailableBehavior=Object(s["c"])(d,null,a,n),t.trigger(e,i)}function d(t,e,a){var n=a[t];return!t||n&&(!Object(s["C"])(n)||e.event[n+"Key"])}e["a"]=l},"4d71":function(t,e,a){},"4fb3":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"financeRemovalWrap"},[a("common-search-form",{attrs:{formId:"financeRemovalTableSearch",options:t.formOptions},on:{event:t.formEventFn},model:{value:t.searchModel,callback:function(e){t.searchModel=e},expression:"searchModel"}}),a("common-table",{ref:"commonTableEle",attrs:{tableId:"financeRemovalTable",border:"",params:t.tableParams,options:t.tableOptions},on:{response:t.getTotalObj},scopedSlots:t._u([{key:"top-row",fn:function(e){return t._l(e.data.fields,(function(e,n){return a("td",{key:"totalKey"+e.key,staticClass:"topRowTdClass",class:{"table-b-table-default b-table-sticky-column":e.stickyColumn},style:{background:"#FFF9F4 !important",textAlign:"left"!==e.headerPosition?"right":"left"},attrs:{"aria-colindex":n+1,role:"cell"}},[a("div",{staticClass:"autoFixStyle",style:{textAlign:e.tdHeaderPosition||""}},[e.showSymbol?[t.$route.query.CURRENCY_CODE?[t._v(" "+t._s(t._f("amountAll")(t.totalObj[e.key],t.$route.query.CURRENCY_CODE))+" ")]:[t._v(" "+t._s(t._f("amount")(t.totalObj[e.key]))+" ")]]:e.numberThousand?[t._v(" "+t._s(t._f("amountAll")(t.totalObj[e.key],""))+" ")]:e.isPercentVal?[t._v(" "+t._s(t.totalObj[e.key]||0===t.totalObj[e.key]?parseFloat(100*t.totalObj[e.key]).toFixed(2)+"%":"-")+" ")]:[t._v(" "+t._s(t.$t(t.totalObj[e.key]))+" ")]],2)])}))}},{key:"cell(purchase)",fn:function(e){return[t._v(" "+t._s(t._f("amountAll")(e.data.value,t.$route.query.CURRENCY_CODE))+" ")]}},{key:"cell(logistics)",fn:function(e){return[t._v(" "+t._s(t._f("amountAll")(e.data.value,t.$route.query.CURRENCY_CODE))+" ")]}}])})],1)},i=[],o=(a("498a"),a("ac1f"),a("5319"),a("5222")),r=a("0823"),s=a("13e5"),l={REVERSAL_REIMBURSEMENT:"finance_adjustment_reimbursement_ServiceIssue",RemovalShipment:"global_FBAliquidation",WAREHOUSE_DAMAGE:"_SALES_ANALYSIS_OTHER_WAREHOUSEDAMAGE",FREE_REPLACEMENT_REFUND_ITEMS:"_SALES_ANALYSIS_OTHER_REVERSALREIMBURSEMENT",COMPENSATED_CLAWBACK:"finance_adjustment_reimbursement_general",WAREHOUSE_LOST_MANUAL:"_SALES_ANALYSIS_OTHER_WAREHOUSELOST"},c={name:"financeRemoval",data:function(){return{totalObj:{},searchModel:{searchKey:""}}},props:{storeType:{},sku:{},asin:{},parentAsin:{},rangeDate:{}},components:{commonTable:r["a"],commonSearchForm:o["a"]},watch:{storeType:{immediate:!0,handler:function(t){var e="";switch(t){case"sku":e=this.sku;break;case"asin":e=this.asin;break;case"parent":e=this.parentAsin;break}e&&e.trim()&&(this.searchModel.searchKey=e)}}},methods:{formEventFn:function(t){switch(t.id){case"searchKey":this.$refs.commonTableEle.getListDebounce();break}},getTotalObj:function(){var t=this;Object(s["C"])(this.tableParams).then((function(e){1===e.status&&(t.totalObj=e.content||{},t.totalObj["info"]="_TREND_TOTAL")}))}},computed:{IS_LANG_JP:function(){return"ja_jp"===this.$i18n.locale},formOptions:function(){return[{type:"searchInput",placeholder:this.$t("_COMMON_PLACEHOLDER_SEARCH_SKU_ASIN"),width:this.IS_LANG_JP?"290px":"180px",id:"searchKey"}]},tableParams:function(){var t,e,a={startDate:this.rangeDate[0],endDate:this.rangeDate[1]};null!==(t=this.searchModel.searchKey)&&void 0!==t&&t.trim()&&(a.searchKey=null===(e=this.searchModel.searchKey)||void 0===e?void 0:e.trim());var n=this.$route.query.shopId||this.$route.query.CURRENT_SHOP_ID;return n&&(a.dasCurrentShop=n),a},tableOptions:function(){var t=this,e={0:t.$t("global_FBAliquidation"),2:t.$t("global_FeeType_adjustment")},a=this.$route.query.shopId||this.$route.query.CURRENT_SHOP_ID;return{stickyHeader:"480px",requestApi:s["B"],normalScroll:!0,fields:[{key:"info",headerPosition:"left",tdHeaderPosition:"right",label:this.$t("_COMMON_TH_PRODUCT_INFO"),lokKey:"_COMMON_TH_PRODUCT_INFO",width:280,type:"productInfo",noGo:!0,stickyColumn:!0},{key:"fnsku",headerPosition:"left",formatter:function(t){return t||"-"},label:this.$t("global_fnsku")},{key:"type",headerPosition:"left",formatter:function(t){return e[t]||t},label:this.$t("_CUSTOMIZED_COST_TYPE")},{key:"feeType",headerPosition:"left",formatter:function(e){var a=t.$t(l[e])||e;return a.replace("-","-</br>")},html:!0,label:this.$t("_CUSTOMER_MANAGER_PLAN_SEND_MS")},{key:"quantity",label:this.$t("_GLOBAL_PARAMETER_QTY")},{key:"purchase",diy:!!a,showSymbol:!0,label:this.$t("_SALES_ANALYSIS_PURCHASE_COST")},{key:"logistics",diy:!!a,showSymbol:!0,label:this.$t("_SALES_ANALYSIS_SHIPPING")},{key:"postedDate",headerPosition:"left",label:this.$t("_COMMON_TH_DATE")}]}}}},u=c,d=(a("32bf"),a("2877")),h=Object(d["a"])(u,n,i,!1,null,null,null);e["a"]=h.exports},"50e5":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"e",(function(){return r})),a.d(e,"d",(function(){return s})),a.d(e,"c",(function(){return l})),a.d(e,"b",(function(){return c}));var n=a("6d8b"),i=["x","y","radius","angle","single"],o=["cartesian2d","polar","singleAxis"];function r(t){var e=t.get("coordinateSystem");return Object(n["r"])(o,e)>=0}function s(t){return t+"Axis"}function l(t,e){var a,i=Object(n["f"])(),o=[],r=Object(n["f"])();t.eachComponent({mainType:"dataZoom",query:e},(function(t){r.get(t.uid)||l(t)}));do{a=!1,t.eachComponent("dataZoom",s)}while(a);function s(t){!r.get(t.uid)&&c(t)&&(l(t),a=!0)}function l(t){r.set(t.uid,!0),o.push(t),u(t)}function c(t){var e=!1;return t.eachTargetAxis((function(t,a){var n=i.get(t);n&&n[a]&&(e=!0)})),e}function u(t){t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return o}function c(t){var e=t.ecModel,a={infoList:[],infoMap:Object(n["f"])()};return t.eachTargetAxis((function(t,n){var i=e.getComponent(s(t),n);if(i){var o=i.getCoordSysModel();if(o){var r=o.uid,l=a.infoMap.get(r);l||(l={model:o,axisModels:[]},a.infoList.push(l),a.infoMap.set(r,l)),l.axisModels.push(i)}}})),a}},5164:function(t,e,a){var n={"./product-analysis-bg_en.png":"60a4","./product-analysis-bg_ja_jp.png":"42d6","./product-analysis-bg_zh-CN.png":"305a"};function i(t){var e=o(t);return a(e)}function o(t){if(!a.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}i.keys=function(){return Object.keys(n)},i.resolve=o,t.exports=i,i.id="5164"},5261:function(t,e,a){"use strict";a("6f11")},5290:function(t,e,a){},"53b2":function(t,e,a){"use strict";a("9f40")},5423:function(t,e,a){},"545c":function(t,e,a){},"55ac":function(t,e,a){"use strict";a.d(e,"c",(function(){return i})),a.d(e,"b",(function(){return o})),a.d(e,"a",(function(){return r})),a.d(e,"d",(function(){return s}));var n=a("6d8b");function i(t,e,a){if(t&&n["r"](e,t.type)>=0){var i=a.getData().tree.root,o=t.targetNode;if(n["C"](o)&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var r=t.targetNodeId;if(null!=r&&(o=i.getNodeById(r)))return{node:o}}}function o(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function r(t,e){var a=o(t);return n["r"](a,e)>=0}function s(t,e){var a=[];while(t){var n=t.dataIndex;a.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return a.reverse(),a}},5657:function(t,e,a){"use strict";a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i})),a.d(e,"d",(function(){return o})),a.d(e,"f",(function(){return r})),a.d(e,"b",(function(){return s})),a.d(e,"e",(function(){return l}));a("e9c4");var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=localStorage.getItem("loginTime"+t),a=e?+e:0;return a},i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=n(t);localStorage.setItem("loginTime"+t,e+1)},o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,a=localStorage.getItem("readedInfo"+t)||"{}",n=JSON.parse(a),i=n[e];return i},r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,n=localStorage.getItem("readedInfo"+t)||"{}",i=JSON.parse(n);return i[e]=a,localStorage.setItem("readedInfo"+t,JSON.stringify(i)),!0},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=localStorage.getItem(t+e)||"[]",n=JSON.parse(a);return n},l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return localStorage.setItem(t+e,JSON.stringify(a)),!0}},"599c":function(t,e,a){"use strict";a("7261")},"5b81":function(t,e,a){"use strict";var n=a("23e7"),i=a("1d80"),o=a("44e7"),r=a("ad6d"),s=a("b622"),l=a("c430"),c=s("replace"),u=RegExp.prototype;n({target:"String",proto:!0},{replaceAll:function t(e,a){var n,s,d,h,p,f,m,g,_,v=i(this);if(null!=e){if(n=o(e),n&&(s=String(i("flags"in u?e.flags:r.call(e))),!~s.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(d=e[c],void 0!==d)return d.call(e,v,a);if(l&&n)return String(v).replace(e,a)}if(h=String(v),p=String(e),""===p)return t.call(h,/(?:)/g,a);if(f=h.split(p),"function"!==typeof a)return f.join(String(a));for(m=f[0],g=m.length,_=1;_<f.length;_++)m+=String(a(p,g,h)),g+=p.length+f[_].length,m+=f[_];return m}})},"5d53":function(t,e,a){"use strict";a("bd60")},"5e40":function(t,e,a){},"5e6a":function(t,e,a){},"5e6e":function(t,e,a){"use strict";a("b695")},"5efc":function(t,e,a){"use strict";a.d(e,"f",(function(){return o})),a.d(e,"a",(function(){return r})),a.d(e,"e",(function(){return s})),a.d(e,"b",(function(){return l})),a.d(e,"g",(function(){return c})),a.d(e,"c",(function(){return u})),a.d(e,"d",(function(){return d}));a("99af"),a("e9c4");var n=a("7f80"),i="https://das-server.tool4seller.com",o=function(t){return Object(n["e"])("".concat(i,"/userPackage/usages"),t)},r=function(){return Object(n["e"])("/ad-recommendation-subscription/limit")},s=function(){return Object(n["e"])("".concat(i,"/subscriptions"))},l=function(t,e){return Object(n["g"])("".concat(i,"/subscriptions/").concat(t,"/cancel"),e)},c=function(t){return Object(n["g"])("".concat(i,"/subscriptions/").concat(t,"/recover"))},u=function(t){return t.channel="stripeSubscribeNew",t.packageItems=JSON.stringify(t.packageItems),Object(n["e"])("".concat(i,"/order-confirmation/com/create-next-period-order"),t)},d=function(){return Object(n["e"])("".concat(i,"/subscriptions/default/card"))}},"60a4":function(t,e,a){t.exports=a.p+"img/product-analysis-bg_en.c8b3776f.png"},6216:function(t,e,a){},"63b4":function(t,e,a){},"64b1":function(t,e,a){},"65ba":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"productDetailWrap salesAnalysisWrap",class:{"common-natrue-slide-mb":t.showNatureSlide&&!t.natureFullscreen}},[a("b-card",{staticStyle:{"margin-bottom":"20px"},attrs:{"no-body":""}},[a("div",{staticClass:"productInfoHeader paddingRight productInfoHeader--tight",style:{paddingRight:1==t.baseModel.isSku?"150px":"370px"}},[a("img",{staticClass:"productInfoImg",attrs:{src:t.baseModel.imageUrl,alt:""}}),a("div",{staticClass:"productInfoContent"},[a("p",{staticClass:"titleContent"},[t._v(" "+t._s(t.baseModel.title)+" ")]),a("p",[1==t.baseModel.isSku?a("span",{staticClass:"infoBlcok"},[a("span",[t._v("SKU：")]),a("span",{ref:"sku"},[t._v(t._s(t.baseModel.sku))]),a("i",{staticClass:"copyBtn",attrs:{title:t.$t("_COMMON_CLICK_TO_COPY")}},[a("feather-icon",{attrs:{icon:"CopyIcon",size:"14"},on:{click:function(e){return e.stopPropagation(),t.copyToClipboard("sku")}}})],1)]):t._e(),1!=t.baseModel.isParent?a("span",{staticClass:"infoBlcok"},[a("span",[t._v("ASIN：")]),a("span",{ref:"asin"},[t._v(t._s(t.baseModel.asin))]),a("i",{staticClass:"copyBtn",attrs:{title:t.$t("_COMMON_CLICK_TO_COPY")}},[a("feather-icon",{attrs:{icon:"CopyIcon",size:"14"},on:{click:function(e){return e.stopPropagation(),t.copyToClipboard("asin")}}})],1)]):t._e(),1!=t.baseModel.isSku?a("span",{staticClass:"infoBlcok"},[a("span",[t._v("PASIN：")]),a("span",{ref:"parentAsin"},[t._v(t._s(t.baseModel.parentAsin))]),a("i",{staticClass:"copyBtn",attrs:{title:t.$t("_COMMON_CLICK_TO_COPY")}},[a("feather-icon",{attrs:{icon:"CopyIcon",size:"14"},on:{click:function(e){return e.stopPropagation(),t.copyToClipboard("parentAsin")}}})],1)]):t._e(),1==t.baseModel.isParent?a("span",{staticClass:"infoBlcok"},[a("span",[t._v(t._s(t.$t("_PRODUCT_ANALYSIS_RATING"))+"：")]),t.isTrackRating?[a("span",{staticClass:"ratingValue"},[t._v(t._s(t.rating))]),a("b-form-rating",{staticClass:"ratingStyle",attrs:{"no-border":"",precision:"1",readonly:"",stars:"5",inline:"",variant:"warning"},model:{value:t.rating,callback:function(e){t.rating=e},expression:"rating"}})]:[a("span",[t._v(t._s(t.$t("_PRODUCT_ANALYSIS_RATING_UN_TRACK")))]),a("span",{staticClass:"goAddBtn",on:{click:t.goReviewPage}},[t._v(t._s(t.$t("_PRODUCT_ANALYSIS_RATING_TRACK_BTN")))])]],2):t._e(),1==t.baseModel.isSku?a("span",{staticClass:"infoBlcok"},[a("span",[t._v(t._s(t.$t("_STOCK_INVENTORY_AMOUNT"))+"：")]),a("span",[t._v(t._s(t.inventoryList.length>0?t.inventoryList[0].stockQuantity:0))])]):t._e(),1==t.baseModel.isSku?a("span",{staticClass:"infoBlcok"},[a("span",[t._v(t._s(t.$t("_STOCK_DAYS_EST"))+"：")]),a("span",[t._v(t._s(t.inventoryList.length>0?t.inventoryList[0].expectDays:0))])]):t._e(),1==t.baseModel.isSku?a("span",{staticClass:"infoBlcok"},[a("span",[t._v(t._s(t.$t("_TEAM_KPI_LABEL_RELATE_TEAM"))+"：")]),t.baseModel.team?a("span",[t._v(t._s(t.baseModel.team.name))]):a("span",[t._v(" "+t._s(t.$t("_TEAM_KPI_NO_RELATE"))+" ")])]):t._e(),t.baseModel.asin||t.baseModel.parentAsin?a("span",{staticClass:"infoBlcok amazone-btn"},[t.baseModel.marketplaceId?a("span",{on:{click:function(e){t.jumpTo(t.amazonAsinPageTracker(t.baseModel.asin||t.baseModel.parentAsin,t.baseModel.marketplaceId))}}},[t._v(" "+t._s(t.$t("_COMMON_ACTION_AMAZON"))+" "),a("span",{staticClass:"m-l-4"},[a("feather-icon",{staticClass:"g-link-btn fs16",attrs:{icon:"ExternalLinkIcon"}})],1)]):a("span",{on:{click:function(e){t.jumpTo(t.amazonAsinPage(t.baseModel.asin||t.baseModel.parentAsin,t.baseModel.marketplaceId))}}},[t._v(" "+t._s(t.$t("_COMMON_ACTION_AMAZON"))+" "),a("span",{staticClass:"m-l-4"},[a("feather-icon",{staticClass:"g-link-btn fs16",attrs:{icon:"ExternalLinkIcon"}})],1)])]):t._e(),t.isShowNatureWord(t.baseModel)?a("span",{staticClass:"infoBlcok amazone-btn"},[a("span",{on:{click:function(e){return t.showNatureSlideFn(t.baseModel,!0)}}},[t._v(" "+t._s(t.$t("reversecmp_sheet_kwfilter_orgkwsrch"))+" "),a("span",[a("feather-icon",{staticStyle:{"margin-top":"-2px"},attrs:{icon:t.showNatureSlide?"ChevronDownIcon":"ChevronRightIcon",size:"16"}})],1)])]):t._e()]),a("div",{staticClass:"d-flex align-items-center justify-content-center",class:{onlyRefresh:1==t.baseModel.isSku,detailRightBtn:1!=t.baseModel.isSku}},[a("span",{staticClass:"d-flex align-items-center"},[a("feather-icon",{staticClass:"featherIcon",class:{disabledIcon:!t.canManualRefresh},attrs:{size:"24",icon:"RefreshCwIcon"},on:{click:t.manualRefreshFn}}),a("span",[t._v(t._s(t.$t("_SALES_ANALYSIS_REFRESH_ASIN")))])],1),1!=t.baseModel.isSku?a("memo",{key:t.detailKey+"memo",ref:"memoEle",staticClass:"centerMemo",attrs:{baseModel:t.baseModel,asin:t.asin},on:{memoUp:t.memoUpFn}}):t._e(),1!=t.baseModel.isSku?a("to-up",{key:t.detailKey+"toUp",attrs:{asin:t.asin,top:t.baseModel.top,isParent:t.baseModel.isParent,shopId:t.baseModel.shopId}}):t._e()],1)])])]),a("b-card",{staticClass:"contentWrap",attrs:{"no-body":""}},[t.baseModel?a("b-tabs",{model:{value:t.salesTabs,callback:function(e){t.salesTabs=e},expression:"salesTabs"}},[a("b-tab",{attrs:{title:t.$t("_PRODUCT_ANALYSIS_TAB_INDICATOR")}},[a("core-detail",{key:t.detailKey+"core-detail",ref:"coreDetailEle",attrs:{baseModel:t.baseModel,currentShop:t.currentShop},on:{"click-item":t.clickItemFn}})],1),a("b-tab",{attrs:{title:t.$t("_PRODUCT_ANALYSIS_TAB_COST_TREND")}},[a("cost-and-sales",{key:t.detailKey+"cost-sales-detail",attrs:{baseModel:t.baseModel}})],1),1!=t.baseModel.isSku?a("b-tab",{attrs:{title:t.$t("_COMMON_TH_KEYWORD_RANKING")}},[a("keywords-rank",{key:t.detailKey+"keywords-rank",attrs:{baseModel:t.baseModel,asin:t.asin}})],1):t._e(),a("b-tab",{attrs:{title:t.$t("_ROUTER_NAME_CATEGORY_RANK")}},[a("category-rank-new",{key:t.detailKey+"category-rank-new",attrs:{baseModel:t.baseModel},on:{"click-item":t.clickItemFn}})],1),t.allowCategory?a("b-tab",{attrs:{title:t.$t("ae_category_analysis")}},[a("category-analysis",{key:t.detailKey+"category-analysis",staticClass:"p-rl-12",attrs:{baseModel:t.baseModel},on:{"click-item":t.clickItemFn}})],1):t._e(),a("b-tab",{attrs:{title:t.$t("_PRODUCT_ANALYSIS_TAB_SALE")}},[a("detail-sales",{key:t.detailKey+"detail-sales",attrs:{baseModel:t.baseModel}})],1),a("b-tab",{attrs:{title:t.$t("_PRODUCT_ANALYSIS_TAB_COST")}},[a("feed-detail",{key:t.detailKey+"detail-feed",attrs:{baseModel:t.baseModel}})],1),a("b-tab",{attrs:{title:t.$t("_PRODUCT_ANALYSIS_TAB_REVIEW")}},[a("detail-review",{key:t.detailKey+"detail-review",attrs:{baseModel:t.baseModel}})],1),a("b-tab",{attrs:{title:t.$t("_ROUTER_NAME_REFUND_REPORT")}},[a("refund-overview",{key:t.detailKey+"refund-overview",ref:"refund",attrs:{baseModel:t.baseModel}})],1),a("b-tab",{attrs:{title:t.$t("_PRODUCT_ANALYSIS_TAB_INVENTORY")}},[a("inventory-list",{key:t.detailKey+"inventory-list",attrs:{multiple:!0,searchKey:t.searchKey,baseModel:t.baseModel}})],1),t.showOrderDistribution?a("b-tab",{attrs:{title:t.$t("orderdistrmap_title"),id:"orderdistrmapdash_authbtn_click"}},[a("business-detail-region",{key:t.detailKey+"region-map",attrs:{isParent:t.isParent,isSku:t.isSku,outerId:t.outerId,shopId:t.baseModel.shopId,baseModel:t.baseModel,currentCode:t.currentCode}})],1):t._e(),a("b-tab",{key:t.detailKey+"competitor_analysis",attrs:{title:t.$t("at_tab_competitor_analysis")}},[a("competitorTab",{attrs:{baseModel:t.baseModel}})],1)],1):t._e()],1),a("transition",{attrs:{name:"el-zoom-in-bottom"}},[t.showNatureSlide&&t.natureItem?a("nature-word-slide-pop",{attrs:{natureItem:t.natureItem,asinKey:"parentAsin",isParent:t.isParent,titleOptions:t.isSku?{label:"SKU",key:"sku"}:{}},on:{chosen:t.handleChosen,close:function(e){t.showNatureSlide=!1,t.natureItem=null},fullScreen:t.setNatureFullScreen}}):t._e()],1)],1)},i=[],o=a("ade3"),r=a("2909"),s=a("5530"),l=(a("d81d"),a("caad"),a("2532"),a("d3b7"),a("159b"),a("99af"),a("4de4"),a("7db0"),a("b0c0"),a("e9c4"),a("18a5"),a("21b3")),c=a.n(l),u=a("bbc6"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"memoWrap"},[a("div",{staticClass:"d-flex align-items-center"},[a("feather-icon",{staticClass:"featherIcon",attrs:{size:"24",icon:"Edit3Icon"},on:{click:function(e){t.showVis=!0}}}),a("span",[t._v(t._s(t.$t("_SALES_ANALYSIS_NOTE")))])],1),a("b-modal",{attrs:{"header-bg-variant":"white",title:t.$t("_TREND_NOTE"),"ok-title":t.$t("_DIALOG_BUTTON_YES"),"cancel-title":t.$t("_DIALOG_BUTTON_NO"),"ok-variant":"primary","cancel-variant":"outline-primary",centered:"","ok-disabled":t.memoModel.content.length>1500},on:{ok:t.asyncOkFn},model:{value:t.showVis,callback:function(e){t.showVis=e},expression:"showVis"}},[a("div",{staticClass:"noteModelWrap"},[a("b-row",[a("b-col",[a("date-simple",{model:{value:t.memoModel.date,callback:function(e){t.$set(t.memoModel,"date",e)},expression:"memoModel.date"}})],1)],1),a("b-row",{staticStyle:{"margin-top":"10px"}},[a("b-col",[a("b-form-textarea",{attrs:{placeholder:t.$t("_TREND_MARK_DOWN2"),state:t.memoModel.content.length<=1500,rows:"7"},model:{value:t.memoModel.content,callback:function(e){t.$set(t.memoModel,"content",e)},expression:"memoModel.content"}})],1)],1)],1)])],1)},h=[],p=a("a492"),f=a("c2cf"),m=a("6ddf"),g={name:"memo",data:function(){return{showVis:!1,memoModel:{content:"",date:Object(m["q"])().format("YYYY-MM-DD")}}},components:{DateSimple:p["a"]},watch:{"memoModel.date":{immediate:!0,handler:function(t){t&&this.getMemoFn()}},asin:"getMemoFn",showVis:"getMemoFn"},props:["baseModel","asin"],methods:{getMemoFn:function(){var t=this,e=this.asin,a=this.memoModel.date;this.asin&&Object(f["h"])({asin:e,dasCurrentShop:this.baseModel.shopId,date:a}).then((function(e){var a=e.status,n=e.content;1==a&&n?(t.memoModel.content=n.content,t.memoModel.id=n.id):(t.memoModel.content="",t.memoModel.id="")}))},insertMemo:function(){},updateMemo:function(){},asyncOkFn:function(){var t=this,e={asin:this.asin,date:this.memoModel.date,content:this.memoModel.content};this.memoModel.id?(e={id:this.memoModel.id,content:this.memoModel.content},Object(f["D"])(e,this.baseModel.shopId).then((function(e){var a=e.status,n=e.content;1==a&&(t.$store.dispatch("app/updatePop",{title:n,icon:"EditIcon",variant:"success"}),t.showVis=!1,t.memoModel.content="",t.memoModel.id="",t.$emit("memoUp"))}))):Object(f["b"])(e,this.baseModel.shopId).then((function(e){var a=e.status,n=e.content;1==a&&(t.$store.dispatch("app/updatePop",{title:n,icon:"EditIcon",variant:"success"}),t.memoModel.content="",t.memoModel.id="",t.$emit("memoUp"))}))}}},_=g,v=(a("68f3"),a("2877")),y=Object(v["a"])(_,d,h,!1,null,"1c40ff8b",null),b=y.exports,S=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"toUpWrap d-flex align-items-center"},[1==t.top?[a("feather-icon",{staticClass:"featherIcon ArrowUpCircleIcon",attrs:{size:"24",icon:"ArrowDownCircleIcon"},on:{click:t.handlerFn}}),a("span",[t._v(t._s(t.$t("_COMMON_ACTION_TURN_OFF_CARE")))])]:[a("feather-icon",{staticClass:"featherIcon ArrowUpCircleIcon",attrs:{size:"24",icon:"ArrowUpCircleIcon"},on:{click:t.handlerFn}}),a("span",[t._v(t._s(t.$t("_COMMON_ACTION_TURN_ON_CARE")))])]],2)},O=[],T=a("a9d2"),A={name:"toUp",props:["asin","top","isParent","shopId"],methods:{opFavorites:function(){var t=this,e={asin:this.asin,isParent:this.isParent,dasCurrentShop:this.shopId};Object(T["x"])(e).then((function(e){var a=e.status,n=e.content;if(1==a){t.$store.dispatch("app/updatePop",{title:n,icon:"EditIcon",variant:"success"});var i=JSON.parse(JSON.stringify(t.$route.query));i.top=1,t.$router.push({path:t.$route.path,query:i})}}))},unOpFavorites:function(){var t=this,e={asin:this.asin,isParent:this.isParent,dasCurrentShop:this.shopId};Object(T["y"])(e).then((function(e){var a=e.status,n=e.content;if(1==a){t.$store.dispatch("app/updatePop",{title:n,icon:"EditIcon",variant:"success"});var i=JSON.parse(JSON.stringify(t.$route.query));i.top=0,t.$router.push({path:t.$route.path,query:i})}}))},handlerFn:function(){1==this.top?this.unOpFavorites():this.opFavorites()}}},x=A,C=(a("23c8"),Object(v["a"])(x,S,O,!1,null,null,null)),E=C.exports,w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"productAnalysisParentWrap productAnalysisCoreWrapNew",attrs:{id:t.$options.name}},[a("div",{staticClass:"d-flex align-items-center das-table-margin_bottom das-table-padding_left das-table-paddding_right",staticStyle:{"margin-top":"-4px"}},[a("b-form-checkbox",{staticClass:"das-block-margin_right checkAllBtn",on:{change:t.changeAllFn},model:{value:t.selectAll,callback:function(e){t.selectAll=e},expression:"selectAll"}},[t._v(" "+t._s(t.$t("_MULTI_SHOP_SELECT_ALL"))+" ")]),a("date-select",{staticClass:"dateSelect das-block-margin_right",on:{dateScope:t.dateScopeFn},model:{value:t.rangeDate,callback:function(e){t.rangeDate=e},expression:"rangeDate"}}),a("b-form-radio-group",{directives:[{name:"router-save",rawName:"v-router-save"}],attrs:{"button-variant":"outline-nobg",buttons:""},model:{value:t.dateSelectType,callback:function(e){t.dateSelectType=e},expression:"dateSelectType"}},t._l(t.dateSelectOptions,(function(e){return a("b-form-radio",{key:e.value,attrs:{value:e.value}},[a("div",{staticClass:"d-flex align-items-center"},[t._v(" "+t._s(e.text)+" "),"hot"===e.value?[a("feather-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{title:t.$t("_COMMON_HOUR_REDUCE_TIP_30"),trigger:"hover",boundary:"viewport",placement:"top"},expression:"{\n                title: $t('_COMMON_HOUR_REDUCE_TIP_30'),\n                trigger: 'hover',\n                boundary: 'viewport',\n                placement: 'top'\n              }"}],staticClass:"das-label-left",attrs:{icon:"InfoIcon",size:"14"}})]:t._e()],2)])})),1)],1),a("div",{staticClass:"productAnalysisCoreContentWrap"},[a("div",{directives:[{name:"router-save",rawName:"v-router-save",value:t.selectBlock,expression:"selectBlock"}],staticClass:"leftContent"},[a("div",{staticClass:"summaryTopMsgWrap hasCheckLable",staticStyle:{border:"none"}},[a("div",{staticClass:"summaryTopMsg",staticStyle:{"flex-wrap":"wrap"}},t._l(t.showSelectTmp,(function(e){return a("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.horver.right.viewport",value:1===t.selectBlock.length&&t.selectBlock.indexOf(e.id)>-1?t.$t("_SALES_ANALYSIS_LIMIT_CHECK_MIN"):"hot"===t.dateSelectType&&-1===t.HOT_INDICATORS.indexOf(e.id)?t.$t("_COMMON_HOUR_REDUCE_UNS_TIP"):"",expression:"\n              selectBlock.length === 1 && selectBlock.indexOf(item.id) > -1\n                ? $t('_SALES_ANALYSIS_LIMIT_CHECK_MIN')\n                : dateSelectType === 'hot' && HOT_INDICATORS.indexOf(item.id) === -1\n                ? $t('_COMMON_HOUR_REDUCE_UNS_TIP')\n                : ''\n            ",modifiers:{horver:!0,right:!0,viewport:!0}}],key:"leftChecked"+e.id,staticClass:"summary-box flex-1"},[a("label",{staticClass:"summary-box-label unChecked",class:{checked:t.selectBlock.indexOf(e.id)>-1,disabled:"hot"===t.dateSelectType&&-1===t.HOT_INDICATORS.indexOf(e.id)},attrs:{for:e.id}},[a("div",{staticClass:"leftInfo"},[t._v(" "+t._s(t.$t(e.name))+" "),e.showSym&&t.CURRENCY_SYMBOL?[t._v(" ("+t._s(t.$route.query.CURRENCY_SYMBOL||t.CURRENCY_SYMBOL)+") ")]:t._e()],2),a("div",{staticClass:"rightInfo"},[a("span",{staticClass:"leftShowTip"},[a("span",{staticClass:"num"},[e.showSym?[t._v(" "+t._s(t._f("amountAll")(e.value,t.$route.query.CURRENCY_CODE||t.CURRENCY_CODE,"unshow"))+" ")]:[t._v(" "+t._s(t._f("thousand")(e.value))+" ")]],2)]),e.popValue||0==e.popValue?a("span",{staticClass:"rightShowTip"},[0===t.dateScope?a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_YESTERDAY"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_YESTERDAY"))+" ")]):-1==t.dateScope?a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_BEFORE_YESTERDAY"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_BEFORE_YESTERDAY"))+" ")]):null==t.dateScope?a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_LAST_PERIOD"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_LAST_PERIOD"))+" ")]):a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_LAST_SOME_DAYS"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_LAST_SOME_DAYS",{days:t.dateScope+1}))+" ")]),e.id.indexOf("Refund")>-1||e.id.indexOf("refund")>-1?a("em",{class:{less:e.popValue<0,more:e.popValue>0}},[t._v(" "+t._s(Math.abs(e.popValue)||"-")+"% "),a("feather-icon",{attrs:{icon:e.popValue>0?"ArrowUpIcon":"ArrowDownIcon",size:"12"}})],1):a("em",{class:{less:e.popValue>0,more:e.popValue<0}},[t._v(" "+t._s(Math.abs(e.popValue)||"-")+"% "),a("feather-icon",{attrs:{icon:e.popValue>0?"ArrowUpIcon":"ArrowDownIcon",size:"12"}})],1)],1):t._e()])]),a("b-form-checkbox",{staticClass:"checkboxHidden",attrs:{disabled:1==t.selectBlock.length&&t.selectBlock.indexOf(e.id)>-1||"hot"===t.dateSelectType&&-1===t.HOT_INDICATORS.indexOf(e.id),id:e.id,value:e.id},model:{value:t.selectBlock,callback:function(e){t.selectBlock=e},expression:"selectBlock"}})],1)})),0)])]),a("div",{staticClass:"rightContent"},[a("b-tabs",{directives:[{name:"router-save",rawName:"v-router-save"}],model:{value:t.showType,callback:function(e){t.showType=e},expression:"showType"}},[a("b-tab",{attrs:{title:t.$t("_TREND_BUTTON_VIEW_BY_CHART")}},[0==t.showType?a("product-charts",{attrs:{dateScope:t.dateScope,lineChartsInfo:t.showSelectTmp,addon:t.addon,showDownloadPng:!0,rangeDate:t.rangeDate,selectBlock:t.selectBlock,profitType:t.baseModel.profitType,profitDays:t.dataDays,dateSelectType:t.dateSelectType,profitHours:t.profitHours},on:{"click-item":t.clickItemFn}}):t._e()],1),a("b-tab",{attrs:{title:t.$t("_TREND_BUTTON_VIEW_BY_GRID")}},[1==t.showType?a("core-table",{attrs:{calcHeight:t.currentWindowWidth>=1366?"calc(100vh - 370px)":"calc(114.9vh - 370px)",HOT_INDICATORS:t.HOT_INDICATORS,isSku:t.isSku,isParent:t.isParent,profitType:t.baseModel.profitType,dateSelectType:t.dateSelectType,profitDays:t.dataDays,profitHours:t.profitHours},on:{refresh:t.initDebounce}}):t._e()],1)],1)],1)])])},M=[],k=a("3835"),I=(a("b680"),a("3ca3"),a("ddb0"),a("e009")),D=(a("fd4e"),a("cf6f")),L=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("b-row",[a("b-col",[a("common-table",{key:"sales_analysis_product_analysis_core_table"+("hot"===t.dateSelectType),ref:"commonTableEle",attrs:{headerDragable:"",container:"coreCenter",tableId:"sales_analysis_product_analysis_core_table"+("hot"===t.dateSelectType),tableData:t.tableData,options:t.tableOptions},on:{isFull:t.setFullStatus,exportReport:t.exportReportFn}})],1)],1)],1)},R=[],N=(a("b64b"),a("4e82"),a("2f62")),P=a("bbf0"),j=a("0823"),$=a("c1df"),F=a.n($),B=a("db49"),Y=a("e237"),U={name:"coreTable",data:function(){return{isFull:!1,PACKAGE_MODULE_NAMES:B["PACKAGE_MODULE_NAMES"]}},props:["calcHeight","profitDays","profitHours","isParent","isSku","dateSelectType","profitType","HOT_INDICATORS"],computed:Object(s["a"])(Object(s["a"])({},Object(N["c"])({CURRENT_SELLER:P["d"],CURRENT_SHOP:P["f"],CURRENT_SHOP_ID:P["g"]})),{},{tableOptions:function(){var t=this,e=this,a=[].concat(Object(r["a"])(1!=e.isSku?[{key:"sumVisits",minWidth:60,numberThousand:!0,label:this.$t("_COMMON_TH_VISITS")},{key:"sumConv",minWidth:30,showPercent:!0,label:this.$t("businessreport_salesconvrtrate")},{key:"sumOrderConv",minWidth:30,showPercent:!0,label:this.$t("businessreport_orderconvrtrate")},{key:"pageVisits",minWidth:60,numberThousand:!0,label:this.$t("_COMMON_TH_SESSIONS")},{key:"buyButtonRate",minWidth:70,showPercent:!0,label:this.$t("_COMMON_TH_BUY_BUTTON_RATE")}]:[]),[{key:"totalQuantity",minWidth:30,numberThousand:!0,label:this.$t("_COMMON_TH_TOTAL_SALES_COUNT")},{key:"sumQuantity",minWidth:30,numberThousand:!0,label:this.$t("_COMMON_TH_NET_SALES_COUNT")},{key:"totalPrincipal",minWidth:30,showSymbol:!0,label:this.$t("_COMMON_TH_SALES_MOUNT")},{key:"principal",minWidth:40,showSymbol:!0,label:this.$t("_SALES_ANALYSIS_NET_SALES")},{key:"cost",minWidth:30,showSymbol:!0,label:this.$t("_SALES_ANALYSIS_COST")},{key:"gross",minWidth:30,showSymbol:!0,label:this.$t("_SALES_ANALYSIS_PROFIT")},{key:"rate",minWidth:40,showPercent:!0,label:this.$t("_COMMON_TH_GROSS_MARGIN")},{key:"refundNum",minWidth:30,numberThousand:!0,label:this.$t("_SALES_ANALYSIS_REFUND_NUM")},{key:"refundMoneyRate",minWidth:30,showPercent:!0,label:this.$t("_SALES_ANALYSIS_REFUND_MONEY_RATE")},{key:"orders",minWidth:30,numberThousand:!0,label:this.$t("_AD_PERFORM_TH_PRODUCT_AD_ORDERS")},{key:"ad_sales",minWidth:50,showSymbol:!0,label:this.$t("_COMMON_TH_AD_SALES")},{key:"costCpc",minWidth:30,showSymbol:!0,label:this.$t("_COMMON_TH_AD_COSTS")},{key:"ad_quantity",minWidth:40,numberThousand:!0,label:this.$t("_AD_PERFORM_TH_PRODUCT_AD_ORDER")},{key:"ad_acos",minWidth:30,label:this.$t("_COMMON_TH_AD_ACOS"),showPercent:!0,appendHtml:"%"},{key:"tacos",minWidth:30,label:this.$t("_COMMON_TH_AD_TACOS"),showPercent:!0,appendHtml:"%"}]),n=[];if("hot"===this.dateSelectType){var i=this.HOT_INDICATORS||[];a.forEach((function(t){i.indexOf(t.key)>-1&&n.push(t)}))}else n=a;return{hidePagination:!0,stickyHeader:!0,filterVis:!0,fullscreenEnabled:!0,refreshEnabled:!0,height:this.calcHeight,refreshFn:function(){t.$emit("refresh")},fullStyle:{top:"-41px",right:(this.isFull,"132px")},fields:[{key:"date",minWidth:20,label:"hot"===this.dateSelectType?this.$t("_MULTI_SHOP_TIME"):this.$t("_TREND_DATE")}].concat(Object(r["a"])(n))}},adPermission:function(){var t=this.CURRENT_SHOP,e=this.CURRENT_SELLER,a=0===t.adProfileId?0:1,n=e.sponsoredAuth;return 1===a&&1===n},profitWeeks:function(){var t=this,e={},a=[];return this.profitDays.forEach((function(t){var a=F()(t.date),n=a.year()+"-"+a.isoWeek();e[n]?e[n].push(Object(s["a"])(Object(s["a"])({},t),{},{week:n})):e[n]=[Object(s["a"])(Object(s["a"])({},t),{},{week:n})]})),Object.keys(e).forEach((function(n){var i=e[n].reduce((function(t,e){return{ad_quantity:t.ad_quantity+e.ad_quantity,ad_sales:t.ad_sales+e.ad_sales,ad_spend:t.ad_spend+e.ad_spend,costCpc:t.costCpc+e.costCpc,buyButtonVisits:t.buyButtonVisits+e.buyButtonVisits,cost:t.cost+e.cost,gross:t.gross+e.gross,orders:t.orders+e.orders,pageVisits:t.pageVisits+e.pageVisits,principal:t.principal+e.principal,totalPrincipal:t.totalPrincipal+e.totalPrincipal,totalQuantity:t.totalQuantity+e.totalQuantity,refundNum:t.refundNum+e.refundNum,sumAmount:t.sumAmount+e.sumAmount,sumQuantity:t.sumQuantity+e.sumQuantity,sumQuantityTrend:t.sumQuantityTrend+e.sumQuantityTrend,sumOrderQuantityTrend:t.sumOrderQuantityTrend+e.sumOrderQuantityTrend,sumVisits:t.sumVisits+e.sumVisits}}),{ad_quantity:0,ad_sales:0,ad_spend:0,costCpc:0,buyButtonVisits:0,cost:0,gross:0,orders:0,pageVisits:0,principal:0,totalPrincipal:0,totalQuantity:0,refundNum:0,sumAmount:0,sumQuantity:0,sumQuantityTrend:0,sumOrderQuantityTrend:0,sumVisits:0});i.tacos=0==i.totalPrincipal?0:i.ad_spend/i.totalPrincipal*100,i.ad_acos=0==i.ad_sales?0:i.ad_spend/i.ad_sales*100,i.buyButtonRate=0==i.pageVisits?0:i.buyButtonVisits/i.pageVisits*100,0==t.profitType?i.rate=0==i.principal?0:i.gross/i.principal*100:1==t.profitType&&(i.rate=0==i.totalPrincipal?0:i.gross/i.totalPrincipal*100),i.refundMoneyRate=0==i.totalQuantity?0:i.refundNum/i.totalQuantity*100,i.sumConv=0==i.sumVisits?0:i.sumQuantityTrend/i.sumVisits*100,i.sumOrderConv=0==i.sumVisits?0:i.sumOrderQuantityTrend/i.sumVisits*100,Object.keys(i).forEach((function(t){i[t]=parseFloat(i[t].toFixed(2))})),i.date=e[n][0].date+" ~ "+e[n][e[n].length-1].date,i.startDate=e[n][0].date,a.push(i)})),a.sort((function(t,e){return t.startDate-e.startDate})),a},profitMonths:function(){var t=this,e={},a=[];return this.profitDays.forEach((function(t){var a=F()(t.date),n=a.year()+"-"+a.month();e[n]?e[n].push(Object(s["a"])(Object(s["a"])({},t),{},{month:n})):e[n]=[Object(s["a"])(Object(s["a"])({},t),{},{month:n})]})),Object.keys(e).forEach((function(n){var i=e[n].reduce((function(t,e){return{ad_quantity:t.ad_quantity+e.ad_quantity,ad_sales:t.ad_sales+e.ad_sales,ad_spend:t.ad_spend+e.ad_spend,costCpc:t.costCpc+e.costCpc,buyButtonVisits:t.buyButtonVisits+e.buyButtonVisits,cost:t.cost+e.cost,gross:t.gross+e.gross,orders:t.orders+e.orders,pageVisits:t.pageVisits+e.pageVisits,principal:t.principal+e.principal,totalPrincipal:t.totalPrincipal+e.totalPrincipal,totalQuantity:t.totalQuantity+e.totalQuantity,refundNum:t.refundNum+e.refundNum,sumAmount:t.sumAmount+e.sumAmount,sumQuantity:t.sumQuantity+e.sumQuantity,sumQuantityTrend:t.sumQuantityTrend+e.sumQuantityTrend,sumOrderQuantityTrend:t.sumOrderQuantityTrend+e.sumOrderQuantityTrend,sumVisits:t.sumVisits+e.sumVisits}}),{ad_quantity:0,ad_sales:0,ad_spend:0,costCpc:0,buyButtonVisits:0,cost:0,gross:0,orders:0,pageVisits:0,principal:0,totalPrincipal:0,totalQuantity:0,refundNum:0,sumAmount:0,sumQuantity:0,sumQuantityTrend:0,sumOrderQuantityTrend:0,sumVisits:0});i.tacos=0==i.totalPrincipal?0:i.ad_spend/i.totalPrincipal*100,i.ad_acos=0==i.ad_sales?0:i.ad_spend/i.ad_sales*100,i.buyButtonRate=0==i.pageVisits?0:i.buyButtonVisits/i.pageVisits*100,i.refundMoneyRate=0==i.totalQuantity?0:i.refundNum/i.totalQuantity*100,i.sumConv=0==i.sumVisits?0:i.sumQuantityTrend/i.sumVisits*100,i.sumOrderConv=0==i.sumVisits?0:i.sumOrderQuantityTrend/i.sumVisits*100,0==t.profitType?i.rate=0==i.principal?0:i.gross/i.principal*100:1==t.profitType&&(i.rate=0==i.totalPrincipal?0:i.gross/i.totalPrincipal*100),Object.keys(i).forEach((function(t){i[t]=parseFloat(i[t].toFixed(2))})),i.date=e[n][0].date+" ~ "+e[n][e[n].length-1].date,i.startDate=e[n][0].date,a.push(i)})),a.sort((function(t,e){return t.startDate-e.startDate})),a},tableData:function(){switch(this.dateSelectType){case"days":var t=this.profitDays;break;case"week":t=this.profitWeeks;break;case"month":t=this.profitMonths;break;case"hot":t=this.profitHours;break;default:break}return t}}),components:{commonTable:j["a"]},methods:{setFullStatus:function(t){this.isFull=t},exportReportFn:function(){var t=this,e={},a=this,n=[];if(n=1==a.isSku?[{label:"hot"===this.dateSelectType?this.$t("_MULTI_SHOP_TIME"):this.$t("_TREND_DATE"),key:"date"},{label:this.$t("_COMMON_TH_TOTAL_SALES_COUNT"),packageType:this.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS,key:"totalQuantity"},{label:a.$t("_COMMON_TH_NET_SALES_COUNT"),key:"sumQuantity",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_COMMON_TH_SALES_MOUNT"),key:"totalPrincipal",showSymbol:!0,packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_SALES_ANALYSIS_NET_SALES"),key:"principal",showSymbol:!0,packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_SALES_ANALYSIS_COST"),key:"cost",showSymbol:!0,packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_SALES_ANALYSIS_PROFIT"),key:"gross",showSymbol:!0,packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_COMMON_TH_GROSS_MARGIN"),key:"rate",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_SALES_ANALYSIS_REFUND_NUM"),key:"refundNum",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_SALES_ANALYSIS_REFUND_MONEY_RATE"),key:"refundMoneyRate",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_AD_PERFORM_TH_PRODUCT_AD_ORDERS"),key:"orders",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_COMMON_TH_AD_SALES"),key:"ad_sales",showSymbol:!0,packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD},{label:a.$t("_COMMON_TH_AD_COSTS"),key:"costCpc",showSymbol:!0,packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD},{label:a.$t("_AD_PERFORM_TH_PRODUCT_AD_ORDER"),key:"ad_quantity",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD},{label:a.$t("_COMMON_TH_AD_ACOS"),key:"ad_acos",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD},{label:a.$t("_COMMON_TH_AD_TACOS"),key:"tacos",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD}]:[{label:"hot"===this.dateSelectType?this.$t("_MULTI_SHOP_TIME"):this.$t("_TREND_DATE"),key:"date"},{label:a.$t("_COMMON_TH_VISITS"),key:"sumVisits",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("businessreport_salesconvrtrate"),key:"sumConv",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("businessreport_orderconvrtrate"),key:"sumOrderConv",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_COMMON_TH_SESSIONS"),key:"pageVisits",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_COMMON_TH_BUY_BUTTON_RATE"),key:"buyButtonRate",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:this.$t("_COMMON_TH_TOTAL_SALES_COUNT"),packageType:this.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS,key:"totalQuantity"},{label:a.$t("_COMMON_TH_NET_SALES_COUNT"),key:"sumQuantity",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_COMMON_TH_SALES_MOUNT"),key:"totalPrincipal",showSymbol:!0,packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_SALES_ANALYSIS_NET_SALES"),key:"principal",showSymbol:!0,packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_SALES_ANALYSIS_COST"),key:"cost",showSymbol:!0,packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_SALES_ANALYSIS_PROFIT"),key:"gross",showSymbol:!0,packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_COMMON_TH_GROSS_MARGIN"),key:"rate",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_SALES_ANALYSIS_REFUND_NUM"),key:"refundNum",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_SALES_ANALYSIS_REFUND_MONEY_RATE"),key:"refundMoneyRate",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_AD_PERFORM_TH_PRODUCT_AD_ORDERS"),key:"orders",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS},{label:a.$t("_COMMON_TH_AD_SALES"),key:"ad_sales",showSymbol:!0,packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD},{label:a.$t("_COMMON_TH_AD_COSTS"),key:"costCpc",showSymbol:!0,packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD},{label:a.$t("_AD_PERFORM_TH_PRODUCT_AD_ORDER"),key:"ad_quantity",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD},{label:a.$t("_COMMON_TH_AD_ACOS"),key:"ad_acos",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD},{label:a.$t("_COMMON_TH_AD_TACOS"),key:"tacos",packageType:a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD}],"hot"===this.dateSelectType){var i=this.HOT_INDICATORS||[],o=["date"].concat(Object(r["a"])(i));n=n.filter((function(t){return o.indexOf(t.key)>-1}))}1==a.isSku?e.title=a.$t("_ROUTER_NAME_PRODUCT_ANALYSIS")+"SKU":1==a.isParent?e.title=a.$t("_ROUTER_NAME_PRODUCT_ANALYSIS")+"(Parent) Asin":e.title=a.$t("_ROUTER_NAME_PRODUCT_ANALYSIS")+"(Child) Asin";var s=[];s=n.map((function(e){return e.label+(e.showSymbol?"(".concat(t.$route.query.CURRENCY_SYMBOL,")"):"")})),e.header=[Object(r["a"])(s)],e.body=[],a.tableData.forEach((function(t){var i=[],o=n.filter((function(t){return t.packageType===a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS})).map((function(t){return t.key})),r=n.filter((function(t){return t.packageType===a.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD})).map((function(t){return t.key}));i.push(t["date"]?t["date"]:0),o.forEach((function(e){i.push(t[e]?t[e]:0)})),r.forEach((function(e){i.push(t[e]?t[e]:0)})),e.body.push(i)})),Object(Y["a"])([].concat(Object(r["a"])(e.header),Object(r["a"])(e.body)),{fileName:e.title})}}},z=U,V=Object(v["a"])(z,L,R,!1,null,null,null),H=V.exports,G=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"productChartsWrap"},[a("div",{staticClass:"das-table-margin_bottom d-flex justify-content--f-s"},[a("b-form-radio-group",{directives:[{name:"router-save",rawName:"v-router-save"}],attrs:{"button-variant":"outline-nobg",options:t.chartTabOptions,buttons:""},model:{value:t.chartTab,callback:function(e){t.chartTab=e},expression:"chartTab"}}),"combine"==t.chartTab?a("b-form-radio-group",{directives:[{name:"router-save",rawName:"v-router-save"}],staticStyle:{"margin-left":"16px"},attrs:{"button-variant":"outline-nobg",options:t.isSingleYOptions,buttons:""},model:{value:t.isSingleY,callback:function(e){t.isSingleY=e},expression:"isSingleY"}}):t._e()],1),"combine"==t.chartTab?a("line-chart",{staticClass:"lineChartWrap das-table-padding_left das-table-padding_right",attrs:{notYaxisName:"",isCostCore:"",addon:t.addon,noDownload:!0,showDownloadPng:t.showDownloadPng,isSingleY:t.isSingleY,dateSelectType:t.dateSelectType,coverOption:t.coverOption,selectBlock:t.selectBlock,rangeDate:t.rangeDate,profitType:t.profitType,profitHours:t.profitHours,profitDays:t.profitDays}}):t._e(),"list"==t.chartTab?a("line-chart-list",{staticClass:"lineChartWrap",attrs:{lineChartsInfo:t.lineChartsInfo,dateScope:t.dateScope,addon:t.addon,isSingleY:t.isSingleY,dateSelectType:t.dateSelectType,selectBlock:t.selectBlock,rangeDate:t.rangeDate,profitType:t.profitType,profitHours:t.profitHours,profitDays:t.profitDays},on:{"click-item":t.clickItemFn}}):t._e()],1)},W=[],K=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{position:"relative"}},[a("app-echart-line-custom",{attrs:{optionData:t.optionData,height:400}}),t.noDownload?t._e():a("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.horve.top",value:t.$checkPermission.checkOut(t.$route.meta&&t.$route.meta.requirePackage||"business")?"":t.$t("_COMMON_EXPORT_TIP"),expression:"!$checkPermission.checkOut(\n      $route.meta && $route.meta.requirePackage || 'business'\n    ) ? $t('_COMMON_EXPORT_TIP') : ''",modifiers:{horve:!0,top:!0}}],staticClass:"downloadIconWrapNew"},[a("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.horve.top",value:t.$t("_PACKAGE_MODULE_LIST_EXPORT_DATA"),expression:"$t('_PACKAGE_MODULE_LIST_EXPORT_DATA')",modifiers:{horve:!0,top:!0}}],attrs:{disabled:!t.$checkPermission.checkOut(t.$route.meta&&t.$route.meta.requirePackage||"business")},on:{click:t.handleExport}},[a("feather-icon",{attrs:{icon:"DownloadIcon",size:"18"}})],1)])],1)},Z=[],q=(a("ac1f"),a("1276"),a("a15b"),a("6b33")),X=a("493d"),Q=a("bb87"),J=a("8f05"),tt=a("13e5"),et=a("7aad"),at={totalQuantity:"_COMMON_TH_TOTAL_SALES_COUNT",orders:"_ASKFORREVIEW_SHORTCUT_CATE_ORDER"},nt={name:"lineChart",components:{AppEchartLineCustom:Q["a"]},props:{isCostCore:{type:Boolean,default:!1},notYaxisName:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1},isSingleY:{},coverOption:{},dateSelectType:{},selectBlock:{},rangeDate:{},refundType:{},profitType:{},profitDays:{},profitHours:{},showDownloadPng:{}},computed:{colorPane:function(){return this.dataSource.map((function(t,e){return et["a"].color(e)}))},profitWeeks:function(){var t=this,e={},a=[];return this.profitDays.forEach((function(t){var a=F()(t.date),n=a.year()+"-"+a.isoWeek();e[n]?e[n].push(Object(s["a"])(Object(s["a"])({},t),{},{week:n})):e[n]=[Object(s["a"])(Object(s["a"])({},t),{},{week:n})]})),Object.keys(e).forEach((function(n){var i=e[n].reduce((function(t,e){return{ad_quantity:t.ad_quantity+e.ad_quantity,ad_sales:t.ad_sales+e.ad_sales,ad_spend:t.ad_spend+e.ad_spend,buyButtonVisits:t.buyButtonVisits+e.buyButtonVisits,cost:t.cost+e.cost,gross:t.gross+e.gross,orders:t.orders+e.orders,pageVisits:t.pageVisits+e.pageVisits,principal:t.principal+e.principal,totalPrincipal:t.totalPrincipal+e.totalPrincipal,totalQuantity:t.totalQuantity+e.totalQuantity,refundNum:t.refundNum+e.refundNum,sumAmount:t.sumAmount+e.sumAmount,sumQuantity:t.sumQuantity+e.sumQuantity,sumQuantityTrend:t.sumQuantityTrend+e.sumQuantityTrend,sumOrderQuantityTrend:t.sumOrderQuantityTrend+e.sumOrderQuantityTrend,sumVisits:t.sumVisits+e.sumVisits,costPurchase:t.costPurchase+e.costPurchase,costLogistics:t.costLogistics+e.costLogistics,costCommission:t.costCommission+e.costCommission,promotion:t.promotion+e.promotion,costDefined:t.costDefined+e.costDefined,costFbafee:t.costFbafee+e.costFbafee,costCpc:t.costCpc+e.costCpc,tax:t.tax+e.tax,fbaInventoryInboundFee:t.fbaInventoryInboundFee+e.fbaInventoryInboundFee,otherFee:parseFloat(t.otherFee)+parseFloat(e.otherFee)}}),{ad_quantity:0,ad_sales:0,ad_spend:0,buyButtonVisits:0,cost:0,gross:0,orders:0,pageVisits:0,principal:0,totalPrincipal:0,totalQuantity:0,refundNum:0,sumAmount:0,sumQuantity:0,sumQuantityTrend:0,sumOrderQuantityTrend:0,sumVisits:0,costPurchase:0,costLogistics:0,costCommission:0,promotion:0,costDefined:0,costFbafee:0,costCpc:0,tax:0,otherFee:0,fbaInventoryInboundFee:0});i.ad_acos=0==i.ad_sales?0:i.ad_spend/i.ad_sales*100,i.buyButtonRate=0==i.pageVisits?0:i.buyButtonVisits/i.pageVisits*100,i.tacos=0==i.totalPrincipal?0:i.costCpc/i.totalPrincipal*100,i.roas=0===i.ad_spend?0:parseFloat((i.ad_sales/i.ad_spend).toFixed(2)),0==t.profitType?i.rate=0==i.principal?0:i.gross/i.principal*100:1==t.profitType&&(i.rate=0==i.totalPrincipal?0:i.gross/i.totalPrincipal*100),i.refundMoneyRate=0==i.totalQuantity?0:i.refundNum/i.totalQuantity*100,i.sumConv=0==i.sumVisits?0:i.sumQuantityTrend/i.sumVisits*100,i.sumOrderConv=0==i.sumVisits?0:i.sumOrderQuantityTrend/i.sumVisits*100,Object.keys(i).forEach((function(t){i[t]=parseFloat(i[t].toFixed(2))})),i.date=e[n][0].date+" ~ "+e[n][e[n].length-1].date,i.startDate=e[n][0].date,a.push(i)})),a.sort((function(t,e){return t.startDate-e.startDate})),a},profitMonths:function(){var t=this,e={},a=[];return this.profitDays.forEach((function(t){var a=F()(t.date),n=a.year()+"-"+a.month();e[n]?e[n].push(Object(s["a"])(Object(s["a"])({},t),{},{month:n})):e[n]=[Object(s["a"])(Object(s["a"])({},t),{},{month:n})]})),Object.keys(e).forEach((function(n){var i=e[n].reduce((function(t,e){return{ad_quantity:t.ad_quantity+e.ad_quantity,ad_sales:t.ad_sales+e.ad_sales,ad_spend:t.ad_spend+e.ad_spend,buyButtonVisits:t.buyButtonVisits+e.buyButtonVisits,cost:t.cost+e.cost,gross:t.gross+e.gross,orders:t.orders+e.orders,pageVisits:t.pageVisits+e.pageVisits,principal:t.principal+e.principal,totalPrincipal:t.totalPrincipal+e.totalPrincipal,totalQuantity:t.totalQuantity+e.totalQuantity,refundNum:t.refundNum+e.refundNum,sumAmount:t.sumAmount+e.sumAmount,sumQuantity:t.sumQuantity+e.sumQuantity,sumQuantityTrend:t.sumQuantityTrend+e.sumQuantityTrend,sumOrderQuantityTrend:t.sumOrderQuantityTrend+e.sumOrderQuantityTrend,sumVisits:t.sumVisits+e.sumVisits,costPurchase:t.costPurchase+e.costPurchase,costLogistics:t.costLogistics+e.costLogistics,costCommission:t.costCommission+e.costCommission,promotion:t.promotion+e.promotion,costDefined:t.costDefined+e.costDefined,costFbafee:t.costFbafee+e.costFbafee,costCpc:t.costCpc+e.costCpc,tax:t.tax+e.tax,fbaInventoryInboundFee:t.fbaInventoryInboundFee+e.fbaInventoryInboundFee,otherFee:parseFloat(t.otherFee)+parseFloat(e.otherFee)}}),{ad_quantity:0,ad_sales:0,ad_spend:0,buyButtonVisits:0,cost:0,gross:0,orders:0,pageVisits:0,principal:0,totalPrincipal:0,totalQuantity:0,refundNum:0,sumAmount:0,sumQuantity:0,sumQuantityTrend:0,sumOrderQuantityTrend:0,sumVisits:0,fbaInventoryInboundFee:0,costPurchase:0,costLogistics:0,costCommission:0,promotion:0,costDefined:0,costFbafee:0,costCpc:0,tax:0,otherFee:0});i.ad_acos=0==i.ad_sales?0:i.ad_spend/i.ad_sales*100,i.buyButtonRate=0==i.pageVisits?0:i.buyButtonVisits/i.pageVisits*100,i.refundMoneyRate=0==i.totalQuantity?0:i.refundNum/i.totalQuantity*100,i.sumConv=0==i.sumVisits?0:i.sumQuantityTrend/i.sumVisits*100,i.sumOrderConv=0==i.sumVisits?0:i.sumOrderQuantityTrend/i.sumVisits*100,i.tacos=0==i.totalPrincipal?0:i.costCpc/i.totalPrincipal*100,i.roas=0===i.ad_spend?0:parseFloat((i.ad_sales/i.ad_spend).toFixed(2)),0==t.profitType?i.rate=0==i.principal?0:i.gross/i.principal*100:1==t.profitType&&(i.rate=0==i.totalPrincipal?0:i.gross/i.totalPrincipal*100),Object.keys(i).forEach((function(t){i[t]=parseFloat(i[t].toFixed(2))})),i.date=e[n][0].date+" ~ "+e[n][e[n].length-1].date,i.startDate=e[n][0].date,a.push(i)})),a.sort((function(t,e){return t.startDate-e.startDate})),a}},data:function(){return{config:{},optionData:{}}},methods:{handleExport:function(){this.$emit("export")},initChart:function(t){var e=this;if(!t||t.length){var a=this;switch(this.dateSelectType){case"days":var n=this.profitDays;break;case"week":n=this.profitWeeks;break;case"month":n=this.profitMonths;break;case"hot":n=this.profitHours;break;default:break}if(n&&this.selectBlock.length){this.config={sumVisits:{lineColor:"#949233",label:a.$t("_COMMON_TH_VISITS")},sumQuantity:{lineColor:"#1d7f96",label:a.$t("_COMMON_TH_NET_SALES_COUNT")},sumConv:{lineColor:"#af8a00",label:a.$t("businessreport_salesconvrtrate")},sumOrderConv:{lineColor:"#FFCD39",label:a.$t("businessreport_orderconvrtrate")},pageVisits:{lineColor:"#8732d1",label:a.$t("_COMMON_TH_PAGE_VIEWS")},buyButtonRate:{lineColor:"#373",label:a.$t("_COMMON_TH_BUY_BOX_PERCENTAGE")},principal:{lineColor:"#98765d",label:a.$t("_SALES_ANALYSIS_NET_SALES")},cost:{lineColor:"#73a6ff",label:a.$t("_SALES_ANALYSIS_COST")},gross:{lineColor:"#9afc7f",label:a.$t("_SALES_ANALYSIS_PROFIT")},rate:{lineColor:"#a393fe",label:a.$t("_SALES_ANALYSIS_PROFIT_MARGIN")},refundNum:{lineColor:"#ffdf48",label:a.$t("_SALES_ANALYSIS_REFUND_NUM")},refundMoneyRate:{lineColor:"#63f9d0",label:a.$t("_SALES_ANALYSIS_REFUND_MONEY_RATE")},ad_sales:{lineColor:"#f9b799",label:a.$t("_COMMON_TH_AD_SALES")},ad_spend:{lineColor:"#f9868c",label:a.$t("_COMMON_TH_AD_COSTS")},ad_quantity:{lineColor:"#f986b5",label:a.$t("_AD_PERFORM_TH_PRODUCT_AD_ORDER")},ad_acos:{lineColor:"#ffdcad",label:a.$t("_COMMON_TH_AD_ACOS")},costCpc:{lineColor:"#f9868d",label:a.$t("_COMMON_TH_AD_COSTS")},orders:{lineColor:"#ab62a3",label:a.$t("_AD_PERFORM_TH_PRODUCT_AD_ORDERS")},tacos:{lineColor:"#ab62a2",label:a.$t("_COMMON_TH_AD_TACOS")},roas:{lineColor:"#10c96b",label:a.$t("_COMMON_TH_AD_ROAS")},totalPrincipal:{lineColor:"#ff2dc6",label:a.$t("_TEAM_KPI_TH_SALES")},totalQuantity:{lineColor:"#9090f9",label:a.$t("_COMMON_TH_TOTAL_SALES_COUNT")}};var i=n.map((function(t){if("hot"!=e.dateSelectType){var a=t.date.split("~"),n=a.map((function(t){var a=t.split("-");return"en"==e.$i18n.locale?a[2]+"/"+a[1]:a[1]+"-"+a[2]}));return n.join(" ~ ")}return t.date})),o=[],r=[],l=[];this.selectBlock.forEach((function(t,i){if(e.config[t]){l.push(e.config[t].label);var s=n.map((function(a){return e.isSingleY&&["sumConv","sumOrderConv","rate","refundMoneyRate","buyButtonRate","ad_acos","tacos"].indexOf(t)>-1?parseFloat(((a[t]||0)/100).toFixed(2)):a[t]||0})),c={color:e.config[t].lineColor},u={type:"line",data:s,itemStyle:c,lineStyle:c,name:e.config[t].label,showInLegend:!0,yAxisIndex:e.isSingleY?0:i},d={type:"value",axisLabel:{formatter:function(e,n){if(["sumConv","sumOrderConv","rate","refundMoneyRate","buyButtonRate","ad_acos","tacos"].indexOf(t)>-1&&!a.isSingleY)return e+"%";var i=e,o=Math.abs(e),r=0===e?1:e/o;return o<1e3||(o<1e6?i=r*(o/1e3).toFixed(2)+"K":o<1e9&&(i=r*(o/1e6).toFixed(2)+"M")),i}},splitLine:{show:!0},show:!0};if(["totalQuantity","orders"].indexOf(t)>-1){var h=e.$t(at[t]);d.name=e.notYaxisName?d.name:h;var p=5*h.length;d.nameTextStyle={padding:[0,0,0,p]},d.minInterval=1}r.push(d),o.push(u)}})),r.length>1&&r.forEach((function(t){t.splitLine.show=!1}));var c={legend:{diy:!0,top:0,left:0,icon:"rect",itemHeight:2,textStyle:{color:"#6E6B7B"},data:l},grid:Object(s["a"])({top:this.isCostCore?80:56,containLabel:!0,left:0,right:0,width:"100%",bottom:25},this.coverOption&&this.coverOption.grid?this.coverOption.grid:{}),xAxis:Object(s["a"])({type:"category",boundaryGap:!0,data:i,axisLabel:{interval:Object(J["a"])(i.length),formatter:q["d"]}},"days"===a.dateSelectType?{splitArea:{show:!0,interval:0,areaStyle:{color:Object(X["a"])(n.map((function(t){return t.date+" 00:00:00"})))}}}:{}),yAxis:r,series:o,tooltip:{trigger:"axis",position:function(t,e,a,n,i){var o=t[0],r=a.offsetHeight,s=t[1]-r/2;return s=Math.max(0,Math.min(s,i.viewSize[1]-r)),[o,s]},formatter:function(t){var e=t[0],i="",o=e.name,r=[];if("hot"===a.dateSelectType){var s=a.$t("app_asindetail_history_daterange")+a.$t("_COMMON_SYMBOL_COLON")+a.rangeDate[0]+" ~ "+a.rangeDate[1]+"<br/>",l=o.split(":"),c=a.$t("_MULTI_SHOP_TIME")+a.$t("_COMMON_SYMBOL_COLON")+o+" (".concat(l[0]+":00:00"," ~ ").concat(l[0]+":59:59",")<br/>");i=s+c}else 6===new Date(n[e.dataIndex].date+" 00:00:00").getDay()?o+="("+a.$t("_COMMON_SATURDAY")+")":0===new Date(n[e.dataIndex].date+" 00:00:00").getDay()&&(o+="("+a.$t("_COMMON_SUNDAY")+")"),i+="".concat(a.$t("_TREND_DATE"),": ").concat(o,"<br/>");return a.selectBlock.forEach((function(t){"hot"===a.dateSelectType?i+="".concat(a.$t("_COMMON_HOUR_REDUCE_POINT",{par:a.config[t].label}),": "):i+="".concat(a.config[t].label,": "),r=n.map((function(e){return e[t]})),i+=r[e.dataIndex]||0,["sumConv","sumOrderConv","rate","refundMoneyRate","buyButtonRate","ad_acos","tacos"].indexOf(t)>-1&&(i+="%"),i+="<br/>"})),'<div style="padding:12px;">'.concat(i,"</div>")}}};this.showDownloadPng&&(c.toolbox={show:!0,right:"ja_jp"===this.$i18n.locale?66:"en"===this.$i18n.locale?30:20,top:this.isCostCore?40:10,feature:{saveAsImage:{title:a.$t("_COMMON_CHART_EXPORT_PNG")}}}),this.selectBlock.length>2&&(c.grid.containLabel=!1),this.optionData=c}}}},watch:{"$i18n.locale":function(){this.initChart()},profitHours:"initChart",profitDays:"initChart",dateSelectType:"initChart",isSingleY:function(t){this.initChart(t+"")},selectBlock:{immediate:!0,handler:"initChart"}},mounted:function(){}},it=nt,ot=Object(v["a"])(it,K,Z,!1,null,null,null),rt=ot.exports,st=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"lineChartListNewWrap"},[t._l(t.lineChartsTmp,(function(e){return a("div",{key:"lineChart"+e.id,staticClass:"linChartBlock"},[a("div",{staticClass:"borderGray"},[a("div",{staticClass:"chartInfoWrap"},[a("div",{staticClass:"leftInfo"},[t._v(" "+t._s(t.$t(e.info.name))+" "),e.info.showSym?[t._v(" ("+t._s(t.$route.query.CURRENCY_SYMBOL)+") ")]:t._e()],2),a("div",{staticClass:"rightInfo"},[e.info.popValue||0==e.info.popValue?a("span",{staticClass:"rightShowTip"},[0===t.dateScope?a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_YESTERDAY"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_YESTERDAY"))+" ")]):-1==t.dateScope?a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_BEFORE_YESTERDAY"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_BEFORE_YESTERDAY"))+" ")]):null==t.dateScope?a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_LAST_PERIOD"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_LAST_PERIOD"))+" ")]):a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_LAST_SOME_DAYS"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_LAST_SOME_DAYS",{days:t.dateScope+1}))+" ")]),e.info.id.indexOf("Refund")>-1||e.info.id.indexOf("refund")>-1?a("em",{staticClass:"das-label-left",class:{less:e.info.popValue<0,more:e.info.popValue>0}},[t._v(" "+t._s(Math.abs(e.info.popValue)||"-")+"% "),a("feather-icon",{attrs:{icon:e.info.popValue>0?"ArrowUpIcon":"ArrowDownIcon",size:"12"}})],1):a("em",{staticClass:"das-label-left",class:{less:e.info.popValue>0,more:e.info.popValue<0}},[t._v(" "+t._s(Math.abs(e.info.popValue)||"-")+"% "),a("feather-icon",{attrs:{icon:e.info.popValue>0?"ArrowUpIcon":"ArrowDownIcon",size:"12"}})],1)],1):t._e(),a("span",{staticClass:"leftShowTip"},[a("span",{staticClass:"num"},[e.info.showSym?[t._v(" "+t._s(t._f("amountAll")(e.info.value,t.$route.query.CURRENCY_CODE,"unshow"))+" ")]:[t._v(" "+t._s(t._f("thousand")(e.info.value))+" ")]],2)])])]),a("app-echart-line-custom",{ref:e.id,refInFor:!0,attrs:{optionData:e.optionData,height:t.maxHeight?t.maxHeight:314}})],1)])})),t._t("noData")],2)},lt=[],ct=(a("a9e3"),a("07ac"),a("e11e"),a("33d8")),ut={name:"lineChartList",components:{AppEchartLineCustom:Q["a"]},props:{lineChartsInfo:{default:function(){return[]}},dateScope:{},maxHeight:{},yAxisMin:{type:Number},inverse:{type:Boolean,default:!1},addon:{default:function(){return{dates:null,memosData:{list:{},flag:null}}}},dateSelectType:{},selectBlock:{},rangeDate:{},refundType:{},profitType:{},profitHours:{default:function(){return[]}},profitDays:{}},computed:{profitWeeks:function(){var t=this,e={},a=[];return this.profitDays.forEach((function(t){var a=F()(t.date),n=a.year()+"-"+a.isoWeek();e[n]?e[n].push(Object(s["a"])(Object(s["a"])({},t),{},{week:n})):e[n]=[Object(s["a"])(Object(s["a"])({},t),{},{week:n})]})),Object.keys(e).forEach((function(n){var i=e[n].reduce((function(t,e){return{ad_quantity:t.ad_quantity+e.ad_quantity,ad_sales:t.ad_sales+e.ad_sales,ad_spend:t.ad_spend+e.ad_spend,costCpc:t.costCpc+e.costCpc,buyButtonVisits:t.buyButtonVisits+e.buyButtonVisits,cost:t.cost+e.cost,gross:t.gross+e.gross,orders:t.orders+e.orders,pageVisits:t.pageVisits+e.pageVisits,principal:t.principal+e.principal,totalPrincipal:t.totalPrincipal+e.totalPrincipal,totalQuantity:t.totalQuantity+e.totalQuantity,refundNum:t.refundNum+e.refundNum,sumAmount:t.sumAmount+e.sumAmount,sumQuantity:t.sumQuantity+e.sumQuantity,sumQuantityTrend:t.sumQuantityTrend+e.sumQuantityTrend,sumOrderQuantityTrend:t.sumOrderQuantityTrend+e.sumOrderQuantityTrend,sumVisits:t.sumVisits+e.sumVisits}}),{ad_quantity:0,ad_sales:0,ad_spend:0,costCpc:0,buyButtonVisits:0,cost:0,gross:0,orders:0,pageVisits:0,principal:0,totalPrincipal:0,totalQuantity:0,refundNum:0,sumAmount:0,sumQuantity:0,sumQuantityTrend:0,sumOrderQuantityTrend:0,sumVisits:0});i.ad_acos=0==i.ad_sales?0:i.ad_spend/i.ad_sales*100,i.buyButtonRate=0==i.pageVisits?0:i.buyButtonVisits/i.pageVisits*100,i.tacos=0==i.totalPrincipal?0:i.costCpc/i.totalPrincipal*100,i.roas=0===i.ad_spend?0:parseFloat((i.ad_sales/i.ad_spend).toFixed(2)),0==t.profitType?i.rate=0==i.principal?0:i.gross/i.principal*100:1==t.profitType&&(i.rate=0==i.totalPrincipal?0:i.gross/i.totalPrincipal*100),i.refundMoneyRate=0==i.totalQuantity?0:i.refundNum/i.totalQuantity*100,i.sumConv=0==i.sumVisits?0:i.sumQuantityTrend/i.sumVisits*100,i.sumOrderConv=0==i.sumVisits?0:i.sumOrderQuantityTrend/i.sumVisits*100,Object.keys(i).forEach((function(t){i[t]=parseFloat(i[t].toFixed(2))})),i.date=e[n][0].date+" ~ "+e[n][e[n].length-1].date,i.startDate=e[n][0].date,a.push(i)})),a.sort((function(t,e){return t.startDate-e.startDate})),a},profitMonths:function(){var t=this,e={},a=[];return this.profitDays.forEach((function(t){var a=F()(t.date),n=a.year()+"-"+a.month();e[n]?e[n].push(Object(s["a"])(Object(s["a"])({},t),{},{month:n})):e[n]=[Object(s["a"])(Object(s["a"])({},t),{},{month:n})]})),Object.keys(e).forEach((function(n){var i=e[n].reduce((function(t,e){return{ad_quantity:t.ad_quantity+e.ad_quantity,ad_sales:t.ad_sales+e.ad_sales,ad_spend:t.ad_spend+e.ad_spend,costCpc:t.costCpc+e.costCpc,buyButtonVisits:t.buyButtonVisits+e.buyButtonVisits,cost:t.cost+e.cost,gross:t.gross+e.gross,orders:t.orders+e.orders,pageVisits:t.pageVisits+e.pageVisits,principal:t.principal+e.principal,totalPrincipal:t.totalPrincipal+e.totalPrincipal,totalQuantity:t.totalQuantity+e.totalQuantity,refundNum:t.refundNum+e.refundNum,sumAmount:t.sumAmount+e.sumAmount,sumQuantity:t.sumQuantity+e.sumQuantity,sumQuantityTrend:t.sumQuantityTrend+e.sumQuantityTrend,sumOrderQuantityTrend:t.sumOrderQuantityTrend+e.sumOrderQuantityTrend,sumVisits:t.sumVisits+e.sumVisits}}),{ad_quantity:0,ad_sales:0,ad_spend:0,costCpc:0,buyButtonVisits:0,cost:0,gross:0,orders:0,pageVisits:0,principal:0,totalPrincipal:0,totalQuantity:0,refundNum:0,sumAmount:0,sumQuantity:0,sumQuantityTrend:0,sumOrderQuantityTrend:0,sumVisits:0});i.ad_acos=0==i.ad_sales?0:i.ad_spend/i.ad_sales*100,i.buyButtonRate=0==i.pageVisits?0:i.buyButtonVisits/i.pageVisits*100,i.refundMoneyRate=0==i.totalQuantity?0:i.refundNum/i.totalQuantity*100,i.sumConv=0==i.sumVisits?0:i.sumQuantityTrend/i.sumVisits*100,i.sumOrderConv=0==i.sumVisits?0:i.sumOrderQuantityTrend/i.sumVisits*100,i.tacos=0==i.totalPrincipal?0:i.costCpc/i.totalPrincipal*100,i.roas=0===i.ad_spend?0:parseFloat((i.ad_sales/i.ad_spend).toFixed(2)),0==t.profitType?i.rate=0==i.principal?0:i.gross/i.principal*100:1==t.profitType&&(i.rate=0==i.totalPrincipal?0:i.gross/i.totalPrincipal*100),Object.keys(i).forEach((function(t){i[t]=parseFloat(i[t].toFixed(2))})),i.date=e[n][0].date+" ~ "+e[n][e[n].length-1].date,i.startDate=e[n][0].date,a.push(i)})),a.sort((function(t,e){return t.startDate-e.startDate})),a},lineChartsTmp:function(){var t=this;return this.lineCharts.map((function(e){var a=e.optionData.series[0].name;return e.info=t.lineChartsInfo.find((function(e){return t.$t(e.name)===a}))||{},e}))}},data:function(){return{isSingleY:!1,config:{},lineCharts:[]}},methods:{initChart:function(){var t=this;if(this.profitDays&&this.profitDays.length){var e=this,a=[];switch(this.config={sumVisits:{lineColor:"#949233",label:e.$t("_COMMON_TH_VISITS")},sumQuantity:{lineColor:"#1d7f96",label:e.$t("_COMMON_TH_NET_SALES_COUNT")},sumConv:{lineColor:"#af8a00",label:e.$t("businessreport_salesconvrtrate")},sumOrderConv:{lineColor:"#FFCD39",label:e.$t("businessreport_orderconvrtrate")},pageVisits:{lineColor:"#8732d1",label:e.$t("_COMMON_TH_PAGE_VIEWS")},buyButtonRate:{lineColor:"#373",label:e.$t("_COMMON_TH_BUY_BOX_PERCENTAGE")},totalPrincipal:{lineColor:"#ff2dc6",label:e.$t("_TEAM_KPI_TH_SALES")},principal:{lineColor:"#98765d",label:e.$t("_SALES_ANALYSIS_NET_SALES")},cost:{lineColor:"#73a6ff",label:e.$t("_SALES_ANALYSIS_COST")},gross:{lineColor:"#9afc7f",label:e.$t("_SALES_ANALYSIS_PROFIT")},rate:{lineColor:"#a393fe",label:e.$t("_SALES_ANALYSIS_PROFIT_MARGIN")},refundNum:{lineColor:"#ffdf48",label:e.$t("_SALES_ANALYSIS_REFUND_NUM")},refundMoneyRate:{lineColor:"#63f9d0",label:e.$t("_SALES_ANALYSIS_REFUND_MONEY_RATE")},ad_sales:{lineColor:"#f9b799",label:e.$t("_COMMON_TH_AD_SALES")},ad_spend:{lineColor:"#f9868c",label:e.$t("_COMMON_TH_AD_COSTS")},costCpc:{lineColor:"#f9868d",label:e.$t("_COMMON_TH_AD_COSTS")},ad_quantity:{lineColor:"#f986b5",label:e.$t("_AD_PERFORM_TH_PRODUCT_AD_ORDER")},ad_acos:{lineColor:"#ffdcad",label:e.$t("_COMMON_TH_AD_ACOS")},tacos:{lineColor:"#ab62a2",label:e.$t("_COMMON_TH_AD_TACOS")},roas:{lineColor:"#10c96b",label:e.$t("_COMMON_TH_AD_ROAS")},orders:{lineColor:"#ab62a3",label:e.$t("_AD_PERFORM_TH_PRODUCT_AD_ORDERS")},totalQuantity:{lineColor:"#9090f9",label:e.$t("_COMMON_TH_TOTAL_SALES_COUNT")}},this.dateSelectType){case"days":var n=this.profitDays;break;case"week":n=this.profitWeeks;break;case"month":n=this.profitMonths;break;case"hot":n=this.profitHours;break;default:break}n&&this.selectBlock.length&&(this.selectBlock.forEach((function(i,o){t.config[i]||(t.config[i]={lineColor:et["a"].color(o),label:i});var r=n.map((function(e){return t.isSingleY&&["sumConv","sumOrderConv","rate","refundMoneyRate","buyButtonRate","ad_acos","tacos"].indexOf(i)>-1?parseFloat(((e[i]||0)/100).toFixed(2)):e[i]})),l={color:t.config[i].lineColor},c=[{type:"value",min:t.yAxisMin,inverse:t.inverse,axisLabel:{formatter:function(t,a){if(["sumConv","sumOrderConv","rate","refundMoneyRate","buyButtonRate","ad_acos","tacos"].indexOf(i)>-1&&!e.isSingleY)return t+"%";var n=t,o=Math.abs(t),r=0===t?1:t/o;return o<1e3||(o<1e6?n=r*(o/1e3).toFixed(2)+"K":o<1e9&&(n=r*(o/1e6).toFixed(2)+"M")),n}},show:!0}],u=t.addon.memosData.list,d=[{type:"line",data:r,itemStyle:l,lineStyle:l,name:t.config[i].label,memos:u,showInLegend:!0}],h=n.map((function(a,n){if("hot"!=t.dateSelectType){var i=a.date.split("~"),o=i.map((function(e){var a=e.split("-");return"en"==t.$i18n.locale?a[2]+"/"+a[1]:a[1]+"-"+a[2]}));return t.addon.memosData.list[a.date]&&(d[0].data[n]={value:r[n],itemStyle:{color:"#f00"}}),o.join(e.maxHeight?"~":" ~ ")}return a.date})),p={legend:{diy:!0,top:0,left:0,icon:"rect",itemHeight:2,textStyle:{color:"#6E6B7B"},data:[t.config[i].label]},grid:{top:32,containLabel:!0,left:0,right:0,bottom:0,width:"100%"},xAxis:Object(s["a"])({type:"category",data:h,boundaryGap:!0,axisLabel:{interval:"auto",formatter:q["d"]}},"days"===e.dateSelectType?{splitArea:{show:!0,interval:0,areaStyle:{color:Object(X["a"])(n.map((function(t){return t.date+" 00:00:00"})))}}}:{}),yAxis:c,series:d,tooltip:{trigger:"axis",position:function(t,e,a,n,i){var o=t[0],r=a.offsetHeight,s=t[1]-r/2;return s=Math.max(0,Math.min(s,i.viewSize[1]-r)),[o,s]},formatter:function(t){var a=t[0],i="",o=a.name,r=[];if("hot"===e.dateSelectType){var s=e.$t("app_asindetail_history_daterange")+e.$t("_COMMON_SYMBOL_COLON")+e.rangeDate[0]+" ~ "+e.rangeDate[1]+"<br/>",l=o.split(":"),c=e.$t("_MULTI_SHOP_TIME")+e.$t("_COMMON_SYMBOL_COLON")+o+" (".concat(l[0]+":00:00"," ~ ").concat(l[0]+":59:59",")<br/>");i=s+c}else{6===new Date(n[a.dataIndex].date+" 00:00:00").getDay()?o+="("+e.$t("_COMMON_SATURDAY")+")":0===new Date(n[a.dataIndex].date+" 00:00:00").getDay()&&(o+="("+e.$t("_COMMON_SUNDAY")+")");try{var d=Object.values(n)[a.dataIndex].date}catch(p){}e.$t("_COMMON_CHART_NOTE"),u[d]&&(u[d].content.length>200?u[d].content.substr(0,200):u[d].content),e.$t("_COMMON_CHART_NOTE_TOOLTIP");i+="".concat(e.$t("_TREND_DATE"),": ").concat(o,"<br/>")}if(e.selectBlock.forEach((function(t){"hot"===e.dateSelectType?i+="".concat(e.$t("_COMMON_HOUR_REDUCE_POINT",{par:e.config[t].label}),": "):i+="".concat(e.config[t].label,": "),r=n.map((function(e){return e[t]?Object(ct["b"])("",e[t]):"-"})),i+=r[a.dataIndex],["sumConv","sumOrderConv","rate","refundMoneyRate","buyButtonRate","ad_acos","tacos"].indexOf(t)>-1&&(i+="%"),i+="<br/>"})),u[d]){var h="<br/>"+e.$t("_COMMON_CHART_NOTE")+' <span style="display: inline-block; width: 300px;white-space: normal; word-wrap: break-word; word-break: break-all; vertical-align: top; color: red;">'+(u[d]?u[d].content.length>200?u[d].content.substr(0,200)+"...":u[d].content:"")+'</span><br/><span style="color: #aaa;">'+e.$t("_COMMON_CHART_NOTE_TOOLTIP")+"</span>";i+="".concat(h)}return'<div style="padding:12px;">'.concat(i,"</div>")}}};a.push({optionData:p,id:"lineCharts"+o})})),this.lineCharts=a,this.$nextTick((function(){a.forEach((function(a){var i=t.$refs[a.id][0].$refs.line.chart;i.on("click",(function(a){if(1!=t.isSku){var i=Object.values(n)[a.dataIndex].date;e.$emit("click-item",{date:i,id:t.addon.memosData.list[i]&&t.addon.memosData.list[i].id,content:t.addon.memosData.list[i]&&t.addon.memosData.list[i].content})}}))}))})))}}},watch:{"$i18n.locale":function(){this.initChart()},addon:{deep:!0,handler:function(){this.initChart()}},profitHours:"initChart",profitDays:"initChart",dateSelectType:"initChart",selectBlock:function(t,e){try{if(t.join("")==e.join(""))return;this.initChart()}catch(a){}}},mounted:function(){this.initChart()}},dt=ut,ht=(a("700c"),Object(v["a"])(dt,st,lt,!1,null,"7f3bf66e",null)),pt=ht.exports,ft={name:"productCharts",props:{lineChartsInfo:{},dateScope:{},addon:{},dateSelectType:{},rangeDate:{},selectBlock:{},profitType:{},profitDays:{},showDownloadPng:{},coverOption:{},profitHours:{}},data:function(){return{chartTab:"combine",isSingleY:!1}},computed:{chartTabOptions:function(){return[{text:this.$t("_TREND_TAB_COMPOSITE"),value:"combine"},{text:this.$t("_TREND_TAB_COMPARE"),value:"list"}]},isSingleYOptions:function(){return[{text:this.$t("_SALES_ANALYSIS_BY_TREND"),value:!1},{text:this.$t("_SALES_ANALYSIS_BY_VALUE"),value:!0}]}},components:{lineChart:rt,lineChartList:pt},methods:{clickItemFn:function(t){this.$emit("click-item",t)}}},mt=ft,gt=(a("123a"),Object(v["a"])(mt,G,W,!1,null,"349d150c",null)),_t=gt.exports,vt=a("2af9"),yt=a("3862"),bt=a("708d"),St=["sales","spend","quantity","acos"],Ot=["acos"],Tt=["totalQuantity","totalPrincipal","orders"],At={name:"coreCenter",directives:{Ripple:I["a"]},data:function(){var t=this,e=window.localStorage.getItem("sales_analysis_product_analysis_product_detail_selects_v3");if(e)try{e=JSON.parse(e)}catch(a){console.warn(a),e=[]}return{selectAll:!1,profitHours:[],HOT_INDICATORS:Tt,showType:0,dateSelectType:"days",dateScope:0,rangeDate:this.baseModel.rangeDate||Object(m["g"])({dateScope:7,dateRange:null}).map((function(e){return Object(m["a"])(e,t.timeZone).format("YYYY-MM-DD")})),addon:{dates:null,memosData:{list:{},flag:null}},dataDays:[],selectBlock:e||[],lastSelectBlock:[],profitTotal:{},profitTotalLast:{},initDebounce:Object(bt["a"])(this.init,500)}},components:{dateSelect:D["a"],QuickBtnDateselect:vt["h"],CoreTable:H,ProductCharts:_t},props:["baseModel","currentShop"],computed:Object(s["a"])(Object(s["a"])({dateSelectOptions:function(){return[{text:this.$t("_COMMON_DAY_LABEL"),value:"days"},{text:this.$t("_COMMON_WEEK_LABEL"),value:"week"},{text:this.$t("_COMMON_MONTH_LABEL"),value:"month"},{text:this.$t("_COMMON_HOUR_REDUCE"),value:"hot",disabled:!this.baseModel.shopId}]},isSku:function(){return this.baseModel.isSku},isParent:function(){return this.baseModel.isParent}},Object(N["c"])({CURRENT_SELLER:P["d"],CURRENT_SHOP:P["f"],SELLER_PACKAGE:yt["d"],CURRENT_SHOP_ID:P["g"],USER_INFO:P["I"],currentWindowWidth:"currentWindowWidth"})),{},{CURRENCY_SYMBOL:function(){return this.$store.getters[P["I"]].currencySymbol},CURRENCY_CODE:function(){return this.$store.getters[P["I"]].currencyCode},timeZone:function(){var t;return this.$route.query.timeZone||(null===(t=this.$store.getters[P["I"]])||void 0===t?void 0:t.timezone)||this.baseModel.timeZone},skuShowList:function(){var t=[{name:"_COMMON_TH_TOTAL_SALES_COUNT",id:"totalQuantity",value:this.profitTotal.totalQuantity,popValue:this.increaseRate(this.profitTotalLast.totalQuantity,this.profitTotal.totalQuantity)},{name:"_COMMON_TH_SALES_COUNT",id:"sumQuantity",value:this.profitTotal.sumQuantity,popValue:this.increaseRate(this.profitTotalLast.quantity,this.profitTotal.sumQuantity)},{name:"_COMMON_TH_SALES_MOUNT",showSym:!0,id:"totalPrincipal",value:this.profitTotal.totalPrincipal,popValue:this.increaseRate(this.profitTotalLast.totalPrincipal,this.profitTotal.totalPrincipal)},{name:"_SALES_ANALYSIS_NET_SALES",showSym:!0,id:"principal",value:this.profitTotal.principal,popValue:this.increaseRate(this.profitTotalLast.principal,this.profitTotal.principal)},{name:"_SALES_ANALYSIS_COST",showSym:!0,id:"cost",value:this.profitTotal.cost,popValue:this.increaseRate(this.profitTotalLast.cost,this.profitTotal.cost)},{name:"_SALES_ANALYSIS_PROFIT",showSym:!0,id:"gross",value:this.profitTotal.profit,popValue:this.increaseRate(this.profitTotalLast.profit,this.profitTotal.profit)},{name:"_COMMON_TH_GROSS_MARGIN",value:this.profitTotal.profitRate?this.profitTotal.profitRate+"%":"-",id:"rate",popValue:this.increaseRate(this.profitTotalLast.profitRate,this.profitTotal.profitRate)},{name:"_SALES_ANALYSIS_REFUND_NUM",id:"refundNum",value:this.profitTotal.quantityRefund,popValue:this.increaseRate(this.profitTotalLast.quantityRefund,this.profitTotal.quantityRefund)},{name:"_SALES_ANALYSIS_REFUND_MONEY_RATE",id:"refundMoneyRate",value:this.profitTotal.refundRate?this.profitTotal.refundRate+"%":"-",popValue:this.increaseRate(this.profitTotalLast.refundRate,this.profitTotal.refundRate)},{name:"_AD_PERFORM_TH_PRODUCT_AD_ORDERS",id:"orders",value:this.profitTotal.orders,popValue:this.increaseRate(this.profitTotalLast.orders,this.profitTotal.orders)},{name:"_COMMON_TH_AD_SALES",showSym:!0,id:"ad_sales",value:this.profitTotal.ad_sales,popValue:this.increaseRate(this.profitTotalLast.ad_sales,this.profitTotal.ad_sales)},{name:"_COMMON_TH_AD_COSTS",value:this.profitTotal.costCpc,id:"costCpc",showSym:!0,popValue:this.increaseRate(this.profitTotalLast.costCpc,this.profitTotal.costCpc)},{name:"_AD_PERFORM_TH_PRODUCT_AD_ORDER",id:"ad_quantity",value:this.profitTotal.ad_quantity,popValue:this.increaseRate(this.profitTotalLast.ad_quantity,this.profitTotal.ad_quantity)},{name:"_COMMON_TH_AD_ACOS",id:"ad_acos",value:this.profitTotal.ad_acos?parseFloat((100*this.profitTotal.ad_acos).toFixed(2))+"%":"-",popValue:this.increaseRate(this.profitTotalLast.ad_acos,this.profitTotal.ad_acos)},{name:"_COMMON_TH_AD_ROAS",id:"roas",value:this.profitTotal.roas,popValue:this.increaseRate(this.profitTotalLast.roas,this.profitTotal.roas)},{name:"_COMMON_TH_AD_TACOS",id:"tacos",value:this.profitTotal.tacos?parseFloat(this.profitTotal.tacos.toFixed(2))+"%":"-",popValue:this.increaseRate(this.profitTotalLast.tacos,this.profitTotal.tacos)}];return t},showList:function(){var t=[{name:"_COMMON_TH_VISITS",id:"sumVisits",value:this.profitTotal.sumVisits},{name:"businessreport_salesconvrtrate",id:"sumConv",value:this.profitTotal.sumConv?this.profitTotal.sumConv+"%":"-"},{name:"businessreport_orderconvrtrate",id:"sumOrderConv",value:this.profitTotal.sumOrderConv?this.profitTotal.sumOrderConv+"%":"-"},{name:"_COMMON_TH_PAGE_VIEWS",id:"pageVisits",value:this.profitTotal.pageVisits},{name:"_COMMON_TH_BUY_BOX_PERCENTAGE",id:"buyButtonRate",value:this.profitTotal.buyButtonRate?this.profitTotal.buyButtonRate+"%":"-"},{name:"_COMMON_TH_TOTAL_SALES_COUNT",id:"totalQuantity",value:this.profitTotal.totalQuantity,popValue:this.increaseRate(this.profitTotalLast.totalQuantity,this.profitTotal.totalQuantity)},{name:"_COMMON_TH_NET_SALES_COUNT",id:"sumQuantity",value:this.profitTotal.sumQuantity,popValue:this.increaseRate(this.profitTotalLast.quantity,this.profitTotal.sumQuantity)},{name:"_COMMON_TH_SALES_MOUNT",showSym:!0,id:"totalPrincipal",value:this.profitTotal.totalPrincipal,popValue:this.increaseRate(this.profitTotalLast.totalPrincipal,this.profitTotal.totalPrincipal)},{name:"_SALES_ANALYSIS_NET_SALES",showSym:!0,id:"principal",value:this.profitTotal.principal,popValue:this.increaseRate(this.profitTotalLast.principal,this.profitTotal.principal)},{name:"_SALES_ANALYSIS_COST",showSym:!0,id:"cost",value:this.profitTotal.cost,popValue:this.increaseRate(this.profitTotalLast.cost,this.profitTotal.cost)},{name:"_SALES_ANALYSIS_PROFIT",showSym:!0,id:"gross",value:this.profitTotal.profit,popValue:this.increaseRate(this.profitTotalLast.profit,this.profitTotal.profit)},{name:"_COMMON_TH_GROSS_MARGIN",value:this.profitTotal.profitRate?this.profitTotal.profitRate+"%":"-",id:"rate",popValue:this.increaseRate(this.profitTotalLast.profitRate,this.profitTotal.profitRate)},{name:"_SALES_ANALYSIS_REFUND_NUM",id:"refundNum",value:this.profitTotal.quantityRefund,popValue:this.increaseRate(this.profitTotalLast.quantityRefund,this.profitTotal.quantityRefund)},{name:"_SALES_ANALYSIS_REFUND_MONEY_RATE",id:"refundMoneyRate",value:this.profitTotal.refundRate?this.profitTotal.refundRate+"%":"-",popValue:this.increaseRate(this.profitTotalLast.refundRate,this.profitTotal.refundRate)},{name:"_AD_PERFORM_TH_PRODUCT_AD_ORDERS",id:"orders",value:this.profitTotal.orders,popValue:this.increaseRate(this.profitTotalLast.orders,this.profitTotal.orders)},{name:"_COMMON_TH_AD_SALES",showSym:!0,id:"ad_sales",value:this.profitTotal.ad_sales,popValue:this.increaseRate(this.profitTotalLast.ad_sales,this.profitTotal.ad_sales)},{name:"_COMMON_TH_AD_COSTS",value:this.profitTotal.costCpc,id:"costCpc",showSym:!0,popValue:this.increaseRate(this.profitTotalLast.costCpc,this.profitTotal.costCpc)},{name:"_AD_PERFORM_TH_PRODUCT_AD_ORDER",id:"ad_quantity",value:this.profitTotal.ad_quantity,popValue:this.increaseRate(this.profitTotalLast.ad_quantity,this.profitTotal.ad_quantity)},{name:"_COMMON_TH_AD_ACOS",id:"ad_acos",value:this.profitTotal.ad_acos?this.profitTotal.ad_acos+"%":"-",popValue:this.increaseRate(this.profitTotalLast.ad_acos,this.profitTotal.ad_acos)},{name:"_COMMON_TH_AD_ROAS",id:"roas",value:this.profitTotal.roas,popValue:this.increaseRate(this.profitTotalLast.roas,this.profitTotal.roas)},{name:"_COMMON_TH_AD_TACOS",id:"tacos",value:this.profitTotal.tacos?this.profitTotal.tacos+"%":"-",popValue:this.increaseRate(this.profitTotalLast.tacos,this.profitTotal.tacos)}];return t},timeDiff:function(){var t=Object(m["a"])(F()(this.rangeDate[0]).format("YYYY-MM-DD"),this.timeZone),e=Object(m["a"])(F()(this.rangeDate[1]).format("YYYY-MM-DD"),this.timeZone);return e.diff(t,"days")+1},showSelectTmp:function(){return 1==this.isSku?this.skuShowList:this.showList},nowRangeDate:function(){var t=Object(m["h"])({dateScope:null,dateRange:this.rangeDate});return{startTimestamp:t[0],endTimestamp:t[1]}},lastRangeDate:function(){var t=this.timeDiff||1;if(this.timeDiff)e=Object(m["y"])(Object(m["m"])(t,Object(m["a"])(F()(this.rangeDate[0]).format("YYYY-MM-DD"),this.timeZone)));else var e=Object(m["y"])(Object(m["m"])(t,Object(m["a"])(F()(this.rangeDate[0]).format("YYYY-MM-DD"),this.timeZone)));var a=Object(m["a"])(Object(m["m"])(1,Object(m["a"])(F()(this.rangeDate[0]).format("YYYY-MM-DD"),this.timeZone)).endOf("day"),this.timeZone),n=e.format("YYYY-MM-DD"),i=a.format("YYYY-MM-DD");return console.log("详情页a: "+n+";b: "+i),{lastPeriodStart:e,lastPeriodEnd:a}}}),watch:{selectBlock:{immediate:!0,handler:function(){this.selectBlock.length===this.showSelectTmp.length?this.selectAll=!0:this.selectAll=!1,window.localStorage.setItem("sales_analysis_product_analysis_product_detail_selects_v3",JSON.stringify(this.selectBlock))}},dateSelectType:function(t,e){if("hot"===t&&t!==e){this.lastSelectBlock=this.selectBlock;var a=[];this.selectBlock.forEach((function(t){Tt.indexOf(t)>-1&&a.push(t)})),a.length||a.push(Tt[0]),this.selectBlock=a,this.profitHours.length||this.getTotalProfitHours()}else"hot"!==t&&"hot"===e&&(this.selectBlock=this.lastSelectBlock)},showSelectTmp:{immediate:!0,handler:function(t){this.selectBlock.length||(this.selectBlock=["sumQuantity"])}},rangeDate:{immediate:!0,handler:"initDebounce"}},methods:{changeAllFn:function(){this.selectAll?this.selectBlock=this.showSelectTmp.map((function(t){return t.id})):this.selectBlock=["sumQuantity"]},dateScopeFn:function(t){this.dateScope=t},getTotalProfitHours:function(){var t=this,e={dasCurrentShop:t.baseModel.shopId};1==t.isSku?e.sku=t.baseModel.sku:1==t.isParent?e.parentAsin=t.baseModel.parentAsin:e.asin=t.baseModel.asin;var a=Object(m["h"])({dateScope:null,dateRange:this.rangeDate},this.timeZone);e.startTimestamp=a[0],e.endTimestamp=a[1],Object(tt["cb"])(e).then((function(e){var a=e.status,n=e.content;1==a&&(t.profitHours=n.map((function(t){return Object(s["a"])(Object(s["a"])({},t),{},{totalPrincipal:t.principal,totalQuantity:t.quantityOrdered,date:t.hour+":00"})})))}))},clickItemFn:function(t){this.$emit("click-item",t)},init:function(t){var e,a,n=this;n.profitTotal={},n.profitHours=[],a=Object(m["a"])(F()(this.rangeDate[1]).format("YYYY-MM-DD"),this.timeZone),e=Object(m["a"])(F()(this.rangeDate[0]).format("YYYY-MM-DD"),this.timeZone),n.addon.dates=Object(m["k"])(e,a),n.getDetail(),n.getDetailLast(),n.getMemoList(),"hot"===n.dateSelectType&&n.getTotalProfitHours(),console.log("更新数据",t)},getMemoList:function(){var t=this,e={asin:1==t.isParent?t.baseModel.parentAsin:t.baseModel.asin,dasCurrentShop:t.baseModel.shopId};e.startDate=Object(m["a"])(this.rangeDate[0],this.timeZone).format("YYYY-MM-DD"),e.endDate=Object(m["a"])(this.rangeDate[1],this.timeZone).format("YYYY-MM-DD"),Object(f["q"])(e).then((function(e){var a=e.status,n=e.content;t.addon.memosData.list={},1==a&&n.map((function(e){t.addon.memosData.list[e.date]={id:e.id,content:e.content}}))}))},getDetail:function(){var t=this,e={dasCurrentShop:t.baseModel.shopId},a={dasCurrentShop:t.baseModel.shopId},n={};1==t.isSku?(a.sku=t.baseModel.sku,n.searchKey=t.baseModel.sku,n.sku=t.baseModel.sku):1==t.isParent?(a.parentAsin=t.baseModel.parentAsin,n.searchKey=t.baseModel.parentAsin,n.parentAsin=t.baseModel.parentAsin,e.isParent=t.isParent,e.asin=t.baseModel.parentAsin):(a.asin=t.baseModel.asin,e.isParent=t.isParent,e.asin=t.baseModel.asin,n.searchKey=t.baseModel.asin,n.asin=t.baseModel.asin),e.startDate=Object(m["a"])(this.rangeDate[0],this.timeZone).format("YYYY-MM-DD"),e.endDate=Object(m["a"])(this.rangeDate[1],this.timeZone).format("YYYY-MM-DD"),a.startDate=Object(m["a"])(this.rangeDate[0],this.timeZone).format("YYYY-MM-DD"),a.endDate=Object(m["a"])(this.rangeDate[1],this.timeZone).format("YYYY-MM-DD"),n.startDate=Object(m["a"])(this.rangeDate[0],this.timeZone).format("YYYY-MM-DD"),n.endDate=Object(m["a"])(this.rangeDate[1],this.timeZone).format("YYYY-MM-DD");var i=[];t.currentShop,t.baseModel,i=1==t.isSku?[{req:T["r"],param:[n,t.baseModel.shopId]},{req:T["f"],param:[a]}]:[{req:T["r"],param:[n,t.baseModel.shopId]},{req:T["f"],param:[a]},{req:T["t"],param:[e]}],Promise.all(i.map((function(t){return t.req.apply(t,Object(r["a"])(t.param))}))).then((function(e){var a=Object(k["a"])(e,3),n=a[0],i=a[1],o=a[2];1==n.status&&(t.profitTotal=Object.assign({cost:0,tacos:0,roas:0,profit:0,profitRate:0,refundRate:0,tax:0,financeTax:0,costCommission:0,costCpc:0,costFbafee:0,costLogistics:0,costOther:0,costPurchase:0,financeCost:0,financePrincipal:0,quantity:0,principal:0,totalPrincipal:0,totalQuantity:0,realPrincipal:0,shippingcharge:0,promotion:0,orders:0,quantityRefund:0,refund:0},n.content?n.content:{}),t.profitTotal.sumQuantity=n.content.quantity||0),1!=t.isSku&&1==o.status&&(t.profitTotal.buyButtonRate=o.content.buyButtonRate?Math.round(o.content.buyButtonRate):0,t.profitTotal.buyButtonVisits=o.content.buyButtonVisits?o.content.buyButtonVisits:0,t.profitTotal.pageVisits=o.content.pageVisits?o.content.pageVisits:0,t.profitTotal.sumAmount=o.content.sumAmount?o.content.sumAmount:0,t.profitTotal.sumConv=o.content.sumConv?o.content.sumConv:0,t.profitTotal.sumOrderConv=o.content.orderSessionPercentage?o.content.orderSessionPercentage:0,t.profitTotal.sumVisits=o.content.sumVisits?o.content.sumVisits:0),t.profitTotal.tacos=n.content.totalPrincipal?parseFloat((n.content.costCpc/n.content.totalPrincipal*100).toFixed(2)):0,t.profitTotal.roas=0===i.content.spend?0:parseFloat((i.content.sales/i.content.spend).toFixed(2)),1==i.status&&St.forEach((function(e){1==t.isSku?t.profitTotal["ad_"+e]=i.content[e]||0:~Ot.indexOf(e)?t.profitTotal["ad_"+e]=parseFloat((100*(i.content[e]||0)).toFixed(2)):t.profitTotal["ad_"+e]=i.content[e]||0})),t.getDataDays()}))},getDetailLast:function(){var t=this,e={},a={dasCurrentShop:~~t.baseModel.shopId};1==t.isSku?(a.sku=t.baseModel.sku,e.sku=t.baseModel.sku):1==t.isParent?(a.parentAsin=t.baseModel.parentAsin,e.parentAsin=t.baseModel.parentAsin):(a.asin=t.baseModel.asin,e.asin=t.baseModel.asin),e.startDate=this.lastRangeDate.lastPeriodStart.format("YYYY-MM-DD"),e.endDate=this.lastRangeDate.lastPeriodEnd.format("YYYY-MM-DD"),a.startDate=this.lastRangeDate.lastPeriodStart.format("YYYY-MM-DD"),a.endDate=this.lastRangeDate.lastPeriodEnd.format("YYYY-MM-DD"),Promise.all([Object(T["r"])(e,t.baseModel.shopId),Object(T["f"])(a)]).then((function(e){var a=Object(k["a"])(e,2),n=a[0],i=a[1];1==n.status&&1==i.status&&(t.profitTotalLast=Object.assign({cost:0,tacos:0,roas:0,profit:0,profitRate:0,refundRate:0,tax:0,financeTax:0,costCommission:0,costCpc:0,costFbafee:0,costLogistics:0,costOther:0,costPurchase:0,financeCost:0,financePrincipal:0,quantity:0,principal:0,totalPrincipal:0,totalQuantity:0,realPrincipal:0,shippingcharge:0,promotion:0,orders:0,quantityRefund:0,refund:0},n.content?n.content:{}),t.profitTotalLast.tacos=n.content.totalPrincipal?parseFloat((n.content.costCpc/n.content.totalPrincipal*100).toFixed(2)):0,t.profitTotalLast.roas=0===i.content.spend?0:parseFloat((i.content.sales/i.content.spend).toFixed(2)),St.forEach((function(e){1==t.isSku?t.profitTotalLast["ad_"+e]=i.content[e]||0:~Ot.indexOf(e)?t.profitTotalLast["ad_"+e]=parseFloat((100*(i.content[e]||0)).toFixed(2)):t.profitTotalLast["ad_"+e]=i.content[e]||0})))}))},getDataDays:function(){var t=this,e={dasCurrentShop:t.baseModel.shopId},a={dasCurrentShop:t.baseModel.shopId},n={};t.dataDays=[],1==t.isSku?(a.sku=t.baseModel.sku,n.sku=t.baseModel.sku):1==t.isParent?(a.parentAsin=t.baseModel.parentAsin,e={dasCurrentShop:t.baseModel.shopId,asin:t.baseModel.parentAsin,isParent:1},n.parentAsin=t.baseModel.parentAsin):(a.asin=t.baseModel.asin,e={dasCurrentShop:t.baseModel.shopId,asin:t.baseModel.asin,isParent:0},n.asin=t.baseModel.asin),e.startDate=Object(m["a"])(this.rangeDate[0],this.timeZone).format("YYYY-MM-DD"),e.endDate=Object(m["a"])(this.rangeDate[1],this.timeZone).format("YYYY-MM-DD"),a.startDate=Object(m["a"])(this.rangeDate[0],this.timeZone).format("YYYY-MM-DD"),a.endDate=Object(m["a"])(this.rangeDate[1],this.timeZone).format("YYYY-MM-DD"),n.startDate=F()(this.rangeDate[0]).format("YYYY-MM-DD"),n.endDate=F()(this.rangeDate[1]).format("YYYY-MM-DD");var i=[];i=1==t.isSku?[{req:T["s"],param:[n,t.baseModel.shopId]},{req:T["g"],param:[a,t.baseModel.shopId]}]:[{req:T["s"],param:[n,t.baseModel.shopId]},{req:T["g"],param:[a,t.baseModel.shopId]},{req:T["c"],param:[e]}],Promise.all(i.map((function(t){return t.req.apply(t,Object(r["a"])(t.param))}))).then((function(e){var a=Object(k["a"])(e,3),n=a[0],i=a[1],o=a[2],l={};if(t.addon.dates.forEach((function(t){l[t]={buyButtonRate:0,buyButtonVisits:0,pageVisits:0,sumConv:0,sumOrderConv:0,sumAmount:0,sumQuantity:0,tacos:0,roas:0,sumVisits:0,sumOrderQuantityTrend:0,sumQuantityTrend:0}})),1!=t.isSku&&1==o.status&&o.content.forEach((function(t){t.sumOrderConv=t.orderSessionPercentage,t.sumQuantityTrend=t.sumQuantity,t.sumOrderQuantityTrend=t.sumOrderQuantity;var e=Object(s["a"])({},t);l[t.date]&&(l[t.date]=e)})),1==n.status){var c=n.content?n.content:[];c.forEach((function(e){l[e.date]&&(l[e.date].costCpc=e.costCpc?e.costCpc:0,l[e.date].orders=e.orders?e.orders:0,l[e.date].sumQuantity=e.quantity?e.quantity:0,l[e.date].principal=e.principal?e.principal:0,l[e.date].totalPrincipal=e.totalPrincipal?e.totalPrincipal:0,l[e.date].totalQuantity=e.totalQuantity?e.totalQuantity:0,l[e.date].cost=e.cost?e.cost:0,l[e.date].gross=e.profit?e.profit:0,l[e.date].rate=e.profitRate?e.profitRate:0,l[e.date].refundNum=e.quantityRefund?e.quantityRefund:0,l[e.date].refundMoneyRate=e.refundRate?e.refundRate:0,1==t.isSku&&(l[e.date].sumAmount=e.totalPrincipal?e.totalPrincipal:0))}))}1==i.status&&i.content.forEach((function(t){St.forEach((function(e){~Ot.indexOf(e)?l[t.date]&&(l[t.date]["ad_"+e]=parseFloat((100*(t[e]||0)).toFixed(2))):l[t.date]&&(l[t.date]["ad_"+e]=t[e]||0)}))}));var u=function(e){l[e].date=e,0==t.dataDays.filter((function(t){return t.date==e})).length&&(t.dataDays=[].concat(Object(r["a"])(t.dataDays),[l[e]]).map((function(t){try{t.tacos=0===t.totalPrincipal?0:parseFloat((t.costCpc/t.totalPrincipal*100).toFixed(2)),t.roas=0===t.ad_spend?0:parseFloat((t.ad_sales/t.ad_spend).toFixed(2))}catch(e){}return t})))};for(var d in l)u(d)}))},showAlart:function(t,e){1==t.length&&t.indexOf(e.id)>-1&&this.$store.dispatch("app/updatePop",{title:this.$t("_SALES_ANALYSIS_LIMIT_CHECK_MIN"),icon:"AlertCircleIcon",variant:"danger"})},increaseRate:function(t,e){var a;return a=t>0?(100*(e/t-1)).toFixed(2):t<0?(100*(1-e/t)).toFixed(2):"-",a},goAuthAd:function(){this.$router.push({path:"/ppc_api_auth",query:{module:"AdManager",authModule:"adv",step:2}})}}},xt=At,Ct=(a("98f9"),a("f581"),Object(v["a"])(xt,w,M,!1,null,"3b280bc8",null)),Et=Ct.exports,wt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"productAnalysisCoreWrap formPadding",attrs:{id:t.$options.name}},[a("div",{staticClass:"d-flex justify-content--f-s"},[a("quick-btn-dateselect",{attrs:{id:t.$options.name+"date",multiple:"",dateOption:t.dateOption,customClass:"justify-content--f-s"}}),a("b-form-radio-group",{directives:[{name:"router-save",rawName:"v-router-save"}],staticClass:"dayWeekMonthWrap",attrs:{"button-variant":"outline-nobg",options:t.dateSelectOptions,buttons:""},model:{value:t.costAndSalesDateSelectType,callback:function(e){t.costAndSalesDateSelectType=e},expression:"costAndSalesDateSelectType"}})],1),a("line-chart",{key:"lineChartWrap"+t.costAndSalesDateSelectType,staticClass:"lineChartWrap",attrs:{noDownload:"",isSingleY:!1,dateSelectType:t.costAndSalesDateSelectType,selectBlock:["totalQuantity","cost"],rangeDate:t.rangeDate,profitType:t.baseModel.profitType,profitDays:t.dataDays}})],1)},Mt=[],kt={name:"costAndSales",components:{lineChart:rt,QuickBtnDateselect:vt["h"]},data:function(){return{dataDays:[],costAndSalesDateSelectType:"days",dateOption:{dateSet:[0,1,7,15,30],dateScope:this.baseModel.rangeDate?null:7,dateRange:this.baseModel.rangeDate||[]}}},props:["baseModel"],watch:{rangeDate:{immediate:!0,handler:"getDataDays"}},computed:{rangeDate:function(){return this.dateOption.dateRange.length?this.dateOption.dateRange:Object(m["g"])({dateScope:this.dateOption.dateScope,dateRange:null}).map((function(t){return Object(m["a"])(t).format("YYYY-MM-DD")}))},dateSelectOptions:function(){return[{text:this.$t("_COMMON_DAY_LABEL"),value:"days"},{text:this.$t("_COMMON_WEEK_LABEL"),value:"week"},{text:this.$t("_COMMON_MONTH_LABEL"),value:"month"}]},isSku:function(){return this.baseModel.isSku},isParent:function(){return this.baseModel.isParent}},methods:{getDataDays:function(){var t=this,e={};1==t.isSku?e.sku=t.baseModel.sku:1==t.isParent?e.parentAsin=t.baseModel.parentAsin:e.asin=t.baseModel.asin,t.dateOption.dateScope||0==t.dateOption.dateScope?e.dateScope=t.dateOption.dateScope:(e.startDate=F()(t.dateOption.dateRange[0]).format("YYYY-MM-DD"),e.endDate=F()(t.dateOption.dateRange[1]).format("YYYY-MM-DD")),Object(T["s"])(e,t.baseModel.shopId).then((function(e){var a={};if(1==e.status){var n=e.content?e.content:[];t.dataDays=Object(m["j"])(t.dateOption).map((function(t){return a={date:t},a})),t.dataDays.forEach((function(t){var e=n.find((function(e){return e.date==t.date}));t.cost=e&&e.cost?e.cost:0,t.totalQuantity=e&&e.totalQuantity?e.totalQuantity:0}))}}))}}},It=kt,Dt=(a("3707"),Object(v["a"])(It,wt,Mt,!1,null,"3fe7260a",null)),Lt=Dt.exports,Rt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"productAnalysisCoreWrap formPadding",attrs:{id:t.$options.name}},[a("b-row",[a("b-col",[a("common-search-form",{attrs:{formId:"product_analysis_parent_analysis_category_rank_search",options:t.formOptions},model:{value:t.select,callback:function(e){t.select=e},expression:"select"}})],1)],1),a("div",{staticClass:"categoryRankWrap"},[a("quick-btn-dateselect",{attrs:{id:"date",dateOption:t.dateOption,customClass:"justify-content--f-s"}}),a("line-chart-list",{key:t.lineKey,staticClass:"lineChartWrap",attrs:{dateSelectType:"days",inverse:"",yAxisMin:1,addon:t.addon,selectBlock:t.selectBlock,rangeDate:t.rangeDate,profitType:t.baseModel.profitType,profitDays:t.profitDays},on:{"click-item":t.clickItemFn},scopedSlots:t._u([t.select.nodata?{key:"noData",fn:function(){return[a("div",{staticClass:"noRankWrap"},[a("p",[t._v(t._s(3==t.currentAsinStatus?t.$t("_CATEGORY_RANK_PACKAGE_TIMEOUT"):t.$t("_TREND_PLACEHOLDER_CATEGORY_RANK")))]),3==t.currentAsinStatus?a("b-button",{attrs:{variant:"link"},on:{click:t.goRankUrl}},[t._v(t._s(t.$t("asintrack_list_title1")))]):a("b-button",{attrs:{variant:"link"},on:{click:t.handleAdd}},[t._v(t._s(t.$t("_TREND_BUTTON_START_TRACKING")))])],1)]},proxy:!0}:null],null,!0)})],1)],1)},Nt=[],Pt=a("1da1"),jt=(a("96cf"),a("4fad"),a("5222")),$t=a("88a6"),Ft=a("d37c"),Bt=a("0aa1"),Yt={name:"categoryRank",props:{baseModel:{}},components:{commonSearchForm:jt["a"],lineChart:rt,lineChartList:Ft["a"],QuickBtnDateselect:vt["h"]},data:function(){return{lineKey:"lineKey",dataDays:[],visitArr:[],dateOption:{dateSet:[0,1,7,15,30],dateScope:this.baseModel.rangeDate?null:7,dateRange:this.baseModel.rangeDate||[]},currentAsinStatus:"",select:{categories:[],option:[],asins:[],asin:"",info:null,change:!0,nodata:!1,available:!0,limit:0,memos:{},checkVisit:!1,resultCache:null},addon:{dates:null,memosData:{list:{},flag:null}}}},computed:{selectBlock:function(){var t=this;return this.select.categories.filter((function(e){return t.select.option.indexOf(e.value)>-1})).map((function(t){return t.label}))},profitDays:function(){if(this.select.resultCache){var t=[],e={};Object.entries(this.select.resultCache).forEach((function(a){t.push(a[0]),e[a[0]]||(e[a[0]]={}),a[1].forEach((function(t){var n=Object(m["a"])(t.time).format("YYYY-MM-DD");e[a[0]][n]=t.index}))}));var a=JSON.parse(JSON.stringify(this.dataDays));return a.map((function(a){return t.forEach((function(t){e[t][a.date]&&(a[t]=e[t][a.date]||null)})),a}))}},rangeDate:function(){return this.dateOption.dateRange.length?this.dateOption.dateRange:Object(m["g"])({dateScope:this.dateOption.dateScope,dateRange:null}).map((function(t){return Object(m["a"])(t).format("YYYY-MM-DD")}))},formOptions:function(){return 1==this.isParent?[{type:"v-select",width:"272px",id:"asin",clearable:!1,placeholder:this.$t("_TREND_SELECT"),options:this.select.asins.map((function(t){return t.label=t.key,t.value=t.key,t}))},{type:"v-select",minWidth:"272px",id:"option",clearable:!1,multiple:!0,placeholder:this.$t("_TREND_SELECT"),options:this.select.categories}]:[{type:"v-select",minWidth:"272px",id:"option",clearable:!1,multiple:!0,placeholder:this.$t("_TREND_SELECT"),options:this.select.categories}]},isSku:function(){return this.baseModel.isSku},isParent:function(){return this.baseModel.isParent}},watch:{dateOption:{deep:!0,handler:"init"},"select.asin":"changeCategoryAsin","select.option":function(){this.lineKey=Math.random()}},methods:{goRankUrl:function(){var t;this.$store.dispatch(Bt["k"],parseInt(null===(t=this.baseModel)||void 0===t?void 0:t.shopId)),this.$router.push({path:"/sales_analysis/sales_rank",query:{searchKey:this.select.asin}})},handleAdd:function(){var t=this,e=this;if(e.select.available){if(1==this.isParent)var a=[e.select.asin];else a=[e.baseModel.asin];Object($t["c"])({asin:a},e.baseModel.shopId).then((function(a){var n=a.status,i=a.content;1==n&&(t.$store.dispatch("app/updatePop",{title:i,icon:"EditIcon",variant:"success"}),e.getCategoryData())}))}else this.$store.dispatch("app/updatePop",{title:this.$t("_COMMON_REACH_PACKAGE_LIMIT")+this.$t("_DIALOG_BUTTON_UPGRADE"),icon:"EditIcon",variant:"success"})},clickItemFn:function(t){this.$emit("click-item",t)},changeCategoryAsin:function(t,e){var a=this;if(e){var n=this.select;n.asin=t,n.nodata=!1,n.asins.forEach((function(e){if(e.key==t){if(1==e.status||3==e.status){var i=0;n.categories=Object.keys(e.rank).map((function(t){return i++,{value:i-1,label:t}})),n.option=n.categories.map((function(t){return t.value})),3==e.status&&(n.nodata=!0),a.currentAsinStatus=e.status}else-1==e.status&&(a.getCategoryTrack(),n.nodata=!0,n.categories=[],n.option=[]);n.resultCache=e.rank}})),this.lineKey=Math.random()}},getCategoryTrack:function(){var t=this;Object($t["p"])({dasCurrentShop:this.baseModel.shopId}).then((function(e){var a=t.select,n=e.status,i=e.content;1==n&&(i.limit<i.number&&(a.available=!1),a.limit=i.limit)}))},getMemoList:function(){var t=this,e={asin:1==t.isParent?t.baseModel.parentAsin:t.baseModel.asin,dasCurrentShop:t.baseModel.shopId};console.log(this.dateOption,"dateOptiondateOption"),t.dateOption.dateScope?e.daysAgo=t.dateOption.dateScope:0==t.dateOption.dateScope?(e.endDate=Object(m["q"])().format("YYYY-MM-DD"),e.startDate=Object(m["q"])().format("YYYY-MM-DD")):t.dateOption.dateRange?(e.endDate=t.dateOption.dateRange[0],e.startDate=t.dateOption.dateRange[1]):(e.endDate=t.baseModel.rangeDate[0],e.startDate=t.baseModel.rangeDate[1]),Object(f["q"])(e).then((function(e){var a=e.status,n=e.content;t.addon.memosData.list={},1==a&&n.map((function(e){t.addon.memosData.list[e.date]={id:e.id,content:e.content}})),t.getCategoryData()}))},getCategoryData:function(){var t=this,e=this.select;e.memos=this.addon.memosData.list,e.categories=[],e.info=null,e.nodata=!1;var a={dasCurrentShop:this.baseModel.shopId};if(1==this.isParent?a.parentAsin=this.baseModel.parentAsin:a.asins=this.baseModel.asin,this.dateOption.dateScope||0==this.dateOption.dateScope){var n=Object(m["d"])(this.dateOption.dateScope);a.startTimestamp=n[0],a.endTimestamp=n[1]}else a.startTimestamp=Object(m["a"])(F()(this.dateOption.dateRange[0])).startOf("day").valueOf(),a.endTimestamp=Object(m["a"])(F()(this.dateOption.dateRange[1])).endOf("day").valueOf();Object($t["j"])(a).then((function(a){var n=a.status,i=a.content;if(1==n)if(1==t.isParent){var o=[];if(Object.keys(i).forEach((function(t){var e=i[t];e.key=t,o.push(e)})),e.asins=o,e.asins.length>0){if(e.asin)var r=e.asins.map((function(t){return t.key})).indexOf(e.asin);else r=0;if(e.asin=e.asins[r].key,1==e.asins[r].status){if(Object.keys(e.asins[r].rank).length>0){var s=0;e.categories=Object.keys(e.asins[r].rank).map((function(t){return s++,{value:s-1,label:t}})),e.option=e.categories.map((function(t){return t.value}))}}else-1==e.asins[r].status?(t.getCategoryTrack(),e.nodata=!0):3==e.asins[r].status&&(e.nodata=!0,t.currentAsinStatus=3);e.resultCache=e.asins[r].rank}else e.resultCache=null}else{if(e.info=i[t.baseModel.asin],1==e.info.status){if(Object.keys(e.info.rank).length>0){var l=0;e.categories=Object.keys(e.info.rank).map((function(t){return l++,{value:l-1,label:t}})),e.option=e.categories.map((function(t){return t.value}))}if(""!=e.info.defaultCategory&&e.info.rank[e.info.defaultCategory]&&0!=e.info.rank[e.info.defaultCategory].length){var c={};e.info.rank[e.info.defaultCategory].forEach((function(t){var e=Object(m["a"])(t.time).format("YYYY-MM-DD");c[e]=t.index})),t.latestCategoryName=""==e.info.defaultCategory?"--":e.info.defaultCategory,t.latestCategoryRank=c[t.today]||c[t.yesterday]||"--"}else t.latestCategoryName="--",t.latestCategoryRank="--"}else-1==e.info.status?(t.getCategoryTrack(),e.nodata=!0):3==e.info.status&&(t.latestCategoryName="--",t.latestCategoryRank="--");e.resultCache=e.info.rank}else e.resultCache=null}))},getDataDays:function(){var t=this;return Object(Pt["a"])(regeneratorRuntime.mark((function e(){var a,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t,n={dasCurrentShop:a.baseModel.shopId},n=1==a.isParent?{dasCurrentShop:a.baseModel.shopId,asin:a.baseModel.parentAsin,isParent:1}:{dasCurrentShop:a.baseModel.shopId,asin:a.baseModel.asin,isParent:0},i=Object(m["h"])(a.dateOption),n.startTimestamp=i[0],n.endTimestamp=i[1],e.abrupt("return",Object(T["c"])(n).then((function(t){var e={};a.dataDays=[],a.addon.dates.forEach((function(t){e[t]={buyButtonRate:0,buyButtonVisits:0,pageVisits:0,sumConv:0,sumAmount:0,sumVisits:0}})),a.isSku||1==t.status&&t.content.forEach((function(t){var a=Object(s["a"])({},t);e[Object(m["a"])(t.time).format("YYYY-MM-DD")]&&(e[Object(m["a"])(t.time).format("YYYY-MM-DD")]=a)}));var n=function(t){e[t].date=t,0==a.dataDays.filter((function(e){return e.date==t})).length&&(a.dataDays=[].concat(Object(r["a"])(a.dataDays),[e[t]]))};for(var i in e)n(i);return a.visitArr=a.dataDays.map((function(t){return t.sumVisits})),t})));case 7:case"end":return e.stop()}}),e)})))()},init:function(){var t=this;return Object(Pt["a"])(regeneratorRuntime.mark((function e(){var a,n,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t,a.dateOption.dateScope||0==a.dateOption.dateScope?(o=Object(m["a"])(),n=o.clone().subtract(a.dateOption.dateScope,"days"),i=o.clone().subtract(1,"days")):(n=Object(m["a"])(F()(a.dateOption.dateRange[0]).format("YYYY-MM-DD")),i=Object(m["a"])(F()(a.dateOption.dateRange[1]).format("YYYY-MM-DD"))),a.addon.dates=Object(m["k"])(n,i),a.baseModel){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,a.getDataDays();case 7:a.getMemoList();case 8:case"end":return e.stop()}}),e)})))()}},mounted:function(){this.init()}},Ut=Yt,zt=(a("7410"),Object(v["a"])(Ut,Rt,Nt,!1,null,"24d7f8c6",null)),Vt=zt.exports,Ht=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"deep-loading",rawName:"v-deep-loading",value:t.dataLoading,expression:"dataLoading"}],staticClass:"productAnalysisCoreWrap formPadding",attrs:{id:t.$options.name}},[a("div",{staticClass:"flex-between",class:t.$options.name+"__header"},[a("div",{staticClass:"d-flex headerSearchTopWrap"},[a("common-search-form",{attrs:{formId:"product_analysis_parent_analysis_category_rank_search",options:t.formOptions},model:{value:t.select,callback:function(e){t.select=e},expression:"select"}}),a("quick-btn-dateselect",{attrs:{id:"date",dateOption:t.dateOption,routerSave:!1,customClass:"justify-content--f-s"}}),a("span",{staticClass:"g-link-btn p-t-4 m-l-12",on:{click:function(e){t.showTipModal=!0}}},[t._v(t._s(t.$t("cr_btn_nav_asin_tracker")))])],1),t.select.categories&&t.select.categories.length?a("div",{attrs:{id:"cr-detail-export__"+t._uid}},[a("button",{staticClass:"iconBlock d-flex align-items-center justify-content-center",attrs:{disabled:!t.$checkPermission.checkOut(t.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS)},on:{click:t.exportReport}},[a("feather-icon",{attrs:{icon:"DownloadIcon",size:"18"}}),a("div",{staticClass:"red-round"})],1)]):t._e(),t.$checkPermission.checkOut(t.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_BUSINESS)?t._e():a("b-tooltip",{attrs:{target:"cr-detail-export__"+t._uid,placement:"top"}},[t._v(" "+t._s(t.$t("_COMMON_EXPORT_TIP"))+" ")])],1),a("div",{staticClass:"categoryRankWrap m-t-12"},[t.select.nodata||t.asinNodata?[a("div",{staticClass:"noRankWrap"},[a("p",[t._v(t._s(3==t.currentAsinStatus?t.$t("_CATEGORY_RANK_PACKAGE_TIMEOUT"):t.$t("_TREND_PLACEHOLDER_CATEGORY_RANK")))]),3==t.currentAsinStatus?a("b-button",{attrs:{variant:"primary",size:"sm"},on:{click:t.goRankUrl}},[t._v(t._s(t.$t("asintrack_list_title1")))]):a("b-button",{attrs:{variant:"primary",size:"sm"},on:{click:t.handleAdd}},[t._v(t._s(t.$t("_TREND_BUTTON_START_TRACKING")))])],1)]:a("div",{staticClass:"d-flex"},[a("div",{class:t.$options.name+"__category-wrapper"},[a("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"-8px","margin-bottom":"4px","grid-gap":"4px"}},[a("b-form-checkbox",{staticClass:"smCheckbox",staticStyle:{display:"inline-block",margin:"0 2px"},attrs:{switch:""},on:{change:t.changeOpenTrans},model:{value:t.openTrans,callback:function(e){t.openTrans=e},expression:"openTrans"}}),a("lok",{style:{color:t.openTrans?"#5759F2":"#333",fontWeight:400},attrs:{"lok-key":"buyer_message_btn_trans"}}),a("span",{directives:[{name:"deep-loading",rawName:"v-deep-loading",value:t.openTransLoading,expression:"openTransLoading"}],staticClass:"deeploadingSm das-label-left"})],1),t.select.categories&&t.select.categories.length?t._l(t.select.categories,(function(e){return a("div",{key:e.value,staticClass:"radio-item",class:{"radio-item--active":e.label==t.selected},on:{click:function(a){a.stopPropagation(),t.selected=e.label}}},[a("b-form-radio",{staticClass:"d-flex",attrs:{value:e.label},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}},[t._v(" "+t._s(e.label)+" "),t.openTrans&&t.openTransObj[e.label]?a("div",{staticStyle:{"margin-bottom":"-6px",width:"275px"}},[a("over-limit-show",{attrs:{isTip:"",showLable:t.openTransObj[e.label]}})],1):t._e()])],1)})):a("emptyBlock",{attrs:{height:300}})],2),a("div",{staticClass:"flex-one",class:t.$options.name+"__echart-block"},[t.select.categories&&t.select.categories.length?[null!=t.selected?a("div",{class:t.$options.name+"__echart-block--current"},[t._v(" "+t._s(t.$t("_CATEGORY_RANK_CATEGORY"))+": "+t._s(t.selected)+" "),a("div",{staticClass:"d-flex align-items--center"},[a("span",{staticClass:"m-r-8"},[t._v(" "+t._s(t.$t("_KEYWORD_RANK_RANK_LATEST"))+": "+t._s(t.currentRank)+" ")]),t.rankChange<0?a("div",{staticClass:"down-status d-flex align-items--center"},[a("feather-icon",{attrs:{icon:"ArrowUpIcon",size:"14"}}),a("span",[t._v(" "+t._s(-t.rankChange)+" ")])],1):t.rankChange>0?a("div",{staticClass:"up-status d-flex align-items--center"},[a("feather-icon",{attrs:{icon:"ArrowDownIcon",size:"14"}}),a("span",[t._v(" "+t._s(t.rankChange)+" ")])],1):a("div",[t._v("--")])])]):t._e(),a("categoryRankLineChart",{key:t.lineKey,attrs:{dateSelectType:"days",isSku:t.isSku,addon:t.addon,selectBlock:t.selectBlockNew,profitDays:t.profitDays,info:t.select.resultCache,profitDays_secondary:t.profitDays_secondary,dateOption:t.dateOption,memos:t.memos},on:{"click-item":t.clickItemFn}})]:t._e()],2)])],2),a("custom-modal",{attrs:{width:500,visible:t.showTipModal,modalClass:t.$options.name+"__tracker-tip-modal",okTitle:t.$t("ae_btn_nav_tracker"),cancelTitle:t.$t("_COMMON_BUTTON_CANCEL"),title:""},on:{"update:visible":function(e){t.showTipModal=e},ok:t.goTrackPage}},[a("div",{staticClass:"text-center",staticStyle:{margin:"52px 24px 24px"}},[t._v(" "+t._s(t.$t("cr_nav_tip_asin_tracker"))+" ")])])],1)},Gt=[],Wt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.lineCharts?a("app-echart-line-custom",{key:t.echartKey,ref:"lineCharts0",attrs:{noCenterLine:"",optionData:t.optionData,extraSeries:{animation:!1},height:t.height}}):t._e(),t._t("noData")],2)},Kt=[],Zt=(a("25f0"),a("fb6a"),a("5319"),a("5b81"),a("80de")),qt={name:"lineChart",components:{AppEchartLineCustom:Q["a"]},props:{list:{type:Array,default:function(){return[]}},color:{},currencySymbol:{type:String,default:function(){return""}},height:{type:Number,default:400},dateSelectType:{},selectBlock:{},info:{},profitHours:{default:function(){return[]}},profitDays:{},profitDays_secondary:{},dateOption:{},addon:{},memos:{},isSku:{}},data:function(){return{echartKey:Math.random().toString(16).substring(2,6),optionData:{},lineCharts:null}},computed:{profitWeeks:function(){var t=this,e={},a=[];return this.profitDays.forEach((function(t){var a=F()(t.date),n=a.year()+"-"+a.isoWeek();e[n]?e[n].push(Object(s["a"])(Object(s["a"])({},t),{},{week:n})):e[n]=[Object(s["a"])(Object(s["a"])({},t),{},{week:n})]})),Object.keys(e).forEach((function(n){var i=e[n].reduce((function(t,e){return{ad_quantity:t.ad_quantity+e.ad_quantity,ad_sales:t.ad_sales+e.ad_sales,ad_spend:t.ad_spend+e.ad_spend,costCpc:t.costCpc+e.costCpc,buyButtonVisits:t.buyButtonVisits+e.buyButtonVisits,cost:t.cost+e.cost,gross:t.gross+e.gross,orders:t.orders+e.orders,pageVisits:t.pageVisits+e.pageVisits,principal:t.principal+e.principal,totalPrincipal:t.totalPrincipal+e.totalPrincipal,totalQuantity:t.totalQuantity+e.totalQuantity,refundNum:t.refundNum+e.refundNum,sumAmount:t.sumAmount+e.sumAmount,sumQuantity:t.sumQuantity+e.sumQuantity,sumVisits:t.sumVisits+e.sumVisits}}),{ad_quantity:0,ad_sales:0,ad_spend:0,costCpc:0,buyButtonVisits:0,cost:0,gross:0,orders:0,pageVisits:0,principal:0,totalPrincipal:0,totalQuantity:0,refundNum:0,sumAmount:0,sumQuantity:0,sumVisits:0});i.ad_acos=0==i.ad_sales?0:i.ad_spend/i.ad_sales*100,i.buyButtonRate=0==i.pageVisits?0:i.buyButtonVisits/i.pageVisits*100,i.tacos=0==i.totalPrincipal?0:i.costCpc/i.totalPrincipal*100,i.roas=0===i.ad_spend?0:parseFloat((i.ad_sales/i.ad_spend).toFixed(2)),0==t.profitType?i.rate=0==i.principal?0:i.gross/i.principal*100:1==t.profitType&&(i.rate=0==i.totalPrincipal?0:i.gross/i.totalPrincipal*100),i.refundMoneyRate=0==i.totalQuantity?0:i.refundNum/i.totalQuantity*100,i.sumConv=0==i.sumVisits?0:i.sumQuantity/i.sumVisits*100,Object.keys(i).forEach((function(t){i[t]=parseFloat(i[t].toFixed(2))})),i.date=e[n][0].date+" ~ "+e[n][e[n].length-1].date,i.startDate=e[n][0].date,a.push(i)})),a.sort((function(t,e){return t.startDate-e.startDate})),a},profitMonths:function(){var t=this,e={},a=[];return this.profitDays.forEach((function(t){var a=F()(t.date),n=a.year()+"-"+a.month();e[n]?e[n].push(Object(s["a"])(Object(s["a"])({},t),{},{month:n})):e[n]=[Object(s["a"])(Object(s["a"])({},t),{},{month:n})]})),Object.keys(e).forEach((function(n){var i=e[n].reduce((function(t,e){return{ad_quantity:t.ad_quantity+e.ad_quantity,ad_sales:t.ad_sales+e.ad_sales,ad_spend:t.ad_spend+e.ad_spend,costCpc:t.costCpc+e.costCpc,buyButtonVisits:t.buyButtonVisits+e.buyButtonVisits,cost:t.cost+e.cost,gross:t.gross+e.gross,orders:t.orders+e.orders,pageVisits:t.pageVisits+e.pageVisits,principal:t.principal+e.principal,totalPrincipal:t.totalPrincipal+e.totalPrincipal,totalQuantity:t.totalQuantity+e.totalQuantity,refundNum:t.refundNum+e.refundNum,sumAmount:t.sumAmount+e.sumAmount,sumQuantity:t.sumQuantity+e.sumQuantity,sumVisits:t.sumVisits+e.sumVisits}}),{ad_quantity:0,ad_sales:0,ad_spend:0,costCpc:0,buyButtonVisits:0,cost:0,gross:0,orders:0,pageVisits:0,principal:0,totalPrincipal:0,totalQuantity:0,refundNum:0,sumAmount:0,sumQuantity:0,sumVisits:0});i.ad_acos=0==i.ad_sales?0:i.ad_spend/i.ad_sales*100,i.buyButtonRate=0==i.pageVisits?0:i.buyButtonVisits/i.pageVisits*100,i.refundMoneyRate=0==i.totalQuantity?0:i.refundNum/i.totalQuantity*100,i.sumConv=0==i.sumVisits?0:i.sumQuantity/i.sumVisits*100,i.tacos=0==i.totalPrincipal?0:i.costCpc/i.totalPrincipal*100,i.roas=0===i.ad_spend?0:parseFloat((i.ad_sales/i.ad_spend).toFixed(2)),0==t.profitType?i.rate=0==i.principal?0:i.gross/i.principal*100:1==t.profitType&&(i.rate=0==i.totalPrincipal?0:i.gross/i.totalPrincipal*100),Object.keys(i).forEach((function(t){i[t]=parseFloat(i[t].toFixed(2))})),i.date=e[n][0].date+" ~ "+e[n][e[n].length-1].date,i.startDate=e[n][0].date,a.push(i)})),a.sort((function(t,e){return t.startDate-e.startDate})),a},x:function(){if(this.dateOption.dateScope){if(this.dateOption.dateScope<1){var t=Number(this.dateOption.dateScope.toString().slice(2,-1)),e=[],a=Object(m["p"])().startOf("hours"),n=a.clone().subtract(t-1,"hours"),i=a.diff(n,"hours");e.push(n.format("YYYY-MM-DD HH:mm"));for(var o=0;o<i;o++)e.push(n.add(1,"hours").format("YYYY-MM-DD HH:mm"));return e}return Object(m["s"])(this.dateOption.dateScope)}return Object(Zt["a"])(F()(this.dateOption.dateRange[0]),F()(this.dateOption.dateRange[1]))},typeFlag:function(){return null!==this.dateOption.dateScope&&this.dateOption.dateScope<1?"hours":"days"},selected:function(){var t;return(null===(t=this.selectBlock)||void 0===t?void 0:t[0])||""}},watch:{profitDays_secondary:{deep:!0,handler:function(t){this.handler()}},selected:{immediate:!0,deep:!0,handler:function(t){t&&this.handler()}},"$i18n.locale":"handler"},methods:{handler:function(){this.drawChart(this.info,this.profitDays_secondary)},drawChart:function(t,e){var a=this,n=[];if(Object.keys(t).length>0)for(var i in t)1,this.selected==i&&function(){var e={};e={type:"line",data:[],color:"#9257F2",name:a.$t("_ROUTER_NAME_CATEGORY_RANK"),connectNulls:!0,yAxisIndex:0};var o={};t[i].forEach((function(t){var e=Object(m["b"])(t.time).format("hours"===a.typeFlag?"YYYY-MM-DD HH:mm":"YYYY-MM-DD");o[e]=t.index})),e.data=a.x.map((function(t){var e={name:t,value:o[t]};return a.memos[t.substr(0,10)]&&Object.assign(e,{itemStyle:{color:"red"}}),e})),n.push(e)}();else{var o={};o={type:"line",data:[],color:"#9257F2",name:this.$t("_ROUTER_NAME_CATEGORY_RANK"),connectNulls:!0,yAxisIndex:0},n.push(o)}e&&e.length>0&&n.push({type:"line",data:e.map((function(t){return t.totalQuantity?t.totalQuantity:0}))||[],connectNulls:!0,yAxisIndex:1,color:"#FF9F43",name:this.$t("_TREND_SALES_COUNT")},{type:"line",data:e.map((function(t){return t.totalPrincipal?t.totalPrincipal:0}))||[],connectNulls:!0,color:"#2B88F6",yAxisIndex:2,name:this.$t("_COMMON_TH_SALES_MOUNT")});var l="hours"===this.typeFlag?Object(r["a"])(this.x).map((function(t){return t.substr(10)})):this.x,c=[];n.length>1?n.forEach((function(t){t.name===a.$t("_ROUTER_NAME_CATEGORY_RANK")?c.push({show:!0,inverse:!0,name:a.$t("_ROUTER_NAME_CATEGORY_RANK"),position:"left",nameLocation:"start",min:1,axisLabel:{formatter:function(t){return t>=1e3?parseFloat(t/1e3).toFixed(1)+"k":t}}}):t.name===a.$t("_TREND_SALES_COUNT")?c.push({show:!0,minInterval:1,name:a.$t("_TREND_SALES_COUNT")}):c.push({show:!0,name:a.$t("_COMMON_TH_SALES_MOUNT"),offset:50})})):c.push({show:!0,inverse:!0,min:1});var u={grid:{containLabel:!0,top:"60px",bottom:"20px",width:"auto"},legend:{show:!0,top:0,data:[]},xAxis:Object(s["a"])({type:"category",data:l,axisLabel:{interval:Object(J["a"])(l.length),formatter:q["d"]}},"day"===this.typeFlag?{splitArea:{areaStyle:{color:getSplitAreaColors(l)}}}:{}),yAxis:c,series:n,tooltip:{trigger:"axis",formatter:function(t){var e="",n=a.x[t[0].dataIndex],i=n;return 6===new Date(n.replaceAll("-","/")).getDay()?i+="("+a.$t("_COMMON_SATURDAY")+")":0===new Date(n.replaceAll("-","/")).getDay()&&(i+="("+a.$t("_COMMON_SUNDAY")+")"),e+=e+"".concat(a.$t("_CATEGORY_RANK_CHART_DATE")+i,"<br/>"),t.forEach((function(t){if(t.seriesName===a.$t("_ROUTER_NAME_CATEGORY_RANK")){var i="";a.memos[n.substr(0,10)]&&(i="<br/>".concat(a.$t("_TREND_NOTE"),': <div style="color: #f00;width: 500px;word-wrap:break-word;white-space:normal">').concat(a.memos[n.substr(0,10)].content,"</div>")),e+="".concat(a.$t("_CATEGORY_RANK_CHART_RANK")+(t.value?t.value:"-")+i,"<br/>")}else t.seriesName===a.$t("_TREND_SALES_COUNT")?e+="".concat(a.$t("_TREND_SALES_COUNT")+": "+t.value,"<br/>"):e+="".concat(a.$t("_COMMON_TH_SALES_MOUNT")+": "+t.value,"<br/>")})),e},padding:20}};switch("hours"===this.typeFlag&&(u.xAxis.axisLabel.interval=function(t){return(t+1)%3===0}),"days"===this.typeFlag?u.legend.data.push(this.$t("_ROUTER_NAME_CATEGORY_RANK"),this.$t("_TREND_SALES_COUNT"),this.$t("_COMMON_TH_SALES_MOUNT")):u.legend.data.push(this.$t("_ROUTER_NAME_CATEGORY_RANK")),this.dateSelectType){case"days":this.profitDays;break;case"week":this.profitWeeks;break;case"month":this.profitMonths;break;case"hot":this.profitHours;break;default:break}var d={option:u,id:"lineCharts0"};this.lineCharts=[d],this.optionData=u}}},Xt=qt,Qt=Object(v["a"])(Xt,Wt,Kt,!1,null,null,null),Jt=Qt.exports,te=a("9319"),ee={name:"categoryRank",props:{baseModel:{}},components:{commonSearchForm:jt["a"],lineChart:rt,lineChartList:Ft["a"],QuickBtnDateselect:vt["h"],categoryRankLineChart:Jt,customModal:vt["l"],emptyBlock:vt["o"]},data:function(){return{openTransLoading:!1,getAiTrans:Object(bt["a"])(this.getAiTransTmp,200),openTransObj:{},openTrans:!1,PACKAGE_MODULE_NAMES:B["PACKAGE_MODULE_NAMES"],lineKey:"lineKey",dataDays:[],visitArr:[],dateOption:{dateSet:[.241,7,15,30],dateScope:.241,dateRange:[]},currentAsinStatus:"",selected:null,select:{categories:[],option:[],asins:[],asin:"",info:null,change:!0,nodata:!1,available:!0,limit:0,memos:{},checkVisit:!1,resultCache:null},addon:{dates:null,memosData:{list:{},flag:null}},memos:{},profitDays_secondary:[],infoLast:{},rankMap:null,dataLoading:!1,showTipModal:!1,asinNodata:!1}},computed:Object(s["a"])(Object(s["a"])({},Object(N["c"])({USER_INFO:P["I"]})),{},{selectBlockNew:function(){return[this.selected]},selectBlock:function(){var t=this;return this.select.categories.filter((function(e){return t.selected==e.value})).map((function(t){return t.label}))},profitDays:function(){if(this.select.resultCache){var t=[],e={};Object.entries(this.select.resultCache).forEach((function(a){t.push(a[0]),e[a[0]]||(e[a[0]]={}),a[1].forEach((function(t){var n=Object(m["a"])(t.time).format("YYYY-MM-DD");e[a[0]][n]=t.index}))}));var a=JSON.parse(JSON.stringify(this.dataDays));return a.map((function(a){return t.forEach((function(t){e[t][a.date]&&(a[t]=e[t][a.date]||null)})),a}))}},rangeDate:function(){return this.dateOption.dateRange.length?this.dateOption.dateRange:Object(m["g"])({dateScope:this.dateOption.dateScope,dateRange:null}).map((function(t){return Object(m["a"])(t).format("YYYY-MM-DD")}))},formOptions:function(){return 1==this.isParent?[{type:"v-select",width:"272px",id:"asin",clearable:!1,placeholder:this.$t("_TREND_SELECT"),options:this.select.asins.map((function(t){return t.label=t.key,t.value=t.key,t}))}]:[]},isSku:function(){return this.baseModel.isSku},isParent:function(){return this.baseModel.isParent},today:function(){return Object(m["a"])().format("YYYY-MM-DD")},yesterday:function(){return Object(m["a"])().subtract(1,"days").format("YYYY-MM-DD")},currentRank:function(){var t,e=this.rankMap;if(""!==this.selected&&null!==e&&void 0!==e&&e[this.selected]){var a={};return null===e||void 0===e||e[this.selected].forEach((function(t){var e=Object(m["a"])(t.time).format("YYYY-MM-DD");a[e]=t.index})),a[this.yesterday]?a[this.yesterday]:"--",a[this.today]?a[this.today]:"--",t=a[this.today]||a[this.yesterday]||"--",t}return"--"},rankChange:function(){if(this.currentRank>0){var t=this.rankMap;if(""!==this.selected&&null!==t&&void 0!==t&&t[this.selected]){var e={};return null===t||void 0===t||t[this.selected].forEach((function(t){var a=Object(m["a"])(t.time).format("YYYY-MM-DD");e[a]=t.index})),this.currentRank-e[this.yesterday]}return"--"}return"--"}}),watch:{"select.categories":"getAiTrans","$i18n.locale":function(){this.getAiTrans()},select:{deep:!0,handler:function(t){console.log("select....",t)}},openTrans:function(t){var e;t&&this.getAiTrans(),window.localStorage.setItem("openTransCateGoryRankDetailProduct"+(null===(e=this.USER_INFO)||void 0===e?void 0:e.id),t)},USER_INFO:{immediate:!0,handler:function(t){var e;t&&t.id&&(this.openTrans="true"==window.localStorage.getItem("openTransCateGoryRankDetailProduct"+(null===(e=this.USER_INFO)||void 0===e?void 0:e.id)))}},dateOption:{deep:!0,handler:"init"},"select.asin":"changeCategoryAsin","select.option":function(){this.lineKey=Math.random()}},methods:{changeOpenTrans:function(t){try{if(window.gtag){var e={event_category:"翻译-".concat(t?"开启":"关闭","-翻译-开启-商品分析-类目排名3"),event_label:"翻译-".concat(t?"开启":"关闭","-翻译-开启-商品分析-类目排名3")};gtag("event","翻译-".concat(t?"开启":"关闭","-翻译-开启-商品分析-类目排名3"),e)}}catch(a){}},getAiTransTmp:function(t){var e=this,a=this.select.categories||[];if(a=a.map((function(t){return t.label})),a.length&&this.openTrans){if(t)try{var n=Object.keys(this.openTransObj),i=a.every((function(t){return n.indexOf(t)>-1}));if(i)return}catch(o){console.warn(o)}this.openTransLoading=!0,Object(te["d"])({marketplaceId:this.baseModel.marketplaceId,keywords:a}).then((function(t){1===t.status&&t.content&&(e.openTransObj=t.content)})).finally((function(t){e.openTransLoading=!1}))}},goTrackPage:function(){this.$router.push({path:"/competitive_analysis/tracker",query:{asin:1==this.isParent?this.select.asin:this.baseModel.asin,marketplaceId:this.baseModel.marketplaceId,autoReset:1}})},exportReport:function(){var t={dasCurrentShop:this.$store.getters[P["g"]]};t.asins=1==this.isParent?this.select.asin:this.baseModel.asin,t.startTimestamp=Object(m["h"])(this.dateOption)[0],t.endTimestamp=Object(m["h"])(this.dateOption)[1],t.isCompetitor=0,Object($t["h"])(t)},goRankUrl:function(){var t;this.$store.dispatch(Bt["k"],parseInt(null===(t=this.baseModel)||void 0===t?void 0:t.shopId)),this.$router.push({path:"/sales_analysis/sales_rank",query:{searchKey:this.select.asin}})},handleAdd:function(){var t=this,e=this;if(e.select.available){if(1==this.isParent)var a=[e.select.asin];else a=[e.baseModel.asin];Object($t["c"])({asin:a},e.baseModel.shopId).then((function(a){var n=a.status,i=a.content;1==n&&(t.$store.dispatch("app/updatePop",{title:i,icon:"EditIcon",variant:"success"}),e.getCategoryData())}))}else this.$store.dispatch("app/updatePop",{title:this.$t("_COMMON_REACH_PACKAGE_LIMIT")+this.$t("_DIALOG_BUTTON_UPGRADE"),icon:"EditIcon",variant:"success"})},clickItemFn:function(t){this.$emit("click-item",t)},changeCategoryAsin:function(t,e){var a=this;if(e){var n=this.select;n.asin=t,n.nodata=!1,this.$nextTick((function(){n.asins.forEach((function(e){if(e.key==t){if(1==e.status||3==e.status){var i,o,r=0;n.categories=Object.keys(e.rank).map((function(t){return r++,{value:r-1,label:t}})),a.selected=null===(i=n.categories)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.label,n.option=n.categories.map((function(t){return t.value})),3==e.status&&(n.nodata=!0),a.currentAsinStatus=e.status}else-1==e.status&&(a.getCategoryTrack(),n.nodata=!0,n.categories=[],a.selected=null,n.option=[]);n.resultCache=e.rank}})),a.lineKey=Math.random()}))}},getCategoryTrack:function(){var t=this;Object($t["p"])({dasCurrentShop:this.baseModel.shopId}).then((function(e){var a=t.select,n=e.status,i=e.content;1==n&&(i.limit<i.number&&(a.available=!1),a.limit=i.limit)}))},getMemoList:function(){var t,e=this,a=this,n={asin:1==a.isParent?a.baseModel.parentAsin:a.baseModel.asin,dasCurrentShop:a.baseModel.shopId};0==a.dateOption.dateScope?(n.endDate=Object(m["q"])().format("YYYY-MM-DD"),n.startDate=Object(m["q"])().format("YYYY-MM-DD")):null!==(t=a.dateOption.dateRange)&&void 0!==t&&t.length?(n.endDate=a.dateOption.dateRange[0],n.startDate=a.dateOption.dateRange[1]):(n.endDate=a.rangeDate[0],n.startDate=a.rangeDate[1]),Object(f["q"])(n).then((function(t){var n=t.status,i=t.content;if(a.addon.memosData.list={},1==n){var o={};i.map((function(t){o[t.date]={id:t.id,content:t.content},a.addon.memosData.list[t.date]={id:t.id,content:t.content}})),e.memos=o}a.getCategoryData()})).catch((function(t){e.dataLoading=!1}))},getCategoryData:function(){var t=this;try{var e=this.select;e.memos=this.addon.memosData.list,e.categories=[],e.info=null,e.nodata=!1,this.asinNodata=!1;var a={};1==this.isParent?(a.dasCurrentShop=this.baseModel.shopId,a.parentAsin=this.baseModel.parentAsin):a.asins=this.baseModel.asin;var n=Object(m["h"])(this.dateOption);a.endTimestamp=n[1],a.startTimestamp=n[0],Object($t["j"])(a,this.baseModel.shopId).then((function(a){var n=a.status,i=a.content;if(1==n){var o;if(1==t.isParent){var r=[];if(Object.keys(i).forEach((function(t){var e=i[t];e.key=t,r.push(e)})),e.asins=r,e.asins.length>0){if(e.asin)var s=e.asins.map((function(t){return t.key})).indexOf(e.asin);else s=0;if(e.asin=e.asins[s].key,1==e.asins[s].status){if(Object.keys(e.asins[s].rank).length>0){var l,c,u=0;e.categories=Object.keys(e.asins[s].rank).map((function(t){return u++,{value:u-1,label:t}})),t.selected=null===(l=e.categories)||void 0===l||null===(c=l[0])||void 0===c?void 0:c.label,e.option=e.categories.map((function(t){return t.value}))}}else-1==e.asins[s].status?(t.getCategoryTrack(),e.nodata=!0):3==e.asins[s].status&&(e.nodata=!0,t.currentAsinStatus=3);e.resultCache=e.asins[s].rank}else e.resultCache=null}else{var d,h,p;if(3!=(null===(d=i[t.baseModel.asin])||void 0===d?void 0:d.status)&&-1!=(null===(h=i[t.baseModel.asin])||void 0===h?void 0:h.status)||(t.asinNodata=!0),t.currentAsinStatus=null===(p=i[t.baseModel.asin])||void 0===p?void 0:p.status,e.info=i[t.baseModel.asin],1==e.info.status){if(Object.keys(e.info.rank).length>0){var f,g,_=0;e.categories=Object.keys(e.info.rank).map((function(t){return _++,{value:_-1,label:t}})),t.selected=null===(f=e.categories)||void 0===f||null===(g=f[0])||void 0===g?void 0:g.label,e.option=e.categories.map((function(t){return t.value}))}if(""!=e.info.defaultCategory&&e.info.rank[e.info.defaultCategory]&&0!=e.info.rank[e.info.defaultCategory].length){var v={};e.info.rank[e.info.defaultCategory].forEach((function(t){var e=Object(m["a"])(t.time).format("YYYY-MM-DD");v[e]=t.index})),t.latestCategoryName=""==e.info.defaultCategory?"--":e.info.defaultCategory,t.latestCategoryRank=v[t.today]||v[t.yesterday]||"--"}else t.latestCategoryName="--",t.latestCategoryRank="--"}else-1==e.info.status?(t.getCategoryTrack(),e.nodata=!0):3==e.info.status&&(t.latestCategoryName="--",t.latestCategoryRank="--");e.resultCache=e.info.rank}t.dateOption.dateScope&&.241!==t.dateOption.dateScope||null!==(o=t.dateOption.dateRange)&&void 0!==o&&o.length&&.241!==t.dateOption.dateScope?t.getSaleData():t.profitDays_secondary=[],t.getLast2dayData()}else e.resultCache=null}))}finally{this.dataLoading=!1}},getSaleData:function(){var t=this,e={};this.dateOption.dateScope||0===this.dateOption.dateScope?e.dateScope=this.dateOption.dateScope:(e.startDate=F()(this.dateOption.dateRange[0]).format("YYYY-MM-DD"),e.endDate=F()(this.dateOption.dateRange[1]).format("YYYY-MM-DD")),e.asin=1==this.isParent?this.select.asin:this.baseModel.asin,Object(tt["fb"])(e).then((function(e){var a=e.status,n=e.content;1==a&&(t.profitDays_secondary=n||[])}))},getLast2dayData:function(){var t=this,e={asins:1==this.isParent?this.select.asin:this.baseModel.asin},a=Object(m["h"])({dateRange:[this.yesterday,this.today]});e.endTimestamp=a[1],e.startTimestamp=a[0],Object($t["j"])(e,this.baseModel.shopId).then((function(a){var n,i=a.status,o=a.content;1==i&&(t.rankMap=null===(n=o[e.asins])||void 0===n?void 0:n.rank)}))},getLast24Data:function(){var t=this,e={asins:1==this.isParent?this.select.asin:this.baseModel.asin},a=Object(m["h"])({dateScope:.481}),n=Object(m["h"])({dateScope:.241});e.endTimestamp=n[0],e.startTimestamp=a[0],Object($t["j"])(e,this.baseModel.shopId).then((function(a){var n=a.status,i=a.content;1==n&&1==i[e.asins].status&&(t.infoLast=i[e.asins].rank)}))},getDataDays:function(){var t=this;return Object(Pt["a"])(regeneratorRuntime.mark((function e(){var a,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t,n={dasCurrentShop:a.baseModel.shopId},n=1==a.isParent?{dasCurrentShop:a.baseModel.shopId,asin:a.baseModel.parentAsin,isParent:1}:{dasCurrentShop:a.baseModel.shopId,asin:a.baseModel.asin,isParent:0},i=Object(m["h"])(a.dateOption),n.startTimestamp=i[0],n.endTimestamp=i[1],e.abrupt("return",Object(T["c"])(n).then((function(t){var e={};a.dataDays=[],a.addon.dates.forEach((function(t){e[t]={buyButtonRate:0,buyButtonVisits:0,pageVisits:0,sumConv:0,sumAmount:0,sumVisits:0}})),a.isSku||1==t.status&&t.content.forEach((function(t){var a=Object(s["a"])({},t);e[Object(m["a"])(t.time).format("YYYY-MM-DD")]&&(e[Object(m["a"])(t.time).format("YYYY-MM-DD")]=a)}));var n=function(t){e[t].date=t,0==a.dataDays.filter((function(e){return e.date==t})).length&&(a.dataDays=[].concat(Object(r["a"])(a.dataDays),[e[t]]))};for(var i in e)n(i);return a.visitArr=a.dataDays.map((function(t){return t.sumVisits})),t})));case 7:case"end":return e.stop()}}),e)})))()},init:function(){var t=this;return Object(Pt["a"])(regeneratorRuntime.mark((function e(){var a,n,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t,t.dataLoading=!0,a.dateOption.dateScope||0==a.dateOption.dateScope?(o=Object(m["a"])(),n=o.clone().subtract(a.dateOption.dateScope,"days"),i=o.clone().subtract(1,"days")):(n=Object(m["a"])(F()(a.dateOption.dateRange[0]).format("YYYY-MM-DD")),i=Object(m["a"])(F()(a.dateOption.dateRange[1]).format("YYYY-MM-DD"))),a.addon.dates=Object(m["k"])(n,i),a.baseModel){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,a.getDataDays();case 8:a.getMemoList();case 9:case"end":return e.stop()}}),e)})))()}},mounted:function(){this.init()}},ae=ee,ne=(a("32a9"),a("0243"),Object(v["a"])(ae,Ht,Gt,!1,null,"8619ea2c",null)),ie=ne.exports,oe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"productAnalysis-competitorTab"},[t.isParent?[a("common-search-form",{staticClass:"m-l-12",attrs:{formId:"product_analysis_parent_analysis_category_rank_search",options:t.formOptions},model:{value:t.select,callback:function(e){t.select=e},expression:"select"}})]:t._e(),t.isEmpty?a("emptyBlock",{scopedSlots:t._u([{key:"tips",fn:function(){return[a("div",{staticClass:"m-b-12"},[t._v(" "+t._s(t.$t("at_product_list_empty_tip"))+" ")]),a("div",{staticClass:"d-flex justify-content--center"},[a("b-button",{attrs:{variant:"primary",size:"sm"},on:{click:t.toAdd}},[t._v(t._s(t.$t("global_add")))])],1)]},proxy:!0}],null,!1,3449442067)}):t._e(),a("common-table",{directives:[{name:"show",rawName:"v-show",value:!t.isEmpty,expression:"!isEmpty"}],key:t.tableKey,ref:"commonTableEle",attrs:{tableId:"productAnalysis-competitive_tracker_table",tableLoading:t.loading,params:t.tableParams,tableData:t.tableData,options:t.tableOptions},on:{sortChangedFull:t.sortChangedFull,response:t.tableResponse},scopedSlots:t._u([{key:"cell(empty)",fn:function(){return[t.loadingDisabled?a("div",{staticStyle:{height:"340px",width:"100%"}}):a("div",{staticClass:"semy-t-empty"},[a("div",{staticClass:"semy-t-empty__pic"}),a("div",{staticClass:"semy-t-empty__tip"},[t._v(" "+t._s(t.$t("web_mytrack_nodata_tips"))+" ")]),a("b-button",{staticClass:"semy-t-empty__btn",attrs:{variant:"primary"},on:{click:function(e){return t.handleJumpSearch()}}},[a("div",{staticClass:"semy-t-empty__btn-txt"},[t._v(t._s(t.$t("web_mytrack_nodata_button_tips")))]),a("div",{staticClass:"semy-t-empty__btn-icon"})]),t.$t("help_com_doc_key_competitive_analysis")?a("a",{staticClass:"semy-t-empty__go-help",attrs:{href:"javascript:;"},on:{click:function(e){return t.handleJumpHelp()}}},[t._v(t._s(t.$t("web_mytrack_nodata_tips_help")))]):t._e()],1)]},proxy:!0},{key:"cell(title)",fn:function(e){return[a("product-info-table-column",{key:"productinfo"+e.data.index,staticStyle:{width:"350px"},attrs:{entity:e.data.item,"key-map":{parentAsin:"",imageUrl:"masterImage"}},scopedSlots:t._u([{key:"extra",fn:function(){return[(t.isParent?e.data.item.asin==t.select.childAsinselected:e.data.item.asin==t.baseModel.asin)?a("span",{staticClass:"badge mr-1 ml-auto badge-light-success badge-pill"},[t._v(" "+t._s(t.$t("cr_compare_me"))+" ")]):t._e()]},proxy:!0}],null,!0)})]}},{key:"cell(variation)",fn:function(e){return[["PAUSE","LOADING"].includes(e.data.item.status)?t._e():[e.data.value.attributes?a("div",{staticStyle:{width:"169px"},attrs:{id:e.data.item.asin+"_productAnalysis__variation__"+t._uid}},t._l(e.data.value.attributes.slice(0,2),(function(n,i){return a("div",{key:n.dimension+n.value,staticClass:"text-ellipsis"},[t._v(" "+t._s(n.dimension+": "+n.value)+" "),2==i&&e.data.value.attributes.length>2?a("span",[t._v("...")]):t._e()])})),0):a("span",[t._v("-")]),e.data.value?a("b-tooltip",{attrs:{target:e.data.item.asin+"_productAnalysis__variation__"+t._uid,triggers:"hover"}},t._l(e.data.value.attributes,(function(e,n){return a("div",{key:e.dimension+e.value},[t._v(" "+t._s(e.dimension+": "+e.value)+" ")])})),0):t._e()]]}},{key:"cell(buyBoxShippingPriceHistory)",fn:function(e){return[e.data.value.length>0?a("el-tooltip",[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(" "+t._s(t.priceTooltipChange(e.data.item,"buyBoxShippingPriceHistory"))+" "),a("div",{staticClass:"m-t-24"},[t._v(t._s(t.$t("asin_tracker_tip_click")))])]),a("div",[a("u",{staticClass:"cursor-pointer",on:{click:function(a){return t.toShowDragDetail(e.data.item,"listPriceHistory")}}},[t._v(" "+t._s(t.formatterBoxPrice(e.data.item))+" ")]),e.data.value[0].price&&e.data.value[1]&&e.data.value[1].price&&e.data.value[1].price-e.data.value[0].price!=0?a("div",{staticClass:"fs12",class:e.data.value[1].price-e.data.value[0].price>0?"up-text":"down-text"},[t._v(" "+t._s(e.data.value[1].price-e.data.value[0].price>0?"+":"")+t._s(t._f("currency_descriptor")(t._f("toFixed2")(e.data.value[1].price-e.data.value[0].price),t.MARKETPLACE_STATIC_INFO[e.data.item.marketplaceId].currencySymbol))+" ")]):t._e()])]):a("span",[t._v("-")])]}},{key:"cell(masterImage)",fn:function(e){return[a("div",{staticClass:"semy-t-image"},["SOLDOUT"==e.data.item.status?a("div",{staticClass:"fs12 soldout_status"},[a("div",[t._v(t._s(t.$t("global_offSelf")))])]):t._e(),a("img",{attrs:{src:t.getRealImg(e.data.value),id:"semy_item_img_"+e.data.item.asin,alt:""},on:{click:function(a){return t.handleJump(e.data.item)}}})])]}},{key:"cell(categorySaleRanks)",fn:function(e){return[e.data.value[0]||e.data.value[1]?a("el-tooltip",[a("div",{attrs:{slot:"content"},slot:"content"},[e.data.value[0]&&e.data.value[0].saleRanks.length>1?a("div",{staticClass:"m-b-16"},[e.data.item.categoryMappings&&e.data.item.categoryMappings[e.data.value[0].categoryId]?a("span",[t._v(" "+t._s(e.data.item.categoryMappings[e.data.value[0].categoryId].join(" > "))+" ")]):a("span",[t._v(" "+t._s(e.data.value[0].categoryId)+" ")]),"{}"!==JSON.stringify(t.openTransObj)&&e.data.item.categoryMappings&&e.data.item.categoryMappings[e.data.value[0].categoryId]?a("div",{staticStyle:{margin:"4px 0","font-size":"12px"}},[t._v(" "+t._s(e.data.item.categoryMappings[e.data.value[0].categoryId].map((function(e){return t.openTransObj[e]||e})).join(" > "))+" ")]):t._e(),a("div",{domProps:{innerHTML:t._s(t.mainCategory(e.data.item,0))}})]):t._e(),e.data.value[1]&&e.data.value[1].saleRanks.length>1?a("div",{staticClass:"m-b-16"},[e.data.item.categoryMappings&&e.data.item.categoryMappings[e.data.value[1].categoryId]?a("span",[t._v(" "+t._s(e.data.item.categoryMappings[e.data.value[1].categoryId].join(" > "))+" ")]):a("span",[t._v(" "+t._s(e.data.value[1].categoryId)+" ")]),"{}"!==JSON.stringify(t.openTransObj)&&e.data.item.categoryMappings&&e.data.item.categoryMappings[e.data.value[1].categoryId]?a("div",{staticStyle:{margin:"4px 0","font-size":"12px"}},[t._v(" "+t._s(e.data.item.categoryMappings[e.data.value[1].categoryId].map((function(e){return t.openTransObj[e]||e})).join(" > "))+" ")]):t._e(),a("div",{domProps:{innerHTML:t._s(t.mainCategory(e.data.item,1))}})]):t._e(),a("div",[t._v(t._s(t.$t("asin_tracker_tip_click")))])]),a("div",[e.data.value[0]&&e.data.value[0].saleRanks.length>1?a("div",[a("span",{staticClass:"last-color"},[t._v(t._s(t.$t("asin_tracker_main_category")))]),a("u",{staticClass:"cursor-pointer m-r-4",on:{click:function(a){return t.toShowDragDetail(e.data.item,"categorySaleRanks")}}},[t._v("#"+t._s(e.data.value[0].saleRanks.length>1?e.data.value[0].saleRanks[1].rank:e.data.value[0].saleRanks[0].rank))]),e.data.value[0].saleRanks.length>=2&&e.data.value[0].saleRanks[1].rank-e.data.value[0].saleRanks[0].rank!=0?a("feather-icon",{class:e.data.value[0].saleRanks[1].rank-e.data.value[0].saleRanks[0].rank>0?"down-text":"up-text",attrs:{icon:e.data.value[0].saleRanks[1].rank-e.data.value[0].saleRanks[0].rank>0?"ArrowDownIcon":"ArrowUpIcon"}}):a("span",{staticClass:"m-r-14"})],1):a("div",[t._v("-")]),e.data.value[1]&&e.data.value[1].saleRanks.length>1?a("div",[a("span",{staticClass:"last-color"},[t._v(t._s(t.$t("asin_tracker_sub_category")))]),a("u",{staticClass:"cursor-pointer m-r-4",on:{click:function(a){return t.toShowDragDetail(e.data.item,"categorySaleRanks")}}},[t._v("#"+t._s(e.data.value[1].saleRanks.length>1?e.data.value[1].saleRanks[1].rank:e.data.value[1].saleRanks[0].rank))]),e.data.value[1].saleRanks.length>=2&&e.data.value[1].saleRanks[1].rank-e.data.value[1].saleRanks[0].rank!=0?a("feather-icon",{class:e.data.value[1].saleRanks[1].rank-e.data.value[1].saleRanks[0].rank>0?"down-text":"up-text",attrs:{icon:e.data.value[1].saleRanks[1].rank-e.data.value[1].saleRanks[0].rank>0?"ArrowDownIcon":"ArrowUpIcon"}}):a("span",{staticClass:"m-r-14"})],1):a("div",[t._v("-")])])]):t._e()]}},{key:"cell(monthlySoldHistory)",fn:function(e){return["PAUSE"===e.data.item.status?a("div",{staticClass:"spe-optionsbtn"},[a("div",{staticClass:"d-flex bg-wrapper"},[a("div",{},[a("span",{staticClass:"m-r-16"},[t._v(" "+t._s(t.$t("asin_tracker_invalidate_tip"))+" ")]),a("b-button",{attrs:{"data-lokalise":"","data-key":"asintrack_list_button1",size:"sm",variant:"primary"},on:{click:function(a){return t.openSetting(e.data.item,!0)}}},[a("span",[t._v(" "+t._s(t.$t("asintrack_list_button1"))+" ")])])],1)])]):"LOADING"===e.data.item.status?a("div",{staticClass:"spe-optionsbtn"},[a("div",{staticClass:"d-flex bg-wrapper"},[a("div",{},[a("span",{staticClass:"m-r-16"},[t._v(" "+t._s(t.$t("asin_tracker_init_refresh_tip"))+" ")]),a("b-button",{attrs:{"data-lokalise":"","data-key":"asintrack_list_button1",size:"sm",variant:"primary"},on:{click:t.getList}},[a("span",[t._v(" "+t._s(t.$t("global_update"))+" ")])])],1)])]):t._e(),["PAUSE","LOADING"].includes(e.data.item.status)?t._e():[e.data.value&&e.data.value.length?[e.data.value.length>0?a("el-tooltip",[a("div",[a("u",{staticClass:"cursor-pointer m-r-4",on:{click:function(a){return t.toShowDragDetail(e.data.item,"monthlySoldHistory")}}},[t._v(" "+t._s(t._f("thousandUnit")(t.getNowData(e.data.item,"monthlySoldHistory","count")))+" ")]),e.data.value.length>1&&e.data.value[1]&&e.data.value[1].count-e.data.value[0].count!=0?a("feather-icon",{class:e.data.value[1].count-e.data.value[0].count>0?"up-text":"down-text",attrs:{icon:e.data.value[1].count-e.data.value[0].count>0?"ArrowUpIcon":"ArrowDownIcon"}}):t._e(),e.data.value[1]&&e.data.value[1].timestamp?a("div",{staticClass:"last-color fs12"},[t._v(t._s(t._f("toCreateZonedMoment")(e.data.value[1].timestamp)))]):t._e()],1),a("div",{attrs:{slot:"content"},slot:"content"},[e.data.value.length>1&&e.data.value[0].count>0?[e.data.value[1].count>0?a("div",{staticClass:"m-b-4"},[a("span",{domProps:{innerHTML:t._s(t.$t("asin_tracker_metric_tip_month_sales_detail_current",{date:t.createZonedMoment(e.data.value[1].timestamp).format("YYYY-MM-DD"),num1:t.thousandUnit(e.data.value[0].count),num2:t.thousandUnit(e.data.value[1].count)}))}})]):t._e()]:[a("div",{staticClass:"m-b-4",domProps:{innerHTML:t._s(t.$t("asin_tracker_metric_tip_month_sales_detail_pre",{date:t.createZonedMoment(e.data.value[0].timestamp).format("YYYY-MM-DD"),num1:t.thousandUnit(e.data.value[0].count)}))}})],a("div",{staticClass:"m-t-24"},[t._v(t._s(t.$t("asin_tracker_tip_click")))])],2)]):a("span",[t._v("-")])]:a("div",{staticStyle:{height:"38px","line-height":"38px"}},[t._v(" "+t._s(t.$t("_COMMON_NO_DATA"))+" "),a("feather-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.right",modifiers:{hover:!0,right:!0}}],staticStyle:{color:"#6e6b7b"},attrs:{title:t.$t("asin_tracker_month_sales_no_data"),icon:"AlertCircleIcon",size:"18"}})],1)]]}},{key:"cell(historyStars)",fn:function(e){return[e.data.value.length>0?a("el-tooltip",[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(" "+t._s(t.historyStarsTooltipChange(e.data.item,"historyStars"))+" "),a("div",{staticClass:"m-t-24"},[t._v(t._s(t.$t("asin_tracker_tip_click")))])]),a("div",[a("div",[e.data.value[1]?a("u",{staticClass:"cursor-pointer",on:{click:function(a){return t.toShowDragDetail(e.data.item,"historyStars")}}},[t._v(t._s(t._f("toFixed2")(e.data.value[1].rating)))]):a("u",{staticClass:"cursor-pointer",on:{click:function(a){return t.toShowDragDetail(e.data.item,"historyStars")}}},[t._v(t._s(t._f("toFixed2")(e.data.value[0].rating)))])]),e.data.value[1]&&e.data.value[1].rating-e.data.value[0].rating!=0?a("div",{staticClass:"fs12",class:e.data.value[1].rating-e.data.value[0].rating>0?"up-text":"down-text"},[t._v(" "+t._s(e.data.value[1].rating-e.data.value[0].rating>0?"+":"")+t._s(t._f("toFixed2")(e.data.value[1].rating-e.data.value[0].rating))+" ")]):t._e()])]):a("span",[t._v("-")])]}},{key:"cell(historyReviews)",fn:function(e){return[e.data.value.length?a("el-tooltip",[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(" "+t._s(t.historyReviewsTooltipChange(e.data.item,"historyReviews"))+" "),a("div",{staticClass:"m-t-24"},[t._v(t._s(t.$t("asin_tracker_tip_click")))])]),a("div",[a("u",{staticClass:"cursor-pointer",on:{click:function(a){return t.toShowDragDetail(e.data.item,"historyStars")}}},[t._v(t._s(t._f("thousand")(e.data.value[1]?e.data.value[1].count:e.data.value[0].count)))]),e.data.value.length>0&&e.data.value[1]&&e.data.value[0].count&&e.data.value[1].count-e.data.value[0].count!=0?a("div",{staticClass:"fs12",class:e.data.value[1].count-e.data.value[0].count>0?"up-text":"down-text"},[t._v(" "+t._s(e.data.value[1].count-e.data.value[0].count>0?"+":"")+t._s(t._f("thousand")(e.data.value[1].count-e.data.value[0].count))+" ")]):t._e()])]):a("span",[t._v("-")])]}},{key:"cell(variationNumber)",fn:function(e){return[a("div",[t._v(t._s(e.data.value))])]}},{key:"cell(releaseTime)",fn:function(e){return[e.data.value?a("div",[t._v(" "+t._s(t._f("toCreateZonedMoment")(e.data.value))+" ")]):a("span",[t._v(" - ")]),e.data.value?a("div",{staticClass:"fs12 last-color"},[t._v(" "+t._s(t.diffTime(e.data.value,t.moment()))+" ")]):t._e()]}},{key:"cell(remark)",fn:function(e){return[a("div",{staticClass:"text-ell"},[t._v(" "+t._s(e.data.value||"-")+" ")]),a("div",{staticClass:"g-link-btn",on:{click:function(a){return t.toEditRemark(e.data.item)}}},[t._v(t._s(t.$t("global_button_edit")))])]}},{key:"cell(latestChange)",fn:function(e){return[a("el-tooltip",[a("div",{attrs:{slot:"content"},slot:"content"},[e.data.value&&e.data.value.type?"-"!=t.getIsLD(e.data.value)?a("span",{domProps:{innerHTML:t._s(t.getLightDeal(e.data.value))}}):a("span",[t._v(" "+t._s(t.formatLatestChange(e.data.value))+" ")]):[a("div",{staticClass:"m-b-4"},[t._v(t._s(t._f("moment")(e.data.value.createdAt))+t._s(t.$t("app_push_startTrack")))]),t._v(" "+t._s(t.$t("global_nodata"))+" ")]],2),e.data.value&&e.data.value.type?a("u",{staticClass:"cursor-pointer text-ell",on:{click:function(a){return t.handleJumpShowSider(e.data.item)}}},[t._v(" "+t._s(t.formatLatestChange(e.data.value))+" ")]):a("div",[t._v(" "+t._s(t.$t("global_nodata"))+" ")])]),e.data.value.updatedAt?a("div",{staticClass:"last-color"},[t._v(" "+t._s(t._f("toCreateZonedMoment")(e.data.value.updatedAt))+" ")]):t._e()]}},{key:"cell(operation1)",fn:function(e){return[(t.isParent?e.data.item.asin!=t.select.childAsinselected:e.data.item.asin!=t.baseModel.asin)?a("div",{staticClass:"sepa-result-optionsbtn"},[a("b-popover",{attrs:{show:t.showPopover,disabled:!0,placement:"bottom",target:t.$options.name+t._uid+"__tips"}},[a("div",{staticStyle:{width:"339px"}},[a("div",{staticClass:"m-b-16"},[t._v(" "+t._s(t.$t("asintrack_appSetTips"))+" ")]),a("div",{staticClass:"d-flex justify-content--f-e align-items--center"},[a("b-form-checkbox",{attrs:{value:"notshow","unchecked-value":"show"},model:{value:t.noNotice,callback:function(e){t.noNotice=e},expression:"noNotice"}},[t._v(t._s(t.$t("global_noTipAgain")))]),a("b-button",{staticClass:"m-l-16",attrs:{size:"sm",variant:"primary"},on:{click:t.closePopover}},[t._v(t._s(t.$t("global_yes")))])],1)])]),a("a",{staticClass:"mtm-competitiveTracker_tabMyTracker_enterDetail_btn g-link-btn",attrs:{href:"javascript:;"},on:{click:function(a){return t.handleJump(e.data.item)}}},[t._v(t._s(t.$t("global_detail")))]),a("div",[a("el-dropdown",{staticClass:"common-dropdown-el-link",attrs:{trigger:"click",placement:"bottom-start"},on:{"visible-change":function(a){var n=t.$refs["dropdown-link-"+e.data.index];n&&n.$el&&(n=n.$el),a?n&&n.focus():n&&n.blur()}}},[a("b-button",{ref:"dropdown-link-"+e.data.index,staticClass:"common-dropdown-link",attrs:{variant:"link"}},[t._v(" "+t._s(t.$t("_DASHBOARD_MORE"))+" "),a("feather-icon",{attrs:{icon:"ChevronDownIcon",size:"16"}})],1),a("el-dropdown-menu",{staticClass:"common-dropdown-link-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(a){return t.changeModalVisible(!0,e.data.item)}}},[t._v(" "+t._s(t.$t("at_remove_competitors"))+" ")])],1)],1)],1)],1):t._e()]}}])}),a("app-settings-modal",{ref:"appsettings-modal",attrs:{configs:t.configs},on:{callback:t.alarmChangeCallback}}),a("EditRemarkModal",{attrs:{remarkItem:t.remarkItem},on:{refreshTable:t.getList},model:{value:t.showRemark,callback:function(e){t.showRemark=e},expression:"showRemark"}}),t.showDragDetail?a("DragDetailChart",{attrs:{chartBlocks:t.chartBlocks,selectBlock:t.selectBlock,baseModel:t.dragItem,padId:"competitive-tacker_report"},on:{blockChange:t.handleBlockChange,close:function(e){t.showDragDetail=!1},goDetail:t.handleJump}}):t._e(),a("custom-modal",{attrs:{noMargin:"",modalClass:"normal-modal","hide-footer":"",noCloseOnBackdrop:"",title:"",visible:t.showAddModal,width:1200},on:{hidden:function(e){t.showAddModal=!1}}},[t.showAddModal?a("add-products-step",{attrs:{isProductAnalysis:!0,productItem:t.productItem,shopId:t.searchParams.shopId,searchKey:t.searchParams.searchKey},on:{fresh:t.$refresh,close:t.closeFn,showModal:function(e){t.showModal=!0},toggleModal:function(e){t.showAddModal=!t.showAddModal}}}):t._e()],1)],2)},re=[],se=a("1f98"),le=a("fa83"),ce=a("9678"),ue=a("d80f"),de=a("7fd8"),he=a("3a1e"),pe=(a("a620"),{props:{baseModel:{}},mixins:[le["a"]],components:{emptyBlock:vt["o"],commonTable:j["a"],EditRemarkModal:ce["a"],AddProductsStep:de["a"],customModal:vt["l"],AppSettingsModal:he["a"],commonSearchForm:jt["a"]},data:function(){return{isEmpty:!1,noNotice:"show",showAddModal:!1,tableKey:Math.random().toString(16).substring(2,6),modalVisible:!1,showRemark:!1,remarkItem:{},openTransObj:{},editItem:{},tableData:[],searchParams:{shopId:null,searchKey:null},trackedAsins:[],isTraced:!0,loading:!1,selected:null,select:{childAsinselected:null},childAsinList:[]}},computed:{isParent:function(){return 1==this.baseModel.isParent},formOptions:function(){var t;return 1==this.isParent?[{type:"v-select",width:"272px",id:"childAsinselected",clearable:!1,placeholder:this.$t("_TREND_SELECT"),options:null===(t=this.childAsinList)||void 0===t?void 0:t.map((function(t){return{label:t,value:t}}))}]:[]},productItem:function(){return this.isTraced&&this.isEmpty?Object(s["a"])(Object(s["a"])({},this.baseModel),{},{asin:this.isParent?this.select.childAsinselected:this.baseModel.asin}):null},tableParams:function(){var t,e;return{asin:null===(t=this.baseModel)||void 0===t?void 0:t.asin,marketplaceId:null===(e=this.baseModel)||void 0===e?void 0:e.marketplaceId}},tableOptions:function(){var t=this,e=[{stickyColumn:!0,key:"operation1",headerPosition:"left",diy:!0,lokKey:"_STOCK_EMAIL_NOTIFY_SETTING",label:this.$t("_STOCK_EMAIL_NOTIFY_SETTING")},{stickyColumn:!0,key:"title",headerPosition:"left",width:80,diy:!0,type:"productInfo",keyMap:{parentAsin:"aa",imageUrl:"masterImage"},lokKey:"_COMMON_TH_PRODUCT_INFO",label:this.$t("_COMMON_TH_PRODUCT_INFO")},{key:"variation",label:this.$t("asin_track_commodity_attribute"),headerPosition:"left",diy:!0},{key:"monthlySoldHistory",width:this.IS_LANG_EN?110:"",appendTip:this.$t("asin_tracker_metric_tip_month_sales"),lokKey:"ae_parameter_month_sales",label:this.$t("ae_parameter_month_sales"),sortable:!0,selectColumnProp:"monthlySold",diy:!0},{key:"categorySaleRanks",width:this.IS_LANG_EN?110:"",diy:!0,label:this.$t("global_asinDetail_field_rank")},{key:"buyBoxShippingPriceHistory",width:this.IS_LANG_EN?80:"",sortable:!0,selectColumnProp:"buyBoxPrice",diy:!0,lokKey:"ae_buybox_price",label:this.$t("ae_buybox_price")},{key:"historyStars",sortable:!0,selectColumnProp:"reviewStar",diy:!0,lokKey:"global_asin_rate",label:this.$t("global_asin_rate")},{key:"historyReviews",width:this.IS_LANG_EN?85:"",sortable:!0,selectColumnProp:"reviewNum",lokKey:"ae_rating_count",label:this.$t("ae_rating_count"),diy:!0},{key:"variationNumber",width:80,sortable:!0,lokKey:"global_asin_asinNumber",label:this.$t("global_asin_asinNumber"),formatter:function(t,e,a){return t||"-"}},{key:"releaseTime",width:this.IS_LANG_EN?150:"",sortable:!0,diy:!0,lokKey:"global_asin_shelftime",label:this.$t("global_asin_shelftime")},{key:"brand",width:100,lokKey:"asinDetail_field_brand",label:this.$t("asinDetail_field_brand"),headerPosition:"left"},{key:"remark",diy:!0,lokKey:"_SALES_ANALYSIS_NOTE",label:this.$t("_SALES_ANALYSIS_NOTE"),headerPosition:"left"},{key:"fbaFee",sortable:!0,selectColumnProp:"fbaFee",appendTip:this.$t("amazon_fulfillment_fee"),lokKey:"ae_fba_fee",label:this.$t("ae_fba_fee"),formatter:function(e,a,n){var i=n.fbaFee,o="A1VC38T7YXB528"==n.marketplaceId,r=ue["C"][n.marketplaceId],s=t.$options.filters["thousand"]((null===i||void 0===i?void 0:i.pickAndPackFee)||0+(null===i||void 0===i?void 0:i.pickAndPackFeeTax)||0+(null===i||void 0===i?void 0:i.storageFee)||0+(null===i||void 0===i?void 0:i.storageFeeTax)||0)/(o?1:100);return s?((null===r||void 0===r?void 0:r.currencySymbol)||"")+s:0}},{key:"packageHeight",lokKey:"ae_parameter_package_dimensions",label:this.$t("ae_parameter_package_dimensions"),formatter:function(e,a,n){var i,o,r;return"".concat(null!==(i=t.convertPoundsToKg(n.packageLength))&&void 0!==i?i:"-"," × ").concat(null!==(o=t.convertPoundsToKg(n.packageWidth))&&void 0!==o?o:"-"," × ").concat(null!==(r=t.convertPoundsToKg(n.packageHeight))&&void 0!==r?r:"-"," ").concat(t.$t("ae_unit_dimensions"))}},{key:"packageWeight",lokKey:"global_asinDetail_field_ProductWeight",label:this.$t("global_asinDetail_field_ProductWeight"),formatter:function(e,a,n){return e?t.convertPoundsToKg(e)+" "+t.$t("ae_unit_weight"):"-"}}];return this.tableKey=Math.random().toString(16).substring(2,6),{normalScroll:!0,stickyHeader:!0,hasPageSizeOptions:!0,noShopId:!0,filterVis:!0,refreshEnabled:!0,noDownload:!0,noFilter:!1,hidePagination:!1,requestShowDetails:!0,localSorting:!0,refreshFn:this.getList,formatterShowDetails:function(t){return t.map((function(t){return Object(s["a"])(Object(s["a"])({},t),{},{_showDetails:"PAUSE"===t.status||"LOADING"===t.status})}))},fields:[].concat(e)}}},mounted:function(){this.getTrackedAsins(),this.isParent?this.pasinGetList():this.getList()},watch:{"select.childAsinselected":{deep:!0,handler:function(t){var e,a;t&&(this.getList(),this.isTraced=null===(e=this.trackedAsins)||void 0===e||null===(a=e[this.baseModel.marketplaceId])||void 0===a?void 0:a.includes(this.isParent?this.select.childAsinselected:this.baseModel.asin))}}},methods:{pasinGetList:function(){var t=this;return Object(Pt["a"])(regeneratorRuntime.mark((function e(){var a,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={pageSize:999,currentPage:1,searchKey:t.baseModel.parentAsin,dasCurrentShop:t.baseModel.shopId},e.next=3,Object(f["t"])(a);case 3:n=e.sent,1==n.status&&(t.childAsinList=null===(i=n.content.result)||void 0===i?void 0:i.map((function(t){return 0==t.isParent?t.asin:null})).filter(Boolean),t.$nextTick((function(){t.select.childAsinselected=t.childAsinList[0]})));case 5:case"end":return e.stop()}}),e)})))()},$refresh:function(){this.getList(),this.getTrackedAsins()},alarmChangeCallback:function(){this.getList()},getTrackedAsins:function(){var t=this;return Object(Pt["a"])(regeneratorRuntime.mark((function e(){var a,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(se["r"])();case 2:a=e.sent,1==a.status&&(t.trackedAsins=a.content,t.isTraced=null===(n=t.trackedAsins)||void 0===n||null===(i=n[t.baseModel.marketplaceId])||void 0===i?void 0:i.includes(t.isParent?t.select.childAsinselected:t.baseModel.asin));case 4:case"end":return e.stop()}}),e)})))()},toAdd:function(){this.searchParams={shopId:this.baseModel.shopId,searchKey:this.isParent?this.select.childAsinselected:this.baseModel.asin},this.showAddModal=!0},closeFn:function(){this.showAddModal=!1,this.getList()},setFullStatus:function(t){this.isFull=t},handleModalOk:function(){var t=this;return Object(Pt["a"])(regeneratorRuntime.mark((function e(){var a,n,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={asin:t.isParent?t.select.childAsinselected:t.baseModel.asin,marketplaceId:t.baseModel.marketplaceId,competitorAsins:[t.editItem.asin]},t.selected,e.next=4,Object(se["g"])(a);case 4:n=e.sent,i=n.status,o=n.content,1===i?(t.$store.dispatch("app/updatePop",{title:o,icon:"EditIcon",variant:"success"}),t.$nextTick((function(){t.getList()}))):t.$store.dispatch("app/updatePop",{title:o,icon:"EditIcon",variant:"danger"});case 8:case"end":return e.stop()}}),e)})))()},changeModalVisible:function(t,e){var n=this;this.$swal({iconHtml:'<img class="swal-custom-icon" src='.concat(a("a786"),"></img>"),text:this.$t("at_remove_competitors_tips"),showConfirmButton:!0,showCancelButton:!0,confirmButtonText:this.$t("global_confirm"),confirmButtonColor:"#5759F2",cancelButtonText:this.$t("_COMMON_BUTTON_CANCEL"),cancelButtonColor:"#fff",customClass:"userTrackerCount-modal_warning-swal",preConfirm:function(t){n.handleModalOk()}}),this.editItem=e},resetSelectFn:function(){this.$refs.commonTableEle.$clearChecklist()},getList:function(){var t=this;return Object(Pt["a"])(regeneratorRuntime.mark((function e(){var a,n,i,o,r,l,c,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,i=t.isParent?t.select.childAsinselected:null===(a=t.baseModel)||void 0===a?void 0:a.asin,o={asin:i,marketplaceId:null===(n=t.baseModel)||void 0===n?void 0:n.marketplaceId},e.next=6,Object(se["o"])(o);case 6:r=e.sent,1==r.status&&(t.isEmpty=!(null!==(l=r.content)&&void 0!==l&&l.length),t.tableData=null===(c=r.content)||void 0===c||null===(u=c.map((function(t){return Object(s["a"])(Object(s["a"])({},t),{},{_showDetails:"PAUSE"===t.status||"LOADING"===t.status})})))||void 0===u?void 0:u.sort((function(e,a){return(t.isParent?e.asin==t.select.childAsinselected:e.asin==t.baseModel.asin)?-1:(t.isParent?a.asin==t.select.childAsinselected:a.asin==t.baseModel.asin)?1:0}))),t.loading=!1;case 9:return e.prev=9,t.loading=!1,e.finish(9);case 12:case"end":return e.stop()}}),e,null,[[1,,9,12]])})))()},tableResponse:function(t){},sortChangedFull:function(){}}}),fe=pe,me=(a("eacb"),a("6888"),Object(v["a"])(fe,oe,re,!1,null,"de9bdc50",null)),ge=me.exports,_e=a("2fcc"),ve=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"productAnalysis-keywords-rank"},[n("shop-select",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"shopSelect",attrs:{multiple:!0}}),t.result&&t.result.keywords&&t.result.keywords.length?[n("div",{staticClass:"productAnalysis-keywords-rank_left"},t._l(t.result.keywords,(function(e){return n("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:!t.selectKeyWords.includes(e.name)&&t.selectKeyWords.length>=10?t.$t("_SALES_ANALYSIS_LIMIT_CHECK_SOME_KEYWORD_MAX",{num:10}):"",expression:"!selectKeyWords.includes(k.name) && selectKeyWords.length >= 10 ? $t('_SALES_ANALYSIS_LIMIT_CHECK_SOME_KEYWORD_MAX', { num: 10 }) : ''",modifiers:{hover:!0,top:!0}}],key:e.name,staticClass:"productAnalysis-keywords-rank_left__keyword_item p-relative",class:{selected:t.selectKeyWords.includes(e.name),"item-disabled":3==e.status||!t.selectKeyWords.includes(e.name)&&t.selectKeyWords.length>=10},on:{click:function(a){3==e.status||!t.selectKeyWords.includes(e.name)&&t.selectKeyWords.length>=10||t.handlerSelect(e.name)}}},[n("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:!t.selectKeyWords.includes(e.name)&&t.selectKeyWords.length>=10?"":e.name,expression:"!selectKeyWords.includes(k.name) && selectKeyWords.length >= 10 ? '' : k.name",modifiers:{hover:!0,top:!0}}],staticClass:"keyword_item_name"},[t._v(" "+t._s(e.name)+" ")]),3==e.status?n("div",{staticStyle:{"font-weight":"500"}},[t._v(" "+t._s(t.$t("_COMMON_STATUS_TRACK_SUSPEND"))+" "),n("router-link",{attrs:{to:"/sales_analysis/keywords_rank"}},[n("span",{staticClass:"g-link-btn m-l-12"},[t._v(" "+t._s(t.$t("asintrack_list_title1"))+" ")])])],1):t._e(),3!==e.status?n("div",{staticClass:"check-icon"},[n("feather-icon",{staticStyle:{color:"#fff"},attrs:{size:"10",icon:"CheckIcon"}})],1):t._e()])})),0),n("div",{staticClass:"productAnalysis-keywords-rank_right"},[n("quick-btn-dateselect",{staticClass:"das-block-margin_right floatLeft",attrs:{id:"date",multiple:!0,dateOption:t.dateOption,customClass:"justify-content--f-s"}}),n("b-tabs",{staticClass:"m-t-12",model:{value:t.dataType,callback:function(e){t.dataType=e},expression:"dataType"}},[n("b-tab",{attrs:{title:t.$t("_COMMON_TH_KEYWORD_RANKING")}}),n("b-tab",{attrs:{title:t.$t("keywordQuery_spRank")}})],1),n("div",{staticClass:"border-block"},[n("b-form-radio-group",{directives:[{name:"router-save",rawName:"v-router-save"}],staticClass:"floatLeft dateSelectTypeMargin",attrs:{"button-variant":"outline-nobg",options:t.dateSelectOptions,buttons:""},model:{value:t.eType,callback:function(e){t.eType=e},expression:"eType"}}),t.isComplex?n("div",[n("lineChartKW",{attrs:{dateOption:t.dateOption,dataKey:t.dataKey,isComplex:t.isComplex,selectItems:t.selectItems}})],1):n("div",{staticClass:"w-100 d-flex flex-wrap m-t-12"},t._l(t.selectItems,(function(e,a){return n("div",{key:e.name,staticClass:"echart-item border-block"},[n("lineChartKW",{attrs:{dateOption:t.dateOption,list:e.rank,idx:a,name:e.name,dataKey:t.dataKey,isComplex:t.isComplex,selectItems:t.selectItems}})],1)})),0)],1)],1)]:t.loading?t._e():n("div",{staticClass:"empty-block"},[n("img",{attrs:{src:a("3281")}}),n("div",{staticClass:"m-tb-12"},[t._v(t._s(t.$t("_TREND_PLACEHOLDER_KEYWORD_RANK")))]),n("router-link",{attrs:{to:"/sales_analysis/keywords_rank"}},[n("b-button",{attrs:{variant:"primary",size:"sm"}},[t._v(t._s(t.$t("_TREND_BUTTON_START_TRACKING")))])],1)],1)],2)},ye=[],be=(a("c740"),a("a434"),a("2ef0"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{position:"relative"}},[a("app-echart-line-custom",{attrs:{optionData:t.getOptionData,height:t.height}})],1)}),Se=[],Oe=a("15fd"),Te=a("adc2"),Ae=["rank"],xe={components:{AppEchartLineCustom:Q["a"]},data:function(){return{echartKey:Math.random().toString(16).substring(2,6)}},props:{list:{type:Array,default:function(){return[]}},dataKey:{type:String,default:function(){return""}},name:{type:String,default:function(){return""}},idx:{type:Number,default:function(){return 0}},isComplex:{type:Boolean,default:function(){return!1}},selectItems:{type:Array,default:function(){return[]}},dateOption:{type:Object,default:function(){}}},watch:{list:{deep:!0,handler:function(t,e){this.echartKey=Math.random().toString(16).substring(2,6)}},selectItems:{deep:!0,handler:function(t,e){this.echartKey=Math.random().toString(16).substring(2,6)}},isComplex:function(t){this.echartKey=Math.random().toString(16).substring(2,6)}},computed:{dates:function(){var t=this;if(t.dateOption.dateScope){if(t.dateOption.dateScope<1){var e=Number(t.dateOption.dateScope.toString().slice(2,-1)),a=[],n=Object(Te["h"])().startOf("hour"),i=n.clone().subtract(e-1,"hours"),o=n.diff(i,"hours");a.push(i.format("YYYY-MM-DD HH:mm"));for(var r=0;r<o;r++)a.push(i.add(1,"hours").format("YYYY-MM-DD HH:mm"));return a}return Object(Te["i"])(t.dateOption.dateScope)}return Object(Te["f"])(F()(t.dateOption.dateRange[0]),F()(t.dateOption.dateRange[1]))},height:function(){return this.isComplex?500:234},getOptionData:function(){return this.isComplex?this.optionData_isComplex:this.optionData},typeFlag:function(){return null!==this.dateOption.dateScope&&this.dateOption.dateScope<1&&0!=this.dateOption.dateScope?"hours":"days"},optionData_isComplex:function(){var t,e=this,a=[];return null===(t=this.selectItems)||void 0===t||t.forEach((function(t,n){t.rank;var i,o=Object(Oe["a"])(t,Ae);a[n]=Object(s["a"])({},o),null===(i=t.rank)||void 0===i||i.forEach((function(t){var i=t.adIndex,o=t.index,r=Object(Te["a"])(t.time).format("hours"===e.typeFlag?"YYYY-MM-DD HH:mm":"YYYY-MM-DD");a[n][r]={adIndex:i,index:o}}))})),{legend:{type:"scroll",align:"left",top:0,left:0,data:this.selectItems.map((function(t){return t.name}))},grid:{top:35,containLabel:!0,left:10,right:0,width:"100%",bottom:10},xAxis:{type:"category",splitLine:{show:!1},boundaryGap:!0,data:this.dates},yAxis:{type:"value",min:1,minInterval:1,inverse:!0,splitLine:{show:!0}},series:null===a||void 0===a?void 0:a.map((function(t,a){var n;return{smooth:!0,name:t.name,type:"line",color:et["a"].color(a),data:null===(n=e.dates)||void 0===n?void 0:n.map((function(a){var n;return(null===t||void 0===t||null===(n=t[a])||void 0===n?void 0:n[e.dataKey])||null}))}})),tooltip:{trigger:"axis",renderMode:"html",appendToBody:!0,extraCssText:"z-index: 9999;padding:12px"}}},optionData:function(){var t,e,a=this,n=[];return null===(t=this.list)||void 0===t||t.forEach((function(t,e){var i=Object(Te["a"])(t.time).format("hours"===a.typeFlag?"YYYY-MM-DD HH:mm":"YYYY-MM-DD");n[i]=Object(s["a"])(Object(s["a"])({},t),{},Object(o["a"])({},a.dataKey,t[a.dataKey]))})),{legend:{diy:!0,top:0,left:0,icon:"rect",itemHeight:2,data:[this.name]},grid:{top:30,containLabel:!0,left:0,right:0,width:"100%",bottom:10},xAxis:{type:"category",boundaryGap:!0,data:this.dates},yAxis:{min:1,minInterval:1,inverse:!0,type:"value",splitLine:{show:!0}},series:[{smooth:!0,name:this.name,type:"line",color:this.idx%2==0?"#5759F2":"#FF9900",data:null===(e=this.dates)||void 0===e?void 0:e.map((function(t){var e;return(null===n||void 0===n||null===(e=n[t])||void 0===e?void 0:e[a.dataKey])||null}))}],tooltip:{trigger:"axis",renderMode:"html",appendToBody:!0,extraCssText:"z-index: 9999"}}}}},Ce=xe,Ee=Object(v["a"])(Ce,be,Se,!1,null,null,null),we=Ee.exports,Me=a("c023"),ke={components:{QuickBtnDateselect:vt["h"],lineChartKW:we,shopSelect:vt["s"]},props:["baseModel","currentShop","asin"],data:function(){return{selectKeyWords:[],result:null,dataType:0,dateOption:{dateSet:[0,1,7,15,30],dateScope:this.baseModel.rangeDate?null:7,dateRange:this.baseModel.rangeDate||[]},eType:"compare",loading:!1}},mounted:function(){},computed:Object(s["a"])(Object(s["a"])({},Object(N["c"])({CURRENT_SHOP_IDS:P["h"]})),{},{isComplex:function(){return console.log("isComplex...","and"==this.eType),"and"==this.eType},dataKey:function(){return 0==this.dataType?"index":"adIndex"},selectItems:function(){var t,e=this;return null===(t=this.selectKeyWords)||void 0===t?void 0:t.map((function(t){var a;return null===(a=e.result.keywords)||void 0===a?void 0:a.find((function(e){return e.name==t}))}))},rangeDate:function(){var t=this;return this.dateOption.dateRange.length?this.dateOption.dateRange:Object(m["f"])({dateScope:this.dateOption.dateScope,dateRange:null}).map((function(e){return Object(m["a"])(e,t.timeZone).format("YYYY-MM-DD")}))},dateSelectOptions:function(){return[{text:this.$t("_TREND_TAB_COMPARE"),value:"compare"},{text:this.$t("_TREND_TAB_COMPOSITE"),value:"and"}]}}),watch:{CURRENT_SHOP_IDS:function(t){this.init()},dateOption:{deep:!0,handler:function(t){this.init(!1)}}},methods:{handlerSelect:function(t){if(this.selectKeyWords.includes(t)){var e=this.selectKeyWords.findIndex((function(e){return e==t}));this.selectKeyWords.splice(e,1)}else{JSON.parse(JSON.stringify(this.selectKeyWords));this.selectKeyWords.push(t)}},init:function(){var t=arguments,e=this;return Object(Pt["a"])(regeneratorRuntime.mark((function a(){var n,i,o,r,s,l,c,u;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=!(t.length>0&&void 0!==t[0])||t[0],a.prev=1,e.loading=!0,i=Object(m["e"])(e.dateOption),o={pageSize:10,currentPage:1,searchKey:e.asin,isChildAsin:1==e.baseModel.isParent?0:1,startTimestamp:i[0],endTimestamp:i[1]},a.next=7,Object(Me["y"])(o,e.baseModel.shopId);case 7:r=a.sent,1==r.status&&(e.result=r.content.result[0],n&&(e.selectKeyWords=null===(s=r.content.result[0])||void 0===s||null===(l=s.keywords)||void 0===l||null===(c=l.filter((function(t){return 3!=t.status})))||void 0===c||null===(u=c.slice(0,4))||void 0===u?void 0:u.map((function(t){return t.name}))));case 9:return a.prev=9,e.loading=!1,a.finish(9);case 12:case"end":return a.stop()}}),a,null,[[1,,9,12]])})))()}}},Ie=ke,De=(a("9940"),Object(v["a"])(Ie,ve,ye,!1,null,null,null)),Le=De.exports,Re=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"productAnalysisCoreWrap formPadding",attrs:{id:t.$options.name}},[a("div",{staticClass:"d-flex justify-content--f-s"},[a("quick-btn-dateselect",{attrs:{id:"date",multiple:"",dateOption:t.dateOption,customClass:"justify-content--f-s"}}),a("b-form-radio-group",{directives:[{name:"router-save",rawName:"v-router-save"}],staticClass:"dayWeekMonthWrap",attrs:{"button-variant":"outline-nobg",options:t.dateSelectOptions,buttons:""},model:{value:t.detailSalesDateSelectType,callback:function(e){t.detailSalesDateSelectType=e},expression:"detailSalesDateSelectType"}})],1),a("line-chart",{key:"lineChartWrap"+t.$options.name+t.detailSalesDateSelectType,staticClass:"lineChartWrap",attrs:{isSingleY:!1,dateSelectType:t.detailSalesDateSelectType,selectBlock:["totalQuantity","orders"],coverOption:t.isEn?{grid:{left:"3%",right:"3%",width:"94%"}}:{grid:{left:"2%",right:"2%",width:"96%"}},rangeDate:t.rangeDate,profitType:t.baseModel.profitType,profitDays:t.dataDays},on:{export:t.exportExcel}})],1)},Ne=[],Pe={name:"detailSales",components:{lineChart:rt,QuickBtnDateselect:vt["h"]},data:function(){return{dataDays:[],detailSalesDateSelectType:"days",dateOption:{dateSet:[0,1,7,15,30],dateScope:this.baseModel.rangeDate?null:7,dateRange:this.baseModel.rangeDate||[]}}},props:["baseModel"],watch:{rangeDate:{immediate:!0,handler:"getDataDays"}},computed:{isEn:function(){return"en"===this.$i18n.locale},rangeDate:function(){return this.dateOption.dateRange.length?this.dateOption.dateRange:Object(m["g"])({dateScope:this.dateOption.dateScope,dateRange:null}).map((function(t){return Object(m["a"])(t).format("YYYY-MM-DD")}))},dateSelectOptions:function(){return[{text:this.$t("_COMMON_DAY_LABEL"),value:"days"},{text:this.$t("_COMMON_WEEK_LABEL"),value:"week"},{text:this.$t("_COMMON_MONTH_LABEL"),value:"month"}]},isSku:function(){return this.baseModel.isSku},isParent:function(){return this.baseModel.isParent}},methods:{exportExcel:function(){var t={},e=this;t.title=e.$t("_ROUTER_NAME_SALES_ANALYSIS");var a={orders:{lineColor:"#ff717a",label:e.$t("_COMMON_TH_ORDERS")},totalQuantity:{lineColor:"#ff9715",label:e.$t("_COMMON_TH_TOTAL_SALES_COUNT")}},n=[];n.push(a["orders"].label),n.push(a["totalQuantity"].label),t.header=[[""].concat(n)],t.body=[],e.dataDays.forEach((function(e){var a=[e.date];a.push(e["orders"]?e["orders"]:0),a.push(e["totalQuantity"]?e["totalQuantity"]:0),t.body.push(a)})),Object(Y["a"])([].concat(Object(r["a"])(t.header),Object(r["a"])(t.body)),{fileName:t.title})},getDataDays:function(){var t=this,e=this,a={};1==e.isSku?a.sku=e.baseModel.sku:1==e.isParent?a.parentAsin=e.baseModel.parentAsin:a.asin=e.baseModel.asin,e.dateOption.dateScope||0==e.dateOption.dateScope?a.dateScope=e.dateOption.dateScope:(a.startDate=F()(e.dateOption.dateRange[0]).format("YYYY-MM-DD"),a.endDate=F()(e.dateOption.dateRange[1]).format("YYYY-MM-DD")),Object(T["s"])(a,e.baseModel.shopId).then((function(a){var n={};if(1==a.status){var i=a.content?a.content:[];t.dataDays=Object(m["j"])(e.dateOption).map((function(t){return n={date:t},n})),e.dataDays.forEach((function(t){var e=i.find((function(e){return e.date==t.date}));t.orders=null!==e&&void 0!==e&&e.orders?e.orders:0,t.totalQuantity=null!==e&&void 0!==e&&e.totalQuantity?e.totalQuantity:0}))}}))}}},je=Pe,$e=(a("67db"),Object(v["a"])(je,Re,Ne,!1,null,"4671f6a4",null)),Fe=$e.exports,Be=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"productAnalysisCoreWrap formPadding",attrs:{id:t.$options.name}},[a("quick-btn-dateselect",{attrs:{multiple:"",id:t.$options.name+"date",dateOption:t.dateOption,customClass:"justify-content--f-s"}}),a("div",{staticClass:"echartWrap"},[a("b-tabs",{directives:[{name:"router-save",rawName:"v-router-save"}],staticClass:"pieTopHeader",model:{value:t.feedDetailTab,callback:function(e){t.feedDetailTab=e},expression:"feedDetailTab"}},[a("b-tab",{attrs:{active:"",title:t.$t("_SALES_ANALYSIS_COST_STRUCTURE")}},[a("b-row",[a("b-col",{attrs:{cols:5}},[a("pie-chart",{staticClass:"pieChartWrap",attrs:{baseModel:t.baseModel,pieItemNamesShow:t.pieItemNamesShow,rangeDate:t.rangeDate,customCostDetail:t.customCostDetail,financeFeeDetail:t.profitTotal,profitTotal:t.profitTotal},on:{data:t.pieChartDateFn}})],1),a("b-col",{attrs:{cols:7}},[a("pie-list",{attrs:{rangeDate:t.rangeDate,baseModel:t.baseModel,customCostDetail:t.customCostDetail,isAsin:1!=t.isSku,storeType:1==t.isParent?"parent":1==t.isSku?"sku":"asin",showKeyList:t.showKeyList,financeFeeDetail:t.profitTotal,profitTotal:t.profitTotal},on:{pieItemNamesShow:t.pieItemNamesShowFn}})],1)],1)],1),a("b-tab",{attrs:{title:t.$t("_SALES_ANALYSIS_COST_COMPARE_SALE")}},[a("b-row",[a("b-col",{attrs:{cols:12}},[a("div",{staticStyle:{color:"#6e7378",margin:"0 0 10px 5%"}},[t._v(t._s(t.$t("_SALES_ANALYSIS_COST_COMPARE_SALE_BRACKET")))]),a("bar-chart",{attrs:{isAsin:1!=t.isSku,baseModel:t.baseModel,showKeyList:t.showKeyList,profitTotal:t.profitTotal}})],1)],1)],1),a("b-tab",{attrs:{title:t.$t("_SALES_ANALYSIS_COST_TREND")}},[a("cost-fee-chart",{attrs:{baseModel:t.baseModel,profitType:t.baseModel.profitType,dateOption:t.dateOption,profitDays:t.dataDays,profitTotal:t.profitTotal,profitTotalLast:t.profitTotalLast}})],1)],1)],1)],1)},Ye=[],Ue=a("372f"),ze=a("a6fc"),Ve=a("49be"),He=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"productAnalysisCoreWrap",attrs:{id:t.$options.name}},[a("div",{directives:[{name:"router-save",rawName:"v-router-save",value:t.selectBlock,expression:"selectBlock"}],staticClass:"leftSelectWrap"},t._l(t.showList,(function(e){return a("label",{key:e.id,staticClass:"dateShowBlock",class:{goAdAuthWrap:["sales","spend","adSalesRate"].indexOf(e.id)>-1&&!t.adPermission,disabled:1===t.selectBlock.length&&t.selectBlock.indexOf(e.id)>-1||3===t.selectBlock.length&&t.selectBlock.indexOf(e.id)<0,checked:t.selectBlock.indexOf(e.id)>-1},attrs:{for:e.id},on:{click:function(a){return t.showAlart(t.selectBlock,e)}}},[a("p",{staticClass:"title-1"},[t._v(" "+t._s(t.$t(e.name))+" "),e.showSym&&t.CURRENCY_SYMBOL?a("span",{staticClass:"symbolColor"},[t._v(" ("+t._s(t.$route.query.CURRENCY_SYMBOL||t.CURRENCY_SYMBOL)+") ")]):t._e()]),["sales","spend","adSalesRate"].indexOf(e.id)>-1&&!t.adPermission?[a("p",{staticClass:"goAdAuth",on:{click:t.goAuthAd}},[a("lok",{attrs:{"lok-key":"_PROFILE_AUTH_MANAGEMENT_GO_AUTH_AD"}}),a("feather-icon",{attrs:{icon:"ChevronRightIcon",size:"15"}})],1)]:[a("p",{staticClass:"title-2"},[a("span",{staticClass:"leftShowTip"},[t._v(t._s(t._f("thousand")(e.value)))]),a("span",{staticClass:"rightShowTip",class:{visHide:!e.popValue&&0!=e.popValue}},[0===t.dateOption.dateScope?a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_YESTERDAY"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_YESTERDAY"))+" ")]):1==t.dateOption.dateScope?a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_BEFORE_YESTERDAY"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_BEFORE_YESTERDAY"))+" ")]):null==t.dateOption.dateScope?a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_LAST_PERIOD"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_LAST_PERIOD"))+" ")]):a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_LAST_SOME_DAYS"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_LAST_SOME_DAYS",{days:t.dateOption.dateScope}))+" ")]),a("em",{class:{less:e.popValue>0,more:e.popValue<0}},[t._v(t._s(e.popValue>0?"+":"")+" "+t._s(e.popValue)+"%")])],1)]),a("b-form-checkbox",{staticClass:"checkboxRight2 checkboxRight--sixteen",attrs:{disabled:1===t.selectBlock.length&&t.selectBlock.indexOf(e.id)>-1||3===t.selectBlock.length&&t.selectBlock.indexOf(e.id)<0,id:e.id,value:e.id},model:{value:t.selectBlock,callback:function(e){t.selectBlock=e},expression:"selectBlock"}})]],2)})),0),a("div",{staticClass:"rightContent"},[a("div",{staticClass:"rightContentWrap",attrs:{"no-body":""}},[a("div",{staticClass:"lineChartCost"},[a("div",{staticClass:"d-flex justify-content--f-s"},[a("b-form-radio-group",{directives:[{name:"router-save",rawName:"v-router-save"}],staticClass:"dayWeekMonthWrap",attrs:{"button-variant":"outline-nobg",options:t.dateSelectOptions,buttons:""},model:{value:t.dateSelectType,callback:function(e){t.dateSelectType=e},expression:"dateSelectType"}})],1),a("line-chart-cost",{key:"lineChart"+t.$options.name+t.dateSelectType,attrs:{dateSelectType:t.dateSelectType,selectBlock:t.selectBlock,rangeDate:t.rangeDate,profitType:t.profitType,profitDays:t.profitDays}})],1)])])])},Ge=[],We=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("app-echart-line-custom",{attrs:{optionData:t.optionData,height:400}})],1)},Ke=[],Ze={name:"lineChart",components:{AppEchartLineCustom:Q["a"]},props:{isSingleY:{},dateSelectType:{},selectBlock:{},rangeDate:{},refundType:{},profitType:{},profitDays:{}},computed:{profitWeeks:function(){var t={},e=[];return this.profitDays.forEach((function(e){var a=F()(e.date),n=a.year()+"-"+a.isoWeek();t[n]?t[n].push(Object(s["a"])(Object(s["a"])({},e),{},{week:n})):t[n]=[Object(s["a"])(Object(s["a"])({},e),{},{week:n})]})),Object.keys(t).forEach((function(a){var n=t[a].reduce((function(t,e){return{costPurchase:t.costPurchase+e.costPurchase,costLogistics:t.costLogistics+e.costLogistics,costCommission:t.costCommission+e.costCommission,promotion:t.promotion+e.promotion,costDefined:t.costDefined+e.costDefined,costFbafee:t.costFbafee+e.costFbafee,costCpc:t.costCpc+e.costCpc,tax:t.tax+e.tax,fbaInventoryInboundFee:t.fbaInventoryInboundFee+e.fbaInventoryInboundFee,otherFee:parseFloat(t.otherFee)+parseFloat(e.otherFee)}}),{costPurchase:0,costLogistics:0,costCommission:0,promotion:0,costDefined:0,costFbafee:0,costCpc:0,tax:0,otherFee:0,fbaInventoryInboundFee:0});Object.keys(n).forEach((function(t){n[t]=parseFloat(n[t]).toFixed(2)})),n.date=t[a][0].date+" ~ "+t[a][t[a].length-1].date,n.startDate=t[a][0].date,e.push(n)})),e.sort((function(t,e){return t.startDate-e.startDate})),e},profitMonths:function(){var t={},e=[];return this.profitDays.forEach((function(e){var a=F()(e.date),n=a.year()+"-"+a.month();t[n]?t[n].push(Object(s["a"])(Object(s["a"])({},e),{},{month:n})):t[n]=[Object(s["a"])(Object(s["a"])({},e),{},{month:n})]})),Object.keys(t).forEach((function(a){var n=t[a].reduce((function(t,e){return{costPurchase:t.costPurchase+e.costPurchase,costLogistics:t.costLogistics+e.costLogistics,costCommission:t.costCommission+e.costCommission,promotion:t.promotion+e.promotion,costDefined:t.costDefined+e.costDefined,costFbafee:t.costFbafee+e.costFbafee,costCpc:t.costCpc+e.costCpc,tax:t.tax+e.tax,fbaInventoryInboundFee:t.fbaInventoryInboundFee+e.fbaInventoryInboundFee,otherFee:parseFloat(t.otherFee)+parseFloat(e.otherFee)}}),{fbaInventoryInboundFee:0,costPurchase:0,costLogistics:0,costCommission:0,promotion:0,costDefined:0,costFbafee:0,costCpc:0,tax:0,otherFee:0});Object.keys(n).forEach((function(t){n[t]=parseFloat(n[t]).toFixed(2)})),n.date=t[a][0].date+" ~ "+t[a][t[a].length-1].date,n.startDate=t[a][0].date,e.push(n)})),e.sort((function(t,e){return t.startDate-e.startDate})),e}},data:function(){return{config:{},optionData:{}}},methods:{initChart:function(t){var e=this;if(!t||t.length){var a=this;switch(this.config={costPurchase:{lineColor:"#949233",label:a.$t("_SALES_ANALYSIS_PURCHASE_COST")},costLogistics:{lineColor:"#1d7f96",label:a.$t("_SALES_ANALYSIS_SHIPPING")},costCommission:{lineColor:"#af8a00",label:a.$t("_SALES_ANALYSIS_REFERRAL_FEE")},promotion:{lineColor:"#8732d1",label:a.$t("_SALES_ANALYSIS_PROMOTION")},costDefined:{lineColor:"#373",label:a.$t("_CUSTOMIZED_COST_CUSTOMIZED_COST_TITLE")},costFbafee:{lineColor:"#98765d",label:a.$t("_SALES_ANALYSIS_FBAFEE")},costCpc:{lineColor:"#73a6ff",label:a.$t("_SALES_ANALYSIS_AD_COST")},tax:{lineColor:"#9afc7f",label:a.$t("_SALES_ANALYSIS_TAX_FEE")},otherFee:{lineColor:"#a393fe",label:a.$t("_SALES_ANALYSIS_OTHER_COST")},fbaInventoryInboundFee:{lineColor:"#0f0253",label:a.$t("_SALES_ANALYSIS_FBA_STORAGE_FEE")},totalQuantity:{lineColor:"#9090f9",label:a.$t("_COMMON_TH_TOTAL_SALES_COUNT")}},this.dateSelectType){case"days":var n=this.profitDays;break;case"week":n=this.profitWeeks;break;case"month":n=this.profitMonths;break;default:break}if(n){var i=n.map((function(t){var a=t.date.split("~"),n=a.map((function(t){var a=t.split("-");return"en"==e.$i18n.locale?a[2]+"/"+a[1]:a[1]+"-"+a[2]}));return n.join(" ~ ")})),o=[],r=[],l=[];this.selectBlock.forEach((function(t,i){if(e.config[t]){l.push(e.config[t].label);var s=n.map((function(a){return e.isSingleY&&["sumConv","sumOrderConv","rate","refundMoneyRate","buyButtonRate","ad_acos"].indexOf(t)>-1?parseFloat(((a[t]||0)/100).toFixed(2)):a[t]||0})),c={color:e.config[t].lineColor},u={type:"line",data:s,itemStyle:c,lineStyle:c,name:e.config[t].label,showInLegend:!0,yAxisIndex:e.isSingleY?0:i};r.push({type:"value",axisLabel:{formatter:function(e,n){if(["sumConv","sumOrderConv","rate","refundMoneyRate","buyButtonRate","ad_acos"].indexOf(t)>-1&&!a.isSingleY)return e+"%";var i=e,o=Math.abs(e),r=0===e?1:e/o;return o<1e3||(o<1e6?i=r*(o/1e3).toFixed(2)+"K":o<1e9&&(i=r*(o/1e6).toFixed(2)+"M")),i}},splitLine:{show:!0},show:!0}),o.push(u)}})),r.length>1&&r.forEach((function(t){t.splitLine.show=!1}));var c={legend:{top:0,data:l},grid:{top:53,containLabel:r.length<=2,left:0,right:0,width:"100%",bottom:25},xAxis:Object(s["a"])({type:"category",data:i,boundaryGap:!0,axisLabel:{interval:Object(J["a"])(i.length),formatter:q["d"]}},"days"===a.dateSelectType?{splitArea:{show:!0,interval:0,areaStyle:{color:Object(X["a"])(n.map((function(t){return t.date+" 00:00:00"})))}}}:{}),yAxis:r,series:o,tooltip:{trigger:"axis",formatter:function(t){var e=t[0],i="",o=e.name,r=[];return 6===new Date(n[e.dataIndex].date+" 00:00:00").getDay()?o+="("+a.$t("_COMMON_SATURDAY")+")":0===new Date(n[e.dataIndex].date+" 00:00:00").getDay()&&(o+="("+a.$t("_COMMON_SUNDAY")+")"),i+="".concat(a.$t("_TREND_DATE"),": ").concat(o,"<br/>"),a.selectBlock.forEach((function(t){i+="".concat(a.config[t].label,": "),r=n.map((function(e){return e[t]})),i+=r[e.dataIndex],["sumConv","sumOrderConv","rate","refundMoneyRate","buyButtonRate","ad_acos"].indexOf(t)>-1&&(i+="%"),i+="<br/>"})),'<div style="padding:12px;">'.concat(i,"</div>")}}};this.optionData=c}}}},watch:{"$i18n.locale":function(){this.initChart()},profitDays:"initChart",dateSelectType:"initChart",isSingleY:function(t){this.initChart(t+"")},selectBlock:{immediate:!0,handler:"initChart"}},mounted:function(){this.initChart()}},qe=Ze,Xe=Object(v["a"])(qe,We,Ke,!1,null,null,null),Qe=Xe.exports,Je={name:"costFeeChart",data:function(){return{dateSelectType:"days",selectBlock:[]}},components:{lineChartCost:Qe},props:{profitDays:{},profitType:{},dateOption:{},adPermission:{},profitTotal:{},profitTotalLast:{},baseModel:{}},watch:{showList:{immediate:!0,handler:function(t){this.selectBlock.length||(this.selectBlock=[t[0].id])}}},computed:{multiple:function(){return!(!this.baseModel||!this.baseModel.shopId)},CURRENCY_SYMBOL:function(){return this.multiple?this.baseModel.CURRENCY_SYMBOL:this.$store.getters[P["c"]]},dateSelectOptions:function(){return[{text:this.$t("_COMMON_DAY_LABEL"),value:"days"},{text:this.$t("_COMMON_WEEK_LABEL"),value:"week"},{text:this.$t("_COMMON_MONTH_LABEL"),value:"month"}]},rangeDate:function(){return this.dateOption.dateRange.length?this.dateOption.dateRange:Object(m["g"])({dateScope:this.dateOption.dateScope,dateRange:null}).map((function(t){return Object(m["a"])(t).format("YYYY-MM-DD")}))},timeDiff:function(){var t=Object(m["a"])(F()(this.rangeDate[0]).format("YYYY-MM-DD")),e=Object(m["a"])(F()(this.rangeDate[1]).format("YYYY-MM-DD"));return e.diff(t,"days")},showList:function(){return[{name:"_SALES_ANALYSIS_PURCHASE_COST",showSym:!0,id:"costPurchase",value:this.profitTotal.costPurchase,popValue:this.increaseRate(this.profitTotalLast.costPurchase,this.profitTotal.costPurchase)},{name:"_SALES_ANALYSIS_SHIPPING",showSym:!0,id:"costLogistics",value:this.profitTotal.costLogistics,popValue:this.increaseRate(this.profitTotalLast.costLogistics,this.profitTotal.costLogistics)},{name:"_SALES_ANALYSIS_REFERRAL_FEE",showSym:!0,id:"costCommission",value:this.profitTotal.costCommission,popValue:this.increaseRate(this.profitTotalLast.costCommission,this.profitTotal.costCommission)},{name:"_SALES_ANALYSIS_PROMOTION",showSym:!0,id:"promotion",value:this.profitTotal.promotion,popValue:this.increaseRate(this.profitTotalLast.promotion,this.profitTotal.promotion)},{name:"_CUSTOMIZED_COST_CUSTOMIZED_COST_TITLE",showSym:!0,id:"costDefined",value:this.profitTotal.costDefined,popValue:this.increaseRate(this.profitTotalLast.costDefined,this.profitTotal.costDefined)},{name:"_SALES_ANALYSIS_FBAFEE",showSym:!0,id:"costFbafee",value:this.profitTotal.costFbafee,popValue:this.increaseRate(this.profitTotalLast.costFbafee,this.profitTotal.costFbafee)},{name:"_SALES_ANALYSIS_AD_COST",showSym:!0,id:"costCpc",value:this.profitTotal.costCpc,popValue:this.increaseRate(this.profitTotalLast.costCpc,this.profitTotal.costCpc)},{name:"_SALES_ANALYSIS_TAX_FEE",showSym:!0,id:"tax",value:this.profitTotal.tax,popValue:this.increaseRate(this.profitTotalLast.tax,this.profitTotal.tax)},{name:"_SALES_ANALYSIS_OTHER_COST",showSym:!0,id:"otherFee",value:this.profitTotal.otherFee,popValue:this.increaseRate(this.profitTotalLast.otherFee,this.profitTotal.otherFee)},{name:"_SALES_ANALYSIS_FBA_STORAGE_FEE",showSym:!0,id:"fbaInventoryInboundFee",value:this.profitTotal.fbaInventoryInboundFee,popValue:this.increaseRate(this.profitTotalLast.fbaInventoryInboundFee,this.profitTotal.fbaInventoryInboundFee)}]}},methods:{showAlart:function(t,e){3===t.length&&t.indexOf(e.id)<0?this.$store.dispatch("app/updatePop",{title:this.$t("_SALES_ANALYSIS_LIMIT_CHECK_MAX"),icon:"AlertCircleIcon",variant:"warning"}):1===t.length&&t.indexOf(e.id)>-1&&this.$store.dispatch("app/updatePop",{title:this.$t("_SALES_ANALYSIS_LIMIT_CHECK_MIN"),icon:"AlertCircleIcon",variant:"warning"})},increaseRate:function(t,e){var a;return a=t>0?(100*(e/t-1)).toFixed(2):t<0?(100*(1-e/t)).toFixed(2):"-",a},goAuthAd:function(){this.$router.push({path:"/ppc_api_auth",query:{module:"AdManager",authModule:"adv",step:2}})}}},ta=Je,ea=(a("28c6"),Object(v["a"])(ta,He,Ge,!1,null,"76b16194",null)),aa=ea.exports,na={name:"feedDetail",components:{pieChart:Ue["a"],pieList:ze["a"],barChart:Ve["a"],costFeeChart:aa,QuickBtnDateselect:vt["h"]},data:function(){return Object(o["a"])({initDebounce:Object(bt["a"])(this.init,500),feedDetailTab:0,financeFeeDetail:{},showKeyList:["costPurchase","otherFee","costFbafee","costCommission","costCpc","promotion","costLogistics","costDefined","tax","fbaInventoryInboundFee","costCouponFee","costSubscriptionFee","costOtherFee","costSharingAll"],profitTotal:{},profitTotalLast:{},pieChartDate:[],customCostDetail:[],pieItemNamesShow:[],dateOption:{dateSet:[0,1,7,15,30],dateScope:this.baseModel.rangeDate?null:7,dateRange:this.baseModel.rangeDate||[]},dataDays:[]},"feedDetailTab",0)},computed:{rangeDate:function(){return this.dateOption.dateRange.length?this.dateOption.dateRange:Object(m["g"])({dateScope:this.dateOption.dateScope,dateRange:null}).map((function(t){return Object(m["a"])(t).format("YYYY-MM-DD")}))},timeDiff:function(){var t=Object(m["a"])(F()(this.rangeDate[0]).format("YYYY-MM-DD")),e=Object(m["a"])(F()(this.rangeDate[1]).format("YYYY-MM-DD"));return e.diff(t,"days")},lastRangeDate:function(){var t=this.timeDiff||1;if(this.timeDiff)e=Object(m["y"])(Object(m["m"])(t,Object(m["a"])(F()(this.rangeDate[0]))));else var e=Object(m["y"])(Object(m["m"])(t,Object(m["a"])(this.rangeDate[0])));var a=Object(m["a"])(Object(m["m"])(1,Object(m["a"])(F()(this.rangeDate[0]).format("YYYY-MM-DD"))).endOf("day"));return{lastPeriodStart:e,lastPeriodEnd:a}},isSku:function(){return this.baseModel.isSku},isParent:function(){return this.baseModel.isParent}},props:["baseModel"],watch:{rangeDate:{immediate:!0,handler:"initDebounce"}},methods:{getFinanceFeeDetail:function(t){var e=this,a={dasCurrentShop:e.baseModel.shopId},n=Object(m["h"])({dateScope:null,dateRange:t});a.startTimestamp=n[0],a.endTimestamp=n[1],Object(tt["Y"])(a).then((function(t){console.log("financeFeeDetail",t),1==t.status&&(e.financeFeeDetail=t.content)}))},init:function(t){if(this.rangeDate){var e=this.lastRangeDate,a=e.lastPeriodStart,n=e.lastPeriodEnd,i=[a.format("YYYY-MM-DD"),n.format("YYYY-MM-DD")];this.getTotalProfit([Object(m["a"])(this.rangeDate[0]).format("YYYY-MM-DD"),Object(m["a"])(this.rangeDate[1]).format("YYYY-MM-DD")],"profitTotal"),this.getTotalProfit(i,"profitTotalLast"),this.getDataDays(),this.getCustomCostDetail()}},pieChartDateFn:function(t){this.pieChartDate=t},pieItemNamesShowFn:function(t){this.pieItemNamesShow=t},getTotalProfit:function(t,e){var a=this;return Object(Pt["a"])(regeneratorRuntime.mark((function n(){var i,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=a,o={},t&&t[0]&&(o.startDate=t[0]),t&&t[1]&&(o.endDate=t[1]),a.baseModel&&(1==a.isSku?o.sku=a.baseModel.sku:(o.parentAsin=a.baseModel.parentAsin,1!=a.isParent&&(o.asin=a.baseModel.asin))),n.abrupt("return",Object(T["r"])(o,i.baseModel.shopId).then((function(t){if(1==t.status){var a=Object.assign({cost:0,profit:0,profitRate:0,refundRate:0,tax:0,financeTax:0,costCommission:0,costCpc:0,costFbafee:0,costLogistics:0,costOther:0,costPurchase:0,financeCost:0,financePrincipal:0,quantity:0,principal:0,totalPrincipal:0,totalQuantity:0,realPrincipal:0,shippingcharge:0,promotion:0,orders:0,quantityRefund:0,refund:0},t.content?t.content:{});a.sumQuantity=t.content.quantity?t.content.quantity:0,a.otherFee=parseFloat(t.content.costOther+(t.content.financeCost||0)-(t.content.financePrincipal||0)-t.content.shippingcharge).toFixed(2),i[e]=a}})));case 6:case"end":return n.stop()}}),n)})))()},getDataDays:function(){var t=this,e={};1==t.isSku?e.sku=t.baseModel.sku:1==t.isParent?e.parentAsin=t.baseModel.parentAsin:e.asin=t.baseModel.asin,t.dateOption.dateScope||0==t.dateOption.dateScope?e.dateScope=t.dateOption.dateScope:(e.startDate=F()(t.dateOption.dateRange[0]).format("YYYY-MM-DD"),e.endDate=F()(t.dateOption.dateRange[1]).format("YYYY-MM-DD")),Object(T["s"])(e,t.baseModel.shopId).then((function(e){var a={};if(t.dataDays=Object(m["j"])(t.dateOption).map((function(t){return a={date:t},a})),1==e.status){var n=e.content?e.content:[];t.dataDays.forEach((function(t){var e=n.find((function(e){return e.date==t.date}));t.fbaInventoryInboundFee=null!==e&&void 0!==e&&e.fbaInventoryInboundFee?e.fbaInventoryInboundFee:0,t.costPurchase=null!==e&&void 0!==e&&e.costPurchase?e.costPurchase:0,t.costLogistics=null!==e&&void 0!==e&&e.costLogistics?e.costLogistics:0,t.costCommission=null!==e&&void 0!==e&&e.costCommission?e.costCommission:0,t.promotion=null!==e&&void 0!==e&&e.promotion?e.promotion:0,t.costDefined=null!==e&&void 0!==e&&e.costDefined?e.costDefined:0,t.costFbafee=null!==e&&void 0!==e&&e.costFbafee?e.costFbafee:0,t.costCpc=null!==e&&void 0!==e&&e.costCpc?e.costCpc:0,t.tax=null!==e&&void 0!==e&&e.tax?e.tax:0,t.otherFee=(((null===e||void 0===e?void 0:e.costOther)||0)+((null===e||void 0===e?void 0:e.financeCost)||0)-((null===e||void 0===e?void 0:e.financePrincipal)||0)-((null===e||void 0===e?void 0:e.shippingcharge)||0)).toFixed(2)}))}}))},getCustomCostDetail:function(){var t=this,e=Object(m["h"])(t.dateOption),a={startTimestamp:e[0],endTimestamp:e[1],dasCurrentShop:t.baseModel.shopId};1==t.isParent?a.parentAsin=t.baseModel.parentAsin:1==t.isSku?a.sku=t.baseModel.sku:a.asin=t.baseModel.asin,Object(T["a"])(a).then((function(e){1==e.status&&(t.customCostDetail=e.content)}))}}},ia=na,oa=(a("ab2c"),Object(v["a"])(ia,Be,Ye,!1,null,"634d8fcb",null)),ra=oa.exports,sa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"productAnalysisCoreWrap formPadding",attrs:{id:t.$options.name}},[a("quick-btn-dateselect",{attrs:{multiple:"",id:t.$options.name+"date",dateOption:t.dateOption,customClass:"justify-content--f-s"}}),a("div",{staticClass:"echartWrap paddingNone"},[a("b-tabs",{directives:[{name:"router-save",rawName:"v-router-save"}],staticClass:"pieTopHeader",model:{value:t.detailReviewTab,callback:function(e){t.detailReviewTab=e},expression:"detailReviewTab"}},[a("b-tab",{attrs:{title:t.$t("_PRODUCT_ANALYSIS_TAB_REVIEW_LIST")}},[0===t.detailReviewTab?a("detail-review-list",{attrs:{baseModel:t.baseModel,dateOption:t.dateOption}}):t._e()],1),a("b-tab",{attrs:{title:t.$t("_PRODUCT_ANALYSIS_TAB_REVIEW_NEGATIVE")}},[1===t.detailReviewTab?a("detail-review-negative",{attrs:{baseModel:t.baseModel,dateOption:t.dateOption}}):t._e()],1),a("b-tab",{attrs:{title:t.$t("ae_tab_review_variants_analysis")}},[a("div",{staticClass:"d-flex align-items--center",style:"min-height: calc(100vh - 410px)"},[a("ext-block",{ref:"extRef",staticClass:"p-rl-12",attrs:{mainImg:t.mainImg,mainTxt:t.$t("ae_nav_das_review_des")},on:{setExt:t.setExt},scopedSlots:t._u([{key:"hasEXT",fn:function(){return[a("b-button",{attrs:{variant:"primary"},on:{click:t.jumpToAmz}},[t._v(t._s(t.$t("_NEGATIVEREVIEWALERT_BUTTON_GO_TO")))])]},proxy:!0}])},[[a("b-button",{attrs:{variant:"primary"},on:{click:t.goExtUrl}},[t._v(" "+t._s(t.$t("se_get_detail")))])]],2)],1)])],1)],1)],1)},la=[],ca=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("b-row",{staticStyle:{"margin-top":"12px"}},[a("b-col",[a("common-table",{key:t.rangeDateKey+"sales_analysis_product_analysis_review_negative_table",ref:"commonTableEle",attrs:{tableId:"sales_analysis_product_analysis_review_negative_table",trOverBlock:"",params:t.tableParams,options:t.tableOptions},scopedSlots:t._u([{key:"cell(postTime)",fn:function(e){return[t._v(" "+t._s(e.data.item.postTime&&t.createZonedMoment(1e3*e.data.item.postTime).format("YYYY-MM-DD"))+" ")]}},{key:"cell(rating)",fn:function(e){return[a("el-rate",{attrs:{disabled:"","show-score":"","text-color":"#ff9900"},model:{value:e.data.item.rating,callback:function(a){t.$set(e.data.item,"rating",a)},expression:"data.data.item.rating"}})]}}])})],1)],1)],1)},ua=[],da={name:"detailReviewNegative",data:function(){return{rangeDateKey:"rangeDateKey"}},props:["profitDays","dateSelectType","baseModel","dateOption"],computed:{isSku:function(){return this.baseModel.isSku},isParent:function(){return this.baseModel.isParent},tableParams:function(){var t=this,e={dasCurrentShop:t.baseModel.shopId};1==t.isSku?e.sku=t.baseModel.sku:1==t.isParent?e.parentAsin=t.baseModel.parentAsin:e.asin=t.baseModel.asin;var a=Object(m["h"])(t.dateOption);return e.startTimestamp=a[0],e.endTimestamp=a[1],e},tableOptions:function(){return{requestApi:T["d"],stickyHeader:!0,filterVis:!0,hasPageSizeOptions:!0,noDownload:!0,filterClass:"productAnalysisParentFilterClass",fields:[{key:"postTime",headerPosition:"left",diy:!0,label:this.$t("_PRODUCT_ANALYSIS_REVIEW_DATE")},{key:"amazonOrderId",headerPosition:"left",label:this.$t("_PRODUCT_ANALYSIS_REVIEW_ORDER_ID")},{key:"comments",headerPosition:"left",hasShowOver:!0,label:this.$t("_PRODUCT_ANALYSIS_REVIEW_CONTENT")},{key:"rating",headerPosition:"left",diy:!0,label:this.$t("_PRODUCT_ANALYSIS_REVIEW_RATING")}]}}},components:{commonTable:j["a"]},watch:{dateOption:{deep:!0,handler:function(t){t&&(this.rangeDateKey=Math.random())}}},methods:{createZonedMoment:m["a"]}},ha=da,pa=Object(v["a"])(ha,ca,ua,!1,null,null,null),fa=pa.exports,ma=function(){var t,e=this,a=e.$createElement,n=e._self._c||a;return n("div",{staticClass:"detail-review-wrap"},[n("b-row",{staticStyle:{"margin-top":"12px"}},[n("b-col",[n("common-table",{key:e.rangeDateKey+"sales_analysis_product_analysis_review_list_table",ref:"commonTableEle",attrs:{tableId:"sales_analysis_product_analysis_review_list_table",trOverBlock:"",querys:[(t={},t[e.NO_ERROR_NOTIFY]=!0,t)],params:e.tableParams,options:e.tableOptions},on:{responseAll:e.responseFn},scopedSlots:e._u([{key:"cell(postTime)",fn:function(t){return[e._v(" "+e._s(e.createZonedMoment(1e3*t.data.item.postTime).format("YYYY-MM-DD"))+" ")]}},{key:"cell(star)",fn:function(t){return[n("el-rate",{attrs:{disabled:"","show-score":"","text-color":"#ff9900"},model:{value:t.data.item.star,callback:function(a){e.$set(t.data.item,"star",a)},expression:"data.data.item.star"}})]}},{key:"cell(empty)",fn:function(){return[e.isTrack?e._e():n("div",{staticClass:"track-mask"},[n("p",[e._v(e._s(e.$t("_PRODUCT_ANALYSIS_REVIEW_TRACK_TIP")))]),n("button",{staticClass:"das-ui-button_ok",attrs:{"data-lokalise":"","data-key":"_PRODUCT_ANALYSIS_REVIEW_TRACK_BTN"},on:{click:e.goReviewAlert}},[e._v(" "+e._s(e.$t("_PRODUCT_ANALYSIS_REVIEW_TRACK_BTN"))+" ")])])]},proxy:!0}])})],1)],1)],1)},ga=[],_a={name:"detailReviewList",data:function(){return{NO_ERROR_NOTIFY:u["c"],isTrack:!0,rangeDateKey:"rangeDateKey"}},props:["profitDays","dateSelectType","baseModel","dateOption"],computed:{isSku:function(){return this.baseModel.isSku},isParent:function(){return this.baseModel.isParent},tableParams:function(){var t=this,e={parentAsin:t.baseModel.parentAsin,dasCurrentShop:t.baseModel.shopId},a=Object(m["h"])(t.dateOption);return e.startTimestamp=a[0],e.endTimestamp=a[1],e},tableOptions:function(){return{requestApi:T["j"],diyEmpty:!this.isTrack,stickyHeader:!0,filterVis:!0,hasPageSizeOptions:!0,noDownload:!0,filterClass:"productAnalysisParentFilterClass",fields:[{key:"reviewdate",headerPosition:"left",minWidth:60,label:this.$t("_PRODUCT_ANALYSIS_REVIEW_DATE")},{key:"star",headerPosition:"left",diy:!0,minWidth:150,label:this.$t("_PRODUCT_ANALYSIS_RATING")},{key:"content",headerPosition:"left",html:!0,label:this.$t("_PRODUCT_ANALYSIS_REVIEW_CONTENT")}]}}},components:{commonTable:j["a"]},watch:{dateOption:{deep:!0,handler:function(t){t&&(this.rangeDateKey=Math.random())}}},methods:{createZonedMoment:m["a"],responseFn:function(t){20===t.status&&(this.isTrack=!1)},goReviewAlert:function(){this.$router.push({path:"/review/review_alert?salesTabs=2"})}}},va=_a,ya=(a("079b"),Object(v["a"])(va,ma,ga,!1,null,null,null)),ba=ya.exports,Sa={name:"detailReview",props:{baseModel:{}},components:{QuickBtnDateselect:vt["h"],detailReviewNegative:fa,detailReviewList:ba,ExtBlock:vt["d"]},mounted:function(){},data:function(){return{hasExt:!1,detailReviewTab:0,dateOption:{dateSet:[0,1,7,15,30],dateScope:this.baseModel.rangeDate?null:7,dateRange:this.baseModel.rangeDate||[]}}},computed:{mainImg:function(){try{return a("5164")("./product-analysis-bg_".concat(this.$i18n.locale,".png"))}catch(t){console.warn(t)}}},methods:{setExt:function(t){this.hasEXT=t},amazonAsinPageTracker:function(t,e){return"https://".concat(ue["C"][e].domain,"/dp/").concat(t,"?tool4seller=review&tabIndex=variantReview")},goExtUrl:function(){var t={"zh-CN":"https://www.tool4seller.cn/tools/tool4seller-chrome-extension.html",en:"https://www.tool4seller.com/tools/tool4seller-chrome-extension.html",ja_jp:"https://www.tool4seller.com/jp/tools/tool4seller-chrome-extension.html"};window.open(t[this.$i18n.locale])},jumpToAmz:function(){var t=this.$route.query.asin||this.$route.query.parentAsin,e=this.$route.query.marketplaceId;window.open(this.amazonAsinPageTracker(t,e))}}},Oa=Sa,Ta=(a("1e5f"),Object(v["a"])(Oa,sa,la,!1,null,null,null)),Aa=Ta.exports,xa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[1!=t.baseModel.isSku?a("div",{staticClass:"das-block-padding_left das-block-padding_right product_detail_total-wrap"},[a("b-row",t._l(t.totalData.slice(0,5),(function(e){return a("b-col",{key:e.key},[a("div",{staticClass:"product_detail_total-block"},[a("lok",{staticClass:"display-title",attrs:{"lok-key":e.label}}),e.key?a("span",{staticClass:"display-value"},[e.multi?[t._v(" "+t._s(t._f("amount")(t.totalObj[e.key]))+" ")]:[t._v(" "+t._s(t._f("amountAll")(t.totalObj[e.key],""))+" ")]],2):t._e()],1)])})),1),a("b-row",t._l(t.totalData.slice(5),(function(e){return a("b-col",{key:e.key},[a("div",{staticClass:"product_detail_total-block",style:{width:e.key?"auto":"180px",visibility:e.key?"visible":"hidden"}},[a("lok",{staticClass:"display-title",attrs:{"lok-key":e.label}}),e.key?a("span",{staticClass:"display-value"},[e.multi?[t._v(" "+t._s(t._f("amount")(t.totalObj[e.key]))+" ")]:[t._v(" "+t._s(t._f("amountAll")(t.totalObj[e.key],""))+" ")]],2):t._e()],1)])})),1)],1):t._e(),a("b-row",[a("b-col",[a("common-table",{key:t.rangeDateKey+"sales_analysis_product_analysis_inventory_list_table",ref:"commonTableEle",attrs:{tableId:"sales_analysis_product_analysis_inventory_list_table",params:t.tableParams,querys:t.tableQuerys,options:t.tableOptions},scopedSlots:t._u([{key:"cell(inventoryValue)",fn:function(e){return[a("div",{staticClass:"d-flex align-items-center justify-content-flex-end"},[a("b-tooltip",{attrs:{target:"cost"+e.data.index,placement:"top",triggers:"hover"}},[t._v(" "+t._s(t.$t("_STOCK_PURCHASE_COST"))+"："+t._s(t._f("amount")(e.data.item.purchaseCost))+" "),a("br"),t._v(" "+t._s(t.$t("_STOCK_LOGISTICS_COST"))+"："+t._s(t._f("amount")(e.data.item.logisticsCost))+" ")]),a("span",{attrs:{id:"cost"+e.data.index,title:t.$t("_SALES_ANALYSIS_UNRECORDED_COST")}},[t._v(t._s(t._f("amount")(e.data.item.purchaseCost+e.data.item.logisticsCost)))]),a("feather-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",value:0==e.data.item.purchasePrice&&0==e.data.item.logisticsExpenses?t.$t("_SALES_ANALYSIS_UNRECORDED_COST"):t.$t("_SALES_ANALYSIS_EDIT_COST"),expression:"data.data.item.purchasePrice == 0 && data.data.item.logisticsExpenses == 0 ? $t('_SALES_ANALYSIS_UNRECORDED_COST') : $t('_SALES_ANALYSIS_EDIT_COST')",modifiers:{hover:!0}}],staticClass:"cellRightBtn",attrs:{icon:0==e.data.item.purchasePrice&&0==e.data.item.logisticsExpenses?"PlusCircleIcon":"EditIcon",size:"16"},on:{click:function(a){return a.stopPropagation(),t.editCost(e.data.item)}}})],1)]}}])})],1)],1),a("b-modal",{attrs:{centered:"","header-bg-variant":"white",size:"my","hide-footer":""},model:{value:t.editCostDialogParam.visible,callback:function(e){t.$set(t.editCostDialogParam,"visible",e)},expression:"editCostDialogParam.visible"}},[a("edit-cost-dialog",{attrs:{hideFooter:!0,shopMap:t.editCostDialogParam.shopMap,isSku:1==t.baseModel.isSku,multiBaseModel:t.multiBaseModel,editCostDialogParam:t.editCostDialogParam},on:{"cost-batch-edited":t.costBatchEdited}})],1)],1)},Ca=[],Ea=a("0b6e"),wa=a("f82f"),Ma={name:"productInventoryList",data:function(){return{totalObj:{},rangeDateKey:"rangeDateKey",channel:"",editCostDialogParam:{visible:!1,products:[]},totalData:[{label:"_STOCK_INVENTORY_AMOUNT",key:"stockQuantity"},{label:"_STOCK_QUANTITY_IN_STORE",key:"transferQuantity"},{label:"_STOCK_QUANTITY_INBOUND",key:"processingQuantity"},{label:"_STOCK_SUGGEST_QUANTITY",key:"purchaseQuantity"},{label:"_STOCK_VALUE_OF_GOOD",multi:"multiple",key:"inventoryValue"},{label:"_STOCK_ORDERS_LAST_7",key:"sum7"},{label:"_STOCK_ORDERS_LAST_15",key:"sum15"},{label:"_STOCK_ORDERS_LAST_30",key:"sum30"},{label:"_STOCK_ORDERS_LAST_60",key:"sum60"},{}]}},props:["searchKey","baseModel","multiple"],computed:{IS_LANG_EN:function(){return"en"==this.$i18n.locale},IS_LANG_ZH:function(){return"zh-CN"==this.$i18n.locale||"zh-TW"==this.$i18n.locale},IS_LANG_JP:function(){return"ja_jp"==this.$i18n.locale},tableParams:function(){var t={searchKey:this.searchKey};return t},tableQuerys:function(){var t=[];return this.baseModel&&this.baseModel.shopId&&t.push(this.baseModel.shopId),t},multiBaseModel:function(){return this.multiple?this.baseModel:null},tableOptions:function(){return{requestApi:T["u"],stickyHeader:!0,filterVis:!0,hasPageSizeOptions:!0,noDownload:!0,filterClass:"productAnalysisParentFilterClass",fullscreenEnabled:!0,refreshEnabled:!0,fullStyle:{top:"-42px",right:"94px!important"},fields:[{key:"title",width:400,headerPosition:"left",stickyColumn:!0,type:"productInfo",keyMap:{},label:this.$t("_COMMON_TH_PRODUCT_INFO")},{key:"type",headerPosition:"left",minWidth:30,type:"filter",appendTip:this.$t("_STOCK_DESC_STOCK_TYPE"),filterOptions:[{label:"FBA",value:"FBA"},{label:"Seller",value:"Seller"}],label:this.$t("_STOCK_STOCK_TYPE")},{key:"stockQuantity",minWidth:10,numberThousand:!0,label:this.$t("_STOCK_INVENTORY_AMOUNT")},{key:"transferQuantity",minWidth:10,numberThousand:!0,label:this.$t("_STOCK_QUANTITY_IN_STORE"),appendTip:this.$t("_STOCK_DESC_QUANTITY_IN_STORE")},{key:"processingQuantity",minWidth:20,numberThousand:!0,label:this.$t("_STOCK_QUANTITY_INBOUND"),appendTip:this.$t("_STOCK_DESC_QUANTITY_INBOUND")},{key:"expectDays",sortable:!0,minWidth:70,numberThousand:!0,label:this.$t("_STOCK_DAYS_EST"),appendTip:this.$t("_STOCK_DESC_DAYS_EST")},{key:"purchaseQuantity",sortable:!0,minWidth:30,numberThousand:!0,label:this.$t("_STOCK_SUGGEST_QUANTITY"),appendTip:this.$t("_STOCK_DESC_SUGGEST_QUANTITY")},{key:"sum7",sortable:!0,minWidth:40,numberThousand:!0,label:this.$t("_STOCK_ORDERS_LAST_7")},{key:"sum15",sortable:!0,minWidth:45,numberThousand:!0,label:this.$t("_STOCK_ORDERS_LAST_15")},{key:"sum30",sortable:!0,minWidth:50,numberThousand:!0,label:this.$t("_STOCK_ORDERS_LAST_30")},{key:"sum60",sortable:!0,minWidth:20,numberThousand:!0,label:this.$t("_STOCK_ORDERS_LAST_60")},{key:"inventoryValue",sortable:!0,diy:!0,minWidth:40,appendTip:this.$t("stock_inventory_value_illus"),label:this.$t("_STOCK_VALUE_OF_GOOD")}]}}},components:{commonTable:j["a"],EditCostDialog:Ea["a"]},watch:{dateOption:{deep:!0,handler:function(t){t&&(this.rangeDateKey=Math.random())}}},methods:{getRequestStockTotal:function(){var t=this;Object(T["v"])({searchKey:this.searchKey,dasCurrentShop:this.baseModel.shopId}).then((function(e){1===e.status&&(t.totalObj=e.content)}))},costBatchEdited:function(t){var e;t||(this.editCostDialogParam={visible:!1,products:[]}),null===(e=this.$refs.commonTableEle)||void 0===e||e.getList()},editCost:function(t){var e={products:[t],visible:!0},a=Object(wa["g"])();Object.keys(a).length>0&&(e.shopMap=a),this.editCostDialogParam=e}},mounted:function(){1!=this.baseModel.isSku&&this.getRequestStockTotal()}},ka=Ma,Ia=(a("7f9b"),Object(v["a"])(ka,xa,Ca,!1,null,"52e3173e",null)),Da=Ia.exports,La=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"buyer-region-detail"},[a("div",{staticClass:"contentWrap",attrs:{"no-body":""}},[a("div",{staticClass:"origin-form-line"},[a("date-select",{key:t.dateSelectKey,staticClass:"dateSelect",attrs:{dateConfigDiy:t.dateConfigDiy},on:{dateScope:t.dateScopeFn},model:{value:t.rangeDate,callback:function(e){t.rangeDate=e},expression:"rangeDate"}}),a("b-form-radio-group",{staticClass:"origin-form-refund",attrs:{"button-variant":"outline-nobg",buttons:""},model:{value:t.isRefund,callback:function(e){t.isRefund=e},expression:"isRefund"}},t._l(t.refundOptions,(function(e){return a("b-form-radio",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top.html",value:e.tipData||{},expression:"option.tipData || {}",modifiers:{hover:!0,top:!0,html:!0}}],key:e.value,attrs:{value:e.value}},[t._v(" "+t._s(e.label)+" ")])})),1),a("v-select",{key:"budget-type",ref:"type",staticClass:"origin-form-type",attrs:{appendToBody:"",label:"label",placeholder:t.$t("orderdistrmap_fulfillmentfltr"),options:t.channelOptions,reduce:function(t){return t.value},"input-id":"channel-type"},model:{value:t.fulfillmentChannel,callback:function(e){t.fulfillmentChannel=e},expression:"fulfillmentChannel"}}),a("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.horve.top",value:t.list.length?t.$t("_PACKAGE_MODULE_LIST_EXPORT_DATA"):"",expression:"list.length ? $t('_PACKAGE_MODULE_LIST_EXPORT_DATA') : ''",modifiers:{horve:!0,top:!0}}],staticClass:"origin-form-line__btn iconBlock d-flex align-items-center justify-content-center",attrs:{disabled:!t.list.length},on:{click:function(e){return t.exportReportFn()}}},[a("feather-icon",{attrs:{icon:"DownloadIcon",size:"18"}})],1)],1),a("list-map",t._b({ref:"listmap"},"list-map",t.bindParams,!1))],1)])},Ra=[],Na=a("8b9f"),Pa=a("0144"),ja=a("4b2f"),$a=a("e249"),Fa={name:"business-detail-region",components:{shopSelect:ja["a"],dateSelect:D["a"],ListMap:Na["a"]},props:{outerId:{},isSku:{},isParent:{},shopId:{},currentCode:{}},data:function(){return{loading:!1,list:[],fulfillmentChannel:"",isRefund:0,dateSelectKey:Math.random(),dateScope:0,rangeDate:Object(m["h"])({dateScope:30,dateRange:null}).map((function(t){return Object(m["a"])(t).format("YYYY-MM-DD")}))}},mounted:function(){this.getList()},computed:Object(s["a"])(Object(s["a"])({},Object(N["c"])({CURRENCY_SYMBOL:P["c"],CURRENCY_CODE:P["b"],CURRENT_SHOP:P["f"]})),{},{dateConfigDiy:function(){var t=Object(m["h"])({dateScope:365,dateRange:null}).map((function(t){return Object(m["a"])(t).format("YYYY-MM-DD")}));return{ignoreTimeTip:!0,maxDate:t[1],minDate:t[0]}},searchKey:function(){return this.outerId||""},searchType:function(){return this.isSku?"sku":this.isParent?"parentAsin":"asin"},CURRENT_SHOP_ID:function(){return this.shopId},CURRENT_CODE:function(){return this.currentCode},bindParams:function(){return{stickyHeader:"calc(100vh - 352px)",tableParams:this.tableParams,loading:this.loading,list:this.list,shopId:this.CURRENT_SHOP_ID,currentCode:this.CURRENT_CODE}},channelOptions:function(){return[{label:this.$t("ae_segment_title_fba"),value:"AFN"},{label:this.$t("ae_segment_title_fbm"),value:"MFN"}]},refundOptions:function(){return[{label:this.$t("_COMMON_TH_ORDERS"),value:0},{label:this.$t("_ASKFORREVIEW_THEME_LABEL_3"),value:1}]},typeOptions:function(){return[{label:this.$t("_COMMON_TABLE_SORT_CASIN"),value:"asin"},{label:this.$t("_COMMON_TABLE_SORT_PASIN"),value:"parentAsin"},{label:this.$t("orderdistrmap_skusrch"),value:"sku"}]},tableParams:function(){var t={};return t.dasCurrentShop=this.CURRENT_SHOP_ID,t.startTimestamp=Object(m["a"])(this.rangeDate[0]).startOf("day").valueOf(),t.endTimestamp=Object(m["a"])(this.rangeDate[1]).endOf("day").valueOf(),this.fulfillmentChannel&&(t.fulfillmentChannel=this.fulfillmentChannel),this.searchKey&&(t.searchKey=this.searchKey,t.searchType=this.searchType),t.isRefund=this.isRefund,t}}),methods:{exportReportFn:function(){var t=this,e=[{key:"idx",th:this.$t("_DAILY_LISTING_REPORT_RANK")},{key:"region",th:this.$t("orderdistrmap_region")},{key:"salesNum",th:this.isRefund?t.$t("_COMMON_TH_REFUND_QUANTITY"):t.$t("orderdistrmap_sales")},{key:"orderNum",th:this.$t("_ADOVERVIEW_NUMBER_OF_ORDERS")},{key:"percent",th:this.isRefund?t.$t("orderdistrmap_proportionofreturnsorder"):t.$t("orderdistrmap_proportionoforders")}],a=[e.map((function(t){return t.th}))];this.$refs.listmap.finalList.forEach((function(t,n){a.push(e.map((function(e){return e=JSON.parse(JSON.stringify(e)),"idx"===e.key?n+1:t[e.key]})))})),Object(Pa["c"])([a],{fileName:this.$t("orderdistrmap_title")+"(".concat(this.rangeDate[0],"~").concat(this.rangeDate[1],")")})},getList:function(){var t=this;return this.loading=!0,Object($a["a"])(this.tableParams).then((function(e){if(1===e.status){var a=e.content;t.list=a}t.loading=!1}),(function(){t.loading=!1}))},dateScopeFn:function(t){this.dateScope=t}},watch:{CURRENT_SHOP_ID:function(t,e){this.getList()},rangeDate:function(t,e){this.getList()},searchType:function(t,e){this.searchKey&&this.getList()},isRefund:function(t,e){this.getList()},fulfillmentChannel:function(t,e){this.getList()}}},Ba=Fa,Ya=(a("b723"),Object(v["a"])(Ba,La,Ra,!1,null,null,null)),Ua=Ya.exports,za=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"productAnalysisCoreWrap formPadding",attrs:{id:t.$options.name}},[a("quick-btn-dateselect",{attrs:{multiple:"",id:t.$options.name+"date",dateOption:t.dateOption,customClass:"justify-content--f-s"}}),a("div",{staticClass:"echartWrap paddingNone"},[a("refund-overview",{ref:"guider",attrs:{dateScope:t.dateOption.dateScope-1,baseModel:t.baseModel,rangeDate:t.rangeDate}})],1)],1)},Va=[],Ha=a("f2ab"),Ga={name:"productRefundOverview",props:{baseModel:{}},data:function(){return{dateOption:{dateSet:[0,1,7,15,30],dateScope:this.baseModel.rangeDate?null:7,dateRange:this.baseModel.rangeDate||[]}}},computed:{rangeDate:function(){return this.dateOption.dateRange.length?this.dateOption.dateRange:Object(m["g"])({dateScope:this.dateOption.dateScope,dateRange:null}).map((function(t){return Object(m["a"])(t).format("YYYY-MM-DD")}))}},components:{QuickBtnDateselect:vt["h"],refundOverview:Ha["a"]},methods:{$initShow:function(){var t;null===(t=this.$refs.guider)||void 0===t||t.$initShow()}}},Wa=Ga,Ka=Object(v["a"])(Wa,za,Va,!1,null,null,null),Za=Ka.exports,qa=a("77c6"),Xa=a("3620"),Qa={name:"sales_analysis-product_analysis_detail",mixins:[qa["a"]],data:function(){return{setSalesTabsFn:Object(bt["a"])(this.setSalesTabsTmpFn,500),currentMarketplaceId:this.$route.query.marketplaceId,showAeCategoryAnalysis:!1,detailKey:"detailKey",rating:null,isTrackRating:!0,canManualRefresh:!0,salesTabs:0,baseModel:"",inventoryList:[],amazonSiteF_ids:Xa["amazonSiteF"].map((function(t){return t.value}))}},components:{memo:b,BusinessDetailRegion:Ua,refundOverview:Za,inventoryList:Da,coreDetail:Et,categoryRank:Vt,categoryRankNew:ie,categoryAnalysis:_e["a"],costAndSales:Lt,detailSales:Fe,feedDetail:ra,detailReview:Aa,toUp:E,keywordsRank:Le,competitorTab:ge},computed:Object(s["a"])(Object(s["a"])({},Object(N["c"])({SELLERS_LIST:P["D"],USER_PACKAGE:yt["e"],CURRENT_VALID_SHOP_IDS:P["j"],CURRENT_SHOP_IDS:P["h"],CURRENT_SHOP:P["f"],USER_INFO:P["I"]})),{},{showOrderDistribution:function(){var t;return null===(t=this.USER_INFO)||void 0===t?void 0:t.modules["order-distribution"]},allowCategory:function(){return"MANUAL"===this.USER_INFO.tabRefreshType?this.amazonSiteF_ids.includes(this.currentMarketplaceId):this.amazonSiteF_ids.includes(this.$route.query.marketplaceId)},currentValidShopList:function(){var t=[],e=this.CURRENT_VALID_SHOP_IDS;return this.SELLERS_LIST.forEach((function(e){var a=e.shops.map((function(t){return Object(s["a"])(Object(s["a"])({},t),{},{regionType:e.regionType})}));e.shops.regionType=e.regionType,t=[].concat(Object(r["a"])(t),Object(r["a"])(a))})),t.filter((function(t){return e.includes(t.id)}))},CURRENT_SELLERS:function(){return this.USER_PACKAGE[this.baseModel.sellerId]},currentShop:function(){var t=this,e=this.currentValidShopList.find((function(e){return e.id===t.baseModel.shopId}))||{};return e},currentCode:function(){return this.baseModel.marketplaceName||""},asin:function(){return 1==this.baseModel.isParent?this.baseModel.parentAsin:this.baseModel.asin},isSku:function(){return 1==this.baseModel.isSku},outerId:function(){return this.isSku?this.baseModel.sku:this.asin},isParent:function(){return 1==this.baseModel.isParent},searchKey:function(){return 1==this.isSku?this.baseModel.sku:1==this.isParent?this.baseModel.parentAsin:this.baseModel.asin}}),methods:{setSalesTabsTmpFn:function(t){this.salesTabs=parseInt(t)},hideAeCategoryAnalysisFn:function(){window.localStorage.setItem(this.USER_INFO.id+"hideAeCategoryAnalysis",1),this.showAeCategoryAnalysis=!1},$initShow:function(){var t;null===(t=this.$refs.refund)||void 0===t||t.$initShow()},clickItemFn:function(t){this.$refs.memoEle.showVis=!0,this.$refs.memoEle.memoModel.date=t.date},memoUpFn:function(){try{this.$refs.coreDetailEle.getMemoList()}catch(t){}},manualRefreshFn:function(){var t=this;if(this.canManualRefresh){var e="";e=1==this.baseModel.isSku?this.baseModel.asin:1==this.baseModel.isParent?this.baseModel.parentAsin:this.baseModel.asin,Object(T["p"])({asin:e,dasCurrentShop:this.baseModel.shopId}).then((function(e){var a=e.status,n=e.content;1==a&&(n.status?t.$store.dispatch("app/updatePop",{title:t.$t("_COMMON_OPERATE_SUCCESS"),icon:"EditIcon",variant:"success"}):t.$store.dispatch("app/updatePop",{title:t.$t("_COMMON_OPERATE_FAIL"),icon:"EditIcon",variant:"warning"}),t.getManualStatusFn())}))}},getManualStatusFn:function(){var t=this,e="";1==this.baseModel.isParent?e=this.baseModel.parentAsin:1==this.baseModel.isParent&&1!=this.baseModel.isSku||(e=this.baseModel.asin),Object(T["e"])({asin:e,dasCurrentShop:this.baseModel.shopId}).then((function(e){var a=e.status,n=e.content;1==a&&(t.canManualRefresh=n.status)}))},getRatingData:function(){var t=this;this.baseModel.parentAsin&&Object(T["i"])({parentAsin:this.baseModel.parentAsin,dasCurrentShop:this.baseModel.shopId},Object(o["a"])({},u["c"],!0)).then((function(e){var a=e.status,n=e.content;1==a&&(1==n.status?(t.isTrackRating=!0,t.rating=null==n.rating?0:n.rating):20==n.status&&(t.isTrackRating=!1))}))},goReviewPage:function(){this.$router.push({path:"/review/review_alert"})},copyToClipboard:function(t){var e=this,a=this.$refs[t];c()(a,(function(){e.$store.dispatch("app/updatePop",{title:e.$t("_KEYWORD_POPULARITY_COPY_SUCCESS"),icon:"EditIcon",variant:"success"})}))},getInventoryList:function(){var t=this,e=this;Object(T["u"])({searchKey:this.searchKey},e.baseModel.shopId).then((function(e){1===e.status&&(t.inventoryList=e.content.result)}))},amazonAsinPageTracker:function(t,e){return"https://".concat(ue["C"][e].domain,"/dp/").concat(t)},amazonAsinPage:function(t,e){return e?"".concat(asinUrlPrefix[e],"dp/").concat(t):this.CURRENT_SHOP?"https://".concat(this.CURRENT_SHOP.amazonSiteInfo.domain,"/dp/").concat(t):"https://www.amazon.com/dp/".concat(t)},jumpTo:function(t){window.open(t)}},watch:{"$route.query":function(t,e){if(t&&this.$route.name){if("MANUAL"===this.USER_INFO.tabRefreshType&&(this.$route.name!==this.$options.name||this.$route.meta.keepAliveFlag))return;var a=JSON.parse(JSON.stringify(this.$route.query));a.id=decodeURIComponent(a.id),t.id!==e.id&&(this.baseModel=a),this.showNatureSlideFn(this.baseModel,!1),this.setSalesTabsFn(t.salesTabs)}},salesTabs:function(){6===this.salesTabs&&this.$initShow();var t=Object.assign({},this.$route.query,{salesTabs:this.salesTabs});("MANUAL"!==this.USER_INFO.tabRefreshType||this.$route.name===this.$options.name&&!this.$route.meta.keepAliveFlag)&&this.$router.push({path:this.$route.path,query:t})},baseModel:function(){this.detailKey=Math.random()},"baseModel.isParent":{immediate:!0,handler:"getRatingData"}},mounted:function(){var t=this;if(this.$route.query){var e=JSON.parse(JSON.stringify(this.$route.query));e.id=decodeURIComponent(e.id),this.baseModel=e,this.baseModel.currentShop=this.currentShop;try{this.baseModel.team&&(this.baseModel.team=JSON.parse(this.baseModel.team))}catch(a){}}"inventory"===this.baseModel.anchor&&(this.salesTabs=9),this.getManualStatusFn(),this.getInventoryList(),setTimeout((function(){t.$nextTick((function(){var e=window.localStorage.getItem(t.USER_INFO.id+"hideAeCategoryAnalysis");t.showAeCategoryAnalysis=!e}))}),1e3)},created:function(){var t=this.$route.query.salesTabs||0;this.setSalesTabsFn(t)}},Ja=Qa,tn=(a("c0d8"),a("f765"),a("ba65"),Object(v["a"])(Ja,n,i,!1,null,"396af4d8",null));e["default"]=tn.exports},6732:function(t,e,a){"use strict";a("9030")},"67db":function(t,e,a){"use strict";a("4d71")},6888:function(t,e,a){"use strict";a("076a")},"68f3":function(t,e,a){"use strict";a("9dbf")},"6a2f":function(t,e,a){"use strict";var n=a("6d8b"),i=a("e0d3"),o=Object(i["o"])();function r(t){var e=t.mainData,a=t.datas;a||(a={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,p(e,a,t),Object(n["k"])(a,(function(a){Object(n["k"])(e.TRANSFERABLE_METHODS,(function(e){a.wrapMethod(e,Object(n["h"])(s,t))}))})),e.wrapMethod("cloneShallow",Object(n["h"])(c,t)),Object(n["k"])(e.CHANGABLE_METHODS,(function(a){e.wrapMethod(a,Object(n["h"])(l,t))})),Object(n["b"])(a[e.dataType]===e)}function s(t,e){if(h(this)){var a=Object(n["m"])({},o(this).datas);a[this.dataType]=e,p(e,a,t)}else f(e,this.dataType,o(this).mainData,t);return e}function l(t,e){return t.struct&&t.struct.update(),e}function c(t,e){return Object(n["k"])(o(e).datas,(function(a,n){a!==e&&f(a.cloneShallow(),n,e,t)})),e}function u(t){var e=o(this).mainData;return null==t||null==e?e:o(e).datas[t]}function d(){var t=o(this).mainData;return null==t?[{data:t}]:Object(n["H"])(Object(n["F"])(o(t).datas),(function(e){return{type:e,data:o(t).datas[e]}}))}function h(t){return o(t).mainData===t}function p(t,e,a){o(t).datas={},Object(n["k"])(e,(function(e,n){f(e,n,t,a)}))}function f(t,e,a,n){o(a).datas[e]=t,o(t).mainData=a,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=u,t.getLinkedDataAll=d}e["a"]=r},"6a41":function(t,e,a){},"6b33":function(t,e,a){"use strict";a.d(e,"d",(function(){return u_})),a.d(e,"e",(function(){return d_})),a.d(e,"c",(function(){return h_})),a.d(e,"a",(function(){return p_})),a.d(e,"b",(function(){return f_}));var n=a("5530"),i=(a("d3b7"),a("159b"),a("b64b"),a("ac1f"),a("00b4"),a("d81d"),a("b680"),a("b0c0"),a("22b4")),o=a("1be7"),r=a("e0d3"),s=a("9850"),l=a("deab"),c=a("861c"),u=a("3842"),d=a("8582"),h=a("89b6"),p=a("6d8b"),f=a("2355"),m=a("7837");function g(t){if(t){for(var e=[],a=0;a<t.length;a++)e.push(t[a].slice());return e}}function _(t,e){var a=t.label,n=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:a.style.align,verticalAlign:a.style.verticalAlign,labelLinePoints:g(n&&n.shape.points)}}var v=["align","verticalAlign","width","height","fontSize"],y=new d["c"],b=Object(r["o"])(),S=Object(r["o"])();function O(t,e,a){for(var n=0;n<a.length;n++){var i=a[n];null!=e[i]&&(t[i]=e[i])}}var T=["x","y","rotation"],A=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,a,n,i){var o=n.style,r=n.__hostTarget,l=r.textConfig||{},c=n.getComputedTransform(),u=n.getBoundingRect().plain();s["a"].applyTransform(u,u,c),c?y.setLocalTransform(c):(y.x=y.y=y.rotation=y.originX=y.originY=0,y.scaleX=y.scaleY=1);var d,h=n.__hostTarget;if(h){d=h.getBoundingRect().plain();var p=h.getComputedTransform();s["a"].applyTransform(d,d,p)}var f=d&&h.getTextGuideLine();this._labelList.push({label:n,labelLine:f,seriesModel:a,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:f&&f.ignore,x:y.x,y:y.y,scaleX:y.scaleX,scaleY:y.scaleY,rotation:y.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var a=t.__model,n=a.get("labelLayout");(Object(p["w"])(n)||Object(p["F"])(n).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=Object(c["a"])(t);i&&!i.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,a,i,n)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(t,e){return function(){Object(h["e"])(t,e)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],r=o.label,s=r.__hostTarget,l=o.defaultAttr,c=void 0;c=Object(p["w"])(o.layoutOption)?o.layoutOption(_(o,s)):o.layoutOption,c=c||{},o.computedLayoutOption=c;var d=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=c.x||null!=c.y?null:l.attachedPos,rotation:null!=c.rotate?c.rotate*d:l.attachedRot,offset:[c.dx||0,c.dy||0]});var f=!1;if(null!=c.x?(r.x=Object(u["o"])(c.x,e),r.setStyle("x",0),f=!0):(r.x=l.x,r.setStyle("x",l.style.x)),null!=c.y?(r.y=Object(u["o"])(c.y,a),r.setStyle("y",0),f=!0):(r.y=l.y,r.setStyle("y",l.style.y)),c.labelLinePoints){var m=s.getTextGuideLine();m&&(m.setShape({points:c.labelLinePoints}),f=!1)}var g=b(r);g.needsUpdateLabelLine=f,r.rotation=null!=c.rotate?c.rotate*d:l.rotation,r.scaleX=l.scaleX,r.scaleY=l.scaleY;for(var y=0;y<v.length;y++){var S=v[y];r.setStyle(S,null!=c[S]?c[S]:l.style[S])}if(c.draggable){if(r.draggable=!0,r.cursor="move",s){var O=o.seriesModel;if(null!=o.dataIndex){var T=o.seriesModel.getData(o.dataType);O=T.getItemModel(o.dataIndex)}r.on("drag",n(s,O.getModel("labelLine")))}}else r.off("drag"),r.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),a=t.getHeight(),n=Object(f["b"])(this._labelList),i=Object(p["n"])(n,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=Object(p["n"])(n,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));Object(f["c"])(i,0,e),Object(f["d"])(o,0,a);var r=Object(p["n"])(n,(function(t){return t.layoutOption.hideOverlap}));Object(f["a"])(r)},t.prototype.processLabelsOverall=function(){var t=this;Object(p["k"])(this._chartViewList,(function(e){var a=e.__model,n=e.ignoreLabelLineUpdate,i=a.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!n,r=e.getTextContent();!o&&r&&(o=b(r).needsUpdateLabelLine),o&&t._updateLabelLine(e,a),i&&t._animateLabels(e,a)}))}))},t.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=Object(c["a"])(t),i=n.dataIndex;if(a&&null!=i){var o=e.getData(n.dataType),r=o.getItemModel(i),s={},l=o.getItemVisual(i,"style"),u=o.getVisual("drawType");s.stroke=l[u];var d=r.getModel("labelLine");Object(h["d"])(t,Object(h["a"])(r),s),Object(h["e"])(t,d)}},t.prototype._animateLabels=function(t,e){var a=t.getTextContent(),n=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!Object(l["d"])(t))){var i=b(a),o=i.oldLayout,r=Object(c["a"])(t),s=r.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},d=e.getData(r.dataType);if(o){a.attr(o);var h=t.prevStates;h&&(Object(p["r"])(h,"select")>=0&&a.attr(i.oldLayoutSelect),Object(p["r"])(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Object(l["h"])(a,u,e,s)}else if(a.attr(u),!Object(m["f"])(a).valueAnimation){var f=Object(p["P"])(a.style.opacity,1);a.style.opacity=0,Object(l["c"])(a,{style:{opacity:f}},e,s)}if(i.oldLayout=u,a.states.select){var g=i.oldLayoutSelect={};O(g,u,T),O(g,a.states.select,T)}if(a.states.emphasis){var _=i.oldLayoutEmphasis={};O(_,u,T),O(_,a.states.emphasis,T)}Object(m["a"])(a,s,d,e,e)}if(n&&!n.ignore&&!n.invisible){i=S(n),o=i.oldLayout;var v={points:n.shape.points};o?(n.attr({shape:o}),Object(l["h"])(n,{shape:v},e)):(n.setShape(v),n.style.strokePercent=0,Object(l["c"])(n,{style:{strokePercent:1}},e)),i.oldLayout=v}},t}(),x=A,C=Object(r["o"])();function E(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,a){var n=C(e).labelManager;n||(n=C(e).labelManager=new x),n.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,a){var n=C(e).labelManager;a.updatedSeries.forEach((function(t){n.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()}))}Object(i["a"])(E);var w=a("f95e"),M=a("7a29"),k=a("cbe5"),I=a("0da8"),D=a("e86a"),L=a("dd4f"),R=Math.sin,N=Math.cos,P=Math.PI,j=2*Math.PI,$=180/P,F=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,a,n,i,o){this._add("C",t,e,a,n,i,o)},t.prototype.quadraticCurveTo=function(t,e,a,n){this._add("Q",t,e,a,n)},t.prototype.arc=function(t,e,a,n,i,o){this.ellipse(t,e,a,a,0,n,i,o)},t.prototype.ellipse=function(t,e,a,n,i,o,r,s){var l=r-o,c=!s,u=Math.abs(l),d=Object(M["j"])(u-j)||(c?l>=j:-l>=j),h=l>0?l%j:l%j+j,p=!1;p=!!d||!Object(M["j"])(u)&&h>=P===!!c;var f=t+a*N(o),m=e+n*R(o);this._start&&this._add("M",f,m);var g=Math.round(i*$);if(d){var _=1/this._p,v=(c?1:-1)*(j-_);this._add("A",a,n,g,1,+c,t+a*N(o+v),e+n*R(o+v)),_>.01&&this._add("A",a,n,g,0,+c,f,m)}else{var y=t+a*N(r),b=e+n*R(r);this._add("A",a,n,g,+p,+c,y,b)}},t.prototype.rect=function(t,e,a,n){this._add("M",t,e),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,a,n,i,o,r,s,l){for(var c=[],u=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h))return void(this._invalid=!0);c.push(Math.round(h*u)/u)}this._d.push(t+c.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),B=F,Y=a("8d1d"),U="none",z=Math.round;function V(t){var e=t.fill;return null!=e&&e!==U}function H(t){var e=t.stroke;return null!=e&&e!==U}var G=["lineCap","miterLimit","lineJoin"],W=Object(p["H"])(G,(function(t){return"stroke-"+t.toLowerCase()}));function K(t,e,a,n){var i=null==e.opacity?1:e.opacity;if(a instanceof I["a"])t("opacity",i);else{if(V(e)){var o=Object(M["p"])(e.fill);t("fill",o.color);var r=null!=e.fillOpacity?e.fillOpacity*o.opacity*i:o.opacity*i;(n||r<1)&&t("fill-opacity",r)}else t("fill",U);if(H(e)){var s=Object(M["p"])(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?a.getLineScale():1,c=l?(e.lineWidth||0)/l:0,u=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*i:s.opacity*i,d=e.strokeFirst;if((n||1!==c)&&t("stroke-width",c),(n||d)&&t("paint-order",d?"stroke":"fill"),(n||u<1)&&t("stroke-opacity",u),e.lineDash){var h=Object(Y["a"])(a),p=h[0],f=h[1];p&&(f=z(f||0),t("stroke-dasharray",p.join(",")),(f||n)&&t("stroke-dashoffset",f))}else n&&t("stroke-dasharray",U);for(var m=0;m<G.length;m++){var g=G[m];if(n||e[g]!==k["a"][g]){var _=e[g]||k["a"][g];_&&t(W[m],_)}}}else n&&t("stroke",U)}}var Z="http://www.w3.org/2000/svg",q="http://www.w3.org/1999/xlink",X="http://www.w3.org/2000/xmlns/",Q="http://www.w3.org/XML/1998/namespace";function J(t){return document.createElementNS(Z,t)}function tt(t,e,a,n,i){return{tag:t,attrs:a||{},children:n,text:i,key:e}}function et(t,e){var a=[];if(e)for(var n in e){var i=e[n],o=n;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),a.push(o))}return"<"+t+" "+a.join(" ")+">"}function at(t){return"</"+t+">"}function nt(t,e){e=e||{};var a=e.newline?"\n":"";function n(t){var e=t.children,i=t.tag,o=t.attrs;return et(i,o)+(t.text||"")+(e?""+a+Object(p["H"])(e,(function(t){return n(t)})).join(a)+a:"")+at(i)}return n(t)}function it(t,e,a){a=a||{};var n=a.newline?"\n":"",i=" {"+n,o=n+"}",r=Object(p["H"])(Object(p["F"])(t),(function(e){return e+i+Object(p["H"])(Object(p["F"])(t[e]),(function(a){return a+":"+t[e][a]+";"})).join(n)+o})).join(n),s=Object(p["H"])(Object(p["F"])(e),(function(t){return"@keyframes "+t+i+Object(p["H"])(Object(p["F"])(e[t]),(function(a){return a+i+Object(p["H"])(Object(p["F"])(e[t][a]),(function(n){var i=e[t][a][n];return"d"===n&&(i='path("'+i+'")'),n+":"+i+";"})).join(n)+o})).join(n)+o})).join(n);return r||s?["<![CDATA[",r,s,"]]>"].join(n):""}function ot(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function rt(t,e,a,n){return tt("svg","root",{width:t,height:e,xmlns:Z,"xmlns:xlink":q,version:"1.1",baseProfile:"full",viewBox:!!n&&"0 0 "+t+" "+e},a)}var st=a("5e76"),lt=a("20c8"),ct=a("d4c6"),ut=a("b362"),dt={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},ht="transform-origin";function pt(t,e,a){var n=Object(p["m"])({},t.shape);Object(p["m"])(n,e),t.buildPath(a,n);var i=new B;return i.reset(Object(M["f"])(t)),a.rebuildPath(i,1),i.generateStr(),i.getStr()}function ft(t,e){var a=e.originX,n=e.originY;(a||n)&&(t[ht]=a+"px "+n+"px")}var mt={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function gt(t,e){var a=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[a]=t,a}function _t(t,e,a){var n,i,o=t.shape.paths,r={};if(Object(p["k"])(o,(function(t){var e=ot(a.zrId);e.animation=!0,yt(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=Object(p["F"])(o),c=l.length;if(c){i=l[c-1];var u=o[i];for(var d in u){var h=u[d];r[d]=r[d]||{d:""},r[d].d+=h.d||""}for(var f in s){var m=s[f].animation;m.indexOf(i)>=0&&(n=m)}}})),n){e.d=!1;var s=gt(r,a);return n.replace(i,s)}}function vt(t){return Object(p["C"])(t)?dt[t]?"cubic-bezier("+dt[t]+")":Object(ut["a"])(t)?t:"":""}function yt(t,e,a,n){var i=t.animators,o=i.length,r=[];if(t instanceof ct["a"]){var s=_t(t,e,a);if(s)r.push(s);else if(!o)return}else if(!o)return;for(var l={},c=0;c<o;c++){var u=i[c],h=[u.getMaxTime()/1e3+"s"],f=vt(u.getClip().easing),m=u.getDelay();f?h.push(f):h.push("linear"),m&&h.push(m/1e3+"s"),u.getLoop()&&h.push("infinite");var g=h.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(u)}function _(i){var o,r=i[1],s=r.length,l={},c={},u={},h="animation-timing-function";function f(t,e,a){for(var n=t.getTracks(),i=t.getMaxTime(),o=0;o<n.length;o++){var r=n[o];if(r.needsAnimate()){var s=r.keyframes,l=r.propName;if(a&&(l=a(l)),l)for(var c=0;c<s.length;c++){var u=s[c],d=Math.round(u.time/i*100)+"%",f=vt(u.easing),m=u.rawValue;(Object(p["C"])(m)||Object(p["z"])(m))&&(e[d]=e[d]||{},e[d][l]=u.rawValue,f&&(e[d][h]=f))}}}}for(var m=0;m<s;m++){var g=r[m],_=g.targetName;_?"shape"===_&&f(g,c):!n&&f(g,l)}for(var v in l){var y={};Object(d["b"])(y,t),Object(p["m"])(y,l[v]);var b=Object(M["g"])(y),S=l[v][h];u[v]=b?{transform:b}:{},ft(u[v],y),S&&(u[v][h]=S)}var O=!0;for(var v in c){u[v]=u[v]||{};var T=!o;S=c[v][h];T&&(o=new lt["a"]);var A=o.len();o.reset(),u[v].d=pt(t,c[v],o);var x=o.len();if(!T&&A!==x){O=!1;break}S&&(u[v][h]=S)}if(!O)for(var v in u)delete u[v].d;if(!n)for(m=0;m<s;m++){g=r[m],_=g.targetName;"style"===_&&f(g,u,(function(t){return mt[t]}))}var C,E=Object(p["F"])(u),w=!0;for(m=1;m<E.length;m++){var k=E[m-1],I=E[m];if(u[k][ht]!==u[I][ht]){w=!1;break}C=u[k][ht]}if(w&&C){for(var v in u)u[v][ht]&&delete u[v][ht];e[ht]=C}if(Object(p["n"])(E,(function(t){return Object(p["F"])(u[t]).length>0})).length){var D=gt(u,a);return D+" "+i[0]+" both"}}for(var v in l){s=_(l[v]);s&&r.push(s)}if(r.length){var y=a.zrId+"-cls-"+a.cssClassIdx++;a.cssNodes["."+y]={animation:r.join(",")},e["class"]=y}}var bt=a("76a5"),St=a("726e"),Ot=Math.round;function Tt(t){return t&&Object(p["C"])(t.src)}function At(t){return t&&Object(p["w"])(t.toDataURL)}function xt(t,e,a,n){K((function(i,o){var r="fill"===i||"stroke"===i;r&&Object(M["k"])(o)?Ft(e,t,i,n):r&&Object(M["n"])(o)?Bt(a,t,i,n):t[i]=o}),e,a,!1),$t(a,t,n)}function Ct(t){return Object(M["j"])(t[0]-1)&&Object(M["j"])(t[1])&&Object(M["j"])(t[2])&&Object(M["j"])(t[3]-1)}function Et(t){return Object(M["j"])(t[4])&&Object(M["j"])(t[5])}function wt(t,e,a){if(e&&(!Et(e)||!Ct(e))){var n=a?10:1e4;t.transform=Ct(e)?"translate("+Ot(e[4]*n)/n+" "+Ot(e[5]*n)/n+")":Object(M["e"])(e)}}function Mt(t,e,a){for(var n=t.points,i=[],o=0;o<n.length;o++)i.push(Ot(n[o][0]*a)/a),i.push(Ot(n[o][1]*a)/a);e.points=i.join(" ")}function kt(t){return!t.smooth}function It(t){var e=Object(p["H"])(t,(function(t){return"string"===typeof t?[t,t]:t}));return function(t,a,n){for(var i=0;i<e.length;i++){var o=e[i],r=t[o[0]];null!=r&&(a[o[1]]=Ot(r*n)/n)}}}var Dt={circle:[It(["cx","cy","r"])],polyline:[Mt,kt],polygon:[Mt,kt]};function Lt(t){for(var e=t.animators,a=0;a<e.length;a++)if("shape"===e[a].targetName)return!0;return!1}function Rt(t,e){var a=t.style,n=t.shape,i=Dt[t.type],o={},r=e.animation,s="path",l=t.style.strokePercent,c=e.compress&&Object(M["f"])(t)||4;if(!i||e.willUpdate||i[1]&&!i[1](n)||r&&Lt(t)||l<1){t.path||t.createPathProxy();var u=t.path;t.shapeChanged()&&(u.beginPath(),t.buildPath(u,t.shape),t.pathUpdated());var d=u.getVersion(),h=t,p=h.__svgPathBuilder;h.__svgPathVersion===d&&p&&l===h.__svgPathStrokePercent||(p||(p=h.__svgPathBuilder=new B),p.reset(c),u.rebuildPath(p,l),p.generateStr(),h.__svgPathVersion=d,h.__svgPathStrokePercent=l),o.d=p.getStr()}else{s=t.type;var f=Math.pow(10,c);i[0](n,o,f)}return wt(o,t.transform),xt(o,a,t,e),e.animation&&yt(t,o,e),tt(s,t.id+"",o)}function Nt(t,e){var a=t.style,n=a.image;if(n&&!Object(p["C"])(n)&&(Tt(n)?n=n.src:At(n)&&(n=n.toDataURL())),n){var i=a.x||0,o=a.y||0,r=a.width,s=a.height,l={href:n,width:r,height:s};return i&&(l.x=i),o&&(l.y=o),wt(l,t.transform),xt(l,a,t,e),e.animation&&yt(t,l,e),tt("image",t.id+"",l)}}function Pt(t,e){var a=t.style,n=a.text;if(null!=n&&(n+=""),n&&!isNaN(a.x)&&!isNaN(a.y)){var i=a.font||St["a"],o=a.x||0,r=Object(M["b"])(a.y||0,Object(D["e"])(i),a.textBaseline),s=M["a"][a.textAlign]||a.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Object(bt["b"])(a)){var c="",u=a.fontStyle,d=Object(bt["c"])(a.fontSize);if(!parseFloat(d))return;var h=a.fontFamily||St["b"],p=a.fontWeight;c+="font-size:"+d+";font-family:"+h+";",u&&"normal"!==u&&(c+="font-style:"+u+";"),p&&"normal"!==p&&(c+="font-weight:"+p+";"),l.style=c}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),r&&(l.y=r),wt(l,t.transform),xt(l,a,t,e),e.animation&&yt(t,l,e),tt("text",t.id+"",l,void 0,n)}}function jt(t,e){return t instanceof k["b"]?Rt(t,e):t instanceof I["a"]?Nt(t,e):t instanceof L["a"]?Pt(t,e):void 0}function $t(t,e,a){var n=t.style;if(Object(M["i"])(n)){var i=Object(M["h"])(t),o=a.shadowCache,r=o[i];if(!r){var s=t.getGlobalScale(),l=s[0],c=s[1];if(!l||!c)return;var u=n.shadowOffsetX||0,d=n.shadowOffsetY||0,h=n.shadowBlur,p=Object(M["p"])(n.shadowColor),f=p.opacity,m=p.color,g=h/2/l,_=h/2/c,v=g+" "+_;r=a.zrId+"-s"+a.shadowIdx++,a.defs[r]=tt("filter",r,{id:r,x:"-100%",y:"-100%",width:"300%",height:"300%"},[tt("feDropShadow","",{dx:u/l,dy:d/c,stdDeviation:v,"flood-color":m,"flood-opacity":f})]),o[i]=r}e.filter=Object(M["d"])(r)}}function Ft(t,e,a,n){var i,o=t[a],r={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(M["m"])(o))i="linearGradient",r.x1=o.x,r.y1=o.y,r.x2=o.x2,r.y2=o.y2;else{if(!Object(M["o"])(o))return void 0;i="radialGradient",r.cx=Object(p["P"])(o.x,.5),r.cy=Object(p["P"])(o.y,.5),r.r=Object(p["P"])(o.r,.5)}for(var s=o.colorStops,l=[],c=0,u=s.length;c<u;++c){var d=100*Object(M["q"])(s[c].offset)+"%",h=s[c].color,f=Object(M["p"])(h),m=f.color,g=f.opacity,_={offset:d};_["stop-color"]=m,g<1&&(_["stop-opacity"]=g),l.push(tt("stop",c+"",_))}var v=tt(i,"",r,l),y=nt(v),b=n.gradientCache,S=b[y];S||(S=n.zrId+"-g"+n.gradientIdx++,b[y]=S,r.id=S,n.defs[S]=tt(i,S,r,l)),e[a]=Object(M["d"])(S)}function Bt(t,e,a,n){var i,o=t.style[a],r={patternUnits:"userSpaceOnUse"};if(Object(M["l"])(o)){var s=o.imageWidth,l=o.imageHeight,c=void 0,u=o.image;if(Object(p["C"])(u)?c=u:Tt(u)?c=u.src:At(u)&&(c=u.toDataURL()),"undefined"===typeof Image){var d="Image width/height must been given explictly in svg-ssr renderer.";Object(p["b"])(s,d),Object(p["b"])(l,d)}else if(null==s||null==l){var h=function(t,e){if(t){var a=t.elm,n=t.attrs.width=s||e.width,i=t.attrs.height=l||e.height;a&&(a.setAttribute("width",n),a.setAttribute("height",i))}},f=Object(st["a"])(c,null,t,(function(t){h(m,t),h(i,t)}));f&&f.width&&f.height&&(s=s||f.width,l=l||f.height)}i=tt("image","img",{href:c,width:s,height:l}),r.width=s,r.height=l}else o.svgElement&&(i=Object(p["d"])(o.svgElement),r.width=o.svgWidth,r.height=o.svgHeight);if(i){r.patternTransform=Object(M["g"])(o);var m=tt("pattern","",r,[i]),g=nt(m),_=n.patternCache,v=_[g];v||(v=n.zrId+"-p"+n.patternIdx++,_[g]=v,r.id=v,m=n.defs[v]=tt("pattern",v,r,[i])),e[a]=Object(M["d"])(v)}}function Yt(t,e,a){var n=a.clipPathCache,i=a.defs,o=n[t.id];if(!o){o=a.zrId+"-c"+a.clipPathIdx++;var r={id:o};n[t.id]=o,i[o]=tt("clipPath",o,r,[Rt(t,a)])}e["clip-path"]=Object(M["d"])(o)}function Ut(t){return document.createTextNode(t)}function zt(t,e,a){t.insertBefore(e,a)}function Vt(t,e){t.removeChild(e)}function Ht(t,e){t.appendChild(e)}function Gt(t){return t.parentNode}function Wt(t){return t.nextSibling}function Kt(t,e){t.textContent=e}var Zt=58,qt=120,Xt=tt("","");function Qt(t){return void 0===t}function Jt(t){return void 0!==t}function te(t,e,a){for(var n={},i=e;i<=a;++i){var o=t[i].key;void 0!==o&&(n[o]=i)}return n}function ee(t,e){var a=t.key===e.key,n=t.tag===e.tag;return n&&a}function ae(t){var e,a=t.children,n=t.tag;if(Jt(n)){var i=t.elm=J(n);if(oe(Xt,t),Object(p["t"])(a))for(e=0;e<a.length;++e){var o=a[e];null!=o&&Ht(i,ae(o))}else Jt(t.text)&&!Object(p["A"])(t.text)&&Ht(i,Ut(t.text))}else t.elm=Ut(t.text);return t.elm}function ne(t,e,a,n,i){for(;n<=i;++n){var o=a[n];null!=o&&zt(t,ae(o),e)}}function ie(t,e,a,n){for(;a<=n;++a){var i=e[a];if(null!=i)if(Jt(i.tag)){var o=Gt(i.elm);Vt(o,i.elm)}else Vt(t,i.elm)}}function oe(t,e){var a,n=e.elm,i=t&&t.attrs||{},o=e.attrs||{};if(i!==o){for(a in o){var r=o[a],s=i[a];s!==r&&(!0===r?n.setAttribute(a,""):!1===r?n.removeAttribute(a):a.charCodeAt(0)!==qt?n.setAttribute(a,r):"xmlns:xlink"===a||"xmlns"===a?n.setAttributeNS(X,a,r):a.charCodeAt(3)===Zt?n.setAttributeNS(Q,a,r):a.charCodeAt(5)===Zt?n.setAttributeNS(q,a,r):n.setAttribute(a,r))}for(a in i)a in o||n.removeAttribute(a)}}function re(t,e,a){var n,i,o,r,s=0,l=0,c=e.length-1,u=e[0],d=e[c],h=a.length-1,p=a[0],f=a[h];while(s<=c&&l<=h)null==u?u=e[++s]:null==d?d=e[--c]:null==p?p=a[++l]:null==f?f=a[--h]:ee(u,p)?(se(u,p),u=e[++s],p=a[++l]):ee(d,f)?(se(d,f),d=e[--c],f=a[--h]):ee(u,f)?(se(u,f),zt(t,u.elm,Wt(d.elm)),u=e[++s],f=a[--h]):ee(d,p)?(se(d,p),zt(t,d.elm,u.elm),d=e[--c],p=a[++l]):(Qt(n)&&(n=te(e,s,c)),i=n[p.key],Qt(i)?zt(t,ae(p),u.elm):(o=e[i],o.tag!==p.tag?zt(t,ae(p),u.elm):(se(o,p),e[i]=void 0,zt(t,o.elm,u.elm))),p=a[++l]);(s<=c||l<=h)&&(s>c?(r=null==a[h+1]?null:a[h+1].elm,ne(t,r,a,l,h)):ie(t,e,s,c))}function se(t,e){var a=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(oe(t,e),Qt(e.text)?Jt(n)&&Jt(i)?n!==i&&re(a,n,i):Jt(i)?(Jt(t.text)&&Kt(a,""),ne(a,null,i,0,i.length-1)):Jt(n)?ie(a,n,0,n.length-1):Jt(t.text)&&Kt(a,""):t.text!==e.text&&(Jt(n)&&ie(a,n,0,n.length-1),Kt(a,e.text)))}function le(t,e){if(ee(t,e))se(t,e);else{var a=t.elm,n=Gt(a);ae(e),null!==n&&(zt(n,e.elm,Wt(a)),ie(n,[t],0,0))}return e}var ce=a("3437"),ue=0,de=function(){function t(t,e,a){if(this.type="svg",this.refreshHover=he("refreshHover"),this.configLayer=he("configLayer"),this.storage=e,this._opts=a=Object(p["m"])({},a),this.root=t,this._id="zr"+ue++,this._oldVNode=rt(a.width,a.height),t&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=J("svg");oe(null,this._oldVNode),n.appendChild(i),t.appendChild(n)}this.resize(a.width,a.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",le(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return jt(t,ot(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._backgroundColor,n=this._width,i=this._height,o=ot(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var r=[];if(a&&"none"!==a){var s=Object(M["p"])(a),l=s.color,c=s.opacity;this._bgVNode=tt("rect","bg",{width:n,height:i,x:"0",y:"0",id:"0",fill:l,"fill-opacity":c}),r.push(this._bgVNode)}else this._bgVNode=null;var u=t.compress?null:this._mainVNode=tt("g","main",{},[]);this._paintList(e,o,u?u.children:r),u&&r.push(u);var d=Object(p["H"])(Object(p["F"])(o.defs),(function(t){return o.defs[t]}));if(d.length&&r.push(tt("defs","defs",{},d)),t.animation){var h=it(o.cssNodes,o.cssAnims,{newline:!0});if(h){var f=tt("style","stl",{},[],h);r.push(f)}}return rt(n,i,r,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},nt(this.renderToVNode({animation:Object(p["P"])(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(p["P"])(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var a=Object(M["p"])(t),n=a.color,i=a.opacity;e.elm.setAttribute("fill",n),i<1&&e.elm.setAttribute("fill-opacity",i)}},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,a){for(var n,i,o=t.length,r=[],s=0,l=0,c=0;c<o;c++){var u=t[c];if(!u.invisible){var d=u.__clipPaths,h=d&&d.length||0,p=i&&i.length||0,f=void 0;for(f=Math.max(h-1,p-1);f>=0;f--)if(d&&i&&d[f]===i[f])break;for(var m=p-1;m>f;m--)s--,n=r[s-1];for(var g=f+1;g<h;g++){var _={};Yt(d[g],_,e);var v=tt("g","clip-g-"+l++,_,[]);(n?n.children:a).push(v),r[s++]=v,n=v}i=d;var y=jt(u,e);y&&(n?n.children:a).push(y)}}},t.prototype.resize=function(t,e){var a=this._opts,n=this.root,i=this._viewport;if(null!=t&&(a.width=t),null!=e&&(a.height=e),n&&i&&(i.style.display="none",t=Object(ce["b"])(n,0,a),e=Object(ce["b"])(n,1,a),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}var r=this._svgDom;r&&(r.setAttribute("width",t),r.setAttribute("height",e))}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=encodeURIComponent(this.renderToString()),a="data:image/svg+xml;";return t?(e=Object(M["c"])(e),e&&a+"base64,"+e):a+"charset=UTF-8,"+e},t}();function he(t){return function(){0}}var pe=de;function fe(t){t.registerPainter("svg",pe)}var me=a("36205"),ge=a("4cb5"),_e=a("49bb"),ve=a("acf6"),ye=a("e8e6"),be=a("7fae"),Se=a("d9fc"),Oe=a("4a01");function Te(t,e,a){var n=t.target;n.x+=e,n.y+=a,n.dirty()}function Ae(t,e,a,n){var i=t.target,o=t.zoomLimit,r=t.zoom=t.zoom||1;if(r*=e,o){var s=o.min||0,l=o.max||1/0;r=Math.max(Math.min(l,r),s)}var c=r/t.zoom;t.zoom=r,i.x-=(a-i.x)*(c-1),i.y-=(n-i.y)*(c-1),i.scaleX*=c,i.scaleY*=c,i.dirty()}var xe,Ce=a("c526"),Ee=a("2dc5"),we=a("87b1"),Me=a("d498"),ke=a("2306"),Ie=a("7d6c"),De=a("c7a2"),Le=a("ae69"),Re=a("cb11"),Ne=a("1687"),Pe=a("342d"),je=a("48a9"),$e=a("dded");function Fe(t){if(Object(p["C"])(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var a=t;9===a.nodeType&&(a=a.firstChild);while("svg"!==a.nodeName.toLowerCase()||1!==a.nodeType)a=a.nextSibling;return a}var Be={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Ye=Object(p["F"])(Be),Ue={"alignment-baseline":"textBaseline","stop-color":"stopColor"},ze=Object(p["F"])(Ue),Ve=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var a=Fe(t);this._defsUsePending=[];var n=new Ee["a"];this._root=n;var i=[],o=a.getAttribute("viewBox")||"",r=parseFloat(a.getAttribute("width")||e.width),s=parseFloat(a.getAttribute("height")||e.height);isNaN(r)&&(r=null),isNaN(s)&&(s=null),qe(a,n,null,!0,!1);var l,c,u=a.firstChild;while(u)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;if(ta(this._defs,this._defsUsePending),this._defsUsePending=[],o){var d=aa(o);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=r&&null!=s&&(c=ca(l,{x:0,y:0,width:r,height:s}),!e.ignoreViewBox)){var h=n;n=new Ee["a"],n.add(h),h.scaleX=h.scaleY=c.scale,h.x=c.x,h.y=c.y}return e.ignoreRootClip||null==r||null==s||n.setClipPath(new De["a"]({shape:{x:0,y:0,width:r,height:s}})),{root:n,width:r,height:s,viewBoxRect:l,viewBoxTransform:c,named:i}},t.prototype._parseNode=function(t,e,a,n,i,o){var r,s=t.nodeName.toLowerCase(),l=n;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)r=e;else{if(!i){var c=xe[s];if(c&&Object(p["q"])(xe,s)){r=c.call(this,t,e);var u=t.getAttribute("name");if(u){var d={name:u,namedFrom:null,svgNodeTagLower:s,el:r};a.push(d),"g"===s&&(l=d)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:r});e.add(r)}}var h=He[s];if(h&&Object(p["q"])(He,s)){var f=h.call(this,t),m=t.getAttribute("id");m&&(this._defs[m]=f)}}if(r&&r.isGroup){var g=t.firstChild;while(g)1===g.nodeType?this._parseNode(g,r,a,l,i,o):3===g.nodeType&&o&&this._parseText(g,r),g=g.nextSibling}},t.prototype._parseText=function(t,e){var a=new L["a"]({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ke(e,a),qe(t,a,this._defsUsePending,!1,!1),Xe(a,e);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var r=a.getBoundingRect();return this._textX+=r.width,e.add(a),a},t.internalField=function(){xe={g:function(t,e){var a=new Ee["a"];return Ke(e,a),qe(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new De["a"];return Ke(e,a),qe(t,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(t,e){var a=new Se["a"];return Ke(e,a),qe(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),a.silent=!0,a},line:function(t,e){var a=new Re["a"];return Ke(e,a),qe(t,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(t,e){var a=new Le["a"];return Ke(e,a),qe(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(t,e){var a,n=t.getAttribute("points");n&&(a=Ze(n));var i=new we["a"]({shape:{points:a||[]},silent:!0});return Ke(e,i),qe(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var a,n=t.getAttribute("points");n&&(a=Ze(n));var i=new Me["a"]({shape:{points:a||[]},silent:!0});return Ke(e,i),qe(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var a=new I["a"];return Ke(e,a),qe(t,a,this._defsUsePending,!1,!1),a.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),a.silent=!0,a},text:function(t,e){var a=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var r=new Ee["a"];return Ke(e,r),qe(t,r,this._defsUsePending,!1,!0),r},tspan:function(t,e){var a=t.getAttribute("x"),n=t.getAttribute("y");null!=a&&(this._textX=parseFloat(a)),null!=n&&(this._textY=parseFloat(n));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",r=new Ee["a"];return Ke(e,r),qe(t,r,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),r},path:function(t,e){var a=t.getAttribute("d")||"",n=Object(Pe["b"])(a);return Ke(e,n),qe(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),t}(),He={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),a=parseInt(t.getAttribute("y1")||"0",10),n=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new je["a"](e,a,n,i);return Ge(t,o),We(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),a=parseInt(t.getAttribute("cy")||"0",10),n=parseInt(t.getAttribute("r")||"0",10),i=new $e["a"](e,a,n);return Ge(t,i),We(t,i),i}};function Ge(t,e){var a=t.getAttribute("gradientUnits");"userSpaceOnUse"===a&&(e.global=!0)}function We(t,e){var a=t.firstChild;while(a){if(1===a.nodeType&&"stop"===a.nodeName.toLocaleLowerCase()){var n=a.getAttribute("offset"),i=void 0;i=n&&n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var o={};sa(a,o,o);var r=o.stopColor||a.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:r})}a=a.nextSibling}}function Ke(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(p["i"])(e.__inheritedStyle,t.__inheritedStyle))}function Ze(t){for(var e=aa(t),a=[],n=0;n<e.length;n+=2){var i=parseFloat(e[n]),o=parseFloat(e[n+1]);a.push([i,o])}return a}function qe(t,e,a,n,i){var o=e,r=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(oa(t,e),sa(t,r,s),n||la(t,r,s)),o.style=o.style||{},null!=r.fill&&(o.style.fill=Je(o,"fill",r.fill,a)),null!=r.stroke&&(o.style.stroke=Je(o,"stroke",r.stroke,a)),Object(p["k"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=r[t]&&(o.style[t]=parseFloat(r[t]))})),Object(p["k"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=r[t]&&(o.style[t]=r[t])})),i&&(o.__selfStyle=s),r.lineDash&&(o.style.lineDash=Object(p["H"])(aa(r.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==r.visibility&&"collapse"!==r.visibility||(o.invisible=!0),"none"===r.display&&(o.ignore=!0)}function Xe(t,e){var a=e.__selfStyle;if(a){var n=a.textBaseline,i=n;n&&"auto"!==n?"baseline"===n?i="alphabetic":"before-edge"===n||"text-before-edge"===n?i="top":"after-edge"===n||"text-after-edge"===n?i="bottom":"central"!==n&&"mathematical"!==n||(i="middle"):i="alphabetic",t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var r=o.textAlign,s=r;r&&("middle"===r&&(s="center"),t.style.textAlign=s)}}var Qe=/^url\(\s*#(.*?)\)/;function Je(t,e,a,n){var i=a&&a.match(Qe);if(!i)return"none"===a&&(a=null),a;var o=Object(p["T"])(i[1]);n.push([t,e,o])}function ta(t,e){for(var a=0;a<e.length;a++){var n=e[a];n[0].style[n[1]]=t[n[2]]}}var ea=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function aa(t){return t.match(ea)||[]}var na=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,ia=Math.PI/180;function oa(t,e){var a=t.getAttribute("transform");if(a){a=a.replace(/,/g," ");var n=[],i=null;a.replace(na,(function(t,e,a){return n.push(e,a),""}));for(var o=n.length-1;o>0;o-=2){var r=n[o],s=n[o-1],l=aa(r);switch(i=i||Ne["c"](),s){case"translate":Ne["i"](i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Ne["h"](i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ne["g"](i,i,-parseFloat(l[0])*ia);break;case"skewX":var c=Math.tan(parseFloat(l[0])*ia);Ne["f"](i,[1,0,c,1,0,0],i);break;case"skewY":var u=Math.tan(parseFloat(l[0])*ia);Ne["f"](i,[1,u,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var ra=/([^\s:;]+)\s*:\s*([^:;]+)/g;function sa(t,e,a){var n=t.getAttribute("style");if(n){var i;ra.lastIndex=0;while(null!=(i=ra.exec(n))){var o=i[1],r=Object(p["q"])(Be,o)?Be[o]:null;r&&(e[r]=i[2]);var s=Object(p["q"])(Ue,o)?Ue[o]:null;s&&(a[s]=i[2])}}}function la(t,e,a){for(var n=0;n<Ye.length;n++){var i=Ye[n],o=t.getAttribute(i);null!=o&&(e[Be[i]]=o)}for(n=0;n<ze.length;n++){i=ze[n],o=t.getAttribute(i);null!=o&&(a[Ue[i]]=o)}}function ca(t,e){var a=e.width/t.width,n=e.height/t.height,i=Math.min(a,n);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}function ua(t,e){var a=new Ve;return a.parse(t,e)}var da=a("401b"),ha=a("8728"),pa=1e-8;function fa(t,e){return Math.abs(t-e)<pa}function ma(t,e,a){var n=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var r=t[o];n+=Object(ha["a"])(i[0],i[1],r[0],r[1],e,a),i=r}var s=t[0];return fa(i[0],s[0])&&fa(i[1],s[1])||(n+=Object(ha["a"])(i[0],i[1],s[0],s[1],e,a)),0!==n}var ga=[];function _a(t,e){for(var a=0;a<t.length;a++)da["b"](t[a],t[a],e)}function va(t,e,a,n){for(var i=0;i<t.length;i++){var o=t[i];n&&(o=n.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(da["l"](e,e,o),da["k"](a,a,o))}}function ya(t){for(var e=0,a=0,n=0,i=t.length,o=t[i-1][0],r=t[i-1][1],s=0;s<i;s++){var l=t[s][0],c=t[s][1],u=o*c-l*r;e+=u,a+=(o+l)*u,n+=(r+c)*u,o=l,r=c}return e?[a/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}var ba=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),Sa=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),Oa=function(){function t(t){this.type="linestring",this.points=t}return t}(),Ta=function(t){function e(e,a,n){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return Object(be["a"])(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,a=0,n=0;n<e.length;n++){var i=e[n],o=i.exterior,r=o&&o.length;r>a&&(t=i,a=r)}if(t)return ya(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var a=[1/0,1/0],n=[-1/0,-1/0],i=this.geometries;return Object(p["k"])(i,(function(e){"polygon"===e.type?va(e.exterior,a,n,t):Object(p["k"])(e.points,(function(e){va(e,a,n,t)}))})),isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])||(a[0]=a[1]=n[0]=n[1]=0),e=new s["a"](a[0],a[1],n[0]-a[0],n[1]-a[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),a=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,i=a.length;n<i;n++){var o=a[n];if("polygon"===o.type){var r=o.exterior,s=o.interiors;if(ma(r,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(ma(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,a,n){var i=this.getBoundingRect(),o=i.width/i.height;a?n||(n=a/o):a=o*n;for(var r=new s["a"](t,e,a,n),l=i.calculateTransform(r),c=this.geometries,u=0;u<c.length;u++){var d=c[u];"polygon"===d.type?(_a(d.exterior,l),Object(p["k"])(d.interiors,(function(t){_a(t,l)}))):Object(p["k"])(d.points,(function(t){_a(t,l)}))}i=this._rect,i.copy(r),this._center=[i.x+i.width/2,i.y+i.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var a=new e(t,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},e}(ba),Aa=function(t){function e(e,a){var n=t.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return Object(be["a"])(e,t),e.prototype.calcCenter=function(){var t=this._elOnlyForCalculate,e=t.getBoundingRect(),a=[e.x+e.width/2,e.y+e.height/2],n=Ne["d"](ga),i=t;while(i&&!i.isGeoSVGGraphicRoot)Ne["f"](n,i.getLocalTransform(),n),i=i.parent;return Ne["e"](n,n),da["b"](a,a,n),a},e}(ba),xa=Object(p["f"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Ca=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Object(p["f"])(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Fe(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=wa(t.named),a=e.regions,n=e.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,a;try{e=t&&ua(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=e.root,Object(p["b"])(null!=a)}catch(_){throw new Error("Invalid svg format\n"+_.message)}var n=new Ee["a"];n.add(a),n.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,r=e.viewBoxRect,l=this._boundingRect;if(!l){var c=void 0,u=void 0,d=void 0,h=void 0;if(null!=i?(c=0,d=i):r&&(c=r.x,d=r.width),null!=o?(u=0,h=o):r&&(u=r.y,h=r.height),null==c||null==u){var f=a.getBoundingRect();null==c&&(c=f.x,d=f.width),null==u&&(u=f.y,h=f.height)}l=this._boundingRect=new s["a"](c,u,d,h)}if(r){var m=ca(r,l);a.scaleX=a.scaleY=m.scale,a.x=m.x,a.y=m.y}n.setClipPath(new De["a"]({shape:l.plain()}));var g=[];return Object(p["k"])(e.named,(function(t){null!=xa.get(t.svgNodeTagLower)&&(g.push(t),Ea(t.el))})),{root:n,boundingRect:l,named:g}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,a),a)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);a&&(e.removeKey(t),this._freedGraphics.push(a))},t}();function Ea(t){t.silent=!1,t.isGroup&&t.traverse((function(t){t.silent=!1}))}function wa(t){var e=[],a=Object(p["f"])();return Object(p["k"])(t,(function(t){if(null==t.namedFrom){var n=new Aa(t.name,t.el);e.push(n),a.set(t.name,n)}})),{regions:e,regionsMap:a}}function Ma(t){if(!t.UTF8Encoding)return t;var e=t,a=e.UTF8Scale;null==a&&(a=1024);var n=e.features;return p["k"](n,(function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=Ia(i,n,a);break;case"Polygon":ka(i,n,a);break;case"MultiLineString":ka(i,n,a);break;case"MultiPolygon":p["k"](i,(function(t,e){return ka(t,n[e],a)}))}})),e.UTF8Encoding=!1,e}function ka(t,e,a){for(var n=0;n<t.length;n++)t[n]=Ia(t[n],e[n],a)}function Ia(t,e,a){for(var n=[],i=e[0],o=e[1],r=0;r<t.length;r+=2){var s=t.charCodeAt(r)-64,l=t.charCodeAt(r+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,n.push([s/a,l/a])}return n}function Da(t,e){return t=Ma(t),p["H"](p["n"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Sa(o[0],o.slice(1)));break;case"MultiPolygon":p["k"](n.coordinates,(function(t){t[0]&&i.push(new Sa(t[0],t.slice(1)))}));break;case"LineString":i.push(new Oa([n.coordinates]));break;case"MultiLineString":i.push(new Oa(n.coordinates))}var r=new Ta(a[e||"name"],i,a.cp);return r.properties=a,r}))}for(var La=[126,25],Ra="南海诸岛",Na=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Pa=0;Pa<Na.length;Pa++)for(var ja=0;ja<Na[Pa].length;ja++)Na[Pa][ja][0]/=10.5,Na[Pa][ja][1]/=-14,Na[Pa][ja][0]+=La[0],Na[Pa][ja][1]+=La[1];function $a(t,e){if("china"===t){for(var a=0;a<e.length;a++)if(e[a].name===Ra)return;e.push(new Ta(Ra,p["H"](Na,(function(t){return{type:"polygon",exterior:t}})),La))}}var Fa={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function Ba(t,e){if("china"===t){var a=Fa[e.name];if(a){var n=e.getCenter();n[0]+=a[0]/10.5,n[1]+=-a[1]/14,e.setCenter(n)}}}var Ya=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Ua(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:Ya[0]})}var za="name",Va=function(){function t(t,e,a){this.type="geoJSON",this._parsedMap=Object(p["f"])(),this._mapName=t,this._specialAreas=a,this._geoJSON=Ga(e)}return t.prototype.load=function(t,e){e=e||za;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:Ha(n)})}var i=Object(p["f"])(),o=[];return Object(p["k"])(a.regions,(function(e){var a=e.name;t&&Object(p["q"])(t,a)&&(e=e.cloneShallow(a=t[a])),o.push(e),i.set(a,e)})),{regions:o,boundingRect:a.boundingRect||new s["a"](0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(t){var e,a=this._mapName,n=this._geoJSON;try{e=n?Da(n,t):[]}catch(i){throw new Error("Invalid geoJson format\n"+i.message)}return $a(a,e),Object(p["k"])(e,(function(t){var e=t.name;Ba(a,t),Ua(a,t);var n=this._specialAreas&&this._specialAreas[e];n&&t.transformTo(n.left,n.top,n.width,n.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function Ha(t){for(var e,a=0;a<t.length;a++){var n=t[a].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function Ga(t){return Object(p["C"])(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var Wa=Object(p["f"])(),Ka={registerMap:function(t,e,a){if(e.svg){var n=new Ca(t,e.svg);Wa.set(t,n)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?a=e.specialAreas:i=e;n=new Va(t,i,a);Wa.set(t,n)}},getGeoResource:function(t){return Wa.get(t)},getMapForUser:function(t){var e=Wa.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,a){var n=Wa.get(t);if(n)return n.load(e,a)}},Za=a("8918"),qa=a("b3c1"),Xa=a("19eb"),Qa=["rect","circle","line","ellipse","polygon","polyline","path"],Ja=p["f"](Qa),tn=p["f"](Qa.concat(["g"])),en=p["f"](Qa.concat(["g"])),an=Object(r["o"])();function nn(t){var e=t.getItemStyle(),a=t.get("areaColor");return null!=a&&(e.fill=a),e}function on(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var rn=function(){function t(t){var e=new Ee["a"];this.uid=Object(Za["c"])("ec_map_draw"),this._controller=new Oe["a"](t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Ee["a"]),e.add(this._svgGroup=new Ee["a"])}return t.prototype.draw=function(t,e,a,n,i){var o="geo"===t.mainType,r=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){r||e.getHostGeoModel()!==t||(r=e.getData())}));var s=t.coordinateSystem,c=this._regionsGroup,u=this.group,d=s.getTransformInfo(),h=d.raw,p=d.roam,f=!c.childAt(0)||i;f?(u.x=p.x,u.y=p.y,u.scaleX=p.scaleX,u.scaleY=p.scaleY,u.dirty()):l["h"](u,p,t);var m=r&&r.getVisual("visualMeta")&&r.getVisual("visualMeta").length>0,g={api:a,geo:s,mapOrGeoModel:t,data:r,isVisualEncodedByVisualMap:m,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,a),this._updateMapSelectHandler(t,c,a,n)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=p["f"](),a=p["f"](),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,r=t.data,s=t.geo.projection,l=s&&s.stream;function c(t,e){return e&&(t=e(t)),t&&[t[0]*i.scaleX+i.x,t[1]*i.scaleY+i.y]}function u(t){for(var e=[],a=!l&&s&&s.project,n=0;n<t.length;++n){var i=c(t[n],a);i&&e.push(i)}return e}function d(t){return{shape:{points:u(t)}}}n.removeAll(),p["k"](t.geo.regions,(function(i){var u=i.name,h=e.get(u),f=a.get(u)||{},m=f.dataIdx,g=f.regionModel;h||(h=e.set(u,new Ee["a"]),n.add(h),m=r?r.indexOfName(u):null,g=t.isGeo?o.getRegionModel(u):r?r.getItemModel(m):null,a.set(u,{dataIdx:m,regionModel:g}));var _=[],v=[];p["k"](i.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=hn(e,l)),p["k"](e,(function(t){_.push(new we["a"](d(t)))}))}else{var a=t.points;l&&(a=hn(a,l,!0)),p["k"](a,(function(t){v.push(new Me["a"](d(t)))}))}}));var y=c(i.getCenter(),s&&s.project);function b(e,a){if(e.length){var n=new ct["a"]({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});h.add(n),sn(t,n,m,g),ln(t,n,u,g,o,m,y),a&&(on(n),p["k"](n.states,on))}}b(_),b(v,!0)})),e.each((function(e,n){var i=a.get(n),r=i.dataIdx,s=i.regionModel;cn(t,e,n,s,o,r),un(t,e,n,s,o),dn(t,e,n,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,a=t.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var n=this._svgDispatcherMap=p["f"](),i=!1;p["k"](this._svgGraphicRecord.named,(function(e){var a=e.name,o=t.mapOrGeoModel,r=t.data,s=e.svgNodeTagLower,l=e.el,c=r?r.indexOfName(a):null,u=o.getRegionModel(a);if(null!=Ja.get(s)&&l instanceof Xa["c"]&&sn(t,l,c,u),l instanceof Xa["c"]&&(l.culling=!0),l.z2EmphasisLift=0,!e.namedFrom&&(null!=en.get(s)&&ln(t,l,a,u,o,c,null),cn(t,l,a,u,o,c),un(t,l,a,u,o),null!=tn.get(s))){var d=dn(t,l,a,u,o);"self"===d&&(i=!0);var h=n.get(a)||n.set(a,[]);h.push(l)}}),this),this._enableBlurEntireSVG(i,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var a=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){Object(Ie["G"])(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var a=e.coordinateSystem;if("geoJSON"===a.resourceType){var n=this._regionsGroupByName;if(n){var i=n.get(t);return i?[i]:[]}}else if("geoSVG"===a.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=Ka.getGeoResource(t);if(e&&"geoSVG"===e.type){var a=e.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=Ka.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,a){var n=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(t.get("roam")||!1);var r=t.mainType;function s(){var e={type:"geoRoam",componentType:r};return e[r+"Id"]=t.id,e}i.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,Te(o,t.dx,t.dy),a.dispatchAction(p["m"](s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,Ae(o,t.scale,t.originX,t.originY),a.dispatchAction(p["m"](s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(e,i,o){return n.containPoint([i,o])&&!Object(Ce["a"])(e,a,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=an(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,a,n){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){i._mouseDownFlag=!0})),e.on("click",(function(t){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},t}();function sn(t,e,a,n){var i=n.getModel("itemStyle"),o=n.getModel(["emphasis","itemStyle"]),r=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=nn(i),c=nn(o),u=nn(s),d=nn(r),h=t.data;if(h){var p=h.getItemVisual(a,"style"),f=h.getItemVisual(a,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=Object(qa["a"])(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=c,e.ensureState("select").style=u,e.ensureState("blur").style=d,Object(Ie["G"])(e)}function ln(t,e,a,n,i,o,r){var s=t.data,l=t.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),o)),u=s&&s.getItemLayout(o);if(l||c||u&&u.showLabel){var d=l?a:o,h=void 0;(!s||o>=0)&&(h=i);var p=r?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(m["g"])(e,Object(m["e"])(n),{labelFetcher:h,labelDataIndex:d,defaultText:a},p);var f=e.getTextContent();if(f&&(an(f).ignore=f.ignore,e.textConfig&&r)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(r[0]-g.x)/g.width*100+"%",(r[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function cn(t,e,a,n,i,o){t.data?t.data.setItemGraphicEl(o,e):Object(c["a"])(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:a,region:n&&n.option||{}}}function un(t,e,a,n,i){t.data||ke["setTooltipConfig"]({el:e,componentModel:i,itemName:a,itemTooltipOption:n.get("tooltip")})}function dn(t,e,a,n,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=n.getModel("emphasis"),r=o.get("focus");return Object(Ie["J"])(e,r,o.get("blurScope"),o.get("disabled")),t.isGeo&&Object(Ie["n"])(e,i,a),r}function hn(t,e,a){var n,i=[];function o(){n=[]}function r(){n.length&&(i.push(n),n=[])}var s=e({polygonStart:o,polygonEnd:r,lineStart:o,lineEnd:r,point:function(t,e){isFinite(t)&&isFinite(e)&&n.push([t,e])},sphere:function(){}});return!a&&s.polygonStart(),p["k"](t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!a&&s.polygonEnd(),i}var pn=rn,fn=a("e887"),mn=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.render=function(t,e,a,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var i=this.group;if(i.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&n&&"geoRoam"===n.type&&this._mapDraw.resetForLabelLayout(),n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id){o=this._mapDraw;o&&i.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new pn(a);i.add(o.group),o.draw(t,e,a,this,n),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,a)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,a){var n=t.originalData,i=this.group;n.each(n.mapDimension("value"),(function(e,a){if(!isNaN(e)){var o=n.getItemLayout(a);if(o&&o.point){var r=o.point,s=o.offset,l=new Se["a"]({style:{fill:t.getData().getVisual("style").fill},shape:{cx:r[0]+9*s,cy:r[1],r:3},silent:!0,z2:8+(s?0:Ie["j"]+1)});if(!s){var c=t.mainSeries.getData(),u=n.getName(a),d=c.indexOfName(u),h=n.getItemModel(a),p=h.getModel("label"),f=c.getItemGraphicEl(d);Object(m["g"])(l,Object(m["e"])(h),{labelFetcher:{getFormattedLabel:function(e,a){return t.getFormattedLabel(d,a)}},defaultText:u}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){Object(Ie["H"])(l,t)}}i.add(l)}}}))},e.type="map",e}(fn["a"]),gn=mn,_n=a("3f23"),vn=a("4f85"),yn=a("0f99"),bn=a("217c"),Sn=a("a15a"),On=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.needsDrawMap=!1,a.seriesGroup=[],a.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),a=this.coordinateSystem,n=a.getRegion(e);return n&&a.dataToPoint(n.getCenter())}},a}return Object(be["a"])(e,t),e.prototype.getInitialData=function(t){for(var e=Object(_n["a"])(this,{coordDimensions:["value"],encodeDefaulter:p["h"](yn["d"],this)}),a=p["f"](),n=[],i=0,o=e.count();i<o;i++){var r=e.getName(i);a.set(r,!0)}var s=Ka.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return p["k"](s.regions,(function(t){var e=t.name;a.get(e)||n.push(e)})),e.appendValues([],n),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,a){for(var n=this.getData(),i=this.getRawValue(t),o=n.getName(t),r=this.seriesGroup,s=[],l=0;l<r.length;l++){var c=r[l].originalData.indexOfName(o),u=n.mapDimension("value");isNaN(r[l].originalData.get(u,c))||s.push(r[l].name)}return Object(bn["c"])("section",{header:s.join(", "),noHeader:!s.length,blocks:[Object(bn["c"])("nameValue",{name:o,value:i})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",a=Object(Sn["a"])(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",e.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(vn["b"]),Tn=On;function An(t,e){var a={};return p["k"](t,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);a[i]=a[i]||[],isNaN(e)||a[i].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(n,i){for(var o,r="ec-"+t[0].getName(i),s=0,l=1/0,c=-1/0,u=a[r].length,d=0;d<u;d++)l=Math.min(l,a[r][d]),c=Math.max(c,a[r][d]),s+=a[r][d];return o="min"===e?l:"max"===e?c:"average"===e?s/u:s,0===u?NaN:o}))}function xn(t){var e={};t.eachSeriesByType("map",(function(t){var a=t.getHostGeoModel(),n=a?"o"+a.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)})),p["k"](e,(function(t,e){for(var a=An(p["H"](t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),n=0;n<t.length;n++)t[n].originalData=t[n].getData();for(n=0;n<t.length;n++)t[n].seriesGroup=t,t[n].needsDrawMap=0===n&&!t[n].getHostGeoModel(),t[n].setData(a.cloneShallow()),t[n].mainSeries=t[0]}))}function Cn(t){var e={};t.eachSeriesByType("map",(function(a){var n=a.getMapType();if(!a.getHostGeoModel()&&!e[n]){var i={};p["k"](a.seriesGroup,(function(e){var a=e.coordinateSystem,n=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&n.each(n.mapDimension("value"),(function(t,e){var o=n.getName(e),r=a.getRegion(o);if(r&&!isNaN(t)){var s=i[o]||0,l=a.dataToPoint(r.getCenter());i[o]=s+1,n.setItemLayout(e,{point:l,offset:s})}}))}));var o=a.getData();o.each((function(t){var e=o.getName(t),a=o.getItemLayout(t)||{};a.showLabel=!i[e],o.setItemLayout(t,a)})),e[n]=!0}}))}var En=a("f3bb"),wn=a("6cb7"),Mn=a("4319"),kn=da["b"],In=function(t){function e(e){var a=t.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new d["c"],a._rawTransformable=new d["c"],a.name=e,a}return Object(be["a"])(e,t),e.prototype.setBoundingRect=function(t,e,a,n){return this._rect=new s["a"](t,e,a,n),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,a,n){this._transformTo(t,e,a,n),this._viewRect=new s["a"](t,e,a,n)},e.prototype._transformTo=function(t,e,a,n){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new s["a"](t,e,a,n));var r=o.parent;o.parent=null,o.decomposeTransform(),o.parent=r,this._updateTransform()},e.prototype.setCenter=function(t){t&&(this._center=t,this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),e=t.x+t.width/2,a=t.y+t.height/2;return[e,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,a=this.getDefaultCenter(),n=this.getCenter(),i=this.getZoom();n=da["b"]([],n,t),a=da["b"]([],a,t),e.originX=n[0],e.originY=n[1],e.x=a[0]-n[0],e.y=a[1]-n[1],e.scaleX=e.scaleY=i,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),Ne["b"](this.transform||(this.transform=[]),e.transform||Ne["c"]()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Ne["e"](this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,a=new d["c"];return a.transform=e.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,a){var n=e?this._rawTransform:this.transform;return a=a||[],n?kn(a,t,n):da["d"](a,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?kn([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,a){var n=Dn(e);return n===this?n.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,e,a){var n=Dn(e);return n===this?n.pointToData(a):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(d["c"]);function Dn(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var Ln=In,Rn={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Nn=["lng","lat"],Pn=function(t){function e(e,a,n){var i=t.call(this,e)||this;i.dimensions=Nn,i.type="geo",i._nameCoordMap=p["f"](),i.map=a;var o,r=n.projection,s=Ka.load(a,n.nameMap,n.nameProperty),l=Ka.getGeoResource(a),c=(i.resourceType=l?l.type:null,i.regions=s.regions),u=Rn[l.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=r,r)for(var d=0;d<c.length;d++){var h=c[d].getBoundingRect(r);o=o||h.clone(),o.union(h)}else o=s.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=r?1:p["P"](n.aspectScale,u.aspectScale),i._invertLongitute=!r&&u.invertLongitute,i}return Object(be["a"])(e,t),e.prototype._transformTo=function(t,e,a,n){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var r=this._rawTransformable;r.transform=i.calculateTransform(new s["a"](t,e,a,n));var l=r.parent;r.parent=null,r.decomposeTransform(),r.parent=l,o&&(r.scaleY=-r.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,a=0;a<e.length;a++){var n=e[a];if("geoJSON"===n.type&&n.contain(t))return e[a]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,a){if(p["C"](t)&&(t=this.getGeoCoord(t)),t){var n=this.projection;return n&&(t=n.project(t)),t&&this.projectedToPoint(t)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,a,n){return t.prototype.dataToPoint.call(this,e,a,n)},e.prototype.convertToPixel=function(t,e,a){var n=jn(e);return n===this?n.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,e,a){var n=jn(e);return n===this?n.pointToData(a):null},e}(Ln);function jn(t){var e=t.geoModel,a=t.seriesModel;return e?e.coordinateSystem:a?a.coordinateSystem||(a.getReferringComponents("geo",r["b"]).models[0]||{}).coordinateSystem:null}p["K"](Pn,Ln);var $n=Pn,Fn=a("f934");function Bn(t,e){var a=t.get("boundingCoords");if(null!=a){var n=a[0],i=a[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var r=n[0],s=n[1],l=i[0],c=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var d=function(t,e,a,r){for(var s=a-t,l=r-e,c=0;c<=100;c++){var u=c/100,d=o.project([t+s*u,e+l*u]);da["l"](n,n,d),da["k"](i,i,d)}};d(r,s,l,s),d(l,s,l,c),d(l,c,r,c),d(r,c,l,s)}this.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1])}else 0}var h,p,f,m=this.getBoundingRect(),g=t.get("layoutCenter"),_=t.get("layoutSize"),v=e.getWidth(),y=e.getHeight(),b=m.width/m.height*this.aspectScale,S=!1;if(g&&_&&(h=[u["o"](g[0],v),u["o"](g[1],y)],p=u["o"](_,Math.min(v,y)),isNaN(h[0])||isNaN(h[1])||isNaN(p)||(S=!0)),S)f={},b>1?(f.width=p,f.height=p/b):(f.height=p,f.width=p*b),f.y=h[1]-f.height/2,f.x=h[0]-f.width/2;else{var O=t.getBoxLayoutParams();O.aspect=b,f=Fn["g"](O,{width:v,height:y})}this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function Yn(t,e){p["k"](e.get("geoCoord"),(function(e,a){t.addGeoCoord(a,e)}))}var Un=function(){function t(){this.dimensions=Nn}return t.prototype.create=function(t,e){var a=[];function n(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,i){var o=t.get("map"),r=new $n(o+i,o,p["m"]({nameMap:t.get("nameMap")},n(t)));r.zoomLimit=t.get("scaleLimit"),a.push(r),t.coordinateSystem=r,r.model=t,r.resize=Bn,r.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var n=t.get("geoIndex")||0;t.coordinateSystem=a[n]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),p["k"](i,(function(t,i){var o=p["H"](t,(function(t){return t.get("nameMap")})),r=new $n(i,i,p["m"]({nameMap:p["J"](o)},n(t[0])));r.zoomLimit=p["O"].apply(null,p["H"](t,(function(t){return t.get("scaleLimit")}))),a.push(r),r.resize=Bn,r.resize(t[0],e),p["k"](t,(function(t){t.coordinateSystem=r,Yn(r,t)}))})),a},t.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=p["f"](),r=0;r<i.length;r++)o.set(i[r].name,i[r]);var s=Ka.load(e,a,n);return p["k"](s.regions,(function(t){var e=t.name;!o.get(e)&&i.push({name:e})})),i},t}(),zn=new Un,Vn=zn,Hn=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.init=function(t,e,a){var n=Ka.getGeoResource(t.map);if(n&&"geoJSON"===n.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(t,a),r["f"](t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=Vn.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var a={};this._optionModelMap=p["N"](e.regions||[],(function(e,n){var i=n.name;return i&&(e.set(i,new Mn["a"](n,t,t.ecModel)),n.selected&&(a[i]=!0)),e}),p["f"]()),e.selectedMap||(e.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Mn["a"](null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var a=this.getRegionModel(t),n="normal"===e?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),i={name:t};return p["w"](n)?(i.status=e,n(i)):p["C"](n)?n.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,a=e.selectedMode;if(a){"multiple"!==a&&(e.selectedMap=null);var n=e.selectedMap||(e.selectedMap={});n[t]=!0}},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(wn["a"]),Gn=Hn;function Wn(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function Kn(t,e,a){var n=t.getZoom(),i=t.getCenter(),o=e.zoom,r=t.projectedToPoint?t.projectedToPoint(i):t.dataToPoint(i);if(null!=e.dx&&null!=e.dy&&(r[0]-=e.dx,r[1]-=e.dy,t.setCenter(Wn(t,r))),null!=o){if(a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(n*o,l),s)/n}t.scaleX*=o,t.scaleY*=o;var c=(e.originX-t.x)*(o-1),u=(e.originY-t.y)*(o-1);t.x-=c,t.y-=u,t.updateTransform(),t.setCenter(Wn(t,r)),t.setZoom(o*n)}return{center:t.getCenter(),zoom:t.getZoom()}}var Zn=a("b12f"),qn=a("fadd"),Xn=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.focusBlurEnabled=!0,a}return Object(be["a"])(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,a,n){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new pn(a));var i=this._mapDraw;i.draw(t,e,a,this,n),i.group.on("click",this._handleRegionClick,this),i.group.silent=t.get("silent"),this.group.add(i.group),this.updateSelectStatus(t,e,a)},e.prototype._handleRegionClick=function(t){var e;Object(qn["a"])(t.target,(function(t){return null!=(e=Object(c["a"])(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,a){var n=this;this._mapDraw.group.traverse((function(t){var e=Object(c["a"])(t).eventData;if(e)return n._model.isSelected(e.name)?a.enterSelect(t):a.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Zn["a"]),Qn=Xn;function Jn(t,e,a){Ka.registerMap(t,e,a)}function ti(t){function e(e,a){a.update="geo:updateSelectStatus",t.registerAction(a,(function(t,a){var n={},i=[];return a.eachComponent({mainType:"geo",query:t},(function(a){a[e](t.name);var o=a.coordinateSystem;Object(p["k"])(o.regions,(function(t){n[t.name]=a.isSelected(t.name)||!1}));var r=[];Object(p["k"])(n,(function(t,e){n[e]&&r.push(e)})),i.push({geoIndex:a.componentIndex,name:r})})),{selected:n,allSelected:i,name:t.name}}))}t.registerCoordinateSystem("geo",Vn),t.registerComponentModel(Gn),t.registerComponentView(Qn),t.registerImpl("registerMap",Jn),t.registerImpl("getMap",(function(t){return Ka.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},(function(e){var n=e.coordinateSystem;if("geo"===n.type){var i=Kn(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom),"series"===a&&Object(p["k"])(e.seriesGroup,(function(t){t.setCenter(i.center),t.setZoom(i.zoom)}))}}))}))}function ei(t){Object(i["a"])(ti),t.registerChartView(gn),t.registerSeriesModel(Tn),t.registerLayout(Cn),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,xn),Object(En["a"])("map",t.registerAction)}var ai=a("ac0f"),ni=a("1418");function ii(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var a,n,i=[e];while(a=i.pop())if(n=a.children,a.isExpand&&n.length)for(var o=n.length,r=o-1;r>=0;r--){var s=n[r];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},i.push(s)}}function oi(t,e){var a=t.isExpand?t.children:[],n=t.parentNode.children,i=t.hierNode.i?n[t.hierNode.i-1]:null;if(a.length){ui(t);var o=(a[0].hierNode.prelim+a[a.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=di(t,i,t.parentNode.hierNode.defaultAncestor||n[0],e)}function ri(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function si(t){return arguments.length?t:gi}function li(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function ci(t,e){return Fn["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function ui(t){var e=t.children,a=e.length,n=0,i=0;while(--a>=0){var o=e[a];o.hierNode.prelim+=n,o.hierNode.modifier+=n,i+=o.hierNode.change,n+=o.hierNode.shift+i}}function di(t,e,a,n){if(e){var i=t,o=t,r=o.parentNode.children[0],s=e,l=i.hierNode.modifier,c=o.hierNode.modifier,u=r.hierNode.modifier,d=s.hierNode.modifier;while(s=hi(s),o=pi(o),s&&o){i=hi(i),r=pi(r),i.hierNode.ancestor=t;var h=s.hierNode.prelim+d-o.hierNode.prelim-c+n(s,o);h>0&&(mi(fi(s,t,a),t,h),c+=h,l+=h),d+=s.hierNode.modifier,c+=o.hierNode.modifier,l+=i.hierNode.modifier,u+=r.hierNode.modifier}s&&!hi(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),o&&!pi(r)&&(r.hierNode.thread=o,r.hierNode.modifier+=c-u,a=t)}return a}function hi(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function pi(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function fi(t,e,a){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:a}function mi(t,e,a){var n=a/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=a,e.hierNode.modifier+=a,e.hierNode.prelim+=a,t.hierNode.change+=n}function gi(t,e){return t.parentNode===e.parentNode?1:2}var _i=a("e263"),vi=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),yi=function(t){function e(e){return t.call(this,e)||this}return Object(be["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vi},e.prototype.buildPath=function(t,e){var a=e.childPoints,n=a.length,i=e.parentPoint,o=a[0],r=a[n-1];if(1===n)return t.moveTo(i[0],i[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,c=1-l,d=Object(u["o"])(e.forkPosition,1),h=[];h[l]=i[l],h[c]=i[c]+(r[c]-i[c])*d,t.moveTo(i[0],i[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=r[l],t.lineTo(h[0],h[1]),t.lineTo(r[0],r[1]);for(var p=1;p<n-1;p++){var f=a[p];t.moveTo(f[0],f[1]),h[l]=f[l],t.lineTo(h[0],h[1])}},e}(k["b"]),bi=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a._mainGroup=new Ee["a"],a}return Object(be["a"])(e,t),e.prototype.init=function(t,e){this._controller=new Oe["a"](e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,a){var n=t.getData(),i=t.layoutInfo,o=this._mainGroup,r=t.get("layout");"radial"===r?(o.x=i.x+i.width/2,o.y=i.y+i.height/2):(o.x=i.x,o.y=i.y),this._updateViewCoordSys(t),this._updateController(t,e,a);var s=this._data;n.diff(s).add((function(e){Si(n,e)&&Oi(n,e,null,o,t)})).update((function(e,a){var i=s.getItemGraphicEl(a);Si(n,e)?Oi(n,e,i,o,t):i&&Ci(s,a,i,o,t)})).remove((function(e){var a=s.getItemGraphicEl(e);a&&Ci(s,e,a,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&n.eachItemGraphicEl((function(e,n){e.off("click").on("click",(function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:n})}))})),this._data=n},e.prototype._updateViewCoordSys=function(t){var e=t.getData(),a=[];e.each((function(t){var n=e.getItemLayout(t);!n||isNaN(n.x)||isNaN(n.y)||a.push([+n.x,+n.y])}));var n=[],i=[];_i["d"](a,n,i);var o=this._min,r=this._max;i[0]-n[0]===0&&(n[0]=o?o[0]:n[0]-1,i[0]=r?r[0]:i[0]+1),i[1]-n[1]===0&&(n[1]=o?o[1]:n[1]-1,i[1]=r?r[1]:i[1]+1);var s=t.coordinateSystem=new Ln;s.zoomLimit=t.get("scaleLimit"),s.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1]),s.setCenter(t.get("center")),s.setZoom(t.get("zoom")),this.group.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY}),this._min=n,this._max=i},e.prototype._updateController=function(t,e,a){var n=this,i=this._controller,o=this._controllerHost,r=this.group;i.setPointerChecker((function(e,n,i){var o=r.getBoundingRect();return o.applyTransform(r.transform),o.contain(n,i)&&!Object(Ce["a"])(e,a,t)})),i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){Te(o,e.dx,e.dy),a.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){Ae(o,e.scale,e.originX,e.originY),a.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),n._updateNodeAndLinkScale(t),a.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),a=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(a)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var a=this._nodeScaleRatio,n=e.scaleX||1,i=e.getZoom(),o=(i-1)*a+1;return o/n},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(fn["a"]);function Si(t,e){var a=t.getItemLayout(e);return a&&!isNaN(a.x)&&!isNaN(a.y)}function Oi(t,e,a,n,i){var o=!a,r=t.tree.getNodeByDataIndex(e),s=r.getModel(),u=r.getVisual("style").fill,d=!1===r.isExpand&&0!==r.children.length?u:"#fff",h=t.tree.root,p=r.parentNode===h?r:r.parentNode||r,f=t.getItemGraphicEl(p.dataIndex),m=p.getLayout(),g=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:m,_=r.getLayout();o?(a=new ni["a"](t,e,null,{symbolInnerColor:d,useNameLabel:!0}),a.x=g.x,a.y=g.y):a.updateData(t,e,null,{symbolInnerColor:d,useNameLabel:!0}),a.__radialOldRawX=a.__radialRawX,a.__radialOldRawY=a.__radialRawY,a.__radialRawX=_.rawX,a.__radialRawY=_.rawY,n.add(a),t.setItemGraphicEl(e,a),a.__oldX=a.x,a.__oldY=a.y,l["h"](a,{x:_.x,y:_.y},i);var v=a.getSymbolPath();if("radial"===i.get("layout")){var y=h.children[0],b=y.getLayout(),S=y.children.length,O=void 0,T=void 0;if(_.x===b.x&&!0===r.isExpand){var A={x:(y.children[0].getLayout().x+y.children[S-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[S-1].getLayout().y)/2};O=Math.atan2(A.y-b.y,A.x-b.x),O<0&&(O=2*Math.PI+O),T=A.x<b.x,T&&(O-=Math.PI)}else O=Math.atan2(_.y-b.y,_.x-b.x),O<0&&(O=2*Math.PI+O),0===r.children.length||0!==r.children.length&&!1===r.isExpand?(T=_.x<b.x,T&&(O-=Math.PI)):(T=_.x>b.x,T||(O-=Math.PI));var x=T?"left":"right",C=s.getModel("label"),E=C.get("rotate"),w=E*(Math.PI/180),M=v.getTextContent();M&&(v.setTextConfig({position:C.get("position")||x,rotation:null==E?-O:w,origin:"center"}),M.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),I="ancestor"===k?r.getAncestorsIndices():"descendant"===k?r.getDescendantIndices():null;I&&(Object(c["a"])(a).focus=I),Ti(i,r,h,a,g,m,_,n),a.__edge&&(a.onHoverStateChange=function(e){if("blur"!==e){var n=r.parentNode&&t.getItemGraphicEl(r.parentNode.dataIndex);n&&n.hoverState===Ie["d"]||Object(Ie["H"])(a.__edge,e)}})}function Ti(t,e,a,n,i,o,r,s){var c=e.getModel(),u=t.get("edgeShape"),d=t.get("layout"),h=t.getOrient(),f=t.get(["lineStyle","curveness"]),m=t.get("edgeForkPosition"),g=c.getModel("lineStyle").getLineStyle(),_=n.__edge;if("curve"===u)e.parentNode&&e.parentNode!==a&&(_||(_=n.__edge=new ai["a"]({shape:Ei(d,h,f,i,i)})),l["h"](_,{shape:Ei(d,h,f,o,r)},t));else if("polyline"===u)if("orthogonal"===d){if(e!==a&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var v=e.children,y=[],b=0;b<v.length;b++){var S=v[b].getLayout();y.push([S.x,S.y])}_||(_=n.__edge=new yi({shape:{parentPoint:[r.x,r.y],childPoints:[[r.x,r.y]],orient:h,forkPosition:m}})),l["h"](_,{shape:{parentPoint:[r.x,r.y],childPoints:y}},t)}}else 0;_&&(_.useStyle(p["i"]({strokeNoScale:!0,fill:null},g)),Object(Ie["I"])(_,c,"lineStyle"),Object(Ie["G"])(_),s.add(_))}function Ai(t,e,a,n,i){var o=e.tree.root,r=xi(o,t),s=r.source,c=r.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var d=e.getItemGraphicEl(s.dataIndex),h=d.__edge,p=u.__edge||(!1===s.isExpand||1===s.children.length?h:void 0),f=n.get("edgeShape"),m=n.get("layout"),g=n.get("orient"),_=n.get(["lineStyle","curveness"]);p&&("curve"===f?l["e"](p,{shape:Ei(m,g,_,c,c),style:{opacity:0}},n,{cb:function(){a.remove(p)},removeOpt:i}):"polyline"===f&&"orthogonal"===n.get("layout")&&l["e"](p,{shape:{parentPoint:[c.x,c.y],childPoints:[[c.x,c.y]]},style:{opacity:0}},n,{cb:function(){a.remove(p)},removeOpt:i}))}}function xi(t,e){var a,n=e.parentNode===t?e:e.parentNode||e;while(a=n.getLayout(),null==a)n=n.parentNode===t?n:n.parentNode||n;return{source:n,sourceLayout:a}}function Ci(t,e,a,n,i){var o=t.tree.getNodeByDataIndex(e),r=t.tree.root,s=xi(r,o).sourceLayout,c={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};l["e"](a,{x:s.x+1,y:s.y+1},i,{cb:function(){n.remove(a),t.setItemGraphicEl(e,null)},removeOpt:c}),a.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:c}),o.children.forEach((function(e){Ai(e,t,n,i,c)})),Ai(o,t,n,i,c)}function Ei(t,e,a,n,i){var o,r,s,l,c,u,d,h;if("radial"===t){c=n.rawX,d=n.rawY,u=i.rawX,h=i.rawY;var p=li(c,d),f=li(c,d+(h-d)*a),m=li(u,h+(d-h)*a),g=li(u,h);return{x1:p.x||0,y1:p.y||0,x2:g.x||0,y2:g.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:m.x||0,cpy2:m.y||0}}return c=n.x,d=n.y,u=i.x,h=i.y,"LR"!==e&&"RL"!==e||(o=c+(u-c)*a,r=d,s=u+(c-u)*a,l=h),"TB"!==e&&"BT"!==e||(o=c,r=d+(h-d)*a,s=u,l=h+(d-h)*a),{x1:c,y1:d,x2:u,y2:h,cpx1:o,cpy1:r,cpx2:s,cpy2:l}}var wi=bi,Mi=a("06c7"),ki=a("55ac"),Ii=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return Object(be["a"])(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},a=t.leaves||{},n=new Mn["a"](a,this,this.ecModel),i=Mi["a"].createTree(e,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var a=i.getNodeByDataIndex(e);return a&&a.children.length&&a.isExpand||(t.parentModel=n),t}))}var r=0;i.eachNode("preorder",(function(t){t.depth>r&&(r=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return i.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,a){var n=this.getData().tree,i=n.root.children[0],o=n.getNodeByDataIndex(t),r=o.getValue(),s=o.name;while(o&&o!==i)s=o.parentNode.name+"."+s,o=o.parentNode;return Object(bn["c"])("nameValue",{name:s,value:r,noValue:isNaN(r)||null==r})},e.prototype.getDataParams=function(e){var a=t.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Object(ki["d"])(n,this),a.collapsed=!n.isExpand,a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(vn["b"]),Di=Ii;function Li(t,e,a){var n,i=[t],o=[];while(n=i.pop())if(o.push(n),n.isExpand){var r=n.children;if(r.length)for(var s=0;s<r.length;s++)i.push(r[s])}while(n=o.pop())e(n,a)}function Ri(t,e){var a,n=[t];while(a=n.pop())if(e(a),a.isExpand){var i=a.children;if(i.length)for(var o=i.length-1;o>=0;o--)n.push(i[o])}}function Ni(t,e){t.eachSeriesByType("tree",(function(t){Pi(t,e)}))}function Pi(t,e){var a=ci(t,e);t.layoutInfo=a;var n=t.get("layout"),i=0,o=0,r=null;"radial"===n?(i=2*Math.PI,o=Math.min(a.height,a.width)/2,r=si((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(i=a.width,o=a.height,r=si());var s=t.getData().tree.root,l=s.children[0];if(l){ii(s),Li(l,oi,r),s.hierNode.modifier=-l.hierNode.prelim,Ri(l,ri);var c=l,u=l,d=l;Ri(l,(function(t){var e=t.getLayout().x;e<c.getLayout().x&&(c=t),e>u.getLayout().x&&(u=t),t.depth>d.depth&&(d=t)}));var h=c===u?1:r(c,u)/2,p=h-c.getLayout().x,f=0,m=0,g=0,_=0;if("radial"===n)f=i/(u.getLayout().x+h+p),m=o/(d.depth-1||1),Ri(l,(function(t){g=(t.getLayout().x+p)*f,_=(t.depth-1)*m;var e=li(g,_);t.setLayout({x:e.x,y:e.y,rawX:g,rawY:_},!0)}));else{var v=t.getOrient();"RL"===v||"LR"===v?(m=o/(u.getLayout().x+h+p),f=i/(d.depth-1||1),Ri(l,(function(t){_=(t.getLayout().x+p)*m,g="LR"===v?(t.depth-1)*f:i-(t.depth-1)*f,t.setLayout({x:g,y:_},!0)}))):"TB"!==v&&"BT"!==v||(f=i/(u.getLayout().x+h+p),m=o/(d.depth-1||1),Ri(l,(function(t){g=(t.getLayout().x+p)*f,_="TB"===v?(t.depth-1)*m:o-(t.depth-1)*m,t.setLayout({x:g,y:_},!0)})))}}}function ji(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),a=e.tree;a.eachNode((function(t){var a=t.getModel(),n=a.getModel("itemStyle").getItemStyle(),i=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(p["m"])(i,n)}))}))}function $i(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var a=t.dataIndex,n=e.getData().tree,i=n.getNodeByDataIndex(a);i.isExpand=!i.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var a=e.coordinateSystem,n=Kn(a,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)}))}))}function Fi(t){t.registerChartView(wi),t.registerSeriesModel(Di),t.registerLayout(Ni),t.registerVisual(ji),$i(t)}var Bi=a("128d");function Yi(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var a=t.getCategoriesData(),n=t.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf((function(t){var a=i.getItemModel(t),n=a.getShallow("category");if(null!=n){Object(p["z"])(n)&&(n=o[n]);for(var r=0;r<e.length;r++)if(!e[r].isSelected(n))return!1}return!0}))}))}function Ui(t){var e={};t.eachSeriesByType("graph",(function(t){var a=t.getCategoriesData(),n=t.getData(),i={};a.each((function(n){var o=a.getName(n);i["ec-"+o]=n;var r=a.getItemModel(n),s=r.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),a.setItemVisual(n,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=r.getShallow(l[c],!0);null!=u&&a.setItemVisual(n,l[c],u)}})),a.count()&&n.each((function(t){var e=n.getItemModel(t),o=e.getShallow("category");if(null!=o){Object(p["C"])(o)&&(o=i["ec-"+o]);var r=a.getItemVisual(o,"style"),s=n.ensureUniqueItemVisual(t,"style");Object(p["m"])(s,r);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++)n.setItemVisual(t,l[c],a.getItemVisual(o,l[c]))}}))}))}function zi(t){return t instanceof Array||(t=[t,t]),t}function Vi(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),a=t.getEdgeData(),n=zi(t.get("edgeSymbol")),i=zi(t.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",t.getModel("lineStyle").getLineStyle()),a.each((function(t){var n=a.getItemModel(t),i=e.getEdgeByIndex(t),o=zi(n.getShallow("symbol",!0)),r=zi(n.getShallow("symbolSize",!0)),s=n.getModel("lineStyle").getLineStyle(),l=a.ensureUniqueItemVisual(t,"style");switch(Object(p["m"])(l,s),l.stroke){case"source":var c=i.node1.getVisual("style");l.stroke=c&&c.fill;break;case"target":c=i.node2.getVisual("style");l.stroke=c&&c.fill;break}o[0]&&i.setVisual("fromSymbol",o[0]),o[1]&&i.setVisual("toSymbol",o[1]),r[0]&&i.setVisual("fromSymbolSize",r[0]),r[1]&&i.setVisual("toSymbolSize",r[1])}))}))}var Hi="--\x3e",Gi=function(t){return t.get("autoCurveness")||null},Wi=function(t,e){var a=Gi(t),n=20,i=[];if(p["z"](a))n=a;else if(p["t"](a))return void(t.__curvenessList=a);e>n&&(n=e);var o=n%2?n+2:n+3;i=[];for(var r=0;r<o;r++)i.push((r%2?r+1:r)/10*(r%2?-1:1));t.__curvenessList=i},Ki=function(t,e,a){var n=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[a.uid,n,i].join(Hi)},Zi=function(t){var e=t.split(Hi);return[e[0],e[2],e[1]].join(Hi)},qi=function(t,e){var a=Ki(t.node1,t.node2,e);return e.__edgeMap[a]},Xi=function(t,e){var a=Qi(Ki(t.node1,t.node2,e),e),n=Qi(Ki(t.node2,t.node1,e),e);return a+n},Qi=function(t,e){var a=e.__edgeMap;return a[t]?a[t].length:0};function Ji(t){Gi(t)&&(t.__curvenessList=[],t.__edgeMap={},Wi(t))}function to(t,e,a,n){if(Gi(a)){var i=Ki(t,e,a),o=a.__edgeMap,r=o[Zi(i)];o[i]&&!r?o[i].isForward=!0:r&&o[i]&&(r.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(n)}}function eo(t,e,a,n){var i=Gi(e),o=p["t"](i);if(!i)return null;var r=qi(t,e);if(!r)return null;for(var s=-1,l=0;l<r.length;l++)if(r[l]===a){s=l;break}var c=Xi(t,e);Wi(e,c),t.lineStyle=t.lineStyle||{};var u=Ki(t.node1,t.node2,e),d=e.__curvenessList,h=o||c%2?0:1;if(r.isForward)return d[h+s];var f=Zi(u),m=Qi(f,e),g=d[s+m+h];return n?o?i&&0===i[0]?(m+h)%2?g:-g:((m%2?0:1)+h)%2?g:-g:(m+h)%2?g:-g:d[s+m+h]}function ao(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var a=t.getGraph();a.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),no(a,t)}}function no(t,e){t.eachEdge((function(t,a){var n=p["Q"](t.getModel().get(["lineStyle","curveness"]),-eo(t,e,a,!0),0),i=da["c"](t.node1.getLayout()),o=da["c"](t.node2.getLayout()),r=[i,o];+n&&r.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(r)}))}function io(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),a=t.coordinateSystem;if(a&&"view"!==a.type){var n=t.getData(),i=[];Object(p["k"])(a.dimensions,(function(t){i=i.concat(n.mapDimensionsAll(t))}));for(var o=0;o<n.count();o++){for(var r=[],s=!1,l=0;l<i.length;l++){var c=n.get(i[l],o);isNaN(c)||(s=!0),r.push(c)}s?n.setItemLayout(o,a.dataToPoint(r)):n.setItemLayout(o,[NaN,NaN])}no(n.graph,t)}else e&&"none"!==e||ao(t)}))}function oo(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var a=t.option.nodeScaleRatio,n=e.scaleX,i=e.getZoom(),o=(i-1)*a+1;return o/n}function ro(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var so=Math.PI,lo=[];function co(t,e){var a=t.coordinateSystem;if(!a||"view"===a.type){var n=a.getBoundingRect(),i=t.getData(),o=i.graph,r=n.width/2+n.x,s=n.height/2+n.y,l=Math.min(n.width,n.height)/2,c=i.count();i.setLayout({cx:r,cy:s}),c&&(uo[e](t,o,i,l,r,s,c),o.eachEdge((function(e,a){var n,i=p["Q"](e.getModel().get(["lineStyle","curveness"]),eo(e,t,a),0),o=da["c"](e.node1.getLayout()),l=da["c"](e.node2.getLayout()),c=(o[0]+l[0])/2,u=(o[1]+l[1])/2;+i&&(i*=3,n=[r*i+c*(1-i),s*i+u*(1-i)]),e.setLayout([o,l,n])})))}}var uo={value:function(t,e,a,n,i,o,r){var s=0,l=a.getSum("value"),c=2*Math.PI/(l||r);e.eachNode((function(t){var e=t.getValue("value"),a=c*(l?e:1)/2;s+=a,t.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+o]),s+=a}))},symbolSize:function(t,e,a,n,i,o,r){var s=0;lo.length=r;var l=oo(t);e.eachNode((function(t){var e=ro(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var a=Math.asin(e/2/n);isNaN(a)&&(a=so/2),lo[t.dataIndex]=a,s+=2*a}));var c=(2*so-s)/r/2,u=0;e.eachNode((function(t){var e=c+lo[t.dataIndex];u+=e,t.setLayout([n*Math.cos(u)+i,n*Math.sin(u)+o]),u+=e}))}};function ho(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&co(t,"symbolSize")}))}var po=da["o"];function fo(t,e,a){for(var n=t,i=e,o=a.rect,r=o.width,s=o.height,l=[o.x+r/2,o.y+s/2],c=null==a.gravity?.1:a.gravity,u=0;u<n.length;u++){var d=n[u];d.p||(d.p=da["e"](r*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=da["c"](d.p),d.edges=null}var h,p,f=null==a.friction?.6:a.friction,m=f;return{warmUp:function(){m=.8*f},setFixed:function(t){n[t].fixed=!0},setUnfixed:function(t){n[t].fixed=!1},beforeStep:function(t){h=t},afterStep:function(t){p=t},step:function(t){h&&h(n,i);for(var e=[],a=n.length,o=0;o<i.length;o++){var r=i[o];if(!r.ignoreForceLayout){var s=r.n1,u=r.n2;da["q"](e,u.p,s.p);var d=da["i"](e)-r.d,f=u.w/(s.w+u.w);isNaN(f)&&(f=0),da["m"](e,e),!s.fixed&&po(s.p,s.p,e,f*d*m),!u.fixed&&po(u.p,u.p,e,-(1-f)*d*m)}}for(o=0;o<a;o++){var g=n[o];g.fixed||(da["q"](e,l,g.p),po(g.p,g.p,e,c*m))}for(o=0;o<a;o++){s=n[o];for(var _=o+1;_<a;_++){u=n[_];da["q"](e,u.p,s.p);d=da["i"](e);0===d&&(da["p"](e,Math.random()-.5,Math.random()-.5),d=1);var v=(s.rep+u.rep)/d/d;!s.fixed&&po(s.pp,s.pp,e,v),!u.fixed&&po(u.pp,u.pp,e,-v)}}var y=[];for(o=0;o<a;o++){g=n[o];g.fixed||(da["q"](y,g.p,g.pp),po(g.p,g.p,y,m),da["d"](g.pp,g.p))}m*=.992;var b=m<.01;p&&p(n,i,b),t&&t(b)}}}function mo(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var a=t.preservedPoints||{},n=t.getGraph(),i=n.data,o=n.edgeData,r=t.getModel("force"),s=r.get("initLayout");t.preservedPoints?i.each((function(t){var e=i.getId(t);i.setItemLayout(t,a[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&co(t,"value"):ao(t);var l=i.getDataExtent("value"),c=o.getDataExtent("value"),d=r.get("repulsion"),h=r.get("edgeLength"),f=p["t"](d)?d:[d,d],m=p["t"](h)?h:[h,h];m=[m[1],m[0]];var g=i.mapArray("value",(function(t,e){var a=i.getItemLayout(e),n=Object(u["k"])(t,l,f);return isNaN(n)&&(n=(f[0]+f[1])/2),{w:n,rep:n,fixed:i.getItemModel(e).get("fixed"),p:!a||isNaN(a[0])||isNaN(a[1])?null:a}})),_=o.mapArray("value",(function(e,a){var i=n.getEdgeByIndex(a),o=Object(u["k"])(e,c,m);isNaN(o)&&(o=(m[0]+m[1])/2);var r=i.getModel(),s=p["Q"](i.getModel().get(["lineStyle","curveness"]),-eo(i,t,a,!0),0);return{n1:g[i.node1.dataIndex],n2:g[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:r.get("ignoreForceLayout")}})),v=e.getBoundingRect(),y=fo(g,_,{rect:v,gravity:r.get("gravity"),friction:r.get("friction")});y.beforeStep((function(t,e){for(var a=0,i=t.length;a<i;a++)t[a].fixed&&da["d"](t[a].p,n.getNodeByIndex(a).getLayout())})),y.afterStep((function(t,e,o){for(var r=0,s=t.length;r<s;r++)t[r].fixed||n.getNodeByIndex(r).setLayout(t[r].p),a[i.getId(r)]=t[r].p;for(r=0,s=e.length;r<s;r++){var l=e[r],c=n.getEdgeByIndex(r),u=l.n1.p,d=l.n2.p,h=c.getLayout();h=h?h.slice():[],h[0]=h[0]||[],h[1]=h[1]||[],da["d"](h[0],u),da["d"](h[1],d),+l.curveness&&(h[2]=[(u[0]+d[0])/2-(u[1]-d[1])*l.curveness,(u[1]+d[1])/2-(d[0]-u[0])*l.curveness]),c.setLayout(h)}})),t.forceLayout=y,t.preservedPoints=a,y.step()}else t.forceLayout=null}))}function go(t,e,a){var n=Object(p["m"])(t.getBoxLayoutParams(),{aspect:a});return Object(Fn["g"])(n,{width:e.getWidth(),height:e.getHeight()})}function _o(t,e){var a=[];return t.eachSeriesByType("graph",(function(t){var n=t.get("coordinateSystem");if(!n||"view"===n){var i=t.getData(),o=i.mapArray((function(t){var e=i.getItemModel(t);return[+e.get("x"),+e.get("y")]})),r=[],s=[];_i["d"](o,r,s),s[0]-r[0]===0&&(s[0]+=1,r[0]-=1),s[1]-r[1]===0&&(s[1]+=1,r[1]-=1);var l=(s[0]-r[0])/(s[1]-r[1]),c=go(t,e,l);isNaN(l)&&(r=[c.x,c.y],s=[c.x+c.width,c.y+c.height]);var u=s[0]-r[0],d=s[1]-r[1],h=c.width,p=c.height,f=t.coordinateSystem=new Ln;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(r[0],r[1],u,d),f.setViewRect(c.x,c.y,h,p),f.setCenter(t.get("center")),f.setZoom(t.get("zoom")),a.push(f)}})),a}var vo=a("f706"),yo=Re["a"].prototype,bo=ai["a"].prototype,So=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(be["a"])(e,t)})(So);function Oo(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var To=function(t){function e(e){var a=t.call(this,e)||this;return a.type="ec-line",a}return Object(be["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new So},e.prototype.buildPath=function(t,e){Oo(e)?yo.buildPath.call(this,t,e):bo.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return Oo(this.shape)?yo.pointAt.call(this,t):bo.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,a=Oo(e)?[e.x2-e.x1,e.y2-e.y1]:bo.tangentAt.call(this,t);return da["m"](a,a)},e}(k["b"]),Ao=To,xo=["fromSymbol","toSymbol"];function Co(t){return"_"+t+"Type"}function Eo(t,e,a){var n=e.getItemVisual(a,t);if(n&&"none"!==n){var i=e.getItemVisual(a,t+"Size"),o=e.getItemVisual(a,t+"Rotate"),r=e.getItemVisual(a,t+"Offset"),s=e.getItemVisual(a,t+"KeepAspect"),l=Sn["c"](i),c=Sn["b"](r||0,l),u=Sn["a"](n,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return u.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,u.name=t,u}}function wo(t){var e=new Ao({name:"line",subPixelOptimize:!0});return Mo(e.shape,t),e}function Mo(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var a=e[2];a?(t.cpx1=a[0],t.cpy1=a[1]):(t.cpx1=NaN,t.cpy1=NaN)}var ko=function(t){function e(e,a,n){var i=t.call(this)||this;return i._createLine(e,a,n),i}return Object(be["a"])(e,t),e.prototype._createLine=function(t,e,a){var n=t.hostModel,i=t.getItemLayout(e),o=wo(i);o.shape.percent=0,l["c"](o,{shape:{percent:1}},n,e),this.add(o),Object(p["k"])(xo,(function(a){var n=Eo(a,t,e);this.add(n),this[Co(a)]=t.getItemVisual(e,a)}),this),this._updateCommonStl(t,e,a)},e.prototype.updateData=function(t,e,a){var n=t.hostModel,i=this.childOfName("line"),o=t.getItemLayout(e),r={shape:{}};Mo(r.shape,o),l["h"](i,r,n,e),Object(p["k"])(xo,(function(a){var n=t.getItemVisual(e,a),i=Co(a);if(this[i]!==n){this.remove(this.childOfName(a));var o=Eo(a,t,e);this.add(o)}this[i]=n}),this),this._updateCommonStl(t,e,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,a){var n=t.hostModel,i=this.childOfName("line"),o=a&&a.emphasisLineStyle,r=a&&a.blurLineStyle,s=a&&a.selectLineStyle,l=a&&a.labelStatesModels,c=a&&a.emphasisDisabled,d=a&&a.focus,h=a&&a.blurScope;if(!a||t.hasItemOption){var f=t.getItemModel(e),g=f.getModel("emphasis");o=g.getModel("lineStyle").getLineStyle(),r=f.getModel(["blur","lineStyle"]).getLineStyle(),s=f.getModel(["select","lineStyle"]).getLineStyle(),c=g.get("disabled"),d=g.get("focus"),h=g.get("blurScope"),l=Object(m["e"])(f)}var _=t.getItemVisual(e,"style"),v=_.stroke;i.useStyle(_),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=r,i.ensureState("select").style=s,Object(p["k"])(xo,(function(t){var e=this.childOfName(t);if(e){e.setColor(v),e.style.opacity=_.opacity;for(var a=0;a<Ie["g"].length;a++){var n=Ie["g"][a],o=i.getState(n);if(o){var r=o.style||{},s=e.ensureState(n),l=s.style||(s.style={});null!=r.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=r.stroke),null!=r.opacity&&(l.opacity=r.opacity)}}e.markRedraw()}}),this);var y=n.getRawValue(e);Object(m["g"])(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,a){return n.getFormattedLabel(e,a,t.dataType)}},inheritColor:v||"#000",defaultOpacity:_.opacity,defaultText:(null==y?t.getName(e):isFinite(y)?Object(u["u"])(y):y)+""});var b=this.getTextContent();if(b){var S=l.normal;b.__align=b.style.align,b.__verticalAlign=b.style.verticalAlign,b.__position=S.get("position")||"middle";var O=S.get("distance");Object(p["t"])(O)||(O=[O,O]),b.__labelDistance=O}this.setTextConfig({position:null,local:!0,inside:!1}),Object(Ie["J"])(this,d,h,c)},e.prototype.highlight=function(){Object(Ie["r"])(this)},e.prototype.downplay=function(){Object(Ie["C"])(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");Mo(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),n=t.getTextContent();if(e||a||n&&!n.ignore){var i=1,o=this.parent;while(o)o.scaleX&&(i/=o.scaleX),o=o.parent;var r=t.childOfName("line");if(this.__dirty||r.__dirty){var s=r.shape.percent,l=r.pointAt(0),c=r.pointAt(s),u=da["q"]([],c,l);if(da["m"](u,u),e&&(e.setPosition(l),T(e,0),e.scaleX=e.scaleY=i*s,e.markRedraw()),a&&(a.setPosition(c),T(a,1),a.scaleX=a.scaleY=i*s,a.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var d=void 0,h=void 0,p=n.__labelDistance,f=p[0]*i,m=p[1]*i,g=s/2,_=r.tangentAt(g),v=[_[1],-_[0]],y=r.pointAt(g);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var b=_[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var S=-Math.atan2(_[1],_[0]);c[0]<l[0]&&(S=Math.PI+S),n.rotation=S}var O=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":O=-m,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":O=m,h="top";break;default:O=0,h="middle"}switch(n.__position){case"end":n.x=u[0]*f+c[0],n.y=u[1]*m+c[1],d=u[0]>.8?"left":u[0]<-.8?"right":"center",h=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*f+l[0],n.y=-u[1]*m+l[1],d=u[0]>.8?"right":u[0]<-.8?"left":"center",h=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=f*b+l[0],n.y=l[1]+O,d=_[0]<0?"right":"left",n.originX=-f*b,n.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=y[0],n.y=y[1]+O,d="center",n.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-f*b+c[0],n.y=c[1]+O,d=_[0]>=0?"right":"left",n.originX=f*b,n.originY=-O;break}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||h,align:n.__align||d})}}}function T(t,e){var a=t.__specifiedRotation;if(null==a){var n=r.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))}else t.attr("rotation",a)}},e}(Ee["a"]),Io=ko,Do=function(){function t(t){this.group=new Ee["a"],this._LineCtor=t||Io}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=Ro(t);t.diff(i).add((function(a){e._doAdd(t,a,o)})).update((function(a,n){e._doUpdate(i,t,n,a,o)})).remove((function(t){n.remove(i.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,a){e.updateLayout(t,a)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ro(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function a(t){t.isGroup||Lo(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var n=t.start;n<t.end;n++){var i=e.getItemLayout(n);if(Po(i)){var o=new this._LineCtor(e,n,this._seriesScope);o.traverse(a),this.group.add(o),e.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){ke["traverseElements"](this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,a){var n=t.getItemLayout(e);if(Po(n)){var i=new this._LineCtor(t,e,a);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,a,n,i){var o=t.getItemGraphicEl(a);Po(e.getItemLayout(n))?(o?o.updateData(e,n,i):o=new this._LineCtor(e,n,i),e.setItemGraphicEl(n,o),this.group.add(o)):this.group.remove(o)},t}();function Lo(t){return t.animators&&t.animators.length>0}function Ro(t){var e=t.hostModel,a=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:a.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:a.get("disabled"),blurScope:a.get("blurScope"),focus:a.get("focus"),labelStatesModels:Object(m["e"])(e)}}function No(t){return isNaN(t[0])||isNaN(t[1])}function Po(t){return t&&!No(t[0])&&!No(t[1])}var jo=Do,$o=a("4a3f"),Fo=[],Bo=[],Yo=[],Uo=$o["h"],zo=da["g"],Vo=Math.abs;function Ho(t,e,a){for(var n,i=t[0],o=t[1],r=t[2],s=1/0,l=a*a,c=.1,u=.1;u<=.9;u+=.1){Fo[0]=Uo(i[0],o[0],r[0],u),Fo[1]=Uo(i[1],o[1],r[1],u);var d=Vo(zo(Fo,e)-l);d<s&&(s=d,n=u)}for(var h=0;h<32;h++){var p=n+c;Bo[0]=Uo(i[0],o[0],r[0],n),Bo[1]=Uo(i[1],o[1],r[1],n),Yo[0]=Uo(i[0],o[0],r[0],p),Yo[1]=Uo(i[1],o[1],r[1],p);d=zo(Bo,e)-l;if(Vo(d)<.01)break;var f=zo(Yo,e)-l;c/=2,d<0?f>=0?n+=c:n-=c:f>=0?n-=c:n+=c}return n}function Go(t,e){var a=[],n=$o["n"],i=[[],[],[]],o=[[],[]],r=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),c=t.getVisual("fromSymbol"),u=t.getVisual("toSymbol");l.__original||(l.__original=[da["c"](l[0]),da["c"](l[1])],l[2]&&l.__original.push(da["c"](l[2])));var d=l.__original;if(null!=l[2]){if(da["d"](i[0],d[0]),da["d"](i[1],d[2]),da["d"](i[2],d[1]),c&&"none"!==c){var h=ro(t.node1),p=Ho(i,d[0],h*e);n(i[0][0],i[1][0],i[2][0],p,a),i[0][0]=a[3],i[1][0]=a[4],n(i[0][1],i[1][1],i[2][1],p,a),i[0][1]=a[3],i[1][1]=a[4]}if(u&&"none"!==u){h=ro(t.node2),p=Ho(i,d[1],h*e);n(i[0][0],i[1][0],i[2][0],p,a),i[1][0]=a[1],i[2][0]=a[2],n(i[0][1],i[1][1],i[2][1],p,a),i[1][1]=a[1],i[2][1]=a[2]}da["d"](l[0],i[0]),da["d"](l[1],i[2]),da["d"](l[2],i[1])}else{if(da["d"](o[0],d[0]),da["d"](o[1],d[1]),da["q"](r,o[1],o[0]),da["m"](r,r),c&&"none"!==c){h=ro(t.node1);da["o"](o[0],o[0],r,h*e)}if(u&&"none"!==u){h=ro(t.node2);da["o"](o[1],o[1],r,-h*e)}da["d"](l[0],o[0]),da["d"](l[1],o[1])}}))}function Wo(t){return"view"===t.type}var Ko=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.init=function(t,e){var a=new vo["a"],n=new jo,i=this.group;this._controller=new Oe["a"](e.getZr()),this._controllerHost={target:i},i.add(a.group),i.add(n.group),this._symbolDraw=a,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,e,a){var n=this,i=t.coordinateSystem;this._model=t;var o=this._symbolDraw,r=this._lineDraw,s=this.group;if(Wo(i)){var u={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(u):l["h"](s,u,t)}Go(t.getGraph(),oo(t));var d=t.getData();o.updateData(d);var h=t.getEdgeData();r.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,a),clearTimeout(this._layoutTimeout);var f=t.forceLayout,m=t.get(["force","layoutAnimation"]);f&&this._startForceLayoutIteration(f,m),d.graph.eachNode((function(t){var e=t.dataIndex,a=t.getGraphicEl(),i=t.getModel();if(a){a.off("drag").off("dragend");var o=i.get("draggable");o&&a.on("drag",(function(){f&&(f.warmUp(),!n._layouting&&n._startForceLayoutIteration(f,m),f.setFixed(e),d.setItemLayout(e,[a.x,a.y]))})).on("dragend",(function(){f&&f.setUnfixed(e)})),a.setDraggable(o&&!!f);var r=i.get(["emphasis","focus"]);"adjacency"===r&&(Object(c["a"])(a).focus=t.getAdjacentDataIndices())}})),d.graph.eachEdge((function(t){var e=t.getGraphicEl(),a=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===a&&(Object(c["a"])(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var g="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),_=d.getLayout("cx"),v=d.getLayout("cy");d.eachItemGraphicEl((function(t,e){var a=d.getItemModel(e),n=a.get(["label","rotate"])||0,i=t.getSymbolPath();if(g){var o=d.getItemLayout(e),r=Math.atan2(o[1]-v,o[0]-_);r<0&&(r=2*Math.PI+r);var s=o[0]<_;s&&(r-=Math.PI);var l=s?"left":"right";i.setTextConfig({rotation:-r,position:l,origin:"center"});var c=i.ensureState("emphasis");p["m"](c.textConfig||(c.textConfig={}),{position:l})}else i.setTextConfig({rotation:n*=Math.PI/180})})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var a=this;(function n(){t.step((function(t){a.updateLayout(a._model),(a._layouting=!t)&&(e?a._layoutTimeout=setTimeout(n,16):n())}))})()},e.prototype._updateController=function(t,e,a){var n=this,i=this._controller,o=this._controllerHost,r=this.group;i.setPointerChecker((function(e,n,i){var o=r.getBoundingRect();return o.applyTransform(r.transform),o.contain(n,i)&&!Object(Ce["a"])(e,a,t)})),Wo(t.coordinateSystem)?(i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){Te(o,e.dx,e.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){Ae(o,e.scale,e.originX,e.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),n._updateNodeAndLinkScale(),Go(t.getGraph(),oo(t)),n._lineDraw.updateLayout(),a.updateLabelLayout()}))):i.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),a=oo(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(a)}))},e.prototype.updateLayout=function(t){Go(t.getGraph(),oo(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(fn["a"]),Zo=Ko,qo=a("b682");function Xo(t){return"_EC_"+t}var Qo=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var a=this._nodesMap;if(!a[Xo(t)]){var n=new Jo(t,e);return n.hostGraph=this,this.nodes.push(n),a[Xo(t)]=n,n}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[Xo(t)]},t.prototype.addEdge=function(t,e,a){var n=this._nodesMap,i=this._edgesMap;if(p["z"](t)&&(t=this.nodes[t]),p["z"](e)&&(e=this.nodes[e]),t instanceof Jo||(t=n[Xo(t)]),e instanceof Jo||(e=n[Xo(e)]),t&&e){var o=t.id+"-"+e.id,r=new tr(t,e,a);return r.hostGraph=this,this._directed&&(t.outEdges.push(r),e.inEdges.push(r)),t.edges.push(r),t!==e&&e.edges.push(r),this.edges.push(r),i[o]=r,r}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof Jo&&(t=t.id),e instanceof Jo&&(e=e.id);var a=this._edgesMap;return this._directed?a[t+"-"+e]:a[t+"-"+e]||a[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&t.call(e,a[i],i)},t.prototype.eachEdge=function(t,e){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&t.call(e,a[i],i)},t.prototype.breadthFirstTraverse=function(t,e,a,n){if(e instanceof Jo||(e=this._nodesMap[Xo(e)]),e){for(var i="out"===a?"outEdges":"in"===a?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(n,e,null)){var r=[e];while(r.length){var s=r.shift(),l=s[i];for(o=0;o<l.length;o++){var c=l[o],u=c.node1===s?c.node2:c.node1;if(!u.__visited){if(t.call(n,u,s))return;r.push(u),u.__visited=!0}}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i;e.filterSelf((function(t){var a=n[e.getRawIndex(t)];return a.node1.dataIndex>=0&&a.node2.dataIndex>=0}));for(i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i},t.prototype.clone=function(){for(var e=new t(this._directed),a=this.nodes,n=this.edges,i=0;i<a.length;i++)e.addNode(a[i].id,a[i].dataIndex);for(i=0;i<n.length;i++){var o=n[i];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),Jo=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var a=this.edges[e];a.dataIndex<0||(t.edge.push(a.dataIndex),t.node.push(a.node1.dataIndex,a.node2.dataIndex))}return t},t}(),tr=function(){function t(t,e,a){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==a?-1:a}return t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t}();function er(t,e){return{getValue:function(a){var n=this[t][e];return n.getStore().get(n.getDimensionIndex(a||"value"),this.dataIndex)},setVisual:function(a,n){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,a,n)},getVisual:function(a){return this[t][e].getItemVisual(this.dataIndex,a)},setLayout:function(a,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,a,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}p["K"](Jo,er("hostGraph","data")),p["K"](tr,er("hostGraph","edgeData"));var ar=Qo,nr=a("6a2f"),ir=a("b1d4"),or=a("1f39"),rr=a("1830");function sr(t,e,a,n,i){for(var o=new ar(n),s=0;s<t.length;s++)o.addNode(p["O"](t[s].id,t[s].name,s),s);var l=[],c=[],u=0;for(s=0;s<e.length;s++){var d=e[s],h=d.source,f=d.target;o.addEdge(h,f,u)&&(c.push(d),l.push(p["O"](Object(r["e"])(d.id,null),h+" > "+f)),u++)}var m,g=a.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)m=Object(rr["a"])(t,a);else{var _=or["a"].get(g),v=_&&_.dimensions||[];p["r"](v,"value")<0&&v.concat(["value"]);var y=Object(ir["a"])(t,{coordDimensions:v,encodeDefine:a.getEncode()}).dimensions;m=new qo["a"](y,a),m.initData(t)}var b=new qo["a"](["value"],a);return b.initData(c,l),i&&i(m,b),Object(nr["a"])({mainData:m,struct:o,structAttr:"graph",datas:{node:m,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var lr=a("c4a3"),cr=a("f6d8"),ur=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.hasSymbolVisual=!0,a}return Object(be["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new lr["a"](n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(r["f"])(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var a=t.edges||t.links||[],n=t.data||t.nodes||[],i=this;if(n&&a){Ji(this);var o=sr(n,a,this,!0,r);return p["k"](o.edges,(function(t){to(t.node1,t.node2,this,t.dataIndex)}),this),o.data}function r(t,e){t.wrapMethod("getItemModel",(function(t){var e=i._categoriesModels,a=t.getShallow("category"),n=e[a];return n&&(n.parentModel=t.parentModel,t.parentModel=n),t}));var a=Mn["a"].prototype.getModel;function n(t,e){var n=a.call(this,t,e);return n.resolveParentPath=o,n}function o(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=o,t.getModel=n,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,a){if("edge"===a){var n=this.getData(),i=this.getDataParams(t,a),o=n.graph.getEdgeByIndex(t),r=n.getName(o.node1.dataIndex),s=n.getName(o.node2.dataIndex),l=[];return null!=r&&l.push(r),null!=s&&l.push(s),Object(bn["c"])("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var c=Object(cr["a"])({series:this,dataIndex:t,multipleSeries:e});return c},e.prototype._updateCategoriesData=function(){var t=p["H"](this.option.categories||[],(function(t){return null!=t.value?t:p["m"]({value:0},t)})),e=new qo["a"](["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(vn["b"]),dr=ur,hr={type:"graphRoam",event:"graphRoam",update:"none"};function pr(t){t.registerChartView(Zo),t.registerSeriesModel(dr),t.registerProcessor(Yi),t.registerVisual(Ui),t.registerVisual(Vi),t.registerLayout(io),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,ho),t.registerLayout(mo),t.registerCoordinateSystem("graphView",{dimensions:Ln.dimensions,create:_o}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},p["L"]),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},p["L"]),t.registerAction(hr,(function(t,e){e.eachComponent({mainType:"series",query:t},(function(e){var a=e.coordinateSystem,n=Kn(a,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)}))}))}var fr=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),mr=function(t){function e(e){var a=t.call(this,e)||this;return a.type="pointer",a}return Object(be["a"])(e,t),e.prototype.getDefaultShape=function(){return new fr},e.prototype.buildPath=function(t,e){var a=Math.cos,n=Math.sin,i=e.r,o=e.width,r=e.angle,s=e.x-a(r)*o*(o>=i/3?1:2),l=e.y-n(r)*o*(o>=i/3?1:2);r=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+a(r)*o,e.y+n(r)*o),t.lineTo(e.x+a(e.angle)*i,e.y+n(e.angle)*i),t.lineTo(e.x-a(r)*o,e.y-n(r)*o),t.lineTo(s,l)},e}(k["b"]),gr=mr,_r=a("4aa2"),vr=a("c2be");function yr(t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight(),o=Math.min(n,i),r=Object(u["o"])(a[0],e.getWidth()),s=Object(u["o"])(a[1],e.getHeight()),l=Object(u["o"])(t.get("radius"),o/2);return{cx:r,cy:s,r:l}}function br(t,e){var a=null==t?"":t+"";return e&&(Object(p["C"])(e)?a=e.replace("{value}",a):Object(p["w"])(e)&&(a=e(t))),a}var Sr=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.render=function(t,e,a){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),i=yr(t,a);this._renderMain(t,e,a,n,i),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,a,n,i){var o=this.group,r=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),u=c.get("roundCap"),d=u?vr["a"]:_r["a"],h=c.get("show"),p=c.getModel("lineStyle"),f=p.get("width"),m=[s,l];Object(lt["b"])(m,!r),s=m[0],l=m[1];for(var g=l-s,_=s,v=0;h&&v<n.length;v++){var y=Math.min(Math.max(n[v][0],0),1);l=s+g*y;var b=new d({shape:{startAngle:_,endAngle:l,cx:i.cx,cy:i.cy,clockwise:r,r0:i.r-f,r:i.r},silent:!0});b.setStyle({fill:n[v][1]}),b.setStyle(p.getLineStyle(["color","width"])),o.add(b),_=l}var S=function(t){if(t<=0)return n[0][1];var e;for(e=0;e<n.length;e++)if(n[e][0]>=t&&(0===e?0:n[e-1][0])<t)return n[e][1];return n[e-1][1]};this._renderTicks(t,e,a,S,i,s,l,r,f),this._renderTitleAndDetail(t,e,a,S,i),this._renderAnchor(t,i),this._renderPointer(t,e,a,S,i,s,l,r,f)},e.prototype._renderTicks=function(t,e,a,n,i,o,r,s,l){for(var c,d,h=this.group,p=i.cx,f=i.cy,g=i.r,_=+t.get("min"),v=+t.get("max"),y=t.getModel("splitLine"),b=t.getModel("axisTick"),S=t.getModel("axisLabel"),O=t.get("splitNumber"),T=b.get("splitNumber"),A=Object(u["o"])(y.get("length"),g),x=Object(u["o"])(b.get("length"),g),C=o,E=(r-o)/O,w=E/T,M=y.getModel("lineStyle").getLineStyle(),k=b.getModel("lineStyle").getLineStyle(),I=y.get("distance"),D=0;D<=O;D++){if(c=Math.cos(C),d=Math.sin(C),y.get("show")){var L=I?I+l:l,R=new Re["a"]({shape:{x1:c*(g-L)+p,y1:d*(g-L)+f,x2:c*(g-A-L)+p,y2:d*(g-A-L)+f},style:M,silent:!0});"auto"===M.stroke&&R.setStyle({stroke:n(D/O)}),h.add(R)}if(S.get("show")){L=S.get("distance")+I;var N=br(Object(u["u"])(D/O*(v-_)+_),S.get("formatter")),P=n(D/O);h.add(new bt["a"]({style:Object(m["c"])(S,{text:N,x:c*(g-A-L)+p,y:d*(g-A-L)+f,verticalAlign:d<-.8?"top":d>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:P}),silent:!0}))}if(b.get("show")&&D!==O){L=b.get("distance");L=L?L+l:l;for(var j=0;j<=T;j++){c=Math.cos(C),d=Math.sin(C);var $=new Re["a"]({shape:{x1:c*(g-L)+p,y1:d*(g-L)+f,x2:c*(g-x-L)+p,y2:d*(g-x-L)+f},silent:!0,style:k});"auto"===k.stroke&&$.setStyle({stroke:n((D+j/T)/O)}),h.add($),C+=w}C-=w}else C+=E}},e.prototype._renderPointer=function(t,e,a,n,i,o,r,s,d){var h=this.group,f=this._data,m=this._progressEls,g=[],_=t.get(["pointer","show"]),v=t.getModel("progress"),y=v.get("show"),b=t.getData(),S=b.mapDimension("value"),O=+t.get("min"),T=+t.get("max"),A=[O,T],x=[o,r];function C(e,a){var n,o=b.getItemModel(e),r=o.getModel("pointer"),s=Object(u["o"])(r.get("width"),i.r),l=Object(u["o"])(r.get("length"),i.r),c=t.get(["pointer","icon"]),d=r.get("offsetCenter"),h=Object(u["o"])(d[0],i.r),p=Object(u["o"])(d[1],i.r),f=r.get("keepAspect");return n=c?Object(Sn["a"])(c,h-s/2,p-l,s,l,null,f):new gr({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:p}}),n.rotation=-(a+Math.PI/2),n.x=i.cx,n.y=i.cy,n}function E(t,e){var a=v.get("roundCap"),n=a?vr["a"]:_r["a"],r=v.get("overlap"),l=r?v.get("width"):d/b.count(),c=r?i.r-l:i.r-(t+1)*l,u=r?i.r:i.r-t*l,h=new n({shape:{startAngle:o,endAngle:e,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:u}});return r&&(h.z2=T-b.get(S,t)%T),h}(y||_)&&(b.diff(f).add((function(e){var a=b.get(S,e);if(_){var n=C(e,o);l["c"](n,{rotation:-((isNaN(+a)?x[0]:Object(u["k"])(a,A,x,!0))+Math.PI/2)},t),h.add(n),b.setItemGraphicEl(e,n)}if(y){var i=E(e,o),r=v.get("clip");l["c"](i,{shape:{endAngle:Object(u["k"])(a,A,x,r)}},t),h.add(i),Object(c["b"])(t.seriesIndex,b.dataType,e,i),g[e]=i}})).update((function(e,a){var n=b.get(S,e);if(_){var i=f.getItemGraphicEl(a),r=i?i.rotation:o,s=C(e,r);s.rotation=r,l["h"](s,{rotation:-((isNaN(+n)?x[0]:Object(u["k"])(n,A,x,!0))+Math.PI/2)},t),h.add(s),b.setItemGraphicEl(e,s)}if(y){var d=m[a],p=d?d.shape.endAngle:o,O=E(e,p),T=v.get("clip");l["h"](O,{shape:{endAngle:Object(u["k"])(n,A,x,T)}},t),h.add(O),Object(c["b"])(t.seriesIndex,b.dataType,e,O),g[e]=O}})).execute(),b.each((function(t){var e=b.getItemModel(t),a=e.getModel("emphasis"),i=a.get("focus"),o=a.get("blurScope"),r=a.get("disabled");if(_){var s=b.getItemGraphicEl(t),l=b.getItemVisual(t,"style"),c=l.fill;if(s instanceof I["a"]){var d=s.style;s.useStyle(Object(p["m"])({image:d.image,x:d.x,y:d.y,width:d.width,height:d.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(c);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",n(Object(u["k"])(b.get(S,t),A,[0,1],!0))),s.z2EmphasisLift=0,Object(Ie["I"])(s,e),Object(Ie["J"])(s,i,o,r)}if(y){var h=g[t];h.useStyle(b.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,Object(Ie["I"])(h,e),Object(Ie["J"])(h,i,o,r)}})),this._progressEls=g)},e.prototype._renderAnchor=function(t,e){var a=t.getModel("anchor"),n=a.get("show");if(n){var i=a.get("size"),o=a.get("icon"),r=a.get("offsetCenter"),s=a.get("keepAspect"),l=Object(Sn["a"])(o,e.cx-i/2+Object(u["o"])(r[0],e.r),e.cy-i/2+Object(u["o"])(r[1],e.r),i,i,null,s);l.z2=a.get("showAbove")?1:0,l.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,a,n,i){var o=this,r=t.getData(),s=r.mapDimension("value"),l=+t.get("min"),c=+t.get("max"),d=new Ee["a"],h=[],p=[],f=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);r.diff(this._data).add((function(t){h[t]=new bt["a"]({silent:!0}),p[t]=new bt["a"]({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],p[t]=o._detailEls[e]})).execute(),r.each((function(e){var a=r.getItemModel(e),o=r.get(s,e),_=new Ee["a"],v=n(Object(u["k"])(o,[l,c],[0,1],!0)),y=a.getModel("title");if(y.get("show")){var b=y.get("offsetCenter"),S=i.cx+Object(u["o"])(b[0],i.r),O=i.cy+Object(u["o"])(b[1],i.r),T=h[e];T.attr({z2:g?0:2,style:Object(m["c"])(y,{x:S,y:O,text:r.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:v})}),_.add(T)}var A=a.getModel("detail");if(A.get("show")){var x=A.get("offsetCenter"),C=i.cx+Object(u["o"])(x[0],i.r),E=i.cy+Object(u["o"])(x[1],i.r),w=Object(u["o"])(A.get("width"),i.r),M=Object(u["o"])(A.get("height"),i.r),k=t.get(["progress","show"])?r.getItemVisual(e,"style").fill:v,I=(T=p[e],A.get("formatter"));T.attr({z2:g?0:2,style:Object(m["c"])(A,{x:C,y:E,text:br(o,I),width:isNaN(w)?null:w,height:isNaN(M)?null:M,align:"center",verticalAlign:"middle"},{inheritColor:k})}),Object(m["h"])(T,{normal:A},o,(function(t){return br(t,I)})),f&&Object(m["a"])(T,e,r,t,{getFormattedLabel:function(t,e,a,n,i,r){return br(r?r.interpolatedValue:o,I)}}),_.add(T)}d.add(_)})),this.group.add(d),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(fn["a"]),Or=Sr,Tr=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.visualStyleAccessPath="itemStyle",a}return Object(be["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(_n["a"])(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(vn["b"]),Ar=Tr;function xr(t){t.registerChartView(Or),t.registerSeriesModel(Ar)}var Cr=a("e275"),Er=.3,wr=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a._dataGroup=new Ee["a"],a._initialized=!1,a}return Object(be["a"])(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,a,n){this._progressiveEls=null;var i=this._dataGroup,o=t.getData(),r=this._data,s=t.coordinateSystem,c=s.dimensions,u=Dr(t);function d(t){var e=Ir(o,i,t,c,s);Lr(e,o,t,u)}function h(e,a){var n=r.getItemGraphicEl(a),i=kr(o,e,c,s);o.setItemGraphicEl(e,n),l["h"](n,{shape:{points:i}},t,e),Object(l["g"])(n),Lr(n,o,e,u)}function p(t){var e=r.getItemGraphicEl(t);i.remove(e)}if(o.diff(r).add(d).update(h).remove(p).execute(),!this._initialized){this._initialized=!0;var f=Mr(s,t,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(f)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,a){for(var n=e.getData(),i=e.coordinateSystem,o=i.dimensions,r=Dr(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var c=Ir(n,this._dataGroup,l,o,i);c.incremental=!0,Lr(c,n,l,r),s.push(c)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(fn["a"]);function Mr(t,e,a){var n=t.model,i=t.getRect(),o=new De["a"]({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),r="horizontal"===n.get("layout")?"width":"height";return o.setShape(r,0),l["c"](o,{shape:{width:i.width,height:i.height}},e,a),o}function kr(t,e,a,n){for(var i=[],o=0;o<a.length;o++){var r=a[o],s=t.get(t.mapDimension(r),e);Rr(s,n.getAxis(r).type)||i.push(n.dataToPoint(s,r))}return i}function Ir(t,e,a,n,i){var o=kr(t,a,n,i),r=new Me["a"]({shape:{points:o},z2:10});return e.add(r),t.setItemGraphicEl(a,r),r}function Dr(t){var e=t.get("smooth",!0);return!0===e&&(e=Er),e=Object(u["m"])(e),Object(p["l"])(e)&&(e=0),{smooth:e}}function Lr(t,e,a,n){t.useStyle(e.getItemVisual(a,"style")),t.style.fill=null,t.setShape("smooth",n.smooth);var i=e.getItemModel(a),o=i.getModel("emphasis");Object(Ie["I"])(t,i,"lineStyle"),Object(Ie["J"])(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Rr(t,e){return"category"===e?null==t:null==t||isNaN(t)}var Nr=wr,Pr=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.visualStyleAccessPath="lineStyle",a.visualDrawType="stroke",a}return Object(be["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(rr["a"])(null,this,{useEncodeDefaulter:Object(p["c"])(jr,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,a=this.getData(),n=[];return e.eachActiveState(a,(function(e,i){t===e&&n.push(a.getRawIndex(i))})),n},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(vn["b"]);function jr(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var a={};return Object(p["k"])(e.dimensions,(function(t){var e=$r(t);a[t]=e})),a}}function $r(t){return+t.replace("dim","")}var Fr=Pr,Br=["lineStyle","opacity"],Yr={seriesType:"parallel",reset:function(t,e){var a=t.coordinateSystem,n={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){a.eachActiveState(e,(function(t,a){var i=n[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(a).get(Br,!0);null!=o&&(i=o)}var r=e.ensureUniqueItemVisual(a,"style");r.opacity=i}),t.start,t.end)}}}},Ur=Yr;function zr(t){Vr(t),Hr(t)}function Vr(t){if(!t.parallel){var e=!1;p["k"](t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function Hr(t){var e=r["r"](t.parallelAxis);p["k"](e,(function(e){if(p["A"](e)){var a=e.parallelIndex||0,n=r["r"](t.parallel)[a];n&&n.parallelAxisDefault&&p["I"](e,n.parallelAxisDefault,!1)}}))}var Gr=a("88b3"),Wr=5,Kr=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.render=function(t,e,a){this._model=t,this._api=a,this._handlers||(this._handlers={},Object(p["k"])(Zr,(function(t,e){a.getZr().on(e,this._handlers[e]=Object(p["c"])(t,this))}),this)),Object(Gr["b"])(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){Object(Gr["a"])(this,"_throttledDispatchExpand"),Object(p["k"])(this._handlers,(function(t,a){e.getZr().off(a,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(p["m"])({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Zn["a"]),Zr={mousedown:function(t){qr(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(qr(this,"click")&&e){var a=[t.offsetX,t.offsetY],n=Math.pow(e[0]-a[0],2)+Math.pow(e[1]-a[1],2);if(n>Wr)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&qr(this,"mousemove")){var e=this._model,a=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=a.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:a.axisExpandWindow,animation:"jump"===n?null:{duration:0}})}}};function qr(t,e){var a=t._model;return a.get("axisExpandable")&&a.get("axisExpandTriggerOn")===e}var Xr=Kr,Qr=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&p["I"](e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var a=t.get("parallelIndex");return null!=a&&e.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){p["k"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],a=p["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);p["k"](a,(function(a){t.push("dim"+a.get("dim")),e.push(a.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(wn["a"]),Jr=Qr,ts=a("697e"),es=a("84ce"),as=function(t){function e(e,a,n,i,o){var r=t.call(this,e,a,n)||this;return r.type=i||"value",r.axisIndex=o,r}return Object(be["a"])(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(es["a"]),ns=as,is=a("ef6a"),os=p["k"],rs=Math.min,ss=Math.max,ls=Math.floor,cs=Math.ceil,us=u["u"],ds=Math.PI,hs=function(){function t(t,e,a){this.type="parallel",this._axesMap=p["f"](),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return t.prototype._init=function(t,e,a){var n=t.dimensions,i=t.parallelAxisIndex;os(n,(function(t,a){var n=i[a],o=e.getComponent("parallelAxis",n),r=this._axesMap.set(t,new ns(t,ts["a"](o),[0,0],o.get("type"),n)),s="category"===r.type;r.onBand=s&&o.get("boundaryGap"),r.inverse=o.get("inverse"),o.axis=r,r.model=o,r.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],r=t[i];return o>=a&&o<=a+e.axisLength&&r>=n&&r<=n+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(a){if(t.contains(a,e)){var n=a.getData();os(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),ts["i"](e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Fn["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,a=this._rect,n=["x","y"],i=["width","height"],o=e.get("layout"),r="horizontal"===o?0:1,s=a[i[r]],l=[0,s],c=this.dimensions.length,u=ps(e.get("axisExpandWidth"),l),d=ps(e.get("axisExpandCount")||0,[0,c]),h=e.get("axisExpandable")&&c>3&&c>d&&d>1&&u>0&&s>0,p=e.get("axisExpandWindow");if(p)t=ps(p[1]-p[0],l),p[1]=p[0]+t;else{t=ps(u*(d-1),l);var f=e.get("axisExpandCenter")||ls(c/2);p=[u*f-t/2],p[1]=p[0]+t}var m=(s-t)/(c-d);m<3&&(m=0);var g=[ls(us(p[0]/u,1))+1,cs(us(p[1]/u,1))-1],_=m/u*p[0];return{layout:o,pixelDimIndex:r,layoutBase:a[n[r]],layoutLength:s,axisBase:a[n[1-r]],axisLength:a[i[1-r]],axisExpandable:h,axisExpandWidth:u,axisCollapseWidth:m,axisExpandWindow:p,axisCount:c,winInnerIndices:g,axisExpandWindow0Pos:_}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each((function(t){var e=[0,n.axisLength],a=t.inverse?1:0;t.setExtent(e[a],e[1-a])})),os(a,(function(e,a){var o=(n.axisExpandable?ms:fs)(a,n),r={horizontal:{x:o.position,y:n.axisLength},vertical:{x:0,y:o.position}},s={horizontal:ds/2,vertical:0},l=[r[i].x+t.x,r[i].y+t.y],c=s[i],u=Ne["c"]();Ne["g"](u,u,c),Ne["i"](u,u,l),this._axesLayout[e]={position:l,rotation:c,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,a,n){null==a&&(a=0),null==n&&(n=t.count());var i=this._axesMap,o=this.dimensions,r=[],s=[];p["k"](o,(function(e){r.push(t.mapDimension(e)),s.push(i.get(e).model)}));for(var l=this.hasAxisBrushed(),c=a;c<n;c++){var u=void 0;if(l){u="active";for(var d=t.getValues(r,c),h=0,f=o.length;h<f;h++){var m=s[h].getActiveState(d[h]);if("inactive"===m){u="inactive";break}}}else u="normal";e(u,c)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,a=!1,n=0,i=t.length;n<i;n++)"normal"!==e.get(t[n]).model.getActiveState()&&(a=!0);return a},t.prototype.axisCoordToPoint=function(t,e){var a=this._axesLayout[e];return ke["applyTransform"]([t,0],a.transform)},t.prototype.getAxisLayout=function(t){return p["d"](this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),a=e.pixelDimIndex,n=e.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var r,s=t[a]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",c=e.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),d=null!=u[0];if(c)d&&c&&s<i*u[0]?(l="jump",r=s-i*u[2]):d&&c&&s>i*(1-u[0])?(l="jump",r=s-i*(1-u[2])):(r=s-i*u[1])>=0&&(r=s-i*(1-u[1]))<=0&&(r=0),r*=e.axisExpandWidth/c,r?Object(is["a"])(r,n,o,"all"):l="none";else{var h=n[1]-n[0],p=o[1]*s/h;n=[ss(0,p-h/2)],n[1]=rs(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:l}},t}();function ps(t,e){return rs(ss(t,e[0]),e[1])}function fs(t,e){var a=e.layoutLength/(e.axisCount-1);return{position:a*t,axisNameAvailableWidth:a,axisLabelShow:!0}}function ms(t,e){var a,n,i=e.layoutLength,o=e.axisExpandWidth,r=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,c=s,u=!1;return t<l[0]?(a=t*s,n=s):t<=l[1]?(a=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],c=o,u=!0):(a=i-(r-1-t)*s,n=s),{position:a,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:n}}var gs=hs;function _s(t,e){var a=[];return t.eachComponent("parallel",(function(n,i){var o=new gs(n,t,e);o.name="parallel_"+i,o.resize(n,e),n.coordinateSystem=o,o.model=n,a.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",r["b"]).models[0];t.coordinateSystem=e.coordinateSystem}})),a}var vs={create:_s},ys=vs,bs=a("9e47"),Ss=a("282b"),Os=a("2023"),Ts=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.activeIntervals=[],a}return Object(be["a"])(e,t),e.prototype.getAreaSelectStyle=function(){return Object(Ss["a"])([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=p["d"](t);if(e)for(var a=e.length-1;a>=0;a--)u["c"](e[a])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var a=e[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var n=0,i=e.length;n<i;n++)if(e[n][0]<=t&&t<=e[n][1])return"active";return"inactive"},e}(wn["a"]);p["K"](Ts,Os["a"]);var As=Ts,xs=a("fab2"),Cs=a("fc82"),Es=a("f4a2"),ws=["axisLine","axisTickLabel","axisName"],Ms=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.init=function(e,a){t.prototype.init.apply(this,arguments),(this._brushController=new Cs["a"](a.getZr())).on("brush",p["c"](this._onBrush,this))},e.prototype.render=function(t,e,a,n){if(!ks(t,e,n)){this.axisModel=t,this.api=a,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Ee["a"],this.group.add(this._axisGroup),t.get("show")){var o=Ds(t,e),r=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,c=t.axis.dim,u=r.getAxisLayout(c),d=p["m"]({strokeContainThreshold:l},u),h=new xs["a"](t,d);p["k"](ws,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(d,s,t,o,l,a),ke["groupTransition"](i,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,a,n,i,o){var r=a.axis.getExtent(),l=r[1]-r[0],c=Math.min(30,.1*Math.abs(l)),u=s["a"].create({x:r[0],y:-i/2,width:l,height:i});u.x-=c,u.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Es["c"](u),isTargetByCursor:Es["b"](u,o,n),getLinearBrushOtherExtent:Es["a"](u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(Is(a))},e.prototype._onBrush=function(t){var e=t.areas,a=this.axisModel,n=a.axis,i=p["H"](e,(function(t){return[n.coordToData(t.range[0],!0),n.coordToData(t.range[1],!0)]}));(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:i})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Zn["a"]);function ks(t,e,a){return a&&"axisAreaSelect"===a.type&&e.findComponents({mainType:"parallelAxis",query:a})[0]===t}function Is(t){var e=t.axis;return p["H"](t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function Ds(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var Ls=Ms,Rs={type:"axisAreaSelect",event:"axisAreaSelected"};function Ns(t){t.registerAction(Rs,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var Ps={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function js(t){t.registerComponentView(Xr),t.registerComponentModel(Jr),t.registerCoordinateSystem("parallel",ys),t.registerPreprocessor(zr),t.registerComponentModel(As),t.registerComponentView(Ls),Object(bs["a"])(t,"parallel",As,Ps),Ns(t)}function $s(t){Object(i["a"])(js),t.registerChartView(Nr),t.registerSeriesModel(Fr),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Ur)}var Fs=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),Bs=function(t){function e(e){return t.call(this,e)||this}return Object(be["a"])(e,t),e.prototype.getDefaultShape=function(){return new Fs},e.prototype.buildPath=function(t,e){var a=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+a,e.y2),t.bezierCurveTo(e.cpx2+a,e.cpy2,e.cpx1+a,e.cpy1,e.x1+a,e.y1)):(t.lineTo(e.x2,e.y2+a),t.bezierCurveTo(e.cpx2,e.cpy2+a,e.cpx1,e.cpy1+a,e.x1,e.y1+a)),t.closePath()},e.prototype.highlight=function(){Object(Ie["r"])(this)},e.prototype.downplay=function(){Object(Ie["C"])(this)},e}(k["b"]),Ys=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a._focusAdjacencyDisabled=!1,a}return Object(be["a"])(e,t),e.prototype.render=function(t,e,a){var n=this,i=t.getGraph(),o=this.group,r=t.layoutInfo,s=r.width,l=r.height,u=t.getData(),d=t.getData("edge"),h=t.get("orient");this._model=t,o.removeAll(),o.x=r.x,o.y=r.y,i.eachEdge((function(e){var a=new Bs,n=Object(c["a"])(a);n.dataIndex=e.dataIndex,n.seriesIndex=t.seriesIndex,n.dataType="edge";var i,r,u,f,m,g,_,v,y=e.getModel(),b=y.getModel("lineStyle"),S=b.get("curveness"),O=e.node1.getLayout(),T=e.node1.getModel(),A=T.get("localX"),x=T.get("localY"),C=e.node2.getLayout(),E=e.node2.getModel(),w=E.get("localX"),M=E.get("localY"),k=e.getLayout();switch(a.shape.extent=Math.max(1,k.dy),a.shape.orient=h,"vertical"===h?(i=(null!=A?A*s:O.x)+k.sy,r=(null!=x?x*l:O.y)+O.dy,u=(null!=w?w*s:C.x)+k.ty,f=null!=M?M*l:C.y,m=i,g=r*(1-S)+f*S,_=u,v=r*S+f*(1-S)):(i=(null!=A?A*s:O.x)+O.dx,r=(null!=x?x*l:O.y)+k.sy,u=null!=w?w*s:C.x,f=(null!=M?M*l:C.y)+k.ty,m=i*(1-S)+u*S,g=r,_=i*S+u*(1-S),v=f),a.setShape({x1:i,y1:r,x2:u,y2:f,cpx1:m,cpy1:g,cpx2:_,cpy2:v}),a.useStyle(b.getItemStyle()),a.style.fill){case"source":a.style.fill=e.node1.getVisual("color"),a.style.decal=e.node1.getVisual("style").decal;break;case"target":a.style.fill=e.node2.getVisual("color"),a.style.decal=e.node2.getVisual("style").decal;break;case"gradient":var I=e.node1.getVisual("color"),D=e.node2.getVisual("color");Object(p["C"])(I)&&Object(p["C"])(D)&&(a.style.fill=new je["a"](0,0,+("horizontal"===h),+("vertical"===h),[{color:I,offset:0},{color:D,offset:1}]))}var L=y.getModel("emphasis");Object(Ie["I"])(a,y,"lineStyle",(function(t){return t.getItemStyle()})),o.add(a),d.setItemGraphicEl(e.dataIndex,a);var R=L.get("focus");Object(Ie["J"])(a,"adjacency"===R?e.getAdjacentDataIndices():R,L.get("blurScope"),L.get("disabled")),Object(c["a"])(a).dataType="edge"})),i.eachNode((function(e){var a=e.getLayout(),n=e.getModel(),i=n.get("localX"),r=n.get("localY"),d=n.getModel("emphasis"),h=new De["a"]({shape:{x:null!=i?i*s:a.x,y:null!=r?r*l:a.y,width:a.dx,height:a.dy},style:n.getModel("itemStyle").getItemStyle(),z2:10});Object(m["g"])(h,Object(m["e"])(n),{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),Object(Ie["I"])(h,n),o.add(h),u.setItemGraphicEl(e.dataIndex,h),Object(c["a"])(h).dataType="node";var p=d.get("focus");Object(Ie["J"])(h,"adjacency"===p?e.getAdjacentDataIndices():p,d.get("blurScope"),d.get("disabled"))})),u.eachItemGraphicEl((function(e,i){var o=u.getItemModel(i);o.get("draggable")&&(e.drift=function(e,o){n._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){n._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(Us(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(fn["a"]);function Us(t,e,a){var n=new De["a"]({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return l["c"](n,{shape:{width:t.width+20}},e,a),n}var zs=Ys,Vs=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.getInitialData=function(t,e){var a=t.edges||t.links,n=t.data||t.nodes,i=t.levels;this.levelModels=[];for(var o=this.levelModels,r=0;r<i.length;r++)null!=i[r].depth&&i[r].depth>=0&&(o[i[r].depth]=new Mn["a"](i[r],this,e));if(n&&a){var s=sr(n,a,this,!0,l);return s.data}function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var a=t.parentModel,n=a.getData().getItemLayout(e);if(n){var i=n.depth,o=a.levelModels[i];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var a=t.parentModel,n=a.getGraph().getEdgeByIndex(e),i=n.node1.getLayout();if(i){var o=i.depth,r=a.levelModels[o];r&&(t.parentModel=r)}return t}))}},e.prototype.setNodePosition=function(t,e){var a=this.option.data||this.option.nodes,n=a[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,a){function n(t){return isNaN(t)||null==t}if("edge"===a){var i=this.getDataParams(t,a),o=i.data,r=i.value,s=o.source+" -- "+o.target;return Object(bn["c"])("nameValue",{name:s,value:r,noValue:n(r)})}var l=this.getGraph().getNodeByIndex(t),c=l.getLayout().value,u=this.getDataParams(t,a).data.name;return Object(bn["c"])("nameValue",{name:null!=u?u+"":null,value:c,noValue:n(c)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,a){var n=t.prototype.getDataParams.call(this,e,a);if(null==n.value&&"node"===a){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(vn["b"]),Hs=Vs;function Gs(t,e){t.eachSeriesByType("sankey",(function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=Ws(t,e);t.layoutInfo=i;var o=i.width,r=i.height,s=t.getGraph(),l=s.nodes,c=s.edges;Zs(l);var u=p["n"](l,(function(t){return 0===t.getLayout().value})),d=0!==u.length?0:t.get("layoutIterations"),h=t.get("orient"),f=t.get("nodeAlign");Ks(l,c,a,n,o,r,d,h,f)}))}function Ws(t,e){return Fn["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Ks(t,e,a,n,i,o,r,s,l){qs(t,e,a,i,o,s,l),el(t,e,o,i,n,r,s),fl(t,s)}function Zs(t){p["k"](t,(function(t){var e=hl(t.outEdges,dl),a=hl(t.inEdges,dl),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)}))}function qs(t,e,a,n,i,o,r){for(var s=[],l=[],c=[],u=[],d=0,h=0;h<e.length;h++)s[h]=1;for(h=0;h<t.length;h++)l[h]=t[h].inEdges.length,0===l[h]&&c.push(t[h]);var p=-1;while(c.length){for(var f=0;f<c.length;f++){var m=c[f],g=m.hostGraph.data.getRawDataItem(m.dataIndex),_=null!=g.depth&&g.depth>=0;_&&g.depth>p&&(p=g.depth),m.setLayout({depth:_?g.depth:d},!0),"vertical"===o?m.setLayout({dy:a},!0):m.setLayout({dx:a},!0);for(var v=0;v<m.outEdges.length;v++){var y=m.outEdges[v],b=e.indexOf(y);s[b]=0;var S=y.node2,O=t.indexOf(S);0===--l[O]&&u.indexOf(S)<0&&u.push(S)}}++d,c=u,u=[]}for(h=0;h<s.length;h++)if(1===s[h])throw new Error("Sankey is a DAG, the original data has cycle!");var T=p>d-1?p:d-1;r&&"left"!==r&&Qs(t,r,o,T);var A="vertical"===o?(i-a)/T:(n-a)/T;tl(t,A,o)}function Xs(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function Qs(t,e,a,n){if("right"===e){var i=[],o=t,r=0;while(o.length){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:r},!0);for(var c=0;c<l.inEdges.length;c++){var u=l.inEdges[c];i.indexOf(u.node1)<0&&i.push(u.node1)}}o=i,i=[],++r}p["k"](t,(function(t){Xs(t)||t.setLayout({depth:Math.max(0,n-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&Js(t,n)}function Js(t,e){p["k"](t,(function(t){Xs(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function tl(t,e,a){p["k"](t,(function(t){var n=t.getLayout().depth*e;"vertical"===a?t.setLayout({y:n},!0):t.setLayout({x:n},!0)}))}function el(t,e,a,n,i,o,r){var s=al(t,r);nl(s,e,a,n,i,r),il(s,i,a,n,r);for(var l=1;o>0;o--)l*=.99,ol(s,l,r),il(s,i,a,n,r),pl(s,l,r),il(s,i,a,n,r)}function al(t,e){var a=[],n="vertical"===e?"y":"x",i=Object(r["j"])(t,(function(t){return t.getLayout()[n]}));return i.keys.sort((function(t,e){return t-e})),p["k"](i.keys,(function(t){a.push(i.buckets.get(t))})),a}function nl(t,e,a,n,i,o){var r=1/0;p["k"](t,(function(t){var e=t.length,s=0;p["k"](t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(n-(e-1)*i)/s:(a-(e-1)*i)/s;l<r&&(r=l)})),p["k"](t,(function(t){p["k"](t,(function(t,e){var a=t.getLayout().value*r;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:a},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:a},!0))}))})),p["k"](e,(function(t){var e=+t.getValue()*r;t.setLayout({dy:e},!0)}))}function il(t,e,a,n,i){var o="vertical"===i?"x":"y";p["k"](t,(function(t){var r,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var c=0,u=t.length,d="vertical"===i?"dx":"dy",h=0;h<u;h++)s=t[h],l=c-s.getLayout()[o],l>0&&(r=s.getLayout()[o]+l,"vertical"===i?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),c=s.getLayout()[o]+s.getLayout()[d]+e;var p="vertical"===i?n:a;if(l=c-e-p,l>0){r=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:r},!0):s.setLayout({y:r},!0),c=r;for(h=u-2;h>=0;--h)s=t[h],l=s.getLayout()[o]+s.getLayout()[d]+e-c,l>0&&(r=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),c=s.getLayout()[o]}}))}function ol(t,e,a){p["k"](t.slice().reverse(),(function(t){p["k"](t,(function(t){if(t.outEdges.length){var n=hl(t.outEdges,rl,a)/hl(t.outEdges,dl);if(isNaN(n)){var i=t.outEdges.length;n=i?hl(t.outEdges,sl,a)/i:0}if("vertical"===a){var o=t.getLayout().x+(n-ul(t,a))*e;t.setLayout({x:o},!0)}else{var r=t.getLayout().y+(n-ul(t,a))*e;t.setLayout({y:r},!0)}}}))}))}function rl(t,e){return ul(t.node2,e)*t.getValue()}function sl(t,e){return ul(t.node2,e)}function ll(t,e){return ul(t.node1,e)*t.getValue()}function cl(t,e){return ul(t.node1,e)}function ul(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function dl(t){return t.getValue()}function hl(t,e,a){var n=0,i=t.length,o=-1;while(++o<i){var r=+e(t[o],a);isNaN(r)||(n+=r)}return n}function pl(t,e,a){p["k"](t,(function(t){p["k"](t,(function(t){if(t.inEdges.length){var n=hl(t.inEdges,ll,a)/hl(t.inEdges,dl);if(isNaN(n)){var i=t.inEdges.length;n=i?hl(t.inEdges,cl,a)/i:0}if("vertical"===a){var o=t.getLayout().x+(n-ul(t,a))*e;t.setLayout({x:o},!0)}else{var r=t.getLayout().y+(n-ul(t,a))*e;t.setLayout({y:r},!0)}}}))}))}function fl(t,e){var a="vertical"===e?"x":"y";p["k"](t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[a]-e.node2.getLayout()[a]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[a]-e.node1.getLayout()[a]}))})),p["k"](t,(function(t){var e=0,a=0;p["k"](t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),p["k"](t.inEdges,(function(t){t.setLayout({ty:a},!0),a+=t.getLayout().dy}))}))}var ml=a("5f14");function gl(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),a=e.nodes;if(a.length){var n=1/0,i=-1/0;p["k"](a,(function(t){var e=t.getLayout().value;e<n&&(n=e),e>i&&(i=e)})),p["k"](a,(function(e){var a=new ml["a"]({type:"color",mappingMethod:"linear",dataExtent:[n,i],visual:t.get("color")}),o=a.mapValueToVisual(e.getLayout().value),r=e.getModel().get(["itemStyle","color"]);null!=r?(e.setVisual("color",r),e.setVisual("style",{fill:r})):(e.setVisual("color",o),e.setVisual("style",{fill:o}))}))}}))}function _l(t){t.registerChartView(zs),t.registerSeriesModel(Hs),t.registerLayout(Gs),t.registerVisual(gl),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}var vl=a("2f45"),yl=function(){function t(){}return t.prototype.getInitialData=function(t,e){var a,n,i=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),r=i.get("type"),s=o.get("type");"category"===r?(t.layout="horizontal",a=i.getOrdinalMeta(),n=!0):"category"===s?(t.layout="vertical",a=o.getOrdinalMeta(),n=!0):t.layout=t.layout||"horizontal";var l=["x","y"],c="horizontal"===t.layout?0:1,u=this._baseAxisDim=l[c],d=l[1-c],h=[i,o],f=h[c].get("type"),m=h[1-c].get("type"),g=t.data;if(g&&n){var _=[];p["k"](g,(function(t,e){var a;p["t"](t)?(a=t.slice(),t.unshift(e)):p["t"](t.value)?(a=p["m"]({},t),a.value=a.value.slice(),t.value.unshift(e)):a=t,_.push(a)})),t.data=_}var v=this.defaultValueDimensions,y=[{name:u,type:Object(vl["a"])(f),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Object(vl["a"])(m),dimsDef:v.slice()}];return Object(_n["a"])(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:p["h"](yn["c"],y,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),bl=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],a.visualDrawType="stroke",a}return Object(be["a"])(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(vn["b"]);Object(p["K"])(bl,yl,!0);var Sl=bl,Ol=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.render=function(t,e,a){var n=t.getData(),i=this.group,o=this._data;this._data||i.removeAll();var r="horizontal"===t.get("layout")?1:0;n.diff(o).add((function(t){if(n.hasValue(t)){var e=n.getItemLayout(t),a=xl(e,n,t,r,!0);n.setItemGraphicEl(t,a),i.add(a)}})).update((function(t,e){var a=o.getItemGraphicEl(e);if(n.hasValue(t)){var s=n.getItemLayout(t);a?(Object(l["g"])(a),Cl(s,a,n,t)):a=xl(s,n,t,r),i.add(a),n.setItemGraphicEl(t,a)}else i.remove(a)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=n},e.prototype.remove=function(t){var e=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(fn["a"]),Tl=function(){function t(){}return t}(),Al=function(t){function e(e){var a=t.call(this,e)||this;return a.type="boxplotBoxPath",a}return Object(be["a"])(e,t),e.prototype.getDefaultShape=function(){return new Tl},e.prototype.buildPath=function(t,e){var a=e.points,n=0;for(t.moveTo(a[n][0],a[n][1]),n++;n<4;n++)t.lineTo(a[n][0],a[n][1]);for(t.closePath();n<a.length;n++)t.moveTo(a[n][0],a[n][1]),n++,t.lineTo(a[n][0],a[n][1])},e}(k["b"]);function xl(t,e,a,n,i){var o=t.ends,r=new Al({shape:{points:i?El(o,n,t):o}});return Cl(t,r,e,a,i),r}function Cl(t,e,a,n,i){var o=a.hostModel,r=ke[i?"initProps":"updateProps"];r(e,{shape:{points:t.ends}},o,n),e.useStyle(a.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=a.getItemModel(n),l=s.getModel("emphasis");Object(Ie["I"])(e,s),Object(Ie["J"])(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function El(t,e,a){return p["H"](t,(function(t){return t=t.slice(),t[e]=a.initBaseline,t}))}var wl=Ol;function Ml(t,e){}var kl=p["k"];function Il(t){var e=Dl(t);kl(e,(function(t){var e=t.seriesModels;e.length&&(Ll(t),kl(e,(function(e,a){Rl(e,t.boxOffsetList[a],t.boxWidthList[a])})))}))}function Dl(t){var e=[],a=[];return t.eachSeriesByType("boxplot",(function(t){var n=t.getBaseAxis(),i=p["r"](a,n);i<0&&(i=a.length,a[i]=n,e[i]={axis:n,seriesModels:[]}),e[i].seriesModels.push(t)})),e}function Ll(t){var e,a=t.axis,n=t.seriesModels,i=n.length,o=t.boxWidthList=[],r=t.boxOffsetList=[],s=[];if("category"===a.type)e=a.getBandWidth();else{var l=0;kl(n,(function(t){l=Math.max(l,t.getData().count())}));var c=a.getExtent();e=Math.abs(c[1]-c[0])/l}kl(n,(function(t){var a=t.get("boxWidth");p["t"](a)||(a=[a,a]),s.push([Object(u["o"])(a[0],e)||0,Object(u["o"])(a[1],e)||0])}));var d=.8*e-2,h=d/i*.3,f=(d-h*(i-1))/i,m=f/2-d/2;kl(n,(function(t,e){r.push(m),m+=h+f,o.push(Math.min(Math.max(f,s[e][0]),s[e][1]))}))}function Rl(t,e,a){var n=t.coordinateSystem,i=t.getData(),o=a/2,r="horizontal"===t.get("layout")?0:1,s=1-r,l=["x","y"],c=i.mapDimension(l[r]),u=i.mapDimensionsAll(l[s]);if(!(null==c||u.length<5))for(var d=0;d<i.count();d++){var h=i.get(c,d),p=y(h,u[2],d),f=y(h,u[0],d),m=y(h,u[1],d),g=y(h,u[3],d),_=y(h,u[4],d),v=[];b(v,m,!1),b(v,g,!0),v.push(f,m,_,g),S(v,f),S(v,_),S(v,p),i.setItemLayout(d,{initBaseline:p[s],ends:v})}function y(t,a,o){var l,c=i.get(a,o),u=[];return u[r]=t,u[s]=c,isNaN(t)||isNaN(c)?l=[NaN,NaN]:(l=n.dataToPoint(u),l[r]+=e),l}function b(t,e,a){var n=e.slice(),i=e.slice();n[r]+=o,i[r]-=o,a?t.push(n,i):t.push(i,n)}function S(t,e){var a=e.slice(),n=e.slice();a[r]-=o,n[r]+=o,t.push(a,n)}}function Nl(t,e){e=e||{};for(var a=[],n=[],i=e.boundIQR,o="none"===i||0===i,r=0;r<t.length;r++){var s=Object(u["c"])(t[r].slice()),l=Object(u["p"])(s,.25),c=Object(u["p"])(s,.5),d=Object(u["p"])(s,.75),h=s[0],f=s[s.length-1],m=(null==i?1.5:i)*(d-l),g=o?h:Math.max(h,l-m),_=o?f:Math.min(f,d+m),v=e.itemNameFormatter,y=Object(p["w"])(v)?v({value:r}):Object(p["C"])(v)?v.replace("{value}",r+""):r+"";a.push([y,g,l,c,d,_]);for(var b=0;b<s.length;b++){var S=s[b];if(S<g||S>_){var O=[y,S];n.push(O)}}}return{boxData:a,outliers:n}}var Pl=a("edae"),jl=a("07fd"),$l={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==jl["c"]){var a="";0,Object(Pl["c"])(a)}var n=Nl(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function Fl(t){t.registerSeriesModel(Sl),t.registerChartView(wl),t.registerVisual(Ml),t.registerLayout(Il),t.registerTransform($l)}var Bl=a("b0afc"),Yl=["color","borderColor"],Ul=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.render=function(t,e,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,a,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){ke["traverseElements"](this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),a=this._data,n=this.group,i=e.getLayout("isSimpleBox"),o=t.get("clip",!0),r=t.coordinateSystem,s=r.getArea&&r.getArea();this._data||n.removeAll(),e.diff(a).add((function(a){if(e.hasValue(a)){var r=e.getItemLayout(a);if(o&&Gl(s,r))return;var c=Hl(r,a,!0);l["c"](c,{shape:{points:r.ends}},t,a),Wl(c,e,a,i),n.add(c),e.setItemGraphicEl(a,c)}})).update((function(r,c){var u=a.getItemGraphicEl(c);if(e.hasValue(r)){var d=e.getItemLayout(r);o&&Gl(s,d)?n.remove(u):(u?(l["h"](u,{shape:{points:d.ends}},t,r),Object(l["g"])(u)):u=Hl(d,r),Wl(u,e,r,i),n.add(u),e.setItemGraphicEl(r,u))}else n.remove(u)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&n.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),Xl(t,this.group);var e=t.get("clip",!0)?Object(Bl["a"])(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){var a,n=e.getData(),i=n.getLayout("isSimpleBox");while(null!=(a=t.next())){var o=n.getItemLayout(a),r=Hl(o,a);Wl(r,n,a,i),r.incremental=!0,this.group.add(r),this._progressiveEls.push(r)}},e.prototype._incrementalRenderLarge=function(t,e){Xl(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(fn["a"]),zl=function(){function t(){}return t}(),Vl=function(t){function e(e){var a=t.call(this,e)||this;return a.type="normalCandlestickBox",a}return Object(be["a"])(e,t),e.prototype.getDefaultShape=function(){return new zl},e.prototype.buildPath=function(t,e){var a=e.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(k["b"]);function Hl(t,e,a){var n=t.ends;return new Vl({shape:{points:a?Kl(n,t):n},z2:100})}function Gl(t,e){for(var a=!0,n=0;n<e.ends.length;n++)if(t.contain(e.ends[n][0],e.ends[n][1])){a=!1;break}return a}function Wl(t,e,a,n){var i=e.getItemModel(a);t.useStyle(e.getItemVisual(a,"style")),t.style.strokeNoScale=!0,t.__simpleBox=n,Object(Ie["I"])(t,i)}function Kl(t,e){return p["H"](t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var Zl=function(){function t(){}return t}(),ql=function(t){function e(e){var a=t.call(this,e)||this;return a.type="largeCandlestickBox",a}return Object(be["a"])(e,t),e.prototype.getDefaultShape=function(){return new Zl},e.prototype.buildPath=function(t,e){for(var a=e.points,n=0;n<a.length;)if(this.__sign===a[n++]){var i=a[n++];t.moveTo(i,a[n++]),t.lineTo(i,a[n++])}else n+=3},e}(k["b"]);function Xl(t,e,a,n){var i=t.getData(),o=i.getLayout("largePoints"),r=new ql({shape:{points:o},__sign:1});e.add(r);var s=new ql({shape:{points:o},__sign:-1});e.add(s),Ql(1,r,t,i),Ql(-1,s,t,i),n&&(r.incremental=!0,s.incremental=!0),a&&a.push(r,s)}function Ql(t,e,a,n){var i=a.get(["itemStyle",t>0?"borderColor":"borderColor0"])||a.get(["itemStyle",t>0?"color":"color0"]),o=a.getModel("itemStyle").getItemStyle(Yl);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var Jl=Ul,tc=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],a}return Object(be["a"])(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,a){var n=e.getItemLayout(t);return n&&a.rect(n.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(vn["b"]);Object(p["K"])(tc,yl,!0);var ec=tc;function ac(t){t&&p["t"](t.series)&&p["k"](t.series,(function(t){p["A"](t)&&"k"===t.type&&(t.type="candlestick")}))}var nc=a("cccd"),ic=["itemStyle","borderColor"],oc=["itemStyle","borderColor0"],rc=["itemStyle","color"],sc=["itemStyle","color0"],lc={seriesType:"candlestick",plan:Object(nc["a"])(),performRawSeries:!0,reset:function(t,e){function a(t,e){return e.get(t>0?rc:sc)}function n(t,e){return e.get(t>0?ic:oc)}if(!e.isSeriesFiltered(t)){var i=t.pipelineContext.large;return!i&&{progress:function(t,e){var i;while(null!=(i=t.next())){var o=e.getItemModel(i),r=e.getItemLayout(i).sign,s=o.getItemStyle();s.fill=a(r,o),s.stroke=n(r,o)||s.fill;var l=e.ensureUniqueItemVisual(i,"style");Object(p["m"])(l,s)}}}}}},cc=lc,uc=a("f658"),dc={seriesType:"candlestick",plan:Object(nc["a"])(),reset:function(t){var e=t.coordinateSystem,a=t.getData(),n=pc(t,a),i=0,o=1,r=["x","y"],s=a.getDimensionIndex(a.mapDimension(r[i])),l=Object(p["H"])(a.mapDimensionsAll(r[o]),a.getDimensionIndex,a),c=l[0],u=l[1],d=l[2],h=l[3];if(a.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(s<0||l.length<4))return{progress:t.pipelineContext.large?m:f};function f(t,a){var r,l=a.getStore();while(null!=(r=t.next())){var p=l.get(s,r),f=l.get(c,r),m=l.get(u,r),g=l.get(d,r),_=l.get(h,r),v=Math.min(f,m),y=Math.max(f,m),b=x(v,p),S=x(y,p),O=x(g,p),T=x(_,p),A=[];C(A,S,0),C(A,b,1),A.push(w(T),w(S),w(O),w(b)),a.setItemLayout(r,{sign:hc(l,r,f,m,u),initBaseline:f>m?S[o]:b[o],ends:A,brushRect:E(g,_,p)})}function x(t,a){var n=[];return n[i]=a,n[o]=t,isNaN(a)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function C(t,e,a){var o=e.slice(),r=e.slice();o[i]=Object(ke["subPixelOptimize"])(o[i]+n/2,1,!1),r[i]=Object(ke["subPixelOptimize"])(r[i]-n/2,1,!0),a?t.push(o,r):t.push(r,o)}function E(t,e,a){var r=x(t,a),s=x(e,a);return r[i]-=n/2,s[i]-=n/2,{x:r[0],y:r[1],width:o?n:s[0]-r[0],height:o?s[1]-r[1]:n}}function w(t){return t[i]=Object(ke["subPixelOptimize"])(t[i],1),t}}function m(t,a){var n,r,l=Object(uc["a"])(4*t.count),p=0,f=[],m=[],g=a.getStore();while(null!=(r=t.next())){var _=g.get(s,r),v=g.get(c,r),y=g.get(u,r),b=g.get(d,r),S=g.get(h,r);isNaN(_)||isNaN(b)||isNaN(S)?(l[p++]=NaN,p+=3):(l[p++]=hc(g,r,v,y,u),f[i]=_,f[o]=b,n=e.dataToPoint(f,null,m),l[p++]=n?n[0]:NaN,l[p++]=n?n[1]:NaN,f[o]=S,n=e.dataToPoint(f,null,m),l[p++]=n?n[1]:NaN)}a.setLayout("largePoints",l)}}};function hc(t,e,a,n,i){var o;return o=a>n?-1:a<n?1:e>0?t.get(i,e-1)<=n?1:-1:1,o}function pc(t,e){var a,n=t.getBaseAxis(),i="category"===n.type?n.getBandWidth():(a=n.getExtent(),Math.abs(a[1]-a[0])/e.count()),o=Object(u["o"])(Object(p["P"])(t.get("barMaxWidth"),i),i),r=Object(u["o"])(Object(p["P"])(t.get("barMinWidth"),1),i),s=t.get("barWidth");return null!=s?Object(u["o"])(s,i):Math.max(Math.min(i/2,o),r)}var fc=dc;function mc(t){t.registerChartView(Jl),t.registerSeriesModel(ec),t.registerPreprocessor(ac),t.registerVisual(cc),t.registerLayout(fc)}function gc(t,e){var a=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?a:null,fill:"fill"===e.brushType?a:null}})}))}var _c=function(t){function e(e,a){var n=t.call(this)||this,i=new ni["a"](e,a),o=new Ee["a"];return n.add(i),n.add(o),n.updateData(e,a),n}return Object(be["a"])(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,a=t.color,n=t.rippleNumber,i=this.childAt(1),o=0;o<n;o++){var r=Object(Sn["a"])(e,-1,-1,2,2,a);r.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/n*t.period+t.effectOffset;r.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),r.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),i.add(r)}gc(i,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,a=this.childAt(1),n=["symbolType","period","rippleScale","rippleNumber"],i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}gc(a,t)},e.prototype.highlight=function(){Object(Ie["r"])(this)},e.prototype.downplay=function(){Object(Ie["C"])(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var a=this,n=t.hostModel;this.childAt(0).updateData(t,e);var i=this.childAt(1),o=t.getItemModel(e),r=t.getItemVisual(e,"symbol"),s=Object(Sn["c"])(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),c=l&&l.fill,u=o.getModel("emphasis");i.setScale(s),i.traverse((function(t){t.setStyle("fill",c)}));var d=Object(Sn["b"])(t.getItemVisual(e,"symbolOffset"),s);d&&(i.x=d[0],i.y=d[1]);var h=t.getItemVisual(e,"symbolRotate");i.rotation=(h||0)*Math.PI/180||0;var p={};p.showEffectOn=n.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=n.getShallow("z")||0,p.zlevel=n.getShallow("zlevel")||0,p.symbolType=r,p.color=c,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&a.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&a.stopEffectAnimation()}),this._effectCfg=p,Object(Ie["J"])(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Ee["a"]),vc=_c,yc=a("87c3"),bc=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.init=function(){this._symbolDraw=new vo["a"](vc)},e.prototype.render=function(t,e,a){var n=t.getData(),i=this._symbolDraw;i.updateData(n,{clipShape:this._getClipShape(t)}),this.group.add(i.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,a=e&&e.getArea&&e.getArea();return t.get("clip",!0)?a:null},e.prototype.updateTransform=function(t,e,a){var n=t.getData();this.group.dirty();var i=Object(yc["a"])("").reset(t,e,a);i.progress&&i.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=Ne["a"](e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(fn["a"]),Sc=bc,Oc=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.hasSymbolVisual=!0,a}return Object(be["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(rr["a"])(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,a){return a.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(vn["b"]),Tc=Oc;function Ac(t){t.registerChartView(Sc),t.registerSeriesModel(Tc),t.registerLayout(Object(yc["a"])("effectScatter"))}var xc=function(t){function e(e,a,n){var i=t.call(this)||this;return i.add(i.createLine(e,a,n)),i._updateEffectSymbol(e,a),i}return Object(be["a"])(e,t),e.prototype.createLine=function(t,e,a){return new Io(t,e,a)},e.prototype._updateEffectSymbol=function(t,e){var a=t.getItemModel(e),n=a.getModel("effect"),i=n.get("symbolSize"),o=n.get("symbol");p["t"](i)||(i=[i,i]);var r=t.getItemVisual(e,"style"),s=n.get("color")||r&&r.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=Object(Sn["a"])(o,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(n.getItemStyle(["color"])),l.scaleX=i[0],l.scaleY=i[1],l.setColor(s),this._symbolType=o,this._symbolScale=i,this._updateEffectAnimation(t,n,e))},e.prototype._updateEffectAnimation=function(t,e,a){var n=this.childAt(1);if(n){var i=t.getItemLayout(a),o=1e3*e.get("period"),r=e.get("loop"),s=e.get("constantSpeed"),l=p["O"](e.get("delay"),(function(e){return e/t.count()*o/3}));if(n.ignore=!0,this._updateAnimationPoints(n,i),s>0&&(o=this._getLineLength(n)/s*1e3),o!==this._period||r!==this._loop){n.stopAnimation();var c=void 0;c=p["w"](l)?l(a):l,n.__t>0&&(c=-o*n.__t),this._animateSymbol(n,o,c,r)}this._period=o,this._loop=r}},e.prototype._animateSymbol=function(t,e,a,n){if(e>0){t.__t=0;var i=this,o=t.animate("",n).when(e,{__t:1}).delay(a).during((function(){i._updateSymbolPosition(t)}));n||o.done((function(){i.remove(t)})),o.start()}},e.prototype._getLineLength=function(t){return da["f"](t.__p1,t.__cp1)+da["f"](t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,a){this.childAt(0).updateData(t,e,a),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,a=t.__p2,n=t.__cp1,i=t.__t,o=[t.x,t.y],r=o.slice(),s=$o["h"],l=$o["i"];o[0]=s(e[0],n[0],a[0],i),o[1]=s(e[1],n[1],a[1],i);var c=l(e[0],n[0],a[0],i),u=l(e[1],n[1],a[1],i);t.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*da["f"](r,o),1===i&&(o[0]=r[0]+(o[0]-r[0])/2,o[1]=r[1]+(o[1]-r[1])/2)):1===t.__lastT?t.scaleY=2*da["f"](e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var a=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,a,e)},e}(Ee["a"]),Cc=xc,Ec=function(t){function e(e,a,n){var i=t.call(this)||this;return i._createPolyline(e,a,n),i}return Object(be["a"])(e,t),e.prototype._createPolyline=function(t,e,a){var n=t.getItemLayout(e),i=new Me["a"]({shape:{points:n}});this.add(i),this._updateCommonStl(t,e,a)},e.prototype.updateData=function(t,e,a){var n=t.hostModel,i=this.childAt(0),o={shape:{points:t.getItemLayout(e)}};l["h"](i,o,n,e),this._updateCommonStl(t,e,a)},e.prototype._updateCommonStl=function(t,e,a){var n=this.childAt(0),i=t.getItemModel(e),o=a&&a.emphasisLineStyle,r=a&&a.focus,s=a&&a.blurScope,l=a&&a.emphasisDisabled;if(!a||t.hasItemOption){var c=i.getModel("emphasis");o=c.getModel("lineStyle").getLineStyle(),l=c.get("disabled"),r=c.get("focus"),s=c.get("blurScope")}n.useStyle(t.getItemVisual(e,"style")),n.style.fill=null,n.style.strokeNoScale=!0;var u=n.ensureState("emphasis");u.style=o,Object(Ie["J"])(this,r,s,l)},e.prototype.updateLayout=function(t,e){var a=this.childAt(0);a.setShape("points",t.getItemLayout(e))},e}(Ee["a"]),wc=Ec,Mc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return Object(be["a"])(e,t),e.prototype.createLine=function(t,e,a){return new wc(t,e,a)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var a=[0],n=0,i=1;i<e.length;i++){var o=e[i-1],r=e[i];n+=da["f"](o,r),a.push(n)}if(0!==n){for(i=0;i<a.length;i++)a[i]/=n;this._offsets=a,this._length=n}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t,a=this._points,n=this._offsets,i=a.length;if(n){var o,r=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(r+1,i-1);for(o=s;o>=0;o--)if(n[o]<=e)break;o=Math.min(o,i-2)}else{for(o=r;o<i;o++)if(n[o]>e)break;o=Math.min(o-1,i-2)}var l=(e-n[o])/(n[o+1]-n[o]),c=a[o],u=a[o+1];t.x=c[0]*(1-l)+l*u[0],t.y=c[1]*(1-l)+l*u[1];var d=u[0]-c[0],h=u[1]-c[1];t.rotation=-Math.atan2(h,d)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(Cc),kc=Mc,Ic=a("9680"),Dc=a("68ab"),Lc=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),Rc=function(t){function e(e){var a=t.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return Object(be["a"])(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Lc},e.prototype.buildPath=function(t,e){var a,n=e.segs,i=e.curveness;if(e.polyline)for(a=this._off;a<n.length;){var o=n[a++];if(o>0){t.moveTo(n[a++],n[a++]);for(var r=1;r<o;r++)t.lineTo(n[a++],n[a++])}}else for(a=this._off;a<n.length;){var s=n[a++],l=n[a++],c=n[a++],u=n[a++];if(t.moveTo(s,l),i>0){var d=(s+c)/2-(l-u)*i,h=(l+u)/2-(c-s)*i;t.quadraticCurveTo(d,h,c,u)}else t.lineTo(c,u)}this.incremental&&(this._off=a,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var a=this.shape,n=a.segs,i=a.curveness,o=this.style.lineWidth;if(a.polyline)for(var r=0,s=0;s<n.length;){var l=n[s++];if(l>0)for(var c=n[s++],u=n[s++],d=1;d<l;d++){var h=n[s++],p=n[s++];if(Ic["a"](c,u,h,p,o,t,e))return r}r++}else for(r=0,s=0;s<n.length;){c=n[s++],u=n[s++],h=n[s++],p=n[s++];if(i>0){var f=(c+h)/2-(u-p)*i,m=(u+p)/2-(h-c)*i;if(Dc["a"](c,u,f,m,h,p,o,t,e))return r}else if(Ic["a"](c,u,h,p,o,t,e))return r;r++}return-1},e.prototype.contain=function(t,e){var a=this.transformCoordToLocal(t,e),n=this.getBoundingRect();if(t=a[0],e=a[1],n.contain(t,e)){var i=this.hoverDataIdx=this.findDataIndex(t,e);return i>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,a=e.segs,n=1/0,i=1/0,o=-1/0,r=-1/0,l=0;l<a.length;){var c=a[l++],u=a[l++];n=Math.min(c,n),o=Math.max(c,o),i=Math.min(u,i),r=Math.max(u,r)}t=this._rect=new s["a"](n,i,o,r)}return t},e}(k["b"]),Nc=function(){function t(){this.group=new Ee["a"]}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var a=this._newAdded[0],n=e.getLayout("linesPoints"),i=a&&a.shape.segs;if(i&&i.length<2e4){var o=i.length,r=new Float32Array(o+n.length);r.set(i),r.set(n,o),a.setShape({segs:r})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:n}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new Rc({cursor:"default"});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,a){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=Object(c["a"])(t);o.seriesIndex=n.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var a=t.hoverDataIdx;a>0&&(o.dataIndex=a+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),Pc=Nc,jc={seriesType:"lines",plan:Object(nc["a"])(),reset:function(t){var e=t.coordinateSystem;if(e){var a=t.get("polyline"),n=t.pipelineContext.large;return{progress:function(i,o){var r=[];if(n){var s=void 0,l=i.end-i.start;if(a){for(var c=0,u=i.start;u<i.end;u++)c+=t.getLineCoordsCount(u);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);var d=0,h=[];for(u=i.start;u<i.end;u++){var p=t.getLineCoords(u,r);a&&(s[d++]=p);for(var f=0;f<p;f++)h=e.dataToPoint(r[f],!1,h),s[d++]=h[0],s[d++]=h[1]}o.setLayout("linesPoints",s)}else for(u=i.start;u<i.end;u++){var m=o.getItemModel(u),g=(p=t.getLineCoords(u,r),[]);if(a)for(var _=0;_<p;_++)g.push(e.dataToPoint(r[_]));else{g[0]=e.dataToPoint(r[0]),g[1]=e.dataToPoint(r[1]);var v=m.get(["lineStyle","curveness"]);+v&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*v,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*v])}o.setItemLayout(u,g)}}}}}},$c=jc,Fc=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.render=function(t,e,a){var n=t.getData(),i=this._updateLineDraw(n,t),o=t.get("zlevel"),r=t.get(["effect","trailLength"]),s=a.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&r>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(r/10+.9,1),0)})),i.updateData(n);var c=t.get("clip",!0)&&Object(Bl["a"])(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,a){var n=t.getData(),i=this._updateLineDraw(n,t);i.incrementalPrepareUpdate(n),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,e,a){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,a){var n=t.getData(),i=t.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=$c.reset(t,e,a);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,e){var a=this._lineDraw,n=this._showEffect(e),i=!!e.get("polyline"),o=e.pipelineContext,r=o.large;return a&&n===this._hasEffet&&i===this._isPolyline&&r===this._isLargeDraw||(a&&a.remove(),a=this._lineDraw=r?new Pc:new jo(i?n?kc:wc:n?Cc:Io),this._hasEffet=n,this._isPolyline=i,this._isLargeDraw=r),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),a="svg"===e.painter.getType();a||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(fn["a"]),Bc=Fc,Yc="undefined"===typeof Uint32Array?Array:Uint32Array,Uc="undefined"===typeof Float64Array?Array:Float64Array;function zc(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(p["H"])(e,(function(t){var e=[t[0].coord,t[1].coord],a={coords:e};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),Object(p["J"])([a,t[0],t[1]])})))}var Vc=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.visualStyleAccessPath="lineStyle",a.visualDrawType="stroke",a}return Object(be["a"])(e,t),e.prototype.init=function(e){e.data=e.data||[],zc(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(zc(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(p["e"])(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(p["e"])(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),a=e.option instanceof Array?e.option:e.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[2*t],n=this._flatCoordsOffset[2*t+1],i=0;i<n;i++)e[i]=e[i]||[],e[i][0]=this._flatCoords[a+2*i],e[i][1]=this._flatCoords[a+2*i+1];return n}var o=this._getCoordsFromItemModel(t);for(i=0;i<o.length;i++)e[i]=e[i]||[],e[i][0]=o[i][0],e[i][1]=o[i][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(p["z"])(t[0])){for(var a=t.length,n=new Yc(a),i=new Uc(a),o=0,r=0,s=0,l=0;l<a;){s++;var c=t[l++];n[r++]=o+e,n[r++]=c;for(var u=0;u<c;u++){var d=t[l++],h=t[l++];i[o++]=d,i[o++]=h}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,r),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var a=new qo["a"](["value"],this);return a.hasItemOption=!1,a.initData(t.data,[],(function(t,e,n,i){if(t instanceof Array)return NaN;a.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[i]:o:void 0})),a},e.prototype.formatTooltip=function(t,e,a){var n=this.getData(),i=n.getItemModel(t),o=i.get("name");if(o)return o;var r=i.get("fromName"),s=i.get("toName"),l=[];return null!=r&&l.push(r),null!=s&&l.push(s),Object(bn["c"])("nameValue",{name:l.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(vn["b"]),Hc=Vc;function Gc(t){return t instanceof Array||(t=[t,t]),t}var Wc={seriesType:"lines",reset:function(t){var e=Gc(t.get("symbol")),a=Gc(t.get("symbolSize")),n=t.getData();function i(t,e){var a=t.getItemModel(e),n=Gc(a.getShallow("symbol",!0)),i=Gc(a.getShallow("symbolSize",!0));n[0]&&t.setItemVisual(e,"fromSymbol",n[0]),n[1]&&t.setItemVisual(e,"toSymbol",n[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1])}return n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),{dataEach:n.hasItemOption?i:null}}},Kc=Wc;function Zc(t){t.registerChartView(Bc),t.registerSeriesModel(Hc),t.registerLayout($c),t.registerVisual(Kc)}var qc=256,Xc=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=St["d"].createCanvas();this.canvas=t}return t.prototype.update=function(t,e,a,n,i,o){var r=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext("2d"),h=t.length;u.width=e,u.height=a;for(var p=0;p<h;++p){var f=t[p],m=f[0],g=f[1],_=f[2],v=n(_);d.globalAlpha=v,d.drawImage(r,m-c,g-c)}if(!u.width||!u.height)return u;var y=d.getImageData(0,0,u.width,u.height),b=y.data,S=0,O=b.length,T=this.minOpacity,A=this.maxOpacity,x=A-T;while(S<O){v=b[S+3]/256;var C=4*Math.floor(v*(qc-1));if(v>0){var E=o(v)?s:l;v>0&&(v=v*x+T),b[S++]=E[C],b[S++]=E[C+1],b[S++]=E[C+2],b[S++]=E[C+3]*v*256}else S+=4}return d.putImageData(y,0,0),u},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=St["d"].createCanvas()),e=this.pointSize+this.blurSize,a=2*e;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),t},t.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,r=0;r<256;r++)t[e](r/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},t}(),Qc=Xc,Jc=a("5426");function tu(t,e,a){var n=t[1]-t[0];e=p["H"](e,(function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}}));var i=e.length,o=0;return function(t){var n;for(n=o;n<i;n++){var r=e[n].interval;if(r[0]<=t&&t<=r[1]){o=n;break}}if(n===i)for(n=o-1;n>=0;n--){r=e[n].interval;if(r[0]<=t&&t<=r[1]){o=n;break}}return n>=0&&n<i&&a[n]}}function eu(t,e){var a=t[1]-t[0];return e=[(e[0]-t[0])/a,(e[1]-t[0])/a],function(t){return t>=e[0]&&t<=e[1]}}function au(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var nu=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.render=function(t,e,a){var n;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(a){a===t&&(n=e)}))})),this._progressiveEls=null,this.group.removeAll();var i=t.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):au(i)&&this._renderOnGeo(i,t,n,a)},e.prototype.incrementalPrepareRender=function(t,e,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,a,n){var i=e.coordinateSystem;i&&(au(i)?this.render(e,a,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){ke["traverseElements"](this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,a,n,i){var o,r,s,l,c=t.coordinateSystem,u=Object(Jc["a"])(c,"cartesian2d");if(u){var d=c.getAxis("x"),h=c.getAxis("y");0,o=d.getBandWidth()+.5,r=h.getBandWidth()+.5,s=d.scale.getExtent(),l=h.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),_=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),y=t.get(["itemStyle","borderRadius"]),b=Object(m["e"])(t),S=t.getModel("emphasis"),O=S.get("focus"),T=S.get("blurScope"),A=S.get("disabled"),x=u?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],C=a;C<n;C++){var E=void 0,w=f.getItemVisual(C,"style");if(u){var M=f.get(x[0],C),k=f.get(x[1],C);if(isNaN(f.get(x[2],C))||M<s[0]||M>s[1]||k<l[0]||k>l[1])continue;var I=c.dataToPoint([M,k]);E=new De["a"]({shape:{x:I[0]-o/2,y:I[1]-r/2,width:o,height:r},style:w})}else{if(isNaN(f.get(x[1],C)))continue;E=new De["a"]({z2:1,shape:c.dataToRect([f.get(x[0],C)]).contentShape,style:w})}if(f.hasItemOption){var D=f.getItemModel(C),L=D.getModel("emphasis");g=L.getModel("itemStyle").getItemStyle(),_=D.getModel(["blur","itemStyle"]).getItemStyle(),v=D.getModel(["select","itemStyle"]).getItemStyle(),y=D.get(["itemStyle","borderRadius"]),O=L.get("focus"),T=L.get("blurScope"),A=L.get("disabled"),b=Object(m["e"])(D)}E.shape.r=y;var R=t.getRawValue(C),N="-";R&&null!=R[2]&&(N=R[2]+""),Object(m["g"])(E,b,{labelFetcher:t,labelDataIndex:C,defaultOpacity:w.opacity,defaultText:N}),E.ensureState("emphasis").style=g,E.ensureState("blur").style=_,E.ensureState("select").style=v,Object(Ie["J"])(E,O,T,A),E.incremental=i,i&&(E.states.emphasis.hoverLayer=!0),p.add(E),f.setItemGraphicEl(C,E),this._progressiveEls&&this._progressiveEls.push(E)}},e.prototype._renderOnGeo=function(t,e,a,n){var i=a.targetVisuals.inRange,o=a.targetVisuals.outOfRange,r=e.getData(),s=this._hmLayer||this._hmLayer||new Qc;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),c=t.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),d=Math.max(l.y,0),h=Math.min(l.width+l.x,n.getWidth()),p=Math.min(l.height+l.y,n.getHeight()),f=h-u,m=p-d,g=[r.mapDimension("lng"),r.mapDimension("lat"),r.mapDimension("value")],_=r.mapArray(g,(function(e,a,n){var i=t.dataToPoint([e,a]);return i[0]-=u,i[1]-=d,i.push(n),i})),v=a.getExtent(),y="visualMap.continuous"===a.type?eu(v,a.option.range):tu(v,a.getPieceList(),a.option.selected);s.update(_,f,m,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},y);var b=new I["a"]({style:{width:f,height:m,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e}(fn["a"]),iu=nu,ou=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(rr["a"])(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=or["a"].get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(vn["b"]),ru=ou;function su(t){t.registerChartView(iu),t.registerSeriesModel(ru)}var lu=a("c775"),cu=["itemStyle","borderWidth"],uu=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],du=new Se["a"],hu=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.render=function(t,e,a){var n=this.group,i=t.getData(),o=this._data,r=t.coordinateSystem,s=r.getBaseAxis(),l=s.isHorizontal(),c=r.master.getRect(),u={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:r,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:uu[+l],categoryDim:uu[1-+l]};return i.diff(o).add((function(t){if(i.hasValue(t)){var e=Au(i,t),a=pu(i,t,e,u),o=Eu(i,u,a);i.setItemGraphicEl(t,o),n.add(o),Lu(o,u,a)}})).update((function(t,e){var a=o.getItemGraphicEl(e);if(i.hasValue(t)){var r=Au(i,t),s=pu(i,t,r,u),l=ku(i,s);a&&l!==a.__pictorialShapeStr&&(n.remove(a),i.setItemGraphicEl(t,null),a=null),a?wu(a,u,s):a=Eu(i,u,s,!0),i.setItemGraphicEl(t,a),a.__pictorialSymbolMeta=s,n.add(a),Lu(a,u,s)}else n.remove(a)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&Mu(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=i,this.group},e.prototype.remove=function(t,e){var a=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl((function(e){Mu(n,Object(c["a"])(e).dataIndex,t,e)})):a.removeAll()},e.type="pictorialBar",e}(fn["a"]);function pu(t,e,a,n){var i=t.getItemLayout(e),o=a.get("symbolRepeat"),r=a.get("symbolClip"),s=a.get("symbolPosition")||"start",l=a.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=a.get("symbolPatternSize")||2,d=a.isAnimationEnabled(),h={dataIndex:e,layout:i,itemModel:a,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:r,symbolRepeat:o,symbolRepeatDirection:a.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:d?a:null,hoverScale:d&&a.get(["emphasis","scale"]),z2:a.getShallow("z",!0)||0};fu(a,o,i,n,h),gu(t,e,i,o,r,h.boundingLength,h.pxSign,u,n,h),_u(a,h.symbolScale,c,n,h);var p=h.symbolSize,f=Object(Sn["b"])(a.get("symbolOffset"),p);return vu(a,p,i,o,r,f,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function fu(t,e,a,n,i){var o,r=n.valueDim,s=t.get("symbolBoundingData"),l=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(a[r.wh]<=0);if(p["t"](s)){var d=[mu(l,s[0])-c,mu(l,s[1])-c];d[1]<d[0]&&d.reverse(),o=d[u]}else o=null!=s?mu(l,s)-c:e?n.coordSysExtent[r.index][u]-c:a[r.wh];i.boundingLength=o,e&&(i.repeatCutLength=a[r.wh]),i.pxSign=o>0?1:-1}function mu(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function gu(t,e,a,n,i,o,r,s,l,c){var d,h=l.valueDim,f=l.categoryDim,m=Math.abs(a[f.wh]),g=t.getItemVisual(e,"symbolSize");d=p["t"](g)?g.slice():null==g?["100%","100%"]:[g,g],d[f.index]=Object(u["o"])(d[f.index],m),d[h.index]=Object(u["o"])(d[h.index],n?m:Math.abs(o)),c.symbolSize=d;var _=c.symbolScale=[d[0]/s,d[1]/s];_[h.index]*=(l.isHorizontal?-1:1)*r}function _u(t,e,a,n,i){var o=t.get(cu)||0;o&&(du.attr({scaleX:e[0],scaleY:e[1],rotation:a}),du.updateTransform(),o/=du.getLineScale(),o*=e[n.valueDim.index]),i.valueLineWidth=o||0}function vu(t,e,a,n,i,o,r,s,l,c,d,h){var f=d.categoryDim,m=d.valueDim,g=h.pxSign,_=Math.max(e[m.index]+s,0),v=_;if(n){var y=Math.abs(l),b=p["O"](t.get("symbolMargin"),"15%")+"",S=!1;b.lastIndexOf("!")===b.length-1&&(S=!0,b=b.slice(0,b.length-1));var O=Object(u["o"])(b,e[m.index]),T=Math.max(_+2*O,0),A=S?0:2*O,x=Object(u["i"])(n),C=x?n:Ru((y+A)/T),E=y-C*_;O=E/2/(S?C:Math.max(C-1,1)),T=_+2*O,A=S?0:2*O,x||"fixed"===n||(C=c?Ru((Math.abs(c)+A)/T):0),v=C*T-A,h.repeatTimes=C,h.symbolMargin=O}var w=g*(v/2),M=h.pathPosition=[];M[f.index]=a[f.wh]/2,M[m.index]="start"===r?w:"end"===r?l-w:l/2,o&&(M[0]+=o[0],M[1]+=o[1]);var k=h.bundlePosition=[];k[f.index]=a[f.xy],k[m.index]=a[m.xy];var I=h.barRectShape=p["m"]({},a);I[m.wh]=g*Math.max(Math.abs(a[m.wh]),Math.abs(M[m.index]+w)),I[f.wh]=a[f.wh];var D=h.clipShape={};D[f.xy]=-a[f.xy],D[f.wh]=d.ecSize[f.wh],D[m.xy]=0,D[m.wh]=a[m.wh]}function yu(t){var e=t.symbolPatternSize,a=Object(Sn["a"])(t.symbolType,-e/2,-e/2,e,e);return a.attr({culling:!0}),"image"!==a.type&&a.setStyle({strokeNoScale:!0}),a}function bu(t,e,a,n){var i=t.__pictorialBundle,o=a.symbolSize,r=a.valueLineWidth,s=a.pathPosition,l=e.valueDim,c=a.repeatTimes||0,u=0,d=o[e.valueDim.index]+r+2*a.symbolMargin;for(Iu(t,(function(t){t.__pictorialAnimationIndex=u,t.__pictorialRepeatTimes=c,u<c?Du(t,null,f(u),a,n):Du(t,null,{scaleX:0,scaleY:0},a,n,(function(){i.remove(t)})),u++}));u<c;u++){var h=yu(a);h.__pictorialAnimationIndex=u,h.__pictorialRepeatTimes=c,i.add(h);var p=f(u);Du(h,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},a,n)}function f(t){var e=s.slice(),n=a.pxSign,i=t;return("start"===a.symbolRepeatDirection?n>0:n<0)&&(i=c-1-t),e[l.index]=d*(i-c/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:a.symbolScale[0],scaleY:a.symbolScale[1],rotation:a.rotation}}}function Su(t,e,a,n){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?Du(o,null,{x:a.pathPosition[0],y:a.pathPosition[1],scaleX:a.symbolScale[0],scaleY:a.symbolScale[1],rotation:a.rotation},a,n):(o=t.__pictorialMainPath=yu(a),i.add(o),Du(o,{x:a.pathPosition[0],y:a.pathPosition[1],scaleX:0,scaleY:0,rotation:a.rotation},{scaleX:a.symbolScale[0],scaleY:a.symbolScale[1]},a,n))}function Ou(t,e,a){var n=p["m"]({},e.barRectShape),i=t.__pictorialBarRect;i?Du(i,null,{shape:n},e,a):(i=t.__pictorialBarRect=new De["a"]({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,t.add(i))}function Tu(t,e,a,n){if(a.symbolClip){var i=t.__pictorialClipPath,o=p["m"]({},a.clipShape),r=e.valueDim,s=a.animationModel,c=a.dataIndex;if(i)l["h"](i,{shape:o},s,c);else{o[r.wh]=0,i=new De["a"]({shape:o}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var u={};u[r.wh]=a.clipShape[r.wh],ke[n?"updateProps":"initProps"](i,{shape:u},s,c)}}}function Au(t,e){var a=t.getItemModel(e);return a.getAnimationDelayParams=xu,a.isAnimationEnabled=Cu,a}function xu(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Cu(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Eu(t,e,a,n){var i=new Ee["a"],o=new Ee["a"];return i.add(o),i.__pictorialBundle=o,o.x=a.bundlePosition[0],o.y=a.bundlePosition[1],a.symbolRepeat?bu(i,e,a):Su(i,e,a),Ou(i,a,n),Tu(i,e,a,n),i.__pictorialShapeStr=ku(t,a),i.__pictorialSymbolMeta=a,i}function wu(t,e,a){var n=a.animationModel,i=a.dataIndex,o=t.__pictorialBundle;l["h"](o,{x:a.bundlePosition[0],y:a.bundlePosition[1]},n,i),a.symbolRepeat?bu(t,e,a,!0):Su(t,e,a,!0),Ou(t,a,!0),Tu(t,e,a,!0)}function Mu(t,e,a,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var o=[];Iu(n,(function(t){o.push(t)})),n.__pictorialMainPath&&o.push(n.__pictorialMainPath),n.__pictorialClipPath&&(a=null),p["k"](o,(function(t){l["e"](t,{scaleX:0,scaleY:0},a,e,(function(){n.parent&&n.parent.remove(n)}))})),t.setItemGraphicEl(e,null)}function ku(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Iu(t,e,a){p["k"](t.__pictorialBundle.children(),(function(n){n!==t.__pictorialBarRect&&e.call(a,n)}))}function Du(t,e,a,n,i,o){e&&t.attr(e),n.symbolClip&&!i?a&&t.attr(a):a&&ke[i?"updateProps":"initProps"](t,a,n.animationModel,n.dataIndex,o)}function Lu(t,e,a){var n=a.dataIndex,i=a.itemModel,o=i.getModel("emphasis"),r=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),c=i.getShallow("cursor"),u=o.get("focus"),d=o.get("blurScope"),h=o.get("scale");Iu(t,(function(t){if(t instanceof I["a"]){var e=t.style;t.useStyle(p["m"]({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},a.style))}else t.useStyle(a.style);var n=t.ensureState("emphasis");n.style=r,h&&(n.scaleX=1.1*t.scaleX,n.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,c&&(t.cursor=c),t.z2=a.z2}));var f=e.valueDim.posDesc[+(a.boundingLength>0)],g=t.__pictorialBarRect;Object(m["g"])(g,Object(m["e"])(i),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:Object(lu["b"])(e.seriesModel.getData(),n),inheritColor:a.style.fill,defaultOpacity:a.style.opacity,defaultOutsidePosition:f}),Object(Ie["J"])(t,u,d,o.get("disabled"))}function Ru(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var Nu=hu,Pu=a("3014"),ju=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.hasSymbolVisual=!0,a.defaultSymbol="roundRect",a}return Object(be["a"])(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Object(Za["d"])(Pu["a"].defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Pu["a"]),$u=ju,Fu=a("9d57");function Bu(t){t.registerChartView(Nu),t.registerSeriesModel($u),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(p["h"])(Fu["c"],"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(Fu["a"])("pictorialBar"))}var Yu=a("d4d1"),Uu=a("80f0"),zu=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a._layers=[],a}return Object(be["a"])(e,t),e.prototype.render=function(t,e,a){var n=t.getData(),i=this,o=this.group,r=t.getLayerSeries(),s=n.getLayout("layoutInfo"),c=s.rect,u=s.boundaryGap;function d(t){return t.name}o.x=0,o.y=c.y+u[0];var h=new Uu["a"](this._layersSeries||[],r,d,d),f=[];function g(e,a,s){var c=i._layers;if("remove"!==e){for(var u,d,h=[],p=[],g=r[a].indices,_=0;_<g.length;_++){var v=n.getItemLayout(g[_]),y=v.x,b=v.y0,S=v.y;h.push(y,b),p.push(y,b+S),u=n.getItemVisual(g[_],"style")}var O=n.getItemLayout(g[0]),T=t.getModel("label"),A=T.get("margin"),x=t.getModel("emphasis");if("add"===e){var C=f[a]=new Ee["a"];d=new Yu["a"]({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(d),o.add(C),t.isAnimationEnabled()&&d.setClipPath(Vu(d.getBoundingRect(),t,(function(){d.removeClipPath()})))}else{C=c[s];d=C.childAt(0),o.add(C),f[a]=C,l["h"](d,{shape:{points:h,stackedOnPoints:p}},t),Object(l["g"])(d)}Object(m["g"])(d,Object(m["e"])(t),{labelDataIndex:g[_-1],defaultText:n.getName(g[_-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),d.setTextConfig({position:null,local:!0});var E=d.getTextContent();E&&(E.x=O.x-A,E.y=O.y0+O.y/2),d.useStyle(u),n.setItemGraphicEl(a,d),Object(Ie["I"])(d,t),Object(Ie["J"])(d,x.get("focus"),x.get("blurScope"),x.get("disabled"))}else o.remove(c[a])}h.add(Object(p["c"])(g,this,"add")).update(Object(p["c"])(g,this,"update")).remove(Object(p["c"])(g,this,"remove")).execute(),this._layersSeries=r,this._layers=f},e.type="themeRiver",e}(fn["a"]);function Vu(t,e,a){var n=new De["a"]({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return l["c"](n,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,a),n}var Hu=zu,Gu=2,Wu=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new lr["a"](p["c"](this.getData,this),p["c"](this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,a={},n=Object(r["j"])(t,(function(t){return a.hasOwnProperty(t[0]+"")||(a[t[0]+""]=-1),t[2]})),i=[];n.buckets.each((function(t,e){i.push({name:e,dataList:t})}));for(var o=i.length,s=0;s<o;++s){for(var l=i[s].name,c=0;c<i[s].dataList.length;++c){var u=i[s].dataList[c][0]+"";a[u]=s}for(var u in a)a.hasOwnProperty(u)&&a[u]!==s&&(a[u]=s,t[e]=[u,0,l],e++)}return t},e.prototype.getInitialData=function(t,e){for(var a=this.getReferringComponents("singleAxis",r["b"]).models[0],n=a.get("type"),i=p["n"](t.data,(function(t){return void 0!==t[2]})),o=this.fixData(i||[]),s=[],l=this.nameMap=p["f"](),c=0,u=0;u<o.length;++u)s.push(o[u][Gu]),l.get(o[u][Gu])||(l.set(o[u][Gu],c),c++);var d=Object(ir["a"])(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Object(vl["a"])(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new qo["a"](d,this);return h.initData(o),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),a=[],n=0;n<e;++n)a[n]=n;var i=t.mapDimension("single"),o=Object(r["j"])(a,(function(e){return t.get("name",e)})),s=[];return o.buckets.each((function(e,a){e.sort((function(e,a){return t.get(i,e)-t.get(i,a)})),s.push({name:a,indices:e})})),s},e.prototype.getAxisTooltipData=function(t,e,a){p["t"](t)||(t=t?[t]:[]);for(var n,i=this.getData(),o=this.getLayerSeries(),r=[],s=o.length,l=0;l<s;++l){for(var c=Number.MAX_VALUE,u=-1,d=o[l].indices.length,h=0;h<d;++h){var f=i.get(t[0],o[l].indices[h]),m=Math.abs(f-e);m<=c&&(n=f,c=m,u=o[l].indices[h])}r.push(u)}return{dataIndices:r,nestestValue:n}},e.prototype.formatTooltip=function(t,e,a){var n=this.getData(),i=n.getName(t),o=n.get(n.mapDimension("value"),t);return Object(bn["c"])("nameValue",{name:i,value:o})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(vn["b"]),Ku=Wu;function Zu(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),a=t.coordinateSystem,n={},i=a.getRect();n.rect=i;var o=t.get("boundaryGap"),r=a.getAxis();if(n.boundaryGap=o,"horizontal"===r.orient){o[0]=u["o"](o[0],i.height),o[1]=u["o"](o[1],i.height);var s=i.height-o[0]-o[1];qu(e,t,s)}else{o[0]=u["o"](o[0],i.width),o[1]=u["o"](o[1],i.width);var l=i.width-o[0]-o[1];qu(e,t,l)}e.setLayout("layoutInfo",n)}))}function qu(t,e,a){if(t.count())for(var n,i=e.coordinateSystem,o=e.getLayerSeries(),r=t.mapDimension("single"),s=t.mapDimension("value"),l=p["H"](o,(function(e){return p["H"](e.indices,(function(e){var a=i.dataToPoint(t.get(r,e));return a[1]=t.get(s,e),a}))})),c=Xu(l),u=c.y0,d=a/c.max,h=o.length,f=o[0].indices.length,m=0;m<f;++m){n=u[m]*d,t.setItemLayout(o[0].indices[m],{layerIndex:0,x:l[0][m][0],y0:n,y:l[0][m][1]*d});for(var g=1;g<h;++g)n+=l[g-1][m][1]*d,t.setItemLayout(o[g].indices[m],{layerIndex:g,x:l[g][m][0],y0:n,y:l[g][m][1]*d})}}function Xu(t){for(var e=t.length,a=t[0].length,n=[],i=[],o=0,r=0;r<a;++r){for(var s=0,l=0;l<e;++l)s+=t[l][r][1];s>o&&(o=s),n.push(s)}for(var c=0;c<a;++c)i[c]=(o-n[c])/2;o=0;for(var u=0;u<a;++u){var d=n[u]+i[u];d>o&&(o=d)}return{y0:i,max:o}}var Qu=a("d3f4");function Ju(t){t.registerChartView(Hu),t.registerSeriesModel(Ku),t.registerLayout(Zu),t.registerProcessor(Object(Qu["a"])("themeRiver"))}var td=a("8acb"),ed={color:"fill",borderColor:"stroke"},ad={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},nd=Object(r["o"])(),id=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return Object(rr["a"])(null,this)},e.prototype.getDataParams=function(e,a,n){var i=t.prototype.getDataParams.call(this,e,a);return n&&(i.info=nd(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(vn["b"]),od=id;function rd(t,e){return e=e||[0,0],p["H"](["x","y"],(function(a,n){var i=this.getAxis(a),o=e[n],r=t[n]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-r)-i.dataToCoord(o+r))}),this)}function sd(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:p["c"](rd,t)}}}function ld(t,e){return e=e||[0,0],p["H"]([0,1],(function(a){var n=e[a],i=t[a]/2,o=[],r=[];return o[a]=n-i,r[a]=n+i,o[1-a]=r[1-a]=e[1-a],Math.abs(this.dataToPoint(o)[a]-this.dataToPoint(r)[a])}),this)}function cd(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:p["c"](ld,t)}}}function ud(t,e){var a=this.getAxis(),n=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return"category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(n-i)-a.dataToCoord(n+i))}function dd(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(p["c"])(ud,t)}}}function hd(t,e){return e=e||[0,0],p["H"](["Radius","Angle"],(function(a,n){var i="get"+a+"Axis",o=this[i](),r=e[n],s=t[n]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(r-s)-o.dataToCoord(r+s));return"Angle"===a&&(l=l*Math.PI/180),l}),this)}function pd(t){var e=t.getRadiusAxis(),a=t.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=a.dataToAngle(n[1]),r=t.coordToPoint([i,o]);return r.push(i,o*Math.PI/180),r},size:p["c"](hd,t)}}}function fd(t){var e=t.getRect(),a=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:a.start,end:a.end,weeks:a.weeks,dayCount:a.allDay}},api:{coord:function(e,a){return t.dataToPoint(e,a)}}}}function md(t,e,a,n){return t&&(t.legacy||!1!==t.legacy&&!a&&!n&&"tspan"!==e&&("text"===e||Object(p["q"])(t,"text")))}function gd(t,e,a){var n,i,o,r=t;if("text"===e)o=r;else{o={},Object(p["q"])(r,"text")&&(o.text=r.text),Object(p["q"])(r,"rich")&&(o.rich=r.rich),Object(p["q"])(r,"textFill")&&(o.fill=r.textFill),Object(p["q"])(r,"textStroke")&&(o.stroke=r.textStroke),Object(p["q"])(r,"fontFamily")&&(o.fontFamily=r.fontFamily),Object(p["q"])(r,"fontSize")&&(o.fontSize=r.fontSize),Object(p["q"])(r,"fontStyle")&&(o.fontStyle=r.fontStyle),Object(p["q"])(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Object(p["q"])(r,"textPosition");a?n.position=s?r.textPosition:"inside":s&&(n.position=r.textPosition),Object(p["q"])(r,"textPosition")&&(n.position=r.textPosition),Object(p["q"])(r,"textOffset")&&(n.offset=r.textOffset),Object(p["q"])(r,"textRotation")&&(n.rotation=r.textRotation),Object(p["q"])(r,"textDistance")&&(n.distance=r.textDistance)}return _d(o,t),Object(p["k"])(o.rich,(function(t){_d(t,t)})),{textConfig:n,textContent:i}}function _d(t,e){e&&(e.font=e.textFont||e.font,Object(p["q"])(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(p["q"])(e,"textAlign")&&(t.align=e.textAlign),Object(p["q"])(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(p["q"])(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(p["q"])(e,"textWidth")&&(t.width=e.textWidth),Object(p["q"])(e,"textHeight")&&(t.height=e.textHeight),Object(p["q"])(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(p["q"])(e,"textPadding")&&(t.padding=e.textPadding),Object(p["q"])(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(p["q"])(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(p["q"])(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(p["q"])(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(p["q"])(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(p["q"])(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(p["q"])(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function vd(t,e,a){var n=t;n.textPosition=n.textPosition||a.position||"inside",null!=a.offset&&(n.textOffset=a.offset),null!=a.rotation&&(n.textRotation=a.rotation),null!=a.distance&&(n.textDistance=a.distance);var i=n.textPosition.indexOf("inside")>=0,o=t.fill||"#000";yd(n,e);var r=null==n.textFill;return i?r&&(n.textFill=a.insideFill||"#fff",!n.textStroke&&a.insideStroke&&(n.textStroke=a.insideStroke),!n.textStroke&&(n.textStroke=o),null==n.textStrokeWidth&&(n.textStrokeWidth=2)):(r&&(n.textFill=t.fill||a.outsideFill||"#000"),!n.textStroke&&a.outsideStroke&&(n.textStroke=a.outsideStroke)),n.text=e.text,n.rich=e.rich,Object(p["k"])(e.rich,(function(t){yd(t,t)})),n}function yd(t,e){e&&(Object(p["q"])(e,"fill")&&(t.textFill=e.fill),Object(p["q"])(e,"stroke")&&(t.textStroke=e.fill),Object(p["q"])(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(p["q"])(e,"font")&&(t.font=e.font),Object(p["q"])(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(p["q"])(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(p["q"])(e,"fontSize")&&(t.fontSize=e.fontSize),Object(p["q"])(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(p["q"])(e,"align")&&(t.textAlign=e.align),Object(p["q"])(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(p["q"])(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(p["q"])(e,"width")&&(t.textWidth=e.width),Object(p["q"])(e,"height")&&(t.textHeight=e.height),Object(p["q"])(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(p["q"])(e,"padding")&&(t.textPadding=e.padding),Object(p["q"])(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(p["q"])(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(p["q"])(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(p["q"])(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(p["q"])(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(p["q"])(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(p["q"])(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(p["q"])(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(p["q"])(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(p["q"])(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(p["q"])(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var bd=a("06ad"),Sd={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Od=Object(p["F"])(Sd),Td=(Object(p["N"])(d["a"],(function(t,e){return t[e]=1,t}),{}),d["a"].join(", "),["","style","shape","extra"]),Ad=Object(r["o"])();function xd(t,e,a,n,i){var o=t+"Animation",r=Object(l["a"])(t,n,i)||{},s=Ad(e).userDuring;return r.duration>0&&(r.during=s?Object(p["c"])(Nd,{el:e,userDuring:s}):null,r.setToFinal=!0,r.scope=t),Object(p["m"])(r,a[o]),r}function Cd(t,e,a,n){n=n||{};var i=n.dataIndex,o=n.isInit,r=n.clearStyle,s=a.isAnimationEnabled(),l=Ad(t),c=e.style;l.userDuring=e.during;var u={},d={};if(Fd(t,e,d),jd("shape",e,d),jd("extra",e,d),!o&&s&&($d(t,e,u),Pd("shape",t,e,u),Pd("extra",t,e,u),Bd(t,e,c,u)),d.style=c,kd(t,d,r),Dd(t,e),s)if(o){var h={};Object(p["k"])(Td,(function(t){var a=t?e[t]:e;a&&a.enterFrom&&(t&&(h[t]=h[t]||{}),Object(p["m"])(t?h[t]:h,a.enterFrom))}));var f=xd("enter",t,e,a,i);f.duration>0&&t.animateFrom(h,f)}else Id(t,e,i||0,a,u);Ed(t,e),c?t.dirty():t.markRedraw()}function Ed(t,e){for(var a=Ad(t).leaveToProps,n=0;n<Td.length;n++){var i=Td[n],o=i?e[i]:e;o&&o.leaveTo&&(a||(a=Ad(t).leaveToProps={}),i&&(a[i]=a[i]||{}),Object(p["m"])(i?a[i]:a,o.leaveTo))}}function wd(t,e,a,n){if(t){var i=t.parent,o=Ad(t).leaveToProps;if(o){var r=xd("update",t,e,a,0);r.done=function(){i.remove(t),n&&n()},t.animateTo(o,r)}else i.remove(t),n&&n()}}function Md(t){return"all"===t}function kd(t,e,a){var n=e.style;if(!t.isGroup&&n){if(a){t.useStyle({});for(var i=t.animators,o=0;o<i.length;o++){var r=i[o];"style"===r.targetName&&r.changeTarget(t.style)}}t.setStyle(n)}e&&(e.style=null,e&&t.attr(e),e.style=n)}function Id(t,e,a,n,i){if(i){var o=xd("update",t,e,n,a);o.duration>0&&t.animateFrom(i,o)}}function Dd(t,e){Object(p["q"])(e,"silent")&&(t.silent=e.silent),Object(p["q"])(e,"ignore")&&(t.ignore=e.ignore),t instanceof Xa["c"]&&Object(p["q"])(e,"invisible")&&(t.invisible=e.invisible),t instanceof k["b"]&&Object(p["q"])(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var Ld={},Rd={setTransform:function(t,e){return Ld.el[t]=e,this},getTransform:function(t){return Ld.el[t]},setShape:function(t,e){var a=Ld.el,n=a.shape||(a.shape={});return n[t]=e,a.dirtyShape&&a.dirtyShape(),this},getShape:function(t){var e=Ld.el.shape;if(e)return e[t]},setStyle:function(t,e){var a=Ld.el,n=a.style;return n&&(n[t]=e,a.dirtyStyle&&a.dirtyStyle()),this},getStyle:function(t){var e=Ld.el.style;if(e)return e[t]},setExtra:function(t,e){var a=Ld.el.extra||(Ld.el.extra={});return a[t]=e,this},getExtra:function(t){var e=Ld.el.extra;if(e)return e[t]}};function Nd(){var t=this,e=t.el;if(e){var a=Ad(e).userDuring,n=t.userDuring;a===n?(Ld.el=e,n(Rd)):t.el=t.userDuring=null}}function Pd(t,e,a,n){var i=a[t];if(i){var o,s=e[t];if(s){var l=a.transition,c=i.transition;if(c)if(!o&&(o=n[t]={}),Md(c))Object(p["m"])(o,s);else for(var u=Object(r["r"])(c),d=0;d<u.length;d++){var h=u[d],f=s[h];o[h]=f}else if(Md(l)||Object(p["r"])(l,t)>=0){!o&&(o=n[t]={});var m=Object(p["F"])(s);for(d=0;d<m.length;d++){h=m[d],f=s[h];Yd(i[h],f)&&(o[h]=f)}}}}}function jd(t,e,a){var n=e[t];if(n)for(var i=a[t]={},o=Object(p["F"])(n),r=0;r<o.length;r++){var s=o[r];i[s]=Object(bd["a"])(n[s])}}function $d(t,e,a){for(var n=e.transition,i=Md(n)?d["a"]:Object(r["r"])(n||[]),o=0;o<i.length;o++){var s=i[o];if("style"!==s&&"shape"!==s&&"extra"!==s){var l=t[s];0,a[s]=l}}}function Fd(t,e,a){for(var n=0;n<Od.length;n++){var i=Od[n],o=Sd[i],r=e[i];r&&(a[o[0]]=r[0],a[o[1]]=r[1])}for(n=0;n<d["a"].length;n++){var s=d["a"][n];null!=e[s]&&(a[s]=e[s])}}function Bd(t,e,a,n){if(a){var i,o=t.style;if(o){var s=a.transition,l=e.transition;if(s&&!Md(s)){var c=Object(r["r"])(s);!i&&(i=n.style={});for(var u=0;u<c.length;u++){var d=c[u],h=o[d];i[d]=h}}else if(t.getAnimationStyleProps&&(Md(l)||Md(s)||Object(p["r"])(l,"style")>=0)){var f=t.getAnimationStyleProps(),m=f?f.style:null;if(m){!i&&(i=n.style={});var g=Object(p["F"])(a);for(u=0;u<g.length;u++){d=g[u];if(m[d]){h=o[d];i[d]=h}}}}}}}function Yd(t,e){return Object(p["u"])(t)?t!==e:null!=t&&isFinite(t)}var Ud=Object(r["o"])(),zd=["percent","easing","shape","style","extra"];function Vd(t){t.stopAnimation("keyframe"),t.attr(Ud(t))}function Hd(t,e,a){if(a.isAnimationEnabled()&&e)if(Object(p["t"])(e))Object(p["k"])(e,(function(e){Hd(t,e,a)}));else{var n=e.keyframes,i=e.duration;if(a&&null==i){var o=Object(l["a"])("enter",a,0);i=o&&o.duration}if(n&&i){var r=Ud(t);Object(p["k"])(Td,(function(a){if(!a||t[a]){var o;n.sort((function(t,e){return t.percent-e.percent})),Object(p["k"])(n,(function(n){var s=t.animators,l=a?n[a]:n;if(l){var c=Object(p["F"])(l);if(a||(c=Object(p["n"])(c,(function(t){return Object(p["r"])(zd,t)<0}))),c.length){o||(o=t.animate(a,e.loop,!0),o.scope="keyframe");for(var u=0;u<s.length;u++)s[u]!==o&&s[u].targetName===o.targetName&&s[u].stopTracks(c);a&&(r[a]=r[a]||{});var d=a?r[a]:r;Object(p["k"])(c,(function(e){d[e]=((a?t[a]:t)||{})[e]})),o.whenWithKeys(i*n.percent,l,c,n.easing)}}})),o&&o.delay(e.delay||0).duration(i).start(e.easing)}}))}}}var Gd="emphasis",Wd="normal",Kd="blur",Zd="select",qd=[Wd,Gd,Kd,Zd],Xd={normal:["itemStyle"],emphasis:[Gd,"itemStyle"],blur:[Kd,"itemStyle"],select:[Zd,"itemStyle"]},Qd={normal:["label"],emphasis:[Gd,"label"],blur:[Kd,"label"],select:[Zd,"label"]},Jd=["x","y"],th="e\0\0",eh={normal:{},emphasis:{},blur:{},select:{}},ah={cartesian2d:sd,geo:cd,singleAxis:dd,polar:pd,calendar:fd};function nh(t){return t instanceof k["b"]}function ih(t){return t instanceof Xa["c"]}function oh(t,e){e.copyTransform(t),ih(e)&&ih(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,nh(e)&&nh(t)&&e.setShape(t.shape))}var rh=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.render=function(t,e,a,n){this._progressiveEls=null;var i=this._data,o=t.getData(),r=this.group,s=ph(t,o,e,a);i||r.removeAll(),o.diff(i).add((function(e){mh(a,null,e,s(e,n),t,r,o)})).remove((function(e){var a=i.getItemGraphicEl(e);wd(a,nd(a).option,t)})).update((function(e,l){var c=i.getItemGraphicEl(l);mh(a,c,e,s(e,n),t,r,o)})).execute();var l=t.get("clip",!0)?Object(Bl["a"])(t.coordinateSystem,!1,t):null;l?r.setClipPath(l):r.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,a,n,i){var o=e.getData(),r=ph(e,o,a,n),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var c=t.start;c<t.end;c++){var u=mh(null,null,c,r(c,i),e,this.group,o);u&&(u.traverse(l),s.push(u))}},e.prototype.eachRendered=function(t){ke["traverseElements"](this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,a,n){var i=e.element;if(null==i||a.name===i)return!0;while((a=a.__hostTarget||a.parent)&&a!==this.group)if(a.name===i)return!0;return!1},e.type="custom",e}(fn["a"]),sh=rh;function lh(t){var e,a=t.type;if("path"===a){var n=t.shape,i=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=wh(n);e=ke["makePath"](o,null,i,n.layout||"center"),nd(e).customPathData=o}else if("image"===a)e=new I["a"]({}),nd(e).customImagePath=t.style.image;else if("text"===a)e=new bt["a"]({});else if("group"===a)e=new Ee["a"];else{if("compoundPath"===a)throw new Error('"compoundPath" is not supported yet.');var r=ke["getShapeClass"](a);if(!r){var s="";0,Object(Pl["c"])(s)}e=new r}return nd(e).customGraphicType=a,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function ch(t,e,a,n,i,o,r){Vd(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),n&&null==n.transition&&(n.transition=Jd);var l=n&&n.style;if(l){if("text"===e.type){var c=l;Object(p["q"])(c,"textFill")&&(c.fill=c.textFill),Object(p["q"])(c,"textStroke")&&(c.stroke=c.textStroke)}var u=void 0,d=nh(e)?l.decal:null;t&&d&&(d.dirty=!0,u=Object(qa["a"])(d,t)),l.__decalPattern=u}if(ih(e)&&l){u=l.__decalPattern;u&&(l.decal=u)}Cd(e,n,o,{dataIndex:a,isInit:r,clearStyle:!0}),Hd(e,n.keyframeAnimation,o)}function uh(t,e,a,n,i){var o=e.isGroup?null:e,r=i&&i[t].cfg;if(o){var s=o.ensureState(t);if(!1===n){var l=o.getState(t);l&&(l.style=null)}else s.style=n||null;r&&(s.textConfig=r),Object(Ie["G"])(o)}}function dh(t,e,a){if(!t.isGroup){var n=t,i=a.currentZ,o=a.currentZLevel;n.z=i,n.zlevel=o;var r=e.z2;null!=r&&(n.z2=r||0);for(var s=0;s<qd.length;s++)hh(n,e,qd[s])}}function hh(t,e,a){var n,i=a===Wd,o=i?e:Sh(e,a),r=o?o.z2:null;null!=r&&(n=i?t:t.ensureState(a),n.z2=r||0)}function ph(t,e,a,n){var i=t.get("renderItem"),o=t.coordinateSystem,r={};o&&(r=o.prepareCustoms?o.prepareCustoms(o):ah[o.type](o));for(var s,l,c=Object(p["i"])({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:O,style:A,ordinalRawValue:T,styleEmphasis:x,visual:w,barLayout:M,currentSeriesIndices:k,font:I},r.api||{}),u={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:r.coordSys,dataInsideLength:e.count(),encode:fh(t.getData())},d={},h={},f={},g={},_=0;_<qd.length;_++){var v=qd[_];f[v]=t.getModel(Xd[v]),g[v]=t.getModel(Qd[v])}function y(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function b(t,a){return e.hasItemOption?t===s?d[a]||(d[a]=y(t).getModel(Xd[a])):y(t).getModel(Xd[a]):f[a]}function S(t,a){return e.hasItemOption?t===s?h[a]||(h[a]=y(t).getModel(Qd[a])):y(t).getModel(Qd[a]):g[a]}return function(t,a){return s=t,l=null,d={},h={},i&&i(Object(p["i"])({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:a?a.type:null},u),c)};function O(t,a){return null==a&&(a=s),e.getStore().get(e.getDimensionIndex(t||0),a)}function T(t,a){null==a&&(a=s),t=t||0;var n=e.getDimensionInfo(t);if(!n){var i=e.getDimensionIndex(t);return i>=0?e.getStore().get(i,a):void 0}var o=e.get(n.name,a),r=n&&n.ordinalMeta;return r?r.categories[o]:o}function A(a,n){null==n&&(n=s);var i=e.getItemVisual(n,"style"),o=i&&i.fill,r=i&&i.opacity,l=b(n,Wd).getItemStyle();null!=o&&(l.fill=o),null!=r&&(l.opacity=r);var c={inheritColor:Object(p["C"])(o)?o:"#000"},u=S(n,Wd),d=m["c"](u,null,c,!1,!0);d.text=u.getShallow("show")?Object(p["P"])(t.getFormattedLabel(n,Wd),Object(lu["b"])(e,n)):null;var h=m["b"](u,c,!1);return E(a,l),l=vd(l,d,h),a&&C(l,a),l.legacy=!0,l}function x(a,n){null==n&&(n=s);var i=b(n,Gd).getItemStyle(),o=S(n,Gd),r=m["c"](o,null,null,!0,!0);r.text=o.getShallow("show")?Object(p["Q"])(t.getFormattedLabel(n,Gd),t.getFormattedLabel(n,Wd),Object(lu["b"])(e,n)):null;var l=m["b"](o,null,!0);return E(a,i),i=vd(i,r,l),a&&C(i,a),i.legacy=!0,i}function C(t,e){for(var a in e)Object(p["q"])(e,a)&&(t[a]=e[a])}function E(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function w(t,a){if(null==a&&(a=s),Object(p["q"])(ed,t)){var n=e.getItemVisual(a,"style");return n?n[ed[t]]:null}if(Object(p["q"])(ad,t))return e.getItemVisual(a,t)}function M(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return Object(Fu["b"])(Object(p["i"])({axis:e},t))}}function k(){return a.getCurrentSeriesIndices()}function I(t){return m["d"](t,a)}}function fh(t){var e={};return Object(p["k"])(t.dimensions,(function(a){var n=t.getDimensionInfo(a);if(!n.isExtraCoord){var i=n.coordDim,o=e[i]=e[i]||[];o[n.coordDimIndex]=t.getDimensionIndex(a)}})),e}function mh(t,e,a,n,i,o,r){if(n){var s=gh(t,e,a,n,i,o);return s&&r.setItemGraphicEl(a,s),s&&Object(Ie["J"])(s,n.focus,n.blurScope,n.emphasisDisabled),s}o.remove(e)}function gh(t,e,a,n,i,o){var r=-1,s=e;e&&_h(e,n,i)&&(r=Object(p["r"])(o.childrenRef(),e),e=null);var l=!e,c=e;c?c.clearStates():(c=lh(n),s&&oh(s,c)),!1===n.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),eh.normal.cfg=eh.normal.conOpt=eh.emphasis.cfg=eh.emphasis.conOpt=eh.blur.cfg=eh.blur.conOpt=eh.select.cfg=eh.select.conOpt=null,eh.isLegacy=!1,yh(c,a,n,i,l,eh),vh(c,a,n,i,l),ch(t,c,a,n,eh,i,l),Object(p["q"])(n,"info")&&(nd(c).info=n.info);for(var u=0;u<qd.length;u++){var d=qd[u];if(d!==Wd){var h=Sh(n,d),f=Oh(n,h,d);uh(d,c,h,f,eh)}}return dh(c,n,i),"group"===n.type&&Th(t,c,a,n,i),r>=0?o.replaceAt(c,r):o.add(c),c}function _h(t,e,a){var n=nd(t),i=e.type,o=e.shape,r=e.style;return a.isUniversalTransitionEnabled()||null!=i&&i!==n.customGraphicType||"path"===i&&Mh(o)&&wh(o)!==n.customPathData||"image"===i&&Object(p["q"])(r,"image")&&r.image!==n.customImagePath}function vh(t,e,a,n,i){var o=a.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var r=t.getClipPath();r&&_h(r,o,n)&&(r=null),r||(r=lh(o),t.setClipPath(r)),ch(null,r,e,o,null,n,i)}}function yh(t,e,a,n,i,o){if(!t.isGroup){bh(a,null,o),bh(a,Gd,o);var r=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,c=o.select.conOpt;if(null!=r||null!=s||null!=c||null!=l){var u=t.getTextContent();if(!1===r)u&&t.removeTextContent();else{r=o.normal.conOpt=r||{type:"text"},u?u.clearStates():(u=lh(r),t.setTextContent(u)),ch(null,u,e,r,null,n,i);for(var d=r&&r.style,h=0;h<qd.length;h++){var p=qd[h];if(p!==Wd){var f=o[p].conOpt;uh(p,u,f,Oh(r,f,p),null)}}d?u.dirty():u.markRedraw()}}}}function bh(t,e,a){var n=e?Sh(t,e):t,i=e?Oh(t,n,Gd):t.style,o=t.type,r=n?n.textConfig:null,s=t.textContent,l=s?e?Sh(s,e):s:null;if(i&&(a.isLegacy||md(i,o,!!r,!!l))){a.isLegacy=!0;var c=gd(i,o,!e);!r&&c.textConfig&&(r=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!e&&l){var u=l;!u.type&&(u.type="text")}var d=e?a[e]:a.normal;d.cfg=r,d.conOpt=l}function Sh(t,e){return e?t?t[e]:null:t}function Oh(t,e,a){var n=e&&e.style;return null==n&&a===Gd&&t&&(n=t.styleEmphasis),n}function Th(t,e,a,n,i){var o=n.children,r=o?o.length:0,s=n.$mergeChildren,l="byName"===s||n.diffChildrenByName,c=!1===s;if(r||l||c)if(l)Ah({api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:a,seriesModel:i,group:e});else{c&&e.removeAll();for(var u=0;u<r;u++)o[u]&&gh(t,e.childAt(u),a,o[u],i,e);for(var d=e.childCount()-1;d>=u;d--){var h=e.childAt(d);wd(h,nd(e).option,i)}}}function Ah(t){new Uu["a"](t.oldChildren,t.newChildren,xh,xh,t).add(Ch).update(Ch).remove(Eh).execute()}function xh(t,e){var a=t&&t.name;return null!=a?a:th+e}function Ch(t,e){var a=this.context,n=null!=t?a.newChildren[t]:null,i=null!=e?a.oldChildren[e]:null;gh(a.api,i,a.dataIndex,n,a.seriesModel,a.group)}function Eh(t){var e=this.context,a=e.oldChildren[t];wd(a,nd(a).option,e.seriesModel)}function wh(t){return t&&(t.pathData||t.d)}function Mh(t){return t&&(Object(p["q"])(t,"pathData")||Object(p["q"])(t,"d"))}function kh(t){t.registerChartView(sh),t.registerSeriesModel(od)}var Ih=a("4b2a"),Dh=a("6679"),Lh=a("dcb3"),Rh=a("ff2e"),Nh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(be["a"])(e,t),e.prototype.makeElOption=function(t,e,a,n,i){var o=a.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var r=o.polar,s=r.getOtherAxis(o),l=s.getExtent(),c=o.dataToCoord(e),u=n.get("type");if(u&&"none"!==u){var d=Rh["b"](n),h=jh[u](o,r,c,l);h.style=d,t.graphicKey=h.type,t.pointer=h}var p=n.get(["label","margin"]),f=Ph(e,a,n,r,p);Rh["c"](t,a,n,i,f)},e}(Lh["a"]);function Ph(t,e,a,n,i){var o=e.axis,r=o.dataToCoord(t),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,d=n.getRadiusAxis().getExtent();if("radius"===o.dim){var h=Ne["c"]();Ne["g"](h,h,s),Ne["i"](h,h,[n.cx,n.cy]),l=ke["applyTransform"]([r,-i],h);var p=e.getModel("axisLabel").get("rotate")||0,f=xs["a"].innerTextLayout(s,p*Math.PI/180,-1);c=f.textAlign,u=f.textVerticalAlign}else{var m=d[1];l=n.coordToPoint([m+i,r]);var g=n.cx,_=n.cy;c=Math.abs(l[0]-g)/m<.3?"center":l[0]>g?"left":"right",u=Math.abs(l[1]-_)/m<.3?"middle":l[1]>_?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var jh={line:function(t,e,a,n){return"angle"===t.dim?{type:"Line",shape:Rh["f"](e.coordToPoint([n[0],a]),e.coordToPoint([n[1],a]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:a}}},shadow:function(t,e,a,n){var i=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:Rh["h"](e.cx,e.cy,n[0],n[1],(-a-i/2)*o,(i/2-a)*o)}:{type:"Sector",shape:Rh["h"](e.cx,e.cy,a-i/2,a+i/2,0,2*Math.PI)}}},$h=Nh,Fh=a("af5c"),Bh=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.findAxisModel=function(t){var e,a=this.ecModel;return a.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(wn["a"]),Yh=Bh,Uh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(be["a"])(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",r["b"]).models[0]},e.type="polarAxis",e}(wn["a"]);p["K"](Uh,Os["a"]);var zh=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.type="angleAxis",e}(Uh),Vh=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.type="radiusAxis",e}(Uh),Hh=function(t){function e(e,a){return t.call(this,"radius",e,a)||this}return Object(be["a"])(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(es["a"]);Hh.prototype.dataToRadius=es["a"].prototype.dataToCoord,Hh.prototype.radiusToData=es["a"].prototype.coordToData;var Gh=Hh,Wh=Object(r["o"])(),Kh=function(t){function e(e,a){return t.call(this,"angle",e,a||[0,360])||this}return Object(be["a"])(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),a=t.scale,n=a.getExtent(),i=a.count();if(n[1]-n[0]<1)return 0;var o=n[0],r=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(r),l=D["d"](null==o?"":o+"",e.getFont(),"center","top"),c=Math.max(l.height,7),u=c/s;isNaN(u)&&(u=1/0);var d=Math.max(0,Math.floor(u)),h=Wh(t.model),p=h.lastAutoInterval,f=h.lastTickCount;return null!=p&&null!=f&&Math.abs(p-d)<=1&&Math.abs(f-i)<=1&&p>d?d=p:(h.lastTickCount=i,h.lastAutoInterval=d),d},e}(es["a"]);Kh.prototype.dataToAngle=es["a"].prototype.dataToCoord,Kh.prototype.angleToData=es["a"].prototype.coordToData;var Zh=Kh,qh=["radius","angle"],Xh=function(){function t(t){this.dimensions=qh,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Gh,this._angleAxis=new Zh,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var a=this.pointToCoord(t);return[this._radiusAxis.radiusToData(a[0],e),this._angleAxis.angleToData(a[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),r=Math.max(i[0],i[1]);n.inverse?o=r-360:r=o+360;var s=Math.sqrt(e*e+a*a);e/=s,a/=s;var l=Math.atan2(-a,e)/Math.PI*180,c=l<o?1:-1;while(l<o||l>r)l+=360*c;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],a=t[1]/180*Math.PI,n=Math.cos(a)*e+this.cx,i=-Math.sin(a)*e+this.cy;return[n,i]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var a=t-this.cx,n=e-this.cy,i=a*a+n*n-1e-4,o=this.r,r=this.r0;return i<=o*o&&i>=r*r}}},t.prototype.convertToPixel=function(t,e,a){var n=Qh(e);return n===this?this.dataToPoint(a):null},t.prototype.convertFromPixel=function(t,e,a){var n=Qh(e);return n===this?this.pointToData(a):null},t}();function Qh(t){var e=t.seriesModel,a=t.polarModel;return a&&a.coordinateSystem||e&&e.coordinateSystem}var Jh=Xh;function tp(t,e,a){var n=e.get("center"),i=a.getWidth(),o=a.getHeight();t.cx=Object(u["o"])(n[0],i),t.cy=Object(u["o"])(n[1],o);var r=t.getRadiusAxis(),s=Math.min(i,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:p["t"](l)||(l=[0,l]);var c=[Object(u["o"])(l[0],s),Object(u["o"])(l[1],s)];r.inverse?r.setExtent(c[1],c[0]):r.setExtent(c[0],c[1])}function ep(t,e){var a=this,n=a.getAngleAxis(),i=a.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===a){var e=t.getData();p["k"](Object(ts["d"])(e,"radius"),(function(t){i.scale.unionExtentFromData(e,t)})),p["k"](Object(ts["d"])(e,"angle"),(function(t){n.scale.unionExtentFromData(e,t)}))}})),Object(ts["i"])(n.scale,n.model),Object(ts["i"])(i.scale,i.model),"category"===n.type&&!n.onBand){var o=n.getExtent(),r=360/n.scale.count();n.inverse?o[1]+=r:o[1]-=r,n.setExtent(o[0],o[1])}}function ap(t){return"angleAxis"===t.mainType}function np(t,e){if(t.type=e.get("type"),t.scale=Object(ts["a"])(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),ap(e)){t.inverse=t.inverse!==e.get("clockwise");var a=e.get("startAngle");t.setExtent(a,a+(t.inverse?-360:360))}e.axis=t,t.model=e}var ip={dimensions:qh,create:function(t,e){var a=[];return t.eachComponent("polar",(function(t,n){var i=new Jh(n+"");i.update=ep;var o=i.getRadiusAxis(),r=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");np(o,s),np(r,l),tp(i,t,e),a.push(i),t.coordinateSystem=i,i.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",r["b"]).models[0];0,t.coordinateSystem=e.coordinateSystem}})),a}},op=ip,rp=a("4573"),sp=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function lp(t,e,a){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],a]),i=t.coordToPoint([e[1],a]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function cp(t){var e=t.getRadiusAxis();return e.inverse?0:1}function up(t){var e=t[0],a=t[t.length-1];e&&a&&Math.abs(Math.abs(e.coord-a.coord)-360)<1e-4&&t.pop()}var dp=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.axisPointerClass="PolarAxisPointer",a}return Object(be["a"])(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var a=t.axis,n=a.polar,i=n.getRadiusAxis().getExtent(),o=a.getTicksCoords(),r=a.getMinorTicksCoords(),s=p["H"](a.getViewLabels(),(function(t){t=p["d"](t);var e=a.scale,n="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=a.dataToCoord(n),t}));up(s),up(o),p["k"](sp,(function(e){!t.get([e,"show"])||a.scale.isBlank()&&"axisLine"!==e||hp[e](this.group,t,n,o,r,i,s)}),this)}},e.type="angleAxis",e}(Dh["a"]),hp={axisLine:function(t,e,a,n,i,o){var r,s=e.getModel(["axisLine","lineStyle"]),l=cp(a),c=l?0:1;r=0===o[c]?new Se["a"]({shape:{cx:a.cx,cy:a.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new rp["a"]({shape:{cx:a.cx,cy:a.cy,r:o[l],r0:o[c]},style:s.getLineStyle(),z2:1,silent:!0}),r.style.fill=null,t.add(r)},axisTick:function(t,e,a,n,i,o){var r=e.getModel("axisTick"),s=(r.get("inside")?-1:1)*r.get("length"),l=o[cp(a)],c=p["H"](n,(function(t){return new Re["a"]({shape:lp(a,[l,l+s],t.coord)})}));t.add(ke["mergePath"](c,{style:p["i"](r.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,a,n,i,o){if(i.length){for(var r=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(r.get("inside")?-1:1)*s.get("length"),c=o[cp(a)],u=[],d=0;d<i.length;d++)for(var h=0;h<i[d].length;h++)u.push(new Re["a"]({shape:lp(a,[c,c+l],i[d][h].coord)}));t.add(ke["mergePath"](u,{style:p["i"](s.getModel("lineStyle").getLineStyle(),p["i"](r.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,a,n,i,o,r){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),d=e.get("triggerEvent");p["k"](r,(function(n,i){var r=l,h=n.tickValue,f=o[cp(a)],g=a.coordToPoint([f+u,n.coord]),_=a.cx,v=a.cy,y=Math.abs(g[0]-_)/f<.3?"center":g[0]>_?"left":"right",b=Math.abs(g[1]-v)/f<.3?"middle":g[1]>v?"top":"bottom";if(s&&s[h]){var S=s[h];p["A"](S)&&S.textStyle&&(r=new Mn["a"](S.textStyle,l,l.ecModel))}var O=new bt["a"]({silent:xs["a"].isLabelSilent(e),style:Object(m["c"])(r,{x:g[0],y:g[1],fill:r.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:n.formattedLabel,align:y,verticalAlign:b})});if(t.add(O),d){var T=xs["a"].makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=n.rawLabel,Object(c["a"])(O).eventData=T}}),this)},splitLine:function(t,e,a,n,i,o){var r=e.getModel("splitLine"),s=r.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=0;d<n.length;d++){var h=c++%l.length;u[h]=u[h]||[],u[h].push(new Re["a"]({shape:lp(a,o,n[d].coord)}))}for(d=0;d<u.length;d++)t.add(ke["mergePath"](u[d],{style:p["i"]({stroke:l[d%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,a,n,i,o){if(i.length){for(var r=e.getModel("minorSplitLine"),s=r.getModel("lineStyle"),l=[],c=0;c<i.length;c++)for(var u=0;u<i[c].length;u++)l.push(new Re["a"]({shape:lp(a,o,i[c][u].coord)}));t.add(ke["mergePath"](l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,a,n,i,o){if(n.length){var r=e.getModel("splitArea"),s=r.getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=Math.PI/180,h=-n[0].coord*d,f=Math.min(o[0],o[1]),m=Math.max(o[0],o[1]),g=e.get("clockwise"),_=1,v=n.length;_<=v;_++){var y=_===v?n[0].coord:n[_].coord,b=c++%l.length;u[b]=u[b]||[],u[b].push(new _r["a"]({shape:{cx:a.cx,cy:a.cy,r0:f,r:m,startAngle:h,endAngle:-y*d,clockwise:g},silent:!0})),h=-y*d}for(_=0;_<u.length;_++)t.add(ke["mergePath"](u[_],{style:p["i"]({fill:l[_%l.length]},s.getAreaStyle()),silent:!0}))}}},pp=dp,fp=["axisLine","axisTickLabel","axisName"],mp=["splitLine","splitArea","minorSplitLine"],gp=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.axisPointerClass="PolarAxisPointer",a}return Object(be["a"])(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var a=this._axisGroup,n=this._axisGroup=new Ee["a"];this.group.add(n);var i=t.axis,o=i.polar,r=o.getAngleAxis(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),c=r.getExtent()[0],u=i.getExtent(),d=vp(o,t,c),h=new xs["a"](t,d);p["k"](fp,h.add,h),n.add(h.getGroup()),ke["groupTransition"](a,n,t),p["k"](mp,(function(e){t.get([e,"show"])&&!i.scale.isBlank()&&_p[e](this.group,t,o,c,u,s,l)}),this)}},e.type="radiusAxis",e}(Dh["a"]),_p={splitLine:function(t,e,a,n,i,o){var r=e.getModel("splitLine"),s=r.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=0;d<o.length;d++){var h=c++%l.length;u[h]=u[h]||[],u[h].push(new Se["a"]({shape:{cx:a.cx,cy:a.cy,r:Math.max(o[d].coord,0)}}))}for(d=0;d<u.length;d++)t.add(ke["mergePath"](u[d],{style:p["i"]({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,a,n,i,o,r){if(r.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),c=[],u=0;u<r.length;u++)for(var d=0;d<r[u].length;d++)c.push(new Se["a"]({shape:{cx:a.cx,cy:a.cy,r:r[u][d].coord}}));t.add(ke["mergePath"](c,{style:p["i"]({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,a,n,i,o){if(o.length){var r=e.getModel("splitArea"),s=r.getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=o[0].coord,h=1;h<o.length;h++){var f=c++%l.length;u[f]=u[f]||[],u[f].push(new _r["a"]({shape:{cx:a.cx,cy:a.cy,r0:d,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=o[h].coord}for(h=0;h<u.length;h++)t.add(ke["mergePath"](u[h],{style:p["i"]({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function vp(t,e,a){return{position:[t.cx,t.cy],rotation:a/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var yp=gp,bp=a("ee1a");function Sp(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Op(t,e){return e.dim+t.model.componentIndex}function Tp(t,e,a){var n={},i=Ap(p["n"](e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),a=t.coordinateSystem,o=a.getBaseAxis(),r=Op(a,o),s=Sp(t),l=i[r][s],c=l.offset,u=l.width,d=a.getOtherAxis(o),h=t.coordinateSystem.cx,p=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,m=t.get("barMinAngle")||0;n[s]=n[s]||[];for(var g=e.mapDimension(d.dim),_=e.mapDimension(o.dim),v=Object(bp["c"])(e,g),y="radius"!==o.dim||!t.get("roundCap",!0),b=d.dataToCoord(0),S=0,O=e.count();S<O;S++){var T=e.get(g,S),A=e.get(_,S),x=T>=0?"p":"n",C=b;v&&(n[s][A]||(n[s][A]={p:b,n:b}),C=n[s][A][x]);var E=void 0,w=void 0,M=void 0,k=void 0;if("radius"===d.dim){var I=d.dataToCoord(T)-b,D=o.dataToCoord(A);Math.abs(I)<f&&(I=(I<0?-1:1)*f),E=C,w=C+I,M=D-c,k=M-u,v&&(n[s][A][x]=w)}else{var L=d.dataToCoord(T,y)-b,R=o.dataToCoord(A);Math.abs(L)<m&&(L=(L<0?-1:1)*m),E=R+c,w=E+u,M=C,k=C+L,v&&(n[s][A][x]=k)}e.setItemLayout(S,{cx:h,cy:p,r0:E,r:w,startAngle:-M*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:M>=k})}}}))}function Ap(t){var e={};p["k"](t,(function(t,a){var n=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),r=Op(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/n.count(),c=e[r]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=c.stacks;e[r]=c;var h=Sp(t);d[h]||c.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var p=Object(u["o"])(t.get("barWidth"),l),f=Object(u["o"])(t.get("barMaxWidth"),l),m=t.get("barGap"),g=t.get("barCategoryGap");p&&!d[h].width&&(p=Math.min(c.remainedWidth,p),d[h].width=p,c.remainedWidth-=p),f&&(d[h].maxWidth=f),null!=m&&(c.gap=m),null!=g&&(c.categoryGap=g)}));var a={};return p["k"](e,(function(t,e){a[e]={};var n=t.stacks,i=t.bandWidth,o=Object(u["o"])(t.categoryGap,i),r=Object(u["o"])(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,c=(s-o)/(l+(l-1)*r);c=Math.max(c,0),p["k"](n,(function(t,e){var a=t.maxWidth;a&&a<c&&(a=Math.min(a,s),t.width&&(a=Math.min(a,t.width)),s-=a,t.width=a,l--)})),c=(s-o)/(l+(l-1)*r),c=Math.max(c,0);var d,h=0;p["k"](n,(function(t,e){t.width||(t.width=c),d=t,h+=t.width*(1+r)})),d&&(h-=d.width*r);var f=-h/2;p["k"](n,(function(t,n){a[e][n]=a[e][n]||{offset:f,width:t.width},f+=t.width*(1+r)}))})),a}var xp=Tp,Cp={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Ep={splitNumber:5},wp=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.type="polar",e}(Zn["a"]);function Mp(t){Object(i["a"])(Fh["a"]),Dh["a"].registerAxisPointerClass("PolarAxisPointer",$h),t.registerCoordinateSystem("polar",op),t.registerComponentModel(Yh),t.registerComponentView(wp),Object(bs["a"])(t,"angle",zh,Cp),Object(bs["a"])(t,"radius",Vh,Ep),t.registerComponentView(pp),t.registerComponentView(yp),t.registerLayout(Object(p["h"])(xp,"bar"))}function kp(t,e){e=e||{};var a=t.coordinateSystem,n=t.axis,i={},o=n.position,r=n.orient,s=a.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=["vertical"===r?c.vertical[o]:l[0],"horizontal"===r?c.horizontal[o]:l[3]];var u={horizontal:0,vertical:1};i.rotation=Math.PI/2*u[r];var d={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),p["O"](e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var h=e.rotate;return null==h&&(h=t.get(["axisLabel","rotate"])),i.labelRotation="top"===o?-h:h,i.z2=1,i}var Ip=a("58df"),Dp=["axisLine","axisTickLabel","axisName"],Lp=["splitArea","splitLine"],Rp=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.axisPointerClass="SingleAxisPointer",a}return Object(be["a"])(e,t),e.prototype.render=function(e,a,n,i){var o=this.group;o.removeAll();var r=this._axisGroup;this._axisGroup=new Ee["a"];var s=kp(e),l=new xs["a"](e,s);p["k"](Dp,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),p["k"](Lp,(function(t){e.get([t,"show"])&&Np[t](this,this.group,this._axisGroup,e)}),this),ke["groupTransition"](r,this._axisGroup,e),t.prototype.render.call(this,e,a,n,i)},e.prototype.remove=function(){Object(Ip["b"])(this)},e.type="singleAxis",e}(Dh["a"]),Np={splitLine:function(t,e,a,n){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),r=o.getModel("lineStyle"),s=r.get("color");s=s instanceof Array?s:[s];for(var l=n.coordinateSystem.getRect(),c=i.isHorizontal(),u=[],d=0,h=i.getTicksCoords({tickModel:o}),f=[],m=[],g=0;g<h.length;++g){var _=i.toGlobalCoord(h[g].coord);c?(f[0]=_,f[1]=l.y,m[0]=_,m[1]=l.y+l.height):(f[0]=l.x,f[1]=_,m[0]=l.x+l.width,m[1]=_);var v=d++%s.length;u[v]=u[v]||[],u[v].push(new Re["a"]({subPixelOptimize:!0,shape:{x1:f[0],y1:f[1],x2:m[0],y2:m[1]},silent:!0}))}var y=r.getLineStyle(["color"]);for(g=0;g<u.length;++g)e.add(ke["mergePath"](u[g],{style:p["i"]({stroke:s[g%s.length]},y),silent:!0}))}},splitArea:function(t,e,a,n){Object(Ip["a"])(t,a,n,n)}},Pp=Rp,jp=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(wn["a"]);Object(p["K"])(jp,Os["a"].prototype);var $p=jp,Fp=function(t){function e(e,a,n,i,o){var r=t.call(this,e,a,n)||this;return r.type=i||"value",r.position=o||"bottom",r}return Object(be["a"])(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(es["a"]),Bp=Fp,Yp=["single"],Up=function(){function t(t,e,a){this.type="single",this.dimension="single",this.dimensions=Yp,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,a)}return t.prototype._init=function(t,e,a){var n=this.dimension,i=new Bp(n,ts["a"](t),[0,0],t.get("type"),t.get("position")),o="category"===i.type;i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Object(p["k"])(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),ts["i"](this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=Object(Fn["g"])({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,a=e.isHorizontal(),n=a?[0,t.width]:[0,t.height],i=e.reverse?1:0;e.setExtent(n[i],n[1-i]),this._updateAxisTransform(e,a?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var a=t.getExtent(),n=a[0]+a[1],i=t.isHorizontal();t.toGlobalCoord=i?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=i?function(t){return t-e}:function(t){return n-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),a=this.getAxis(),n=a.orient;return"horizontal"===n?a.contain(a.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),a=this.getRect(),n=[],i="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[i]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-i]=0===i?a.y+a.height/2:a.x+a.width/2,n},t.prototype.convertToPixel=function(t,e,a){var n=zp(e);return n===this?this.dataToPoint(a):null},t.prototype.convertFromPixel=function(t,e,a){var n=zp(e);return n===this?this.pointToData(a):null},t}();function zp(t){var e=t.seriesModel,a=t.singleAxisModel;return a&&a.coordinateSystem||e&&e.coordinateSystem}var Vp=Up;function Hp(t,e){var a=[];return t.eachComponent("singleAxis",(function(n,i){var o=new Vp(n,t,e);o.name="single_"+i,o.resize(n,e),n.coordinateSystem=o,a.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",r["b"]).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),a}var Gp={create:Hp,dimensions:Yp},Wp=Gp,Kp=["x","y"],Zp=["width","height"],qp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(be["a"])(e,t),e.prototype.makeElOption=function(t,e,a,n,i){var o=a.axis,r=o.coordinateSystem,s=Jp(r,1-Qp(o)),l=r.dataToPoint(e)[0],c=n.get("type");if(c&&"none"!==c){var u=Rh["b"](n),d=Xp[c](o,l,s);d.style=u,t.graphicKey=d.type,t.pointer=d}var h=kp(a);Rh["a"](e,t,h,a,n,i)},e.prototype.getHandleTransform=function(t,e,a){var n=kp(e,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var i=Rh["d"](e.axis,t,n);return{x:i[0],y:i[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,a,n){var i=a.axis,o=i.coordinateSystem,r=Qp(i),s=Jp(o,r),l=[t.x,t.y];l[r]+=e[r],l[r]=Math.min(s[1],l[r]),l[r]=Math.max(s[0],l[r]);var c=Jp(o,1-r),u=(c[1]+c[0])/2,d=[u,u];return d[r]=l[r],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},e}(Lh["a"]),Xp={line:function(t,e,a){var n=Rh["f"]([e,a[0]],[e,a[1]],Qp(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,a){var n=t.getBandWidth(),i=a[1]-a[0];return{type:"Rect",shape:Rh["g"]([e-n/2,a[0]],[n,i],Qp(t))}}};function Qp(t){return t.isHorizontal()?0:1}function Jp(t,e){var a=t.getRect();return[a[Kp[e]],a[Kp[e]]+a[Zp[e]]]}var tf=qp,ef=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.type="single",e}(Zn["a"]);function af(t){Object(i["a"])(Fh["a"]),Dh["a"].registerAxisPointerClass("SingleAxisPointer",tf),t.registerComponentView(ef),t.registerComponentView(Pp),t.registerComponentModel($p),Object(bs["a"])(t,"single",$p,$p.defaultOption),t.registerCoordinateSystem("single",Wp)}var nf=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.init=function(e,a,n){var i=Object(Fn["f"])(e);t.prototype.init.apply(this,arguments),of(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),of(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(wn["a"]);function of(t,e){var a,n=t.cellSize;a=p["t"](n)?n:t.cellSize=[n,n],1===a.length&&(a[1]=a[0]);var i=p["H"]([0,1],(function(t){return Object(Fn["j"])(e,t)&&(a[t]="auto"),null!=a[t]&&"auto"!==a[t]}));Object(Fn["h"])(t,e,{type:"box",ignoreSize:i})}var rf=nf,sf=a("eda2"),lf=a("ef59"),cf=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.render=function(t,e,a){var n=this.group;n.removeAll();var i=t.coordinateSystem,o=i.getRangeInfo(),r=i.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,n),this._renderLines(t,o,r,n),this._renderYearText(t,o,r,n),this._renderMonthText(t,s,r,n),this._renderWeekText(t,s,o,r,n)},e.prototype._renderDayRect=function(t,e,a){for(var n=t.coordinateSystem,i=t.getModel("itemStyle").getItemStyle(),o=n.getCellWidth(),r=n.getCellHeight(),s=e.start.time;s<=e.end.time;s=n.getNextNDay(s,1).time){var l=n.dataToRect([s],!1).tl,c=new De["a"]({shape:{x:l[0],y:l[1],width:o,height:r},cursor:"default",style:i});a.add(c)}},e.prototype._renderLines=function(t,e,a,n){var i=this,o=t.coordinateSystem,r=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=r.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=e.start,u=0;c.time<=e.end.time;u++){h(c.formatedDate),0===u&&(c=o.getDateInfo(e.start.y+"-"+e.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=o.getDateInfo(d)}function h(e){i._firstDayOfMonth.push(o.getDateInfo(e)),i._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=i._getLinePointsOfOneWeek(t,e,a);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,r,n)}h(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,a),r,n),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,a),r,n)},e.prototype._getEdgesPoints=function(t,e,a){var n=[t[0].slice(),t[t.length-1].slice()],i="horizontal"===a?0:1;return n[0][i]=n[0][i]-e/2,n[1][i]=n[1][i]+e/2,n},e.prototype._drawSplitline=function(t,e,a){var n=new Me["a"]({z2:20,shape:{points:t},style:e});a.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,e,a){for(var n=t.coordinateSystem,i=n.getDateInfo(e),o=[],r=0;r<7;r++){var s=n.getNextNDay(i.time,r),l=n.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===a?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Object(p["C"])(t)&&t?Object(sf["e"])(t,e):Object(p["w"])(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,a,n,i){var o=e[0],r=e[1],s=["center","bottom"];"bottom"===n?(r+=i,s=["center","top"]):"left"===n?o-=i:"right"===n?(o+=i,s=["center","top"]):r-=i;var l=0;return"left"!==n&&"right"!==n||(l=Math.PI/2),{rotation:l,x:o,y:r,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,a,n){var i=t.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),r=i.get("position");r||(r="horizontal"!==a?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===a?0:1,d={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},h=e.start.y;+e.end.y>+e.start.y&&(h=h+"-"+e.end.y);var p=i.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:h},g=this._formatterLabel(p,f),_=new bt["a"]({z2:30,style:Object(m["c"])(i,{text:g})});_.attr(this._yearTextPositionControl(_,d[r],a,r,o)),n.add(_)}},e.prototype._monthTextPositionControl=function(t,e,a,n,i){var o="left",r="top",s=t[0],l=t[1];return"horizontal"===a?(l+=i,e&&(o="center"),"start"===n&&(r="bottom")):(s+=i,e&&(r="middle"),"start"===n&&(o="right")),{x:s,y:l,align:o,verticalAlign:r}},e.prototype._renderMonthText=function(t,e,a,n){var i=t.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),r=i.get("margin"),s=i.get("position"),l=i.get("align"),c=[this._tlpoints,this._blpoints];o&&!Object(p["C"])(o)||(o&&(e=Object(lf["d"])(o)||e),o=e.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,d="horizontal"===a?0:1;r="start"===s?-r:r;for(var h="center"===l,f=0;f<c[u].length-1;f++){var g=c[u][f].slice(),_=this._firstDayOfMonth[f];if(h){var v=this._firstDayPoints[f];g[d]=(v[d]+c[0][f+1][d])/2}var y=i.get("formatter"),b=o[+_.m-1],S={yyyy:_.y,yy:(_.y+"").slice(2),MM:_.m,M:+_.m,nameMap:b},O=this._formatterLabel(y,S),T=new bt["a"]({z2:30,style:Object(p["m"])(Object(m["c"])(i,{text:O}),this._monthTextPositionControl(g,h,a,s,r))});n.add(T)}}},e.prototype._weekTextPositionControl=function(t,e,a,n,i){var o="center",r="middle",s=t[0],l=t[1],c="start"===a;return"horizontal"===e?(s=s+n+(c?1:-1)*i[0]/2,o=c?"right":"left"):(l=l+n+(c?1:-1)*i[1]/2,r=c?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:r}},e.prototype._renderWeekText=function(t,e,a,n,i){var o=t.getModel("dayLabel");if(o.get("show")){var r=t.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),c=o.get("margin"),d=r.getFirstDayOfWeek();if(!l||Object(p["C"])(l)){l&&(e=Object(lf["d"])(l)||e);var h=e.get(["time","dayOfWeekShort"]);l=h||Object(p["H"])(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}))}var f=r.getNextNDay(a.end.time,7-a.lweek).time,g=[r.getCellWidth(),r.getCellHeight()];c=Object(u["o"])(c,Math.min(g[1],g[0])),"start"===s&&(f=r.getNextNDay(a.start.time,-(7+a.fweek)).time,c=-c);for(var _=0;_<7;_++){var v=r.getNextNDay(f,_),y=r.dataToRect([v.time],!1).center,b=_;b=Math.abs((_+d)%7);var S=new bt["a"]({z2:30,style:Object(p["m"])(Object(m["c"])(o,{text:l[b]}),this._weekTextPositionControl(y,n,s,c,g))});i.add(S)}}},e.type="calendar",e}(Zn["a"]),uf=cf,df=864e5,hf=function(){function t(e,a,n){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){t=u["n"](t);var e=t.getFullYear(),a=t.getMonth()+1,n=a<10?"0"+a:""+a,i=t.getDate(),o=i<10?"0"+i:""+i,r=t.getDay();return r=Math.abs((r+7-this.getFirstDayOfWeek())%7),{y:e+"",m:n,d:o,day:r,time:t.getTime(),formatedDate:e+"-"+n+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),r="horizontal"===this._orient?[a,7]:[7,a];p["k"]([0,1],(function(t){c(i,t)&&(o[n[t]]=i[t]*r[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=Fn["g"](o,s);function c(t,e){return null!=t[e]&&"auto"!==t[e]}p["k"]([0,1],(function(t){c(i,t)||(i[t]=l[n[t]]/r[t])})),this._sw=i[0],this._sh=i[1]},t.prototype.dataToPoint=function(t,e){p["t"](t)&&(t=t[0]),null==e&&(e=!0);var a=this.getDateInfo(t),n=this._rangeInfo,i=a.formatedDate;if(e&&!(a.time>=n.start.time&&a.time<n.end.time+df))return[NaN,NaN];var o=a.day,r=this._getRangeInfo([n.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]:[this._rect.x+r*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var a=this.dataToPoint(t,e);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,a=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(a,e-1,n):this._getDateByWeeksAndDay(e,a-1,n)},t.prototype.convertToPixel=function(t,e,a){var n=pf(e);return n===this?n.dataToPoint(a):null},t.prototype.convertFromPixel=function(t,e,a){var n=pf(e);return n===this?n.pointToData(a):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(p["t"](e)&&1===e.length&&(e=e[0]),p["t"](e))t=e;else{var a=e.toString();if(/^\d{4}$/.test(a)&&(t=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(t=[a,a])}if(!t)return e;var r=this._getRangeInfo(t);return r.start.time>r.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,a=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];a[0].time>a[1].time&&(e=!0,a.reverse());var n=Math.floor(a[1].time/df)-Math.floor(a[0].time/df)+1,i=new Date(a[0].time),o=i.getDate(),r=a[1].date.getDate();i.setDate(o+n-1);var s=i.getDate();if(s!==r){var l=i.getTime()-a[1].time>0?1:-1;while((s=i.getDate())!==r&&(i.getTime()-a[1].time)*l>0)n-=l,i.setDate(s-l)}var c=Math.floor((n+a[0].day+6)/7),u=e?1-c:c-1;return e&&a.reverse(),{range:[a[0].formatedDate,a[1].formatedDate],start:a[0],end:a[1],allDay:n,weeks:c,nthWeek:u,fweek:a[0].day,lweek:a[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||0===t&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;var i=7*(t-1)-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},t.create=function(e,a){var n=[];return e.eachComponent("calendar",(function(i){var o=new t(i,e,a);n.push(o),i.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},t.dimensions=["time","value"],t}();function pf(t){var e=t.calendarModel,a=t.seriesModel,n=e?e.coordinateSystem:a?a.coordinateSystem:null;return n}var ff=hf;function mf(t){t.registerComponentModel(rf),t.registerComponentView(uf),t.registerCoordinateSystem("calendar",ff)}function gf(t,e){var a=t.existing;if(e.id=t.keyInfo.id,!e.type&&a&&(e.type=a.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:a&&(e.parentId=a.parentId)}e.parentOption=null}function _f(t,e){var a;return p["k"](e,(function(e){null!=t[e]&&"auto"!==t[e]&&(a=!0)})),a}function vf(t,e,a){var n=p["m"]({},a),i=t[e],o=a.$action||"merge";"merge"===o?i?(p["I"](i,n,!0),Object(Fn["h"])(i,n,{ignoreSize:!0}),Object(Fn["c"])(a,i),Sf(a,i),Sf(a,i,"shape"),Sf(a,i,"style"),Sf(a,i,"extra"),a.clipPath=i.clipPath):t[e]=n:"replace"===o?t[e]=n:"remove"===o&&i&&(t[e]=null)}var yf=["transition","enterFrom","leaveTo"],bf=yf.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Sf(t,e,a){if(a&&(!t[a]&&e[a]&&(t[a]={}),t=t[a],e=e[a]),t&&e)for(var n=a?yf:bf,i=0;i<n.length;i++){var o=n[i];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}function Of(t,e){if(t&&(t.hv=e.hv=[_f(e,["left","right"]),_f(e,["top","bottom"])],"group"===t.type)){var a=t,n=e;null==a.width&&(a.width=n.width=0),null==a.height&&(a.height=n.height=0)}}var Tf=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.preventAutoZ=!0,a}return Object(be["a"])(e,t),e.prototype.mergeOption=function(e,a){var n=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,a),this.option.elements=n},e.prototype.optionUpdated=function(t,e){var a=this.option,n=(e?a:t).elements,i=a.elements=e?[]:a.elements,o=[];this._flatten(n,o,null);var s=r["q"](i,o,"normalMerge"),l=this._elOptionsToUpdate=[];p["k"](s,(function(t,e){var a=t.newOption;a&&(l.push(a),gf(t,a),vf(i,e,a),Of(i[e],a))}),this),a.elements=p["n"](i,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,a){p["k"](t,(function(t){if(t){a&&(t.parentOption=a),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(wn["a"]),Af={path:null,compoundPath:null,group:Ee["a"],image:I["a"],text:bt["a"]},xf=r["o"](),Cf=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.init=function(){this._elMap=p["f"]()},e.prototype.render=function(t,e,a){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,a)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var a=this._elMap,n=this.group,i=t.get("z"),o=t.get("zlevel");p["k"](e,(function(e){var s=r["e"](e.id,null),l=null!=s?a.get(s):null,c=r["e"](e.parentId,null),u=null!=c?a.get(c):n,d=e.type,h=e.style;"text"===d&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var p=e.textContent,f=e.textConfig;if(h&&md(h,d,!!f,!!p)){var m=gd(h,d,!0);!f&&m.textConfig&&(f=e.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var g=If(e);var _=e.$action||"merge",v="merge"===_,y="replace"===_;if(v){var b=!l,S=l;b?S=wf(s,u,e.type,a):(S&&(xf(S).isNew=!1),Vd(S)),S&&(Cd(S,g,t,{isInit:b}),kf(S,e,i,o))}else if(y){Mf(l,e,a,t);var O=wf(s,u,e.type,a);O&&(Cd(O,g,t,{isInit:!0}),kf(O,e,i,o))}else"remove"===_&&(Ed(l,e),Mf(l,e,a,t));var T=a.get(s);if(T&&p)if(v){var A=T.getTextContent();A?A.attr(p):T.setTextContent(new bt["a"](p))}else y&&T.setTextContent(new bt["a"](p));if(T){var x=e.clipPath;if(x){var C=x.type,E=void 0;b=!1;if(v){var w=T.getClipPath();b=!w||xf(w).type!==C,E=b?Ef(C):w}else y&&(b=!0,E=Ef(C));T.setClipPath(E),Cd(E,x,t,{isInit:b}),Hd(E,x.keyframeAnimation,t)}var M=xf(T);T.setTextConfig(f),M.option=e,Df(T,t,e),ke["setTooltipConfig"]({el:T,componentModel:t,itemName:T.name,itemTooltipOption:e.tooltip}),Hd(T,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var a=t.option.elements,n=this.group,i=this._elMap,o=e.getWidth(),s=e.getHeight(),c=["x","y"],d=0;d<a.length;d++){var h=a[d],f=r["e"](h.id,null),m=null!=f?i.get(f):null;if(m&&m.isGroup){var g=m.parent,_=g===n,v=xf(m),y=xf(g);v.width=Object(u["o"])(v.option.width,_?o:y.width)||0,v.height=Object(u["o"])(v.option.height,_?s:y.height)||0}}for(d=a.length-1;d>=0;d--){h=a[d],f=r["e"](h.id,null),m=null!=f?i.get(f):null;if(m){g=m.parent,y=xf(g);var b=g===n?{width:o,height:s}:{width:y.width,height:y.height},S={},O=Fn["i"](m,h,b,null,{hv:h.hv,boundingMode:h.bounding},S);if(!xf(m).isNew&&O){for(var T=h.transition,A={},x=0;x<c.length;x++){var C=c[x],E=S[C];T&&(Md(T)||p["r"](T,C)>=0)?A[C]=E:m[C]=E}Object(l["h"])(m,A,t,0)}else m.attr(S)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(a){Mf(a,xf(a).option,e,t._lastGraphicModel)})),this._elMap=p["f"]()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Zn["a"]);function Ef(t){var e=p["q"](Af,t)?Af[t]:ke["getShapeClass"](t);var a=new e({});return xf(a).type=t,a}function wf(t,e,a,n){var i=Ef(a);return e.add(i),n.set(t,i),xf(i).id=t,xf(i).isNew=!0,i}function Mf(t,e,a,n){var i=t&&t.parent;i&&("group"===t.type&&t.traverse((function(t){Mf(t,e,a,n)})),wd(t,e,n),a.removeKey(xf(t).id))}function kf(t,e,a,n){if(!t.isGroup){var i=t;i.cursor=p["P"](e.cursor,Xa["c"].prototype.cursor),i.z=p["P"](e.z,a||0),i.zlevel=p["P"](e.zlevel,n||0);var o=e.z2;null!=o&&(i.z2=o||0)}p["k"](p["F"](e),(function(a){var n=e[a];0===a.indexOf("on")&&p["w"](n)&&(t[a]=n)})),t.draggable=e.draggable,null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function If(t){return t=p["m"]({},t),p["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Fn["a"]),(function(e){delete t[e]})),t}function Df(t,e,a){var n=Object(c["a"])(t).eventData;t.silent||t.ignore||n||(n=Object(c["a"])(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=a.info)}function Lf(t){t.registerComponentModel(Tf),t.registerComponentView(Cf),t.registerPreprocessor((function(t){var e=t.graphic;Object(p["t"])(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var Rf=a("3094"),Nf=a("2da7"),Pf=["rect","polygon","keep","clear"];function jf(t,e){var a=Object(r["r"])(t?t.brush:[]);if(a.length){var n=[];p["k"](a,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))}));var i=t&&t.toolbox;p["t"](i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var o=i.feature||(i.feature={}),s=o.brush||(o.brush={}),l=s.type||(s.type=[]);l.push.apply(l,n),$f(l),e&&!l.length&&l.push.apply(l,Pf)}}function $f(t){var e={};p["k"](t,(function(t){e[t]=1})),t.length=0,p["k"](e,(function(e,a){t.push(a)}))}var Ff=a("2b8c");function Bf(t){var e=t.brushType,a={point:function(n){return Yf[e].point(n,a,t)},rect:function(n){return Yf[e].rect(n,a,t)}};return a}var Yf={lineX:Uf(0),lineY:Uf(1),rect:{point:function(t,e,a){return t&&a.boundingRect.contain(t[0],t[1])},rect:function(t,e,a){return t&&a.boundingRect.intersect(t)}},polygon:{point:function(t,e,a){return t&&a.boundingRect.contain(t[0],t[1])&&ma(a.range,t[0],t[1])},rect:function(t,e,a){var n=a.range;if(!t||n.length<=1)return!1;var i=t.x,o=t.y,r=t.width,l=t.height,c=n[0];return!!(ma(n,i,o)||ma(n,i+r,o)||ma(n,i,o+l)||ma(n,i+r,o+l)||s["a"].create(t).contain(c[0],c[1])||Object(ke["linePolygonIntersect"])(i,o,i+r,o,n)||Object(ke["linePolygonIntersect"])(i,o,i,o+l,n)||Object(ke["linePolygonIntersect"])(i+r,o,i+r,o+l,n)||Object(ke["linePolygonIntersect"])(i,o+l,i+r,o+l,n))||void 0}}};function Uf(t){var e=["x","y"],a=["width","height"];return{point:function(e,a,n){if(e){var i=n.range,o=e[t];return zf(o,i)}},rect:function(n,i,o){if(n){var r=o.range,s=[n[e[t]],n[e[t]]+n[a[t]]];return s[1]<s[0]&&s.reverse(),zf(s[0],r)||zf(s[1],r)||zf(r[0],s)||zf(r[1],s)}}}}function zf(t,e){return e[0]<=t&&t<=e[1]}var Vf=a("bd9e"),Hf=["inBrush","outOfBrush"],Gf="__ecBrushSelect",Wf="__ecInBrushSelectEvent";function Kf(t){t.eachComponent({mainType:"brush"},(function(e){var a=e.brushTargetManager=new Vf["a"](e.option,t);a.setInputRanges(e.areas,t)}))}function Zf(t,e,a){var n,i,o=[];t.eachComponent({mainType:"brush"},(function(t){a&&"takeGlobalCursor"===a.type&&t.setBrushOption("brush"===a.key?a.brushOption:{brushType:!1})})),Kf(t),t.eachComponent({mainType:"brush"},(function(e,a){var r={brushId:e.id,brushIndex:a,brushName:e.name,areas:p["d"](e.areas),selected:[]};o.push(r);var s=e.option,l=s.brushLink,c=[],u=[],d=[],h=!1;a||(n=s.throttleType,i=s.throttleDelay);var f=p["H"](e.areas,(function(t){var e=tm[t.brushType],a=p["i"]({boundingRect:e?e(t):void 0},t);return a.selectors=Bf(a),a})),m=Ff["b"](e.option,Hf,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!c[t]}function _(t){return!!t.length}function v(t,e){var a=t.coordinateSystem;h=h||a.hasAxisBrushed(),g(e)&&a.eachActiveState(t.getData(),(function(t,e){"active"===t&&(u[e]=1)}))}function y(a,n,i){if(a.brushSelector&&!Jf(e,n)&&(p["k"](f,(function(n){e.brushTargetManager.controlSeries(n,a,t)&&i.push(n),h=h||_(i)})),g(n)&&_(i))){var o=a.getData();o.each((function(t){Qf(a,i,o,t)&&(u[t]=1)}))}}p["t"](l)&&p["k"](l,(function(t){c[t]=1})),t.eachSeries((function(t,e){var a=d[e]=[];"parallel"===t.subType?v(t,e):y(t,e,a)})),t.eachSeries((function(t,e){var a={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};r.selected.push(a);var n=d[e],i=t.getData(),o=g(e)?function(t){return u[t]?(a.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return Qf(t,n,i,e)?(a.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?h:_(n))&&Ff["a"](Hf,m,i,o)}))})),qf(e,n,i,o,a)}function qf(t,e,a,n,i){if(i){var o=t.getZr();if(!o[Wf]){o[Gf]||(o[Gf]=Xf);var r=Gr["b"](o,Gf,a,e);r(t,n)}}}function Xf(t,e){if(!t.isDisposed()){var a=t.getZr();a[Wf]=!0,t.dispatchAction({type:"brushSelect",batch:e}),a[Wf]=!1}}function Qf(t,e,a,n){for(var i=0,o=e.length;i<o;i++){var r=e[i];if(t.brushSelector(n,a,r.selectors,r))return!0}}function Jf(t,e){var a=t.option.seriesIndex;return null!=a&&"all"!==a&&(p["t"](a)?p["r"](a,e)<0:e!==a)}var tm={rect:function(t){return em(t.range)},polygon:function(t){for(var e,a=t.range,n=0,i=a.length;n<i;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=a[n];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&em(e)}};function em(t){return new s["a"](t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var am=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Cs["a"](e.getZr())).on("brush",p["c"](this._onBrush,this)).mount()},e.prototype.render=function(t,e,a,n){this.model=t,this._updateController(t,e,a,n)},e.prototype.updateTransform=function(t,e,a,n){Kf(e),this._updateController(t,e,a,n)},e.prototype.updateVisual=function(t,e,a,n){this.updateTransform(t,e,a,n)},e.prototype.updateView=function(t,e,a,n){this._updateController(t,e,a,n)},e.prototype._updateController=function(t,e,a,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:p["d"](a),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:p["d"](a),$from:e})},e.type="brush",e}(Zn["a"]),nm=am,im="#ddd",om=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.areas=[],a.brushOption={},a}return Object(be["a"])(e,t),e.prototype.optionUpdated=function(t,e){var a=this.option;!e&&Ff["d"](a,t,["inBrush","outOfBrush"]);var n=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:im},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=p["H"](t,(function(t){return rm(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=rm(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(wn["a"]);function rm(t,e){return p["I"]({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Mn["a"](t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var sm=om,lm=a("2145"),cm=["rect","polygon","lineX","lineY","keep","clear"],um=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(be["a"])(e,t),e.prototype.render=function(t,e,a){var n,i,o;e.eachComponent({mainType:"brush"},(function(t){n=t.brushType,i=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=n,this._brushMode=i,p["k"](t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===i:"clear"===e?o:e===n)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,a){this.render(t,e,a)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),a={};return p["k"](t.get("type",!0),(function(t){e[t]&&(a[t]=e[t])})),a},e.prototype.onclick=function(t,e,a){var n=this._brushType,i=this._brushMode;"clear"===a?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===a?n:n!==a&&a,brushMode:"keep"===a?"multiple"===i?"single":"multiple":i}})},e.getDefaultOption=function(t){var e={show:!0,type:cm.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(lm["a"]),dm=um;function hm(t){t.registerComponentView(nm),t.registerComponentModel(sm),t.registerPreprocessor(jf),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Zf),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},p["L"]),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},p["L"]),Object(lm["c"])("brush",dm)}var pm=a("9394"),fm=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.layoutMode="box",a}return Object(be["a"])(e,t),e.prototype.init=function(t,e,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,a=e.data||[],n=e.axisType,i=this._names=[];"category"===n?(t=[],Object(p["k"])(a,(function(e,a){var n,o=Object(r["e"])(Object(r["h"])(e),"");Object(p["A"])(e)?(n=Object(p["d"])(e),n.value=a):n=a,t.push(n),i.push(o)}))):t=a;var o={category:"ordinal",time:"time",value:"number"}[n]||"number",s=this._data=new qo["a"]([{name:"value",type:o}],this);s.initData(t,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(wn["a"]),mm=fm,gm=a("38a2"),_m=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.type="timeline.slider",e.defaultOption=Object(Za["d"])(mm.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(mm);Object(p["K"])(_m,gm["a"].prototype);var vm=_m,ym=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.type="timeline",e}(Zn["a"]),bm=ym,Sm=function(t){function e(e,a,n,i){var o=t.call(this,e,a,n)||this;return o.type=i||"value",o}return Object(be["a"])(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(es["a"]),Om=Sm,Tm=a("18c0"),Am=a("216a"),xm=a("89e3"),Cm=Math.PI,Em=Object(r["o"])(),wm=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,a){if(this.model=t,this.api=a,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,a),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(n,t);t.formatTooltip=function(t){var e=r.scale.getLabel({value:t});return Object(bn["c"])("nameValue",{noName:!0,value:e})},Object(p["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](n,i,r,t)}),this),this._renderAxisLabel(n,o,r,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var a,n=t.get(["label","position"]),i=t.get("orient"),o=km(t,e);a=null==n||"auto"===n?"horizontal"===i?o.y+o.height/2<e.getHeight()/2?"-":"+":o.x+o.width/2<e.getWidth()/2?"+":"-":Object(p["C"])(n)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:n;var r,s,l,c={horizontal:"center",vertical:a>=0||"+"===a?"left":"right"},u={horizontal:a>=0||"+"===a?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:Cm/2},h="vertical"===i?o.height:o.width,f=t.getModel("controlStyle"),m=f.get("show",!0),g=m?f.get("itemSize"):0,_=m?f.get("itemGap"):0,v=g+_,y=t.get(["label","rotate"])||0;y=y*Cm/180;var b=f.get("position",!0),S=m&&f.get("showPlayBtn",!0),O=m&&f.get("showPrevBtn",!0),T=m&&f.get("showNextBtn",!0),A=0,x=h;"left"===b||"bottom"===b?(S&&(r=[0,0],A+=v),O&&(s=[A,0],A+=v),T&&(l=[x-g,0],x-=v)):(S&&(r=[x-g,0],x-=v),O&&(s=[0,0],A+=v),T&&(l=[x-g,0],x-=v));var C=[A,x];return t.get("inverse")&&C.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:d[i],labelRotation:y,labelPosOpt:a,labelAlign:t.get(["label","align"])||c[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:r,prevBtnPosition:s,nextBtnPosition:l,axisExtent:C,controlSize:g,controlGap:_}},e.prototype._position=function(t,e){var a=this._mainGroup,n=this._labelGroup,i=t.viewRect;if("vertical"===t.orient){var o=Ne["c"](),r=i.x,s=i.y+i.height;Ne["i"](o,o,[-r,-s]),Ne["g"](o,o,-Cm/2),Ne["i"](o,o,[r,s]),i=i.clone(),i.applyTransform(o)}var l=_(i),c=_(a.getBoundingRect()),u=_(n.getBoundingRect()),d=[a.x,a.y],h=[n.x,n.y];h[0]=d[0]=l[0][0];var f=t.labelPosOpt;if(null==f||Object(p["C"])(f)){var m="+"===f?0:1;v(d,c,l,1,m),v(h,u,l,1,1-m)}else{m=f>=0?0:1;v(d,c,l,1,m),h[1]=d[1]+f}function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function _(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,a,n,i){t[n]+=a[n][i]-e[n][i]}a.setPosition(d),n.setPosition(h),a.rotation=n.rotation=t.rotation,g(a),g(n)},e.prototype._createAxis=function(t,e){var a=e.getData(),n=e.get("axisType"),i=Mm(e,n);i.getTicks=function(){return a.mapArray(["value"],(function(t){return{value:t}}))};var o=a.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var r=new Om("value",i,t.axisExtent,n);return r.model=e,r},e.prototype._createGroup=function(t){var e=this[t]=new Ee["a"];return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,a,n){var i=a.getExtent();if(n.get(["lineStyle","show"])){var o=new Re["a"]({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(p["m"])({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var r=this._progressLine=new Re["a"]({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(p["i"])({lineCap:"round",lineWidth:o.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(r)}},e.prototype._renderAxisTick=function(t,e,a,n){var i=this,o=n.getData(),r=a.scale.getTicks();this._tickSymbols=[],Object(p["k"])(r,(function(t){var r=a.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),d=s.getModel(["progress","itemStyle"]),h={x:r,y:0,onclick:Object(p["c"])(i._changeTimeline,i,t.value)},f=Dm(s,l,e,h);f.ensureState("emphasis").style=u.getItemStyle(),f.ensureState("progress").style=d.getItemStyle(),Object(Ie["o"])(f);var m=Object(c["a"])(f);s.get("tooltip")?(m.dataIndex=t.value,m.dataModel=n):m.dataIndex=m.dataModel=null,i._tickSymbols.push(f)}))},e.prototype._renderAxisLabel=function(t,e,a,n){var i=this,o=a.getLabelModel();if(o.get("show")){var r=n.getData(),s=a.getViewLabels();this._tickLabels=[],Object(p["k"])(s,(function(n){var o=n.tickValue,s=r.getItemModel(o),l=s.getModel("label"),c=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),d=a.dataToCoord(n.tickValue),h=new bt["a"]({x:d,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(p["c"])(i._changeTimeline,i,o),silent:!1,style:Object(m["c"])(l,{text:n.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});h.ensureState("emphasis").style=Object(m["c"])(c),h.ensureState("progress").style=Object(m["c"])(u),e.add(h),Object(Ie["o"])(h),Em(h).dataIndex=o,i._tickLabels.push(h)}))}},e.prototype._renderControl=function(t,e,a,n){var i=t.controlSize,o=t.rotation,r=n.getModel("controlStyle").getItemStyle(),s=n.getModel(["emphasis","controlStyle"]).getItemStyle(),l=n.getPlayState(),c=n.get("inverse",!0);function u(t,a,l,c){if(t){var u=Object(D["g"])(Object(p["P"])(n.get(["controlStyle",a+"BtnSize"]),i),i),d=[0,-u/2,u,u],h=Im(n,a+"Icon",d,{x:t[0],y:t[1],originX:i/2,originY:0,rotation:c?-o:0,rectHover:!0,style:r,onclick:l});h.ensureState("emphasis").style=s,e.add(h),Object(Ie["o"])(h)}}u(t.nextBtnPosition,"next",Object(p["c"])(this._changeTimeline,this,c?"-":"+")),u(t.prevBtnPosition,"prev",Object(p["c"])(this._changeTimeline,this,c?"+":"-")),u(t.playPosition,l?"stop":"play",Object(p["c"])(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,a,n){var i=n.getData(),o=n.getCurrentIndex(),r=i.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Object(p["c"])(s._handlePointerDrag,s),t.ondragend=Object(p["c"])(s._handlePointerDragend,s),Lm(t,s._progressLine,o,a,n,!0)},onUpdate:function(t){Lm(t,s._progressLine,o,a,n)}};this._currentPointer=Dm(r,r,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var a=this._toAxisCoord(t)[0],n=this._axis,i=u["c"](n.getExtent().slice());a>i[1]&&(a=i[1]),a<i[0]&&(a=i[0]),this._currentPointer.x=a,this._currentPointer.markRedraw(),this._progressLine.shape.x2=a,this._progressLine.dirty();var o=this._findNearestTick(a),r=this.model;(e||o!==r.getCurrentIndex()&&r.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return ke["applyTransform"](t,e,!0)},e.prototype._findNearestTick=function(t){var e,a=this.model.getData(),n=1/0,i=this._axis;return a.each(["value"],(function(a,o){var r=i.dataToCoord(a),s=Math.abs(r-t);s<n&&(n=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,a=this._tickLabels;if(e)for(var n=0;n<e.length;n++)e&&e[n]&&e[n].toggleState("progress",n<t);if(a)for(n=0;n<a.length;n++)a&&a[n]&&a[n].toggleState("progress",Em(a[n]).dataIndex<=t)},e.type="timeline.slider",e}(bm);function Mm(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Tm["a"]({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new Am["a"]({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new xm["a"]}}function km(t,e){return Fn["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function Im(t,e,a,n){var i=n.style,o=ke["createIcon"](t.get(["controlStyle",e]),n||{},new s["a"](a[0],a[1],a[2],a[3]));return i&&o.setStyle(i),o}function Dm(t,e,a,n,i,o){var r=e.get("color");if(i)i.setColor(r),a.add(i),o&&o.onUpdate(i);else{var s=t.get("symbol");i=Object(Sn["a"])(s,-1,-1,2,2,r),i.setStyle("strokeNoScale",!0),a.add(i),o&&o.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),n=Object(p["I"])({rectHover:!0,z2:100},n,!0);var c=Object(Sn["c"])(t.get("symbolSize"));n.scaleX=c[0]/2,n.scaleY=c[1]/2;var u=Object(Sn["b"])(t.get("symbolOffset"),c);u&&(n.x=(n.x||0)+u[0],n.y=(n.y||0)+u[1]);var d=t.get("symbolRotate");return n.rotation=(d||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function Lm(t,e,a,n,i,o){if(!t.dragging){var r=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",a));if(o||!r.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:r.get("animationDuration",!0),easing:r.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var Rm=wm;function Nm(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,a){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),Object(p["i"])({currentIndex:n.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var a=e.getComponent("timeline");a&&null!=t.playState&&a.setPlayState(t.playState)}))}function Pm(t){var e=t&&t.timeline;p["t"](e)||(e=e?[e]:[]),p["k"](e,(function(t){t&&jm(t)}))}function jm(t){var e=t.type,a={number:"value",time:"time"};if(a[e]&&(t.axisType=a[e],delete t.type),$m(t),Fm(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});Fm(n,"position")||(n.position=t.controlPosition),"none"!==n.position||Fm(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition}p["k"](t.data||[],(function(t){p["A"](t)&&!p["t"](t)&&(!Fm(t,"value")&&Fm(t,"name")&&(t.value=t.name),$m(t))}))}function $m(t){var e=t.itemStyle||(t.itemStyle={}),a=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},i=n.normal||(n.normal={}),o={normal:1,emphasis:1};p["k"](n,(function(t,e){o[e]||Fm(i,e)||(i[e]=t)})),a.label&&!Fm(n,"emphasis")&&(n.emphasis=a.label,delete a.label)}function Fm(t,e){return t.hasOwnProperty(e)}function Bm(t){t.registerComponentModel(vm),t.registerComponentView(Rm),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),Nm(t),t.registerPreprocessor(Pm)}var Ym=a("a0c6"),Um=a("848e"),zm=a("2449"),Vm=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(zm["a"]),Hm=Vm,Gm=a("923d"),Wm=a("88f0"),Km=a("0924"),Zm=Object(r["o"])(),qm=function(t,e,a,n){var i,o=t.getData();if(Object(p["t"])(n))i=n;else{var r=n.type;if("min"===r||"max"===r||"average"===r||"median"===r||null!=n.xAxis||null!=n.yAxis){var s=void 0,l=void 0;if(null!=n.yAxis||null!=n.xAxis)s=e.getAxis(null!=n.yAxis?"y":"x"),l=Object(p["O"])(n.yAxis,n.xAxis);else{var c=Gm["d"](n,o,e,t);s=c.valueAxis;var u=Object(bp["b"])(o,c.valueDataDim);l=Gm["e"](o,u,r)}var d="x"===s.dim?0:1,h=1-d,f=Object(p["d"])(n),m={coord:[]};f.type=null,f.coord=[],f.coord[h]=-1/0,m.coord[h]=1/0;var g=a.get("precision");g>=0&&Object(p["z"])(l)&&(l=+l.toFixed(Math.min(g,20))),f.coord[d]=m.coord[d]=l,i=[f,m,{type:r,valueIndex:n.valueIndex,value:l}]}else i=[]}var _=[Gm["c"](t,i[0]),Gm["c"](t,i[1]),Object(p["m"])({},i[2])];return _[2].type=_[2].type||null,Object(p["I"])(_[2],_[0]),Object(p["I"])(_[2],_[1]),_};function Xm(t){return!isNaN(t)&&!isFinite(t)}function Qm(t,e,a,n){var i=1-t,o=n.dimensions[t];return Xm(e[i])&&Xm(a[i])&&e[t]===a[t]&&n.getAxis(o).containData(e[t])}function Jm(t,e){if("cartesian2d"===t.type){var a=e[0].coord,n=e[1].coord;if(a&&n&&(Qm(1,a,n,t)||Qm(0,a,n,t)))return!0}return Gm["b"](t,e[0])&&Gm["b"](t,e[1])}function tg(t,e,a,n,i){var o,r=n.coordinateSystem,s=t.getItemModel(e),l=u["o"](s.get("x"),i.getWidth()),c=u["o"](s.get("y"),i.getHeight());if(isNaN(l)||isNaN(c)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=r.dimensions,h=t.get(d[0],e),p=t.get(d[1],e);o=r.dataToPoint([h,p])}if(Object(Jc["a"])(r,"cartesian2d")){var f=r.getAxis("x"),m=r.getAxis("y");d=r.dimensions;Xm(t.get(d[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[a?0:1]):Xm(t.get(d[1],e))&&(o[1]=m.toGlobalCoord(m.getExtent()[a?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];t.setItemLayout(e,o)}var eg=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.updateTransform=function(t,e,a){e.eachSeries((function(t){var e=zm["a"].getMarkerModelFromSeries(t,"markLine");if(e){var n=e.getData(),i=Zm(e).from,o=Zm(e).to;i.each((function(e){tg(i,e,!0,t,a),tg(o,e,!1,t,a)})),n.each((function(t){n.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,a,n){var i=t.coordinateSystem,o=t.id,r=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new jo);this.group.add(l.group);var u=ag(i,t,e),d=u.from,h=u.to,f=u.line;Zm(e).from=d,Zm(e).to=h,e.setData(f);var m=e.get("symbol"),g=e.get("symbolSize"),_=e.get("symbolRotate"),v=e.get("symbolOffset");function y(e,a,i){var o=e.getItemModel(a);tg(e,a,i,t,n);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Object(Km["b"])(r,"color")),e.setItemVisual(a,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(p["P"])(o.get("symbolOffset",!0),v[i?0:1]),symbolRotate:Object(p["P"])(o.get("symbolRotate",!0),_[i?0:1]),symbolSize:Object(p["P"])(o.get("symbolSize"),g[i?0:1]),symbol:Object(p["P"])(o.get("symbol",!0),m[i?0:1]),style:s})}Object(p["t"])(m)||(m=[m,m]),Object(p["t"])(g)||(g=[g,g]),Object(p["t"])(_)||(_=[_,_]),Object(p["t"])(v)||(v=[v,v]),u.from.each((function(t){y(d,t,!0),y(h,t,!1)})),f.each((function(t){var e=f.getItemModel(t).getModel("lineStyle").getLineStyle();f.setItemLayout(t,[d.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=d.getItemVisual(t,"style").fill),f.setItemVisual(t,{fromSymbolKeepAspect:d.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(t,"symbolOffset"),fromSymbolRotate:d.getItemVisual(t,"symbolRotate"),fromSymbolSize:d.getItemVisual(t,"symbolSize"),fromSymbol:d.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(f),u.line.eachItemGraphicEl((function(t,a){t.traverse((function(t){Object(c["a"])(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(Wm["a"]);function ag(t,e,a){var n;n=t?Object(p["H"])(t&&t.dimensions,(function(t){var a=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(p["m"])(Object(p["m"])({},a),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new qo["a"](n,a),o=new qo["a"](n,a),r=new qo["a"]([],a),s=Object(p["H"])(a.get("data"),Object(p["h"])(qm,e,t,a));t&&(s=Object(p["n"])(s,Object(p["h"])(Jm,t)));var l=Gm["a"](!!t,n);return i.initData(Object(p["H"])(s,(function(t){return t[0]})),null,l),o.initData(Object(p["H"])(s,(function(t){return t[1]})),null,l),r.initData(Object(p["H"])(s,(function(t){return t[2]}))),r.hasItemOption=!0,{from:i,to:o,line:r}}var ng=eg;function ig(t){t.registerComponentModel(Hm),t.registerComponentView(ng),t.registerPreprocessor((function(t){Object(Um["a"])(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var og=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(zm["a"]),rg=og,sg=a("41ef"),lg=a("b7d9"),cg=Object(r["o"])(),ug=function(t,e,a,n){var i=Gm["c"](t,n[0]),o=Gm["c"](t,n[1]),r=i.coord,s=o.coord;r[0]=Object(p["O"])(r[0],-1/0),r[1]=Object(p["O"])(r[1],-1/0),s[0]=Object(p["O"])(s[0],1/0),s[1]=Object(p["O"])(s[1],1/0);var l=Object(p["J"])([{},i,o]);return l.coord=[i.coord,o.coord],l.x0=i.x,l.y0=i.y,l.x1=o.x,l.y1=o.y,l};function dg(t){return!isNaN(t)&&!isFinite(t)}function hg(t,e,a,n){var i=1-t;return dg(e[i])&&dg(a[i])}function pg(t,e){var a=e.coord[0],n=e.coord[1];return!!(Object(Jc["a"])(t,"cartesian2d")&&a&&n&&(hg(1,a,n,t)||hg(0,a,n,t)))||(Gm["b"](t,{coord:a,x:e.x0,y:e.y0})||Gm["b"](t,{coord:n,x:e.x1,y:e.y1}))}function fg(t,e,a,n,i){var o,r=n.coordinateSystem,s=t.getItemModel(e),l=u["o"](s.get(a[0]),i.getWidth()),c=u["o"](s.get(a[1]),i.getHeight());if(isNaN(l)||isNaN(c)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(a,e));else{var d=t.get(a[0],e),h=t.get(a[1],e),p=[d,h];r.clampData&&r.clampData(p,p),o=r.dataToPoint(p,!0)}if(Object(Jc["a"])(r,"cartesian2d")){var f=r.getAxis("x"),m=r.getAxis("y");d=t.get(a[0],e),h=t.get(a[1],e);dg(d)?o[0]=f.toGlobalCoord(f.getExtent()["x0"===a[0]?0:1]):dg(h)&&(o[1]=m.toGlobalCoord(m.getExtent()["y0"===a[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];return o}var mg=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],gg=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(be["a"])(e,t),e.prototype.updateTransform=function(t,e,a){e.eachSeries((function(t){var e=zm["a"].getMarkerModelFromSeries(t,"markArea");if(e){var n=e.getData();n.each((function(e){var i=Object(p["H"])(mg,(function(i){return fg(n,e,i,t,a)}));n.setItemLayout(e,i);var o=n.getItemGraphicEl(e);o.setShape("points",i)}))}}),this)},e.prototype.renderSeries=function(t,e,a,n){var i=t.coordinateSystem,o=t.id,r=t.getData(),s=this.markerGroupMap,d=s.get(o)||s.set(o,{group:new Ee["a"]});this.group.add(d.group),this.markKeep(d);var h=_g(i,t,e);e.setData(h),h.each((function(e){var a=Object(p["H"])(mg,(function(a){return fg(h,e,a,t,n)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),d=[o.parse(h.get("x0",e)),o.parse(h.get("x1",e))],f=[s.parse(h.get("y0",e)),s.parse(h.get("y1",e))];u["c"](d),u["c"](f);var m=!(l[0]>d[1]||l[1]<d[0]||c[0]>f[1]||c[1]<f[0]),g=!m;h.setItemLayout(e,{points:a,allClipped:g});var _=h.getItemModel(e).getModel("itemStyle").getItemStyle(),v=Object(Km["b"])(r,"color");_.fill||(_.fill=v,Object(p["C"])(_.fill)&&(_.fill=sg["e"](_.fill,.4))),_.stroke||(_.stroke=v),h.setItemVisual(e,"style",_)})),h.diff(cg(d).data).add((function(t){var e=h.getItemLayout(t);if(!e.allClipped){var a=new we["a"]({shape:{points:e.points}});h.setItemGraphicEl(t,a),d.group.add(a)}})).update((function(t,a){var n=cg(d).data.getItemGraphicEl(a),i=h.getItemLayout(t);i.allClipped?n&&d.group.remove(n):(n?l["h"](n,{shape:{points:i.points}},e,t):n=new we["a"]({shape:{points:i.points}}),h.setItemGraphicEl(t,n),d.group.add(n))})).remove((function(t){var e=cg(d).data.getItemGraphicEl(t);d.group.remove(e)})).execute(),h.eachItemGraphicEl((function(t,a){var n=h.getItemModel(a),i=h.getItemVisual(a,"style");t.useStyle(h.getItemVisual(a,"style")),Object(m["g"])(t,Object(m["e"])(n),{labelFetcher:e,labelDataIndex:a,defaultText:h.getName(a)||"",inheritColor:Object(p["C"])(i.fill)?sg["e"](i.fill,1):"#000"}),Object(Ie["I"])(t,n),Object(Ie["J"])(t,null,null,n.get(["emphasis","disabled"])),Object(c["a"])(t).dataModel=e})),cg(d).data=h,d.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(Wm["a"]);function _g(t,e,a){var n,i,o=["x0","y0","x1","y1"];if(t){var r=Object(p["H"])(t&&t.dimensions,(function(t){var a=e.getData(),n=a.getDimensionInfo(a.mapDimension(t))||{};return Object(p["m"])(Object(p["m"])({},n),{name:t,ordinalMeta:null})}));i=Object(p["H"])(o,(function(t,e){return{name:t,type:r[e%2].type}})),n=new qo["a"](i,a)}else i=[{name:"value",type:"float"}],n=new qo["a"](i,a);var s=Object(p["H"])(a.get("data"),Object(p["h"])(ug,e,t,a));t&&(s=Object(p["n"])(s,Object(p["h"])(pg,t)));var l=t?function(t,e,a,n){var o=t.coord[Math.floor(n/2)][n%2];return Object(lg["d"])(o,i[n])}:function(t,e,a,n){return Object(lg["d"])(t.value,i[n])};return n.initData(s,null,l),n.hasItemOption=!0,n}var vg=gg;function yg(t){t.registerComponentModel(rg),t.registerComponentView(vg),t.registerPreprocessor((function(t){Object(Um["a"])(t.series,"markArea")&&(t.markArea=t.markArea||{})}))}var bg=a("ff32"),Sg=a("104d4"),Og=a("e1ff"),Tg=a("ac12"),Ag=a("abd2"),xg=a("7c0d"),Cg=a("c436"),Eg=a("4041"),wg={label:{enabled:!0},decal:{show:!1}},Mg=Object(r["o"])(),kg={};function Ig(t,e){var a=t.getModel("aria");if(a.get("enabled")){var n=p["d"](wg);p["I"](n.label,t.getLocaleModel().get("aria"),!1),p["I"](a.option,n,!1),i(),o()}function i(){var e=a.getModel("decal"),n=e.get("show");if(n){var i=p["f"]();t.eachSeries((function(t){if(!t.isColorBySeries()){var e=i.get(t.type);e||(e={},i.set(t.type,e)),Mg(t).scope=e}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(p["w"](e.enableAriaDecal))e.enableAriaDecal();else{var a=e.getData();if(e.isColorBySeries()){var n=Object(Eg["b"])(e.ecModel,e.name,kg,t.getSeriesCount()),i=a.getVisual("decal");a.setVisual("decal",c(i,n))}else{var o=e.getRawData(),r={},s=Mg(e).scope;a.each((function(t){var e=a.getRawIndex(t);r[e]=t}));var l=o.count();o.each((function(t){var n=r[t],i=o.getName(t)||t+"",u=Object(Eg["b"])(e.ecModel,i,s,l),d=a.getItemVisual(n,"decal");a.setItemVisual(n,"decal",c(d,u))}))}}function c(t,e){var a=t?p["m"](p["m"]({},e),t):e;return a.dirty=!0,a}}))}}function o(){var n=t.getLocaleModel().get("aria"),i=a.getModel("label");if(i.option=p["i"](i.option,n),i.get("enabled")){var o=e.getZr().dom;if(i.get("description"))o.setAttribute("aria-label",i.get("description"));else{var c,u=t.getSeriesCount(),d=i.get(["data","maxCount"])||10,h=i.get(["series","maxCount"])||10,f=Math.min(u,h);if(!(u<1)){var m=s();if(m){var g=i.get(["general","withTitle"]);c=r(g,{title:m})}else c=i.get(["general","withoutTitle"]);var _=[],v=u>1?i.get(["series","multiple","prefix"]):i.get(["series","single","prefix"]);c+=r(v,{seriesCount:u}),t.eachSeries((function(t,e){if(e<f){var a=void 0,n=t.get("name"),o=n?"withName":"withoutName";a=u>1?i.get(["series","multiple",o]):i.get(["series","single",o]),a=r(a,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:l(t.subType)});var s=t.getData();if(s.count()>d){var c=i.get(["data","partialData"]);a+=r(c,{displayCnt:d})}else a+=i.get(["data","allData"]);for(var h=i.get(["data","separator","middle"]),p=i.get(["data","separator","end"]),m=[],g=0;g<s.count();g++)if(g<d){var v=s.getName(g),y=s.getValues(g),b=i.get(["data",v?"withName":"withoutName"]);m.push(r(b,{name:v,value:y.join(h)}))}a+=m.join(h)+p,_.push(a)}}));var y=i.getModel(["series","multiple","separator"]),b=y.get("middle"),S=y.get("end");c+=_.join(b)+S,o.setAttribute("aria-label",c)}}}}function r(t,e){if(!p["C"](t))return t;var a=t;return p["k"](e,(function(t,e){a=a.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),a}function s(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}function l(e){return t.getLocaleModel().get(["series","typeNames"])[e]||"自定义图"}}function Dg(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},p["k"](["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}function Lg(t){t.registerPreprocessor(Dg),t.registerVisual(t.PRIORITY.VISUAL.ARIA,Ig)}var Rg={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Ng=function(){function t(t){var e=this._condVal=Object(p["C"])(t)?new RegExp(t):Object(p["B"])(t)?t:null;if(null==e){var a="";0,Object(Pl["c"])(a)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(p["C"])(e)?this._condVal.test(t):!!Object(p["z"])(e)&&this._condVal.test(t+"")},t}(),Pg=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),jg=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),$g=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),Fg=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),Bg=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,a=e(this.valueGetterParam),n=t?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:a))return!1;return!0},t}();function Yg(t,e){if(!0===t||!1===t){var a=new Pg;return a.value=t,a}var n="";return Hg(t)||Object(Pl["c"])(n),t.and?Ug("and",t,e):t.or?Ug("or",t,e):t.not?zg(t,e):Vg(t,e)}function Ug(t,e,a){var n=e[t],i="";Object(p["t"])(n)||Object(Pl["c"])(i),n.length||Object(Pl["c"])(i);var o="and"===t?new jg:new $g;return o.children=Object(p["H"])(n,(function(t){return Yg(t,a)})),o.children.length||Object(Pl["c"])(i),o}function zg(t,e){var a=t.not,n="";Hg(a)||Object(Pl["c"])(n);var i=new Fg;return i.child=Yg(a,e),i.child||Object(Pl["c"])(n),i}function Vg(t,e){for(var a="",n=e.prepareGetValue(t),i=[],o=Object(p["F"])(t),r=t.parser,s=r?Object(lg["c"])(r):null,l=0;l<o.length;l++){var c=o[l];if("parser"!==c&&!e.valueGetterAttrMap.get(c)){var u=Object(p["q"])(Rg,c)?Rg[c]:c,d=t[c],h=s?s(d):d,f=Object(lg["b"])(u,h)||"reg"===u&&new Ng(h);f||Object(Pl["c"])(a),i.push(f)}}i.length||Object(Pl["c"])(a);var m=new Bg;return m.valueGetterParam=n,m.valueParser=s,m.getValue=e.getValue,m.subCondList=i,m}function Hg(t){return Object(p["A"])(t)&&!Object(p["u"])(t)}var Gg=function(){function t(t,e){this._cond=Yg(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function Wg(t,e){return new Gg(t,e)}var Kg={type:"echarts:filter",transform:function(t){for(var e,a=t.upstream,n=Wg(t.config,{valueGetterAttrMap:Object(p["f"])({dimension:!0}),prepareGetValue:function(t){var e="",n=t.dimension;Object(p["q"])(t,"dimension")||Object(Pl["c"])(e);var i=a.getDimensionInfo(n);return i||Object(Pl["c"])(e),{dimIdx:i.index}},getValue:function(t){return a.retrieveValueFromItem(e,t.dimIdx)}}),i=[],o=0,r=a.count();o<r;o++)e=a.getRawDataItem(o),n.evaluate()&&i.push(e);return{data:i}}};var Zg={type:"echarts:sort",transform:function(t){var e=t.upstream,a=t.config,n="",i=Object(r["r"])(a);i.length||Object(Pl["c"])(n);var o=[];Object(p["k"])(i,(function(t){var a=t.dimension,i=t.order,r=t.parser,s=t.incomparable;if(null==a&&Object(Pl["c"])(n),"asc"!==i&&"desc"!==i&&Object(Pl["c"])(n),s&&"min"!==s&&"max"!==s){var l="";0,Object(Pl["c"])(l)}if("asc"!==i&&"desc"!==i){var c="";0,Object(Pl["c"])(c)}var u=e.getDimensionInfo(a);u||Object(Pl["c"])(n);var d=r?Object(lg["c"])(r):null;r&&!d&&Object(Pl["c"])(n),o.push({dimIdx:u.index,parser:d,comparator:new lg["a"](i,s)})}));var s=e.sourceFormat;s!==jl["c"]&&s!==jl["e"]&&Object(Pl["c"])(n);for(var l=[],c=0,u=e.count();c<u;c++)l.push(e.getRawDataItem(c));return l.sort((function(t,a){for(var n=0;n<o.length;n++){var i=o[n],r=e.retrieveValueFromItem(t,i.dimIdx),s=e.retrieveValueFromItem(a,i.dimIdx);i.parser&&(r=i.parser(r),s=i.parser(s));var l=i.comparator.evaluate(r,s);if(0!==l)return l}return 0})),{data:l}}};function qg(t){t.registerTransform(Kg),t.registerTransform(Zg)}var Xg=a("f72b"),Qg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return Object(be["a"])(e,t),e.prototype.init=function(e,a,n){t.prototype.init.call(this,e,a,n),this._sourceManager=new Xg["a"](this),Object(Xg["b"])(this)},e.prototype.mergeOption=function(e,a){t.prototype.mergeOption.call(this,e,a),Object(Xg["b"])(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:jl["a"]},e}(wn["a"]),Jg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return Object(be["a"])(e,t),e.type="dataset",e}(Zn["a"]);function t_(t){t.registerComponentModel(Qg),t.registerComponentView(Jg)}var e_=a("c55a");Object(i["a"])([w["a"]]),Object(i["a"])([fe]),Object(i["a"])([me["a"],ge["a"],_e["a"],ve["a"],ye["a"],ei,Fi,Bi["a"],pr,xr,Cr["a"],$s,_l,Fl,mc,Ac,Zc,su,Bu,Ju,td["a"],kh]),Object(i["a"])(Ih["a"]),Object(i["a"])(Mp),Object(i["a"])(ti),Object(i["a"])(af),Object(i["a"])(js),Object(i["a"])(mf),Object(i["a"])(Lf),Object(i["a"])(Rf["a"]),Object(i["a"])(Nf["a"]),Object(i["a"])(Fh["a"]),Object(i["a"])(hm),Object(i["a"])(pm["a"]),Object(i["a"])(Bm),Object(i["a"])(Ym["a"]),Object(i["a"])(ig),Object(i["a"])(yg),Object(i["a"])(bg["a"]),Object(i["a"])(Sg["a"]),Object(i["a"])(Og["a"]),Object(i["a"])(Tg["a"]),Object(i["a"])(Ag["a"]),Object(i["a"])(xg["a"]),Object(i["a"])(Cg["a"]),Object(i["a"])(Lg),Object(i["a"])(qg),Object(i["a"])(t_),Object(i["a"])(e_["a"]),Object(i["a"])(E);var a_,n_=a("8f05"),i_=a("493d"),o_=a("aea7"),r_={},s_=0,l_=/^\d{4}\-\d{2}\-\d{2}$/,c_=/^\d{4}\-\d{2}\-\d{2}\s\~\s\d{4}\-\d{2}\-\d{2}$/;window.addEventListener("resize",(function(){a_&&(window.clearTimeout(a_),a_=void 0),a_=window.setTimeout((function(t){Object.keys(r_).forEach((function(t){r_[t]&&r_[t].getDom().offsetParent&&r_[t].resize()}))}),200)}));var u_=function(t){return l_.test(t)?t.substr(5):c_.test(t)?t.substr(5,5):t},d_=function(t,e,a,n,i){var o={top:20};return o[["left","right"][+(t[0]>i.viewSize[0]/2)]]=10+[t[0],i.viewSize[0]-t[0]][+(t[0]>i.viewSize[0]/2)],o},h_=function(t,e,a){var n=(t||"")+ ++s_;return r_[n]=o["c"](e,a||"walden"),r_[n].setOption({legend:{right:55,left:"auto"},graphic:[{type:"image",id:"logo",right:70,bottom:50,z:-10,silence:!0,cursor:"default",style:{image:"/static/images/watermark.png",width:216,height:44}}]}),{instance:r_[n],key:n}},p_=function(t){r_[t]&&o["b"](r_[t]),delete r_[t]},f_=function(t){var e={grid:{},title:{text:t.title},legend:{show:t.series.length>1,data:t.series.map((function(t){return t.seriesName}))},xAxis:Object.assign({type:"category",data:t.categories},t.showAllTick?{axisLabel:{interval:0,formatter:u_}}:{axisLabel:{interval:Object(n_["a"])(t.categories.length),formatter:u_}},t.markWeekend||void 0===t.markWeekend?{splitArea:{show:!0,interval:0,areaStyle:{color:Object(i_["a"])(t.categories)}}}:{},{axisLine:{onZero:void 0===t.onZero?void 0===t.inverse||t.inverse:t.onZero}}),yAxis:{type:"value",inverse:void 0!==t.inverse&&t.inverse,title:{text:t.yAxisTitle||""},axisLabel:{formatter:function(e,a){if(t.isPercent)return e+"%";var n=e,i=Math.abs(e),o=0===e?1:e/i;return i<1e3||(i<1e6?n=o*(i/1e3).toFixed(2)+"K":i<1e9&&(n=o*(i/1e6).toFixed(2)+"M")),n}}},series:t.series.map((function(e){return t.memos&&(e.data=e.data.map((function(e,a){return t.memos[t.categories[a]]&&Object.assign(e,{itemStyle:{color:"red"}}),e}))),Object.assign({name:e.seriesName,type:e.type||"line",data:e.data,itemStyle:e.itemStyle},e.color?{itemStyle:Object(n["a"])(Object(n["a"])({},e.itemStyle),{},{color:e.color}),lineStyle:Object(n["a"])(Object(n["a"])({},e.lineStyle),{},{color:e.color})}:{},e.barWidth?{barWidth:e.barWidth}:{})})),tooltip:t.tooltip?t.tooltip:{trigger:"axis",position:d_,formatter:function(e){var a=e[0].name,n=e[0].name;(t.markWeekend||void 0===t.markWeekend)&&(6===new Date(a).getDay()?n+="("+o_["LOCALE_DATA"]._COMMON_SATURDAY+")":0===new Date(a).getDay()&&(n+="("+o_["LOCALE_DATA"]._COMMON_SUNDAY+")"));var i=o_["LOCALE_DATA"]._TREND_DATE+": "+n;return e.forEach((function(e,a){(t.series[a].isPercent||void 0===t.series[a].isPercent&&t.isPercent)&&"NA"!==e.value?i+="<br/>"+e.seriesName+": "+e.value+"%":i+="<br/>"+e.seriesName+": "+e.value})),t.memos&&(i+="<br/>"+o_["LOCALE_DATA"]._TREND_NOTE+': <span style="display: inline-block; width: 300px;white-space: normal; word-wrap: break-word; word-break: break-all; vertical-align: top; color: red;">'+((t.memos[t.categories[e[0].dataIndex]]||{}).content||"")+"</span>"),i},extraCssText:"text-align: left"}};return t.withoutTitle&&(e.title.show=!1,e.grid.top=20),e}},"6b39":function(t,e,a){},"6d51":function(t,e,a){},"6f11":function(t,e,a){},"700c":function(t,e,a){"use strict";a("5290")},7018:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"deep-loading",rawName:"v-deep-loading",value:t.customLoading||t.loading,expression:"customLoading || loading"}],staticClass:"nature-slider-wrapper",class:{onlyOneAsinShowDetailWrap:1===t.finalAsins.length}},["INACTIVE"===t.status?a("div",{staticClass:"nature-slider-wrapper__empty"},[t._v(" "+t._s(t.$t("global_nodata"))+" ")]):1===t.finalAsins.length&&t.asinInfo.title?a("div",{staticClass:"onlyOneAsinShowDetailContentWrap"},[a("product-info-table-column",{attrs:{showPositionLeft:"",noGo:"",showUrlBtn:"",showUrlBtnIcon:"",showShop:"",asinKey:"ASIN",marketplaceId:t.marketplaceId,entity:{asin:t.finalAsins[0].asin,title:t.asinInfo.title,imageUrl:t.finalAsins[0].imageUrl},tipPlacement:"right","key-map":{}}})],1):t._l(t.finalAsins,(function(e){return a("div",{key:e.asin,staticClass:"nature-slider",class:{"nature-slider--chosen":t.checked===e.asin}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.checked,expression:"checked"}],attrs:{id:e.asin,name:"asinlist",type:"radio"},domProps:{value:e.asin,checked:t._q(t.checked,e.asin)},on:{change:function(a){t.checked=e.asin}}}),a("label",{attrs:{for:e.asin},on:{click:function(a){return t.chooseAsin(e)}}},[a("b-form-radio-group",{staticStyle:{"pointer-events":"none"},attrs:{id:"radio-group"+e.asin,name:"radio-sub-component"+e.asin},model:{value:t.radioTemp,callback:function(e){t.radioTemp=e},expression:"radioTemp"}},[t.checked===e.asin?a("b-form-radio",{attrs:{value:"chosen"}}):a("b-form-radio",{attrs:{value:"unChosen"}})],1),a("div",{staticClass:"nature-slider__pic"},[a("img",{attrs:{src:e.imageUrl,alt:""}})]),a("div",{staticClass:"nature-slider__main"},[a("span",{staticClass:"nature-slider__title"},[t._v(t._s(t.$t("_PACKAGE_DESCRIPTOR_USAGE_QUANTITY_KEYWORDS",{num:e.searchTermNumber})))]),a("span",{staticClass:"nature-slider__asin"},[t._v(" ASIN:"+t._s(e.asin)+" ")])])],1)])}))],2)},i=[],o=a("1da1"),r=(a("96cf"),a("a7c5")),s=a("d771"),l={name:"NatureWordAsinSlider",props:{asinInfo:{default:function(){return{}}},marketplaceId:{type:String,default:""},parentAsin:{type:String,default:""},customLoading:{type:Boolean,default:!1},diyAsins:{type:Boolean,default:!1},customAsins:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1,radioTemp:"chosen",checked:"",asins:[],status:"ENABLE",variationType:"PARENT"}},computed:{finalAsins:function(){return this.diyAsins?this.customAsins:this.asins}},methods:{chooseAsin:function(t){this.checked=t.asin,this.$emit("chosen",t)},getAsins:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={marketplaceId:t.marketplaceId,asin:t.parentAsin},t.loading=!0,e.next=4,Object(s["j"])(a);case 4:n=e.sent,t.loading=!1,i=n.status,o=n.content,1===i&&(t.status=o.status,t.variationType=o.variationType,t.asins=o.asins,t.asins.length&&t.chooseAsin(t.asins[0]));case 8:case"end":return e.stop()}}),e)})))()}},mounted:function(){this.diyAsins||this.getAsins()},watch:{parentAsin:function(t){t&&(this.diyAsins||this.getAsins())},customAsins:function(t){this.diyAsins&&t&&t.length&&this.chooseAsin(t[0])}},components:{productInfoTableColumn:r["a"]}},c=l,u=(a("30d1"),a("2877")),d=Object(u["a"])(c,n,i,!1,null,null,null);e["a"]=d.exports},"70c1":function(t,e,a){"use strict";a("a782")},7212:function(t,e,a){
/*!
 * vue-awesome-swiper v4.1.1
 * Copyright (c) Surmon. All rights reserved.
 * Released under the MIT License.
 * Surmon <https://github.com/surmon-china>
 */
(function(t,n){n(e,a("b619"),a("2b0e"))})(0,(function(t,e,a){"use strict";var n;e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e,a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a["default"]:a,function(t){t["SwiperComponent"]="Swiper",t["SwiperSlideComponent"]="SwiperSlide",t["SwiperDirective"]="swiper",t["SwiperInstance"]="$swiper"}(n||(n={}));var i,o,r=Object.freeze({containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide"});(function(t){t["Ready"]="ready",t["ClickSlide"]="clickSlide"})(i||(i={})),function(t){t["AutoUpdate"]="autoUpdate",t["AutoDestroy"]="autoDestroy",t["DeleteInstanceOnDestroy"]="deleteInstanceOnDestroy",t["CleanupStylesOnDestroy"]="cleanupStylesOnDestroy"}(o||(o={}));var s=["init","beforeDestroy","slideChange","slideChangeTransitionStart","slideChangeTransitionEnd","slideNextTransitionStart","slideNextTransitionEnd","slidePrevTransitionStart","slidePrevTransitionEnd","transitionStart","transitionEnd","touchStart","touchMove","touchMoveOpposite","sliderMove","touchEnd","click","tap","doubleTap","imagesReady","progress","reachBeginning","reachEnd","fromEdge","setTranslate","setTransition","resize","observerUpdate","beforeLoopFix","loopFix"];
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function l(){for(var t=0,e=0,a=arguments.length;e<a;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<a;e++)for(var o=arguments[e],r=0,s=o.length;r<s;r++,i++)n[i]=o[r];return n}var c,u=function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()},d=function(t,e,a){var n,o,r;if(t&&!t.destroyed){var s=(null===(n=e.composedPath)||void 0===n?void 0:n.call(e))||e.path;if((null===e||void 0===e?void 0:e.target)&&s){var l=Array.from(t.slides),c=Array.from(s);if(l.includes(e.target)||c.some((function(t){return l.includes(t)}))){var d=t.clickedIndex,h=Number(null===(r=null===(o=t.clickedSlide)||void 0===o?void 0:o.dataset)||void 0===r?void 0:r.swiperSlideIndex),p=Number.isInteger(h)?h:null;a(i.ClickSlide,d,p),a(u(i.ClickSlide),d,p)}}}},h=function(t,e){s.forEach((function(a){t.on(a,(function(){for(var t=arguments,n=[],i=0;i<arguments.length;i++)n[i]=t[i];e.apply(void 0,l([a],n));var o=u(a);o!==a&&e.apply(void 0,l([o],n))}))}))},p="instanceName";function f(t,e){var a=function(t,e){var a,n,i,o,r=null===(n=null===(a=t.data)||void 0===a?void 0:a.attrs)||void 0===n?void 0:n[e];return void 0!==r?r:null===(o=null===(i=t.data)||void 0===i?void 0:i.attrs)||void 0===o?void 0:o[u(e)]},s=function(t,e,i){return e.arg||a(i,p)||t.id||n.SwiperInstance},l=function(t,e,a){var n=s(t,e,a);return a.context[n]||null},c=function(t){return t.value||e},f=function(t){return[!0,void 0,null,""].includes(t)},m=function(t){var e,a,n=(null===(e=t.data)||void 0===e?void 0:e.on)||(null===(a=t.componentOptions)||void 0===a?void 0:a.listeners);return function(t){for(var e,a=arguments,i=[],o=1;o<arguments.length;o++)i[o-1]=a[o];var r=null===(e=n)||void 0===e?void 0:e[t];r&&r.fns.apply(r,i)}};return{bind:function(t,e,a){-1===t.className.indexOf(r.containerClass)&&(t.className+=(t.className?" ":"")+r.containerClass),t.addEventListener("click",(function(n){var i=m(a),o=l(t,e,a);d(o,n,i)}))},inserted:function(e,a,n){var o=n.context,r=c(a),l=s(e,a,n),u=m(n),d=o,p=null===d||void 0===d?void 0:d[l];p&&!p.destroyed||(p=new t(e,r),d[l]=p,h(p,u),u(i.Ready,p))},componentUpdated:function(t,e,n){var i,r,s,u,d,h,p,m,g,_,v,y,b=a(n,o.AutoUpdate);if(f(b)){var S=l(t,e,n);if(S){var O=c(e),T=O.loop;T&&(null===(r=null===(i=S)||void 0===i?void 0:i.loopDestroy)||void 0===r||r.call(i)),null===(s=null===S||void 0===S?void 0:S.update)||void 0===s||s.call(S),null===(d=null===(u=S.navigation)||void 0===u?void 0:u.update)||void 0===d||d.call(u),null===(p=null===(h=S.pagination)||void 0===h?void 0:h.render)||void 0===p||p.call(h),null===(g=null===(m=S.pagination)||void 0===m?void 0:m.update)||void 0===g||g.call(m),T&&(null===(v=null===(_=S)||void 0===_?void 0:_.loopCreate)||void 0===v||v.call(_),null===(y=null===S||void 0===S?void 0:S.update)||void 0===y||y.call(S))}}},unbind:function(t,e,n){var i,r=a(n,o.AutoDestroy);if(f(r)){var s=l(t,e,n);s&&s.initialized&&(null===(i=null===s||void 0===s?void 0:s.destroy)||void 0===i||i.call(s,f(a(n,o.DeleteInstanceOnDestroy)),f(a(n,o.CleanupStylesOnDestroy))))}}}}function m(t){var e;return a.extend({name:n.SwiperComponent,props:(e={defaultOptions:{type:Object,required:!1,default:function(){return{}}},options:{type:Object,required:!1}},e[o.AutoUpdate]={type:Boolean,default:!0},e[o.AutoDestroy]={type:Boolean,default:!0},e[o.DeleteInstanceOnDestroy]={type:Boolean,required:!1,default:!0},e[o.CleanupStylesOnDestroy]={type:Boolean,required:!1,default:!0},e),data:function(){var t;return t={},t[n.SwiperInstance]=null,t},computed:{swiperInstance:{cache:!1,set:function(t){this[n.SwiperInstance]=t},get:function(){return this[n.SwiperInstance]}},swiperOptions:function(){return this.options||this.defaultOptions},wrapperClass:function(){return this.swiperOptions.wrapperClass||r.wrapperClass}},methods:{handleSwiperClick:function(t){d(this.swiperInstance,t,this.$emit.bind(this))},autoReLoopSwiper:function(){var t,e;if(this.swiperInstance&&this.swiperOptions.loop){var a=this.swiperInstance;null===(t=null===a||void 0===a?void 0:a.loopDestroy)||void 0===t||t.call(a),null===(e=null===a||void 0===a?void 0:a.loopCreate)||void 0===e||e.call(a)}},updateSwiper:function(){var t,e,a,n,i,r,s,l;this[o.AutoUpdate]&&this.swiperInstance&&(this.autoReLoopSwiper(),null===(e=null===(t=this.swiperInstance)||void 0===t?void 0:t.update)||void 0===e||e.call(t),null===(n=null===(a=this.swiperInstance.navigation)||void 0===a?void 0:a.update)||void 0===n||n.call(a),null===(r=null===(i=this.swiperInstance.pagination)||void 0===i?void 0:i.render)||void 0===r||r.call(i),null===(l=null===(s=this.swiperInstance.pagination)||void 0===s?void 0:s.update)||void 0===l||l.call(s))},destroySwiper:function(){var t,e;this[o.AutoDestroy]&&this.swiperInstance&&this.swiperInstance.initialized&&(null===(e=null===(t=this.swiperInstance)||void 0===t?void 0:t.destroy)||void 0===e||e.call(t,this[o.DeleteInstanceOnDestroy],this[o.CleanupStylesOnDestroy]))},initSwiper:function(){this.swiperInstance=new t(this.$el,this.swiperOptions),h(this.swiperInstance,this.$emit.bind(this)),this.$emit(i.Ready,this.swiperInstance)}},mounted:function(){this.swiperInstance||this.initSwiper()},activated:function(){this.updateSwiper()},updated:function(){this.updateSwiper()},beforeDestroy:function(){this.$nextTick(this.destroySwiper)},render:function(t){return t("div",{staticClass:r.containerClass,on:{click:this.handleSwiperClick}},[this.$slots[c.ParallaxBg],t("div",{class:this.wrapperClass},this.$slots.default),this.$slots[c.Pagination],this.$slots[c.PrevButton],this.$slots[c.NextButton],this.$slots[c.Scrollbar]])}})}(function(t){t["ParallaxBg"]="parallax-bg",t["Pagination"]="pagination",t["Scrollbar"]="scrollbar",t["PrevButton"]="button-prev",t["NextButton"]="button-next"})(c||(c={}));var g=a.extend({name:n.SwiperSlideComponent,computed:{slideClass:function(){var t,e;return(null===(e=null===(t=this.$parent)||void 0===t?void 0:t.swiperOptions)||void 0===e?void 0:e.slideClass)||r.slideClass}},methods:{update:function(){var t,e=this.$parent;e[o.AutoUpdate]&&(null===(t=null===e||void 0===e?void 0:e.swiperInstance)||void 0===t||t.update())}},mounted:function(){this.update()},updated:function(){this.update()},render:function(t){return t("div",{class:this.slideClass},this.$slots.default)}}),_=function(t){var e=function(a,i){if(!e.installed){var o=m(t);i&&(o.options.props.defaultOptions.default=function(){return i}),a.component(n.SwiperComponent,o),a.component(n.SwiperSlideComponent,g),a.directive(n.SwiperDirective,f(t,i)),e.installed=!0}};return e};function v(t){var e;return e={version:"4.1.1",install:_(t),directive:f(t)},e[n.SwiperComponent]=m(t),e[n.SwiperSlideComponent]=g,e}var y=v(e),b=y.version,S=y.install,O=y.directive,T=y.Swiper,A=y.SwiperSlide;t.Swiper=T,t.SwiperSlide=A,t.default=y,t.directive=O,t.install=S,t.version=b,Object.defineProperty(t,"__esModule",{value:!0})}))},7261:function(t,e,a){},7410:function(t,e,a){"use strict";a("2a2d")},"74d6":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD/SURBVHgBxVPLDYJAEF1gDxwpATvQDuyAEryQEG7SASV4IyQkYCXagXbAlsAVCOAbBIMLyiYenGTDG2be/HZWY5AkSQ5N05wALaYmwjCM0HXdMycN5LBt253v+0KFHUWRjc8N5xkAYhM5juOc8ApfeJ63gW9fLZeMNozaNzaI3VTX2Y/y/wDyDITc44KI2Z8pKU1Ta4plXebMWqiq6gLjkXBd12lZlhlh3H0IW85WWmBYqMA0zTthLFgAfcyaAV9l/1kFnHMHmfaEsa4O9B7rur7FcVYDIOtrkbque1sq6MtvRWHyHzljBcXwQJRk8BWE+yHS4NAfTd9WjFEQh8ADjvx51d7ctHwAAAAASUVORK5CYII="},"77c6":function(t,e,a){"use strict";var n=a("acb0"),i=a("d80f"),o=a("bbf0"),r=a("2ef0"),s=a.n(r);e["a"]={data:function(){return{LARGE_MARKETPLACE_ID_MAP:i["k"],natureItem:null,showNatureSlide:!1,natureFullscreen:!1}},components:{NatureWordSlidePop:n["a"]},computed:{singleMarketplaceId:function(){return this.$store.getters[o["f"]]&&this.$store.getters[o["f"]].marketplaceId}},methods:{handleChosen:function(t){if(this.natureItem){var e=s.a.cloneDeep(this.natureItem);e.asin=t.asin,e.canRefresh=!0,this.natureItem=e}},isShowNatureWord:function(t){var e=t.marketplaceId;return e||(e=this.singleMarketplaceId),i["k"][e]},setNatureFullScreen:function(t){this.natureFullscreen=t},showNatureSlideFn:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!this.showNatureSlide;this.showNatureSlide=e,e&&(t.marketplaceId||(t.marketplaceId=this.singleMarketplaceId),this.natureItem=t)}},watch:{showNatureSlide:function(t){t&&this.showSlide&&(this.showSlide=!1)},showSlide:function(t){t&&this.showNatureSlide&&(this.showNatureSlide=!1)}}}},"78eb":function(t,e,a){},"7aad":function(t,e,a){"use strict";var n=a("2909"),i=(a("99af"),a("ac1f"),a("466d"),a("d3b7"),a("25f0"),a("4de4"),["43,127,250","221,92,156","255,159,67","0,207,232","115,103,240","253,126,20","32,201,151","170,124,248","234,84,85","40,199,111","100,158,244","220,123,171","245,187,132","92,216,231","161,154,236","244,168,104","111,213,183","153,102,237","232,142,143","116,211,159","165,194,237","225,176,201","237,209,181","161,223,231","195,192,233","237,199,167","171,221,206","192,166,234","231,186,186","173,221,194"]),o=["255, 159, 67","0, 207, 232","32, 201, 151","170, 124, 248","100, 158, 244","237, 199, 167","242, 213, 227","242, 213, 227"],r=["#007BFF","#4807B1","#E83E8C","#7367F0","#EA5455","#FF8B2B","#FFBD7D","#1DDD72","#20C997","#00CFE8"];function s(t,e){var a=Math.floor(Math.random()*(e-t+1))+t;return a}e["a"]={color:function(t,e){return t<i.length-1?"rgba(".concat(i[t],", ").concat(e||1,")"):"rgba(".concat(s(0,255),", ").concat(s(0,255),", ").concat(s(0,255),", ").concat(e||1,")")},colorLight:function(t,e){return t<=o.length-1?"rgba(".concat(o[t],", ").concat(e||1,")"):"rgba(".concat(o[t-o.length+1],", ").concat(s(20,100)/100,")")},opaqueColor:function(t){var e="rgb(255, 255, 255)",a=t.match(/(\d+(\.\d+)?)/g),n=parseInt(a[0]),i=parseInt(a[1]),o=parseInt(a[2]),r=parseFloat(a[3]),s=Math.round((1-r)*parseInt(e.match(/(\d+)/g)[0])+r*n),l=Math.round((1-r)*parseInt(e.match(/(\d+)/g)[1])+r*i),c=Math.round((1-r)*parseInt(e.match(/(\d+)/g)[2])+r*o);return"rgb("+s+", "+l+", "+c+")"},getRandomColor:function(t){for(var e=[],a=0;a<t;a++)e.push("#".concat(Math.random().toString(16).substring(2,8)));return e},getColors:function(t){return t<r.length?r.filter((function(e,a){return a<t})):[].concat(r,Object(n["a"])(this.getRandomColor(t-10)))}}},"7dcf":function(t,e,a){"use strict";var n=a("7fae"),i=a("b12f"),o=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(n["a"])(e,t),e.prototype.render=function(t,e,a,n){this.dataZoomModel=t,this.ecModel=e,this.api=a},e.type="dataZoom",e}(i["a"]);e["a"]=o},"7f9b":function(t,e,a){"use strict";a("e99f")},"7fd8":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"addProductsStepWrap"},[a("div",{staticClass:"sepa-authority text-right"},[a("div",{on:{click:function(e){return t.$emit("toggleModal")}}},[a("feather-icon",{staticClass:"m-r-8 m-b-2",attrs:{icon:"InfoIcon",color:"#B9B9C3",size:"16",id:t.$options.name+"_tip1"}}),a("b-tooltip",{attrs:{target:t.$options.name+"_tip1"}},[a("span",{domProps:{innerHTML:t._s(t.$t("asintrack_list_tip1"))}})]),a("span",[t._v(t._s(t.$t("asintrack_list_text1",{low:t.userTrackerCount.lowFrequentUsed,all_low:t.userTrackerCount.lowFrequentLimit,high:t.userTrackerCount.highFrequentUsed,all_high:t.userTrackerCount.highFrequentLimit}))+" ")]),a("router-link",{staticClass:"m-l-16",attrs:{to:{name:"package_center"},id:"competitiveTracker_upAsinBuy"}},[a("b-button",{attrs:{variant:"outline-primary",size:"sm"}},[t._v(" "+t._s(t.$t("web_search_increaseLimit"))+" ")])],1)],1)]),t.productItem?a("div",{staticClass:"fs24 m-t-28"},[t._v(" "+t._s(t.$t("_KEYWORD_RANK_BTN_ADD_COMPETITOR"))+" ")]):a("gen-steps",{attrs:{stepDefines:t.stepDefines,step:t.step}}),0===t.step?[a("add-product-component",{attrs:{searchKey:t.searchKey,shopId:t.shopId,marketplaceId:t.marketplaceId},model:{value:t.products,callback:function(e){t.products=e},expression:"products"}}),a("div",{staticClass:"btnDialogWrap"},[a("button",{staticClass:"das-ui-button_cancel",attrs:{"data-lokalise":"","data-key":"_COMMON_BUTTON_CANCEL"},on:{click:function(e){return t.$emit("toggleModal")}}},[t._v(" "+t._s(t.$t("_COMMON_BUTTON_CANCEL"))+" ")]),a("button",{staticClass:"das-ui-button_ok",attrs:{disabled:!t.products.length,"data-lokalise":"","data-key":"_COMMON_BUTTON_NEXT"},on:{click:t.addProductFn}},[t._v(" "+t._s(t.$t("_COMMON_BUTTON_NEXT"))+" ")])])]:t._e(),1===t.step?a("div",[a("div",{staticClass:"productsSelectListWrap",class:{productsSelectListWrap_singleAsin:t.productItem}},[t.productItem?a("div",{staticClass:"productsSelectListWrap_singleAsin-block"},[a("productInfoTableColumn",{staticClass:"m-b-12",staticStyle:{"max-width":"900px"},attrs:{entity:t.productItem,"key-map":{parentAsin:"",imageUrl:t.isProductAnalysis?"imageUrl":"masterImage"}}})],1):t._l(t.products,(function(e,n){return a("div",{staticClass:"productsSelectListWrap_block",attrs:{index:e.asin+e.parentAsin+e.shopId+e.isChildAsin+n}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.selectAsin,expression:"selectAsin"}],staticStyle:{display:"none"},attrs:{name:"selectAsin",id:e.asin+e.parentAsin+e.shopId+e.isChildAsin+n,type:"radio"},domProps:{value:e.asin,checked:t._q(t.selectAsin,e.asin)},on:{change:function(a){t.selectAsin=e.asin}}}),a("label",{staticClass:"productsSelectListWrap_block_label",attrs:{for:e.asin+e.parentAsin+e.shopId+e.isChildAsin+n}},[e.imageUrl?a("img",{attrs:{src:e.imageUrl}}):a("img",{attrs:{src:"/images/default.jpg"}}),a("div",{staticClass:"productsSelectListWrap_block_label_content"},[a("div",{staticClass:"productsSelectListWrap_block_label_asin"},[t._v(t._s(e.isChildAsin?"ASIN":"PASIN")),a("lok",{attrs:{"lok-key":"_COMMON_SYMBOL_COLON"}}),t._v(" "+t._s(e[e.isChildAsin?"asin":"parentAsin"])+" ")],1)])])])}))],2),a("add-trackers",{attrs:{products:t.products,inKeywords:t.currentAsinKeywords,currentAsin:t.currentAsin,height:"480px"},on:{close:t.closeFn,inKeywords:t.setInKeywords,updatePackage:function(e){return t.$emit("showModal")},showManageFn:function(e){return t.$emit("showManageFn")}}})],1):t._e()],2)},i=[],o=a("1da1"),r=a("5530"),s=(a("96cf"),a("d3b7"),a("159b"),a("7db0"),a("ac1f"),a("1276"),a("d81d"),a("bbf0")),l=a("2f62"),c=a("d0a0"),u=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"review-alert-batch-add"},[a("div",{staticClass:"search-container das-table-margin_top das-table-margin_bottom"},[a("v-shop-select",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"keywordRankingVshopSelect",staticStyle:{"min-width":"200px"},attrs:{marketplaceId:t.marketplaceId,betterlook:!0,placeholder:t.$t("_MULTI_SHOP_ALL_SHOP")},on:{getShoplist:t.getShoplist},model:{value:t.searchModel.shopId,callback:function(e){t.$set(t.searchModel,"shopId",e)},expression:"searchModel.shopId"}}),a("common-search-form",{staticClass:"commonSearchFormAddKeywordWrap",attrs:{options:t.formOptions},on:{event:t.formEventFn},model:{value:t.searchModel,callback:function(e){t.searchModel=e},expression:"searchModel"}})],1),a("common-table",{key:t.CURRENT_SHOP_ID+"addProductTableChild",ref:"commonTableEleProductChild",attrs:{tableId:"keyword-batch-add-product-child-table",params:t.tableParams,options:t.tableChildOptions},on:{response:t.responseChildFn},scopedSlots:t._u([{key:"head(operator)",fn:function(e){return[a("b-form-checkbox",{key:Math.random(),staticClass:"stock-all-select-btn",staticStyle:{float:"right"},on:{input:t.handleAllSelectChange},model:{value:t.allSelectChild,callback:function(e){t.allSelectChild=e},expression:"allSelectChild"}},[t._v(" "+t._s(t.$t("_COMMON_ACTION_ADD_ASIN_SELECT_ALL"))+" ")])]}},{key:"cell(operator)",fn:function(e){return[t.addedAsins.indexOf(e.data.item.asin)>-1?a("div",{staticClass:"d-flex align-items-center justify-content-end"},[a("feather-icon",{staticClass:"PlusCircleIconBtn DisabledIconBtn",attrs:{id:e.data.item.asin+e.data.item.sku+e.data.item.shopId+"disabledTipChild",icon:"CheckIcon",size:"18"}}),a("b-tooltip",{attrs:{triggers:"hover",placement:"left",target:e.data.item.asin+e.data.item.sku+e.data.item.shopId+"disabledTipChild"}},[a("div",[t._v(" "+t._s(t.$t("_BUYER_MESSAGE_STATUS_YES"))+" ")])])],1):t.hasSelectArray.map((function(t){return t.asin+t.isChildAsin+t.shopId})).indexOf(e.data.item.asin+e.data.item.isChildAsin+e.data.item.shopId)<0?a("div",{staticClass:"d-flex align-items-center justify-content-end"},[a("feather-icon",{staticClass:"PlusCircleIconBtn",attrs:{icon:"CheckIcon",size:"18"},on:{click:function(a){return t.addProductFn(e.data)}}})],1):a("div",{staticClass:"d-flex align-items-center justify-content-end"},[a("feather-icon",{staticClass:"MinusCircleIconBtn",attrs:{icon:"CheckIcon",size:"18"},on:{click:function(a){return t.removeFn(e.data)}}})],1)]}}])}),a("b-row",[a("b-col",[a("div",{staticClass:"imgInfoWrap"},[a("div",{staticClass:"hasAddTip"},[a("span",{domProps:{innerHTML:t._s(t.$t("_ADD_PRO_DIALOG_ADD_SOME_PRODUCT",{num:"<span style='color: #5759F2;'>"+t.hasSelectArray.length+"</span>"}))}})]),t.showAwait?a("swiper",{ref:"swiperMeBatchEditCost",staticClass:"imgInfoContentWrap",attrs:{"auto-destroy":!0,"delete-instance-on-destroy":!0,"cleanup-styles-on-destroy":!0,options:t.swiperOptions}},t._l(t.hasSelectArray,(function(e){return a("swiper-slide",{key:e.asin+e.sku+e.shopId+e.isChildAsin,staticClass:"imgInfoBlock"},[a("div",{attrs:{id:e.asin+e.sku+e.shopId+e.isChildAsin+"costTip"}},[a("img",{staticClass:"productImg",attrs:{src:e.imageUrl,alt:""}}),a("span",{staticClass:"productInfo"},[t._v(" "+t._s(e.asin)+" ")])]),a("b-tooltip",{attrs:{triggers:"hover",target:e.asin+e.sku+e.shopId+e.isChildAsin+"costTip"}},[a("div",{staticClass:"cost-tip-container"},[a("div",{staticClass:"cost-tip-title"},[t._v(t._s(e.title))]),a("div",{staticClass:"cost-tip-asin"},[a("span",[t._v(t._s(t.$t("_COMMON_TH_C_ASIN"))+": "+t._s(e.asin))])])])]),a("feather-icon",{staticClass:"MinusCircleIcon",attrs:{icon:"XCircleIcon",size:"16"},on:{click:function(a){return t.removeFn({item:e})}}})],1)})),1):t._e(),a("i",{staticClass:"leftBtn d-flex align-items-center justify-content-center",attrs:{slot:"button-next"},slot:"button-next"},[a("feather-icon",{attrs:{icon:"ChevronLeftIcon",size:"30"}})],1),a("i",{staticClass:"rightBtn d-flex align-items-center justify-content-center",attrs:{slot:"button-prev"},slot:"button-prev"},[a("feather-icon",{attrs:{icon:"ChevronRightIcon",size:"30"}})],1)],1)])],1)],1)},d=[],h=(a("4de4"),a("a434"),a("3862")),p=(a("db49"),a("4544")),f=a("7212"),m=(a("a7a3"),a("5222")),g=a("0823"),_=a("c2cf"),v=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"child-asin-table-detail"},[a("div",{staticClass:"child-asin-table-detail-title"},[t._v(t._s(t.title))]),a("common-table",{ref:"commonTableEle",attrs:{tableData:t.tableList,tableId:"child-asin-table-detail",options:t.tableOptions},scopedSlots:t._u([{key:"cell(title)",fn:function(e){var n=e.data;return[a("div",{staticClass:"title-container"},[a("div",{staticClass:"product-info__image"},[n.item.imageUrl?a("img",{attrs:{src:n.item.imageUrl}}):a("img",{attrs:{src:"/images/default.jpg"}})]),a("div",{staticClass:"title-container-content"},[t._v(" "+t._s(n.item.title)+" ")])])]}},{key:"cell(asin)",fn:function(e){var n=e.data;return[a("div",[t._v(" "+t._s(t.$t("_COMMON_TH_C_ASIN"))+": "+t._s(n.item.asin)+" ")])]}}])})],1)},y=[],b={name:"childAsinTableDetail",components:{commonTable:g["a"]},props:{title:{type:String,default:""},tableList:{type:Array,default:function(){return[]}}},data:function(){return{}},computed:{tableOptions:function(){return{stickyHeader:!0,height:"410px",hidePagination:!0,hasPageSizeOptions:!1,fields:[{key:"title",headerPosition:"left",diy:!0,width:350,label:this.$t("_COMMON_TH_PRODUCT_INFO")},{key:"asin",headerPosition:"left",diy:!0,diyHeader:!0,label:this.$t("_COMMON_TH_PRODUCT_CODE")}]}}},methods:{},created:function(){}},S=b,O=(a("b361"),a("2877")),T=Object(O["a"])(S,v,y,!1,null,null,null),A=T.exports,x=a("c023"),C=a("1f98"),E={name:"addProduct",props:{marketplaceId:{type:null|String,default:function(){return null}},shopId:{},searchKey:{}},components:{vShopSelect:p["a"],commonSearchForm:m["a"],commonTable:g["a"],ChildAsinTableDetail:A,Swiper:f["Swiper"],SwiperSlide:f["SwiperSlide"]},model:{prop:"selects",event:"selects"},data:function(){return{tabIndex:1,allSelectChild:"",allSelect:"",showAwait:!1,hasSelectArray:[],searchModel:{shopId:"",searchKey:""},swiperOptions:{slidesPerView:"auto",centeredSlides:!1,spaceBetween:0,navigation:{nextEl:".rightBtn",prevEl:".leftBtn"}},shopParentAsins:{},shopChildAsins:{},shopList:[],trackedAsins:[]}},watch:{shopId:{immediate:!0,handler:function(t){this.searchModel.shopId=t}},searchKey:{immediate:!0,handler:function(t){this.searchModel.searchKey=t}},hasSelectArray:{immediate:!0,deep:!0,handler:function(t){this.saveFn()}},tabIndex:function(){this.isAllSelectChild()},"searchModel.shopId":{handler:function(t){this.hasSelectArray=[]}}},computed:Object(r["a"])(Object(r["a"])({},Object(l["c"])({SELLER_PACKAGE:h["d"],CURRENT_SHOP_ID:s["g"],CURRENCY_CODE:s["b"],SELLERS_LIST:s["D"],CURRENT_SHOP_IDS:s["h"]})),{},{curMarketplaceId:function(){var t,e=this;return null===(t=this.shopList.find((function(t){var a;return t.id==(null===(a=e.searchModel)||void 0===a?void 0:a.shopId)})))||void 0===t?void 0:t.marketplaceId},tableParams:function(){var t=this,e={};return""!==t.searchModel.searchKey&&(e.searchKey=t.searchModel.searchKey),""!==t.searchModel.shopId&&(e.shopId=t.searchModel.shopId),e},formOptions:function(){return[{type:"searchInput",placeholder:this.$t("_COMMON_PLACEHOLDER_SEARCH_PRODUCT"),width:"283px",id:"searchKey"}]},tableChildOptions:function(){return{requestApi:_["u"],stickyHeader:!0,height:"348px",hasPageSizeOptions:!1,fields:[{key:"title",width:550,stickyColumn:!0,type:"productInfo",keyMap:{sku:"",parentAsin:""},headerPosition:"left",label:this.$t("_COMMON_TH_PRODUCT_INFO")},{key:"asinDetail",diy:!0,label:"",diyHeader:!0},{key:"operator",diyHeader:!0,width:250,diy:!0}]}},addedAsins:function(){var t;return(null===(t=this.trackedAsins)||void 0===t?void 0:t[null===this||void 0===this?void 0:this.curMarketplaceId])||[]}}),methods:{getTrackedAsins:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(C["r"])();case 2:a=e.sent,1==a.status&&(t.trackedAsins=a.content);case 4:case"end":return e.stop()}}),e)})))()},getShoplist:function(t){this.shopList=t},handleAllSelectChange:function(t){var e=this;if(t){var a=this.$refs.commonTableEleProductChild.list.filter((function(t){return e.addedAsins.indexOf(t.asin)<0}));a.forEach((function(t){e.addProductFn({item:t})}))}else{var n=this.$refs.commonTableEleProductChild.list.filter((function(t){return e.addedAsins.indexOf(t.asin)<0}));n.forEach((function(t){e.removeFn({item:t})}))}},responseFn:function(t){var e=this;t.content.result.forEach((function(t){e.$set(t,"isChildAsin",0)})),this.isAllSelect()},responseChildFn:function(t){var e=this;t.content.result.forEach((function(t){e.$set(t,"isChildAsin",1)})),this.isAllSelectChild()},isAllSelectChild:function(){var t=this,e=this.$refs.commonTableEleProductChild.list.filter((function(e){return t.addedAsins.indexOf(e.asin)<0})),a=this.hasSelectArray.map((function(t){return t.asin+t.isChildAsin+t.shopId})),n=e.every((function(e){return a.indexOf(e.asin+e.isChildAsin+t.searchModel.shopId)>-1}));this.allSelectChild=n},getUsed:function(){var t=this;Object(x["N"])().then((function(e){var a=e.status,n=e.content;1===a&&(t.shopParentAsins=n.shopParentAsins,t.shopChildAsins=n.shopChildAsins)}))},formEventFn:function(t){var e;switch(t.id){case"searchKey":null===(e=this.$refs.commonTableEleProductChild)||void 0===e||e.getListDebounce();break}},addProductFn:function(t){var e=t.item,a=this.hasSelectArray.map((function(t){return t.asin+t.isChildAsin+t.shopId})).indexOf(e.asin+e.isChildAsin+e.shopId);a<0&&this.hasSelectArray.push(e),this.isAllSelectChild()},removeFn:function(t){var e=t.item,a=this.hasSelectArray.map((function(t){return t.asin+t.isChildAsin+t.shopId})).indexOf(e.asin+e.isChildAsin+e.shopId);a>-1&&this.hasSelectArray.splice(a,1),this.isAllSelectChild()},saveFn:function(){var t,e=this;this.$emit("selects",null===(t=this.hasSelectArray)||void 0===t?void 0:t.map((function(t){return Object(r["a"])(Object(r["a"])({},t),{},{marketplaceId:e.curMarketplaceId})})))}},created:function(){var t=this;this.getTrackedAsins(),setTimeout((function(){t.showAwait=!0}),200)}},w=E,M=(a("41f2"),a("bc26"),a("9f28"),Object(O["a"])(w,u,d,!1,null,"bb60000a",null)),k=M.exports,I=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"addKeywordsPopWrap"},[t.showProduct?a("div",{staticClass:"addProductsPopWrapProductInfoWrap"},[t.currentAsin.imageUrl?a("img",{attrs:{src:t.currentAsin.imageUrl}}):a("img",{attrs:{src:"/images/default.jpg"}}),a("div",{staticClass:"addProductsPopWrapProductInfoWrapContent"},[a("div",{staticClass:"addProductsPopWrapProductInfoWrapContentTitle"},[t._v(t._s(t.currentAsin.title))]),a("div",[t._v(" "+t._s(t.currentAsin.isChildAsin?"ASIN":"PASIN")),a("lok",{attrs:{"lok-key":"_COMMON_SYMBOL_COLON"}}),a("span",{ref:"asinEle"},[t._v(" "+t._s(t.currentAsin[this.productType])+" ")]),a("i",{staticClass:"copyBtn",attrs:{title:t.$t("_COMMON_CLICK_TO_COPY")}},[a("feather-icon",{attrs:{icon:"CopyIcon",size:"14"},on:{click:function(e){return e.stopPropagation(),t.copyToClipboard("asinEle")}}})],1)],1)])]):t._e(),a("div",{staticClass:"addKeywordsPopWrap-Tip"},[a("lok",{attrs:{"lok-key":"asin_track_manual_select"}}),a("lok",{staticClass:"color999",attrs:{"lok-key":"kt_add_keyword_tip2"}})],1),a("div",{staticClass:"addKeywordsPopWrap-Content",style:{height:t.heightTmp}},[a("div",{staticClass:"addKeywordsPopWrap-Content-Left",on:{click:t.focusInput}},[a("div",{staticClass:"textareaShopPop"},t._l(t.keywords,(function(e,n){return a("div",{key:n},[a("span",{staticClass:"textareaShopPopBlock",on:{click:function(t){t.stopPropagation()}}},[t._v(" "+t._s(e)+" "),a("feather-icon",{attrs:{icon:"XIcon",size:"16"},on:{click:function(e){return e.stopPropagation(),t.removeFn(n)}}})],1)])})),0),a("el-input",{ref:"addKeywordEle",attrs:{autocomplete:"off",type:"textarea",autosize:""},on:{blur:t.addKeywordsFn},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addKeywordsFn.apply(null,arguments)}},model:{value:t.keywordTmp,callback:function(e){t.keywordTmp=e},expression:"keywordTmp"}})],1),a("div",{staticClass:"addKeywordsPopWrap-Content-Right"},[a("lok",{staticClass:"addKeywordsPopWrap-Tip",attrs:{"lok-key":"_KEYWORD_RANK_BTN_SELECT_COMPETITOR"}}),a("div",{staticClass:"d-flex m-tb-8"},[a("search-input",{staticClass:"semy-inputgroup__box",attrs:{id:"semy_search_dosearch",customStyle:"height:30px; width: 232px;","data-lokalise":"","data-key":"asin_track_myTrack_searth_hint","data-type-aria-label":"",placeholder:t.$t("asin_track_myTrack_searth_hint")},on:{click:t.handleSearch},model:{value:t.searchParams.keyword,callback:function(e){t.$set(t.searchParams,"keyword",e)},expression:"searchParams.keyword"}}),a("div",{staticClass:"d-flex align-items--center m-l-12"},[a("div",{staticClass:"semy-inputgroup__label m-r-8",attrs:{"data-lokalise":"","data-key":"asin_track_group"}},[t._v(t._s(t.$t("asin_track_group")))]),a("GroupSelect",{key:t.$i18n.locale,attrs:{marketplaceId:t.currentAsin.marketplaceId},on:{showManage:function(e){return t.$emit("showManageFn")}},model:{value:t.searchParams.groupIds,callback:function(e){t.$set(t.searchParams,"groupIds",e)},expression:"searchParams.groupIds"}})],1)],1),t.heightTmp?a("common-table",{ref:"commonTableEle",attrs:{tableId:"addtrackers_list_table",params:t.tableParams,options:t.tableOptions},on:{responseAll:t.tableResponse},scopedSlots:t._u([{key:"head(selects)",fn:function(){return[a("b-form-checkbox",{staticStyle:{"margin-left":"-4px"},on:{change:t.checkAiAllFn},model:{value:t.checkAiAll,callback:function(e){t.checkAiAll=e},expression:"checkAiAll"}})]},proxy:!0},{key:"cell(variation)",fn:function(e){return[e.data.value.attributes?a("div",{staticStyle:{width:"169px"},attrs:{id:e.data.item.asin+"_AddTrackers__variation__"+t._uid}},t._l(e.data.value.attributes.slice(0,2),(function(n,i){return a("div",{key:n.dimension+n.value,staticClass:"text-ellipsis"},[t._v(" "+t._s(n.dimension+": "+n.value)+" "),2==i&&e.data.value.attributes.length>2?a("span",[t._v("...")]):t._e()])})),0):a("span",[t._v("-")]),e.data.value?a("b-tooltip",{attrs:{target:e.data.item.asin+"_AddTrackers__variation__"+t._uid,triggers:"hover"}},t._l(e.data.value.attributes,(function(e,n){return a("div",{key:e.dimension+e.value},[t._v(" "+t._s(e.dimension+": "+e.value)+" ")])})),0):t._e()]}},{key:"cell(selects)",fn:function(e){return[a("b-form-checkbox",{staticClass:"das-table-margin_left",attrs:{value:e.data.item.asin},on:{change:function(a){return t.changeItem(e.data.item.asin)}},model:{value:t.keywords,callback:function(e){t.keywords=e},expression:"keywords"}})]}}],null,!1,2402145927)}):t._e()],1)]),a("div",{staticClass:"btnDialogWrap"},[a("button",{staticClass:"das-ui-button_ok",attrs:{disabled:!t.oneNotEmpty,"data-lokalise":"","data-key":"asin_track_main_searth_begin"},on:{click:t.addCompetitor}},[t._v(" "+t._s(t.$t("asin_track_main_searth_begin"))+" ")])])])},D=[],L=a("2909"),R=(a("e9c4"),a("6062"),a("3ca3"),a("ddb0"),a("99af"),a("a15b"),a("498a"),a("9dd3")),N=(a("9319"),a("21b3")),P=a.n(N),j=(a("d80f"),a("d771")),$=(a("2ef0"),a("fc93")),F=a("3b42"),B=a("fa83"),Y=a("a620"),U={name:"AddKeywords",mixins:[B["a"]],props:{showProduct:{type:Boolean,default:!1},height:{default:"619px"},inKeywords:{},currentAsin:{},products:{}},model:{event:"inKeywords",prop:"inKeywords"},watch:{tabIndex:function(){this.tabIndexCash.indexOf(this.tabIndex)<0&&this.tabIndexCash.push(this.tabIndex)},USER_INFO:{immediate:!0,handler:function(t){}},currentAsin:function(){this.focusInput()},inKeywords:{handler:function(t){this.inKeywords&&(this.inKeywordsTmp=JSON.parse(JSON.stringify(this.inKeywords)),this.keywords=JSON.parse(JSON.stringify(this.inKeywords)))}},keywords:function(t){this.$emit("inKeywords",t)}},data:function(){return{showAdKeywordSugPop:!1,tabIndexCash:[0],AD_MATCH_LABEL_MAP:R["c"],checkAiAll:!1,checkAdAll:!1,inKeywordsTmp:[],selectAsin:"",dataStatus:"INADEQUATE",resultNumber:0,loading:!1,loadingAd:!1,showModal:!1,tabIndex:0,keywordTmp:"",keywords:[1,2,3,4],tableDataAll:[],adTableData:[],searchParams:{keyword:null,groupIds:[]},showGroupManageModal:!1,selected:[]}},components:{commonTable:g["a"],SearchInput:$["a"],GroupSelect:F["a"]},methods:{tableResponse:function(t){var e;1==t.status&&(this.tableDataAll=(null===t||void 0===t||null===(e=t.content)||void 0===e?void 0:e.result)||[])},handleSelectedChange:function(t){var e=t.map((function(t){return t.asin}));this.keywords=e},handleSearch:function(){},closeIsNew:function(){window.localStorage.setItem("showAdKeywordSugPopNewPop"+this.USER_INFO.id,1),this.showAdKeywordSugPop=!1},copyToClipboard:function(t){var e=this,a=this.$refs[t];P()(a,(function(){e.$store.dispatch("app/updatePop",{title:e.$t("_KEYWORD_POPULARITY_COPY_SUCCESS"),icon:"EditIcon",variant:"success"})}))},checkAiAllFn:function(){var t=this.tableDataAll.map((function(t){return t.asin}));if(this.checkAiAll)this.keywords=Object(L["a"])(new Set(this.keywords.concat(t)));else{var e=[];this.keywords.forEach((function(a){var n=t.indexOf(a);n>-1&&e.push(a)}));var a=JSON.parse(JSON.stringify(this.keywords));e.forEach((function(t){var e=a.indexOf(t);a.splice(e,1)})),this.keywords=a}},changeItem:function(t,e){var a=this;this.keywords.indexOf(t)<0?this.checkAiAll=!1:this.checkAiAll=this.tableDataAll.every((function(t){return a.keywords.indexOf(t.asin)>-1}))},addCompetitor:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Object(r["a"])(Object(r["a"])({},t.baseParams),{},{data:null===(a=t.products)||void 0===a?void 0:a.map((function(t){return{competitorAsins:t.keywords.join(),asin:t.asin}})),marketplaceId:t.currentAsin.marketplaceId}),e.next=3,Object(C["b"])(n);case 3:i=e.sent,1===i.status&&(t.$store.dispatch("app/updatePop",{title:i.content,icon:"bell",variant:"success"}),Y["a"].$emit("updateCount"),t.$emit("close"));case 5:case"end":return e.stop()}}),e)})))()},getAsin:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={marketplaceId:t.currentAsin.marketplaceId,asin:t.currentAsin[t.productType]},e.abrupt("return",Object(j["j"])(a).then((function(e){1===e.status&&(t.selectAsin=e.content.asins[0]&&e.content.asins[0].asin||t.currentAsin[t.productType])})));case 2:case"end":return e.stop()}}),e)})))()},removeFn:function(t){this.keywords.splice(t,1),this.focusInput()},focusInput:function(){var t=this;this.$nextTick((function(){t.$refs.addKeywordEle.focus()}))},addKeywordsFn:function(){var t,e=this;if(this.keywordTmp&&null!==(t=this.keywordTmp)&&void 0!==t&&t.trim()){var a=this.keywordTmp.trim(),n=a.split("\n");n.forEach((function(t){var a=e.keywords.indexOf(t);a<0&&e.keywords.push(t)})),this.keywordTmp=""}}},computed:Object(r["a"])(Object(r["a"])({},Object(l["c"])({USER_INFO:s["I"],SELLER_LIST:s["E"],SELLER_PACKAGE:h["d"]})),{},{oneNotEmpty:function(){var t;return null===(t=this.products)||void 0===t?void 0:t.some((function(t){var e;return null===(e=t.keywords)||void 0===e?void 0:e.length}))},SHOP_OBJ:function(){var t={};return this.SELLER_LIST.forEach((function(e){var a;null===e||void 0===e||null===(a=e.shops)||void 0===a||a.forEach((function(a){a.sponsoredAuth=e.sponsoredAuth,t[a.id]=a}))})),t},package:function(){return this.SELLER_PACKAGE["business"]},hasPackage:function(){return!(!this.package||!this.package.current)},keywordTaskFrequency:function(){return this.hasPackage&&this.package.current.userPackageItemMap.keyword_task_frequency.quantity},newAddKeywords:function(){var t=this,e=this.keywordTmp&&this.keywordTmp.trim();if(e)var a=[].concat(Object(L["a"])(this.keywords),[e]);else a=this.keywords;return a.filter((function(e){return t.inKeywordsTmp.indexOf(e)<0}))},productType:function(){return this.currentAsin.isChildAsin?"asin":"parentAsin"},heightTmp:function(){return parseInt(this.height)-(this.showProduct?76:0)+"px"},isNewPackage:function(){return!!this.USER_INFO.isNewPackageUser},tableParams:function(){var t={marketplaceId:this.currentAsin.marketplaceId};return this.searchParams.keyword&&(t.searchKey=this.searchParams.keyword),this.searchParams.groupIds&&(t.groupIds=this.searchParams.groupIds.join()),t},tableOptions:function(){return{requestApi:C["t"],stickyHeader:!0,noFilter:!0,normalScroll:!0,hidePagination:!1,height:parseInt(this.heightTmp)-89+"px",fields:[{key:"selects",diy:!0,diyHeader:!0,label:""},{key:"title",headerPosition:"left",type:"productInfo",width:400,keyMap:{parentAsin:"aa",imageUrl:"masterImage"},label:this.$t("_COMMON_TH_PRODUCT_INFO")},{key:"variation",headerPosition:"left",diy:!0,label:this.$t("asin_track_commodity_attribute")}]}}}),mounted:function(){var t=this;setTimeout((function(){t.showAdKeywordSugPop=!window.localStorage.getItem("showAdKeywordSugPopNewPop"+t.USER_INFO.id)}),500),this.inKeywords&&(this.keywords=JSON.parse(JSON.stringify(this.inKeywords)),this.inKeywordsTmp=JSON.parse(JSON.stringify(this.inKeywords))),setTimeout((function(){t.focusInput()}),500)}},z=U,V=(a("d2b2"),Object(O["a"])(z,I,D,!1,null,null,null)),H=V.exports,G=a("a7c5"),W={name:"competitive-analysis-AddProductsStep",props:{marketplaceId:{type:null|String,default:function(){return null}},shopId:{},searchKey:{},productItem:{type:null|Object,default:function(){return null}},isProductAnalysis:{}},components:{GenSteps:c["a"],AddTrackers:H,AddProductComponent:k,productInfoTableColumn:G["a"]},data:function(){return{step:0,lastKeywords:[],products:[],hasAddProducts:[],selectAsin:null,currentAsin:{keywords:[]},userTrackerCount:{}}},computed:Object(r["a"])(Object(r["a"])({},Object(l["c"])({SELLER_LIST:s["E"]})),{},{currentAsinKeywords:function(){return this.currentAsin.keywords},SHOP_OBJ:function(){var t={};return this.SELLER_LIST.forEach((function(e){var a;null===e||void 0===e||null===(a=e.shops)||void 0===a||a.forEach((function(e){t[e.id]=e}))})),t},stepDefines:function(){return[{keyword:"addProducts",step:0,label:this.$t("_COMMON_BUTTON_ADD_PRODUCT")},{keyword:"addkeywords",step:1,label:this.$t("_KEYWORD_RANK_BTN_ADD_COMPETITOR")}]}}),watch:{selectAsin:function(t){t&&(this.currentAsin=this.products.find((function(e){return e.asin==t})))},productItem:{immediate:!0,deep:!0,handler:function(t){var e,a;null!==t&&void 0!==t&&t.asin&&(this.selectAsin=t.asin,this.currentAsin=Object(r["a"])(Object(r["a"])({},t),{},{keywords:null!==(e=t.competitorAsins)&&void 0!==e&&e.length?t.competitorAsins.split(","):[]}),this.products=[Object(r["a"])(Object(r["a"])({},t),{},{keywords:null!==(a=t.competitorAsins)&&void 0!==a&&a.length?t.competitorAsins.split(","):[]})],this.step=1)}},currentAsin:{deep:!0,immediate:!0,handler:function(t,e){}}},mounted:function(){this.getUsage(),Y["a"].$on("updateCount",this.getUsage)},methods:{getUsage:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(C["u"])();case 2:a=e.sent,1===a.status&&(t.userTrackerCount=a.content);case 4:case"end":return e.stop()}}),e)})))()},setInKeywords:function(t){var e,a=this,n=[];null===(e=this.products)||void 0===e||e.forEach((function(e){e.asin==a.currentAsin.asin?n.push(Object(r["a"])(Object(r["a"])({},e),{},{keywords:t})):n.push(e)})),this.products=n},closeFn:function(){this.$emit("close")},addProductFn:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,i,o,s,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.products=t.products.map((function(t){return Object(r["a"])(Object(r["a"])({},t),{},{keywords:(null===t||void 0===t?void 0:t.keywords)||[]})})),i={config:{monthlySold:1,listPrice:1,price:1,buyboxSeller:1,reviewNum:0,rating:1,title:1,image:1,feature:1,variationNum:1,soldout:1,coupon:1,boughtTogether:1,deal:1,promotion:1,fbaFee:1,packageSize:1,productWeight:1},notificationStatus:"ON",frequent:"LOW"},o={asins:null===(a=t.products)||void 0===a?void 0:a.map((function(t){return t.asin})),marketplaceId:null===(n=t.products[0])||void 0===n?void 0:n.marketplaceId},e.next=5,Object(C["c"])(Object(r["a"])(Object(r["a"])({},i),o),t.shopId);case 5:s=e.sent,1==s.status&&(t.selectAsin=null===(l=t.products[0])||void 0===l?void 0:l.asin,t.currentAsin=t.products[0],t.step=1,t.$emit("fresh"),null===Y["a"]||void 0===Y["a"]||Y["a"].$emit("updateCount"));case 7:case"end":return e.stop()}}),e)})))()}}},K=W,Z=(a("53b2"),Object(O["a"])(K,n,i,!1,null,null,null));e["a"]=Z.exports},8012:function(t,e,a){"use strict";a("5423")},"80de":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var n=a("c1df"),i=a.n(n),o=function(t,e){for(var a=[],n=i()(e).diff(i()(t),"days"),o=n;o>=0;o--)a.push(i()(e).subtract(o,"days").format("YYYY-MM-DD"));return a}},"823f":function(t,e,a){"use strict";a("9e00")},8469:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{on:{click:function(e){return e.preventDefault(),t.emptyClick.apply(null,arguments)}}},[n("draggable-pad",{attrs:{padId:t.padId,customFooter:t.showTop3,customStyle:"min-width: 536px;"},on:{close:function(e){return t.$emit("close")}},scopedSlots:t._u([t.customFooter?{key:"custom-footer",fn:function(){return[n("b-button",{staticClass:"draggable-pad__footer-btn",attrs:{variant:"outline-primary"},on:{mousedown:function(e){return e.stopPropagation(),t.handleEmpty()},click:function(e){return t.$emit("close")}}},[t._v(t._s(t.$t("_COMMON_BUTTON_CLOSE")))]),n("b-button",{staticClass:"draggable-pad__footer-btn m-l-16",attrs:{variant:"primary"},on:{mousedown:function(e){return e.stopPropagation(),t.handleEmpty()},click:t.goMoreKeyword}},[t._v(t._s(t.$t("aba_more")))])]},proxy:!0}:null],null,!0)},[n("div",{staticClass:"drag_keyword_chart-wrap"},[n("div",{staticClass:"d-flex justify-content--space-between p-relative"},[n("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.modalTitle,expression:"modalTitle",modifiers:{hover:!0,bottom:!0}}],staticClass:"title"},[t._v(t._s(t.modalTitle))]),t.hideAddLab?t._e():n("b-button",{attrs:{id:"drag_keyword_chart",variant:"outline-primary",size:"sm"},on:{click:function(e){e.stopPropagation(),t.showPop=!t.showPop}}},[t._v(" "+t._s(t.$t("aw_btn_add"))+" "),n("feather-icon",{staticClass:"m-l-4",attrs:{icon:"ChevronDownIcon"}})],1),n("keyword-popver",{attrs:{showPop:t.showPop,apiParams:t.apiParams},on:{closePop:t.emptyClick}})],1),n("b-button-group",{staticClass:"m-t-8",attrs:{size:"sm"}},[n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(113, 102, 240, 0.15)",expression:"'rgba(113, 102, 240, 0.15)'",modifiers:{400:!0}}],class:{"btn-group--selected":0==t.curType},attrs:{variant:"outline-primary"},on:{click:function(e){return t.onChangeBtn(0)}}},[t._v(" "+t._s(t.$t("_COMMON_TH_RANKING"))+" ")]),n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(113, 102, 240, 0.15)",expression:"'rgba(113, 102, 240, 0.15)'",modifiers:{400:!0}}],class:{"btn-group--selected":1==t.curType},attrs:{variant:"outline-primary"},on:{click:function(e){return t.onChangeBtn(1)}}},[t._v(" "+t._s(t.$t("_KEYWORD_POPULARITY_KEYWORD_POPULARITY_ROW_TITLE"))+" ")])],1),t.showFreeTip?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading.getData,expression:"loading.getData"}],staticClass:"package-tip-block m-b-12"},[n("div",[t._v(t._s(t.$t("global_payment_user_can_view")))]),n("router-link",{staticClass:"m-t-8",attrs:{to:{path:"/package_center"}}},[t._v(t._s(t.$t("_PROFILE_MY_PACKAGE_CONTACT_CM_BP"))+" "),n("feather-icon",{staticClass:"m-b-2",attrs:{icon:"ChevronRightIcon"}})],1)],1):t.noData?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading.getData,expression:"loading.getData"}],staticClass:"nodata-block"},[n("img",{attrs:{src:a("b6c0")}}),n("div",{staticClass:"m-t-24"},[t._v(t._s(t.$t("aba_no_data")))])]):n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading.getData,expression:"loading.getData"}],staticClass:"echart-block"},[n("app-echart-line-custom",{key:t.echartKey,attrs:{optionData:t.optionData,height:220}})],1),t.showTop3&&t.keywordDatas.report?n("div",{staticClass:"top3-block"},[n("div",[n("div",[t._v(t._s(t.$t("aba_top3")+t.$t("_COMMON_TH_PRODUCT")+t.$t("_COMMON_SYMBOL_COLON")))]),n("div",{staticClass:"d-flex m-t-4"},t._l(3,(function(e){return n("div",{key:"td-img_"+e+t.keywordDatas.report["no"+e+"ClickedAsinImageUrl"],staticClass:"top3-block-imgwrap",class:{"no-border":!t.keywordDatas.report["no"+e+"ClickedAsin"]}},[t.keywordDatas.report["no"+e+"ClickedAsin"]?n("div",{attrs:{id:"dragemodal-img_"+e+t.keywordDatas.report["no"+e+"ClickedAsinImageUrl"]}},[n("el-image",{staticClass:"top3-block-imgwrap--item",attrs:{src:t.keywordDatas.report["no"+e+"ClickedAsinImageUrl"]}},[n("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[n("img",{attrs:{width:"66",height:"66",src:"/images/imgplaceholder/img_loading.png",alt:""}})]),n("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[n("img",{attrs:{width:"66",height:"66",src:"/images/imgplaceholder/img_err.png",alt:""}})])])],1):n("div",[t._v("—")]),n("b-popover",{attrs:{target:"dragemodal-img_"+e+t.keywordDatas.report["no"+e+"ClickedAsinImageUrl"],"custom-class":"keyword-tool__productinfo-pop keyword-list-pop",triggers:"hover",placement:"bottom"}},[n("div",[t._v(" "+t._s(t.keywordDatas.report["no"+e+"ClickedAsin"])+" "),n("feather-icon",{staticClass:"g-link-btn m-l-4",attrs:{icon:"CopyIcon"},on:{click:function(a){return t.copyToClipboard(t.keywordDatas.report["no"+e+"ClickedAsin"])}}})],1),n("div",{staticClass:"m-t-4"},[t._v(t._s(t.$t("reversecmp_sheetheader_clickshare")+t.$t("_COMMON_SYMBOL_COLON"))+" "+t._s(t._f("percentSuffix")(t.keywordDatas.report["no"+e+"ClickShare"])))]),n("div",{staticClass:"m-t-4"},[t._v(t._s(t.$t("reversecmp_sheetheader_conversionshare")+t.$t("_COMMON_SYMBOL_COLON"))+t._s(t._f("percentSuffix")(t.keywordDatas.report["no"+e+"ConversionShare"])))]),n("div",{staticClass:"m-t-4"},[n("span",{staticClass:"g-link-btn",on:{click:function(a){return t.goTrackPage(t.keywordDatas.report["no"+e+"ClickedAsin"])}}},[t._v(t._s(t.$t("kwinfopop_competitortrack")))]),n("span",{staticClass:"g-link-btn",on:{click:function(a){return t.goAsinLookupPage(t.keywordDatas.report["no"+e+"ClickedAsin"])}}},[t._v(t._s(t.$t("kwinfopop_reverseasinkwsrch")))])]),n("div",{staticClass:"divider"}),n("div",{staticClass:"m-t-8 text-center"},[n("a",{attrs:{variant:"link",href:t._f("amazon_asin_page_tracker")(t.keywordDatas.report["no"+e+"ClickedAsin"],t.apiParams.marketplaceId),target:"_blank"}},[t._v(t._s(t.$t("asininfopop_checkasinlisting"))+" "),n("feather-icon",{staticClass:"fs16 m-b-2",attrs:{icon:"ExternalLinkIcon"}})],1)])])],1)})),0)]),n("div",{staticClass:"flex-one"},[n("div",{staticClass:"m-l-12"},[t._v(t._s(t.$t("aba_top3")+t.$t("aba_percentage")+t.$t("_COMMON_SYMBOL_COLON")))]),n("div",{staticClass:"d-flex m-t-4"},[n("div",{staticClass:"flex-one top3-data-block"},[n("div",{staticClass:"fs12 m-b-6"},[t._v(t._s(t.$t("reversecmp_sheetheader_clickshare")+t.$t("_COMMON_SYMBOL_COLON")))]),n("div",[t._v(" "+t._s(t._f("percentSuffix")(t.keywordDatas.report.totalClickShare))+" ")])]),n("div",{staticClass:"flex-one top3-data-block"},[n("div",{staticClass:"fs12 m-b-6"},[t._v(t._s(t.$t("reversecmp_sheetheader_conversionshare")+t.$t("_COMMON_SYMBOL_COLON")))]),n("div",[t._v(" "+t._s(t._f("percentSuffix")(t.keywordDatas.report.totalConversionShare))+" ")])])])])]):t._e()],1)])],1)},i=[],o=a("1da1"),r=a("5530"),s=(a("96cf"),a("d81d"),a("4de4"),a("d3b7"),a("caad"),a("2532"),a("b64b"),a("b0c0"),a("2f62")),l=a("e009"),c=a("9c50"),u=a("8efa"),d=a("3862"),h=a("bb87"),p=a("d80f"),f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showPop?n("div",{staticClass:"el-popover custom-popover--keyword",on:{click:function(t){t.stopPropagation()}}},[t.isSearchKey||t.kwList.length?[n("b-input-group",{staticClass:"input-group-merge",staticStyle:{width:"300px"},attrs:{size:"sm"}},[n("b-form-input",{attrs:{placeholder:t.$t("kwsrchfield_placeholder")},on:{mousedown:function(t){t.stopPropagation()}},model:{value:t.searchKey,callback:function(e){t.searchKey=e},expression:"searchKey"}}),n("b-input-group-append",{attrs:{"is-text":""}},[n("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:"SearchIcon"},on:{click:t.doSearch}})],1)],1),n("div",{staticClass:"m-tb-8"},[t._v(t._s(t.$t("aw_recent_view")))]),t.kwList.length?n("div",{staticClass:"keyword-item-wrap"},t._l(t.kwList,(function(e){return n("div",{key:e.id,staticClass:"keyword-item",on:{click:function(a){return t.handlerSelectKeyword(e)}}},[n("div",{staticClass:"keyword-item--title"},[n("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:e.name,expression:"k.name",modifiers:{hover:!0,bottom:!0}}]},[t._v(t._s(e.name))])]),n("div",{staticClass:"d-flex align-items--center"},[n("i",{class:"m-r-4 icp-flag icp-flag-"+t.getMarketplace(e.marketplaceId).ico}),n("span",{staticClass:"m-l-4"},[t._v(t._s(t.$t("Lk_Package_Item_Text_Size_Keyword",{num:e.count})))])])])})),0):n("div",{staticClass:"m-t-12 empty-status-block h-300"},[n("img",{attrs:{src:a("b6c0")}}),n("div",{staticClass:"m-t-24"},[t._v(t._s(t.$t("global_nodata")))])]),n("div",{staticClass:"custom-popover--keyword-footer"},[n("span",{staticClass:"g-link-btn",on:{click:t.showMore}},[t._v(t._s(t.$t("_DASHBOARD_MORE"))+" "),n("feather-icon",{attrs:{icon:"ChevronRightIcon"}})],1)])]:n("div",{staticClass:"empty-status-block"},[n("img",{attrs:{src:a("3281")}}),n("div",{staticClass:"m-tb-24"},[t._v(t._s(t.$t("kr_has_note_creat_keywords_list")))]),n("div",{staticClass:"d-flex align-items--center"},[n("b-button",{attrs:{size:"sm",variant:"primary"},on:{click:t.showMore}},[n("feather-icon",{staticClass:"m-r-4",attrs:{icon:"PlusIcon"}}),t._v(" "+t._s(t.$t("kr_creat_keywords_list_long"))+" ")],1)],1)]),n("ListSiderMoreList",{attrs:{apiParams:t.apiParams},on:{refreshList:t.getKeywordLib},model:{value:t.showSider,callback:function(e){t.showSider=e},expression:"showSider"}})],2):t._e()},m=[],g=a("d771"),_=a("3339"),v={props:{showPop:{type:!1,default:!1},apiParams:{type:Object,default:function(){return{keywords:"",marketplaceId:"",asin:"",ticket:""}}}},components:{ListSiderMoreList:_["a"]},data:function(){return{searchKey:"",isSearchKey:!1,kwList:[],showSider:!1}},computed:{},watch:{showPop:function(t){t&&(this.searchKey="",this.isSearchKey=!1,this.getKeywordLib())}},methods:{getMarketplace:function(t){return p["E"].getMarketplace(t)},doSearch:function(){this.isSearchKey=!0,this.getKeywordLib()},getKeywordLib:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={marketplaceId:t.apiParams.marketplaceId,currentPage:1,pageSize:9},t.searchKey&&(a.searchKey=t.searchKey),e.next=4,Object(g["f"])(a);case 4:n=e.sent,1==n.status&&(t.kwList=n.content.result);case 6:case"end":return e.stop()}}),e)})))()},showMore:function(){this.showSider=!0},handlerSelectKeyword:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n={marketplaceId:t.marketplaceId,keywords:[e.apiParams.keywords],databaseId:t.id,name:t.name},a.next=3,Object(g["e"])(n);case 3:i=a.sent,1==i.status&&(e.$emit("closePop"),e.$store.dispatch("app/updatePop",{title:e.$t("_COMMON_OPERATE_SUCCESS"),icon:"EditIcon",variant:"success"}));case 5:case"end":return a.stop()}}),a)})))()}}},y=v,b=(a("32fd"),a("2877")),S=Object(b["a"])(y,f,m,!1,null,null,null),O=S.exports,T=a("3620"),A={name:"keyword-toolk__drag_keyword_chart",directives:{Ripple:l["a"]},props:{hideAddLab:{type:Boolean,default:!1},padId:{},modalTitle:{},apiParams:{type:Object,default:function(){return{keywords:"",marketplaceId:"",asin:"",ticket:""}}},showTop3:{type:Boolean,default:!0},customFooter:{type:Boolean,default:!0}},components:{draggablePad:c["a"],AppEchartLineCustom:h["a"],KeywordPopver:O},data:function(){return{dateScope:0,curType:0,showPop:!1,loading:{getData:!1},echartKey:Math.random(),keywordDatas:{}}},watch:{apiParams:{immediate:!0,handler:function(t){var e=T["amazonSiteB"].filter((function(t){return"IND"!==t.gy})).map((function(t){return t.value}));e.includes(t.marketplaceId)?this.getData():(this.keywordDatas={},this.echartKey=Math.random())}}},mounted:function(){},computed:Object(r["a"])(Object(r["a"])({},Object(s["c"])({SELLER_PACKAGE:d["d"]})),{},{isFree:function(){var t,e=this;if(this.SELLER_PACKAGE&&null!==(t=Object.keys(this.SELLER_PACKAGE))&&void 0!==t&&t.length){var a,n=null===(a=Object.keys(this.SELLER_PACKAGE))||void 0===a?void 0:a.some((function(t){var a,n,i;return 3==(null===(a=e.SELLER_PACKAGE[t])||void 0===a?void 0:a.status)||!(null!==(n=e.SELLER_PACKAGE[t])&&void 0!==n&&null!==(i=n.current)&&void 0!==i&&i.free)}));return!n}return!0},showFreeTip:function(){var t,e;return"UNSUPPORTED"==(null===(t=this.keywordDatas)||void 0===t||null===(e=t.trends)||void 0===e?void 0:e.status)},noData:function(){var t,e;return"INADEQUATE"==(null===(t=this.keywordDatas)||void 0===t||null===(e=t.trends)||void 0===e?void 0:e.status)},optionData:function(){var t,e,a,n,i,o,r=this,s={0:{key:"r",name:this.$t("aba_rank"),inverse:!0,min:1},1:{key:"v",name:this.$t("_KEYWORD_POPULARITY_KEYWORD_POPULARITY_ROW_TITLE"),inverse:!1,min:0}};return{grid:{top:12,left:40,right:0,bottom:20},xAxis:{type:"category",boundaryGap:!0,data:null===(t=this.keywordDatas)||void 0===t||null===(e=t.trends)||void 0===e||null===(a=e.items)||void 0===a?void 0:a.map((function(t){return t.s}))},yAxis:{axisLabel:{formatter:function(t,e){return t>=1e3?t/1e3+"k":t}},min:s[this.curType].min,inverse:s[this.curType].inverse},series:[{name:s[this.curType].name,type:"line",lineStyle:{color:"#EA5455"},itemStyle:{color:"#EA5455"},data:null===(n=this.keywordDatas)||void 0===n||null===(i=n.trends)||void 0===i||null===(o=i.items)||void 0===o?void 0:o.map((function(t){return t[s[r.curType].key]}))}]}}}),methods:{goTrackPage:function(t){var e={asin:t,marketplaceId:this.apiParams.marketplaceId,autoReset:!0};this.$router.push({path:"/competitive_analysis/tracker",query:e})},goAsinLookupPage:function(t){this.$router.push({path:"/asin_lookup_keywords",query:{marketplaceId:this.apiParams.marketplaceId,asin:t}})},togglePop:function(t){this.showPop=t},handleEmpty:function(){},goPackageCenter:function(){this.$router.push("/package_center")},goMoreKeyword:function(){this.$router.push({path:"/keywordToolk",query:{marketplaceId:this.apiParams.marketplaceId,searchKey:this.noData?"":this.apiParams.keywords,autoReset:!0}})},copyToClipboard:function(t){var e=this;this.$copyText(t).then((function(){e.$store.dispatch("app/updatePop",{title:e.$t("_KEYWORD_POPULARITY_COPY_SUCCESS"),icon:"EditIcon",variant:"success"})}))},getMarketplace:function(t){return p["E"].getMarketplace(t)},onChangeBtn:function(t){this.curType=t},emptyClick:function(){this.showPop&&(this.showPop=!1)},getData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.loading.getData=!0,e.next=4,Object(u["c"])(t.apiParams);case 4:a=e.sent,1==a.status&&(t.keywordDatas=a.content,t.echartKey=Math.random()),e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:return e.prev=10,t.loading.getData=!1,e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[0,8,10,13]])})))()}}},x=A,C=(a("b74a"),Object(b["a"])(x,n,i,!1,null,null,null));e["a"]=C.exports},"848e":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));var n=a("6d8b");function i(t,e){if(!t)return!1;for(var a=Object(n["t"])(t)?t:[t],i=0;i<a.length;i++)if(a[i]&&a[i][e])return!0;return!1}},"857a":function(t,e,a){var n=a("1d80"),i=/"/g;t.exports=function(t,e,a,o){var r=String(n(t)),s="<"+e;return""!==a&&(s+=" "+a+'="'+String(o).replace(i,"&quot;")+'"'),s+">"+r+"</"+e+">"}},"88a6":function(t,e,a){"use strict";a.d(e,"h",(function(){return s})),a.d(e,"l",(function(){return l})),a.d(e,"b",(function(){return c})),a.d(e,"c",(function(){return u})),a.d(e,"f",(function(){return d})),a.d(e,"n",(function(){return h})),a.d(e,"q",(function(){return p})),a.d(e,"m",(function(){return f})),a.d(e,"p",(function(){return m})),a.d(e,"o",(function(){return g})),a.d(e,"j",(function(){return _})),a.d(e,"k",(function(){return v})),a.d(e,"i",(function(){return y})),a.d(e,"a",(function(){return b})),a.d(e,"e",(function(){return S})),a.d(e,"d",(function(){return O})),a.d(e,"g",(function(){return T}));var n=a("5530"),i=(a("ac1f"),a("1276"),a("99af"),a("7f80")),o=a("b1b6"),r="https://das-server.tool4seller.com",s=function(t){return t=Object(n["a"])(Object(n["a"])({},t),{token:localStorage.getItem("token").split(" ")[1]}),window.location.href="".concat(r,"/tracker/sale-rank/export-rank")+Object(o["a"])(t)},l=function(t){return Object(i["e"])("".concat(r,"/tracker/sale-rank/list"),t)},c=function(t){return Object(i["f"])("".concat(r,"/tracker/sale-rank/add"),t)},u=function(t,e){return Object(i["f"])("".concat(r,"/tracker/sale-rank/add?dasCurrentShop=").concat(e),t)},d=function(t){return Object(i["f"])("".concat(r,"/tracker/sale-rank/remove"),t)},h=function(t){return Object(i["f"])("".concat(r,"/tracker/sale-rank/top"),t)},p=function(t){return Object(i["f"])("".concat(r,"/tracker/sale-rank/untop"),t)},f=function(t,e){return Object(i["f"])("".concat(r,"/tracker/sale-rank/activate/").concat(t.id,"\n"),{},e)},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i["e"])("".concat(r,"/tracker/sale-rank/tracked-listings"),t)},g=function(t){return Object(i["f"])("/tracker/sale-rank/tracked-asin-rank",t)},_=function(t,e){return Object(i["e"])(e?"".concat(r,"/tracker/sale-rank/detail?dasCurrentShop=").concat(e):"".concat(r,"/tracker/sale-rank/detail"),t)},v=function(t){return Object(i["e"])("".concat(r,"/tracker/sale-rank//list-competitor"),t)},y=function(t){return Object(i["e"])("".concat(r,"/commodity/listing-crawl"),t)},b=function(t){return Object(i["f"])("".concat(r,"/tracker/sale-rank/add-competitor"),t)},S=function(t){return Object(i["f"])("/tracker/sale-rank/batch/remove",t)},O=function(t,e){return Object(i["f"])("/tracker/sale-rank/batch/active",t,e)},T=function(t,e){return Object(i["f"])("/tracker/sale-rank/report",t,e)}},"88f0":function(t,e,a){"use strict";var n=a("7fae"),i=a("b12f"),o=a("6d8b"),r=a("2449"),s=a("e0d3"),l=a("7d6c"),c=Object(s["o"])(),u=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(n["a"])(e,t),e.prototype.init=function(){this.markerGroupMap=Object(o["f"])()},e.prototype.render=function(t,e,a){var n=this,i=this.markerGroupMap;i.each((function(t){c(t).keep=!1})),e.eachSeries((function(t){var i=r["a"].getMarkerModelFromSeries(t,n.type);i&&n.renderSeries(t,i,e,a)})),i.each((function(t){!c(t).keep&&n.group.remove(t.group)}))},e.prototype.markKeep=function(t){c(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var a=this;Object(o["k"])(t,(function(t){var n=r["a"].getMarkerModelFromSeries(t,a.type);if(n){var i=n.getData();i.eachItemGraphicEl((function(t){t&&(e?Object(l["q"])(t):Object(l["B"])(t))}))}}))},e.type="marker",e}(i["a"]);e["a"]=u},"89b6":function(t,e,a){"use strict";a.d(e,"e",(function(){return w})),a.d(e,"c",(function(){return I})),a.d(e,"b",(function(){return D})),a.d(e,"d",(function(){return N})),a.d(e,"a",(function(){return P}));var n=a("dce8"),i=a("cbe5"),o=a("d498"),r=a("20c8"),s=a("857d"),l=a("4a3f"),c=a("6d8b"),u=a("1687"),d=a("401b"),h=a("7d6c"),p=2*Math.PI,f=r["a"].CMD,m=["top","right","bottom","left"];function g(t,e,a,n,i){var o=a.width,r=a.height;switch(t){case"top":n.set(a.x+o/2,a.y-e),i.set(0,-1);break;case"bottom":n.set(a.x+o/2,a.y+r+e),i.set(0,1);break;case"left":n.set(a.x-e,a.y+r/2),i.set(-1,0);break;case"right":n.set(a.x+o+e,a.y+r/2),i.set(1,0);break}}function _(t,e,a,n,i,o,r,l,c){r-=t,l-=e;var u=Math.sqrt(r*r+l*l);r/=u,l/=u;var d=r*a+t,h=l*a+e;if(Math.abs(n-i)%p<1e-4)return c[0]=d,c[1]=h,u-a;if(o){var f=n;n=Object(s["a"])(i),i=Object(s["a"])(f)}else n=Object(s["a"])(n),i=Object(s["a"])(i);n>i&&(i+=p);var m=Math.atan2(l,r);if(m<0&&(m+=p),m>=n&&m<=i||m+p>=n&&m+p<=i)return c[0]=d,c[1]=h,u-a;var g=a*Math.cos(n)+t,_=a*Math.sin(n)+e,v=a*Math.cos(i)+t,y=a*Math.sin(i)+e,b=(g-r)*(g-r)+(_-l)*(_-l),S=(v-r)*(v-r)+(y-l)*(y-l);return b<S?(c[0]=g,c[1]=_,Math.sqrt(b)):(c[0]=v,c[1]=y,Math.sqrt(S))}function v(t,e,a,n,i,o,r,s){var l=i-t,c=o-e,u=a-t,d=n-e,h=Math.sqrt(u*u+d*d);u/=h,d/=h;var p=l*u+c*d,f=p/h;s&&(f=Math.min(Math.max(f,0),1)),f*=h;var m=r[0]=t+f*u,g=r[1]=e+f*d;return Math.sqrt((m-i)*(m-i)+(g-o)*(g-o))}function y(t,e,a,n,i,o,r){a<0&&(t+=a,a=-a),n<0&&(e+=n,n=-n);var s=t+a,l=e+n,c=r[0]=Math.min(Math.max(i,t),s),u=r[1]=Math.min(Math.max(o,e),l);return Math.sqrt((c-i)*(c-i)+(u-o)*(u-o))}var b=[];function S(t,e,a){var n=y(e.x,e.y,e.width,e.height,t.x,t.y,b);return a.set(b[0],b[1]),n}function O(t,e,a){for(var n,i,o=0,r=0,s=0,c=0,u=1/0,d=e.data,h=t.x,p=t.y,m=0;m<d.length;){var g=d[m++];1===m&&(o=d[m],r=d[m+1],s=o,c=r);var S=u;switch(g){case f.M:s=d[m++],c=d[m++],o=s,r=c;break;case f.L:S=v(o,r,d[m],d[m+1],h,p,b,!0),o=d[m++],r=d[m++];break;case f.C:S=Object(l["e"])(o,r,d[m++],d[m++],d[m++],d[m++],d[m],d[m+1],h,p,b),o=d[m++],r=d[m++];break;case f.Q:S=Object(l["l"])(o,r,d[m++],d[m++],d[m],d[m+1],h,p,b),o=d[m++],r=d[m++];break;case f.A:var O=d[m++],T=d[m++],A=d[m++],x=d[m++],C=d[m++],E=d[m++];m+=1;var w=!!(1-d[m++]);n=Math.cos(C)*A+O,i=Math.sin(C)*x+T,m<=1&&(s=n,c=i);var M=(h-O)*x/A+O;S=_(O,T,x,C,C+E,w,M,p,b),o=Math.cos(C+E)*A+O,r=Math.sin(C+E)*x+T;break;case f.R:s=o=d[m++],c=r=d[m++];var k=d[m++],I=d[m++];S=y(s,c,k,I,h,p,b);break;case f.Z:S=v(o,r,s,c,h,p,b,!0),o=s,r=c;break}S<u&&(u=S,a.set(b[0],b[1]))}return u}var T=new n["a"],A=new n["a"],x=new n["a"],C=new n["a"],E=new n["a"];function w(t,e){if(t){var a=t.getTextGuideLine(),o=t.getTextContent();if(o&&a){var r=t.textGuideLineConfig||{},s=[[0,0],[0,0],[0,0]],l=r.candidates||m,c=o.getBoundingRect().clone();c.applyTransform(o.getComputedTransform());var d=1/0,h=r.anchor,p=t.getComputedTransform(),f=p&&Object(u["e"])([],p),_=e.get("length2")||0;h&&x.copy(h);for(var v=0;v<l.length;v++){var y=l[v];g(y,0,c,T,C),n["a"].scaleAndAdd(A,T,C,_),A.transform(f);var b=t.getBoundingRect(),E=h?h.distance(A):t instanceof i["b"]?O(A,t.path,x):S(A,b,x);E<d&&(d=E,A.transform(p),x.transform(p),x.toArray(s[0]),A.toArray(s[1]),T.toArray(s[2]))}I(s,e.get("minTurnAngle")),a.setShape({points:s})}}}var M=[],k=new n["a"];function I(t,e){if(e<=180&&e>0){e=e/180*Math.PI,T.fromArray(t[0]),A.fromArray(t[1]),x.fromArray(t[2]),n["a"].sub(C,T,A),n["a"].sub(E,x,A);var a=C.len(),i=E.len();if(!(a<.001||i<.001)){C.scale(1/a),E.scale(1/i);var o=C.dot(E),r=Math.cos(e);if(r<o){var s=v(A.x,A.y,x.x,x.y,T.x,T.y,M,!1);k.fromArray(M),k.scaleAndAdd(E,s/Math.tan(Math.PI-e));var l=x.x!==A.x?(k.x-A.x)/(x.x-A.x):(k.y-A.y)/(x.y-A.y);if(isNaN(l))return;l<0?n["a"].copy(k,A):l>1&&n["a"].copy(k,x),k.toArray(t[1])}}}}function D(t,e,a){if(a<=180&&a>0){a=a/180*Math.PI,T.fromArray(t[0]),A.fromArray(t[1]),x.fromArray(t[2]),n["a"].sub(C,A,T),n["a"].sub(E,x,A);var i=C.len(),o=E.len();if(!(i<.001||o<.001)){C.scale(1/i),E.scale(1/o);var r=C.dot(e),s=Math.cos(a);if(r<s){var l=v(A.x,A.y,x.x,x.y,T.x,T.y,M,!1);k.fromArray(M);var c=Math.PI/2,u=Math.acos(E.dot(e)),d=c+u-a;if(d>=c)n["a"].copy(k,x);else{k.scaleAndAdd(E,l/Math.tan(Math.PI/2-d));var h=x.x!==A.x?(k.x-A.x)/(x.x-A.x):(k.y-A.y)/(x.y-A.y);if(isNaN(h))return;h<0?n["a"].copy(k,A):h>1&&n["a"].copy(k,x)}k.toArray(t[1])}}}}function L(t,e,a,n){var i="normal"===a,o=i?t:t.ensureState(a);o.ignore=e;var r=n.get("smooth");r&&!0===r&&(r=.3),o.shape=o.shape||{},r>0&&(o.shape.smooth=r);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function R(t,e){var a=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),a>0&&n.length>=3){var i=d["f"](n[0],n[1]),o=d["f"](n[1],n[2]);if(!i||!o)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var r=Math.min(i,o)*a,s=d["j"]([],n[1],n[0],r/i),l=d["j"]([],n[1],n[2],r/o),c=d["j"]([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var u=1;u<n.length;u++)t.lineTo(n[u][0],n[u][1])}function N(t,e,a){var n=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var r=e.normal,s=r.get("show"),l=i.ignore,u=0;u<h["a"].length;u++){var d=h["a"][u],p=e[d],f="normal"===d;if(p){var m=p.get("show"),g=f?l:Object(c["P"])(i.states[d]&&i.states[d].ignore,l);if(g||!Object(c["P"])(m,s)){var _=f?n:n&&n.states[d];_&&(_.ignore=!0);continue}n||(n=new o["a"],t.setTextGuideLine(n),f||!l&&s||L(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),L(n,!1,d,p)}}if(n){Object(c["i"])(n.style,a),n.style.fill=null;var v=r.get("showAbove"),y=t.textGuideLineConfig=t.textGuideLineConfig||{};y.showAbove=v||!1,n.buildPath=R}}else n&&t.removeTextGuideLine()}function P(t,e){e=e||"labelLine";for(var a={normal:t.getModel(e)},n=0;n<h["g"].length;n++){var i=h["g"][n];a[i]=t.getModel([i,e])}return a}},"8acb":function(t,e,a){"use strict";a.d(e,"a",(function(){return U}));var n=a("7fae"),i=a("6d8b"),o=a("e887"),r=a("76a5"),s=a("deab"),l=a("4aa2"),c=a("7d6c"),u=a("7837"),d=a("861c"),h=a("d32f"),p=a("b3c1"),f=2,m=4,g=function(t){function e(e,a,n,i){var o=t.call(this)||this;o.z2=f,o.textConfig={inside:!0},Object(d["a"])(o).seriesIndex=a.seriesIndex;var s=new r["a"]({z2:m,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,n,i),o}return Object(n["a"])(e,t),e.prototype.updateData=function(t,e,a,n,o){this.node=e,e.piece=this,a=a||this._seriesModel,n=n||this._ecModel;var r=this;Object(d["a"])(r).dataIndex=e.dataIndex;var l=e.getModel(),u=l.getModel("emphasis"),f=e.getLayout(),m=i["m"]({},f);m.label=null;var g=e.getVisual("style");g.lineJoin="bevel";var _=e.getVisual("decal");_&&(g.decal=Object(p["a"])(_,o));var v=Object(h["a"])(l.getModel("itemStyle"),m,!0);i["m"](m,v),i["k"](c["g"],(function(t){var e=r.ensureState(t),a=l.getModel([t,"itemStyle"]);e.style=a.getItemStyle();var n=Object(h["a"])(a,m);n&&(e.shape=n)})),t?(r.setShape(m),r.shape.r=f.r0,s["h"](r,{shape:{r:f.r}},a,e.dataIndex)):(s["h"](r,{shape:m},a),Object(s["g"])(r)),r.useStyle(g),this._updateLabel(a);var y=l.getShallow("cursor");y&&r.attr("cursor",y),this._seriesModel=a||this._seriesModel,this._ecModel=n||this._ecModel;var b=u.get("focus"),S="ancestor"===b?e.getAncestorsIndices():"descendant"===b?e.getDescendantIndices():b;Object(c["J"])(this,S,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,a=this.node.getModel(),n=a.getModel("label"),o=this.node.getLayout(),r=o.endAngle-o.startAngle,s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),d=Math.sin(s),h=this,p=h.getTextContent(),f=this.node.dataIndex,m=n.get("minAngle")/180*Math.PI,g=n.get("show")&&!(null!=m&&Math.abs(r)<m);function _(t,e){var a=t.get(e);return null==a?n.get(e):a}p.ignore=!g,i["k"](c["a"],(function(n){var c="normal"===n?a.getModel("label"):a.getModel([n,"label"]),m="normal"===n,g=m?p:p.ensureState(n),v=t.getFormattedLabel(f,n);m&&(v=v||e.node.name),g.style=Object(u["c"])(c,{},null,"normal"!==n,!0),v&&(g.style.text=v);var y=c.get("show");null==y||m||(g.ignore=!y);var b,S=_(c,"position"),O=m?h:h.states[n],T=O.style.fill;O.textConfig={outsideFill:"inherit"===c.get("color")?T:null,inside:"outside"!==S};var A=_(c,"distance")||0,x=_(c,"align");"outside"===S?(b=o.r+A,x=s>Math.PI/2?"right":"left"):x&&"center"!==x?"left"===x?(b=o.r0+A,s>Math.PI/2&&(x="right")):"right"===x&&(b=o.r-A,s>Math.PI/2&&(x="left")):(b=r===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,x="center"),g.style.align=x,g.style.verticalAlign=_(c,"verticalAlign")||"middle",g.x=b*l+o.cx,g.y=b*d+o.cy;var C=_(c,"rotate"),E=0;"radial"===C?(E=-s,E<-Math.PI/2&&(E+=Math.PI)):"tangential"===C?(E=Math.PI/2-s,E>Math.PI/2?E-=Math.PI:E<-Math.PI/2&&(E+=Math.PI)):i["z"](C)&&(E=C*Math.PI/180),g.rotation=E})),p.dirtyStyle()},e}(l["a"]),_=g,v=a("80f0"),y=a("55ac"),b="sunburstRootToNode",S="sunburstHighlight",O="sunburstUnhighlight";function T(t){t.registerAction({type:b,update:"updateView"},(function(t,e){function a(e,a){var n=Object(y["c"])(t,[b],e);if(n){var i=e.getViewRoot();i&&(t.direction=Object(y["a"])(i,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},a)})),t.registerAction({type:S,update:"none"},(function(t,e,a){function n(e){var a=Object(y["c"])(t,[S],e);a&&(t.dataIndex=a.node.dataIndex)}t=Object(i["m"])({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},n),a.dispatchAction(Object(i["m"])(t,{type:"highlight"}))})),t.registerAction({type:O,update:"updateView"},(function(t,e,a){t=Object(i["m"])({},t),a.dispatchAction(Object(i["m"])(t,{type:"downplay"}))}))}var A=a("eda2"),x=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(n["a"])(e,t),e.prototype.render=function(t,e,a,n){var o=this;this.seriesModel=t,this.api=a,this.ecModel=e;var r=t.getData(),s=r.tree.root,l=t.getViewRoot(),c=this.group,u=t.get("renderLabelForZeroData"),d=[];l.eachNode((function(t){d.push(t)}));var h=this._oldChildren||[];function p(t,e){function a(t){return t.getId()}function n(a,n){var i=null==a?null:t[a],o=null==n?null:e[n];f(i,o)}0===t.length&&0===e.length||new v["a"](e,t,a,a).add(n).update(n).remove(i["h"](n,null)).execute()}function f(n,i){if(u||!n||n.getValue()||(n=null),n!==s&&i!==s)if(i&&i.piece)n?(i.piece.updateData(!1,n,t,e,a),r.setItemGraphicEl(n.dataIndex,i.piece)):m(i);else if(n){var o=new _(n,t,e,a);c.add(o),r.setItemGraphicEl(n.dataIndex,o)}}function m(t){t&&t.piece&&(c.remove(t.piece),t.piece=null)}function g(n,i){i.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,n,t,e,a):(o.virtualPiece=new _(n,t,e,a),c.add(o.virtualPiece)),i.piece.off("click"),o.virtualPiece.on("click",(function(t){o._rootToNode(i.parentNode)}))):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}p(d,h),g(s,l),this._initEvents(),this._oldChildren=d},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var a=!1,n=t.seriesModel.getViewRoot();n.eachNode((function(n){if(!a&&n.piece&&n.piece===e.target){var i=n.getModel().get("nodeClick");if("rootToNode"===i)t._rootToNode(n);else if("link"===i){var o=n.getModel(),r=o.get("link");if(r){var s=o.get("target",!0)||"_blank";Object(A["j"])(r,s)}}a=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:b,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var a=e.getData(),n=a.getItemLayout(0);if(n){var i=t[0]-n.cx,o=t[1]-n.cy,r=Math.sqrt(i*i+o*o);return r<=n.r&&r>=n.r0}},e.type="sunburst",e}(o["a"]),C=x,E=a("4f85"),w=a("06c7"),M=a("4319"),k=a("933c"),I=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.ignoreStyleOnData=!0,a}return Object(n["a"])(e,t),e.prototype.getInitialData=function(t,e){var a={name:t.name,children:t.data};D(a);var n=this._levelModels=i["H"](t.levels||[],(function(t){return new M["a"](t,this,e)}),this),o=w["a"].createTree(a,this,r);function r(t){t.wrapMethod("getItemModel",(function(t,e){var a=o.getNodeByDataIndex(e),i=n[a.depth];return i&&(t.parentModel=i),t}))}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var a=t.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=Object(y["d"])(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Object(k["a"])(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(E["b"]);function D(t){var e=0;i["k"](t.children,(function(t){D(t);var a=t.value;i["t"](a)&&(a=a[0]),e+=a}));var a=t.value;i["t"](a)&&(a=a[0]),(null==a||isNaN(a))&&(a=e),a<0&&(a=0),i["t"](t.value)?t.value[0]=a:t.value=a}var L=I,R=a("3842"),N=Math.PI/180;function P(t,e,a){e.eachSeriesByType(t,(function(t){var e=t.get("center"),n=t.get("radius");i["t"](n)||(n=[0,n]),i["t"](e)||(e=[e,e]);var o=a.getWidth(),r=a.getHeight(),s=Math.min(o,r),l=Object(R["o"])(e[0],o),c=Object(R["o"])(e[1],r),u=Object(R["o"])(n[0],s/2),d=Object(R["o"])(n[1],s/2),h=-t.get("startAngle")*N,p=t.get("minAngle")*N,f=t.getData().tree.root,m=t.getViewRoot(),g=m.depth,_=t.get("sort");null!=_&&j(m,_);var v=0;i["k"](m.children,(function(t){!isNaN(t.getValue())&&v++}));var y=m.getValue(),b=Math.PI/(y||v)*2,S=m.depth>0,O=m.height-(S?-1:1),T=(d-u)/(O||1),A=t.get("clockwise"),x=t.get("stillShowZeroSum"),C=A?1:-1,E=function(e,a){if(e){var n=a;if(e!==f){var o=e.getValue(),r=0===y&&x?b:o*b;r<p&&(r=p),n=a+C*r;var d=e.depth-g-(S?-1:1),h=u+T*d,m=u+T*(d+1),_=t.getLevelModel(e);if(_){var v=_.get("r0",!0),O=_.get("r",!0),w=_.get("radius",!0);null!=w&&(v=w[0],O=w[1]),null!=v&&(h=Object(R["o"])(v,s/2)),null!=O&&(m=Object(R["o"])(O,s/2))}e.setLayout({angle:r,startAngle:a,endAngle:n,clockwise:A,cx:l,cy:c,r0:h,r:m})}if(e.children&&e.children.length){var M=0;i["k"](e.children,(function(t){M+=E(t,a+M)}))}return n-a}};if(S){var w=u,M=u+T,k=2*Math.PI;f.setLayout({angle:k,startAngle:h,endAngle:h+k,clockwise:A,cx:l,cy:c,r0:w,r:M})}E(m,h)}))}function j(t,e){var a=t.children||[];t.children=$(a,e),a.length&&i["k"](t.children,(function(t){j(t,e)}))}function $(t,e){if(i["w"](e)){var a=i["H"](t,(function(t,e){var a=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return a}},index:e}}));return a.sort((function(t,a){return e(t.params,a.params)})),i["H"](a,(function(e){return t[e.index]}))}var n="asc"===e;return t.sort((function(t,e){var a=(t.getValue()-e.getValue())*(n?1:-1);return 0===a?(t.dataIndex-e.dataIndex)*(n?-1:1):a}))}var F=a("41ef");function B(t){var e={};function a(t,a,n){var o=t;while(o&&o.depth>1)o=o.parentNode;var r=a.getColorFromPalette(o.name||o.dataIndex+"",e);return t.depth>1&&Object(i["C"])(r)&&(r=Object(F["c"])(r,(t.depth-1)/(n-1)*.5)),r}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(o){var r=o.getModel(),s=r.getModel("itemStyle").getItemStyle();s.fill||(s.fill=a(o,t,n.root.height));var l=e.ensureUniqueItemVisual(o.dataIndex,"style");Object(i["m"])(l,s)}))}))}var Y=a("d3f4");function U(t){t.registerChartView(C),t.registerSeriesModel(L),t.registerLayout(Object(i["h"])(P,"sunburst")),t.registerProcessor(Object(i["h"])(Y["a"],"sunburst")),t.registerVisual(B),T(t)}},"8b9f":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"buyer-origin-main"},[a("div",{directives:[{name:"deep-loading",rawName:"v-deep-loading",value:t.loading,expression:"loading"}],staticClass:"buyer-origin-main__table"},[a("common-table",{ref:"commonTableEle",staticClass:"contentTable",attrs:{trOverBlock:"",tableId:"origin_table","table-data":t.finalList,options:t.tableOptions},on:{sortChangedFull:t.handleSortChange},scopedSlots:t._u([{key:"cell(idx)",fn:function(e){return[a("div",{staticClass:"buyer-origin-rank-circle",class:t.getRankClass(e.data.index)},[t._v(" "+t._s(e.data.index+1)+" ")])]}},{key:"cell(region)",fn:function(e){return[e.data.value?a("div",[e.data.item.hasTip?t._e():a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top.noninteractive",value:t.getShowName(e.data.value),expression:"getShowName(data.data.value)",modifiers:{hover:!0,top:!0,noninteractive:!0}}],staticStyle:{padding:"0"},attrs:{variant:"link"},on:{click:function(a){t.currentRegion=e.data.value,t.currentName=t.getShowName(e.data.value),t.sideVisible=!0}}},[t._v(t._s(t.getShowName(e.data.value)))]),e.data.item.hasTip?a("b-button",{staticStyle:{padding:"0"},attrs:{variant:"link"}},[t._v(t._s(e.data.value))]):t._e(),e.data.item.hasTip?a("feather-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.right.html",value:t.otherTipHtml,expression:"otherTipHtml",modifiers:{right:!0,html:!0}}],staticClass:"appendTipStyle",attrs:{icon:"InfoIcon",size:"14"}}):t._e()],1):a("div",[t._v("-")])]}}])})],1),a("div",{staticClass:"buyer-origin-main__chart"},[a("province-map",{attrs:{unValuable:!t.isCodeValuable,loading:t.loading,isRefund:t.tableParams?t.tableParams.isRefund:0,regionCode:t.CURRENT_CODE,regionData:t.list}})],1),a("region-sidebar",{attrs:{currentName:t.currentName,tableParams:t.tableParams,visible:t.sideVisible,region:t.currentRegion},on:{hidden:function(e){t.sideVisible=!1}}})],1)},i=[],o=(a("e9c4"),a("d3b7"),a("159b"),a("4e82"),a("b64b"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("b-sidebar",{staticClass:"region-sidebar-wrapper",attrs:{width:"765",visible:t.visible,"bg-variant":"white",right:"","no-header":"",backdrop:"",shadow:""},on:{hidden:function(e){return t.$emit("hidden")}}},[a("div",{directives:[{name:"deep-loading",rawName:"v-deep-loading",value:t.loading,expression:"loading"}],staticClass:"region-sidebar"},[a("div",{staticClass:"region-sidebar__head"},[a("div",{staticClass:"region-sidebar__head-title"},[t._v(" "+t._s(t.tableParams&&t.tableParams.isRefund?t.$t("orderdistrmap_retrunrank"):t.$t("orderdistrmap_salerank"))+" - "+t._s(t.currentName||t.region)+" ")]),a("feather-icon",{staticClass:"region-sidebar__head-close",attrs:{icon:"XIcon",size:"16"},on:{click:function(e){return t.$emit("hidden")}}})],1),a("div",{staticClass:"region-sidebar__body"},[a("common-table",{ref:"commonTableEle",staticClass:"contentTable",attrs:{trOverBlock:"",border:!0,tableId:"origin_table_sidebar",tableData:t.list,options:t.tableOptions},scopedSlots:t._u([{key:"cell(idx)",fn:function(e){return[a("div",{staticClass:"buyer-origin-rank-circle",class:t.getRankClass(e.data.index)},[t._v(" "+t._s(e.data.index+1)+" ")])]}},{key:"cell(region)",fn:function(e){return[e.data.value?a("div",[e.data.item.hasTip?t._e():a("b-button",{staticStyle:{padding:"0"},attrs:{variant:"link"},on:{click:function(a){t.currentRegion=e.data.value,t.sideVisible=!0}}},[t._v(t._s(t.getShowName(e.data.value)))]),e.data.item.hasTip?a("b-button",{staticStyle:{padding:"0"},attrs:{variant:"link"}},[t._v(t._s(e.data.value))]):t._e(),e.data.item.hasTip?a("feather-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.right.html",value:t.otherTipHtml,expression:"otherTipHtml",modifiers:{right:!0,html:!0}}],staticClass:"appendTipStyle",attrs:{icon:"InfoIcon",size:"14"}}):t._e()],1):a("div",[t._v("-")])]}}])})],1)])])}),r=[],s=a("5530"),l=(a("4de4"),a("e249")),c=a("0823"),u={components:{commonTable:c["a"]},data:function(){return{list:[],loading:!1}},props:{currentName:{},visible:{default:!0},tableParams:{},region:{}},computed:{channelOptions:function(){return[{label:this.$t("_COMMON_SELECTOR_ALL"),value:"all"},{label:this.$t("ae_segment_title_fba"),value:"AFN"},{label:this.$t("ae_segment_title_fbm"),value:"MFN"}]},tableOptions:function(){var t=this,e=this;return{hidePagination:!0,stickyHeader:"calc(100vh - 60px)",filterVis:!1,fields:[{key:"idx",headerPosition:"left",diy:!0,width:50,label:e.$t("_DAILY_LISTING_REPORT_RANK")},{key:"title",headerPosition:"left",type:"productInfo",width:240,keyMap:{parentAsin:""},label:e.$t("_COMMON_TH_PRODUCT_INFO")},{key:"fulfillmentChannel",width:60,label:e.$t("orderdistrmap_fulfillmentfltr"),formatter:function(e,a,n){var i=t.channelOptions.filter((function(t){return t.value===e}));return i.length?i[0].label:e}},{key:"salesNum",width:80,label:this.tableParams.isRefund?e.$t("_COMMON_TH_REFUND_QUANTITY"):e.$t("orderdistrmap_sales"),formatter:function(e,a,n){return"number"!==typeof e?"-":t.$options.filters["thousand"](e)}},{key:"percent",width:140,label:this.tableParams.isRefund?e.$t("orderdistrmap_proportionofreturns"):e.$t("orderdistrmap_proportionoforders"),formatter:function(e,a,n){return"number"!==typeof e?"-":t.$options.filters["toPercent"](e)}}]}}},methods:{getRankClass:function(t){var e="";return 0===t?e="red":1===t?e="yellow":2===t&&(e="blue"),e?"buyer-origin-rank-circle--".concat(e):""},getList:function(){var t=this;this.loading=!0;var e=Object(s["a"])(Object(s["a"])({},this.tableParams),{},{region:this.region});return Object(l["b"])(e).then((function(e){if(1===e.status){var a=e.content;t.list=a}t.loading=!1}),(function(){t.loading=!1}))}},watch:{visible:function(t){t&&this.getList()}}},d=u,h=(a("5261"),a("2877")),p=Object(h["a"])(d,o,r,!1,null,null,null),f=p.exports,m=a("e029"),g={CA:"Canada",MX:"Mexico",US:"USA",DE:"Germany",ES:"Spain",FR:"France",IT:"Italy",UK:"United_Kingdom",NL:"The_Netherlands",SE:"Sweden",PL:"Poland",JP:"Japan"},_={name:"region-list-map",data:function(){return{currentName:"",sortBy:"",sortDesc:"",sideVisible:!1,currentRegion:""}},components:{RegionSidebar:f,ProvinceMap:m["a"],commonTable:c["a"]},props:{stickyHeader:{},loading:{},tableParams:{},list:{},shopId:{},currentCode:{}},computed:{otherTipHtml:function(){return'<div style="max-width: 300px">\n        '.concat(this.$t("orderdistrmap_otherillus"),"\n        </div>")},isCodeValuable:function(){return!!g[this.currentCode]},finalList:function(){var t=this;if(!this.list.length){for(var e=[],a=0;a<16;a++)e.push({salesNum:"-",orderNum:"-",percent:"-"});return e}var n=[{key:"salesNum",filterName:"thousand"},{key:"orderNum",filterName:"thousand"},{key:"percent",filterName:"toPercent"}],i=function(e,a,n){var i=e[a],o="";o="number"!==typeof i?"-":t.$options.filters[n](i),e[a]=o},o=JSON.parse(JSON.stringify(this.list));if(o.forEach((function(e,a){n.forEach((function(t){var a=t.key,n=t.filterName;i(e,a,n)}));var o=e["region"];"others"===o&&(e.hasTip=!0,e.region=t.$t("global_other"))})),!this.sortBy)return o;var r=o.sort((function(e,a){return"asc"===t.sortDesc?e[t.sortBy]-a[t.sortBy]:a[t.sortBy]-e[t.sortBy]}));return r},dicMap:function(){return this.$store.state.libInfo.regionInfo},IS_LANG_EN:function(){return"en"===this.$i18n.locale},IS_LANG_ZH:function(){return"zh-CN"===this.$i18n.locale||"zh-TW"===this.$i18n.locale},IS_LANG_JP:function(){return"ja_jp"===this.$i18n.locale},currentLang:function(){var t="EN";return this.IS_LANG_JP?t="JP":this.IS_LANG_ZH&&(t="CN"),t},CURRENT_SHOP_ID:function(){return this.shopId},CURRENT_CODE:function(){return this.currentCode},tableOptions:function(){var t=this;return{hidePagination:!0,stickyHeader:this.stickyHeader?this.stickyHeader:"calc(100vh - 218px)",filterVis:!1,fields:[{key:"idx",headerPosition:"left",diy:!0,width:50,label:t.$t("_DAILY_LISTING_REPORT_RANK")},{key:"region",headerPosition:"left",width:100,diy:!0,label:t.$t("orderdistrmap_region")},{key:"salesNum",width:100,label:this.tableParams.isRefund?t.$t("_COMMON_TH_REFUND_QUANTITY"):t.$t("orderdistrmap_sales"),sortable:!0},{key:"orderNum",width:100,label:t.$t("_ADOVERVIEW_NUMBER_OF_ORDERS"),sortable:!0},{key:"percent",width:160,label:this.tableParams.isRefund?t.$t("orderdistrmap_proportionofreturnsorder"):t.$t("orderdistrmap_proportionoforders")}]}}},methods:{handleSortChange:function(t){var e=t.sortDesc,a=t.sortBy;this.sortDesc=e?"desc":"asc",this.sortBy=a},getShowName:function(t){if(!Object.keys(this.dicMap).length)return t;var e=this.dicMap[this.CURRENT_CODE+"_"+t];return e?e["LC"]:t},getRankClass:function(t){var e="";return 0===t?e="red":1===t?e="yellow":2===t&&(e="blue"),e?"buyer-origin-rank-circle--".concat(e):""},totalFn:function(t,e){var a=this.list;if(!a.length||"number"!==typeof a[0][t])return"-";var n=a.reduce((function(e,a){return e+a[t]}),0);return e?this.$options.filters[e](n):n}},mounted:function(){this.sortDesc="",this.sortBy=""}},v=_,y=(a("6732"),Object(h["a"])(v,n,i,!1,null,null,null));e["a"]=y.exports},"8c2b":function(t,e,a){},"8eac":function(t,e,a){},"8efa":function(t,e,a){"use strict";a.d(e,"d",(function(){return i})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return r})),a.d(e,"e",(function(){return s})),a.d(e,"a",(function(){return l}));a("db49");var n=a("7f80"),i=function(t,e){return Object(n["f"])("/aba/search-terms/s",t,e)},o=function(t){return Object(n["e"])("/aba/search-terms",t)},r=function(t){return Object(n["e"])("/aba/search-terms/s",t)},s=function(){return Object(n["e"])("/aba/search-terms/information")},l=function(t){return Object(n["f"])("/aba/search-terms/export",t)}},"8f04":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("draggable-pad",{attrs:{padId:t.padId,customStyle:"min-width: 536px;"},on:{close:function(e){return t.$emit("close")}}},[a("div",[a("div",{staticClass:"d-d-c-head product-info-block"},[a("productInfoTableColumn",{staticStyle:{width:"420px"},attrs:{noCopy:!0,entity:t.baseModel,"key-map":{imageUrl:"masterImage"}}})],1),a("b-row",[a("b-col",{staticClass:"d-d-c-head d-d-c-head--type_big"},[a("div",{staticStyle:{width:"100%"}},[a("common-simple-slipper",{attrs:{"max-width":500,tabs:t.chartBlocks,defaultCurrentTab:t.selectBlock.length?t.selectBlock[0]:""},on:{tabChange:t.handleBlockChange}})],1)])],1),a("b-row",[a("b-col",{staticClass:"d-d-c-head"},[a("b-form-group",[a("b-form-radio-group",{attrs:{"button-variant":"outline-nobg",options:t.dateSelectOptions,buttons:"",name:"radio-btn-stacked"},model:{value:t.dateSelectType,callback:function(e){t.dateSelectType=e},expression:"dateSelectType"}})],1),a("div",{staticClass:"d-d-c-head__line-title"},[t._v(" "+t._s(t.timeRange)+" ")]),a("span",{staticClass:"m-l-8 g-link-btn",on:{click:function(e){return t.$emit("goDetail",t.baseModel)}}},[t._v(t._s(t.$t("_DASHBOARD_MORE")))])],1)],1),a("b-row",[a("b-col",[a("div",{staticClass:"d-d-c-chart-wrapper"},[a("div",{directives:[{name:"deep-loading",rawName:"v-deep-loading",value:t.loading,expression:"loading"}],staticClass:"d-d-c-chart",on:{mousedown:function(e){return e.stopPropagation(),t.handleEmpty()}}},[a("line-chart",{key:"lineChart"+t.$options.name+t.dateSelectType,attrs:{maxHeight:269,isSingleY:t.isSingleY,dateSelectType:t.dateSelectType,selectBlock:t.selectBlock,rangeDate:t.rangeDate,hideDownload:!0,currencySymbol:t.currencySymbol,chartData:t.chartData}})],1)])])],1)],1)])},i=[],o=a("1da1"),r=a("5530"),s=(a("96cf"),a("d81d"),a("9c50")),l=a("6ddf"),c=a("c1df"),u=a.n(c),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.isEmpty?a("div",{staticClass:"empty-block"},[t._v(" "+t._s(t.$t("global_nodata"))+" ")]):a("app-echart-line-custom",{key:t.echartKey,ref:"lineCharts",attrs:{optionData:t.optionData,height:t.maxHeight?t.maxHeight:400}})],1)},h=[],p=(a("a15b"),a("d3b7"),a("159b"),a("99af"),a("fb6a"),a("a630"),a("3ca3"),a("6b33"),a("493d"),a("bb87")),f=(a("8f05"),a("e237"),["#2B88F6","#FF9F43","#9257F2","#F43F3F","#D63384","#5759F2","#28C797","#0A7D00","#00CFE8","#B1CF39"]),m={name:"lineChart",components:{AppEchartLineCustom:p["a"]},props:{maxHeight:{},hideDownload:{},isSingleY:{},dateSelectType:{},selectBlock:{},rangeDate:{},refundDays:{},chartData:{},currencySymbol:{}},computed:{},data:function(){return{optionData:{},config:{},echartKey:Math.random(),isEmpty:!1}},methods:{createZonedMoment:function(){return l["b"].apply(void 0,arguments)},getDateRange:function(t){var e=this.createZonedMoment(t).subtract(5,"days").format("YYYY-MM-DD"),a=this.createZonedMoment(t).subtract(35,"days").format("YYYY-MM-DD");return a+" ~ "+e},thousandUnit:function(t){return t>=1e3?t/1e3+"K+":t+(t>0?"+":"")},initChart:function(){var t,e,a,n,i=this;this.config={monthlySoldHistory:{key:["count"],label:[this.$t("ae_parameter_month_sales")]},listPriceHistory:{currency:!0,obj:["buyBoxShippingPriceHistory","listPriceHistory"],key:["price","price"],label:[this.$t("global_trackDetail_operateIndex_buybox"),this.$t("global_listing_price")]},categorySaleRanks:{inverse:!0,min:1,key:["rank"]},historyStars:{twoYAxis:!0,obj:["historyStars","historyReviews"],key:["rating","count"],label:[this.$t("global_trackDetail_operateIndex_rate"),this.$t("ae_rating_count")]}};var o,r=this.config[this.selectBlock[0]];this.createZonedMoment(this.rangeDate[0]).format("x"),this.createZonedMoment(this.rangeDate[1]).format("x");if("categorySaleRanks"==this.selectBlock[0]){var s=this.chartData[this.selectBlock[0]];this.config[this.selectBlock[0]].label=null===s||void 0===s?void 0:s.map((function(t){return i.chartData.categoryMappings[t.categoryId].join(" > ")})),o=null===s||void 0===s?void 0:s.map((function(t){return t.saleRanks}))}else{var l;o=null!==r&&void 0!==r&&null!==(l=r.obj)&&void 0!==l&&l.length?r.obj.map((function(t){return i.chartData[t]})):[this.chartData[this.selectBlock[0]]]}null!==(t=o)&&void 0!==t&&t.some((function(t){return t.length>0}))?this.isEmpty=!1:this.isEmpty=!0;var c,u,d,h,p=null,m=null,g={},_=null;"monthlySoldHistory"==this.selectBlock[0]&&(m=null===(c=this.chartData.categorySaleRanks)||void 0===c||null===(u=c[0])||void 0===u||null===(d=u.saleRanks)||void 0===d?void 0:d.map((function(t){return i.createZonedMoment(t.timestamp).format("YYYY-MM-DD")})),this.chartData.monthlySoldHistory.forEach((function(t){g[i.createZonedMoment(t.timestamp).format("YYYY-MM-DD")]=t.count})),_=null===(h=m)||void 0===h?void 0:h.map((function(t,e){return g[t]&&(p=e),g[t]||null})),p>=0&&(_=_.slice(0,p).concat(Array.from({length:_.length-p}).map((function(t){return _[p]})))));var v={grid:{top:36,containLabel:!0,bottom:0},xAxis:{type:"category",boundaryGap:!0,data:"monthlySoldHistory"==this.selectBlock[0]?m:null===(e=o[0])||void 0===e?void 0:e.map((function(t){return i.createZonedMoment(t.timestamp).format("YYYY-MM-DD")}))},yAxis:r.twoYAxis?null===(a=o)||void 0===a?void 0:a.map((function(t){return{axisLabel:{formatter:function(t,e){return t>=1e3?t/1e3+"K":t+""}},min:r.min||0,inverse:r.inverse}})):{axisLabel:{formatter:function(t,e){return"monthlySoldHistory"==i.selectBlock[0]?t>=1e3?t/1e3+"K+":t+"+":t>=1e3?t/1e3+"K":t}},min:r.min||0,inverse:r.inverse},legend:{type:"scroll",top:0,data:r.label,textStyle:{color:"#333",fontWeight:"500"},itemGap:20},series:null===(n=o)||void 0===n?void 0:n.map((function(t,e){return Object.assign({name:r.label[e],type:"line",step:"end",lineStyle:{color:f[e]||"#EA5455"},itemStyle:{color:f[e]||"#EA5455"},data:"monthlySoldHistory"==i.selectBlock[0]?_:null===t||void 0===t?void 0:t.map((function(t){return t[r.key["categorySaleRanks"==i.selectBlock[0]?0:e]]}))},"historyStars"==i.selectBlock[0]?{yAxisIndex:e}:{})}))};"monthlySoldHistory"==this.selectBlock[0]&&(v.tooltip={formatter:function(t){var e=t.reduce((function(t,e){return t+"<div class='tooltip-item'>\n              <span class='tooltip-item_label'>\n                ".concat(e.seriesName," ").concat(i.$t("_COMMON_SYMBOL_COLON"),"\n              </span>\n              <span>").concat(e.value?i.thousandUnit(e.value):"-","</span>\n            </div>")}),"");return"<div class='AppEchartLineCustom-tooltip-wrapper wrapper' style='padding:16px'>\n            <div class='tooltip-title'>".concat(t[0].axisValue,"</div>\n            <div class='line'></div>\n            <div class='tooltip-content'>\n              <div class=\"tooltip-item\">\n                <span class='tooltip-item_label'>").concat(i.$t("asin_tracker_month_sale_date")+i.$t("_COMMON_SYMBOL_COLON"),"</span>\n                <span>").concat(i.getDateRange(t[0].axisValue),"</span>\n              </div>\n            </div>\n            <div class='tooltip-content'>").concat(e,"</div>\n            </div>")}}),"listPriceHistory"==this.selectBlock[0]&&(v.tooltip={formatter:function(t){var e=t.reduce((function(t,e){return t+"<div class='tooltip-item'>".concat(e.marker,"<span class='tooltip-item_label'>").concat(e.seriesName," : </span>").concat(e.value?i.currencySymbol:"").concat(i.$options.filters["thousand"](e.value)||"--","</div>")}),"");return"<div class='AppEchartLineCustom-tooltip-wrapper'>\n            <div class='tooltip-title'>".concat(t[0].axisValue,"</div>\n            <div class='line'></div>\n            <div class='tooltip-content'>").concat(e,"</div>\n            </div>")}}),this.echartKey=Math.random(),this.optionData=v}},watch:{"$i18n.locale":function(){this.initChart()},chartData:"initChart",dateSelectType:"initChart",isSingleY:"initChart",selectBlock:{immediate:!0,handler:"initChart"}},mounted:function(){}},g=m,_=(a("936a"),a("2877")),v=Object(_["a"])(g,d,h,!1,null,"7a79e129",null),y=v.exports,b=(a("f98d"),a("708d"),a("bbf0")),S=a("2f62"),O=a("a7c5"),T=a("f8f0"),A=a("49bd"),x={name:"sales_analysis_refund_report_overview_drag_chart",props:{selectBlock:{},padId:{},baseModel:{},chartBlocks:{}},components:{draggablePad:s["a"],lineChart:y,CommonSimpleSlipper:T["a"],productInfoTableColumn:O["a"]},data:function(){return{loading:!1,dateSelectType:3,isSingleY:!1,chartData:{}}},computed:Object(r["a"])(Object(r["a"])({currencySymbol:function(){var t;return null!==(t=this.baseModel)&&void 0!==t&&t.marketplaceId?this.$options.filters.marketplaceToCurrencySymbol(this.baseModel.marketplaceId):""}},Object(S["c"])({CURRENT_SHOP:b["f"],CURRENCY_SYMBOL:b["c"],CURRENT_SHOP_ID:b["g"],USER_INFO:b["I"]})),{},{rangeDate:function(){var t=this;return[u()().subtract(this.dateSelectType,"months"),u()()].map((function(e){return t.createZonedMoment(e).format("YYYY-MM-DD")}))},timeRange:function(){if(!this.rangeDate)return"";var t=this.createZonedMoment(this.rangeDate[0]).format("YYYY-MM-DD"),e=this.createZonedMoment(this.rangeDate[1]).format("YYYY-MM-DD");return t+" - "+e},timeZone:function(){var t;return(null===(t=this.$store.getters[b["I"]])||void 0===t?void 0:t.timezone)||this.baseModel.timeZone},multiple:function(){return!!this.baseModel},dateSelectOptions:function(){return[{text:this.$t("_PACKAGE_DESCRIPTOR_MONTHS",{num:3}),value:3},{text:this.$t("_PACKAGE_DESCRIPTOR_MONTHS",{num:6}),value:6},{text:this.$t("_PACKAGE_DESCRIPTOR_MONTHS",{num:12}),value:12}]}}),methods:{handleBlockChange:function(t){this.$emit("blockChange",t)},init:function(){this.loading||this.getData()},handleEmpty:function(){},$initShow:function(){var t;null===(t=this.$refs.guider)||void 0===t||t.$initShow()},createZonedMoment:function(){return this.multiple?l["a"].apply(void 0,arguments):l["b"].apply(void 0,arguments)},getDaysBeforeMoment:function(){return this.multiple?l["m"].apply(void 0,arguments):l["l"].apply(void 0,arguments)},getZeroMomentOf:function(){return this.multiple?l["y"].apply(void 0,arguments):l["x"].apply(void 0,arguments)},getBoundStampOfPickerOption:function(){return this.multiple?l["h"].apply(void 0,arguments):l["e"].apply(void 0,arguments)},getData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.loading){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,t.loading=!0,Array.isArray(t.selectBlock)&&(t.baseModel.selectBlock=t.selectBlock),a=t.createZonedMoment(t.rangeDate[0]).format("x"),n=t.createZonedMoment(t.rangeDate[1]).format("x"),i={marketplaceId:t.baseModel.marketplaceId,asin:t.baseModel.asin,startTimestamp:a,endTimestamp:n},e.next=10,Object(A["e"])(i);case 10:o=e.sent,1==o.status&&(t.chartData=o.content);case 12:return e.prev=12,t.loading=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[2,,12,15]])})))()},initDebounce:function(){this.getData()}},mounted:function(){this.init()},watch:{rangeDate:"init",baseModel:"init"}},C=x,E=(a("bca4"),Object(_["a"])(C,n,i,!1,null,null,null));e["a"]=E.exports},"8f05":function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var n=function(t,e){var a=t,n=e||8;if(!a||""==a)return 1;var i=Math.ceil(a/n);return i-1}},9030:function(t,e,a){},"923d":function(t,e,a){"use strict";a.d(e,"c",(function(){return d})),a.d(e,"d",(function(){return h})),a.d(e,"b",(function(){return f})),a.d(e,"a",(function(){return m})),a.d(e,"e",(function(){return g}));var n=a("3842"),i=a("ee1a"),o=a("6d8b"),r=a("b7d9");function s(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function l(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function c(t,e,a,o,r,s){var l=[],c=Object(i["c"])(e,o),u=c?e.getCalculationInfo("stackResultDimension"):o,d=g(e,u,t),h=e.indicesOfNearest(u,d)[0];l[r]=e.get(a,h),l[s]=e.get(u,h);var p=e.get(o,h),f=n["g"](e.get(o,h));return f=Math.min(f,20),f>=0&&(l[s]=+l[s].toFixed(f)),[l,p]}var u={min:Object(o["h"])(c,"min"),max:Object(o["h"])(c,"max"),average:Object(o["h"])(c,"average"),median:Object(o["h"])(c,"median")};function d(t,e){var a=t.getData(),n=t.coordinateSystem;if(e&&!l(e)&&!Object(o["t"])(e.coord)&&n){var i=n.dimensions,r=h(e,a,n,t);if(e=Object(o["d"])(e),e.type&&u[e.type]&&r.baseAxis&&r.valueAxis){var s=Object(o["r"])(i,r.baseAxis.dim),c=Object(o["r"])(i,r.valueAxis.dim),d=u[e.type](a,r.baseDataDim,r.valueDataDim,s,c);e.coord=d[0],e.value=d[1]}else{for(var p=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],f=0;f<2;f++)u[p[f]]&&(p[f]=g(a,a.mapDimension(i[f]),p[f]));e.coord=p}}return e}function h(t,e,a,n){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=a.getAxis(p(n,i.valueDataDim)),i.baseAxis=a.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=a.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function p(t,e){var a=t.getData().getDimensionInfo(e);return a&&a.coordDim}function f(t,e){return!(t&&t.containData&&e.coord&&!s(e))||t.containData(e.coord)}function m(t,e){return t?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Object(r["d"])(o,e[i])}:function(t,a,n,i){return Object(r["d"])(t.value,e[i])}}function g(t,e,a){if("average"===a){var n=0,i=0;return t.each(e,(function(t,e){isNaN(t)||(n+=t,i++)})),n/i}return"median"===a?t.getMedian(e):t.getDataExtent(e)["max"===a?1:0]}},9319:function(t,e,a){"use strict";a.d(e,"d",(function(){return s})),a.d(e,"b",(function(){return l})),a.d(e,"a",(function(){return c})),a.d(e,"c",(function(){return u})),a.d(e,"g",(function(){return d})),a.d(e,"f",(function(){return h})),a.d(e,"l",(function(){return p})),a.d(e,"e",(function(){return f})),a.d(e,"h",(function(){return m})),a.d(e,"i",(function(){return g})),a.d(e,"k",(function(){return _})),a.d(e,"j",(function(){return v}));a("d3b7"),a("4de4");var n=a("7f80"),i=a("6365"),o=a("d80f"),r={en:"en_us","zh-CN":"zh_cn","zh-TW":"zh_tw",ja_jp:"ja_jp"},s=function(t){var e=r[i["a"].locale]||i["a"].locale;if(t.languageTo=e,o["M"][i["a"].locale])try{if(o["M"][i["a"].locale].indexOf(t.marketplaceId)>-1)return new Promise((function(t){t({status:1,content:{}})}))}catch(a){console.warn(a)}return t.keywords=t.keywords.filter((function(t){return t})),Object(n["f"])("/translation/batch",t)},l=function(t){return Object(n["e"])("/db/keywords/collection",t)},c=function(t){return Object(n["e"])("/db/keywords",t)},u=function(t,e){return Object(n["f"])("/ai-labs/listing-writer/write",t,e)},d=function(){return Object(n["e"])("/ai-labs/listing-writer/writers")},h=function(t){return Object(n["e"])("/ai-labs/listing-writer/writers/".concat(t))},p=function(t,e){return Object(n["f"])("/ai-labs/reviews-analyzes/missions",t,e)},f=function(t,e,a){return Object(n["g"])("/ai-labs/reviews-analyzes/missions/".concat(t),e,a)},m=function(t){return Object(n["e"])("/ai-labs/reviews-analyzes/missions")},g=function(t,e){return Object(n["e"])("/ai-labs/reviews-analyzes/missions/".concat(t))},_=function(t,e){return Object(n["g"])("/ai-labs/reviews-analyzes/missions/".concat(t,"/view"))},v=function(t){return Object(n["e"])("/ai-labs/reviews-analyzes/missions/".concat(t,"/raw-data"))}},"933c":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));var n=a("4041");function i(t){var e=t.getData(),a=e.tree,i={};a.eachNode((function(e){var a=e;while(a&&a.depth>1)a=a.parentNode;var o=Object(n["b"])(t.ecModel,a.name||a.dataIndex+"",i);e.setVisual("decal",o)}))}},"936a":function(t,e,a){"use strict";a("48cd")},"93e69":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("db49");var n=a("6365"),i=(a("b7ea"),a("bbf0"),a("4360"),a("a18c"),a("0aa1"),a("4f7f"),a("d4a4"),n["a"].locale,function(){window.ssq&&window.ssq.push("chatOpen")})},"944a":function(t,e,a){},9678:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("custom-modal",{ref:"remark-edit-modal",attrs:{width:800,"modal-class":"competitive-analysis__editmodal","hide-footer":!0,visible:t.__visible__,"cancel-title":t.$t("global_button_cancel"),title:t.$t("_PAYMENT_RECORD_BTN_EDIT_REMARK")},on:{"update:visible":function(e){t.__visible__=e}},scopedSlots:t._u([{key:"modal-footer",fn:function(){return[a("div",{staticClass:"modal-footer"},[a("b-button",{attrs:{variant:"outline-secondary"},on:{click:t.onCloseEditRemarkDialog}},[t._v(" "+t._s(t.$t("global_button_cancel"))+" ")]),a("b-button",{attrs:{variant:"primary"},on:{click:t.onSubmitRemark}},[t._v(" "+t._s(t.$t("_DIALOG_SAVE"))+" ")])],1)]},proxy:!0}])},[a("div",{staticClass:"form-content m-b-12 p-rl-28"},[a("b-form-textarea",{attrs:{rows:"3",maxlength:"200","show-word-limit":""},model:{value:t.remarkItem.remark,callback:function(e){t.$set(t.remarkItem,"remark",e)},expression:"remarkItem.remark"}})],1)])},i=[],o=a("2af9"),r=a("1f98"),s={props:{showModal:{},remarkItem:{type:Object,default:function(){}}},components:{customModal:o["l"]},model:{prop:"showModal",event:"showModal"},data:function(){return{visible:!1}},watch:{},computed:{__visible__:{get:function(){return this.showModal},set:function(t){this.$emit("showModal",t)}}},methods:{onCloseEditRemarkDialog:function(){this.__visible__=!1},onSubmitRemark:function(){var t=this,e={marketplaceId:this.remarkItem.marketplaceId,asin:this.remarkItem.asin,remark:this.remarkItem.remark};Object(r["z"])(e).then((function(e){var a=e.status,n=e.content;1===a&&(t.$store.dispatch("app/updatePop",{title:n,icon:"EditIcon",variant:"success"}),t.$emit("refreshTable"),t.__visible__=!1)}))}}},l=s,c=a("2877"),u=Object(c["a"])(l,n,i,!1,null,"1b38c764",null);e["a"]=u.exports},"96df":function(t,e,a){},9757:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return!t.delay||t.show?a("b-tooltip",{attrs:{target:t.tooltipId,triggers:"focus","custom-class":"guider-tooltip-wrapper "+t.extraClass,placement:t.placement}},[a("div",{staticClass:"guider-tooltip",class:{"guider-tooltip--pic":t.hasPic}},[a("div",{staticClass:"guider-tooltip__body"},[t.hasPic?a("div",{staticClass:"guider-tooltip__body-img"},[t._t("body-img")],2):t._e(),a("div",{staticClass:"guider-tooltip__body-title",style:t.titleStyleStr,domProps:{innerHTML:t._s(t.title)}})]),a("div",{staticClass:"guider-tooltip__footer"},[a("b-button",{staticClass:"guider-tooltip__footer-btn",attrs:{variant:"link",id:t.eventId},on:{click:function(e){return t.handleClick()}}},[t._v(t._s(t.$t("poptip_ok")))])],1)])]):t._e()},i=[],o=a("5530"),r=a("bbf0"),s=a("5657"),l=a("2f62"),c={name:"GuiderTooltip",data:function(){return{show:!1}},props:{delay:{},extraClass:{type:String,default:""},titleStyleStr:{type:String,default:""},placement:{type:String,default:"bottom"},title:{type:String,default:""},tooltipId:{type:String,default:""},readedId:{type:String,default:"default"},eventId:{type:String,default:""},hasPic:{type:Boolean,default:!1},allOpen:{type:Boolean,default:!1}},computed:Object(o["a"])(Object(o["a"])({},Object(l["c"])({USER_INFO:r["I"]})),{},{isOpenTutorial:function(){var t=this.USER_INFO,e=!!t.isOpenTutorial;return e}}),mounted:function(){var t=this;if(this.delay)var e=setTimeout((function(){clearTimeout(e),t.show=!0}),500);this.$initShow()},methods:{$show:function(){var t=this,e=setTimeout((function(){clearTimeout(e),t.$root.$emit("bv::show::tooltip",t.tooltipId)}),500)},$hide:function(){this.$root.$emit("bv::hide::tooltip",this.tooltipId)},$initShow:function(){if(this.allOpen||this.isOpenTutorial){var t=this.USER_INFO.id,e=Object(s["d"])(t,this.readedId);e||this.$show()}},handleClick:function(){var t=this.USER_INFO.id;this.$hide(),Object(s["f"])(t,this.readedId,1)}}},u=c,d=(a("a131"),a("2877")),h=Object(d["a"])(u,n,i,!1,null,null,null);e["a"]=h.exports},"98f9":function(t,e,a){"use strict";a("2c0a")},9939:function(t,e,a){"use strict";a("3ae1")},9940:function(t,e,a){"use strict";a("8c2b")},"99c9":function(t,e,a){"use strict";a("c293")},"9c50":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"dom-drag",rawName:"v-dom-drag",value:t.padId,expression:"padId"}],staticClass:"draggable-pad",style:t.customStyle},[a("div",{staticClass:"draggable-pad__body"},[t._t("default")],2),a("div",{staticClass:"draggable-pad__footer"},[t.customFooter?t._t("custom-footer"):a("b-button",{staticClass:"draggable-pad__footer-btn",attrs:{variant:"primary"},on:{mousedown:function(e){return e.stopPropagation(),t.handleEmpty()},click:function(e){return t.$emit("close",!1)}}},[t._v(t._s(t.$t("_COMMON_BUTTON_CLOSE")))])],2),t.showTip?a("div",{staticClass:"draggable-pad-tip"},[a("div",{staticClass:"draggable-pad-tip__content"},[t._v(t._s(t.$t("global_move_popup_tip")))]),a("feather-icon",{staticClass:"draggable-pad-tip__icon",attrs:{icon:"XIcon",size:"16"},on:{click:function(e){return t.handleCloseTip()}}})],1):t._e()])},i=[],o=a("b76a"),r=a.n(o),s={components:{Draggable:r.a},name:"draggableModal",model:{prop:"visible",event:"close"},props:{customStyle:{},visible:{type:Boolean,default:!1},padId:{type:String,default:"default"},customFooter:{type:Boolean,default:!1}},data:function(){return{showTip:!1}},computed:{},mounted:function(){this.getIsTipShowed()||(this.showTip=!0)},methods:{handleEmpty:function(){},getIsTipShowed:function(){var t=localStorage.getItem("drag_showed_tip");return 1==t},handleCloseTip:function(){localStorage.setItem("drag_showed_tip",1),this.showTip=!1}}},l=s,c=(a("191a"),a("2877")),u=Object(c["a"])(l,n,i,!1,null,null,null);e["a"]=u.exports},"9dbf":function(t,e,a){},"9dd3":function(t,e,a){"use strict";a.d(e,"H",(function(){return o})),a.d(e,"sb",(function(){return r})),a.d(e,"qb",(function(){return s})),a.d(e,"i",(function(){return l})),a.d(e,"f",(function(){return c})),a.d(e,"e",(function(){return u})),a.d(e,"g",(function(){return d})),a.d(e,"h",(function(){return h})),a.d(e,"b",(function(){return p})),a.d(e,"a",(function(){return f})),a.d(e,"j",(function(){return _})),a.d(e,"k",(function(){return v})),a.d(e,"l",(function(){return y})),a.d(e,"m",(function(){return b})),a.d(e,"n",(function(){return S})),a.d(e,"d",(function(){return O})),a.d(e,"Z",(function(){return I})),a.d(e,"Y",(function(){return D})),a.d(e,"V",(function(){return L})),a.d(e,"jb",(function(){return R})),a.d(e,"ab",(function(){return N})),a.d(e,"W",(function(){return P})),a.d(e,"X",(function(){return j})),a.d(e,"R",(function(){return $})),a.d(e,"Q",(function(){return B})),a.d(e,"S",(function(){return z})),a.d(e,"P",(function(){return H})),a.d(e,"fb",(function(){return q})),a.d(e,"pb",(function(){return Q})),a.d(e,"ob",(function(){return et})),a.d(e,"db",(function(){return nt})),a.d(e,"hb",(function(){return it})),a.d(e,"kb",(function(){return ot})),a.d(e,"nb",(function(){return rt})),a.d(e,"mb",(function(){return st})),a.d(e,"gb",(function(){return lt})),a.d(e,"lb",(function(){return ct})),a.d(e,"U",(function(){return ut})),a.d(e,"T",(function(){return dt})),a.d(e,"cb",(function(){return ht})),a.d(e,"eb",(function(){return pt})),a.d(e,"ib",(function(){return ft})),a.d(e,"bb",(function(){return mt})),a.d(e,"M",(function(){return yt})),a.d(e,"I",(function(){return St})),a.d(e,"L",(function(){return Ot})),a.d(e,"J",(function(){return Tt})),a.d(e,"K",(function(){return xt})),a.d(e,"o",(function(){return It})),a.d(e,"q",(function(){return Dt})),a.d(e,"p",(function(){return Nt})),a.d(e,"y",(function(){return jt})),a.d(e,"x",(function(){return $t})),a.d(e,"z",(function(){return Ft})),a.d(e,"tb",(function(){return Bt})),a.d(e,"rb",(function(){return Yt})),a.d(e,"F",(function(){return Ut})),a.d(e,"A",(function(){return zt})),a.d(e,"C",(function(){return Vt})),a.d(e,"G",(function(){return Ht})),a.d(e,"B",(function(){return Gt})),a.d(e,"D",(function(){return Wt})),a.d(e,"r",(function(){return qt})),a.d(e,"E",(function(){return Jt})),a.d(e,"s",(function(){return te})),a.d(e,"v",(function(){return ae})),a.d(e,"w",(function(){return ne})),a.d(e,"c",(function(){return pe})),a.d(e,"O",(function(){return Se})),a.d(e,"N",(function(){return Oe})),a.d(e,"t",(function(){return Ae})),a.d(e,"u",(function(){return xe}));var n=a("ade3"),i=(a("d3b7"),a("159b"),a("aea7")),o={purchases:"ad_manage_SD_audience_purchase",relatedProduct:"ad_manage_SD_audience_purchase_related",audienceSameAs:"_ADVERTISEMENT_TARGET_NAME_SHOW_AUDIENCESAMEAS",similarProduct:"_ADVERTISEMENT_TARGET_NAME_SHOW_SIMILARPRODUCT",exactProduct:"_ADVERTISEMENT_TARGET_NAME_SHOW_EXACTPRODUCT",lookback:"_ADVERTISEMENT_TARGET_NAME_SHOW_LOOKBACK",asinCategorySameAs:"_ADVERTISEMENT_TARGET_NAME_SHOW_ASINCATEGORYSAMEAS",asinPriceBetween:"_ADVERTISEMENT_TARGET_NAME_SHOW_ASINPRICEBETWEEN",asinPriceGreaterThan:"_ADVERTISEMENT_TARGET_NAME_SHOW_ASINPRICEGREATERTHAN",asinPriceLessThan:"_ADVERTISEMENT_TARGET_NAME_SHOW_ASINPRICELESSTHAN",asinReviewRatingBetween:"_ADVERTISEMENT_TARGET_NAME_SHOW_ASINREVIEWRATINGBETWEEN",asinReviewRatingLessThan:"_ADVERTISEMENT_TARGET_NAME_SHOW_ASINREVIEWRATINGLESSTHAN",asinReviewRatingGreaterThan:"_ADVERTISEMENT_TARGET_NAME_SHOW_ASINREVIEWRATINGGREATERTHAN",asinIsPrimeShippingEligible:"_ADVERTISEMENT_TARGET_NAME_SHOW_ASINISPRIMESHIPPINGELIGIBLE",asinBrandSameAs:"_ADVERTISEMENT_TARGET_NAME_SHOW_ASINBRANDSAMEAS",asinAgeRangeSameAs:"_ADVERTISEMENT_TARGET_NAME_SHOW_ASINAGERANGESAMEAS",queryHighRelMatches:"_ADVERTISEMENT_TARGET_NAME_SHOW_QUERYHIGHRELMATCHES",queryBroadRelMatches:"_ADVERTISEMENT_TARGET_NAME_SHOW_QUERYBROADRELMATCHES",asinSubstituteRelated:"_ADVERTISEMENT_TARGET_NAME_SHOW_ASINSUBSTITUTERELATED",asinAccessoryRelated:"_ADVERTISEMENT_TARGET_NAME_SHOW_ASINACCESSORYRELATED",asinSameAs:"asin =",asinGenreSameAs:"Genre =",asinExpandedFrom:"ASINEXPANDEDFROM"},r={purchases:"ad_manage_SD_audience_purchase",relatedProduct:"ad_manage_SD_audience_purchase_related",audience:"_ADVERTISEMENT_TARGET_NAME_SHOW_AUDIENCE",views:"_ADVERTISEMENT_TARGET_NAME_SHOW_VIEWS"},s={true:"_ADVERTISEMENT_TARGET_NAME_SHOW_ASINISPRIMESHIPPINGELIGIBLE_STATUS_TRUE",false:"_ADVERTISEMENT_TARGET_NAME_SHOW_ASINISPRIMESHIPPINGELIGIBLE_STATUS_FLASE"},l="paused",c="enabled",u="archived",d="finished",h="notArchived",p=m(),f=g();function m(){var t;return t={},Object(n["a"])(t,h,"_AD_AUTO_MANAGER_NOT_ARCHIVED"),Object(n["a"])(t,l,"_AD_AUTO_MANAGER_PAUSED"),Object(n["a"])(t,c,"_AD_AUTO_MANAGER_ENABLED"),Object(n["a"])(t,u,"_AD_AUTO_MANAGER_ARCHIVED"),t}function g(){var t;return t={},Object(n["a"])(t,l,"_AD_AUTO_MANAGER_PAUSING"),Object(n["a"])(t,c,"_AD_AUTO_MANAGER_RUNNING"),Object(n["a"])(t,u,"_AD_AUTO_MANAGER_ARCHING"),t}Object(i["defineReact"])((function(){p=m(),f=g()}));var _="asinAccessoryRelated",v="asinSubstituteRelated",y="queryBroadRelMatches",b="queryHighRelMatches",S=T(),O=A();function T(){var t;return t={},Object(n["a"])(t,_,"_ADVERTISEMENT_TH_AUTO_TARGET_NAME1"),Object(n["a"])(t,v,"_ADVERTISEMENT_TH_AUTO_TARGET_NAME2"),Object(n["a"])(t,y,"_ADVERTISEMENT_TH_AUTO_TARGET_NAME3"),Object(n["a"])(t,b,"_ADVERTISEMENT_TH_AUTO_TARGET_NAME4"),t}function A(){var t;return t={},Object(n["a"])(t,_,{label:"_ADVERTISEMENT_TH_AUTO_TARGET_NAME1"}),Object(n["a"])(t,v,{label:"_ADVERTISEMENT_TH_AUTO_TARGET_NAME6",tooltip:"_ADVERTISEMENT_TH_AUTO_TARGET_NAME6_TIP"}),Object(n["a"])(t,y,{label:"_ADVERTISEMENT_TH_AUTO_TARGET_NAME3"}),Object(n["a"])(t,b,{label:"_ADVERTISEMENT_TH_AUTO_TARGET_NAME5",tooltip:"_ADVERTISEMENT_TH_AUTO_TARGET_NAME5_TIP"}),t}Object(i["defineReact"])((function(){S=T(),O=A()}));var x="STATUS_UNAVAILABLE",C="ADVERTISER_STATUS_ENABLED",E="ADVERTISER_PAUSED",w="ACCOUNT_OUT_OF_BUDGET",M="ADVERTISER_PAYMENT_FAILURE",k="ADVERTISER_ARCHIVED",I="CAMPAIGN_STATUS_ENABLED",D="CAMPAIGN_PAUSED",L="CAMPAIGN_ARCHIVED",R="PENDING_START_DATE",N="ENDED",P="CAMPAIGN_INCOMPLETE",j="CAMPAIGN_OUT_OF_BUDGET",$="AD_GROUP_STATUS_ENABLED",F="AD_GROUP_PAUSED",B="AD_GROUP_ARCHIVED",Y="AD_GROUP_INCOMPLETE",U="AD_GROUP_LOW_BID",z="AD_STATUS_LIVE",V="AD_PAUSED",H="AD_ARCHIVED",G="MISSING_IMAGE",W="MISSING_DECORATION",K="NOT_BUYABLE",Z="NOT_IN_BUYBOX",q="OUT_OF_STOCK",X="AD_POLICING_SUSPENDED",Q="TARGETING_CLAUSE_STATUS_LIVE",J="TARGETING_CLAUSE_POLICING_SUSPENDED",tt="TARGETING_CLAUSE_PAUSED",et="TARGETING_CLAUSE_ARCHIVED",at="TARGETING_CLAUSE_BLOCKED",nt="NO_INVENTORY",it="PENDING_REVIEW",ot="READY",rt="SCHEDULED",st="RUNNING",lt="PAUSED",ct="REJECTED",ut="BILLING_ERROR",dt="ASIN_NOT_BUYABLE",ht="LANDING_PAGE_NOT_AVAILABLE",pt="OUT_OF_BUDGET",ft="pendingReview",mt=gt();function gt(){var t;return t={},Object(n["a"])(t,X,{label:"global_ad_status_ad_policing_suspended"}),Object(n["a"])(t,x,{label:"_ADVERTISEMENT_SERVING_STATUS_STATUS_UNAVAILABLE"}),Object(n["a"])(t,C,{label:"_ADVERTISEMENT_SERVING_STATUS_ADVERTISER_STATUS_ENABLED"}),Object(n["a"])(t,E,{label:"_ADVERTISEMENT_SERVING_STATUS_ADVERTISER_PAUSED"}),Object(n["a"])(t,w,{label:"_ADVERTISEMENT_SERVING_STATUS_ACCOUNT_OUT_OF_BUDGET"}),Object(n["a"])(t,M,{label:"_ADVERTISEMENT_SERVING_STATUS_ADVERTISER_PAYMENT_FAILURE"}),Object(n["a"])(t,k,{label:"_ADVERTISEMENT_SERVING_STATUS_ADVERTISER_ARCHIVED"}),Object(n["a"])(t,I,{label:"_ADVERTISEMENT_SERVING_STATUS_CAMPAIGN_STATUS_ENABLED"}),Object(n["a"])(t,D,{label:"_ADVERTISEMENT_SERVING_STATUS_CAMPAIGN_PAUSED",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_CAMPAIGN_PAUSED"}),Object(n["a"])(t,L,{label:"_ADVERTISEMENT_SERVING_STATUS_CAMPAIGN_ARCHIVED",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_CAMPAIGN_ARCHIVED"}),Object(n["a"])(t,R,{label:"_ADVERTISEMENT_SERVING_STATUS_PENDING_START_DATE"}),Object(n["a"])(t,N,{label:"_ADVERTISEMENT_SERVING_STATUS_ENDED"}),Object(n["a"])(t,P,{label:"_ADVERTISEMENT_SERVING_STATUS_CAMPAIGN_INCOMPLETE",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_CAMPAIGN_INCOMPLETE"}),Object(n["a"])(t,j,{label:"_ADVERTISEMENT_SERVING_STATUS_CAMPAIGN_OUT_OF_BUDGET"}),Object(n["a"])(t,$,{label:"_ADVERTISEMENT_SERVING_STATUS_AD_GROUP_STATUS_ENABLED"}),Object(n["a"])(t,F,{label:"_ADVERTISEMENT_SERVING_STATUS_AD_GROUP_PAUSED",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_AD_GROUP_PAUSED"}),Object(n["a"])(t,B,{label:"_ADVERTISEMENT_SERVING_STATUS_AD_GROUP_ARCHIVED",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_AD_GROUP_ARCHIVED"}),Object(n["a"])(t,Y,{label:"_ADVERTISEMENT_SERVING_STATUS_AD_GROUP_INCOMPLETE",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_AD_GROUP_INCOMPLETE"}),Object(n["a"])(t,U,{label:"_ADVERTISEMENT_SERVING_STATUS_AD_GROUP_LOW_BID",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_AD_GROUP_LOW_BID"}),Object(n["a"])(t,z,{label:"_ADVERTISEMENT_SERVING_STATUS_AD_STATUS_LIVE"}),Object(n["a"])(t,V,{label:"_ADVERTISEMENT_SERVING_STATUS_AD_PAUSED",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_AD_PAUSED"}),Object(n["a"])(t,H,{label:"_ADVERTISEMENT_SERVING_STATUS_AD_ARCHIVED",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_AD_ARCHIVED"}),Object(n["a"])(t,G,{label:"_ADVERTISEMENT_SERVING_STATUS_MISSING_IMAGE"}),Object(n["a"])(t,W,{label:"_ADVERTISEMENT_SERVING_STATUS_MISSING_DECORATION"}),Object(n["a"])(t,K,{label:"_ADVERTISEMENT_SERVING_STATUS_NOT_BUYABLE",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_NOT_BUYABLE"}),Object(n["a"])(t,Z,{label:"_ADVERTISEMENT_SERVING_STATUS_NOT_IN_BUYBOX"}),Object(n["a"])(t,q,{label:"_ADVERTISEMENT_SERVING_STATUS_OUT_OF_STOCK",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_OUT_OF_STOCK"}),Object(n["a"])(t,Q,{label:"_ADVERTISEMENT_SERVING_STATUS_TARGETING_CLAUSE_STATUS_LIVE"}),Object(n["a"])(t,J,{label:"_ADVERTISEMENT_SERVING_STATUS_TARGETING_CLAUSE_POLICING_SUSPENDED",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_TARGETING_CLAUSE_POLICING_SUSPENDED"}),Object(n["a"])(t,tt,{label:"_ADVERTISEMENT_SERVING_STATUS_TARGETING_CLAUSE_PAUSED",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_TARGETING_CLAUSE_PAUSED"}),Object(n["a"])(t,et,{label:"_ADVERTISEMENT_SERVING_STATUS_TARGETING_CLAUSE_ARCHIVED",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_TARGETING_CLAUSE_ARCHIVED"}),Object(n["a"])(t,at,{label:"_ADVERTISEMENT_SERVING_STATUS_TARGETING_CLAUSE_BLOCKED",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_TARGETING_CLAUSE_BLOCKED"}),Object(n["a"])(t,nt,{label:"_ADVERTISEMENT_SERVING_STATUS_NO_INVENTORY"}),Object(n["a"])(t,it,{label:"_ADVERTISEMENT_SERVING_STATUS_PENDING_REVIEW"}),Object(n["a"])(t,ft,{label:"_ADVERTISEMENT_SERVING_STATUS_PENDING_REVIEW"}),Object(n["a"])(t,ot,{label:"_ADVERTISEMENT_SERVING_STATUS_READY",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_READY"}),Object(n["a"])(t,rt,{label:"_ADVERTISEMENT_SERVING_STATUS_SCHEDULED"}),Object(n["a"])(t,st,{label:"_ADVERTISEMENT_SERVING_STATUS_RUNNING"}),Object(n["a"])(t,lt,{label:"_ADVERTISEMENT_SERVING_STATUS_PAUSED"}),Object(n["a"])(t,ct,{label:"_ADVERTISEMENT_SERVING_STATUS_REJECTED"}),Object(n["a"])(t,ut,{label:"_ADVERTISEMENT_SERVING_STATUS_BILLING_ERROR",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_BILLING_ERROR"}),Object(n["a"])(t,dt,{label:"_ADVERTISEMENT_SERVING_STATUS_ASIN_NOT_BUYABLE",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_ASIN_NOT_BUYABLE"}),Object(n["a"])(t,ht,{label:"_ADVERTISEMENT_SERVING_STATUS_LANDING_PAGE_NOT_AVAILABLE",tooltip:"_ADVERTISEMENT_SERVING_STATUS_TOOLTIP_LANDING_PAGE_NOT_AVAILABLE"}),Object(n["a"])(t,pt,{label:"_ADVERTISEMENT_SERVING_STATUS_OUT_OF_BUDGET"}),Object(n["a"])(t,"PORTFOLIO_STATUS_ENABLED",{label:"ad_manager_status_run"}),Object(n["a"])(t,"PORTFOLIO_STATUS_PAUSED",{label:"ad_manager_status_paused"}),Object(n["a"])(t,"PORTFOLIO_ARCHIVED",{label:"global_ad_archived"}),Object(n["a"])(t,"PORTFOLIO_OUT_OF_BUDGET",{label:"_ADVERTISEMENT_SERVING_STATUS_CAMPAIGN_OUT_OF_BUDGET"}),Object(n["a"])(t,"PENDING_START_DATE",{label:"_ADVERTISEMENT_SERVING_STATUS_PENDING_START_DATE"}),Object(n["a"])(t,"PORTFOLIO_PENDING_START_DATE",{label:"_ADVERTISEMENT_SERVING_STATUS_PENDING_START_DATE"}),Object(n["a"])(t,"ENDED",{label:"PORTFOLIO_ENDED"}),Object(n["a"])(t,"PORTFOLIO_ENDED",{label:"PORTFOLIO_ENDED"}),t}Object(i["defineReact"])((function(){mt=gt()}));var _t="enabled",vt="deleted",yt="archived";bt();function bt(){var t;return t={},Object(n["a"])(t,_t,"_AD_AUTO_MANAGER_ENABLED"),Object(n["a"])(t,vt,"_AD_AUTO_MANAGER_ARCHIVED"),Object(n["a"])(t,yt,"_AD_AUTO_MANAGER_ARCHIVED"),t}Object(i["defineReact"])((function(){bt()}));var St="negativeExact",Ot="negativePhrase",Tt=At();function At(){var t;return t={},Object(n["a"])(t,St,"_ADVERTISEMENT_MATCH_METHOD_EXACT_NEGATIVE"),Object(n["a"])(t,Ot,"_ADVERTISEMENT_MATCH_METHOD_PHRASE_NEGATIVE"),t}var xt=Ct();function Ct(){var t;return t={},Object(n["a"])(t,St,"_ADVERTISEMENT_MATCH_METHOD_EXACT_NEGATIVE2"),Object(n["a"])(t,Ot,"_ADVERTISEMENT_MATCH_METHOD_PHRASE_NEGATIVE2"),t}Object(i["defineReact"])((function(){Tt=At(),xt=Ct()}));var Et="exact",wt="phrase",Mt="broad";kt();function kt(){var t;return t={},Object(n["a"])(t,Et,"_ADVERTISEMENT_MATCH_METHOD_EXACT_KEYWORD"),Object(n["a"])(t,wt,"_ADVERTISEMENT_MATCH_METHOD_PHRASE_KEYWORD"),Object(n["a"])(t,Mt,"_ADVERTISEMENT_MATCH_METHOD_BROAD_KEYWORD"),t}Object(i["defineReact"])((function(){At()}));var It="AUTO",Dt="MANUAL",Lt="auto",Rt="manual",Nt=Pt();function Pt(){var t;return t={},Object(n["a"])(t,It,{label:"_ADVERTISEMENT_TYPE_AUTO",value:"AT"}),Object(n["a"])(t,Dt,{label:"_ADVERTISEMENT_TYPE_MANUAL",value:"MT"}),Object(n["a"])(t,Lt,{label:"_ADVERTISEMENT_TYPE_AUTO",value:"AT"}),Object(n["a"])(t,Rt,{label:"_ADVERTISEMENT_TYPE_MANUAL",value:"MT"}),t}Object(i["defineReact"])((function(){Nt=Pt()}));var jt="legacyForSales",$t="autoForSales",Ft="manual";function Bt(){return[{label:"_ADVERTISEMENT_CREATE_CAMPAIGN_STEP_CAMPAIGN_BID_OPTION1",value:jt},{label:"_ADVERTISEMENT_CREATE_CAMPAIGN_STEP_CAMPAIGN_BID_OPTION2",value:$t},{label:"_ADVERTISEMENT_CREATE_CAMPAIGN_STEP_CAMPAIGN_BID_OPTION3",value:Ft}]}var Yt={MANUAL:"_ADVERTISEMENT_CREATE_CAMPAIGN_STEP_CAMPAIGN_BID_OPTION3",AUTO_FOR_SALES:"_ADVERTISEMENT_CREATE_CAMPAIGN_STEP_CAMPAIGN_BID_OPTION2",LEGACY_FOR_SALES:"_ADVERTISEMENT_CREATE_CAMPAIGN_STEP_CAMPAIGN_BID_OPTION1",RULE_BASED:"ad_manager_bidding_strategy_rulebased"},Ut=0,zt=1,Vt=2,Ht="sponsoredProducts",Gt="sponsoredBrands",Wt="sponsoredDisplay",Kt=0,Zt=1,qt=Xt();function Xt(){var t;return t={},Object(n["a"])(t,Kt,"_AD_AUTO_MANAGER_ALL_START"),Object(n["a"])(t,Zt,"_AD_AUTO_MANAGER_ALL_START_AND_PAUSE"),t}function Qt(){return[{label:"_AD_AUTO_MANAGER_ALL_START",value:Kt},{label:"_AD_AUTO_MANAGER_ALL_START_AND_PAUSE",value:Zt}]}var Jt=ee(),te=Qt();function ee(){var t;return t={},Object(n["a"])(t,Ut,{label:"_ADVERTISEMENT_CAMPAIGN_TYPE_PRODUCT",value:"SP"}),Object(n["a"])(t,zt,{label:"_ADVERTISEMENT_CAMPAIGN_TYPE_BRAND",value:"SB"}),Object(n["a"])(t,Vt,{label:"_ADVERTISEMENT_CAMPAIGN_TYPE_DISPLAY",value:"SD"}),Object(n["a"])(t,Ht,{label:"_ADVERTISEMENT_CAMPAIGN_TYPE_PRODUCT",value:"SP"}),Object(n["a"])(t,Gt,{label:"_ADVERTISEMENT_CAMPAIGN_TYPE_BRAND",value:"SB"}),Object(n["a"])(t,Wt,{label:"_ADVERTISEMENT_CAMPAIGN_TYPE_DISPLAY",value:"SD"}),t}Object(i["defineReact"])((function(){Nt=Pt()}));var ae="daily",ne="lifetime";ie();function ie(){var t;return t={},Object(n["a"])(t,ae,"_ADVERTISEMENT_TH_DAILY_BUDGE"),Object(n["a"])(t,ne,"_ADVERTISEMENT_TH_LIFETIME_BUDGE"),t}Object(i["defineReact"])((function(){Nt=Pt()}));var oe="BROAD",re="EXACT",se="PHRASE",le="broad",ce="exact",ue="phrase",de="KEYWORDS_RELATED_TO_YOUR_BRAND",he="KEYWORDS_RELATED_TO_YOUR_LANDING_PAGES",pe=fe();function fe(){var t;return t={},Object(n["a"])(t,oe,"_ADVERTISEMENT_MATCH_METHOD_BROAD"),Object(n["a"])(t,re,"_ADVERTISEMENT_MATCH_METHOD_EXACT"),Object(n["a"])(t,se,"_ADVERTISEMENT_MATCH_METHOD_PHRASE"),Object(n["a"])(t,le,"_ADVERTISEMENT_MATCH_METHOD_BROAD"),Object(n["a"])(t,ce,"_ADVERTISEMENT_MATCH_METHOD_EXACT"),Object(n["a"])(t,ue,"_ADVERTISEMENT_MATCH_METHOD_PHRASE"),Object(n["a"])(t,de,"ad_manage_sb_BrandKeyword"),Object(n["a"])(t,he,"ad_manage_sb_LandingPageKeyword"),Object(n["a"])(t,de+"_ALL","ad_manage_matchtype_theme"),Object(n["a"])(t,he+"_ALL","ad_manage_matchtype_theme"),t}Object(i["defineReact"])((function(){pe=fe()}));var me=1,ge=3,_e=6,ve=7;ye(),be();function ye(){var t;return t={},Object(n["a"])(t,me,"_AD_AUTO_OPTIMISE_OPERATION_ACTIVE"),Object(n["a"])(t,ge,"_AD_AUTO_OPTIMISE_OPERATION_PAUSE"),Object(n["a"])(t,_e,"_AD_AUTO_OPTIMISE_OPERATION_INCREASE"),Object(n["a"])(t,ve,"_AD_AUTO_OPTIMISE_OPERATION_DECREASE"),t}function be(){return[{value:me,label:"_AD_AUTO_OPTIMISE_OPERATION_ACTIVE"},{value:ge,label:"_AD_AUTO_OPTIMISE_OPERATION_PAUSE"},{value:_e,label:"_AD_AUTO_OPTIMISE_OPERATION_INCREASE"},{value:ve,label:"_AD_AUTO_OPTIMISE_OPERATION_DECREASE"}]}Object(i["defineReact"])((function(){ye(),be()}));var Se="percent",Oe="currency",Te="number",Ae=Ce(),xe=Ee();function Ce(){return[{field:"acos",label:"_COMMON_TH_AD_ACOS",fieldType:Se},{field:"spend",label:"_COMMON_TH_AD_COST",fieldType:Oe},{field:"sales",label:"_COMMON_TH_AD_SALES",fieldType:Oe},{field:"impressions",label:"_COMMON_TH_DISPLAY",fieldType:Te},{field:"clicks",label:"_COMMON_TH_CLICKS",fieldType:Te},{field:"cr",label:"_COMMON_TH_CONVERSION",fieldType:Se},{field:"ctr",label:"_COMMON_TH_CTR",fieldType:Se},{field:"orders",label:"_COMMON_TH_ORDERS",fieldType:Te},{field:"cpc",label:"_COMMON_TH_PPC",fieldType:Oe}]}function Ee(){var t={};return Ae.forEach((function(e){t[e.field]=e})),t}Object(i["defineReact"])((function(){Ae=Ce(),xe=Ee()}))},"9e00":function(t,e,a){},"9f28":function(t,e,a){"use strict";a("cb48")},"9f40":function(t,e,a){},a0c6:function(t,e,a){"use strict";a.d(e,"a",(function(){return b}));var n=a("848e"),i=a("7fae"),o=a("2449"),r=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(i["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(o["a"]),s=r,l=a("f706"),c=a("3842"),u=a("b682"),d=a("923d"),h=a("88f0"),p=a("6d8b"),f=a("861c"),m=a("0924");function g(t,e,a){var n=e.coordinateSystem;t.each((function(i){var o,r=t.getItemModel(i),s=c["o"](r.get("x"),a.getWidth()),l=c["o"](r.get("y"),a.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(n){var u=t.get(n.dimensions[0],i),d=t.get(n.dimensions[1],i);o=n.dataToPoint([u,d])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(i,o)}))}var _=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(i["a"])(e,t),e.prototype.updateTransform=function(t,e,a){e.eachSeries((function(t){var e=o["a"].getMarkerModelFromSeries(t,"markPoint");e&&(g(e.getData(),t,a),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,a,n){var i=t.coordinateSystem,o=t.id,r=t.getData(),s=this.markerGroupMap,c=s.get(o)||s.set(o,new l["a"]),u=v(i,t,e);e.setData(u),g(e.getData(),t,n),u.each((function(t){var a=u.getItemModel(t),n=a.getShallow("symbol"),i=a.getShallow("symbolSize"),o=a.getShallow("symbolRotate"),s=a.getShallow("symbolOffset"),l=a.getShallow("symbolKeepAspect");if(Object(p["w"])(n)||Object(p["w"])(i)||Object(p["w"])(o)||Object(p["w"])(s)){var c=e.getRawValue(t),d=e.getDataParams(t);Object(p["w"])(n)&&(n=n(c,d)),Object(p["w"])(i)&&(i=i(c,d)),Object(p["w"])(o)&&(o=o(c,d)),Object(p["w"])(s)&&(s=s(c,d))}var h=a.getModel("itemStyle").getItemStyle(),f=Object(m["b"])(r,"color");h.fill||(h.fill=f),u.setItemVisual(t,{symbol:n,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:h})})),c.updateData(u),this.group.add(c.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){Object(f["a"])(t).dataModel=e}))})),this.markKeep(c),c.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(h["a"]);function v(t,e,a){var n;n=t?Object(p["H"])(t&&t.dimensions,(function(t){var a=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(p["m"])(Object(p["m"])({},a),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new u["a"](n,a),o=Object(p["H"])(a.get("data"),Object(p["h"])(d["c"],e));t&&(o=Object(p["n"])(o,Object(p["h"])(d["b"],t)));var r=d["a"](!!t,n);return i.initData(o,null,r),i}var y=_;function b(t){t.registerComponentModel(s),t.registerComponentView(y),t.registerPreprocessor((function(t){Object(n["a"])(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}},a131:function(t,e,a){"use strict";a("19b2")},a4fe:function(t,e,a){"use strict";a.d(e,"c",(function(){return r})),a.d(e,"b",(function(){return s})),a.d(e,"a",(function(){return l}));var n=a("1be7"),i=a("6d8b"),o="\0_ec_interaction_mutex";function r(t,e,a){var n=c(t);n[e]=a}function s(t,e,a){var n=c(t),i=n[e];i===a&&(n[e]=null)}function l(t,e){return!!c(t)[e]}function c(t){return t[o]||(t[o]={})}n["d"]({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},i["L"])},a620:function(t,e,a){"use strict";var n=a("2b0e");e["a"]=new n["default"]},a6fc:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("b-row",[a("b-col",[a("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.horve.top",value:t.$checkPermission.checkOut(t.$route.meta&&t.$route.meta.requirePackage||"business")?"":t.$t("_COMMON_EXPORT_TIP"),expression:"!$checkPermission.checkOut(($route.meta && $route.meta.requirePackage) || 'business') ? $t('_COMMON_EXPORT_TIP') : ''",modifiers:{horve:!0,top:!0}}],staticClass:"downloadIconWrap"},[a("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.horve.top",value:t.$t("_PACKAGE_MODULE_LIST_EXPORT_DATA"),expression:"$t('_PACKAGE_MODULE_LIST_EXPORT_DATA')",modifiers:{horve:!0,top:!0}}],attrs:{disabled:!t.$checkPermission.checkOut(t.$route.meta&&t.$route.meta.requirePackage||"business")},on:{click:t.exportExcel}},[a("feather-icon",{attrs:{icon:"DownloadIcon",size:"18"}})],1)])])],1),a("b-row",{staticClass:"pieListWrap"},[a("b-col",[a("b-row",{staticClass:"pieTopBody",attrs:{"no-gutters":"","align-h":"between"}},t._l(t.pieItemNamesShow,(function(e,n){return a("div",{key:"pieItemNamesShow"+e.id,staticClass:"pieRowBlock",class:{uncheckedBlock:e.unchecked},on:{mouseleave:function(a){return a.stopPropagation(),t.showPieFn(e,"downplay")},mouseenter:function(a){return a.stopPropagation(),t.showPieFn(e,"highlight")}}},[a("div",{staticClass:"pieRowBlockWrap"},[a("b-row",{attrs:{"no-gutters":""}},[a("b-col",{staticClass:"pieBlock left",attrs:{cols:7},on:{click:function(a){return a.stopPropagation(),t.showPieFn(e)}}},[a("span",{staticClass:"legend-item__ico",style:{backgroundColor:e.color}}),a("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:""+e.label,expression:"`${item.label}`",modifiers:{hover:!0,top:!0}}]},[t._v(" "+t._s(e.label)+" ")]),a("span",{staticClass:"symbolColor"},[t.CURRENCY_SYMBOL?[t._v("("+t._s(t.$route.query.CURRENCY_SYMBOL||t.CURRENCY_SYMBOL)+")")]:t._e(),"costCpc"===e.id&&t.SELLER_PACKAGE[t.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD]&&3===t.SELLER_PACKAGE[t.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD].status&&t.shouldShowAuthEntry?a("span",{staticClass:"das-ui-button-link mr-0 authFail das-label-left"},[t._v(" ("+t._s(t.$t("_DROPDOWN_MULTISHOP_PROFILE_AUTH"))+") "),a("feather-icon",{staticStyle:{"margin-top":"-3px"},attrs:{id:"ppcAuthFail",size:"16",icon:"AlertCircleIcon"}})],1):e.tooltip?[a("feather-icon",{staticStyle:{"margin-left":"10px","margin-top":"-3px"},attrs:{id:n+"pieItemNamesShow",size:"16",icon:"HelpCircleIcon"}}),a("b-tooltip",{attrs:{target:n+"pieItemNamesShow",triggers:"hover"}},[a("div",{domProps:{innerHTML:t._s(e.tooltip)}})])]:t._e(),t.canComputedTaxRegion&&"tax"===e.id?a("lok",{staticClass:"das-ui-button-link das-label-left",attrs:{"lok-key":"_SALES_ANALYSIS_TAX_SETTING_LEGEND"},nativeOn:{click:function(e){return e.stopPropagation(),t.goSettingFn.apply(null,arguments)}}}):t._e()],2),["costSharingAll"].indexOf(e.id)>-1?a("span",{staticClass:"das-label-left",on:{click:function(a){return a.stopPropagation(),t.goCenterFn(e.id)}}},[a("lok",{staticClass:"das-ui-button-link",staticStyle:{margin:"0 0 0 -5px"},attrs:{"lok-key":"global_button_edit"}})],1):t._e()]),a("b-col",{staticClass:"pieBlock right",attrs:{cols:5}},[a("div",{attrs:{id:"btn"+e.id+(t.hideDetail?1:"")},on:{click:function(a){return t.showOtherCostFn("btn"+e.id)}}},[a("span",{staticClass:"label-val",class:{authFail:"costCpc"===e.id&&t.SELLER_PACKAGE[t.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD]&&3===t.SELLER_PACKAGE[t.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD].status&&t.shouldShowAuthEntry}},[t._v(t._s(t._f("amountAll")(e.value,"")))]),t.hideDetail?t._e():[t.hasPopList.indexOf(e.id)>-1&&e.value?a("feather-icon",{staticClass:"feather-icon-right",attrs:{icon:"ChevronRightIcon",size:"18"}}):a("feather-icon",{staticClass:"feather-icon-right feather-icon-right--hide",attrs:{icon:"ChevronRightIcon",size:"18"}})]],2)])],1)],1)])})),0)],1)],1),a("b-row",[a("b-col"),a("b-col",{staticClass:"footerMe"},[a("span",{staticClass:"span-1"},[t._v(t._s(t.$t("_SALES_ANALYSIS_TOTAL_COST"))+" "),t.CURRENCY_SYMBOL?[t._v("("+t._s(t.$route.query.CURRENCY_SYMBOL||t.CURRENCY_SYMBOL)+")")]:t._e()],2),a("span",{staticClass:"span-2"},[t._v(" "+t._s(t._f("amount")(t.profitTotal.cost,""))+" ")])])],1),t.SELLER_PACKAGE[t.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD]&&3===t.SELLER_PACKAGE[t.PACKAGE_MODULE_NAMES.PACKAGE_MODULE_AD].status&&t.shouldShowAuthEntry?a("b-popover",{attrs:{show:t.showReAuthAd,triggers:"click",placement:"bottom",target:"ppcAuthFail"},on:{"update:show":function(e){t.showReAuthAd=e}}},[a("lok",{attrs:{"lok-key":"_PPC_OPTIMIZE_RE_AUTH_TIP"}}),a("div",{staticClass:"das-block-margin_top d-flex align-items-center justify-content-end"},[a("button",{staticClass:"das-ui-button_cancel das-label-right",attrs:{"data-lokalise":"","data-key":"_AD_AUTO_MANAGER_CANCEL"},on:{click:function(e){t.showReAuthAd=!1}}},[t._v(" "+t._s(t.$t("_AD_AUTO_MANAGER_CANCEL"))+" ")]),a("button",{staticClass:"das-ui-button_ok",attrs:{"data-lokalise":"","data-key":"_AD_AUTO_MANAGER_CANCEL"},on:{click:t.goApiAuth}},[t._v(" "+t._s(t.$t("_PROFILE_AUTH_MANAGEMENT_GO_AUTH_AD"))+" ")])])],1):t._e(),a("b-popover",{ref:"popover-show",attrs:{show:t.showPopVisbtncostCpc,target:"btncostCpc",placement:"left",triggers:"click"},on:{"update:show":function(e){t.showPopVisbtncostCpc=e}}},[a("div",{staticStyle:{"min-width":"380px"},on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[a("common-table",{ref:"showPopVisbtncostCpcTable",staticClass:"popoverCommonTableMargin das-model-margin_left das-model-margin_right sales_analysis_other_cost_tabel",attrs:{border:"",tableData:t.btncostCpcTable,tableId:"showPopVisbtncostCpcTable",options:t.btncostCpcOptions},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[t._v(" "+t._s(e.data.value)+" "),e.data.item.isSB&&t.showCostSharingDays?a("feather-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.noninteractive",value:{title:t.$t("costCenter_share_sb_result_tip"),trigger:"hover",placement:"top",boundary:"viewport"},expression:"{\n              title: $t('costCenter_share_sb_result_tip'),\n              trigger: 'hover',\n              placement: 'top',\n              boundary: 'viewport'\n            }",modifiers:{hover:!0,noninteractive:!0}}],staticClass:"das-table-margin_left",staticStyle:{color:"#5759F2",cursor:"pointer"},attrs:{icon:"InfoIcon",size:"16"}}):t._e()]}},{key:"cell(amount)",fn:function(e){return[t._v(" "+t._s(t._f("amount")(e.data.value))+" "),t.showCostSharing&&0===e.data.index?a("router-link",{staticClass:"das-ui-button-link das-label-left",attrs:{to:"/sales_analysis/cost_center?costTab=3&CURRENT_SHOP_ID="+t.CURRENT_SHOP_ID}},[a("lok",{attrs:{"lok-key":"global_button_edit"}})],1):t._e()]}}])})],1)]),a("b-popover",{ref:"popover-show",attrs:{show:t.showPopVisbtncostPurchase,target:"btncostPurchase",placement:"left",triggers:"click"},on:{"update:show":function(e){t.showPopVisbtncostPurchase=e}}},[a("div",{staticStyle:{"min-width":"400px"},on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[a("common-table",{ref:"showPopVisbtncostPurchaseTable",staticClass:"popoverCommonTableMargin das-model-margin_left das-model-margin_right sales_analysis_other_cost_tabel",attrs:{border:"",tableData:t.btncostPurchaseTable,tableId:"showPopVisbtncostPurchaseTable",options:t.btncostPurchaseNewOptions},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[t._v(" "+t._s(e.data.value)+" "),e.data.item.tooltip?a("feather-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{title:e.data.item.tooltip,trigger:"hover",boundary:"view"},expression:"{\n              title: data.data.item.tooltip,\n              trigger: 'hover',\n              boundary: 'view'\n            }"}],staticClass:"info-auto-icon--tip das-label-left das-label-right",attrs:{icon:"InfoIcon",size:"14"}}):t._e(),"_SALES_ANALYSIS_REMOVE_PURCHASE_COST"===e.data.item.key?a("lok",{staticClass:"das-ui-button-link",attrs:{"lok-key":"_SALES_ANALYSIS_TAX_SETTING_SETTING","tag-name":"button"},on:{click:t.goRoiSettings}}):t._e()]}},{key:"cell(amount)",fn:function(e){return[t._v(" "+t._s(t._f("amount")(e.data.value))+" "),["sales_analysis-gross_profit_detail","sales_analysis-gross_profit"].indexOf(t.$route.name)>-1&&"_SALES_ANALYSIS_PURCHASE_DETAIL_SALE"===e.data.item.key?a("feather-icon",{staticClass:"feather-icon-right cursor-pointer",staticStyle:{"margin-top":"-2px"},attrs:{icon:"ChevronRightIcon",size:"18"},on:{click:t.goOrdersFn}}):t._e(),e.data.value&&"_SALES_ANALYSIS_REMOVE_PURCHASE_COST"===e.data.item.key?a("feather-icon",{staticClass:"feather-icon-right cursor-pointer",staticStyle:{"margin-top":"-2px"},attrs:{icon:"ChevronRightIcon",size:"18"},on:{click:t.goFinanceFn}}):t._e()]}}])})],1)]),a("b-popover",{ref:"popover-show",attrs:{show:t.showPopVisbtncostLogistics,target:"btncostLogistics",placement:"left",triggers:"click"},on:{"update:show":function(e){t.showPopVisbtncostLogistics=e}}},[a("div",{staticStyle:{"min-width":"380px"},on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[a("common-table",{ref:"showPopVisbtncostLogisticsTable",staticClass:"popoverCommonTableMargin das-model-margin_left das-model-margin_right sales_analysis_other_cost_tabel",attrs:{border:"",tableData:t.btncostLogisticsTable,tableId:"showPopVisbtncostLogisticsTable",options:t.btncostPurchaseNewOptions},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[t._v(" "+t._s(e.data.value)+" "),e.data.item.tooltip?a("feather-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{title:e.data.item.tooltip,trigger:"hover",boundary:"view"},expression:"{\n              title: data.data.item.tooltip,\n              trigger: 'hover',\n              boundary: 'view'\n            }"}],staticClass:"info-auto-icon--tip das-label-left das-label-right",attrs:{icon:"InfoIcon",size:"14"}}):t._e(),"_SALES_ANALYSIS_REMOVE_LOGISTICS_COST"===e.data.item.key?a("lok",{staticClass:"das-ui-button-link",attrs:{"lok-key":"_SALES_ANALYSIS_TAX_SETTING_SETTING","tag-name":"button"},on:{click:t.goRoiSettings}}):t._e()]}},{key:"cell(amount)",fn:function(e){return[t._v(" "+t._s(t._f("amount")(e.data.value))+" "),["sales_analysis-gross_profit_detail","sales_analysis-gross_profit"].indexOf(t.$route.name)>-1&&"_SALES_ANALYSIS_LOGISTICS_DETAIL_SALE"===e.data.item.key?a("feather-icon",{staticClass:"feather-icon-right cursor-pointer",staticStyle:{"margin-top":"-2px"},attrs:{icon:"ChevronRightIcon",size:"18"},on:{click:t.goOrdersFn}}):t._e(),e.data.value&&"_SALES_ANALYSIS_REMOVE_LOGISTICS_COST"===e.data.item.key?a("feather-icon",{staticClass:"feather-icon-right cursor-pointer",staticStyle:{"margin-top":"-2px"},attrs:{icon:"ChevronRightIcon",size:"18"},on:{click:t.goFinanceFn}}):t._e()]}}])})],1)]),a("b-popover",{ref:"popover-show",attrs:{show:t.showPopVisbtncostDefined,target:"btncostDefined",placement:"left",triggers:"click"},on:{"update:show":function(e){t.showPopVisbtncostDefined=e}}},[a("div",{staticStyle:{"min-width":"380px"},on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[a("common-table",{ref:"showPopVisbtncostDefinedTable",staticClass:"popoverCommonTableMargin das-model-margin_left das-model-margin_right sales_analysis_other_cost_tabel",attrs:{border:"",tableData:t.customCostDetail,tableId:"showPopVisbtncostDefinedTable",options:t.diyCostOptions}})],1)]),a("b-popover",{ref:"popover-show-1",attrs:{show:t.showPopVisbtncostFbafee,target:"btncostFbafee",placement:"left",triggers:"click"},on:{"update:show":function(e){t.showPopVisbtncostFbafee=e}}},[a("div",{staticStyle:{"min-width":"380px"},on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[a("common-table",{ref:"showPopVisbtncostFbafeeTable",staticClass:"popoverCommonTableMargin das-model-margin_left das-model-margin_right sales_analysis_other_cost_tabel",attrs:{border:"",tableData:t.btncostFbafeeTable,tableId:"showPopVisbtncostFbafeeTable",options:t.btncostPurchaseOptions},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[t._v(" "+t._s(e.data.value)+" "),e.data.item.tooltip?a("feather-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{title:e.data.item.tooltip,trigger:"hover",boundary:"view"},expression:"{\n              title: data.data.item.tooltip,\n              trigger: 'hover',\n              boundary: 'view'\n            }"}],staticClass:"info-auto-icon--tip das-label-left das-label-right",attrs:{icon:"InfoIcon",size:"14"}}):t._e(),"_SALES_ANALYSIS_AMZ_SHIP_FEE_MULTI"===e.data.item.key?a("lok",{staticClass:"das-ui-button-link",attrs:{"lok-key":"_SALES_ANALYSIS_TAX_SETTING_SETTING","tag-name":"button"},on:{click:t.goRoiSettings}}):t._e()]}}])})],1)]),a("b-popover",{ref:"popover-show",attrs:{show:t.showPopVisbtntax,target:"btntax",placement:"left",triggers:"click"},on:{"update:show":function(e){t.showPopVisbtntax=e}}},[a("div",{staticStyle:{"min-width":"380px"},on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[a("common-table",{ref:"showPopVisbtntaxTable",staticClass:"popoverCommonTableMargin das-model-margin_left das-model-margin_right sales_analysis_other_cost_tabel",attrs:{border:"",tableData:t.btntaxTable,tableId:"showPopVisbtntaxTable",options:t.btncostPurchaseOptions},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[t._v(" "+t._s(e.data.value)+" "),e.data.item.tooltip?a("feather-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{title:e.data.item.tooltip,trigger:"hover",boundary:"view"},expression:"{\n              title: data.data.item.tooltip,\n              trigger: 'hover',\n              boundary: 'view'\n            }"}],staticClass:"info-auto-icon--tip das-label-left das-label-right",attrs:{icon:"InfoIcon",size:"14"}}):t._e()]}}])})],1)]),a("b-popover",{ref:"popover-show",attrs:{show:t.showPopVisbtncostSharingAll,target:"btncostSharingAll",placement:"left",triggers:"click"},on:{"update:show":function(e){t.showPopVisbtncostSharingAll=e}}},[a("div",{staticStyle:{"min-width":"380px"},on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[a("common-table",{ref:"showPopVisbtncostSharingAllTable",staticClass:"popoverCommonTableMargin das-model-margin_left das-model-margin_right sales_analysis_other_cost_tabel",attrs:{border:"",tableData:t.btncostSharingAllTable,tableId:"showPopVisbtncostSharingAllTable",options:t.btncostSharingAllOptions},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[t._v(" "+t._s(e.data.value)+" "),e.data.item.tooltip?a("feather-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{title:e.data.item.tooltip,trigger:"hover",boundary:"view"},expression:"{\n              title: data.data.item.tooltip,\n              trigger: 'hover',\n              boundary: 'view'\n            }"}],staticClass:"info-auto-icon--tip das-label-left das-label-right",attrs:{icon:"InfoIcon",size:"14"}}):t._e()]}},{key:"cell(amount)",fn:function(e){return[t._v(" "+t._s(t._f("amount")(e.data.value))+" "),a("lok",{staticClass:"das-ui-button-link das-label-left",attrs:{"lok-key":"global_button_edit"},on:{click:function(a){return t.goCenterFn(e.data.item.id)}}})]}}])})],1)]),a("custom-modal",{attrs:{hideFooter:"",noMargin:"",title:t.$t("_SALES_ANALYSIS_OTHER_COST"),visible:t.showPopVisbtnotherFee,width:800,"hide-cross":!0},on:{hidden:function(e){t.showPopVisbtnotherFee=!1}},scopedSlots:t._u([{key:"modal-footer",fn:function(){return[a("div",{staticStyle:{"margin-bottom":"27px",height:"1px"}})]},proxy:!0}])},[a("common-table",{ref:"commonTableEle",staticClass:"das-model-margin_left das-model-margin_right sales_analysis_other_cost_tabel",attrs:{border:"",tableData:t.financeFeeDetailList.filter((function(t){return t.in||t.out})),tableId:"salesAnalysisPieListTable",options:t.pieOptions},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[a("div",{staticStyle:{"word-break":"break-word","white-space":"wrap"}},[t._v(" "+t._s(e.data.value)+" "),"CouponPayment"===e.data.item.key?a("feather-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:{title:t.$t("costCenter_costType_coupon_tip"),trigger:"hover",boundary:"view"},expression:"{\n              title: $t('costCenter_costType_coupon_tip'),\n              trigger: 'hover',\n              boundary: 'view'\n            }"}],staticClass:"info-auto-icon--tip das-label-left das-label-right",staticStyle:{"margin-top":"-2px"},attrs:{icon:"InfoIcon",size:"14"}}):t._e()],1)]}},{key:"cell(type)",fn:function(e){return[a("div",{staticStyle:{"word-break":"break-word","white-space":"wrap"}},[t._v(" "+t._s(e.data.value)+" ")])]}},{key:"cell(in)",fn:function(e){return[e.data.value>0?a("span",{staticClass:"incomeColor"},[t._v(" "+t._s(t._f("amount")(e.data.value))+" ")]):t._e()]}},{key:"cell(out)",fn:function(e){return[e.data.value>0?a("span",{staticClass:"payColor"},[t._v(" "+t._s(t._f("amount")(e.data.value))+" ")]):t._e()]}}])})],1),a("custom-modal",{attrs:{hideFooter:"",noMargin:"",title:t.$t("SaleAnalysis_settings_disposalLiquidation"),visible:t.showFinanceRemovalPop,width:1200,"hide-cross":!0},on:{hidden:function(e){t.showFinanceRemovalPop=!1}}},[a("FinanceRemoval",{staticClass:"das-model-margin_left das-model-margin_right",attrs:{storeType:t.storeType,sku:t.baseModel&&t.baseModel.sku,parentAsin:t.baseModel&&t.baseModel.parentAsin,asin:t.baseModel&&t.baseModel.asin,rangeDate:t.rangeDate}}),a("div",{staticClass:"btnDialogWrap das-model-margin_right das-model-margin_bottom",staticStyle:{float:"right"}},[a("button",{staticClass:"das-ui-button_cancel",attrs:{"data-lokalise":"","data-key":"_COMMON_BUTTON_CLOSE"},on:{click:function(e){t.showFinanceRemovalPop=!1}}},[t._v(" "+t._s(t.$t("_COMMON_BUTTON_CLOSE"))+" ")])])],1)],1)},i=[],o=a("2909"),r=a("5530"),s=(a("7db0"),a("d3b7"),a("159b"),a("d81d"),a("99af"),a("b0c0"),a("4fad"),a("4de4"),a("b680"),a("e9c4"),a("0aa1")),l=a("4fb3"),c=a("d80f"),u=a("b9b9"),d=a("2616"),h=a("6aac"),p=a("2f62"),f=a("bbf0"),m=a("3862"),g=a("db49"),_=a("e237"),v=a("0823"),y=a("2af9"),b=a("13e5"),S={name:"pieList",data:function(){return{addPromotionTmp:null,showFinanceRemovalPop:!1,showReAuthAd:!1,showPopVisbtncostCpc:!1,showPopVisbtncostPurchase:!1,showPopVisbtncostLogistics:!1,showPopVisbtncostDefined:!1,showPopVisbtncostFbafee:!1,showPopVisbtntax:!1,showPopVisbtnotherFee:!1,showPopVisbtncostSharingAll:!1,PACKAGE_MODULE_NAMES:g["PACKAGE_MODULE_NAMES"],hasPopList:["costPurchase","costLogistics","costDefined","costFbafee","tax","otherFee","costCpc","costSharingAll"]}},directives:{"b-popover":u["a"],"b-tooltip":d["a"]},props:{rangeDate:{},addPromotion:{},currencySymbol:{},hideDetail:{default:!1,type:Boolean},storeType:{},customCostDetail:{},financeFeeDetail:{},baseModel:{},showKeyList:{default:function(){return["costPurchase","otherFee","costFbafee","costCommission","costCpc","promotion","costLogistics","costDefined","tax","fbaInventoryInboundFee","costCouponFee","costSubscriptionFee","costOtherFee","costSharingAll"]}},profitTotal:{type:Object,default:function(){return{}}},calType:{},isAsin:{}},computed:Object(r["a"])(Object(r["a"])({},Object(p["c"])({GET_PROFIT_INFO_SETTING:f["p"],SELLER_PACKAGE:m["d"],USER_INFO:f["I"],SELLERS_LIST:f["D"]})),{},{canComputedTaxRegion:function(){var t,e=[c["F"],c["L"],c["G"],c["I"],c["H"]];return e.indexOf(null===(t=this.CURRENT_SELLER)||void 0===t?void 0:t.regionType)>-1},getCpcTipI18n:function(){return"parent"===this.storeType?this.$t("_SALES_ANALYSIS_AD_COST_EXPLAIN_PARENT"):"sku"===this.storeType?this.$t("_SALES_ANALYSIS_AD_COST_EXPLAIN_SKU"):"asin"===this.storeType?this.$t("_SALES_ANALYSIS_AD_COST_EXPLAIN_CHILD"):this.$t("_SALES_ANALYSIS_AD_COST_EXPLAIN_STORE")},showCostSharing:function(){try{return this.USER_INFO.modules["sb-cost-settings"]}catch(t){}},showCostSharingDays:function(){try{return this.USER_INFO.modules["sb-cost-share"]}catch(t){}},multiple:function(){return!(!this.baseModel||!this.baseModel.shopId&&!this.baseModel.CURRENT_SHOP_ID)},CURRENT_SELLER:function(){var t=this;if(this.multiple){var e=this.$store.getters[f["E"]],a=e.find((function(e){return e.sellerId==t.baseModel.sellerId}));if(a)return a}return this.$store.getters[f["d"]]},CURRENT_SHOP_ID:function(){return this.multiple?this.baseModel.shopId||this.baseModel.CURRENT_SHOP_ID:this.$store.getters[f["g"]]},currentValidShopList:function(){var t=[];return this.SELLERS_LIST.forEach((function(e){var a=e.shops.map((function(t){return Object(r["a"])(Object(r["a"])({},t),{},{regionType:e.regionType})}));e.shops.regionType=e.regionType,t=[].concat(Object(o["a"])(t),Object(o["a"])(a))})),t},CURRENT_SHOP:function(){var t=this,e=this.multiple?this.baseModel.currentShop:this.$store.getters[f["f"]];return e||(e=this.currentValidShopList.find((function(e){return e.id==t.baseModel.CURRENT_SHOP_ID}))||{}),e},CURRENCY_SYMBOL:function(){return this.currencySymbol||(this.multiple?this.baseModel.CURRENCY_SYMBOL:this.$store.getters[f["c"]])},IS_LANG_ZH:function(){return"zh-CN"===this.$i18n.locale},IS_LANG_EN:function(){return"en"===this.$i18n.locale},btncostCpcTable:function(){return[{name:this.$t("costCenter_sbad_sharing"),isSB:1,amount:this.profitTotal.costCpcOfSb},{name:this.$t("costCenter_sbsdad_sharing"),amount:this.profitTotal.costCpcOfSp}]},btncostCpcOptions:function(){return{hidePagination:!0,fields:[{key:"name",headerPosition:"left",diy:!0,label:""},{key:"amount",diy:!0,label:this.$t("_SALES_ANALYSIS_ORDER_ANALYSIS_DETAIL_COST")}]}},btntaxTable:function(){return[{name:this.$t("_SALES_ANALYSIS_TAX_SETTING_SALE_TAX"),amount:this.profitTotal.costCommodityTax},{name:this.$t("_SALES_ANALYSIS_TAX_SETTING_AD_TAX"),amount:this.profitTotal.costAdsTax}]},btncostSharingAllTable:function(){return[{name:this.$t("costCenter_costType_coupon"),id:"costCouponFee",tooltip:this.$t("costCenter_costType_coupon_tip"),amount:this.profitTotal.costCouponFee},{name:this.$t("global_amz_otherApartFee"),id:"costOtherFee",tooltip:this.$t("global_amz_otherApartFee_tip"),amount:this.profitTotal.costOtherFee},{name:this.$t("global_amz_MonthlyFee"),id:"costSubscriptionFee",amount:this.profitTotal.costSubscriptionFee}]},btncostFbafeeTable:function(){return[{name:this.$t("_SALES_ANALYSIS_FBAFEE"),amount:this.profitTotal.fbafee},{name:this.$t("_SALES_ANALYSIS_AMZ_SHIP_FEE_MULTI"),key:"_SALES_ANALYSIS_AMZ_SHIP_FEE_MULTI",amount:this.profitTotal.outsideFbafee}]},btncostLogisticsTable:function(){return[{name:this.$t("_SALES_ANALYSIS_LOGISTICS_DETAIL_SALE"),key:"_SALES_ANALYSIS_LOGISTICS_DETAIL_SALE",amount:this.profitTotal.saleLogistics},{name:this.$t("_SALES_ANALYSIS_LOGISTICS_DETAIL_REFUND"),key:"_SALES_ANALYSIS_LOGISTICS_DETAIL_REFUND",amount:this.profitTotal.noSellableLogistics},{name:this.$t("_SALES_ANALYSIS_MULTI_LOGISTICS_COST"),key:"_SALES_ANALYSIS_MULTI_LOGISTICS_COST",amount:this.profitTotal.outsideLogistics},{name:this.$t("_SALES_ANALYSIS_REMOVE_LOGISTICS_COST"),key:"_SALES_ANALYSIS_REMOVE_LOGISTICS_COST",amount:this.profitTotal.removalLogistics}]},btncostPurchaseTable:function(){return[{key:"_SALES_ANALYSIS_PURCHASE_DETAIL_SALE",name:this.$t("_SALES_ANALYSIS_PURCHASE_DETAIL_SALE"),tooltip:this.$t("_SALES_ANALYSIS_PURCHASE_DETAIL_SALE_tip"),amount:this.profitTotal.salePurchase},{key:"_SALES_ANALYSIS_PURCHASE_DETAIL_REFUND",name:this.$t("_SALES_ANALYSIS_PURCHASE_DETAIL_REFUND"),tooltip:this.$t("_SALES_ANALYSIS_REFUND_PURCHASE_COST_tip"),amount:this.profitTotal.noSellablePurchase},{key:"_SALES_ANALYSIS_MULTI_PURCHASE_COST",name:this.$t("_SALES_ANALYSIS_MULTI_PURCHASE_COST"),tooltip:this.$t("_SALES_ANALYSIS_MULTI_PURCHASE_COST_tip"),amount:this.profitTotal.outsidePurchase},{key:"_SALES_ANALYSIS_REMOVE_PURCHASE_COST",name:this.$t("_SALES_ANALYSIS_REMOVE_PURCHASE_COST"),amount:this.profitTotal.removalPurchase}]},btncostPurchaseNewOptions:function(){return{hidePagination:!0,fields:[{key:"name",headerPosition:"left",diy:!0,label:""},{key:"amount",diy:!0,label:this.$t("_SALES_ANALYSIS_ORDER_ANALYSIS_DETAIL_COST")}]}},btncostPurchaseOptions:function(){return{hidePagination:!0,fields:[{key:"name",headerPosition:"left",diy:!0,label:""},{key:"amount",showSymbol:!0,label:this.$t("_SALES_ANALYSIS_ORDER_ANALYSIS_DETAIL_COST")}]}},btncostSharingAllOptions:function(){return{hidePagination:!0,fields:[{key:"name",headerPosition:"left",diy:!0,label:""},{key:"amount",diy:!0,label:this.$t("_SALES_ANALYSIS_ORDER_ANALYSIS_DETAIL_COST")}]}},diyCostOptions:function(){var t=this;return{hidePagination:!0,fields:[{key:"name",headerPosition:"left",formatter:function(e,a,n){var i={1:"_CUSTOMIZED_COST_CUSTOMIZED_COST_REVIEW_ORDER",2:"_CUSTOMIZED_COST_CUSTOMIZED_COST_OUTSIDE",3:"_CUSTOMIZED_COST_CUSTOMIZED_COST_STORAGE_LOCAL_FEE",4:"_CUSTOMIZED_COST_CUSTOMIZED_COST_LABOR",5:"_CUSTOMIZED_COST_CUSTOMIZED_COST_TAX",6:"_CUSTOMIZED_COST_CUSTOMIZED_COST_SERVICE_FEE",7:"global_MiscAdjustment",8:"_CUSTOMIZED_COST_CUSTOMIZED_COST_PHOTO",9:"_CUSTOMIZED_COST_CUSTOMIZED_COST_SHIP_FEE"};return i[n.costType]?t.$t(i[n.costType]):t.IS_LANG_ZH?n.name:t.IS_LANG_EN?n.enName:n.jpName},label:""},{key:"amount",showSymbol:!0,label:this.$t("_SALES_ANALYSIS_ORDER_ANALYSIS_DETAIL_INCOME")+" / "+this.$t("_SALES_ANALYSIS_ORDER_ANALYSIS_DETAIL_COST")}]}},pieOptions:function(){return{hidePagination:!0,stickyHeader:"800px",fields:[{key:"type",diy:!0,headerPosition:"left",label:this.$t("_CUSTOMIZED_COST_TYPE")},{key:"name",diy:!0,headerPosition:"left",label:this.$t("_LOCAL_PRODUCT_MANAGE_NAME")},{key:"in",diy:!0,label:this.$t("_SALES_ANALYSIS_ORDER_ANALYSIS_DETAIL_INCOME")},{key:"out",diy:!0,label:this.$t("_SALES_ANALYSIS_ORDER_ANALYSIS_DETAIL_COST")}]}},financeFeeDetailList:function(){var t,e=this,a=[{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_FBASTORAGEFEE"),key:"fbaStorageFee",in:this.financeFeeDetail.fbaStorageFee,out:-this.financeFeeDetail.fbaStorageFee},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_SUBSCRIPTION"),key:"subscription",in:this.financeFeeDetail.subscription,out:-this.financeFeeDetail.subscription},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_SELLERDEALPAYMENT"),key:"sellerDealPayment",in:this.financeFeeDetail.sellerDealPayment,out:-this.financeFeeDetail.sellerDealPayment},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_FBAINBOUNDCONVENIENCEFEE"),key:"fbaInboundConvenienceFee",in:this.financeFeeDetail.fbaInboundConvenienceFee,out:-this.financeFeeDetail.fbaInboundConvenienceFee},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_FBACUSTOMERRETURNPERUNITFEE"),key:"fbaCustomerReturnPerUnitFee",in:this.financeFeeDetail.fbaCustomerReturnPerUnitFee,out:-this.financeFeeDetail.fbaCustomerReturnPerUnitFee},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_FBADISPOSALFEE"),key:"fbaDisposalFee",in:this.financeFeeDetail.fbaDisposalFee,out:-this.financeFeeDetail.fbaDisposalFee},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_FBAREMOVALFEE"),key:"fbaRemovalFee",in:this.financeFeeDetail.fbaRemovalFee,out:-this.financeFeeDetail.fbaRemovalFee},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_FBALONGTERMSTORAGEFEE"),key:"fbaLongTermStorageFee",in:this.financeFeeDetail.fbaLongTermStorageFee,out:-this.financeFeeDetail.fbaLongTermStorageFee},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_FBAINBOUNDTRANSPORTATIONFEE"),key:"FBAInboundTransportationFee",in:this.financeFeeDetail.FBAInboundTransportationFee,out:-this.financeFeeDetail.FBAInboundTransportationFee},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_FBAINTERNATIONALFREIGHTFEE"),key:"FBAInternationalInboundFreightFee",in:this.financeFeeDetail.FBAInternationalInboundFreightFee,out:-this.financeFeeDetail.FBAInternationalInboundFreightFee},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_FBA_INTERNATIONAL_INBOUND_FREIGHT_TEX_AND_DUTY"),key:"FBAInternationalInboundFreightTaxAndDuty",in:this.financeFeeDetail.FBAInternationalInboundFreightTaxAndDuty,out:-this.financeFeeDetail.FBAInternationalInboundFreightTaxAndDuty},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_PAID_SERVICE_FEE"),key:"PaidServicesFee",in:this.financeFeeDetail.PaidServicesFee,out:-this.financeFeeDetail.PaidServicesFee},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("global_FBAOverageFee"),key:"FBAOverageFee",in:this.financeFeeDetail.FBAOverageFee,out:-this.financeFeeDetail.FBAOverageFee},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("global_finance_ReCommerceGradingAndListingCharge"),key:"ReCommerceGradingAndListingCharge",in:this.financeFeeDetail.ReCommerceGradingAndListingCharge,out:-this.financeFeeDetail.ReCommerceGradingAndListingCharge},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("global_FBAInboundDefectFee"),key:"FBAInboundDefectFee",in:this.financeFeeDetail.FBAInboundDefectFee,out:-this.financeFeeDetail.FBAInboundDefectFee},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_SERVICE_FEE"),name:this.$t("global_VineFee"),key:"VineFee",in:this.financeFeeDetail.VineFee,out:-this.financeFeeDetail.VineFee},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("saleAnalysis_liquidation_adjustment"),key:"WHOLESALE_LIQUIDATION.RevenueAdjustment",in:this.financeFeeDetail["WHOLESALE_LIQUIDATION.RevenueAdjustment"],out:-this.financeFeeDetail["WHOLESALE_LIQUIDATION.RevenueAdjustment"]},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_WAREHOUSEDAMAGE"),key:"warehouseDamage",in:this.financeFeeDetail.warehouseDamage,out:-this.financeFeeDetail.warehouseDamage},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_WAREHOUSELOST"),key:"warehouseLost",in:this.financeFeeDetail.warehouseLost,out:-this.financeFeeDetail.warehouseLost},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_REVERSALREIMBURSEMENT"),key:"reversalReimbursement",in:this.financeFeeDetail.reversalReimbursement,out:-this.financeFeeDetail.reversalReimbursement},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_NONSUBSCRIPTIONFEEADJ"),key:"nonSubscriptionFeeAdj",in:this.financeFeeDetail.nonSubscriptionFeeAdj,out:-this.financeFeeDetail.nonSubscriptionFeeAdj},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("_SALES_ANALYSIS_OTHER_COUPON_PAYMENT"),key:"CouponPayment",in:this.financeFeeDetail.CouponPayment,out:-this.financeFeeDetail.CouponPayment},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("global_MISSING_FROM_INBOUND_CLAWBACK"),key:"compensatedClawback",in:this.financeFeeDetail.compensatedClawback,out:-this.financeFeeDetail.compensatedClawback},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("SalesAnalysis_other_liquidations_revenue"),key:"wholesaleLiquidationRevenue",in:this.financeFeeDetail.wholesaleLiquidationRevenue,out:-this.financeFeeDetail.wholesaleLiquidationRevenue},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("SalesAnalysis_other_liquidations_fee"),key:"wholesaleLiquidationFeeAmount",in:this.financeFeeDetail.wholesaleLiquidationFeeAmount,out:-this.financeFeeDetail.wholesaleLiquidationFeeAmount},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("global_WHOLESALE_LIQUIDATION.TaxAmount"),key:"WHOLESALE_LIQUIDATION.TaxAmount",in:this.financeFeeDetail["WHOLESALE_LIQUIDATION.TaxAmount"],out:-this.financeFeeDetail["WHOLESALE_LIQUIDATION.TaxAmount"]},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("global_finance_CUSTOMER_RETURN_BASED_WHOLESALE_LIQUIDATION.FeeAmount"),key:"CUSTOMER_RETURN_BASED_WHOLESALE_LIQUIDATION.FeeAmount",in:this.financeFeeDetail["CUSTOMER_RETURN_BASED_WHOLESALE_LIQUIDATION.FeeAmount"],out:-this.financeFeeDetail["CUSTOMER_RETURN_BASED_WHOLESALE_LIQUIDATION.FeeAmount"]},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("global_finance_CUSTOMER_RETURN_BASED_WHOLESALE_LIQUIDATION.Revenue"),key:"CUSTOMER_RETURN_BASED_WHOLESALE_LIQUIDATION.Revenue",in:this.financeFeeDetail["CUSTOMER_RETURN_BASED_WHOLESALE_LIQUIDATION.Revenue"],out:-this.financeFeeDetail["CUSTOMER_RETURN_BASED_WHOLESALE_LIQUIDATION.Revenue"]},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("global_finance_CUSTOMER_RETURN_BASED_WHOLESALE_LIQUIDATION.TaxAmount"),key:"CUSTOMER_RETURN_BASED_WHOLESALE_LIQUIDATION.TaxAmount",in:this.financeFeeDetail["CUSTOMER_RETURN_BASED_WHOLESALE_LIQUIDATION.TaxAmount"],out:-this.financeFeeDetail["CUSTOMER_RETURN_BASED_WHOLESALE_LIQUIDATION.TaxAmount"]},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("global_CS_ERROR_NON_ITEMIZED"),key:"CS_ERROR_NON_ITEMIZED",in:this.financeFeeDetail.CS_ERROR_NON_ITEMIZED,out:-this.financeFeeDetail.CS_ERROR_NON_ITEMIZED},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("global_FREE_REPLACEMENT_REFUND_NON_ITEMIZED"),key:"FREE_REPLACEMENT_REFUND_NON_ITEMIZED",in:this.financeFeeDetail.FREE_REPLACEMENT_REFUND_NON_ITEMIZED,out:-this.financeFeeDetail.FREE_REPLACEMENT_REFUND_NON_ITEMIZED},{type:this.$t("_SALES_ANALYSIS_OTHER_AMZ_FEE"),name:this.$t("global_finance_ReCommerceGradingAndListingRefund"),key:"ReCommerceGradingAndListingRefund",in:this.financeFeeDetail.ReCommerceGradingAndListingRefund,out:-this.financeFeeDetail.ReCommerceGradingAndListingRefund},{type:this.$t("_SALES_ANALYSIS_OTHER_FINANCEOTHERFEE"),name:this.$t("_SALES_ANALYSIS_OTHER_FINANCEOTHERFEE"),key:"financeOtherFee",in:this.financeFeeDetail.financeOtherFee,out:-this.financeFeeDetail.financeOtherFee},{type:this.$t("_SALES_ANALYSIS_OTHER_ORDER_PAYMENT"),name:this.$t("_SALES_ANALYSIS_OTHER_ORDER_PAYMENT"),in:-this.costOther,out:this.costOther},{type:this.$t("SalesAnalysis_other_missfrominbound"),name:this.$t("SalesAnalysis_other_missfrominbound"),key:"MissingFromInbound",in:this.financeFeeDetail.MissingFromInbound,out:-this.financeFeeDetail.MissingFromInbound},{type:this.$t("global_MFNPostageFee"),name:this.$t("global_MFNPostageFee"),key:"MFNPostageFee",in:this.financeFeeDetail.MFNPostageFee,out:-this.financeFeeDetail.MFNPostageFee},{type:this.$t("global_FeeType_adjustment"),name:this.$t("global_FREE_REPLACEMENT_REFUND_ITEMS"),key:"FREE_REPLACEMENT_REFUND_ITEMS",in:this.financeFeeDetail.FREE_REPLACEMENT_REFUND_ITEMS,out:-this.financeFeeDetail.FREE_REPLACEMENT_REFUND_ITEMS},{type:this.$t("global_FeeType_adjustment"),name:this.$t("global_WAREHOUSE_LOST_MANUAL"),key:"WAREHOUSE_LOST_MANUAL",in:this.financeFeeDetail.WAREHOUSE_LOST_MANUAL,out:-this.financeFeeDetail.WAREHOUSE_LOST_MANUAL},{type:this.$t("global_FeeType_adjustment"),name:this.$t("global_MiscAdjustment"),key:"MiscAdjustment",in:this.financeFeeDetail.MiscAdjustment,out:-this.financeFeeDetail.MiscAdjustment},{type:this.$t("global_FeeType_adjustment"),name:this.$t("global_REMOVAL_ORDER_LOST"),key:"REMOVAL_ORDER_LOST",in:this.financeFeeDetail.REMOVAL_ORDER_LOST,out:-this.financeFeeDetail.REMOVAL_ORDER_LOST},{type:this.$t("global_FeeType_adjustment"),name:this.$t("global_CommissionCorrection"),key:"CommissionCorrection",in:this.financeFeeDetail.CommissionCorrection,out:-this.financeFeeDetail.CommissionCorrection},{type:this.$t("global_FeeType_adjustment"),name:this.$t("global_CS_ERROR_ITEMS"),key:"CS_ERROR_ITEMS",in:this.financeFeeDetail.CS_ERROR_ITEMS,out:-this.financeFeeDetail.CS_ERROR_ITEMS},{type:this.$t("global_FeeType_adjustment"),name:this.$t("global_WAREHOUSE_DAMAGE_EXCEPTION"),key:"WAREHOUSE_DAMAGE_EXCEPTION",in:this.financeFeeDetail.WAREHOUSE_DAMAGE_EXCEPTION,out:-this.financeFeeDetail.WAREHOUSE_DAMAGE_EXCEPTION},{type:this.$t("global_FeeType_adjustment"),name:this.$t("global_INCORRECT_FEES_NON_ITEMIZED"),key:"INCORRECT_FEES_NON_ITEMIZED",in:this.financeFeeDetail.INCORRECT_FEES_NON_ITEMIZED,out:-this.financeFeeDetail.INCORRECT_FEES_NON_ITEMIZED},{type:this.$t("global_FeeType_adjustment"),name:this.$t("global_finance_PointsAdjusted"),key:"PointsAdjusted",in:this.financeFeeDetail["PointsAdjusted"],out:-this.financeFeeDetail["PointsAdjusted"]},{type:this.$t("global_finance_BaseTax"),name:this.$t("global_finance_BaseTax"),key:"BaseTax",in:this.financeFeeDetail.BaseTax,out:-this.financeFeeDetail.BaseTax},{type:this.$t("global_finance_ShippingTax"),name:this.$t("global_finance_ShippingTax"),key:"ShippingTax",in:this.financeFeeDetail.ShippingTax,out:-this.financeFeeDetail.ShippingTax}],n=this.CURRENT_SHOP.amazonSiteInfo&&"JP"===this.CURRENT_SHOP.amazonSiteInfo.countryCode&&(this.profitTotal.pointsGranted||0===this.profitTotal.pointsGranted);return n?a=a.concat([{type:this.$t("_SALES_ANALYSIS_OTHER_ORDER_PAYMENT"),name:this.$t("Global_AmazonPoints"),in:-this.profitTotal.pointsGranted,key:"points",id:"points",out:this.profitTotal.pointsGranted},{type:this.$t("_SALES_ANALYSIS_SHIPPING_CHARGE"),name:this.$t("_SALES_ANALYSIS_SHIPPING_CHARGE"),key:"shippingcharge",in:this.profitTotal.shippingcharge,out:-this.profitTotal.shippingcharge}]):a.push({type:this.$t("_SALES_ANALYSIS_SHIPPING_CHARGE"),name:this.$t("_SALES_ANALYSIS_SHIPPING_CHARGE"),key:"shippingcharge",in:this.profitTotal.shippingcharge,out:-this.profitTotal.shippingcharge}),this.isAsin||"sku"===this.storeType||1==(null===this||void 0===this||null===(t=this.baseModel)||void 0===t?void 0:t.isSku)?a=a.concat([{type:this.$t("global_amz_other_fee"),name:this.$t("global_FBA_liquidation_proceeds"),key:"liquidationProceeds",in:this.profitTotal.liquidationProceeds,out:-this.profitTotal.liquidationProceeds},{type:this.$t("global_FBA_Liquidations_proceeds_adjustments"),name:this.$t("global_FBA_Liquidations_proceeds_adjustments"),key:"liquidationProceedsAdj",in:this.profitTotal.liquidationProceedsAdj,out:-this.profitTotal.liquidationProceedsAdj},{type:this.$t("global_amz_other_fee"),name:this.$t("global_finance_FBA_Inventory_Reimbursement"),key:"inventoryCredit",in:this.profitTotal.inventoryCredit,out:-this.profitTotal.inventoryCredit},{type:this.$t("global_amz_other_fee"),name:this.$t("global_Liquidations_fees"),key:"LiquidationFees",in:this.profitTotal.LiquidationFees,out:-this.profitTotal.LiquidationFees}]):Object.entries(this.financeFeeDetail).forEach((function(t){a.find((function(e){return e.key===t[0]}))||a.push({type:t[0],name:e.$t("global_"+t[0])==="global_"+t[0]?t[0]:e.$t("global_"+t[0]),in:t[1],out:-t[1]})})),a},shouldShowAuthEntry:function(){var t=this.CURRENT_SHOP,e=this.CURRENT_SELLER,a=t&&0===t.adProfileId?0:1,n=e.sponsoredAuth,i=1===a&&1===n;return!i},costOther:function(){return this.profitTotal.costOther},pieItemNamesShow:function(){var t=this,e=this.pieItemNames.filter((function(e){return t.showKeyList.indexOf(e.id)>-1}));return e.forEach((function(t){t.unchecked=!1})),this.$emit("pieItemNamesShow",e),e},otherFee:function(){var t,e=-this.profitTotal.LiquidationFees-(this.profitTotal.liquidationProceedsAdj||0)-(this.profitTotal.inventoryCredit||0)-(this.profitTotal.liquidationProceeds||0);return e=this.isAsin||"sku"===this.storeType||1==(null===this||void 0===this||null===(t=this.baseModel)||void 0===t?void 0:t.isSku)?e:0,this.hideDetail?this.profitTotal.otherFee:parseFloat((e+this.profitTotal.costOther+(this.profitTotal.pointsGranted||0)+(this.profitTotal.financeCost||0)-(this.profitTotal.financePrincipal||0)-this.profitTotal.shippingcharge).toFixed(2))},pieItemNames:function(){var t;return[{value:this.profitTotal.costPurchase,id:"costPurchase",color:"rgba(248, 211, 71, 1)",label:this.$t("_SALES_ANALYSIS_PURCHASE_COST")},{id:"costLogistics",color:"rgba(115, 226, 252, 1)",value:this.profitTotal.costLogistics,label:this.$t("_SALES_ANALYSIS_SHIPPING"),tooltip:this.$t("global_Logistics_tip")},{id:"costDefined",color:"rgba(214, 149, 252, 1)",value:this.profitTotal.costDefined,label:this.$t("_CUSTOMIZED_COST_CUSTOMIZED_COST_TITLE")},{id:"costFbafee",color:"rgba(255, 187, 112, 1)",value:this.profitTotal.costFbafee,label:this.$t("_SALES_ANALYSIS_FBAFEE"),tooltip:this.$t("global_FBAFulfillmentFees_tip")},{id:"tax",color:"rgba(9, 179, 210, 1)",value:this.profitTotal.tax,label:this.$t("_SALES_ANALYSIS_TAX_FEE")}].concat(Object(o["a"])(this.isAsin?[{id:"fbaInventoryInboundFee",color:"#08b6c3",value:this.profitTotal.fbaInventoryInboundFee?this.profitTotal.fbaInventoryInboundFee:0,label:this.$t("_SALES_ANALYSIS_FBA_STORAGE_FEE")}]:[]),[{id:"outsidePurchase",color:"#8305c3",value:this.profitTotal.outsidePurchase,label:this.$t("_SALES_ANALYSIS_PURCHASE_COST")},{id:"outsideLogistics",color:"#c3005c",value:this.profitTotal.outsideLogistics,label:this.$t("_SALES_ANALYSIS_SHIPPING")},{id:"outsideFbafee",color:"#c34e1b",value:this.profitTotal.outsideFbafee,label:this.$t("_DASHBOARD_FBAFEE")},{id:"costCommission",color:"rgba(99, 249, 208, 1)",value:this.profitTotal.costCommission,label:this.$t("_SALES_ANALYSIS_REFERRAL_FEE")}],Object(o["a"])("0"==this.addPromotionTmp?[{id:"promotion",color:"rgba(99, 181, 254, 1)",value:this.profitTotal.promotion,label:this.$t("_SALES_ANALYSIS_PROMOTION"),tooltip:this.$t("_SALES_ANALYSIS_PROMOTION_COST_EXPLAIN")}]:[]),Object(o["a"])(this.calType?[{id:"costCpc",value:0,color:"rgba(255, 100, 84, 1)"}]:[{id:"costCpc",color:"rgba(255, 100, 84, 1)",value:this.profitTotal.costCpc,label:this.$t("_SALES_ANALYSIS_AD_COST"),tooltip:this.getCpcTipI18n}]),[{id:"otherFee",value:this.otherFee,color:"#2c73c3",label:this.$t("_SALES_ANALYSIS_OTHER_COST")}],Object(o["a"])(this.isAsin||"sku"===this.storeType||1==(null===this||void 0===this||null===(t=this.baseModel)||void 0===t?void 0:t.isSku)?[{id:"costSharingAll",color:"#B1CF39",value:this.profitTotal.costCouponFee+this.profitTotal.costSubscriptionFee+this.profitTotal.costOtherFee,label:this.$t("costCenter_share_cost")}]:[]))},financeFeeDetailList_filter:function(){return this.financeFeeDetailList.filter((function(t){return t.in||t.out}))},exportItemNamesShow:function(){var t=this;if(this.hideDetail)var e=[{value:this.profitTotal.costPurchase,id:"costPurchase",label:this.$t("_SALES_ANALYSIS_PURCHASE_COST")},{id:"costLogistics",value:this.profitTotal.costLogistics,label:this.$t("_SALES_ANALYSIS_SHIPPING")},{id:"costDefined",value:this.profitTotal.costDefined,label:this.$t("_CUSTOMIZED_COST_CUSTOMIZED_COST_TITLE")},{id:"costFbafee",value:this.profitTotal.costFbafee,label:this.$t("_SALES_ANALYSIS_FBAFEE")},{id:"tax",value:this.profitTotal.tax,label:this.$t("_SALES_ANALYSIS_TAX_FEE")},{id:"costCommission",color:"rgba(99, 249, 208, 1)",value:this.profitTotal.costCommission,label:this.$t("_SALES_ANALYSIS_REFERRAL_FEE")},{id:"promotion",color:"rgba(99, 181, 254, 1)",value:this.profitTotal.promotion,label:this.$t("_SALES_ANALYSIS_PROMOTION"),tooltip:this.$t("_SALES_ANALYSIS_PROMOTION_COST_EXPLAIN")}].concat(Object(o["a"])(this.calType?[{id:"costCpc",value:0,color:"rgba(255, 100, 84, 1)"}]:[{id:"costCpc",color:"rgba(255, 100, 84, 1)",value:this.profitTotal.costCpc,label:this.$t("_SALES_ANALYSIS_AD_COST"),tooltip:this.getCpcTipI18n}]),[{id:"otherFee",value:this.profitTotal.otherFee,color:"#2c73c3",label:this.$t("_SALES_ANALYSIS_OTHER_COST")}]);else e=this.exportItemNames;var a=e.filter((function(e){return t.showKeyList.indexOf(e.id)>-1||t.showKeyList.indexOf(e.pid)>-1}));return a},exportItemNames:function(){var t,e=this;return[{value:this.profitTotal.costPurchase,id:"costPurchase",label:this.$t("_SALES_ANALYSIS_PURCHASE_COST")},{pid:"costPurchase",id:"salePurchase",label:this.$t("_SALES_ANALYSIS_PURCHASE_DETAIL_SALE"),value:this.profitTotal.salePurchase},{pid:"costPurchase",id:"noSellablePurchase",label:this.$t("_SALES_ANALYSIS_PURCHASE_DETAIL_REFUND"),value:this.profitTotal.noSellablePurchase},{pid:"costPurchase",id:"outsidePurchase",label:this.$t("_SALES_ANALYSIS_MULTI_PURCHASE_COST"),value:this.profitTotal.outsidePurchase},{id:"costLogistics",value:this.profitTotal.costLogistics,label:this.$t("_SALES_ANALYSIS_SHIPPING")},{pid:"costLogistics",id:"saleLogistics",label:this.$t("_SALES_ANALYSIS_LOGISTICS_DETAIL_SALE"),value:this.profitTotal.saleLogistics},{pid:"costLogistics",id:"noSellableLogistics",label:this.$t("_SALES_ANALYSIS_LOGISTICS_DETAIL_REFUND"),value:this.profitTotal.noSellableLogistics},{pid:"costLogistics",id:"outsideLogistics",label:this.$t("_SALES_ANALYSIS_MULTI_LOGISTICS_COST"),value:this.profitTotal.outsideLogistics},{id:"costDefined",value:this.profitTotal.costDefined,label:this.$t("_CUSTOMIZED_COST_CUSTOMIZED_COST_TITLE")}].concat(Object(o["a"])(this.customCostDetail.map((function(t){return{pid:"costDefined",id:t.enName,value:t.amount,label:t[e.IS_LANG_ZH?"name":e.IS_LANG_EN?"enName":"jpName"]}}))),[{id:"costFbafee",value:this.profitTotal.costFbafee,label:this.$t("_SALES_ANALYSIS_FBAFEE")},{pid:"costFbafee",id:"fbafee",label:this.$t("_SALES_ANALYSIS_FBAFEE"),value:this.profitTotal.fbafee},{pid:"costFbafee",id:"outsideFbafee",label:this.$t("_SALES_ANALYSIS_AMZ_SHIP_FEE_MULTI"),value:this.profitTotal.outsideFbafee},{id:"tax",value:this.profitTotal.tax,label:this.$t("_SALES_ANALYSIS_TAX_FEE")},{pid:"tax",id:"costCommodityTax",label:this.$t("_SALES_ANALYSIS_TAX_SETTING_SALE_TAX"),value:this.profitTotal.costCommodityTax},{pid:"tax",id:"costAdsTax",label:this.$t("_SALES_ANALYSIS_TAX_SETTING_AD_TAX"),value:this.profitTotal.costAdsTax}],Object(o["a"])(this.isAsin?[{id:"fbaInventoryInboundFee",value:this.profitTotal.fbaInventoryInboundFee?this.profitTotal.fbaInventoryInboundFee:0,label:this.$t("_SALES_ANALYSIS_FBA_STORAGE_FEE")}]:[]),[{id:"outsidePurchase",color:"#8305c3",value:this.profitTotal.outsidePurchase,label:this.$t("_SALES_ANALYSIS_PURCHASE_COST")},{id:"outsideLogistics",color:"#c3005c",value:this.profitTotal.outsideLogistics,label:this.$t("_SALES_ANALYSIS_SHIPPING")},{id:"outsideFbafee",color:"#c34e1b",value:this.profitTotal.outsideFbafee,label:this.$t("_DASHBOARD_FBAFEE")},{id:"costCommission",color:"rgba(99, 249, 208, 1)",value:this.profitTotal.costCommission,label:this.$t("_SALES_ANALYSIS_REFERRAL_FEE")},{id:"promotion",color:"rgba(99, 181, 254, 1)",value:this.profitTotal.promotion,label:this.$t("_SALES_ANALYSIS_PROMOTION"),tooltip:this.$t("_SALES_ANALYSIS_PROMOTION_COST_EXPLAIN")}],Object(o["a"])(this.calType?[{id:"costCpc",value:0,color:"rgba(255, 100, 84, 1)"}]:[{id:"costCpc",color:"rgba(255, 100, 84, 1)",value:this.profitTotal.costCpc,label:this.$t("_SALES_ANALYSIS_AD_COST"),tooltip:this.getCpcTipI18n}]),[{id:"otherFee",value:this.otherFee,color:"#2c73c3",label:this.$t("_SALES_ANALYSIS_OTHER_COST")}],Object(o["a"])(this.financeFeeDetailList_filter.map((function(t){return{pid:"otherFee",id:t.type,label:t.name,value:t.out||t.in}}))),Object(o["a"])(this.isAsin||"sku"===this.storeType||1==(null===this||void 0===this||null===(t=this.baseModel)||void 0===t?void 0:t.isSku)?[{id:"costSharingAll",value:this.profitTotal.costCouponFee+this.profitTotal.costSubscriptionFee+this.profitTotal.costOtherFee,label:this.$t("costCenter_share_cost")}]:[]))}}),components:{FinanceRemoval:l["a"],customModal:y["l"],commonTable:v["a"],BModal:h["a"]},methods:{getRates:function(){var t=this;Object(b["Q"])().then((function(e){var a=e.status,n=e.content;1===a&&(t.addPromotionTmp=n.addPromotion)}))},goFinanceFn:function(){var t=this;this.showPopVisbtncostPurchase=!1,this.showPopVisbtncostLogistics=!1,setTimeout((function(){t.showFinanceRemovalPop=!0}),100)},goOrdersFn:function(){var t=this;this.showPopVisbtncostPurchase=!1,this.showPopVisbtncostLogistics=!1,setTimeout((function(){"sales_analysis-gross_profit"===t.$route.name?t.$emit("salesTabs",4):t.$emit("salesTabs",1),document.documentElement.scrollTop=0}),100)},goRoiSettings:function(){var t=this;this.showPopVisbtncostPurchase=!1,this.showPopVisbtncostLogistics=!1,this.showPopVisbtncostFbafee=!1,sessionStorage.setItem("systemDialog_tabIndex",1),setTimeout((function(){t.$store.dispatch(s["o"],"showSetting")}),0)},goSettingFn:function(){var t=this;sessionStorage.setItem("systemDialog_tabIndex",3),setTimeout((function(){t.$store.dispatch(s["o"],"showSetting")}),0)},goCenterFn:function(t){var e={costCouponFee:2,costSubscriptionFee:3,costOtherFee:4};this.$router.push({path:"/sales_analysis/cost_center",query:{costTab:4,CURRENT_SHOP_ID:this.CURRENT_SHOP_ID,sales_analysis_cost_center_costSharing_search:JSON.stringify({feeType:e[t]?[e[t]]:[2,3,4]})}})},showPieFn:function(t,e){this.$emit("showPie",{item:t,type:e})},showOtherCostFn:function(t){this.hideDetail||"btnotherFee"===t&&(this.showPopVisbtnotherFee=!0)},exportExcel:function(){var t={},e=this;t.title=e.$t("_SALES_ANALYSIS_COST_STRUCTURE");var a=e.exportItemNamesShow;for(var n in t.header=[[e.$t("web_report_detail")].concat([e.$t("web_report_item")],[e.$t("_ORDERS_AMOUNT")+"(".concat(e.CURRENCY_SYMBOL,")")])],t.body=[],a){var i=[a[n].pid?"":a[n].label,a[n].pid?a[n].label:"",a[n].value];t.body.push(i)}t.body.push([e.$t("_SALES_ANALYSIS_TOTAL_COST"),"",e.profitTotal.cost]),Object(_["a"])([].concat(Object(o["a"])(t.header),Object(o["a"])(t.body)),{fileName:t.title})},clickFn:function(){this.showPopVisbtncostCpc=!1,this.showPopVisbtncostPurchase=!1,this.showPopVisbtncostLogistics=!1,this.showPopVisbtncostDefined=!1,this.showPopVisbtncostFbafee=!1,this.showPopVisbtntax=!1,this.showPopVisbtncostSharingAll=!1},goApiAuth:function(){this.$router.push({path:"/ppc_api_auth",query:{redirect:"/sales_analysis/gross_profit",authModule:"adv",step:2}})}},destroyed:function(){this.hideDetail||document.removeEventListener("click",this.clickFn)},watch:{addPromotion:{immediate:!0,handler:function(){this.addPromotionTmp=this.addPromotion}},GET_PROFIT_INFO_SETTING:"getRates"},mounted:function(){this.getRates(),this.hideDetail||document.addEventListener("click",this.clickFn)}},O=S,T=(a("8012"),a("c1f5"),a("2877")),A=Object(T["a"])(O,n,i,!1,null,"5e832214",null);e["a"]=A.exports},a782:function(t,e,a){},a7a3:function(t,e,a){},a8d2:function(t,e,a){"use strict";a("2b1a")},a8e0:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"competitive-analysis_group-setting"},[a("div",{},[a("div",{staticClass:"border-block group-setting-body"},t._l(t.groupList,(function(e,n){return a("div",{key:e.id,ref:"popoverlist",refInFor:!0,staticClass:"d-flex align-items-center multiple-options"},[a("div",{staticClass:"flex-between align-items--center"},[a("div",{staticClass:"d-flex align-items--center flex-one text-ellipsis",staticStyle:{height:"100%","max-width":"380px"}},[t.onlyEdit||e.isAdd?t.curEditRow.id!=e.id?a("div",{staticClass:"d-flex w-100",style:{color:t.curSelectGroups.indexOf(e.id)>-1?"#5759F2":""}},[a("div",{staticClass:"text-ellipsis"},[t._v(" "+t._s(2==e.type?t.$t("asin_track_group_default"):1==e.type?t.$t("_KEYWORD_RANK_MY_PRODUCT"):e.name)+" ")]),2!=e.type?a("span",{staticClass:"number-item m-l-4",style:{color:t.curSelectGroups.indexOf(e.id)>-1?"#5759F2":""}},[t._v("("+t._s(e.quantity)+")")]):t._e()]):t._e():[a("b-form-checkbox",{staticClass:"multiple-options-checkbox d-flex",class:{"flex-one":t.curEditRow.id!=e.id},attrs:{value:e.id},model:{value:t.curSelectGroups,callback:function(e){t.curSelectGroups=e},expression:"curSelectGroups"}},[a("div",{staticClass:"d-flex",style:{color:t.curSelectGroups.indexOf(e.id)>-1?"#5759F2!important":""}},[t.curEditRow.id!=e.id?a("div",{staticClass:"text-ellipsis"},[t._v(" "+t._s(2==e.type?t.$t("asin_track_group_default"):1==e.type?t.$t("_KEYWORD_RANK_MY_PRODUCT"):e.name)+" ")]):t._e(),2!=e.type?a("span",{staticClass:"number-item m-l-4",style:{color:t.curSelectGroups.indexOf(e.id)>-1?"#5759F2":""}},[t._v("("+t._s(e.quantity)+")")]):t._e()])])],t.curEditRow.id==e.id?a("b-form-input",{ref:"input_"+e.id,refInFor:!0,style:"width: "+t.inputWidth+"px",attrs:{placeholder:t.$t("reports_center_group_manager_name_edit"),size:"sm"},model:{value:t.curEditRow.name,callback:function(e){t.$set(t.curEditRow,"name",e)},expression:"curEditRow.name"}}):t._e()],2),e.isNotGroup||[1,2].includes(e.type)?t._e():a("div",[t.curEditRow.id==e.id?a("span",{staticClass:"g-hover-btn m-r-8",class:{"g-hover-btn--disabled":!t.curEditRow.name.length},on:{click:function(e){return t.handleSave(t.curEditRow.name,n)}}},[t._v(t._s(t.$t("global_button_save")))]):t.onlyEdit?a("span",{staticClass:"g-hover-btn m-r-8",on:{click:function(a){return t.editItem(e)}}},[t._v(t._s(t.$t("global_button_edit")))]):t._e(),e.isAdd||t.onlyEdit?a("span",{staticClass:"g-hover-btn",on:{click:function(a){return t.handleDelete(e)}}},[t._v(t._s(t.$t("_COMMON_ACTION_DELETE")))]):t._e()])])])})),0),a("div",{staticClass:"operation-block"},[a("span",{staticClass:"g-link-btn",class:{"g-link-btn--diasbled":t.curEditRow.id},on:{click:function(e){t.curEditRow.id||t.addItem()}}},[a("FeatherIcon",{staticClass:"m-b-2",attrs:{icon:"PlusIcon"}}),t._v(" "+t._s(t.$t("reports_diy_demos_type_group_lead_create"))+" ")],1)])]),t.onlyEdit?a("div",{staticClass:"m-t-28"}):a("div",{staticClass:"competitive-analysis_group-setting__footer"},[a("span",{staticClass:"g-link-btn",on:{click:t.showManageFn}},[t._v(t._s(t.$t("asin_track_group_management")))]),a("div",[a("b-button",{staticClass:"m-r-12",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){return t.$emit("hide")}}},[t._v(t._s(t.$t("_COMMON_BUTTON_CANCEL")))]),a("b-button",{attrs:{variant:"primary",size:"sm"},on:{click:t.onConfirm}},[t._v(t._s(t.$t("global_confirm")))])],1)])])},i=[],o=a("2909"),r=a("1da1"),s=(a("96cf"),a("a9e3"),a("4de4"),a("d3b7"),a("caad"),a("2532"),a("4e82"),a("25f0"),a("c740"),a("a434"),a("e9c4"),a("1f98")),l=a("a620"),c={props:{marketplaceId:{},selectGroups:{type:Array,default:function(){return[]}},curEditItem:{},otherList:{type:Array,default:function(){return[]}},inputWidth:{type:Number,default:402},onlyEdit:{type:Boolean,default:function(){return!1}},filterType:{}},model:{prop:"selectGroups",event:"setSelectGroups"},data:function(){return{groupList:[],curEditRow:{name:null,id:null}}},computed:{curSelectGroups:{get:function(){return this.selectGroups},set:function(t){this.$emit("setSelectGroups",t)}}},watch:{},mounted:function(){this.getList()},methods:{getList:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,n,i,r,l,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={},t.marketplaceId&&(a.marketplaceId=t.marketplaceId),e.next=4,Object(s["s"])(a);case 4:n=e.sent,1==n.status&&(l=n.content,null!==(i=t.filterType)&&void 0!==i&&i.length&&(l=null===(c=l)||void 0===c?void 0:c.filter((function(e){return!t.filterType.includes(e.type)}))),t.groupList=Object(o["a"])(null===(r=l)||void 0===r?void 0:r.sort((function(t,e){return 2===t.type?-1:2===e.type?1:1===t.type?-1:1===e.type?1:0}))),console.log("this.groupList...",t.groupList));case 6:case"end":return e.stop()}}),e)})))()},showManageFn:function(){this.curEditRow={},this.$emit("showManageFn",this.getList)},onConfirm:function(){this.$emit("onSubmit")},addItem:function(){var t=this,e=Math.random().toString(16).substring(2,6);this.groupList.push({name:"",id:e,isAdd:!0}),this.curEditRow={name:"",id:e,isAdd:!0},setTimeout((function(){var a,n;null===(a=t.$refs["input_"+e])||void 0===a||null===(n=a[0])||void 0===n||n.focus()}),0)},editItem:function(t){var e=this;this.curEditRow=t,setTimeout((function(){var a,n;null===(a=e.$refs["input_"+t.id])||void 0===a||null===(n=a[0])||void 0===n||n.focus()}),0)},handleDelete:function(t){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var i,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:null!==t&&void 0!==t&&t.isAdd?(o=null===(i=e.groupList)||void 0===i?void 0:i.findIndex((function(e){return e.id==t.id})),o>=0&&e.groupList.splice(o,1),e.curEditRow={}):e.$swal({iconHtml:'<img class="swal-custom-icon" src='.concat(a("a786"),"></img>"),text:e.$t("at_confirm_group_deletion"),showConfirmButton:!0,showCancelButton:!0,confirmButtonText:e.$t("global_confirm"),confirmButtonColor:"#5759F2",cancelButtonText:e.$t("_COMMON_BUTTON_CANCEL"),cancelButtonColor:"#fff",customClass:"userTrackerCount-modal_warning-swal",preConfirm:function(){var a=Object(r["a"])(regeneratorRuntime.mark((function a(n){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(s["h"])({id:t.id});case 2:i=a.sent,1==i.status&&e.getList();case 4:case"end":return a.stop()}}),a)})));function n(t){return a.apply(this,arguments)}return n}()});case 1:case"end":return n.stop()}}),n)})))()},handleSave:function(t,e){var a=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var n,i,o,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(null===(n=a.curEditRow)||void 0===n||!n.isAdd){e.next=9;break}return e.next=5,Object(s["d"])({name:t});case 5:i=e.sent,1==i.status&&(a.getList(),a.curEditRow={},l["a"].$emit("updateGroup")),e.next=15;break;case 9:return o=JSON.parse(JSON.stringify(a.curEditRow)),delete o.quantity,e.next=13,Object(s["j"])(o);case 13:r=e.sent,1==r.status&&(a.getList(),a.curEditRow={},l["a"].$emit("updateGroup"));case 15:case"end":return e.stop()}}),e)})))()}}},u=c,d=(a("d94e"),a("2877")),h=Object(d["a"])(u,n,i,!1,null,null,null);e["a"]=h.exports},a9d2:function(t,e,a){"use strict";a.d(e,"o",(function(){return o})),a.d(e,"h",(function(){return r})),a.d(e,"n",(function(){return s})),a.d(e,"k",(function(){return l})),a.d(e,"w",(function(){return c})),a.d(e,"q",(function(){return u})),a.d(e,"m",(function(){return d})),a.d(e,"l",(function(){return h})),a.d(e,"b",(function(){return p})),a.d(e,"r",(function(){return f})),a.d(e,"t",(function(){return m})),a.d(e,"f",(function(){return g})),a.d(e,"s",(function(){return _})),a.d(e,"c",(function(){return v})),a.d(e,"g",(function(){return y})),a.d(e,"v",(function(){return b})),a.d(e,"u",(function(){return S})),a.d(e,"a",(function(){return O})),a.d(e,"d",(function(){return T})),a.d(e,"j",(function(){return A})),a.d(e,"e",(function(){return x})),a.d(e,"p",(function(){return C})),a.d(e,"x",(function(){return E})),a.d(e,"y",(function(){return w})),a.d(e,"i",(function(){return M}));a("5530"),a("ac1f"),a("1276"),a("99af");var n=a("7f80"),i=(a("b1b6"),a("6365"),"https://das-server.tool4seller.com"),o=function(t,e){return Object(n["e"])("/profitInfo/multi/listByAsin/".concat(e),t)},r=function(t){return Object(n["f"])("".concat(i,"/profitInfo/multi/list"),t)},s=function(t){return Object(n["e"])("".concat(i,"/shopvolume/records/summary/multi/batch"),t)},l=function(t){return Object(n["e"])("".concat(i,"/sponsored/multi/batch"),t)},c=function(t){return Object(n["e"])("".concat(i,"/sales/multi/saleVolume/RiseAndFall"),t)},u=function(t){return Object(n["e"])("".concat(i,"/sales/multi/refundVolume/RiseAndFall"),t)},d=function(t){return Object(n["f"])("".concat(i,"/profitInfo/multi/shop"),t)},h=function(t){return Object(n["e"])("".concat(i,"/sponsored/multi/batch/merge"),t)},p=function(t){return Object(n["f"])("".concat(i,"/profitInfo/report/multi/productAnalytics"),t)},f=function(t,e){return Object(n["f"])("".concat(i,"/profitInfo/shop?dasCurrentShop=").concat(e),t)},m=function(t){return Object(n["e"])("".concat(i,"/shopvolume/records/summary"),t)},g=function(t){return Object(n["e"])("".concat(i,"/sponsored/shop"),t)},_=function(t,e,a){return a?Object(n["f"])("".concat(i,"/profitInfo/shop/days?dasCurrentShop=").concat(e,"&currencyCode=").concat(a),t):Object(n["f"])("".concat(i,"/profitInfo/shop/days?dasCurrentShop=").concat(e),t)},v=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(n["e"])("".concat(i,"/shopvolume/records/").concat(t.asin),t,e)},y=function(t){return Object(n["e"])("".concat(i,"/sponsored/shop/day"),t)},b=function(t){return Object(n["e"])("/stock/getSummary",t)},S=function(t,e){return Object(n["f"])("".concat(i,"/stock/getPage?dasCurrentShop=").concat(e),t)},O=function(t){return Object(n["e"])("".concat(i,"/profitInfo/costDefined/detail"),t)},T=function(t){return Object(n["e"])("".concat(i,"/shop/feedback/query"),t)},A=function(t,e){return Object(n["e"])("".concat(i,"/review-management/reviews"),t,e)},x=function(t){return Object(n["e"])("".concat(i,"/profitInfo/shop/manualRefreshStatus"),t)},C=function(t){return Object(n["e"])("".concat(i,"/profitInfo/shop/manualRefreshAsin"),t)},E=function(t){return Object(n["e"])("".concat(i,"/analyse/product/top-profit-list"),t)},w=function(t){return Object(n["e"])("".concat(i,"/analyse/product/untop-profit-list"),t)},M=function(t,e){return Object(n["e"])("".concat(i,"/analyse/product/rating"),t,e)}},aae7:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"promotion-com"},[a("div",{staticClass:"channel-title"},[t._v(" "+t._s(t.$t(t.is_CN?"asintrack_downloadAppTip_01":"asintrack_downloadAppTip_03"))+" "),a("feather-icon",{staticClass:"g-link-btn",attrs:{icon:"HelpCircleIcon",size:"18"},on:{click:function(e){t.jumpUrl(t.getHelpUrl(t.helpAnchorKey))}}})],1),a("div",[t._v(t._s(t.$t("asintrack_downloadAppTip_02")))]),t.is_CN?a("div",{staticClass:"channel-wrapper__cn"},[a("img",{attrs:{src:"https://static.tool4seller.cn/wp-content/uploads/2023/02/APP%E4%B8%8B%E8%BD%BD%E4%BA%8C%E7%BB%B4%E7%A0%81.png",alt:""}})]):a("div",{staticClass:"channel-wrapper"},t._l(t.channelItems,(function(t){return a("div",{key:t.id,staticClass:"channel-wrapper__block",attrs:{id:t.btnID},on:{click:t.clickFn}},[a("img",{attrs:{src:t.icon,alt:""}})])})),0)])},i=[],o=a("5530"),r=(a("ac1f"),a("00b4"),a("5319"),a("bbf0")),s=a("2f62"),l={props:{appleID:{type:null|String,default:null},googleplayID:{type:null|String,default:null}},data:function(){return{helpAnchorKey:"help_com_doc_key_competitive_analysis"}},computed:Object(o["a"])(Object(o["a"])({},Object(s["c"])({USER_INFO:r["I"]})),{},{channelItems:function(){var t=this;return[{id:1,btnID:this.appleID,icon:"/static/images/dialog/appstore.png",clickFn:function(){return t.jumpUrl(t.appleUrl)}},{id:2,btnID:this.googleplayID,icon:"/static/images/dialog/googleplay.png",clickFn:function(){return t.jumpUrl(t.googleplayUrl)}}]},SITE:function(){var t;return"cn"===(null===(t=this.USER_INFO)||void 0===t?void 0:t.domain)?"cn":"com"},is_CN:function(){var t;return"cn"===(null===(t=this.USER_INFO)||void 0===t?void 0:t.domain)||!1},googleplayUrl:function(){return"ja_jp"==this.$i18n.locale?"https://play.google.com/store/apps/details?id=com.amz4seller.app&hl=jp":"https://play.google.com/store/apps/details?id=com.amz4seller.app&hl=en"},appleUrl:function(){return"ja_jp"==this.$i18n.locale?"https://apps.apple.com/jp/app/tool4seller-%E3%82%A2%E3%83%9E%E3%82%BE%E3%83%B3%E5%BA%97%E8%88%97%E5%88%A9%E7%9B%8A%E6%9C%80%E5%A4%A7%E5%8C%96/id1289515640":"https://apps.apple.com/app/id1289515640"}}),methods:{getHelpUrl:function(t){if(!t)return"";var e=t;e=/^help_(cn|com)_/.test(t)?t.replace(/_(cn|com)_/,"_".concat(this.SITE,"_")):"help_".concat(this.SITE,"_")+t;var a=this.$t(e),n=/(https?|ftp|file):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/;return a&&n.test(a)?a:""},jumpUrl:function(t){window.open(t)}}},c=l,u=(a("70c1"),a("2877")),d=Object(u["a"])(c,n,i,!1,null,"62c3f87e",null);e["a"]=d.exports},ab2c:function(t,e,a){"use strict";a("18bb")},ac12:function(t,e,a){"use strict";a.d(e,"a",(function(){return Y}));var n=a("7fae"),i=a("3a56"),o=a("8918"),r=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(n["a"])(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Object(o["d"])(i["a"].defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(i["a"]),s=r,l=a("6d8b"),c=a("607d"),u=a("c7a2"),d=a("2dc5"),h=a("87b1"),p=a("d498"),f=a("76a5"),m=a("2306"),g=a("dce8"),_=a("88b3"),v=a("7dcf"),y=a("3842"),b=a("f934"),S=a("ef6a"),O=a("50e5"),T=a("7d6c"),A=a("a15a"),x=a("7837"),C=u["a"],E=7,w=1,M=30,k=7,I="horizontal",D="vertical",L=5,R=["line","bar","candlestick","scatter"],N={easing:"cubicOut",duration:100,delay:0},P=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a._displayables={},a}return Object(n["a"])(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(l["c"])(this._onBrush,this),this._onBrushEnd=Object(l["c"])(this._onBrushEnd,this)},e.prototype.render=function(e,a,n,i){if(t.prototype.render.apply(this,arguments),_["b"](this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){_["a"](this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new d["a"];this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,a=t.get("brushSelect"),n=a?k:0,i=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},r=this._orient===I?{right:o.width-i.x-i.width,top:o.height-M-E-n,width:i.width,height:M}:{right:E,top:i.y,width:M,height:i.height},s=b["f"](t.option);Object(l["k"])(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=r[t])}));var c=b["g"](s,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===D&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,a=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),i=n&&n.get("inverse"),o=this._displayables.sliderGroup,r=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(a!==I||i?a===I&&i?{scaleY:r?1:-1,scaleX:-1}:a!==D||i?{scaleY:r?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:r?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:r?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,a=this._displayables.sliderGroup,n=t.get("brushSelect");a.add(new C({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new C({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(l["c"])(this._onClickPanel,this)}),o=this.api.getZr();n?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),a.add(i)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,a=this._shadowSize||[],n=t.series,i=n.getRawData(),o=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=o){var r=this._shadowPolygonPts,s=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||e[0]!==a[0]||e[1]!==a[1]){var l=i.getDataExtent(o),c=.3*(l[1]-l[0]);l=[l[0]-c,l[1]+c];var u,f=[0,e[1]],m=[0,e[0]],g=[[e[0],0],[0,0]],_=[],v=m[1]/(i.count()-1),b=0,S=Math.round(i.count()/e[0]);i.each([o],(function(t,e){if(S>0&&e%S)b+=v;else{var a=null==t||isNaN(t)||""===t,n=a?0:Object(y["k"])(t,l,f,!0);a&&!u&&e?(g.push([g[g.length-1][0],0]),_.push([_[_.length-1][0],0])):!a&&u&&(g.push([b,0]),_.push([b,0])),g.push([b,n]),_.push([b,n]),b+=v,u=a}})),r=this._shadowPolygonPts=g,s=this._shadowPolylinePts=_}this._shadowData=i,this._shadowDim=o,this._shadowSize=[e[0],e[1]];for(var O=this.dataZoomModel,T=0;T<3;T++){var A=x(1===T);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}}}function x(t){var e=O.getModel(t?"selectedDataBackground":"dataBackground"),a=new d["a"],n=new h["a"]({shape:{points:r},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new p["a"]({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return a.add(n),a.add(i),a}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var a,n=this.ecModel;return t.eachTargetAxis((function(i,o){var r=t.getAxisProxy(i,o).getTargetSeriesModels();Object(l["k"])(r,(function(t){if(!a&&!(!0!==e&&Object(l["r"])(R,t.get("type"))<0)){var r,s=n.getComponent(Object(O["d"])(i),o).axis,c=j(i),u=t.coordinateSystem;null!=c&&u.getOtherAxis&&(r=u.getOtherAxis(s).inverse),c=t.getData().mapDimension(c),a={thisAxis:s,series:t,thisDim:i,otherDim:c,otherAxisInverse:r}}}),this)}),this),a}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,a=e.handles=[null,null],n=e.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,r=this.dataZoomModel,s=this.api,c=r.get("borderRadius")||0,d=r.get("brushSelect"),h=e.filler=new C({silent:d,style:{fill:r.get("fillerColor")},textConfig:{position:"inside"}});i.add(h),i.add(new C({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:c},style:{stroke:r.get("dataBackgroundColor")||r.get("borderColor"),lineWidth:w,fill:"rgba(0,0,0,0)"}})),Object(l["k"])([0,1],(function(e){var o=r.get("handleIcon");!A["d"][o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Object(A["a"])(o,-1,0,2,2,null,!0);s.attr({cursor:$(this._orient),draggable:!0,drift:Object(l["c"])(this._onDragMove,this,e),ondragend:Object(l["c"])(this._onDragEnd,this),onmouseover:Object(l["c"])(this._showDataInfo,this,!0),onmouseout:Object(l["c"])(this._showDataInfo,this,!1),z2:5});var c=s.getBoundingRect(),u=r.get("handleSize");this._handleHeight=Object(y["o"])(u,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(r.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(T["o"])(s);var d=r.get("handleColor");null!=d&&(s.style.fill=d),i.add(a[e]=s);var h=r.getModel("textStyle");t.add(n[e]=new f["a"]({silent:!0,invisible:!0,style:Object(x["c"])(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var p=h;if(d){var m=Object(y["o"])(r.get("moveHandleSize"),o[1]),g=e.moveHandle=new u["a"]({style:r.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:m}}),_=.8*m,v=e.moveHandleIcon=Object(A["a"])(r.get("moveHandleIcon"),-_/2,-_/2,_,_,"#fff",!0);v.silent=!0,v.y=o[1]+m/2-.5,g.ensureState("emphasis").style=r.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(o[1]/2,Math.max(m,10));p=e.moveZone=new u["a"]({invisible:!0,shape:{y:o[1]-b,height:m+b}}),p.on("mouseover",(function(){s.enterEmphasis(g)})).on("mouseout",(function(){s.leaveEmphasis(g)})),i.add(g),i.add(v),i.add(p)}p.attr({draggable:!0,cursor:$(this._orient),drift:Object(l["c"])(this._onDragMove,this,"all"),ondragstart:Object(l["c"])(this._showDataInfo,this,!0),ondragend:Object(l["c"])(this._onDragEnd,this),onmouseover:Object(l["c"])(this._showDataInfo,this,!0),onmouseout:Object(l["c"])(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Object(y["k"])(t[0],[0,100],e,!0),Object(y["k"])(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var a=this.dataZoomModel,n=this._handleEnds,i=this._getViewExtent(),o=a.findRepresentativeAxisProxy().getMinMaxSpan(),r=[0,100];Object(S["a"])(e,n,i,a.get("zoomLock")?"all":t,null!=o.minSpan?Object(y["k"])(o.minSpan,r,i,!0):null,null!=o.maxSpan?Object(y["k"])(o.maxSpan,r,i,!0):null);var s=this._range,l=this._range=Object(y["c"])([Object(y["k"])(n[0],i,r,!0),Object(y["k"])(n[1],i,r,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,a=this._handleEnds,n=Object(y["c"])(a.slice()),i=this._size;Object(l["k"])([0,1],(function(t){var n=e.handles[t],o=this._handleHeight;n.attr({scaleX:o/2,scaleY:o/2,x:a[t]+(t?-1:1),y:i[1]/2-o/2})}),this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:i[1]});var o={x:n[0],width:n[1]-n[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var r=e.dataShadowSegs,s=[0,n[0],n[1],i[0]],c=0;c<r.length;c++){var d=r[c],h=d.getClipPath();h||(h=new u["a"],d.setClipPath(h)),h.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,a=this._displayables,n=a.handleLabels,i=this._orient,o=["",""];if(e.get("showDetail")){var r=e.findRepresentativeAxisProxy();if(r){var s=r.getAxisModel().axis,l=this._range,c=t?r.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:r.getDataValueWindow();o=[this._formatLabel(c[0],s),this._formatLabel(c[1],s)]}}var u=Object(y["c"])(this._handleEnds.slice());function d(t){var e=m["getTransform"](a.handles[t].parent,this.group),r=m["transformDirection"](0===t?"right":"left",e),s=this._handleWidth/2+L,l=m["applyTransform"]([u[t]+(0===t?-s:s),this._size[1]/2],e);n[t].setStyle({x:l[0],y:l[1],verticalAlign:i===I?"middle":r,align:i===I?r:"center",text:o[t]})}d.call(this,0),d.call(this,1)},e.prototype._formatLabel=function(t,e){var a=this.dataZoomModel,n=a.get("labelFormatter"),i=a.get("labelPrecision");null!=i&&"auto"!==i||(i=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(i,20));return Object(l["w"])(n)?n(t,o):Object(l["C"])(n)?n.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,a=e.handleLabels;a[0].attr("invisible",!t),a[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,a,n){this._dragging=!0,c["g"](n.event);var i=this._displayables.sliderGroup.getLocalTransform(),o=m["applyTransform"]([e,a],i,!0),r=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),r&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(a[0]<0||a[0]>e[0]||a[1]<0||a[1]>e[1])){var n=this._handleEnds,i=(n[0]+n[1])/2,o=this._updateInterval("all",a[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,a=t.offsetY;this._brushStart=new g["a"](e,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var a=e.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(a.width)<5)){var i=this._getViewExtent(),o=[0,100];this._range=Object(y["c"])([Object(y["k"])(a.x,i,o,!0),Object(y["k"])(a.x+a.width,i,o,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(c["g"](t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var a=this._displayables,n=this.dataZoomModel,i=a.brushRect;i||(i=a.brushRect=new C({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,r=this._displayables.sliderGroup,s=r.transformCoordToLocal(t,e),l=r.transformCoordToLocal(o.x,o.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?N:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=Object(O["b"])(this.dataZoomModel).infoList;if(!t&&e.length){var a=e[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var n=this.api.getWidth(),i=this.api.getHeight();t={x:.2*n,y:.2*i,width:.6*n,height:.6*i}}return t},e.type="dataZoom.slider",e}(v["a"]);function j(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function $(t){return"vertical"===t?"ns-resize":"ew-resize"}var F=P,B=a("1459");function Y(t){t.registerComponentModel(s),t.registerComponentView(F),Object(B["a"])(t)}},acb0:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"slide-pop-wrap slide-nature-pop-wrap",class:{fullScreenWrap:t.fullScreen},on:{mouseover:function(e){return e.stopPropagation(),t.showTopBtnFn.apply(null,arguments)}}},[n("div",{staticClass:"slide-pop-wrap-content"},[t.isParent?n("div",{staticClass:"slide-nature-pop-top-divider"}):t._e(),t.isParent?n("div",{staticClass:"nature-word-isparent-wrapper"},[n("nature-word-asin-slider",{attrs:{marketplaceId:t.natureItem.marketplaceId,parentAsin:t.currentParentAsin},on:{chosen:t.handleChosen}})],1):t._e(),t.isParent?t._e():n("div",{staticClass:"nature-word-slide-pop-title-wrapper"},[t.titleOptions&&t.titleOptions.label?n("div",{staticClass:"nature-word-slide-pop-title"},[t._v(t._s(t.titleOptions.label)+t._s(t.$t("_COMMON_SYMBOL_COLON"))+t._s(t.natureItem[t.titleOptions.key]))]):n("div",{staticClass:"nature-word-slide-pop-title"},[t._v(" "+t._s(t.$t("_COMMON_TH_C_ASIN"))+t._s(t.$t("_COMMON_SYMBOL_COLON"))+" "+t._s(t.natureItem&&t.natureItem[t.asinKey])+" ")]),n("div",{staticClass:"nature-word-slide-pop-total"},[n("span",{staticClass:"nature-word-slide-pop-total__title"},[n("span",{domProps:{innerHTML:t._s(t.$t("natureKeywordQuery_search_result",{num:"<span class='em'>"+t.resultNumber+"</span>"}))}})])])]),n("div",{staticClass:"slide-pop-wrap-header"},[n("div",{staticClass:"slide-pop-wrap-header-left",staticStyle:{"margin-left":"10px"}},[n("common-search-form",{attrs:{options:t.formOptions},on:{event:t.formEventFn},model:{value:t.searchModel,callback:function(e){t.searchModel=e},expression:"searchModel"}})],1),n("div",{staticClass:"slide-pop-wrap-header-right"},[n("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.horve.top",value:t.$t("global_update"),expression:"$t('global_update')",modifiers:{horve:!0,top:!0}}],staticClass:"operatorIcon",on:{click:t.refreshFn}},[n("feather-icon",{attrs:{icon:"RotateCwIcon",size:"18"}})],1),n("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.horve.left",value:t.$checkPermission.checkOut(t.$route.meta&&t.$route.meta.requirePackage||"business")?"":t.$t("_COMMON_EXPORT_TIP"),expression:"!$checkPermission.checkOut(($route.meta && $route.meta.requirePackage) || 'business') ? $t('_COMMON_EXPORT_TIP') : ''",modifiers:{horve:!0,left:!0}}]},[n("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.horve.left",value:t.$t("_PACKAGE_MODULE_LIST_EXPORT_DATA"),expression:"$t('_PACKAGE_MODULE_LIST_EXPORT_DATA')",modifiers:{horve:!0,left:!0}}],staticClass:"operatorIcon",class:{"operatorIcon--disabled":"ENABLE"!==t.dataStatus||!t.list.length},attrs:{disabled:"ENABLE"!==t.dataStatus||!t.list.length||t.loading},on:{click:t.exportReportFn}},[n("feather-icon",{attrs:{icon:"DownloadIcon",size:"18"}})],1)])])]),t.showBtn?n("div",{staticClass:"fullOrHalfScreenBtn"},[n("button",{staticClass:"das-label-left d-flex align-items-center",on:{click:function(e){e.stopPropagation(),t.fullScreen=!t.fullScreen}}},[t.fullScreen?[n("feather-icon",{attrs:{icon:"ChevronDownIcon",size:"18"}}),t._v(" "+t._s(t.$t("_COMMON_ACTION_QUITFULLSCREEN"))+" ")]:[n("feather-icon",{attrs:{icon:"ChevronUpIcon",size:"18"}}),t._v(" "+t._s(t.$t("_COMMON_ACTION_FULLSCREEN2"))+" ")]],2),n("button",{staticClass:"das-label-left d-flex align-items-center",on:{click:function(e){return e.stopPropagation(),t.closeFn.apply(null,arguments)}}},[n("feather-icon",{attrs:{icon:"XIcon",size:"18"}}),t._v(" "+t._s(t.$t("_COMMON_BUTTON_CLOSE"))+" ")],1)]):t._e(),n("div",{directives:[{name:"deep-loading",rawName:"v-deep-loading",value:t.loading,expression:"loading"}],ref:"mainRef",staticClass:"slide-pop-wrap-main",staticStyle:{"margin-left":"10px"}},[n("common-table",{key:"nature_keywords_table",ref:"commonTableEle",attrs:{tableId:"lib_keywords_table",trOverBlock:"",tableData:t.finalList,options:t.tableOptions},on:{sortChangedFull:t.handleSortChangedFull},scopedSlots:t._u([{key:"cell(empty)",fn:function(){return["INADEQUATE"!==t.dataStatus&&t.resultNumber?"UNSUPPORTED"===t.dataStatus?[n("div",{staticClass:"nature-word-diy-unvalid",style:t.fullScreen?"height: calc(100vh - "+(t.headerHeight+30)+"px)":"height: "+(500-t.headerHeight-30)+"px;"},[n("span",[t._v(t._s(t.$t("package_standard_above_view_text")))]),n("b-button",{staticClass:"common-sm-btn m-t-8",attrs:{variant:"primary"},on:{click:function(e){t.showModal=!0}}},[t._v(" "+t._s(t.$t("_VPANALYSIS_UPGRADE"))+" ")])],1)]:t._e():[n("div",{staticClass:"nature-word-diy-empty",style:t.fullScreen?"height: calc(100vh - "+(t.headerHeight+30)+"px)":"height: "+(500-t.headerHeight-30)+"px;"},[n("img",{attrs:{src:a("b6c0")}}),n("div",{staticClass:"fs14 mt-8"},[t._v(t._s(t.$t("natureKeywordQuery_not_found_any_keyword")))])])]]},proxy:!0},{key:"cell(searchTerm)",fn:function(e){return[n("div",{staticClass:"d-flex"},[n("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.horver",value:e.data.item.searchTerm&&e.data.item.searchTerm.length>35?e.data.item.searchTerm:"",expression:"data.data.item.searchTerm && data.data.item.searchTerm.length > 35 ? data.data.item.searchTerm : ''",modifiers:{horver:!0}}],staticClass:"d-flex align-items--center flex-wrap"},[n("u",{staticClass:"expressionLimit pop-hover-link",on:{click:function(a){return t.showDetailChart(e.data.item,"searchTerm",t.natureItem.marketplaceId)}}},[t._v(" "+t._s(e.data.item.searchTerm)+" ")])]),n("div",{staticClass:"m-l-8"},[n("feather-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:t.$t("asininfopop_checkasinlisting"),expression:"$t('asininfopop_checkasinlisting')"}],staticClass:"g-link-btn fs16",attrs:{icon:"ExternalLinkIcon"},on:{click:function(a){return t.goAmazonKeywordSearch(e.data.item,"searchTerm",t.natureItem.marketplaceId)}}})],1)])]}},{key:"cell(type)",fn:function(e){return[n("div",{staticStyle:{width:"100%"}},t._l(e.data.value,(function(e,a){return n("div",{key:a},[n("lok",{attrs:{"lok-key":t.getKeywordOptionLok(e)}})],1)})),0)]}},{key:"cell(naturalIdx)",fn:function(e){return[n("div",[e.data.item.naturalIdx?[n("div",{},[t._v(t._s(e.data.item.naturalIdx))]),n("span",{staticStyle:{color:"rgb(185, 185, 195)"}},[t._v(t._s(t.shopMomentUs(e.data.item.naturalIdxAt)))])]:[t._v(" - ")]],2)]}},{key:"cell(bidding)",fn:function(e){return[n("div",{staticStyle:{width:"100%"}},[e.data.item.bidding?n("div",[t._v(t._s(t._f("amount")(e.data.item.bidding,t.currencyCode)))]):n("div",[t._v("-")]),e.data.item.minBidding||e.data.item.maxBidding?n("div",{staticStyle:{color:"#b9b9c3"}},[t._v(" ("+t._s(t._f("amount")(e.data.item.minBidding,t.currencyCode))+" - "+t._s(t._f("amount")(e.data.item.maxBidding,t.currencyCode))+") ")]):t._e()])]}},{key:"cell(trend)",fn:function(e){return["UNSUPPORTED"===e.data.value.status?[n("div",{staticStyle:{width:"250px"}},[0==e.data.index?n("div",{staticClass:"free-mask-new"},[n("div",[t._v(t._s(t.$t("_KEYWORD_POPULARITY_PURCHASE_TIP")))]),n("router-link",{attrs:{to:"/package_center"}},[n("b-button",{staticClass:"m-t-4",attrs:{size:"sm",variant:"primary"}},[t._v(t._s(t.$t("_PROFILE_MY_PACKAGE_CONTACT_CM_BP")))])],1)],1):n("div",{staticClass:"free-mask-new-bg"})])]:[n("div",{staticStyle:{width:"130px"}},["INADEQUATE"===e.data.value.status?n("div",{staticStyle:{color:"#999"}},[t._v(" "+t._s(t.$t("aba_no_data"))+" ")]):n("line-chart",{attrs:{height:40,list:e.data.value.items||[]}})],1)]]}},{key:"cell(operation)",fn:function(e){return[n("div",{staticClass:"operatorStyle"},[n("span",{staticClass:"operatorBtnStyle",on:{click:function(a){return t.addKeywords(e.data.item)}}},[t._v(" "+t._s(t.$t("_AD_PERFORM_TRACK_KEYWORD_RANK"))+" ")])])]}}])})],1)]),t.showDraggablePad?n("drag-keyword-chart",{attrs:{padId:"keywords_rank_pad",modalTitle:t.modalTitle,apiParams:Object.assign({},t.apiParams,{ticket:""}),showTop3:!0,customFooter:!0},on:{close:function(e){t.showDraggablePad=!1}}}):t._e(),n("compare-package-modal",{attrs:{itemKeys:["review_relate_order"],fakeLok:["Lk_Package_Item_Name_asin_natural_search_terms"]},model:{value:t.showModal,callback:function(e){t.showModal=e},expression:"showModal"}})],1)},i=[],o=a("2909"),r=a("1da1"),s=(a("96cf"),a("b0c0"),a("99af"),a("d3b7"),a("d81d"),a("498a"),a("159b"),a("4e82"),a("fb6a"),a("223c")),l=a("2ef0"),c=a("e237"),u=a("6ddf"),d=a("d80f"),h=a("708d"),p=a("2af9"),f=a("7018"),m=a("f6d0"),g=a("42dd"),_=a("d771"),v=a("1d52"),y={name:"natureWordSlidePop",data:function(){return{currentParentAsin:"",headerHeight:88,tabledom:void 0,loading:!1,MARKETPLACE_STATIC_INFO:d["C"],searchModel:{searchKey:""},searchModelReal:{searchKey:"",sortDesc:"",sortBy:""},refreshFn:Object(h["a"])(this.refreshFnTmp,300),doSearchDebounce:Object(h["a"])(this.doSearch,600),showBtnTime:null,showBtn:!1,fullScreen:!1,dataStatus:"INADEQUATE",resultNumber:0,searchTerms:[],showModal:!1,currentPart:0,countPerPart:20,image:{success:a("8617"),warning:a("a786")}}},props:{isParent:{},natureItem:{},asinKey:{type:String,default:"asin"},titleOptions:{type:Object,default:function(){}}},mixins:[v["a"]],components:{commonTable:p["k"],commonSearchForm:p["j"],LineChart:m["a"],ComparePackageModal:p["a"],NatureWordAsinSlider:f["a"]},methods:{handleChosen:function(t){this.$emit("chosen",t)},addKeywords:function(t){var e=this;this.$swal({iconHtml:'<img class="swal-custom-icon" src='.concat(this.image.warning,"></img>"),text:this.$t("_AD_PERFORM_AD_TRACKER_KEYWORD_TIP"),showConfirmButton:!0,showCancelButton:!0,confirmButtonText:this.$t("_COMMON_BUTTON_CONFIRM"),confirmButtonColor:"#5759F2",cancelButtonText:this.$t("_COMMON_BUTTON_CLOSE"),cancelButtonColor:"#fff",customClass:"".concat(this.$options.name,"-swal"),preConfirm:function(){var a=Object(r["a"])(regeneratorRuntime.mark((function a(n){var i,o,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!n){a.next=6;break}return a.next=3,Object(g["a"])({asin:e.natureItem["asin"],keyword:[t.searchTerm],isChildAsin:1,dasCurrentShop:e.natureItem.shopId});case 3:i=a.sent,o=i.status,r=i.content,1===o&&(e.$toast({component:s["a"],props:{title:r,icon:"EditIcon",variant:"success"}}),e.refreshFn());case 6:case"end":return a.stop()}}),a)})));function n(t){return a.apply(this,arguments)}return n}()})},loadShowList:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t?(this.tabledom&&(this.tabledom.scrollTop=0),this.currentPart=0):this.currentPart++},goMoreKeyword:function(t){this.$router.push({path:"/keywordToolk",query:{marketplaceId:this.natureItem.marketplaceId,searchKey:t.searchTerm,autoReset:!0}})},doSearch:function(){this.searchModelReal.searchKey=this.searchModel.searchKey},doAutoSearch:function(){Object(h["a"])(this.doSearch,500)},handleSortChangedFull:function(t){var e=this,a=t.sortDesc,n=t.sortBy;this.loading=!0;var i=setTimeout((function(){clearTimeout(i),e.searchModelReal.sortDesc=a?"desc":"asc",e.searchModelReal.sortBy=n,e.loading=!1}),100)},formEventFn:function(t){switch(t.id){case"searchKey":this.searchModelReal.searchKey=this.searchModel.searchKey;break}},refreshFnTmp:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,n,i,o,r,s,l,c,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t,t.loading=!0,a=t.natureItem,n=a.marketplaceId,i=a["asin"],e.next=5,Object(_["k"])(n,i);case 5:o=e.sent,t.loading=!1,1===o.status&&(r=o.content,s=r.status,l=r.resultNumber,c=r.searchTerms,u=void 0===c?[]:c,t.dataStatus=s,t.resultNumber=l,t.searchTerms=u);case 8:case"end":return e.stop()}}),e)})))()},exportReportFn:function(){var t=this,e=this,a={title:this.$t("reversecmp_sheet_kwfilter_orgkwsrch")+"_ASIN:".concat(this.natureItem["asin"]),header:[],body:[]},n=[{key:"searchTerm",label:"keywordQuery_type_keyword"},{key:"naturalIdx",label:"keywordQuery_natureRank",func:function(e){return e.naturalIdx+" "+t.shopMomentUs(e.naturalIdxAt)}},{key:"searchVolume",label:"aba_volume_week"},{key:"searchFrequencyRank",label:"aba_rank"},{key:"listingQuantity",label:"keywordQuery_asinVol"},{key:"supplyDemand",label:"keywordQuery_supplyAndDemand"},{key:"totalClickShare",label:"reversecmp_sheetheader_clickshare",func:function(t){return t["totalClickShare"]?t["totalClickShare"]+"%":"-"}},{key:"totalConversionShare",label:"reversecmp_sheetheader_conversionshare",func:function(t){return t["totalConversionShare"]?t["totalConversionShare"]+"%":"-"}},{key:"bidding",label:"keywordQuery_PPC",func:function(a){var n="",i=function(a){return a?e.$options.filters["amount"](a,t.currencyCode):"-"};return(a.minBidding||a.maxBidding)&&(n=" ".concat(i(a.minBidding),"-").concat(i(a.maxBidding))),a.bidding?"".concat(i(a.bidding)).concat(n):"-"+n}}];a.header=[n.reduce((function(e,a){return e.concat(t.$t(a.label))}),[])],a.body=e.list.map((function(t){return n.reduce((function(e,a){return a.func?e.concat(a.func(t)):e.concat((null===t||void 0===t?void 0:t[a.key])||"-")}),[])})),Object(c["a"])([].concat(Object(o["a"])(a.header),Object(o["a"])(a.body)),{fileName:a.title});try{if(window.gtag){var i={event_category:"自然搜索词-按钮",event_label:"自然搜索词-按钮"};gtag("event","自然搜索词-按钮-下载",i)}}catch(r){}},closeFn:function(){this.removeDisabledScroll(),this.$emit("close")},addDisabledScroll:function(){var t=document.getElementsByTagName("body")[0];t.classList.add("overflow-hidden")},removeDisabledScroll:function(){var t=document.getElementsByTagName("body")[0];t.classList.remove("overflow-hidden")},showTopBtnFn:function(){var t=this;this.showBtn||(this.showBtnTime&&clearTimeout(this.showBtnTime),this.showBtnTime=setTimeout((function(){t.showBtn=!0}),200))},shopMomentUs:function(t){var e=Object(u["p"])("America/Los_Angeles"),a=Object(u["b"])(t,"America/Los_Angeles"),n=e-a,i=864e5,o=2592e5,r=6048e5,s="";switch(!0){case n<=i:s=this.$t("global_inside_24Hs");break;case n>i&&n<=o:s=this.$t("global_inside_3days");break;case n>o&&n<=r:s=this.$t("global_inside_7days");break;default:s=a.format("YYYY-MM-DD");break}return s}},computed:{tableOptions:function(){var t=this;return{diyEmpty:"ENABLE"!==t.dataStatus,hidePagination:!0,stickyHeader:t.fullScreen?"calc(100vh - ".concat(t.headerHeight,"px)"):"calc(500px - ".concat(t.headerHeight,"px)"),filterVis:!1,noShopId:!0,fields:[{key:"searchTerm",headerPosition:"left",stickyColumn:!0,width:"UNSUPPORTED"===t.dataStatus?121:0,diy:!0,label:this.$t("keywordQuery_type_keyword")},{key:"naturalIdx",headerPosition:"left",diy:!0,sortable:!0,appendTip:this.$t("natureKeywordQuery_natureRank_illus"),label:this.$t("keywordQuery_natureRank")},{key:"searchVolume",label:this.$t("aba_volume_week"),lokKey:"aba_volume_week",minWidth:60,sortable:!0,numberThousand:!0,appendTip:this.$t("aba_volume_week_illus"),headerPosition:"left"},{key:"searchFrequencyRank",label:this.$t("aba_rank"),sortable:!0,lokKey:"aba_rank",minWidth:60,numberThousand:!0,appendTip:this.$t("aba_rank_illus"),headerPosition:"left"},{key:"trend",label:this.$t("aba_trend"),lokKey:"aba_trend",diy:!0,minWidth:110,headerPosition:"left"},{key:"listingQuantity",label:this.$t("keywordQuery_asinVol"),minWidth:60,sortable:!0,numberThousand:!0,appendTip:this.$t("keywordQuery_asinVol_show_web"),headerPosition:"left"},{key:"supplyDemand",sortable:!0,appendTip:this.$t("keywordQuery_supplyAndDemand_show_web"),label:this.$t("keywordQuery_supplyAndDemand"),headerPosition:"left",formatter:function(t,e,a){return"number"===typeof t?t:"-"}},{key:"totalClickShare",showPercent:!0,sortable:!0,appendTip:this.$t("reversecmp_sheetheader_clickshare_illus"),label:this.$t("reversecmp_sheetheader_clickshare")},{key:"totalConversionShare",showPercent:!0,sortable:!0,appendTip:this.$t("reversecmp_sheetheader_conversionshare_illus"),label:this.$t("reversecmp_sheetheader_conversionshare")},{key:"bidding",sortable:!0,appendTip:this.$t("keywordQuery_PPC_show_web"),diy:!0,label:this.$t("keywordQuery_PPC")},{key:"operation",headerPosition:"left",diy:!0,label:this.$t("_COMMON_TH_OPERATION")}]}},list:function(){var t=[];if(this.searchModelReal.searchKey.trim()){var e=this.searchModelReal.searchKey.trim();this.searchTerms.forEach((function(a){a.searchTerm.toLowerCase().indexOf(e.toLowerCase())>-1&&t.push(a)}))}else t=this.searchTerms;if(this.searchModelReal.sortBy){var a=this.searchModelReal.sortBy,n=this.searchModelReal.sortDesc;t=t.sort((function(t,e){return"number"===typeof t[a]||e&&"number"!==typeof e[a]?"number"!==typeof t[a]&&"number"!==typeof e[a]?0:"number"!==typeof t[a]||"number"!==typeof e[a]?-1:"asc"===n?t[a]-e[a]:e[a]-t[a]:1}))}else t=t.sort((function(t,e){return t["naturalIdx"]-e["naturalIdx"]}));return t},finalList:function(){var t=this,e=0,a=this.countPerPart*this.currentPart+this.countPerPart;return 0===this.list.length&&(this.loading=!1),setTimeout((function(){var e;console.log("this.$refs.commonTableEle,,,,",t.$refs.commonTableEle),null===(e=t.$refs.commonTableEle)||void 0===e||e.addTopScrollInit()}),1e3),this.list.slice(e,a)},formOptions:function(){return[{type:"searchInput",immediate:!0,tooltip:this.$t("keywordQuery_searchTip"),placeholder:this.$t("keywordQuery_searchTip"),width:"240px",id:"searchKey"}]},currencyCode:function(){try{return this.MARKETPLACE_STATIC_INFO[this.natureItem.marketplaceId].currencyCode}catch(t){console.warn(t)}return"USD"}},watch:{"searchModel.searchKey":{immediate:!0,deep:!0,handler:function(t,e){this.doSearchDebounce()}},list:{immediate:!0,deep:!0,handler:function(t){this.loadShowList(!0)}},natureItem:{immediate:!0,deep:!0,handler:function(t,e){t&&(!this.isParent||t.canRefresh?this.refreshFn():this.isParent&&!t.canRefresh&&(this.currentParentAsin=t[this.asinKey],e&&t[this.asinKey]===e[this.asinKey]||(this.loading=!0)))}},fullScreen:{immediate:!0,handler:function(t){this.$emit("fullScreen",this.fullScreen),t?this.addDisabledScroll():this.removeDisabledScroll()}}},mounted:function(){var t=this;this.fullScreen&&this.addDisabledScroll();var e=this.$refs.commonTableEle.$el;if(e){var a=e.querySelector(".commonTableContent");this.tabledom=a,a.onscroll=Object(l["throttle"])((function(){var e=a.clientHeight,n=a.scrollTop,i=a.scrollHeight;e+n+200>i&&t.loadShowList()}),100)}var n=this.$refs.mainRef;n&&n.offsetTop&&(this.headerHeight=n.offsetTop)}},b=y,S=(a("599c"),a("2877")),O=Object(S["a"])(b,n,i,!1,null,null,null);e["a"]=O.exports},acf6:function(t,e,a){"use strict";a.d(e,"a",(function(){return x}));var n=a("22b4"),i=a("7fae"),o=a("1830"),r=a("4f85"),s=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.hasSymbolVisual=!0,a}return Object(i["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(o["a"])(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,a){return a.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(r["b"]),l=s,c=a("f706"),u=a("9850"),d=a("cbe5"),h=a("2dc5"),p=a("a15a"),f=a("861c"),m=4,g=function(){function t(){}return t}(),_=function(t){function e(e){var a=t.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return Object(i["a"])(e,t),e.prototype.getDefaultShape=function(){return new g},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var a,n=e.points,i=e.size,o=this.symbolProxy,r=o.shape,s=t.getContext?t.getContext():t,l=s&&i[0]<m,c=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,a=this._off;a<n.length;){var u=n[a++],d=n[a++];isNaN(u)||isNaN(d)||(c&&!c.contain(u,d)||(r.x=u-i[0]/2,r.y=d-i[1]/2,r.width=i[0],r.height=i[1],o.buildPath(t,r,!0)))}this.incremental&&(this._off=a,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,a=e.points,n=e.size,i=this._ctx,o=this.softClipShape;if(i){for(t=this._off;t<a.length;){var r=a[t++],s=a[t++];isNaN(r)||isNaN(s)||(o&&!o.contain(r,s)||i.fillRect(r-n[0]/2,s-n[1]/2,n[0],n[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var a=this.shape,n=a.points,i=a.size,o=Math.max(i[0],4),r=Math.max(i[1],4),s=n.length/2-1;s>=0;s--){var l=2*s,c=n[l]-o/2,u=n[l+1]-r/2;if(t>=c&&e>=u&&t<=c+o&&e<=u+r)return s}return-1},e.prototype.contain=function(t,e){var a=this.transformCoordToLocal(t,e),n=this.getBoundingRect();if(t=a[0],e=a[1],n.contain(t,e)){var i=this.hoverDataIdx=this.findDataIndex(t,e);return i>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,a=e.points,n=e.size,i=n[0],o=n[1],r=1/0,s=1/0,l=-1/0,c=-1/0,d=0;d<a.length;){var h=a[d++],p=a[d++];r=Math.min(h,r),l=Math.max(h,l),s=Math.min(p,s),c=Math.max(p,c)}t=this._rect=new u["a"](r-i/2,s-o/2,l-r+i,c-s+o)}return t},e}(d["b"]),v=function(){function t(){this.group=new h["a"]}return t.prototype.updateData=function(t,e){this._clear();var a=this._create();a.setShape({points:t.getLayout("points")}),this._setCommon(a,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var a=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2;e=new Float32Array(e.buffer,n,a)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,a){var n=this._newAdded[0],i=e.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var r=o.length,s=new Float32Array(r+i.length);s.set(o),s.set(i,r),n.endIndex=t.end,n.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,e,a)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new _({cursor:"default"});return this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,a){var n=e.hostModel;a=a||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=a.clipShape||null,t.symbolProxy=Object(p["a"])(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<m;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var r=e.getVisual("style"),s=r&&r.fill;s&&t.setColor(s);var l=Object(f["a"])(t);l.seriesIndex=n.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var a=t.hoverDataIdx;a>=0&&(l.dataIndex=a+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),y=v,b=a("87c3"),S=a("e887"),O=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(i["a"])(e,t),e.prototype.render=function(t,e,a){var n=t.getData(),i=this._updateSymbolDraw(n,t);i.updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,a){var n=t.getData(),i=this._updateSymbolDraw(n,t);i.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,a){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,a){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var i=Object(b["a"])("").reset(t,e,a);i.progress&&i.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,a=e&&e.getArea&&e.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,e){var a=this._symbolDraw,n=e.pipelineContext,i=n.large;return a&&i===this._isLargeDraw||(a&&a.remove(),a=this._symbolDraw=i?new y:new c["a"],this._isLargeDraw=i,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(S["a"]),T=O,A=a("8702");function x(t){Object(n["a"])(A["a"]),t.registerSeriesModel(l),t.registerChartView(T),t.registerLayout(Object(b["a"])("scatter"))}},adc2:function(t,e,a){"use strict";a.d(e,"a",(function(){return s})),a.d(e,"h",(function(){return c})),a.d(e,"g",(function(){return u})),a.d(e,"i",(function(){return d})),a.d(e,"b",(function(){return h})),a.d(e,"c",(function(){return p})),a.d(e,"d",(function(){return f})),a.d(e,"e",(function(){return m})),a.d(e,"f",(function(){return g}));a("a9e3"),a("fb6a"),a("d3b7"),a("25f0"),a("b64b"),a("a18c");var n=a("4360"),i=a("c1df"),o=a.n(i),r=a("bbf0"),s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_();return t?o.a.tz(t,e):c(e)},l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_();return e?t.tz(e):t},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_();return l(o()(o()().valueOf()-v()),t)};function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c();return e.clone().subtract(t,"days")}function d(t,e,a){var n;n=arguments.length<2||"string"===typeof arguments[1]?0===t?c():c().subtract(1,"days"):0===t?arguments[1]:arguments[1].clone().subtract(1,"days");var i=0===t?n.clone():n.clone().subtract(t-1,"days");return a="string"===typeof arguments[1]?arguments[1]:arguments[2],g(i,n,a)}function h(t,e){var a,n;if(t>=1)n=e?e.clone().subtract(1,"days"):c().subtract(1,"days"),a=n.clone().subtract(t-1,"days"),a.startOf("day"),n.endOf("day");else if(t>=.1){var i=Number(t.toString().slice(2,-1));n=e?e.clone():c(),a=n.clone().subtract(i,"hours")}else if(t>=.01){var o=Number(t.toString().slice(3,-1));n=e?e.clone():c(),a=n.clone().subtract(o-1,"_minutes")}else 0===t&&(n=e?e.clone():c(),a=n.clone(),a.startOf("day"),n.endOf("day"));return[a.valueOf(),n.valueOf()]}function p(t){var e,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_();if(t.dateScope||0===t.dateScope){var i=h(t.dateScope,c(n));e=i[0],a=i[1]}else e=s(o()(t.dateRange[0]).format("YYYY-MM-DD"),n).startOf("day").valueOf(),a=s(o()(t.dateRange[1]).format("YYYY-MM-DD"),n).endOf("day").valueOf();return[e,a]}function f(t){var e,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_();if(null!==t.dateRange)e=s(o()(t.dateRange).format("YYYY-MM-DD"),n).startOf("day").valueOf(),a=s(o()(t.dateRange).format("YYYY-MM-DD"),n).endOf("day").valueOf();else{var i=h(t.dateScope,c(n));e=i[0],a=i[1]}return[e,a]}function m(t){var e,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_();return 0===t.dateScope?(e=c(i),a=c(i)):t.dateScope?(e=c(i).subtract(t.dateScope,"days"),a=c(i).subtract(1,"days")):(e=s(o()(t.dateRange[0]).format("YYYY-MM-DD"),i),a=s(o()(t.dateRange[1]).format("YYYY-MM-DD"),i)),g(e,a,n)}var g=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD",n=[],i=e.diff(t,"days"),o=t.clone();n.push(o.format(a));for(var r=0;r<i;r++)n.push(o.add(1,"days").format(a));return n};function _(){return n["a"].getters[r["f"]]&&Object.keys(n["a"].getters[r["f"]]).length?n["a"].getters[r["f"]].amazonSiteInfo.timeZoneInfo.timeZoneId:""}function v(){return n["a"].getters[r["I"]].timeDiff||0}},af03:function(t,e,a){var n=a("d039");t.exports=function(t){return n((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},b2f5:function(t,e,a){},b361:function(t,e,a){"use strict";a("16f6")},b588:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("e-charts",{ref:"line",style:"height:"+t.height+"px",attrs:{autoresize:"",option:t.option,theme:t.optionData.color?"":"theme-color","auto-resize":""}})},i=[],o=a("5530"),r=(a("a9e3"),a("22b4")),s=a("1be7"),l=a("5c7f"),c=a("4cb5"),u=a("f95e"),d=a("9394"),h=a("2da7"),p=a("ff32"),f=a("4b2a"),m=a("abd2"),g=a("366f");Object(r["a"])([u["a"],c["a"],d["a"],h["a"],p["a"],f["a"],m["a"]]),Object(s["m"])("theme-color",g);var _={components:{ECharts:l["a"]},props:{height:{type:Number,default:430},optionData:{type:Object,default:null}},watch:{optionData:{deep:!0,handler:function(t){var e={tooltip:t.tooltip||Object(o["a"])({trigger:"axis",axisPointer:{type:"shadow"}},t.tooltip),legend:Object(o["a"])({left:0},t.legend),grid:t.grid,xAxis:t.xAxis,yAxis:t.yAxis,series:t.series};t.color&&(e.color=t.color),this.option=e}}},data:function(){var t={tooltip:this.optionData.tooltip||{trigger:"axis",axisPointer:{type:"shadow"}},legend:Object(o["a"])({left:0},this.optionData.legend),grid:this.optionData.grid,xAxis:this.optionData.xAxis,yAxis:this.optionData.yAxis,series:this.optionData.series};return this.optionData.color&&(t.color=this.optionData.color),{option:t}}},v=_,y=a("2877"),b=Object(y["a"])(v,n,i,!1,null,null,null);e["a"]=b.exports},b619:function(t,e,a){"use strict";function n(t){return null!==t&&"object"===typeof t&&"constructor"in t&&t.constructor===Object}function i(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach((function(a){"undefined"===typeof t[a]?t[a]=e[a]:n(e[a])&&n(t[a])&&Object.keys(e[a]).length>0&&i(t[a],e[a])}))}a.r(e);var o="undefined"!==typeof document?document:{},r={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};i(o,r);var s="undefined"!==typeof window?window:{},l={document:r,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}};i(s,l);class c{constructor(t){const e=this;for(let a=0;a<t.length;a+=1)e[a]=t[a];return e.length=t.length,this}}function u(t,e){const a=[];let n=0;if(t&&!e&&t instanceof c)return t;if(t)if("string"===typeof t){let i,r;const s=t.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){let t="div";for(0===s.indexOf("<li")&&(t="ul"),0===s.indexOf("<tr")&&(t="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(t="tr"),0===s.indexOf("<tbody")&&(t="table"),0===s.indexOf("<option")&&(t="select"),r=o.createElement(t),r.innerHTML=s,n=0;n<r.childNodes.length;n+=1)a.push(r.childNodes[n])}else for(i=e||"#"!==t[0]||t.match(/[ .<>:~]/)?(e||o).querySelectorAll(t.trim()):[o.getElementById(t.trim().split("#")[1])],n=0;n<i.length;n+=1)i[n]&&a.push(i[n])}else if(t.nodeType||t===s||t===o)a.push(t);else if(t.length>0&&t[0].nodeType)for(n=0;n<t.length;n+=1)a.push(t[n]);return new c(a)}function d(t){const e=[];for(let a=0;a<t.length;a+=1)-1===e.indexOf(t[a])&&e.push(t[a]);return e}function h(t){if("undefined"===typeof t)return this;const e=t.split(" ");for(let a=0;a<e.length;a+=1)for(let t=0;t<this.length;t+=1)"undefined"!==typeof this[t]&&"undefined"!==typeof this[t].classList&&this[t].classList.add(e[a]);return this}function p(t){const e=t.split(" ");for(let a=0;a<e.length;a+=1)for(let t=0;t<this.length;t+=1)"undefined"!==typeof this[t]&&"undefined"!==typeof this[t].classList&&this[t].classList.remove(e[a]);return this}function f(t){return!!this[0]&&this[0].classList.contains(t)}function m(t){const e=t.split(" ");for(let a=0;a<e.length;a+=1)for(let t=0;t<this.length;t+=1)"undefined"!==typeof this[t]&&"undefined"!==typeof this[t].classList&&this[t].classList.toggle(e[a]);return this}function g(t,e){if(1===arguments.length&&"string"===typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let a=0;a<this.length;a+=1)if(2===arguments.length)this[a].setAttribute(t,e);else for(const e in t)this[a][e]=t[e],this[a].setAttribute(e,t[e]);return this}function _(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function v(t,e){let a;if("undefined"!==typeof e){for(let n=0;n<this.length;n+=1)a=this[n],a.dom7ElementDataStorage||(a.dom7ElementDataStorage={}),a.dom7ElementDataStorage[t]=e;return this}if(a=this[0],a){if(a.dom7ElementDataStorage&&t in a.dom7ElementDataStorage)return a.dom7ElementDataStorage[t];const e=a.getAttribute("data-"+t);return e||void 0}}function y(t){for(let e=0;e<this.length;e+=1){const a=this[e].style;a.webkitTransform=t,a.transform=t}return this}function b(t){"string"!==typeof t&&(t+="ms");for(let e=0;e<this.length;e+=1){const a=this[e].style;a.webkitTransitionDuration=t,a.transitionDuration=t}return this}function S(...t){let[e,a,n,i]=t;function o(t){const e=t.target;if(!e)return;const i=t.target.dom7EventData||[];if(i.indexOf(t)<0&&i.unshift(t),u(e).is(a))n.apply(e,i);else{const t=u(e).parents();for(let e=0;e<t.length;e+=1)u(t[e]).is(a)&&n.apply(t[e],i)}}function r(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),n.apply(this,e)}"function"===typeof t[1]&&([e,n,i]=t,a=void 0),i||(i=!1);const s=e.split(" ");let l;for(let c=0;c<this.length;c+=1){const t=this[c];if(a)for(l=0;l<s.length;l+=1){const e=s[l];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:n,proxyListener:o}),t.addEventListener(e,o,i)}else for(l=0;l<s.length;l+=1){const e=s[l];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:n,proxyListener:r}),t.addEventListener(e,r,i)}}return this}function O(...t){let[e,a,n,i]=t;"function"===typeof t[1]&&([e,n,i]=t,a=void 0),i||(i=!1);const o=e.split(" ");for(let r=0;r<o.length;r+=1){const t=o[r];for(let e=0;e<this.length;e+=1){const o=this[e];let r;if(!a&&o.dom7Listeners?r=o.dom7Listeners[t]:a&&o.dom7LiveListeners&&(r=o.dom7LiveListeners[t]),r&&r.length)for(let e=r.length-1;e>=0;e-=1){const a=r[e];n&&a.listener===n||n&&a.listener&&a.listener.dom7proxy&&a.listener.dom7proxy===n?(o.removeEventListener(t,a.proxyListener,i),r.splice(e,1)):n||(o.removeEventListener(t,a.proxyListener,i),r.splice(e,1))}}}return this}function T(...t){const e=t[0].split(" "),a=t[1];for(let i=0;i<e.length;i+=1){const r=e[i];for(let e=0;e<this.length;e+=1){const i=this[e];let l;try{l=new s.CustomEvent(r,{detail:a,bubbles:!0,cancelable:!0})}catch(n){l=o.createEvent("Event"),l.initEvent(r,!0,!0),l.detail=a}i.dom7EventData=t.filter((t,e)=>e>0),i.dispatchEvent(l),i.dom7EventData=[],delete i.dom7EventData}}return this}function A(t){const e=["webkitTransitionEnd","transitionend"],a=this;let n;function i(o){if(o.target===this)for(t.call(this,o),n=0;n<e.length;n+=1)a.off(e[n],i)}if(t)for(n=0;n<e.length;n+=1)a.on(e[n],i);return this}function x(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function C(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function E(){if(this.length>0){const t=this[0],e=t.getBoundingClientRect(),a=o.body,n=t.clientTop||a.clientTop||0,i=t.clientLeft||a.clientLeft||0,r=t===s?s.scrollY:t.scrollTop,l=t===s?s.scrollX:t.scrollLeft;return{top:e.top+r-n,left:e.left+l-i}}return null}function w(){return this[0]?s.getComputedStyle(this[0],null):{}}function M(t,e){let a;if(1===arguments.length){if("string"!==typeof t){for(a=0;a<this.length;a+=1)for(let e in t)this[a].style[e]=t[e];return this}if(this[0])return s.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"===typeof t){for(a=0;a<this.length;a+=1)this[a].style[t]=e;return this}return this}function k(t){if(!t)return this;for(let e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this}function I(t){const e=[],a=this;for(let n=0;n<a.length;n+=1)t.call(a[n],n,a[n])&&e.push(a[n]);return new c(e)}function D(t){if("undefined"===typeof t)return this[0]?this[0].innerHTML:void 0;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function L(t){if("undefined"===typeof t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this}function R(t){const e=this[0];let a,n;if(!e||"undefined"===typeof t)return!1;if("string"===typeof t){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(a=u(t),n=0;n<a.length;n+=1)if(a[n]===e)return!0;return!1}if(t===o)return e===o;if(t===s)return e===s;if(t.nodeType||t instanceof c){for(a=t.nodeType?[t]:t,n=0;n<a.length;n+=1)if(a[n]===e)return!0;return!1}return!1}function N(){let t,e=this[0];if(e){t=0;while(null!==(e=e.previousSibling))1===e.nodeType&&(t+=1);return t}}function P(t){if("undefined"===typeof t)return this;const e=this.length;let a;return t>e-1?new c([]):t<0?(a=e+t,new c(a<0?[]:[this[a]])):new c([this[t]])}function j(...t){let e;for(let a=0;a<t.length;a+=1){e=t[a];for(let t=0;t<this.length;t+=1)if("string"===typeof e){const a=o.createElement("div");a.innerHTML=e;while(a.firstChild)this[t].appendChild(a.firstChild)}else if(e instanceof c)for(let a=0;a<e.length;a+=1)this[t].appendChild(e[a]);else this[t].appendChild(e)}return this}function $(t){let e,a;for(e=0;e<this.length;e+=1)if("string"===typeof t){const n=o.createElement("div");for(n.innerHTML=t,a=n.childNodes.length-1;a>=0;a-=1)this[e].insertBefore(n.childNodes[a],this[e].childNodes[0])}else if(t instanceof c)for(a=0;a<t.length;a+=1)this[e].insertBefore(t[a],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function F(t){return this.length>0?t?this[0].nextElementSibling&&u(this[0].nextElementSibling).is(t)?new c([this[0].nextElementSibling]):new c([]):this[0].nextElementSibling?new c([this[0].nextElementSibling]):new c([]):new c([])}function B(t){const e=[];let a=this[0];if(!a)return new c([]);while(a.nextElementSibling){const n=a.nextElementSibling;t?u(n).is(t)&&e.push(n):e.push(n),a=n}return new c(e)}function Y(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&u(e.previousElementSibling).is(t)?new c([e.previousElementSibling]):new c([]):e.previousElementSibling?new c([e.previousElementSibling]):new c([])}return new c([])}function U(t){const e=[];let a=this[0];if(!a)return new c([]);while(a.previousElementSibling){const n=a.previousElementSibling;t?u(n).is(t)&&e.push(n):e.push(n),a=n}return new c(e)}function z(t){const e=[];for(let a=0;a<this.length;a+=1)null!==this[a].parentNode&&(t?u(this[a].parentNode).is(t)&&e.push(this[a].parentNode):e.push(this[a].parentNode));return u(d(e))}function V(t){const e=[];for(let a=0;a<this.length;a+=1){let n=this[a].parentNode;while(n)t?u(n).is(t)&&e.push(n):e.push(n),n=n.parentNode}return u(d(e))}function H(t){let e=this;return"undefined"===typeof t?new c([]):(e.is(t)||(e=e.parents(t).eq(0)),e)}function G(t){const e=[];for(let a=0;a<this.length;a+=1){const n=this[a].querySelectorAll(t);for(let t=0;t<n.length;t+=1)e.push(n[t])}return new c(e)}function W(t){const e=[];for(let a=0;a<this.length;a+=1){const n=this[a].childNodes;for(let a=0;a<n.length;a+=1)t?1===n[a].nodeType&&u(n[a]).is(t)&&e.push(n[a]):1===n[a].nodeType&&e.push(n[a])}return new c(d(e))}function K(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function Z(...t){const e=this;let a,n;for(a=0;a<t.length;a+=1){const i=u(t[a]);for(n=0;n<i.length;n+=1)e[e.length]=i[n],e.length+=1}return e}u.fn=c.prototype,u.Class=c,u.Dom7=c;"resize scroll".split(" ");const q={addClass:h,removeClass:p,hasClass:f,toggleClass:m,attr:g,removeAttr:_,data:v,transform:y,transition:b,on:S,off:O,trigger:T,transitionEnd:A,outerWidth:x,outerHeight:C,offset:E,css:M,each:k,html:D,text:L,is:R,index:N,eq:P,append:j,prepend:$,next:F,nextAll:B,prev:Y,prevAll:U,parent:z,parents:V,closest:H,find:G,children:W,filter:I,remove:K,add:Z,styles:w};Object.keys(q).forEach(t=>{u.fn[t]=u.fn[t]||q[t]});const X={deleteProps(t){const e=t;Object.keys(e).forEach(t=>{try{e[t]=null}catch(a){}try{delete e[t]}catch(a){}})},nextTick(t,e=0){return setTimeout(t,e)},now(){return Date.now()},getTranslate(t,e="x"){let a,n,i;const o=s.getComputedStyle(t,null);return s.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(t=>t.replace(",",".")).join(", ")),i=new s.WebKitCSSMatrix("none"===n?"":n)):(i=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=i.toString().split(",")),"x"===e&&(n=s.WebKitCSSMatrix?i.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===e&&(n=s.WebKitCSSMatrix?i.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),n||0},parseUrlQuery(t){const e={};let a,n,i,o,r=t||s.location.href;if("string"===typeof r&&r.length)for(r=r.indexOf("?")>-1?r.replace(/\S*\?/,""):"",n=r.split("&").filter(t=>""!==t),o=n.length,a=0;a<o;a+=1)i=n[a].replace(/#\S+/g,"").split("="),e[decodeURIComponent(i[0])]="undefined"===typeof i[1]?void 0:decodeURIComponent(i[1])||"";return e},isObject(t){return"object"===typeof t&&null!==t&&t.constructor&&t.constructor===Object},extend(...t){const e=Object(t[0]);for(let a=1;a<t.length;a+=1){const n=t[a];if(void 0!==n&&null!==n){const t=Object.keys(Object(n));for(let a=0,i=t.length;a<i;a+=1){const i=t[a],o=Object.getOwnPropertyDescriptor(n,i);void 0!==o&&o.enumerable&&(X.isObject(e[i])&&X.isObject(n[i])?X.extend(e[i],n[i]):!X.isObject(e[i])&&X.isObject(n[i])?(e[i]={},X.extend(e[i],n[i])):e[i]=n[i])}}}return e}},Q=function(){return{touch:!!("ontouchstart"in s||s.DocumentTouch&&o instanceof s.DocumentTouch),pointerEvents:!!s.PointerEvent&&"maxTouchPoints"in s.navigator&&s.navigator.maxTouchPoints>=0,observer:function(){return"MutationObserver"in s||"WebkitMutationObserver"in s}(),passiveListener:function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get(){t=!0}});s.addEventListener("testPassiveListener",null,e)}catch(e){}return t}(),gestures:function(){return"ongesturestart"in s}()}}();class J{constructor(t={}){const e=this;e.params=t,e.eventsListeners={},e.params&&e.params.on&&Object.keys(e.params.on).forEach(t=>{e.on(t,e.params.on[t])})}on(t,e,a){const n=this;if("function"!==typeof e)return n;const i=a?"unshift":"push";return t.split(" ").forEach(t=>{n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][i](e)}),n}once(t,e,a){const n=this;if("function"!==typeof e)return n;function i(...a){n.off(t,i),i.f7proxy&&delete i.f7proxy,e.apply(n,a)}return i.f7proxy=e,n.on(t,i,a)}off(t,e){const a=this;return a.eventsListeners?(t.split(" ").forEach(t=>{"undefined"===typeof e?a.eventsListeners[t]=[]:a.eventsListeners[t]&&a.eventsListeners[t].length&&a.eventsListeners[t].forEach((n,i)=>{(n===e||n.f7proxy&&n.f7proxy===e)&&a.eventsListeners[t].splice(i,1)})}),a):a}emit(...t){const e=this;if(!e.eventsListeners)return e;let a,n,i;"string"===typeof t[0]||Array.isArray(t[0])?(a=t[0],n=t.slice(1,t.length),i=e):(a=t[0].events,n=t[0].data,i=t[0].context||e);const o=Array.isArray(a)?a:a.split(" ");return o.forEach(t=>{if(e.eventsListeners&&e.eventsListeners[t]){const a=[];e.eventsListeners[t].forEach(t=>{a.push(t)}),a.forEach(t=>{t.apply(i,n)})}}),e}useModulesParams(t){const e=this;e.modules&&Object.keys(e.modules).forEach(a=>{const n=e.modules[a];n.params&&X.extend(t,n.params)})}useModules(t={}){const e=this;e.modules&&Object.keys(e.modules).forEach(a=>{const n=e.modules[a],i=t[a]||{};n.instance&&Object.keys(n.instance).forEach(t=>{const a=n.instance[t];e[t]="function"===typeof a?a.bind(e):a}),n.on&&e.on&&Object.keys(n.on).forEach(t=>{e.on(t,n.on[t])}),n.create&&n.create.bind(e)(i)})}static set components(t){const e=this;e.use&&e.use(t)}static installModule(t,...e){const a=this;a.prototype.modules||(a.prototype.modules={});const n=t.name||`${Object.keys(a.prototype.modules).length}_${X.now()}`;return a.prototype.modules[n]=t,t.proto&&Object.keys(t.proto).forEach(e=>{a.prototype[e]=t.proto[e]}),t.static&&Object.keys(t.static).forEach(e=>{a[e]=t.static[e]}),t.install&&t.install.apply(a,e),a}static use(t,...e){const a=this;return Array.isArray(t)?(t.forEach(t=>a.installModule(t)),a):a.installModule(t,...e)}}function tt(){const t=this;let e,a;const n=t.$el;e="undefined"!==typeof t.params.width?t.params.width:n[0].clientWidth,a="undefined"!==typeof t.params.height?t.params.height:n[0].clientHeight,0===e&&t.isHorizontal()||0===a&&t.isVertical()||(e=e-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),a=a-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),X.extend(t,{width:e,height:a,size:t.isHorizontal()?e:a}))}function et(){const t=this,e=t.params,{$wrapperEl:a,size:n,rtlTranslate:i,wrongRTL:o}=t,r=t.virtual&&e.virtual.enabled,l=r?t.virtual.slides.length:t.slides.length,c=a.children("."+t.params.slideClass),u=r?t.virtual.slides.length:c.length;let d=[];const h=[],p=[];function f(t){return!e.cssMode||t!==c.length-1}let m=e.slidesOffsetBefore;"function"===typeof m&&(m=e.slidesOffsetBefore.call(t));let g=e.slidesOffsetAfter;"function"===typeof g&&(g=e.slidesOffsetAfter.call(t));const _=t.snapGrid.length,v=t.snapGrid.length;let y,b,S=e.spaceBetween,O=-m,T=0,A=0;if("undefined"===typeof n)return;"string"===typeof S&&S.indexOf("%")>=0&&(S=parseFloat(S.replace("%",""))/100*n),t.virtualSize=-S,i?c.css({marginLeft:"",marginTop:""}):c.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(y=Math.floor(u/e.slidesPerColumn)===u/t.params.slidesPerColumn?u:Math.ceil(u/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(y=Math.max(y,e.slidesPerView*e.slidesPerColumn)));const x=e.slidesPerColumn,C=y/x,E=Math.floor(u/e.slidesPerColumn);for(let M=0;M<u;M+=1){b=0;const a=c.eq(M);if(e.slidesPerColumn>1){let n,i,o;if("row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){const t=Math.floor(M/(e.slidesPerGroup*e.slidesPerColumn)),r=M-e.slidesPerColumn*e.slidesPerGroup*t,s=0===t?e.slidesPerGroup:Math.min(Math.ceil((u-t*x*e.slidesPerGroup)/x),e.slidesPerGroup);o=Math.floor(r/s),i=r-o*s+t*e.slidesPerGroup,n=i+o*y/x,a.css({"-webkit-box-ordinal-group":n,"-moz-box-ordinal-group":n,"-ms-flex-order":n,"-webkit-order":n,order:n})}else"column"===e.slidesPerColumnFill?(i=Math.floor(M/x),o=M-i*x,(i>E||i===E&&o===x-1)&&(o+=1,o>=x&&(o=0,i+=1))):(o=Math.floor(M/C),i=M-o*C);a.css("margin-"+(t.isHorizontal()?"top":"left"),0!==o&&e.spaceBetween&&e.spaceBetween+"px")}if("none"!==a.css("display")){if("auto"===e.slidesPerView){const n=s.getComputedStyle(a[0],null),i=a[0].style.transform,o=a[0].style.webkitTransform;if(i&&(a[0].style.transform="none"),o&&(a[0].style.webkitTransform="none"),e.roundLengths)b=t.isHorizontal()?a.outerWidth(!0):a.outerHeight(!0);else if(t.isHorizontal()){const t=parseFloat(n.getPropertyValue("width")),e=parseFloat(n.getPropertyValue("padding-left")),a=parseFloat(n.getPropertyValue("padding-right")),i=parseFloat(n.getPropertyValue("margin-left")),o=parseFloat(n.getPropertyValue("margin-right")),r=n.getPropertyValue("box-sizing");b=r&&"border-box"===r?t+i+o:t+e+a+i+o}else{const t=parseFloat(n.getPropertyValue("height")),e=parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("padding-bottom")),i=parseFloat(n.getPropertyValue("margin-top")),o=parseFloat(n.getPropertyValue("margin-bottom")),r=n.getPropertyValue("box-sizing");b=r&&"border-box"===r?t+i+o:t+e+a+i+o}i&&(a[0].style.transform=i),o&&(a[0].style.webkitTransform=o),e.roundLengths&&(b=Math.floor(b))}else b=(n-(e.slidesPerView-1)*S)/e.slidesPerView,e.roundLengths&&(b=Math.floor(b)),c[M]&&(t.isHorizontal()?c[M].style.width=b+"px":c[M].style.height=b+"px");c[M]&&(c[M].swiperSlideSize=b),p.push(b),e.centeredSlides?(O=O+b/2+T/2+S,0===T&&0!==M&&(O=O-n/2-S),0===M&&(O=O-n/2-S),Math.abs(O)<.001&&(O=0),e.roundLengths&&(O=Math.floor(O)),A%e.slidesPerGroup===0&&d.push(O),h.push(O)):(e.roundLengths&&(O=Math.floor(O)),(A-Math.min(t.params.slidesPerGroupSkip,A))%t.params.slidesPerGroup===0&&d.push(O),h.push(O),O=O+b+S),t.virtualSize+=b+S,T=b,A+=1}}let w;if(t.virtualSize=Math.max(t.virtualSize,n)+g,i&&o&&("slide"===e.effect||"coverflow"===e.effect)&&a.css({width:t.virtualSize+e.spaceBetween+"px"}),e.setWrapperSize&&(t.isHorizontal()?a.css({width:t.virtualSize+e.spaceBetween+"px"}):a.css({height:t.virtualSize+e.spaceBetween+"px"})),e.slidesPerColumn>1&&(t.virtualSize=(b+e.spaceBetween)*y,t.virtualSize=Math.ceil(t.virtualSize/e.slidesPerColumn)-e.spaceBetween,t.isHorizontal()?a.css({width:t.virtualSize+e.spaceBetween+"px"}):a.css({height:t.virtualSize+e.spaceBetween+"px"}),e.centeredSlides)){w=[];for(let a=0;a<d.length;a+=1){let n=d[a];e.roundLengths&&(n=Math.floor(n)),d[a]<t.virtualSize+d[0]&&w.push(n)}d=w}if(!e.centeredSlides){w=[];for(let a=0;a<d.length;a+=1){let i=d[a];e.roundLengths&&(i=Math.floor(i)),d[a]<=t.virtualSize-n&&w.push(i)}d=w,Math.floor(t.virtualSize-n)-Math.floor(d[d.length-1])>1&&d.push(t.virtualSize-n)}if(0===d.length&&(d=[0]),0!==e.spaceBetween&&(t.isHorizontal()?i?c.filter(f).css({marginLeft:S+"px"}):c.filter(f).css({marginRight:S+"px"}):c.filter(f).css({marginBottom:S+"px"})),e.centeredSlides&&e.centeredSlidesBounds){let t=0;p.forEach(a=>{t+=a+(e.spaceBetween?e.spaceBetween:0)}),t-=e.spaceBetween;const a=t-n;d=d.map(t=>t<0?-m:t>a?a+g:t)}if(e.centerInsufficientSlides){let t=0;if(p.forEach(a=>{t+=a+(e.spaceBetween?e.spaceBetween:0)}),t-=e.spaceBetween,t<n){const e=(n-t)/2;d.forEach((t,a)=>{d[a]=t-e}),h.forEach((t,a)=>{h[a]=t+e})}}X.extend(t,{slides:c,snapGrid:d,slidesGrid:h,slidesSizesGrid:p}),u!==l&&t.emit("slidesLengthChange"),d.length!==_&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),h.length!==v&&t.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&t.updateSlidesOffset()}function at(t){const e=this,a=[];let n,i=0;if("number"===typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed),"auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)e.visibleSlides.each((t,e)=>{a.push(e)});else for(n=0;n<Math.ceil(e.params.slidesPerView);n+=1){const t=e.activeIndex+n;if(t>e.slides.length)break;a.push(e.slides.eq(t)[0])}else a.push(e.slides.eq(e.activeIndex)[0]);for(n=0;n<a.length;n+=1)if("undefined"!==typeof a[n]){const t=a[n].offsetHeight;i=t>i?t:i}i&&e.$wrapperEl.css("height",i+"px")}function nt(){const t=this,e=t.slides;for(let a=0;a<e.length;a+=1)e[a].swiperSlideOffset=t.isHorizontal()?e[a].offsetLeft:e[a].offsetTop}function it(t=this&&this.translate||0){const e=this,a=e.params,{slides:n,rtlTranslate:i}=e;if(0===n.length)return;"undefined"===typeof n[0].swiperSlideOffset&&e.updateSlidesOffset();let o=-t;i&&(o=t),n.removeClass(a.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let r=0;r<n.length;r+=1){const t=n[r],s=(o+(a.centeredSlides?e.minTranslate():0)-t.swiperSlideOffset)/(t.swiperSlideSize+a.spaceBetween);if(a.watchSlidesVisibility||a.centeredSlides&&a.autoHeight){const i=-(o-t.swiperSlideOffset),s=i+e.slidesSizesGrid[r],l=i>=0&&i<e.size-1||s>1&&s<=e.size||i<=0&&s>=e.size;l&&(e.visibleSlides.push(t),e.visibleSlidesIndexes.push(r),n.eq(r).addClass(a.slideVisibleClass))}t.progress=i?-s:s}e.visibleSlides=u(e.visibleSlides)}function ot(t){const e=this;if("undefined"===typeof t){const a=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*a||0}const a=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:o,isEnd:r}=e;const s=o,l=r;0===n?(i=0,o=!0,r=!0):(i=(t-e.minTranslate())/n,o=i<=0,r=i>=1),X.extend(e,{progress:i,isBeginning:o,isEnd:r}),(a.watchSlidesProgress||a.watchSlidesVisibility||a.centeredSlides&&a.autoHeight)&&e.updateSlidesProgress(t),o&&!s&&e.emit("reachBeginning toEdge"),r&&!l&&e.emit("reachEnd toEdge"),(s&&!o||l&&!r)&&e.emit("fromEdge"),e.emit("progress",i)}function rt(){const t=this,{slides:e,params:a,$wrapperEl:n,activeIndex:i,realIndex:o}=t,r=t.virtual&&a.virtual.enabled;let s;e.removeClass(`${a.slideActiveClass} ${a.slideNextClass} ${a.slidePrevClass} ${a.slideDuplicateActiveClass} ${a.slideDuplicateNextClass} ${a.slideDuplicatePrevClass}`),s=r?t.$wrapperEl.find(`.${a.slideClass}[data-swiper-slide-index="${i}"]`):e.eq(i),s.addClass(a.slideActiveClass),a.loop&&(s.hasClass(a.slideDuplicateClass)?n.children(`.${a.slideClass}:not(.${a.slideDuplicateClass})[data-swiper-slide-index="${o}"]`).addClass(a.slideDuplicateActiveClass):n.children(`.${a.slideClass}.${a.slideDuplicateClass}[data-swiper-slide-index="${o}"]`).addClass(a.slideDuplicateActiveClass));let l=s.nextAll("."+a.slideClass).eq(0).addClass(a.slideNextClass);a.loop&&0===l.length&&(l=e.eq(0),l.addClass(a.slideNextClass));let c=s.prevAll("."+a.slideClass).eq(0).addClass(a.slidePrevClass);a.loop&&0===c.length&&(c=e.eq(-1),c.addClass(a.slidePrevClass)),a.loop&&(l.hasClass(a.slideDuplicateClass)?n.children(`.${a.slideClass}:not(.${a.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(a.slideDuplicateNextClass):n.children(`.${a.slideClass}.${a.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(a.slideDuplicateNextClass),c.hasClass(a.slideDuplicateClass)?n.children(`.${a.slideClass}:not(.${a.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(a.slideDuplicatePrevClass):n.children(`.${a.slideClass}.${a.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(a.slideDuplicatePrevClass))}function st(t){const e=this,a=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:n,snapGrid:i,params:o,activeIndex:r,realIndex:s,snapIndex:l}=e;let c,u=t;if("undefined"===typeof u){for(let t=0;t<n.length;t+=1)"undefined"!==typeof n[t+1]?a>=n[t]&&a<n[t+1]-(n[t+1]-n[t])/2?u=t:a>=n[t]&&a<n[t+1]&&(u=t+1):a>=n[t]&&(u=t);o.normalizeSlideIndex&&(u<0||"undefined"===typeof u)&&(u=0)}if(i.indexOf(a)>=0)c=i.indexOf(a);else{const t=Math.min(o.slidesPerGroupSkip,u);c=t+Math.floor((u-t)/o.slidesPerGroup)}if(c>=i.length&&(c=i.length-1),u===r)return void(c!==l&&(e.snapIndex=c,e.emit("snapIndexChange")));const d=parseInt(e.slides.eq(u).attr("data-swiper-slide-index")||u,10);X.extend(e,{snapIndex:c,realIndex:d,previousIndex:r,activeIndex:u}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),s!==d&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function lt(t){const e=this,a=e.params,n=u(t.target).closest("."+a.slideClass)[0];let i=!1;if(n)for(let o=0;o<e.slides.length;o+=1)e.slides[o]===n&&(i=!0);if(!n||!i)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=n,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(u(n).attr("data-swiper-slide-index"),10):e.clickedIndex=u(n).index(),a.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}var ct={updateSize:tt,updateSlides:et,updateAutoHeight:at,updateSlidesOffset:nt,updateSlidesProgress:it,updateProgress:ot,updateSlidesClasses:rt,updateActiveIndex:st,updateClickedSlide:lt};function ut(t=(this.isHorizontal()?"x":"y")){const e=this,{params:a,rtlTranslate:n,translate:i,$wrapperEl:o}=e;if(a.virtualTranslate)return n?-i:i;if(a.cssMode)return i;let r=X.getTranslate(o[0],t);return n&&(r=-r),r||0}function dt(t,e){const a=this,{rtlTranslate:n,params:i,$wrapperEl:o,wrapperEl:r,progress:s}=a;let l=0,c=0;const u=0;let d;a.isHorizontal()?l=n?-t:t:c=t,i.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.cssMode?r[a.isHorizontal()?"scrollLeft":"scrollTop"]=a.isHorizontal()?-l:-c:i.virtualTranslate||o.transform(`translate3d(${l}px, ${c}px, ${u}px)`),a.previousTranslate=a.translate,a.translate=a.isHorizontal()?l:c;const h=a.maxTranslate()-a.minTranslate();d=0===h?0:(t-a.minTranslate())/h,d!==s&&a.updateProgress(t),a.emit("setTranslate",a.translate,e)}function ht(){return-this.snapGrid[0]}function pt(){return-this.snapGrid[this.snapGrid.length-1]}function ft(t=0,e=this.params.speed,a=!0,n=!0,i){const o=this,{params:r,wrapperEl:s}=o;if(o.animating&&r.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let u;if(u=n&&t>l?l:n&&t<c?c:t,o.updateProgress(u),r.cssMode){const t=o.isHorizontal();return 0===e?s[t?"scrollLeft":"scrollTop"]=-u:s.scrollTo?s.scrollTo({[t?"left":"top"]:-u,behavior:"smooth"}):s[t?"scrollLeft":"scrollTop"]=-u,!0}return 0===e?(o.setTransition(0),o.setTranslate(u),a&&(o.emit("beforeTransitionStart",e,i),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(u),a&&(o.emit("beforeTransitionStart",e,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,a&&o.emit("transitionEnd"))}),o.$wrapperEl[0].addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd))),!0}var mt={getTranslate:ut,setTranslate:dt,minTranslate:ht,maxTranslate:pt,translateTo:ft};function gt(t,e){const a=this;a.params.cssMode||a.$wrapperEl.transition(t),a.emit("setTransition",t,e)}function _t(t=!0,e){const a=this,{activeIndex:n,params:i,previousIndex:o}=a;if(i.cssMode)return;i.autoHeight&&a.updateAutoHeight();let r=e;if(r||(r=n>o?"next":n<o?"prev":"reset"),a.emit("transitionStart"),t&&n!==o){if("reset"===r)return void a.emit("slideResetTransitionStart");a.emit("slideChangeTransitionStart"),"next"===r?a.emit("slideNextTransitionStart"):a.emit("slidePrevTransitionStart")}}function vt(t=!0,e){const a=this,{activeIndex:n,previousIndex:i,params:o}=a;if(a.animating=!1,o.cssMode)return;a.setTransition(0);let r=e;if(r||(r=n>i?"next":n<i?"prev":"reset"),a.emit("transitionEnd"),t&&n!==i){if("reset"===r)return void a.emit("slideResetTransitionEnd");a.emit("slideChangeTransitionEnd"),"next"===r?a.emit("slideNextTransitionEnd"):a.emit("slidePrevTransitionEnd")}}var yt={setTransition:gt,transitionStart:_t,transitionEnd:vt};function bt(t=0,e=this.params.speed,a=!0,n){const i=this;let o=t;o<0&&(o=0);const{params:r,snapGrid:s,slidesGrid:l,previousIndex:c,activeIndex:u,rtlTranslate:d,wrapperEl:h}=i;if(i.animating&&r.preventInteractionOnTransition)return!1;const p=Math.min(i.params.slidesPerGroupSkip,o);let f=p+Math.floor((o-p)/i.params.slidesPerGroup);f>=s.length&&(f=s.length-1),(u||r.initialSlide||0)===(c||0)&&a&&i.emit("beforeSlideChangeStart");const m=-s[f];if(i.updateProgress(m),r.normalizeSlideIndex)for(let _=0;_<l.length;_+=1)-Math.floor(100*m)>=Math.floor(100*l[_])&&(o=_);if(i.initialized&&o!==u){if(!i.allowSlideNext&&m<i.translate&&m<i.minTranslate())return!1;if(!i.allowSlidePrev&&m>i.translate&&m>i.maxTranslate()&&(u||0)!==o)return!1}let g;if(g=o>u?"next":o<u?"prev":"reset",d&&-m===i.translate||!d&&m===i.translate)return i.updateActiveIndex(o),r.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),"slide"!==r.effect&&i.setTranslate(m),"reset"!==g&&(i.transitionStart(a,g),i.transitionEnd(a,g)),!1;if(r.cssMode){const t=i.isHorizontal();let a=-m;return d&&(a=h.scrollWidth-h.offsetWidth-a),0===e?h[t?"scrollLeft":"scrollTop"]=a:h.scrollTo?h.scrollTo({[t?"left":"top"]:a,behavior:"smooth"}):h[t?"scrollLeft":"scrollTop"]=a,!0}return 0===e?(i.setTransition(0),i.setTranslate(m),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",e,n),i.transitionStart(a,g),i.transitionEnd(a,g)):(i.setTransition(e),i.setTranslate(m),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",e,n),i.transitionStart(a,g),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(t){i&&!i.destroyed&&t.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(a,g))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))),!0}function St(t=0,e=this.params.speed,a=!0,n){const i=this;let o=t;return i.params.loop&&(o+=i.loopedSlides),i.slideTo(o,e,a,n)}function Ot(t=this.params.speed,e=!0,a){const n=this,{params:i,animating:o}=n,r=n.activeIndex<i.slidesPerGroupSkip?1:i.slidesPerGroup;if(i.loop){if(o)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}return n.slideTo(n.activeIndex+r,t,e,a)}function Tt(t=this.params.speed,e=!0,a){const n=this,{params:i,animating:o,snapGrid:r,slidesGrid:s,rtlTranslate:l}=n;if(i.loop){if(o)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}const c=l?n.translate:-n.translate;function u(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const d=u(c),h=r.map(t=>u(t));s.map(t=>u(t)),r[h.indexOf(d)];let p,f=r[h.indexOf(d)-1];return"undefined"===typeof f&&i.cssMode&&r.forEach(t=>{!f&&d>=t&&(f=t)}),"undefined"!==typeof f&&(p=s.indexOf(f),p<0&&(p=n.activeIndex-1)),n.slideTo(p,t,e,a)}function At(t=this.params.speed,e=!0,a){const n=this;return n.slideTo(n.activeIndex,t,e,a)}function xt(t=this.params.speed,e=!0,a,n=.5){const i=this;let o=i.activeIndex;const r=Math.min(i.params.slidesPerGroupSkip,o),s=r+Math.floor((o-r)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const t=i.snapGrid[s],e=i.snapGrid[s+1];l-t>(e-t)*n&&(o+=i.params.slidesPerGroup)}else{const t=i.snapGrid[s-1],e=i.snapGrid[s];l-t<=(e-t)*n&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,t,e,a)}function Ct(){const t=this,{params:e,$wrapperEl:a}=t,n="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let i,o=t.clickedIndex;if(e.loop){if(t.animating)return;i=parseInt(u(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?o<t.loopedSlides-n/2||o>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),o=a.children(`.${e.slideClass}[data-swiper-slide-index="${i}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),X.nextTick(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-n?(t.loopFix(),o=a.children(`.${e.slideClass}[data-swiper-slide-index="${i}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),X.nextTick(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}var Et={slideTo:bt,slideToLoop:St,slideNext:Ot,slidePrev:Tt,slideReset:At,slideToClosest:xt,slideToClickedSlide:Ct};function wt(){const t=this,{params:e,$wrapperEl:a}=t;a.children(`.${e.slideClass}.${e.slideDuplicateClass}`).remove();let n=a.children("."+e.slideClass);if(e.loopFillGroupWithBlank){const t=e.slidesPerGroup-n.length%e.slidesPerGroup;if(t!==e.slidesPerGroup){for(let n=0;n<t;n+=1){const t=u(o.createElement("div")).addClass(`${e.slideClass} ${e.slideBlankClass}`);a.append(t)}n=a.children("."+e.slideClass)}}"auto"!==e.slidesPerView||e.loopedSlides||(e.loopedSlides=n.length),t.loopedSlides=Math.ceil(parseFloat(e.loopedSlides||e.slidesPerView,10)),t.loopedSlides+=e.loopAdditionalSlides,t.loopedSlides>n.length&&(t.loopedSlides=n.length);const i=[],r=[];n.each((e,a)=>{const o=u(a);e<t.loopedSlides&&r.push(a),e<n.length&&e>=n.length-t.loopedSlides&&i.push(a),o.attr("data-swiper-slide-index",e)});for(let o=0;o<r.length;o+=1)a.append(u(r[o].cloneNode(!0)).addClass(e.slideDuplicateClass));for(let o=i.length-1;o>=0;o-=1)a.prepend(u(i[o].cloneNode(!0)).addClass(e.slideDuplicateClass))}function Mt(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:a,loopedSlides:n,allowSlidePrev:i,allowSlideNext:o,snapGrid:r,rtlTranslate:s}=t;let l;t.allowSlidePrev=!0,t.allowSlideNext=!0;const c=-r[e],u=c-t.getTranslate();if(e<n){l=a.length-3*n+e,l+=n;const i=t.slideTo(l,0,!1,!0);i&&0!==u&&t.setTranslate((s?-t.translate:t.translate)-u)}else if(e>=a.length-n){l=-a.length+e+n,l+=n;const i=t.slideTo(l,0,!1,!0);i&&0!==u&&t.setTranslate((s?-t.translate:t.translate)-u)}t.allowSlidePrev=i,t.allowSlideNext=o,t.emit("loopFix")}function kt(){const t=this,{$wrapperEl:e,params:a,slides:n}=t;e.children(`.${a.slideClass}.${a.slideDuplicateClass},.${a.slideClass}.${a.slideBlankClass}`).remove(),n.removeAttr("data-swiper-slide-index")}var It={loopCreate:wt,loopFix:Mt,loopDestroy:kt};function Dt(t){const e=this;if(Q.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const a=e.el;a.style.cursor="move",a.style.cursor=t?"-webkit-grabbing":"-webkit-grab",a.style.cursor=t?"-moz-grabbin":"-moz-grab",a.style.cursor=t?"grabbing":"grab"}function Lt(){const t=this;Q.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.el.style.cursor="")}var Rt={setGrabCursor:Dt,unsetGrabCursor:Lt};function Nt(t){const e=this,{$wrapperEl:a,params:n}=e;if(n.loop&&e.loopDestroy(),"object"===typeof t&&"length"in t)for(let i=0;i<t.length;i+=1)t[i]&&a.append(t[i]);else a.append(t);n.loop&&e.loopCreate(),n.observer&&Q.observer||e.update()}function Pt(t){const e=this,{params:a,$wrapperEl:n,activeIndex:i}=e;a.loop&&e.loopDestroy();let o=i+1;if("object"===typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&n.prepend(t[e]);o=i+t.length}else n.prepend(t);a.loop&&e.loopCreate(),a.observer&&Q.observer||e.update(),e.slideTo(o,0,!1)}function jt(t,e){const a=this,{$wrapperEl:n,params:i,activeIndex:o}=a;let r=o;i.loop&&(r-=a.loopedSlides,a.loopDestroy(),a.slides=n.children("."+i.slideClass));const s=a.slides.length;if(t<=0)return void a.prependSlide(e);if(t>=s)return void a.appendSlide(e);let l=r>t?r+1:r;const c=[];for(let u=s-1;u>=t;u-=1){const t=a.slides.eq(u);t.remove(),c.unshift(t)}if("object"===typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&n.append(e[t]);l=r>t?r+e.length:r}else n.append(e);for(let u=0;u<c.length;u+=1)n.append(c[u]);i.loop&&a.loopCreate(),i.observer&&Q.observer||a.update(),i.loop?a.slideTo(l+a.loopedSlides,0,!1):a.slideTo(l,0,!1)}function $t(t){const e=this,{params:a,$wrapperEl:n,activeIndex:i}=e;let o=i;a.loop&&(o-=e.loopedSlides,e.loopDestroy(),e.slides=n.children("."+a.slideClass));let r,s=o;if("object"===typeof t&&"length"in t){for(let a=0;a<t.length;a+=1)r=t[a],e.slides[r]&&e.slides.eq(r).remove(),r<s&&(s-=1);s=Math.max(s,0)}else r=t,e.slides[r]&&e.slides.eq(r).remove(),r<s&&(s-=1),s=Math.max(s,0);a.loop&&e.loopCreate(),a.observer&&Q.observer||e.update(),a.loop?e.slideTo(s+e.loopedSlides,0,!1):e.slideTo(s,0,!1)}function Ft(){const t=this,e=[];for(let a=0;a<t.slides.length;a+=1)e.push(a);t.removeSlide(e)}var Bt={appendSlide:Nt,prependSlide:Pt,addSlide:jt,removeSlide:$t,removeAllSlides:Ft};const Yt=function(){const t=s.navigator.platform,e=s.navigator.userAgent,a={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!s.cordova&&!s.phonegap),phonegap:!(!s.cordova&&!s.phonegap),electron:!1},n=s.screen.width,i=s.screen.height,o=e.match(/(Android);?[\s\/]+([\d.]+)?/);let r=e.match(/(iPad).*OS\s([\d_]+)/);const l=e.match(/(iPod)(.*OS\s([\d_]+))?/),c=!r&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u=e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0,d=e.indexOf("Edge/")>=0,h=e.indexOf("Gecko/")>=0&&e.indexOf("Firefox/")>=0,p="Win32"===t,f=e.toLowerCase().indexOf("electron")>=0;let m="MacIntel"===t;return!r&&m&&Q.touch&&(1024===n&&1366===i||834===n&&1194===i||834===n&&1112===i||768===n&&1024===i)&&(r=e.match(/(Version)\/([\d.]+)/),m=!1),a.ie=u,a.edge=d,a.firefox=h,o&&!p&&(a.os="android",a.osVersion=o[2],a.android=!0,a.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(r||c||l)&&(a.os="ios",a.ios=!0),c&&!l&&(a.osVersion=c[2].replace(/_/g,"."),a.iphone=!0),r&&(a.osVersion=r[2].replace(/_/g,"."),a.ipad=!0),l&&(a.osVersion=l[3]?l[3].replace(/_/g,"."):null,a.ipod=!0),a.ios&&a.osVersion&&e.indexOf("Version/")>=0&&"10"===a.osVersion.split(".")[0]&&(a.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),a.webView=!(!(c||r||l)||!e.match(/.*AppleWebKit(?!.*Safari)/i)&&!s.navigator.standalone)||s.matchMedia&&s.matchMedia("(display-mode: standalone)").matches,a.webview=a.webView,a.standalone=a.webView,a.desktop=!(a.ios||a.android)||f,a.desktop&&(a.electron=f,a.macos=m,a.windows=p,a.macos&&(a.os="macos"),a.windows&&(a.os="windows")),a.pixelRatio=s.devicePixelRatio||1,a}();function Ut(t){const e=this,a=e.touchEventsData,{params:n,touches:i}=e;if(e.animating&&n.preventInteractionOnTransition)return;let r=t;r.originalEvent&&(r=r.originalEvent);const l=u(r.target);if("wrapper"===n.touchEventsTarget&&!l.closest(e.wrapperEl).length)return;if(a.isTouchEvent="touchstart"===r.type,!a.isTouchEvent&&"which"in r&&3===r.which)return;if(!a.isTouchEvent&&"button"in r&&r.button>0)return;if(a.isTouched&&a.isMoved)return;if(n.noSwiping&&l.closest(n.noSwipingSelector?n.noSwipingSelector:"."+n.noSwipingClass)[0])return void(e.allowClick=!0);if(n.swipeHandler&&!l.closest(n.swipeHandler)[0])return;i.currentX="touchstart"===r.type?r.targetTouches[0].pageX:r.pageX,i.currentY="touchstart"===r.type?r.targetTouches[0].pageY:r.pageY;const c=i.currentX,d=i.currentY,h=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,p=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(!h||!(c<=p||c>=s.screen.width-p)){if(X.extend(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=c,i.startY=d,a.touchStartTime=X.now(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,n.threshold>0&&(a.allowThresholdMove=!1),"touchstart"!==r.type){let t=!0;l.is(a.formElements)&&(t=!1),o.activeElement&&u(o.activeElement).is(a.formElements)&&o.activeElement!==l[0]&&o.activeElement.blur();const i=t&&e.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||i)&&r.preventDefault()}e.emit("touchStart",r)}}function zt(t){const e=this,a=e.touchEventsData,{params:n,touches:i,rtlTranslate:r}=e;let s=t;if(s.originalEvent&&(s=s.originalEvent),!a.isTouched)return void(a.startMoving&&a.isScrolling&&e.emit("touchMoveOpposite",s));if(a.isTouchEvent&&"touchmove"!==s.type)return;const l="touchmove"===s.type&&s.targetTouches&&(s.targetTouches[0]||s.changedTouches[0]),c="touchmove"===s.type?l.pageX:s.pageX,d="touchmove"===s.type?l.pageY:s.pageY;if(s.preventedByNestedSwiper)return i.startX=c,void(i.startY=d);if(!e.allowTouchMove)return e.allowClick=!1,void(a.isTouched&&(X.extend(i,{startX:c,startY:d,currentX:c,currentY:d}),a.touchStartTime=X.now()));if(a.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(e.isVertical()){if(d<i.startY&&e.translate<=e.maxTranslate()||d>i.startY&&e.translate>=e.minTranslate())return a.isTouched=!1,void(a.isMoved=!1)}else if(c<i.startX&&e.translate<=e.maxTranslate()||c>i.startX&&e.translate>=e.minTranslate())return;if(a.isTouchEvent&&o.activeElement&&s.target===o.activeElement&&u(s.target).is(a.formElements))return a.isMoved=!0,void(e.allowClick=!1);if(a.allowTouchCallbacks&&e.emit("touchMove",s),s.targetTouches&&s.targetTouches.length>1)return;i.currentX=c,i.currentY=d;const h=i.currentX-i.startX,p=i.currentY-i.startY;if(e.params.threshold&&Math.sqrt(h**2+p**2)<e.params.threshold)return;if("undefined"===typeof a.isScrolling){let t;e.isHorizontal()&&i.currentY===i.startY||e.isVertical()&&i.currentX===i.startX?a.isScrolling=!1:h*h+p*p>=25&&(t=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,a.isScrolling=e.isHorizontal()?t>n.touchAngle:90-t>n.touchAngle)}if(a.isScrolling&&e.emit("touchMoveOpposite",s),"undefined"===typeof a.startMoving&&(i.currentX===i.startX&&i.currentY===i.startY||(a.startMoving=!0)),a.isScrolling)return void(a.isTouched=!1);if(!a.startMoving)return;e.allowClick=!1,!n.cssMode&&s.cancelable&&s.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&s.stopPropagation(),a.isMoved||(n.loop&&e.loopFix(),a.startTranslate=e.getTranslate(),e.setTransition(0),e.animating&&e.$wrapperEl.trigger("webkitTransitionEnd transitionend"),a.allowMomentumBounce=!1,!n.grabCursor||!0!==e.allowSlideNext&&!0!==e.allowSlidePrev||e.setGrabCursor(!0),e.emit("sliderFirstMove",s)),e.emit("sliderMove",s),a.isMoved=!0;let f=e.isHorizontal()?h:p;i.diff=f,f*=n.touchRatio,r&&(f=-f),e.swipeDirection=f>0?"prev":"next",a.currentTranslate=f+a.startTranslate;let m=!0,g=n.resistanceRatio;if(n.touchReleaseOnEdges&&(g=0),f>0&&a.currentTranslate>e.minTranslate()?(m=!1,n.resistance&&(a.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+a.startTranslate+f)**g)):f<0&&a.currentTranslate<e.maxTranslate()&&(m=!1,n.resistance&&(a.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-a.startTranslate-f)**g)),m&&(s.preventedByNestedSwiper=!0),!e.allowSlideNext&&"next"===e.swipeDirection&&a.currentTranslate<a.startTranslate&&(a.currentTranslate=a.startTranslate),!e.allowSlidePrev&&"prev"===e.swipeDirection&&a.currentTranslate>a.startTranslate&&(a.currentTranslate=a.startTranslate),n.threshold>0){if(!(Math.abs(f)>n.threshold||a.allowThresholdMove))return void(a.currentTranslate=a.startTranslate);if(!a.allowThresholdMove)return a.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,a.currentTranslate=a.startTranslate,void(i.diff=e.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY)}n.followFinger&&!n.cssMode&&((n.freeMode||n.watchSlidesProgress||n.watchSlidesVisibility)&&(e.updateActiveIndex(),e.updateSlidesClasses()),n.freeMode&&(0===a.velocities.length&&a.velocities.push({position:i[e.isHorizontal()?"startX":"startY"],time:a.touchStartTime}),a.velocities.push({position:i[e.isHorizontal()?"currentX":"currentY"],time:X.now()})),e.updateProgress(a.currentTranslate),e.setTranslate(a.currentTranslate))}function Vt(t){const e=this,a=e.touchEventsData,{params:n,touches:i,rtlTranslate:o,$wrapperEl:r,slidesGrid:s,snapGrid:l}=e;let c=t;if(c.originalEvent&&(c=c.originalEvent),a.allowTouchCallbacks&&e.emit("touchEnd",c),a.allowTouchCallbacks=!1,!a.isTouched)return a.isMoved&&n.grabCursor&&e.setGrabCursor(!1),a.isMoved=!1,void(a.startMoving=!1);n.grabCursor&&a.isMoved&&a.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const u=X.now(),d=u-a.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(c),e.emit("tap click",c),d<300&&u-a.lastClickTime<300&&e.emit("doubleTap doubleClick",c)),a.lastClickTime=X.now(),X.nextTick(()=>{e.destroyed||(e.allowClick=!0)}),!a.isTouched||!a.isMoved||!e.swipeDirection||0===i.diff||a.currentTranslate===a.startTranslate)return a.isTouched=!1,a.isMoved=!1,void(a.startMoving=!1);let h;if(a.isTouched=!1,a.isMoved=!1,a.startMoving=!1,h=n.followFinger?o?e.translate:-e.translate:-a.currentTranslate,n.cssMode)return;if(n.freeMode){if(h<-e.minTranslate())return void e.slideTo(e.activeIndex);if(h>-e.maxTranslate())return void(e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1));if(n.freeModeMomentum){if(a.velocities.length>1){const t=a.velocities.pop(),i=a.velocities.pop(),o=t.position-i.position,r=t.time-i.time;e.velocity=o/r,e.velocity/=2,Math.abs(e.velocity)<n.freeModeMinimumVelocity&&(e.velocity=0),(r>150||X.now()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=n.freeModeMomentumVelocityRatio,a.velocities.length=0;let t=1e3*n.freeModeMomentumRatio;const i=e.velocity*t;let s=e.translate+i;o&&(s=-s);let c,u=!1;const d=20*Math.abs(e.velocity)*n.freeModeMomentumBounceRatio;let h;if(s<e.maxTranslate())n.freeModeMomentumBounce?(s+e.maxTranslate()<-d&&(s=e.maxTranslate()-d),c=e.maxTranslate(),u=!0,a.allowMomentumBounce=!0):s=e.maxTranslate(),n.loop&&n.centeredSlides&&(h=!0);else if(s>e.minTranslate())n.freeModeMomentumBounce?(s-e.minTranslate()>d&&(s=e.minTranslate()+d),c=e.minTranslate(),u=!0,a.allowMomentumBounce=!0):s=e.minTranslate(),n.loop&&n.centeredSlides&&(h=!0);else if(n.freeModeSticky){let t;for(let e=0;e<l.length;e+=1)if(l[e]>-s){t=e;break}s=Math.abs(l[t]-s)<Math.abs(l[t-1]-s)||"next"===e.swipeDirection?l[t]:l[t-1],s=-s}if(h&&e.once("transitionEnd",()=>{e.loopFix()}),0!==e.velocity){if(t=o?Math.abs((-s-e.translate)/e.velocity):Math.abs((s-e.translate)/e.velocity),n.freeModeSticky){const a=Math.abs((o?-s:s)-e.translate),i=e.slidesSizesGrid[e.activeIndex];t=a<i?n.speed:a<2*i?1.5*n.speed:2.5*n.speed}}else if(n.freeModeSticky)return void e.slideToClosest();n.freeModeMomentumBounce&&u?(e.updateProgress(c),e.setTransition(t),e.setTranslate(s),e.transitionStart(!0,e.swipeDirection),e.animating=!0,r.transitionEnd(()=>{e&&!e.destroyed&&a.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(n.speed),setTimeout(()=>{e.setTranslate(c),r.transitionEnd(()=>{e&&!e.destroyed&&e.transitionEnd()})},0))})):e.velocity?(e.updateProgress(s),e.setTransition(t),e.setTranslate(s),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,r.transitionEnd(()=>{e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(s),e.updateActiveIndex(),e.updateSlidesClasses()}else if(n.freeModeSticky)return void e.slideToClosest();return void((!n.freeModeMomentum||d>=n.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses()))}let p=0,f=e.slidesSizesGrid[0];for(let _=0;_<s.length;_+=_<n.slidesPerGroupSkip?1:n.slidesPerGroup){const t=_<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;"undefined"!==typeof s[_+t]?h>=s[_]&&h<s[_+t]&&(p=_,f=s[_+t]-s[_]):h>=s[_]&&(p=_,f=s[s.length-1]-s[s.length-2])}const m=(h-s[p])/f,g=p<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(d>n.longSwipesMs){if(!n.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(m>=n.longSwipesRatio?e.slideTo(p+g):e.slideTo(p)),"prev"===e.swipeDirection&&(m>1-n.longSwipesRatio?e.slideTo(p+g):e.slideTo(p))}else{if(!n.shortSwipes)return void e.slideTo(e.activeIndex);const t=e.navigation&&(c.target===e.navigation.nextEl||c.target===e.navigation.prevEl);t?c.target===e.navigation.nextEl?e.slideTo(p+g):e.slideTo(p):("next"===e.swipeDirection&&e.slideTo(p+g),"prev"===e.swipeDirection&&e.slideTo(p))}}function Ht(){const t=this,{params:e,el:a}=t;if(a&&0===a.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:i,snapGrid:o}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=i,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function Gt(t){const e=this;e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function Wt(){const t=this,{wrapperEl:e,rtlTranslate:a}=t;let n;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=a?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:t.translate=-e.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const i=t.maxTranslate()-t.minTranslate();n=0===i?0:(t.translate-t.minTranslate())/i,n!==t.progress&&t.updateProgress(a?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let Kt=!1;function Zt(){}function qt(){const t=this,{params:e,touchEvents:a,el:n,wrapperEl:i}=t;t.onTouchStart=Ut.bind(t),t.onTouchMove=zt.bind(t),t.onTouchEnd=Vt.bind(t),e.cssMode&&(t.onScroll=Wt.bind(t)),t.onClick=Gt.bind(t);const r=!!e.nested;if(!Q.touch&&Q.pointerEvents)n.addEventListener(a.start,t.onTouchStart,!1),o.addEventListener(a.move,t.onTouchMove,r),o.addEventListener(a.end,t.onTouchEnd,!1);else{if(Q.touch){const i=!("touchstart"!==a.start||!Q.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};n.addEventListener(a.start,t.onTouchStart,i),n.addEventListener(a.move,t.onTouchMove,Q.passiveListener?{passive:!1,capture:r}:r),n.addEventListener(a.end,t.onTouchEnd,i),a.cancel&&n.addEventListener(a.cancel,t.onTouchEnd,i),Kt||(o.addEventListener("touchstart",Zt),Kt=!0)}(e.simulateTouch&&!Yt.ios&&!Yt.android||e.simulateTouch&&!Q.touch&&Yt.ios)&&(n.addEventListener("mousedown",t.onTouchStart,!1),o.addEventListener("mousemove",t.onTouchMove,r),o.addEventListener("mouseup",t.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&n.addEventListener("click",t.onClick,!0),e.cssMode&&i.addEventListener("scroll",t.onScroll),e.updateOnWindowResize?t.on(Yt.ios||Yt.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ht,!0):t.on("observerUpdate",Ht,!0)}function Xt(){const t=this,{params:e,touchEvents:a,el:n,wrapperEl:i}=t,r=!!e.nested;if(!Q.touch&&Q.pointerEvents)n.removeEventListener(a.start,t.onTouchStart,!1),o.removeEventListener(a.move,t.onTouchMove,r),o.removeEventListener(a.end,t.onTouchEnd,!1);else{if(Q.touch){const i=!("onTouchStart"!==a.start||!Q.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};n.removeEventListener(a.start,t.onTouchStart,i),n.removeEventListener(a.move,t.onTouchMove,r),n.removeEventListener(a.end,t.onTouchEnd,i),a.cancel&&n.removeEventListener(a.cancel,t.onTouchEnd,i)}(e.simulateTouch&&!Yt.ios&&!Yt.android||e.simulateTouch&&!Q.touch&&Yt.ios)&&(n.removeEventListener("mousedown",t.onTouchStart,!1),o.removeEventListener("mousemove",t.onTouchMove,r),o.removeEventListener("mouseup",t.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&n.removeEventListener("click",t.onClick,!0),e.cssMode&&i.removeEventListener("scroll",t.onScroll),t.off(Yt.ios||Yt.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ht)}var Qt={attachEvents:qt,detachEvents:Xt};function Jt(){const t=this,{activeIndex:e,initialized:a,loopedSlides:n=0,params:i,$el:o}=t,r=i.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const s=t.getBreakpoint(r);if(s&&t.currentBreakpoint!==s){const l=s in r?r[s]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(t=>{const e=l[t];"undefined"!==typeof e&&(l[t]="slidesPerView"!==t||"AUTO"!==e&&"auto"!==e?"slidesPerView"===t?parseFloat(e):parseInt(e,10):"auto")});const c=l||t.originalParams,u=i.slidesPerColumn>1,d=c.slidesPerColumn>1;u&&!d?o.removeClass(`${i.containerModifierClass}multirow ${i.containerModifierClass}multirow-column`):!u&&d&&(o.addClass(i.containerModifierClass+"multirow"),"column"===c.slidesPerColumnFill&&o.addClass(i.containerModifierClass+"multirow-column"));const h=c.direction&&c.direction!==i.direction,p=i.loop&&(c.slidesPerView!==i.slidesPerView||h);h&&a&&t.changeDirection(),X.extend(t.params,c),X.extend(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),t.currentBreakpoint=s,p&&a&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-n+t.loopedSlides,0,!1)),t.emit("breakpoint",c)}}function te(t){if(!t)return;let e=!1;const a=Object.keys(t).map(t=>{if("string"===typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1)),a=s.innerHeight*e;return{value:a,point:t}}return{value:t,point:t}});a.sort((t,e)=>parseInt(t.value,10)-parseInt(e.value,10));for(let n=0;n<a.length;n+=1){const{point:t,value:i}=a[n];i<=s.innerWidth&&(e=t)}return e||"max"}var ee={setBreakpoint:Jt,getBreakpoint:te};function ae(){const t=this,{classNames:e,params:a,rtl:n,$el:i}=t,o=[];o.push("initialized"),o.push(a.direction),a.freeMode&&o.push("free-mode"),a.autoHeight&&o.push("autoheight"),n&&o.push("rtl"),a.slidesPerColumn>1&&(o.push("multirow"),"column"===a.slidesPerColumnFill&&o.push("multirow-column")),Yt.android&&o.push("android"),Yt.ios&&o.push("ios"),a.cssMode&&o.push("css-mode"),o.forEach(t=>{e.push(a.containerModifierClass+t)}),i.addClass(e.join(" "))}function ne(){const t=this,{$el:e,classNames:a}=t;e.removeClass(a.join(" "))}var ie={addClasses:ae,removeClasses:ne};function oe(t,e,a,n,i,o){let r;function l(){o&&o()}const c=u(t).parent("picture")[0];c||t.complete&&i?l():e?(r=new s.Image,r.onload=l,r.onerror=l,n&&(r.sizes=n),a&&(r.srcset=a),e&&(r.src=e)):l()}function re(){const t=this;function e(){"undefined"!==typeof t&&null!==t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(let a=0;a<t.imagesToLoad.length;a+=1){const n=t.imagesToLoad[a];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}var se={loadImage:oe,preloadImages:re};function le(){const t=this,e=t.params,a=t.isLocked,n=t.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(t.slides.length-1)+t.slides[0].offsetWidth*t.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&n?t.isLocked=n<=t.size:t.isLocked=1===t.snapGrid.length,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,a!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),a&&a!==t.isLocked&&(t.isEnd=!1,t.navigation&&t.navigation.update())}var ce={checkOverflow:le},ue={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0};const de={update:ct,translate:mt,transition:yt,slide:Et,loop:It,grabCursor:Rt,manipulation:Bt,events:Qt,breakpoints:ee,checkOverflow:ce,classes:ie,images:se},he={};class pe extends J{constructor(...t){let e,a;1===t.length&&t[0].constructor&&t[0].constructor===Object?a=t[0]:[e,a]=t,a||(a={}),a=X.extend({},a),e&&!a.el&&(a.el=e),super(a),Object.keys(de).forEach(t=>{Object.keys(de[t]).forEach(e=>{pe.prototype[e]||(pe.prototype[e]=de[t][e])})});const n=this;"undefined"===typeof n.modules&&(n.modules={}),Object.keys(n.modules).forEach(t=>{const e=n.modules[t];if(e.params){const t=Object.keys(e.params)[0],n=e.params[t];if("object"!==typeof n||null===n)return;if(!(t in a)||!("enabled"in n))return;!0===a[t]&&(a[t]={enabled:!0}),"object"!==typeof a[t]||"enabled"in a[t]||(a[t].enabled=!0),a[t]||(a[t]={enabled:!1})}});const i=X.extend({},ue);n.useModulesParams(i),n.params=X.extend({},i,he,a),n.originalParams=X.extend({},n.params),n.passedParams=X.extend({},a),n.$=u;const o=u(n.params.el);if(e=o[0],!e)return;if(o.length>1){const t=[];return o.each((e,n)=>{const i=X.extend({},a,{el:n});t.push(new pe(i))}),t}let r;return e.swiper=n,o.data("swiper",n),e&&e.shadowRoot&&e.shadowRoot.querySelector?(r=u(e.shadowRoot.querySelector("."+n.params.wrapperClass)),r.children=t=>o.children(t)):r=o.children("."+n.params.wrapperClass),X.extend(n,{$el:o,el:e,$wrapperEl:r,wrapperEl:r[0],classNames:[],slides:u(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===n.params.direction},isVertical(){return"vertical"===n.params.direction},rtl:"rtl"===e.dir.toLowerCase()||"rtl"===o.css("direction"),rtlTranslate:"horizontal"===n.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===o.css("direction")),wrongRTL:"-webkit-box"===r.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEvents:function(){const t=["touchstart","touchmove","touchend","touchcancel"];let e=["mousedown","mousemove","mouseup"];return Q.pointerEvents&&(e=["pointerdown","pointermove","pointerup"]),n.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]},n.touchEventsDesktop={start:e[0],move:e[1],end:e[2]},Q.touch||!n.params.simulateTouch?n.touchEventsTouch:n.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:X.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.useModules(),n.params.init&&n.init(),n}slidesPerViewDynamic(){const t=this,{params:e,slides:a,slidesGrid:n,size:i,activeIndex:o}=t;let r=1;if(e.centeredSlides){let t,e=a[o].swiperSlideSize;for(let n=o+1;n<a.length;n+=1)a[n]&&!t&&(e+=a[n].swiperSlideSize,r+=1,e>i&&(t=!0));for(let n=o-1;n>=0;n-=1)a[n]&&!t&&(e+=a[n].swiperSlideSize,r+=1,e>i&&(t=!0))}else for(let s=o+1;s<a.length;s+=1)n[s]-n[o]<i&&(r+=1);return r}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:a}=t;function n(){const e=t.rtlTranslate?-1*t.translate:t.translate,a=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}let i;a.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode?(n(),t.params.autoHeight&&t.updateAutoHeight()):(i=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),i||n()),a.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e=!0){const a=this,n=a.params.direction;return t||(t="horizontal"===n?"vertical":"horizontal"),t===n||"horizontal"!==t&&"vertical"!==t||(a.$el.removeClass(`${a.params.containerModifierClass}${n}`).addClass(`${a.params.containerModifierClass}${t}`),a.params.direction=t,a.slides.each((e,a)=>{"vertical"===t?a.style.width="":a.style.height=""}),a.emit("changeDirection"),e&&a.update()),a}init(){const t=this;t.initialized||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit),t.attachEvents(),t.initialized=!0,t.emit("init"))}destroy(t=!0,e=!0){const a=this,{params:n,$el:i,$wrapperEl:o,slides:r}=a;return"undefined"===typeof a.params||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),n.loop&&a.loopDestroy(),e&&(a.removeClasses(),i.removeAttr("style"),o.removeAttr("style"),r&&r.length&&r.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(t=>{a.off(t)}),!1!==t&&(a.$el[0].swiper=null,a.$el.data("swiper",null),X.deleteProps(a)),a.destroyed=!0),null}static extendDefaults(t){X.extend(he,t)}static get extendedDefaults(){return he}static get defaults(){return ue}static get Class(){return J}static get $(){return u}}var fe={name:"device",proto:{device:Yt},static:{device:Yt}},me={name:"support",proto:{support:Q},static:{support:Q}};const ge=function(){function t(){const t=s.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}return{isEdge:!!s.navigator.userAgent.match(/Edge/g),isSafari:t(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(s.navigator.userAgent)}}();var _e={name:"browser",proto:{browser:ge},static:{browser:ge}},ve={name:"resize",create(){const t=this;X.extend(t,{resize:{resizeHandler(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init(){const t=this;s.addEventListener("resize",t.resize.resizeHandler),s.addEventListener("orientationchange",t.resize.orientationChangeHandler)},destroy(){const t=this;s.removeEventListener("resize",t.resize.resizeHandler),s.removeEventListener("orientationchange",t.resize.orientationChangeHandler)}}};const ye={func:s.MutationObserver||s.WebkitMutationObserver,attach(t,e={}){const a=this,n=ye.func,i=new n(t=>{if(1===t.length)return void a.emit("observerUpdate",t[0]);const e=function(){a.emit("observerUpdate",t[0])};s.requestAnimationFrame?s.requestAnimationFrame(e):s.setTimeout(e,0)});i.observe(t,{attributes:"undefined"===typeof e.attributes||e.attributes,childList:"undefined"===typeof e.childList||e.childList,characterData:"undefined"===typeof e.characterData||e.characterData}),a.observer.observers.push(i)},init(){const t=this;if(Q.observer&&t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let a=0;a<e.length;a+=1)t.observer.attach(e[a])}t.observer.attach(t.$el[0],{childList:t.params.observeSlideChildren}),t.observer.attach(t.$wrapperEl[0],{attributes:!1})}},destroy(){const t=this;t.observer.observers.forEach(t=>{t.disconnect()}),t.observer.observers=[]}};var be={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){const t=this;X.extend(t,{observer:{init:ye.init.bind(t),attach:ye.attach.bind(t),destroy:ye.destroy.bind(t),observers:[]}})},on:{init(){const t=this;t.observer.init()},destroy(){const t=this;t.observer.destroy()}}};const Se={update(t){const e=this,{slidesPerView:a,slidesPerGroup:n,centeredSlides:i}=e.params,{addSlidesBefore:o,addSlidesAfter:r}=e.params.virtual,{from:s,to:l,slides:c,slidesGrid:u,renderSlide:d,offset:h}=e.virtual;e.updateActiveIndex();const p=e.activeIndex||0;let f,m,g;f=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",i?(m=Math.floor(a/2)+n+o,g=Math.floor(a/2)+n+r):(m=a+(n-1)+o,g=n+r);const _=Math.max((p||0)-g,0),v=Math.min((p||0)+m,c.length-1),y=(e.slidesGrid[_]||0)-(e.slidesGrid[0]||0);function b(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(X.extend(e.virtual,{from:_,to:v,offset:y,slidesGrid:e.slidesGrid}),s===_&&l===v&&!t)return e.slidesGrid!==u&&y!==h&&e.slides.css(f,y+"px"),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:y,from:_,to:v,slides:function(){const t=[];for(let e=_;e<=v;e+=1)t.push(c[e]);return t}()}),void b();const S=[],O=[];if(t)e.$wrapperEl.find("."+e.params.slideClass).remove();else for(let T=s;T<=l;T+=1)(T<_||T>v)&&e.$wrapperEl.find(`.${e.params.slideClass}[data-swiper-slide-index="${T}"]`).remove();for(let T=0;T<c.length;T+=1)T>=_&&T<=v&&("undefined"===typeof l||t?O.push(T):(T>l&&O.push(T),T<s&&S.push(T)));O.forEach(t=>{e.$wrapperEl.append(d(c[t],t))}),S.sort((t,e)=>e-t).forEach(t=>{e.$wrapperEl.prepend(d(c[t],t))}),e.$wrapperEl.children(".swiper-slide").css(f,y+"px"),b()},renderSlide(t,e){const a=this,n=a.params.virtual;if(n.cache&&a.virtual.cache[e])return a.virtual.cache[e];const i=n.renderSlide?u(n.renderSlide.call(a,t,e)):u(`<div class="${a.params.slideClass}" data-swiper-slide-index="${e}">${t}</div>`);return i.attr("data-swiper-slide-index")||i.attr("data-swiper-slide-index",e),n.cache&&(a.virtual.cache[e]=i),i},appendSlide(t){const e=this;if("object"===typeof t&&"length"in t)for(let a=0;a<t.length;a+=1)t[a]&&e.virtual.slides.push(t[a]);else e.virtual.slides.push(t);e.virtual.update(!0)},prependSlide(t){const e=this,a=e.activeIndex;let n=a+1,i=1;if(Array.isArray(t)){for(let a=0;a<t.length;a+=1)t[a]&&e.virtual.slides.unshift(t[a]);n=a+t.length,i=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){const t=e.virtual.cache,a={};Object.keys(t).forEach(e=>{const n=t[e],o=n.attr("data-swiper-slide-index");o&&n.attr("data-swiper-slide-index",parseInt(o,10)+1),a[parseInt(e,10)+i]=n}),e.virtual.cache=a}e.virtual.update(!0),e.slideTo(n,0)},removeSlide(t){const e=this;if("undefined"===typeof t||null===t)return;let a=e.activeIndex;if(Array.isArray(t))for(let n=t.length-1;n>=0;n-=1)e.virtual.slides.splice(t[n],1),e.params.virtual.cache&&delete e.virtual.cache[t[n]],t[n]<a&&(a-=1),a=Math.max(a,0);else e.virtual.slides.splice(t,1),e.params.virtual.cache&&delete e.virtual.cache[t],t<a&&(a-=1),a=Math.max(a,0);e.virtual.update(!0),e.slideTo(a,0)},removeAllSlides(){const t=this;t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),t.virtual.update(!0),t.slideTo(0,0)}};var Oe={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){const t=this;X.extend(t,{virtual:{update:Se.update.bind(t),appendSlide:Se.appendSlide.bind(t),prependSlide:Se.prependSlide.bind(t),removeSlide:Se.removeSlide.bind(t),removeAllSlides:Se.removeAllSlides.bind(t),renderSlide:Se.renderSlide.bind(t),slides:t.params.virtual.slides,cache:{}}})},on:{beforeInit(){const t=this;if(!t.params.virtual.enabled)return;t.classNames.push(t.params.containerModifierClass+"virtual");const e={watchSlidesProgress:!0};X.extend(t.params,e),X.extend(t.originalParams,e),t.params.initialSlide||t.virtual.update()},setTranslate(){const t=this;t.params.virtual.enabled&&t.virtual.update()}}};const Te={handle(t){const e=this,{rtlTranslate:a}=e;let n=t;n.originalEvent&&(n=n.originalEvent);const i=n.keyCode||n.charCode,r=e.params.keyboard.pageUpDown,l=r&&33===i,c=r&&34===i,u=37===i,d=39===i,h=38===i,p=40===i;if(!e.allowSlideNext&&(e.isHorizontal()&&d||e.isVertical()&&p||c))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&u||e.isVertical()&&h||l))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey)&&(!o.activeElement||!o.activeElement.nodeName||"input"!==o.activeElement.nodeName.toLowerCase()&&"textarea"!==o.activeElement.nodeName.toLowerCase())){if(e.params.keyboard.onlyInViewport&&(l||c||u||d||h||p)){let t=!1;if(e.$el.parents("."+e.params.slideClass).length>0&&0===e.$el.parents("."+e.params.slideActiveClass).length)return;const n=s.innerWidth,i=s.innerHeight,o=e.$el.offset();a&&(o.left-=e.$el[0].scrollLeft);const r=[[o.left,o.top],[o.left+e.width,o.top],[o.left,o.top+e.height],[o.left+e.width,o.top+e.height]];for(let e=0;e<r.length;e+=1){const a=r[e];a[0]>=0&&a[0]<=n&&a[1]>=0&&a[1]<=i&&(t=!0)}if(!t)return}e.isHorizontal()?((l||c||u||d)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),((c||d)&&!a||(l||u)&&a)&&e.slideNext(),((l||u)&&!a||(c||d)&&a)&&e.slidePrev()):((l||c||h||p)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),(c||p)&&e.slideNext(),(l||h)&&e.slidePrev()),e.emit("keyPress",i)}},enable(){const t=this;t.keyboard.enabled||(u(o).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable(){const t=this;t.keyboard.enabled&&(u(o).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}};var Ae={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create(){const t=this;X.extend(t,{keyboard:{enabled:!1,enable:Te.enable.bind(t),disable:Te.disable.bind(t),handle:Te.handle.bind(t)}})},on:{init(){const t=this;t.params.keyboard.enabled&&t.keyboard.enable()},destroy(){const t=this;t.keyboard.enabled&&t.keyboard.disable()}}};function xe(){const t="onwheel";let e=t in o;if(!e){const a=o.createElement("div");a.setAttribute(t,"return;"),e="function"===typeof a[t]}return!e&&o.implementation&&o.implementation.hasFeature&&!0!==o.implementation.hasFeature("","")&&(e=o.implementation.hasFeature("Events.wheel","3.0")),e}const Ce={lastScrollTime:X.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event(){return s.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":xe()?"wheel":"mousewheel"},normalize(t){const e=10,a=40,n=800;let i=0,o=0,r=0,s=0;return"detail"in t&&(o=t.detail),"wheelDelta"in t&&(o=-t.wheelDelta/120),"wheelDeltaY"in t&&(o=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(i=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(i=o,o=0),r=i*e,s=o*e,"deltaY"in t&&(s=t.deltaY),"deltaX"in t&&(r=t.deltaX),t.shiftKey&&!r&&(r=s,s=0),(r||s)&&t.deltaMode&&(1===t.deltaMode?(r*=a,s*=a):(r*=n,s*=n)),r&&!i&&(i=r<1?-1:1),s&&!o&&(o=s<1?-1:1),{spinX:i,spinY:o,pixelX:r,pixelY:s}},handleMouseEnter(){const t=this;t.mouseEntered=!0},handleMouseLeave(){const t=this;t.mouseEntered=!1},handle(t){let e=t;const a=this,n=a.params.mousewheel;a.params.cssMode&&e.preventDefault();let i=a.$el;if("container"!==a.params.mousewheel.eventsTarged&&(i=u(a.params.mousewheel.eventsTarged)),!a.mouseEntered&&!i[0].contains(e.target)&&!n.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);let o=0;const r=a.rtlTranslate?-1:1,s=Ce.normalize(e);if(n.forceToAxis)if(a.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;o=-s.pixelX*r}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;o=-s.pixelY}else o=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*r:-s.pixelY;if(0===o)return!0;if(n.invert&&(o=-o),a.params.freeMode){const t={time:X.now(),delta:Math.abs(o),direction:Math.sign(o)},{lastEventBeforeSnap:i}=a.mousewheel,r=i&&t.time<i.time+500&&t.delta<=i.delta&&t.direction===i.direction;if(!r){a.mousewheel.lastEventBeforeSnap=void 0,a.params.loop&&a.loopFix();let i=a.getTranslate()+o*n.sensitivity;const s=a.isBeginning,l=a.isEnd;if(i>=a.minTranslate()&&(i=a.minTranslate()),i<=a.maxTranslate()&&(i=a.maxTranslate()),a.setTransition(0),a.setTranslate(i),a.updateProgress(),a.updateActiveIndex(),a.updateSlidesClasses(),(!s&&a.isBeginning||!l&&a.isEnd)&&a.updateSlidesClasses(),a.params.freeModeSticky){clearTimeout(a.mousewheel.timeout),a.mousewheel.timeout=void 0;const e=a.mousewheel.recentWheelEvents;e.length>=15&&e.shift();const n=e.length?e[e.length-1]:void 0,i=e[0];if(e.push(t),n&&(t.delta>n.delta||t.direction!==n.direction))e.splice(0);else if(e.length>=15&&t.time-i.time<500&&i.delta-t.delta>=1&&t.delta<=6){const n=o>0?.8:.2;a.mousewheel.lastEventBeforeSnap=t,e.splice(0),a.mousewheel.timeout=X.nextTick(()=>{a.slideToClosest(a.params.speed,!0,void 0,n)},0)}a.mousewheel.timeout||(a.mousewheel.timeout=X.nextTick(()=>{const n=.5;a.mousewheel.lastEventBeforeSnap=t,e.splice(0),a.slideToClosest(a.params.speed,!0,void 0,n)},500))}if(r||a.emit("scroll",e),a.params.autoplay&&a.params.autoplayDisableOnInteraction&&a.autoplay.stop(),i===a.minTranslate()||i===a.maxTranslate())return!0}}else{const e={time:X.now(),delta:Math.abs(o),direction:Math.sign(o),raw:t},n=a.mousewheel.recentWheelEvents;n.length>=2&&n.shift();const i=n.length?n[n.length-1]:void 0;if(n.push(e),i?(e.direction!==i.direction||e.delta>i.delta||e.time>i.time+150)&&a.mousewheel.animateSlider(e):a.mousewheel.animateSlider(e),a.mousewheel.releaseScroll(e))return!0}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},animateSlider(t){const e=this;return t.delta>=6&&X.now()-e.mousewheel.lastScrollTime<60||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),e.emit("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),e.emit("scroll",t.raw)),e.mousewheel.lastScrollTime=(new s.Date).getTime(),!1)},releaseScroll(t){const e=this,a=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&a.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&a.releaseOnEdges)return!0;return!1},enable(){const t=this,e=Ce.event();if(t.params.cssMode)return t.wrapperEl.removeEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(t.mousewheel.enabled)return!1;let a=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(a=u(t.params.mousewheel.eventsTarged)),a.on("mouseenter",t.mousewheel.handleMouseEnter),a.on("mouseleave",t.mousewheel.handleMouseLeave),a.on(e,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable(){const t=this,e=Ce.event();if(t.params.cssMode)return t.wrapperEl.addEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(!t.mousewheel.enabled)return!1;let a=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(a=u(t.params.mousewheel.eventsTarged)),a.off(e,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}};var Ee={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){const t=this;X.extend(t,{mousewheel:{enabled:!1,enable:Ce.enable.bind(t),disable:Ce.disable.bind(t),handle:Ce.handle.bind(t),handleMouseEnter:Ce.handleMouseEnter.bind(t),handleMouseLeave:Ce.handleMouseLeave.bind(t),animateSlider:Ce.animateSlider.bind(t),releaseScroll:Ce.releaseScroll.bind(t),lastScrollTime:X.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init(){const t=this;!t.params.mousewheel.enabled&&t.params.cssMode&&t.mousewheel.disable(),t.params.mousewheel.enabled&&t.mousewheel.enable()},destroy(){const t=this;t.params.cssMode&&t.mousewheel.enable(),t.mousewheel.enabled&&t.mousewheel.disable()}}};const we={update(){const t=this,e=t.params.navigation;if(t.params.loop)return;const{$nextEl:a,$prevEl:n}=t.navigation;n&&n.length>0&&(t.isBeginning?n.addClass(e.disabledClass):n.removeClass(e.disabledClass),n[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass)),a&&a.length>0&&(t.isEnd?a.addClass(e.disabledClass):a.removeClass(e.disabledClass),a[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass))},onPrevClick(t){const e=this;t.preventDefault(),e.isBeginning&&!e.params.loop||e.slidePrev()},onNextClick(t){const e=this;t.preventDefault(),e.isEnd&&!e.params.loop||e.slideNext()},init(){const t=this,e=t.params.navigation;if(!e.nextEl&&!e.prevEl)return;let a,n;e.nextEl&&(a=u(e.nextEl),t.params.uniqueNavElements&&"string"===typeof e.nextEl&&a.length>1&&1===t.$el.find(e.nextEl).length&&(a=t.$el.find(e.nextEl))),e.prevEl&&(n=u(e.prevEl),t.params.uniqueNavElements&&"string"===typeof e.prevEl&&n.length>1&&1===t.$el.find(e.prevEl).length&&(n=t.$el.find(e.prevEl))),a&&a.length>0&&a.on("click",t.navigation.onNextClick),n&&n.length>0&&n.on("click",t.navigation.onPrevClick),X.extend(t.navigation,{$nextEl:a,nextEl:a&&a[0],$prevEl:n,prevEl:n&&n[0]})},destroy(){const t=this,{$nextEl:e,$prevEl:a}=t.navigation;e&&e.length&&(e.off("click",t.navigation.onNextClick),e.removeClass(t.params.navigation.disabledClass)),a&&a.length&&(a.off("click",t.navigation.onPrevClick),a.removeClass(t.params.navigation.disabledClass))}};var Me={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create(){const t=this;X.extend(t,{navigation:{init:we.init.bind(t),update:we.update.bind(t),destroy:we.destroy.bind(t),onNextClick:we.onNextClick.bind(t),onPrevClick:we.onPrevClick.bind(t)}})},on:{init(){const t=this;t.navigation.init(),t.navigation.update()},toEdge(){const t=this;t.navigation.update()},fromEdge(){const t=this;t.navigation.update()},destroy(){const t=this;t.navigation.destroy()},click(t){const e=this,{$nextEl:a,$prevEl:n}=e.navigation;if(e.params.navigation.hideOnClick&&!u(t.target).is(n)&&!u(t.target).is(a)){let t;a?t=a.hasClass(e.params.navigation.hiddenClass):n&&(t=n.hasClass(e.params.navigation.hiddenClass)),!0===t?e.emit("navigationShow",e):e.emit("navigationHide",e),a&&a.toggleClass(e.params.navigation.hiddenClass),n&&n.toggleClass(e.params.navigation.hiddenClass)}}}};const ke={update(){const t=this,e=t.rtl,a=t.params.pagination;if(!a.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length)return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,i=t.pagination.$el;let o;const r=t.params.loop?Math.ceil((n-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(o=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),o>n-1-2*t.loopedSlides&&(o-=n-2*t.loopedSlides),o>r-1&&(o-=r),o<0&&"bullets"!==t.params.paginationType&&(o=r+o)):o="undefined"!==typeof t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===a.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const n=t.pagination.bullets;let r,s,l;if(a.dynamicBullets&&(t.pagination.bulletSize=n.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),i.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(a.dynamicMainBullets+4)+"px"),a.dynamicMainBullets>1&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=o-t.previousIndex,t.pagination.dynamicBulletIndex>a.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=a.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),r=o-t.pagination.dynamicBulletIndex,s=r+(Math.min(n.length,a.dynamicMainBullets)-1),l=(s+r)/2),n.removeClass(`${a.bulletActiveClass} ${a.bulletActiveClass}-next ${a.bulletActiveClass}-next-next ${a.bulletActiveClass}-prev ${a.bulletActiveClass}-prev-prev ${a.bulletActiveClass}-main`),i.length>1)n.each((t,e)=>{const n=u(e),i=n.index();i===o&&n.addClass(a.bulletActiveClass),a.dynamicBullets&&(i>=r&&i<=s&&n.addClass(a.bulletActiveClass+"-main"),i===r&&n.prev().addClass(a.bulletActiveClass+"-prev").prev().addClass(a.bulletActiveClass+"-prev-prev"),i===s&&n.next().addClass(a.bulletActiveClass+"-next").next().addClass(a.bulletActiveClass+"-next-next"))});else{const e=n.eq(o),i=e.index();if(e.addClass(a.bulletActiveClass),a.dynamicBullets){const e=n.eq(r),o=n.eq(s);for(let t=r;t<=s;t+=1)n.eq(t).addClass(a.bulletActiveClass+"-main");if(t.params.loop)if(i>=n.length-a.dynamicMainBullets){for(let t=a.dynamicMainBullets;t>=0;t-=1)n.eq(n.length-t).addClass(a.bulletActiveClass+"-main");n.eq(n.length-a.dynamicMainBullets-1).addClass(a.bulletActiveClass+"-prev")}else e.prev().addClass(a.bulletActiveClass+"-prev").prev().addClass(a.bulletActiveClass+"-prev-prev"),o.next().addClass(a.bulletActiveClass+"-next").next().addClass(a.bulletActiveClass+"-next-next");else e.prev().addClass(a.bulletActiveClass+"-prev").prev().addClass(a.bulletActiveClass+"-prev-prev"),o.next().addClass(a.bulletActiveClass+"-next").next().addClass(a.bulletActiveClass+"-next-next")}}if(a.dynamicBullets){const i=Math.min(n.length,a.dynamicMainBullets+4),o=(t.pagination.bulletSize*i-t.pagination.bulletSize)/2-l*t.pagination.bulletSize,r=e?"right":"left";n.css(t.isHorizontal()?r:"top",o+"px")}}if("fraction"===a.type&&(i.find("."+a.currentClass).text(a.formatFractionCurrent(o+1)),i.find("."+a.totalClass).text(a.formatFractionTotal(r))),"progressbar"===a.type){let e;e=a.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const n=(o+1)/r;let s=1,l=1;"horizontal"===e?s=n:l=n,i.find("."+a.progressbarFillClass).transform(`translate3d(0,0,0) scaleX(${s}) scaleY(${l})`).transition(t.params.speed)}"custom"===a.type&&a.renderCustom?(i.html(a.renderCustom(t,o+1,r)),t.emit("paginationRender",t,i[0])):t.emit("paginationUpdate",t,i[0]),i[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](a.lockClass)},render(){const t=this,e=t.params.pagination;if(!e.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length)return;const a=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,n=t.pagination.$el;let i="";if("bullets"===e.type){const o=t.params.loop?Math.ceil((a-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;for(let a=0;a<o;a+=1)e.renderBullet?i+=e.renderBullet.call(t,a,e.bulletClass):i+=`<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`;n.html(i),t.pagination.bullets=n.find("."+e.bulletClass)}"fraction"===e.type&&(i=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`,n.html(i)),"progressbar"===e.type&&(i=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`,n.html(i)),"custom"!==e.type&&t.emit("paginationRender",t.pagination.$el[0])},init(){const t=this,e=t.params.pagination;if(!e.el)return;let a=u(e.el);0!==a.length&&(t.params.uniqueNavElements&&"string"===typeof e.el&&a.length>1&&(a=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&a.addClass(e.clickableClass),a.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(a.addClass(`${e.modifierClass}${e.type}-dynamic`),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&a.addClass(e.progressbarOppositeClass),e.clickable&&a.on("click","."+e.bulletClass,(function(e){e.preventDefault();let a=u(this).index()*t.params.slidesPerGroup;t.params.loop&&(a+=t.loopedSlides),t.slideTo(a)})),X.extend(t.pagination,{$el:a,el:a[0]}))},destroy(){const t=this,e=t.params.pagination;if(!e.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length)return;const a=t.pagination.$el;a.removeClass(e.hiddenClass),a.removeClass(e.modifierClass+e.type),t.pagination.bullets&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&a.off("click","."+e.bulletClass)}};var Ie={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create(){const t=this;X.extend(t,{pagination:{init:ke.init.bind(t),render:ke.render.bind(t),update:ke.update.bind(t),destroy:ke.destroy.bind(t),dynamicBulletIndex:0}})},on:{init(){const t=this;t.pagination.init(),t.pagination.render(),t.pagination.update()},activeIndexChange(){const t=this;(t.params.loop||"undefined"===typeof t.snapIndex)&&t.pagination.update()},snapIndexChange(){const t=this;t.params.loop||t.pagination.update()},slidesLengthChange(){const t=this;t.params.loop&&(t.pagination.render(),t.pagination.update())},snapGridLengthChange(){const t=this;t.params.loop||(t.pagination.render(),t.pagination.update())},destroy(){const t=this;t.pagination.destroy()},click(t){const e=this;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&e.pagination.$el.length>0&&!u(t.target).hasClass(e.params.pagination.bulletClass)){const t=e.pagination.$el.hasClass(e.params.pagination.hiddenClass);!0===t?e.emit("paginationShow",e):e.emit("paginationHide",e),e.pagination.$el.toggleClass(e.params.pagination.hiddenClass)}}}};const De={setTranslate(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:a,progress:n}=t,{dragSize:i,trackSize:o,$dragEl:r,$el:s}=e,l=t.params.scrollbar;let c=i,u=(o-i)*n;a?(u=-u,u>0?(c=i-u,u=0):-u+i>o&&(c=o+u)):u<0?(c=i+u,u=0):u+i>o&&(c=o-u),t.isHorizontal()?(r.transform(`translate3d(${u}px, 0, 0)`),r[0].style.width=c+"px"):(r.transform(`translate3d(0px, ${u}px, 0)`),r[0].style.height=c+"px"),l.hide&&(clearTimeout(t.scrollbar.timeout),s[0].style.opacity=1,t.scrollbar.timeout=setTimeout(()=>{s[0].style.opacity=0,s.transition(400)},1e3))},setTransition(t){const e=this;e.params.scrollbar.el&&e.scrollbar.el&&e.scrollbar.$dragEl.transition(t)},updateSize(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:a,$el:n}=e;a[0].style.width="",a[0].style.height="";const i=t.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,o=t.size/t.virtualSize,r=o*(i/t.size);let s;s="auto"===t.params.scrollbar.dragSize?i*o:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?a[0].style.width=s+"px":a[0].style.height=s+"px",n[0].style.display=o>=1?"none":"",t.params.scrollbar.hide&&(n[0].style.opacity=0),X.extend(e,{trackSize:i,divider:o,moveDivider:r,dragSize:s}),e.$el[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)},getPointerPosition(t){const e=this;return e.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientX:t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientY:t.clientY},setDragPosition(t){const e=this,{scrollbar:a,rtlTranslate:n}=e,{$el:i,dragSize:o,trackSize:r,dragStartPos:s}=a;let l;l=(a.getPointerPosition(t)-i.offset()[e.isHorizontal()?"left":"top"]-(null!==s?s:o/2))/(r-o),l=Math.max(Math.min(l,1),0),n&&(l=1-l);const c=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*l;e.updateProgress(c),e.setTranslate(c),e.updateActiveIndex(),e.updateSlidesClasses()},onDragStart(t){const e=this,a=e.params.scrollbar,{scrollbar:n,$wrapperEl:i}=e,{$el:o,$dragEl:r}=n;e.scrollbar.isTouched=!0,e.scrollbar.dragStartPos=t.target===r[0]||t.target===r?n.getPointerPosition(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),i.transition(100),r.transition(100),n.setDragPosition(t),clearTimeout(e.scrollbar.dragTimeout),o.transition(0),a.hide&&o.css("opacity",1),e.params.cssMode&&e.$wrapperEl.css("scroll-snap-type","none"),e.emit("scrollbarDragStart",t)},onDragMove(t){const e=this,{scrollbar:a,$wrapperEl:n}=e,{$el:i,$dragEl:o}=a;e.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,a.setDragPosition(t),n.transition(0),i.transition(0),o.transition(0),e.emit("scrollbarDragMove",t))},onDragEnd(t){const e=this,a=e.params.scrollbar,{scrollbar:n,$wrapperEl:i}=e,{$el:o}=n;e.scrollbar.isTouched&&(e.scrollbar.isTouched=!1,e.params.cssMode&&(e.$wrapperEl.css("scroll-snap-type",""),i.transition("")),a.hide&&(clearTimeout(e.scrollbar.dragTimeout),e.scrollbar.dragTimeout=X.nextTick(()=>{o.css("opacity",0),o.transition(400)},1e3)),e.emit("scrollbarDragEnd",t),a.snapOnRelease&&e.slideToClosest())},enableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,touchEventsTouch:a,touchEventsDesktop:n,params:i}=t,r=e.$el,s=r[0],l=!(!Q.passiveListener||!i.passiveListeners)&&{passive:!1,capture:!1},c=!(!Q.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};Q.touch?(s.addEventListener(a.start,t.scrollbar.onDragStart,l),s.addEventListener(a.move,t.scrollbar.onDragMove,l),s.addEventListener(a.end,t.scrollbar.onDragEnd,c)):(s.addEventListener(n.start,t.scrollbar.onDragStart,l),o.addEventListener(n.move,t.scrollbar.onDragMove,l),o.addEventListener(n.end,t.scrollbar.onDragEnd,c))},disableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,touchEventsTouch:a,touchEventsDesktop:n,params:i}=t,r=e.$el,s=r[0],l=!(!Q.passiveListener||!i.passiveListeners)&&{passive:!1,capture:!1},c=!(!Q.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};Q.touch?(s.removeEventListener(a.start,t.scrollbar.onDragStart,l),s.removeEventListener(a.move,t.scrollbar.onDragMove,l),s.removeEventListener(a.end,t.scrollbar.onDragEnd,c)):(s.removeEventListener(n.start,t.scrollbar.onDragStart,l),o.removeEventListener(n.move,t.scrollbar.onDragMove,l),o.removeEventListener(n.end,t.scrollbar.onDragEnd,c))},init(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,$el:a}=t,n=t.params.scrollbar;let i=u(n.el);t.params.uniqueNavElements&&"string"===typeof n.el&&i.length>1&&1===a.find(n.el).length&&(i=a.find(n.el));let o=i.find("."+t.params.scrollbar.dragClass);0===o.length&&(o=u(`<div class="${t.params.scrollbar.dragClass}"></div>`),i.append(o)),X.extend(e,{$el:i,el:i[0],$dragEl:o,dragEl:o[0]}),n.draggable&&e.enableDraggable()},destroy(){const t=this;t.scrollbar.disableDraggable()}};var Le={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create(){const t=this;X.extend(t,{scrollbar:{init:De.init.bind(t),destroy:De.destroy.bind(t),updateSize:De.updateSize.bind(t),setTranslate:De.setTranslate.bind(t),setTransition:De.setTransition.bind(t),enableDraggable:De.enableDraggable.bind(t),disableDraggable:De.disableDraggable.bind(t),setDragPosition:De.setDragPosition.bind(t),getPointerPosition:De.getPointerPosition.bind(t),onDragStart:De.onDragStart.bind(t),onDragMove:De.onDragMove.bind(t),onDragEnd:De.onDragEnd.bind(t),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init(){const t=this;t.scrollbar.init(),t.scrollbar.updateSize(),t.scrollbar.setTranslate()},update(){const t=this;t.scrollbar.updateSize()},resize(){const t=this;t.scrollbar.updateSize()},observerUpdate(){const t=this;t.scrollbar.updateSize()},setTranslate(){const t=this;t.scrollbar.setTranslate()},setTransition(t){const e=this;e.scrollbar.setTransition(t)},destroy(){const t=this;t.scrollbar.destroy()}}};const Re={setTransform(t,e){const a=this,{rtl:n}=a,i=u(t),o=n?-1:1,r=i.attr("data-swiper-parallax")||"0";let s=i.attr("data-swiper-parallax-x"),l=i.attr("data-swiper-parallax-y");const c=i.attr("data-swiper-parallax-scale"),d=i.attr("data-swiper-parallax-opacity");if(s||l?(s=s||"0",l=l||"0"):a.isHorizontal()?(s=r,l="0"):(l=r,s="0"),s=s.indexOf("%")>=0?parseInt(s,10)*e*o+"%":s*e*o+"px",l=l.indexOf("%")>=0?parseInt(l,10)*e+"%":l*e+"px","undefined"!==typeof d&&null!==d){const t=d-(d-1)*(1-Math.abs(e));i[0].style.opacity=t}if("undefined"===typeof c||null===c)i.transform(`translate3d(${s}, ${l}, 0px)`);else{const t=c-(c-1)*(1-Math.abs(e));i.transform(`translate3d(${s}, ${l}, 0px) scale(${t})`)}},setTranslate(){const t=this,{$el:e,slides:a,progress:n,snapGrid:i}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,a)=>{t.parallax.setTransform(a,n)}),a.each((e,a)=>{let o=a.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(o+=Math.ceil(e/2)-n*(i.length-1)),o=Math.min(Math.max(o,-1),1),u(a).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,a)=>{t.parallax.setTransform(a,o)})})},setTransition(t=this.params.speed){const e=this,{$el:a}=e;a.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e,a)=>{const n=u(a);let i=parseInt(n.attr("data-swiper-parallax-duration"),10)||t;0===t&&(i=0),n.transition(i)})}};var Ne={name:"parallax",params:{parallax:{enabled:!1}},create(){const t=this;X.extend(t,{parallax:{setTransform:Re.setTransform.bind(t),setTranslate:Re.setTranslate.bind(t),setTransition:Re.setTransition.bind(t)}})},on:{beforeInit(){const t=this;t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},init(){const t=this;t.params.parallax.enabled&&t.parallax.setTranslate()},setTranslate(){const t=this;t.params.parallax.enabled&&t.parallax.setTranslate()},setTransition(t){const e=this;e.params.parallax.enabled&&e.parallax.setTransition(t)}}};const Pe={getDistanceBetweenTouches(t){if(t.targetTouches.length<2)return 1;const e=t.targetTouches[0].pageX,a=t.targetTouches[0].pageY,n=t.targetTouches[1].pageX,i=t.targetTouches[1].pageY,o=Math.sqrt((n-e)**2+(i-a)**2);return o},onGestureStart(t){const e=this,a=e.params.zoom,n=e.zoom,{gesture:i}=n;if(n.fakeGestureTouched=!1,n.fakeGestureMoved=!1,!Q.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;n.fakeGestureTouched=!0,i.scaleStart=Pe.getDistanceBetweenTouches(t)}i.$slideEl&&i.$slideEl.length||(i.$slideEl=u(t.target).closest("."+e.params.slideClass),0===i.$slideEl.length&&(i.$slideEl=e.slides.eq(e.activeIndex)),i.$imageEl=i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imageWrapEl=i.$imageEl.parent("."+a.containerClass),i.maxRatio=i.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,0!==i.$imageWrapEl.length)?(i.$imageEl&&i.$imageEl.transition(0),e.zoom.isScaling=!0):i.$imageEl=void 0},onGestureChange(t){const e=this,a=e.params.zoom,n=e.zoom,{gesture:i}=n;if(!Q.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;n.fakeGestureMoved=!0,i.scaleMove=Pe.getDistanceBetweenTouches(t)}i.$imageEl&&0!==i.$imageEl.length&&(Q.gestures?n.scale=t.scale*n.currentScale:n.scale=i.scaleMove/i.scaleStart*n.currentScale,n.scale>i.maxRatio&&(n.scale=i.maxRatio-1+(n.scale-i.maxRatio+1)**.5),n.scale<a.minRatio&&(n.scale=a.minRatio+1-(a.minRatio-n.scale+1)**.5),i.$imageEl.transform(`translate3d(0,0,0) scale(${n.scale})`))},onGestureEnd(t){const e=this,a=e.params.zoom,n=e.zoom,{gesture:i}=n;if(!Q.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!Yt.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}i.$imageEl&&0!==i.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,i.maxRatio),a.minRatio),i.$imageEl.transition(e.params.speed).transform(`translate3d(0,0,0) scale(${n.scale})`),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(i.$slideEl=void 0))},onTouchStart(t){const e=this,a=e.zoom,{gesture:n,image:i}=a;n.$imageEl&&0!==n.$imageEl.length&&(i.isTouched||(Yt.android&&t.cancelable&&t.preventDefault(),i.isTouched=!0,i.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,i.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove(t){const e=this,a=e.zoom,{gesture:n,image:i,velocity:o}=a;if(!n.$imageEl||0===n.$imageEl.length)return;if(e.allowClick=!1,!i.isTouched||!n.$slideEl)return;i.isMoved||(i.width=n.$imageEl[0].offsetWidth,i.height=n.$imageEl[0].offsetHeight,i.startX=X.getTranslate(n.$imageWrapEl[0],"x")||0,i.startY=X.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),e.rtl&&(i.startX=-i.startX,i.startY=-i.startY));const r=i.width*a.scale,s=i.height*a.scale;if(!(r<n.slideWidth&&s<n.slideHeight)){if(i.minX=Math.min(n.slideWidth/2-r/2,0),i.maxX=-i.minX,i.minY=Math.min(n.slideHeight/2-s/2,0),i.maxY=-i.minY,i.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,i.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!i.isMoved&&!a.isScaling){if(e.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x))return void(i.isTouched=!1);if(!e.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y))return void(i.isTouched=!1)}t.cancelable&&t.preventDefault(),t.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-(i.minX-i.currentX+1)**.8),i.currentX>i.maxX&&(i.currentX=i.maxX-1+(i.currentX-i.maxX+1)**.8),i.currentY<i.minY&&(i.currentY=i.minY+1-(i.minY-i.currentY+1)**.8),i.currentY>i.maxY&&(i.currentY=i.maxY-1+(i.currentY-i.maxY+1)**.8),o.prevPositionX||(o.prevPositionX=i.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=i.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(i.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(i.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(i.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(i.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=i.touchesCurrent.x,o.prevPositionY=i.touchesCurrent.y,o.prevTime=Date.now(),n.$imageWrapEl.transform(`translate3d(${i.currentX}px, ${i.currentY}px,0)`)}},onTouchEnd(){const t=this,e=t.zoom,{gesture:a,image:n,velocity:i}=e;if(!a.$imageEl||0===a.$imageEl.length)return;if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;let o=300,r=300;const s=i.x*o,l=n.currentX+s,c=i.y*r,u=n.currentY+c;0!==i.x&&(o=Math.abs((l-n.currentX)/i.x)),0!==i.y&&(r=Math.abs((u-n.currentY)/i.y));const d=Math.max(o,r);n.currentX=l,n.currentY=u;const h=n.width*e.scale,p=n.height*e.scale;n.minX=Math.min(a.slideWidth/2-h/2,0),n.maxX=-n.minX,n.minY=Math.min(a.slideHeight/2-p/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),a.$imageWrapEl.transition(d).transform(`translate3d(${n.currentX}px, ${n.currentY}px,0)`)},onTransitionEnd(){const t=this,e=t.zoom,{gesture:a}=e;a.$slideEl&&t.previousIndex!==t.activeIndex&&(a.$imageEl&&a.$imageEl.transform("translate3d(0,0,0) scale(1)"),a.$imageWrapEl&&a.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,a.$slideEl=void 0,a.$imageEl=void 0,a.$imageWrapEl=void 0)},toggle(t){const e=this,a=e.zoom;a.scale&&1!==a.scale?a.out():a.in(t)},in(t){const e=this,a=e.zoom,n=e.params.zoom,{gesture:i,image:o}=a;if(i.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?i.$slideEl=e.$wrapperEl.children("."+e.params.slideActiveClass):i.$slideEl=e.slides.eq(e.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imageWrapEl=i.$imageEl.parent("."+n.containerClass)),!i.$imageEl||0===i.$imageEl.length)return;let r,s,l,c,u,d,h,p,f,m,g,_,v,y,b,S,O,T;i.$slideEl.addClass(""+n.zoomedSlideClass),"undefined"===typeof o.touchesStart.x&&t?(r="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,s="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(r=o.touchesStart.x,s=o.touchesStart.y),a.scale=i.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,a.currentScale=i.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,t?(O=i.$slideEl[0].offsetWidth,T=i.$slideEl[0].offsetHeight,l=i.$slideEl.offset().left,c=i.$slideEl.offset().top,u=l+O/2-r,d=c+T/2-s,f=i.$imageEl[0].offsetWidth,m=i.$imageEl[0].offsetHeight,g=f*a.scale,_=m*a.scale,v=Math.min(O/2-g/2,0),y=Math.min(T/2-_/2,0),b=-v,S=-y,h=u*a.scale,p=d*a.scale,h<v&&(h=v),h>b&&(h=b),p<y&&(p=y),p>S&&(p=S)):(h=0,p=0),i.$imageWrapEl.transition(300).transform(`translate3d(${h}px, ${p}px,0)`),i.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${a.scale})`)},out(){const t=this,e=t.zoom,a=t.params.zoom,{gesture:n}=e;n.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?n.$slideEl=t.$wrapperEl.children("."+t.params.slideActiveClass):n.$slideEl=t.slides.eq(t.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),n.$imageWrapEl=n.$imageEl.parent("."+a.containerClass)),n.$imageEl&&0!==n.$imageEl.length&&(e.scale=1,e.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass(""+a.zoomedSlideClass),n.$slideEl=void 0)},enable(){const t=this,e=t.zoom;if(e.enabled)return;e.enabled=!0;const a=!("touchstart"!==t.touchEvents.start||!Q.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},n=!Q.passiveListener||{passive:!1,capture:!0},i="."+t.params.slideClass;Q.gestures?(t.$wrapperEl.on("gesturestart",i,e.onGestureStart,a),t.$wrapperEl.on("gesturechange",i,e.onGestureChange,a),t.$wrapperEl.on("gestureend",i,e.onGestureEnd,a)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,i,e.onGestureStart,a),t.$wrapperEl.on(t.touchEvents.move,i,e.onGestureChange,n),t.$wrapperEl.on(t.touchEvents.end,i,e.onGestureEnd,a),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,i,e.onGestureEnd,a)),t.$wrapperEl.on(t.touchEvents.move,"."+t.params.zoom.containerClass,e.onTouchMove,n)},disable(){const t=this,e=t.zoom;if(!e.enabled)return;t.zoom.enabled=!1;const a=!("touchstart"!==t.touchEvents.start||!Q.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},n=!Q.passiveListener||{passive:!1,capture:!0},i="."+t.params.slideClass;Q.gestures?(t.$wrapperEl.off("gesturestart",i,e.onGestureStart,a),t.$wrapperEl.off("gesturechange",i,e.onGestureChange,a),t.$wrapperEl.off("gestureend",i,e.onGestureEnd,a)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,i,e.onGestureStart,a),t.$wrapperEl.off(t.touchEvents.move,i,e.onGestureChange,n),t.$wrapperEl.off(t.touchEvents.end,i,e.onGestureEnd,a),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,i,e.onGestureEnd,a)),t.$wrapperEl.off(t.touchEvents.move,"."+t.params.zoom.containerClass,e.onTouchMove,n)}};var je={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create(){const t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(a=>{e[a]=Pe[a].bind(t)}),X.extend(t,{zoom:e});let a=1;Object.defineProperty(t.zoom,"scale",{get(){return a},set(e){if(a!==e){const a=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,n=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,a,n)}a=e}})},on:{init(){const t=this;t.params.zoom.enabled&&t.zoom.enable()},destroy(){const t=this;t.zoom.disable()},touchStart(t){const e=this;e.zoom.enabled&&e.zoom.onTouchStart(t)},touchEnd(t){const e=this;e.zoom.enabled&&e.zoom.onTouchEnd(t)},doubleTap(t){const e=this;e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionEnd(){const t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.zoom.onTransitionEnd()},slideChange(){const t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&t.zoom.onTransitionEnd()}}};const $e={loadInSlide(t,e=!0){const a=this,n=a.params.lazy;if("undefined"===typeof t)return;if(0===a.slides.length)return;const i=a.virtual&&a.params.virtual.enabled,o=i?a.$wrapperEl.children(`.${a.params.slideClass}[data-swiper-slide-index="${t}"]`):a.slides.eq(t);let r=o.find(`.${n.elementClass}:not(.${n.loadedClass}):not(.${n.loadingClass})`);!o.hasClass(n.elementClass)||o.hasClass(n.loadedClass)||o.hasClass(n.loadingClass)||(r=r.add(o[0])),0!==r.length&&r.each((t,i)=>{const r=u(i);r.addClass(n.loadingClass);const s=r.attr("data-background"),l=r.attr("data-src"),c=r.attr("data-srcset"),d=r.attr("data-sizes"),h=r.parent("picture");a.loadImage(r[0],l||s,c,d,!1,()=>{if("undefined"!==typeof a&&null!==a&&a&&(!a||a.params)&&!a.destroyed){if(s?(r.css("background-image",`url("${s}")`),r.removeAttr("data-background")):(c&&(r.attr("srcset",c),r.removeAttr("data-srcset")),d&&(r.attr("sizes",d),r.removeAttr("data-sizes")),h.length&&h.children("source").each((t,e)=>{const a=u(e);a.attr("data-srcset")&&(a.attr("srcset",a.attr("data-srcset")),a.removeAttr("data-srcset"))}),l&&(r.attr("src",l),r.removeAttr("data-src"))),r.addClass(n.loadedClass).removeClass(n.loadingClass),o.find("."+n.preloaderClass).remove(),a.params.loop&&e){const t=o.attr("data-swiper-slide-index");if(o.hasClass(a.params.slideDuplicateClass)){const e=a.$wrapperEl.children(`[data-swiper-slide-index="${t}"]:not(.${a.params.slideDuplicateClass})`);a.lazy.loadInSlide(e.index(),!1)}else{const e=a.$wrapperEl.children(`.${a.params.slideDuplicateClass}[data-swiper-slide-index="${t}"]`);a.lazy.loadInSlide(e.index(),!1)}}a.emit("lazyImageReady",o[0],r[0]),a.params.autoHeight&&a.updateAutoHeight()}}),a.emit("lazyImageLoad",o[0],r[0])})},load(){const t=this,{$wrapperEl:e,params:a,slides:n,activeIndex:i}=t,o=t.virtual&&a.virtual.enabled,r=a.lazy;let s=a.slidesPerView;function l(t){if(o){if(e.children(`.${a.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(n[t])return!0;return!1}function c(t){return o?u(t).attr("data-swiper-slide-index"):u(t).index()}if("auto"===s&&(s=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children("."+a.slideVisibleClass).each((e,a)=>{const n=o?u(a).attr("data-swiper-slide-index"):u(a).index();t.lazy.loadInSlide(n)});else if(s>1)for(let u=i;u<i+s;u+=1)l(u)&&t.lazy.loadInSlide(u);else t.lazy.loadInSlide(i);if(r.loadPrevNext)if(s>1||r.loadPrevNextAmount&&r.loadPrevNextAmount>1){const e=r.loadPrevNextAmount,a=s,o=Math.min(i+a+Math.max(e,a),n.length),c=Math.max(i-Math.max(a,e),0);for(let n=i+s;n<o;n+=1)l(n)&&t.lazy.loadInSlide(n);for(let n=c;n<i;n+=1)l(n)&&t.lazy.loadInSlide(n)}else{const n=e.children("."+a.slideNextClass);n.length>0&&t.lazy.loadInSlide(c(n));const i=e.children("."+a.slidePrevClass);i.length>0&&t.lazy.loadInSlide(c(i))}}};var Fe={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create(){const t=this;X.extend(t,{lazy:{initialImageLoaded:!1,load:$e.load.bind(t),loadInSlide:$e.loadInSlide.bind(t)}})},on:{beforeInit(){const t=this;t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)},init(){const t=this;t.params.lazy.enabled&&!t.params.loop&&0===t.params.initialSlide&&t.lazy.load()},scroll(){const t=this;t.params.freeMode&&!t.params.freeModeSticky&&t.lazy.load()},resize(){const t=this;t.params.lazy.enabled&&t.lazy.load()},scrollbarDragMove(){const t=this;t.params.lazy.enabled&&t.lazy.load()},transitionStart(){const t=this;t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!t.lazy.initialImageLoaded)&&t.lazy.load()},transitionEnd(){const t=this;t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&t.lazy.load()},slideChange(){const t=this;t.params.lazy.enabled&&t.params.cssMode&&t.lazy.load()}}};const Be={LinearSpline:function(t,e){const a=function(){let t,e,a;return(n,i)=>{e=-1,t=n.length;while(t-e>1)a=t+e>>1,n[a]<=i?e=a:t=a;return t}}();let n,i;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(i=a(this.x,t),n=i-1,(t-this.x[n])*(this.y[i]-this.y[n])/(this.x[i]-this.x[n])+this.y[n]):0},this},getInterpolateFunction(t){const e=this;e.controller.spline||(e.controller.spline=e.params.loop?new Be.LinearSpline(e.slidesGrid,t.slidesGrid):new Be.LinearSpline(e.snapGrid,t.snapGrid))},setTranslate(t,e){const a=this,n=a.controller.control;let i,o;function r(t){const e=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getInterpolateFunction(t),o=-a.controller.spline.interpolate(-e)),o&&"container"!==a.params.controller.by||(i=(t.maxTranslate()-t.minTranslate())/(a.maxTranslate()-a.minTranslate()),o=(e-a.minTranslate())*i+t.minTranslate()),a.params.controller.inverse&&(o=t.maxTranslate()-o),t.updateProgress(o),t.setTranslate(o,a),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(n))for(let s=0;s<n.length;s+=1)n[s]!==e&&n[s]instanceof pe&&r(n[s]);else n instanceof pe&&e!==n&&r(n)},setTransition(t,e){const a=this,n=a.controller.control;let i;function o(e){e.setTransition(t,a),0!==t&&(e.transitionStart(),e.params.autoHeight&&X.nextTick(()=>{e.updateAutoHeight()}),e.$wrapperEl.transitionEnd(()=>{n&&(e.params.loop&&"slide"===a.params.controller.by&&e.loopFix(),e.transitionEnd())}))}if(Array.isArray(n))for(i=0;i<n.length;i+=1)n[i]!==e&&n[i]instanceof pe&&o(n[i]);else n instanceof pe&&e!==n&&o(n)}};var Ye={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){const t=this;X.extend(t,{controller:{control:t.params.controller.control,getInterpolateFunction:Be.getInterpolateFunction.bind(t),setTranslate:Be.setTranslate.bind(t),setTransition:Be.setTransition.bind(t)}})},on:{update(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},resize(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},observerUpdate(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},setTranslate(t,e){const a=this;a.controller.control&&a.controller.setTranslate(t,e)},setTransition(t,e){const a=this;a.controller.control&&a.controller.setTransition(t,e)}}};const Ue={makeElFocusable(t){return t.attr("tabIndex","0"),t},makeElNotFocusable(t){return t.attr("tabIndex","-1"),t},addElRole(t,e){return t.attr("role",e),t},addElLabel(t,e){return t.attr("aria-label",e),t},disableEl(t){return t.attr("aria-disabled",!0),t},enableEl(t){return t.attr("aria-disabled",!1),t},onEnterKey(t){const e=this,a=e.params.a11y;if(13!==t.keyCode)return;const n=u(t.target);e.navigation&&e.navigation.$nextEl&&n.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?e.a11y.notify(a.lastSlideMessage):e.a11y.notify(a.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&n.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?e.a11y.notify(a.firstSlideMessage):e.a11y.notify(a.prevSlideMessage)),e.pagination&&n.is("."+e.params.pagination.bulletClass)&&n[0].click()},notify(t){const e=this,a=e.a11y.liveRegion;0!==a.length&&(a.html(""),a.html(t))},updateNavigation(){const t=this;if(t.params.loop||!t.navigation)return;const{$nextEl:e,$prevEl:a}=t.navigation;a&&a.length>0&&(t.isBeginning?(t.a11y.disableEl(a),t.a11y.makeElNotFocusable(a)):(t.a11y.enableEl(a),t.a11y.makeElFocusable(a))),e&&e.length>0&&(t.isEnd?(t.a11y.disableEl(e),t.a11y.makeElNotFocusable(e)):(t.a11y.enableEl(e),t.a11y.makeElFocusable(e)))},updatePagination(){const t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((a,n)=>{const i=u(n);t.a11y.makeElFocusable(i),t.a11y.addElRole(i,"button"),t.a11y.addElLabel(i,e.paginationBulletMessage.replace(/\{\{index\}\}/,i.index()+1))})},init(){const t=this;t.$el.append(t.a11y.liveRegion);const e=t.params.a11y;let a,n;t.navigation&&t.navigation.$nextEl&&(a=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(n=t.navigation.$prevEl),a&&(t.a11y.makeElFocusable(a),t.a11y.addElRole(a,"button"),t.a11y.addElLabel(a,e.nextSlideMessage),a.on("keydown",t.a11y.onEnterKey)),n&&(t.a11y.makeElFocusable(n),t.a11y.addElRole(n,"button"),t.a11y.addElLabel(n,e.prevSlideMessage),n.on("keydown",t.a11y.onEnterKey)),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.on("keydown","."+t.params.pagination.bulletClass,t.a11y.onEnterKey)},destroy(){const t=this;let e,a;t.a11y.liveRegion&&t.a11y.liveRegion.length>0&&t.a11y.liveRegion.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(a=t.navigation.$prevEl),e&&e.off("keydown",t.a11y.onEnterKey),a&&a.off("keydown",t.a11y.onEnterKey),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.off("keydown","."+t.params.pagination.bulletClass,t.a11y.onEnterKey)}};var ze={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create(){const t=this;X.extend(t,{a11y:{liveRegion:u(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(Ue).forEach(e=>{t.a11y[e]=Ue[e].bind(t)})},on:{init(){const t=this;t.params.a11y.enabled&&(t.a11y.init(),t.a11y.updateNavigation())},toEdge(){const t=this;t.params.a11y.enabled&&t.a11y.updateNavigation()},fromEdge(){const t=this;t.params.a11y.enabled&&t.a11y.updateNavigation()},paginationUpdate(){const t=this;t.params.a11y.enabled&&t.a11y.updatePagination()},destroy(){const t=this;t.params.a11y.enabled&&t.a11y.destroy()}}};const Ve={init(){const t=this;if(!t.params.history)return;if(!s.history||!s.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);const e=t.history;e.initialized=!0,e.paths=Ve.getPathValues(),(e.paths.key||e.paths.value)&&(e.scrollToSlide(0,e.paths.value,t.params.runCallbacksOnInit),t.params.history.replaceState||s.addEventListener("popstate",t.history.setHistoryPopState))},destroy(){const t=this;t.params.history.replaceState||s.removeEventListener("popstate",t.history.setHistoryPopState)},setHistoryPopState(){const t=this;t.history.paths=Ve.getPathValues(),t.history.scrollToSlide(t.params.speed,t.history.paths.value,!1)},getPathValues(){const t=s.location.pathname.slice(1).split("/").filter(t=>""!==t),e=t.length,a=t[e-2],n=t[e-1];return{key:a,value:n}},setHistory(t,e){const a=this;if(!a.history.initialized||!a.params.history.enabled)return;const n=a.slides.eq(e);let i=Ve.slugify(n.attr("data-history"));s.location.pathname.includes(t)||(i=`${t}/${i}`);const o=s.history.state;o&&o.value===i||(a.params.history.replaceState?s.history.replaceState({value:i},null,i):s.history.pushState({value:i},null,i))},slugify(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide(t,e,a){const n=this;if(e)for(let i=0,o=n.slides.length;i<o;i+=1){const o=n.slides.eq(i),r=Ve.slugify(o.attr("data-history"));if(r===e&&!o.hasClass(n.params.slideDuplicateClass)){const e=o.index();n.slideTo(e,t,a)}}else n.slideTo(0,t,a)}};var He={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){const t=this;X.extend(t,{history:{init:Ve.init.bind(t),setHistory:Ve.setHistory.bind(t),setHistoryPopState:Ve.setHistoryPopState.bind(t),scrollToSlide:Ve.scrollToSlide.bind(t),destroy:Ve.destroy.bind(t)}})},on:{init(){const t=this;t.params.history.enabled&&t.history.init()},destroy(){const t=this;t.params.history.enabled&&t.history.destroy()},transitionEnd(){const t=this;t.history.initialized&&t.history.setHistory(t.params.history.key,t.activeIndex)},slideChange(){const t=this;t.history.initialized&&t.params.cssMode&&t.history.setHistory(t.params.history.key,t.activeIndex)}}};const Ge={onHashCange(){const t=this;t.emit("hashChange");const e=o.location.hash.replace("#",""),a=t.slides.eq(t.activeIndex).attr("data-hash");if(e!==a){const a=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if("undefined"===typeof a)return;t.slideTo(a)}},setHash(){const t=this;if(t.hashNavigation.initialized&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&s.history&&s.history.replaceState)s.history.replaceState(null,null,"#"+t.slides.eq(t.activeIndex).attr("data-hash")||""),t.emit("hashSet");else{const e=t.slides.eq(t.activeIndex),a=e.attr("data-hash")||e.attr("data-history");o.location.hash=a||"",t.emit("hashSet")}},init(){const t=this;if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;t.hashNavigation.initialized=!0;const e=o.location.hash.replace("#","");if(e){const a=0;for(let n=0,i=t.slides.length;n<i;n+=1){const i=t.slides.eq(n),o=i.attr("data-hash")||i.attr("data-history");if(o===e&&!i.hasClass(t.params.slideDuplicateClass)){const e=i.index();t.slideTo(e,a,t.params.runCallbacksOnInit,!0)}}}t.params.hashNavigation.watchState&&u(s).on("hashchange",t.hashNavigation.onHashCange)},destroy(){const t=this;t.params.hashNavigation.watchState&&u(s).off("hashchange",t.hashNavigation.onHashCange)}};var We={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){const t=this;X.extend(t,{hashNavigation:{initialized:!1,init:Ge.init.bind(t),destroy:Ge.destroy.bind(t),setHash:Ge.setHash.bind(t),onHashCange:Ge.onHashCange.bind(t)}})},on:{init(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.init()},destroy(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.destroy()},transitionEnd(){const t=this;t.hashNavigation.initialized&&t.hashNavigation.setHash()},slideChange(){const t=this;t.hashNavigation.initialized&&t.params.cssMode&&t.hashNavigation.setHash()}}};const Ke={run(){const t=this,e=t.slides.eq(t.activeIndex);let a=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(a=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=X.nextTick(()=>{t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")),t.params.cssMode&&t.autoplay.running&&t.autoplay.run()},a)},start(){const t=this;return"undefined"===typeof t.autoplay.timeout&&(!t.autoplay.running&&(t.autoplay.running=!0,t.emit("autoplayStart"),t.autoplay.run(),!0))},stop(){const t=this;return!!t.autoplay.running&&("undefined"!==typeof t.autoplay.timeout&&(t.autoplay.timeout&&(clearTimeout(t.autoplay.timeout),t.autoplay.timeout=void 0),t.autoplay.running=!1,t.emit("autoplayStop"),!0))},pause(t){const e=this;e.autoplay.running&&(e.autoplay.paused||(e.autoplay.timeout&&clearTimeout(e.autoplay.timeout),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?(e.$wrapperEl[0].addEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].addEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd)):(e.autoplay.paused=!1,e.autoplay.run())))}};var Ze={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const t=this;X.extend(t,{autoplay:{running:!1,paused:!1,run:Ke.run.bind(t),start:Ke.start.bind(t),stop:Ke.stop.bind(t),pause:Ke.pause.bind(t),onVisibilityChange(){"hidden"===document.visibilityState&&t.autoplay.running&&t.autoplay.pause(),"visible"===document.visibilityState&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},onTransitionEnd(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init(){const t=this;t.params.autoplay.enabled&&(t.autoplay.start(),document.addEventListener("visibilitychange",t.autoplay.onVisibilityChange))},beforeTransitionStart(t,e){const a=this;a.autoplay.running&&(e||!a.params.autoplay.disableOnInteraction?a.autoplay.pause(t):a.autoplay.stop())},sliderFirstMove(){const t=this;t.autoplay.running&&(t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause())},touchEnd(){const t=this;t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&t.autoplay.run()},destroy(){const t=this;t.autoplay.running&&t.autoplay.stop(),document.removeEventListener("visibilitychange",t.autoplay.onVisibilityChange)}}};const qe={setTranslate(){const t=this,{slides:e}=t;for(let a=0;a<e.length;a+=1){const e=t.slides.eq(a),n=e[0].swiperSlideOffset;let i=-n;t.params.virtualTranslate||(i-=t.translate);let o=0;t.isHorizontal()||(o=i,i=0);const r=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e[0].progress),0):1+Math.min(Math.max(e[0].progress,-1),0);e.css({opacity:r}).transform(`translate3d(${i}px, ${o}px, 0px)`)}},setTransition(t){const e=this,{slides:a,$wrapperEl:n}=e;if(a.transition(t),e.params.virtualTranslate&&0!==t){let t=!1;a.transitionEnd(()=>{if(t)return;if(!e||e.destroyed)return;t=!0,e.animating=!1;const a=["webkitTransitionEnd","transitionend"];for(let t=0;t<a.length;t+=1)n.trigger(a[t])})}}};var Xe={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){const t=this;X.extend(t,{fadeEffect:{setTranslate:qe.setTranslate.bind(t),setTransition:qe.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if("fade"!==t.params.effect)return;t.classNames.push(t.params.containerModifierClass+"fade");const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};X.extend(t.params,e),X.extend(t.originalParams,e)},setTranslate(){const t=this;"fade"===t.params.effect&&t.fadeEffect.setTranslate()},setTransition(t){const e=this;"fade"===e.params.effect&&e.fadeEffect.setTransition(t)}}};const Qe={setTranslate(){const t=this,{$el:e,$wrapperEl:a,slides:n,width:i,height:o,rtlTranslate:r,size:s}=t,l=t.params.cubeEffect,c=t.isHorizontal(),d=t.virtual&&t.params.virtual.enabled;let h,p=0;l.shadow&&(c?(h=a.find(".swiper-cube-shadow"),0===h.length&&(h=u('<div class="swiper-cube-shadow"></div>'),a.append(h)),h.css({height:i+"px"})):(h=e.find(".swiper-cube-shadow"),0===h.length&&(h=u('<div class="swiper-cube-shadow"></div>'),e.append(h))));for(let m=0;m<n.length;m+=1){const t=n.eq(m);let e=m;d&&(e=parseInt(t.attr("data-swiper-slide-index"),10));let a=90*e,i=Math.floor(a/360);r&&(a=-a,i=Math.floor(-a/360));const o=Math.max(Math.min(t[0].progress,1),-1);let h=0,f=0,g=0;e%4===0?(h=4*-i*s,g=0):(e-1)%4===0?(h=0,g=4*-i*s):(e-2)%4===0?(h=s+4*i*s,g=s):(e-3)%4===0&&(h=-s,g=3*s+4*s*i),r&&(h=-h),c||(f=h,h=0);const _=`rotateX(${c?0:-a}deg) rotateY(${c?a:0}deg) translate3d(${h}px, ${f}px, ${g}px)`;if(o<=1&&o>-1&&(p=90*e+90*o,r&&(p=90*-e-90*o)),t.transform(_),l.slideShadows){let e=c?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),a=c?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===e.length&&(e=u(`<div class="swiper-slide-shadow-${c?"left":"top"}"></div>`),t.append(e)),0===a.length&&(a=u(`<div class="swiper-slide-shadow-${c?"right":"bottom"}"></div>`),t.append(a)),e.length&&(e[0].style.opacity=Math.max(-o,0)),a.length&&(a[0].style.opacity=Math.max(o,0))}}if(a.css({"-webkit-transform-origin":`50% 50% -${s/2}px`,"-moz-transform-origin":`50% 50% -${s/2}px`,"-ms-transform-origin":`50% 50% -${s/2}px`,"transform-origin":`50% 50% -${s/2}px`}),l.shadow)if(c)h.transform(`translate3d(0px, ${i/2+l.shadowOffset}px, ${-i/2}px) rotateX(90deg) rotateZ(0deg) scale(${l.shadowScale})`);else{const t=Math.abs(p)-90*Math.floor(Math.abs(p)/90),e=1.5-(Math.sin(2*t*Math.PI/360)/2+Math.cos(2*t*Math.PI/360)/2),a=l.shadowScale,n=l.shadowScale/e,i=l.shadowOffset;h.transform(`scale3d(${a}, 1, ${n}) translate3d(0px, ${o/2+i}px, ${-o/2/n}px) rotateX(-90deg)`)}const f=ge.isSafari||ge.isWebView?-s/2:0;a.transform(`translate3d(0px,0,${f}px) rotateX(${t.isHorizontal()?0:p}deg) rotateY(${t.isHorizontal()?-p:0}deg)`)},setTransition(t){const e=this,{$el:a,slides:n}=e;n.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.cubeEffect.shadow&&!e.isHorizontal()&&a.find(".swiper-cube-shadow").transition(t)}};var Je={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){const t=this;X.extend(t,{cubeEffect:{setTranslate:Qe.setTranslate.bind(t),setTransition:Qe.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if("cube"!==t.params.effect)return;t.classNames.push(t.params.containerModifierClass+"cube"),t.classNames.push(t.params.containerModifierClass+"3d");const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};X.extend(t.params,e),X.extend(t.originalParams,e)},setTranslate(){const t=this;"cube"===t.params.effect&&t.cubeEffect.setTranslate()},setTransition(t){const e=this;"cube"===e.params.effect&&e.cubeEffect.setTransition(t)}}};const ta={setTranslate(){const t=this,{slides:e,rtlTranslate:a}=t;for(let n=0;n<e.length;n+=1){const i=e.eq(n);let o=i[0].progress;t.params.flipEffect.limitRotation&&(o=Math.max(Math.min(i[0].progress,1),-1));const r=i[0].swiperSlideOffset,s=-180*o;let l=s,c=0,d=-r,h=0;if(t.isHorizontal()?a&&(l=-l):(h=d,d=0,c=-l,l=0),i[0].style.zIndex=-Math.abs(Math.round(o))+e.length,t.params.flipEffect.slideShadows){let e=t.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),a=t.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===e.length&&(e=u(`<div class="swiper-slide-shadow-${t.isHorizontal()?"left":"top"}"></div>`),i.append(e)),0===a.length&&(a=u(`<div class="swiper-slide-shadow-${t.isHorizontal()?"right":"bottom"}"></div>`),i.append(a)),e.length&&(e[0].style.opacity=Math.max(-o,0)),a.length&&(a[0].style.opacity=Math.max(o,0))}i.transform(`translate3d(${d}px, ${h}px, 0px) rotateX(${c}deg) rotateY(${l}deg)`)}},setTransition(t){const e=this,{slides:a,activeIndex:n,$wrapperEl:i}=e;if(a.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){let t=!1;a.eq(n).transitionEnd((function(){if(t)return;if(!e||e.destroyed)return;t=!0,e.animating=!1;const a=["webkitTransitionEnd","transitionend"];for(let t=0;t<a.length;t+=1)i.trigger(a[t])}))}}};var ea={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){const t=this;X.extend(t,{flipEffect:{setTranslate:ta.setTranslate.bind(t),setTransition:ta.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if("flip"!==t.params.effect)return;t.classNames.push(t.params.containerModifierClass+"flip"),t.classNames.push(t.params.containerModifierClass+"3d");const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};X.extend(t.params,e),X.extend(t.originalParams,e)},setTranslate(){const t=this;"flip"===t.params.effect&&t.flipEffect.setTranslate()},setTransition(t){const e=this;"flip"===e.params.effect&&e.flipEffect.setTransition(t)}}};const aa={setTranslate(){const t=this,{width:e,height:a,slides:n,$wrapperEl:i,slidesSizesGrid:o}=t,r=t.params.coverflowEffect,s=t.isHorizontal(),l=t.translate,c=s?e/2-l:a/2-l,d=s?r.rotate:-r.rotate,h=r.depth;for(let p=0,f=n.length;p<f;p+=1){const t=n.eq(p),e=o[p],a=t[0].swiperSlideOffset,i=(c-a-e/2)/e*r.modifier;let l=s?d*i:0,f=s?0:d*i,m=-h*Math.abs(i),g=r.stretch;"string"===typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(r.stretch)/100*e);let _=s?0:g*i,v=s?g*i:0,y=1-(1-r.scale)*Math.abs(i);Math.abs(v)<.001&&(v=0),Math.abs(_)<.001&&(_=0),Math.abs(m)<.001&&(m=0),Math.abs(l)<.001&&(l=0),Math.abs(f)<.001&&(f=0),Math.abs(y)<.001&&(y=0);const b=`translate3d(${v}px,${_}px,${m}px)  rotateX(${f}deg) rotateY(${l}deg) scale(${y})`;if(t.transform(b),t[0].style.zIndex=1-Math.abs(Math.round(i)),r.slideShadows){let e=s?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),a=s?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===e.length&&(e=u(`<div class="swiper-slide-shadow-${s?"left":"top"}"></div>`),t.append(e)),0===a.length&&(a=u(`<div class="swiper-slide-shadow-${s?"right":"bottom"}"></div>`),t.append(a)),e.length&&(e[0].style.opacity=i>0?i:0),a.length&&(a[0].style.opacity=-i>0?-i:0)}}if(Q.pointerEvents||Q.prefixedPointerEvents){const t=i[0].style;t.perspectiveOrigin=c+"px 50%"}},setTransition(t){const e=this;e.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}};var na={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create(){const t=this;X.extend(t,{coverflowEffect:{setTranslate:aa.setTranslate.bind(t),setTransition:aa.setTransition.bind(t)}})},on:{beforeInit(){const t=this;"coverflow"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"coverflow"),t.classNames.push(t.params.containerModifierClass+"3d"),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},setTranslate(){const t=this;"coverflow"===t.params.effect&&t.coverflowEffect.setTranslate()},setTransition(t){const e=this;"coverflow"===e.params.effect&&e.coverflowEffect.setTransition(t)}}};const ia={init(){const t=this,{thumbs:e}=t.params,a=t.constructor;e.swiper instanceof a?(t.thumbs.swiper=e.swiper,X.extend(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),X.extend(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):X.isObject(e.swiper)&&(t.thumbs.swiper=new a(X.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),t.thumbs.swiperCreated=!0),t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",t.thumbs.onThumbClick)},onThumbClick(){const t=this,e=t.thumbs.swiper;if(!e)return;const a=e.clickedIndex,n=e.clickedSlide;if(n&&u(n).hasClass(t.params.thumbs.slideThumbActiveClass))return;if("undefined"===typeof a||null===a)return;let i;if(i=e.params.loop?parseInt(u(e.clickedSlide).attr("data-swiper-slide-index"),10):a,t.params.loop){let e=t.activeIndex;t.slides.eq(e).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,e=t.activeIndex);const a=t.slides.eq(e).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),n=t.slides.eq(e).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();i="undefined"===typeof a?n:"undefined"===typeof n?a:n-e<e-a?n:a}t.slideTo(i)},update(t){const e=this,a=e.thumbs.swiper;if(!a)return;const n="auto"===a.params.slidesPerView?a.slidesPerViewDynamic():a.params.slidesPerView,i=e.params.thumbs.autoScrollOffset,o=i&&!a.params.loop;if(e.realIndex!==a.realIndex||o){let r,s,l=a.activeIndex;if(a.params.loop){a.slides.eq(l).hasClass(a.params.slideDuplicateClass)&&(a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft,l=a.activeIndex);const t=a.slides.eq(l).prevAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(),n=a.slides.eq(l).nextAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index();r="undefined"===typeof t?n:"undefined"===typeof n?t:n-l===l-t?l:n-l<l-t?n:t,s=e.activeIndex>e.previousIndex?"next":"prev"}else r=e.realIndex,s=r>e.previousIndex?"next":"prev";o&&(r+="next"===s?i:-1*i),a.visibleSlidesIndexes&&a.visibleSlidesIndexes.indexOf(r)<0&&(a.params.centeredSlides?r=r>l?r-Math.floor(n/2)+1:r+Math.floor(n/2)-1:r>l&&(r=r-n+1),a.slideTo(r,t?0:void 0))}let r=1;const s=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(r=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(r=1),r=Math.floor(r),a.slides.removeClass(s),a.params.loop||a.params.virtual&&a.params.virtual.enabled)for(let l=0;l<r;l+=1)a.$wrapperEl.children(`[data-swiper-slide-index="${e.realIndex+l}"]`).addClass(s);else for(let l=0;l<r;l+=1)a.slides.eq(e.realIndex+l).addClass(s)}};var oa={name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){const t=this;X.extend(t,{thumbs:{swiper:null,init:ia.init.bind(t),update:ia.update.bind(t),onThumbClick:ia.onThumbClick.bind(t)}})},on:{beforeInit(){const t=this,{thumbs:e}=t.params;e&&e.swiper&&(t.thumbs.init(),t.thumbs.update(!0))},slideChange(){const t=this;t.thumbs.swiper&&t.thumbs.update()},update(){const t=this;t.thumbs.swiper&&t.thumbs.update()},resize(){const t=this;t.thumbs.swiper&&t.thumbs.update()},observerUpdate(){const t=this;t.thumbs.swiper&&t.thumbs.update()},setTransition(t){const e=this,a=e.thumbs.swiper;a&&a.setTransition(t)},beforeDestroy(){const t=this,e=t.thumbs.swiper;e&&t.thumbs.swiperCreated&&e&&e.destroy()}}};const ra=[fe,me,_e,ve,be,Oe,Ae,Ee,Me,Ie,Le,Ne,je,Fe,Ye,ze,He,We,Ze,Xe,Je,ea,na,oa];"undefined"===typeof pe.use&&(pe.use=pe.Class.use,pe.installModule=pe.Class.installModule),pe.use(ra);e["default"]=pe},b695:function(t,e,a){},b723:function(t,e,a){"use strict";a("e238")},b74a:function(t,e,a){"use strict";a("2b63")},b76ab:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEZSURBVHgBxVPLUcNADJW0xiEzTCZ0YDqADujAOSX2iRZwBy6BDggnG5qADqCDbAf5DIcc2BVaLzN41hB7Joe809NaT15pnxAE8/zzDtE+AMMUhkEzUPlSXTxFLkKwJVpzU9eXeog6y9aJiN6F+gKCxIkX+W7leI9e19XkSnKb20bBx+S5muAhtQi5HRMcidMXCGbAOuyxC9ado7ZoNltP2zyMQ02nhXgcvS7y7b3n6nF0TkvH59m2HI3VCg63IBX5q9jv4cNzUxB5dxLYpTj1rZMfHliM0jiGW8eZzlLD1HBr1TWrKO0tILYWIykfGPNrKmUk5r93pX/y/2vo57ebZkEGwuf65/TbaE3BSDL9XTKkACNv0GLh+DerbGiZTfGZnQAAAABJRU5ErkJggg=="},ba65:function(t,e,a){"use strict";a("ff0d")},bb87:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-chart",{key:t.echartKey,ref:"line",style:"height:"+t.height+"px",attrs:{autoresize:"",option:t.options,theme:"theme-color","auto-resize":""},on:{click:function(e){return t.$emit("click",e)},datazoom:function(e){return t.$emit("datazoom",e)}}})},i=[],o=a("5530"),r=(a("a9e3"),a("d81d"),a("4fad"),a("4de4"),a("d3b7"),a("7db0"),a("b0c0"),a("159b"),a("e9c4"),a("99af"),a("22b4")),s=a("1be7"),l=a("acf6"),c=a("36205"),u=a("4cb5"),d=a("f95e"),h=a("9394"),p=a("2da7"),f=a("104d4"),m=a("ff32"),g=a("4b2a"),_=a("abd2"),v=a("a0c6"),y=a("3094"),b=a("5c7f"),S=a("366f");Object(r["a"])([d["a"],l["a"],c["a"],u["a"],h["a"],p["a"],f["a"],m["a"],g["a"],_["a"],v["a"],y["a"]]),Object(s["m"])("theme-color",S);var O={name:"AppEchartLineCustom",components:{VChart:b["a"]},props:{noCenterLine:{type:Boolean,default:!1},height:{type:Number,default:430},optionData:{type:Object,default:null},extraSeries:{type:Object,default:function(){return{}}}},watch:{optionData:{deep:!0,immediate:!0,handler:function(t){var e,a,n,i,r,s,l,c,u,d,h,p,f=this;try{this.$nextTick((function(){var t;null===(t=f.$refs.line)||void 0===t||t.chart.clear()}))}catch(A){console.warn(A)}var m=(null===(e=this.optionData)||void 0===e||null===(a=e.series)||void 0===a?void 0:a.map((function(t){return Object(o["a"])(Object(o["a"])({showSymbol:!0,symbol:"circle"},t),f.extraSeries)})))||[];this.noCenterLine||1!==m.length||(m[0]["markLine"]={data:[{type:"average",name:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dashed",color:"#333"},label:{show:!0,position:"insideEndTop"}}},large:!0});var g=Object(o["a"])(Object(o["a"])(Object(o["a"])({},this.options.legend),this.optionData.legend),{},{data:(null===(n=this.optionData)||void 0===n||null===(i=n.legend)||void 0===i||null===(r=i.data)||void 0===r?void 0:r.map((function(t){return{name:t,icon:"circle",textStyle:{padding:[0,24,0,0]}}})))||[]});g.diy&&(g=this.optionData.legend);var _=this.optionData.yAxis instanceof Array?this.optionData.yAxis:Object(o["a"])({type:"value",splitLine:{show:!1},axisLabel:{textStyle:{fontFamily:"PingFangSC-Regular,PingFang SC,-apple-system,Microsoft YaHei,Hiragino Sans GB,Helvetica Neue,Helvetica,Arial,sans-serif;"}}},this.optionData.yAxis),v=Object(o["a"])(Object(o["a"])({},this.options.title),null===(s=this.optionData)||void 0===s?void 0:s.title),y=Object(o["a"])(Object(o["a"])({},this.options.tooltip),null===(l=this.optionData)||void 0===l?void 0:l.tooltip),b=Object(o["a"])(Object(o["a"])({},this.options.xAxis),null===(c=this.optionData)||void 0===c?void 0:c.xAxis),S=Object(o["a"])(Object(o["a"])({},this.options.grid),null===(u=this.optionData)||void 0===u?void 0:u.grid),O=Object(o["a"])(Object(o["a"])({},this.options.toolbox),null===(d=this.optionData)||void 0===d?void 0:d.toolbox),T=(null===(h=this.optionData)||void 0===h?void 0:h.color)||this.options.color||[];this.options=Object(o["a"])(Object(o["a"])({},this.options),{},{series:m,legend:g,yAxis:_,grid:S,tooltip:y,title:v,xAxis:b,toolbox:O,color:T}),this.optionData.dataZoom&&(this.options.dataZoom=this.optionData.dataZoom),this.echartKey=Math.random(),!this.noCenterLine&&(null===(p=this.options)||void 0===p?void 0:p.series.length)>1&&this.$nextTick((function(){f.$refs.line.chart.off(),f.$refs.line.chart.on("click","series",(function(t){f.$emit("click",t)})),f.$refs.line.chart.on("datazoom",(function(t){f.$emit("datazoom",t)})),f.$refs.line.chart.on("legendselectchanged",(function(t){f.$emit("legendselectchanged",t);var e=Object.entries(t.selected),a=e.filter((function(t){return t[1]}));if(1===a.length){var n,i=null===(n=f.options)||void 0===n?void 0:n.series.find((function(t){return t.name==a[0][0]}));i.markLine={data:[{type:"average",name:"average"}],symbol:["none","none"],position:"insideTopCenter",itemStyle:{normal:{lineStyle:{type:"dashed",color:"#333"},label:{show:!0,position:"insideEndTop"}}},large:!0}}else{var o;null===(o=f.options)||void 0===o||o.series.forEach((function(t){t.markLine&&(t.markLine.data=[])}))}try{f.options.legend.selected=JSON.parse(JSON.stringify(t.selected)),f.$nextTick((function(){f.$refs.line.chart.setOption(f.options)}))}catch(A){console.warn(A)}}))}))}}},data:function(){var t=this;return{echartKey:"echartKey",initOptions:{renderer:"canvas"},options:{title:{padding:[0,0,10,0],textStyle:{color:"#5E5873",fontSize:18,fontWeight:400}},grid:{x:"5.5%",width:"89%",top:"90px"},tooltip:{trigger:"axis",textStyle:{color:"#6E6B7B"},backgroundColor:"#fff",padding:0,extraCssText:"box-shadow:0 0 18px #EBE9F1",formatter:function(e){var a=e.reduce((function(e,a){return e+"<div class='tooltip-item'>".concat(a.marker,"<span class='tooltip-item_label'>").concat(a.seriesName," : </span>").concat(t.$options.filters["thousand"](a.value)||"--","</div>")}),"");return"<div class='AppEchartLineCustom-tooltip-wrapper'>\n            <div class='tooltip-title'>".concat(e[0].axisValue,"</div>\n            <div class='line'></div>\n            <div class='tooltip-content'>").concat(a,"</div>\n            </div>")}},xAxis:{boundaryGap:!1,axisLabel:{textStyle:{fontFamily:"PingFangSC-Regular,PingFang SC,-apple-system,Microsoft YaHei,Hiragino Sans GB,Helvetica Neue,Helvetica,Arial,sans-serif;"}},data:[]},yAxis:[],legend:{top:30,left:0,data:[],textStyle:{fontFamily:"PingFangSC-Regular,PingFang SC,-apple-system,Microsoft YaHei,Hiragino Sans GB,Helvetica Neue,Helvetica,Arial,sans-serif;"}},series:[]}}},mounted:function(){this.optionData.tooltip&&(this.options.tooltip=Object(o["a"])(Object(o["a"])({},this.options.tooltip),this.optionData.tooltip))}},T=O,A=(a("823f"),a("2877")),x=Object(A["a"])(T,n,i,!1,null,null,null);e["a"]=x.exports},bc26:function(t,e,a){"use strict";a("8eac")},bca4:function(t,e,a){"use strict";a("3b4b")},bd60:function(t,e,a){},bd9e:function(t,e,a){"use strict";var n=a("6d8b"),i=a("2306"),o=a("f4a2"),r=a("e0d3"),s=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],l=function(){function t(t,e,a){var i=this;this._targetInfoList=[];var o=u(e,t);Object(n["k"])(d,(function(t,e){(!a||!a.include||Object(n["r"])(a.include,e)>=0)&&t(o,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,a){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=f[t.brushType](0,a,e);t.__rangeOffset={offset:g[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,a){Object(n["k"])(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(n["k"])(i.coordSyses,(function(n){var i=f[t.brushType](1,n,t.range,!0);a(t,i.values,n,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(n["k"])(t,(function(t){var a=this.findTargetInfo(t,e);if(t.range=t.range||[],a&&!0!==a){t.panelId=a.panelId;var n=f[t.brushType](0,a.coordSys,t.coordRange),i=t.__rangeOffset;t.range=i?g[t.brushType](n.values,i.offset,v(n.xyMinMax,i.xyMinMax)):n.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(n["H"])(this._targetInfoList,(function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:o["c"](n),isTargetByCursor:o["b"](n,t,a.coordSysModel),getLinearBrushOtherExtent:o["a"](n)}}))},t.prototype.controlSeries=function(t,e,a){var i=this.findTargetInfo(t,a);return!0===i||i&&Object(n["r"])(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=u(e,t),i=0;i<a.length;i++){var o=a[i],r=t.panelId;if(r){if(o.panelId===r)return o}else for(var s=0;s<h.length;s++)if(h[s](n,o))return o}return!0},t}();function c(t){return t[0]>t[1]&&t.reverse(),t}function u(t,e){return Object(r["s"])(t,e,{includeMainTypes:s})}var d={grid:function(t,e){var a=t.xAxisModels,i=t.yAxisModels,o=t.gridModels,r=Object(n["f"])(),s={},l={};(a||i||o)&&(Object(n["k"])(a,(function(t){var e=t.axis.grid.model;r.set(e.id,e),s[e.id]=!0})),Object(n["k"])(i,(function(t){var e=t.axis.grid.model;r.set(e.id,e),l[e.id]=!0})),Object(n["k"])(o,(function(t){r.set(t.id,t),s[t.id]=!0,l[t.id]=!0})),r.each((function(t){var o=t.coordinateSystem,r=[];Object(n["k"])(o.getCartesians(),(function(t,e){(Object(n["r"])(a,t.getAxis("x").model)>=0||Object(n["r"])(i,t.getAxis("y").model)>=0)&&r.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:r[0],coordSyses:r,getPanelRect:p.grid,xAxisDeclared:s[t.id],yAxisDeclared:l[t.id]})})))},geo:function(t,e){Object(n["k"])(t.geoModels,(function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:p.geo})}))}},h=[function(t,e){var a=t.xAxisModel,n=t.yAxisModel,i=t.gridModel;return!i&&a&&(i=a.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===e.gridModel},function(t,e){var a=t.geoModel;return a&&a===e.geoModel}],p={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(i["getTransform"](t)),e}},f={lineX:Object(n["h"])(m,0),lineY:Object(n["h"])(m,1),rect:function(t,e,a,n){var i=t?e.pointToData([a[0][0],a[1][0]],n):e.dataToPoint([a[0][0],a[1][0]],n),o=t?e.pointToData([a[0][1],a[1][1]],n):e.dataToPoint([a[0][1],a[1][1]],n),r=[c([i[0],o[0]]),c([i[1],o[1]])];return{values:r,xyMinMax:r}},polygon:function(t,e,a,i){var o=[[1/0,-1/0],[1/0,-1/0]],r=Object(n["H"])(a,(function(a){var n=t?e.pointToData(a,i):e.dataToPoint(a,i);return o[0][0]=Math.min(o[0][0],n[0]),o[1][0]=Math.min(o[1][0],n[1]),o[0][1]=Math.max(o[0][1],n[0]),o[1][1]=Math.max(o[1][1],n[1]),n}));return{values:r,xyMinMax:o}}};function m(t,e,a,i){var o=a.getAxis(["x","y"][t]),r=c(Object(n["H"])([0,1],(function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))}))),s=[];return s[t]=r,s[1-t]=[NaN,NaN],{values:r,xyMinMax:s}}var g={lineX:Object(n["h"])(_,0),lineY:Object(n["h"])(_,1),rect:function(t,e,a){return[[t[0][0]-a[0]*e[0][0],t[0][1]-a[0]*e[0][1]],[t[1][0]-a[1]*e[1][0],t[1][1]-a[1]*e[1][1]]]},polygon:function(t,e,a){return Object(n["H"])(t,(function(t,n){return[t[0]-a[0]*e[n][0],t[1]-a[1]*e[n][1]]}))}};function _(t,e,a,n){return[e[0]-n[t]*a[0],e[1]-n[t]*a[1]]}function v(t,e){var a=y(t),n=y(e),i=[a[0]/n[0],a[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function y(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}e["a"]=l},bf0f:function(t,e,a){"use strict";a("015e")},bfa9:function(t,e,a){},c023:function(t,e,a){"use strict";a.d(e,"A",(function(){return s})),a.d(e,"O",(function(){return l})),a.d(e,"f",(function(){return c})),a.d(e,"H",(function(){return u})),a.d(e,"v",(function(){return d})),a.d(e,"o",(function(){return h})),a.d(e,"M",(function(){return p})),a.d(e,"P",(function(){return f})),a.d(e,"h",(function(){return m})),a.d(e,"w",(function(){return g})),a.d(e,"z",(function(){return _})),a.d(e,"n",(function(){return v})),a.d(e,"K",(function(){return y})),a.d(e,"L",(function(){return b})),a.d(e,"N",(function(){return S})),a.d(e,"D",(function(){return O})),a.d(e,"p",(function(){return T})),a.d(e,"d",(function(){return A})),a.d(e,"q",(function(){return x})),a.d(e,"r",(function(){return C})),a.d(e,"u",(function(){return E})),a.d(e,"s",(function(){return w})),a.d(e,"c",(function(){return M})),a.d(e,"t",(function(){return k})),a.d(e,"j",(function(){return I})),a.d(e,"l",(function(){return D})),a.d(e,"i",(function(){return L})),a.d(e,"b",(function(){return R})),a.d(e,"x",(function(){return N})),a.d(e,"y",(function(){return P})),a.d(e,"C",(function(){return j})),a.d(e,"B",(function(){return $})),a.d(e,"J",(function(){return F})),a.d(e,"g",(function(){return B})),a.d(e,"I",(function(){return Y})),a.d(e,"G",(function(){return U})),a.d(e,"e",(function(){return z})),a.d(e,"E",(function(){return V})),a.d(e,"m",(function(){return H})),a.d(e,"F",(function(){return G})),a.d(e,"k",(function(){return W})),a.d(e,"a",(function(){return K}));var n=a("5530"),i=(a("d3b7"),a("159b"),a("b64b"),a("a15b"),a("d81d"),a("ac1f"),a("1276"),a("db49"),a("7f80")),o=function(t){return Object.keys(t).forEach((function(e){return null==t[e]&&delete t[e]})),"?"+Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")},r="https://das-server.tool4seller.com",s=function(t){return Object(i["e"])("tracker/keyword-rank/new/keyword/trend",t)},l=function(t){return Object(i["f"])("/tracker/keyword-rank/new/keyword/batch/active",t)},c=function(t){return Object(i["f"])("/tracker/keyword-rank/add-items",t)},u=function(t,e){return e?Object(i["f"])("/tracker/keyword-rank/remove-item?dasCurrentShop=".concat(e),t):Object(i["f"])("/tracker/keyword-rank/remove-item",t)},d=function(t){return Object(i["e"])("/tracker/keyword-rank/google-trends",t)},h=function(t){return t=Object(n["a"])(Object(n["a"])({},t),{token:localStorage.getItem("token").split(" ")[1]}),window.location.href="".concat(r,"/tracker/keyword-rank/export-rank")+o(t)},p=function(t,e){return e?Object(i["f"])("/tracker/keyword-rank/top?dasCurrentShop=".concat(e),t):Object(i["f"])("/tracker/keyword-rank/top",t)},f=function(t,e){return e?Object(i["f"])("/tracker/keyword-rank/untop?dasCurrentShop=".concat(e),t):Object(i["f"])("/tracker/keyword-rank/untop",t)},m=function(t){return Object(i["f"])("/tracker/keyword-rank/add-keywords",t)},g=function(t){return Object(i["e"])("/tracker/keyword-rank/list",t)},_=function(t){return Object(i["e"])("/tracker/keyword-rank/detail",t)},v=function(t,e){return e?Object(i["f"])("/tracker/keyword-rank/remove-keyword?dasCurrentShop=".concat(e),t):Object(i["f"])("/tracker/keyword-rank/remove-keyword",t)},y=function(t,e){return Object(i["f"])("/tracker/keyword-rank/activate-asin/".concat(t.id,"\n"),{},e)},b=function(t,e){return Object(i["f"])("/tracker/keyword-rank/activate-keyword/".concat(t.id,"\n"),{},e)},S=function(t,e){return Object(i["e"])("/tracker/keyword-rank/new/tracked-listings",t)},O=function(t,e){return Object(i["e"])("/tracker/keyword-rank/suggested-keywords",t)},T=function(t){return Object(i["e"])("/cpc/recommendation/amazon/keyword",t)},A=function(t,e){return e?Object(i["f"])("/tracker/keyword-rank/save-competitor-asins?dasCurrentShop=".concat(e),t):Object(i["f"])("/tracker/keyword-rank/save-competitor-asins",t)},x=function(t){return Object(i["e"])("/tracker/keyword-rank/competitor-asins",t)},C=function(t){return Object(i["e"])("/tracker/keyword-rank/competitor-rank",t)},E=function(t){return Object(i["e"])("/tracker/keyword-rank/list-competitor",t)},w=function(t,e){return t.asin?e?Object(i["e"])("/commodity/listing-crawl?dasCurrentShop=".concat(e),t):Object(i["e"])("/commodity/listing-crawl",t):new Promise((function(t,e){t({status:1})}))},M=function(t,e){return e?Object(i["f"])("/tracker/keyword-rank/add-competitor-items?dasCurrentShop=".concat(e),t):Object(i["f"])("/tracker/keyword-rank/add-competitor-items",t)},k=function(t){return Object(i["e"])("/tracker/keyword-rank/detail-competitor",t)},I=function(t,e){return e?Object(i["f"])("/tracker/keyword-rank/batch/remove?dasCurrentShop=".concat(e),t):Object(i["f"])("/tracker/keyword-rank/batch/remove",t)},D=function(t){return Object(i["d"])("/tracker/keyword-rank/new/remove",t)},L=function(t,e){return Object(i["f"])("/tracker/keyword-rank/batch/active",t,e)},R=function(){return Object(i["e"])("/ad-gps/crawled")},N=function(t,e){var a="/tracker/keyword-rank/new/list-competitor";return e&&(a="/tracker/keyword-rank/new/list-competitor?dasCurrentShops=".concat(e)),Object(i["e"])(a,t)},P=function(t,e){var a="/tracker/keyword-rank/new/list";return e&&(a="/tracker/keyword-rank/new/list?dasCurrentShops=".concat(e)),Object(i["e"])(a,t)},j=function(t,e){return Object(i["e"])("/tracker/keyword-rank/new/keywords",t,e)},$=function(t,e){return Object(i["e"])("/tracker/keyword-rank/new/keyword/detail",t,e)},F=function(t,e){return Object(i["d"])("/tracker/keyword-rank/new/keyword/remove",t,e)},B=function(t,e){return e?Object(i["f"])("/tracker/keyword-rank/new/add-keywords?dasCurrentShop=".concat(e),t):Object(i["f"])("/tracker/keyword-rank/new/add-keywords",t)},Y=function(t,e){return Object(i["d"])("/tracker/keyword-rank/new/remove-keyword",t,e)},U=function(t,e){return Object(i["d"])("/tracker/keyword-rank/new/competitor-remove",t,e)},z=function(t,e){return e?Object(i["f"])("/tracker/keyword-rank/new/save-competitor-asins?dasCurrentShop=".concat(e),t):Object(i["f"])("/tracker/keyword-rank/new/save-competitor-asins",t)},V=function(t,e){return Object(i["f"])("/tracker/keyword-rank/new/add-items",t,e)},H=function(t){return Object(i["e"])("/tracker/keyword-rank/new/competitor-asins",t)},G=function(t,e){return Object(i["f"])("/tracker/keyword-rank/new/add-competitor-items",t,e)},W=function(t){return Object(i["d"])("/tracker/keyword-rank/new/competitor/remove",t)},K=function(t){return Object(i["f"])("/tracker/keyword-rank/new/keyword/active",t)}},c0d8:function(t,e,a){"use strict";a("b2f5")},c12b:function(t,e,a){"use strict";a("dbb8")},c1f5:function(t,e,a){"use strict";a("64b1")},c293:function(t,e,a){},c4a3:function(t,e,a){"use strict";var n=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},t}();e["a"]=n},c526:function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));var n={axisPointer:1,tooltip:1,brush:1};function i(t,e,a){var i=e.getComponentByElement(t.topTarget),o=i&&i.coordinateSystem;return i&&i!==a&&!n.hasOwnProperty(i.mainType)&&o&&o.model!==a}},c55a:function(t,e,a){"use strict";a.d(e,"a",(function(){return Et}));var n=a("4f85"),i=a("6d8b"),o=a("4a3f"),r=a("cbe5"),s=a("401b"),l=a("342d"),c=a("8582"),u=a("e263"),d=a("9850"),h=a("dce8"),p=a("87b1"),f=a("c7a2"),m=a("4aa2"),g=a("20c8"),_=g["a"].CMD;function v(t,e){return Math.abs(t-e)<1e-5}function y(t){var e,a,n,i,o,r=t.data,s=t.len(),l=[],c=0,u=0,d=0,h=0;function p(t,a){e&&e.length>2&&l.push(e),e=[t,a]}function f(t,a,n,i){v(t,n)&&v(a,i)||e.push(t,a,n,i,n,i)}function m(t,a,n,i,o,r){var s=Math.abs(a-t),l=4*Math.tan(s/4)/3,c=a<t?-1:1,u=Math.cos(t),d=Math.sin(t),h=Math.cos(a),p=Math.sin(a),f=u*o+n,m=d*r+i,g=h*o+n,_=p*r+i,v=o*l*c,y=r*l*c;e.push(f-v*d,m+y*u,g+v*p,_-y*h,g,_)}for(var g=0;g<s;){var y=r[g++],b=1===g;switch(b&&(c=r[g],u=r[g+1],d=c,h=u,y!==_.L&&y!==_.C&&y!==_.Q||(e=[d,h])),y){case _.M:c=d=r[g++],u=h=r[g++],p(d,h);break;case _.L:a=r[g++],n=r[g++],f(c,u,a,n),c=a,u=n;break;case _.C:e.push(r[g++],r[g++],r[g++],r[g++],c=r[g++],u=r[g++]);break;case _.Q:a=r[g++],n=r[g++],i=r[g++],o=r[g++],e.push(c+2/3*(a-c),u+2/3*(n-u),i+2/3*(a-i),o+2/3*(n-o),i,o),c=i,u=o;break;case _.A:var S=r[g++],O=r[g++],T=r[g++],A=r[g++],x=r[g++],C=r[g++]+x;g+=1;var E=!r[g++];a=Math.cos(x)*T+S,n=Math.sin(x)*A+O,b?(d=a,h=n,p(d,h)):f(c,u,a,n),c=Math.cos(C)*T+S,u=Math.sin(C)*A+O;for(var w=(E?-1:1)*Math.PI/2,M=x;E?M>C:M<C;M+=w){var k=E?Math.max(M+w,C):Math.min(M+w,C);m(M,k,S,O,T,A)}break;case _.R:d=c=r[g++],h=u=r[g++],a=d+r[g++],n=h+r[g++],p(a,h),f(a,h,a,n),f(a,n,d,n),f(d,n,d,h),f(d,h,a,h);break;case _.Z:e&&f(c,u,d,h),c=d,u=h;break}}return e&&e.length>2&&l.push(e),l}function b(t,e,a,n,i,r,s,l,c,u){if(v(t,a)&&v(e,n)&&v(i,s)&&v(r,l))c.push(s,l);else{var d=2/u,h=d*d,p=s-t,f=l-e,m=Math.sqrt(p*p+f*f);p/=m,f/=m;var g=a-t,_=n-e,y=i-s,S=r-l,O=g*g+_*_,T=y*y+S*S;if(O<h&&T<h)c.push(s,l);else{var A=p*g+f*_,x=-p*y-f*S,C=O-A*A,E=T-x*x;if(C<h&&A>=0&&E<h&&x>=0)c.push(s,l);else{var w=[],M=[];Object(o["g"])(t,a,i,s,.5,w),Object(o["g"])(e,n,r,l,.5,M),b(w[0],M[0],w[1],M[1],w[2],M[2],w[3],M[3],c,u),b(w[4],M[4],w[5],M[5],w[6],M[6],w[7],M[7],c,u)}}}}function S(t,e){var a=y(t),n=[];e=e||1;for(var i=0;i<a.length;i++){var o=a[i],r=[],s=o[0],l=o[1];r.push(s,l);for(var c=2;c<o.length;){var u=o[c++],d=o[c++],h=o[c++],p=o[c++],f=o[c++],m=o[c++];b(s,l,u,d,h,p,f,m,r,e),s=f,l=m}n.push(r)}return n}function O(t,e,a){var n=t[e],i=t[1-e],o=Math.abs(n/i),r=Math.ceil(Math.sqrt(o*a)),s=Math.floor(a/r);0===s&&(s=1,r=a);for(var l=[],c=0;c<r;c++)l.push(s);var u=r*s,d=a-u;if(d>0)for(c=0;c<d;c++)l[c%r]+=1;return l}function T(t,e,a){for(var n=t.r0,i=t.r,o=t.startAngle,r=t.endAngle,s=Math.abs(r-o),l=s*i,c=i-n,u=l>Math.abs(c),d=O([l,c],u?0:1,e),h=(u?s:c)/d.length,p=0;p<d.length;p++)for(var f=(u?c:s)/d[p],m=0;m<d[p];m++){var g={};u?(g.startAngle=o+h*p,g.endAngle=o+h*(p+1),g.r0=n+f*m,g.r=n+f*(m+1)):(g.startAngle=o+f*m,g.endAngle=o+f*(m+1),g.r0=n+h*p,g.r=n+h*(p+1)),g.clockwise=t.clockwise,g.cx=t.cx,g.cy=t.cy,a.push(g)}}function A(t,e,a){for(var n=t.width,i=t.height,o=n>i,r=O([n,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",d=t[s]/r.length,h=0;h<r.length;h++)for(var p=t[l]/r[h],f=0;f<r[h];f++){var m={};m[c]=h*d,m[u]=f*p,m[s]=d,m[l]=p,m.x+=t.x,m.y+=t.y,a.push(m)}}function x(t,e,a,n){return t*n-a*e}function C(t,e,a,n,i,o,r,s){var l=a-t,c=n-e,u=r-i,d=s-o,p=x(u,d,l,c);if(Math.abs(p)<1e-6)return null;var f=t-i,m=e-o,g=x(f,m,u,d)/p;return g<0||g>1?null:new h["a"](g*l+t,g*c+e)}function E(t,e,a){var n=new h["a"];h["a"].sub(n,a,e),n.normalize();var i=new h["a"];h["a"].sub(i,t,e);var o=i.dot(n);return o}function w(t,e){var a=t[t.length-1];a&&a[0]===e[0]&&a[1]===e[1]||t.push(e)}function M(t,e,a){for(var n=t.length,i=[],o=0;o<n;o++){var r=t[o],s=t[(o+1)%n],l=C(r[0],r[1],s[0],s[1],e.x,e.y,a.x,a.y);l&&i.push({projPt:E(l,e,a),pt:l,idx:o})}if(i.length<2)return[{points:t},{points:t}];i.sort((function(t,e){return t.projPt-e.projPt}));var c=i[0],u=i[i.length-1];if(u.idx<c.idx){var d=c;c=u,u=d}var h=[c.pt.x,c.pt.y],p=[u.pt.x,u.pt.y],f=[h],m=[p];for(o=c.idx+1;o<=u.idx;o++)w(f,t[o].slice());w(f,p),w(f,h);for(o=u.idx+1;o<=c.idx+n;o++)w(m,t[o%n].slice());return w(m,h),w(m,p),[{points:f},{points:m}]}function k(t){var e=t.points,a=[],n=[];Object(u["d"])(e,a,n);var i=new d["a"](a[0],a[1],n[0]-a[0],n[1]-a[1]),o=i.width,r=i.height,s=i.x,l=i.y,c=new h["a"],p=new h["a"];return o>r?(c.x=p.x=s+o/2,c.y=l,p.y=l+r):(c.y=p.y=l+r/2,c.x=s,p.x=s+o),M(e,c,p)}function I(t,e,a,n){if(1===a)n.push(e);else{var i=Math.floor(a/2),o=t(e);I(t,o[0],i,n),I(t,o[1],a-i,n)}return n}function D(t,e){for(var a=[],n=0;n<e;n++)a.push(Object(l["a"])(t));return a}function L(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function R(t){for(var e=[],a=0;a<t.length;)e.push([t[a++],t[a++]]);return e}function N(t,e){var a,n=[],o=t.shape;switch(t.type){case"rect":A(o,e,n),a=f["a"];break;case"sector":T(o,e,n),a=m["a"];break;case"circle":T({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},e,n),a=m["a"];break;default:var r=t.getComputedTransform(),s=r?Math.sqrt(Math.max(r[0]*r[0]+r[1]*r[1],r[2]*r[2]+r[3]*r[3])):1,l=Object(i["H"])(S(t.getUpdatedPathProxy(),s),(function(t){return R(t)})),c=l.length;if(0===c)I(k,{points:l[0]},e,n);else if(c===e)for(var d=0;d<c;d++)n.push({points:l[d]});else{var h=0,g=Object(i["H"])(l,(function(t){var e=[],a=[];Object(u["d"])(t,e,a);var n=(a[1]-e[1])*(a[0]-e[0]);return h+=n,{poly:t,area:n}}));g.sort((function(t,e){return e.area-t.area}));var _=e;for(d=0;d<c;d++){var v=g[d];if(_<=0)break;var y=d===c-1?_:Math.ceil(v.area/h*e);y<0||(I(k,{points:v.poly},y,n),_-=y)}}a=p["a"];break}if(!a)return D(t,e);var b=[];for(d=0;d<n.length;d++){var O=new a;O.setShape(n[d]),L(t,O),b.push(O)}return b}function P(t,e){var a=t.length,n=e.length;if(a===n)return[t,e];for(var i=[],r=[],s=a<n?t:e,l=Math.min(a,n),c=Math.abs(n-a)/6,u=(l-2)/6,d=Math.ceil(c/u)+1,h=[s[0],s[1]],p=c,f=2;f<l;){var m=s[f-2],g=s[f-1],_=s[f++],v=s[f++],y=s[f++],b=s[f++],S=s[f++],O=s[f++];if(p<=0)h.push(_,v,y,b,S,O);else{for(var T=Math.min(p,d-1)+1,A=1;A<=T;A++){var x=A/T;Object(o["g"])(m,_,y,S,x,i),Object(o["g"])(g,v,b,O,x,r),m=i[3],g=r[3],h.push(i[1],r[1],i[2],r[2],m,g),_=i[5],v=r[5],y=i[6],b=r[6]}p-=T-1}}return s===t?[h,e]:[t,h]}function j(t,e){for(var a=t.length,n=t[a-2],i=t[a-1],o=[],r=0;r<e.length;)o[r++]=n,o[r++]=i;return o}function $(t,e){for(var a,n,i,o=[],r=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],c=e[s],u=void 0,d=void 0;l?c?(a=P(l,c),u=a[0],d=a[1],n=u,i=d):(d=j(i||l,l),u=l):(u=j(n||c,c),d=c),o.push(u),r.push(d)}return[o,r]}function F(t){for(var e=0,a=0,n=0,i=t.length,o=0,r=i-2;o<i;r=o,o+=2){var s=t[r],l=t[r+1],c=t[o],u=t[o+1],d=s*u-c*l;e+=d,a+=(s+c)*d,n+=(l+u)*d}return 0===e?[t[0]||0,t[1]||0]:[a/e/3,n/e/3,e]}function B(t,e,a,n){for(var i=(t.length-2)/6,o=1/0,r=0,s=t.length,l=s-2,c=0;c<i;c++){for(var u=6*c,d=0,h=0;h<s;h+=2){var p=0===h?u:(u+h-2)%l+2,f=t[p]-a[0],m=t[p+1]-a[1],g=e[h]-n[0],_=e[h+1]-n[1],v=g-f,y=_-m;d+=v*v+y*y}d<o&&(o=d,r=c)}return r}function Y(t){for(var e=[],a=t.length,n=0;n<a;n+=2)e[n]=t[a-n-2],e[n+1]=t[a-n-1];return e}function U(t,e,a,n){for(var i,o=[],r=0;r<t.length;r++){var s=t[r],l=e[r],c=F(s),u=F(l);null==i&&(i=c[2]<0!==u[2]<0);var d=[],h=[],p=0,f=1/0,m=[],g=s.length;i&&(s=Y(s));for(var _=6*B(s,l,c,u),v=g-2,y=0;y<v;y+=2){var b=(_+y)%v+2;d[y+2]=s[b]-c[0],d[y+3]=s[b+1]-c[1]}if(d[0]=s[_]-c[0],d[1]=s[_+1]-c[1],a>0)for(var S=n/a,O=-n/2;O<=n/2;O+=S){var T=Math.sin(O),A=Math.cos(O),x=0;for(y=0;y<s.length;y+=2){var C=d[y],E=d[y+1],w=l[y]-u[0],M=l[y+1]-u[1],k=w*A-M*T,I=w*T+M*A;m[y]=k,m[y+1]=I;var D=k-C,L=I-E;x+=D*D+L*L}if(x<f){f=x,p=O;for(var R=0;R<m.length;R++)h[R]=m[R]}}else for(var N=0;N<g;N+=2)h[N]=l[N]-u[0],h[N+1]=l[N+1]-u[1];o.push({from:d,to:h,fromCp:c,toCp:u,rotation:-p})}return o}function z(t){return t.__isCombineMorphing}var V="__mOriginal_";function H(t,e,a){var n=V+e,i=t[n]||t[e];t[n]||(t[n]=t[e]);var o=a.replace,r=a.after,s=a.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):i.apply(this,e),r&&r.apply(this,e),t}}function G(t,e){var a=V+e;t[a]&&(t[e]=t[a],t[a]=null)}function W(t,e){for(var a=0;a<t.length;a++)for(var n=t[a],i=0;i<n.length;){var o=n[i],r=n[i+1];n[i++]=e[0]*o+e[2]*r+e[4],n[i++]=e[1]*o+e[3]*r+e[5]}}function K(t,e){var a=t.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),i=$(y(a),y(n)),o=i[0],r=i[1],l=t.getComputedTransform(),c=e.getComputedTransform();function u(){this.transform=null}l&&W(o,l),c&&W(r,c),H(e,"updateTransform",{replace:u}),e.transform=null;var d=U(o,r,10,Math.PI),h=[];H(e,"buildPath",{replace:function(t){for(var a=e.__morphT,n=1-a,i=[],o=0;o<d.length;o++){var r=d[o],l=r.from,c=r.to,u=r.rotation*a,p=r.fromCp,f=r.toCp,m=Math.sin(u),g=Math.cos(u);Object(s["j"])(i,p,f,a);for(var _=0;_<l.length;_+=2){var v=l[_],y=l[_+1],b=c[_],S=c[_+1],O=v*n+b*a,T=y*n+S*a;h[_]=O*g-T*m+i[0],h[_+1]=O*m+T*g+i[1]}var A=h[0],x=h[1];t.moveTo(A,x);for(_=2;_<l.length;){b=h[_++],S=h[_++];var C=h[_++],E=h[_++],w=h[_++],M=h[_++];A===b&&x===S&&C===w&&E===M?t.lineTo(w,M):t.bezierCurveTo(b,S,C,E,w,M),A=w,x=M}}}})}function Z(t,e,a){if(!t||!e)return e;var n=a.done,o=a.during;function r(){G(e,"buildPath"),G(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return K(t,e),e.__morphT=0,e.animateTo({__morphT:1},Object(i["i"])({during:function(t){e.dirtyShape(),o&&o(t)},done:function(){r(),n&&n()}},a)),e}function q(t,e,a,n,i,o){var r=16;t=i===a?0:Math.round(32767*(t-a)/(i-a)),e=o===n?0:Math.round(32767*(e-n)/(o-n));for(var s,l=0,c=(1<<r)/2;c>0;c/=2){var u=0,d=0;(t&c)>0&&(u=1),(e&c)>0&&(d=1),l+=c*c*(3*u^d),0===d&&(1===u&&(t=c-1-t,e=c-1-e),s=t,t=e,e=s)}return l}function X(t){var e=1/0,a=1/0,n=-1/0,o=-1/0,r=Object(i["H"])(t,(function(t){var i=t.getBoundingRect(),r=t.getComputedTransform(),s=i.x+i.width/2+(r?r[4]:0),l=i.y+i.height/2+(r?r[5]:0);return e=Math.min(s,e),a=Math.min(l,a),n=Math.max(s,n),o=Math.max(l,o),[s,l]})),s=Object(i["H"])(r,(function(i,r){return{cp:i,z:q(i[0],i[1],e,a,n,o),path:t[r]}}));return s.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function Q(t){return N(t.path,t.count)}function J(){return{fromIndividuals:[],toIndividuals:[],count:0}}function tt(t,e,a){var n=[];function o(t){for(var e=0;e<t.length;e++){var a=t[e];z(a)?o(a.childrenRef()):a instanceof r["b"]&&n.push(a)}}o(t);var s=n.length;if(!s)return J();var l=a.dividePath||Q,u=l({path:e,count:s});if(u.length!==s)return console.error("Invalid morphing: unmatched splitted path"),J();n=X(n),u=X(u);for(var d=a.done,h=a.during,p=a.individualDelay,f=new c["c"],m=0;m<s;m++){var g=n[m],_=u[m];_.parent=e,_.copyTransform(f),p||K(g,_)}function v(t){for(var e=0;e<u.length;e++)u[e].addSelfToZr(t)}function y(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,G(e,"addSelfToZr"),G(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return u},H(e,"addSelfToZr",{after:function(t){v(t)}}),H(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<u.length;e++)u[e].removeSelfFromZr(t)}});var b=u.length;if(p){var S=b,O=function(){S--,0===S&&(y(),d&&d())};for(m=0;m<b;m++){var T=p?Object(i["i"])({delay:(a.delay||0)+p(m,b,n[m],u[m]),done:O},a):a;Z(n[m],u[m],T)}}else e.__morphT=0,e.animateTo({__morphT:1},Object(i["i"])({during:function(t){for(var a=0;a<b;a++){var n=u[a];n.__morphT=e.__morphT,n.dirtyShape()}h&&h(t)},done:function(){y();for(var e=0;e<t.length;e++)G(t[e],"updateTransform");d&&d()}},a));return e.__zr&&v(e.__zr),{fromIndividuals:n,toIndividuals:u,count:b}}function et(t,e,a){var n=e.length,o=[],s=a.dividePath||Q;function c(t){for(var e=0;e<t.length;e++){var a=t[e];z(a)?c(a.childrenRef()):a instanceof r["b"]&&o.push(a)}}if(z(t)){c(t.childrenRef());var u=o.length;if(u<n)for(var d=0,h=u;h<n;h++)o.push(Object(l["a"])(o[d++%u]));o.length=n}else{o=s({path:t,count:n});var p=t.getComputedTransform();for(h=0;h<o.length;h++)o[h].setLocalTransform(p);if(o.length!==n)return console.error("Invalid morphing: unmatched splitted path"),J()}o=X(o),e=X(e);var f=a.individualDelay;for(h=0;h<n;h++){var m=f?Object(i["i"])({delay:(a.delay||0)+f(h,n,o[h],e[h])},a):a;Z(o[h],e[h],m)}return{fromIndividuals:o,toIndividuals:e,count:e.length}}var at=a("deab");function nt(t){return Object(i["t"])(t[0])}function it(t,e){for(var a=[],n=t.length,i=0;i<n;i++)a.push({one:t[i],many:[]});for(i=0;i<e.length;i++){var o=e[i].length,r=void 0;for(r=0;r<o;r++)a[r%n].many.push(e[i][r])}var s=0;for(i=n-1;i>=0;i--)if(!a[i].many.length){var l=a[s].many;if(l.length<=1){if(!s)return a;s=0}o=l.length;var c=Math.ceil(o/2);a[i].many=l.slice(c,o),a[s].many=l.slice(0,c),s++}return a}var ot={clone:function(t){for(var e=[],a=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n<t.count;n++){var i=Object(l["a"])(t.path);i.setStyle("opacity",a),e.push(i)}return e},split:null};function rt(t,e,a,n,o,r){if(t.length&&e.length){var s=Object(at["a"])("update",n,o);if(s&&s.duration>0){var l,c,u=n.getModel("universalTransition").get("delay"),d=Object.assign({setToFinal:!0},s);nt(t)&&(l=t,c=e),nt(e)&&(l=e,c=t);for(var h=l?l===t:t.length>e.length,p=l?it(c,l):it(h?e:t,[h?t:e]),f=0,m=0;m<p.length;m++)f+=p[m].many.length;var g=0;for(m=0;m<p.length;m++)_(p[m],h,g,f),g+=p[m].many.length}}function _(t,e,n,o,s){var l=t.many,c=t.one;if(1!==l.length||s)for(var h=Object(i["i"])({dividePath:ot[a],individualDelay:u&&function(t,e,a,i){return u(t+n,o)}},d),p=e?tt(l,c,h):et(c,l,h),f=p.fromIndividuals,m=p.toIndividuals,g=f.length,v=0;v<g;v++){S=u?Object(i["i"])({delay:u(v,g)},d):d;r(f[v],m[v],e?l[v]:t.one,e?t.one:l[v],S)}else{var y=e?l[0]:c,b=e?c:l[0];if(z(y))_({many:[y],one:b},!0,n,o,!0);else{var S=u?Object(i["i"])({delay:u(n,o)},d):d;Z(y,b,S),r(y,b,y,b,S)}}}}function st(t){if(!t)return[];if(Object(i["t"])(t)){for(var e=[],a=0;a<t.length;a++)e.push(st(t[a]));return e}var n=[];return t.traverse((function(t){t instanceof r["b"]&&!t.disableMorphing&&!t.invisible&&!t.ignore&&n.push(t)})),n}var lt=a("80f0"),ct=a("e0d3"),ut=(a("edae"),a("19eb")),dt=1e4,ht=Object(ct["o"])();function pt(t){for(var e=t.dimensions,a=0;a<e.length;a++){var n=t.getDimensionInfo(e[a]);if(n&&0===n.otherDims.itemGroupId)return e[a]}}function ft(t){var e=[];return Object(i["k"])(t,(function(t){var a=t.data;if(!(a.count()>dt))for(var n=a.getIndices(),i=pt(a),o=0;o<n.length;o++)e.push({data:a,dim:t.dim||i,divide:t.divide,dataIndex:o})})),e}function mt(t,e,a){t.traverse((function(t){t instanceof r["b"]&&Object(at["c"])(t,{style:{opacity:0}},e,{dataIndex:a,isFrom:!0})}))}function gt(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function _t(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function vt(t,e,a){var n=Object(at["a"])("update",a,e);n&&t.traverse((function(t){if(t instanceof ut["c"]){var e=Object(at["b"])(t);e&&t.animateFrom({style:e},n)}}))}function yt(t,e){var a=t.length;if(a!==e.length)return!1;for(var n=0;n<a;n++){var i=t[n],o=e[n];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function bt(t,e,a){var n=ft(t),o=ft(e);function s(t,e,a,n,o){(a||t)&&e.animateFrom({style:a&&a!==t?Object(i["m"])(Object(i["m"])({},a.style),t.style):t.style},o)}function l(t){for(var e=0;e<t.length;e++)if(t[e].dim)return t[e].dim}var c=l(n),u=l(o),d=!1;function h(t,e){return function(a){var n=a.data,i=a.dataIndex;if(e)return n.getId(i);var o=n.hostModel&&n.hostModel.get("dataGroupId"),r=t?c||u:u||c,s=r&&n.getDimensionInfo(r),l=s&&s.ordinalMeta;if(s){var d=n.get(s.name,i);return l&&l.categories[d]||d+""}var h=n.getRawDataItem(i);return h&&h.groupId?h.groupId+"":o||n.getId(i)}}var p=yt(n,o),f={};if(!p)for(var m=0;m<o.length;m++){var g=o[m],_=g.data.getItemGraphicEl(g.dataIndex);_&&(f[_.id]=!0)}function v(t,e){var a=n[e],i=o[t],r=i.data.hostModel,l=a.data.getItemGraphicEl(a.dataIndex),c=i.data.getItemGraphicEl(i.dataIndex);l!==c?l&&f[l.id]||c&&(_t(c),l?(_t(l),gt(l),d=!0,rt(st(l),st(c),i.divide,r,t,s)):mt(c,r,t)):c&&vt(c,i.dataIndex,r)}new lt["a"](n,o,h(!0,p),h(!1,p),null,"multiple").update(v).updateManyToOne((function(t,e){var a=o[t],r=a.data,l=r.hostModel,c=r.getItemGraphicEl(a.dataIndex),u=Object(i["n"])(Object(i["H"])(e,(function(t){return n[t].data.getItemGraphicEl(n[t].dataIndex)})),(function(t){return t&&t!==c&&!f[t.id]}));c&&(_t(c),u.length?(Object(i["k"])(u,(function(t){_t(t),gt(t)})),d=!0,rt(st(u),st(c),a.divide,l,t,s)):mt(c,l,a.dataIndex))})).updateOneToMany((function(t,e){var a=n[e],r=a.data.getItemGraphicEl(a.dataIndex);if(!r||!f[r.id]){var l=Object(i["n"])(Object(i["H"])(t,(function(t){return o[t].data.getItemGraphicEl(o[t].dataIndex)})),(function(t){return t&&t!==r})),c=o[t[0]].data.hostModel;l.length&&(Object(i["k"])(l,(function(t){return _t(t)})),r?(_t(r),gt(r),d=!0,rt(st(r),st(l),a.divide,c,t[0],s)):Object(i["k"])(l,(function(e){return mt(e,c,t[0])})))}})).updateManyToMany((function(t,e){new lt["a"](e,t,(function(t){return n[t].data.getId(n[t].dataIndex)}),(function(t){return o[t].data.getId(o[t].dataIndex)})).update((function(a,n){v(t[a],e[n])})).execute()})).execute(),d&&Object(i["k"])(e,(function(t){var e=t.data,n=e.hostModel,i=n&&a.getViewOfSeriesModel(n),o=Object(at["a"])("update",n,0);i&&n.isAnimationEnabled()&&o&&o.duration>0&&i.group.traverse((function(t){t instanceof r["b"]&&!t.animators.length&&t.animateFrom({style:{opacity:0}},o)}))}))}function St(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function Ot(t){return Object(i["t"])(t)?t.sort().join(","):t}function Tt(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function At(t,e){var a=Object(i["f"])(),n=Object(i["f"])(),o=Object(i["f"])();return Object(i["k"])(t.oldSeries,(function(e,a){var r=t.oldData[a],s=St(e),l=Ot(s);n.set(l,r),Object(i["t"])(s)&&Object(i["k"])(s,(function(t){o.set(t,{data:r,key:l})}))})),Object(i["k"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.getData(),r=St(t),s=Ot(r),l=n.get(s);if(l)a.set(s,{oldSeries:[{divide:Tt(l),data:l}],newSeries:[{divide:Tt(e),data:e}]});else if(Object(i["t"])(r)){0;var c=[];Object(i["k"])(r,(function(t){var e=n.get(t);e&&c.push({divide:Tt(e),data:e})})),c.length&&a.set(s,{oldSeries:c,newSeries:[{data:e,divide:Tt(e)}]})}else{var u=o.get(r);if(u){var d=a.get(u.key);d||(d={oldSeries:[{data:u.data,divide:Tt(u.data)}],newSeries:[]},a.set(u.key,d)),d.newSeries.push({data:e,divide:Tt(e)})}}}})),a}function xt(t,e){for(var a=0;a<t.length;a++){var n=null!=e.seriesIndex&&e.seriesIndex===t[a].seriesIndex||null!=e.seriesId&&e.seriesId===t[a].id;if(n)return a}}function Ct(t,e,a,n){var o=[],r=[];Object(i["k"])(Object(ct["r"])(t.from),(function(t){var a=xt(e.oldSeries,t);a>=0&&o.push({data:e.oldData[a],divide:Tt(e.oldData[a]),dim:t.dimension})})),Object(i["k"])(Object(ct["r"])(t.to),(function(t){var e=xt(a.updatedSeries,t);if(e>=0){var n=a.updatedSeries[e].getData();r.push({data:n,divide:Tt(n),dim:t.dimension})}})),o.length>0&&r.length>0&&bt(o,r,n)}function Et(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,a){Object(i["k"])(Object(ct["r"])(a.seriesTransition),(function(t){Object(i["k"])(Object(ct["r"])(t.to),(function(t){for(var e=a.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][n["a"]]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,a){var o=ht(e);if(o.oldSeries&&a.updatedSeries&&a.optionChanged){var r=a.seriesTransition;if(r)Object(i["k"])(Object(ct["r"])(r),(function(t){Ct(t,o,a,e)}));else{var s=At(o,a);Object(i["k"])(s.keys(),(function(t){var a=s.get(t);bt(a.oldSeries,a.newSeries,e)}))}Object(i["k"])(a.updatedSeries,(function(t){t[n["a"]]&&(t[n["a"]]=!1)}))}for(var l=t.getSeries(),c=o.oldSeries=[],u=o.oldData=[],d=0;d<l.length;d++){var h=l[d].getData();h.count()<dt&&(c.push(l[d]),u.push(h))}}))}},c585:function(t,e,a){"use strict";a("545c")},c7b8:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("app-echart-doughnut",{key:t.pieKey,staticStyle:{width:"100%"},attrs:{tooltip:t.tooltip,series:t.series}})],1)},i=[],o=a("5530"),r=(a("d3b7"),a("99af"),a("b0c0"),a("d81d"),a("37b2")),s=a("2f62"),l=a("bbf0"),c=a("7aad"),u={name:"pieChart",props:{pieItemNames:{}},computed:Object(o["a"])(Object(o["a"])({},Object(s["c"])({CURRENCY_SYMBOL:l["c"]})),{},{isEmpt:function(){return this.pieData.every((function(t){return!t}))}}),components:{AppEchartDoughnut:r["a"]},data:function(){return{tooltip:{trigger:"item",formatter:function(t){return"".concat(t.data.name,": ").concat(t.data.value," </br>").concat(t.percent,"%")}},pieData:[],pieKey:"pieKey",series:[{name:"product cost",type:"pie",radius:["0%","95%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:[]}]}},watch:{pieItemNames:"initChart",CURRENCY_SYMBOL:{immediate:!0,handler:function(){this.tooltip={trigger:"item",formatter:function(t){return"".concat(t.data.name,": ").concat(t.data.value," </br>").concat(t.percent,"%")}},this.initChart()}}},methods:{initChart:function(){var t=this.pieItemNames.map((function(t,e){return{name:t.label,value:t.value,itemStyle:{color:c["a"].color(e),borderWidth:1,borderColor:"#fff"}}}));this.series[0].data=t,this.pieKey=Math.random(),this.$emit("data",t)}},mounted:function(){this.initChart()}},d=u,h=a("2877"),p=Object(h["a"])(d,n,i,!1,null,null,null);e["a"]=p.exports},cb48:function(t,e,a){},cd95:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("app-echart-line-custom",{ref:"lineCharts",attrs:{optionData:t.optionData,height:t.maxHeight?t.maxHeight:400}}),t.hideDownload?t._e():a("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.horve.top",value:t.$checkPermission.checkOut(t.$route.meta&&t.$route.meta.requirePackage||"business")?"":t.$t("_COMMON_EXPORT_TIP"),expression:"!$checkPermission.checkOut(\n      $route.meta && $route.meta.requirePackage || 'business'\n    ) ? $t('_COMMON_EXPORT_TIP') : ''",modifiers:{horve:!0,top:!0}}],staticClass:"downloadIconWrapNew"},[a("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.horve.top",value:t.$t("_PACKAGE_MODULE_LIST_EXPORT_DATA"),expression:"$t('_PACKAGE_MODULE_LIST_EXPORT_DATA')",modifiers:{horve:!0,top:!0}}],attrs:{disabled:!t.$checkPermission.checkOut(t.$route.meta&&t.$route.meta.requirePackage||"business")},on:{click:t.exportExcel}},[a("feather-icon",{attrs:{icon:"DownloadIcon",size:"18"}})],1)])],1)},i=[],o=a("2909"),r=a("5530"),s=(a("d3b7"),a("159b"),a("b64b"),a("b680"),a("4e82"),a("99af"),a("d81d"),a("ac1f"),a("1276"),a("a15b"),a("b0c0"),a("c1df")),l=a.n(s),c=a("6b33"),u=a("493d"),d=a("bb87"),h=(a("8f05"),a("e237")),p={name:"lineChart",components:{AppEchartLineCustom:d["a"]},props:{maxHeight:{},hideDownload:{},isSingleY:{},dateSelectType:{},selectBlock:{},rangeDate:{},refundDays:{}},computed:{profitWeeks:function(){var t={},e=[];return this.refundDays.forEach((function(e){var a=l()(e.date),n=a.year()+"-"+a.isoWeek();t[n]?t[n].push(Object(r["a"])(Object(r["a"])({},e),{},{week:n})):t[n]=[Object(r["a"])(Object(r["a"])({},e),{},{week:n})]})),Object.keys(t).forEach((function(a){var n=t[a].reduce((function(t,e){return{principal:t.principal+e.principal,quantityRefund:t.quantityRefund+e.quantityRefund,quantity:t.quantity+e.quantity,refund:t.refund+e.refund}}),{principal:0,quantityRefund:0,refund:0,quantity:0});n.refundRate=0===n.quantity?"-":n.quantityRefund/n.quantity*100,Object.keys(n).forEach((function(t){"number"===typeof n[t]?n[t]=parseFloat(n[t].toFixed(2)):n[t]=n[t]})),n.date=t[a][0].date+" ~ "+t[a][t[a].length-1].date,n.startDate=t[a][0].date,e.push(n)})),e.sort((function(t,e){return t.startDate-e.startDate})),e},profitMonths:function(){var t={},e=[];return this.refundDays.forEach((function(e){var a=l()(e.date),n=a.year()+"-"+a.month();t[n]?t[n].push(Object(r["a"])(Object(r["a"])({},e),{},{month:n})):t[n]=[Object(r["a"])(Object(r["a"])({},e),{},{month:n})]})),Object.keys(t).forEach((function(a){var n=t[a].reduce((function(t,e){return{principal:t.principal+e.principal,quantityRefund:t.quantityRefund+e.quantityRefund,quantity:t.quantity+e.quantity,refund:t.refund+e.refund}}),{principal:0,quantityRefund:0,refund:0,quantity:0});n.refundRate=0===n.quantity?"-":n.quantityRefund/n.quantity*100,Object.keys(n).forEach((function(t){"number"===typeof n[t]?n[t]=parseFloat(n[t].toFixed(2)):n[t]=n[t]})),n.date=t[a][0].date+" ~ "+t[a][t[a].length-1].date,n.startDate=t[a][0].date,e.push(n)})),e.sort((function(t,e){return t.startDate-e.startDate})),e}},data:function(){return{optionData:{},config:{}}},methods:{exportExcel:function(){var t={},e=this;t.title=e.$t("_ROUTER_NAME_REFUND_REPORT");var a,n=[];"day"===e.dateSelectType?a=e.refundDays:"week"===e.dateSelectType?a=e.profitWeeks:"month"===e.dateSelectType&&(a=e.profitMonths),e.selectBlock.forEach((function(t){n.push(e.config[t].label)})),t.header=[[""].concat(n)],t.body=[],a.forEach((function(a){var n=[a.date];e.selectBlock.forEach((function(t){n.push(a[t]?a[t]:0)})),t.body.push(n)})),Object(h["a"])([].concat(Object(o["a"])(t.header),Object(o["a"])(t.body)),{fileName:t.title})},initChart:function(){var t=this,e=this;switch(this.config={principal:{lineColor:"#ff717a",label:this.$t("_SALES_ANALYSIS_REVENUE")},quantity:{lineColor:"#ff9715",label:this.$t("_REFUND_REPORT_PURCHASE_NUM")},quantityRefund:{lineColor:"#ad6f9a",label:this.$t("_SALES_ANALYSIS_REFUND_NUM")},refundRate:{lineColor:"#73a6ff",label:this.$t("_SALES_ANALYSIS_REFUND_MONEY_RATE")},refund:{lineColor:"#9afc7f",label:this.$t("_SALES_ANALYSIS_REFUND_MONEY")}},this.dateSelectType){case"day":var a=this.refundDays;break;case"week":a=this.profitWeeks;break;case"month":a=this.profitMonths;break;default:break}var n=a.map((function(a){var n=a.date.split("~"),i=n.map((function(e){var a=e.split("-");return"en"==t.$i18n.locale?a[2]+"/"+a[1]:a[1]+"-"+a[2]}));return i.join(e.maxHeight?"~":" ~ ")})),i=[],o=[],s=[];this.selectBlock.forEach((function(n,r){if(t.config[n]){s.push(t.config[n].label);var l=a.map((function(e){return t.isSingleY&&"refundRate"===n?parseFloat(((e[n]||0)/100).toFixed(2)):e[n]||0})),c={color:t.config[n].lineColor},u={type:"line",data:l,itemStyle:c,lineStyle:c,name:t.config[n].label,showInLegend:!0,yAxisIndex:t.isSingleY?0:r};o.push({type:"value",axisLabel:{formatter:function(t,a){if("refundRate"!==n||e.isSingleY){var i=t,o=Math.abs(t),r=0===t?1:t/o;return o<1e3||(o<1e6?i=r*(o/1e3).toFixed(2)+"K":o<1e9&&(i=r*(o/1e6).toFixed(2)+"M")),i}return t+"%"}},splitLine:{show:!0},show:!0}),i.push(u)}})),o.length>1&&o.forEach((function(t){t.splitLine.show=!1}));var l={legend:{top:0,data:s},grid:{top:53,containLabel:o.length<=2,left:0,right:0,width:this.maxHeight?"98%":"100%",bottom:o.length<=2?0:18},xAxis:Object(r["a"])({type:"category",data:n,boundaryGap:!0,axisLabel:{interval:"auto",formatter:c["d"]}},"day"===e.dateSelectType?{splitArea:{show:!0,interval:0,areaStyle:{color:Object(u["a"])(a.map((function(t){return t.date+" 00:00:00"})))}}}:{}),yAxis:o,series:i,tooltip:{trigger:"axis",formatter:function(t){var n=t[0],i="",o=n.name,r=[];return 6===new Date(a[n.dataIndex].date+" 00:00:00").getDay()?o+="("+e.$t("_COMMON_SATURDAY")+")":0===new Date(a[n.dataIndex].date+" 00:00:00").getDay()&&(o+="("+e.$t("_COMMON_SUNDAY")+")"),i+="".concat(e.$t("_TREND_DATE"),": ").concat(o,"<br/>"),e.selectBlock.forEach((function(t){i+="".concat(e.config[t].label,": "),r=a.map((function(e){return e[t]})),i+=r[n.dataIndex],"refundRate"==t&&(i+="%"),i+="<br/>"})),'<div style="padding:12px;">'.concat(i,"</div>")}}};this.optionData=l}},watch:{"$i18n.locale":function(){this.initChart()},refundDays:"initChart",dateSelectType:"initChart",isSingleY:"initChart",selectBlock:{immediate:!0,handler:"initChart"}},mounted:function(){}},f=p,m=a("2877"),g=Object(m["a"])(f,n,i,!1,null,null,null);e["a"]=g.exports},cf5a:function(t,e,a){},d0a0:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"gen-steps"},t._l(t.stepDefines,(function(e,n){return a("div",{key:n,staticClass:"gen-steps-item",class:n===t.step?"":n>t.step?" gen-steps-item--disabled":" gen-steps-item--active"},[a("div",{staticClass:"gen-steps-item__square"},[a("span",{staticClass:"a-r-txt"},[t._v(t._s(e.step+1))])]),a("div",{staticClass:"gen-steps-item__title"},[t._v(t._s(e.label))]),n===t.stepDefines.length-1||t.hideArray?t._e():a("div",{staticClass:"gen-steps-item__arrow"},[a("feather-icon",{attrs:{icon:"ChevronRightIcon"}})],1)])})),0)},i=[],o=(a("a9e3"),{components:{},props:{stepDefines:{type:Array,default:[]},step:{type:Number,default:!1},hideArray:{type:Boolean,default:!1}},data:function(){return{}},computed:{},watch:{},methods:{}}),r=o,s=(a("5d53"),a("2877")),l=Object(s["a"])(r,n,i,!1,null,null,null);e["a"]=l.exports},d2b2:function(t,e,a){"use strict";a("4809")},d32f:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var n=a("6d8b"),i=a("e86a");function o(t,e,a){var o=t.get("borderRadius");if(null==o)return a?{cornerRadius:0}:null;Object(n["t"])(o)||(o=[o,o,o,o]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(n["H"])(o,(function(t){return Object(i["g"])(t,r)}))}}},d37c:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._l(t.lineCharts,(function(e){return a("div",{key:"lineChart"+e.id,staticClass:"linChartBlock"},[a("app-echart-line-custom",{ref:e.id,refInFor:!0,attrs:{optionData:e.optionData,height:t.maxHeight?t.maxHeight:400}})],1)})),t._t("noData")],2)},i=[],o=a("5530"),r=(a("a9e3"),a("d3b7"),a("159b"),a("b64b"),a("b680"),a("4e82"),a("d81d"),a("ac1f"),a("1276"),a("a15b"),a("b0c0"),a("99af"),a("07ac"),a("6b33")),s=a("493d"),l=a("bb87"),c=(a("8f05"),a("c1df")),u=a.n(c),d=(a("e11e"),a("7aad")),h=a("33d8"),p={name:"lineChartList",components:{AppEchartLineCustom:l["a"]},props:{maxHeight:{},yAxisMin:{type:Number},inverse:{type:Boolean,default:!1},addon:{default:function(){return{dates:null,memosData:{list:{},flag:null}}}},dateSelectType:{},selectBlock:{},rangeDate:{},refundType:{},profitType:{},profitHours:{default:function(){return[]}},profitDays:{}},computed:{profitWeeks:function(){var t=this,e={},a=[];return this.profitDays.forEach((function(t){var a=u()(t.date),n=a.year()+"-"+a.isoWeek();e[n]?e[n].push(Object(o["a"])(Object(o["a"])({},t),{},{week:n})):e[n]=[Object(o["a"])(Object(o["a"])({},t),{},{week:n})]})),Object.keys(e).forEach((function(n){var i=e[n].reduce((function(t,e){return{ad_quantity:t.ad_quantity+e.ad_quantity,ad_sales:t.ad_sales+e.ad_sales,ad_spend:t.ad_spend+e.ad_spend,costCpc:t.costCpc+e.costCpc,buyButtonVisits:t.buyButtonVisits+e.buyButtonVisits,cost:t.cost+e.cost,gross:t.gross+e.gross,orders:t.orders+e.orders,pageVisits:t.pageVisits+e.pageVisits,principal:t.principal+e.principal,totalPrincipal:t.totalPrincipal+e.totalPrincipal,totalQuantity:t.totalQuantity+e.totalQuantity,refundNum:t.refundNum+e.refundNum,sumAmount:t.sumAmount+e.sumAmount,sumQuantity:t.sumQuantity+e.sumQuantity,sumQuantityTrend:t.sumQuantityTrend+e.sumQuantityTrend,sumOrderQuantityTrend:t.sumOrderQuantityTrend+e.sumOrderQuantityTrend,sumVisits:t.sumVisits+e.sumVisits}}),{ad_quantity:0,ad_sales:0,ad_spend:0,costCpc:0,buyButtonVisits:0,cost:0,gross:0,orders:0,pageVisits:0,principal:0,totalPrincipal:0,totalQuantity:0,refundNum:0,sumAmount:0,sumQuantity:0,sumQuantityTrend:0,sumOrderQuantityTrend:0,sumVisits:0});i.ad_acos=0==i.ad_sales?0:i.ad_spend/i.ad_sales*100,i.buyButtonRate=0==i.pageVisits?0:i.buyButtonVisits/i.pageVisits*100,i.tacos=0==i.totalPrincipal?0:i.costCpc/i.totalPrincipal*100,i.roas=0===i.ad_spend?0:parseFloat((i.ad_sales/i.ad_spend).toFixed(2)),0==t.profitType?i.rate=0==i.principal?0:i.gross/i.principal*100:1==t.profitType&&(i.rate=0==i.totalPrincipal?0:i.gross/i.totalPrincipal*100),i.refundMoneyRate=0==i.totalQuantity?0:i.refundNum/i.totalQuantity*100,i.sumConv=0==i.sumVisits?0:i.sumQuantityTrend/i.sumVisits*100,i.sumOrderConv=0==i.sumVisits?0:i.sumOrderQuantityTrend/i.sumVisits*100,Object.keys(i).forEach((function(t){i[t]=parseFloat(i[t].toFixed(2))})),i.date=e[n][0].date+" ~ "+e[n][e[n].length-1].date,i.startDate=e[n][0].date,a.push(i)})),a.sort((function(t,e){return t.startDate-e.startDate})),a},profitMonths:function(){var t=this,e={},a=[];return this.profitDays.forEach((function(t){var a=u()(t.date),n=a.year()+"-"+a.month();e[n]?e[n].push(Object(o["a"])(Object(o["a"])({},t),{},{month:n})):e[n]=[Object(o["a"])(Object(o["a"])({},t),{},{month:n})]})),Object.keys(e).forEach((function(n){var i=e[n].reduce((function(t,e){return{ad_quantity:t.ad_quantity+e.ad_quantity,ad_sales:t.ad_sales+e.ad_sales,ad_spend:t.ad_spend+e.ad_spend,costCpc:t.costCpc+e.costCpc,buyButtonVisits:t.buyButtonVisits+e.buyButtonVisits,cost:t.cost+e.cost,gross:t.gross+e.gross,orders:t.orders+e.orders,pageVisits:t.pageVisits+e.pageVisits,principal:t.principal+e.principal,totalPrincipal:t.totalPrincipal+e.totalPrincipal,totalQuantity:t.totalQuantity+e.totalQuantity,refundNum:t.refundNum+e.refundNum,sumAmount:t.sumAmount+e.sumAmount,sumQuantity:t.sumQuantity+e.sumQuantity,sumQuantityTrend:t.sumQuantityTrend+e.sumQuantityTrend,sumOrderQuantityTrend:t.sumOrderQuantityTrend+e.sumOrderQuantityTrend,sumVisits:t.sumVisits+e.sumVisits}}),{ad_quantity:0,ad_sales:0,ad_spend:0,costCpc:0,buyButtonVisits:0,cost:0,gross:0,orders:0,pageVisits:0,principal:0,totalPrincipal:0,totalQuantity:0,refundNum:0,sumAmount:0,sumQuantity:0,sumQuantityTrend:0,sumOrderQuantityTrend:0,sumVisits:0});i.ad_acos=0==i.ad_sales?0:i.ad_spend/i.ad_sales*100,i.buyButtonRate=0==i.pageVisits?0:i.buyButtonVisits/i.pageVisits*100,i.refundMoneyRate=0==i.totalQuantity?0:i.refundNum/i.totalQuantity*100,i.sumConv=0==i.sumVisits?0:i.sumQuantityTrend/i.sumVisits*100,i.sumOrderConv=0==i.sumVisits?0:i.sumOrderQuantityTrend/i.sumVisits*100,i.tacos=0==i.totalPrincipal?0:i.costCpc/i.totalPrincipal*100,i.roas=0===i.ad_spend?0:parseFloat((i.ad_sales/i.ad_spend).toFixed(2)),0==t.profitType?i.rate=0==i.principal?0:i.gross/i.principal*100:1==t.profitType&&(i.rate=0==i.totalPrincipal?0:i.gross/i.totalPrincipal*100),Object.keys(i).forEach((function(t){i[t]=parseFloat(i[t].toFixed(2))})),i.date=e[n][0].date+" ~ "+e[n][e[n].length-1].date,i.startDate=e[n][0].date,a.push(i)})),a.sort((function(t,e){return t.startDate-e.startDate})),a}},data:function(){return{isSingleY:!1,config:{},lineCharts:[]}},methods:{initChart:function(){var t=this;if(this.profitDays&&this.profitDays.length){var e=this,a=[];switch(this.config={sumVisits:{lineColor:"#949233",label:e.$t("_COMMON_TH_VISITS")},sumQuantity:{lineColor:"#1d7f96",label:e.$t("_COMMON_TH_NET_SALES_COUNT")},sumConv:{lineColor:"#af8a00",label:e.$t("businessreport_salesconvrtrate")},sumOrderConv:{lineColor:"#FFCD39",label:e.$t("businessreport_orderconvrtrate")},pageVisits:{lineColor:"#8732d1",label:e.$t("_COMMON_TH_PAGE_VIEWS")},buyButtonRate:{lineColor:"#373",label:e.$t("_COMMON_TH_BUY_BOX_PERCENTAGE")},totalPrincipal:{lineColor:"#ff2dc6",label:e.$t("_TEAM_KPI_TH_SALES")},principal:{lineColor:"#98765d",label:e.$t("_SALES_ANALYSIS_NET_SALES")},cost:{lineColor:"#73a6ff",label:e.$t("_SALES_ANALYSIS_COST")},gross:{lineColor:"#9afc7f",label:e.$t("_SALES_ANALYSIS_PROFIT")},rate:{lineColor:"#a393fe",label:e.$t("_SALES_ANALYSIS_PROFIT_MARGIN")},refundNum:{lineColor:"#ffdf48",label:e.$t("_SALES_ANALYSIS_REFUND_NUM")},refundMoneyRate:{lineColor:"#63f9d0",label:e.$t("_SALES_ANALYSIS_REFUND_MONEY_RATE")},ad_sales:{lineColor:"#f9b799",label:e.$t("_COMMON_TH_AD_SALES")},ad_spend:{lineColor:"#f9868c",label:e.$t("_COMMON_TH_AD_COSTS")},costCpc:{lineColor:"#f9868d",label:e.$t("_COMMON_TH_AD_COSTS")},ad_quantity:{lineColor:"#f986b5",label:e.$t("_AD_PERFORM_TH_PRODUCT_AD_ORDER")},ad_acos:{lineColor:"#ffdcad",label:e.$t("_COMMON_TH_AD_ACOS")},tacos:{lineColor:"#ab62a2",label:e.$t("_COMMON_TH_AD_TACOS")},roas:{lineColor:"#10c96b",label:e.$t("_COMMON_TH_AD_ROAS")},orders:{lineColor:"#ab62a3",label:e.$t("_AD_PERFORM_TH_PRODUCT_AD_ORDERS")},totalQuantity:{lineColor:"#9090f9",label:e.$t("_COMMON_TH_TOTAL_SALES_COUNT")}},this.dateSelectType){case"days":var n=this.profitDays;break;case"week":n=this.profitWeeks;break;case"month":n=this.profitMonths;break;case"hot":n=this.profitHours;break;default:break}n&&this.selectBlock.length&&(this.selectBlock.forEach((function(i,l){t.config[i]||(t.config[i]={lineColor:d["a"].color(l),label:i});var c=n.map((function(e){return t.isSingleY&&["sumConv","sumOrderConv","rate","refundMoneyRate","buyButtonRate","ad_acos","tacos"].indexOf(i)>-1?parseFloat(((e[i]||0)/100).toFixed(2)):e[i]})),u={color:t.config[i].lineColor},p=[{type:"value",min:t.yAxisMin,inverse:t.inverse,axisLabel:{formatter:function(t,a){if(["sumConv","sumOrderConv","rate","refundMoneyRate","buyButtonRate","ad_acos","tacos"].indexOf(i)>-1&&!e.isSingleY)return t+"%";var n=t,o=Math.abs(t),r=0===t?1:t/o;return o<1e3||(o<1e6?n=r*(o/1e3).toFixed(2)+"K":o<1e9&&(n=r*(o/1e6).toFixed(2)+"M")),n}},show:!0}],f=t.addon.memosData.list,m=[{type:"line",data:c,itemStyle:u,lineStyle:u,name:t.config[i].label,memos:f,showInLegend:!0}],g=n.map((function(a,n){if("hot"!=t.dateSelectType){var i=a.date.split("~"),o=i.map((function(e){var a=e.split("-");return"en"==t.$i18n.locale?a[2]+"/"+a[1]:a[1]+"-"+a[2]}));return t.addon.memosData.list[a.date]&&(m[0].data[n]={value:c[n],itemStyle:{color:"#f00"}}),o.join(e.maxHeight?"~":" ~ ")}return a.date})),_={legend:{top:0,data:[t.config[i].label]},grid:{top:53,containLabel:!0,left:0,right:0,width:t.maxHeight?"98%":"100%",bottom:0},xAxis:Object(o["a"])({type:"category",data:g,boundaryGap:!0,axisLabel:{interval:"auto",formatter:r["d"]}},"days"===e.dateSelectType?{splitArea:{show:!0,interval:0,areaStyle:{color:Object(s["a"])(n.map((function(t){return t.date+" 00:00:00"})))}}}:{}),yAxis:p,series:m,tooltip:{trigger:"axis",formatter:function(t){var a=t[0],i="",o=a.name,r=[];if("hot"===e.dateSelectType){var s=e.$t("app_asindetail_history_daterange")+e.$t("_COMMON_SYMBOL_COLON")+e.rangeDate[0]+" ~ "+e.rangeDate[1]+"<br/>",l=o.split(":"),c=e.$t("_MULTI_SHOP_TIME")+e.$t("_COMMON_SYMBOL_COLON")+o+" (".concat(l[0]+":00:00"," ~ ").concat(l[0]+":59:59",")<br/>");i=s+c}else{6===new Date(n[a.dataIndex].date+" 00:00:00").getDay()?o+="("+e.$t("_COMMON_SATURDAY")+")":0===new Date(n[a.dataIndex].date+" 00:00:00").getDay()&&(o+="("+e.$t("_COMMON_SUNDAY")+")");try{var u=Object.values(n)[a.dataIndex].date}catch(p){}e.$t("_COMMON_CHART_NOTE"),f[u]&&(f[u].content.length>200?f[u].content.substr(0,200):f[u].content),e.$t("_COMMON_CHART_NOTE_TOOLTIP");i+="".concat(e.$t("_TREND_DATE"),": ").concat(o,"<br/>")}if(e.selectBlock.forEach((function(t){"hot"===e.dateSelectType?i+="".concat(e.$t("_COMMON_HOUR_REDUCE_POINT",{par:e.config[t].label}),": "):i+="".concat(e.config[t].label,": "),r=n.map((function(e){return e[t]?Object(h["b"])("",e[t]):"-"})),i+=r[a.dataIndex],["sumConv","sumOrderConv","rate","refundMoneyRate","buyButtonRate","ad_acos","tacos"].indexOf(t)>-1&&(i+="%"),i+="<br/>"})),f[u]){var d="<br/>"+e.$t("_COMMON_CHART_NOTE")+' <span style="display: inline-block; width: 300px;white-space: normal; word-wrap: break-word; word-break: break-all; vertical-align: top; color: red;">'+(f[u]?f[u].content.length>200?f[u].content.substr(0,200)+"...":f[u].content:"")+'</span><br/><span style="color: #aaa;">'+e.$t("_COMMON_CHART_NOTE_TOOLTIP")+"</span>";i+="".concat(d)}return'<div style="padding:12px;">'.concat(i,"</div>")}}};a.push({optionData:_,id:"lineCharts"+l})})),this.lineCharts=a,this.$nextTick((function(){a.forEach((function(a){var i=t.$refs[a.id][0].$refs.line.chart;i.on("click",(function(a){if(1!=t.isSku){var i=Object.values(n)[a.dataIndex].date;e.$emit("click-item",{date:i,id:t.addon.memosData.list[i]&&t.addon.memosData.list[i].id,content:t.addon.memosData.list[i]&&t.addon.memosData.list[i].content})}}))}))})))}}},watch:{"$i18n.locale":function(){this.initChart()},addon:{deep:!0,handler:function(){this.initChart()}},profitHours:"initChart",profitDays:"initChart",dateSelectType:"initChart",selectBlock:function(t,e){try{if(t.join("")==e.join(""))return;this.initChart()}catch(a){}}},mounted:function(){this.initChart()}},f=p,m=(a("bf0f"),a("2877")),g=Object(m["a"])(f,n,i,!1,null,"10aade26",null);e["a"]=g.exports},d3f4:function(t,e,a){"use strict";function n(t){return{seriesType:t,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(a&&a.length){var n=t.getData();n.filterSelf((function(t){for(var e=n.getName(t),i=0;i<a.length;i++)if(!a[i].isSelected(e))return!1;return!0}))}}}}a.d(e,"a",(function(){return n}))},d6d0:function(t,e,a){"use strict";a("05c3")},d6fe:function(t,e,a){"use strict";a("5e6a")},d771:function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"f",(function(){return o})),a.d(e,"c",(function(){return r})),a.d(e,"g",(function(){return s})),a.d(e,"k",(function(){return l})),a.d(e,"l",(function(){return c})),a.d(e,"j",(function(){return u})),a.d(e,"h",(function(){return d})),a.d(e,"i",(function(){return h})),a.d(e,"b",(function(){return p})),a.d(e,"d",(function(){return f})),a.d(e,"e",(function(){return m})),a.d(e,"m",(function(){return g})),a.d(e,"n",(function(){return _}));a("99af");var n=a("7f80"),i=function(t){return Object(n["f"])("/db/keywords/create",t)},o=function(t){return Object(n["e"])("/db/keywords/collection",t)},r=function(t){return Object(n["d"])("/db/delete",t)},s=function(t){return Object(n["e"])("/db/keywords",t)},l=function(t,e){return Object(n["e"])("/asin/search-terms/natural/s",{marketplaceId:t,asin:e})},c=function(t){return Object(n["e"])("/asin/search-terms/natural/s",t)},u=function(t){return Object(n["e"])("/asin/search-terms/natural/c",t)},d=function(t){return Object(n["e"])("/db/keywords/list",t)},h=function(t){var e=t.marketplaceId,a=t.asin,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(n["f"])("/asin/search-terms/natural/c?marketplaceId=".concat(e,"&asin=").concat(a),i)},p=function(t){var e=t.marketplaceId,a=t.asin;return Object(n["f"])("/asin/search-terms/ai-extractor?marketplaceId=".concat(e,"&asin=").concat(a))},f=function(t){return Object(n["d"])("/db/keywords/delete",t)},m=function(t){return Object(n["f"])("/db/keywords/add",t)},g=function(t){return Object(n["e"])("/keyword/extraction",t)},_=function(t){return Object(n["g"])("/db/keywords/update",t)}},d881:function(t,e,a){},d94e:function(t,e,a){"use strict";a("bfa9")},dbb8:function(t,e,a){},dbd0:function(t,e,a){},e029:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"region-map-wrapper"},[t.unValuable||t.noPermission?a("div",{staticClass:"region-map-empty"},[a("img",{staticClass:"region-map-empty__pic",attrs:{src:"/images/regionmap/worldmap.png"}}),a("div",{staticClass:"region-map-empty__mask"}),a("div",{staticClass:"region-map-empty__content-line"},[t.noPermission?a("b-button",{staticStyle:{height:"30px","padding-top":"8px","border-radius":"4px","margin-right":"16px"},attrs:{variant:"primary",id:"orderdistrmapdash_authbtn_click"},on:{click:t.introToAuth}},[t._v(" "+t._s(t.$t("_COMMON_BUTTON_AUTH_NOW"))+" ")]):t._e(),!t.noPermission&&t.unValuable?a("span",{staticClass:"region-map-empty__content"},[t._v(t._s(t.$t("orderdistrmap_undevelopedtip")))]):t._e(),!t.noPermission&&t.unValuable?a("b-button",{staticClass:"region-map-empty__btn",attrs:{variant:"link"},on:{click:function(e){return t.handleConnect()}}},[t._v(t._s(t.$t("_COMMON_BUTTON_CONTACT_CM")))]):t._e()],1)]):a("div",{directives:[{name:"deep-loading",rawName:"v-deep-loading",value:!t.iframeReady||t.loading,expression:"(!iframeReady || loading)"}],staticClass:"region-map"},[a("button",{ref:"fakebtn",staticClass:"region-map__fake-point"}),a("iframe",{ref:"ifr",staticClass:"province-map-iframe",attrs:{src:t.frameUrl,height:"100%",width:"100%"}})])])},i=[],o=a("1da1"),r=(a("96cf"),a("e9c4"),a("99af"),a("93e69")),s={name:"ProvinceMap",data:function(){return{iframeReady:!1}},props:{loading:{default:!1},isRefund:{default:0},regionData:{default:function(){return[]}},regionCode:{default:"US"},unValuable:{default:!1},noPermission:{default:!1}},methods:{introToAuth:function(){this.$router.push({path:"/authorization",query:{step:2,isBindNew:1}})},handleConnect:function(){Object(r["a"])()},refreshMap:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",n={language:a,isRefund:this.isRefund||0,regionCode:this.regionCode,regionData:t},i=JSON.stringify({method:"$init",param:n}),o=this.$refs.ifr;o&&(this.iframeReady?setTimeout((function(){var t;null===o||void 0===o||null===(t=o.contentWindow)||void 0===t||t.postMessage(i,"*")}),100):o.onload=function(){e.iframeReady=!0,o.contentWindow.postMessage(i,"*")})}},computed:{frameUrl:function(){var t="".concat("https://static.tool4seller.").concat("com","/pages/world-map/world-map.html");return t},currentLang:function(){var t="en";return"zh-CN"===this.$i18n.locale?t="cn":"ja_jp"===this.$i18n.locale&&(t="jp"),t}},mounted:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t,window.addEventListener("message",function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){var i,o,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(n.origin.indexOf("tool4seller.")>-1||n.origin.indexOf(":8088")>-1)){e.next=11;break}if("loaded"!==n.data){e.next=5;break}return t.iframeReady=!0,t.refreshMap(t.regionData||[],t.currentLang),e.abrupt("return");case 5:if("clicked"!==n.data){e.next=10;break}return i=a.$refs.fakebtn,i&&i.click(),i&&i.focus(),e.abrupt("return");case 10:if(n.data&&"{"===n.data[0])try{o=JSON.parse(n.data),r=o.type,s=o.data,"regionInfo"===r&&t.$store.commit("libInfo/UPDATE_REGION_INFO",s)}catch(l){console.error(l)}case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e)})))()},watch:{"$i18n.locale":function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.refreshMap(e.regionData||[],e.currentLang);case 1:case"end":return t.stop()}}),t)})))()},regionData:function(t){t&&this.refreshMap(t,this.currentLang)},regionCode:function(t){t&&this.refreshMap(this.regionData||[],this.currentLang)}}},l=s,c=(a("d6fe"),a("2877")),u=Object(c["a"])(l,n,i,!1,null,null,null);e["a"]=u.exports},e06e:function(t,e,a){},e11e:function(t,e,a){
/* @preserve
 * Leaflet 1.6.0, a JS library for interactive maps. http://leafletjs.com
 * (c) 2010-2019 Vladimir Agafonkin, (c) 2010-2011 CloudMade
 */
(function(t,a){a(e)})(0,(function(t){"use strict";var e="1.6.0",a=Object.freeze;function n(t){var e,a,n,i;for(a=1,n=arguments.length;a<n;a++)for(e in i=arguments[a],i)t[e]=i[e];return t}Object.freeze=function(t){return t};var i=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function o(t,e){var a=Array.prototype.slice;if(t.bind)return t.bind.apply(t,a.call(arguments,1));var n=a.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(a.call(arguments)):arguments)}}var r=0;function s(t){return t._leaflet_id=t._leaflet_id||++r,t._leaflet_id}function l(t,e,a){var n,i,o,r;return r=function(){n=!1,i&&(o.apply(a,i),i=!1)},o=function(){n?i=arguments:(t.apply(a,arguments),setTimeout(r,e),n=!0)},o}function c(t,e,a){var n=e[1],i=e[0],o=n-i;return t===n&&a?t:((t-i)%o+o)%o+i}function u(){return!1}function d(t,e){var a=Math.pow(10,void 0===e?6:e);return Math.round(t*a)/a}function h(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function p(t){return h(t).split(/\s+/)}function f(t,e){for(var a in t.hasOwnProperty("options")||(t.options=t.options?i(t.options):{}),e)t.options[a]=e[a];return t.options}function m(t,e,a){var n=[];for(var i in t)n.push(encodeURIComponent(a?i.toUpperCase():i)+"="+encodeURIComponent(t[i]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}var g=/\{ *([\w_-]+) *\}/g;function _(t,e){return t.replace(g,(function(t,a){var n=e[a];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"===typeof n&&(n=n(e)),n}))}var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function y(t,e){for(var a=0;a<t.length;a++)if(t[a]===e)return a;return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function S(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var O=0;function T(t){var e=+new Date,a=Math.max(0,16-(e-O));return O=e+a,window.setTimeout(t,a)}var A=window.requestAnimationFrame||S("RequestAnimationFrame")||T,x=window.cancelAnimationFrame||S("CancelAnimationFrame")||S("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function C(t,e,a){if(!a||A!==T)return A.call(window,o(t,e));t.call(e)}function E(t){t&&x.call(window,t)}var w=(Object.freeze||Object)({freeze:a,extend:n,create:i,bind:o,lastId:r,stamp:s,throttle:l,wrapNum:c,falseFn:u,formatNum:d,trim:h,splitWords:p,setOptions:f,getParamString:m,template:_,isArray:v,indexOf:y,emptyImageUrl:b,requestFn:A,cancelFn:x,requestAnimFrame:C,cancelAnimFrame:E});function M(){}function k(t){if("undefined"!==typeof L&&L&&L.Mixin){t=v(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}M.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},a=e.__super__=this.prototype,o=i(a);for(var r in o.constructor=e,e.prototype=o,this)this.hasOwnProperty(r)&&"prototype"!==r&&"__super__"!==r&&(e[r]=this[r]);return t.statics&&(n(e,t.statics),delete t.statics),t.includes&&(k(t.includes),n.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=n(i(o.options),t.options)),n(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){a.callInitHooks&&a.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},e},M.include=function(t){return n(this.prototype,t),this},M.mergeOptions=function(t){return n(this.prototype.options,t),this},M.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),a="function"===typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(a),this};var I={on:function(t,e,a){if("object"===typeof t)for(var n in t)this._on(n,t[n],e);else{t=p(t);for(var i=0,o=t.length;i<o;i++)this._on(t[i],e,a)}return this},off:function(t,e,a){if(t)if("object"===typeof t)for(var n in t)this._off(n,t[n],e);else{t=p(t);for(var i=0,o=t.length;i<o;i++)this._off(t[i],e,a)}else delete this._events;return this},_on:function(t,e,a){this._events=this._events||{};var n=this._events[t];n||(n=[],this._events[t]=n),a===this&&(a=void 0);for(var i={fn:e,ctx:a},o=n,r=0,s=o.length;r<s;r++)if(o[r].fn===e&&o[r].ctx===a)return;o.push(i)},_off:function(t,e,a){var n,i,o;if(this._events&&(n=this._events[t],n))if(e){if(a===this&&(a=void 0),n)for(i=0,o=n.length;i<o;i++){var r=n[i];if(r.ctx===a&&r.fn===e)return r.fn=u,this._firingCount&&(this._events[t]=n=n.slice()),void n.splice(i,1)}}else{for(i=0,o=n.length;i<o;i++)n[i].fn=u;delete this._events[t]}},fire:function(t,e,a){if(!this.listens(t,a))return this;var i=n({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var r=0,s=o.length;r<s;r++){var l=o[r];l.fn.call(l.ctx||this,i)}this._firingCount--}}return a&&this._propagateEvent(i),this},listens:function(t,e){var a=this._events&&this._events[t];if(a&&a.length)return!0;if(e)for(var n in this._eventParents)if(this._eventParents[n].listens(t,e))return!0;return!1},once:function(t,e,a){if("object"===typeof t){for(var n in t)this.once(n,t[n],e);return this}var i=o((function(){this.off(t,e,a).off(t,i,a)}),this);return this.on(t,e,a).on(t,i,a)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[s(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[s(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};I.addEventListener=I.on,I.removeEventListener=I.clearAllEventListeners=I.off,I.addOneTimeEventListener=I.once,I.fireEvent=I.fire,I.hasEventListeners=I.listens;var D=M.extend(I);function R(t,e,a){this.x=a?Math.round(t):t,this.y=a?Math.round(e):e}var N=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function P(t,e,a){return t instanceof R?t:v(t)?new R(t[0],t[1]):void 0===t||null===t?t:"object"===typeof t&&"x"in t&&"y"in t?new R(t.x,t.y):new R(t,e,a)}function j(t,e){if(t)for(var a=e?[t,e]:t,n=0,i=a.length;n<i;n++)this.extend(a[n])}function $(t,e){return!t||t instanceof j?t:new j(t,e)}function F(t,e){if(t)for(var a=e?[t,e]:t,n=0,i=a.length;n<i;n++)this.extend(a[n])}function B(t,e){return t instanceof F?t:new F(t,e)}function Y(t,e,a){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==a&&(this.alt=+a)}function U(t,e,a){return t instanceof Y?t:v(t)&&"object"!==typeof t[0]?3===t.length?new Y(t[0],t[1],t[2]):2===t.length?new Y(t[0],t[1]):null:void 0===t||null===t?t:"object"===typeof t&&"lat"in t?new Y(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new Y(t,e,a)}R.prototype={clone:function(){return new R(this.x,this.y)},add:function(t){return this.clone()._add(P(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(P(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new R(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new R(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=N(this.x),this.y=N(this.y),this},distanceTo:function(t){t=P(t);var e=t.x-this.x,a=t.y-this.y;return Math.sqrt(e*e+a*a)},equals:function(t){return t=P(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=P(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+d(this.x)+", "+d(this.y)+")"}},j.prototype={extend:function(t){return t=P(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new R((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new R(this.min.x,this.max.y)},getTopRight:function(){return new R(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,a;return t="number"===typeof t[0]||t instanceof R?P(t):$(t),t instanceof j?(e=t.min,a=t.max):e=a=t,e.x>=this.min.x&&a.x<=this.max.x&&e.y>=this.min.y&&a.y<=this.max.y},intersects:function(t){t=$(t);var e=this.min,a=this.max,n=t.min,i=t.max,o=i.x>=e.x&&n.x<=a.x,r=i.y>=e.y&&n.y<=a.y;return o&&r},overlaps:function(t){t=$(t);var e=this.min,a=this.max,n=t.min,i=t.max,o=i.x>e.x&&n.x<a.x,r=i.y>e.y&&n.y<a.y;return o&&r},isValid:function(){return!(!this.min||!this.max)}},F.prototype={extend:function(t){var e,a,n=this._southWest,i=this._northEast;if(t instanceof Y)e=t,a=t;else{if(!(t instanceof F))return t?this.extend(U(t)||B(t)):this;if(e=t._southWest,a=t._northEast,!e||!a)return this}return n||i?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),i.lat=Math.max(a.lat,i.lat),i.lng=Math.max(a.lng,i.lng)):(this._southWest=new Y(e.lat,e.lng),this._northEast=new Y(a.lat,a.lng)),this},pad:function(t){var e=this._southWest,a=this._northEast,n=Math.abs(e.lat-a.lat)*t,i=Math.abs(e.lng-a.lng)*t;return new F(new Y(e.lat-n,e.lng-i),new Y(a.lat+n,a.lng+i))},getCenter:function(){return new Y((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new Y(this.getNorth(),this.getWest())},getSouthEast:function(){return new Y(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"===typeof t[0]||t instanceof Y||"lat"in t?U(t):B(t);var e,a,n=this._southWest,i=this._northEast;return t instanceof F?(e=t.getSouthWest(),a=t.getNorthEast()):e=a=t,e.lat>=n.lat&&a.lat<=i.lat&&e.lng>=n.lng&&a.lng<=i.lng},intersects:function(t){t=B(t);var e=this._southWest,a=this._northEast,n=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>=e.lat&&n.lat<=a.lat,r=i.lng>=e.lng&&n.lng<=a.lng;return o&&r},overlaps:function(t){t=B(t);var e=this._southWest,a=this._northEast,n=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>e.lat&&n.lat<a.lat,r=i.lng>e.lng&&n.lng<a.lng;return o&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=B(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},Y.prototype={equals:function(t,e){if(!t)return!1;t=U(t);var a=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return a<=(void 0===e?1e-9:e)},toString:function(t){return"LatLng("+d(this.lat,t)+", "+d(this.lng,t)+")"},distanceTo:function(t){return V.distance(this,U(t))},wrap:function(){return V.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,a=e/Math.cos(Math.PI/180*this.lat);return B([this.lat-e,this.lng-a],[this.lat+e,this.lng+a])},clone:function(){return new Y(this.lat,this.lng,this.alt)}};var z={latLngToPoint:function(t,e){var a=this.projection.project(t),n=this.scale(e);return this.transformation._transform(a,n)},pointToLatLng:function(t,e){var a=this.scale(e),n=this.transformation.untransform(t,a);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,a=this.scale(t),n=this.transformation.transform(e.min,a),i=this.transformation.transform(e.max,a);return new j(n,i)},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?c(t.lng,this.wrapLng,!0):t.lng,a=this.wrapLat?c(t.lat,this.wrapLat,!0):t.lat,n=t.alt;return new Y(a,e,n)},wrapLatLngBounds:function(t){var e=t.getCenter(),a=this.wrapLatLng(e),n=e.lat-a.lat,i=e.lng-a.lng;if(0===n&&0===i)return t;var o=t.getSouthWest(),r=t.getNorthEast(),s=new Y(o.lat-n,o.lng-i),l=new Y(r.lat-n,r.lng-i);return new F(s,l)}},V=n({},z,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var a=Math.PI/180,n=t.lat*a,i=e.lat*a,o=Math.sin((e.lat-t.lat)*a/2),r=Math.sin((e.lng-t.lng)*a/2),s=o*o+Math.cos(n)*Math.cos(i)*r*r,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),H=6378137,G={R:H,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,a=this.MAX_LATITUDE,n=Math.max(Math.min(a,t.lat),-a),i=Math.sin(n*e);return new R(this.R*t.lng*e,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(t){var e=180/Math.PI;return new Y((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=H*Math.PI;return new j([-t,-t],[t,t])}()};function W(t,e,a,n){if(v(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=a,this._d=n}function K(t,e,a,n){return new W(t,e,a,n)}W.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new R((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var Z=n({},V,{code:"EPSG:3857",projection:G,transformation:function(){var t=.5/(Math.PI*G.R);return K(t,.5,-t,.5)}()}),q=n({},Z,{code:"EPSG:900913"});function X(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Q(t,e){var a,n,i,o,r,s,l="";for(a=0,i=t.length;a<i;a++){for(r=t[a],n=0,o=r.length;n<o;n++)s=r[n],l+=(n?"L":"M")+s.x+" "+s.y;l+=e?kt?"z":"x":""}return l||"M0 0"}var J=document.documentElement.style,tt="ActiveXObject"in window,et=tt&&!document.addEventListener,at="msLaunchUri"in navigator&&!("documentMode"in document),nt=Dt("webkit"),it=Dt("android"),ot=Dt("android 2")||Dt("android 3"),rt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=it&&Dt("Google")&&rt<537&&!("AudioNode"in window),lt=!!window.opera,ct=Dt("chrome"),ut=Dt("gecko")&&!nt&&!lt&&!tt,dt=!ct&&Dt("safari"),ht=Dt("phantom"),pt="OTransition"in J,ft=0===navigator.platform.indexOf("Win"),mt=tt&&"transition"in J,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot,_t="MozPerspective"in J,vt=!window.L_DISABLE_3D&&(mt||gt||_t)&&!pt&&!ht,yt="undefined"!==typeof orientation||Dt("mobile"),bt=yt&&nt,St=yt&&gt,Ot=!window.PointerEvent&&window.MSPointerEvent,Tt=!nt&&!(!window.PointerEvent&&!Ot),At=!window.L_NO_TOUCH&&(Tt||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),xt=yt&&lt,Ct=yt&&ut,Et=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,wt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",u,e),window.removeEventListener("testPassiveEventSupport",u,e)}catch(a){}return t},Mt=function(){return!!document.createElement("canvas").getContext}(),kt=!(!document.createElementNS||!X("svg").createSVGRect),It=!kt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"===typeof e.adj}catch(a){return!1}}();function Dt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Lt=(Object.freeze||Object)({ie:tt,ielt9:et,edge:at,webkit:nt,android:it,android23:ot,androidStock:st,opera:lt,chrome:ct,gecko:ut,safari:dt,phantom:ht,opera12:pt,win:ft,ie3d:mt,webkit3d:gt,gecko3d:_t,any3d:vt,mobile:yt,mobileWebkit:bt,mobileWebkit3d:St,msPointer:Ot,pointer:Tt,touch:At,mobileOpera:xt,mobileGecko:Ct,retina:Et,passiveEvents:wt,canvas:Mt,svg:kt,vml:It}),Rt=Ot?"MSPointerDown":"pointerdown",Nt=Ot?"MSPointerMove":"pointermove",Pt=Ot?"MSPointerUp":"pointerup",jt=Ot?"MSPointerCancel":"pointercancel",$t=["INPUT","SELECT","OPTION"],Ft={},Bt=!1,Yt=0;function Ut(t,e,a,n){return"touchstart"===e?Vt(t,a,n):"touchmove"===e?Zt(t,a,n):"touchend"===e&&qt(t,a,n),this}function zt(t,e,a){var n=t["_leaflet_"+e+a];return"touchstart"===e?t.removeEventListener(Rt,n,!1):"touchmove"===e?t.removeEventListener(Nt,n,!1):"touchend"===e&&(t.removeEventListener(Pt,n,!1),t.removeEventListener(jt,n,!1)),this}function Vt(t,e,a){var n=o((function(t){if("mouse"!==t.pointerType&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!($t.indexOf(t.target.tagName)<0))return;Ve(t)}Kt(t,e)}));t["_leaflet_touchstart"+a]=n,t.addEventListener(Rt,n,!1),Bt||(document.documentElement.addEventListener(Rt,Ht,!0),document.documentElement.addEventListener(Nt,Gt,!0),document.documentElement.addEventListener(Pt,Wt,!0),document.documentElement.addEventListener(jt,Wt,!0),Bt=!0)}function Ht(t){Ft[t.pointerId]=t,Yt++}function Gt(t){Ft[t.pointerId]&&(Ft[t.pointerId]=t)}function Wt(t){delete Ft[t.pointerId],Yt--}function Kt(t,e){for(var a in t.touches=[],Ft)t.touches.push(Ft[a]);t.changedTouches=[t],e(t)}function Zt(t,e,a){var n=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&Kt(t,e)};t["_leaflet_touchmove"+a]=n,t.addEventListener(Nt,n,!1)}function qt(t,e,a){var n=function(t){Kt(t,e)};t["_leaflet_touchend"+a]=n,t.addEventListener(Pt,n,!1),t.addEventListener(jt,n,!1)}var Xt=Ot?"MSPointerDown":Tt?"pointerdown":"touchstart",Qt=Ot?"MSPointerUp":Tt?"pointerup":"touchend",Jt="_leaflet_";function te(t,e,a){var n,i,o=!1,r=250;function s(t){var e;if(Tt){if(!at||"mouse"===t.pointerType)return;e=Yt}else e=t.touches.length;if(!(e>1)){var a=Date.now(),s=a-(n||a);i=t.touches?t.touches[0]:t,o=s>0&&s<=r,n=a}}function l(t){if(o&&!i.cancelBubble){if(Tt){if(!at||"mouse"===t.pointerType)return;var a,r,s={};for(r in i)a=i[r],s[r]=a&&a.bind?a.bind(i):a;i=s}i.type="dblclick",i.button=0,e(i),n=null}}return t[Jt+Xt+a]=s,t[Jt+Qt+a]=l,t[Jt+"dblclick"+a]=e,t.addEventListener(Xt,s,!!wt&&{passive:!1}),t.addEventListener(Qt,l,!!wt&&{passive:!1}),t.addEventListener("dblclick",e,!1),this}function ee(t,e){var a=t[Jt+Xt+e],n=t[Jt+Qt+e],i=t[Jt+"dblclick"+e];return t.removeEventListener(Xt,a,!!wt&&{passive:!1}),t.removeEventListener(Qt,n,!!wt&&{passive:!1}),at||t.removeEventListener("dblclick",i,!1),this}var ae,ne,ie,oe,re,se=Ae(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),le=Ae(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ce="webkitTransition"===le||"OTransition"===le?le+"End":"transitionend";function ue(t){return"string"===typeof t?document.getElementById(t):t}function de(t,e){var a=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!a||"auto"===a)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);a=n?n[e]:null}return"auto"===a?null:a}function he(t,e,a){var n=document.createElement(t);return n.className=e||"",a&&a.appendChild(n),n}function pe(t){var e=t.parentNode;e&&e.removeChild(t)}function fe(t){while(t.firstChild)t.removeChild(t.firstChild)}function me(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ge(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function _e(t,e){if(void 0!==t.classList)return t.classList.contains(e);var a=Se(t);return a.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(a)}function ve(t,e){if(void 0!==t.classList)for(var a=p(e),n=0,i=a.length;n<i;n++)t.classList.add(a[n]);else if(!_e(t,e)){var o=Se(t);be(t,(o?o+" ":"")+e)}}function ye(t,e){void 0!==t.classList?t.classList.remove(e):be(t,h((" "+Se(t)+" ").replace(" "+e+" "," ")))}function be(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function Se(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function Oe(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Te(t,e)}function Te(t,e){var a=!1,n="DXImageTransform.Microsoft.Alpha";try{a=t.filters.item(n)}catch(i){if(1===e)return}e=Math.round(100*e),a?(a.Enabled=100!==e,a.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}function Ae(t){for(var e=document.documentElement.style,a=0;a<t.length;a++)if(t[a]in e)return t[a];return!1}function xe(t,e,a){var n=e||new R(0,0);t.style[se]=(mt?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(a?" scale("+a+")":"")}function Ce(t,e){t._leaflet_pos=e,vt?xe(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Ee(t){return t._leaflet_pos||new R(0,0)}if("onselectstart"in document)ae=function(){Pe(window,"selectstart",Ve)},ne=function(){$e(window,"selectstart",Ve)};else{var we=Ae(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ae=function(){if(we){var t=document.documentElement.style;ie=t[we],t[we]="none"}},ne=function(){we&&(document.documentElement.style[we]=ie,ie=void 0)}}function Me(){Pe(window,"dragstart",Ve)}function ke(){$e(window,"dragstart",Ve)}function Ie(t){while(-1===t.tabIndex)t=t.parentNode;t.style&&(De(),oe=t,re=t.style.outline,t.style.outline="none",Pe(window,"keydown",De))}function De(){oe&&(oe.style.outline=re,oe=void 0,re=void 0,$e(window,"keydown",De))}function Le(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Re(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ne=(Object.freeze||Object)({TRANSFORM:se,TRANSITION:le,TRANSITION_END:ce,get:ue,getStyle:de,create:he,remove:pe,empty:fe,toFront:me,toBack:ge,hasClass:_e,addClass:ve,removeClass:ye,setClass:be,getClass:Se,setOpacity:Oe,testProp:Ae,setTransform:xe,setPosition:Ce,getPosition:Ee,disableTextSelection:ae,enableTextSelection:ne,disableImageDrag:Me,enableImageDrag:ke,preventOutline:Ie,restoreOutline:De,getSizedParentNode:Le,getScale:Re});function Pe(t,e,a,n){if("object"===typeof e)for(var i in e)Fe(t,i,e[i],a);else{e=p(e);for(var o=0,r=e.length;o<r;o++)Fe(t,e[o],a,n)}return this}var je="_leaflet_events";function $e(t,e,a,n){if("object"===typeof e)for(var i in e)Be(t,i,e[i],a);else if(e){e=p(e);for(var o=0,r=e.length;o<r;o++)Be(t,e[o],a,n)}else{for(var s in t[je])Be(t,s,t[je][s]);delete t[je]}return this}function Fe(t,e,a,n){var i=e+s(a)+(n?"_"+s(n):"");if(t[je]&&t[je][i])return this;var o=function(e){return a.call(n||t,e||window.event)},r=o;Tt&&0===e.indexOf("touch")?Ut(t,e,o,i):!At||"dblclick"!==e||!te||Tt&&ct?"addEventListener"in t?"mousewheel"===e?t.addEventListener("onwheel"in t?"wheel":"mousewheel",o,!!wt&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(o=function(e){e=e||window.event,Je(t,e)&&r(e)},t.addEventListener("mouseenter"===e?"mouseover":"mouseout",o,!1)):("click"===e&&it&&(o=function(t){ta(t,r)}),t.addEventListener(e,o,!1)):"attachEvent"in t&&t.attachEvent("on"+e,o):te(t,o,i),t[je]=t[je]||{},t[je][i]=o}function Be(t,e,a,n){var i=e+s(a)+(n?"_"+s(n):""),o=t[je]&&t[je][i];if(!o)return this;Tt&&0===e.indexOf("touch")?zt(t,e,i):!At||"dblclick"!==e||!ee||Tt&&ct?"removeEventListener"in t?"mousewheel"===e?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",o,!!wt&&{passive:!1}):t.removeEventListener("mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,o,!1):"detachEvent"in t&&t.detachEvent("on"+e,o):ee(t,i),t[je][i]=null}function Ye(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Qe(t),this}function Ue(t){return Fe(t,"mousewheel",Ye),this}function ze(t){return Pe(t,"mousedown touchstart dblclick",Ye),Fe(t,"click",Xe),this}function Ve(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function He(t){return Ve(t),Ye(t),this}function Ge(t,e){if(!e)return new R(t.clientX,t.clientY);var a=Re(e),n=a.boundingClientRect;return new R((t.clientX-n.left)/a.x-e.clientLeft,(t.clientY-n.top)/a.y-e.clientTop)}var We=ft&&ct?2*window.devicePixelRatio:ut?window.devicePixelRatio:1;function Ke(t){return at?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/We:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var Ze,qe={};function Xe(t){qe[t.type]=!0}function Qe(t){var e=qe[t.type];return qe[t.type]=!1,e}function Je(t,e){var a=e.relatedTarget;if(!a)return!0;try{while(a&&a!==t)a=a.parentNode}catch(n){return!1}return a!==t}function ta(t,e){var a=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,n=Ze&&a-Ze;n&&n>100&&n<500||t.target._simulatedClick&&!t._simulated?He(t):(Ze=a,e(t))}var ea=(Object.freeze||Object)({on:Pe,off:$e,stopPropagation:Ye,disableScrollPropagation:Ue,disableClickPropagation:ze,preventDefault:Ve,stop:He,getMousePosition:Ge,getWheelDelta:Ke,fakeStop:Xe,skipped:Qe,isExternalTarget:Je,addListener:Pe,removeListener:$e}),aa=D.extend({run:function(t,e,a,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=a||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Ee(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=C(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,a=1e3*this._duration;e<a?this._runFrame(this._easeOut(e/a),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var a=this._startPos.add(this._offset.multiplyBy(t));e&&a._round(),Ce(this._el,a),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),na=D.extend({options:{crs:Z,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=f(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(U(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=le&&vt&&!xt&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Pe(this._proxy,ce,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,a){if(e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(U(t),e,this.options.maxBounds),a=a||{},this._stop(),this._loaded&&!a.reset&&!0!==a){void 0!==a.animate&&(a.zoom=n({animate:a.animate},a.zoom),a.pan=n({animate:a.animate,duration:a.duration},a.pan));var i=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,a.zoom):this._tryAnimatedPan(t,a.pan);if(i)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(vt?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(vt?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,a){var n=this.getZoomScale(e),i=this.getSize().divideBy(2),o=t instanceof R?t:this.latLngToContainerPoint(t),r=o.subtract(i).multiplyBy(1-1/n),s=this.containerPointToLatLng(i.add(r));return this.setView(s,e,{zoom:a})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():B(t);var a=P(e.paddingTopLeft||e.padding||[0,0]),n=P(e.paddingBottomRight||e.padding||[0,0]),i=this.getBoundsZoom(t,!1,a.add(n));if(i="number"===typeof e.maxZoom?Math.min(e.maxZoom,i):i,i===1/0)return{center:t.getCenter(),zoom:i};var o=n.subtract(a).divideBy(2),r=this.project(t.getSouthWest(),i),s=this.project(t.getNorthEast(),i),l=this.unproject(r.add(s).divideBy(2).add(o),i);return{center:l,zoom:i}},fitBounds:function(t,e){if(t=B(t),!t.isValid())throw new Error("Bounds are not valid.");var a=this._getBoundsCenterZoom(t,e);return this.setView(a.center,a.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(t=P(t).round(),e=e||{},!t.x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new aa,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){ve(this._mapPane,"leaflet-pan-anim");var a=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,a,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,a){if(a=a||{},!1===a.animate||!vt)return this.setView(t,e,a);this._stop();var n=this.project(this.getCenter()),i=this.project(t),o=this.getSize(),r=this._zoom;t=U(t),e=void 0===e?r:e;var s=Math.max(o.x,o.y),l=s*this.getZoomScale(r,e),c=i.distanceTo(n)||1,u=1.42,d=u*u;function h(t){var e=t?-1:1,a=t?l:s,n=l*l-s*s+e*d*d*c*c,i=2*a*d*c,o=n/i,r=Math.sqrt(o*o+1)-o,u=r<1e-9?-18:Math.log(r);return u}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return p(t)/f(t)}var g=h(0);function _(t){return s*(f(g)/f(g+u*t))}function v(t){return s*(f(g)*m(g+u*t)-p(g))/d}function y(t){return 1-Math.pow(1-t,1.5)}var b=Date.now(),S=(h(1)-g)/u,O=a.duration?1e3*a.duration:1e3*S*.8;function T(){var a=(Date.now()-b)/O,o=y(a)*S;a<=1?(this._flyToFrame=C(T,this),this._move(this.unproject(n.add(i.subtract(n).multiplyBy(v(o)/c)),r),this.getScaleZoom(s/_(o),r),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,a.noMoveStart),T.call(this),this},flyToBounds:function(t,e){var a=this._getBoundsCenterZoom(t,e);return this.flyTo(a.center,a.zoom,e)},setMaxBounds:function(t){return t=B(t),t.isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var a=this.getCenter(),n=this._limitCenter(a,this._zoom,B(t));return a.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var a=P(e.paddingTopLeft||e.padding||[0,0]),n=P(e.paddingBottomRight||e.padding||[0,0]),i=this.getCenter(),o=this.project(i),r=this.project(t),s=this.getPixelBounds(),l=s.getSize().divideBy(2),c=$([s.min.add(a),s.max.subtract(n)]);if(!c.contains(r)){this._enforcingBounds=!0;var u=o.subtract(r),d=P(r.x+u.x,r.y+u.y);(r.x<c.min.x||r.x>c.max.x)&&(d.x=o.x-u.x,u.x>0?d.x+=l.x-a.x:d.x-=l.x-n.x),(r.y<c.min.y||r.y>c.max.y)&&(d.y=o.y-u.y,u.y>0?d.y+=l.y-a.y:d.y-=l.y-n.y),this.panTo(this.unproject(d),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var a=this.getSize(),i=e.divideBy(2).round(),r=a.divideBy(2).round(),s=i.subtract(r);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:a})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),a=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,a,t):navigator.geolocation.getCurrentPosition(e,a,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,a=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+a+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,a=t.coords.longitude,n=new Y(e,a),i=n.toBounds(2*t.coords.accuracy),o=this._locateOptions;if(o.setView){var r=this.getBoundsZoom(i);this.setView(n,o.maxZoom?Math.min(r,o.maxZoom):r)}var s={latlng:n,bounds:i,timestamp:t.timestamp};for(var l in t.coords)"number"===typeof t.coords[l]&&(s[l]=t.coords[l]);this.fire("locationfound",s)},addHandler:function(t,e){if(!e)return this;var a=this[t]=new e(this);return this._handlers.push(a),this.options[t]&&a.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),pe(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)pe(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var a="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=he("div",a,e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),a=this.unproject(t.getTopRight());return new F(e,a)},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,a){t=B(t),a=P(a||[0,0]);var n=this.getZoom()||0,i=this.getMinZoom(),o=this.getMaxZoom(),r=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(a),c=$(this.project(s,n),this.project(r,n)).getSize(),u=vt?this.options.zoomSnap:1,d=l.x/c.x,h=l.y/c.y,p=e?Math.max(d,h):Math.min(d,h);return n=this.getScaleZoom(p,n),u&&(n=Math.round(n/(u/100))*(u/100),n=e?Math.ceil(n/u)*u:Math.floor(n/u)*u),Math.max(i,Math.min(o,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new R(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var a=this._getTopLeftPoint(t,e);return new j(a,a.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"===typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var a=this.options.crs;return e=void 0===e?this._zoom:e,a.scale(t)/a.scale(e)},getScaleZoom:function(t,e){var a=this.options.crs;e=void 0===e?this._zoom:e;var n=a.zoom(t*a.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(U(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(P(t),e)},layerPointToLatLng:function(t){var e=P(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(U(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(U(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(B(t))},distance:function(t,e){return this.options.crs.distance(U(t),U(e))},containerPointToLayerPoint:function(t){return P(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return P(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(P(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(U(t)))},mouseEventToContainerPoint:function(t){return Ge(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ue(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Pe(e,"scroll",this._onScroll,this),this._containerId=s(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&vt,ve(t,"leaflet-container"+(At?" leaflet-touch":"")+(Et?" leaflet-retina":"")+(et?" leaflet-oldie":"")+(dt?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=de(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ce(this._mapPane,new R(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ve(t.markerPane,"leaflet-zoom-hide"),ve(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){Ce(this._mapPane,new R(0,0));var a=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var n=this._zoom!==e;this._moveStart(n,!1)._move(t,e)._moveEnd(n),this.fire("viewreset"),a&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,a){void 0===e&&(e=this._zoom);var n=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||a&&a.pinch)&&this.fire("zoom",a),this.fire("move",a)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Ce(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[s(this._container)]=this;var e=t?$e:Pe;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),vt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=C((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){var a,n=[],i="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,r=!1;while(o){if(a=this._targets[s(o)],a&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(a)){r=!0;break}if(a&&a.listens(e,!0)){if(i&&!Je(o,t))break;if(n.push(a),i)break}if(o===this._container)break;o=o.parentNode}return n.length||r||i||!Je(o,t)||(n=[this]),n},_handleDOMEvent:function(t){if(this._loaded&&!Qe(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||Ie(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,a){if("click"===t.type){var i=n({},t);i.type="preclick",this._fireDOMEvent(i,i.type,a)}if(!t._stopped&&(a=(a||[]).concat(this._findEventTargets(t,e)),a.length)){var o=a[0];"contextmenu"===e&&o.listens(e,!0)&&Ve(t);var r={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var s=o.getLatLng&&(!o._radius||o._radius<=10);r.containerPoint=s?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=s?o.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var l=0;l<a.length;l++)if(a[l].fire(e,r,!0),r.originalEvent._stopped||!1===a[l].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,e))return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Ee(this._mapPane)||new R(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var a=t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return a.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var a=this.getSize()._divideBy(2);return this.project(t,e)._subtract(a)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,a){var n=this._getNewPixelOrigin(a,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,a){var n=this._getNewPixelOrigin(a,e);return $([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,a){if(!a)return t;var n=this.project(t,e),i=this.getSize().divideBy(2),o=new j(n.subtract(i),n.add(i)),r=this._getBoundsOffset(o,a,e);return r.round().equals([0,0])?t:this.unproject(n.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var a=this.getPixelBounds(),n=new j(a.min.add(t),a.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,a){var n=$(this.project(e.getNorthEast(),a),this.project(e.getSouthWest(),a)),i=n.min.subtract(t.min),o=n.max.subtract(t.max),r=this._rebound(i.x,-o.x),s=this._rebound(i.y,-o.y);return new R(r,s)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),a=this.getMaxZoom(),n=vt?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(a,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ye(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var a=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(a))&&(this.panBy(a,e),!0)},_createAnimProxy:function(){var t=this._proxy=he("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=se,a=this._proxy.style[e];xe(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),a===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){pe(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();xe(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,a){if(this._animatingZoom)return!0;if(a=a||{},!this._zoomAnimated||!1===a.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),i=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==a.animate&&!this.getSize().contains(i))&&(C((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),!0)},_animateZoom:function(t,e,a,n){this._mapPane&&(a&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ve(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ye(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),C((function(){this._moveEnd(!0)}),this))}});function ia(t,e){return new na(t,e)}var oa=M.extend({options:{position:"topright"},initialize:function(t){f(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),a=this.getPosition(),n=t._controlCorners[a];return ve(e,"leaflet-control"),-1!==a.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(pe(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ra=function(t){return new oa(t)};na.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",a=this._controlContainer=he("div",e+"control-container",this._container);function n(n,i){var o=e+n+" "+e+i;t[n+i]=he("div",o,a)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)pe(this._controlCorners[t]);pe(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var sa=oa.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,a,n){return a<n?-1:n<a?1:0}},initialize:function(t,e,a){for(var n in f(this,a),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return oa.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(s(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){ve(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(ve(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):ye(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ye(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=he("div",t),a=this.options.collapsed;e.setAttribute("aria-haspopup",!0),ze(e),Ue(e);var n=this._section=he("section",t+"-list");a&&(this._map.on("click",this.collapse,this),it||Pe(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var i=this._layersLink=he("a",t+"-toggle",e);i.href="#",i.title="Layers",At?(Pe(i,"click",He),Pe(i,"click",this.expand,this)):Pe(i,"focus",this.expand,this),a||this.expand(),this._baseLayersList=he("div",t+"-base",n),this._separator=he("div",t+"-separator",n),this._overlaysList=he("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&s(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,a){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:a}),this.options.sortLayers&&this._layers.sort(o((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;fe(this._baseLayersList),fe(this._overlaysList),this._layerControlInputs=[];var t,e,a,n,i=0;for(a=0;a<this._layers.length;a++)n=this._layers[a],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,i+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&i>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(s(t.target)),a=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;a&&this._map.fire(a,e)},_createRadioElement:function(t,e){var a='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=a,n.firstChild},_addItem:function(t){var e,a=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?(e=document.createElement("input"),e.type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+s(this),n),this._layerControlInputs.push(e),e.layerId=s(t.layer),Pe(e,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+t.name;var o=document.createElement("div");a.appendChild(o),o.appendChild(e),o.appendChild(i);var r=t.overlay?this._overlaysList:this._baseLayersList;return r.appendChild(a),this._checkDisabledLayers(),a},_onInputClick:function(){var t,e,a=this._layerControlInputs,n=[],i=[];this._handlingClick=!0;for(var o=a.length-1;o>=0;o--)t=a[o],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||i.push(e);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])&&this._map.removeLayer(i[o]);for(o=0;o<n.length;o++)this._map.hasLayer(n[o])||this._map.addLayer(n[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,a=this._layerControlInputs,n=this._map.getZoom(),i=a.length-1;i>=0;i--)t=a[i],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),la=function(t,e,a){return new sa(t,e,a)},ca=oa.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",a=he("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",a,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",a,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),a},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,a,n,i){var o=he("a",a,n);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),ze(o),Pe(o,"click",He),Pe(o,"click",i,this),Pe(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";ye(this._zoomInButton,e),ye(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&ve(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&ve(this._zoomInButton,e)}});na.mergeOptions({zoomControl:!0}),na.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new ca,this.addControl(this.zoomControl))}));var ua=function(t){return new ca(t)},da=oa.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",a=he("div",e),n=this.options;return this._addScales(n,e+"-line",a),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),a},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,a){t.metric&&(this._mScale=he("div",e,a)),t.imperial&&(this._iScale=he("div",e,a))},_update:function(){var t=this._map,e=t.getSize().y/2,a=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(a)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),a=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,a,e/t)},_updateImperial:function(t){var e,a,n,i=3.2808399*t;i>5280?(e=i/5280,a=this._getRoundNum(e),this._updateScale(this._iScale,a+" mi",a/e)):(n=this._getRoundNum(i),this._updateScale(this._iScale,n+" ft",n/i))},_updateScale:function(t,e,a){t.style.width=Math.round(this.options.maxWidth*a)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),a=t/e;return a=a>=10?10:a>=5?5:a>=3?3:a>=2?2:1,e*a}}),ha=function(t){return new da(t)},pa=oa.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){f(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=he("div","leaflet-control-attribution"),ze(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var a=[];this.options.prefix&&a.push(this.options.prefix),t.length&&a.push(t.join(", ")),this._container.innerHTML=a.join(" | ")}}});na.mergeOptions({attributionControl:!0}),na.addInitHook((function(){this.options.attributionControl&&(new pa).addTo(this)}));var fa=function(t){return new pa(t)};oa.Layers=sa,oa.Zoom=ca,oa.Scale=da,oa.Attribution=pa,ra.layers=la,ra.zoom=ua,ra.scale=ha,ra.attribution=fa;var ma=M.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ma.addTo=function(t,e){return t.addHandler(e,this),this};var ga,_a={Events:I},va=At?"touchstart mousedown":"mousedown",ya={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},ba={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},Sa=D.extend({options:{clickTolerance:3},initialize:function(t,e,a,n){f(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=a},enable:function(){this._enabled||(Pe(this._dragStartTarget,va,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Sa._dragging===this&&this.finishDrag(),$e(this._dragStartTarget,va,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!_e(this._element,"leaflet-zoom-anim")&&!(Sa._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches)&&(Sa._dragging=this,this._preventOutline&&Ie(this._element),Me(),ae(),!this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,a=Le(this._element);this._startPoint=new R(e.clientX,e.clientY),this._parentScale=Re(a),Pe(document,ba[t.type],this._onMove,this),Pe(document,ya[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,a=new R(e.clientX,e.clientY)._subtract(this._startPoint);(a.x||a.y)&&(Math.abs(a.x)+Math.abs(a.y)<this.options.clickTolerance||(a.x/=this._parentScale.x,a.y/=this._parentScale.y,Ve(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=Ee(this._element).subtract(a),ve(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ve(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(a),this._moving=!0,E(this._animRequest),this._lastEvent=t,this._animRequest=C(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Ce(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in ye(document.body,"leaflet-dragging"),this._lastTarget&&(ye(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),ba)$e(document,ba[t],this._onMove,this),$e(document,ya[t],this._onUp,this);ke(),ne(),this._moved&&this._moving&&(E(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,Sa._dragging=!1}});function Oa(t,e){if(!e||!t.length)return t.slice();var a=e*e;return t=Ea(t,a),t=xa(t,a),t}function Ta(t,e,a){return Math.sqrt(Da(t,e,a,!0))}function Aa(t,e,a){return Da(t,e,a)}function xa(t,e){var a=t.length,n=typeof Uint8Array!==void 0+""?Uint8Array:Array,i=new n(a);i[0]=i[a-1]=1,Ca(t,i,e,0,a-1);var o,r=[];for(o=0;o<a;o++)i[o]&&r.push(t[o]);return r}function Ca(t,e,a,n,i){var o,r,s,l=0;for(r=n+1;r<=i-1;r++)s=Da(t[r],t[n],t[i],!0),s>l&&(o=r,l=s);l>a&&(e[o]=1,Ca(t,e,a,n,o),Ca(t,e,a,o,i))}function Ea(t,e){for(var a=[t[0]],n=1,i=0,o=t.length;n<o;n++)Ia(t[n],t[i])>e&&(a.push(t[n]),i=n);return i<o-1&&a.push(t[o-1]),a}function wa(t,e,a,n,i){var o,r,s,l=n?ga:ka(t,a),c=ka(e,a);ga=c;while(1){if(!(l|c))return[t,e];if(l&c)return!1;o=l||c,r=Ma(t,e,o,a,i),s=ka(r,a),o===l?(t=r,l=s):(e=r,c=s)}}function Ma(t,e,a,n,i){var o,r,s=e.x-t.x,l=e.y-t.y,c=n.min,u=n.max;return 8&a?(o=t.x+s*(u.y-t.y)/l,r=u.y):4&a?(o=t.x+s*(c.y-t.y)/l,r=c.y):2&a?(o=u.x,r=t.y+l*(u.x-t.x)/s):1&a&&(o=c.x,r=t.y+l*(c.x-t.x)/s),new R(o,r,i)}function ka(t,e){var a=0;return t.x<e.min.x?a|=1:t.x>e.max.x&&(a|=2),t.y<e.min.y?a|=4:t.y>e.max.y&&(a|=8),a}function Ia(t,e){var a=e.x-t.x,n=e.y-t.y;return a*a+n*n}function Da(t,e,a,n){var i,o=e.x,r=e.y,s=a.x-o,l=a.y-r,c=s*s+l*l;return c>0&&(i=((t.x-o)*s+(t.y-r)*l)/c,i>1?(o=a.x,r=a.y):i>0&&(o+=s*i,r+=l*i)),s=t.x-o,l=t.y-r,n?s*s+l*l:new R(o,r)}function La(t){return!v(t[0])||"object"!==typeof t[0][0]&&"undefined"!==typeof t[0][0]}function Ra(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),La(t)}var Na=(Object.freeze||Object)({simplify:Oa,pointToSegmentDistance:Ta,closestPointOnSegment:Aa,clipSegment:wa,_getEdgeIntersection:Ma,_getBitCode:ka,_sqClosestPointOnSegment:Da,isFlat:La,_flat:Ra});function Pa(t,e,a){var n,i,o,r,s,l,c,u,d,h=[1,4,2,8];for(i=0,c=t.length;i<c;i++)t[i]._code=ka(t[i],e);for(r=0;r<4;r++){for(u=h[r],n=[],i=0,c=t.length,o=c-1;i<c;o=i++)s=t[i],l=t[o],s._code&u?l._code&u||(d=Ma(l,s,u,e,a),d._code=ka(d,e),n.push(d)):(l._code&u&&(d=Ma(l,s,u,e,a),d._code=ka(d,e),n.push(d)),n.push(s));t=n}return t}var ja=(Object.freeze||Object)({clipPolygon:Pa}),$a={project:function(t){return new R(t.lng,t.lat)},unproject:function(t){return new Y(t.y,t.x)},bounds:new j([-180,-90],[180,90])},Fa={R:6378137,R_MINOR:6356752.314245179,bounds:new j([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,a=this.R,n=t.lat*e,i=this.R_MINOR/a,o=Math.sqrt(1-i*i),r=o*Math.sin(n),s=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),o/2);return n=-a*Math.log(Math.max(s,1e-10)),new R(t.lng*e*a,n)},unproject:function(t){for(var e,a=180/Math.PI,n=this.R,i=this.R_MINOR/n,o=Math.sqrt(1-i*i),r=Math.exp(-t.y/n),s=Math.PI/2-2*Math.atan(r),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)e=o*Math.sin(s),e=Math.pow((1-e)/(1+e),o/2),c=Math.PI/2-2*Math.atan(r*e)-s,s+=c;return new Y(s*a,t.x*a/n)}},Ba=(Object.freeze||Object)({LonLat:$a,Mercator:Fa,SphericalMercator:G}),Ya=n({},V,{code:"EPSG:3395",projection:Fa,transformation:function(){var t=.5/(Math.PI*Fa.R);return K(t,.5,-t,.5)}()}),Ua=n({},V,{code:"EPSG:4326",projection:$a,transformation:K(1/180,1,-1/180,.5)}),za=n({},z,{projection:$a,transformation:K(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var a=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(a*a+n*n)},infinite:!0});z.Earth=V,z.EPSG3395=Ya,z.EPSG3857=Z,z.EPSG900913=q,z.EPSG4326=Ua,z.Simple=za;var Va=D.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[s(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[s(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var a=this.getEvents();e.on(a,this),this.once("remove",(function(){e.off(a,this)}),this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});na.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=s(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=s(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&s(t)in this._layers},eachLayer:function(t,e){for(var a in this._layers)t.call(e,this._layers[a]);return this},_addLayers:function(t){t=t?v(t)?t:[t]:[];for(var e=0,a=t.length;e<a;e++)this.addLayer(t[e])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[s(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=s(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,a=this._getZoomSpan();for(var n in this._zoomBoundLayers){var i=this._zoomBoundLayers[n].options;t=void 0===i.minZoom?t:Math.min(t,i.minZoom),e=void 0===i.maxZoom?e:Math.max(e,i.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,a!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ha=Va.extend({initialize:function(t,e){var a,n;if(f(this,e),this._layers={},t)for(a=0,n=t.length;a<n;a++)this.addLayer(t[a])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,a,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)a=this._layers[e],a[t]&&a[t].apply(a,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var a in this._layers)t.call(e,this._layers[a]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return s(t)}}),Ga=function(t,e){return new Ha(t,e)},Wa=Ha.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ha.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ha.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new F;for(var e in this._layers){var a=this._layers[e];t.extend(a.getBounds?a.getBounds():a.getLatLng())}return t}}),Ka=function(t){return new Wa(t)},Za=M.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){f(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var a=this._getIconUrl(t);if(!a){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(a,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(n,t),n},_setIconStyles:function(t,e){var a=this.options,n=a[e+"Size"];"number"===typeof n&&(n=[n,n]);var i=P(n),o=P("shadow"===e&&a.shadowAnchor||a.iconAnchor||i&&i.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(a.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),i&&(t.style.width=i.x+"px",t.style.height=i.y+"px")},_createImg:function(t,e){return e=e||document.createElement("img"),e.src=t,e},_getIconUrl:function(t){return Et&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function qa(t){return new Za(t)}var Xa=Za.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return Xa.imagePath||(Xa.imagePath=this._detectIconPath()),(this.options.imagePath||Xa.imagePath)+Za.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=he("div","leaflet-default-icon-path",document.body),e=de(t,"background-image")||de(t,"backgroundImage");return document.body.removeChild(t),e=null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,""),e}}),Qa=ma.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Sa(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ve(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ye(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,a=e._map,n=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,o=Ee(e._icon),r=a.getPixelBounds(),s=a.getPixelOrigin(),l=$(r.min._subtract(s).add(i),r.max._subtract(s).subtract(i));if(!l.contains(o)){var c=P((Math.max(l.max.x,o.x)-l.max.x)/(r.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(r.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(r.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(r.min.y-l.min.y)).multiplyBy(n);a.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),Ce(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=C(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,a=e._shadow,n=Ee(e._icon),i=e._map.layerPointToLatLng(n);a&&Ce(a,n),e._latlng=i,t.latlng=i,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Ja=Va.extend({options:{icon:new Xa,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){f(this,e),this._latlng=U(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=U(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),a=t.icon.createIcon(this._icon),n=!1;a!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(a.title=t.title),"IMG"===a.tagName&&(a.alt=t.alt||"")),ve(a,e),t.keyboard&&(a.tabIndex="0"),this._icon=a,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var i=t.icon.createShadow(this._shadow),o=!1;i!==this._shadow&&(this._removeShadow(),o=!0),i&&(ve(i,e),i.alt=""),this._shadow=i,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),pe(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&pe(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Ce(this._icon,t),this._shadow&&Ce(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(ve(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Qa)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Qa(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&Oe(this._icon,t),this._shadow&&Oe(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function tn(t,e){return new Ja(t,e)}var en=Va.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return f(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&t.hasOwnProperty("weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),an=en.extend({options:{fill:!0,radius:10},initialize:function(t,e){f(this,e),this._latlng=U(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=U(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return en.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,a=this._clickTolerance(),n=[t+a,e+a];this._pxBounds=new j(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function nn(t,e){return new an(t,e)}var on=an.extend({initialize:function(t,e,a){if("number"===typeof e&&(e=n({},a,{radius:e})),f(this,e),this._latlng=U(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new F(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:en.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,a=this._map,n=a.options.crs;if(n.distance===V.distance){var i=Math.PI/180,o=this._mRadius/V.R/i,r=a.project([e+o,t]),s=a.project([e-o,t]),l=r.add(s).divideBy(2),c=a.unproject(l).lat,u=Math.acos((Math.cos(o*i)-Math.sin(e*i)*Math.sin(c*i))/(Math.cos(e*i)*Math.cos(c*i)))/i;(isNaN(u)||0===u)&&(u=o/Math.cos(Math.PI/180*e)),this._point=l.subtract(a.getPixelOrigin()),this._radius=isNaN(u)?0:l.x-a.project([c,t-u]).x,this._radiusY=l.y-r.y}else{var d=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(d).x}this._updateBounds()}});function rn(t,e,a){return new on(t,e,a)}var sn=en.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){f(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,a,n=1/0,i=null,o=Da,r=0,s=this._parts.length;r<s;r++)for(var l=this._parts[r],c=1,u=l.length;c<u;c++){e=l[c-1],a=l[c];var d=o(t,e,a,!0);d<n&&(n=d,i=o(t,e,a))}return i&&(i.distance=Math.sqrt(n)),i},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,a,n,i,o,r,s=this._rings[0],l=s.length;if(!l)return null;for(t=0,e=0;t<l-1;t++)e+=s[t].distanceTo(s[t+1])/2;if(0===e)return this._map.layerPointToLatLng(s[0]);for(t=0,n=0;t<l-1;t++)if(i=s[t],o=s[t+1],a=i.distanceTo(o),n+=a,n>e)return r=(n-e)/a,this._map.layerPointToLatLng([o.x-r*(o.x-i.x),o.y-r*(o.y-i.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=U(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new F,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return La(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],a=La(t),n=0,i=t.length;n<i;n++)a?(e[n]=U(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new j;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new R(t,t);this._pxBounds=new j([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,a){var n,i,o=t[0]instanceof Y,r=t.length;if(o){for(i=[],n=0;n<r;n++)i[n]=this._map.latLngToLayerPoint(t[n]),a.extend(i[n]);e.push(i)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],e,a)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,a,n,i,o,r,s,l=this._parts;for(e=0,n=0,i=this._rings.length;e<i;e++)for(s=this._rings[e],a=0,o=s.length;a<o-1;a++)r=wa(s[a],s[a+1],t,a,!0),r&&(l[n]=l[n]||[],l[n].push(r[0]),r[1]===s[a+1]&&a!==o-2||(l[n].push(r[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,a=0,n=t.length;a<n;a++)t[a]=Oa(t[a],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var a,n,i,o,r,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(a=0,o=this._parts.length;a<o;a++)for(s=this._parts[a],n=0,r=s.length,i=r-1;n<r;i=n++)if((e||0!==n)&&Ta(t,s[i],s[n])<=l)return!0;return!1}});function ln(t,e){return new sn(t,e)}sn._flat=Ra;var cn=sn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,a,n,i,o,r,s,l,c=this._rings[0],u=c.length;if(!u)return null;for(o=r=s=0,t=0,e=u-1;t<u;e=t++)a=c[t],n=c[e],i=a.y*n.x-n.y*a.x,r+=(a.x+n.x)*i,s+=(a.y+n.y)*i,o+=3*i;return l=0===o?c[0]:[r/o,s/o],this._map.layerPointToLatLng(l)},_convertLatLngs:function(t){var e=sn.prototype._convertLatLngs.call(this,t),a=e.length;return a>=2&&e[0]instanceof Y&&e[0].equals(e[a-1])&&e.pop(),e},_setLatLngs:function(t){sn.prototype._setLatLngs.call(this,t),La(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return La(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,a=new R(e,e);if(t=new j(t.min.subtract(a),t.max.add(a)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,i=0,o=this._rings.length;i<o;i++)n=Pa(this._rings[i],t,!0),n.length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,a,n,i,o,r,s,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,s=this._parts.length;i<s;i++)for(e=this._parts[i],o=0,l=e.length,r=l-1;o<l;r=o++)a=e[o],n=e[r],a.y>t.y!==n.y>t.y&&t.x<(n.x-a.x)*(t.y-a.y)/(n.y-a.y)+a.x&&(c=!c);return c||sn.prototype._containsPoint.call(this,t,!0)}});function un(t,e){return new cn(t,e)}var dn=Wa.extend({initialize:function(t,e){f(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,a,n,i=v(t)?t:t.features;if(i){for(e=0,a=i.length;e<a;e++)n=i[e],(n.geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var r=hn(t,o);return r?(r.feature=yn(t),r.defaultOptions=r.options,this.resetStyle(r),o.onEachFeature&&o.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=n({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"===typeof e&&(e=e(t.feature)),t.setStyle(e))}});function hn(t,e){var a,n,i,o,r="Feature"===t.type?t.geometry:t,s=r?r.coordinates:null,l=[],c=e&&e.pointToLayer,u=e&&e.coordsToLatLng||fn;if(!s&&!r)return null;switch(r.type){case"Point":return a=u(s),pn(c,t,a,e);case"MultiPoint":for(i=0,o=s.length;i<o;i++)a=u(s[i]),l.push(pn(c,t,a,e));return new Wa(l);case"LineString":case"MultiLineString":return n=mn(s,"LineString"===r.type?0:1,u),new sn(n,e);case"Polygon":case"MultiPolygon":return n=mn(s,"Polygon"===r.type?1:2,u),new cn(n,e);case"GeometryCollection":for(i=0,o=r.geometries.length;i<o;i++){var d=hn({geometry:r.geometries[i],type:"Feature",properties:t.properties},e);d&&l.push(d)}return new Wa(l);default:throw new Error("Invalid GeoJSON object.")}}function pn(t,e,a,n){return t?t(e,a):new Ja(a,n&&n.markersInheritOptions&&n)}function fn(t){return new Y(t[1],t[0],t[2])}function mn(t,e,a){for(var n,i=[],o=0,r=t.length;o<r;o++)n=e?mn(t[o],e-1,a):(a||fn)(t[o]),i.push(n);return i}function gn(t,e){return e="number"===typeof e?e:6,void 0!==t.alt?[d(t.lng,e),d(t.lat,e),d(t.alt,e)]:[d(t.lng,e),d(t.lat,e)]}function _n(t,e,a,n){for(var i=[],o=0,r=t.length;o<r;o++)i.push(e?_n(t[o],e-1,a,n):gn(t[o],n));return!e&&a&&i.push(i[0]),i}function vn(t,e){return t.feature?n({},t.feature,{geometry:e}):yn(e)}function yn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var bn={toGeoJSON:function(t){return vn(this,{type:"Point",coordinates:gn(this.getLatLng(),t)})}};function Sn(t,e){return new dn(t,e)}Ja.include(bn),on.include(bn),an.include(bn),sn.include({toGeoJSON:function(t){var e=!La(this._latlngs),a=_n(this._latlngs,e?1:0,!1,t);return vn(this,{type:(e?"Multi":"")+"LineString",coordinates:a})}}),cn.include({toGeoJSON:function(t){var e=!La(this._latlngs),a=e&&!La(this._latlngs[0]),n=_n(this._latlngs,a?2:e?1:0,!0,t);return e||(n=[n]),vn(this,{type:(a?"Multi":"")+"Polygon",coordinates:n})}}),Ha.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(a){e.push(a.toGeoJSON(t).geometry.coordinates)})),vn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var a="GeometryCollection"===e,n=[];return this.eachLayer((function(e){if(e.toGeoJSON){var i=e.toGeoJSON(t);if(a)n.push(i.geometry);else{var o=yn(i);"FeatureCollection"===o.type?n.push.apply(n,o.features):n.push(o)}}})),a?vn(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var On=Sn,Tn=Va.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,a){this._url=t,this._bounds=B(e),f(this,a)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ve(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){pe(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&me(this._image),this},bringToBack:function(){return this._map&&ge(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=B(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:he("img");ve(e,"leaflet-image-layer"),this._zoomAnimated&&ve(e,"leaflet-zoom-animated"),this.options.className&&ve(e,this.options.className),e.onselectstart=u,e.onmousemove=u,e.onload=o(this.fire,this,"load"),e.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),a=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;xe(this._image,a,e)},_reset:function(){var t=this._image,e=new j(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),a=e.getSize();Ce(t,e.min),t.style.width=a.x+"px",t.style.height=a.y+"px"},_updateOpacity:function(){Oe(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),An=function(t,e,a){return new Tn(t,e,a)},xn=Tn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:he("video");if(ve(e,"leaflet-image-layer"),this._zoomAnimated&&ve(e,"leaflet-zoom-animated"),this.options.className&&ve(e,this.options.className),e.onselectstart=u,e.onmousemove=u,e.onloadeddata=o(this.fire,this,"load"),t){for(var a=e.getElementsByTagName("source"),n=[],i=0;i<a.length;i++)n.push(a[i].src);this._url=a.length>0?n:[e.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&e.style.hasOwnProperty("objectFit")&&(e.style["objectFit"]="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop;for(var r=0;r<this._url.length;r++){var s=he("source");s.src=this._url[r],e.appendChild(s)}}}});function Cn(t,e,a){return new xn(t,e,a)}var En=Tn.extend({_initImage:function(){var t=this._image=this._url;ve(t,"leaflet-image-layer"),this._zoomAnimated&&ve(t,"leaflet-zoom-animated"),this.options.className&&ve(t,this.options.className),t.onselectstart=u,t.onmousemove=u}});function wn(t,e,a){return new En(t,e,a)}var Mn=Va.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){f(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&Oe(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&Oe(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(Oe(this._container,0),this._removeTimeout=setTimeout(o(pe,void 0,this._container),200)):pe(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=U(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&me(this._container),this},bringToBack:function(){return this._map&&ge(this._container),this},_prepareOpen:function(t,e,a){if(e instanceof Va||(a=e,e=t),e instanceof Wa)for(var n in t._layers){e=t._layers[n];break}if(!a)if(e.getCenter)a=e.getCenter();else{if(!e.getLatLng)throw new Error("Unable to get source layer LatLng.");a=e.getLatLng()}return this._source=e,this.update(),a},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"===typeof this._content?this._content(this._source||this):this._content;if("string"===typeof e)t.innerHTML=e;else{while(t.hasChildNodes())t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=P(this.options.offset),a=this._getAnchor();this._zoomAnimated?Ce(this._container,t.add(a)):e=e.add(t).add(a);var n=this._containerBottom=-e.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px",this._container.style.left=i+"px"}},_getAnchor:function(){return[0,0]}}),kn=Mn.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){Mn.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof en||this._source.on("preclick",Ye))},onRemove:function(t){Mn.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof en||this._source.off("preclick",Ye))},getEvents:function(){var t=Mn.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t="leaflet-popup",e=this._container=he("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),a=this._wrapper=he("div",t+"-content-wrapper",e);if(this._contentNode=he("div",t+"-content",a),ze(a),Ue(this._contentNode),Pe(a,"contextmenu",Ye),this._tipContainer=he("div",t+"-tip-container",e),this._tip=he("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=he("a",t+"-close-button",e);n.href="#close",n.innerHTML="&#215;",Pe(n,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var a=t.offsetWidth;a=Math.min(a,this.options.maxWidth),a=Math.max(a,this.options.minWidth),e.width=a+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,i=this.options.maxHeight,o="leaflet-popup-scrolled";i&&n>i?(e.height=i+"px",ve(t,o)):ye(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),a=this._getAnchor();Ce(this._container,e.add(a))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(de(this._container,"marginBottom"),10)||0,a=this._container.offsetHeight+e,n=this._containerWidth,i=new R(this._containerLeft,-a-this._containerBottom);i._add(Ee(this._container));var o=t.layerPointToContainerPoint(i),r=P(this.options.autoPanPadding),s=P(this.options.autoPanPaddingTopLeft||r),l=P(this.options.autoPanPaddingBottomRight||r),c=t.getSize(),u=0,d=0;o.x+n+l.x>c.x&&(u=o.x+n-c.x+l.x),o.x-u-s.x<0&&(u=o.x-s.x),o.y+a+l.y>c.y&&(d=o.y+a-c.y+l.y),o.y-d-s.y<0&&(d=o.y-s.y),(u||d)&&t.fire("autopanstart").panBy([u,d])}},_onCloseButtonClick:function(t){this._close(),He(t)},_getAnchor:function(){return P(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),In=function(t,e){return new kn(t,e)};na.mergeOptions({closePopupOnClick:!0}),na.include({openPopup:function(t,e,a){return t instanceof kn||(t=new kn(a).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Va.include({bindPopup:function(t,e){return t instanceof kn?(f(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new kn(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(He(t),e instanceof en?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Dn=Mn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Mn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Mn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Mn.prototype.getEvents.call(this);return At&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=he("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,a=this._container,n=e.latLngToContainerPoint(e.getCenter()),i=e.layerPointToContainerPoint(t),o=this.options.direction,r=a.offsetWidth,s=a.offsetHeight,l=P(this.options.offset),c=this._getAnchor();"top"===o?t=t.add(P(-r/2+l.x,-s+l.y+c.y,!0)):"bottom"===o?t=t.subtract(P(r/2-l.x,-l.y,!0)):"center"===o?t=t.subtract(P(r/2+l.x,s/2-c.y+l.y,!0)):"right"===o||"auto"===o&&i.x<n.x?(o="right",t=t.add(P(l.x+c.x,c.y-s/2+l.y,!0))):(o="left",t=t.subtract(P(r+c.x-l.x,s/2-c.y-l.y,!0))),ye(a,"leaflet-tooltip-right"),ye(a,"leaflet-tooltip-left"),ye(a,"leaflet-tooltip-top"),ye(a,"leaflet-tooltip-bottom"),ve(a,"leaflet-tooltip-"+o),Ce(a,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Oe(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return P(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ln=function(t,e){return new Dn(t,e)};na.include({openTooltip:function(t,e,a){return t instanceof Dn||(t=new Dn(a).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),Va.include({bindTooltip:function(t,e){return t instanceof Dn?(f(t,e),this._tooltip=t,t._source=this):(this._tooltip&&!e||(this._tooltip=new Dn(e,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",a={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?a.add=this._openTooltip:(a.mouseover=this._openTooltip,a.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(a.mousemove=this._moveTooltip),At&&(a.click=this._openTooltip)),this[e](a),this._tooltipHandlersAdded=!t}},openTooltip:function(t,e){return this._tooltip&&this._map&&(e=this._tooltip._prepareOpen(this,t,e),this._map.openTooltip(this._tooltip,e),this._tooltip.options.interactive&&this._tooltip._container&&(ve(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(ye(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(e,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,a,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),a=this._map.containerPointToLayerPoint(e),n=this._map.layerPointToLatLng(a)),this._tooltip.setLatLng(n)}});var Rn=Za.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),a=this.options;if(a.html instanceof Element?(fe(e),e.appendChild(a.html)):e.innerHTML=!1!==a.html?a.html:"",a.bgPos){var n=P(a.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Nn(t){return new Rn(t)}Za.Default=Xa;var Pn=Va.extend({options:{tileSize:256,opacity:1,updateWhenIdle:yt,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){f(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),pe(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(me(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ge(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=l(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof R?t:new R(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,a=this.getPane().children,n=-t(-1/0,1/0),i=0,o=a.length;i<o;i++)e=a[i].style.zIndex,a[i]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!et){Oe(this._container,this.options.opacity);var t=+new Date,e=!1,a=!1;for(var n in this._tiles){var i=this._tiles[n];if(i.current&&i.loaded){var o=Math.min(1,(t-i.loaded)/200);Oe(i.el,o),o<1?e=!0:(i.active?a=!0:this._onOpaqueTile(i),i.active=!0)}}a&&!this._noPrune&&this._pruneTiles(),e&&(E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=he("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var a in this._levels)this._levels[a].el.children.length||a===t?(this._levels[a].el.style.zIndex=e-Math.abs(t-a),this._onUpdateLevel(a)):(pe(this._levels[a].el),this._removeTilesAtZoom(a),this._onRemoveLevel(a),delete this._levels[a]);var n=this._levels[t],i=this._map;return n||(n=this._levels[t]={},n.el=he("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=i.project(i.unproject(i.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,i.getCenter(),i.getZoom()),u(n.el.offsetWidth),this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var t,e,a=this._map.getZoom();if(a>this.options.maxZoom||a<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)e=this._tiles[t],e.retain=e.current;for(t in this._tiles)if(e=this._tiles[t],e.current&&!e.active){var n=e.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)pe(this._levels[t].el),this._onRemoveLevel(t),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,a,n){var i=Math.floor(t/2),o=Math.floor(e/2),r=a-1,s=new R(+i,+o);s.z=+r;var l=this._tileCoordsToKey(s),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),r>n&&this._retainParent(i,o,r,n))},_retainChildren:function(t,e,a,n){for(var i=2*t;i<2*t+2;i++)for(var o=2*e;o<2*e+2;o++){var r=new R(i,o);r.z=a+1;var s=this._tileCoordsToKey(r),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),a+1<n&&this._retainChildren(i,o,a+1,n))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,a,n){var i=this._clampZoom(Math.round(e));(void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom)&&(i=void 0);var o=this.options.updateWhenZooming&&i!==this._tileZoom;n&&!o||(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(t),a||this._pruneTiles(),this._noPrune=!!a),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var a in this._levels)this._setZoomTransform(this._levels[a],t,e)},_setZoomTransform:function(t,e,a){var n=this._map.getZoomScale(a,t.zoom),i=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,a)).round();vt?xe(t.el,i,n):Ce(t.el,i)},_resetGrid:function(){var t=this._map,e=t.options.crs,a=this._tileSize=this.getTileSize(),n=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/a.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/a.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/a.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/a.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,a=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(a,this._tileZoom),i=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*n);return new j(i.subtract(o),i.add(o))},_update:function(t){var e=this._map;if(e){var a=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),i=this._pxBoundsToTileRange(n),o=i.getCenter(),r=[],s=this.options.keepBuffer,l=new j(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var u=this._tiles[c].coords;u.z===this._tileZoom&&l.contains(new R(u.x,u.y))||(this._tiles[c].current=!1)}if(Math.abs(a-this._tileZoom)>1)this._setView(t,a);else{for(var d=i.min.y;d<=i.max.y;d++)for(var h=i.min.x;h<=i.max.x;h++){var p=new R(h,d);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:r.push(p)}}if(r.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;h<r.length;h++)this._addTile(r[h],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var a=this._globalTileRange;if(!e.wrapLng&&(t.x<a.min.x||t.x>a.max.x)||!e.wrapLat&&(t.y<a.min.y||t.y>a.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return B(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,a=this.getTileSize(),n=t.scaleBy(a),i=n.add(a),o=e.unproject(n,t.z),r=e.unproject(i,t.z);return[o,r]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),a=new F(e[0],e[1]);return this.options.noWrap||(a=this._map.wrapLatLngBounds(a)),a},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),a=new R(+e[0],+e[1]);return a.z=+e[2],a},_removeTile:function(t){var e=this._tiles[t];e&&(pe(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ve(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=u,t.onmousemove=u,et&&this.options.opacity<1&&Oe(t,this.options.opacity),it&&!ot&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var a=this._getTilePos(t),n=this._tileCoordsToKey(t),i=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(i),this.createTile.length<2&&C(o(this._tileReady,this,t,null,i)),Ce(i,a),this._tiles[n]={el:i,coords:t,current:!0},e.appendChild(i),this.fire("tileloadstart",{tile:i,coords:t})},_tileReady:function(t,e,a){e&&this.fire("tileerror",{error:e,tile:a,coords:t});var n=this._tileCoordsToKey(t);a=this._tiles[n],a&&(a.loaded=+new Date,this._map._fadeAnimated?(Oe(a.el,0),E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(a.active=!0,this._pruneTiles()),e||(ve(a.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:a.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),et||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new R(this._wrapX?c(t.x,this._wrapX):t.x,this._wrapY?c(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new j(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function jn(t){return new Pn(t)}var $n=Pn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,e=f(this,e),e.detectRetina&&Et&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"===typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),it||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var a=document.createElement("img");return Pe(a,"load",o(this._tileOnLoad,this,e,a)),Pe(a,"error",o(this._tileOnError,this,e,a)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(a.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),a.alt="",a.setAttribute("role","presentation"),a.src=this.getTileUrl(t),a},getTileUrl:function(t){var e={r:Et?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var a=this._globalTileRange.max.y-t.y;this.options.tms&&(e["y"]=a),e["-y"]=a}return _(this._url,n(e,this.options))},_tileOnLoad:function(t,e){et?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,a){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(a,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,a=this.options.zoomReverse,n=this.options.zoomOffset;return a&&(t=e-t),t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=u,e.onerror=u,e.complete||(e.src=b,pe(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return st||e.el.setAttribute("src",b),Pn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,a){if(this._map&&(!a||a.getAttribute("src")!==b))return Pn.prototype._tileReady.call(this,t,e,a)}});function Fn(t,e){return new $n(t,e)}var Bn=$n.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var a=n({},this.defaultWmsParams);for(var i in e)i in this.options||(a[i]=e[i]);e=f(this,e);var o=e.detectRetina&&Et?2:1,r=this.getTileSize();a.width=r.x*o,a.height=r.y*o,this.wmsParams=a},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,$n.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),a=this._crs,n=$(a.project(e[0]),a.project(e[1])),i=n.min,o=n.max,r=(this._wmsVersion>=1.3&&this._crs===Ua?[i.y,i.x,o.y,o.x]:[i.x,i.y,o.x,o.y]).join(","),s=$n.prototype.getTileUrl.call(this,t);return s+m(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});function Yn(t,e){return new Bn(t,e)}$n.WMS=Bn,Fn.wms=Yn;var Un=Va.extend({options:{padding:.1,tolerance:0},initialize:function(t){f(this,t),s(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&ve(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var a=this._map.getZoomScale(e,this._zoom),n=Ee(this._container),i=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=this._map.project(t,e),s=r.subtract(o),l=i.multiplyBy(-a).add(n).add(i).subtract(s);vt?xe(this._container,l,a):Ce(this._container,l)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),a=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new j(a,a.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),zn=Un.extend({getEvents:function(){var t=Un.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Un.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Pe(t,"mousemove",this._onMouseMove,this),Pe(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Pe(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,pe(this._container),$e(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;for(var e in this._redrawBounds=null,this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Un.prototype._update.call(this);var t=this._bounds,e=this._container,a=t.getSize(),n=Et?2:1;Ce(e,t.min),e.width=n*a.x,e.height=n*a.y,e.style.width=a.x+"px",e.style.height=a.y+"px",Et&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Un.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[s(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,a=e.next,n=e.prev;a?a.prev=n:this._drawLast=n,n?n.next=a:this._drawFirst=a,delete t._order,delete this._layers[s(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"===typeof t.options.dashArray){var e,a,n=t.options.dashArray.split(/[, ]+/),i=[];for(a=0;a<n.length;a++){if(e=Number(n[a]),isNaN(e))return;i.push(e)}t.options._dashArray=i}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new j,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var a=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,a.x,a.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var a,n,i,o,r=t._parts,s=r.length,l=this._ctx;if(s){for(l.beginPath(),a=0;a<s;a++){for(n=0,i=r[a].length;n<i;n++)o=r[a][n],l[n?"lineTo":"moveTo"](o.x,o.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,a=this._ctx,n=Math.max(Math.round(t._radius),1),i=(Math.max(Math.round(t._radiusY),1)||n)/n;1!==i&&(a.save(),a.scale(1,i)),a.beginPath(),a.arc(e.x,e.y/i,n,0,2*Math.PI,!1),1!==i&&a.restore(),this._fillStroke(a,t)}},_fillStroke:function(t,e){var a=e.options;a.fill&&(t.globalAlpha=a.fillOpacity,t.fillStyle=a.fillColor||a.color,t.fill(a.fillRule||"evenodd")),a.stroke&&0!==a.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=a.opacity,t.lineWidth=a.weight,t.strokeStyle=a.color,t.lineCap=a.lineCap,t.lineJoin=a.lineJoin,t.stroke())},_onClick:function(t){for(var e,a,n=this._map.mouseEventToLayerPoint(t),i=this._drawFirst;i;i=i.next)e=i.layer,e.options.interactive&&e._containsPoint(n)&&!this._map._draggableMoved(e)&&(a=e);a&&(Xe(t),this._fireEvent([a],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(ye(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var a,n,i=this._drawFirst;i;i=i.next)a=i.layer,a.options.interactive&&a._containsPoint(e)&&(n=a);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(ve(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(L.bind((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,a){this._map._fireDOMEvent(e,a||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var a=e.next,n=e.prev;a&&(a.prev=n,n?n.next=a:a&&(this._drawFirst=a),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var a=e.next,n=e.prev;n&&(n.next=a,a?a.prev=n:n&&(this._drawLast=n),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function Vn(t){return Mt?new zn(t):null}var Hn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),Gn={_initContainer:function(){this._container=he("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Un.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Hn("shape");ve(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Hn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;pe(e),t.removeInteractiveTarget(e),delete this._layers[s(t)]},_updateStyle:function(t){var e=t._stroke,a=t._fill,n=t.options,i=t._container;i.stroked=!!n.stroke,i.filled=!!n.fill,n.stroke?(e||(e=t._stroke=Hn("stroke")),i.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=v(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(i.removeChild(e),t._stroke=null),n.fill?(a||(a=t._fill=Hn("fill")),i.appendChild(a),a.color=n.fillColor||n.color,a.opacity=n.fillOpacity):a&&(i.removeChild(a),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),a=Math.round(t._radius),n=Math.round(t._radiusY||a);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+a+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){me(t._container)},_bringToBack:function(t){ge(t._container)}},Wn=It?Hn:X,Kn=Un.extend({getEvents:function(){var t=Un.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=Wn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Wn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){pe(this._container),$e(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){Un.prototype._update.call(this);var t=this._bounds,e=t.getSize(),a=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,a.setAttribute("width",e.x),a.setAttribute("height",e.y)),Ce(a,t.min),a.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Wn("path");t.options.className&&ve(e,t.options.className),t.options.interactive&&ve(e,"leaflet-interactive"),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){pe(t._path),t.removeInteractiveTarget(t._path),delete this._layers[s(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,a=t.options;e&&(a.stroke?(e.setAttribute("stroke",a.color),e.setAttribute("stroke-opacity",a.opacity),e.setAttribute("stroke-width",a.weight),e.setAttribute("stroke-linecap",a.lineCap),e.setAttribute("stroke-linejoin",a.lineJoin),a.dashArray?e.setAttribute("stroke-dasharray",a.dashArray):e.removeAttribute("stroke-dasharray"),a.dashOffset?e.setAttribute("stroke-dashoffset",a.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),a.fill?(e.setAttribute("fill",a.fillColor||a.color),e.setAttribute("fill-opacity",a.fillOpacity),e.setAttribute("fill-rule",a.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Q(t._parts,e))},_updateCircle:function(t){var e=t._point,a=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||a,i="a"+a+","+n+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-a)+","+e.y+i+2*a+",0 "+i+2*-a+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){me(t._path)},_bringToBack:function(t){ge(t._path)}});function Zn(t){return kt||It?new Kn(t):null}It&&Kn.include(Gn),na.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Vn(t)||Zn(t)}});var qn=cn.extend({initialize:function(t,e){cn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=B(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Xn(t,e){return new qn(t,e)}Kn.create=Wn,Kn.pointsToPath=Q,dn.geometryToLayer=hn,dn.coordsToLatLng=fn,dn.coordsToLatLngs=mn,dn.latLngToCoords=gn,dn.latLngsToCoords=_n,dn.getFeature=vn,dn.asFeature=yn,na.mergeOptions({boxZoom:!0});var Qn=ma.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Pe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){$e(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){pe(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),ae(),Me(),this._startPoint=this._map.mouseEventToContainerPoint(t),Pe(document,{contextmenu:He,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=he("div","leaflet-zoom-box",this._container),ve(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new j(this._point,this._startPoint),a=e.getSize();Ce(this._box,e.min),this._box.style.width=a.x+"px",this._box.style.height=a.y+"px"},_finish:function(){this._moved&&(pe(this._box),ye(this._container,"leaflet-crosshair")),ne(),ke(),$e(document,{contextmenu:He,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new F(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});na.addInitHook("addHandler","boxZoom",Qn),na.mergeOptions({doubleClickZoom:!0});var Jn=ma.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,a=e.getZoom(),n=e.options.zoomDelta,i=t.originalEvent.shiftKey?a-n:a+n;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}});na.addInitHook("addHandler","doubleClickZoom",Jn),na.mergeOptions({dragging:!0,inertia:!ot,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ti=ma.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Sa(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ve(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ye(this._map._container,"leaflet-grab"),ye(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=B(this._map.options.maxBounds);this._offsetLimit=$(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,a=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(a),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){while(this._positions.length>1&&t-this._times[0]>50)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),a=this._initialWorldOffset,n=this._draggable._newPos.x,i=(n-e+a)%t+e-a,o=(n+e+a)%t-e-a,r=Math.abs(i+a)<Math.abs(o+a)?i:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(t){var e=this._map,a=e.options,n=!a.inertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,r=a.easeLinearity,s=i.multiplyBy(r/o),l=s.distanceTo([0,0]),c=Math.min(a.inertiaMaxSpeed,l),u=s.multiplyBy(c/l),d=c/(a.inertiaDeceleration*r),h=u.multiplyBy(-d/2).round();h.x||h.y?(h=e._limitOffset(h,e.options.maxBounds),C((function(){e.panBy(h,{duration:d,easeLinearity:r,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});na.addInitHook("addHandler","dragging",ti),na.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ei=ma.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Pe(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),$e(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,a=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(n,a)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,a,n=this._panKeys={},i=this.keyCodes;for(e=0,a=i.left.length;e<a;e++)n[i.left[e]]=[-1*t,0];for(e=0,a=i.right.length;e<a;e++)n[i.right[e]]=[t,0];for(e=0,a=i.down.length;e<a;e++)n[i.down[e]]=[0,t];for(e=0,a=i.up.length;e<a;e++)n[i.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,a,n=this._zoomKeys={},i=this.keyCodes;for(e=0,a=i.zoomIn.length;e<a;e++)n[i.zoomIn[e]]=t;for(e=0,a=i.zoomOut.length;e<a;e++)n[i.zoomOut[e]]=-t},_addHooks:function(){Pe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){$e(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,a=t.keyCode,n=this._map;if(a in this._panKeys)n._panAnim&&n._panAnim._inProgress||(e=this._panKeys[a],t.shiftKey&&(e=P(e).multiplyBy(3)),n.panBy(e),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds));else if(a in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[a]);else{if(27!==a||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}He(t)}}});na.addInitHook("addHandler","keyboard",ei),na.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ai=ma.extend({addHooks:function(){Pe(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){$e(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ke(t),a=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(a-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),n),He(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),a=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),i=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,o=a?Math.ceil(i/a)*a:i,r=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});na.addInitHook("addHandler","scrollWheelZoom",ai),na.mergeOptions({tap:!0,tapTolerance:15});var ni=ma.extend({addHooks:function(){Pe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){$e(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Ve(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],a=e.target;this._startPos=this._newPos=new R(e.clientX,e.clientY),a.tagName&&"a"===a.tagName.toLowerCase()&&ve(a,"leaflet-active"),this._holdTimeout=setTimeout(o((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))}),this),1e3),this._simulateEvent("mousedown",e),Pe(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),$e(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],a=e.target;a&&a.tagName&&"a"===a.tagName.toLowerCase()&&ye(a,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new R(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var a=document.createEvent("MouseEvents");a._simulated=!0,e.target._simulatedClick=!0,a.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(a)}});At&&!Tt&&na.addInitHook("addHandler","tap",ni),na.mergeOptions({touchZoom:At&&!ot,bounceAtZoomLimits:!0});var ii=ma.extend({addHooks:function(){ve(this._map._container,"leaflet-touch-zoom"),Pe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ye(this._map._container,"leaflet-touch-zoom"),$e(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var a=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(a.add(n)._divideBy(2))),this._startDist=a.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Pe(document,"touchmove",this._onTouchMove,this),Pe(document,"touchend",this._onTouchEnd,this),Ve(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,a=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),i=a.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(i,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&i<1||this._zoom>e.getMaxZoom()&&i>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var r=a._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===r.x&&0===r.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var s=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=C(s,this,!0),Ve(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),$e(document,"touchmove",this._onTouchMove),$e(document,"touchend",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});na.addInitHook("addHandler","touchZoom",ii),na.BoxZoom=Qn,na.DoubleClickZoom=Jn,na.Drag=ti,na.Keyboard=ei,na.ScrollWheelZoom=ai,na.Tap=ni,na.TouchZoom=ii,Object.freeze=a,t.version=e,t.Control=oa,t.control=ra,t.Browser=Lt,t.Evented=D,t.Mixin=_a,t.Util=w,t.Class=M,t.Handler=ma,t.extend=n,t.bind=o,t.stamp=s,t.setOptions=f,t.DomEvent=ea,t.DomUtil=Ne,t.PosAnimation=aa,t.Draggable=Sa,t.LineUtil=Na,t.PolyUtil=ja,t.Point=R,t.point=P,t.Bounds=j,t.bounds=$,t.Transformation=W,t.transformation=K,t.Projection=Ba,t.LatLng=Y,t.latLng=U,t.LatLngBounds=F,t.latLngBounds=B,t.CRS=z,t.GeoJSON=dn,t.geoJSON=Sn,t.geoJson=On,t.Layer=Va,t.LayerGroup=Ha,t.layerGroup=Ga,t.FeatureGroup=Wa,t.featureGroup=Ka,t.ImageOverlay=Tn,t.imageOverlay=An,t.VideoOverlay=xn,t.videoOverlay=Cn,t.SVGOverlay=En,t.svgOverlay=wn,t.DivOverlay=Mn,t.Popup=kn,t.popup=In,t.Tooltip=Dn,t.tooltip=Ln,t.Icon=Za,t.icon=qa,t.DivIcon=Rn,t.divIcon=Nn,t.Marker=Ja,t.marker=tn,t.TileLayer=$n,t.tileLayer=Fn,t.GridLayer=Pn,t.gridLayer=jn,t.SVG=Kn,t.svg=Zn,t.Renderer=Un,t.Canvas=zn,t.canvas=Vn,t.Path=en,t.CircleMarker=an,t.circleMarker=nn,t.Circle=on,t.circle=rn,t.Polyline=sn,t.polyline=ln,t.Polygon=cn,t.polygon=un,t.Rectangle=qn,t.rectangle=Xn,t.Map=na,t.map=ia;var oi=window.L;t.noConflict=function(){return window.L=oi,this},window.L=t}))},e1ff:function(t,e,a){"use strict";a.d(e,"a",(function(){return k}));var n=a("7fae"),i=a("3a56"),o=a("8918"),r=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(n["a"])(e,t),e.type="dataZoom.inside",e.defaultOption=Object(o["d"])(i["a"].defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(i["a"]),s=r,l=a("7dcf"),c=a("ef6a"),u=a("4a01"),d=a("88b3"),h=a("e0d3"),p=a("6d8b"),f=a("50e5"),m=Object(h["o"])();function g(t,e,a){m(t).coordSysRecordMap.each((function(t){var n=t.dataZoomInfoMap.get(e.uid);n&&(n.getRange=a)}))}function _(t,e){for(var a=m(t).coordSysRecordMap,n=a.keys(),i=0;i<n.length;i++){var o=n[i],r=a.get(o),s=r.dataZoomInfoMap;if(s){var l=e.uid,c=s.get(l);c&&(s.removeKey(l),s.keys().length||v(a,r))}}}function v(t,e){if(e){t.removeKey(e.model.uid);var a=e.controller;a&&a.dispose()}}function y(t,e){var a={model:e,containsPoint:Object(p["h"])(S,e),dispatchAction:Object(p["h"])(b,t),dataZoomInfoMap:null,controller:null},n=a.controller=new u["a"](t.getZr());return Object(p["k"])(["pan","zoom","scrollMove"],(function(t){n.on(t,(function(e){var n=[];a.dataZoomInfoMap.each((function(i){if(e.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[t],r=o&&o(i.dzReferCoordSysInfo,a.model.mainType,a.controller,e);!i.model.get("disabled",!0)&&r&&n.push({dataZoomId:i.model.id,start:r[0],end:r[1]})}})),n.length&&a.dispatchAction(n)}))})),a}function b(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function S(t,e,a,n){return t.coordinateSystem.containPoint([a,n])}function O(t){var e,a="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each((function(t){var o=t.model,r=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");n[a+r]>n[a+e]&&(e=r),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function T(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var a=m(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=Object(p["f"])());n.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var a=Object(f["b"])(t);Object(p["k"])(a.infoList,(function(a){var i=a.model.uid,o=n.get(i)||n.set(i,y(e,a.model)),r=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(p["f"])());r.set(t.uid,{dzReferCoordSysInfo:a,model:t,getRange:null})}))})),n.each((function(t){var e,a=t.controller,i=t.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(e=i.get(o))}if(e){var r=O(i);a.enable(r.controlType,r.opt),a.setPointerChecker(t.containsPoint),d["b"](t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else v(n,t)}))}))}var A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return Object(n["a"])(e,t),e.prototype.render=function(e,a,n){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),g(n,e,{pan:Object(p["c"])(x.pan,this),zoom:Object(p["c"])(x.zoom,this),scrollMove:Object(p["c"])(x.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){_(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(l["a"]),x={zoom:function(t,e,a,n){var i=this.range,o=i.slice(),r=t.axisModels[0];if(r){var s=E[e](null,[n.originX,n.originY],r,a,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/n.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Object(c["a"])(0,o,[0,100],0,d.minSpan,d.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:C((function(t,e,a,n,i,o){var r=E[n]([o.oldX,o.oldY],[o.newX,o.newY],e,i,a);return r.signal*(t[1]-t[0])*r.pixel/r.pixelLength})),scrollMove:C((function(t,e,a,n,i,o){var r=E[n]([0,0],[o.scrollDelta,o.scrollDelta],e,i,a);return r.signal*(t[1]-t[0])*o.scrollDelta}))};function C(t){return function(e,a,n,i){var o=this.range,r=o.slice(),s=e.axisModels[0];if(s){var l=t(r,s,e,a,n,i);return Object(c["a"])(l,r,[0,100],"all"),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}}}var E={grid:function(t,e,a,n,i){var o=a.axis,r={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(r.pixel=e[0]-t[0],r.pixelLength=s.width,r.pixelStart=s.x,r.signal=o.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=s.height,r.pixelStart=s.y,r.signal=o.inverse?-1:1),r},polar:function(t,e,a,n,i){var o=a.axis,r={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===a.mainType?(r.pixel=e[0]-t[0],r.pixelLength=l[1]-l[0],r.pixelStart=l[0],r.signal=o.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=c[1]-c[0],r.pixelStart=c[0],r.signal=o.inverse?-1:1),r},singleAxis:function(t,e,a,n,i){var o=a.axis,r=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=r.width,s.pixelStart=r.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=r.height,s.pixelStart=r.y,s.signal=o.inverse?-1:1),s}},w=A,M=a("1459");function k(t){Object(M["a"])(t),t.registerComponentModel(s),t.registerComponentView(w),T(t)}},e237:function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));var n=a("5530"),i=(a("d3b7"),a("159b"),a("ac1f"),a("5319"),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={isFirstLineTH:!0,fileName:"myFile"},n=Object.assign({},a,e),i=document.createElement("table"),r=document.createElement("thead"),s=document.createElement("tbody"),l=document.createDocumentFragment();t.forEach((function(t,e){var a=document.createElement("tr"),i=n.isFirstLineTH&&0===e;t.forEach((function(t){var e=i?document.createElement("th"):document.createElement("td");a.className="cell",e.innerText=t,a.appendChild(e)})),i?r.appendChild(a):s.appendChild(a)})),l.appendChild(r),l.appendChild(s),i.appendChild(l),o(i,n.fileName)}),o=function(t,e){var a={worksheet:e||"Worksheet",table:t.innerHTML},i="data:application/vnd.ms-excel;base64,",o='\n      <html xmlns:o="urn:schemas-microsoft-com:office:office"\n        xmlns:x="urn:schemas-microsoft-com:office:excel"\n        xmlns="http://www.w3.org/TR/REC-html40">\n        <head>\n          <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n          \x3c!--[if gte mso 9]>\n          <xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook>\n          </xml>\n          <![endif]--\x3e\n        </head>\n        <body>\n          <style>table thead th{background:#33CCCC}table thead th .cell{line-height:2} table caption p{font-size:20px;font-weight:bold;line-height:2}\n          </style>\n          <table border="1"><caption><p>{name}</p></caption>{table}\n          </table>\n        </body>\n      </html>',r=function(t){return window.btoa(unescape(encodeURIComponent(t)))},s=function(t,e){return t.replace(/{(\w+)}/g,(function(t,a){return e[a]}))},l=document.createElement("a");l.href=i+r(s(o,Object(n["a"])({name:e},a))),l.download="".concat(e,".xls"),document.body.appendChild(l),l.click(),document.body.removeChild(l)}},e238:function(t,e,a){},e249:function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return r}));var n=a("7f80"),i=function(t,e){return e=e||{},Object(n["e"])("/region-distribution",t,e)},o=function(t,e){return e=e||{},Object(n["e"])("/region-distribution/detail",t,e)},r=function(t,e){return e=e||{},Object(n["e"])("/region-distribution/top",t,e)}},e275:function(t,e,a){"use strict";a.d(e,"a",(function(){return D}));var n=a("7fae"),i=a("d498"),o=a("76a5"),r=a("deab"),s=a("dce8"),l=a("87b1"),c=a("7d6c"),u=a("e887"),d=a("89b6"),h=a("7837"),p=["itemStyle","opacity"],f=function(t){function e(e,a){var n=t.call(this)||this,r=n,s=new i["a"],l=new o["a"];return r.setTextContent(l),n.setTextGuideLine(s),n.updateData(e,a,!0),n}return Object(n["a"])(e,t),e.prototype.updateData=function(t,e,a){var n=this,i=t.hostModel,o=t.getItemModel(e),s=t.getItemLayout(e),l=o.getModel("emphasis"),u=o.get(p);u=null==u?1:u,a||Object(r["g"])(n),n.useStyle(t.getItemVisual(e,"style")),n.style.lineJoin="round",a?(n.setShape({points:s.points}),n.style.opacity=0,r["c"](n,{style:{opacity:u}},i,e)):r["h"](n,{style:{opacity:u},shape:{points:s.points}},i,e),Object(c["I"])(n,o),this._updateLabel(t,e),Object(c["J"])(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},e.prototype._updateLabel=function(t,e){var a=this,n=this.getTextGuideLine(),i=a.getTextContent(),o=t.hostModel,l=t.getItemModel(e),c=t.getItemLayout(e),u=c.label,p=t.getItemVisual(e,"style"),f=p.fill;Object(h["g"])(i,Object(h["e"])(l),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:p.opacity,defaultText:t.getName(e)},{normal:{align:u.textAlign,verticalAlign:u.verticalAlign}}),a.setTextConfig({local:!0,inside:!!u.inside,insideStroke:f,outsideFill:f});var m=u.linePoints;n.setShape({points:m}),a.textGuideLineConfig={anchor:m?new s["a"](m[0][0],m[0][1]):null},r["h"](i,{style:{x:u.x,y:u.y}},o,e),i.attr({rotation:u.rotation,originX:u.x,originY:u.y,z2:10}),Object(d["d"])(a,Object(d["a"])(l),{stroke:f})},e}(l["a"]),m=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.ignoreLabelLineUpdate=!0,a}return Object(n["a"])(e,t),e.prototype.render=function(t,e,a){var n=t.getData(),i=this._data,o=this.group;n.diff(i).add((function(t){var e=new f(n,t);n.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var a=i.getItemGraphicEl(e);a.updateData(n,t),o.add(a),n.setItemGraphicEl(t,a)})).remove((function(e){var a=i.getItemGraphicEl(e);r["f"](a,t,e)})).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(u["a"]),g=m,_=a("6d8b"),v=a("3f23"),y=a("e0d3"),b=a("0f99"),S=a("c4a3"),O=a("4f85"),T=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(n["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new S["a"](_["c"](this.getData,this),_["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return Object(v["a"])(this,{coordDimensions:["value"],encodeDefaulter:_["h"](b["d"],this)})},e.prototype._defaultLabelLine=function(t){Object(y["f"])(t,"labelLine",["show"]);var e=t.labelLine,a=t.emphasis.labelLine;e.show=e.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var a=this.getData(),n=t.prototype.getDataParams.call(this,e),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(O["b"]),A=T,x=a("f934"),C=a("3842");function E(t,e){return x["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function w(t,e){for(var a=t.mapDimension("value"),n=t.mapArray(a,(function(t){return t})),i=[],o="ascending"===e,r=0,s=t.count();r<s;r++)i[r]=r;return Object(_["w"])(e)?i.sort(e):"none"!==e&&i.sort((function(t,e){return o?n[t]-n[e]:n[e]-n[t]})),i}function M(t){var e=t.hostModel,a=e.get("orient");t.each((function(e){var n,i,o,r,s=t.getItemModel(e),l=s.getModel("label"),c=l.get("position"),u=s.getModel("labelLine"),d=t.getItemLayout(e),h=d.points,p="inner"===c||"inside"===c||"center"===c||"insideLeft"===c||"insideRight"===c;if(p)"insideLeft"===c?(i=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,n="left"):"insideRight"===c?(i=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,n="right"):(i=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,n="center"),r=[[i,o],[i,o]];else{var f=void 0,m=void 0,g=void 0,_=void 0,v=u.get("length");0,"left"===c?(f=(h[3][0]+h[0][0])/2,m=(h[3][1]+h[0][1])/2,g=f-v,i=g-5,n="right"):"right"===c?(f=(h[1][0]+h[2][0])/2,m=(h[1][1]+h[2][1])/2,g=f+v,i=g+5,n="left"):"top"===c?(f=(h[3][0]+h[0][0])/2,m=(h[3][1]+h[0][1])/2,_=m-v,o=_-5,n="center"):"bottom"===c?(f=(h[1][0]+h[2][0])/2,m=(h[1][1]+h[2][1])/2,_=m+v,o=_+5,n="center"):"rightTop"===c?(f="horizontal"===a?h[3][0]:h[1][0],m="horizontal"===a?h[3][1]:h[1][1],"horizontal"===a?(_=m-v,o=_-5,n="center"):(g=f+v,i=g+5,n="top")):"rightBottom"===c?(f=h[2][0],m=h[2][1],"horizontal"===a?(_=m+v,o=_+5,n="center"):(g=f+v,i=g+5,n="bottom")):"leftTop"===c?(f=h[0][0],m="horizontal"===a?h[0][1]:h[1][1],"horizontal"===a?(_=m-v,o=_-5,n="center"):(g=f-v,i=g-5,n="right")):"leftBottom"===c?(f="horizontal"===a?h[1][0]:h[3][0],m="horizontal"===a?h[1][1]:h[2][1],"horizontal"===a?(_=m+v,o=_+5,n="center"):(g=f-v,i=g-5,n="right")):(f=(h[1][0]+h[2][0])/2,m=(h[1][1]+h[2][1])/2,"horizontal"===a?(_=m+v,o=_+5,n="center"):(g=f+v,i=g+5,n="left")),"horizontal"===a?(g=f,i=g):(_=m,o=_),r=[[f,m],[g,_]]}d.label={linePoints:r,x:i,y:o,verticalAlign:"middle",textAlign:n,inside:p}}))}function k(t,e){t.eachSeriesByType("funnel",(function(t){var a=t.getData(),n=a.mapDimension("value"),i=t.get("sort"),o=E(t,e),r=t.get("orient"),s=o.width,l=o.height,c=w(a,i),u=o.x,d=o.y,h="horizontal"===r?[Object(C["o"])(t.get("minSize"),l),Object(C["o"])(t.get("maxSize"),l)]:[Object(C["o"])(t.get("minSize"),s),Object(C["o"])(t.get("maxSize"),s)],p=a.getDataExtent(n),f=t.get("min"),m=t.get("max");null==f&&(f=Math.min(p[0],0)),null==m&&(m=p[1]);var g=t.get("funnelAlign"),_=t.get("gap"),v="horizontal"===r?s:l,y=(v-_*(a.count()-1))/a.count(),b=function(t,e){if("horizontal"===r){var i=a.get(n,t)||0,o=Object(C["k"])(i,[f,m],h,!0),c=void 0;switch(g){case"top":c=d;break;case"center":c=d+(l-o)/2;break;case"bottom":c=d+(l-o);break}return[[e,c],[e,c+o]]}var p,_=a.get(n,t)||0,v=Object(C["k"])(_,[f,m],h,!0);switch(g){case"left":p=u;break;case"center":p=u+(s-v)/2;break;case"right":p=u+s-v;break}return[[p,e],[p+v,e]]};"ascending"===i&&(y=-y,_=-_,"horizontal"===r?u+=s:d+=l,c=c.reverse());for(var S=0;S<c.length;S++){var O=c[S],T=c[S+1],A=a.getItemModel(O);if("horizontal"===r){var x=A.get(["itemStyle","width"]);null==x?x=y:(x=Object(C["o"])(x,s),"ascending"===i&&(x=-x));var k=b(O,u),I=b(T,u+x);u+=x+_,a.setItemLayout(O,{points:k.concat(I.slice().reverse())})}else{var D=A.get(["itemStyle","height"]);null==D?D=y:(D=Object(C["o"])(D,l),"ascending"===i&&(D=-D));k=b(O,d),I=b(T,d+D);d+=D+_,a.setItemLayout(O,{points:k.concat(I.slice().reverse())})}}M(a)}))}var I=a("d3f4");function D(t){t.registerChartView(g),t.registerSeriesModel(A),t.registerLayout(k),t.registerProcessor(Object(I["a"])("funnel"))}},e285:function(t,e,a){var n=a("da84"),i=n.isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&i(t)}},e2a7:function(t,e,a){},e40b:function(t,e,a){},e8e6:function(t,e,a){"use strict";a.d(e,"a",(function(){return J}));var n=a("22b4"),i=a("6d8b");function o(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),a=[],n=t.coordinateSystem;if(n){var o=n.getIndicatorAxes();i["k"](o,(function(t,i){e.each(e.mapDimension(o[i].dim),(function(t,e){a[e]=a[e]||[];var o=n.dataToPoint(t,i);a[e][i]=r(o)?o:s(n)}))})),e.each((function(t){var o=i["o"](a[t],(function(t){return r(t)}))||s(n);a[t].push(o.slice()),e.setItemLayout(t,a[t])}))}}))}function r(t){return!isNaN(t[0])&&!isNaN(t[1])}function s(t){return[t.cx,t.cy]}var l=a("d3f4");function c(t){var e=t.polar;if(e){i["t"](e)||(e=[e]);var a=[];i["k"](e,(function(e,n){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],i["t"](t.radar)||(t.radar=[t.radar]),t.radar.push(e)):a.push(e)})),t.polar=a}i["k"](t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var u=a("7fae"),d=a("2306"),h=a("87b1"),p=a("d498"),f=a("deab"),m=a("2dc5"),g=a("7d6c"),_=a("a15a"),v=a("e887"),y=a("7837"),b=a("0da8"),S=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(u["a"])(e,t),e.prototype.render=function(t,e,a){var n=t.coordinateSystem,o=this.group,r=t.getData(),s=this._data;function l(t,e){var a=t.getItemVisual(e,"symbol")||"circle";if("none"!==a){var n=_["c"](t.getItemVisual(e,"symbolSize")),i=_["a"](a,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:n[0]/2,scaleY:n[1]/2,rotation:o*Math.PI/180||0}),i}}function c(e,a,n,i,o,r){n.removeAll();for(var s=0;s<a.length-1;s++){var c=l(i,o);c&&(c.__dimIdx=s,e[s]?(c.setPosition(e[s]),d[r?"initProps":"updateProps"](c,{x:a[s][0],y:a[s][1]},t,o)):c.setPosition(a[s]),n.add(c))}}function u(t){return i["H"](t,(function(t){return[n.cx,n.cy]}))}r.diff(s).add((function(e){var a=r.getItemLayout(e);if(a){var n=new h["a"],i=new p["a"],o={shape:{points:a}};n.shape.points=u(a),i.shape.points=u(a),f["c"](n,o,t,e),f["c"](i,o,t,e);var s=new m["a"],l=new m["a"];s.add(i),s.add(n),s.add(l),c(i.shape.points,a,l,r,e,!0),r.setItemGraphicEl(e,s)}})).update((function(e,a){var n=s.getItemGraphicEl(a),i=n.childAt(0),o=n.childAt(1),l=n.childAt(2),u={shape:{points:r.getItemLayout(e)}};u.shape.points&&(c(i.shape.points,u.shape.points,l,r,e,!1),Object(f["g"])(o),Object(f["g"])(i),f["h"](i,u,t),f["h"](o,u,t),r.setItemGraphicEl(e,n))})).remove((function(t){o.remove(s.getItemGraphicEl(t))})).execute(),r.eachItemGraphicEl((function(t,e){var a=r.getItemModel(e),n=t.childAt(0),s=t.childAt(1),l=t.childAt(2),c=r.getItemVisual(e,"style"),u=c.fill;o.add(t),n.useStyle(i["i"](a.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Object(g["I"])(n,a,"lineStyle"),Object(g["I"])(s,a,"areaStyle");var d=a.getModel("areaStyle"),h=d.isEmpty()&&d.parentModel.isEmpty();s.ignore=h,i["k"](["emphasis","select","blur"],(function(t){var e=a.getModel([t,"areaStyle"]),n=e.isEmpty()&&e.parentModel.isEmpty();s.ensureState(t).ignore=n&&h})),s.useStyle(i["i"](d.getAreaStyle(),{fill:u,opacity:.7,decal:c.decal}));var p=a.getModel("emphasis"),f=p.getModel("itemStyle").getItemStyle();l.eachChild((function(t){if(t instanceof b["a"]){var n=t.style;t.useStyle(i["m"]({image:n.image,x:n.x,y:n.y,width:n.width,height:n.height},c))}else t.useStyle(c),t.setColor(u),t.style.strokeNoScale=!0;var o=t.ensureState("emphasis");o.style=i["d"](f);var s=r.getStore().get(r.getDimensionIndex(t.__dimIdx),e);(null==s||isNaN(s))&&(s=""),Object(y["g"])(t,Object(y["e"])(a),{labelFetcher:r.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:s,inheritColor:u,defaultOpacity:c.opacity})})),Object(g["J"])(t,p.get("focus"),p.get("blurScope"),p.get("disabled"))})),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(v["a"]),O=S,T=a("4f85"),A=a("3f23"),x=a("c4a3"),C=a("217c"),E=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a.hasSymbolVisual=!0,a}return Object(u["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new x["a"](i["c"](this.getData,this),i["c"](this.getRawData,this))},e.prototype.getInitialData=function(t,e){return Object(A["a"])(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,a){var n=this.getData(),o=this.coordinateSystem,r=o.getIndicatorAxes(),s=this.getData().getName(t),l=""===s?this.name:s,c=Object(C["e"])(this,t);return Object(C["c"])("section",{header:l,sortBlocks:!0,blocks:i["H"](r,(function(e){var a=n.get(n.mapDimension(e.dim),t);return Object(C["c"])("nameValue",{markerType:"subItem",markerColor:c,name:e.name,value:a,sortParam:a})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),a=this.coordinateSystem,n=e.getValues(i["H"](a.dimensions,(function(t){return e.mapDimension(t)})),t),o=0,r=n.length;o<r;o++)if(!isNaN(n[o])){var s=a.getIndicatorAxes();return a.coordToPoint(s[o].dataToCoord(n[o]),o)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(T["b"]),w=E,M=a("71ad"),k=a("4319"),I=a("2023"),D=a("6cb7"),L=M["a"].value;function R(t,e){return i["i"]({show:e},t)}var N=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(u["a"])(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),a=this.get("scale"),n=this.get("axisLine"),o=this.get("axisTick"),r=this.get("axisLabel"),s=this.get("axisName"),l=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),d=this.get("triggerEvent"),h=i["H"](this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var p=s;null!=h.color&&(p=i["i"]({color:h.color},s));var f=i["I"](i["d"](h),{boundaryGap:t,splitNumber:e,scale:a,axisLine:n,axisTick:o,axisLabel:r,name:h.text,showName:l,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:d},!1);if(l||(f.name=""),i["C"](c)){var m=f.name;f.name=c.replace("{value}",null!=m?m:"")}else i["w"](c)&&(f.name=c(f.name,f));var g=new k["a"](f,null,this.ecModel);return i["K"](g,I["a"].prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:i["I"]({lineStyle:{color:"#bbb"}},L.axisLine),axisLabel:R(L.axisLabel,!1),axisTick:R(L.axisTick,!1),splitLine:R(L.splitLine,!0),splitArea:R(L.splitArea,!0),indicator:[]},e}(D["a"]),P=N,j=a("fab2"),$=a("d9fc"),F=a("4573"),B=a("b12f"),Y=["axisLine","axisTickLabel","axisName"],U=function(t){function e(){var a=null!==t&&t.apply(this,arguments)||this;return a.type=e.type,a}return Object(u["a"])(e,t),e.prototype.render=function(t,e,a){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,a=e.getIndicatorAxes(),n=i["H"](a,(function(t){var a=t.model.get("showName")?t.name:"",n=new j["a"](t.model,{axisName:a,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));i["k"](n,(function(t){i["k"](Y,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,a=e.getIndicatorAxes();if(a.length){var n=t.get("shape"),o=t.getModel("splitLine"),r=t.getModel("splitArea"),s=o.getModel("lineStyle"),l=r.getModel("areaStyle"),c=o.get("show"),u=r.get("show"),f=s.get("color"),m=l.get("color"),g=i["t"](f)?f:[f],_=i["t"](m)?m:[m],v=[],y=[];if("circle"===n)for(var b=a[0].getTicksCoords(),S=e.cx,O=e.cy,T=0;T<b.length;T++){if(c){var A=D(v,g,T);v[A].push(new $["a"]({shape:{cx:S,cy:O,r:b[T].coord}}))}if(u&&T<b.length-1){A=D(y,_,T);y[A].push(new F["a"]({shape:{cx:S,cy:O,r0:b[T].coord,r:b[T+1].coord}}))}}else{var x,C=i["H"](a,(function(t,a){var n=t.getTicksCoords();return x=null==x?n.length-1:Math.min(n.length-1,x),i["H"](n,(function(t){return e.coordToPoint(t.coord,a)}))})),E=[];for(T=0;T<=x;T++){for(var w=[],M=0;M<a.length;M++)w.push(C[M][T]);if(w[0]&&w.push(w[0].slice()),c){A=D(v,g,T);v[A].push(new p["a"]({shape:{points:w}}))}if(u&&E){A=D(y,_,T-1);y[A].push(new h["a"]({shape:{points:w.concat(E)}}))}E=w.slice().reverse()}}var k=s.getLineStyle(),I=l.getAreaStyle();i["k"](y,(function(t,e){this.group.add(d["mergePath"](t,{style:i["i"]({stroke:"none",fill:_[e%_.length]},I),silent:!0}))}),this),i["k"](v,(function(t,e){this.group.add(d["mergePath"](t,{style:i["i"]({fill:"none",stroke:g[e%g.length]},k),silent:!0}))}),this)}function D(t,e,a){var n=a%e.length;return t[n]=t[n]||[],n}},e.type="radar",e}(B["a"]),z=U,V=a("84ce"),H=function(t){function e(e,a,n){var i=t.call(this,e,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return Object(u["a"])(e,t),e}(V["a"]),G=H,W=a("89e3"),K=a("3842"),Z=a("b2a0"),q=function(){function t(t,e,a){this.dimensions=[],this._model=t,this._indicatorAxes=Object(i["H"])(t.getIndicatorModels(),(function(t,e){var a="indicator_"+e,n=new G(a,new W["a"]);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(a),n}),this),this.resize(t,a)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,i=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[i,o]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var i,o=Math.atan2(-a,e),r=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(o-c.angle);u<r&&(i=c,s=l,r=u)}return[s,+(i&&i.coordToData(n))]},t.prototype.resize=function(t,e){var a=t.get("center"),n=e.getWidth(),o=e.getHeight(),r=Math.min(n,o)/2;this.cx=K["o"](a[0],n),this.cy=K["o"](a[1],o),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(Object(i["C"])(s)||Object(i["z"])(s))&&(s=[0,s]),this.r0=K["o"](s[0],r),this.r=K["o"](s[1],r),Object(i["k"])(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var a=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;a=Math.atan2(Math.sin(a),Math.cos(a)),t.angle=a}),this)},t.prototype.update=function(t,e){var a=this._indicatorAxes,n=this._model;Object(i["k"])(a,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,o){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===n){var r=e.getData();Object(i["k"])(a,(function(t){t.scale.unionExtentFromData(r,r.mapDimension(t.dim))}))}}),this);var o=n.get("splitNumber"),r=new W["a"];r.setExtent(0,o),r.setInterval(1),Object(i["k"])(a,(function(t,e){Object(Z["a"])(t.scale,t.model,r)}))},t.prototype.convertToPixel=function(t,e,a){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,a){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,a){var n=[];return e.eachComponent("radar",(function(i){var o=new t(i,e,a);n.push(o),i.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])})),n},t.dimensions=[],t}(),X=q;function Q(t){t.registerCoordinateSystem("radar",X),t.registerComponentModel(P),t.registerComponentView(z),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}function J(t){Object(n["a"])(Q),t.registerChartView(O),t.registerSeriesModel(w),t.registerLayout(o),t.registerProcessor(Object(l["a"])("radar")),t.registerPreprocessor(c)}},e99f:function(t,e,a){},eacb:function(t,e,a){"use strict";a("dbd0")},efb4:function(t,e,a){},f00c:function(t,e,a){var n=a("23e7"),i=a("e285");n({target:"Number",stat:!0},{isFinite:i})},f2ab:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"refundOverviewWrap formPadding",attrs:{id:t.$options.name}},[a("div",{staticClass:"summaryTopMsgWrap notScroll hasCheckLable"},[a("div",{directives:[{name:"router-save",rawName:"v-router-save",value:t.refundOverviewSelectBlock,expression:"refundOverviewSelectBlock"}],staticClass:"summaryTopMsg is-last-block",attrs:{id:"refund-view"}},t._l(t.showSelect,(function(e){return a("div",{key:e.id,staticClass:"summary-box flex-1"},[a("label",{staticClass:"summary-box-label unChecked",class:{checked:t.refundOverviewSelectBlock.indexOf(e.id)>-1,disabled:3===t.refundOverviewSelectBlock.length&&t.refundOverviewSelectBlock.indexOf(e.id)<0},attrs:{for:e.id+t.$options.name},on:{click:function(a){return t.showAlart(t.refundOverviewSelectBlock,e)}}},[a("div",{staticClass:"leftInfo"},[a("lok",{attrs:{"lok-key":e.name}}),e.showSym&&t.CURRENCY_SYMBOL?a("span",{staticClass:"symbolColor"},[t._v(" ("+t._s(t.$route.query.CURRENCY_SYMBOL||t.CURRENCY_SYMBOL)+") ")]):t._e()],1),a("div",{staticClass:"rightInfo"},[a("span",{staticClass:"leftShowTip"},[t._v(t._s(t._f("thousand")(e.value)))]),a("span",{staticClass:"rightShowTip"},[0===t.dateScope?a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_YESTERDAY"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_YESTERDAY"))+" ")]):-1==t.dateScope?a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_BEFORE_YESTERDAY"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_BEFORE_YESTERDAY"))+" ")]):null==t.dateScope?a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_LAST_PERIOD"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_LAST_PERIOD"))+" ")]):a("lok",{attrs:{"tag-name":"em","lok-key":"_SALES_ANALYSIS_COMPARE_LAST_SOME_DAYS"}},[t._v(" "+t._s(t.$t("_SALES_ANALYSIS_COMPARE_LAST_SOME_DAYS",{days:parseInt(t.dateScope)+1}))+" ")]),e.id.indexOf("Refund")>-1||e.id.indexOf("refund")>-1?a("em",{class:{less:e.popValue<0,more:e.popValue>0}},[t._v(" "+t._s(Math.abs(e.popValue)||"-")+"% "),a("feather-icon",{attrs:{icon:e.popValue>0?"ArrowUpIcon":"ArrowDownIcon",size:"12"}})],1):a("em",{class:{less:e.popValue>0,more:e.popValue<0}},[t._v(" "+t._s(Math.abs(e.popValue)||"-")+"% "),a("feather-icon",{attrs:{icon:e.popValue>0?"ArrowUpIcon":"ArrowDownIcon",size:"12"}})],1)],1)])]),a("b-form-checkbox",{staticClass:"checkboxHidden",attrs:{disabled:1===t.refundOverviewSelectBlock.length&&t.refundOverviewSelectBlock.indexOf(e.id)>-1||3===t.refundOverviewSelectBlock.length&&t.refundOverviewSelectBlock.indexOf(e.id)<0,id:e.id+t.$options.name,value:e.id},model:{value:t.refundOverviewSelectBlock,callback:function(e){t.refundOverviewSelectBlock=e},expression:"refundOverviewSelectBlock"}})],1)})),0)]),a("guider-tooltip",{ref:"guider",attrs:{placement:"bottomleft",tooltipId:"refund-view",titleStyleStr:"max-width: 230px;",eventId:"pop_prodanlys_metrsel_ok_click",readedId:"refund-view",title:t.$t("poptip_metrsel_text")}}),a("div",{staticClass:"echartWrap",staticStyle:{"margin-top":"12px"}},[a("div",{staticClass:"topHeader"},[a("b-form-group",{staticClass:"firstGroup"},[a("b-form-radio-group",{directives:[{name:"router-save",rawName:"v-router-save"}],attrs:{"button-variant":"outline-nobg",options:t.isSingleYOptions,buttons:"",name:"radio-btn-stacked"},model:{value:t.isSingleY,callback:function(e){t.isSingleY=e},expression:"isSingleY"}})],1),a("b-form-group",[a("b-form-radio-group",{directives:[{name:"router-save",rawName:"v-router-save"}],attrs:{"button-variant":"outline-nobg",options:t.dateSelectOptions,buttons:"",name:"radio-btn-stacked"},model:{value:t.refundOverviewDateSelectType,callback:function(e){t.refundOverviewDateSelectType=e},expression:"refundOverviewDateSelectType"}})],1)],1),a("b-row",[a("b-col",[a("line-chart",{key:"lineChart"+t.$options.name+t.refundOverviewDateSelectType,attrs:{isSingleY:t.isSingleY,dateSelectType:t.refundOverviewDateSelectType,selectBlock:t.refundOverviewSelectBlock,rangeDate:t.rangeDate,refundDays:t.refundDays}})],1)],1)],1),a("div",{staticClass:"echartWrap"},[a("b-tabs",{staticClass:"pieTopHeader"},[a("b-tab",{attrs:{active:"",title:t.$t("_REFUND_REPORT_RETURN_REASON")}},[a("b-row",[a("b-col",{attrs:{cols:5}},[a("pie-chart",{attrs:{pieItemNames:t.pieItemNamesReason}})],1),a("b-col",{attrs:{cols:7}},[a("pie-list",{attrs:{pieItemNames:t.pieItemNamesReason}})],1)],1)],1),t.refundSuggestions.length?a("b-tab",{attrs:{title:t.$t("_REFUND_REPORT_RETURN_SUGGESTION")}},[a("b-row",[a("b-col",{attrs:{cols:5}},[a("pie-chart",{attrs:{pieItemNames:t.pieItemNamesSuggestion}})],1),a("b-col",{attrs:{cols:7}},[a("pie-list",{attrs:{type:"suggestion",pieItemNames:t.pieItemNamesSuggestion}})],1)],1)],1):t._e()],1)],1)],1)},i=[],o=a("5530"),r=(a("d3b7"),a("159b"),a("4de4"),a("b64b"),a("a9e3"),a("b680"),a("9757")),s=a("6ddf"),l=a("c1df"),c=a.n(l),u=a("cd95"),d=a("c7b8"),h=a("0c0a"),p=a("f98d"),f=a("708d"),m=a("bbf0"),g=a("2f62"),_={name:"sales_analysis_refund_report_overview",props:{baseModel:null,dateScope:{},rangeDate:{}},components:{GuiderTooltip:r["a"],lineChart:u["a"],pieList:h["a"],pieChart:d["a"]},data:function(){return{init:Object(f["a"])(this.initDebounce,500),refundOverviewDateSelectType:"day",isSingleY:!1,refundOverviewSelectBlock:["quantityRefund"],refundReason:[],refundSuggestions:[],refundDays:[],refundTotal:{},refundTotalLast:{}}},computed:Object(o["a"])(Object(o["a"])({},Object(g["c"])({CURRENT_SHOP:m["f"],CURRENCY_SYMBOL:m["c"],CURRENT_SHOP_ID:m["g"],USER_INFO:m["I"]})),{},{timeZone:function(){var t;return(null===(t=this.$store.getters[m["I"]])||void 0===t?void 0:t.timezone)||this.baseModel.timeZone},multiple:function(){return!!this.baseModel},REFUND_REASON:function(){return[{PENDING:this.$t("_REFUND_REPORT_PENDING")},{NOT_COMPATIBLE:this.$t("_REFUND_REPORT_NOT_COMPATIBLE")},{DEFECTIVE:this.$t("_REFUND_REPORT_DEFECTIVE")},{NOT_AS_DESCRIBED:this.$t("_REFUND_REPORT_NOT_AS_DESCRIBED")},{ORDERED_WRONG_ITEM:this.$t("_REFUND_REPORT_ORDERED_WRONG_ITEM")},{UNWANTED_ITEM:this.$t("_REFUND_REPORT_UNWANTED_ITEM")},{APPAREL_STYLE:this.$t("_REFUND_REPORT_APPAREL_STYLE")},{QUALITY_UNACCEPTABLE:this.$t("_REFUND_REPORT_QUALITY_UNACCEPTABLE")},{NO_REASON_GIVEN:this.$t("_REFUND_REPORT_NO_REASON_GIVEN")},{UNDELIVERABLE_UNKNOWN:this.$t("_REFUND_REPORT_UNDELIVERABLE_UNKNOWN")},{PART_NOT_COMPATIBLE:this.$t("_REFUND_REPORT_PART_NOT_COMPATIBLE")},{MISSED_ESTIMATED_DELIVERY:this.$t("_REFUND_REPORT_MISSED_ESTIMATED_DELIVERY")},{DAMAGED_BY_FC:this.$t("_REFUND_REPORT_DAMAGED_BY_FC")},{UNAUTHORIZED_PURCHASE:this.$t("_REFUND_REPORT_UNAUTHORIZED_PURCHASE")},{FOUND_BETTER_PRICE:this.$t("_REFUND_REPORT_FOUND_BETTER_PRICE")},{SWITCHEROO:this.$t("_REFUND_REPORT_SWITCHEROO")},{NEVER_ARRIVED:this.$t("_REFUND_REPORT_NEVER_ARRIVED")},{MISSING_PARTS:this.$t("_REFUND_REPORT_MISSING_PARTS")},{APPAREL_TOO_SMALL:this.$t("_REFUND_REPORT_APPAREL_TOO_SMALL")},{APPAREL_TOO_LARGE:this.$t("_REFUND_REPORT_APPAREL_TOO_LARGE")},{MISORDERED:this.$t("_REFUND_REPORT_MISORDERED")},{DAMAGED_BY_CARRIER:this.$t("_REFUND_REPORT_DAMAGED_BY_CARRIER")},{JEWELRY_TOO_LARGE:this.$t("_REFUND_REPORT_JEWELRY_TOO_LARGE")},{JEWELRY_TOO_SMALL:this.$t("_REFUND_REPORT_JEWELRY_TOO_SMALL")},{EXCESSIVE_INSTALLATION:this.$t("_REFUND_REPORT_EXCESSIVE_INSTALLATION")},{UNDELIVERABLE_REFUSED:this.$t("_REFUND_REPORT_UNDELIVERABLE_REFUSED")},{UNDELIVERABLE_CARRIER_MISS_SORTED:this.$t("_REFUND_REPORT_UNDELIVERABLE_CARRIER_MISS_SORTED")},{PRODUCT_NOT_ITALIAN:this.$t("_REFUND_REPORT_PRODUCT_NOT_ITALIAN")},{UNDELIVERABLE_INSUFFICIENT_ADDRESS:this.$t("_REFUND_REPORT_UNDELIVERABLE_INSUFFICIENT_ADDRESS")},{JEWELRY_TARNISHED:this.$t("_REFUND_REPORT_JEWELRY_TARNISHED")},{JEWELRY_BAD_CLASP:this.$t("_REFUND_REPORT_JEWELRY_BAD_CLASP")},{UNDELIVERABLE_UNCLAIMED:this.$t("_REFUND_REPORT_UNDELIVERABLE_UNCLAIMED")},{EXTRA_ITEM:this.$t("_REFUND_REPORT_EXTRA_ITEM")},{DID_NOT_LIKE_FABRIC:this.$t("_REFUND_REPORT_DID_NOT_LIKE_FABRIC")},{PRODUCT_NOT_SPANISH:this.$t("_REFUND_REPORT_PRODUCT_NOT_SPANISH")},{UNDELIVERABLE_MISSING_LABEL:this.$t("_REFUND_REPORT_UNDELIVERABLE_MISSING_LABEL")},{JEWELRY_BATTERY:this.$t("_REFUND_REPORT_JEWELRY_BATTERY")},{JEWELRY_LOOSE_STONE:this.$t("_REFUND_REPORT_JEWELRY_LOOSE_STONE")},{DID_NOT_LIKE_COLOR:this.$t("_REFUND_REPORT_DID_NOT_LIKE_COLOR")},{UNDELIVERABLE_FAILED_DELIVERY_ATTEMPTS:this.$t("_REFUND_REPORT_UNDELIVERABLE_FAILED_DELIVERY_ATTEMPTS")},{JEWELRY_NO_DOCS:this.$t("_REFUND_REPORT_JEWELRY_NO_DOCS")},{JEWELRY_NO_CERT:this.$t("_REFUND_REPORT_JEWELRY_NO_CERT")}]},REFUND_SUGGESTION:function(){return{1:this.$t("_REFUND_REPORT_REFUND_SUGGEST_1"),2:this.$t("_REFUND_REPORT_REFUND_SUGGEST_2"),3:this.$t("_REFUND_REPORT_REFUND_SUGGEST_3"),4:this.$t("_REFUND_REPORT_REFUND_SUGGEST_4"),5:this.$t("_REFUND_REPORT_REFUND_SUGGEST_5"),6:this.$t("_REFUND_REPORT_REFUND_SUGGEST_6"),7:this.$t("_REFUND_REPORT_REFUND_SUGGEST_7")}},REFUND_SUGGESTIONS:function(){return{1:this.$t("_REFUND_REPORT_REFUND_SUGGEST_1_TIP"),2:this.$t("_REFUND_REPORT_REFUND_SUGGEST_2_TIP"),3:this.$t("_REFUND_REPORT_REFUND_SUGGEST_3_TIP"),4:this.$t("_REFUND_REPORT_REFUND_SUGGEST_4_TIP"),5:this.$t("_REFUND_REPORT_REFUND_SUGGEST_5_TIP"),6:this.$t("_REFUND_REPORT_REFUND_SUGGEST_6_TIP"),7:this.$t("_REFUND_REPORT_REFUND_SUGGEST_7_TIP")}},pieItemNamesReason:function(){var t=this,e=[];return t.REFUND_REASON.forEach((function(a){t.refundReason.filter((function(t){return t.reason===Object.keys(a)[0]})).length>0&&e.push({label:a[Object.keys(a)[0]],value:t.refundReason.filter((function(t){return t.reason===Object.keys(a)[0]}))[0].count})})),e},pieItemNamesSuggestion:function(){var t=this,e=[],a=function(a){t.refundSuggestions.filter((function(t){return t.suggest==Number(a)})).length>0&&e.push({label:t.REFUND_SUGGESTION[Number(a)],tip:t.REFUND_SUGGESTIONS[Number(a)],value:t.refundSuggestions.filter((function(t){return t.suggest==Number(a)}))[0].count})};for(var n in t.REFUND_SUGGESTION)a(n);return e},isSingleYOptions:function(){return[{text:this.$t("_SALES_ANALYSIS_BY_TREND"),value:!1},{text:this.$t("_SALES_ANALYSIS_BY_VALUE"),value:!0}]},dateSelectOptions:function(){return[{text:this.$t("_COMMON_DAY_LABEL"),value:"day"},{text:this.$t("_COMMON_WEEK_LABEL"),value:"week"},{text:this.$t("_COMMON_MONTH_LABEL"),value:"month"}]},timeDiff:function(){var t=this.createZonedMoment(c()(this.rangeDate[0]).format("YYYY-MM-DD")),e=this.createZonedMoment(c()(this.rangeDate[1]).format("YYYY-MM-DD"));return e.diff(t,"days")+1},nowRangeDate:function(){var t=this.getBoundStampOfPickerOption({dateScope:null,dateRange:this.rangeDate});return{startTimestamp:t[0],endTimestamp:t[1]}},lastRangeDate:function(){var t=this.timeDiff||1,e=this.getZeroMomentOf(this.getDaysBeforeMoment(t,this.createZonedMoment(this.rangeDate[0]))),a=this.createZonedMoment(this.getDaysBeforeMoment(1,this.createZonedMoment(c()(this.rangeDate[0]).format("YYYY-MM-DD"))).endOf("day"));return{lastPeriodStart:e,lastPeriodEnd:a}},showSelect:function(){return[{name:"_SALES_ANALYSIS_REFUND_NUM",id:"quantityRefund",value:this.refundTotal.quantityRefund,popValue:this.increaseRate(this.refundTotalLast.quantityRefund,this.refundTotal.quantityRefund)},{name:"_REFUND_REPORT_PURCHASE_NUM",id:"quantity",value:this.refundTotal.quantity,popValue:this.increaseRate(this.refundTotalLast.quantity,this.refundTotal.quantity)},{name:"_SALES_ANALYSIS_REFUND_MONEY_RATE",id:"refundRate",value:this.refundTotal.refundRate?this.refundTotal.refundRate+"%":"-",popValue:this.increaseRate(this.refundTotalLast.refundRate,this.refundTotal.refundRate)},{name:"_SALES_ANALYSIS_REFUND_MONEY",id:"refund",showSym:!0,value:this.refundTotal.refund,popValue:this.increaseRate(this.refundTotalLast.refund,this.refundTotal.refund)},{name:"_SALES_ANALYSIS_REVENUE",id:"principal",showSym:!0,value:this.refundTotal.principal,popValue:this.increaseRate(this.refundTotalLast.principal,this.refundTotal.principal)}]}}),methods:{$initShow:function(){var t;null===(t=this.$refs.guider)||void 0===t||t.$initShow()},createZonedMoment:function(){return this.multiple?s["a"].apply(void 0,arguments):s["b"].apply(void 0,arguments)},getDaysBeforeMoment:function(){return this.multiple?s["m"].apply(void 0,arguments):s["l"].apply(void 0,arguments)},getZeroMomentOf:function(){return this.multiple?s["y"].apply(void 0,arguments):s["x"].apply(void 0,arguments)},getBoundStampOfPickerOption:function(){return this.multiple?s["h"].apply(void 0,arguments):s["e"].apply(void 0,arguments)},exportExcel:function(){},showAlart:function(t,e){3===t.length&&t.indexOf(e.id)<0?this.$store.dispatch("app/updatePop",{title:this.$t("_SALES_ANALYSIS_LIMIT_CHECK_MAX"),icon:"AlertCircleIcon",variant:"warning"}):1===t.length&&t.indexOf(e.id)>-1&&this.$store.dispatch("app/updatePop",{title:this.$t("_SALES_ANALYSIS_LIMIT_CHECK_MIN"),icon:"AlertCircleIcon",variant:"warning"})},increaseRate:function(t,e){var a;return a=t>0?(100*(e/t-1)).toFixed(2):t<0?(100*(1-e/t)).toFixed(2):"-",a},getTotalRefund:function(){var t=this.createZonedMoment(this.rangeDate[0]).format("YYYY-MM-DD"),e=this.createZonedMoment(this.rangeDate[1]).format("YYYY-MM-DD");this.requestShopRefundFn({startDate:t,endDate:e},"refundTotal")},getTotalRefundLast:function(){this.requestShopRefundFn({startDate:this.lastRangeDate.lastPeriodStart.format("YYYY-MM-DD"),endDate:this.lastRangeDate.lastPeriodEnd.format("YYYY-MM-DD")},"refundTotalLast")},requestShopRefundFn:function(t,e){var a=this;1==this.$route.query.isParent?t.parentAsin=this.$route.query.parentAsin:this.$route.query.asin&&(t.asin=this.$route.query.asin),this.baseModel&&(t.dasCurrentShop=a.baseModel.shopId),1==this.$route.query.isSku&&(t.sku=this.$route.query.sku),Object(p["h"])(t).then((function(t){var n=t.status,i=t.content;1==n&&(a[e]=Object.assign({principal:0,quantity:0,nonRecycle:0,pending:0,recycle:0,refundRate:0,refund:0,quantityRefund:0},i))}))},getTotalRefundDays:function(){var t=this,e=this,a={};this.baseModel&&(a.dasCurrentShop=e.baseModel.shopId);var n=this.createZonedMoment(this.rangeDate[0]).format("YYYY-MM-DD"),i=this.createZonedMoment(this.rangeDate[1]).format("YYYY-MM-DD");a.startDate=n,a.endDate=i;var o=Object(s["k"])(this.createZonedMoment(this.rangeDate[0]),this.createZonedMoment(this.rangeDate[1]));1==this.$route.query.isParent?a.parentAsin=this.$route.query.parentAsin:this.$route.query.asin&&(a.asin=this.$route.query.asin),1==this.$route.query.isSku&&(a.sku=this.$route.query.sku),Object(p["i"])(a).then((function(a){var n=a.status,i=a.content;if(1==n){var r=i||[];e.refundDays=[],o.forEach((function(a,n){t.$set(e.refundDays,n,{date:a})})),e.refundDays.forEach((function(t){r.forEach((function(e){e.date===t.date&&(t.principal=e.principal||0,t.quantity=e.quantity||0,t.quantityRefund=e.quantityRefund||0,t.refundRate=e.refundRate||"-",t.refund=e.refund||0)}))}))}}))},getRefundSuggestion:function(){var t=this,e={};this.baseModel&&(e.dasCurrentShop=t.baseModel.shopId),1==this.$route.query.isParent?e.parentAsin=this.$route.query.parentAsin:this.$route.query.asin&&(e.asin=this.$route.query.asin),1==this.$route.query.isSku&&(e.sku=this.$route.query.sku);var a=this.createZonedMoment(this.rangeDate[0]).format("YYYY-MM-DD"),n=this.createZonedMoment(this.rangeDate[1]).format("YYYY-MM-DD");e.startDate=a,e.endDate=n,Object(p["c"])(e).then((function(e){var a=e.status,n=e.content;1===a&&(t.refundSuggestions=n)}))},getRefundReason:function(){var t=this,e={};this.baseModel&&(e.dasCurrentShop=t.baseModel.shopId),1==this.$route.query.isParent?e.parentAsin=this.$route.query.parentAsin:this.$route.query.asin&&(e.asin=this.$route.query.asin),1==this.$route.query.isSku&&(e.sku=this.$route.query.sku);var a=this.createZonedMoment(this.rangeDate[0]).format("YYYY-MM-DD"),n=this.createZonedMoment(this.rangeDate[1]).format("YYYY-MM-DD");e.startDate=a,e.endDate=n,Object(p["d"])(e).then((function(e){var a=e.status,n=e.content;1===a&&(t.refundReason=n)}))},initDebounce:function(){this.getTotalRefund(),this.getTotalRefundDays(),this.getRefundReason(),this.getRefundSuggestion(),this.getTotalRefundLast()}},mounted:function(){this.init()},watch:{rangeDate:"init",CURRENT_SHOP_ID:"init",baseModel:"init"}},v=_,y=(a("1f97"),a("2877")),b=Object(y["a"])(v,n,i,!1,null,null,null);e["a"]=b.exports},f4a2:function(t,e,a){"use strict";a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return l}));var n=a("9850"),i=a("c526"),o=a("2306");function r(t){return t=c(t),function(e){return o["clipPointsByRect"](e,t)}}function s(t,e){return t=c(t),function(a){var n=null!=e?e:a,i=n?t.width:t.height,o=n?t.x:t.y;return[o,o+(i||0)]}}function l(t,e,a){var n=c(t);return function(t,o){return n.contain(o[0],o[1])&&!Object(i["a"])(t,e,a)}}function c(t){return n["a"].create(t)}},f581:function(t,e,a){"use strict";a("944a")},f6d0:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.noData?a("span",{staticStyle:{color:"#999"}},[t._v(t._s(t.$t("aba_no_data")))]):a("app-echart-line-custom",{key:t.echartKey,attrs:{noCenterLine:"",optionData:t.optionData,extraSeries:{animation:!1},height:t.height}})],1)},i=[],o=(a("a9e3"),a("d3b7"),a("25f0"),a("d81d"),a("99af"),a("b0c0"),a("bb87")),r=a("33d8"),s=(a("6ddf"),{name:"lineChart",components:{AppEchartLineCustom:o["a"]},props:{list:{type:Array,default:function(){return[]}},height:{type:Number,default:80},status:{type:String,default:function(){return""}}},watch:{list:{deep:!0,handler:function(t,e){this.echartKey=Math.random().toString(16).substring(2,6)}}},data:function(){return{echartKey:Math.random().toString(16).substring(2,6)}},computed:{noData:function(){return"INADEQUATE"==(null===this||void 0===this?void 0:this.status)},optionData:function(){var t=this;return{grid:{top:5,left:0,right:0,bottom:5,width:130},xAxis:{type:"category",show:!1,boundaryGap:!0,data:this.list.map((function(t){return t.s}))},yAxis:{type:"value",show:!1},series:[{name:this.$t("_KEYWORD_POPULARITY_KEYWORD_POPULARITY_ROW_TITLE"),type:"line",lineStyle:{color:"#5759F2"},itemStyle:{color:"#5759F2"},symbol:"emptyCircle",symbolSize:4,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#5759F2"},{offset:1,color:"#fff"}],global:!1}},data:this.list.map((function(t){return t.v}))}],tooltip:{trigger:"axis",renderMode:"html",appendToBody:!0,extraCssText:"z-index: 9999",formatter:function(e){var a=e.reduce((function(e,a){return e+" <div>".concat(a.seriesName+t.$t("_COMMON_SYMBOL_COLON")+Object(r["b"])("",a.value),"</div>")}),"");return'<div style="padding: 12px;background: #35383C;color:#fff;border-radius:4px;">\n              <div style="margin-bottom:8px">'.concat(e[0].name,"</div>").concat(a,"</div>")}}}}},methods:{}}),l=s,c=a("2877"),u=Object(c["a"])(l,n,i,!1,null,null,null);e["a"]=u.exports},f765:function(t,e,a){"use strict";a("6216")},f8f0:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-simple-slipper",style:{maxWidth:t.maxWidth?t.maxWidth+"px":"100%"}},[t.hiddenScroll?t._e():a("div",{staticClass:"c-s-s-array c-s-s-array--left",class:{"c-s-s-array--disabled":t.leftArrayDisabled},on:{click:function(e){return t.handleClickArrow("left")}}},[a("feather-icon",{attrs:{icon:"ChevronLeftIcon",size:"16"}})],1),a("div",{ref:"main",staticClass:"c-s-s-wrapper"},[a("div",{staticClass:"c-s-s-tabs"},t._l(t.tabs,(function(e,n){return a("div",{key:n,ref:"tab"+n,refInFor:!0,staticClass:"c-s-s-tab",class:{"c-s-s-tab--active":t.currentTabKey==e.key},on:{click:function(a){return t.handleChangeTabSimple(e.key)}}},[t._v(" "+t._s(t.$t(e.labelLok))+" ")])})),0)]),t.hiddenScroll?t._e():a("div",{staticClass:"c-s-s-array c-s-s-array--right",class:{"c-s-s-array--disabled":t.rightArrayDisabled},on:{click:function(e){return t.handleClickArrow("right")}}},[a("feather-icon",{attrs:{icon:"ChevronRightIcon",size:"16"}})],1)])},i=[],o=(a("c740"),a("2ef0"),{name:"CommonSimpleSlipper",props:{hiddenScroll:{type:Boolean,default:function(){return!1}},maxWidth:{},defaultCurrentTab:{},tabs:{default:function(){return[]}}},data:function(){return{currentLeft:0,leftArrayDisabled:!0,rightArrayDisabled:!1,currentTabKey:""}},components:{},mounted:function(){this.defaultCurrentTab?this.handleChangeTabSimple(this.defaultCurrentTab,!0):this.tabs.length>0&&this.handleChangeTabSimple(this.tabs[0].key,!0),this.checkArrow()},methods:{handleEmpty:function(){},handleClickArrow:function(t){var e=this.$refs.main,a=e.scrollLeft,n=e.clientWidth;e.scrollLeft="left"==t?a-n:a+n,this.checkArrow()},checkArrow:function(){var t=this.$refs.main,e=t.scrollLeft,a=t.clientWidth,n=t.scrollWidth;this.leftArrayDisabled=e<=0,this.rightArrayDisabled=e>=n-a},handleChangeTabSimple:function(t,e){if(this.currentTabKey!==t||e){this.currentTabKey=t,e||this.$emit("tabChange",t);var a=this.tabs.findIndex((function(e){return e.key===t})),n="tab".concat(a),i=this,o=i.$refs[n],r=o&&o.length>0?o[0]:o;r&&(r.scrollIntoView(!0),i.checkArrow())}}},watch:{defaultCurrentTab:function(t,e){t!==e&&e&&this.handleChangeTabSimple(t,!0)},"$i18n.locale":function(){var t=this;setTimeout((function(){t.handleChangeTabSimple(t.currentTabKey,!0)}),200)}}}),r=o,s=(a("fd4c"),a("2877")),l=Object(s["a"])(r,n,i,!1,null,null,null);e["a"]=l.exports},f931:function(t,e,a){},f98d:function(t,e,a){"use strict";a.d(e,"h",(function(){return c})),a.d(e,"i",(function(){return u})),a.d(e,"j",(function(){return d})),a.d(e,"g",(function(){return h})),a.d(e,"f",(function(){return p})),a.d(e,"e",(function(){return f})),a.d(e,"d",(function(){return m})),a.d(e,"c",(function(){return g})),a.d(e,"a",(function(){return _})),a.d(e,"b",(function(){return v}));var n=a("5530"),i=(a("ac1f"),a("1276"),a("7f80")),o=a("b1b6"),r=a("6365"),s="https://das-server.tool4seller.com",l=r["a"].locale,c=function(t){return Object(i["e"])("".concat(s,"/refundReport/shop"),t)},u=function(t){return Object(i["e"])("".concat(s,"/refundReport/shop/days"),t)},d=function(t){return Object(i["e"])("".concat(s,"/refundReport/sku"),t)},h=function(t){return Object(i["e"])("".concat(s,"/refundReport/detail"),t)},p=function(t){return Object(i["e"])("".concat(s,"/refundReport/parentAsin"),t)},f=function(t){return Object(i["e"])("".concat(s,"/refundReport/asin"),t)},m=function(t){return Object(i["e"])("".concat(s,"/refundReport/reason"),t)},g=function(t){return Object(i["e"])("".concat(s,"/refundReport/suggest"),t)},_=function(t){var e=Object(n["a"])(Object(n["a"])(Object(n["a"])({},t),{token:localStorage.getItem("token").split(" ")[1]}),{},{displayLanguage:l});return window.location.href="".concat(s,"/refundReport/downReport")+Object(o["a"])(e)},v=function(t){var e=Object(n["a"])(Object(n["a"])(Object(n["a"])({},t),{token:localStorage.getItem("token").split(" ")[1]}),{},{displayLanguage:l});return Object(i["e"])("".concat(s,"/refundReport/detail/download"),e)}},fa83:function(t,e,a){"use strict";var n=a("5530"),i=a("b85c"),o=a("1da1"),r=a("ade3"),s=(a("96cf"),a("b680"),a("a9e3"),a("99af"),a("caad"),a("4de4"),a("d3b7"),a("2532"),a("ac1f"),a("5319"),a("159b"),a("07ac"),a("d81d"),a("c740"),a("a15b"),a("1276"),a("d80f")),l=a("1f98"),c=a("6ddf"),u=a("c1df"),d=a.n(u),h=a("9319"),p=a("708d"),f=a("a7c5"),m=a("8f04"),g=a("a620"),_={NORMAL:"NORMAL",LOADING:"LOADING",STOP:"STOP",ALL:""},v={ALL:"",ON:"ON",OFF:"OFF"},y={ALL:"",LOW:"LOW",HIGH:"HIGH"},b={ALL:"",SOLDOUT:"SOLDOUT",NORMAL:"NORMAL"};e["a"]={components:{productInfoTableColumn:f["a"],DragDetailChart:m["a"]},data:function(){return{moment:d.a,MARKETPLACE_STATIC_INFO:s["C"],modalVisible:!1,editAssociatedAsinsItem:{},curEditItem:{},remarkItem:{},aiTransDebounce:Object(p["a"])(this.aiTransFn,200),openTransObj:{},configs:{asinList:[],notificationStatus:v.ON,config:{price:0,coupon:0,soldout:0}},dragItem:null,showDragDetail:!1,selectBlock:[]}},computed:Object(r["a"])({baseParams:function(){return{config:{monthlySold:1,listPrice:1,price:1,buyboxSeller:1,reviewNum:0,rating:1,title:1,image:1,feature:1,variationNum:1,soldout:1,coupon:1,boughtTogether:1,deal:1,promotion:1,fbaFee:1,packageSize:1,productWeight:1},notificationStatus:"ON",frequent:"LOW"}},siteSort:function(){return[s["B"],s["n"],s["u"],s["t"],s["A"],s["o"],s["q"],s["s"],s["p"],s["r"]]},showPopover:function(){return this.isAddTracker&&!localStorage.getItem("trackerTipsPopover")},chartBlocks:function(){return[{key:"monthlySoldHistory",labelLok:this.$t("ae_parameter_month_sales")},{key:"listPriceHistory",labelLok:this.$t("global_asin_price")},{key:"categorySaleRanks",labelLok:this.$t("global_asinDetail_field_rank")},{key:"historyStars",labelLok:this.$t("global_asin_rate")+"&"+this.$t("ae_rating_count")}]},IS_LANG_ZH:function(){return"zh-CN"===this.$i18n.locale},IS_LANG_JP:function(){return"ja_jp"===this.$i18n.locale},IS_LANG_EN:function(){return"en"===this.$i18n.locale},IS_LANG_FR:function(){return"fr_fr"===this.$i18n.locale},pauseList:function(){return[{label:this.$t("global_all"),value:y.ALL},{label:this.$t("global_offSelf"),value:b.SOLDOUT},{label:this.$t("_AMZ_PRODUCT_MANAGE_STATUS_OPTION1"),value:b.NORMAL}]},statusList:function(){return[{label:this.$t("global_all"),value:v.ALL},{label:this.$t("global_apppush_on"),value:v.ON},{label:this.$t("global_apppush_off"),value:v.OFF}]},typeList:function(){return[{label:this.$t("global_all"),value:y.ALL},{label:this.$t("asintrack_list_title3"),value:y.LOW},{label:this.$t("asintrack_list_title4"),value:y.HIGH}]},lokaliseKeys:function(){return{monthlySold:this.$t("ae_parameter_month_sales"),listPrice:this.$t("global_listing_price"),title:this.$t("global_trackDetail_operateIndex_title"),image:this.$t("global_trackDetail_operateIndex_picture"),rating:this.$t("global_trackDetail_operateIndex_rate"),reviewNum:this.$t("ae_rating_count"),feature:this.$t("app_asinFeature"),variationNum:this.$t("global_trackDetail_operateIndex_version"),soldout:this.$t("global_asinDetail_field_offShelf"),coupon:this.$t("global_asin_track_type_coupons"),boughtTogether:this.$t("global_trackDetail_operateIndex_similarBuy"),price:this.$t("global_trackDetail_operateIndex_buybox"),buyboxSeller:this.$t("global_trackDetail_operateIndex_buyboxOwner"),searchTerm:this.$t("search Term"),lightDeal:this.$t("global_trackDetail_operateIndex_LD"),promotion:this.$t("global_trackDetail_operateIndex_promotions"),fbaFee:this.$t("ae_fba_fee"),packageSize:this.$t("ae_parameter_package_dimensions"),productWeight:this.$t("global_asinDetail_field_ProductWeight")}}},"showPopover",(function(){return this.isAddTracker&&!localStorage.getItem("trackerTipsPopover")})),filters:{toCreateZonedMoment:function(t){return Object(c["b"])(t).format("YYYY-MM-DD")},moment:function(t){return d()(t).format("YYYY-MM-DD")},thousandUnit:function(t){return t>=1e3?t/1e3+"K+":t+"+"}},methods:{convertInchesToCm:function(t){if(this.IS_LANG_EN)return t.toFixed(2);var e=2.54;return(e*t).toFixed(1)},convertPoundsToKg:function(t){var e=t?Number(t):t;if(this.IS_LANG_EN)return e.toFixed(2);var a=.45359236996889;return(a*e).toFixed(2)},actionTop:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=null!==t&&void 0!==t&&t.top?l["y"]:l["x"],a.next=3,n({marketplaceId:t.marketplaceId,asin:t.asin});case 3:i=a.sent,1==i.status&&(e.$refresh(),e.$store.dispatch("app/updatePop",{title:i.content,icon:"EditIcon",variant:"success"}));case 5:case"end":return a.stop()}}),a)})))()},resetSelectFn:function(){this.$refs.commonTableEle.$clearChecklist()},customSelection:function(t){var e=t.length;return e>2?"+".concat(e-1):t[0]},priceTooltipChange:function(t,e){var a,n,i,o,r,l,c,u,h;return(null===(a=t[e])||void 0===a?void 0:a.length)>=2&&t[e][0].price>0&&t[e][1].price>0?this.$t("asin_tracker_metric_tip_change_from_to",{date:d()(t[e][1].timestamp).format("YYYY-MM-DD"),metric:this.$t("ae_buybox_price"),value1:this.$options.filters.currency_descriptor(t[e][0].price,s["C"][t.marketplaceId].currencySymbol),value2:this.$options.filters.currency_descriptor(t[e][1].price,s["C"][t.marketplaceId].currencySymbol)}):((null===(n=t[e])||void 0===n||null===(i=n[1])||void 0===i?void 0:i.price)>0?d()(null===(o=t[e])||void 0===o||null===(r=o[1])||void 0===r?void 0:r.timestamp).format("YYYY-MM-DD"):d()(null===(l=t[e])||void 0===l||null===(c=l[0])||void 0===c?void 0:c.timestamp).format("YYYY-MM-DD"))+", "+this.$t("ae_buybox_price")+this.$t("_COMMON_SYMBOL_COLON")+this.$options.filters.currency_descriptor((null===(u=t[e])||void 0===u||null===(h=u[1])||void 0===h?void 0:h.price)>0?t[e][1].price:t[e][0].price,s["C"][t.marketplaceId].currencySymbol)},historyStarsTooltipChange:function(t,e){var a,n,i,o,r,s,l,c,u;return(null===(a=t[e])||void 0===a?void 0:a.length)>=2&&t[e][0].rating>0&&t[e][1].rating>0&&t[e][0].rating!=t[e][1].rating?this.$t("asin_tracker_metric_tip_change_from_to",{date:d()(t[e][1].timestamp).format("YYYY-MM-DD"),metric:this.lokaliseKeys["rating"],value1:t[e][0].rating,value2:t[e][1].rating}):((null===(n=t[e])||void 0===n||null===(i=n[1])||void 0===i?void 0:i.rating)>0?d()(null===(o=t[e])||void 0===o||null===(r=o[1])||void 0===r?void 0:r.timestamp).format("YYYY-MM-DD"):d()(null===(s=t[e])||void 0===s||null===(l=s[0])||void 0===l?void 0:l.timestamp).format("YYYY-MM-DD"))+", "+this.lokaliseKeys["rating"]+this.$t("_COMMON_SYMBOL_COLON")+((null===(c=t[e])||void 0===c||null===(u=c[1])||void 0===u?void 0:u.rating)>0?t[e][1].rating:t[e][0].rating)},historyReviewsTooltipChange:function(t,e){var a,n,i,o,r,s,l,c,u;return(null===(a=t[e])||void 0===a?void 0:a.length)>=2&&t[e][0].count>0&&t[e][1].count>0&&t[e][0].count!=t[e][1].count?this.$t("asin_tracker_metric_tip_change_value",{date:d()(t[e][1].timestamp).format("YYYY-MM-DD"),metric:this.$t("ae_rating_count"),change:(t[e][1].count-t[e][0].count>0?"+":"")+(t[e][1].count-t[e][0].count)}):((null===(n=t[e])||void 0===n||null===(i=n[1])||void 0===i?void 0:i.count)>0?d()(null===(o=t[e])||void 0===o||null===(r=o[1])||void 0===r?void 0:r.timestamp).format("YYYY-MM-DD"):d()(null===(s=t[e])||void 0===s||null===(l=s[0])||void 0===l?void 0:l.timestamp).format("YYYY-MM-DD"))+", "+this.$t("ae_rating_count")+this.$t("_COMMON_SYMBOL_COLON")+((null===(c=t[e])||void 0===c||null===(u=c[1])||void 0===u?void 0:u.count)>0?t[e][1].count:t[e][0].count)},getNowData:function(t,e,a){var n,i,o,r;return(null===(n=t[e])||void 0===n||null===(i=n[1])||void 0===i?void 0:i[a])||(null===(o=t[e])||void 0===o||null===(r=o[0])||void 0===r?void 0:r[a])},mainCategory:function(t,e){var a,n,i,o;return this.$t("asin_tracker_metric_tip_category_rank",{rank1:(null===(a=t.categorySaleRanks[e])||void 0===a||null===(n=a.saleRanks[1])||void 0===n?void 0:n.rank)||"-",rank2:(null===(i=t.categorySaleRanks[e])||void 0===i||null===(o=i.saleRanks[0])||void 0===o?void 0:o.rank)||"-"})},handleBlockChange:function(t){Array.isArray(t)?this.selectBlock=t:this.selectBlock=[t]},toShowDragDetail:function(t,e){this.dragItem=t,this.selectBlock=[e],this.showDragDetail=!0},rowClickedFn:function(t,e){t&&this.handleJump(t)},thousandUnit:function(t){return t>=1e3?t/1e3+"K+":t+"+"},createZonedMoment:function(){return c["b"].apply(void 0,arguments)},getDateRange:function(t){var e=this.createZonedMoment(t).subtract(5,"days").format("YYYY-MM-DD"),a=this.createZonedMoment(t).subtract(35,"days").format("YYYY-MM-DD");return a+" ~ "+e},getCoupon:function(t){if(null===t||void 0===t||!t.length)return this.$t("global_apppush_type_price_novalue");var e=t?JSON.parse(t):[],a=Math.max(e[0],e[1]),n=Math.min(e[0],e[1]);return a||n?a>0&&n<0?this.$t("web_asinTrack_type_coupons",{a:Math.abs(n)})+"% + "+this.$t("web_asinTrack_type_coupons",{a:this.$options.filters["currency_descriptor"](parseFloat(a/100).toFixed(2),this.currencySymbol)}):a>0?this.$t("web_asinTrack_type_coupons",{a:this.$options.filters["currency_descriptor"](parseFloat(a/100).toFixed(2),this.currencySymbol)}):n<0?this.$t("web_asinTrack_type_coupons",{a:Math.abs(n)})+"%":void 0:this.$t("global_apppush_type_price_novalue")},getONOFF:function(t){return"1"==t?this.$t("global_apppush_type_offShelf_on"):this.$t("global_apppush_type_offShelf_off")},getPromotion:function(t){return this.$t("0"==t?"global_apppush_type_price_novalue":"global_asintrack_detail_history_bePromotion")},formatTime:function(t,e){var a=this.$options.filters["marketplaceToTimeZone"](this.siteList[this.siteTab]);return t&&a?d.a.tz(d()(t),a).format(e||"HH:mm"):"--"},getIsLD:function(t){return"lightDeal"==(null===t||void 0===t?void 0:t.type)&&!t.from&&t.to?this.$t("web_asintrack_detail_history_LDbegin"):"-"},getLightDeal:function(t){if(t.to){var e=JSON.parse(t.to);return"<div class='m-b-4'>".concat(this.$t("web_asintrack_detail_history_LDbegin"),"</div> <div class='m-b-4'>").concat(this.$t("asin_tracker_deal_date"),":  ").concat(this.formatTime(e.startTimestamp,"YYYY-MM-DD HH:mm")," ~  ").concat(this.formatTime(e.endTimestamp,"YYYY-MM-DD HH:mm"),"</div> ").concat(this.$t("asin_tracker_deal_price"),": ").concat(this.$options.filters.currency_descriptor(e.lightDealPrice,s["C"][t.marketplaceId].currencySymbol))}return this.$t("global_apppush_type_price_novalue")},formatLatestChange:function(t){var e=this.lokaliseKeys;return t||t.type?"fbaFee"==t.type?this.$t("asin_tracker_change_from_to",{metric:e[t.type],num1:this.$options.filters.currency_descriptor(t.marketplaceId!=s["t"]?parseInt(t.from)/100:t.from,s["C"][t.marketplaceId].currencySymbol),num2:this.$options.filters.currency_descriptor(t.marketplaceId!=s["t"]?parseInt(t.to)/100:t.to,s["C"][t.marketplaceId].currencySymbol)}):["price","listPrice","rating"].includes(t.type)?"price"==t.type||"listPrice"==t.type?this.$t("asin_tracker_change_from_to",{metric:e[t.type],num1:this.$options.filters.currency_descriptor(t.marketplaceId==s["t"]?parseInt(t.from):t.from,s["C"][t.marketplaceId].currencySymbol),num2:this.$options.filters.currency_descriptor(t.marketplaceId==s["t"]?parseInt(t.to):t.to,s["C"][t.marketplaceId].currencySymbol)}):this.$t("asin_tracker_change_from_to",{metric:e[t.type],num1:t.from,num2:t.to}):"buyboxSeller"==t.type?this.$t("asin_tracker_change_from_to",{metric:e[t.type],num1:JSON.parse(t.from).sellerName,num2:JSON.parse(t.to).sellerName}):"monthlySold"==t.type?this.$t("asin_tracker_change_from_to",{metric:e[t.type],num1:this.thousandUnit(JSON.parse(t.from).count),num2:this.thousandUnit(JSON.parse(t.to).count)}):"variationNum"==t.type?this.$t("asin_tracker_change_from_to",{metric:e[t.type],num1:JSON.parse(t.from).length,num2:JSON.parse(t.to).length}):"reviewNum"==t.type?this.$t("ae_rating_count")+(t.to-t.from>0?"+":"")+(t.to-t.from):["searchTerm","title","feature"].includes(t.type)?e[t.type]+" "+this.$t("global_apppush_type_textchange"):"coupon"==t.type?this.getCoupon(t.from)+"->"+this.getCoupon(t.to):"soldout"==t.type?this.getONOFF(t.from)+"->"+this.getONOFF(t.to):"lightDeal"==t.type?this.getIsLD(t):"promotion"==t.type?this.getPromotion(t.from)+"->"+this.getPromotion(t.to):this.$t("asin_tracker_metric_changed",{metric:e[t.type]}):this.$t("global_nodata")},diffTime:function(t,e){var a=this.createZonedMoment(e).diff(this.createZonedMoment(t),"year"),n=this.createZonedMoment(e).diff(this.createZonedMoment(t),"month")-12*a,i=this.createZonedMoment(t).add(n+12*a,"month").format("YYYY-MM-DD"),o=this.createZonedMoment(e).diff(i,"day"),r="en"===this.$i18n.locale?",":" ";return(a?this.$t("_PACKAGE_DESCRIPTOR_YEARS",{num:a+" "}):"")+(n?r+this.$t("_PACKAGE_MODULE_LIST_RECENT_MONTHS",{months:n+" "}):"")+(o?r+this.$t("_ACCOUNT_HEALTH_LABEL_DATE_DAYS",{days:o}):"")},getSites:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(l["m"])();case 2:if(a=e.sent,1!=a.status){e.next=7;break}return t.siteList=t.siteSort.filter((function(t){var e;return null===(e=a.content)||void 0===e?void 0:e.marketplaceIds.includes(t)}))||[],null!==(n=a.content)&&void 0!==n&&null!==(i=n.marketplaceIds)&&void 0!==i&&i.length||(t.canGetList=!0),e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e)})))()},getMarketplace:function(t){return MwsAuthService.getMarketplace(t)},formatterBoxPrice:function(t){var e,a,n,i,o,r,l=(null===(e=t.buyBoxShippingPriceHistory)||void 0===e||null===(a=e[1])||void 0===a?void 0:a.price)>0?null===(n=t.buyBoxShippingPriceHistory)||void 0===n||null===(i=n[1])||void 0===i?void 0:i.price:null===(o=t.buyBoxShippingPriceHistory)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.price;if("number"!==typeof l)return"-";var c=s["C"][t.marketplaceId],u=l?this.$options.filters["thousand"](l):0;return((null===c||void 0===c?void 0:c.currencySymbol)||"")+u},handleJumpHelp:function(){var t=this.$t("help_com_doc_key_competitive_analysis");window.open(t)},handleJumpSearch:function(){this.$emit("changeToSearch")},handleCopy:function(t){var e=this;this.$copyText(t).then((function(){e.$store.dispatch("app/updatePop",{title:e.$t("global_copy_success"),icon:"CopyIcon",variant:"success"})}))},getCurLang:function(){return LOCALE_LANG},getRealImg:function(t){return"".replace.call(t,/{size}/,75)},handleJumpShowSider:function(t){var e=t.marketplaceId,a=t.asin,n=t.latestChange;this.$router.push({path:"/competitive_analysis/tracker/detail/".concat(e,"_").concat(a),query:{pageTitle:encodeURIComponent(a),marketplaceId:e,asin:a,showSider:!0,date:n.updatedAt}})},handleJump:function(t){var e=t.marketplaceId,a=t.asin;this.$router.push({path:"/competitive_analysis/tracker/detail/".concat(e,"_").concat(a),query:{pageTitle:encodeURIComponent(a),marketplaceId:e,asin:a}})},changeModalVisible:function(t,e){this.modalVisible=!!t,this.chosenSelected=e&&t?[e]:this.selected},handleModalOk:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,o,r,s,c,u,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.modalVisible=!1,t.chosenSelected.length){e.next=3;break}return e.abrupt("return");case 3:a=t.resList.filter((function(e){var a="".concat(e.asin);return!![].includes.call(t.chosenSelected,a)})),n={asinList:[]},o=Object(i["a"])(a);try{for(o.s();!(r=o.n()).done;)s=r.value,n.asinList.push({marketplaceId:s.marketplaceId,asin:s.asin})}catch(h){o.e(h)}finally{o.f()}return e.next=9,Object(l["w"])(n);case 9:c=e.sent,u=c.status,d=c.content,1===u?t.$store.dispatch("app/updatePop",{title:d,icon:"EditIcon",variant:"success"}):t.$store.dispatch("app/updatePop",{title:d,icon:"EditIcon",variant:"danger"}),t.$refs.commonTableEle.$clearChecklist(),t.$refs.commonTableEle.getList(),g["a"].$emit("updateCount");case 16:case"end":return e.stop()}}),e)})))()},$refresh:function(){this.$refs.commonTableEle.$clearChecklist(),this.$refs.commonTableEle.getList()},handleModalHidden:function(){this.modalVisible=!1,this.chosenSelected=[]},updateList:function(t){var e;this.resList=(null===t||void 0===t||null===(e=t.content)||void 0===e?void 0:e.result)||[],this.aiTransDebounce(t),this.loadingDisabled=!1},aiTransFn:function(t){var e,a,n=this,i=[],o=null===t||void 0===t||null===(e=t.content)||void 0===e?void 0:e.result;null===o||void 0===o||o.forEach((function(t){try{Object.values(null===t||void 0===t?void 0:t.categoryMappings).forEach((function(t){try{i=i.concat(Object.values(t))}catch(e){console.warn(e)}}))}catch(e){console.warn(e)}})),i.length&&Object(h["d"])({marketplaceId:null===(a=o[0])||void 0===a?void 0:a.marketplaceId,keywords:i}).then((function(t){1===t.status&&t.content&&(n.openTransObj=t.content)}))},openSetting:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){var n=[];n.push({marketplaceId:t.marketplaceId,asin:t.asin});var o={};a&&(o={asins:[t.asin],marketplaceId:t.marketplaceId}),this.configs={asinList:n,frequent:a?null:t.frequent,notificationStatus:t.notificationStatus||v.OFF,config:t.config?JSON.parse(t.config):{price:0,coupon:0,soldout:0},isRecover:a,otherParams:o}}else{if(0===this.selected.length)return;var r,s=this.resList.filter((function(t){var a="".concat(t.asin);return!![].includes.call(e.selected,a)})),l=[],c=0,u=0,d=Object(i["a"])(s);try{for(d.s();!(r=d.n()).done;){var h=r.value;l.push({marketplaceId:h.marketplaceId,asin:h.asin}),h.frequent===y.LOW?u++:h.frequent===y.HIGH&&c++}}catch(p){d.e(p)}finally{d.f()}this.configs={asinList:l,notificationStatus:v.OFF,config:{price:0,coupon:0,soldout:0},highNumber:c,lowNumber:u,number:l.length}}this.$refs["appsettings-modal"].show()},handleSelectedChange:function(t){var e=t.map((function(t){return"".concat(t.marketplaceId,"#").concat(t.asin)}));this.selected=e},getSiteCode:function(t){var e=SITE_LIST.filter((function(e){return e.marketplaceId===t}));return e.length?e[0].code:"all"},handleSearch:function(){this.$refs.commonTableEle.getList()},handleSiteChange:function(t){var e=this;this.currentSite=t,setTimeout((function(){e.$refs.commonTableEle.getList()}),20)},handleStatusChange:function(t){var e=this;this.searchStatus=t,setTimeout((function(){e.$refs.commonTableEle.getList()}),20)},$init:function(){var t,e=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.searchVal="",this.searchStatus=_.ALL,this.currentSite={code:"all",transCode:"_COMMON_SELECTOR_ALL"},null===(t=this.$refs.siteSelector)||void 0===t||t.$init("all"),a&&(this.notRequest=1),this.$nextTick((function(){setTimeout(Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=6;break}return t.next=3,e.getSites();case 3:e.$nextTick((function(){var t=e.siteList.findIndex((function(t){return t==a}));setTimeout(Object(o["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:e.siteTab=t,t==e.siteTab&&(e.notRequest=0,e.$refresh());case 2:case"end":return a.stop()}}),a)}))),500)})),t.next=8;break;case 6:e.notRequest=0,e.$refresh();case 8:case"end":return t.stop()}}),t)}))),0)}))},getbsrPath:function(t,e){var a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var i,o,r,s,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a.categories=null,i={marketplaceId:t,catId:e},n.prev=2,o=a.otherCategories.get(t+"_"+e),!o){n.next=8;break}a.categories=o,n.next=15;break;case 8:return a.bsrLoading=!0,n.next=11,Object(l["f"])(i);case 11:r=n.sent,s=r.status,c=r.content,1===s&&(a.categories=c.categories.join(">"),a.otherCategories.set(t+"_"+e,c.categories.join(">")));case 15:n.next=20;break;case 17:n.prev=17,n.t0=n["catch"](2),console.warn(n.t0);case 20:return n.prev=20,a.bsrLoading&&(a.bsrLoading=!1),n.finish(20);case 23:case"end":return n.stop()}}),n,null,[[2,17,20,23]])})))()},closePopover:function(){"show"!==this.noNotice&&localStorage.setItem("trackerTipsPopover",1),this.$emit("update:isAddTracker",!1)},showManageFn:function(t){this.showGroupManageModal=!0},showSelectProFn:function(t){var e;this.editAssociatedAsinsItem=Object(n["a"])(Object(n["a"])({},t),{},{associatedAsins:(null===(e=t.associatedAsins)||void 0===e?void 0:e.split(","))||[]}),this.showSelectPro=!0},freshFn:function(){},closeFn:function(){},toEditGroup:function(t){this.curEditItem=Object(n["a"])(Object(n["a"])({},t),{},{groupIds:t.groupIdList||[]}),this.showGroupSettingModal=!0},toEditRemark:function(t){this.remarkItem=Object(n["a"])({},t),this.showRemark=!0},handleSelectProduct:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={associatedAsins:null===(a=t.editAssociatedAsinsItem.associatedAsins)||void 0===a?void 0:a.join(),asin:t.editAssociatedAsinsItem.asin,marketplaceId:t.editAssociatedAsinsItem.marketplaceId},e.next=3,Object(l["a"])(n);case 3:i=e.sent,1==i.status&&(t.showSelectPro=!1,t.$refs.commonTableEle.getList(),t.$store.dispatch("app/updatePop",{title:i.content,icon:"bell",variant:"success"}));case 5:case"end":return e.stop()}}),e)})))()}}}},fc23:function(t,e,a){"use strict";a.d(e,"g",(function(){return i})),a.d(e,"f",(function(){return o})),a.d(e,"k",(function(){return r})),a.d(e,"a",(function(){return s})),a.d(e,"j",(function(){return l})),a.d(e,"e",(function(){return c})),a.d(e,"h",(function(){return u})),a.d(e,"i",(function(){return d})),a.d(e,"d",(function(){return h})),a.d(e,"c",(function(){return p})),a.d(e,"b",(function(){return f}));a("db49");var n=a("7f80"),i=function(t){return Object(n["e"])("/category/insight/page/v2",t)},o=function(t){return Object(n["e"])("/category/insight/watch/page/v2",t)},r=function(t){return Object(n["e"])("/category/insight/watch/count",t)},s=function(t){return Object(n["f"])("/category/insight/watch",t)},l=function(t){return Object(n["d"])("/category/insight/watch",t)},c=function(t){return Object(n["e"])("/category/insight/category",t)},u=function(t){return Object(n["e"])("/category/insight/product-type",t)},d=function(t){return Object(n["e"])("/category/insight/watch/marketplace",t)},h=function(t){return Object(n["e"])("/category/insight",t)},p=function(t){return Object(n["e"])("/category/insight/detail",t)},f=function(t){return Object(n["e"])("/category/insight/asin/category",t)}},fc82:function(t,e,a){"use strict";var n=a("7fae"),i=a("6d8b"),o=a("6fd3"),r=a("2dc5"),s=a("c7a2"),l=a("2306"),c=a("d498"),u=a("87b1"),d=a("a4fe"),h=a("80f0"),p=!0,f=Math.min,m=Math.max,g=Math.pow,_=1e4,v=6,y=6,b="globalPan",S={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},O={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},T={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},A=0,x=function(t){function e(e){var a=t.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=e,a.group=new r["a"],a._uid="brushController_"+A++,Object(i["k"])(nt,(function(t,e){this._handlers[e]=Object(i["c"])(t,this)}),a),a}return Object(n["a"])(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||d["c"](e,b,this._uid),Object(i["k"])(this._handlers,(function(t,a){e.on(a,t)})),this._brushType=t.brushType,this._brushOption=Object(i["I"])(Object(i["d"])(T),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;d["b"](t,b,this._uid),Object(i["k"])(this._handlers,(function(e,a){t.off(a,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(i["k"])(t,(function(t){e[t.panelId]=Object(i["d"])(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(i["H"])(t,(function(t){return Object(i["I"])(Object(i["d"])(T),t,!0)}));var e="\0-brush-index-",a=this._covers,n=this._covers=[],o=this,r=this._creatingCover;return new h["a"](a,t,l,s).add(c).update(c).remove(u).execute(),this;function s(t,a){return(null!=t.id?t.id:e+a)+"-"+t.brushType}function l(t,e){return s(t.__brushOption,e)}function c(e,i){var s=t[e];if(null!=i&&a[i]===r)n[e]=a[i];else{var l=n[e]=null!=i?(a[i].__brushOption=s,a[i]):E(o,C(o,s));k(o,l)}}function u(t){a[t]!==r&&o.group.remove(a[t])}},e.prototype.unmount=function(){return this.enableBrush(!1),R(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(o["a"]);function C(t,e){var a=rt[e.brushType].createCover(t,e);return a.__brushOption=e,M(a,e),t.group.add(a),a}function E(t,e){var a=I(e);return a.endCreating&&(a.endCreating(t,e),M(e,e.__brushOption)),e}function w(t,e){var a=e.__brushOption;I(e).updateCoverShape(t,e,a.range,a)}function M(t,e){var a=e.z;null==a&&(a=_),t.traverse((function(t){t.z=a,t.z2=a}))}function k(t,e){I(e).updateCommon(t,e),w(t,e)}function I(t){return rt[t.__brushOption.brushType]}function D(t,e,a){var n,o=t._panels;if(!o)return p;var r=t._transform;return Object(i["k"])(o,(function(t){t.isTargetByCursor(e,a,r)&&(n=t)})),n}function L(t,e){var a=t._panels;if(!a)return p;var n=e.__brushOption.panelId;return null!=n?a[n]:p}function R(t){var e=t._covers,a=e.length;return Object(i["k"])(e,(function(e){t.group.remove(e)}),t),e.length=0,!!a}function N(t,e){var a=Object(i["H"])(t._covers,(function(t){var e=t.__brushOption,a=Object(i["d"])(e.range);return{brushType:e.brushType,panelId:e.panelId,range:a}}));t.trigger("brush",{areas:a,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function P(t){var e=t._track;if(!e.length)return!1;var a=e[e.length-1],n=e[0],i=a[0]-n[0],o=a[1]-n[1],r=g(i*i+o*o,.5);return r>v}function j(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function $(t,e,a,n){var o=new r["a"];return o.add(new s["a"]({name:"main",style:U(a),silent:!0,draggable:!0,cursor:"move",drift:Object(i["h"])(W,t,e,o,["n","s","w","e"]),ondragend:Object(i["h"])(N,e,{isEnd:!0})})),Object(i["k"])(n,(function(a){o.add(new s["a"]({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(i["h"])(W,t,e,o,a),ondragend:Object(i["h"])(N,e,{isEnd:!0})}))})),o}function F(t,e,a,n){var i=n.brushStyle.lineWidth||0,o=m(i,y),r=a[0][0],s=a[1][0],l=r-i/2,c=s-i/2,u=a[0][1],d=a[1][1],h=u-o+i/2,p=d-o+i/2,f=u-r,g=d-s,_=f+i,v=g+i;Y(t,e,"main",r,s,f,g),n.transformable&&(Y(t,e,"w",l,c,o,v),Y(t,e,"e",h,c,o,v),Y(t,e,"n",l,c,_,o),Y(t,e,"s",l,p,_,o),Y(t,e,"nw",l,c,o,o),Y(t,e,"ne",h,c,o,o),Y(t,e,"sw",l,p,o,o),Y(t,e,"se",h,p,o,o))}function B(t,e){var a=e.__brushOption,n=a.transformable,o=e.childAt(0);o.useStyle(U(a)),o.attr({silent:!n,cursor:n?"move":"default"}),Object(i["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(a){var i=e.childOfName(a.join("")),o=1===a.length?H(t,a[0]):G(t,a);i&&i.attr({silent:!n,invisible:!n,cursor:n?O[o]+"-resize":null})}))}function Y(t,e,a,n,i,o,r){var s=e.childOfName(a);s&&s.setShape(X(q(t,e,[[n,i],[n+o,i+r]])))}function U(t){return Object(i["i"])({strokeNoScale:!0},t.brushStyle)}function z(t,e,a,n){var i=[f(t,a),f(e,n)],o=[m(t,a),m(e,n)];return[[i[0],o[0]],[i[1],o[1]]]}function V(t){return l["getTransform"](t.group)}function H(t,e){var a={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=l["transformDirection"](a[e],V(t));return n[i]}function G(t,e){var a=[H(t,e[0]),H(t,e[1])];return("e"===a[0]||"w"===a[0])&&a.reverse(),a.join("")}function W(t,e,a,n,o,r){var s=a.__brushOption,l=t.toRectRange(s.range),c=Z(e,o,r);Object(i["k"])(n,(function(t){var e=S[t];l[e[0]][e[1]]+=c[e[0]]})),s.range=t.fromRectRange(z(l[0][0],l[1][0],l[0][1],l[1][1])),k(e,a),N(e,{isEnd:!1})}function K(t,e,a,n){var o=e.__brushOption.range,r=Z(t,a,n);Object(i["k"])(o,(function(t){t[0]+=r[0],t[1]+=r[1]})),k(t,e),N(t,{isEnd:!1})}function Z(t,e,a){var n=t.group,i=n.transformCoordToLocal(e,a),o=n.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function q(t,e,a){var n=L(t,e);return n&&n!==p?n.clipPath(a,t._transform):Object(i["d"])(a)}function X(t){var e=f(t[0][0],t[1][0]),a=f(t[0][1],t[1][1]),n=m(t[0][0],t[1][0]),i=m(t[0][1],t[1][1]);return{x:e,y:a,width:n-e,height:i-a}}function Q(t,e,a){if(t._brushType&&!ot(t,e.offsetX,e.offsetY)){var n=t._zr,i=t._covers,o=D(t,e,a);if(!t._dragging)for(var r=0;r<i.length;r++){var s=i[r].__brushOption;if(o&&(o===p||s.panelId===o.panelId)&&rt[s.brushType].contain(i[r],a[0],a[1]))return}o&&n.setCursorStyle("crosshair")}}function J(t){var e=t.event;e.preventDefault&&e.preventDefault()}function tt(t,e,a){return t.childOfName("main").contain(e,a)}function et(t,e,a,n){var o,r=t._creatingCover,s=t._creatingPanel,l=t._brushOption;if(t._track.push(a.slice()),P(t)||r){if(s&&!r){"single"===l.brushMode&&R(t);var c=Object(i["d"])(l);c.brushType=at(c.brushType,s),c.panelId=s===p?null:s.panelId,r=t._creatingCover=C(t,c),t._covers.push(r)}if(r){var u=rt[at(t._brushType,s)],d=r.__brushOption;d.range=u.getCreatingRange(q(t,r,t._track)),n&&(E(t,r),u.updateCommon(t,r)),w(t,r),o={isEnd:n}}}else n&&"single"===l.brushMode&&l.removeOnClick&&D(t,e,a)&&R(t)&&(o={isEnd:n,removeOnClick:!0});return o}function at(t,e){return"auto"===t?e.defaultBrushType:t}var nt={mousedown:function(t){if(this._dragging)it(this,t);else if(!t.target||!t.target.draggable){J(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var a=this._creatingPanel=D(this,t,e);a&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,a=t.offsetY,n=this.group.transformCoordToLocal(e,a);if(Q(this,t,n),this._dragging){J(t);var i=et(this,t,n,!1);i&&N(this,i)}},mouseup:function(t){it(this,t)}};function it(t,e){if(t._dragging){J(e);var a=e.offsetX,n=e.offsetY,i=t.group.transformCoordToLocal(a,n),o=et(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&N(t,o)}}function ot(t,e,a){var n=t._zr;return e<0||e>n.getWidth()||a<0||a>n.getHeight()}var rt={lineX:st(0),lineY:st(1),rect:{createCover:function(t,e){function a(t){return t}return $({toRectRange:a,fromRectRange:a},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=j(t);return z(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,a,n){F(t,e,a,n)},updateCommon:B,contain:tt},polygon:{createCover:function(t,e){var a=new r["a"];return a.add(new c["a"]({name:"main",style:U(e),silent:!0})),a},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new u["a"]({name:"main",draggable:!0,drift:Object(i["h"])(K,t,e),ondragend:Object(i["h"])(N,t,{isEnd:!0})}))},updateCoverShape:function(t,e,a,n){e.childAt(0).setShape({points:q(t,e,a)})},updateCommon:B,contain:tt}};function st(t){return{createCover:function(e,a){return $({toRectRange:function(e){var a=[e,[0,100]];return t&&a.reverse(),a},fromRectRange:function(e){return e[t]}},e,a,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var a=j(e),n=f(a[0][t],a[1][t]),i=m(a[0][t],a[1][t]);return[n,i]},updateCoverShape:function(e,a,n,i){var o,r=L(e,a);if(r!==p&&r.getLinearBrushOtherExtent)o=r.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,o];t&&l.reverse(),F(e,a,l,i)},updateCommon:B,contain:tt}}e["a"]=x},fd4c:function(t,e,a){"use strict";a("0487")},ff0d:function(t,e,a){}}]);