(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
"use strict";function insertPriceRecommendBtn(){var e=void 0;if(!(0,_dom.$)("#itemBasic .showbar tbody"))return!1;e=(0,_dom.$)("#itemBasic .showbar tbody"),mo.disconnect();for(var n=null,t=e.childNodes,o=t.length-1,c="";o>=0;o--)if(c=t[o].textContent,c&&c.indexOf("一口价及总库存")>=0){n=t[o].lastChild;break}n&&new _priceRecommendBtnComponent.PriceRecommendBtn({text:{parentElem:n,layerId:_priceRecommend.PRICE_RECOMMEND_BUTTON_LAYER_ID,rootId:_priceRecommend.PRICE_RECOMMEND_BUTTON_ROOT_ID,contentText:"定价推荐",btnWowLog:"5.10.1.1.39"}})}function injectIconFont(){var e=document.createElement("style");e.innerHTML=fontStyleContent,e.dataset.id=STYLE_DATA_ID,document.head.appendChild(e)}var _dom=require(11),_priceRecommendBtnComponent=require(3),_priceRecommend=require(12),STYLE_DATA_ID="uc-price-recommend-icon-font",mo=void 0,fontStyleContent=void 0;fontStyleContent=require(18),(0,_dom.$)("style[data-id="+STYLE_DATA_ID+"]")||(injectIconFont(),mo=new window.MutationObserver(function(){return insertPriceRecommendBtn()}),mo.observe(document.body,{childList:!0,characterData:!0,attributes:!1}));


},{"11":11,"12":12,"18":18,"3":3}],2:[function(require,module,exports){
"use strict";exports.defineProperty=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},exports.inherits=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},exports.possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},exports.createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),exports.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},exports.slicedToArray=function(){function e(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(n=(u=a.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{!n&&a["return"]&&a["return"]()}finally{if(o)throw i}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),exports.get=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var u=o.get;if(void 0!==u)return u.call(n)};


},{}],3:[function(require,module,exports){
"use strict";exports.PriceRecommendBtn=void 0;var _AsyncRender2=require(8),_wowPage=require(15),_URLUtils=require(9),_priceRecommendWindowComponent=require(6),_priceRecommend=require(12),_message=require(14),_priceRecommendServerData=require(5),PRICE_RECOMMEND_BTN_STYLE_TEXT=require(16),PriceRecommendBtn=exports.PriceRecommendBtn=function(e){function t(e){var n=e.text,r=e.data;require(2).classCallCheck(this,t);var o=require(2).possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this)),c=o.element=document.createElement("div"),i=c.createShadowRoot();return o.text=new Object(n),o.data=new Object(r),c.id=o.text.layerId,i.innerHTML=o.getTemplate(),o.shadowRootCreated(c,i),o}return require(2).inherits(t,e),require(2).createClass(t,[{key:"shadowRootCreated",value:function(e,t){var n=this;this.text.parentElem.appendChild(e),t.addEventListener("click",function(){var e=n.getCatId();(0,_wowPage.wowLog)(n.text.btnWowLog),e?(0,_message.sendMessageAsync)(_priceRecommend.MSG_EVENT_QUERY_CAT_ID_FROM_SERVER,{catId:e}).then(function(e){var t=void 0,r=void 0;return r=(0,_priceRecommendServerData.checkResponseData)(e,"cat"),null!==r?(t=(0,_priceRecommendServerData.getKeyId)(r[0]),n.data.catDataArr=r,n.queryPriceWithKey(t)):void n.showPriceRecommendWindow()},function(e){n.showPriceRecommendWindow()}):n.showPriceRecommendWindow()})}},{key:"queryPriceWithKey",value:function(e){var t=this;return(0,_message.sendMessageAsync)(_priceRecommend.MSG_EVENT_QUERY_KEY_PRICE_FROM_SERVER,{keyId:e}).then(function(e){var n=void 0;n=(0,_priceRecommendServerData.checkResponseData)(e),null!==n&&(t.data.keyDataArr=n),t.showPriceRecommendWindow()},function(e){t.showPriceRecommendWindow()})}},{key:"getStyleText",value:function(){return PRICE_RECOMMEND_BTN_STYLE_TEXT}},{key:"getTemplate",value:function(){var e=this.text;return"<style>"+this.getStyleText()+'</style>\n            <button id="'+e.rootId+'" class="price-recommend-btn">'+e.contentText+"</button>"}},{key:"addHtmlClass",value:function(){document.body.parentNode.classList.add(_priceRecommend.HTML_CLASS_NAME_CONTROL)}},{key:"showPriceRecommendWindow",value:function(){var e=this;this.addHtmlClass(),document.getElementById("uc_price_recommend_window_layer")?document.getElementById("uc_price_recommend_window_layer").showModal():new _priceRecommendWindowComponent.PriceRecommendWindow({text:{layerId:_priceRecommend.PRICE_RECOMMEND_WINDOW_LAYER_ID,rootId:_priceRecommend.PRICE_RECOMMEND_WINDOW_ROOT_ID},data:e.data}).showAsync()}},{key:"getCatId",value:function(){var e=(0,_URLUtils.getUrlQuery)(location.href);return e&&e.catId?e.catId:""}}]),t}(_AsyncRender2.AsyncRender);


},{"12":12,"14":14,"15":15,"16":16,"2":2,"5":5,"6":6,"8":8,"9":9}],4:[function(require,module,exports){
"use strict";function verifyPriceValue(e){return!!/^(\d+)(\.\d{1,2})?$/.test(e.toString())}function verifyPercentValue(e){return!!/^(\d+)(\.\d{1,2})?%$/.test(e.toString())}function verifyCharacterNumberInput(e){return!!/[\d\.]/.test(e.toString())}function verifyCharacterPercentInput(e){return!!/[\d\.%]/.test(e.toString())}function replaceCharacterNumberInput(e){return e.replace(/[^\d\.]/g,"")}function replaceCharacterPercentInput(e){return e.replace(/[^\d\.%]/g,"")}function orderPriceRangeArr(e){function t(e,t){return t-e}return 0===e.length?[]:e.sort(t)}function calculateFinalPrice(e,t,r){var a=Number(e),i=Number(t.slice(0,-1))/100,n=Number(r),c=(a*i+n).toFixed(FIXED_DECIMALS_DIGITS);return"00"===c.split(".")[1]?c.slice(0,-3):c}exports.PriceRecommendEventDelegate=void 0;var _priceRecommendServerData=require(5),_message=require(14),_dom=require(11),_priceRecommend=require(12),CAT_LIST_SELECTED_ITEM_CLASS_NAME="active",MAX_CAT_LIST_NUMBER=20,FIXED_DECIMALS_DIGITS=2,NO_RESULT_CLASS="uc-goods-disable",SHOW_CAT_DATA_LIST="goods-info-show",PriceRecommendEventDelegate=exports.PriceRecommendEventDelegate=function(){function e(t){var r=t.root;require(2).classCallCheck(this,e),this.root=r}return require(2).createClass(e,[{key:"insertStyle",value:function(){var e=void 0,t=document.createElement("style");e=require(18),t.innerHTML=e,document.head.appendChild(t)}},{key:"initCatList",value:function(e){var t=e.catDataArr,r="";this.insertStyle();for(var a=0,i=t.length;i>a;a++){var n=t[a],c=0===a?CAT_LIST_SELECTED_ITEM_CLASS_NAME:"",s=(0,_priceRecommendServerData.getKeyId)(n),o=(0,_priceRecommendServerData.getKeyName)(n);if(a>=MAX_CAT_LIST_NUMBER)break;r+='<li class="'+c+'" data-id="'+s+'" title="'+o+'">'+o+"</li>"}this.$sh("#goods_list").innerHTML=r,this.setCurGoods((0,_priceRecommendServerData.getKeyId)(t[0]),(0,_priceRecommendServerData.getKeyName)(t[0])),this.setPriceRange(e.keyDataArr?e.keyDataArr:[])}},{key:"priceRecommendEvent",value:function(){var e=this,t=this.$sh("#uc_price_recommend_window"),r=this.$sh(".calculate-number"),a=this.$sh("#goods_list"),i=this.$sh(".goods-info"),n=this.$sh("#current_goods");r.addEventListener("keypress",function(t){var r=t.target;"input"===r.tagName.toLocaleLowerCase()&&13===t.keyCode&&(r.blur(),e.inputBlurEvent())}),r.addEventListener("keyup",function(e){var t=e.target,r=t.id;"input"===t.tagName.toLocaleLowerCase()&&("cost_price"===r||"price_range"===r?verifyPriceValue(t.value)||(t.value=replaceCharacterNumberInput(t.value)):"discount_rate"===r&&(verifyPercentValue(t.value)||(t.value=replaceCharacterPercentInput(t.value))))}),r.addEventListener("focus",function(t){var r=t.target,a=e.$sh("#cost_price"),i=e.$sh("#discount_rate"),n=e.$sh("#price_range");"input"===r.tagName.toLocaleLowerCase()&&("final_price"===r.id?""===a.value?a.focus():""===i.value?i.focus():""===n.value&&n.focus():e.$sh("#final_price").value="")},!0),r.addEventListener("blur",function(t){var r=t.target;"input"===r.tagName.toLocaleLowerCase()&&"final_price"!==r.id&&e.inputBlurEvent()},!0),n.addEventListener("click",function(){i.classList.toggle(SHOW_CAT_DATA_LIST)}),n.addEventListener("blur",function(){setTimeout(function(){i.classList.remove(SHOW_CAT_DATA_LIST)},300)}),a.addEventListener("click",function(t){var r=t.target,n=r.dataset.id,c=r.innerText;"li"===r.tagName.toLocaleLowerCase()&&(a.querySelector("."+CAT_LIST_SELECTED_ITEM_CLASS_NAME).classList.remove(CAT_LIST_SELECTED_ITEM_CLASS_NAME),r.classList.add(CAT_LIST_SELECTED_ITEM_CLASS_NAME),i.classList.remove(SHOW_CAT_DATA_LIST),e.setCurGoods(n,c),e.getPriceRangeData(n))}),t.addEventListener("click",function(t){var r=t.target,a=void 0;"li"===r.tagName.toLocaleLowerCase()&&(r=r.parentNode),a=r.id,"current_goods"!==a&&"goods_list"!==a&&e.$sh(".goods-info").classList.remove(SHOW_CAT_DATA_LIST)})}},{key:"setNoResult",value:function(){this.$sh(".uc-goods").classList.add(NO_RESULT_CLASS)}},{key:"$sh",value:function(e){return(0,_dom._$)(e,this.root)}},{key:"getPriceRangeData",value:function(e){var t=this;(0,_message.sendMessageAsync)(_priceRecommend.MSG_EVENT_QUERY_KEY_PRICE_FROM_SERVER,{keyId:e}).then(function(e){t.changeGoodsItem((0,_priceRecommendServerData.checkResponseData)(e))},function(e){t.changeGoodsItem([])})}},{key:"clearCalculateData",value:function(){this.$sh("#cost_price").value="",this.$sh("#discount_rate").value="",this.$sh("#price_range").value="",this.$sh("#final_price").value=""}},{key:"changeGoodsItem",value:function(e){this.setPriceRange(e)}},{key:"setPriceRange",value:function(e){for(var t=this.$sh("#finally_price_range_list").querySelectorAll(".price-number"),r=orderPriceRangeArr(e),a=0,i=t.length;i>a;a++)t[a].innerText=r[a]?"￥"+r[a]:"￥---"}},{key:"setCurGoods",value:function(e,t){var r=this.$sh("#current_goods");r.dataset.id=e,r.innerText=t}},{key:"inputBlurEvent",value:function(){var e=this.$sh("#cost_price"),t=this.$sh("#discount_rate"),r=this.$sh("#price_range"),a=this.$sh("#final_price"),i=e.value,n=t.value,c=r.value;return""===i||verifyPriceValue(i)?""===n||verifyPercentValue(n)||(n.search(/%/)<0&&(t.value=n+"%",n=t.value),verifyPercentValue(n))?""===c||verifyPriceValue(c)?void(""!==i&&""!==n&&""!==c&&(a.value=calculateFinalPrice(i,n,c))):(r.value="",r.focus(),!1):(t.value="",t.focus(),!1):(e.value="",e.focus(),!1)}}]),e}();


},{"11":11,"12":12,"14":14,"18":18,"2":2,"5":5}],5:[function(require,module,exports){
"use strict";function formatCatData(t){var e=[];if(""!==t&&(e=t.split(DATA_ITEM_SPLIT_SIGN),e.length>1&&""!==e[1])){var a=e[1].split(DATA_STRING_SPLIT_SIGN);if(a.length>1)return e.slice(1)}return null}function formatPriceData(t){var e=[];return""!==t&&(e=t.split(DATA_ITEM_SPLIT_SIGN),e.length===DATA_PRICE_RANGE_NUM+1)?e.slice(1):null}function getKeyId(t){return t.split(DATA_STRING_SPLIT_SIGN)[0]}function getKeyName(t){return t.split(DATA_STRING_SPLIT_SIGN)[1]}function checkResponseData(t,e){var a=void 0;return"object"!=typeof t?null:(a=t.data,"cat"===e?formatCatData(a):formatPriceData(a))}exports.formatCatData=formatCatData,exports.formatPriceData=formatPriceData,exports.getKeyId=getKeyId,exports.getKeyName=getKeyName,exports.checkResponseData=checkResponseData;var DATA_ITEM_SPLIT_SIGN=";",DATA_STRING_SPLIT_SIGN=":",DATA_PRICE_RANGE_NUM=6;


},{}],6:[function(require,module,exports){
"use strict";exports.PriceRecommendWindow=void 0;var _AsyncRender2=require(8),_defer=require(10),_priceRecommendWindowTemplate=require(7),_priceRecommend=require(12),_priceRecommendEventDelegate=require(4),_priceRecommendBtnComponent=require(3),PRICE_RECOMMEND_WINDOW_STYLE_TEXT=require(17),CLOSE_ICON_FONT="&#xe605;",PriceRecommendWindow=exports.PriceRecommendWindow=function(e){function t(e){var n=e.text,i=e.data;require(2).classCallCheck(this,t);var r=require(2).possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this)),o=r.element=document.createElement("dialog"),s=o.createShadowRoot();return r.text=new Object(n),r.data=new Object(i),r.delegate=new _priceRecommendEventDelegate.PriceRecommendEventDelegate({root:o}),o.id=r.text.layerId,s.innerHTML=r.getTemplate(),r.onShadowRootCreated(s),r}return require(2).inherits(t,e),require(2).createClass(t,[{key:"onShadowRootCreated",value:function(e){var t=this;e.addEventListener("keydown",function(e){e.stopPropagation()},!0),e.addEventListener("click",function(e){var n=t._deferred,i=e.target,r=i.dataset.event;e.stopPropagation(),r&&n&&n.resolve(require(2).defineProperty({},r,!0)),r&&t.removeElement()})}},{key:"removeHtmlClass",value:function(){document.body.parentNode.classList.remove(_priceRecommend.HTML_CLASS_NAME_CONTROL)}},{key:"getStyleText",value:function(){return PRICE_RECOMMEND_WINDOW_STYLE_TEXT}},{key:"insertElement",value:function(){var e=document.body.firstChild;document.body.insertBefore(this.element,e)}},{key:"removeElement",value:function(){var e=this.element;e.close(),this.removeHtmlClass()}},{key:"showAsync",value:function(){var e=this._deferred;return e&&e.reject(),this.element.parentElement||(this.insertElement(),this.init(),this.onEvent()),this.element.showModal(),e=this._deferred=(0,_defer.defer)(),e.promise}},{key:"init",value:function(){this.delegate.insertStyle(),this.data.catDataArr?this.delegate.initCatList(this.data):this.delegate.setNoResult()}},{key:"onEvent",value:function(){this.delegate.priceRecommendEvent()}},{key:"getTemplate",value:function(){var e=this.text;return"<style>"+this.getStyleText()+'</style>\n            <div class="price-recommend-page" id="'+e.rootId+'">\n              <span id="page_close_btn" class="iconfont page-close" data-event="closed">'+CLOSE_ICON_FONT+'</span>\n              <section id="calculate_formula" class="calculate-formula">'+(0,_priceRecommendWindowTemplate.getCalculateFormula)()+'</section>\n              <section id="select_list" class="select-list">'+(0,_priceRecommendWindowTemplate.getSelectList)()+'</section>\n              <section id="example_table" class="example-table">'+(0,_priceRecommendWindowTemplate.getExampleTable)()+"</section>\n            </div>"}}]),t}(_AsyncRender2.AsyncRender);


},{"10":10,"12":12,"17":17,"2":2,"3":3,"4":4,"7":7,"8":8}],7:[function(require,module,exports){
"use strict";function getCalculateFormula(){return'<h4>根据商品成本定价公式</h4>\n          <div class="calculate-title">\n            <label>商品成本价\n              <span class="iconfont title-tips">'+HELP_ICON_FONT+'\n                <p data-tips="1">\n                 商品拿货单价需要自己计算。<br/>\n                 常规包裹营销成本：13元。<br/>\n                 电商运营成本：25元。<br/>\n                 推广预算成本：5元。<br/>\n                 工作成本：160/天。（均摊到每个商品上，需要计算每天大概成单量）。每天卖10件，那么分到单件成本为16元。<br/>\n                 成本大概为：出厂价+13+25+5+16=出厂价+59。\n                </p>\n              </span>\n            </label>\n            <label>活动折扣率(%)\n              <span class="iconfont title-tips">'+HELP_ICON_FONT+'\n                <p data-tips="2">\n                 如果打算参加活动，可以提高30%，活动折扣率为130%。也可自定义。\n                </p>\n              </span>\n            </label>\n            <label>价格浮动值\n              <span class="iconfont title-tips">'+HELP_ICON_FONT+'\n              <p data-tips="3">\n                根据商品价格区间，建议添加相应价格。<br/>\n                50-100元的商品，建议添加5元。<br/>\n                100-200元的商品，建议添加25元。<br/>\n                200-300元的商品，建议添加45元。<br/>\n                300-400元的商品，建议添加65元。<br/>\n                依次类推。\n                </p>\n              </span>\n            </label>\n            <label>最终定价\n              <span class="iconfont title-tips">'+HELP_ICON_FONT+'\n              <p data-tips="4">\n                最终价格仅为广大卖家提供参考，具体定价可根据商品实际情况自行调整。\n              </p>\n              </span>\n            </label>\n          </div>\n          <div class="calculate-number" tabindex="0">\n            <input id="cost_price" placeholder="数字或者小数"/><span class="calculate-sign">*</span>\n            <input id="discount_rate" placeholder="百分数"/><span class="calculate-sign">+</span>\n            <input id="price_range" placeholder="数字或者小数"/><span class="calculate-sign">=</span>\n            <input id="final_price" readonly />\n          </div>'}function getSelectList(){return'<div class="uc-goods">\n            <div class="goods-info">\n              <span id="current_goods" class="sel current-goods" tabindex="0"></span>\n              <ul id="goods_list" class="goods-list"></ul>\n            </div>\n            <span id="no_result" class="sel no-result">您搜索的类目高大上，目前还没有存储该分类的数据。</span>\n            <!--<span id="calculate_ok_tips" class="calculate-ok-tips">计算完成</span>-->\n            <ul id="finally_price_range_list" class="price-range-list">\n              <li>以下推荐价格仅作为参考建议，请根据店铺实际情况酌情考虑。</li>\n              <li>高端区间高端定价：\n                <span class="price-number"></span>\n              </li>\n              <li>高端区间低端定价：\n                <span class="price-number"></span>\n              </li>\n              <li>中端区间高端定价：\n                <span class="price-number"></span>\n              </li>\n              <li>中端区间低端定价：\n                <span class="price-number"></span>\n              </li>\n              <li>低端区间高端定价：\n                <span class="price-number"></span>\n              </li>\n              <li>低端区间低端定价：\n                <span class="price-number"></span>\n              </li>\n            </ul>\n          </div>\n          <p class="pricing-tips">\n            <span>Tips:</span><br/>\n            1. 建议定价要预留淘金币抵扣与好评返现的空间。<br/>\n            2. 建议利润微薄者可搭配促销商品进行销售，以赚取运费差价。<br/>\n            以上推荐价格仅作为参考建议，请根据店铺实际情况酌情考虑。\n          </p>'}function getExampleTable(){return"<h4>根据买家喜欢的区间定价</h4>\n          <table>\n            <tbody>\n              <tr>\n                <th>价格区间</th>\n                <th>占比</th>\n                <th>区间价格</th>\n                <th>名称</th>\n                <th>价格示例</th>\n              </tr>\n              <tr>\n                <td>高</td>\n                <td>30%</td>\n                <td>高A<br/>高B</td>\n                <td>高端最低价<br/>高端最高价</td>\n                <td>￥301<br/>￥600</td>\n              </tr>\n              <tr>\n                <td>中</td>\n                <td>45%</td>\n                <td>中A<br/>中B</td>\n                <td>中端最低价<br/>中端最高价</td>\n                <td>￥151<br/>￥300</td>\n              </tr>\n              <tr>\n                <td>低</td>\n                <td>25%</td>\n                <td>低A<br/>低B</td>\n                <td>低端最低价<br/>低端最高价</td>\n                <td>￥100<br/>￥150</td>\n              </tr>\n            </tbody>\n          </table>\n          <h4>区间高端、低端价格公式：</h4>\n          <p>\n           （价格段最高价格 - 最低价格）* 0.382 + 最低价格 = 区间低端价格<br/>\n           （价格段最高价格 - 最低价格）* 0.618 + 最低价格 = 区间高端价格\n          </p>"}exports.getCalculateFormula=getCalculateFormula,exports.getSelectList=getSelectList,exports.getExampleTable=getExampleTable;var _dom=require(11),HELP_ICON_FONT="&#xe601;";


},{"11":11}],8:[function(require,module,exports){
"use strict";var AsyncRender=exports.AsyncRender=function(){function e(t){require(2).classCallCheck(this,e),this.renderState=Object.assign({},t),this.__lasyRenderState={},this.needSync()}return require(2).createClass(e,[{key:"syncRenderState",value:function(e){}},{key:"setRenderState",value:function(e){var t=void 0,n=this.renderState;e&&Object.getOwnPropertyNames(e).forEach(function(s){var r=e[s];r!==n[s]&&(n[s]=r,t=!0)}),t&&this.needSync()}},{key:"shouldUpdate",value:function(e,t){return!0}},{key:"needSync",value:function(){var e=this;this._syncDispatched||(this._syncDispatched=!0,requestAnimationFrame(function(){var t=e.renderState;e.shouldUpdate(t,e.__lastRenderState)&&e.syncRenderState(t),e.__lastRenderState=e.renderState,e._syncDispatched=!1}))}}]),e}();


},{"2":2}],9:[function(require,module,exports){
"use strict";function getUrlQuery(e){var t={};return e.slice(e.indexOf("?")+1).split("&").forEach(function(e){e=decodeURIComponent(e).split("="),t[e[0]]=e[1]}),t}function getDomain(e){return link.href=e,link.hostname}function getPath(e){return link.href=e,link.pathname}exports.getUrlQuery=getUrlQuery,exports.getDomain=getDomain,exports.getPath=getPath;var link=document.createElement("a");


},{}],10:[function(require,module,exports){
"use strict";function defer(){var e=void 0,r=void 0,n=new Promise(function(n,o){e=n,r=o});return{resolve:function(r){e(r)},reject:function(e){r(e)},promise:n}}exports.defer=defer;


},{}],11:[function(require,module,exports){
"use strict";function $(e,o){return e instanceof HTMLElement?e:(o||document).querySelector(e)}function _$(e,o){return(o||document).shadowRoot.querySelector(e)}function _$$(e,o){return slice.call((o||document).shadowRoot.querySelectorAll(e))}function $$(e,o){return slice.call((o||document).querySelectorAll(e))}function toggleClass(e,o,t){var r=2==arguments.length?e.classList.contains(o):!t;e.classList[r?"remove":"add"](o)}function removeNodeFromParent(e){return e&&e.parentNode?(e.parentNode.removeChild(e),!0):!1}exports.$=$,exports._$=_$,exports._$$=_$$,exports.$$=$$,exports.toggleClass=toggleClass,exports.removeNodeFromParent=removeNodeFromParent;var slice=Array.prototype.slice;


},{}],12:[function(require,module,exports){
"use strict";var PRICE_RECOMMEND_BUTTON_LAYER_ID=exports.PRICE_RECOMMEND_BUTTON_LAYER_ID="uc_price_recommend_btn_layer",PRICE_RECOMMEND_BUTTON_ROOT_ID=exports.PRICE_RECOMMEND_BUTTON_ROOT_ID="uc_price_recommend_btn",PRICE_RECOMMEND_WINDOW_LAYER_ID=exports.PRICE_RECOMMEND_WINDOW_LAYER_ID="uc_price_recommend_window_layer",PRICE_RECOMMEND_WINDOW_ROOT_ID=exports.PRICE_RECOMMEND_WINDOW_ROOT_ID="uc_price_recommend_window",HTML_CLASS_NAME_CONTROL=exports.HTML_CLASS_NAME_CONTROL="uc-price-recommend",MSG_EVENT_QUERY_CAT_ID_FROM_SERVER=exports.MSG_EVENT_QUERY_CAT_ID_FROM_SERVER="query-cat-id",MSG_EVENT_QUERY_KEY_PRICE_FROM_SERVER=exports.MSG_EVENT_QUERY_KEY_PRICE_FROM_SERVER="query-key-price",GET_CAT_DATA_SERVER_API=exports.GET_CAT_DATA_SERVER_API="https://browser.taobao.com/config/openCache.do?",GET_CAT_KEY_NAME=exports.GET_CAT_KEY_NAME="sellerCate",GET_PRICE_KEY_NAME=exports.GET_PRICE_KEY_NAME="sellerPrice";


},{}],13:[function(require,module,exports){
"use strict";var MSG_EVENT_STATISTIC_RECORD=exports.MSG_EVENT_STATISTIC_RECORD="statistic-record";


},{}],14:[function(require,module,exports){
"use strict";function sendMessageAsync(e,r){var t=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],n=t.noReply,o=t.extId,s={type:e,data:r,sync:!1,noReply:n,d:"req"};if(n)return sendMsg(o,s),Promise.resolve();var c=guid(),d=(0,_defer.defer)();return s.guid=c,deferCache[c]=d,sendMsg(o,s),d.promise["catch"](noop)}function initPort(){deferCache=Object.create(null);try{extPort=chrome.runtime.connect({name:"page:connect"}),extPort.onMessage.addListener(onMsg),extPort.onDisconnect.addListener(function(){disposePort(),setTimeout(initPort,0)})}catch(e){console.log(e)}}function disposePort(){for(var e in deferCache){var r=deferCache[e];r&&r.reject&&r.reject("disconnect")}deferCache=Object.create(null),extPort=null}function onMsg(e){var r=e.guid,t=e.d,n=deferCache[r];if("postTab"===t){var o=bkMsgHandlers[e.type];o&&o(e.data)}else n&&"res"===t&&(e.success?n.resolve(e.data):n.reject(e.error),delete deferCache[r])}function registerMsgHandler(e,r){"function"==typeof r&&(bkMsgHandlers[e]=r)}function sendMsg(e,r){if(e&&r)throw Error("not support external");r&&(extPort?extPort.postMessage(r):chrome.runtime.sendMessage(r))}function noop(){}function guid(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+Date.now()}exports.sendMessageAsync=sendMessageAsync,exports.registerMsgHandler=registerMsgHandler;var _defer=require(10),deferCache=void 0,bkMsgHandlers=Object.create(null),extPort=void 0;"object"==typeof chrome&&chrome.runtime&&chrome.runtime.onMessage&&chrome.runtime.onMessage.addListener(onMsg),window.addEventListener("unload",function(){extPort.disconnect(),disposePort()}),initPort();


},{"10":10}],15:[function(require,module,exports){
"use strict";function wowLog(s,e){(0,_message.sendMessageAsync)(_statistic.MSG_EVENT_STATISTIC_RECORD,{id:s,param:e},{noReply:!1})}exports.wowLog=wowLog;var _message=require(14),_statistic=require(13);


},{"13":13,"14":14}],16:[function(require,module,exports){
module.exports=".price-recommend-btn{position:relative;width:100px;height:24px;line-height:22px;padding-left:35px;display:block;color:#fff;font-size:12px;box-sizing:border-box;background-color:#09f;border-radius:4px;text-decoration:none;outline:0;border:none;cursor:default}.price-recommend-btn:active,.price-recommend-btn:focus,.price-recommend-btn:hover{background-color:#0087e1;cursor:pointer}.price-recommend-btn::before{position:absolute;left:0;top:0;content:'\\E609';display:block;font-size:30px;line-height:24px;color:#fff;font-family:uc-nexus-iconfont!important}";


},{}],17:[function(require,module,exports){
module.exports="*{box-sizing:border-box;font-family:'Microsoft Yahei','Segoe UI',Arial,sans-serif;margin:0;padding:0}ul{list-style-type:none}:host{position:fixed;width:100%;height:100%;margin:0;padding:0;border:none;background:0 0;overflow:auto}:host::backdrop{background:rgba(236,238,244,.95)}:host::-webkit-scrollbar{width:16px;height:16px;background:#fff;margin:0 8px}:host::-webkit-scrollbar-thumb{background-color:silver;background-clip:content-box;border:4px solid transparent;border-radius:8px}.iconfont{font-family:uc-nexus-iconfont!important;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px;font-size:14px;text-align:center;color:#fff}.iconfont::after,.iconfont::before{display:none}input::-webkit-input-placeholder{font-weight:400;color:#c1c1c1}.price-recommend-page{position:absolute;left:50%;top:40px;margin-bottom:40px;width:596px;margin-left:-298px;border-radius:6px;background:rgba(255,255,255,.77);box-shadow:0 24px 51px 0 rgba(0,0,0,.27)}section{width:100%;padding:20px 24px;color:#a3a3a3}.page-close{position:absolute;top:10px;right:10px;width:24px;height:20px;font-size:14px;color:#fff;cursor:pointer}.page-close:hover{color:rgba(255,255,255,.6)}.calculate-formula{height:130px;background:-webkit-linear-gradient(54deg,#ff7070,#fe7a5c);color:#fff;border-radius:6px 6px 0 0}.calculate-formula h4{font-size:14px;line-height:28px}.calculate-formula .calculate-title{height:24px;line-height:24px}.calculate-formula .calculate-title label{position:relative;float:left;width:114px;margin-right:30px;font-size:12px;line-height:24px;text-align:left}.calculate-formula .calculate-title label:nth-last-of-type(1){margin-right:0}.calculate-formula .calculate-title label .title-tips{position:relative;font-size:14px;line-height:22px;margin-left:4px;display:inline-block;color:#fff;cursor:pointer}.calculate-formula .calculate-title label .title-tips p,.calculate-formula .calculate-title label .title-tips:after{position:absolute;display:none;transition:all ease-in-out .3s}.calculate-formula .calculate-title label .title-tips::after{top:20px;left:4px;width:6px;height:6px;content:'';transform:rotate(45deg);border:solid #dadada;background:#fff;border-width:1px 0 0 1px;z-index:3}.calculate-formula .calculate-title label .title-tips p{top:24px;width:546px;padding:8px;line-height:20px;border-radius:4px;text-align:left;font-size:10px;color:#a3a3a3;background-color:#fff;box-shadow:0 4px 8px 0 rgba(0,0,0,.22);border:1px solid #cdcdcd;z-index:2}.calculate-formula .calculate-title label .title-tips p[data-tips=\"1\"]{height:155px;left:-68px}.calculate-formula .calculate-title label .title-tips p[data-tips=\"2\"]{height:35px;left:-231px}.calculate-formula .calculate-title label .title-tips p[data-tips=\"3\"]{height:135px;right:-176px}.calculate-formula .calculate-title label .title-tips p[data-tips=\"4\"]{height:35px;right:-44px}.calculate-formula .calculate-title label .title-tips:hover p,.calculate-formula .calculate-title label .title-tips:hover::after{display:block}.calculate-formula .calculate-number{height:30px;line-height:30px;outline:0}.calculate-formula .calculate-number input,.calculate-formula .calculate-number span{float:left;display:block}.calculate-formula .calculate-number input{width:114px;height:30px;padding:0 10px;font-size:14px;color:#a3a3a3;border-radius:6px;border:2px solid #fff;background-color:#fff;font-weight:bolder;outline:0}.calculate-formula .calculate-number input:nth-last-of-type(1){color:#585858}.calculate-formula .calculate-number input:nth-last-of-type(1):focus{border-color:#fff}.calculate-formula .calculate-number input:focus{border-color:#bf5454}.calculate-formula .calculate-number span{width:30px;height:30px;line-height:26px;text-align:center;vertical-align:middle;font-size:26px}.calculate-formula .calculate-number span:nth-last-of-type(3){line-height:38px}.select-list{border-bottom:1px solid #e1e1e1}.select-list .uc-goods{position:relative;margin-bottom:10px}.select-list .uc-goods .sel{width:330px;height:30px;line-height:28px;background-color:#eee;border-radius:2px;margin-right:20px}.select-list .uc-goods .current-goods{font-size:14px;padding:0 30px 0 15px;border:1px solid #eee;display:inline-block;-webkit-user-select:none}.select-list .uc-goods .current-goods:focus{outline:0;border-color:#a0a0a0}.select-list .uc-goods .no-result{display:none}.select-list .uc-goods .calculate-ok-tips{float:right;margin-right:116px;width:80px;height:30px;line-height:28px;background-color:#36d14c;text-align:center;color:#fff;display:inline-block;border-radius:4px;font-size:14px}.select-list .uc-goods .calculate-ok-tips:hover{background-color:#44c256}.select-list .uc-goods .price-range-list{display:block}.select-list .uc-goods .price-number{color:#000;font-weight:bolder}.select-list .uc-goods-disable .goods-info,.select-list .uc-goods-disable .price-range-list{display:none}.select-list .uc-goods-disable .no-result{font-size:12px;color:#b0b0b0;padding:0 15px;display:inline-block}.select-list .uc-goods-disable .calculate-ok-tips,.select-list .uc-goods-disable .calculate-ok-tips:hover{background-color:#a9a9a9}.select-list .sel{width:330px;display:none}.select-list .no-result{font-size:12px;display:inline-block}.select-list .current-goods{position:relative}.select-list .current-goods:after{position:absolute;top:12px;right:12px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #999;line-height:30px;-webkit-user-select:none;content:'';transition:transform .3s cubic-bezier(0.8,0,1,1)}.select-list .goods-info{position:relative;width:330px;height:30px;line-height:30px;margin-right:20px;font-size:14px;color:#202020;display:inline-block}.select-list .goods-info .goods-list{position:absolute;top:30px;background:rgba(255,255,255,.58);width:100%;max-height:172px;min-height:0;overflow-y:auto;overflow-x:hidden;border:1px solid #b8b8b8;border-top:0;-webkit-user-select:none;box-shadow:0 12px 27px 0 rgba(0,0,0,.16);color:#202020;display:none}.select-list .goods-info .goods-list::-webkit-scrollbar{width:16px;height:16px;background:#eee;margin:0 8px}.select-list .goods-info .goods-list::-webkit-scrollbar-thumb{background-color:silver;background-clip:content-box;border:4px solid transparent;border-radius:8px}.select-list .goods-info .goods-list li{width:100%;height:28px;line-height:28px;background-color:#fff;padding:0 30px 0 15px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.select-list .goods-info .goods-list li:focus,.select-list .goods-info .goods-list li:hover{background-color:#e5e5e5}.select-list .goods-info-show .goods-list{display:block}.select-list .goods-info-show .current-goods:after{transform:rotate(180deg)}.select-list .price-range-list{margin:10px 0;font-size:12px;color:#000}.select-list .price-range-list li{font-size:12px;height:24px;line-height:24px;color:#202020}.select-list .pricing-tips{color:#b0b0b0;line-height:22px}.select-list .pricing-tips span{color:#202020}.example-table{border-radius:0 0 6px 6px}.example-table h4{font-size:14px;color:#202020;line-height:28px}.example-table p{color:#b0b0b0;line-height:22px}.example-table table{width:550px;border:1px solid #e1e1e1;border-radius:6px;border-spacing:0;margin:10px 0}.example-table table td,.example-table table th{border:none;font-size:14px;text-align:center}.example-table table th{width:110px;color:#202020}.example-table table td{color:#717171}.example-table table tr{height:66px;line-height:30px}.example-table table tr:nth-of-type(n){background-color:#f2f2f2}.example-table table tr:nth-of-type(2n){background-color:#dfdfdf}.example-table table tr:nth-of-type(1){border-radius:6px 6px 0 0;height:40px;line-height:40px}.example-table table tr:nth-last-of-type(1){border-radius:0 0 6px 6px}";


},{}],18:[function(require,module,exports){
module.exports="@font-face{font-family:uc-nexus-iconfont;src:url(chrome-extension://pogijhnlcfmcppgimcaccdkmbedjkmhi/res/font_9qmmi8b8jsxxbt9.woff) format('woff'),url(chrome-extension://pogijhnlcfmcppgimcaccdkmbedjkmhi/res/font_9qmmi8b8jsxxbt9.ttf) format('truetype')}";


},{}]},{},[1]);
