/******/ (() => { // webpackBootstrap
/******/ 	var __webpack_modules__ = ({

/***/ 307:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(62953);
const globalCondition = __webpack_require__(41761);
const extConsole = __webpack_require__(7129);
module.exports.init = async () => {
  if (G.site !== '360buy') {
    return;
  }
  let localPromo = await globalCondition.met('localPromoGot');
  let promoUrlMap = await globalCondition.met('remoteUrlMap');
  let promos = localPromo.promo.map(item => {
    item = item.replace('http://', '//').replace('https://', '//');
    if (item.indexOf(':') > -1) {
      let [url, text] = item.split(':');
      return {
        text,
        url
      };
    }
  });
  (__webpack_require__(7129).log)('localPromo', localPromo);
  $('#prom .prom-item').toArray().forEach(item => {
    let textNode = $(item).find('.hl_red');
    if (!textNode.length) {
      textNode = $(item).find('.mj_red');
    }
    const typeNode = $(item).find('.hl_red_bg');
    const urlNode = $(item).find('a');
    if (!textNode.length || !typeNode.length) {
      return;
    }
    let text = textNode[0].innerText;
    if (text.includes('距结束还剩')) {
      text = text.split('距结束还剩')[0];
    }
    const type = typeNode[0].innerText;
    if (type === '换购') {
      return;
    }
    const thePromo = promos.filter(promoItem => {
      if (!promoItem) {
        return false;
      }
      let url = false;
      // if (urlNode && urlNode.attr('href')) {
      //   url = urlNode.attr('href')
      // }
      if (url && promoItem.url) {
        return url.indexOf(promoItem.url) > -1;
      } else {
        if (!(promoItem && promoItem.text)) {
          return false;
        }
        let toCompare = promoItem.text;
        if (toCompare.indexOf('--') > -1) {
          toCompare = toCompare.split('--')[1];
        }
        if (toCompare.includes('距结束还剩')) {
          toCompare = toCompare.split('距结束还剩')[0];
        }
        (__webpack_require__(7129).log)(toCompare, text);
        return toCompare === text;
      }
    });
    if (thePromo.length && G.ss_name !== 'priceDog') {
      const url = thePromo[0].url;
      const link = promoUrlMap[' ' + url];
      const title = G.lang === 'zh-tr' ? '查看此活動全部商品' : '查看此活动全部商品';
      $(item).append(`<a href=${link} target="_blank" style="color: #ee2f36; text-decoration: underline; margin-left: 5px; font-size: 12px; white-space: nowrap">${title}<img src="https://cdn.gwdang.com/images/extensions/redArrow.svg" style="width: 10px; height: 10px;"></a>`);
    }
  });
  let coupons = localPromo.quan.map(item => {
    item = item.toString().replace('http://', '//').replace('https://', '//');
    if (item.indexOf(':') > -1) {
      let itemArr = item.split(':');
      // let [url, text] = item.split(':')
      // url = '//search.jd.com/Search?activity_id=' + url.split('_')[0] + '&sku=' + G.dp.itemId.replace('-3', '')
      return {
        text: itemArr[itemArr.length - 1],
        url: itemArr[0]
      };
    }
  });
  // const remotePromos = await globalCondition.met('promoGot')
  // let coupons = remotePromos.promo_list.filter(x => x.tag === 'coupon').map(x => {
  //   return {
  //     text: x.text.split(':').length > 1 ? x.text.split(':')[1] : x.text,
  //     url: x.id
  //   }
  // })

  coupons = coupons.filter(item => item && item.url);
  coupons = (__webpack_require__(60340).arrayUnique)(coupons, x => x.url);
  const couponLinks = coupons.map((item, idx) => {
    const link = promoUrlMap[' ' + item.url];
    return `<a href=${link} target="_blank"">查看${item.text.split(',')[0]}商品${idx === 0 ? '<img src="https://cdn.gwdang.com/images/extensions/redArrow.svg" style="width: 10px; height: 10px;">' : ''}</a>`;
  }).join('');
  let fnName = 'append',
    selector = '#summary-quan .lh';
  if ((__webpack_require__(60340).isNewJd)()) {
    fnName = 'append';
    selector = '#summary-quan .lh';
    if ($('.floor-discount .floor-list').length) {
      selector = '.floor-discount .floor-list';
    }
    // require('common/commonUtil').appendCss(`
    //   ${selector} { overflow: visible!important; }

    //   `)
  }
  extConsole.log('promo appended');
  __webpack_require__(8239);
};

/***/ }),

/***/ 357:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, extClass = $data.extClass, text = $data.text, qr = $data.qr, qrText = $data.qrText;
    $$out += '<div style="display: inline-flex; position: relative; vertical-align: middle;" class="gwd-middle-tmall ';
    $$out += $escape(extClass);
    $$out += '">\n  <img ';
    $$out += 'src="https://cdn.bijiago.com/images/extensions/activity/tmall-redpack-middle.png"';
    $$out += ' alt="" style="width: 17px; height: 19px;">\n  <span style="font-size: 13px; color: #ff471a; margin-left: 3px; font-weight: 600; font-family: \'Microsoft YaHei\', \'Arial\', \'SimSun\'; white-space: nowrap">';
    $$out += $escape(text);
    $$out += '</span>\n  <div class="gwd-qr-act">\n    <img class="gwd-act-qr-img" loading="lazy" src="';
    $$out += $escape(qr);
    $$out += '" alt="" style="width: 130px; height: 130px; margin-top: 7px">\n    <div style="margin-top: 5px; vertical-align: middle; font-size: 0; height: 14px; line-height: 14px; text-align: center; white-space: nowrap">\n      <span style="font-size: 12px; color: #ff1a78; font-weight: bold; margin-left: 15px">微信扫码</span>\n      <span style="margin-left: 3px; color: #070707; font-size: 12px; transform-origin: center left; transform: scale(0.8333); display: inline-block; white-space: nowrap">';
    $$out += $escape(qrText);
    $$out += '</span>\n    </div>\n  </div>\n</div>\n<style>\n  .gwd-middle-tmall {\n    height: 100%;\n    align-items: center;\n    justify-content: center;\n    justify-items: center;\n    width: 150px!important;\n    white-space: nowrap;\n  }\n\n  .gwd-middle-tmall:hover {\n      background: #fff3eb;\n  }\n\n  .gwd-qr-act {\n    display: none;\n    flex-direction: column;\n    position: absolute;\n    width: 144px;\n    height: 167px;\n    box-sizing: border-box;\n    border: 1px solid #ff471a;\n    background: #fff9f6;\n    top: 37px;\n    left: 50%;\n    align-items: center;\n    margin-left: -72px;\n    z-index: 999;\n  }\n\n  .gwd-middle-tmall:hover .gwd-qr-act {\n    display: flex;\n  }\n</style>\n';
    return $$out;
};

/***/ }),

/***/ 373:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);
var uncurryThis = __webpack_require__(27476);
var fails = __webpack_require__(79039);
var aCallable = __webpack_require__(79306);
var internalSort = __webpack_require__(74488);
var ArrayBufferViewCore = __webpack_require__(94644);
var FF = __webpack_require__(13709);
var IE_OR_EDGE = __webpack_require__(13763);
var V8 = __webpack_require__(39519);
var WEBKIT = __webpack_require__(3607);

var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var Uint16Array = globalThis.Uint16Array;
var nativeSort = Uint16Array && uncurryThis(Uint16Array.prototype.sort);

// WebKit
var ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort && !(fails(function () {
  nativeSort(new Uint16Array(2), null);
}) && fails(function () {
  nativeSort(new Uint16Array(2), {});
}));

var STABLE_SORT = !!nativeSort && !fails(function () {
  // feature detection can be too slow, so check engines versions
  if (V8) return V8 < 74;
  if (FF) return FF < 67;
  if (IE_OR_EDGE) return true;
  if (WEBKIT) return WEBKIT < 602;

  var array = new Uint16Array(516);
  var expected = Array(516);
  var index, mod;

  for (index = 0; index < 516; index++) {
    mod = index % 4;
    array[index] = 515 - index;
    expected[index] = index - 2 * mod + 3;
  }

  nativeSort(array, function (a, b) {
    return (a / 4 | 0) - (b / 4 | 0);
  });

  for (index = 0; index < 516; index++) {
    if (array[index] !== expected[index]) return true;
  }
});

var getSortCompare = function (comparefn) {
  return function (x, y) {
    if (comparefn !== undefined) return +comparefn(x, y) || 0;
    // eslint-disable-next-line no-self-compare -- NaN check
    if (y !== y) return -1;
    // eslint-disable-next-line no-self-compare -- NaN check
    if (x !== x) return 1;
    if (x === 0 && y === 0) return 1 / x > 0 && 1 / y < 0 ? 1 : -1;
    return x > y;
  };
};

// `%TypedArray%.prototype.sort` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort
exportTypedArrayMethod('sort', function sort(comparefn) {
  if (comparefn !== undefined) aCallable(comparefn);
  if (STABLE_SORT) return nativeSort(this, comparefn);

  return internalSort(aTypedArray(this), getSortCompare(comparefn));
}, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS);


/***/ }),

/***/ 436:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticStyle: {
      "text-align": "left"
    }
  }, [_c("div", {
    staticClass: "gwd-topSpecialActivity"
  }, [_vm._v(_vm._s(_vm.promoType) + _vm._s(_vm.priceType) + ": ¥" + _vm._s(_vm.price) + " "), _c("span", {
    staticStyle: {
      color: "#969899"
    }
  }, [_vm._v("(" + _vm._s(_vm.date) + ")")])]), _vm._v(" "), _vm.pagePrice ? _c("div", {
    staticClass: "gwd-grayText"
  }, [_vm._v("页面价: ¥" + _vm._s(_vm.pagePrice))]) : _vm._e(), _vm._v(" "), _vm.promo ? _c("div", {
    staticClass: "gwd-grayText"
  }, [_vm._v("促: " + _vm._s(_vm.promo))]) : _vm._e(), _vm._v(" "), _vm.coupon ? _c("div", {
    staticClass: "gwd-grayText"
  }, [_vm._v("券: " + _vm._s(_vm.coupon))]) : _vm._e()]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 500:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABQVBMVEUAAABwcHBoaGj///9qampsbGz///9ubm5sbGxra2v///9qamptbW3Pz8////9sbGzq6upra2vJyclsbGxtbW1sbGz///9ra2tra2tsbGxsbGzl5eVsbGz///9sbGyDg4OlpaXR0dH09PT///9ra2ttbW3///9sbGyAgID98fD///8wJiNoYF5sbGx+fn6DfXyQkJCRi4qRkZGampqempmfmpmjo6OkpKStqKe2nJm6t7W6t7a+vr6/v7/AjovIxcTTxsXWgn7W09Pa2treaWLhJRviMinjMinjMynj4uLj4+Pk4uHk5OTlQDflQDjmTUbnTkboW1TpW1TqaGLqaWLsdnDsdnHsd3Dt7e3uhH/vko3wko3yn5vyoJvy8fDzran0ran06Oj1u7j2u7j3yMb51tT519T75OP98fH98vH////8NMdPAAAAK3RSTlMAECAgMEBAT1BfX2BgYGBvb3B/gI+QkJ+goK+vv7/Pz8/Pz8/f39/v7+/vY1TKYAAAAvFJREFUWMPtmG1X0zAUx7tKEZiKOGE4C4qbmw47Geh8wmfjYNJJ55TVIm6aWcn3/wCmSZOmaQcZR8+Ro/8XO03S+1tyd+/t7bRsfrSmNCJDmp4jsxPkelpbtEYrRwFZadqkWHKd/w/gAEOPK5sEnI0WS4GWjUB6CNC1uIwkwJAWb4ajvwnAjnhiQCl08u8HZMjGMhLAIr/FvApAS3WQFYuDUwGYyjFdORlg8chcCAAFk4qvrq0UqwhVlxYm1QDSMRs96Dk2AE3HHZZnxgbUdqADuBxYPjMe4OLABTG5t68fCZjNxnTJ3wWSdv0GA1RIPc6RO43UilQbJOwxYXALh65cl7RUQI/vH3uwPzxEBy+evbTdIr7dVAE0YGjehYeI6N7q6h0I4IwioNeh5j42fXIfMQGnrAZYGwLw0QZfidX2K2b/EwA4mQKIQpxpxQVt5FN79I5v4DsA3oI2YTBNaKO01AF7aBiabdcZ4gOOp6Kmoupb4CMI2TfX68/x58Ej7BW7qgRAeAOo3/b55h/frdcfvgn8ihQBPjq0gUDA8oA6oGpDSCLRi+xpZG2lHeEyKa40mUxy3eqwOGy7dBcwjGzndanEbqd2sarMatKmJ2SA43muzVNyM4wBncdPPgWwDgUA9kSfD36sKwFYKIPQD5zn9Cw1AE8m0PyMBABsKAKsFk/nL5/2t74xD/ANHAuoDd5Tm72u0wH7rKDUjgUEOVIgh/ApoQ3aNuiGJW3DEgFGNlbSdOn5sZEoqoMHVgwgGcgA61oZdsSyvlOzxgOY2oXy0O00cQo6Huw14jUnCTB4DxEClvHw/NUbwaOt9ZTET6UUFeUkgK6ck0scKVtm1HXqKQDav5gcQL1rqgOoIoDkidMAkH1Ax4URgKig8OZvUWjFM3JvLwNEZePtvjQvAuhXCY3muIAR+gMAg/inkgAUqONmjweIphXS8c2nOjFDHq7zRwNMOUYEQFqr+28D6Ot/0K/o4iu+ELhzsf8CpBunfwGlbviSEpHL8gAAAABJRU5ErkJggg==";

/***/ }),

/***/ 524:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);

var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
    return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (g && (g = 0, op[0] && (_ = 0)), _) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
var skuUtil_1 = __webpack_require__(90827);
exports["default"] = {
    data: function () {
        return {
            currentSelect: [],
            options: [],
            products: [],
            show: false,
            notNeedLogin: G.aliSite ? false : G.userLogin,
            limitReached: false,
        };
    },
    methods: {
        open: function () {
            (__webpack_require__(5300).log)('skuViewer', 'popupOpen');
            this.show = true;
            this.notNeedLogin = G.aliSite ? true : G.userLogin;
            if (!this.notNeedLogin) {
                (__webpack_require__(5300).log)('skuViewer', 'notLogin');
            }
            if (!this.options.length) {
                this.load();
            }
        },
        close: function () {
            this.show = false;
        },
        optionClick: function (pidx, oidx) {
            this.$set(this.currentSelect, pidx, oidx);
        },
        setOptions: function (options) {
            this.options = options;
            if (this.options.length > 2) {
                for (var i = 2; i < this.options.length; i++) {
                    this.currentSelect.push(0);
                }
            }
        },
        setProducts: function (products) {
            this.products = products;
        },
        getOptionPrice: function (prop) {
            var _this = this;
            var otherProps = {};
            this.topOptions.forEach(function (option, idx) {
                var selectedOption = option.options[_this.currentSelect[idx]];
                otherProps[option.name] = selectedOption.value;
            });
            var product = (0, skuUtil_1.selectProductBySkuProps)(__assign(__assign({}, prop), otherProps), this.products);
            if (product && product.length) {
                return product[0].price;
            }
            console.log('product not found', prop, this.products);
            return 0;
        },
        getOptionLink: function (prop) {
            var _this = this;
            var otherProps = {};
            this.topOptions.forEach(function (option, idx) {
                var selectedOption = option.options[_this.currentSelect[idx]];
                otherProps[option.name] = selectedOption.value;
            });
            var product = (0, skuUtil_1.selectProductBySkuProps)(__assign(__assign({}, prop), otherProps), this.products);
            if (product && product.length) {
                if (G.aliSite) {
                    return "https://item.taobao.com/item.htm?id=".concat(G.dp.dpId.split('-')[0], "&skuId=").concat(product[0].skuId);
                }
                return "https://item.jd.com/".concat(product[0].skuId, ".html");
            }
            // console.log('product not found', prop, this.products)
            return '';
        },
        secondOptionHasPrice: function (firstOption) {
            var _this = this;
            var optionPrices = this.secondOption.options.map(function (optionB) {
                var _a;
                return _this.getOptionPrice((_a = {}, _a[_this.firstOption.name] = firstOption.value, _a[_this.secondOption.name] = optionB.value, _a));
            });
            return optionPrices.some(function (price) { return price > 0; });
        },
        goLogin: function () {
            var u = encodeURIComponent(location.href);
            location.href = "https://www.gwdang.com/user/login?ext=1&from_url=".concat(u);
        },
        load: function () {
            return __awaiter(this, void 0, void 0, function () {
                var skuProps, productPrice, productPrice, e_1;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            if (!G.aliSite) return [3 /*break*/, 2];
                            return [4 /*yield*/, (__webpack_require__(30888).waitForConditionFn)(function () {
                                    return !!G.aliSkuInfo;
                                })];
                        case 1:
                            _a.sent();
                            _a.label = 2;
                        case 2:
                            skuProps = G.site === '360buy' ? (0, skuUtil_1.extractJdSkuProps)() : (0, skuUtil_1.extractAliSkuProps)(G.aliSkuInfo);
                            this.setOptions((0, skuUtil_1.reArangeSkuProps)(skuProps.filter(function (x) { return x.options.length > 1; })));
                            if (!G.aliSite) return [3 /*break*/, 3];
                            productPrice = (0, skuUtil_1.extractAliProductPrice)(G.aliSkuInfo);
                            this.setProducts(productPrice);
                            return [3 /*break*/, 6];
                        case 3:
                            _a.trys.push([3, 5, , 6]);
                            return [4 /*yield*/, (0, skuUtil_1.extractJdProductPrice)()];
                        case 4:
                            productPrice = _a.sent();
                            this.setProducts(productPrice);
                            (__webpack_require__(5300).log)('skuViewer', 'loaded');
                            return [3 /*break*/, 6];
                        case 5:
                            e_1 = _a.sent();
                            console.error('get jd product price error', e_1);
                            if (e_1.message === 'limitReached') {
                                (__webpack_require__(5300).log)('skuViewer', 'limitReached');
                                this.limitReached = true;
                            }
                            return [3 /*break*/, 6];
                        case 6: return [2 /*return*/];
                    }
                });
            });
        }
    },
    computed: {
        topOptions: function () {
            // Return all options except the first two
            if (this.options.length < 3) {
                return [];
            }
            return this.options.slice(2);
        },
        firstOption: function () {
            // Return the first option
            if (this.options.length > 0) {
                return this.options[0];
            }
            return null;
        },
        secondOption: function () {
            // Return the second option
            if (this.options.length > 1) {
                return this.options[1];
            }
            return null;
        }
    }
};


/***/ }),

/***/ 538:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAa9JREFUSEutljtSAkEQhr8WzAzwBngC5QYoaJn5yFU4ARIYs8QEcgNRDyBmFoXlmpiqJ4AbsIHhVo3O7rAsCPsAOp3t/+vHTPcKEaaK5MhSA4oIeRR587kDfCF0yfAsLwwXyci8A3VMHpc7TziJKTps0pwH+gdQJWoIFpBLoh36RmfVlD7tsN8UQJVp/B1q8VXMkj7NsUAAMJFP0Veg1MeZeABT888lyrIoBocsBd0TH1Cig3AVGfF5DX4c6N0nTcyWPvtioh/Eej2NYCsHDxY8BiWOdnPZFnXANRvcxgKOKnCjby5pIE1RZd4S3/f0EFsDRqmamwYiDDVAxZZn9oMwpFWJbPxygMsGXJj32DiDj+7CGEUdMggNsfhkwuKtKvQ6UT5OuianE9dgr8k6Vz2Doi29uNari5n5+iZF2/ihxZdlouOy44+KJG9h16yGbzsuFP9c0ZFXqj6gSJ4s6x12LgWxzbDzIElHRrL4p8f12Cdxw6MheqsFS+v/yvQz0bdq/SszyET3JIMVuyMmmdi4VHXNZ5Ob+1cxAzpBOAX2gqyEIcoTe8elLTZ64c+1X7YCmhoUuUaxAAAAAElFTkSuQmCC";

/***/ }),

/***/ 655:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var classof = __webpack_require__(36955);

var $String = String;

module.exports = function (argument) {
  if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  return $String(argument);
};


/***/ }),

/***/ 658:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(40837);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("3fa9d3c0", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 666:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(93503);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("2e0e5b2e", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 725:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', showapp = $data.showapp;
    $$out += '<div id="mini_price_history_detail" class="mini-trend-detail" style="width: 680px;">\n    <div class="mini_price_history_detail_wrapper" style="float:left; width: 452px;">\n      <div class="max-min-priinfo"></div>\n      <div id="mini_price_history_detail_btn" style="margin-left: 24px; margin-top: 0" class="legend-btn-box gwd-row">\n        <span class="price-trend-sp pt-sp1 " style="margin-left: 0;" data-id="days180">\n          <em></em>\n          <span>到手价(单件)</span>\n        </span>\n        <span class="review-trend-sp" data-id="plotSpecial" style="margin-left: 10px">\n          <em></em>\n          <span>到手价(多件)</span>\n        </span>\n      </div>\n      <div id="mini_price_history_detail_chart" style="width: 452px;"></div>\n      <div id="mini_price_history_detail_info"></div>\n    </div>\n    <div id="big_tooltip" class="big_tooltip_box">\n    </div>\n\n    <div id="gwd-mini-promo-history"></div>\n    \n<!--    ';
    if (showapp) {
        $$out += '-->\n<!--    <div class="app-tuiguang">-->\n<!--      <p>立即扫码下载APP</p>-->\n<!--      <img class="app-tg-qrcode" ';
        $$out += 'src="https://cdn.gwdang.com/images/extensions/apptg181019/cli_1000px.png"';
        $$out += '>-->\n<!--      <div class="app-tg-item item-bijiage">-->\n<!--        <em ></em>-->\n<!--        <span>比价格</span>-->\n<!--      </div>-->\n<!--      <div class="app-tg-item item-history">-->\n<!--        <em></em>-->\n<!--        <span>查历史</span>-->\n<!--      </div>-->\n<!--      <div class="app-tg-item item-coupon">-->\n<!--        <em></em>-->\n<!--        <span>找优惠券</span>-->\n<!--      </div>-->\n<!--    </div>-->\n<!--    <style type="text/css">-->\n<!--      .showapp #mini_price_history_detail {-->\n<!--        width: 590px;-->\n<!--      }-->\n<!--      .app-tuiguang {-->\n<!--        width: 128px;-->\n<!--        height: 100%;-->\n<!--        float: left;-->\n<!--        border-left: 1px solid #e4e4e4;-->\n<!--        background: #fff;-->\n<!--        border-top: 1px solid #e4e4e4;-->\n<!--        position: relative;-->\n<!--        top: -1px;-->\n<!--      }-->\n<!--      .app-tuiguang p {-->\n<!--        width: 97px;-->\n<!--        height: 16px;-->\n<!--        line-height: 16px;-->\n<!--        text-align: left;-->\n<!--        padding: 0px;-->\n<!--        font-weight: bold;-->\n<!--        font-size: 12px;-->\n<!--        margin: 15px 0 0 17px;-->\n<!--      }-->\n<!--      .app-tg-qrcode {-->\n<!--        float: left;-->\n<!--        height: 128px;-->\n<!--        width: 128px;-->\n<!--        margin-bottom: 3px;-->\n<!--      }-->\n<!--      .app-tg-item {-->\n<!--        height: 22px;-->\n<!--        width: 100%;-->\n<!--        float: left;-->\n<!--        margin-bottom: 14px;-->\n<!--      }-->\n<!--      .app-tg-item em {-->\n<!--        float: left;-->\n<!--        height: 22px;-->\n<!--        width: 22px;-->\n<!--        margin-left: 23px;-->\n<!--      }-->\n<!--      .app-tg-item span {-->\n<!--        height: 22px;-->\n<!--        line-height: 22px;-->\n<!--        width: auto;-->\n<!--        float: left;-->\n<!--        color: #666;-->\n<!--        font-size: 13px;-->\n<!--        margin-left: 10px;-->\n<!--      }-->\n<!--      .item-bijiage em {-->\n<!--        background: url("https://cdn.gwdang.com/images/extensions/apptg181019/bjg.png") 0px 0px no-repeat;-->\n<!--      }-->\n<!--      .item-history em {-->\n<!--        background: url("https://cdn.gwdang.com/images/extensions/apptg181019/history.png") 0px 0px no-repeat;-->\n<!--      }-->\n<!--      .item-coupon em {-->\n<!--        background: url("https://cdn.gwdang.com/images/extensions/apptg181019/coupon.png") 0px 0px no-repeat;-->\n<!--      }-->\n<!--      #mini_price_history_detail .discount-price-re {-->\n<!--        left: 364px;-->\n<!--        right: inherit;-->\n<!--      }-->\n<!--    </style>-->\n<!--    ';
    }
    $$out += '-->\n  </div>';
    return $$out;
};

/***/ }),

/***/ 825:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ RateButtonvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ RateButton)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/aiRate/RateButton.vue?vue&type=template&id=c25490d8&scoped=true
var RateButtonvue_type_template_id_c25490d8_scoped_true = __webpack_require__(35570);
;// ./src/standard/module/aiRate/RateButton.vue?vue&type=template&id=c25490d8&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/aiRate/RateButton.vue?vue&type=script&lang=js
var RateButtonvue_type_script_lang_js = __webpack_require__(82963);
;// ./src/standard/module/aiRate/RateButton.vue?vue&type=script&lang=js
 /* harmony default export */ const aiRate_RateButtonvue_type_script_lang_js = (RateButtonvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/aiRate/RateButton.vue?vue&type=style&index=0&id=c25490d8&prod&lang=less
var RateButtonvue_type_style_index_0_id_c25490d8_prod_lang_less = __webpack_require__(8041);
;// ./src/standard/module/aiRate/RateButton.vue?vue&type=style&index=0&id=c25490d8&prod&lang=less

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/aiRate/RateButton.vue?vue&type=style&index=1&id=c25490d8&prod&scoped=true&lang=less
var RateButtonvue_type_style_index_1_id_c25490d8_prod_scoped_true_lang_less = __webpack_require__(3857);
;// ./src/standard/module/aiRate/RateButton.vue?vue&type=style&index=1&id=c25490d8&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/aiRate/RateButton.vue



;



/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  aiRate_RateButtonvue_type_script_lang_js,
  RateButtonvue_type_template_id_c25490d8_scoped_true/* render */.XX,
  RateButtonvue_type_template_id_c25490d8_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "c25490d8",
  null
  
)

/* harmony default export */ const RateButton = (component.exports);

/***/ }),

/***/ 863:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ BarTrendInfovue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ BarTrendInfo)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceTrend/BarTrendInfo.vue?vue&type=template&id=803e699c&scoped=true
var BarTrendInfovue_type_template_id_803e699c_scoped_true = __webpack_require__(96367);
;// ./src/standard/module/components/PriceTrend/BarTrendInfo.vue?vue&type=template&id=803e699c&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceTrend/BarTrendInfo.vue?vue&type=script&lang=js
var BarTrendInfovue_type_script_lang_js = __webpack_require__(90834);
;// ./src/standard/module/components/PriceTrend/BarTrendInfo.vue?vue&type=script&lang=js
 /* harmony default export */ const PriceTrend_BarTrendInfovue_type_script_lang_js = (BarTrendInfovue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(85072);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(97825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(77659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(55056);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(10540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(41113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceTrend/BarTrendInfo.vue?vue&type=style&index=0&id=803e699c&prod&scoped=true&lang=css
var BarTrendInfovue_type_style_index_0_id_803e699c_prod_scoped_true_lang_css = __webpack_require__(97995);
var BarTrendInfovue_type_style_index_0_id_803e699c_prod_scoped_true_lang_css_default = /*#__PURE__*/__webpack_require__.n(BarTrendInfovue_type_style_index_0_id_803e699c_prod_scoped_true_lang_css);
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceTrend/BarTrendInfo.vue?vue&type=style&index=0&id=803e699c&prod&scoped=true&lang=css

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());

      options.insert = insertBySelector_default().bind(null, "head");
    
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()((BarTrendInfovue_type_style_index_0_id_803e699c_prod_scoped_true_lang_css_default()), options);




       /* harmony default export */ const PriceTrend_BarTrendInfovue_type_style_index_0_id_803e699c_prod_scoped_true_lang_css = ((BarTrendInfovue_type_style_index_0_id_803e699c_prod_scoped_true_lang_css_default()) && (BarTrendInfovue_type_style_index_0_id_803e699c_prod_scoped_true_lang_css_default()).locals ? (BarTrendInfovue_type_style_index_0_id_803e699c_prod_scoped_true_lang_css_default()).locals : undefined);

;// ./src/standard/module/components/PriceTrend/BarTrendInfo.vue?vue&type=style&index=0&id=803e699c&prod&scoped=true&lang=css

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/PriceTrend/BarTrendInfo.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  PriceTrend_BarTrendInfovue_type_script_lang_js,
  BarTrendInfovue_type_template_id_803e699c_scoped_true/* render */.XX,
  BarTrendInfovue_type_template_id_803e699c_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "803e699c",
  null
  
)

/* harmony default export */ const BarTrendInfo = (component.exports);

/***/ }),

/***/ 932:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, $escape = $imports.$escape, storeSize = $data.storeSize, allLink = $data.allLink;
    $$out += '<div id="trend_com_detail" class="trend-com-detail">\n  <p>同款比价</p>\n  <ul>\n    ';
    $each(data, function ($value, $index) {
        $$out += '\n      <li>\n        <a href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank">\n          <img src="';
        $$out += $escape($value.icourl);
        $$out += '">\n          <span class="t-com-sitename" title="';
        $$out += $escape($value.site_name);
        $$out += '">';
        $$out += $escape($value.site_name);
        $$out += '</span>\n          <span class="t-com-price prifontf">\xA5';
        $$out += $escape($value.price);
        $$out += '</span>\n        </a>\n      </li>\n    ';
    });
    $$out += '\n  </ul>\n  ';
    if (storeSize > 6) {
        $$out += '\n  <a href="';
        $$out += $escape(allLink);
        $$out += '" target="_blank" class="t-all-link">\n    查看全部(';
        $$out += $escape(storeSize);
        $$out += ')\n  </a>\n  ';
    }
    $$out += '\n  <style type="text/css">\n    div#mini_price_history_detail {\n      width: 672px;\n    }\n    .trend-com-detail {\n      height: 100%;\n      width: 210px;\n      float: left;\n      border-left: 1px solid #e6e9eb;\n    }\n    .trend-com-detail * {\n      float: left;\n    }\n    .trend-com-detail>p {\n      color: #404547;\n      line-height: 37px;\n      float: left;\n      width: 210px;\n      font-size: 13px;\n      text-align: center;\n      padding: 0px;\n      margin: 0px;\n      background-color: #FBFBFB;\n    }\n    .trend-com-detail ul li {\n      height: 40px;\n      list-style: none;\n      width: 210px;\n      background-color: #fff;\n    }\n    .trend-com-detail ul li:hover {\n      background-color: #EDF1F2;\n    }\n    .trend-com-detail ul li a {\n      width: 210px;\n      height: 40px;\n    }\n    .trend-com-detail li img {\n      height: 16px;\n      width: 16px;\n      margin: 12px 8px 12px 10px;\n    }\n    .trend-com-detail span.t-com-sitename {\n      line-height: 40px;\n      width: 78px;\n      height: 40px;\n      text-align: left;\n      overflow: hidden;\n      color: #404547;\n    }\n    .trend-com-detail span.t-com-price {\n      float: right;\n      margin-right: 10px;\n      line-height: 40px;\n      color: #DE3935;\n      font-size: 14px;\n      font-weight: bold;\n    }\n    #mini_price_history .t-all-link {\n      font-weight: 400;\n      font-size: 12px;\n      line-height: 17px;\n      height: 17px;\n      float: right;\n      margin-right: 10px;\n      margin-top: 10px;\n      color: #999!important;\n      text-decoration: none!important;\n    }\n    #mini_price_history .t-all-link:hover {\n      color: #5ebeff!important;\n    }\n  </style>\n</div>\n';
    return $$out;
};

/***/ }),

/***/ 1103:
/***/ ((module) => {

"use strict";

module.exports = function (exec) {
  try {
    return { error: false, value: exec() };
  } catch (error) {
    return { error: true, value: error };
  }
};


/***/ }),

/***/ 1123:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "gwd-img-same-item gwd-inline-column",
    class: {
      "gwd-bjg": _vm.isBjg
    },
    style: {
      "min-height": _vm.minHeight
    },
    attrs: {
      href: _vm.link,
      target: "_blank"
    }
  }, [_c("img", {
    attrs: {
      src: _vm.item.img,
      alt: "",
      onerror: "this.src = 'https://cdn.gwdang.com/plt_web/template/metro/images/dp/loading.png'"
    }
  }), _vm._v(" "), _c("div", {
    staticClass: "gwd-row",
    staticStyle: {
      "margin-top": "6px",
      "justify-content": "space-between",
      "align-items": "baseline"
    }
  }, [_c("Price", {
    attrs: {
      price: _vm.item.price,
      fontSize: 18,
      unit: _vm.unit
    }
  }), _vm._v(" "), _c("span", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.salesText && _vm.salesText !== "NaN",
      expression: "salesText && salesText !== 'NaN'"
    }],
    staticClass: "gwd-sales"
  }, [_vm._v(_vm._s(_vm.salesText) + _vm._s(_vm.item.dpId.endsWith("-3") || _vm.item.dpId.endsWith("-228") ? _vm.transText("评论") : _vm.transText("已售")))])], 1), _vm._v(" "), _c("div", {
    staticClass: "gwd-title",
    staticStyle: {
      "margin-top": "7px"
    }
  }, [_vm.item.self ? _c("span", {
    staticClass: "gwd-jd-self"
  }, [_vm._v(_vm._s(_vm.transText("自营")))]) : _vm._e(), _vm._v("\n      " + _vm._s(_vm.item.title) + "\n    ")]), _vm._v(" "), _c("div", {
    staticClass: "gwd-item-promos"
  }, _vm._l(_vm.item.promos, function (promo) {
    return _c("span", {
      key: promo.tag + promo.text
    }, [_vm._v(_vm._s(_vm.getPromoText(promo)))]);
  }), 0), _vm._v(" "), _c("span", {
    staticClass: "gwd-shop-name gwd-row gwd-align",
    staticStyle: {
      "min-height": "18px"
    }
  }, [_c("img", {
    staticClass: "gwd-favicon",
    attrs: {
      src: `https://cdn.gwdang.com/images/favicon/${_vm.siteId}.png`,
      alt: ""
    }
  }), _vm._v(" "), _c("span", [_vm._v(_vm._s(_vm.item.shopName))])])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 1194:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAB6lJREFUWMPNWQlsVFUUfdMOFndFEwWXBFQiJKiIW4waF0zUKHs7nRaKCFYUQYJgW1BU1CDuGygC4sKiAaOCgnULKrIoLigiM/P/LJ217Uzb6XTaWXu87/3O8ju/pVWR3uTmZ/7y3nn33XvufXcY6yT7ylk/2ai/xmbUL5aLdU2SgbVLxSx5JFSmseVi1mQzssV8Tj43607MRv3N9hK2y2pkcJXqQB9DOsLK53CXMvA5bSW6XXKJfrQmOJOhX7m9RBd1lrL/BZiW8rk5BpMhr1wFTi7W30ToY2TqowIsW22KJWMmwiTAoZAdIxXrfuTojza4bEtainV7DxA2RjeuthtFIKAvqU3BdDWzGNjjrtK+BY6rezLFgoEtZmTK+i6DoohMPVFRohvVM8skBvME5dr52X8V3WS8AFlQF9ICyCeWZ5wO19O3wbnkBkiTCyAVdjwjYN6Vd6P+o6VwVI6CxahXgGoskH/Dn6VU3OvhgizFLMYBNssa4OwPjUTEYwKXdtLQ719Bnn66sKZtzgWItzQqzxIxtEo/wbVsrADO1TxerF4s0DZvOByLroDj4SthX3ARrDMH0cR54h0BtjuQBhbRBliYh9Cv29FZ6jcvgWkMQ3DvhznPHI9dD6lsAFzPjEXDtpcRNu1CrNGLZDwqFsiX2Z6IIx4KIGzeg9r1VZDvPlNxn14B5Oaf0h8Rn5QDoum7dXA+O7ZjwoxE/TUIbH8VsYATvZForRXOp27pGmSXFpykQ3DX+zkD1n34FNqcB7qcMNbgQZv1Z4T2f47Gr1fBv/kJ1K6dDe/yqfCtnkX31iBBFsyWRLhJbL2mD3cFkDu29b5zye++FFuUaAvBv+0VBKpX5IDiz5LRVtq+BHwbqmAp0sNcqES48MXxil/yq3kc+e+CS4TFs6Vxx9swT+wNwCLFyc2k9nnDCOwQ2BddiWQkrBqY+6l3XaUAmRLvynIBTriKhprHMvjevEc1TsRrIbc6Nje6NQHyyJpyHJp/+RSBbS/BUlIgBuVRnC0NX74BaeZZiDj/TN/jzi/PGUrf9Cda0lIOIh/WWecg0dqc/o4HjvWeM3OjOgcgX4GxgEy+NjPpoZ3CgjUPX4eI+5ASLLs/gGliHoI/bMwJlojjd3rvoNCo51AnNcGzvIxoJh9Rn5z+LhkNw/bA+Wme7RagPO1UNO/bopq4zXWQOG0Q8eBANH6/HvLsIfBmbVOsyYdYsz/HP7lvcrdIK/32vXW/8NFIVrAliUvtC0b0AGDK/4p08Lw+nUxfn/G3/V/Q/XyyHIOjYqQYlEur9RfI9w6Gc+ltKnDxYB1s80cQMZ9NO5BRaeoJsJQegwgtOiXt7UnYKy/NjeQug8SgRJy98nJE6+zpgdzPT1AywJ0DULeugiy9lcj2DBy6laFm4RU5lGMpOw6mcUo0p1SAoPsRn0UF0FE1qhcAU3xIA9ZQhuBbI3xv53qYeBSuuRfBnRsQ3L1Z8GVw9yaE/9yhAtgei6Dlj2/Q8lt1ln5BRD8OElkwVu/IvJskgBWX9h4gVzN91PKHEsHhg98Ki/g/WYooUQN3+ojXTFczZRGXGmAygVitTO+ZFXX/Ja5uChIe0bGAJ+ODxLW2+cN76IOdAZIVg3s2iYG4pQQB00Am7gZFCldaCvNRs+Qm9RZTHpbLiToMeeS7FHxELVJpgfBvecZpiFNgpQFSANnmDOk9QKVyOU84vCDhVTNFIdFIHBgi/+Pq3/KMAO189LocgNK0k8lHByJIkR8P1iLwGfHqpDzivDMQz4r6eEsDBdPAHvBgp5JLmjYALX99pwzSXCcsYpt1Lm1JLJMFiBsttHLnY9d2AkhBQltpIV5tc+xP3/e8bFAs2FGuiXf9Tsh3ndLDTNJRkFrvG4xwBzgu/o+XwXwHUUzVZRR1mXom0RqElXjRUXmZmmaa6+FdPROBT18SqSwlzT9vIQsOQjIrk3BylylwDg/QoPhczeM3qmgg0doE65zBArh93oXCqTvn0tCv25BTh2lIq/QjbHOHIhlrS99r2V8tdqH7YoGjn3w86qgiSdFKug7cuVGpNnhA0JbxYrRH9R4BD2x9Ea7nJ4qyiotvzWw4n7xZnderlysFRrcAaQX2+ReLrVHzRbsYMFVUiuPAgyMI5B5BsOnXRNJvQCsVDP6tz8H5xGjK6/1gup0inoi8bn0FPHSOMRcVUFaqVk3herFQ7M5hyy0+uW3uMJr8h8yWUCrjFU22f4gAIspwLLwcbirxXcvuoDPHVSKt0SkxfSZxU/XteWES3MvGUHCUoPa9CoRpi1V5vuYAZZyTxPs9qgfF5FNOEhUxl9p35irpTSMdipNax0EpfWJLucudJ6oiVdMfafF2KmA1q+ksgCHNgpXUs2IabDzBF/2Ds60xH97XyihnL0DdxirUb1xE14WoffdBqoTKFRcoO147OFTHTjq4W7sh6n9zKE8dQVXFQkoPM7asAPQzi5FaH5P7ZuvDXMweEc0jW19uHvEWF1lxb99rvzGl/Sa6q32sgUlt6Khk1N+o6rJSWZRuAUtHtQXMqAXMyjX71HKRfjSBpCa6TjS2/+8mOm/gyyVsdLed/vTfECXsUdnIgvKR/xsiqPwNwa7ZNyr3b4i/AfH090faFiMcAAAAAElFTkSuQmCC";

/***/ }),

/***/ 1365:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _node_modules_ts_loader_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_script_lang_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(524);
/* harmony import */ var _node_modules_ts_loader_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_script_lang_ts__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_ts_loader_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_script_lang_ts__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_ts_loader_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_script_lang_ts__WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_ts_loader_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_script_lang_ts__WEBPACK_IMPORTED_MODULE_0__[__WEBPACK_IMPORT_KEY__]
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_ts_loader_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_script_lang_ts__WEBPACK_IMPORTED_MODULE_0___default())); 

/***/ }),

/***/ 1373:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(26910);
__webpack_require__(3362);
const {
  default: MiniSameList
} = __webpack_require__(26787);
const extConsole = __webpack_require__(7129);
module.exports = {
  async init() {
    $('body > #gwd_mini_compare').remove();
    await (__webpack_require__(41761).met)('dpSlist');
    let price = await (__webpack_require__(41761).met)('NowPrice');
    if (G.dp.price && price > G.dp.price) {
      price = G.dp.price;
    }
    let items = G.dp.slist.filter(x => x.url_crc);
    let skuId = (__webpack_require__(60340).getParameterByName)('skuId');
    if (G.site === 'taobao' && window.Hub) {
      let sku = Hub.config.get('sku');
      skuId = sku.skuId;
    }
    if (skuId && G.allowBackgroundRequest) {
      // try {
      //   const tbHighValueSameItems = await require('common/thirdPartyApis/taobaoHighValueUserSameItem').get(G.dp.itemId, skuId)
      //   if (tbHighValueSameItems && tbHighValueSameItems.data && tbHighValueSameItems.data.result) {
      //     const newItems = (tbHighValueSameItems.data.result.filter(item => item.rebate).map(item => {
      //       item.is_tmall = item.shopTag.includes('XXXXXX-16')
      //       item.title = item.itemTitle
      //       item.price = item.zkPrice
      //       item.shop = item.shopName
      //       item.dpId = `${item.itemId}-${item.is_tmall ? '83': '123'}`
      //       return item
      //     }))
      //     items = items.concat(newItems)
      //   }
      // } catch (e) {
      //   console.error(e)
      // }
    }
    (__webpack_require__(41761).setMet)('miniItemList', items);
    const existedShops = [];
    let data = items.map(item => {
      item.site = item.is_tmall ? '83' : '123';
      item.view_price = item.price;
      item.shopName = item.shop;
      if (!item.dpId) {
        item.dpId = `${item.url_crc}-${item.site}`;
      }
      if (!item.soldNum) {
        item.soldNum = item.sales;
      }
      item.url = `${G.tb_server}/extension/qrpage?directLink=1&dp_id=${item.dpId}&title=${encodeURIComponent(item.title)}&price=${item.view_price}&shopName=${encodeURIComponent(item.shopName)}&img=${encodeURIComponent(item.img)}&sellAmount=${encodeURIComponent(item.soldNum)}&union=${G.union}`;
      return item;
    }).filter(item => {
      if (existedShops.includes(item.shopName)) {
        return false;
      }
      if (item.dpId.split('-')[0] === G.dp.dpId.split('-')[0]) {
        return false;
      }
      existedShops.push(item.shopName);
      return true;
    });
    data.sort((a, b) => a.view_price - b.view_price);
    let el = '#gwd_mini_compare';
    // if (G.from_device === 'bijiago' && !$(el).length) {
    //   el = document.createElement('div')
    //   el.style.borderRight = '1px solid #e6e9eb'
    //   $('.bjgext-mini-trend').after(el)
    //   $('.gwd-middle-tmall').remove()
    // }

    // data = [...data, ...data]
    // for (let i = 0; i < 18; i++) {
    //   data.push(data[0])
    // }
    if (G.aliUIVersion !== '0.2.55') {
      await (__webpack_require__(30888).waitForConditionFn)(() => !$('.miniPanel').length);
    }
    let miniBarEl;
    if (data.length) {
      const position = {};
      if (G.aliUIVersion !== '0.2.55') {
        await (__webpack_require__(60340).sleep)(100);
        await (__webpack_require__(30888).waitForConditionFn)(() => $(el).length);
        const bodyOffset = (__webpack_require__(60340).getBodyOffset)(el);

        // 这个仅作为占位，实际悬浮后的组件位于body下面
        let miniBarApp = new Vue({
          el: el,
          render: h => h(MiniSameList, {
            props: {
              data: data,
              pri: parseFloat(price),
              position: {}
            }
          })
        });
        miniBarEl = miniBarApp.$el;
        el = document.createElement('div');
        el.style.position = 'absolute';
        el.style.top = bodyOffset.top + 'px';
        el.style.left = bodyOffset.left + 'px';
        document.body.appendChild(el);
        position.top = bodyOffset.top;
        position.left = bodyOffset.left;
        position.width = bodyOffset.width;
        position.height = bodyOffset.height;
      }
      // await require('common/commonUtil').sleep(100)
      const app = new Vue({
        el: el,
        data() {
          return {
            position: position
          };
        },
        render: h => h(MiniSameList, {
          props: {
            data: data,
            pri: parseFloat(price),
            position: position
          }
        }),
        mounted() {
          // when window resize, update position
          const posReset = () => {
            const bodyOffset = (__webpack_require__(60340).getBodyOffset)(miniBarEl);
            this.position.top = bodyOffset.top;
            this.position.left = bodyOffset.left;
            this.position.width = bodyOffset.width;
            this.position.height = bodyOffset.height;
          };
          window.addEventListener('resize', posReset);
          setTimeout(() => {
            posReset();
          }, 500);
        }
      });
      G.miniCompareApp = app;
    }
  },
  reset() {
    $('#gwd_mini_compare').remove();
    G.miniCompareApp = null;
  }
};

/***/ }),

/***/ 1625:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var uncurryThis = __webpack_require__(79504);

module.exports = uncurryThis({}.isPrototypeOf);


/***/ }),

/***/ 1717:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.show && (!_vm.notNeedLogin || _vm.products.length || _vm.limitReached),
      expression: "show && (!notNeedLogin || products.length || limitReached)"
    }],
    staticClass: "gwd-popup-bg",
    on: {
      click: _vm.close
    }
  }, [_c("div", {
    staticClass: "gwd-popup gwd-column gwd-align",
    on: {
      click: function ($event) {
        $event.stopPropagation();
      }
    }
  }, [_c("img", {
    staticStyle: {
      width: "24px",
      height: "24px",
      position: "absolute",
      right: "24px",
      top: "24px",
      cursor: "pointer"
    },
    attrs: {
      src: "https://cdn.gwdang.com/images/extensions/ai/close@2x.png",
      alt: ""
    },
    on: {
      click: _vm.close
    }
  }), _vm._v(" "), _c("div", {
    staticStyle: {
      height: "24px",
      "font-size": "20px",
      color: "#111",
      "font-weight": "bold",
      "margin-top": "22px"
    }
  }, [_vm._v("一键查多款式到手价-购物党比价\n    ")]), _vm._v(" "), _c("div", {
    staticStyle: {
      "margin-top": "8px",
      "font-size": "13px",
      color: "#999"
    }
  }, [_vm._v("价格仅供参考，以平台实际为准")]), _vm._v(" "), _c("hr", {
    staticStyle: {
      width: "100%",
      height: "1px",
      "background-color": "#E6E9EB",
      "margin-top": "18px",
      border: "none"
    }
  }), _vm._v(" "), _vm.notNeedLogin && this.products.length ? _c("div", {
    staticClass: "gwd-column gwd-content"
  }, [_vm._l(_vm.topOptions, function (prop, pidx) {
    return _c("div", {
      key: `opt-${pidx}`,
      staticClass: "gwd-row gwd-select"
    }, [_c("span", {
      staticClass: "gwd-label"
    }, [_vm._v(_vm._s(prop.name) + ":")]), _vm._v(" "), _c("div", {
      staticStyle: {
        flex: "1"
      }
    }, _vm._l(prop.options, function (option, oidx) {
      return _c("div", {
        key: `opt-${pidx}-${oidx}`,
        class: {
          "gwd-select-option": true,
          "gwd-select-option-active": _vm.currentSelect[pidx] === oidx
        },
        on: {
          click: function ($event) {
            return _vm.optionClick(pidx, oidx);
          }
        }
      }, [_vm._v("\n            " + _vm._s(option.value) + "\n          ")]);
    }), 0)]);
  }), _vm._v(" "), _vm._l(_vm.firstOption.options, function (option, idxA) {
    return _vm.firstOption && (_vm.secondOption ? _vm.secondOptionHasPrice(option) : _vm.getOptionPrice({
      [_vm.firstOption.name]: option.value
    })) ? _c(_vm.secondOption ? "div" : "a", {
      key: `p-opt-${idxA}`,
      tag: "component",
      staticClass: "gwd-column",
      class: {
        "gwd-first-option": true,
        "gwd-single": _vm.secondOption
      },
      attrs: {
        href: _vm.getOptionLink({
          [_vm.firstOption.name]: option.value
        }),
        target: "_blank"
      }
    }, [_c("div", {
      staticClass: "gwd-row gwd-align",
      staticStyle: {
        height: "52px"
      }
    }, [option.img ? _c("img", {
      staticClass: "gwd-option-img",
      attrs: {
        src: option.img,
        alt: ""
      }
    }) : _vm._e(), _vm._v(" "), _c("span", {
      staticStyle: {
        "font-size": "16px",
        color: "#333"
      }
    }, [_vm._v(_vm._s(option.value))]), _vm._v(" "), !_vm.secondOption ? [_c("div", {
      staticStyle: {
        flex: "1"
      }
    }), _vm._v(" "), _c("span", {
      staticStyle: {
        "font-weight": "bold",
        "font-size": "18px",
        color: "#e03024",
        "white-space": "nowrap"
      }
    }, [_vm._v("¥" + _vm._s(_vm.getOptionPrice({
      [_vm.firstOption.name]: option.value
    })))])] : _vm._e()], 2), _vm._v(" "), _vm.secondOption ? _c("div", _vm._l(_vm.secondOption.options, function (optionB, idxB) {
      return _vm.getOptionPrice({
        [_vm.firstOption.name]: option.value,
        [_vm.secondOption.name]: optionB.value
      }) ? _c("a", {
        key: `p-opt-${idxA}-${idxB}`,
        staticClass: "gwd-second-option gwd-inline-column gwd-align",
        attrs: {
          href: _vm.getOptionLink({
            [_vm.firstOption.name]: option.value,
            [_vm.secondOption.name]: optionB.value
          }),
          target: "_blank"
        }
      }, [_c("span", {
        staticStyle: {
          color: "#404547",
          "font-size": "14px",
          "line-height": "16px"
        }
      }, [_vm._v(_vm._s(optionB.value))]), _vm._v(" "), _c("span", {
        staticStyle: {
          color: "#e03024",
          "font-size": "16px",
          "margin-top": "6px",
          "line-height": "16px",
          "font-weight": "bold"
        }
      }, [_vm._v("¥" + _vm._s(_vm.getOptionPrice({
        [_vm.firstOption.name]: option.value,
        [_vm.secondOption.name]: optionB.value
      })))])]) : _vm._e();
    }), 0) : _vm._e()]) : _vm._e();
  })], 2) : _vm._e(), _vm._v(" "), !_vm.notNeedLogin ? _c("div", {
    staticClass: "gwd-column gwd-align gwd-login"
  }, [_c("div", {
    staticClass: "gwd-login-box gwd-column gwd-align"
  }, [_c("img", {
    staticStyle: {
      width: "413px",
      height: "219px",
      "margin-top": "20px"
    },
    attrs: {
      src: __webpack_require__(61749),
      alt: ""
    }
  }), _vm._v(" "), _vm._m(0), _vm._v(" "), _c("button", {
    staticClass: "gwd-login-btn",
    on: {
      click: _vm.goLogin
    }
  }, [_vm._v("去登录")])])]) : _vm._e(), _vm._v(" "), _vm.limitReached ? _c("div", {
    staticClass: "gwd-column gwd-align gwd-limit-reached"
  }, [_c("img", {
    style: `width: 198px; height: 198px; margin-top: 75px;`,
    attrs: {
      src: "https://cdn.gwdang.com/images/extensions/ai/limitReached@2x.png",
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "font-size": "16px",
      color: "#404547",
      "line-height": "22px",
      "margin-top": "-20px",
      "margin-bottom": "75px"
    }
  }, [_vm._v("今日次数已用完～明日再来吧")])]) : _vm._e()])]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      "margin-top": "22px"
    }
  }, [_c("img", {
    staticStyle: {
      width: "18px",
      height: "18px"
    },
    attrs: {
      src: __webpack_require__(2151),
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "margin-left": "4px",
      color: "#333",
      "font-size": "16px",
      "font-weight": "bold"
    }
  }, [_vm._v("登录解锁多规格到手价，帮助您快速比较")])]);
}];
render._withStripped = true;

/***/ }),

/***/ 1909:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, c_server = $data.c_server, s_server = $data.s_server;
    $$out += '<div class="gwd_chooseCredit bjd_btn_box">\n  <a href="';
    $$out += $escape(c_server);
    $$out += '" target="_blank" title="购物党"></a>\n  <span class="bjd_addcart">支持单币 / 双币信用卡</span>\n  <span class="bjd_close"></span>\n</div>\n<style type="text/css">\n  .gwd_chooseCredit {\n    width: 249px;\n    height: 36px;\n    background-color: #fff;\n    color: #494b4d;\n    position: absolute;\n    line-height: 35px;\n    border-bottom-right-radius: 28px;\n    border-top-right-radius: 28px;\n    font-size: 14px;\n    border: 1px solid #47befe;\n    font-family: \'Microsoft Yahei\';\n    top: 0px;\n    z-index: 99;\n    left: 365px;\n  }\n  .amazon-de .gwd_chooseCredit {\n    top: -3px;\n    left: 507px;\n  }\n  .gwd_chooseCredit a, .gwd_chooseCredit span {\n    float: left;\n    margin-left: 19px;\n  }\n  .gwd_chooseCredit .bjd_addcart {\n    cursor: text;\n  }\n  .gwd_chooseCredit a {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_siteicon.png\') 0px 6px no-repeat;\n    background-size: 24px 22px;\n    height: 35px;\n    width: 26px;\n    margin-left: 7px;\n  }\n  .bjd_close {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_closeicon.png\') 0px 0px no-repeat;\n    width: 20px;\n    height: 20px;\n    margin-top: 12px;\n    background-size: 12px 12px;\n  }\n  .gwd_chooseCredit:before{\n    border: 29px solid transparent;\n    border-right-color: #47befe;\n    content: "";\n    border-bottom-width: 18px;\n    border-top-width: 18px;\n    position: absolute;\n    left: -58px;\n    width: 0px;\n    height: 0px;\n    top: -1px;\n  }\n  .gwd_chooseCredit:after {\n    border: 27px solid transparent;\n    border-right-color: #fff;\n    content: "";\n    border-bottom-width: 17px;\n    border-top-width: 17px;\n    border-left-width: 30px;\n    position: absolute;\n    left: -57px;\n    width: 0px;\n    height: 0px;\n    top: 0px;\n  }\n  #nav-bar {\n    position: relative;\n  }\n  .a-spacing-base {\n    position: relative;\n  }';
    return $$out;
};

/***/ }),

/***/ 2035:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _default = exports.A = {
  init() {
    if (G.site !== '360buy') {
      return;
    }
    this.doIt();
  },
  doIt() {
    let data = {
      text: $('#p-ad').text(),
      link: $('#p-ad a').attr('href'),
      url: location.href,
      time: Date.now()
    };
    if (data.text) {
      (__webpack_require__(49388).post)(`${G.server}/extension?ac=sendPromos&site_id=3&jfrom=jcoupon`, JSON.stringify(data), false);
    }
  }
};

/***/ }),

/***/ 2131:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _Price = _interopRequireDefault(__webpack_require__(83007));
const util = __webpack_require__(30888);
var _default = exports.A = {
  components: {
    Price: _Price.default
  },
  props: ['item'],
  data() {
    return {
      isBjg: G.from_device === 'bijiago'
    };
  },
  methods: {
    transText: __webpack_require__(54600),
    getPromoText(promo) {
      if (promo.tag === "coupon" && promo.text.indexOf('减') > -1) {
        return promo.text.split('减')[1] + '元券';
      }
      return promo.text;
    }
  },
  computed: {
    unit() {
      return this.item.dpId.endsWith('-228') ? '$' : '¥';
    },
    link() {
      const isAli = this.item.dpId.endsWith('-83') || this.item.dpId.endsWith('-123');
      if (G.aliSite && isAli) {
        // append title, pic, shop, price
        const dpParams = `&title=${encodeURIComponent(this.item.title)}&img=${encodeURIComponent(this.item.img)}&shopName=${encodeURIComponent(this.item.shopName)}&price=${encodeURIComponent(this.item.price)}&sellAmount=${encodeURIComponent(this.salesText)}`;
        const domain = G.from_device === 'bijiago' ? 'bijiago' : 'gwdang';
        return `https://tb.${domain}.com/extension/qrpage?directLink=1&dp_id=${this.item.dpId}&from=img_search&union=${G.union}&from_device=${G.from_device}&position=extImgSame${dpParams}`;
        // return `https://item.taobao.com/item.htm?id=${this.item.dpId.replace('-83', '').replace('-123', '')}`
      }
      if (isAli) {
        return `${G.u_server}/redirect/tao?id=${this.item.dpId.replace('-83', '').replace('-123', '')}&from=img_search&union=${G.union}&from_device=${G.from_device}`;
      }
      let siteId = this.item.dpId.split('-')[1];
      if (siteId === '3') {
        return `${G.u_server}/redirect/common?dp_id=${this.item.dpId}&from=img_search&s=dm`;
      }
      return `${G.u_server}/union/go/?site_id=${siteId}&target_url=${encodeURIComponent(this.item.url)}&union=gwdang&column=img_search`;
      // if (this.item.dpId.endsWith('-370')) {
      //   return `https://item.taobao.com/item.htm?id=${this.item.dpId.replace('-83', '')}`
      // }
      // return `https://item.jd.com/${this.item.id}.html`
    },
    minHeight() {
      if (this.item.dpId.endsWith('-3')) {
        return '350px';
      }
      return '321px';
    },
    salesText() {
      return util.numberToString(this.item.salesAmount, 1);
    },
    siteId() {
      return this.item.dpId.split('-')[1];
    }
  }
};

/***/ }),

/***/ 2151:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABGFJREFUWEetWFF22kYUfW8kcDA0xTvAK6jbwDn9Kw74nNg/ob+tcwwrMKzAsALjFYCb5tvOj+uTQFH+WnAbdmB2YBoDzgGk18yAlBHG0si2/pCe3lzdee/OfSDc80pmr9NI+h4wKw0EiXmaLgL2gOFp+13k+D6pMehLAgiymgRieQqEHpFVuGh8YwRZIxCgVGa0D0hV1wJiYerxe0iYAHTYEmEIrNxuRCqqoJQBpbYGeSCs2YkJyACgyiIDP6ZvEqZmlgFxz45FYvl2U20LlQBtvLhKhMxwy94mBKi0G9Gy11cns9dlBHYwj+lPpuP1rrHW92NKCVAqM6jbX6wCxl70Wea6ypDti99ER51mrPg4gLLDKwCIA0Gv04yu+yW1n2+kr+IhPXwp3gVQYsmXIdFVwFqzr4R6pxktqALicTJLBNamX9f5Avph61NeI00UM4Geu2isvA0G6FOOoXbC3zHRLPz7/mnd631fQMnngyIyPJwB8v/CxcVkhgks3pWezeALSGZI5QsXAT3LPDJDqa3BBhB+DNIpMii5Q1UY9mWIJ0/ZXabYKU6Xyfql2KFKgNwih9VOY7WkUtip7OgQgGbao9ihSoCEnmjhj/Y5pXI+JbPDgy/JZwVM0NNMtvmXERFn3oO6zH7ZpUf8JkLPQrP0z7unp/ICszjtAIDS9n2V2rFjlRiyg+cdwzWJK698dQEhTkRxBHSeEVAfLSh1/ox5ao+cKBAgvnWapped88mf/spYH9e752u+WxWIIQ4krD/Zt8Asygz41YPznKA+CY0rKsB8GeKmjNAqLwIhoC4SfABglyab/scX1yz9WwBrnRC+Q0CnhgQwhB4iK/tZW09ArrYVzUJ9ADqKTWNVw0BPbyOMGjPTgHjgdpHesnEnoNTWkPvmvNQpFRUgy7Zxwaxxtuqd98tdw1JAC4LWA5N+7hixrnLNLAlMpQcboOGJw9YdoG4B8hO0nTf8bAvtf6kRw5yYH84LbrFL1yge0UdpRP0lMXj7xy8rjk7N/LbVskExwNLfjVXX0OACJLzzVDg8US/6VPt+UV23f//cQgCpYLFukXXMmNkHCL1Ei4qEjk71z3afrMmECaZ05IZP6NVEH6/L3ecClMyMThApNwdUumjE3CMPAGz/9rmIDIQ/8r+wfra7csthyh4LAI1OY3Xzlg4tWFVP7/yidpNAHfio8xOCew4Dgj4xNMiyjs5fRe4cEpPZUQvnx4t8tDgM3RXgx8LO61EVnMkCTkfTlYJR8JYEntN9Nn5lSQC666EfGP58583N1wGSqHL2KuJpUeWcy0gQgNyuLpiRfxggeaKZzW0zQPecux7KkGvtuRvFh85d26+HOZyPORBwyzigxbkNgw5yi3WVq13FJ3rkkmuPBSx/vhsO9L+QmxA6Qqmw+p1G1CViKkXNY7gMsLAZP/v1fseLNER0MZUd0mxht0CpgnmMOLnbxJYh4h4jLLSbUZc/fozFVHKkng/yxOAQCY7/B/kLSv/DHfOeAAAAAElFTkSuQmCC";

/***/ }),

/***/ 2293:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var anObject = __webpack_require__(28551);
var aConstructor = __webpack_require__(35548);
var isNullOrUndefined = __webpack_require__(64117);
var wellKnownSymbol = __webpack_require__(78227);

var SPECIES = wellKnownSymbol('species');

// `SpeciesConstructor` abstract operation
// https://tc39.es/ecma262/#sec-speciesconstructor
module.exports = function (O, defaultConstructor) {
  var C = anObject(O).constructor;
  var S;
  return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);
};


/***/ }),

/***/ 2360:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

/* global ActiveXObject -- old IE, WSH */
var anObject = __webpack_require__(28551);
var definePropertiesModule = __webpack_require__(96801);
var enumBugKeys = __webpack_require__(88727);
var hiddenKeys = __webpack_require__(30421);
var html = __webpack_require__(20397);
var documentCreateElement = __webpack_require__(4055);
var sharedKey = __webpack_require__(66119);

var GT = '>';
var LT = '<';
var PROTOTYPE = 'prototype';
var SCRIPT = 'script';
var IE_PROTO = sharedKey('IE_PROTO');

var EmptyConstructor = function () { /* empty */ };

var scriptTag = function (content) {
  return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
};

// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
var NullProtoObjectViaActiveX = function (activeXDocument) {
  activeXDocument.write(scriptTag(''));
  activeXDocument.close();
  var temp = activeXDocument.parentWindow.Object;
  // eslint-disable-next-line no-useless-assignment -- avoid memory leak
  activeXDocument = null;
  return temp;
};

// Create object with fake `null` prototype: use iframe Object with cleared prototype
var NullProtoObjectViaIFrame = function () {
  // Thrash, waste and sodomy: IE GC bug
  var iframe = documentCreateElement('iframe');
  var JS = 'java' + SCRIPT + ':';
  var iframeDocument;
  iframe.style.display = 'none';
  html.appendChild(iframe);
  // https://github.com/zloirock/core-js/issues/475
  iframe.src = String(JS);
  iframeDocument = iframe.contentWindow.document;
  iframeDocument.open();
  iframeDocument.write(scriptTag('document.F=Object'));
  iframeDocument.close();
  return iframeDocument.F;
};

// Check for document.domain and active x support
// No need to use active x approach when document.domain is not set
// see https://github.com/es-shims/es5-shim/issues/150
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
// avoid IE GC bug
var activeXDocument;
var NullProtoObject = function () {
  try {
    activeXDocument = new ActiveXObject('htmlfile');
  } catch (error) { /* ignore */ }
  NullProtoObject = typeof document != 'undefined'
    ? document.domain && activeXDocument
      ? NullProtoObjectViaActiveX(activeXDocument) // old IE
      : NullProtoObjectViaIFrame()
    : NullProtoObjectViaActiveX(activeXDocument); // WSH
  var length = enumBugKeys.length;
  while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  return NullProtoObject();
};

hiddenKeys[IE_PROTO] = true;

// `Object.create` method
// https://tc39.es/ecma262/#sec-object.create
// eslint-disable-next-line es/no-object-create -- safe
module.exports = Object.create || function create(O, Properties) {
  var result;
  if (O !== null) {
    EmptyConstructor[PROTOTYPE] = anObject(O);
    result = new EmptyConstructor();
    EmptyConstructor[PROTOTYPE] = null;
    // add "__proto__" for Object.getPrototypeOf polyfill
    result[IE_PROTO] = O;
  } else result = NullProtoObject();
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
};


/***/ }),

/***/ 2367:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _Index = _interopRequireDefault(__webpack_require__(27334));
const arrowImg = __webpack_require__(95604);
var _default = exports.A = {
  props: ['img', 'site', 'price'],
  data() {
    return {
      arrow: arrowImg
    };
  },
  methods: {
    transText: __webpack_require__(54600),
    openApp() {
      if (!window.gwdImgApp) {
        const el = document.createElement('div');
        document.body.appendChild(el);
        window.gwdImgApp = new Vue({
          el,
          render: h => h(_Index.default, {
            props: {
              img: this.img,
              price: this.price
            },
            ref: 'index'
          })
        });
      }
      window.gwdImgApp.$refs.index.open();
    }
  }
};

/***/ }),

/***/ 2398:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAsCAYAAABovuiKAAAAAXNSR0IArs4c6QAAAdVJREFUSEvNVlFO20AQfbOzayEhUUepgkIicFBKCmoljpAb0CNwA7gBuUG4AUfhCCvb6jdH4DPFldhqXCWya/Exi5G6n5b9/ObNmzdL6OmQ4LwUZXgv3scAudMZaH8/ilyHEX8egsdjNVgNtMnzFUCZAa5AlPJoBD4cqcBqoO3Z+HJpGI+UOLjFIh6o2cHk+7d4oMr7y8DWwzkkXyMYbYrimog+UcAKQCr6iE6a0+matF9soD0tIHs6g+nDR1qBm6xbjMwgrbWhJNFWhq5GiYOdzdRgO0NuvM+Y7UMAljGCt5wdvE8rts9gRnJxriqvBdSbs3+XP+9ew+squrSqKB8DKANCJqz45Bh8cKAvbRe1xoAnR+A0VYHIy63292ZItzhT+2dLvRu1Eem4K60qigeJWjGjPLTTCcxgoNKp5aNfeX5LZNbR7W/+ettBrfD/hL/PDNun6BGRgQWQsXXrEMKlxImdTvUatXa/c3XUajOp1X4JfTMcgphVbD7O2TH+edPZsq7tfK4u7+8lQnY+QgqDNYiyd18idiv7v4naKi9vAuGe9vbgvsxVFqg1kukPIInFH3XUTifgmOlvOjvmJtIxpLs4V7f9TR+phGm83O89O5ZF87s/IaG3Cf8Fdl8AAAAASUVORK5CYII=";

/***/ }),

/***/ 2478:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var uncurryThis = __webpack_require__(79504);
var toObject = __webpack_require__(48981);

var floor = Math.floor;
var charAt = uncurryThis(''.charAt);
var replace = uncurryThis(''.replace);
var stringSlice = uncurryThis(''.slice);
// eslint-disable-next-line redos/no-vulnerable -- safe
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;

// `GetSubstitution` abstract operation
// https://tc39.es/ecma262/#sec-getsubstitution
module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
  var tailPos = position + matched.length;
  var m = captures.length;
  var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
  if (namedCaptures !== undefined) {
    namedCaptures = toObject(namedCaptures);
    symbols = SUBSTITUTION_SYMBOLS;
  }
  return replace(replacement, symbols, function (match, ch) {
    var capture;
    switch (charAt(ch, 0)) {
      case '$': return '$';
      case '&': return matched;
      case '`': return stringSlice(str, 0, position);
      case "'": return stringSlice(str, tailPos);
      case '<':
        capture = namedCaptures[stringSlice(ch, 1, -1)];
        break;
      default: // \d\d?
        var n = +ch;
        if (n === 0) return match;
        if (n > m) {
          var f = floor(n / 10);
          if (f === 0) return match;
          if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
          return match;
        }
        capture = captures[n - 1];
    }
    return capture === undefined ? '' : capture;
  });
};


/***/ }),

/***/ 2731:
/***/ ((__unused_webpack_module, exports) => {

const EXP_TABLE = new Uint8Array(512)
const LOG_TABLE = new Uint8Array(256)
/**
 * Precompute the log and anti-log tables for faster computation later
 *
 * For each possible value in the galois field 2^8, we will pre-compute
 * the logarithm and anti-logarithm (exponential) of this value
 *
 * ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields}
 */
;(function initTables () {
  let x = 1
  for (let i = 0; i < 255; i++) {
    EXP_TABLE[i] = x
    LOG_TABLE[x] = i

    x <<= 1 // multiply by 2

    // The QR code specification says to use byte-wise modulo 100011101 arithmetic.
    // This means that when a number is 256 or larger, it should be XORed with 0x11D.
    if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256)
      x ^= 0x11D
    }
  }

  // Optimization: double the size of the anti-log table so that we don't need to mod 255 to
  // stay inside the bounds (because we will mainly use this table for the multiplication of
  // two GF numbers, no more).
  // @see {@link mul}
  for (let i = 255; i < 512; i++) {
    EXP_TABLE[i] = EXP_TABLE[i - 255]
  }
}())

/**
 * Returns log value of n inside Galois Field
 *
 * @param  {Number} n
 * @return {Number}
 */
exports.log = function log (n) {
  if (n < 1) throw new Error('log(' + n + ')')
  return LOG_TABLE[n]
}

/**
 * Returns anti-log value of n inside Galois Field
 *
 * @param  {Number} n
 * @return {Number}
 */
exports.exp = function exp (n) {
  return EXP_TABLE[n]
}

/**
 * Multiplies two number inside Galois Field
 *
 * @param  {Number} x
 * @param  {Number} y
 * @return {Number}
 */
exports.mul = function mul (x, y) {
  if (x === 0 || y === 0) return 0

  // should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized
  // @see {@link initTables}
  return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]]
}


/***/ }),

/***/ 3026:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(61765);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("0c9213b4", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 3296:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

// TODO: Remove this module from `core-js@4` since it's replaced to module below
__webpack_require__(45806);


/***/ }),

/***/ 3316:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjU2IiBoZWlnaHQ9IjMwIiB2aWV3Qm94PSIwIDAgMjU2IDMwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBpZD0iU3VidHJhY3QiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTg3IDBDMTg3IDEuMTA0NTcgMTg2LjEwNSAyIDE4NSAyQzE4My44OTUgMiAxODMgMS4xMDQ1NyAxODMgMEgwVjMwSDE4M0MxODMgMjguODk1NCAxODMuODk1IDI4IDE4NSAyOEMxODYuMTA1IDI4IDE4NyAyOC44OTU0IDE4NyAzMEgyNTZWMEgxODdaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfMjEzXzMxMCkiLz4KPGRlZnM+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhcl8yMTNfMzEwIiB4MT0iLTkuNjA2NzZlLTA3IiB5MT0iMTkuNSIgeDI9IjI1NS45OTkiIHkyPSIxNy40MzYiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0YyODkzNiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGRjM1MUUiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4K";

/***/ }),

/***/ 3320:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-bjg-app[data-v-0650373c] {\n  width: 180px;\n  height: 122px;\n  background: linear-gradient(133deg, #FFFBF3 0%, #FFFDF2 100%);\n  border-radius: 12px;\n  margin-top: 58px;\n}\n.gwd-bjg-app .gwd-qr-container[data-v-0650373c] {\n  width: 59px;\n  height: 59px;\n  background: white;\n  position: relative;\n  margin-top: 10px;\n}\n", ""]);

// exports


/***/ }),

/***/ 3362:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

// TODO: Remove this module from `core-js@4` since it's split to modules listed below
__webpack_require__(10436);
__webpack_require__(16499);
__webpack_require__(82003);
__webpack_require__(7743);
__webpack_require__(51481);
__webpack_require__(40280);


/***/ }),

/***/ 3403:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _QrError = _interopRequireDefault(__webpack_require__(49357));
var _GiftMoneyMixin = _interopRequireDefault(__webpack_require__(21939));
var _default = exports.A = {
  name: "Subsidy",
  props: ['id', 'value', 'url', 'qr', 'price', 'oldPatch', 'tag', 'alterText'],
  components: {
    QrError: _QrError.default
  },
  mixins: [_GiftMoneyMixin.default]
};

/***/ }),

/***/ 3442:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _MemberCouponMixin = _interopRequireDefault(__webpack_require__(81507));
var _default = exports.A = {
  mixins: [_MemberCouponMixin.default]
};

/***/ }),

/***/ 3494:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


var domains = {
  '\\.jd\\.com': '360buy',
  'dangdang\\.com': 'dangdang',
  'vmei\\.com': 'vmei',
  'tootoo\\.cn': 'tootoo',
  'www\\.spider\\.com\\.cn': 'spider',
  '.*?boqii\\.com': 'boqii',
  'www\\.51din\\.com': '51din',
  'www\\.haituncun\\.com': 'haituncun',
  'yunhou\\.com': 'yunhou',
  '.*?vip\\.com': 'vip',
  'www\\.mallvv\\.com': 'homevv',
  'rayi\\.cn': 'rayi',
  'www\\.yaofang\\.cn': 'yaofang',
  'www\\.likeface\\.com': 'likeface',
  'www\\.guopi\\.com': 'guopi',
  'www\\.menglu\\.com': 'menglu',
  '(.*?)\\.m18\\.com': 'm18',
  '\\.efeihu\\.com': 'efeihu',
  '//www\\.mei\\.com/silo/.*-event-event\\.html': 'mei',
  'benlai\\.com': 'benlai',
  '//www\\.kjt\\.com': 'kjt',
  'www\\.kjt\\.com': 'kjt',
  'bestinfoods.com': 'bestinfoods',
  '\\.j1\\.com': 'j1',
  'yummy77\\.com': 'yummy77',
  '\\.360kxr\\.com': '360kxr',
  'item\\.feiniu\\.com': 'feiniu',
  'shop\\.lenovomobile\\.com': 'lenovo',
  'supuy\\.com': 'supuy',
  'supumall\\.com': 'supumall',
  'yohobuy\\.com': 'yohobuy',
  'mf910\\.com': 'mf910',
  'sundan\\.com': 'sundan',
  '\\.tao3c\\.com': 'tao3c',
  'aidai\\.com': 'aidai',
  'x\\.com\\.cn': 'x',
  'feifei\\.(?:cn|com)': 'feifei',
  'lovo\\.cn': 'lovo',
  'yintai\\.com': 'yintai',
  'banggo\\.com': 'banggo',
  '5lux\\.com': '5lux',
  'amazon\\.de': 'amazon_de',
  '\\.paixie\\.net': 'paixie',
  '\\.handu\\.com': 'handu',
  '\\.gou\\.com': 'm6go',
  'minshengec\\.com': 'minshengec',
  'lemall\\.com': 'lemall',
  'ocj\\.com\\.cn': 'ocj',
  'nike\\.com': 'nike',
  'sfbest\\.(?:hk|com)': 'sfbest',
  '\\.winxuan\\.com': 'winxuan',
  '\\.shopin\\.net': 'shopin',
  '\\.mbaobao\\.com': 'mbaobao',
  'www\\.ymatou\\.com': 'ymatou',
  'coocaa\\.com': 'coocaa',
  '111\\.com\\.cn': '111',
  'shop\\.lenovo\\.com\\.cn': 'lenovo',
  'fruitday\\.com': 'fruitday',
  'amazon\\.es': 'amazon',
  'meici\\.com': 'meici',
  'beibei\\.com': 'beibei',
  'keede\\.com': 'keede',
  'kede\\.com': 'keede',
  'xijie.com': 'xijie',
  'camel.com.cn': 'camel',
  'meituan\\.com': 'meituan',
  '\\.amazon\\.cn': 'amazon',
  '\\.amazon\\.com': 'amazon_us',
  'lenovo\\.com': 'lenovo',
  'easeeyes\\.com': 'easeeyes',
  'aimer\\.com\\.cn': 'aimer',
  'showjoy\\.com': 'showjoy',
  'yesmywine\\.com': 'yesmywine',
  'tiantian\\.com': 'tiantian',
  '\\.gap\\.cn': 'gap',
  'wangfujing\\.com': 'wangfujing',
  '\\.mei\\.com': 'mei',
  'amazon\\.ca': 'amazon_ca',
  'secoo\\.com': 'secoo',
  'www\\.metao\\.com': 'metao',
  'metao\\.com': 'metao',
  'amazon\\.com\\.br': 'amazon',
  'baiyangwang.com': 'baiyangwang',
  'bookuu\\.com': 'bookuu',
  '100yue\\.com': '100yue',
  'meilele\\.com': 'meilele',
  'd1\\.com\\.cn': 'd1',
  'm\\.d1\\.cn': 'd1',
  '.taqu.cn': 'taqu',
  'letao\\.com': 'letao',
  'www\\.kaola\\.com': 'kaola',
  'lamiu\\.com': 'lamiu',
  '\\.vmall\\.com': 'vmall',
  'morefood\\.com': 'morefood',
  '\\.xiji.com': 'xiji',
  'shop\\.letv\\.com': 'lemall',
  'vjia\\.com': 'vjia',
  'staples\\.cn': 'staples',
  '\\.zm7\\.cn': 'zm7',
  '\\.(?:moonbasa|korirl|rutisher|suorang|alaves|ing2ing|0-100s|qjherb|monteamor)\\.com': 'moonbasa',
  'fengqu\\.com': 'fengqu',
  'bestkeep\\.cn': 'bestkeep',
  'ocj\\.kr': 'ocj',
  'amazon\\.co\\.jp': 'amazon_jp',
  'zhen\\.com': 'zhen',
  '\\.xiu\\.com': 'xiu',
  '(\\.)?homevv\\.com': 'homevv',
  'daling.com': 'daling',
  'amazon\\.in': 'amazon',
  'feiniu\\.com': 'feiniu',
  'jiumei\\.com': 'jiumei',
  'taoxie\\.com': 'taoxie',
  'amazon\\.it': 'amazon',
  'zazhipu\\.com': 'zazhipu',
  '\\.bl\\.com': 'bl',
  '.*?bl\\.com': 'bl',
  'you.163.com': 'you163',
  'lingshi\\.com': 'lingshi',
  'hua\\.com': 'hua',
  '\\.m6go\\.com': 'm6go',
  'lefeng\\.com': 'lefeng',
  '360kad\\.com': '360kad',
  '\\.99read\\.com': '99read',
  '\\.miqi\\.cn': 'miqi',
  'qinqinbaby\\.com': 'qinqinbaby',
  'vancl\\.com': 'vancl',
  '\\.jiuxian\\.com': 'jiuxian',
  'jiae\\.com': 'jiae',
  'midea\\.com': 'midea',
  'amazon\\.com\\.mx': 'amazon',
  'xifuquan\\.com': 'xifuquan',
  'amazon\\.com': 'amazon_us',
  'wangjiu\\.com': 'wangjiu',
  'amazon\\.nl': 'amazon',
  '\\.okbuy\\.com': 'okbuy',
  'amazon\\.com\\.au': 'amazon',
  'sasa\\.com': 'sasa',
  '(\\.)?yiguo\\.com': 'yiguo',
  'muyingzhijia\\.com': 'muyingzhijia',
  '.*?zuipin\\.cn': 'zuipin',
  '\\.zhiwo\\.com': 'zhiwo',
  'store\\.logitech\\.com\\.cn': 'logitech',
  '\\.newegg(\\.com)?\\.cn': 'newegg',
  'efotile\\.com': 'efotile',
  '\\.ouku\\.com': 'ouku',
  '\\.no5\\.com\\.cn': 'no5',
  'haierjingshui\\.com': 'haierjingshui',
  'www\\.kzj365\\.com': 'kzj365',
  'wbiao\\.cn': 'wbiao',
  '\\.lusen\\.com': 'lusen',
  'jumei\\.com': 'jumei',
  'xgdq\\.com': 'xgdq',
  'mia\\.com': 'miyabaobei',
  'miyabaobei.hk': 'miyabaobei',
  'ule\\.com': 'ule',
  '\\.okhqb\\.com': 'okhqb',
  'jianke\\.com': 'jianke',
  '\\.jxdyf\\.com': 'jxdyf',
  'xtep\\.com\\.cn': 'xtep',
  'guojimami.com': 'guojimami',
  'ehaier\\.com': 'ehaier',
  'lbxcn\\.com': 'lbxcn',
  '\\.camel\\.com\\.cn': 'camel',
  '(?:vivian|linkmasa|masamaso)\\.(?:com|cn)': 'masamaso',
  'lifevc.com': 'lifevc',
  'chunshuitang\\.com': 'chunshuitang',
  '\\.bookschina\\.com': 'bookschina',
  'leyou\\.com\\.cn': 'leyou',
  '\\.yougou\\.com': 'yougou',
  'amazon\\.co\\.uk': 'amazon_uk',
  'gjw\\.com': 'gjw',
  'lining\\.com': 'lining',
  '\\.s\\.cn': 'scn',
  'hisense\\.com': 'hisense',
  '\\.china-pub\\.com': 'chinapub',
  'jumeiglobal\\.com': 'jumei',
  '\\.(xiao)?mi\\.com': 'mi',
  '\\.sephora\\.cn': 'sephora',
  'jinxiang.com': 'jxdyf',
  'purcotton.com': 'purcotton',
  'wstx.com': 'wstx',
  'zhongjiu.cn': 'zhongjiu',
  'www.kaluli.com': 'kaluli',
  'mall.to8to.com': 'to8to',
  'www.opposhop.cn': 'opposhop',
  'baobeigezi.com': 'baobeigezi',
  'www.markmall.com': 'markmall',
  'happigo\\.com': 'happigo',
  'aolaigo\\.com': 'aolaigo',
  'skg\\.com': 'skg',
  'coolpad\\.com': 'coolpad',
  'dixintong\\.com': 'dixintong',
  'vivo\\.com\\.cn': 'vivo',
  'luolai\\.cn': 'luolai',
  'aomygod\\.com': 'aomygod',
  'suanjuzi\\.com': 'suanjuzi',
  'gionee\\.com': 'gionee',
  'yao123\\.com': 'yao123',
  'tuhu\\.cn': 'tuhu',
  'walmart\\.com': 'walmart',
  'vsigo\\.cn': 'vsigo',
  'lookfantastic\\.com': 'lookfantastic',
  'ashford\\.com': 'ashford',
  'shopbop\\.com': 'shopbop',
  '6pm\\.com': '6pm',
  'amazon\\.fr': 'amazon_fr',
  'suning\\.com': 'suning',
  'gome.com.cn': 'gome',
  's\\.taobao\\.com': 'taobao',
  'list\\.tmall\\.com': 'tmall',
  'yhd.com': 'yihaodian',
  'xiaomiyoupin\\.com': 'youpin-mi',
  '\\.yangkeduo\\.com': 'yangkeduo'
};
var siteIdHash = {
  "amazon": 1,
  "dangdang": 2,
  "360buy": 3,
  "zol": 4,
  "fglady": 5,
  "ouku": 6,
  "newegg": 7,
  "kimiss": 8,
  "redbaby": 9,
  "m18": 10,
  "sephora": 12,
  "lefeng": 13,
  "scn": 14,
  "51buy": 15,
  "menglu": 16,
  "moonbasa": 17,
  "keede": 18,
  "vancl": 19,
  "okbuy": 21,
  "letao": 22,
  "buy007": 23,
  "taoxie": 24,
  "suning": 25,
  "coo8": 26,
  "lusen": 27,
  "gome": 28,
  'dazhongdianqi': 29,
  "yihaodian": 31,
  "womai": 32,
  "leyou": 33,
  "shopin": 34,
  "xiu": 35,
  "mbaobao": 36,
  "vjia": 37,
  '7cv': 38,
  "youpin-mi": 39,
  "chunshuitang": 40,
  "x": 41,
  "guopi": 42,
  "no5": 43,
  'sasa': 45,
  "360kxr": 50,
  "m6go": 51,
  "likeface": 52,
  "morefood": 54,
  "yaofang": 56,
  "99read": 59,
  "chinapub": 60,
  "bookschina": 61,
  "winxuan": 62,
  "efeihu": 63,
  "yintai": 66,
  "happigo": 72,
  "gap": 73,
  '5lux': 75,
  "tmall": 83,
  "tiantian": 84,
  "xijie": 85,
  "jumei": 86,
  "yougou": 93,
  "111": 94,
  'jianke': 97,
  "muyingzhijia": 98,
  "lingshi": 99,
  "banggo": 100,
  "yesmywine": 101,
  "jiumei": 102,
  "jiuxian": 103,
  "gjw": 108,
  "okhqb": 109,
  "bookuu": 110,
  "tao3c": 111,
  "d1": 115,
  "rayi": 120,
  "paixie": 122,
  "taobao": 123,
  "homevv": 124,
  "jxdyf": 125,
  "sfbest": 126,
  "benlai": 127,
  "tootoo": 128,
  "tuotuo": 128,
  "vip": 129,
  "vmall": 134,
  "lenovo": 135,
  'apple': 136,
  "zm7": 138,
  "miqi": 139,
  "zhiwo": 140,
  "j1": 141,
  'wangjiu': 142,
  'lamiu': 146,
  'aimer': 147,
  "wbiao": 153,
  'handu': 154,
  "ehaier": 155,
  "secoo": 156,
  'camel': 157,
  'masamaso': 158,
  'zhen': 162,
  'xifuquan': 164,
  "mi": 167,
  'lemall': 168,
  "meituan": 172,
  'ctrip': 173,
  "yiguo": 174,
  "yummy77": 175,
  "fruitday": 178,
  "feiniu": 180,
  "feifei": 181,
  'zuipin': 182,
  'yohobuy': 184,
  'lvmama': 185,
  'bestkeep': 188,
  'mf910': 194,
  'markmall': 194,
  "miyabaobei": 195,
  'ule': 196,
  'minshengec': 197,
  'wangfujing': 198,
  'nuomi': 199,
  "meilele": 201,
  "mogujie": 203,
  'elong': 206,
  "supumall": 210,
  'ly': 211,
  'lining': 213,
  'springtour': 215,
  'haierjingshui': 217,
  "coocaa": 218,
  'lifevc': 220,
  'kzj365': 222,
  "kaola": 223,
  "ymatou": 224,
  "metao": 225,
  'kjt': 226,
  "logitech": 227,
  'amazon_us': 228,
  'amazon_jp': 229,
  "xiji": 232,
  'nike': 233,
  '360kad': 234,
  'lbxcn': 235,
  'meici': 236,
  'beibei': 237,
  '6pm': 238,
  'shopbop': 241,
  'amazon_de': 246,
  'ashford': 247,
  'lookfantastic': 248,
  'vsigo': 252,
  '100yue': 256,
  'amazon_uk': 266,
  "daling": 267,
  "fengqu": 268,
  'mei': 269,
  'showjoy': 270,
  'ocj': 271,
  'sundan': 272,
  'easeeyes': 273,
  'yunhou': 274,
  'haituncun': 275,
  'walmart': 276,
  'vmei': 277,
  'jgb': 278,
  '51din': 279,
  'aidai': 280,
  'boqii': 281,
  'toursforfun': 282,
  'lulutrip': 283,
  'spider': 284,
  'jiae': 286,
  'zazhipu': 287,
  'xgdq': 288,
  'xtep': 289,
  'midea': 290,
  'staples': 291,
  'efotile': 292,
  'lovo': 294,
  'hua': 295,
  'zhe800': 296,
  'tuhu': 299,
  'taqu': 313,
  'bl': 347,
  'bestinfoods': 348,
  'you163': 349,
  'guojimami': 351,
  'baiyangwang': 352,
  'juanpi': 360,
  'purcotton': 364,
  'amazon_fr': 365,
  'amazon_ca': 366,
  'wstx': 367,
  'hisense': 368,
  'zhongjiu': 369,
  'yangkeduo': 370,
  'to8to': 371,
  'opposhop': 372,
  'baobeigezi': 373,
  'yao123': 374,
  'gionee': 376,
  'suanjuzi': 377,
  'aomygod': 378,
  'luolai': 379,
  'vivo': 380,
  'dixintong': 381,
  'coolpad': 382,
  'skg': 383,
  'aolaigo': 385
};
var siteName = {
  0: "购物党",
  1: "亚马逊",
  2: "当当网",
  3: "京东商城",
  4: "中关村在线",
  5: "风尚伊人网",
  6: "欧酷网",
  7: "新蛋中国",
  8: "闺蜜网",
  9: "红孩子",
  10: "麦网",
  11: "唯伊商城",
  12: "丝芙兰",
  13: "乐蜂网",
  14: "名鞋库",
  15: "易迅网",
  16: "梦露时尚网",
  17: "梦芭莎",
  18: "可得眼镜网",
  19: "凡客诚品",
  20: "淘秀-百丽鞋业",
  21: "好乐买",
  22: "乐淘",
  23: "奥讯运动商城",
  24: "淘鞋网",
  25: "苏宁易购",
  26: "库巴网(国美)",
  27: "绿森数码",
  28: "国美在线",
  29: "大中电器",
  30: "国美体育",
  31: "一号店",
  32: "中粮我买网",
  33: "乐友孕婴童",
  34: "上品折扣",
  35: "走秀网",
  36: "麦包包",
  37: "V+(凡客)",
  38: "七彩谷",
  39: "小米有品",
  40: "春水堂",
  41: "桔色成人",
  42: "果皮网",
  43: "No5时尚广场",
  44: "IDSHE.COM",
  45: "香港莎莎",
  46: "DHC中国",
  47: "烧包网",
  48: "日全食",
  49: "第九大道",
  50: "开心人大药房",
  51: "麦乐购",
  52: "悦美丽",
  53: "抢鲜网",
  54: "猫诚食品",
  55: "耀点100百货商城",
  56: "药房网",
  57: "中关村在线商城",
  58: "丽家宝贝",
  59: "99网上书城",
  60: "互动出版网",
  61: "中国图书网",
  62: "文轩网",
  63: "飞虎乐购",
  65: "致美网(SkinStore China)",
  66: "银泰百货",
  67: "趣玩",
  68: "UrCosme",
  69: "草莓网",
  70: "露倩网",
  71: "酷运动",
  72: "快乐购",
  73: "GAP中国",
  74: "妙乐乐母婴用品商城",
  75: "第五大道奢侈品网",
  76: "小主人网",
  77: "宜家家居官网",
  78: "新七天电器网",
  79: "达芙妮官网",
  80: "太平洋亲子网",
  81: "太平洋家居网",
  82: "缤购网(红孩子)",
  83: "天猫",
  84: "天天网",
  85: "西街运动网",
  86: "聚美优品",
  87: "小熊在线商城",
  88: "草莓派化妆品商城",
  89: "大货栈网上超市",
  90: "名品打折",
  91: "活力达保健品网",
  92: "12点零食",
  93: "优购网",
  94: "1药网",
  95: "导药网(上海复美大药房)",
  96: "烟悦网",
  97: "健客网",
  98: "母婴之家",
  99: "中国零食网",
  100: "邦购网",
  101: "也买酒",
  102: "酒美网",
  103: "酒仙网",
  104: "惠健康商城",
  105: "工贸家电",
  106: "后玛特网上超市",
  107: "虎扑识货",
  108: "购酒网",
  109: "华强北商城",
  110: "博库书城",
  111: "高鸿商城",
  112: "西单igo5",
  113: "新世界百货",
  114: "汉光百货",
  115: "D1优尚",
  116: "易斯来福",
  117: "优悦生活",
  118: "插座网",
  119: "ORBIS中国",
  120: "锐意网",
  121: "优1宝贝",
  122: "拍鞋网",
  123: "淘宝网",
  124: "为为网",
  125: "金象网",
  126: "顺丰优选",
  127: "本来生活",
  128: "沱沱工社",
  129: "唯品会",
  130: "聚尚网",
  131: "俏物悄语",
  132: "天品网",
  134: "华为商城",
  135: "联想商城",
  136: "苹果官网",
  138: "卓美网",
  139: "米奇网",
  140: "知我药妆",
  141: "健一网",
  142: "网酒网",
  143: "比度克",
  144: "裂帛服饰",
  145: "ESPRIT中文官网",
  146: "兰缪内衣",
  147: "爱慕官网",
  148: "卡当网",
  149: "丽子美妆",
  150: "麦德龙",
  151: "PBA美妆",
  152: "尚品网",
  153: "万表网",
  154: "韩都衣舍",
  155: "海尔商城",
  156: "寺库网",
  157: "骆驼官方商城",
  158: "玛萨玛索",
  159: "NOP男装",
  160: "牛尔官网",
  161: "高街网",
  162: "珍品网",
  163: "斯波帝卡",
  164: "皙肤泉",
  165: "米粒儿",
  167: "小米商城",
  168: "乐视商城",
  169: "多看阅读",
  170: "QQ网购",
  171: "大众点评",
  172: "美团",
  173: "携程网",
  174: "易果网",
  175: "美味七七",
  178: "天天果园",
  179: "聚美海外购",
  180: "飞牛网",
  181: "飞飞商城",
  182: "醉品商城",
  183: "贝备网",
  184: "有货",
  185: "驴妈妈旅游网",
  186: "青芒果",
  187: "优彩网",
  188: "跨境淘",
  189: "包包树",
  190: "满座网",
  191: "一城一品",
  192: "中国足彩网",
  193: "发彩网",
  194: "马克华菲",
  195: "蜜芽",
  196: "邮乐网",
  197: "民生商城",
  198: "王府井网上商城",
  199: "百度糯米",
  200: "去哪儿网",
  201: "美乐乐",
  202: "美丽说",
  203: "蘑菇街",
  204: "窝窝团",
  205: "锦江之星",
  206: "艺龙旅行网",
  207: "布丁酒店",
  208: "芒果网",
  209: "500彩票网",
  210: "速普商城",
  211: "同程网",
  213: "李宁官方商城",
  214: "新东方在线",
  215: "春秋旅游",
  216: "永乐票务",
  217: "海尔净水商城",
  218: "酷开商城",
  219: "魅族在线商店",
  220: "LifeVC",
  221: "努比亚官网",
  222: "康之家网上药店",
  223: "考拉海购",
  224: "洋码头",
  225: "蜜淘",
  226: "跨境通",
  227: "罗技官网",
  228: "亚马逊美国",
  229: "亚马逊日本",
  230: "eBay",
  231: "AliExpress",
  232: "西集网",
  233: "Nike",
  234: "康爱多网上药店",
  235: "老百姓网上药店",
  236: "美西时尚",
  237: "贝贝网",
  238: "6PM",
  239: "GNC美国官网",
  240: "MYHABIT",
  241: "SHOPBOP",
  242: "Walgreens",
  243: "STP",
  244: "美国新蛋",
  245: "Jomashop",
  246: "亚马逊德国",
  247: "Ashford",
  248: "LookFantastic",
  249: "REI",
  250: "iHerb",
  251: "Carter's",
  252: "视客眼镜网",
  253: "END.",
  254: "CampSaver",
  255: "乐天国际",
  256: "百悦网",
  257: "Woot",
  258: "海淘城",
  259: "Joe's NB Outlet",
  260: "FinishLine",
  261: "Vitacost",
  262: "Groupon",
  263: "Macy's",
  264: "Moosejaw",
  265: "GILT",
  266: "亚马逊英国",
  267: "达令",
  268: "丰趣海淘",
  269: "魅力惠",
  270: "尚妆网",
  271: "东方CJ",
  272: "顺电网上商城",
  273: "易视网",
  274: "云猴网",
  275: "海豚村",
  276: "Walmart",
  277: "唯美美妆",
  278: "金箍棒海外购",
  279: "我要订",
  280: "爱戴网",
  281: "波奇宠物商城",
  282: "途风网",
  283: "路路行",
  284: "蜘蛛网",
  285: "微软中国",
  286: "加意新品",
  287: "杂志铺",
  288: "小狗电器",
  289: "特步官方商城",
  290: "美的商城",
  291: "史泰博",
  292: "方太商城",
  293: "贝思客",
  294: "LOVO家纺",
  295: "中国鲜花礼品网",
  296: "折800",
  297: "暴风TV",
  298: "途家网",
  299: "途虎养车网",
  300: "HTC官方商城",
  301: "roseonly官网",
  302: "融360",
  303: "你我贷",
  304: "Cosme Shopping",
  305: "Diapers",
  306: "Windeln.de",
  307: "Babyneo.de",
  308: "Escentual",
  309: "TheWatchery",
  310: "Saks Fifth Avenue",
  311: "Estee Lauder",
  312: "Bic Camera",
  313: "他趣",
  314: "穷游网",
  315: "澳新优选",
  316: "无印良品",
  317: "Gmarket",
  318: "11号街",
  319: "Smartbargains",
  320: "雅虎日本商城",
  321: "布鲁明戴尔",
  322: "Mikihouse",
  323: "ToysRUs日本官网",
  324: "ComfortFirst",
  325: "金宝贝",
  326: "Albee Baby",
  327: "Babymarkt",
  328: "UGG官网",
  329: "Neiman Marcus",
  330: "Shoebuy",
  331: "Szul",
  332: "Timex",
  333: "Kay Jewelers",
  334: "eWatches",
  335: "Swarovski美国官网",
  336: "World of Watches",
  337: "Daniel Wellington",
  338: "Beauty Bay",
  339: "Beauty.com",
  340: "Beauty Bar",
  341: "SkinStore",
  342: "兰芝韩国官网",
  343: "BOSE美国官网",
  344: "Best Buy",
  345: "B&H",
  346: "索尼日本官网",
  347: "百联",
  348: "源品优购",
  349: "网易严选",
  350: "锦江国际",
  351: "国际妈咪",
  352: "百洋商城",
  353: "遨游网",
  354: "Roy Young中文官网",
  355: "Mediheal中文官网",
  356: "1001 pharmacies中文官网",
  357: "Lookfantastic中文官网",
  359: "开心保保险网",
  360: "卷皮网",
  361: "Booking.com",
  362: "澳洲PO药房中文官网",
  363: "德国BA保镖药房中文网",
  364: "全棉时代",
  365: "亚马逊法国",
  366: "亚马逊加拿大",
  367: "外设天下",
  368: "海信商城",
  369: "中酒网",
  370: "拼多多",
  371: "土巴兔家居商城",
  372: "OPPO在线商城",
  373: "宝贝格子",
  374: "国药网",
  375: "百程旅行网",
  376: "金立手机官网",
  377: "酸橘子",
  378: "奥买家全球购",
  379: "罗莱官方商城",
  380: "VIVO官方商城",
  381: "迪信通官方商城",
  382: "酷派商城",
  383: "SKG官网",
  384: "爱奇艺",
  385: "奥莱购",
  386: "每日优鲜",
  387: "圃神跨境",
  388: "Feelunique中文网",
  389: "Chemist Direct中文网",
  390: "Net Pharmacy中文网",
  391: "Pharmacy 4 Less中文网",
  392: "Pharmacy Direct中文网",
  393: "Amcal中文网",
  394: "La Redoute中文网",
  395: "德国UKA优卡有机中文网",
  396: "Erwin Mueller穆勒家居中文网",
  397: "Kiwi Discovery中文网",
  398: "Springlane中文网",
  399: "德国JAKO-O婴童用品中文网",
  400: "EasyToys中文站",
  401: "英国TLC中文网",
  402: "法国BM彼洋美食",
  403: "Dewaren德国狮子家中文网",
  404: "DC德式康线上药房中文官网",
  405: "荷兰之家中文站",
  406: "鱿鱼网",
  407: "KiwiStarcare官网",
  408: "ZUK联想手机商城",
  409: "Kiehl's美国官网",
  410: "Zappos",
  411: "COACH蔻驰中国官网",
  412: "YOOX中文官网",
  413: "韩国11街中文官网",
  414: "英超海淘",
  415: "HQhair.com",
  416: "Kate Spade",
  417: "Vitafy中文官网",
  418: "乐天网购",
  419: "家乐福网上商城",
  420: "茶七网",
  421: "普泽大药房",
  422: "Kohl's",
  423: "Body Building",
  424: "Nordstrom",
  425: "Costco",
  426: "Target",
  427: "Kmart",
  428: "Overstock",
  429: "Sears",
  430: "老板电器官方商城",
  431: "狗民网商城",
  432: "飞科商城",
  433: "欧普照明",
  434: "世界婴童网",
  435: "益丰大药房",
  436: "好订网",
  437: "爱回收",
  438: "野兽派",
  439: "九牧卫浴官方商城",
  440: "七匹狼官方商城",
  441: "链家",
  442: "我爱我家",
  443: "六间房秀场",
  444: "八百方网上药店",
  445: "优集品",
  446: "买卖宝",
  447: "优众网",
  448: "爱康国宾健康商城",
  449: "维也纳酒店官网",
  450: "M'CAKE",
  451: "美色商城",
  452: "诺心蛋糕官网",
  453: "简单学习网",
  454: "精华在线",
  455: "桃花坞",
  456: "钻石小鸟官网",
  457: "康美健康商城",
  458: "佐卡伊官网",
  459: "淘书网",
  460: "爱之谷",
  461: "铁友旅行网",
  462: "莆田网",
  463: "味多美官网",
  464: "林清轩官网",
  467: "美国购物网",
  468: "品尚汇",
  469: "柒牌官方商城",
  470: "游多多客栈",
  471: "1688平价精选",
  472: "优个网",
  473: "大朴网",
  474: "薇诺娜官网",
  475: "蔚蓝图书网",
  476: "山脉户外",
  477: "何金昌官网",
  478: "买茶网",
  479: "优e网",
  480: "51YOU旅游网",
  481: "北发图书网",
  482: "晶品网",
  483: "华佗药房",
  484: "威锋商城",
  485: "诺一良品",
  486: "和茶网",
  487: "天时汇官网",
  488: "趣网商城",
  489: "蜜柚旅行",
  490: "好药师网上药店",
  491: "IDX爱定客",
  492: "优雅100",
  493: "S&S女装",
  494: "倩碧美国官网",
  495: "华夏e当",
  496: "Brooks Brothers",
  497: "欧美淘",
  498: "印通天下",
  499: "哥伦比亚美国官网",
  500: "BEST全球购",
  501: "New Balance美国官网",
  502: "万集客",
  503: "Bally英国官网",
  504: "一嗨租车",
  505: "嘉利成",
  506: "多庆屋中文官网",
  507: "Forever 21",
  508: "摩登大道",
  509: "木鸟短租",
  510: "最会游",
  511: "中原地产",
  512: "Bobbi Brown美国官网",
  513: "Super-in",
  514: "汉购网",
  515: "Levis德国官网",
  516: "斐乐FILA官方商城",
  517: "匡威中国官方商城",
  518: "Next美国官网",
  519: "iTrip爱去旅行网",
  520: "拉手网",
  521: "六丰商城",
  522: "同仁堂天然淘",
  523: "我订花",
  524: "Foodi",
  525: "中国森林食品网",
  526: "香港卓悦化妆品",
  527: "维他购",
  528: "金海马商城",
  529: "亮健好药房",
  530: "唱吧直播间",
  531: "Oakley美国官网",
  532: "逸行网",
  533: "Clarks美国官网",
  534: "Starwood Hotels",
  535: "Marriott万豪美国官网",
  536: "Yes Style",
  537: "Evisu中文官网",
  538: "Life's Easy",
  539: "宠宠熊官方商城",
  540: "0061澳洲制造",
  541: "KK馆全球购",
  542: "Style O'Clock",
  543: "配夸全球购",
  544: "Air France",
  545: "Accor Hotels中文官网",
  546: "Space.NK",
  547: "嗨厨房",
  548: "W Concept",
  549: "GANT英国官网",
  550: "CAT Footwear英国官网",
  551: "Saucony英国官网",
  552: "造作家居",
  553: "小天鹅官方商城",
  554: "CAN看尚商城",
  555: "时尚日记",
  556: "Guess澳大利亚官网",
  557: "Etihad Airways",
  558: "FIIL商城",
  559: "免税易购",
  560: "特购社",
  561: "Wiggle中文官网",
  562: "Melissa香港官网",
  563: "科沃斯官方商城",
  564: "Calvin Klein",
  565: "MEMEBOX美美箱",
  566: "Hilton美国官网",
  567: "Revolve Clothing",
  568: "资生堂美国官网",
  569: "娇韵诗美国官网",
  570: "Starbucks美国官网",
  571: "Ray-Ban美国官网",
  572: "Puma美国官网",
  573: "Nautica美国官网",
  574: "La Mer美国官网",
  575: "Kipling美国官网",
  576: "Jurlique美国官网",
  577: "Hush Puppies",
  578: "Origins美国官网",
  579: "Folli Follie美国官网",
  580: "L'Occitane美国官网",
  581: "麦田",
  582: "惠普官方商城",
  583: "国大地产",
  584: "首家商城",
  585: "青岛Q房网",
  586: "广州家家顺房产网",
  587: "杭州豪世华邦房产网",
  588: "HealthPost",
  589: "房天下",
  590: "梦想书城",
  591: "海优世纪馆",
  592: "扫货特卖",
  593: "热拍网",
  594: "蚂蚁短租",
  595: "银票网",
  596: "爱虎保",
  597: "Incake官网",
  598: "聚星直播",
  599: "艺网",
  600: "康辉旅行网",
  601: "安适购海外商城",
  602: "霹雳爸爸海淘平台",
  603: "小牛在线",
  604: "AHAVA",
  605: "Fifth",
  606: "The Watch Hut",
  607: "BabyHaven中文网",
  608: "玫丽网",
  609: "Get The Label 中文网",
  610: "松屋百货中文网",
  611: "Timberland",
  612: "Topman",
  613: "HomeAway",
  614: "Beauty Expert",
  615: "海蜜严选",
  616: "Mankind",
  617: "The Hut",
  618: "Topshop",
  619: "Mamaladen",
  620: "Traveler store",
  621: "Travelzoo",
  622: "UMI Children's Shoes",
  623: "新秀丽美国官网",
  624: "Ferrari Store",
  625: "Willer Travel",
  626: "Unineed",
  627: "Acne Studios中文网",
  628: "Aeropostale",
  629: "Agoda中文站",
  630: "Alba Moda",
  631: "Allbeauty",
  632: "AllSaints",
  633: "Allsole",
  634: "Urban Outfitters",
  635: "Vitabiotics",
  636: "Belle Maison",
  637: "贝玲妃美国官网",
  638: "BH Cosmetics",
  639: "美莱新青年",
  640: "Vitamin Bay",
  641: "Waitrose",
  642: "Wolford",
  643: "Boohoo",
  644: "Boots.com",
  645: "British Corner Shop",
  646: "宜人贷",
  647: "萤石商城",
  648: "Coggles.com",
  649: "Corset Deal",
  650: "COTTON ON",
  651: "Crocs英国官网",
  652: "CRUISE",
  653: "Dell美国官网",
  654: "Dermstore",
  655: "Disney Store",
  656: "Dorothy Perkins",
  657: "痘痘康官方商城",
  658: "度假客",
  659: "Dune London",
  660: "Eastbay",
  661: "East Dane中文网",
  662: "Zaful",
  663: "Zavvi",
  664: "Feinkeit.de",
  665: "eibmarkt",
  666: "Belluna中文网",
  667: "Emirates阿联酋航",
  668: "Eastern Mountain Sports",
  669: "ETERNA",
  670: "Eurail",
  671: "Exante Diet",
  672: "Expedia UK",
  673: "FALKE",
  674: "Famous Footwear",
  675: "Bonpont",
  676: "Foreo",
  677: "网信",
  678: "Forever Unique",
  679: "Forzieri",
  680: "Free Country",
  681: "CERRUTI 1881",
  682: "French Connection",
  683: "Gift land",
  684: "Cult Beauty",
  685: "Fancy",
  686: "Kent&Curwen",
  687: "Grow Gorgeous中文网",
  688: "KoreanMall中文站",
  689: "STYLEBOP.com",
  690: "HOTEL INFO",
  691: "House of Fraser",
  692: "惠租车",
  693: "Vitamin Planet",
  694: "Wow Mall",
  695: "IWOOT",
  696: "讲究商城",
  697: "YA-MAN",
  698: "海保保险",
  699: "Juicy Couture",
  700: "Kenko",
  701: "The jewel hut",
  702: "KIKO美国官网",
  703: "Lancer Skincare",
  704: "LEGO shop",
  705: "Moss Bros",
  706: "Lord & Taylor",
  707: "Stylenanda中文网",
  708: "人卫智网",
  709: "有道翻译",
  710: "Filthy Fragrance",
  711: "麦知网",
  712: "MatchesFashion",
  713: "松本清",
  714: "移动商街",
  715: "Microsoft Store",
  716: "Mio Skincare中文站",
  717: "Miss Selfridge",
  718: "Mountain Gear",
  719: "360好药",
  720: "My Bag",
  721: "Myprotein",
  722: "美骑易购商城",
  723: "Myvitamins",
  724: "NET-A-PORTER中文网",
  725: "New Balance英国官网",
  726: "叮当快药",
  727: "New Look",
  728: "中华会计网校",
  729: "必迈官网",
  730: "耐克香港官网",
  731: "耐克巴西官网",
  732: "映客直播",
  733: "New York & Company",
  734: "Oasis英国官网",
  735: "Orbitz",
  736: "Orchira",
  737: "Origins英国官网",
  738: "PetSmart",
  739: "君融贷",
  740: "哪拍网",
  741: "格力官方商城",
  742: "ProBikeKit",
  743: "Qatar Airways卡塔尔航空",
  744: "Radley英国官网",
  745: "安联保险",
  746: "Ralph Lauren",
  747: "Rebecca Minkoff",
  748: "优米网",
  749: "21Cake",
  750: "Rentalcar",
  751: "Dr. Pierre Ricaud",
  752: "Rockport",
  753: "Ruelala",
  754: "56人旅游网",
  755: "Saks Fifth Avenue OFF 5TH",
  756: "安纳塔拉",
  757: "SC24.com",
  758: "车速递租车",
  759: "SHOES.COM",
  760: "Spring",
  761: "Simply Supplements",
  762: "宜和购物",
  763: "Farfetch中文网",
  764: "Ssense",
  765: "Steve Madden",
  766: "Free People中文网",
  767: "高搜易",
  768: "iMomoko中文网",
  769: "淘豆",
  770: "Michael Kors中文网",
  771: "三佳购物",
  772: "联金所",
  773: "宅豆网",
  774: "网易云",
  775: "德国药房apo.com中文网",
  776: "读秒",
  777: "好享商城",
  778: "西狗全球购",
  779: "玩哪网",
  780: "紫马财行",
  781: "金猫银猫",
  782: "跨境网",
  783: "Millennium&Copthorne Hotels中文网",
  784: "Reebonz",
  785: "薇美铺",
  786: "五洲会海购",
  787: "惠家有",
  788: "Meli Melo中文网",
  789: "小财迷",
  790: "Ashford中文网",
  791: "韩国CJONmart中文网",
  792: "益钱网",
  793: "THE GRAND中文免税店",
  794: "欧迪办公",
  795: "天虹网上商城",
  796: "以岭健康城",
  797: "客路旅行",
  1001: "亚马逊第三方",
  1003: "京东手机端",
  1015: "易迅北京",
  1025: "苏宁北京",
  1031: "一号店上海",
  1032: "中粮我买网华东",
  1124: "为为网北京",
  1126: "顺丰上海",
  2003: "京东微信端",
  2015: "易迅广东",
  2025: "苏宁广州",
  2031: "一号店广东",
  2032: "中粮我买华南",
  2126: "顺丰广州",
  3015: "易迅湖北",
  3025: "苏宁成都",
  3031: "一号店湖北",
  4031: "一号店四川"
};
module.exports.getSiteId = site => {
  return siteIdHash[site];
};
module.exports.getSiteName = (site, siteId) => {
  if (!siteId) siteId = siteIdHash[site];
  return siteName[siteId];
};
var passLinks = function (site, callback) {
  var pagerParser = __webpack_require__(25457);
  var id = -1;
  if (!(id = siteIdHash[site]) || !pagerParser[id]) {
    return;
  }
  var links = pagerParser[id](document);
  if (!links) {
    return;
  }
  // var sendMessage = function() {
  //   var queue = pyDomain[site] ? 0 : 1 //0: need python
  //     //if (links.length) {
  //   chrome.runtime.sendMessage({
  //       action: 'pager',
  //       links: Array.prototype.slice.call(links),
  //       args: [
  //         [id]
  //       ],
  //       url: document.URL,
  //       queue: queue
  //     })
  //     //}
  // }

  if (links.wait) {
    setTimeout(function () {
      links = Array.prototype.slice.call(document._links);
      callback(id, links);
    }, 5500);
  } else {
    callback(id, links);
  }
};
module.exports.init = callback => {
  //$(function() {
  //document.addEventListener("DOMContentLoaded", function() {
  for (var key in domains) {
    if (document.location.hostname.match(key)) {
      passLinks(domains[key], callback);
      break;
    }
  }

  //}, false)
  //})
};

/***/ }),

/***/ 3603:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['value', 'allowDot'],
  methods: {
    numberInputHandler(e) {
      if (e.key === 'Backspace') return true;
      let re = this.allowDot ? /[\d.]/ : /[\d]/;
      if (!e.key.match(re)) {
        e.preventDefault();
        return false;
      }
      let start = e.target.selectionStart,
        end = e.target.selectionEnd;
      let num = e.target.value.toString();
      if (num.indexOf('.') > -1) {
        let after = num.split('.')[1];
        let before = num.split('.')[0];
        (__webpack_require__(7129).log)(e.target.selectionText);
        if (e.key === '.' || after.length >= 2 && start >= before.length + 1 && end === start) {
          e.preventDefault();
          return false;
        }
      }
      if (num.split('.')[0].length >= 6 && e.key !== '.') {
        e.preventDefault();
        return false;
      }
    },
    inputHandler(e) {
      const replaced = e.target.value.replace(/[^\d.]/g, '');
      this.$emit('input', replaced);
    }
  }
};

/***/ }),

/***/ 3607:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var userAgent = __webpack_require__(82839);

var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);

module.exports = !!webkit && +webkit[1];


/***/ }),

/***/ 3651:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(21094);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("83cdedb2", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 3662:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.show,
      expression: "show"
    }],
    staticClass: "panel gwd_compare top-compare-detail top-bar-detail"
  }, [_c("div", {
    staticClass: "panel-wrap gwd-row",
    staticStyle: {
      width: "100%"
    }
  }, [_c("div", {
    staticClass: "b2c-pages blkcolor4"
  }, [_vm._v("\n      第\n      "), _c("span", {
    staticClass: "current-page",
    attrs: {
      id: "tmall-current-page"
    }
  }, [_vm._v(_vm._s(_vm.currentPage))]), _vm._v("\n      页，共\n      "), _c("span", {
    staticClass: "page-num blkcolor4",
    attrs: {
      id: "tmall-page-num"
    }
  }, [_vm._v(_vm._s(_vm.pages))]), _vm._v("\n      页\n    ")]), _vm._v(" "), _vm.stores.length ? _c("ul", {
    staticClass: "buy-list"
  }, [_vm._m(0), _vm._v(" "), _vm._l(_vm.stores, function (value, index) {
    return _c("li", {
      key: "stores-" + index
    }, [_c("img", {
      staticClass: "store",
      attrs: {
        src: value.icon_url
      }
    }), _vm._v(" "), _c("a", {
      attrs: {
        href: value.url,
        title: value.site_name,
        target: "_blank"
      }
    }, [_c("span", {
      staticClass: "gwd_title blkcolor2"
    }, [_vm._v(_vm._s(value.site_name))]), _vm._v(" "), value.more > 1 ? _c("span", {
      staticClass: "more"
    }, [_vm._v("(" + _vm._s(value.more) + ")款")]) : _vm._e(), _vm._v(" "), _c("span", {
      staticClass: "price prifontf"
    }, [_vm._v("¥" + _vm._s(value.price2))])])]);
  }), _vm._v(" "), _c("li", {
    staticClass: "see-all-list"
  }, [_c("a", {
    attrs: {
      href: `http://www.gwdang.com/dp${_vm.dpId}/where_buy/?from=browser&crc64=1&m=b2c#tabs`,
      target: "_blank"
    }
  }, [_c("span", {
    staticClass: "show-all blkcolor4"
  }, [_vm._v("查看全部商家(" + _vm._s(_vm.stores.length) + ")")])])])], 2) : _vm._e(), _vm._v(" "), _c("div", {
    staticClass: "left-page gwd-turn-page",
    staticStyle: {
      left: "10px"
    }
  }, [_c("a", {
    staticClass: "gwd_bg",
    attrs: {
      id: "tmall-prev-page",
      target: "_self",
      title: "上一页",
      href: "javascript:"
    },
    on: {
      click: _vm.prevPage
    }
  })]), _vm._v(" "), _vm.link ? _c("a", {
    staticClass: "tb-morelink blkcolor4",
    attrs: {
      href: _vm.link,
      target: "_blank"
    }
  }, [_vm._v("查看全部结果"), _c("em", {
    staticClass: "see_all_icon"
  }, [_vm._v(">")])]) : _vm._e(), _vm._v(" "), _c("div", {
    ref: "allProducts",
    staticClass: "all-products",
    staticStyle: {
      flex: "1"
    }
  }, [_c("ul", {
    staticClass: "gwd-products-ul",
    attrs: {
      id: "gwd-item-list"
    }
  }, _vm._l(_vm.pageItems, function (item, index) {
    return _c("li", {
      key: _vm.getId(item),
      attrs: {
        id: `gwd-prod-item-${index}-${_vm.getId(item)}`,
        "data-id": _vm.getId(item)
      }
    }, [_c("a", {
      staticClass: "small-img",
      attrs: {
        id: `img-${_vm.getId(item)}`,
        title: item.title,
        target: "_blank",
        href: item.url
      }
    }, [_vm.show ? _c("img", {
      staticClass: "gwdang-lazy",
      attrs: {
        src: item.pic_url ? item.pic_url : item.img_url,
        "data-original": item.pic_url,
        id: `dp-image-small-${_vm.getId(item)}`
      }
    }) : _vm._e()]), _vm._v(" "), _c("a", {
      staticClass: "b2c-other-info",
      attrs: {
        target: "_blank",
        href: item.url
      }
    }, [!item.nick ? _c("div", {
      staticClass: "priceinfo-box"
    }, [_c("div", {
      staticClass: "center-box"
    }, [_c("span", {
      staticClass: "gwd-price prifontf"
    }, [_vm._v("¥" + _vm._s(item.price))]), _vm._v(" "), item.nick ? _c("br") : _vm._e(), _vm._v(" "), item.nick ? _c("span", {
      staticClass: "b2c-store blkcolor1"
    }, [_vm._v(_vm._s(item.nick))]) : _vm._e(), _vm._v(" "), item.promo2 ? _c("span", {
      staticClass: "dp-promotion gwd_bg"
    }, [_c("div", {
      staticClass: "dp-promotion-detail"
    }, _vm._l(item.promo2, function (promo, idx) {
      return _c("span", {
        key: _vm.getId(item) + `-promo${idx}`,
        staticClass: "dp-pro-item"
      }, [_vm._v(_vm._s(promo))]);
    }), 0)]) : _vm._e(), _vm._v(" "), item.coupon2 ? _c("span", {
      staticClass: "dp-coupon gwd_bg"
    }, [_c("div", {
      staticClass: "dp-coupon-detail"
    }, _vm._l(item.coupon2, function (coupon, idx) {
      return _c("span", {
        key: _vm.getId(item) + `-coupon${idx}`,
        staticClass: "dp-coupon-item"
      }, [_vm._v(_vm._s(coupon))]);
    }), 0)]) : _vm._e(), _vm._v(" "), item.yushou2 ? _c("span", {
      staticClass: "dp-yushou gwd_bg"
    }, [_c("div", {
      staticClass: "dp-yushou-detail"
    }, _vm._l(item.yushou2, function (yushou, idx) {
      return _c("span", {
        key: _vm.getId(item) + `-yushou${idx}`,
        staticClass: "dp-pro-item"
      }, [_vm._v(_vm._s(yushou))]);
    }), 0)]) : _vm._e()])]) : [_c("span", {
      staticClass: "gwd-price prifontf"
    }, [_vm._v("¥" + _vm._s(item.price))]), _vm._v(" "), _c("span", {
      staticClass: "b2c-store blkcolor1"
    }, [_vm._v(_vm._s(item.nick))])], _vm._v(" "), item.site_name ? _c("span", {
      staticClass: "b2c-store blkcolor1"
    }, [_vm._v(_vm._s(item.site_name))]) : _vm._e(), _vm._v(" "), item.promodom ? _c("span", {
      attrs: {
        id: `${item.dp_id}_promotion`
      }
    }, [_vm._v(_vm._s(item.promodom))]) : _vm._e(), _vm._v(" "), item.comment_num || item.fee ? _c("span", {
      staticClass: "b2c-fees blkcolor4"
    }, [_vm._v(_vm._s(item.comment_num ? "评论数:" + item.comment_num : item.fee))]) : _vm._e(), _vm._v(" "), item.volume ? _c("span", {
      staticClass: "b2c-fees blkcolor4"
    }, [_vm._v("\n              最近销量" + _vm._s(item.volume) + "件\n            ")]) : _vm._e(), _vm._v(" "), _c("span", {
      staticClass: "b2c-tle blkcolor1"
    }, [_vm._v(_vm._s(item.title))])], 2)]);
  }), 0)]), _vm._v(" "), _c("div", {
    staticClass: "right-page gwd-turn-page"
  }, [_c("a", {
    staticClass: "gwd_bg",
    attrs: {
      href: "javascript:",
      id: "tmall-next-page",
      title: "下一页"
    },
    on: {
      click: _vm.nextPage
    }
  })])])]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("li", [_c("b", {
    staticClass: "blkcolor1"
  }, [_vm._v("正品商城在卖：")])]);
}];
render._withStripped = true;

/***/ }),

/***/ 3717:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
var uncurryThis = __webpack_require__(79504);

var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
var base = 36;
var tMin = 1;
var tMax = 26;
var skew = 38;
var damp = 700;
var initialBias = 72;
var initialN = 128; // 0x80
var delimiter = '-'; // '\x2D'
var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars
var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
var baseMinusTMin = base - tMin;

var $RangeError = RangeError;
var exec = uncurryThis(regexSeparators.exec);
var floor = Math.floor;
var fromCharCode = String.fromCharCode;
var charCodeAt = uncurryThis(''.charCodeAt);
var join = uncurryThis([].join);
var push = uncurryThis([].push);
var replace = uncurryThis(''.replace);
var split = uncurryThis(''.split);
var toLowerCase = uncurryThis(''.toLowerCase);

/**
 * Creates an array containing the numeric code points of each Unicode
 * character in the string. While JavaScript uses UCS-2 internally,
 * this function will convert a pair of surrogate halves (each of which
 * UCS-2 exposes as separate characters) into a single code point,
 * matching UTF-16.
 */
var ucs2decode = function (string) {
  var output = [];
  var counter = 0;
  var length = string.length;
  while (counter < length) {
    var value = charCodeAt(string, counter++);
    if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
      // It's a high surrogate, and there is a next character.
      var extra = charCodeAt(string, counter++);
      if ((extra & 0xFC00) === 0xDC00) { // Low surrogate.
        push(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
      } else {
        // It's an unmatched surrogate; only append this code unit, in case the
        // next code unit is the high surrogate of a surrogate pair.
        push(output, value);
        counter--;
      }
    } else {
      push(output, value);
    }
  }
  return output;
};

/**
 * Converts a digit/integer into a basic code point.
 */
var digitToBasic = function (digit) {
  //  0..25 map to ASCII a..z or A..Z
  // 26..35 map to ASCII 0..9
  return digit + 22 + 75 * (digit < 26);
};

/**
 * Bias adaptation function as per section 3.4 of RFC 3492.
 * https://tools.ietf.org/html/rfc3492#section-3.4
 */
var adapt = function (delta, numPoints, firstTime) {
  var k = 0;
  delta = firstTime ? floor(delta / damp) : delta >> 1;
  delta += floor(delta / numPoints);
  while (delta > baseMinusTMin * tMax >> 1) {
    delta = floor(delta / baseMinusTMin);
    k += base;
  }
  return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
};

/**
 * Converts a string of Unicode symbols (e.g. a domain name label) to a
 * Punycode string of ASCII-only symbols.
 */
var encode = function (input) {
  var output = [];

  // Convert the input in UCS-2 to an array of Unicode code points.
  input = ucs2decode(input);

  // Cache the length.
  var inputLength = input.length;

  // Initialize the state.
  var n = initialN;
  var delta = 0;
  var bias = initialBias;
  var i, currentValue;

  // Handle the basic code points.
  for (i = 0; i < input.length; i++) {
    currentValue = input[i];
    if (currentValue < 0x80) {
      push(output, fromCharCode(currentValue));
    }
  }

  var basicLength = output.length; // number of basic code points.
  var handledCPCount = basicLength; // number of code points that have been handled;

  // Finish the basic string with a delimiter unless it's empty.
  if (basicLength) {
    push(output, delimiter);
  }

  // Main encoding loop:
  while (handledCPCount < inputLength) {
    // All non-basic code points < n have been handled already. Find the next larger one:
    var m = maxInt;
    for (i = 0; i < input.length; i++) {
      currentValue = input[i];
      if (currentValue >= n && currentValue < m) {
        m = currentValue;
      }
    }

    // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
    var handledCPCountPlusOne = handledCPCount + 1;
    if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
      throw new $RangeError(OVERFLOW_ERROR);
    }

    delta += (m - n) * handledCPCountPlusOne;
    n = m;

    for (i = 0; i < input.length; i++) {
      currentValue = input[i];
      if (currentValue < n && ++delta > maxInt) {
        throw new $RangeError(OVERFLOW_ERROR);
      }
      if (currentValue === n) {
        // Represent delta as a generalized variable-length integer.
        var q = delta;
        var k = base;
        while (true) {
          var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
          if (q < t) break;
          var qMinusT = q - t;
          var baseMinusT = base - t;
          push(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
          q = floor(qMinusT / baseMinusT);
          k += base;
        }

        push(output, fromCharCode(digitToBasic(q)));
        bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
        delta = 0;
        handledCPCount++;
      }
    }

    delta++;
    n++;
  }
  return join(output, '');
};

module.exports = function (input) {
  var encoded = [];
  var labels = split(replace(toLowerCase(input), regexSeparators, '\u002E'), '.');
  var i, label;
  for (i = 0; i < labels.length; i++) {
    label = labels[i];
    push(encoded, exec(regexNonASCII, label) ? 'xn--' + encode(label) : label);
  }
  return join(encoded, '.');
};


/***/ }),

/***/ 3851:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _ShaiDanPic = _interopRequireDefault(__webpack_require__(56283));
var _default = exports.A = {
  components: {
    ShaiDanPic: _ShaiDanPic.default
  },
  props: ['item'],
  mounted() {},
  computed: {
    displayPrice() {
      return (this.item.price / 100).toFixed(2).replace('.00', '');
    },
    displayDate() {
      return this.item.ptime.split('-').slice(1).join('-').split(' ')[0];
    }
  }
};

/***/ }),

/***/ 3857:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(37246);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("36fd698f", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 3912:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ Share)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Share.vue?vue&type=template&id=43260888&scoped=true
var Sharevue_type_template_id_43260888_scoped_true = __webpack_require__(65417);
;// ./src/standard/module/components/Share.vue?vue&type=template&id=43260888&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Share.vue?vue&type=script&lang=js
var Sharevue_type_script_lang_js = __webpack_require__(29280);
;// ./src/standard/module/components/Share.vue?vue&type=script&lang=js
 /* harmony default export */ const components_Sharevue_type_script_lang_js = (Sharevue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(85072);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(97825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(77659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(55056);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(10540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(41113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Share.vue?vue&type=style&index=0&id=43260888&prod&scoped=true&lang=css
var Sharevue_type_style_index_0_id_43260888_prod_scoped_true_lang_css = __webpack_require__(48073);
var Sharevue_type_style_index_0_id_43260888_prod_scoped_true_lang_css_default = /*#__PURE__*/__webpack_require__.n(Sharevue_type_style_index_0_id_43260888_prod_scoped_true_lang_css);
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Share.vue?vue&type=style&index=0&id=43260888&prod&scoped=true&lang=css

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());

      options.insert = insertBySelector_default().bind(null, "head");
    
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()((Sharevue_type_style_index_0_id_43260888_prod_scoped_true_lang_css_default()), options);




       /* harmony default export */ const components_Sharevue_type_style_index_0_id_43260888_prod_scoped_true_lang_css = ((Sharevue_type_style_index_0_id_43260888_prod_scoped_true_lang_css_default()) && (Sharevue_type_style_index_0_id_43260888_prod_scoped_true_lang_css_default()).locals ? (Sharevue_type_style_index_0_id_43260888_prod_scoped_true_lang_css_default()).locals : undefined);

;// ./src/standard/module/components/Share.vue?vue&type=style&index=0&id=43260888&prod&scoped=true&lang=css

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/Share.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_Sharevue_type_script_lang_js,
  Sharevue_type_template_id_43260888_scoped_true/* render */.XX,
  Sharevue_type_template_id_43260888_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "43260888",
  null
  
)

/* harmony default export */ const Share = (component.exports);

/***/ }),

/***/ 4055:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);
var isObject = __webpack_require__(20034);

var document = globalThis.document;
// typeof document.createElement is 'object' in old IE
var EXISTS = isObject(document) && isObject(document.createElement);

module.exports = function (it) {
  return EXISTS ? document.createElement(it) : {};
};


/***/ }),

/***/ 4104:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ MemberCouponMinivue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ MemberCouponMini)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/MemberCouponMini.vue?vue&type=template&id=0ca5d897&scoped=true
var MemberCouponMinivue_type_template_id_0ca5d897_scoped_true = __webpack_require__(36826);
;// ./src/common/components/MemberCouponMini.vue?vue&type=template&id=0ca5d897&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/MemberCouponMini.vue?vue&type=script&lang=js
var MemberCouponMinivue_type_script_lang_js = __webpack_require__(45853);
;// ./src/common/components/MemberCouponMini.vue?vue&type=script&lang=js
 /* harmony default export */ const components_MemberCouponMinivue_type_script_lang_js = (MemberCouponMinivue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/MemberCouponMini.vue?vue&type=style&index=0&id=0ca5d897&prod&scoped=true&lang=less
var MemberCouponMinivue_type_style_index_0_id_0ca5d897_prod_scoped_true_lang_less = __webpack_require__(52272);
;// ./src/common/components/MemberCouponMini.vue?vue&type=style&index=0&id=0ca5d897&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/MemberCouponMini.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_MemberCouponMinivue_type_script_lang_js,
  MemberCouponMinivue_type_template_id_0ca5d897_scoped_true/* render */.XX,
  MemberCouponMinivue_type_template_id_0ca5d897_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "0ca5d897",
  null
  
)

/* harmony default export */ const MemberCouponMini = (component.exports);

/***/ }),

/***/ 4188:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "\n.gwd-label[data-v-1e27a946] {\n  width: 17px;\n  height: 24px;\n  background-size: cover;\n  font-size: 12px;\n  color: white;\n  font-weight: bold;\n  text-align: center;\n  line-height: 24px;\n}\n.gwd-1st[data-v-1e27a946] {\n  background-image: url(" + __webpack_require__(11521) + ");\n}\n.gwd-2nd[data-v-1e27a946] {\n  background-image: url(" + __webpack_require__(48097) + ");\n}\n.gwd-3rd[data-v-1e27a946] {\n  background-image: url(" + __webpack_require__(38942) + ");\n}\n.gwd-nth[data-v-1e27a946] {\n  background-image: url(" + __webpack_require__(85071) + ");\n}\n\n", ""]);

// exports


/***/ }),

/***/ 4310:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, link = $data.link, img = $data.img;
    $$out += '<a style="display: inline-flex; position: relative; vertical-align: middle; margin-left: 5px;" class="gwd-top-tmall"\n   target="_blank"\n   title="点击领取"\n   href="';
    $$out += $escape(link);
    $$out += '">\n  <img src="';
    $$out += $escape(img);
    $$out += '" alt="" style="height: 32px">\n</a>\n<style>\n  .gwd-top-tmall {\n    height: 100%;\n    align-items: center;\n  }\n\n  .gwd-qr-act {\n    display: none;\n    flex-direction: column;\n    position: absolute;\n    width: 144px;\n    height: 167px;\n    box-sizing: border-box;\n    border: 1px solid #ff471a;\n    background: #fff9f6;\n    top: 37px;\n    left: 50%;\n    align-items: center;\n    margin-left: -72px;\n  }\n\n  .gwd-top-tmall:hover .gwd-qr-act {\n    display: flex;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 4314:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', promos = $data.promos, $escape = $imports.$escape, promo_site = $data.promo_site, new_extension = $data.new_extension, promo_url = $data.promo_url, $each = $imports.$each, $value = $data.$value, $index = $data.$index, quans = $data.quans, quan_site = $data.quan_site, quan_url = $data.quan_url, style = $data.style;
    $$out += '<div id="promo_quan_detail" class="promo_quan_box">\n  <div class="detail_left">\n    ';
    if (promos.length) {
        $$out += '\n    <div class="promo_div">\n      <div class="d_head">\n        <span class="blkcolor1">';
        $$out += $escape(promo_site);
        $$out += '促销活动</span>\n        ';
        if (!new_extension) {
            $$out += '\n        <a href="';
            $$out += $escape(promo_url);
            $$out += '" target="_blank" class="blkcolor4">查看全部<em class="see_all_icon">></em></a>\n        ';
        }
        $$out += '\n      </div>\n      <div class="promo_body">\n          ';
        $each(promos, function ($value, $index) {
            $$out += '\n            <a href="';
            $$out += $escape($value.url);
            $$out += '" class="promo_item promo-item-';
            $$out += $escape($index);
            $$out += '" target="_blank">\n              <em class="circle"></em>\n              ';
            $$out += $value.title;
            $$out += '\n            </a>\n          ';
        });
        $$out += '\n      </div>\n    </div>\n    ';
    }
    $$out += '\n    ';
    if (!new_extension && quans.length) {
        $$out += '\n    <div class="quan_div">\n      <div class="d_head">\n        <span class="blkcolor1">';
        $$out += $escape(quan_site);
        $$out += '优惠券</span>\n        ';
        if (!new_extension) {
            $$out += '\n        <a href="';
            $$out += $escape(quan_url);
            $$out += '" target="_blank" class="blkcolor4">查看全部<em class="see_all_icon">></em></a>\n        ';
        }
        $$out += '\n      </div>\n      <div class="quan_body">\n        ';
        $each(quans, function ($value, $index) {
            $$out += '\n          <a href="';
            $$out += $escape($value.url);
            $$out += '" class="quan_item quan-item-';
            $$out += $escape($index);
            $$out += '" target="_blank">\n              <em class="circle"></em>\n              ';
            $$out += $value.title;
            $$out += '\n            </a>\n        ';
        });
        $$out += '\n      </div>\n    </div>\n    ';
    }
    $$out += '\n  </div>\n  <div class="detail_right"></div>\n  <style type="text/css">\n    #promo_quan_detail {\n      position: absolute;\n      top: 36px;\n      left: 0px;\n      width: auto;\n      display: none;\n      background-color: #fff;\n      text-align: left;\n      border: 1px solid #EAEAEA;\n      box-shadow: 0 5px 10px 0 rgba(22,24,26,0.15);\n    }\n    ';
    if (style == 'bottom') {
        $$out += '\n    #promo_quan_detail {\n      top: inherit;\n      bottom: 60px;\n    }\n    ';
    }
    $$out += '\n    #promo_quan_detail .detail_left {\n      width: 621px;\n      float: left;\n      border-right: 1px solid #e6e9eb;\n      padding: 0px;\n      height: auto;\n    }\n    .promo_quan_box .promo_div, .promo_quan_box .quan_div {\n      height: 135px;\n    }\n    .promo_quan_box .d_head {\n      height: 34px;\n      line-height: 26px;\n      float: none;\n    }\n    #promo_quan_detail .detail_left .d_head a {\n      font-size: 12px;\n      margin-top: 12px;\n      height: 12px;\n      line-height: 12px;\n    }\n    #promo_quan_detail .detail_left .d_head a:hover {\n      color: #5EBEFF;\n    }\n    .promo_quan_box .see_all_icon {\n      height: 13px;\n      width: 12px;\n      float: right;\n      font-size: 13px;\n      line-height: 12px;\n    }\n    .promo_quan_box .d_head span{\n      font-size: 14px;\n      font-weight: bold;\n      margin-left: 14px;\n      float: left;\n      line-height: 14px;\n      margin-top: 14px;\n    }\n    .promo_quan_box .d_head a {\n      float: right;\n      width: 64px;\n      height: 26px;\n      margin-right: 14px;\n    }\n    .promo_quan_box .promo_body {\n      overflow: auto;\n      width: 100%;\n      height: 96px;\n    }\n    #promo_quan_detail .promo_body .promo_item, #promo_quan_detail .quan_item {\n      float: left;\n      height: 36px;\n      width: 274px;\n      border-radius: 10px;\n      background-color: #F0F5F7;\n      margin-left: 14px;\n      line-height: 36px;\n      margin-top: 7px;\n      font-size: 12px;\n      text-align: left;\n      overflow: hidden;\n      color: #666;\n      padding-right: 10px;\n      text-decoration: none;\n      text-overflow: ellipsis;\n      white-space: nowrap;\n    }\n    #promo_quan_detail .promo_body .promo_item.promo-item-1, #promo_quan_detail .quan_item.quan-item-1,#promo_quan_detail .promo_body .promo_item.promo-item-3, #promo_quan_detail .quan_item.quan-item-3  {\n      margin-left: 24px;\n    }\n    #promo_quan_detail .promo_body .promo_item:hover, #promo_quan_detail .quan_item:hover {\n      background-color: #f07860;\n      color: #fff!important;\n    }\n    #promo_quan_detail.promo_quan_box .promo_item em , #promo_quan_detail.promo_quan_box .quan_item em{\n      color: #f07860;\n      font-weight: bold;\n      margin: 0 2px;\n      font-style: normal;\n      font-family: Helvetica;\n    }\n    #promo_quan_detail .promo_body .promo_item:hover em , #promo_quan_detail .quan_item:hover em{\n      color: #fff!important;\n    }\n    #promo_quan_detail .promo_body .promo_item:hover .circle , #promo_quan_detail .quan_item:hover .circle{\n      background-color: #fff!important;\n    }\n    #promo_quan_detail.promo_quan_box .promo_body .circle, #promo_quan_detail.promo_quan_box .quan_item .circle{\n      float: left;\n      height: 8px;\n      width: 8px;\n      background-color: #f07860;\n      border-radius: 8px;\n      margin-top: 14px;\n      margin-left: 12px;\n      margin-right: 8px;\n    }\n    .promo_quan_box .detail_right {\n      width: 206px;\n      float: left;\n      display: none;\n    }\n    .quan_body {\n      height: 80px;\n      width: 100%;\n    }\n    .quan_body:after {\n      content: "";\n      display: block;\n      clear: both;\n    }\n    ';
    if (new_extension) {
        $$out += '\n      #promo_quan_detail div.detail_left {\n        width: 322px;\n      }\n      .promo_quan_box .promo_div, .promo_quan_box .quan_div {\n        height: 250px;\n        border: none;\n      }\n      .promo_quan_box .promo_body {\n        height: 220px;\n      }\n    ';
    }
    $$out += '\n  </style>\n</div>\n';
    return $$out;
};

/***/ }),

/***/ 4356:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(40757);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("569f60f4", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 4495:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

/* eslint-disable es/no-symbol -- required for testing */
var V8_VERSION = __webpack_require__(39519);
var fails = __webpack_require__(79039);
var globalThis = __webpack_require__(44576);

var $String = globalThis.String;

// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
  var symbol = Symbol('symbol detection');
  // Chrome 38 Symbol has incorrect toString conversion
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  // of course, fail.
  return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
    // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
    !Symbol.sham && V8_VERSION && V8_VERSION < 41;
});


/***/ }),

/***/ 4525:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports.JSONRepairError = void 0;
class JSONRepairError extends Error {
  constructor(message, position) {
    super("".concat(message, " at position ").concat(position));
    this.position = position;
  }
}
exports.JSONRepairError = JSONRepairError;
//# sourceMappingURL=JSONRepairError.js.map

/***/ }),

/***/ 4771:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(94320);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("55d43378", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 4873:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(26910);
let browser = {
  'url': '',
  'utype': ''
};
let chromeType = navigator.userAgent.toLowerCase();
module.exports.getBrowser = () => {
  if ("ActiveXObject" in window) {
    //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; slcc2; .net clr 2.0.50727; .net clr 3.5.30729; .net clr 3.0.30729; .net4.0c; infopath.3; .net4.0e)
    browser.url = G.c_server + `/files/ext/${G.extName}_install_IE.exe`;
    browser.utype = "ie";
    browser.utitle = "IE";
    browser.background = "-401px -81px";
  } else if (chromeType.indexOf('firefox') > -1) {
    //mozilla/5.0 (windows nt 6.1; wow64; rv:42.0) gecko/20100101 firefox/42.0
    browser.url = "https://addons.mozilla.org/firefox/downloads/latest/405940/addon-405940-latest.xpi?src=dp-btn-primary";
    browser.bjgUrl = "https://addons.mozilla.org/zh-CN/firefox/addon/%E6%AF%94%E4%BB%B7%E7%8B%97-%E7%BD%91%E8%B4%AD%E7%9C%81%E9%92%B1%E7%A5%9E%E5%99%A8/?src=search";
    browser.utype = "firefox";
    browser.utitle = "火狐";
    browser.background = "-401px -44px";
  } else if (chromeType.indexOf('opera') > -1 || chromeType.indexOf('opr') > -1) {
    //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.86 safari/537.36 opr/33.0.1990.115
    browser.url = G.c_server + "/files/ext/opera.crx";
    browser.utype = "opera";
    browser.utitle = "Opera";
    browser.background = "-2px -120px";
  } else if (chromeType.indexOf('safari') > -1 && chromeType.indexOf('chrome') == -1) {
    //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/534.57.2 (khtml, like gecko) version/5.1.7 safari/534.57.2
    browser.url = G.c_server + `/files/ext/${G.extName}.safariextz`;
    browser.utype = "safari";
    browser.utitle = "Safari";
    browser.background = "-301px -44px";
  } else if (chromeType.indexOf('chrome') > -1) {
    let check360 = checkChromeWeight();
    if (chromeType.indexOf('qqbrowser') > -1) {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.87 safari/537.36 qqbrowser/9.2.5542.400
      browser.url = "https://pcbrowser.dd.qq.com/pcbrowserbig/qbextension/update/20160122/jgphnjokjhjlcnnajmfjlacjnjkhleah.crx";
      browser.bjgUrl = "https://pcbrowser.dd.qq.com/pcbrowserbig/qbextension/update/20180615/lpmlfjjccfdcnfplffgcmnkaafcigoil.crx";
      browser.utype = "qq";
      browser.utitle = "QQ";
      browser.background = "-104px -81px";
    } else if (chromeType.indexOf('maxthon') > -1) {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) maxthon/4.4.8.1000 chrome/30.0.1599.101 safari/537.36
      browser.url = "http://extension.maxthon.cn/detail/index.php?view_id=358";
      browser.utype = "maxthon";
      browser.utitle = "傲游";
      browser.background = "-401px -4px";
    } else if (chromeType.indexOf('bidubrowser') > -1) {
      //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; bidubrowser 8.1) 
      browser.url = "http://chajian.baidu.com/2015/#all/39/mcgoibhhihpolaiioggajoipieefgmoa";
      browser.utype = 'baidu';
      browser.utitle = '百度';
      browser.background = "-104px -120px";
    } else if (chromeType.indexOf('ubrowser') > -1) {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/44.0.2403.157 ubrowser/5.5.6743.207 safari/537.36
      browser.url = "http://extensions.uc.cn/newindex.htm#!detail/bpdlhpjkjbdiflnankpohpfepecdjgag";
      browser.bjgUrl = "https://www.bijiago.com/static/extensions/chrome_bijiago_uc.crx";
      browser.utype = 'uc';
      browser.utitle = "UC";
      browser.background = "-2px -44px";
    } else if (chromeType.indexOf('lbbrowser') > -1) {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/42.0.2311.154 safari/537.36 lbbrowser
      browser.url = "http://store.liebao.cn/admin/extensions/201511/ea878d5a4d2a008ad78978a94eea62a1.crx";
      browser.utype = 'liebao';
      browser.utitle = "猎豹安全";
      browser.background = "-301px -4px";
    } else if (chromeType.indexOf('taobrowser') > -1) {
      //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.11 TaoBrowser/3.5 Safari/536.11 
      browser.url = G.c_server + "/files/ext/chrome.crx";
      browser.utype = 'taobao';
      browser.utitle = "淘宝";
      browser.background = "-104px -44px";
    } else if (chromeType.indexOf('2345explorer') > -1) {
      //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36 2345Explorer/6.4.0.10356
      browser.url = "http://extension.ie.2345.com/#nfbikdkjfjcejddbdcpbafnclkfdhijd";
      browser.utype = '2345';
      browser.utitle = "2345王牌";
      browser.background = "-301px -81px";
    } else if (chromeType.indexOf('2345chrome') > -1) {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/39.0.2171.99 safari/537.36 2345chrome v3.0.0.9739
      browser.url = "http://extension.chrome.2345.com/#nfbikdkjfjcejddbdcpbafnclkfdhijd";
      browser.utype = '2345jiasu';
      browser.utitle = "2345加速";
    } else if (chromeType.indexOf('coolnovo') > -1) {
      //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36 CoolNovo/2.0.9.20 
      browser.url = G.c_server + "/files/ext/chrome.crx";
      browser.utype = 'fengshu';
      browser.utitle = "枫树";
      browser.background = "-2px -81px";
    } else if (chromeType.indexOf('greenbrowser') > -1) {
      //Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; InfoPath.3; .NET4.0E; GreenBrowser)
      browser.url = G.c_server + `/files/ext/${G.extName}_for_greenbrowser.zip`;
      browser.utype = 'gb';
      browser.utitle = "GB";
      browser.background = "-203px -81px";
    } else if (check360 === "Chrome") {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.80 safari/537.36
      browser.url = G.c_server + "/app/extension?from_device=" + G.from_device_num;
      browser.bjgUrl = "https://www.bijiago.com/chromeGuide/";
      browser.utype = 'chrome';
      browser.utitle = 'Chrome';
      browser.background = "-2px -4px";
    } else if (check360 === "360SE") {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/31.0.1650.63 safari/537.36 
      browser.url = "https://ext.se.360.cn/webstore/detail/nfbikdkjfjcejddbdcpbafnclkfdhijd";
      browser.bjgUrl = "https://ext.se.360.cn/webstore/detail/dikcgfcdhfcmnicjknpmaakimonplclf";
      browser.utype = '360se';
      browser.utitle = '360安全';
      browser.background = "-203px -4px";
    } else if (check360 === "360EE") {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.101 safari/537.36
      browser.url = "https://ext.chrome.360.cn/webstore/detail/nfbikdkjfjcejddbdcpbafnclkfdhijd";
      browser.bjgUrl = "https://ext.se.360.cn/webstore/detail/dikcgfcdhfcmnicjknpmaakimonplclf";
      browser.utype = '360se';
      browser.utitle = '360极速 ';
      browser.background = "-104px -4px";
    } else if (chromeType.indexOf('se') > -1) {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/38.0.2125.122 safari/537.36 se 2.x metasr 1.0
      browser.url = "http://ie.sogou.com/tools/tool_337.html";
      browser.bjgUrl = "http://ie.sogou.com/app/s/YXBwXzU5Njc=";
      browser.utype = 'sogou';
      browser.utitle = "搜狗";
      browser.background = "-401px -120px";
    } else {
      browser.url = G.c_server + "/app/extension";
      browser.bjgUrl = "https://www.bijiago.com/chromeGuide/";
      browser.utype = 'chrome';
      browser.utitle = 'Chromium内核';
    }
  } else {
    browser.url = G.c_server + "/app/extension";
    browser.bjgUrl = "https://www.bijiago.com/chromeGuide/";
    browser.utype = 'chrome';
    browser.utitle = '未知浏览器';
  }
  return browser;
};
let chrome_weight = {
  "result": "Chrome",
  "details": {
    "Chrome": 5,
    "Chromium": 0,
    "_360SE": 0,
    "_360EE": 0
  },
  "sorted": ["Chrome", "360SE", "360EE", "Chromium"],
  "exec": function (results) {
    let details = {
      "Chrome": 5,
      "Chromium": 0,
      "_360SE": 0,
      "_360EE": 0
    };
    let _ua = window.navigator.userAgent;
    if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) {
      if (window.navigator.platform == "Win32") {
        if (!window.clientInformation.languages) {
          details._360SE += 8;
        }
        if (/zh/i.test(navigator.language)) {
          details._360SE += 3;
          details._360EE += 3;
        }
        if (window.clientInformation.languages) {
          let lang_len = window.clientInformation.languages.length;
          if (lang_len >= 3) {
            details.Chrome += 10;
            details.Chromium += 6;
          } else if (lang_len == 2) {
            details.Chrome += 3;
            details.Chromium += 6;
            details._360EE += 6;
          } else if (lang_len == 1) {
            details.Chrome += 4;
            details.Chromium += 4;
          }
        }
        for (let i in window.navigator.plugins) {
          if (window.navigator.plugins[i].filename == "np-mswmp.dll") {
            details._360SE += 20;
            details._360EE += 20;
          }
        }
        if (Object.keys(window.chrome.webstore).length <= 1) {
          details._360SE += 7;
        } else if (Object.keys(window.chrome.webstore).length == 2) {
          details._360SE += 4;
          details.Chromium += 3;
        }
        if (window.navigator.plugins.length >= 30) {
          details._360EE += 7;
          details._360SE += 7;
          details.Chrome += 7;
        } else if (window.navigator.plugins.length < 30 && window.navigator.plugins.length > 10) {
          details._360EE += 3;
          details._360SE += 3;
          details.Chrome += 3;
        } else if (window.navigator.plugins.length <= 10) {
          details.Chromium += 6;
        }
      } else {
        details._360SE -= 50;
        details._360EE -= 50;
        if (/Linux/i.test(window.navigator.userAgent)) {
          details.Chromium += 5;
        }
      }
      let found = 0;
      let respdf;
      for (let i in window.navigator.plugins) {
        if (!!(respdf = /^(.+) PDF Viewer$/.exec(window.navigator.plugins[i].name))) {
          if (respdf[1] == "Chrome") {
            details.Chrome += 6;
            details._360SE += 6;
            found = 1;
            break;
          }
          if (respdf[1] == "Chromium") {
            details.Chromium += 10;
            details._360EE += 6;
            found = 1;
            break;
          }
        }
      }
      if (!found) {
        details.Chromium += 9;
      }
    }
    let chrome_result = new Object();
    chrome_result['Chrome'] = details.Chrome;
    chrome_result['Chromium'] = details.Chromium;
    chrome_result['360SE'] = details._360SE;
    chrome_result['360EE'] = details._360EE;
    let sortable = [];
    for (let value in chrome_result) sortable.push([value, chrome_result[value]]);
    sortable.sort(function (a, b) {
      return b[1] - a[1];
    });
    this.sorted = sortable;
    this.details = details;
    this.result = sortable[0][0];
    if (results == "result") {
      return sortable[0][0];
    } else if (results == "details") {
      return chrome_result;
    } else if (results == "sorted") {
      return sortable;
    }
  }
};
let checkChromeWeight = function () {
  let _ua = window.navigator.userAgent;
  try {
    chrome_weight.exec();
    if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) {
      return chrome_weight.result;
    } else {}
  } catch (e) {
    return;
  }
};
module.exports.getChromeVersion = () => {
  let raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
  return raw ? parseInt(raw[2], 10) : false;
};

/***/ }),

/***/ 5267:
/***/ ((module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
var __WEBPACK_AMD_DEFINE_RESULT__;

!(__WEBPACK_AMD_DEFINE_RESULT__ = (() => {
  // 某些网站会覆盖掉js的一些方法
  if (G.site === 'keede') {
    __webpack_require__(85213)();
  }
  if (G.site === 'ule' || G.site === 'yesmywine') {
    Array.prototype.filter = function (cb) {
      let temp = [];
      for (let i = 0; i < this.length; i++) {
        if (cb(this[i])) {
          temp.push(this[i]);
        }
      }
      return temp;
    };
  }
  if (G.site === 'suning') {
    setTimeout(() => {
      $('#gwd_mini_compare').on('click', 'a', function (e) {
        let url = $(this).attr('href');
        if (url && url.indexOf('http') > -1) {
          window.open($(this).attr('href'));
          e.preventDefault();
        }
      });
    }, 500);
  }
  if (G.site === '360buy') {
    const selector = '.image-zoom-container.main-img';
    (__webpack_require__(30888).waitForConditionFn)(() => {
      return $(selector).length > 0;
    }).then(() => {
      const el = $(selector)[0];
      function updateZoomState() {
        const pupExist = $(el).find('.zoom-lens').length > 0;
        if (pupExist) {
          $('.gwd-minibar-bg').css('visibility', 'hidden');
          $('#bjgext_mb_bg').css('visibility', 'hidden');
        } else {
          $('.gwd-minibar-bg').css('visibility', 'visible');
          $('#bjgext_mb_bg').css('visibility', 'visible');
        }
      }
      const observer = new MutationObserver(mutations => {
        mutations.forEach(mutation => {
          updateZoomState();
        });
      });
      observer.observe(el, {
        attributes: false,
        childList: true,
        subtree: false
      });
    });
  }
  if (G.site === 'wstx') {
    Array.prototype.indexOf = function (searchElement, fromIndex) {
      var k;
      if (this == null) {
        throw new TypeError('"this" is null or not defined');
      }
      var O = Object(this);
      var len = O.length >>> 0;
      if (len === 0) {
        return -1;
      }
      var n = +fromIndex || 0;
      if (Math.abs(n) === Infinity) {
        n = 0;
      }
      if (n >= len) {
        return -1;
      }
      k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
      while (k < len) {
        if (k in O && O[k] === searchElement) {
          return k;
        }
        k++;
      }
      return -1;
    };
  }
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

/***/ }),

/***/ 5286:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/**
 * Created by cosimo on 2017/2/9.
 */


__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(62953);
let nowPrice;
function priceExtracor(selectors, radixPoint, split) {
  radixPoint = radixPoint || '.';
  split = split || ',';
  function extractPrice() {
    for (let i = 0; i < selectors.length; i++) {
      let selector = selectors[i];
      var price = document.querySelector(selector);
      if (price) {
        return formatPrice(price.textContent, radixPoint, split);
      }
    }
    return -1;
  }
  return extractPrice;
}
function formatPrice(price, radixPoint, split) {
  radixPoint = radixPoint || '.';
  split = split || ',';
  if (price === -1) {
    return -1;
  }
  if (price) {
    price = price.toString().replace(split, '');
    if (radixPoint && radixPoint !== '.') {
      price = price.replace(radixPoint, '.');
    }
    price = price.match(/[0-9.]+/);
    if (price) {
      try {
        return parseFloat(price[0]);
      } catch (e) {
        return -1;
      }
    }
  }
  return -1;
}
const getPLUSPrice = () => {
  let PLUSDom = $('.plus-price .price');
  if (PLUSDom.length === 0) {
    PLUSDom = $('.p-price-plus .price');
  }
  if (PLUSDom) {
    return Number(PLUSDom.text().replace(/[￥¥\s]+/g, ''));
  } else {
    return 0;
  }
};
function parserFactory(extractPrice) {
  function parser(callback) {
    function callbackWrapper(price) {
      if (price <= 0) {
        price = '';
      }
      if (!G.dp) {
        console.warn('G.dp not ready');
        return;
      }
      G.dp.price = price;
      G.dp.oldPrice = price;
      let tle = '';
      if (G.dp.name && (G.dp.site == "360buy" || G.dp.site == "suning")) {
        tle = G.dp.name.trim();
      }
      let priItem = [{
        'url': document.location.href,
        'price': price,
        'tle': tle,
        'crc32': ''
      }];
      if (G.dp.site == "360buy") {
        let PLUS = getPLUSPrice();
        if (PLUS) {
          priItem[0].plus = PLUS;
        }
      }
      G.priItem = priItem;
      // require('common/getListInfo').sendPriCheck(priItem)
    }
    var price = extractPrice();
    if (price === -1 || price == 0 || document.readyState !== 'complete') {
      let tryTimes = 0;
      let interval = setInterval(function () {
        tryTimes++;
        let price = extractPrice();
        if (document.readyState !== 'complete') {
          return;
        }
        if (price > 0 || tryTimes > 4) {
          clearInterval(interval);
          callbackWrapper(price);
        }
      }, 2500);
    } else {
      nowPrice = price;
      callbackWrapper(price);
    }
    callback(price);
  }
  return parser;
}
function template(selectors) {
  // console.log('selector:', selectors)
  // debugger
  return parserFactory(priceExtracor(selectors));
}
var priceParsers = {};
priceParsers[1] = ['#apex_desktop .a-price .a-offscreen', '#priceblock_dealprice', '#priceblock_saleprice', '#priceblock_ourprice', '#tmmSwatches .a-button-inner .a-button-text .a-color-price', '#tmmSwatches .a-button-inner  .a-color-secondary span', '#soldByThirdParty .offer-price', '#olp_feature_div .a-color-price', '.a-color-price'];
priceParsers[2] = ['#dd-price', '#d_price'];
// priceParsers[3] = ['#J_FinalPrice .price', '#jd-price', '.p-price:not(.dj-price) .price', '#price', '.price']
priceParsers[3] = ['#jd-price', '.p-price:not(.dj-price) .price', '#price', '.price'];
priceParsers[4] = ['.price-type'];
priceParsers[10] = ['#dl_sell_price'];
priceParsers[12] = ['div.promotion-container > p:nth-child(2)'];
priceParsers[13] = ['.dity-price-c'];
priceParsers[14] = ['.price1.salePrice_big'];
priceParsers[17] = ['.leftPrice'];
priceParsers[18] = ['.message_price', '.message_title_name_b'];
priceParsers[19] = ['.tehuiMoney'];
priceParsers[21] = ['#prodPriceAj'];
priceParsers[22] = ['#product_price'];
priceParsers[24] = ['.d-real-price'];
priceParsers[25] = ['.mainprice', '.small-price'];
priceParsers[28] = ['#prdPrice', '#salePrice'];
priceParsers[31] = ['#pricenow', '#current_price', '#detail_prom_price', ''];
priceParsers[32] = ['#buyPrice'];
priceParsers[33] = ['#leyoujia', '.item_l .font_num'];
priceParsers[34] = ['.selPrice'];
priceParsers[35] = ['#prd_price_div'];
priceParsers[39] = ['.price .value'];
priceParsers[40] = ['.Gd_shop_Price b'];
priceParsers[41] = ['.js.jsj b'];
priceParsers[43] = ['.price'];
priceParsers[45] = ['.price .action-price'];
priceParsers[50] = ['pro_promotion_price', '#pro_mall_price'];
priceParsers[51] = ['#SGoodsPrice'];
priceParsers[54] = ['#mprice'];
priceParsers[60] = ['#xxjg .pro_buy_sen', '#xxjg .pro_buy_dis option:last-child'];
priceParsers[61] = ['.tehuijia i:last-child .thisprice', '.priceList:last-child span'];
priceParsers[62] = ['.info-main .price-n b'];
priceParsers[66] = ['.YTPrice'];
priceParsers[72] = ['.price_now', ''];
priceParsers[73] = ['#productShowPrice'];
priceParsers[75] = ['.fsk_goods_price', '.gd_price'];
priceParsers[83] = ['#J_PromoBox .tb-wrTuan-num', '.tm-promo-price .tm-price', '.tm-price'];
priceParsers[84] = ['.buy_pri', '.dynamic-price'];
priceParsers[86] = ['.price_num', '.deal_accout_two', '.jumei_price', '.price_now'];
priceParsers[93] = ['#yitianPrice'];
priceParsers[94] = ['.good_price'];
priceParsers[97] = ['#price_big em', '.FFA em'];
priceParsers[98] = ['.p-price'];
priceParsers[99] = ['#shopprice'];
priceParsers[100] = ['#salePriceText'];
priceParsers[101] = ['.myPrice em'];
priceParsers[102] = ['#jiage .numb'];
priceParsers[103] = ['#nowPrice strong'];
priceParsers[108] = ['#spPrice'];
priceParsers[109] = ['.sku-price'];
priceParsers[110] = ['#bk-d-price'];
priceParsers[115] = ['.mprice', '.p_mp'];
priceParsers[123] = ['#J_PromoPriceNum', '#J_StrPrice'];
priceParsers[125] = ['.dPrice'];
priceParsers[126] = ['#price-sf .price'];
priceParsers[127] = ['#intro_price .price'];
priceParsers[128] = ['#price'];
priceParsers[129] = ['#J-sale-price', '.J-price'];
priceParsers[134] = ['#pro-price'];
priceParsers[135] = ['.de_info_price'];
priceParsers[138] = ['#ECS_SHOPPRICE'];
priceParsers[140] = ['.groupdetail_nowprice', '.dsingle_nowprice'];
priceParsers[141] = ['#jianyiPrice'];
priceParsers[142] = ['.spare02'];
priceParsers[145] = ['#pdpPrice .discount', '#pdpPrice', '.discou'];
priceParsers[146] = ['.action-price'];
priceParsers[147] = ['#postPrice'];
priceParsers[152] = ['.detail-item-gold'];
priceParsers[153] = ['#g5_price'];
priceParsers[154] = ['.promote_price'];
priceParsers[155] = ['.cur-price'];
priceParsers[156] = ['#secooPriceJs'];
priceParsers[157] = ['#prod_price'];
priceParsers[158] = ['.price24'];
priceParsers[164] = ['.jg_cuhong', '#myjgcuhong'];
priceParsers[167] = ['.J_mi_goodsPrice', '.money', '.J_currentPrice', 'J_proPrice', '.price'];
priceParsers[168] = ['.letv_price', '#js_price'];
priceParsers[174] = ['.pro-price'];
priceParsers[180] = ['#J_product_value', '.info-price'];
priceParsers[182] = ['.detail_price', '.coupon_price'];
priceParsers[184] = ['.promotion-price .price', '.price'];
priceParsers[188] = ['#goodsPrice'];
priceParsers[194] = ['.action-price'];
priceParsers[195] = ['#item_price'];
priceParsers[196] = ['.price strong'];
priceParsers[197] = ['.ms_price strong'];
priceParsers[202] = ['#J_NowPrice'];
priceParsers[203] = ['#J_NowPrice'];
priceParsers[210] = ['#g_price'];
priceParsers[213] = ['#offerPrice'];
priceParsers[221] = ['.price'];
priceParsers[222] = ['#rprice'];
priceParsers[223] = ['.currentPrice'];
priceParsers[226] = ['.mainPrice'];
priceParsers[227] = ['.sale-price'];
priceParsers[228] = priceParsers[1];
priceParsers[229] = priceParsers[1];
priceParsers[230] = ['#prcIsum'];
priceParsers[231] = ['.p-current-price .p-price'];
priceParsers[232] = ['.action-price'];
priceParsers[233] = ['.js-pdpLocalPrice'];
priceParsers[234] = ['#saleprice_value'];
priceParsers[235] = ['.detail_tzh span'];
priceParsers[236] = ['.pro_price span'];
priceParsers[237] = ['.view-SkuPriceInfo .price', '.view-SkuPriceInfo i'];
priceParsers[238] = ['#priceSlot .price', '._37Y6D ._3r_Ou'];
priceParsers[239] = ['.product-price'];
priceParsers[241] = ['.priceBlock .salePrice', '.priceBlock'];
priceParsers[242] = ['.ng-binding.wag-bold'];
priceParsers[243] = ['#displayPrice'];
priceParsers[244] = ['.price-main-product .price-current', '.price-current'];
priceParsers[245] = ['#final-price'];
priceParsers[246] = function () {
  parserFactory(priceExtracor(['#priceblock_dealprice', '#priceblock_ourprice', '#tmmSwatches .a-button-inner  .a-color-secondary span', '#soldByThirdParty .offer-price', '#olp_feature_div .a-color-price'], ',', '.'));
};
priceParsers[247] = ['#pricing td.highlight'];
priceParsers[248] = ['.product-price .price'];
priceParsers[249] = ['#js-product-information-price .product-current-price', '.main-product-details .compare-price__display'];
priceParsers[251] = ['.product-price-container .price-sales '];
priceParsers[252] = ['.detail-price', 's_discountpricenew', '.cutpriceposition'];
priceParsers[256] = ['#price'];
priceParsers[259] = ['#Price .productPrice'];
priceParsers[260] = ['#productPrice .nowPrice', '#productPrice'];
priceParsers[261] = ['#pdpMainPrice .pOurPriceM', '#pdpSubPrice .pRetailPrice:nth-child(2)', '.pRetailPrice', '#pdpMainPrice'];
priceParsers[263] = ['.priceSale'];
priceParsers[264] = ['.price-set'];
priceParsers[266] = priceParsers[1];
priceParsers[267] = ['.goods-data .goods-price span'];
priceParsers[268] = ['.goods-price-r1 strong'];
priceParsers[269] = ['#productRMB'];
priceParsers[270] = ['.j_PriceNum', '.price'];
priceParsers[271] = ['.price', '.product_price_cont'];
priceParsers[272] = ['.action-price'];
priceParsers[273] = ['.product_top_r span.fs20'];
priceParsers[274] = ['#jScarePrice', '.jFirstPrice'];
priceParsers[275] = ['.rmb-price'];
priceParsers[276] = ['.Price'];
priceParsers[277] = ['#currPrice'];
priceParsers[279] = ['.product_price', 'price_rmb'];
priceParsers[280] = ['#goodsCurrentPrice', '.prdsale strong'];
priceParsers[281] = ['#bqPrice', '.price span'];
priceParsers[285] = ['.price .current'];
priceParsers[286] = ['.j-item-now-price'];
priceParsers[287] = ['.xprice_val[itemprop="lowPrice"]'];
priceParsers[288] = ['.action-price'];
priceParsers[289] = ['.current_price'];
priceParsers[290] = ['.price'];
priceParsers[291] = ['#priceDiv .nowPrice'];
priceParsers[292] = ['.item-actPrice'];
priceParsers[294] = ['#salePriceSpan'];
priceParsers[295] = ['.price-sell .price-num'];
priceParsers[299] = ['.pro_price .price'];
priceParsers[300] = ['#priceDomId'];
priceParsers[305] = ['.autoShipPrice', '.singlePrice'];
priceParsers[306] = ['.product-price div'];
priceParsers[311] = ['.product-full__price', '.spp-product__mini-bag-price-size'];
priceParsers[313] = ['#details-price'];
priceParsers[328] = ['.goodsprice'];
priceParsers[330] = ['#you_pay.price', '.price'];
priceParsers[337] = ['.price'];
priceParsers[338] = ['.js-price'];
priceParsers[340] = ['.singlePrice'];
priceParsers[341] = ['.product-price .price'];
priceParsers[343] = ['.bose-price__price'];
priceParsers[344] = ['.item-price'];
priceParsers[345] = ['.ypYouPay'];
priceParsers[347] = ['#FlashPrice'];
priceParsers[348] = ['.goods-price .price1'];
priceParsers[349] = ['.j-retail-price'];
priceParsers[351] = ['.tm_jg #ECS_SHOPPRICE', '#ECS_SHOPPRICE'];
priceParsers[352] = ['.price-b .new'];
priceParsers[354] = ['.detail-last-price'];
priceParsers[355] = ['.price-item.current .value'];
priceParsers[356] = ['.m-price'];
priceParsers[357] = ['.product-price .price'];
priceParsers[362] = ['.DetailPriceContain .PriceNow'];
priceParsers[363] = ['.current-price'];
priceParsers[364] = ['.price'];
priceParsers[365] = priceParsers[246];
priceParsers[366] = priceParsers[1];
priceParsers[367] = ['.itemInfo .price'];
priceParsers[368] = ['#salePriceId'];
priceParsers[369] = ['#jd-price'];
priceParsers[370] = ['.g-group-price', '#kaluliPrice'];
priceParsers[371] = ['#show_goods_price [name="goods_real_price"]'];
priceParsers[372] = ['.price'];
priceParsers[373] = ['#bb_price'];
priceParsers[374] = ['#opr'];
priceParsers[376] = ['#JgoodsPrice'];
priceParsers[377] = ['.action-pro_price', 'action-price', '.price'];
priceParsers[378] = ['.jFirstPrice'];
priceParsers[379] = ['.action-price'];
priceParsers[380] = ['.now-price'];
priceParsers[381] = ['.priceAndService .price'];
priceParsers[382] = ['.sale-price'];
priceParsers[385] = ['#salePrice'];
priceParsers[386] = ['.price-box .price-product'];
priceParsers[387] = ['.spare02_price'];
priceParsers[388] = ['.current-price'];
priceParsers[389] = ['.price-info .current-price'];
priceParsers[390] = ['.shop-nature1 [price]'];
priceParsers[391] = ['.m-price'];
priceParsers[392] = ['.now-price'];
priceParsers[393] = ['.current-price'];
priceParsers[394] = ['.current-price .price-number'];
priceParsers[395] = ['.rmb-price'];
priceParsers[396] = ['.now .price'];
priceParsers[397] = ['.DetailPrice .PriceNow'];
priceParsers[398] = ['.last_prices .price'];
priceParsers[399] = ['.price-number'];
priceParsers[400] = ['.product-property .current-price'];
priceParsers[401] = ['.product-shop .PriceNow'];
priceParsers[402] = ['.price-number'];
priceParsers[403] = function () {
  parserFactory(priceExtracor(['.price-productdesc'], ',', '.'));
};
priceParsers[404] = ['.price-current'];
priceParsers[405] = ['.price-info .price'];
priceParsers[406] = ['.d-price'];
priceParsers[407] = ['.goods-price'];
priceParsers[408] = ['#product-summary .price'];
priceParsers[409] = ['.price_sale'];
priceParsers[410] = ['.salePrice', '.nowPrice'];
priceParsers[411] = ['#skuPrice'];
priceParsers[412] = ['#item-price .font-bold', '#item-price'];
priceParsers[413] = ['#productPriceInfo .m_price'];
priceParsers[414] = ['.wb-price span'];
priceParsers[415] = ['.product-price .price'];
priceParsers[416] = ['#price'];
priceParsers[417] = ['.special-price .price', '.price'];
priceParsers[418] = ['.final', '.here_price strong'];
priceParsers[419] = ['.market-price'];
priceParsers[420] = ['#salePrice'];
priceParsers[423] = ['.price'];
priceParsers[424] = ['.price-current', '.regular-price'];
priceParsers[427] = ['.redSalePrice', '.product-price-big .price-wrapper'];
priceParsers[428] = ['.monetary-price-value'];
priceParsers[429] = priceParsers[427];
priceParsers[430] = ['.num_span'];
priceParsers[431] = ['#mall_price'];
priceParsers[432] = ['#price_current'];
priceParsers[433] = ['.action-price'];
priceParsers[434] = ['.price'];
priceParsers[435] = ['.goodsprice'];

// 没有匹配到id的时候
priceParsers[9999] = function () {
  return function (callback) {
    callback();
  };
};
module.exports.clear = () => {
  nowPrice = null;
};
const sitePriceElements = {
  '360buy': '.p-price .price'
};
module.exports.init = async (siteId, callback) => {
  if (location.host === 'www.amazon.de') {
    callback(G.dp.oldPrice);
    return;
  }
  if (nowPrice) {
    callback(nowPrice);
    return;
  }
  if (sitePriceElements[G.site]) {
    await Promise.race([(__webpack_require__(60340).sleep)(3000), (__webpack_require__(30888).waitForConditionFn)(() => $(sitePriceElements[G.site]).text())]);
  }
  let s = priceParsers[siteId];
  if (s instanceof Array) {
    template(s)(callback);
  } else if (s instanceof Object && s.prototype) {
    s()(callback);
  } else {
    callback();
  }
};

/***/ }),

/***/ 5300:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


let tm;
let load;
let caches;
function addcnzz(c) {
  // var head = document.getElementsByTagName('head')
  // if(head && head[0]) head = head[0]
  // var script = document.createElement('script');
  // script.src = c;
  // script.async = true;
  // script.defer = true;
  // script.language = "JavaScript";
  // head.appendChild(script);
  // load = true
}
module.exports.init = function (cnzz) {
  if (cnzz) {
    addcnzz(cnzz);
  }
  // setTimeout(() => {
  //   log('ChromeVersion', require('common/browserType').getChromeVersion())
  // }, 1000)
  if (navigator.userAgent.toLowerCase().includes('edg')) {
    G.browser = 'edge';
  } else {
    G.browser = G.from_device;
  }
};
window.cnzzLogCount = 0;
const log = function (category, action, label, value, nodeid) {
  window.cnzzLogCount++;
  // if(!load) {
  //   return
  // };
  // require('common/log')([category, action, label, value, nodeid].filter(x => x).join('-'))
  (__webpack_require__(49388).get)('https://v.gwdang.com/visit/?action=' + [category, action, label, value, nodeid].filter(x => x).join('-'));
};
let logged = [];
const logOnce = function (category, action, label, value, nodeid) {
  // 同log，只记录一次
  let id = [category, action, label, value, nodeid].join('-');
  if (logged.indexOf(id) === -1) {
    log(category, action, label, value, nodeid);
    logged.push(id);
  }
};
module.exports.log = log;
module.exports.logOnce = logOnce;

// 记录某个元素的曝光和悬浮
module.exports.hoverLog = (element, name) => {
  setTimeout(() => {
    if ($(element).length) {
      log(name, '曝光');
    }
    $(element).hover(() => {
      logOnce(name, '悬浮');
    });
  }, 0);
};

/***/ }),

/***/ 5582:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(62953);
module.exports.init = () => {
  // skuId=100014979337&cat=12218%2C21455%2C21456&venderId=1000362423&isCanUseDQ=isCanUseDQ-1&isCanUseJQ=isCanUseJQ-1
  const skuId = window.pageConfig.product.skuid;
  const cat = window.pageConfig.product.cat.join(',');
  const venderId = window.pageConfig.product.venderId;
  return new Promise(resolve => {
    let domain = location.hostname;
    if (domain.includes('.jkcsjd.com')) {
      resolve(false);
    }
    $.get(`https://${domain}/coupons?skuId=${skuId}&cat=${encodeURIComponent(cat)}&venderId=${venderId}`).then(res => {
      let a = $('.coupon-wrap', res).children().toArray();
      let r = [];
      for (let i = 0; i < a.length; i++) {
        if ($(a[i]).text().indexOf('已领取的券') > -1) {
          break;
        }
        if ($(a[i]).hasClass('coupon-item')) {
          r.push(a[i]);
        }
      }
      if (!r.length) {
        resolve(false);
        return;
      }
      let resCoupon = r.map(x => {
        let couponVal = $(x).find('.coupon-val').text();
        let cond = $(x).find('.condition').text();
        let time = $(x).find('.coupon-time').html();
        if (cond.endsWith('可减')) {
          cond = cond.replace('可减', '减' + couponVal);
        }
        return {
          text: cond.replace('可用', '减' + couponVal),
          time: time
        };
      }).filter(x => {
        if (x.time) {
          let reList = [new RegExp('有效期([\\d\\-: ]*)至([\\d\\-: ]*)'), new RegExp('([\\d\\-: ]*)<br([\\d\\-: ]*)')];
          for (let re of reList) {
            let res = re.exec(x.time);
            if (res && res[1]) {
              if (new Date(res[1].trim()) > new Date()) {
                console.warn('filter early coupon', x);
                return false;
              }
            }
          }
        }
        return true;
      }).map(x => x.text);
      resolve(resCoupon);
    });
  });
};

/***/ }),

/***/ 5631:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ ShaiDanItemvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ ShaiDanItem)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/ShaiDanItem.vue?vue&type=template&id=731c91d4&scoped=true
var ShaiDanItemvue_type_template_id_731c91d4_scoped_true = __webpack_require__(64229);
;// ./src/standard/module/trend/ShaiDanItem.vue?vue&type=template&id=731c91d4&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/ShaiDanItem.vue?vue&type=script&lang=js
var ShaiDanItemvue_type_script_lang_js = __webpack_require__(3851);
;// ./src/standard/module/trend/ShaiDanItem.vue?vue&type=script&lang=js
 /* harmony default export */ const trend_ShaiDanItemvue_type_script_lang_js = (ShaiDanItemvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/ShaiDanItem.vue?vue&type=style&index=0&id=731c91d4&prod&scoped=true&lang=less
var ShaiDanItemvue_type_style_index_0_id_731c91d4_prod_scoped_true_lang_less = __webpack_require__(78579);
;// ./src/standard/module/trend/ShaiDanItem.vue?vue&type=style&index=0&id=731c91d4&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/trend/ShaiDanItem.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  trend_ShaiDanItemvue_type_script_lang_js,
  ShaiDanItemvue_type_template_id_731c91d4_scoped_true/* render */.XX,
  ShaiDanItemvue_type_template_id_731c91d4_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "731c91d4",
  null
  
)

/* harmony default export */ const ShaiDanItem = (component.exports);

/***/ }),

/***/ 5650:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ PddActivityQr)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/PddActivityQr.vue?vue&type=template&id=770c6b88&scoped=true
var PddActivityQrvue_type_template_id_770c6b88_scoped_true = __webpack_require__(85571);
;// ./src/common/components/PddActivityQr.vue?vue&type=template&id=770c6b88&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/PddActivityQr.vue?vue&type=script&lang=js
var PddActivityQrvue_type_script_lang_js = __webpack_require__(41456);
;// ./src/common/components/PddActivityQr.vue?vue&type=script&lang=js
 /* harmony default export */ const components_PddActivityQrvue_type_script_lang_js = (PddActivityQrvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/PddActivityQr.vue?vue&type=style&index=0&id=770c6b88&prod&scoped=true&lang=less
var PddActivityQrvue_type_style_index_0_id_770c6b88_prod_scoped_true_lang_less = __webpack_require__(52415);
;// ./src/common/components/PddActivityQr.vue?vue&type=style&index=0&id=770c6b88&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/PddActivityQr.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_PddActivityQrvue_type_script_lang_js,
  PddActivityQrvue_type_template_id_770c6b88_scoped_true/* render */.XX,
  PddActivityQrvue_type_template_id_770c6b88_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "770c6b88",
  null
  
)

/* harmony default export */ const PddActivityQr = (component.exports);

/***/ }),

/***/ 5778:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


/* eslint-disable no-bitwise */

const decodeCache = {};

function getDecodeCache (exclude) {
  let cache = decodeCache[exclude];
  if (cache) { return cache }

  cache = decodeCache[exclude] = [];

  for (let i = 0; i < 128; i++) {
    const ch = String.fromCharCode(i);
    cache.push(ch);
  }

  for (let i = 0; i < exclude.length; i++) {
    const ch = exclude.charCodeAt(i);
    cache[ch] = '%' + ('0' + ch.toString(16).toUpperCase()).slice(-2);
  }

  return cache
}

// Decode percent-encoded string.
//
function decode (string, exclude) {
  if (typeof exclude !== 'string') {
    exclude = decode.defaultChars;
  }

  const cache = getDecodeCache(exclude);

  return string.replace(/(%[a-f0-9]{2})+/gi, function (seq) {
    let result = '';

    for (let i = 0, l = seq.length; i < l; i += 3) {
      const b1 = parseInt(seq.slice(i + 1, i + 3), 16);

      if (b1 < 0x80) {
        result += cache[b1];
        continue
      }

      if ((b1 & 0xE0) === 0xC0 && (i + 3 < l)) {
        // 110xxxxx 10xxxxxx
        const b2 = parseInt(seq.slice(i + 4, i + 6), 16);

        if ((b2 & 0xC0) === 0x80) {
          const chr = ((b1 << 6) & 0x7C0) | (b2 & 0x3F);

          if (chr < 0x80) {
            result += '\ufffd\ufffd';
          } else {
            result += String.fromCharCode(chr);
          }

          i += 3;
          continue
        }
      }

      if ((b1 & 0xF0) === 0xE0 && (i + 6 < l)) {
        // 1110xxxx 10xxxxxx 10xxxxxx
        const b2 = parseInt(seq.slice(i + 4, i + 6), 16);
        const b3 = parseInt(seq.slice(i + 7, i + 9), 16);

        if ((b2 & 0xC0) === 0x80 && (b3 & 0xC0) === 0x80) {
          const chr = ((b1 << 12) & 0xF000) | ((b2 << 6) & 0xFC0) | (b3 & 0x3F);

          if (chr < 0x800 || (chr >= 0xD800 && chr <= 0xDFFF)) {
            result += '\ufffd\ufffd\ufffd';
          } else {
            result += String.fromCharCode(chr);
          }

          i += 6;
          continue
        }
      }

      if ((b1 & 0xF8) === 0xF0 && (i + 9 < l)) {
        // 111110xx 10xxxxxx 10xxxxxx 10xxxxxx
        const b2 = parseInt(seq.slice(i + 4, i + 6), 16);
        const b3 = parseInt(seq.slice(i + 7, i + 9), 16);
        const b4 = parseInt(seq.slice(i + 10, i + 12), 16);

        if ((b2 & 0xC0) === 0x80 && (b3 & 0xC0) === 0x80 && (b4 & 0xC0) === 0x80) {
          let chr = ((b1 << 18) & 0x1C0000) | ((b2 << 12) & 0x3F000) | ((b3 << 6) & 0xFC0) | (b4 & 0x3F);

          if (chr < 0x10000 || chr > 0x10FFFF) {
            result += '\ufffd\ufffd\ufffd\ufffd';
          } else {
            chr -= 0x10000;
            result += String.fromCharCode(0xD800 + (chr >> 10), 0xDC00 + (chr & 0x3FF));
          }

          i += 9;
          continue
        }
      }

      result += '\ufffd';
    }

    return result
  })
}

decode.defaultChars = ';/?:@&=+$,#';
decode.componentChars = '';

const encodeCache = {};

// Create a lookup array where anything but characters in `chars` string
// and alphanumeric chars is percent-encoded.
//
function getEncodeCache (exclude) {
  let cache = encodeCache[exclude];
  if (cache) { return cache }

  cache = encodeCache[exclude] = [];

  for (let i = 0; i < 128; i++) {
    const ch = String.fromCharCode(i);

    if (/^[0-9a-z]$/i.test(ch)) {
      // always allow unencoded alphanumeric characters
      cache.push(ch);
    } else {
      cache.push('%' + ('0' + i.toString(16).toUpperCase()).slice(-2));
    }
  }

  for (let i = 0; i < exclude.length; i++) {
    cache[exclude.charCodeAt(i)] = exclude[i];
  }

  return cache
}

// Encode unsafe characters with percent-encoding, skipping already
// encoded sequences.
//
//  - string       - string to encode
//  - exclude      - list of characters to ignore (in addition to a-zA-Z0-9)
//  - keepEscaped  - don't encode '%' in a correct escape sequence (default: true)
//
function encode (string, exclude, keepEscaped) {
  if (typeof exclude !== 'string') {
    // encode(string, keepEscaped)
    keepEscaped = exclude;
    exclude = encode.defaultChars;
  }

  if (typeof keepEscaped === 'undefined') {
    keepEscaped = true;
  }

  const cache = getEncodeCache(exclude);
  let result = '';

  for (let i = 0, l = string.length; i < l; i++) {
    const code = string.charCodeAt(i);

    if (keepEscaped && code === 0x25 /* % */ && i + 2 < l) {
      if (/^[0-9a-f]{2}$/i.test(string.slice(i + 1, i + 3))) {
        result += string.slice(i, i + 3);
        i += 2;
        continue
      }
    }

    if (code < 128) {
      result += cache[code];
      continue
    }

    if (code >= 0xD800 && code <= 0xDFFF) {
      if (code >= 0xD800 && code <= 0xDBFF && i + 1 < l) {
        const nextCode = string.charCodeAt(i + 1);
        if (nextCode >= 0xDC00 && nextCode <= 0xDFFF) {
          result += encodeURIComponent(string[i] + string[i + 1]);
          i++;
          continue
        }
      }
      result += '%EF%BF%BD';
      continue
    }

    result += encodeURIComponent(string[i]);
  }

  return result
}

encode.defaultChars = ";/?:@&=+$,-_.!~*'()#";
encode.componentChars = "-_.!~*'()";

function format (url) {
  let result = '';

  result += url.protocol || '';
  result += url.slashes ? '//' : '';
  result += url.auth ? url.auth + '@' : '';

  if (url.hostname && url.hostname.indexOf(':') !== -1) {
    // ipv6 address
    result += '[' + url.hostname + ']';
  } else {
    result += url.hostname || '';
  }

  result += url.port ? ':' + url.port : '';
  result += url.pathname || '';
  result += url.search || '';
  result += url.hash || '';

  return result
}

// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

//
// Changes from joyent/node:
//
// 1. No leading slash in paths,
//    e.g. in `url.parse('http://foo?bar')` pathname is ``, not `/`
//
// 2. Backslashes are not replaced with slashes,
//    so `http:\\example.org\` is treated like a relative path
//
// 3. Trailing colon is treated like a part of the path,
//    i.e. in `http://example.org:foo` pathname is `:foo`
//
// 4. Nothing is URL-encoded in the resulting object,
//    (in joyent/node some chars in auth and paths are encoded)
//
// 5. `url.parse()` does not have `parseQueryString` argument
//
// 6. Removed extraneous result properties: `host`, `path`, `query`, etc.,
//    which can be constructed using other parts of the url.
//

function Url () {
  this.protocol = null;
  this.slashes = null;
  this.auth = null;
  this.port = null;
  this.hostname = null;
  this.hash = null;
  this.search = null;
  this.pathname = null;
}

// Reference: RFC 3986, RFC 1808, RFC 2396

// define these here so at least they only have to be
// compiled once on the first module load.
const protocolPattern = /^([a-z0-9.+-]+:)/i;
const portPattern = /:[0-9]*$/;

// Special case for a simple path URL
/* eslint-disable-next-line no-useless-escape */
const simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/;

// RFC 2396: characters reserved for delimiting URLs.
// We actually just auto-escape these.
const delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'];

// RFC 2396: characters not allowed for various reasons.
const unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims);

// Allowed by RFCs, but cause of XSS attacks.  Always escape these.
const autoEscape = ['\''].concat(unwise);
// Characters that are never ever allowed in a hostname.
// Note that any invalid chars are also handled, but these
// are the ones that are *expected* to be seen, so we fast-path
// them.
const nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape);
const hostEndingChars = ['/', '?', '#'];
const hostnameMaxLen = 255;
const hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/;
const hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/;
// protocols that can allow "unsafe" and "unwise" chars.
// protocols that never have a hostname.
const hostlessProtocol = {
  javascript: true,
  'javascript:': true
};
// protocols that always contain a // bit.
const slashedProtocol = {
  http: true,
  https: true,
  ftp: true,
  gopher: true,
  file: true,
  'http:': true,
  'https:': true,
  'ftp:': true,
  'gopher:': true,
  'file:': true
};

function urlParse (url, slashesDenoteHost) {
  if (url && url instanceof Url) return url

  const u = new Url();
  u.parse(url, slashesDenoteHost);
  return u
}

Url.prototype.parse = function (url, slashesDenoteHost) {
  let lowerProto, hec, slashes;
  let rest = url;

  // trim before proceeding.
  // This is to support parse stuff like "  http://foo.com  \n"
  rest = rest.trim();

  if (!slashesDenoteHost && url.split('#').length === 1) {
    // Try fast path regexp
    const simplePath = simplePathPattern.exec(rest);
    if (simplePath) {
      this.pathname = simplePath[1];
      if (simplePath[2]) {
        this.search = simplePath[2];
      }
      return this
    }
  }

  let proto = protocolPattern.exec(rest);
  if (proto) {
    proto = proto[0];
    lowerProto = proto.toLowerCase();
    this.protocol = proto;
    rest = rest.substr(proto.length);
  }

  // figure out if it's got a host
  // user@server is *always* interpreted as a hostname, and url
  // resolution will treat //foo/bar as host=foo,path=bar because that's
  // how the browser resolves relative URLs.
  /* eslint-disable-next-line no-useless-escape */
  if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) {
    slashes = rest.substr(0, 2) === '//';
    if (slashes && !(proto && hostlessProtocol[proto])) {
      rest = rest.substr(2);
      this.slashes = true;
    }
  }

  if (!hostlessProtocol[proto] &&
      (slashes || (proto && !slashedProtocol[proto]))) {
    // there's a hostname.
    // the first instance of /, ?, ;, or # ends the host.
    //
    // If there is an @ in the hostname, then non-host chars *are* allowed
    // to the left of the last @ sign, unless some host-ending character
    // comes *before* the @-sign.
    // URLs are obnoxious.
    //
    // ex:
    // http://a@b@c/ => user:a@b host:c
    // http://a@b?@c => user:a host:c path:/?@c

    // v0.12 TODO(isaacs): This is not quite how Chrome does things.
    // Review our test case against browsers more comprehensively.

    // find the first instance of any hostEndingChars
    let hostEnd = -1;
    for (let i = 0; i < hostEndingChars.length; i++) {
      hec = rest.indexOf(hostEndingChars[i]);
      if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) {
        hostEnd = hec;
      }
    }

    // at this point, either we have an explicit point where the
    // auth portion cannot go past, or the last @ char is the decider.
    let auth, atSign;
    if (hostEnd === -1) {
      // atSign can be anywhere.
      atSign = rest.lastIndexOf('@');
    } else {
      // atSign must be in auth portion.
      // http://a@b/c@d => host:b auth:a path:/c@d
      atSign = rest.lastIndexOf('@', hostEnd);
    }

    // Now we have a portion which is definitely the auth.
    // Pull that off.
    if (atSign !== -1) {
      auth = rest.slice(0, atSign);
      rest = rest.slice(atSign + 1);
      this.auth = auth;
    }

    // the host is the remaining to the left of the first non-host char
    hostEnd = -1;
    for (let i = 0; i < nonHostChars.length; i++) {
      hec = rest.indexOf(nonHostChars[i]);
      if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) {
        hostEnd = hec;
      }
    }
    // if we still have not hit it, then the entire thing is a host.
    if (hostEnd === -1) {
      hostEnd = rest.length;
    }

    if (rest[hostEnd - 1] === ':') { hostEnd--; }
    const host = rest.slice(0, hostEnd);
    rest = rest.slice(hostEnd);

    // pull out port.
    this.parseHost(host);

    // we've indicated that there is a hostname,
    // so even if it's empty, it has to be present.
    this.hostname = this.hostname || '';

    // if hostname begins with [ and ends with ]
    // assume that it's an IPv6 address.
    const ipv6Hostname = this.hostname[0] === '[' &&
        this.hostname[this.hostname.length - 1] === ']';

    // validate a little.
    if (!ipv6Hostname) {
      const hostparts = this.hostname.split(/\./);
      for (let i = 0, l = hostparts.length; i < l; i++) {
        const part = hostparts[i];
        if (!part) { continue }
        if (!part.match(hostnamePartPattern)) {
          let newpart = '';
          for (let j = 0, k = part.length; j < k; j++) {
            if (part.charCodeAt(j) > 127) {
              // we replace non-ASCII char with a temporary placeholder
              // we need this to make sure size of hostname is not
              // broken by replacing non-ASCII by nothing
              newpart += 'x';
            } else {
              newpart += part[j];
            }
          }
          // we test again with ASCII char only
          if (!newpart.match(hostnamePartPattern)) {
            const validParts = hostparts.slice(0, i);
            const notHost = hostparts.slice(i + 1);
            const bit = part.match(hostnamePartStart);
            if (bit) {
              validParts.push(bit[1]);
              notHost.unshift(bit[2]);
            }
            if (notHost.length) {
              rest = notHost.join('.') + rest;
            }
            this.hostname = validParts.join('.');
            break
          }
        }
      }
    }

    if (this.hostname.length > hostnameMaxLen) {
      this.hostname = '';
    }

    // strip [ and ] from the hostname
    // the host field still retains them, though
    if (ipv6Hostname) {
      this.hostname = this.hostname.substr(1, this.hostname.length - 2);
    }
  }

  // chop off from the tail first.
  const hash = rest.indexOf('#');
  if (hash !== -1) {
    // got a fragment string.
    this.hash = rest.substr(hash);
    rest = rest.slice(0, hash);
  }
  const qm = rest.indexOf('?');
  if (qm !== -1) {
    this.search = rest.substr(qm);
    rest = rest.slice(0, qm);
  }
  if (rest) { this.pathname = rest; }
  if (slashedProtocol[lowerProto] &&
      this.hostname && !this.pathname) {
    this.pathname = '';
  }

  return this
};

Url.prototype.parseHost = function (host) {
  let port = portPattern.exec(host);
  if (port) {
    port = port[0];
    if (port !== ':') {
      this.port = port.substr(1);
    }
    host = host.substr(0, host.length - port.length);
  }
  if (host) { this.hostname = host; }
};

exports.decode = decode;
exports.encode = encode;
exports.format = format;
exports.parse = urlParse;


/***/ }),

/***/ 5856:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(75301);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("780ece4e", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 5883:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', settingUrl = $data.settingUrl, $escape = $imports.$escape, feedback = $data.feedback, help = $data.help, webpage = $data.webpage;
    $$out += '<div id="nbt_setting"> \n  <a class="setting-item main-setting" ';
    if (settingUrl) {
        $$out += ' href="';
        $$out += $escape(settingUrl);
        $$out += '" target="_blank"';
    }
    $$out += ' >\n    <em class="gwd_bg"></em>\n    <span class="blkcolor4">功能设置</span>\n  </a>\n  <a class="setting-item nbt-feedback" href="';
    $$out += $escape(feedback);
    $$out += '" target="_blank">\n    <em class="gwd_bg"></em>\n    <span class="blkcolor4">意见反馈</span>\n  </a>\n  <a class="setting-item nbt-help" href="';
    $$out += $escape(help);
    $$out += '" target="_blank">\n    <em class="gwd_bg"></em>\n    <span class="blkcolor4">使用帮助</span>\n  </a>\n  <a class="setting-item nbt-webpage" href="';
    $$out += $escape(webpage);
    $$out += '" target="_blank">\n    <em class="gwd_bg"></em>\n    <span class="blkcolor4">购物党首页</span>\n  </a>\n</div>';
    return $$out;
};

/***/ }),

/***/ 5987:
/***/ ((__unused_webpack_module, exports) => {

"use strict";

Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.escape = exports.encodeXML = exports.getCodePoint = exports.xmlReplacer = void 0;
exports.xmlReplacer = /["&'<>$\x80-\uFFFF]/g;
var xmlCodeMap = new Map([
    [34, "&quot;"],
    [38, "&amp;"],
    [39, "&apos;"],
    [60, "&lt;"],
    [62, "&gt;"],
]);
// For compatibility with node < 4, we wrap `codePointAt`
exports.getCodePoint = 
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
String.prototype.codePointAt != null
    ? function (str, index) { return str.codePointAt(index); }
    : // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
        function (c, index) {
            return (c.charCodeAt(index) & 0xfc00) === 0xd800
                ? (c.charCodeAt(index) - 0xd800) * 0x400 +
                    c.charCodeAt(index + 1) -
                    0xdc00 +
                    0x10000
                : c.charCodeAt(index);
        };
/**
 * Encodes all non-ASCII characters, as well as characters not valid in XML
 * documents using XML entities.
 *
 * If a character has no equivalent entity, a
 * numeric hexadecimal reference (eg. `&#xfc;`) will be used.
 */
function encodeXML(str) {
    var ret = "";
    var lastIdx = 0;
    var match;
    while ((match = exports.xmlReplacer.exec(str)) !== null) {
        var i = match.index;
        var char = str.charCodeAt(i);
        var next = xmlCodeMap.get(char);
        if (next !== undefined) {
            ret += str.substring(lastIdx, i) + next;
            lastIdx = i + 1;
        }
        else {
            ret += "".concat(str.substring(lastIdx, i), "&#x").concat((0, exports.getCodePoint)(str, i).toString(16), ";");
            // Increase by 1 if we have a surrogate pair
            lastIdx = exports.xmlReplacer.lastIndex += Number((char & 0xfc00) === 0xd800);
        }
    }
    return ret + str.substr(lastIdx);
}
exports.encodeXML = encodeXML;
/**
 * Encodes all non-ASCII characters, as well as characters not valid in XML
 * documents using numeric hexadecimal reference (eg. `&#xfc;`).
 *
 * Have a look at `escapeUTF8` if you want a more concise output at the expense
 * of reduced transportability.
 *
 * @param data String to escape.
 */
exports.escape = encodeXML;
/**
 * Creates a function that escapes all characters matched by the given regular
 * expression using the given map of characters to escape to their entities.
 *
 * @param regex Regular expression to match characters to escape.
 * @param map Map of characters to escape to their entities.
 *
 * @returns Function that escapes all characters matched by the given regular
 * expression using the given map of characters to escape to their entities.
 */
function getEscaper(regex, map) {
    return function escape(data) {
        var match;
        var lastIdx = 0;
        var result = "";
        while ((match = regex.exec(data))) {
            if (lastIdx !== match.index) {
                result += data.substring(lastIdx, match.index);
            }
            // We know that this character will be in the map.
            result += map.get(match[0].charCodeAt(0));
            // Every match will be of length 1
            lastIdx = match.index + 1;
        }
        return result + data.substring(lastIdx);
    };
}
/**
 * Encodes all characters not valid in XML documents using XML entities.
 *
 * Note that the output will be character-set dependent.
 *
 * @param data String to escape.
 */
exports.escapeUTF8 = getEscaper(/[&<>'"]/g, xmlCodeMap);
/**
 * Encodes all characters that have to be escaped in HTML attributes,
 * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
 *
 * @param data String to escape.
 */
exports.escapeAttribute = getEscaper(/["&\u00A0]/g, new Map([
    [34, "&quot;"],
    [38, "&amp;"],
    [160, "&nbsp;"],
]));
/**
 * Encodes all characters that have to be escaped in HTML text,
 * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
 *
 * @param data String to escape.
 */
exports.escapeText = getEscaper(/[&<>\u00A0]/g, new Map([
    [38, "&amp;"],
    [60, "&lt;"],
    [62, "&gt;"],
    [160, "&nbsp;"],
]));
//# sourceMappingURL=escape.js.map

/***/ }),

/***/ 6074:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("span", {
    class: `gwd-${_vm.site} gwd-protect-hint ${_vm.show ? "gwd-protect-hint-hover" : ""}`,
    style: _vm.offsetStyle,
    on: {
      mouseover: _vm.over,
      mouseleave: _vm.mouseleave,
      click: function ($event) {
        $event.stopPropagation();
        $event.preventDefault();
      }
    }
  }, [_vm._v("\n  " + _vm._s(_vm.hintText) + "\n  "), _c("div", {
    staticClass: "gwd-protect-bar"
  }, [_c("span", {
    staticClass: "gwd-title-inner",
    staticStyle: {
      "font-size": "14px",
      color: "#333"
    }
  }, [_vm._v(_vm._s(_vm.hintText))]), _vm._v(" "), _c("div", {
    staticClass: "gwd-protect-window gwd-column"
  }, [_vm.login ? [_vm._m(0), _vm._v(" "), _c("div", {
    staticClass: "gwd-row"
  }, [_c("div", {
    staticClass: "gwd-submit-contents",
    staticStyle: {
      flex: "1",
      position: "relative"
    }
  }, [_c("div", {
    staticClass: "gwd-submit-item"
  }, [_c("span", [_vm._v("实付单价")]), _vm._v(" "), _c("div", {
    staticClass: "gwd-row gwd-input"
  }, [_c("NumberInput", {
    attrs: {
      allowDot: true
    },
    model: {
      value: _vm.singlePrice,
      callback: function ($$v) {
        _vm.singlePrice = $$v;
      },
      expression: "singlePrice"
    }
  }), _vm._v(" "), _c("span", [_vm._v("元")])], 1)]), _vm._v(" "), _c("div", {
    staticClass: "gwd-submit-item"
  }, [_c("span", [_vm._v("购买数量")]), _vm._v(" "), _c("div", {
    staticClass: "gwd-row gwd-input"
  }, [_c("NumberInput", {
    attrs: {
      allowDot: false
    },
    model: {
      value: _vm.amount,
      callback: function ($$v) {
        _vm.amount = $$v;
      },
      expression: "amount"
    }
  }), _vm._v(" "), _c("span", [_vm._v("件")])], 1)]), _vm._v(" "), _c("div", {
    staticClass: "gwd-submit-item"
  }, [_c("span", [_vm._v("下单时间")]), _vm._v(" "), _c("div", {
    staticClass: "gwd-row gwd-input",
    staticStyle: {
      cursor: "pointer"
    }
  }, [_c("DateInput", {
    on: {
      close: _vm.pickerClose
    },
    model: {
      value: _vm.date,
      callback: function ($$v) {
        _vm.date = $$v;
      },
      expression: "date"
    }
  }), _vm._v(" "), _c("img", {
    staticStyle: {
      width: "16px",
      height: "16px"
    },
    attrs: {
      src: __webpack_require__(39182),
      alt: ""
    }
  })], 1)]), _vm._v(" "), _c("div", {
    staticClass: "gwd-submit-item"
  }, [_c("span", [_vm._v("价保周期")]), _vm._v(" "), _c("div", {
    staticClass: "gwd-row gwd-input"
  }, [_c("NumberInput", {
    attrs: {
      allowDot: false
    },
    model: {
      value: _vm.days,
      callback: function ($$v) {
        _vm.days = $$v;
      },
      expression: "days"
    }
  }), _vm._v(" "), _c("span", [_vm._v("天")])], 1)]), _vm._v(" "), _c("div", {
    staticClass: "gwd-error-msg",
    class: {
      "gwd-error-msg-fading": _vm.errFading
    }
  }, [_vm._v(_vm._s(_vm.errmsg))]), _vm._v(" "), _c("button", {
    staticClass: "gwd-button",
    on: {
      click: function ($event) {
        $event.preventDefault();
        return _vm.submit.apply(null, arguments);
      }
    }
  }, [_vm._v("加入" + _vm._s(_vm.added ? "成功" : "监控"))])]), _vm._v(" "), _c("div", {
    staticClass: "gwd-vline"
  }), _vm._v(" "), _c("div", {
    staticClass: "gwd-column gwd-align gwd-qr-area",
    staticStyle: {
      width: "84px",
      height: "100%"
    }
  }, [_c("span", {
    staticStyle: {
      "font-size": "13px",
      color: "#404547",
      "line-height": "20px",
      "margin-top": "3px"
    }
  }, [_vm._v("微信提醒")]), _vm._v(" "), _c("img", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.user.wxQr,
      expression: "user.wxQr"
    }],
    staticStyle: {
      "margin-top": "18px",
      width: "84px",
      height: "84px"
    },
    attrs: {
      src: _vm.user.wxQr,
      alt: ""
    }
  }), _vm._v(" "), _vm._m(1)])])] : [_c("div", {
    staticClass: "gwd-column gwd-align"
  }, [_vm._m(2), _vm._v(" "), _c("CommonLogin", {
    staticStyle: {
      flex: "1"
    },
    attrs: {
      position: "gwd-mini",
      "show-alter-login": "true",
      "alter-login-position": "row"
    }
  })], 1)]], 2)])]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-title",
    staticStyle: {
      "margin-bottom": "5px"
    }
  }, [_c("img", {
    staticStyle: {
      width: "128px",
      height: "18px"
    },
    attrs: {
      src: __webpack_require__(68374),
      alt: ""
    }
  })]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("span", {
    staticClass: "gwd-font11",
    staticStyle: {
      "margin-top": "12px",
      "line-height": "16px",
      color: "#969899",
      "white-space": "nowrap",
      "text-align": "center"
    }
  }, [_vm._v("\n              扫码关注公众号"), _c("br"), _vm._v("商品降价自动提醒\n            ")]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticStyle: {
      "text-align": "center",
      "font-size": "13px",
      color: "#9f9f9f",
      "line-height": "18px",
      "margin-top": "16px",
      "margin-bottom": "24px"
    }
  }, [_vm._v("\n            登录后获取价保监控"), _c("br"), _vm._v("一旦降价自动提醒您申请返差价\n          ")]);
}];
render._withStripped = true;

/***/ }),

/***/ 6301:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "minibar-btn-box gwd-row gwd-align gwd-jcc",
    staticStyle: {
      display: "inline-flex"
    }
  }, [_c("em", {
    staticClass: "gwd-favor-icon",
    class: {
      "gwd-favored": _vm.checked
    }
  }), _vm._v(" "), _c("span", [_vm._v(_vm._s(_vm.checked ? "已添加提醒" : "降价提醒"))])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 6421:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

/**
 * Alignment pattern are fixed reference pattern in defined positions
 * in a matrix symbology, which enables the decode software to re-synchronise
 * the coordinate mapping of the image modules in the event of moderate amounts
 * of distortion of the image.
 *
 * Alignment patterns are present only in QR Code symbols of version 2 or larger
 * and their number depends on the symbol version.
 */

const getSymbolSize = (__webpack_require__(56886).getSymbolSize)

/**
 * Calculate the row/column coordinates of the center module of each alignment pattern
 * for the specified QR Code version.
 *
 * The alignment patterns are positioned symmetrically on either side of the diagonal
 * running from the top left corner of the symbol to the bottom right corner.
 *
 * Since positions are simmetrical only half of the coordinates are returned.
 * Each item of the array will represent in turn the x and y coordinate.
 * @see {@link getPositions}
 *
 * @param  {Number} version QR Code version
 * @return {Array}          Array of coordinate
 */
exports.getRowColCoords = function getRowColCoords (version) {
  if (version === 1) return []

  const posCount = Math.floor(version / 7) + 2
  const size = getSymbolSize(version)
  const intervals = size === 145 ? 26 : Math.ceil((size - 13) / (2 * posCount - 2)) * 2
  const positions = [size - 7] // Last coord is always (size - 7)

  for (let i = 1; i < posCount - 1; i++) {
    positions[i] = positions[i - 1] - intervals
  }

  positions.push(6) // First coord is always 6

  return positions.reverse()
}

/**
 * Returns an array containing the positions of each alignment pattern.
 * Each array's element represent the center point of the pattern as (x, y) coordinates
 *
 * Coordinates are calculated expanding the row/column coordinates returned by {@link getRowColCoords}
 * and filtering out the items that overlaps with finder pattern
 *
 * @example
 * For a Version 7 symbol {@link getRowColCoords} returns values 6, 22 and 38.
 * The alignment patterns, therefore, are to be centered on (row, column)
 * positions (6,22), (22,6), (22,22), (22,38), (38,22), (38,38).
 * Note that the coordinates (6,6), (6,38), (38,6) are occupied by finder patterns
 * and are not therefore used for alignment patterns.
 *
 * let pos = getPositions(7)
 * // [[6,22], [22,6], [22,22], [22,38], [38,22], [38,38]]
 *
 * @param  {Number} version QR Code version
 * @return {Array}          Array of coordinates
 */
exports.getPositions = function getPositions (version) {
  const coords = []
  const pos = exports.getRowColCoords(version)
  const posLength = pos.length

  for (let i = 0; i < posLength; i++) {
    for (let j = 0; j < posLength; j++) {
      // Skip if position is occupied by finder patterns
      if ((i === 0 && j === 0) || // top-left
          (i === 0 && j === posLength - 1) || // bottom-left
          (i === posLength - 1 && j === 0)) { // top-right
        continue
      }

      coords.push([pos[i], pos[j]])
    }
  }

  return coords
}


/***/ }),

/***/ 6469:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var wellKnownSymbol = __webpack_require__(78227);
var create = __webpack_require__(2360);
var defineProperty = (__webpack_require__(24913).f);

var UNSCOPABLES = wellKnownSymbol('unscopables');
var ArrayPrototype = Array.prototype;

// Array.prototype[@@unscopables]
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
if (ArrayPrototype[UNSCOPABLES] === undefined) {
  defineProperty(ArrayPrototype, UNSCOPABLES, {
    configurable: true,
    value: create(null)
  });
}

// add a key to Array.prototype[@@unscopables]
module.exports = function (key) {
  ArrayPrototype[UNSCOPABLES][key] = true;
};


/***/ }),

/***/ 6527:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ Teleportvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ Teleport)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/Teleport.vue?vue&type=template&id=0d585e92
var Teleportvue_type_template_id_0d585e92 = __webpack_require__(48904);
;// ./src/common/components/Teleport.vue?vue&type=template&id=0d585e92

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/Teleport.vue?vue&type=script&lang=js
var Teleportvue_type_script_lang_js = __webpack_require__(65845);
;// ./src/common/components/Teleport.vue?vue&type=script&lang=js
 /* harmony default export */ const components_Teleportvue_type_script_lang_js = (Teleportvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/Teleport.vue





/* normalize component */
;
var component = (0,componentNormalizer/* default */.A)(
  components_Teleportvue_type_script_lang_js,
  Teleportvue_type_template_id_0d585e92/* render */.XX,
  Teleportvue_type_template_id_0d585e92/* staticRenderFns */.Yp,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ const Teleport = (component.exports);

/***/ }),

/***/ 6679:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
/* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97825);
/* harmony import */ var _style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
/* harmony import */ var _style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
/* harmony import */ var _style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
/* harmony import */ var _style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41113);
/* harmony import */ var _style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _css_loader_index_js_index_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(57984);
/* harmony import */ var _css_loader_index_js_index_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_css_loader_index_js_index_css__WEBPACK_IMPORTED_MODULE_6__);
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _css_loader_index_js_index_css__WEBPACK_IMPORTED_MODULE_6__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _css_loader_index_js_index_css__WEBPACK_IMPORTED_MODULE_6__[__WEBPACK_IMPORT_KEY__]
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());
options.setAttributes = (_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());

      options.insert = _style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
    
options.domAPI = (_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
options.insertStyleElement = (_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());

var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_css_loader_index_js_index_css__WEBPACK_IMPORTED_MODULE_6___default()), options);




       /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_css_loader_index_js_index_css__WEBPACK_IMPORTED_MODULE_6___default()) && (_css_loader_index_js_index_css__WEBPACK_IMPORTED_MODULE_6___default().locals) ? (_css_loader_index_js_index_css__WEBPACK_IMPORTED_MODULE_6___default().locals) : undefined);


/***/ }),

/***/ 6695:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-sd-img-tooltip[data-v-ef176d54] {\n  width: 57px;\n  height: 14px;\n  border: 1px solid #ffd6d3;\n  border-radius: 2px;\n  box-sizing: border-box;\n  cursor: pointer;\n  position: relative;\n  line-height: 12px;\n}\n.gwd-sd-img-tooltip .gwd-font11[data-v-ef176d54] {\n  color: #e03024;\n  white-space: nowrap;\n  transform-origin: top center;\n}\n", ""]);

// exports


/***/ }),

/***/ 6762:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '';
    $$out += '<div id="trenm_trend_detail">\n  <div id="trend_box">\n  </div>\n  <div class="min-max-price-lable">\n    <div class="min-max-box">\n      <span class="max-lab">最高:\uFFE55.00</span>\n      <span class="min-lab">最低:\uFFE53.00</span>\n    </div>\n  </div>\n<!--  <div class="gwd-row" style="justify-content: flex-end; clear: both; padding-right: 20px;">-->\n<!--    <a id="steam_ad" href="https://steam.ffffgame.com/vest.html?type=2&product_id=1&channel=xj01_hz" class="gwd-inline-row gwd-align" target="_blank">-->\n<!--      <img ';
    $$out += 'src="https://cdn.gwdang.com/images/extensions/steamLink@2x.png"';
    $$out += ' alt="" style="width: 101px; height: 13.5px">-->\n<!--      <img ';
    $$out += 'src="https://cdn.gwdang.com/images/extensions/steamWhiteArrow@2x.png"';
    $$out += ' alt="" style="width: 12px; height: 12px; margin-left: 2px; margin-top: 3px">-->\n<!--    </a>-->\n<!--  </div>-->\n  <style type="text/css">\n    .game_area_purchase_game_wrapper.steam_box_tt ,.steam_box_tt{\n      position: relative;\n      z-index: 501;\n    }\n    #trenm_trend_detail {\n      width: 400px;\n      height: 264px;\n      border: 1px solid #394653;\n      box-shadow: 0 2px 4px 0 #465F7C;\n      background-color: #394653;\n      position: absolute;\n      bottom: 26px;\n      display: none;\n      z-index: 9999999999;\n    }\n    #trenm_trend_detail *{\n      font-family: "microsoft yahei";\n    }\n    #trend_box {\n      margin-top: 36px;\n      height: 200px;\n      width: 400px;\n      box-sizing: border-box;\n      float: left;\n      border:1px solid #394653;\n    }\n    .trend-compare {\n      background-image: linear-gradient(-180deg, #283645 0%, #2C3A49 100%);\n      border: 1px solid #394653;\n      float: left;\n      width: 214px;\n      height: 100%;\n    }\n    .trend-compare p {\n      line-height: 19px;\n      float: left;\n      margin-top: 18px;\n      height: 19px;\n      font-size: 14px;\n      color: #DAEDFF;\n      text-align: center;\n      width: 100%;\n    }\n    .trend-compare ul li {\n      list-style: none;\n      float: left;\n      margin-top: 20px;\n      height: 19px;\n      width: 100%;\n    }\n    .trend-compare ul li span {\n      height: 100%;\n    }\n    .trend-compare ul li:after {\n      display: block;\n      content: "";\n      clear: both;\n    }\n    .trend-com-sp1 {\n      font-size: 13px;\n      color: #DAEDFF;\n      margin-left: 12px;\n      width: 65px;\n      overflow: hidden;\n      float: left;\n    }\n    .trend-com-sp2 {\n      font-size: 14px;\n      color: #71CAFF;\n      float: right;\n      text-align: right;\n      line-height: 19px;\n      margin-right: 2px;\n    }\n    .trend-com-sp3.isdiscount {\n      color: #87B61F;\n    }\n    .trend-com-sp3 {\n      font-size: 12px;\n      color:  #F05428;\n      height: 19px;\n      float: right!important;\n      margin-right: 10px;\n      text-align: right;\n    }\n    .min-max-price-lable {\n      position: absolute;\n      height: 35px;\n      width: 402px;\n      top: 0px;\n      text-align: center;\n      left: 0px;\n      background-color: #394653;\n    }\n    .min-max-box {\n      margin: 0 auto;\n      display: inline-block;\n    }\n    .min-max-price-lable span {\n      height: 26px;\n      float: left;\n      padding: 0 7px;\n      margin-top: 10px;\n      line-height: 26px;\n      text-align: center;\n      border-radius: 2px;\n      cursor: default;\n    }\n    .min-max-price-lable .max-lab {\n      background: #2D3A46;\n      border: 1px solid #FF5627;\n      color: #FF5627;\n      margin-right: 36px;\n    }\n    .min-max-price-lable .min-lab {\n      background: #2E3A47;\n      border: 1px solid #9ED81E;\n      color: #9ED81E;\n    }\n    .ttip-discount {\n      width: 110px;\n      height: 54px;\n      cursor: default;\n    }\n    .ttip-discount span.ttip-sp1 {\n      margin-top: 8px;\n    }\n    .ttip-discount span {\n      float: left;\n      width: 100px;\n      height: 16px;\n      margin-left: 10px;\n      line-height: 16px;\n      font-family: "microsoft yahei";\n      font-size: 12px;\n      color: #BDD9F3;\n      margin-top: 4px;\n      cursor: default;\n    }\n\n    g.highcharts-grid {\n      opacity: 0.5;\n    }\n  </style>\n</div>\n';
    return $$out;
};

/***/ }),

/***/ 6864:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, " #gwd_ht_main a{\n      display: inline-block;\n    }\n    .gwd_haitao {\n      font-size: 12px;\n      font-family: 'Microsoft Yahei'\n    }\n    #gwd_ht_main{\n      width: 376px;\n      height: 198px;\n      font-size: 13px;\n      display: inline-block;\n      border: 1px solid #e6e9eb;\n      border-radius: 18px;\n      box-shadow: 0px 5px 19px 0px #d7d8d9;\n    }\n    #gwd_ht_load img {\n      position: relative;\n      top: 91px;\n      left: 74px;\n    }\n    .ht_6pm{\n      position: relative;\n      margin: 0 auto;\n    }\n    #gwd_ht_main .ht_head{\n      height: 36px;\n      position: relative;\n    }\n    #gwd_ht_main .gwd_site_icon{\n      display: inline-block;\n      background: url('http://s1.gwdang.com/images/extensions/haitao_siteicon.png') 13px 7px no-repeat;\n      background-size: 24px 22px;\n      height: 36px;\n      width: 52px;\n      float: left;\n      cursor: pointer;\n    }\n    #gwd_ht_main .unit_price #ht_addcollect{\n      border: 1px solid #f07860;\n      cursor: pointer;\n      height: 24px;\n      line-height: 24px;\n      text-align: center;\n      width: 77px;\n      border-radius: 12px;\n      background-color: #fff;\n      margin-bottom: 6px;\n      margin-top: 4px;\n      color: #f07860;\n    }\n    #gwd_ht_main .unit_price #ht_addcollect.trend_wait.c_adding{\n      background-color: #f07860;\n      color: #fff;\n    }\n    #gwd_ht_main .unit_price #ht_addcollect.trend_wait.c_added{\n      background-color: #f07860;\n      color: #fff;\n    }\n    .unit_price > span {\n      font-size: 14px;\n    }\n    .price_tle {\n      margin-left: 12px;\n    }\n    #gwd_ht_main .unit_price #ht_addcollect:hover {\n      text-decoration: none;\n    }\n    #gwd_ht_main .unit_price #ht_addcollect:hover span {\n      text-decoration: underline;\n    }\n    .gwd_haitao .price_num{\n      color: #778e99;\n      display: inline-block;\n      width: 89px;\n      font-weight: bold;\n      font-size: 16px;\n      margin-left: 10px;\n    }\n    .gwd_haitao .ht_getprice{\n      width: 322px;\n      height: 35px;\n      line-height: 35px;\n      font-size: 16px;\n      text-align: center;\n      float: left;\n      color: #454A4D;\n      border-left: 1px solid #e6e9eb;\n    }\n    .fontf_Arial {\n      font-family: \"Arial\";\n      font-weight: bold;\n    }\n    .ht_getprice_num {\n      font-weight: bold;\n      color: #EB2F2F;\n      font-size: 18px;\n    }\n    .unit_price{\n      text-align: left;\n    }\n    .on_Or_Off {\n      position: absolute;\n      top: 52px;\n      right: 0px;\n      height: 20px;\n      line-height: 20px;\n      width: 20px;\n      color: red;\n    }\n    .translate_detail {\n      top: 64px;\n      left: 350px;\n    }\n    a.trans_help {\n      color: #40ace6;\n      font-size: 14px;\n      margin-left: 40px;\n      margin-right: 330px;\n    }\n    .trans_help:hover {\n      color: #2b7299;\n      text-decoration: none;\n    }\n    .gwd_haitao .content_default_left .tariff_remind_detail {\n      right: 247px;\n      height: 90px;\n      top: -27px;\n    }\n    .gwd_haitao .div_detail {\n      display: none;\n      position: absolute;\n      width: 146px;\n      border: 1px solid #e6e9eb;\n      background-color: #fff;\n      z-index: 99;\n      line-height: 19px;\n      font-size: 12px;\n      color: #888;\n      padding: 6px 6px 9px 6px;\n      box-shadow: 2px 2px 12px 2px #e6e9eb;\n      height: auto;\n    }\n    .gwd_haitao .content_default_left .weight_type_detail  {\n      top: 7px;\n      left: 156px;\n      position: absolute;\n      width: 113px;\n      height: 24px;\n      line-height: 22px;\n      padding: 0px 6px;\n    }\n    .collect_detail  {\n      top: -7px;\n      left: 244px;\n      text-align: left;\n    }\n    .gwd_haitao .transport_remind_detail {\n      padding: 0px 6px;\n      top: 9px;\n      left: 241px;\n      width: 112px;\n    }\n    .gwd_haitao .tariff_info_detail {\n      padding: 0 6px;\n      width: 110px;\n      top: 9px;\n      left: 241px;\n    }\n    .pro_type_detail {\n      top: 9px;\n      left: 350px;\n    }\n    .gwd_haitao .pro_type_detail.div_detail {\n      padding: 0 6px;\n      width: 134px;\n    }\n    .mail_type_detail {\n      top: 33px;\n      left: 350px;\n    }\n    #ht_trans_input{\n      position: relative;\n      top: 8px;\n      cursor: pointer;\n    }\n    .size_detail {\n      top: 130px;\n      left: 350px;\n    }\n    .gwd_haitao .size_detail.div_detail {\n      padding: 0px 6px;\n      width: 110px;\n    }\n    .trans_label{\n      height: 30px;\n      line-height: 30px;\n      font-weight: normal;\n    }\n    .ht_translate:hover {\n      cursor: text;\n    }\n    .ht_translate,.pro_type,.mail_type{\n      text-align: left;\n    }\n    .pro_type:hover,.mail_type:hover {\n      cursor: text;\n    }\n    .gwd_haitao .ht_getprice:hover{\n      text-decoration: none;\n      color: #454A4D;\n    }\n    .gwd_haitao .ht_weight_num{\n      height: 20px;\n      width: 54px;\n      float: left;\n      border-radius: inherit;\n      border-bottom-left-radius: 4px;\n      border-top-left-radius: 4px;\n      border-right: none;\n      position: relative;\n      margin-top: 9px;\n      margin-left: 15px;\n      padding: 0 3px;\n      display: inline-block;\n      border: 1px solid #47befe;\n      box-sizing: initial;\n      font-size: 12px;\n    }\n    .gwd_haitao .weight_type{\n      display: inline-block;\n      height: 22px;\n      width: 24px;\n      background-color: #47befe;\n      color: #fff;\n      text-align: center;\n      line-height: 22px;\n      position: relative;\n      margin-top: 9px;\n      border-top-right-radius: 4px;\n      cursor: pointer;\n      border-bottom-right-radius: 4px;\n    }\n    .gwd_haitao .content_default_left{\n      height: 160px;\n      width: 254px;\n      border-right: 1px solid #e6e9eb;\n      float: left;\n      display: inline-block;\n    }\n    .gwd_haitao .ht_weight span {\n      float: left;\n      font-size: 14px;\n    }\n    .ht_weight .weight_tle {\n      margin-left: 12px;\n    } \n    .content_default_left div{\n      height: 40px;\n      line-height: 40px;\n      color: #373737;\n      position: relative;\n      border-bottom: 1px solid #e6e9eb\n    }\n    .gwd_haitao .content_default_left div.ht_tariff {\n      border-bottom: none;\n    }\n    .gwd_haitao .ht_transport_btn,.gwd_haitao .ht_tariff_btn{\n      float: right;\n      margin-right: 15px;\n      cursor: pointer;\n      color: #40ace6;\n    }\n    .gwd_haitao .ht_transport_btn:hover,.ht_tariff_btn:hover{\n      text-decoration: none;\n      color: #40ace6;\n    }\n    .gwd_haitao .ht_freight_num{\n      display: inline-block;\n      width: 42px;\n      color: #778e99;\n      font-size: 14px;\n    }\n    .gwd_haitao .ht_freight,.gwd_haitao .del_line{\n      display: inline-block;\n      text-align: left;\n      font-size: 14px;\n      margin-left: 12px;\n    }\n    a.ht_transport_btn span, .ht_tariff_btn span {\n      display: inline-block;\n      width: 60px;\n      height: 40px;\n      overflow: hidden;\n      float: left;\n      font-size: 12px;\n      margin-right: 5px;\n    }\n    a.ht_transport_btn span:hover, .ht_tariff_btn span:hover {\n      text-decoration: underline;\n    }\n    .gwd_haitao .point_icon{\n      background: url('http://s1.gwdang.com/images/extensions/haitao_downblueicon.png') 0px 0px no-repeat;\n      background-size: 9px 6px;\n      display: inline-block;\n      height: 9px;\n      width: 10px;\n      position: relative;\n      top: 1px;\n    }\n    .gwd_haitao .del_line{\n      cursor: pointer;\n      display: inline-block;\n      width: 98px;\n    }\n    .gwd_haitao .del_line .ht_tariff_num {\n      text-decoration: line-through;\n      color: #778e99;\n      font-size: 14px;\n    }\n    .gwd_haitao .del_line .ht_tariff_num em {\n      font-style: normal;\n    }\n    .gwd_haitao .content_default_right{\n      display: inline-block;\n      height: 160px;\n      width: 119px;\n    }\n    .gwd_haitao .content_default_right a{\n      width: 120px;\n      height: 40px;\n      line-height: 40px;\n      color: #383835;\n      border-bottom: 1px solid #e6e9eb;\n      padding: 0 0 0 14px;\n      text-decoration: none;\n    }\n    .gwd_haitao .content_default_right a span {\n      font-size: 12px;\n      margin-left: 7px;\n    }\n    .gwd_haitao .content_default_right a:hover{\n      text-decoration: none;\n      color: #383835;\n    }\n    #gwd_ht_main .size_help{\n      cursor: pointer;\n      border-bottom: none;\n    }\n    #gwd_ht_main .size_help span {\n      text-decoration: none;\n      color: #5aa4cc;\n    }\n    #gwd_ht_main .size_help span:hover {\n      text-decoration: underline;\n    }\n    .gwd_haitao .content_default_right em{\n      display: inline-block;\n      width: 20px;\n      height: 20px;\n      position: relative;\n      top: 5px;\n    }\n    .gwd_haitao .size_help em{\n      background: url('http://s1.gwdang.com/images/extensions/haitao_sizeicon.png') 0px 0px no-repeat;\n      background-size: 20px 20px;\n    }\n    .gwd_haitao .ht_translate em{\n      background: url('http://s1.gwdang.com/images/extensions/haitao_transicon.png') 0px 0px no-repeat;\n      background-size: 20px 20px;\n    }\n    .gwd_haitao .pro_type .ziying{\n      background: url('http://s1.gwdang.com/images/extensions/haitao_ziyingicon.png') 0px 0px no-repeat;\n    }\n    .gwd_haitao .pro_type .sanfang{\n      background: url('http://s1.gwdang.com/images/extensions/haitao_sanicon.png') 0px 0px no-repeat;\n      background-size: 20px 20px;\n    }\n    .gwd_haitao .mail_type .zhiyou{\n      background: url('http://s1.gwdang.com/images/extensions/haitao_zhiicon.png') 0px 0px no-repeat;\n    }\n    .gwd_haitao .mail_type .feizhiyou{\n      background: url('http://s1.gwdang.com/images/extensions/haitao_zhuanicon.png') 0px 0px no-repeat;\n      background-size: 20px 20px;\n    }\n    .gwd_haitao .same-style em {\n      background: url('http://s1.gwdang.com/images/extensions/haitao_samestyle.png') 0px 0px no-repeat;\n    }\n    .gwd_haitao .vip_tle em {\n      background: url('http://s1.gwdang.com/images/extensions/haitao_vipicon.png') 0px 0px no-repeat;\n    }\n    .gwd_haitao .gwd_wishlist_trend_detail_wrapper{\n      float: left;\n    }\n    .gwd_haitao .ht_content{\n      height: 162px;\n      border-top: 1px solid #e6e9eb;\n      position: relative;\n    }\n    .content_default {\n      float: left;\n    }\n    .content_default:after, .gwd_haitao .content_default_right:after {\n      content: \"\";\n      display: block;\n      clear: both;\n    }\n    /* 关税分类选择 */\n    #tariff_detail{\n      position: absolute;\n      display:none;\n      background-color: #fff;\n      z-index: 99999999;\n      top: 0px;\n      left: 0px;\n      width: 290px;\n      height: 180px;\n      border: 1px solid #e6e9eb;\n      box-shadow: 0px 5px 19px 0px #d7d8d9;\n    }\n    #tariff_detail .xialabox a{\n      display:block;\n      color: #5c6266;\n      margin-left: 7px;\n      width: 98px;\n      height: 25px;\n      line-height: 25px;\n      overflow: hidden;\n    }\n    #tariff_detail .xialabox a:hover{\n      color: #47befe;\n      text-decoration: underline;\n    }\n    #tariff_detail .tar_head{\n      height: 40px;\n      border-bottom: 1px solid #e6e9eb;\n    }\n    #tariff_detail .tar_desc , #tariff_detail .tar_head {\n      font-size: 14px;\n    }\n    #tariff_detail .tar_head span{\n      display: inline-block;\n      height: 34px;\n      line-height: 35px;\n      font-size: 14px;\n      text-align: center;\n      width: 271px;\n    }\n    #tariff_detail .ht_tariff_num, .ht_tariff_cate {\n      color: #40ace6;\n    }\n    .ht_tariff_cate {\n      width: 70px;\n      height: 20px;\n      overflow: hidden;\n      display: inline-block;\n      line-height: 20px;\n      position: relative;\n      top: 5px;\n    }\n    #tariff_detail .del_line {\n      width: 118px;\n    }\n    .gwd_haitao .tar_desc{\n      line-height: 35px;\n    }\n    .gwd_haitao .tar_desc .del_line{\n      margin: 0 0 0 20px;\n    }\n    .gwd_haitao .tar_desc .desc_t{\n      margin-left: 9px;\n    }\n    #cate_select_box{\n      text-align: center;\n      margin-top: 4px;\n      position: relative;\n    }\n    .gwd_haitao #cate_select_box input{\n      height: 30px;\n      width: 109px;\n      background: url('http://s1.gwdang.com/images/extensions/haitao_downgrayicon.png') no-repeat 89px 11px;\n      background-size: 12px 7px;\n      cursor: pointer;\n      border: 1px solid #fff;\n      box-shadow: none;\n      box-sizing: border-box;\n      padding: 3px 7px;\n      border-radius: 4px;\n      color: #9ca7ad;\n      font-size: 12px;\n    }\n    .gwd_haitao #cate_select_box input.sel_info{\n      background-color: #e1e1e1;\n    }\n    .gwd_haitao #cate_select_box input.input_hover{\n      border-bottom: 1px solid #fff;\n      color: #9ca7ad;\n    }\n    .gwd_haitao .cate_select_1{\n      display: inline-block;\n      float: left;\n      margin-left: 22px;\n      border: 1px solid #969899;\n      border-radius: 4px;\n      position: relative;\n    }\n    .gwd_haitao .cate_select_1.select_hover , .gwd_haitao .cate_select_2.select_hover{\n      height: 218px;\n      z-index: 9999;\n      background-color: #fff;\n\n    }\n    .gwd_haitao .cate_select_2{\n      margin-left: 16px;\n      display: inline-block;\n      border: 1px solid #969899;\n      border-radius: 4px;\n      position: relative;\n      float: left;\n    }\n    .gwd_haitao .xialabox{\n      display: none;\n      background-color: #fff;\n      overflow-y: scroll;\n      overflow-x: hidden;\n      height: 185px;\n      text-align: left;\n      border-top: none;\n      position: absolute;\n      width: 109px;\n      font-size: 12px;\n    }\n    .ie_hack.gwd_haitao .xialabox {\n      width: 111px;\n    }\n    .gwd_haitao #select_btn{\n      display: inline-block;\n      width: 60px;\n      height: 24px;\n      background-color: #47befe;\n      border-radius: 12px;\n      margin: 0 auto;\n      color: #fff;\n      text-align: center;\n      line-height: 23px;\n      cursor: pointer;\n      position: absolute;\n      top: 54px;\n      left: 116px;\n    }\n    #transport_detail{\n      position: fixed;\n      width: 755px;\n      height: 314px;\n      border: 1px solid #e6e9eb;\n      background-color: #fff;\n      top: 400px;\n      left: 400px;\n      display: none;\n      z-index: 99999;\n      box-shadow: 0px 5px 19px 0px #d7d8d9;\n    }\n    #transport_detail *{\n      box-sizing: border-box;\n    }\n    #transport_detail .trans_nav .span_0 {\n      margin-left: 10px;\n    }\n    #transport_detail .trans_nav .span_1{\n      text-align: left;\n      width: 146px;\n      margin-left: 17px;\n    }\n    #transport_detail .trans_nav .span_2{\n      text-align: left;\n      width: 147px;\n      margin-left: 4px;\n    }\n    .ht_trans_detail .trans_head{\n      height: 51px;\n      border-bottom: 1px solid #e6e9eb;\n    }\n    .gwd_haitao .closebar{\n      display: inline-block;\n      text-align: center;\n      font-size: 30px;\n      position: absolute;\n      top: 4px;\n      right: 7px;\n      color: #666;\n      cursor: pointer;\n    }\n    .gwd_haitao .closebar.closebg {\n      background: url(\"http://s1.gwdang.com/images/extensions/haitao_closeicon.png\") 6px 6px no-repeat;\n      background-size: 9px 9px;\n      height: 22px;\n      width: 22px;\n      top: 1px;\n      right: 1px;\n    }\n    .gwd_haitao .closebar.closebg:hover {\n      background: url(\"http://s1.gwdang.com/images/extensions/haitao_closehovericon.png\") 3px 3px no-repeat;\n      background-size: 15px 15px;\n    }\n    .ht_trans_detail .trans_nav{\n      display:inline-block;\n      float: left;\n      width: 753px;\n    }\n    .ht_trans_detail .trans_nav>span{\n      width: 120px;\n      color: #5c6266;\n      font-size: 16px;\n      height: 48px;\n      font-weight: bold;\n      float: left;\n      line-height: 48px;\n      text-align: center;\n    }\n    .ht_trans_detail .trans_nav .span_3 {\n      width: 196px;\n      text-align: left;\n      color: #406980;\n      margin-left: 35px;\n    }\n    .ht_trans_detail .trans_nav .trans_w{\n      text-align: left;\n      position: absolute;\n      top: 14px;\n      left: 352px;\n      height: 20px;\n    }\n    .ht_trans_detail .trans_w .weight_type{\n      height: 20px;\n      width: 26px;\n      margin-top: 0px;\n      line-height: 20px;\n      font-size: 14px;\n      float: left;\n      font-weight: normal;\n    }\n    .ht_trans_detail .trans_w .ht_weight_num{\n      height: 20px;\n      position: static;\n      width: 49px;\n      margin-top: 0px;\n      font-size: 12px;\n      border-color: #8dc2e5;\n    }\n    .gwd_haitao .trans_content {\n      height: 210px;\n      width: 751px;\n      overflow-y: scroll;\n    }\n    .ht_trans_detail .trans_foot,.size_desc {\n      color: #9f9f9f;\n      line-height: 35px;\n    }\n    .ht_trans_detail .trans_foot {\n      height: 50px;\n      border-top: 1px solid #e6e9eb;\n      line-height: 50px;\n    }\n    .gwd_haitao .red{\n      color: #e72030;\n    }\n    .gwd_haitao span.red {\n      background: url('http://s1.gwdang.com/images/extensions/haitao_staricon.png') 0px 1px no-repeat;\n      background-size: 8px 9px;\n      height: 10px;\n      width: 10px;\n      display: inline-block;\n    }\n    .ht_trans_detail .trans_foot .red+span{\n      color: #919699;\n    }\n    .ht_trans_detail #trans_list{\n      margin: 0px;\n      padding: 0px;\n    }\n    .ht_trans_detail #trans_list li{\n      list-style: none;\n      display: block;\n      color: #333;\n      cursor: pointer;\n      text-align: left;\n      background-color: #fff;\n    }\n    .ht_trans_detail #trans_list li:after{\n      display:block;\n      clear:both;\n      content:\"\";\n      visibility:hidden;\n      height:0;\n    }\n    .gwd_haitao #trans_list li:hover{\n      background-color: #E1E1E6;\n    }\n    .ht_trans_detail #trans_list li>span, .ht_trans_detail #trans_list li>a{\n      display:inline-block;\n      margin-top: 8px;\n      margin-bottom: 8px;\n      float: left;\n      text-align: left;\n      white-space: pre-wrap;\n      color: #5c6266;\n    }\n    .ht_trans_detail #trans_list li a:hover {\n      text-decoration: none;\n    }\n    span.sale_tle {\n      width: 225px;\n      margin-left: 36px;\n      line-height: 16px;\n    }\n    span.sale_tle a{\n      color: #40ace6;\n    }\n    span.sale_tle a:hover {\n      color: #2b7299;\n    }\n    .ht_trans_detail .lo_center{\n      margin-left: 24px;\n      width: 120px;\n      line-height: 16px;\n    }\n    .ht_trans_detail span.trans_cate {\n      width: 130px;\n      margin-left: 16px;\n    }\n    .ht_trans_detail span.trans_pr {\n      width: 146px;\n      margin-left: 30px;\n      line-height: 16px;\n    }\n    .ht_trans_detail a.trans_com {\n      width: 85px;\n      margin-left: 39px;\n      line-height: 16px;\n      color: #333;\n    }\n    .ht_trans_detail a.trans_com:hover {\n      color: #0066c0;\n      text-decoration: none;\n    }\n    /* 没有优惠政策的情况 */\n    #transport_detail.no_sale {\n      width: 490px;\n    }\n    .no_sale.ht_trans_detail .trans_nav {\n      width: 436px;\n    }\n    .no_sale.gwd_haitao .trans_content {\n      width: 444px;\n    }\n    .no_sale.ht_trans_detail .trans_nav .span_3 {\n      display: none;\n    }\n    #transport_detail.no_sale span.sale_tle {\n      display: none;\n    }\n    /* 尺码帮助 */\n    #size_detail{\n      width: 618px;\n      height: 440px;\n      position: fixed;\n      top: 400px;\n      left: 400px;\n      display: none;\n      text-align: left;\n      z-index: 9999999;\n      box-sizing: border-box;\n      background-color: #fff;\n      border: 1px solid #e6e9eb; \n      box-shadow: 0px 5px 19px 0px #d7d8d9;       \n    }\n    .ht_size_detail .shangyi, .tongzhuang0, .tongxie0{\n      position: absolute;\n      left: 38px;\n    }\n    .ht_size_detail .xiazhuang, .tongzhuang4, .tongxie4{\n      position: absolute;\n      top: 50px;\n      left: 38px;\n    }\n    .ht_size_detail .shoes,.ht_size_detail .tongzhuang, .ht_size_detail .tongxie{\n      display: none;\n    }\n    .ht_size_detail span.shoes {\n      position: absolute;\n      top: 39px;\n      left: 38px;\n      color: #fff;\n      background-color: #47befe;\n      border:  1px solid #47befe;\n    }\n    .ht_size_detail .shangyi.size_hover,.ht_size_detail .xiazhuang.size_hover, .ht_size_detail .xiazhuang.size_hover, .ht_size_detail .tongzhuang.size_hover, .ht_size_detail .tongxie.size_hover{\n      background-color: #47befe;\n      border:  1px solid #47befe;\n      color: #fff;\n    }\n    .ht_size_detail .shangyi,.ht_size_detail .xiazhuang,.ht_size_detail .shoes,.ht_size_detail .tongzhuang, .ht_size_detail .tongxie{\n      height: 30px;\n      width: 60px;\n      text-align: center;\n      line-height: 30px;\n      cursor: pointer;\n      border-radius: 15px;\n      border:  1px solid #969899;\n      color: #8A9499;\n    }\n    .ht_size_detail .cloth_icon{\n      position: absolute;\n      top: 100px;\n      left: 22px;\n    }\n    \n    .ht_size_detail .manshangzhuang {\n      background: url('http://s1.gwdang.com/images/extensions/man_shangzhuang.png') -4px 0px no-repeat;\n      height: 191px;\n      width: 93px;\n    }\n    .ht_size_detail .womanshangzhuang {\n      background: url('http://s1.gwdang.com/images/extensions/woman_shangzhuang.png') 0px 0px no-repeat;\n      height: 187px;\n      width: 87px;\n    }\n    .ht_size_detail .kid0 {\n      background: url('http://s1.gwdang.com/images/extensions/kids0_4.png') 0px 0px no-repeat;\n      height: 187px;\n      width: 87px;\n      margin-left: 8px;\n    }\n    .ht_size_detail .kid4 {\n      background: url('http://s1.gwdang.com/images/extensions/kids4_12.png') -2px 0px no-repeat;\n      height: 187px;\n      width: 87px;\n      margin-left: 0px;\n    }\n    .ht_size_detail .manxiazhuang {\n      background: url('http://s1.gwdang.com/images/extensions/man_xiazhuang.png') -17px 0px no-repeat;\n      height: 216px;\n      width: 63px;\n      margin-left: 13px;\n    }\n    .ht_size_detail .womanxiazhuang {\n      background: url('http://s1.gwdang.com/images/extensions/woman_xiazhuang.png') 0px 0px no-repeat;\n      height: 220px;\n      width: 66px;\n      margin-left: 11px;\n    }\n    \n    .ht_size_detail .ht_shoes.man_foot {\n      background: url('http://s1.gwdang.com/images/extensions/man_foot.png') 4px 0px no-repeat;\n      height: 170px;\n      width: 111px;\n    }\n    .ht_size_detail .ht_shoes.woman_foot {\n      background: url('http://s1.gwdang.com/images/extensions/woman_foot.png') 4px 0px no-repeat;\n      height: 170px;\n      width: 111px;\n    }\n    .ht_size_detail .ht_shoes.kids_foot {\n      background: url('http://s1.gwdang.com/images/extensions/kid_shoes.png') 0px 0px no-repeat;\n      height: 171px;\n      width: 131px;\n      left: 4px;\n    }\n    .ht_size_detail .clothes_nav{\n      margin-top: 13px;\n      line-height: 30px;\n      height: 30px;\n      width: 567px;\n      margin-left: 55px;\n    }\n    .ht_size_detail .clothes_nav ul{\n      padding: 0;\n      margin: 0px;\n    }\n    .ht_size_detail .size_s{\n      height: 40px;\n      display: inline-block;\n      border-right: 2px solid #e6e9eb;\n    }\n    .detail_left {\n      float: left;\n      width: 136px;\n      height: 367px;\n      position: relative;\n    }\n    .detail_left span {\n      display: inline-block;\n    }\n    .ht_size_detail #size_item{\n      height: 180px;\n      width: 452px;\n      overflow-y: scroll;\n      border: 1px solid #e6e9eb;\n    }\n    .ht_size_detail .clothes_nav ul li{\n      list-style: none;\n      float: left;\n      font-size: 16px;\n      width: 32px;\n      margin-right: 57px;\n      color: #000;\n      cursor: pointer;\n      border-bottom: 3px solid #fff;\n    }\n    .ht_size_detail .clothes_nav ul li:hover {\n      color: #47befe;\n    }\n    .ht_size_detail .clothes_nav ul li.select{\n      border-bottom: 3px solid #47befe;\n      color: #47befe;\n    }\n    .ht_size_detail .size_head{\n      height: 60px;\n    }\n    .ht_size_detail .unit_desc{\n      display: inline-block;\n      float: right;\n      margin-right: 27px;\n      margin-top: 8px;\n      position: relative;\n    }\n    .ht_size_detail .size_con{\n      text-align: right;\n      margin-top: 16px;\n      margin-bottom: 11px;\n      margin-right: 26px;\n      color: #575e61;\n    }\n    .ht_size_detail .size_op{\n      width: 440px;\n      display: inline-block;\n      position: relative;\n    }\n\n    .ht_size_detail .size_op input+input {\n     margin-left: 0px; \n    }\n    #first_size+.first_xiala {\n     position: absolute;\n     right: 267px;\n    }\n    .ht_size_detail .size_op input{\n      width: 100px;\n      height: 31px;\n      box-sizing: border-box;\n    }\n    #first_size, #second_size {\n      border-radius: 4px;\n      outline: none;\n      padding: 0 7px;\n      border: 1px solid #969899;\n      box-shadow: none;\n    }\n    #first_size:focus, #second_size:focus {\n      border-color: #47befe;\n    }\n    .ht_size_detail .size_xialabox {\n      display: none;\n      width: 60px;\n      height: 190px;\n      border: 1px solid #999;\n      border-bottom: none;\n      position: absolute;\n      text-align: left;\n      line-height: 19px;\n      top: -189px;\n      right: 267px;\n      box-sizing: border-box;\n      background-color: #fff;\n      border-top-left-radius: 4px;\n      border-top-right-radius: 4px;\n    }\n    #second_size+.second_xiala{\n      position: absolute;\n      right: -14px;\n    }\n    .ht_size_detail #second_size+input+.size_xialabox{\n      right: -14px;\n    }\n    .ht_size_detail .size_xialabox a{\n      display: block;\n      padding-left: 7px;\n      color: #5c6266;\n    }\n    .ht_size_detail .size_xialabox a:hover{\n      text-decoration: underline;\n      color: #47befe;\n    }\n    .ht_size_detail .size_op .size_xiala{\n      width: 60px;\n      border: 1px solid #999;\n      padding-left: 7px;\n      border-radius: 4px;\n      color: #8a9499;\n    }\n    .ht_size_detail .size_op .size_xiala.msHover {\n      border-radius: 0px;\n      border-bottom-left-radius: 4px;\n      border-bottom-right-radius: 4px;\n      background: url('http://s1.gwdang.com/images/extensions/haitao_upgrayicon.png') no-repeat 42px 12px;\n      background-size: 12px 7px;\n    }\n    .ht_size_detail .size_xiala{\n      background: url('http://s1.gwdang.com/images/extensions/haitao_downgrayicon.png') no-repeat 42px 12px;\n      background-size: 12px 7px;\n      cursor: pointer;\n    }\n    .ht_size_detail .conversion{\n      margin: 0 30px 0 105px;\n    }\n    /* fanyi */\n    .ht_fanyi{\n      display: block;\n      position: absolute;\n      width: 200px;\n      z-index: 99;\n      background: #fff url('http://s1.gwdang.com/images/extensions/haitao_fanyi_icon.png') 0px 0px no-repeat;\n      border: 1px solid #47befe;\n      border-radius: 8px;\n      min-height: 25px;\n      color: #494b4d;\n      text-indent: 32px;\n      padding: 2px 12px;\n      line-height: 19px;\n    }\n    .ht_fanyi a{\n      display: block;\n      width: 130px;\n      text-decoration: none;\n      color: #494b4d;\n    }\n    .ht_fanyi a:hover{\n      text-decoration: none;\n      color: #494b4d;\n    }\n    #ht_top{\n      position: absolute;\n      width: 0px;\n      height: 0px;\n      line-height: 0px;\n      border-bottom: 8px solid #278ac9;\n      border-left: 9px solid transparent;\n      border-right: 9px solid transparent;\n      left: 58px;\n      top: -8px;\n    }\n    #ht_top:after {\n      content: \"\";\n      display: block;\n      position: absolute;\n      width: 0px;\n      height: 0px;\n      line-height: 0px;\n      border-bottom: 7px solid #fff;\n      border-left: 8px solid transparent;\n      border-right: 8px solid transparent;\n      left: -8px;\n      top: 1px;\n    }\n    /* 滚动条样式 */\n    .gwd_haitao ::-webkit-scrollbar {width:6px;height: 6px;}\n    .gwd_haitao ::-webkit-scrollbar-track {background:#f0f0f0;}\n    .gwd_haitao ::-webkit-scrollbar-thumb {\n      background: #cdcdcd;\n      border-radius: 4px;\n    }\n    #size_detail ::-webkit-scrollbar {width:2px;height: 6px;}\n    /* 亚马逊遮挡 */\n    div#actionPanelWrapper.burj {\n      overflow: visible!important;\n    }\n\n    /* amazonGlobal */\n    #globalInnerDetail {\n      display: none;\n    }\n    #globalInnerDetail .content_default_left {\n      text-align: center;\n    }\n    #globalInnerDetail .inner-tle  {\n      color: #666;\n    }\n    #globalInnerDetail .inner-img img {\n      max-height: 100px;\n      max-width: 150px;\n    }\n    #globalInnerDetail .inner-tle {\n      font-size: 12px;\n      line-height: 14px;\n      width: 230px;\n      height: 28px;\n      overflow: hidden;\n    }\n    #globalInnerDetail .inner-btn {\n      color: #fff;\n      background-color: #46c0fe;\n      height: 22px;\n      line-height: 22px;\n      text-align: center;\n      display: inline-block;\n      width: 78px;\n      border-radius: 5px;\n      text-decoration: none;\n      margin-top: 2px;\n    }\n    #globalInnerDetail .pro_type:hover .pro_type_detail {\n      display: block !important;\n    }\n    #globalInnerDetail .mail_type:hover .mail_type_detail {\n      display: block !important;\n    }\n    #globalInnerDetail .vip_tle:hover .vip_tle_detail {\n      display: block !important;\n    }\n    #globalInnerDetail .same-style:hover .same-style_detail {\n      display: block !important;\n    }\n    #globalInnerDetail .same-style_detail {\n      left: 350px;\n      top: 81px;\n    }", ""]);

// exports


/***/ }),

/***/ 6879:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Imljb24vc3RhcmZpbGxlZCI+CjxwYXRoIGlkPSJWZWN0b3IiIGQ9Ik0xMS40OTk1IDVMOS4yMDcxIDkuNTk3MDFMNCAxMC4zMzg4TDcuNzcyMDkgMTMuOTYxOUw2Ljg3MDQgMTlMMTEuNDk5NSAxNi41NzU1TDE2LjEyOTUgMTlMMTUuMjM0NSAxMy45NjE5TDE5IDEwLjMzODhMMTMuODIxNyA5LjU5NzAxTDExLjQ5OTUgNVoiIGZpbGw9IiNGRjYxMzIiIHN0cm9rZT0iI0ZGNjEzMiIgc3Ryb2tlLXdpZHRoPSIxLjgiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9nPgo8L3N2Zz4K";

/***/ }),

/***/ 6980:
/***/ ((module) => {

"use strict";

module.exports = function (bitmap, value) {
  return {
    enumerable: !(bitmap & 1),
    configurable: !(bitmap & 2),
    writable: !(bitmap & 4),
    value: value
  };
};


/***/ }),

/***/ 7040:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

/* eslint-disable es/no-symbol -- required for testing */
var NATIVE_SYMBOL = __webpack_require__(4495);

module.exports = NATIVE_SYMBOL &&
  !Symbol.sham &&
  typeof Symbol.iterator == 'symbol';


/***/ }),

/***/ 7053:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


const b2cCompare = __webpack_require__(63368);
const tbCompare2 = __webpack_require__(97353);
const amazonGlobal = __webpack_require__(99495);
const calWidth = __webpack_require__(42869);
const utils = __webpack_require__(30888);
const log = __webpack_require__(35743);
let runDp = {};
const moduleControl = id => {
  log(`track:${id}`);
  switch (id) {
    case 'b2c_compare':
      b2cCompare.renderTopDetail();
      break;
    case 'tb_compare':
      tbCompare2.renderTopDetail2('taobao');
      break;
    case 'tm_compare':
      tbCompare2.renderTopDetail2('tmall');
      break;
    case 'amazon_compare':
      amazonGlobal.renderTopDetail('tmall');
      break;
  }
};
const checkImage = (dom, src) => {
  let image = new Image();
  image.onload = () => {
    $(dom).attr('src', src);
  };
  image.onerror = () => {
    $(dom).attr('src', G.noImg);
  };
  image.src = src;
};
const turnPage = (type, dom, id) => {
  let widthObj = calWidth.init();
  let list = dom.find('.all-products li');
  let totalP = Number(dom.find('.page-num').text());
  let curentP = Number(dom.find('.current-page').text());
  let sNum = widthObj.b2cShowListNum;
  if (id.indexOf('b2c') === -1) {
    sNum = widthObj.showListNum;
  }
  list.hide();
  if (type === 1) {
    if (curentP === totalP) curentP = 0;
    module.exports.loadImg(sNum * curentP, sNum * (curentP + 1), dom.find('.all-products li img'));
    for (let i = sNum * curentP; i < sNum * (curentP + 1); i++) {
      list.eq(i).show();
    }
    curentP++;
  } else {
    if (curentP === 1) curentP = totalP + 1;
    module.exports.loadImg(sNum * (curentP - 2), sNum * (curentP - 1), dom.find('.all-products li img'));
    for (let i = sNum * (curentP - 2); i < sNum * (curentP - 1); i++) {
      list.eq(i).show();
    }
    curentP--;
  }
  dom.find('.current-page').text(curentP);
};
module.exports.loadImg = (start, end, dom) => {
  for (let i = start; i < end; i++) {
    let itemimg = $(dom).eq(i)[0];
    if (!itemimg) return;
    let src = itemimg.getAttribute('data-original');
    let defaultsrc = itemimg.src;
    if (src !== defaultsrc) checkImage(itemimg, src);
  }
};
const autoFixWidth = (reset = true) => {
  let barW = $(window).width();
  if (reset) {
    $('.gwd-hidden').removeClass('gwd-hidden');
  }
  let feedW = $('#gwdang-feed-close').outerWidth();
  let history = $('#gwd_history').outerWidth();
  let searchW = $('.search-mod').outerWidth();
  let lowW = $('#gwd_lowpri').outerWidth();
  let leftW = $('.gwd-topbar-left').outerWidth();
  let logoW = $('.gwd-topbar-logo').outerWidth();
  let promoW = $('#promo_quan_btn').outerWidth();
  let adWidth = $('#gwdang-banner-ad').outerWidth();
  let adWidth2 = $('#gwdang-banner-ad2').outerWidth();
  let shareBtn = $('.shareExt').outerWidth();
  let suggestW = $('.gwdang-suggest').outerWidth();
  //let freeW = barW - (feedW + history + searchW + lowW + leftW + logoW + adWidth + adWidth2 + shareBtn);
  //if (freeW < -1000) return;
  let freeW = $('#gwd-space').outerWidth();
  if ($('#gwd-space').outerWidth() > 10) {
    return;
  }
  let list = ['.shareExt', '.gwdang-suggest', '.search-mod', '#gwd_history', '#gwdang-favor'];
  if (freeW < 5) {
    for (let i = 0; i < list.length; i++) {
      let toCheck = list[i];
      if (!$(toCheck)[0]) continue;
      if (!$(toCheck).hasClass('gwd-hidden')) {
        $(toCheck).addClass('gwd-hidden');
        setTimeout(() => {
          autoFixWidth(false);
        }, 0);
        return;
      }
    }
  }
  if (freeW < 50) {
    $('.shareExt').addClass('gwd-hidden');
    freeW += searchW;
  }
  if (freeW < 50) {
    $('.gwdang-suggest').addClass('gwd-hidden');
    freeW += searchW;
  }
  if (freeW < 50) {
    $('.search-mod').addClass('gwd-hidden');
    freeW += searchW;
  }
  if (freeW < 50) {
    $('#gwd_history').addClass('gwd-hidden');
    freeW += history;
  }
  if (freeW < 50) {
    $('#gwdang-banner-ad2').addClass('gwd-hidden');
    freeW += adWidth2;
  }
  if (freeW < 50) {
    $('#gwd_lowpri').addClass('gwd-hidden');
    $('.gwd-topbar-right').css('min-width', 'auto');
    freeW += lowW;
  }
  if (freeW < 50) {
    $('#promo_quan_btn').addClass('gwd-hidden');
    freeW += promoW;
  }
  if ($('.gwd-topbar-right').outerWidth() === 400) {
    $('.gwd-topbar-right').css('min-width', 'auto');
  }
};
module.exports.autoFixWidth = autoFixWidth;
module.exports.clearRunDp = () => {
  runDp = {};
};
module.exports.listenBar = style => {
  runDp = {};
  let renderSetting;
  if (style === 'top') {
    $(G.dval).on('mouseenter', '.gwdang-tab', function () {
      let id = $(this).attr('id');
      if (!runDp[id] && id !== 'gwdang-trend') {
        runDp[id] = true;
        moduleControl(id);
      } else {
        //$(this).find('.top-bar-detail').show()
        $(document).trigger('renderAgain');
      }
      $(this).addClass('tab-hover');
    });
    $(G.dval).on('mouseleave', '.gwdang-tab', function () {
      let id = $(this).attr('id');
      // 价格走势的展开框因为有特殊情况， 所以不在这里隐藏， 单独添加事件监控
      if (id === 'gwdang-trend') return false;
      //$('.top-bar-detail').hide()
      $(this).removeClass('tab-hover');
    });
    $(G.dval).on('click', '.turn-page a', function () {
      let id = $(this).attr('id');
      let dom = $(this).parent().parent();
      if (id.match(/(?:b2c|taobao|tmall|fuzzy)-prev-page/)) {
        turnPage(-1, dom, id);
      } else if (id.match(/(?:b2c|taobao|tmall|fuzzy)-next-page/)) {
        turnPage(1, dom, id);
      }
    });
    $('.gwd_close').on('click', function () {
      $('#gwdang_main').hide();
      $('#gwdang-mini').show();
      utils.setLocal('fold', '1');
      utils.settings('set_p_fold', 'p_fold', '1');
      $('body').css('padding-top', '0px').removeClass('gwd_unfold');
    });
    $('#gwd_fold_pointer').on('click', function () {
      $('#gwdang_main').show();
      $('#gwdang-mini').hide();
      utils.setLocal('fold', '0');
      utils.settings('set_p_fold', 'p_fold', '0');
      $('body').css('padding-top', '36px').addClass('gwd_unfold');
      autoFixWidth();
    });
  } else {
    $('#bjd_bottom_detail').on('mouseenter', '.btm-tab', function () {
      $(this).find('.gwd-btn-detail').show();
    });
    $('#bjd_bottom_detail').on('mouseleave', '.btm-tab', function () {
      $(this).find('.gwd-btn-detail').hide();
    });
  }
  let resizeT;
  $(window).resize(function () {
    clearTimeout(resizeT);
    // module.exports.clearRunDp()
    resizeT = setTimeout(function () {
      autoFixWidth();
    }, 500);
  });
};

/***/ }),

/***/ 7054:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _Switch = _interopRequireDefault(__webpack_require__(99230));
var _default = exports.A = {
  props: ['mini'],
  components: {
    SwitchBtn: _Switch.default
  },
  data: () => ({
    allowCookieAndUrl: false,
    allowTracking: false
  }),
  methods: {
    setAll(val) {
      this.allowCookieAndUrl = val;
      this.allowTracking = val;
      setTimeout(() => {
        this.close();
      }, 1000);
    },
    close() {
      this.$emit('close', {
        allowCookieAndUrl: this.allowCookieAndUrl,
        allowTracking: this.allowTracking
      });
    }
  },
  watch: {
    allowCookieAndUrl(val) {
      chrome.storage.local.set({
        allowCookieAndUrl: val
      });
      if (this.mini) {
        this.close();
      }
    },
    allowTracking(val) {
      chrome.storage.local.set({
        allowTracking: val
      });
    }
  },
  mounted() {
    chrome.storage.local.get(['allowCookieAndUrl', 'allowTracking'], res => {
      this.allowCookieAndUrl = res.allowCookieAndUrl;
      this.allowTracking = res.allowTracking;
    });
  }
};

/***/ }),

/***/ 7129:
/***/ ((module) => {

"use strict";


const debug =  false || "production" === 'development';
module.exports = {
  log: debug && console.log ? console.log : x => {},
  error: e => {
    if (console.error && debug) {
      console.error(e);
    }
  },
  warn: debug ? console.warn : x => {}
};

/***/ }),

/***/ 7384:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(79899);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("51e5f48b", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 7476:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-img-same[data-v-4588ca25] {\n  width: 144px;\n  height: 40px;\n  background: rgba(255, 64, 0, 0.05);\n  border-radius: 2px;\n  opacity: 1;\n  border: 1px solid #FF4000;\n  justify-content: center;\n  cursor: pointer;\n  text-decoration: none;\n  margin-top: 15px;\n}\n", ""]);

// exports


/***/ }),

/***/ 7583:
/***/ ((module) => {

module.exports = "<div id=\"gwd_mini_seckill\" class=\"minibar-tab seckill-tab\">\n  <div class=\"minibar-btn-box\">\n    <em class=\"seckill-bg\"></em>\n    <span>抢购提醒</span>\n  </div>\n    <div class=\"seckill-detail seckill-common-detail\">\n      <span class=\"sk-remind-btn\">设置提醒</span>\n      <span class=\"sk-remind-state1\">\n        <em class=\"seckill-bg\"></em>\n        <span>已设置抢购提醒</span>\n      </span>\n      <span class=\"sk-remind-state0\">\n        您还没有绑定公众号请先扫码绑定\n      </span>\n      <span class=\"sk-qrcode\">\n        <img src=\"\">\n      </span>\n      <span class=\"sk-tle-sp1\">扫码关注购物党公众号</span>\n      <span class=\"sk-tle-sp2\">开售前5分钟推送提醒</span>\n    </div>\n    <div class=\"login-detail seckill-common-detail\" style=\"padding-top: 40px;\">\n      <div id=\"gwd-bjd-login-box\">\n      </div>\n    </div>\n</div>\n<style type=\"text/css\">\n  #gwd_mini_seckill {\n    width: 127px;\n    display: inline-block;\n    text-align: center;\n    position: relative;\n  }\n  .login-detail {\n    width: 460px;\n    height: 283px;\n    box-sizing: border-box;\n    position: absolute;\n    top: 36px;\n    right: 0;\n    display: none;\n    z-index: 999999;\n    border-top: 1px solid #eee;\n    border-bottom: 1px solid #eee;\n    background-color: #fff;\n    box-shadow: 0 5px 15px 0 rgba(23,25,27,.15);\n  }\n  .seckill-bg {\n    background: url(\"https://cdn.gwdang.com/images/extensions/xbt/seckill.png\") 0px 0px no-repeat;\n  }\n  .seckill-completed {\n    background: url(../../assets/seckill/complete.svg)\n  }\n  .seckill-tab .minibar-btn-box em {\n    float: left;\n    width: 16px;\n    height: 16px;\n    margin-right: 9px;\n    background-position: -9px -9px;\n    margin-top: 10px;\n  }\n  .seckillSet.seckill-tab .minibar-btn-box em {\n    background-position: -35px -9px;\n  }\n  .seckill-tab .minibar-btn-box span {\n    cursor: default;\n  }\n  .seckill-detail {\n    display: none;\n    position: absolute;\n    top: 35px;\n    right: 0px;\n    height: 220px;\n    width: 180px;\n    background-color: #fff;\n    box-shadow:0px 2px 4px 0px rgba(0,0,0,0.1);\n    border:1px solid rgba(230,233,235,1);\n    z-index: 99999;\n  }\n  .seckill-detail * {\n    float: left;\n  }\n  .seckill-detail .sk-remind-btn {\n    width:94px;\n    height:26px;\n    position: absolute;\n    background:rgba(255,232,226,1);\n    border-radius:15px;\n    line-height: 26px;\n    text-align: center;\n    color: #FF6132;\n    font-size: 12px;\n    top: 18px;\n    left: 50%;\n    margin-left: -47px;\n    cursor: pointer;\n  }\n  .sk-remind-state1 {\n     position: absolute;\n     top: 23px;\n     left: 50%;\n     margin-left: -55px;\n     height: 16px;\n     width: 110px;\n     display: none;\n  }\n  .sk-remind-state1 span, .sk-remind-state0 {\n    line-height: 16px;\n    color: #FF6132;\n    font-size: 12px;\n  }\n  .sk-remind-state1 em {\n    height: 12px;\n    width: 12px;\n    background-position: -4px -38px;\n    margin-top: 2px;\n    margin-right: 4px;\n  }\n  .sk-remind-state0 {\n    position: absolute;\n    top: 14px;\n    left: 50%;\n    margin-left: -54px;\n    height: 32px;\n    width: 108px;\n    text-align: center;\n    display: none;\n  }\n  .sk-qrcode {\n    height: 110px;\n    width: 110px;\n    top: 52px;\n    left: 50%;\n    position: absolute;\n    margin-left: -55px;\n  }\n  .sk-qrcode img {\n    width: 100%;\n    height: 100%;\n  }\n  .sk-tle-sp1, .sk-tle-sp2 {\n    color: #666;\n    line-height: 16px;\n    width:  100%;\n  }\n  .sk-tle-sp1 {\n    /*margin-left: 30px;*/\n    margin-top: 170px;\n  }\n  .sk-tle-sp2 {\n    /*margin-left: 32px;*/\n    margin-top: 4px;\n  }\n  #gwd_mini_seckill .sp-border {\n    background-position: -230px 7px;\n  }\n  #gwd_mini_seckill .login-input input {\n    background-color: #fff!important;\n  }\n  input:-webkit-autofill,\n  input:-webkit-autofill:hover, \n  input:-webkit-autofill:focus, \n  input:-webkit-autofill:active  {\n      -webkit-box-shadow: 0 0 0 30px white inset !important;\n  }\n</style>"

/***/ }),

/***/ 7591:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ CircleProgressvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ CircleProgress)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/CircleProgress.vue?vue&type=template&id=1b000c10&scoped=true
var CircleProgressvue_type_template_id_1b000c10_scoped_true = __webpack_require__(16473);
;// ./src/standard/module/components/Widgets/CircleProgress.vue?vue&type=template&id=1b000c10&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/CircleProgress.vue?vue&type=script&lang=js
var CircleProgressvue_type_script_lang_js = __webpack_require__(36094);
;// ./src/standard/module/components/Widgets/CircleProgress.vue?vue&type=script&lang=js
 /* harmony default export */ const Widgets_CircleProgressvue_type_script_lang_js = (CircleProgressvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(85072);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(97825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(77659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(55056);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(10540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(41113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/CircleProgress.vue?vue&type=style&index=0&id=1b000c10&prod&scoped=true&lang=css
var CircleProgressvue_type_style_index_0_id_1b000c10_prod_scoped_true_lang_css = __webpack_require__(45523);
var CircleProgressvue_type_style_index_0_id_1b000c10_prod_scoped_true_lang_css_default = /*#__PURE__*/__webpack_require__.n(CircleProgressvue_type_style_index_0_id_1b000c10_prod_scoped_true_lang_css);
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/CircleProgress.vue?vue&type=style&index=0&id=1b000c10&prod&scoped=true&lang=css

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());

      options.insert = insertBySelector_default().bind(null, "head");
    
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()((CircleProgressvue_type_style_index_0_id_1b000c10_prod_scoped_true_lang_css_default()), options);




       /* harmony default export */ const Widgets_CircleProgressvue_type_style_index_0_id_1b000c10_prod_scoped_true_lang_css = ((CircleProgressvue_type_style_index_0_id_1b000c10_prod_scoped_true_lang_css_default()) && (CircleProgressvue_type_style_index_0_id_1b000c10_prod_scoped_true_lang_css_default()).locals ? (CircleProgressvue_type_style_index_0_id_1b000c10_prod_scoped_true_lang_css_default()).locals : undefined);

;// ./src/standard/module/components/Widgets/CircleProgress.vue?vue&type=style&index=0&id=1b000c10&prod&scoped=true&lang=css

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/Widgets/CircleProgress.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  Widgets_CircleProgressvue_type_script_lang_js,
  CircleProgressvue_type_template_id_1b000c10_scoped_true/* render */.XX,
  CircleProgressvue_type_template_id_1b000c10_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "1b000c10",
  null
  
)

/* harmony default export */ const CircleProgress = (component.exports);

/***/ }),

/***/ 7743:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var $ = __webpack_require__(46518);
var call = __webpack_require__(69565);
var aCallable = __webpack_require__(79306);
var newPromiseCapabilityModule = __webpack_require__(36043);
var perform = __webpack_require__(1103);
var iterate = __webpack_require__(72652);
var PROMISE_STATICS_INCORRECT_ITERATION = __webpack_require__(90537);

// `Promise.race` method
// https://tc39.es/ecma262/#sec-promise.race
$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
  race: function race(iterable) {
    var C = this;
    var capability = newPromiseCapabilityModule.f(C);
    var reject = capability.reject;
    var result = perform(function () {
      var $promiseResolve = aCallable(C.resolve);
      iterate(iterable, function (promise) {
        call($promiseResolve, C, promise).then(capability.resolve, reject);
      });
    });
    if (result.error) reject(result.value);
    return capability.promise;
  }
});


/***/ }),

/***/ 7756:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

const getSymbolSize = (__webpack_require__(56886).getSymbolSize)
const FINDER_PATTERN_SIZE = 7

/**
 * Returns an array containing the positions of each finder pattern.
 * Each array's element represent the top-left point of the pattern as (x, y) coordinates
 *
 * @param  {Number} version QR Code version
 * @return {Array}          Array of coordinates
 */
exports.getPositions = function getPositions (version) {
  const size = getSymbolSize(version)

  return [
    // top-left
    [0, 0],
    // top-right
    [size - FINDER_PATTERN_SIZE, 0],
    // bottom-left
    [0, size - FINDER_PATTERN_SIZE]
  ]
}


/***/ }),

/***/ 7804:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
const countryConfig = __webpack_require__(22209);
var _default = exports.A = {
  props: ['data'],
  computed: {
    unit() {
      let r = countryConfig.getSymbol(this.data[0].currency);
      return r[1] + `(${r[0]})`;
    }
  }
};

/***/ }),

/***/ 7860:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var userAgent = __webpack_require__(82839);

module.exports = /web0s(?!.*chrome)/i.test(userAgent);


/***/ }),

/***/ 8041:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(18518);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("03bc371b", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 8081:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);


var codeOfs = 88;
var utitle;
try {
  utitle = ["t=" + $('title').html().substr(0, 250), "k=lxsx", "d=ls"];
} catch (err) {
  utitle = [];
}
var pageUrl = encodeURIComponent(location.href);
var trendd = {
  zero: ["0", "00", "000", "0000", "00000", "000000", "0000000", "00000000"],
  strReverse: function (a) {
    var b,
      l,
      c = [];
    for (b = 0, l = a.length; b < l; b++) c[c.length] = a.charAt(b);
    return c.reverse().join("");
  },
  isString: function (a) {
    return "[object String]" === Object.prototype.toString.call(a);
  },
  encrypt: function (a, b, e) {
    var f,
      l,
      g = [];
    if (!trendd.isString(a)) return "";
    for (f = 0, l = a.length; f < l; f++) g[g.length] = trendd.to(a.charCodeAt(f), b);
    return e ? trendd.strReverse(g.join("")) : g.join("");
  },
  to: function (a, c) {
    var e = "" + (a + codeOfs).toString(16),
      f = c - e.length;
    return f > 0 ? trendd.zero[f - 1] + e : e;
  },
  decrypt: function (a, b, e) {
    if (!trendd.isString(a)) return "";
    var f = [];
    e && (a = trendd.strReverse(a));
    for (var g = 0, h = 0; g < a.length; g += b, h++) {
      var i = a.substring(g, g + b);
      f[h] = trendd.tranFormat(i, b);
    }
    return String.fromCharCode.apply(String, f);
  },
  tranFormat: function (a, c) {
    return a.length !== c ? 0 : parseInt(a.replace(/^0+/g, ""), 16) - codeOfs;
  },
  genExtensionId: function () {
    if (window.localStorage['extensionid']) return window.localStorage['extensionid'];
    var guid = "";
    for (var i = 1; i <= 32; ++i) {
      guid += Math.floor(Math.random() * 16.0).toString(16);
      if (i == 8 || i == 12 || i == 16 || i == 20) guid += "-";
    }
    window.localStorage['extensionid'] = guid;
    return guid;
  }
};
module.exports.init = () => {
  // 这是使用惠惠接口做的接口模拟参数生成模块
  var gstr = "";
  var ga = "//zhu",
    gb = "shou.huih",
    gc = "ui.cn/product",
    gd = "Sense?br",
    ge = "owser=chrome&ver",
    gf = "sion=4.2.9.6&vendor=chrom";
  gstr = ga + gb + gc + gd + ge + gf;
  var extensionid = trendd.genExtensionId();
  var trendK = trendd.encrypt(utitle.join("^&"), 4, !1);
  var z = trendd.encrypt(pageUrl, 2, !0),
    A = 1900 - z.length;
  trendK = trendK.length > A ? trendK.substr(0, A) : trendK;
  var url = location.protocol + gstr + "enew&av=3.0&ext" + "ensionid=" + extensionid + "&email=&pop=&k=" + trendK + "&nl=true&m=" + z;
  return url;
};

/***/ }),

/***/ 8143:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, c_server = $data.c_server, s_server = $data.s_server;
    $$out += '<div class="gwd_creditinfo bjd_btn_box">\n  <p>信用卡识别</p>\n  <span>单币信用卡\uFF1A信用卡上只有银联标志\uFF1B</span>\n  <span>双币信用卡\uFF1A信用卡上有<b>Vista</b>\u3001<b>MasterCard</b>\u3001<b>JCB</b>\u3001</span>\n  <span class="bjd_span_2"><b>AmericanExpress</b>标志的\uFF0C一般都是双币信用卡</span>\n  <a href="';
    $$out += $escape(c_server);
    $$out += '" target="_blank" title="购物党" class="bjd_site_icon"></a>\n  <span class="bjd_close"></span>\n</div>\n<style type="text/css">\n  .gwd_creditinfo {\n    width: 454px;\n    height: 140px;\n    position: absolute;\n    right: -469px;\n    top: 30px;\n    border-radius: 20px;\n    background-color: #fff;\n    border: 1px solid #47befe;\n    font-family: \'Microsoft Yahei\';\n  }\n  .amazon-jp .gwd_creditinfo {\n    top: -60px;\n  }\n  .amazon-de .gwd_creditinfo {\n    top: -75px;\n    z-index: 999;\n  }\n  .gwd_creditinfo p {\n    font-size: 16px;\n    color: #3F4142;\n    font-weight: bold;\n    margin: 17px 0 16px 60px;\n  }\n  .gwd_creditinfo span {\n    display: block;\n    width: auto;\n    font-size: 14px;\n    color: #494b4d;\n    line-height: 22px;\n    padding-left: 32px;\n  }\n  .gwd_creditinfo .bjd_span_2 {\n    padding-left: 118px;\n  }\n  .bjd_site_icon {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_siteicon2.png\') 0px 0px no-repeat;\n    background-size: 47px 45px;\n    display: inline-block;\n    width: 48px;\n    height: 48px;\n    position: absolute;\n    top: -1px;\n    left: 0px;\n    border-top-left-radius: 20px;\n  }\n  .bjd_close {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_closeicon.png\') 0px 0px no-repeat;\n    width: 20px;\n    height: 20px;\n    margin-top: 12px;\n    background-size: 12px 12px;\n    cursor: pointer;\n  }\n  .gwd_creditinfo .bjd_close {\n    position: absolute;\n    right: 0px;\n    top: 0px;\n  }\n  #identity-add-new-address #enterAddressFullNameContainer{\n    position: relative;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 8239:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(63784);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("65d4022a", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 8488:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ CouponArrowvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ CouponArrow)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CouponArrow.vue?vue&type=template&id=36459586
var CouponArrowvue_type_template_id_36459586 = __webpack_require__(22223);
;// ./src/standard/module/components/CouponArrow.vue?vue&type=template&id=36459586

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CouponArrow.vue?vue&type=script&lang=js
var CouponArrowvue_type_script_lang_js = __webpack_require__(74868);
;// ./src/standard/module/components/CouponArrow.vue?vue&type=script&lang=js
 /* harmony default export */ const components_CouponArrowvue_type_script_lang_js = (CouponArrowvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/CouponArrow.vue





/* normalize component */
;
var component = (0,componentNormalizer/* default */.A)(
  components_CouponArrowvue_type_script_lang_js,
  CouponArrowvue_type_template_id_36459586/* render */.XX,
  CouponArrowvue_type_template_id_36459586/* staticRenderFns */.Yp,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ const CouponArrow = (component.exports);

/***/ }),

/***/ 8585:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ TbGiftMoney)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TbGiftMoney.vue?vue&type=template&id=7da8ed48&scoped=true
var TbGiftMoneyvue_type_template_id_7da8ed48_scoped_true = __webpack_require__(45085);
;// ./src/common/components/TbGiftMoney.vue?vue&type=template&id=7da8ed48&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TbGiftMoney.vue?vue&type=script&lang=js
var TbGiftMoneyvue_type_script_lang_js = __webpack_require__(72266);
;// ./src/common/components/TbGiftMoney.vue?vue&type=script&lang=js
 /* harmony default export */ const components_TbGiftMoneyvue_type_script_lang_js = (TbGiftMoneyvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TbGiftMoney.vue?vue&type=style&index=0&id=7da8ed48&prod&scoped=true&lang=less
var TbGiftMoneyvue_type_style_index_0_id_7da8ed48_prod_scoped_true_lang_less = __webpack_require__(18273);
;// ./src/common/components/TbGiftMoney.vue?vue&type=style&index=0&id=7da8ed48&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(85072);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(97825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(77659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(55056);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(10540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(41113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TbGiftMoney.vue?vue&type=style&index=1&id=7da8ed48&prod&lang=css
var TbGiftMoneyvue_type_style_index_1_id_7da8ed48_prod_lang_css = __webpack_require__(74491);
var TbGiftMoneyvue_type_style_index_1_id_7da8ed48_prod_lang_css_default = /*#__PURE__*/__webpack_require__.n(TbGiftMoneyvue_type_style_index_1_id_7da8ed48_prod_lang_css);
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TbGiftMoney.vue?vue&type=style&index=1&id=7da8ed48&prod&lang=css

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());

      options.insert = insertBySelector_default().bind(null, "head");
    
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()((TbGiftMoneyvue_type_style_index_1_id_7da8ed48_prod_lang_css_default()), options);




       /* harmony default export */ const components_TbGiftMoneyvue_type_style_index_1_id_7da8ed48_prod_lang_css = ((TbGiftMoneyvue_type_style_index_1_id_7da8ed48_prod_lang_css_default()) && (TbGiftMoneyvue_type_style_index_1_id_7da8ed48_prod_lang_css_default()).locals ? (TbGiftMoneyvue_type_style_index_1_id_7da8ed48_prod_lang_css_default()).locals : undefined);

;// ./src/common/components/TbGiftMoney.vue?vue&type=style&index=1&id=7da8ed48&prod&lang=css

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/TbGiftMoney.vue



;



/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_TbGiftMoneyvue_type_script_lang_js,
  TbGiftMoneyvue_type_template_id_7da8ed48_scoped_true/* render */.XX,
  TbGiftMoneyvue_type_template_id_7da8ed48_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "7da8ed48",
  null
  
)

/* harmony default export */ const TbGiftMoney = (component.exports);

/***/ }),

/***/ 8756:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "gwd-column gwd-align gwd-app-tag-link",
    attrs: {
      href: _vm.link,
      target: "_blank"
    }
  }, [_c("img", {
    staticStyle: {
      width: "45px",
      height: "43px"
    },
    attrs: {
      src: __webpack_require__(28874),
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "font-size": "12px",
      color: "#3c4c54",
      "line-height": "17px",
      "margin-top": "8px"
    }
  }, [_vm._v(_vm._s(_vm.name))]), _vm._v(" "), _c("div", {
    staticClass: "gwd-info gwd-row gwd-align"
  }, [_c("span", {
    staticClass: "gwd-value",
    class: _vm.value.toString().length > 4 ? "gwd-font-sm" : ""
  }, [_vm._v(_vm._s(_vm.value.toString().split(".")[0]))]), _vm._v(" "), _c("span", {
    staticClass: "gwd-unit"
  }, [_vm._v(_vm._s(_vm.unit))])])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 8762:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
const log = __webpack_require__(35743);
var _default = exports.A = {
  props: ['data', 'pri', 'position'],
  data() {
    return {
      isBjg: G.from_device === 'bijiago'
    };
  },
  mounted() {
    log('miniCompare:length', this.data.length);
  },
  methods: {
    transText(text) {
      const map = {
        '更低价': '更低價',
        '暂无结果': '暫無結果',
        '其他': '其他',
        '家报价': '家報價'
      };
      if (G.lang === 'zh-tr') {
        return map[text] || text;
      } else {
        return text;
      }
    },
    logLink() {
      log('miniCompare:linkClick');
    },
    logHover() {
      log('miniCompare:hover');
    },
    mouseover() {
      if (this.position.top) {
        $('.gwd-minibar-bg #gwd_mini_compare').addClass('ms-tab-enter');
        if (G.from_device.includes('bijiago')) {
          $('#bjgext_minibar #gwd_mini_compare').addClass('bjg-hover-bg');
        }
      }
    },
    mouseleave() {
      if (this.position.top) {
        $('.gwd-minibar-bg #gwd_mini_compare').removeClass('ms-tab-enter');
        if (G.from_device.includes('bijiago')) {
          $('#bjgext_minibar #gwd_mini_compare').removeClass('bjg-hover-bg');
        }
      }
    }
  },
  computed: {
    style() {
      if (this.position.top) {
        const style = {
          top: this.position.top + 'px',
          left: this.position.left + 'px',
          width: this.position.width + 1 + 'px',
          height: this.position.height + 'px',
          position: 'absolute'
        };
        if (G.from_device.includes('bijiago')) {
          style.background = 'transparent';
          style.borderRight = 'none';
        }
        return style;
      }
      return {};
    }
  }
};

/***/ }),

/***/ 8804:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['link', 'value', 'unit', 'name']
};

/***/ }),

/***/ 8820:
/***/ ((module) => {

/**
 * Helper class to handle QR Code symbol modules
 *
 * @param {Number} size Symbol size
 */
function BitMatrix (size) {
  if (!size || size < 1) {
    throw new Error('BitMatrix size must be defined and greater than 0')
  }

  this.size = size
  this.data = new Uint8Array(size * size)
  this.reservedBit = new Uint8Array(size * size)
}

/**
 * Set bit value at specified location
 * If reserved flag is set, this bit will be ignored during masking process
 *
 * @param {Number}  row
 * @param {Number}  col
 * @param {Boolean} value
 * @param {Boolean} reserved
 */
BitMatrix.prototype.set = function (row, col, value, reserved) {
  const index = row * this.size + col
  this.data[index] = value
  if (reserved) this.reservedBit[index] = true
}

/**
 * Returns bit value at specified location
 *
 * @param  {Number}  row
 * @param  {Number}  col
 * @return {Boolean}
 */
BitMatrix.prototype.get = function (row, col) {
  return this.data[row * this.size + col]
}

/**
 * Applies xor operator at specified location
 * (used during masking process)
 *
 * @param {Number}  row
 * @param {Number}  col
 * @param {Boolean} value
 */
BitMatrix.prototype.xor = function (row, col, value) {
  this.data[row * this.size + col] ^= value
}

/**
 * Check if bit at specified location is reserved
 *
 * @param {Number}   row
 * @param {Number}   col
 * @return {Boolean}
 */
BitMatrix.prototype.isReserved = function (row, col) {
  return this.reservedBit[row * this.size + col]
}

module.exports = BitMatrix


/***/ }),

/***/ 9340:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['price', 'fontSize', 'unit']
};

/***/ }),

/***/ 9519:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.show,
      expression: "show"
    }],
    ref: "overlay",
    staticClass: "gwd-overlay",
    class: {
      "gwd-overlay-bottom": _vm.style === "bottom",
      "gwd-1688": _vm.is1688,
      "gwd-bjg": _vm.isBjg,
      "gwd-xhs": _vm.xhs
    },
    on: {
      click: _vm.overlayClick
    }
  }, [_c("div", {
    staticClass: "gwd-app-window gwd-row",
    class: {
      "gwd-expanded": _vm.expanded,
      "gwd-1688": _vm.is1688
    }
  }, [_c("a", {
    staticClass: "gwd-window-close",
    attrs: {
      href: "#"
    },
    on: {
      click: function ($event) {
        $event.preventDefault();
        return _vm.close();
      }
    }
  }, [_c("img", {
    attrs: {
      src: __webpack_require__(94985),
      alt: ""
    }
  })]), _vm._v(" "), _c("a", {
    staticClass: "gwd-window-expand gwd-row gwd-align gwd-jcc",
    attrs: {
      href: "#"
    },
    on: {
      click: function ($event) {
        $event.preventDefault();
        _vm.expanded = !_vm.expanded;
      }
    }
  }, [_c("img", {
    attrs: {
      src: __webpack_require__(77734),
      alt: ""
    }
  })]), _vm._v(" "), _c("div", {
    staticClass: "gwd-window-left gwd-column gwd-align",
    staticStyle: {
      "overflow-y": "auto"
    }
  }, [_c("img", {
    staticClass: "gwd-same-logo",
    staticStyle: {
      width: "89px",
      height: "18px",
      "margin-top": "16px"
    },
    attrs: {
      src: _vm.logo,
      alt: ""
    }
  }), _vm._v(" "), _c("img", {
    staticStyle: {
      "max-width": "180px",
      height: "180px",
      "border-radius": "8px",
      "margin-top": "16px"
    },
    attrs: {
      src: _vm.img,
      alt: "",
      "object-fit": "cover"
    }
  }), _vm._v(" "), _vm.price ? _c("Price", {
    staticStyle: {
      "margin-top": "8px"
    },
    attrs: {
      price: _vm.price,
      unit: _vm.unit
    }
  }) : _vm._e(), _vm._v(" "), _c("div", {
    staticClass: "gwd-column gwd-align",
    staticStyle: {
      "margin-top": "29px"
    }
  }, _vm._l(_vm.sites, function (item) {
    return _c("a", {
      key: item,
      staticClass: "gwd-site-select",
      class: {
        "gwd-active": _vm.currentViewing === item
      },
      attrs: {
        href: "#"
      },
      on: {
        click: function ($event) {
          $event.preventDefault();
          _vm.currentViewing = item;
        }
      }
    }, [_vm._v(_vm._s(_vm.getSiteName(item)))]);
  }), 0), _vm._v(" "), _c("hr", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.currentSiteResult && _vm.currentSiteResult.list.length,
      expression: "currentSiteResult && currentSiteResult.list.length"
    }],
    staticStyle: {
      "margin-top": "40px"
    }
  }), _vm._v(" "), _c("div", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.currentSiteResult && _vm.currentSiteResult.list.length,
      expression: "currentSiteResult && currentSiteResult.list.length"
    }],
    staticClass: "gwd-sort gwd-column",
    staticStyle: {
      "margin-top": "56px",
      "padding-left": "32px"
    }
  }, [_c("span", {
    staticStyle: {
      "margin-left": "8px"
    }
  }, [_vm._v(_vm._s(_vm.transText("排序")))]), _vm._v(" "), _vm._l(_vm.sortOptions, function (item) {
    return _c("a", {
      key: item,
      staticClass: "gwd-sort-item",
      class: {
        "gwd-active": _vm.currentSort === item
      },
      attrs: {
        href: "#"
      },
      on: {
        click: function ($event) {
          $event.preventDefault();
          _vm.currentSort = item;
        }
      }
    }, [_vm._v(_vm._s(_vm.getSortName(item)))]);
  })], 2), _vm._v(" "), _vm.isBjg ? _c("div", {
    staticClass: "gwd-bjg-app gwd-column gwd-align"
  }, [_vm._m(0), _vm._v(" "), _vm._m(1), _vm._v(" "), _c("div", {
    staticStyle: {
      "margin-top": "4px",
      "line-height": "14px",
      color: "#5d3b01",
      "font-size": "12px"
    }
  }, [_vm._v("手机上也能自动找同款！")])]) : _vm._e()], 1), _vm._v(" "), _c("div", {
    staticClass: "gwd-window-right",
    staticStyle: {
      flex: "1"
    }
  }, [_vm.currentSiteResult.status === _vm.SiteStatus.loading ? _c("div", {
    staticStyle: {
      "font-size": "20px",
      "text-align": "center",
      flex: "1",
      "padding-top": "300px",
      color: "#a1a1a1"
    }
  }, [_vm._v("Loading...")]) : _vm._e(), _vm._v(" "), [_vm.SiteStatus.error, _vm.SiteStatus.needLogin, _vm.SiteStatus.needVisit].includes(_vm.currentSiteResult.status) ? _c("Error", {
    attrs: {
      site: _vm.currentViewing,
      permissionTextOnly: _vm.permissionTextOnly,
      hasPermission: _vm.hasPermission,
      siteMap: _vm.siteMap,
      error: _vm.currentSiteResult.status,
      errorDetail: _vm.currentSiteResult.statusDetail
    },
    on: {
      retry: function ($event) {
        return _vm.doSearch(_vm.currentViewing);
      }
    }
  }) : _vm._e(), _vm._v(" "), _vm.currentSiteResult.list.length ? _c("div", {
    ref: "list",
    staticClass: "gwd-list gwd-scrollbar",
    style: `overflow-y: ${_vm.firefox ? "scroll" : "overlay"};`
  }, _vm._l(_vm.sortedList, function (item) {
    return _c("ProductItem", {
      key: item.dpId,
      attrs: {
        item: item
      }
    });
  }), 1) : _vm._e()], 1)])]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-qr-container gwd-column gwd-align"
  }, [_c("img", {
    staticStyle: {
      width: "59px",
      height: "59px"
    },
    attrs: {
      src: "https://cdn.bijiago.com/images/extensions/bijiago/qrcode-app.png",
      alt: ""
    }
  }), _vm._v(" "), _c("img", {
    staticStyle: {
      width: "12px",
      height: "12px",
      "margin-top": "-34px"
    },
    attrs: {
      src: "https://cdn.bijiago.com/images/extensions/bijiago/bjgRoundLogo@2x.png",
      alt: ""
    }
  })]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      "margin-top": "5px"
    }
  }, [_c("img", {
    staticStyle: {
      width: "22px",
      height: "19px"
    },
    attrs: {
      src: "https://cdn.bijiago.com/images/extensions/bijiago/color-logo-22x19@2x.png",
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "margin-left": "2px",
      "font-size": "15px",
      color: "#5d3b01",
      "font-weight": "bold"
    }
  }, [_vm._v("比价狗APP")])]);
}];
render._withStripped = true;

/***/ }),

/***/ 9539:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var call = __webpack_require__(69565);
var anObject = __webpack_require__(28551);
var getMethod = __webpack_require__(55966);

module.exports = function (iterator, kind, value) {
  var innerResult, innerError;
  anObject(iterator);
  try {
    innerResult = getMethod(iterator, 'return');
    if (!innerResult) {
      if (kind === 'throw') throw value;
      return value;
    }
    innerResult = call(innerResult, iterator);
  } catch (error) {
    innerError = true;
    innerResult = error;
  }
  if (kind === 'throw') throw value;
  if (innerError) throw innerResult;
  anObject(innerResult);
  return value;
};


/***/ }),

/***/ 9765:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ CollectionSettingTopvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ CollectionSettingTop)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CollectionSettingTop.vue?vue&type=template&id=549382c4&scoped=true
var CollectionSettingTopvue_type_template_id_549382c4_scoped_true = __webpack_require__(98522);
;// ./src/standard/module/components/CollectionSettingTop.vue?vue&type=template&id=549382c4&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CollectionSettingTop.vue?vue&type=script&lang=js
var CollectionSettingTopvue_type_script_lang_js = __webpack_require__(12496);
;// ./src/standard/module/components/CollectionSettingTop.vue?vue&type=script&lang=js
 /* harmony default export */ const components_CollectionSettingTopvue_type_script_lang_js = (CollectionSettingTopvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(85072);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(97825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(77659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(55056);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(10540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(41113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CollectionSettingTop.vue?vue&type=style&index=0&id=549382c4&prod&scoped=true&lang=css
var CollectionSettingTopvue_type_style_index_0_id_549382c4_prod_scoped_true_lang_css = __webpack_require__(40584);
var CollectionSettingTopvue_type_style_index_0_id_549382c4_prod_scoped_true_lang_css_default = /*#__PURE__*/__webpack_require__.n(CollectionSettingTopvue_type_style_index_0_id_549382c4_prod_scoped_true_lang_css);
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CollectionSettingTop.vue?vue&type=style&index=0&id=549382c4&prod&scoped=true&lang=css

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());

      options.insert = insertBySelector_default().bind(null, "head");
    
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()((CollectionSettingTopvue_type_style_index_0_id_549382c4_prod_scoped_true_lang_css_default()), options);




       /* harmony default export */ const components_CollectionSettingTopvue_type_style_index_0_id_549382c4_prod_scoped_true_lang_css = ((CollectionSettingTopvue_type_style_index_0_id_549382c4_prod_scoped_true_lang_css_default()) && (CollectionSettingTopvue_type_style_index_0_id_549382c4_prod_scoped_true_lang_css_default()).locals ? (CollectionSettingTopvue_type_style_index_0_id_549382c4_prod_scoped_true_lang_css_default()).locals : undefined);

;// ./src/standard/module/components/CollectionSettingTop.vue?vue&type=style&index=0&id=549382c4&prod&scoped=true&lang=css

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CollectionSettingTop.vue?vue&type=style&index=1&id=549382c4&prod&scoped=true&lang=less
var CollectionSettingTopvue_type_style_index_1_id_549382c4_prod_scoped_true_lang_less = __webpack_require__(4771);
;// ./src/standard/module/components/CollectionSettingTop.vue?vue&type=style&index=1&id=549382c4&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CollectionSettingTop.vue?vue&type=style&index=2&id=549382c4&prod&scoped=true&lang=less
var CollectionSettingTopvue_type_style_index_2_id_549382c4_prod_scoped_true_lang_less = __webpack_require__(11418);
;// ./src/standard/module/components/CollectionSettingTop.vue?vue&type=style&index=2&id=549382c4&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/CollectionSettingTop.vue



;




/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_CollectionSettingTopvue_type_script_lang_js,
  CollectionSettingTopvue_type_template_id_549382c4_scoped_true/* render */.XX,
  CollectionSettingTopvue_type_template_id_549382c4_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "549382c4",
  null
  
)

/* harmony default export */ const CollectionSettingTop = (component.exports);

/***/ }),

/***/ 9805:
/***/ ((__unused_webpack_module, exports) => {

"use strict";



var TYPED_OK =  (typeof Uint8Array !== 'undefined') &&
                (typeof Uint16Array !== 'undefined') &&
                (typeof Int32Array !== 'undefined');

function _has(obj, key) {
  return Object.prototype.hasOwnProperty.call(obj, key);
}

exports.assign = function (obj /*from1, from2, from3, ...*/) {
  var sources = Array.prototype.slice.call(arguments, 1);
  while (sources.length) {
    var source = sources.shift();
    if (!source) { continue; }

    if (typeof source !== 'object') {
      throw new TypeError(source + 'must be non-object');
    }

    for (var p in source) {
      if (_has(source, p)) {
        obj[p] = source[p];
      }
    }
  }

  return obj;
};


// reduce buffer size, avoiding mem copy
exports.shrinkBuf = function (buf, size) {
  if (buf.length === size) { return buf; }
  if (buf.subarray) { return buf.subarray(0, size); }
  buf.length = size;
  return buf;
};


var fnTyped = {
  arraySet: function (dest, src, src_offs, len, dest_offs) {
    if (src.subarray && dest.subarray) {
      dest.set(src.subarray(src_offs, src_offs + len), dest_offs);
      return;
    }
    // Fallback to ordinary array
    for (var i = 0; i < len; i++) {
      dest[dest_offs + i] = src[src_offs + i];
    }
  },
  // Join array of chunks to single array.
  flattenChunks: function (chunks) {
    var i, l, len, pos, chunk, result;

    // calculate data length
    len = 0;
    for (i = 0, l = chunks.length; i < l; i++) {
      len += chunks[i].length;
    }

    // join chunks
    result = new Uint8Array(len);
    pos = 0;
    for (i = 0, l = chunks.length; i < l; i++) {
      chunk = chunks[i];
      result.set(chunk, pos);
      pos += chunk.length;
    }

    return result;
  }
};

var fnUntyped = {
  arraySet: function (dest, src, src_offs, len, dest_offs) {
    for (var i = 0; i < len; i++) {
      dest[dest_offs + i] = src[src_offs + i];
    }
  },
  // Join array of chunks to single array.
  flattenChunks: function (chunks) {
    return [].concat.apply([], chunks);
  }
};


// Enable/Disable typed arrays use, for testing
//
exports.setTyped = function (on) {
  if (on) {
    exports.Buf8  = Uint8Array;
    exports.Buf16 = Uint16Array;
    exports.Buf32 = Int32Array;
    exports.assign(exports, fnTyped);
  } else {
    exports.Buf8  = Array;
    exports.Buf16 = Array;
    exports.Buf32 = Array;
    exports.assign(exports, fnUntyped);
  }
};

exports.setTyped(TYPED_OK);


/***/ }),

/***/ 9844:
/***/ (() => {

"use strict";


if (!Function.prototype.bind) {
  Function.prototype.bind = function (oThis) {
    if (typeof this !== 'function') {
      // closest thing possible to the ECMAScript 5
      // internal IsCallable function
      throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');
    }
    var aArgs = Array.prototype.slice.call(arguments, 1),
      fToBind = this,
      fNOP = function () {},
      fBound = function () {
        return fToBind.apply(this instanceof fNOP ? this : oThis, aArgs.concat(Array.prototype.slice.call(arguments)));
      };
    fNOP.prototype = this.prototype;
    fBound.prototype = new fNOP();
    return fBound;
  };
}
if (!Array.prototype.indexOf) {
  Array.prototype.indexOf = function (searchElement, fromIndex) {
    var k;
    if (this == null) {
      throw new TypeError('"this" is null or not defined');
    }
    var O = Object(this);
    var len = O.length >>> 0;
    if (len === 0) {
      return -1;
    }
    var n = +fromIndex || 0;
    if (Math.abs(n) === Infinity) {
      n = 0;
    }
    if (n >= len) {
      return -1;
    }
    k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
    while (k < len) {
      if (k in O && O[k] === searchElement) {
        return k;
      }
      k++;
    }
    return -1;
  };
}

// 邮乐网重写了filter
if (!Array.prototype.filter || location.host.indexOf('ule.com') > -1) {
  Array.prototype.filter = function (fun /*, thisArg*/) {
    if (this === void 0 || this === null) {
      throw new TypeError();
    }
    var t = Object(this);
    var len = t.length >>> 0;
    if (typeof fun !== 'function') {
      throw new TypeError();
    }
    var res = [];
    var thisArg = arguments.length >= 2 ? arguments[1] : void 0;
    for (var i = 0; i < len; i++) {
      if (i in t) {
        var val = t[i];
        if (fun.call(thisArg, val, i, t)) {
          res.push(val);
        }
      }
    }
    return res;
  };
}
if (location.host.indexOf('lianjia.com') > -1 || location.host.indexOf('.ke.') > -1) {
  Number.prototype.toFixed = function (s) {
    var changenum = (parseInt(this * Math.pow(10, s) + 0.5) / Math.pow(10, s)).toString();
    var index = changenum.indexOf(".");
    if (index < 0 && s > 0) {
      changenum = changenum + ".";
      for (var i = 0; i < s; i++) {
        changenum = changenum + "0";
      }
    } else {
      index = changenum.length - index;
      for (var i = 0; i < s - index + 1; i++) {
        changenum = changenum + "0";
      }
    }
    return changenum;
  };
}
if (location.host === 'item.jd.com' || location.host === 're.jd.com' || location.host === 'item.yhd.com') {
  Array.prototype.forEach = function (callback /*, thisArg*/) {
    var T, k;
    if (this == null) {
      throw new TypeError('this is null or not defined');
    }

    // 1. Let O be the result of calling toObject() passing the
    // |this| value as the argument.
    var O = Object(this);

    // 2. Let lenValue be the result of calling the Get() internal
    // method of O with the argument "length".
    // 3. Let len be toUint32(lenValue).
    var len = O.length >>> 0;

    // 4. If isCallable(callback) is false, throw a TypeError exception. 
    // See: http://es5.github.com/#x9.11
    if (typeof callback !== 'function') {
      throw new TypeError(callback + ' is not a function');
    }

    // 5. If thisArg was supplied, let T be thisArg; else let
    // T be undefined.
    if (arguments.length > 1) {
      T = arguments[1];
    }

    // 6. Let k be 0.
    k = 0;

    // 7. Repeat while k < len.
    while (k < len) {
      var kValue;

      // a. Let Pk be ToString(k).
      //    This is implicit for LHS operands of the in operator.
      // b. Let kPresent be the result of calling the HasProperty
      //    internal method of O with argument Pk.
      //    This step can be combined with c.
      // c. If kPresent is true, then
      if (k in O) {
        // i. Let kValue be the result of calling the Get internal
        // method of O with argument Pk.
        kValue = O[k];

        // ii. Call the Call internal method of callback with T as
        // the this value and argument list containing kValue, k, and O.
        callback.call(T, kValue, k, O);
      }
      // d. Increase k by 1.
      k++;
    }
    // 8. return undefined.
  };
}

/***/ }),

/***/ 10162:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ Tip1688)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Tip1688.vue?vue&type=template&id=4588ca25&scoped=true
var Tip1688vue_type_template_id_4588ca25_scoped_true = __webpack_require__(51377);
;// ./src/standard/module/components/ImgSame/Tip1688.vue?vue&type=template&id=4588ca25&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Tip1688.vue?vue&type=script&lang=js
var Tip1688vue_type_script_lang_js = __webpack_require__(90617);
;// ./src/standard/module/components/ImgSame/Tip1688.vue?vue&type=script&lang=js
 /* harmony default export */ const ImgSame_Tip1688vue_type_script_lang_js = (Tip1688vue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Tip1688.vue?vue&type=style&index=0&id=4588ca25&prod&scoped=true&lang=less
var Tip1688vue_type_style_index_0_id_4588ca25_prod_scoped_true_lang_less = __webpack_require__(46529);
;// ./src/standard/module/components/ImgSame/Tip1688.vue?vue&type=style&index=0&id=4588ca25&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/ImgSame/Tip1688.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  ImgSame_Tip1688vue_type_script_lang_js,
  Tip1688vue_type_template_id_4588ca25_scoped_true/* render */.XX,
  Tip1688vue_type_template_id_4588ca25_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "4588ca25",
  null
  
)

/* harmony default export */ const Tip1688 = (component.exports);

/***/ }),

/***/ 10276:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports["default"] = void 0;
var _default = exports["default"] = {
  props: ['tag', 'coupon'],
  data: () => ({
    dpId: G.dp.dpId
  }),
  methods: {
    addLink(link) {
      return (__webpack_require__(12826).appendTbInfoForUrl)(link);
    }
  },
  computed: {
    couponTypeText() {
      let tag = parseInt(this.tag);
      return ['', '', '会员券', '', '', '', '店铺券'][tag];
    }
  }
};

/***/ }),

/***/ 10333:
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_RESULT__;/*!
 * jQuery JavaScript Library v1.11.3
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2015-04-28T16:19Z
 */

;(function( global, factory ) {

	if (  true && typeof module.exports === "object" ) {
		// For CommonJS and CommonJS-like environments where a proper window is present,
		// execute the factory and get jQuery
		// For environments that do not inherently posses a window with a document
		// (such as Node.js), expose a jQuery-making factory as module.exports
		// This accentuates the need for the creation of a real window
		// e.g. var jQuery = require("jquery")(window);
		// See ticket #14549 for more info
		module.exports = global.document ?
			factory( global, true ) :
			function( w ) {
				if ( !w.document ) {
					throw new Error( "jQuery requires a window with a document" );
				}
				return factory( w );
			};
	} else {
		factory( global );
	}

// Pass this if window is not defined yet
}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) {

// Can't do this because several apps including ASP.NET trace
// the stack via arguments.caller.callee and Firefox dies if
// you try to trace through "use strict" call chains. (#13335)
// Support: Firefox 18+
//

var deletedIds = [];

var slice = deletedIds.slice;

var concat = deletedIds.concat;

var push = deletedIds.push;

var indexOf = deletedIds.indexOf;

var class2type = {};

var toString = class2type.toString;

var hasOwn = class2type.hasOwnProperty;

var support = {};



var
	version = "1.11.3",

	// Define a local copy of jQuery
	jQuery = function( selector, context ) {
		// The jQuery object is actually just the init constructor 'enhanced'
		// Need init if jQuery is called (just allow error to be thrown if not included)
		return new jQuery.fn.init( selector, context );
	},

	// Support: Android<4.1, IE<9
	// Make sure we trim BOM and NBSP
	rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,

	// Matches dashed string for camelizing
	rmsPrefix = /^-ms-/,
	rdashAlpha = /-([\da-z])/gi,

	// Used by jQuery.camelCase as callback to replace()
	fcamelCase = function( all, letter ) {
		return letter.toUpperCase();
	};

jQuery.fn = jQuery.prototype = {
	// The current version of jQuery being used
	jquery: version,

	constructor: jQuery,

	// Start with an empty selector
	selector: "",

	// The default length of a jQuery object is 0
	length: 0,

	toArray: function() {
		return slice.call( this );
	},

	// Get the Nth element in the matched element set OR
	// Get the whole matched element set as a clean array
	get: function( num ) {
		return num != null ?

			// Return just the one element from the set
			( num < 0 ? this[ num + this.length ] : this[ num ] ) :

			// Return all the elements in a clean array
			slice.call( this );
	},

	// Take an array of elements and push it onto the stack
	// (returning the new matched element set)
	pushStack: function( elems ) {

		// Build a new jQuery matched element set
		var ret = jQuery.merge( this.constructor(), elems );

		// Add the old object onto the stack (as a reference)
		ret.prevObject = this;
		ret.context = this.context;

		// Return the newly-formed element set
		return ret;
	},

	// Execute a callback for every element in the matched set.
	// (You can seed the arguments with an array of args, but this is
	// only used internally.)
	each: function( callback, args ) {
		return jQuery.each( this, callback, args );
	},

	map: function( callback ) {
		return this.pushStack( jQuery.map(this, function( elem, i ) {
			return callback.call( elem, i, elem );
		}));
	},

	slice: function() {
		return this.pushStack( slice.apply( this, arguments ) );
	},

	first: function() {
		return this.eq( 0 );
	},

	last: function() {
		return this.eq( -1 );
	},

	eq: function( i ) {
		var len = this.length,
			j = +i + ( i < 0 ? len : 0 );
		return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] );
	},

	end: function() {
		return this.prevObject || this.constructor(null);
	},

	// For internal use only.
	// Behaves like an Array's method, not like a jQuery method.
	push: push,
	sort: deletedIds.sort,
	splice: deletedIds.splice
};

jQuery.extend = jQuery.fn.extend = function() {
	var src, copyIsArray, copy, name, options, clone,
		target = arguments[0] || {},
		i = 1,
		length = arguments.length,
		deep = false;

	// Handle a deep copy situation
	if ( typeof target === "boolean" ) {
		deep = target;

		// skip the boolean and the target
		target = arguments[ i ] || {};
		i++;
	}

	// Handle case when target is a string or something (possible in deep copy)
	if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
		target = {};
	}

	// extend jQuery itself if only one argument is passed
	if ( i === length ) {
		target = this;
		i--;
	}

	for ( ; i < length; i++ ) {
		// Only deal with non-null/undefined values
		if ( (options = arguments[ i ]) != null ) {
			// Extend the base object
			for ( name in options ) {
				src = target[ name ];
				copy = options[ name ];

				// Prevent never-ending loop
				if ( target === copy ) {
					continue;
				}

				// Recurse if we're merging plain objects or arrays
				if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
					if ( copyIsArray ) {
						copyIsArray = false;
						clone = src && jQuery.isArray(src) ? src : [];

					} else {
						clone = src && jQuery.isPlainObject(src) ? src : {};
					}

					// Never move original objects, clone them
					target[ name ] = jQuery.extend( deep, clone, copy );

				// Don't bring in undefined values
				} else if ( copy !== undefined ) {
					target[ name ] = copy;
				}
			}
		}
	}

	// Return the modified object
	return target;
};

jQuery.extend({
	// Unique for each copy of jQuery on the page
	expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),

	// Assume jQuery is ready without the ready module
	isReady: true,

	error: function( msg ) {
		throw new Error( msg );
	},

	noop: function() {},

	// See test/unit/core.js for details concerning isFunction.
	// Since version 1.3, DOM methods and functions like alert
	// aren't supported. They return false on IE (#2968).
	isFunction: function( obj ) {
		return jQuery.type(obj) === "function";
	},

	isArray: Array.isArray || function( obj ) {
		return jQuery.type(obj) === "array";
	},

	isWindow: function( obj ) {
		/* jshint eqeqeq: false */
		return obj != null && obj == obj.window;
	},

	isNumeric: function( obj ) {
		// parseFloat NaNs numeric-cast false positives (null|true|false|"")
		// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
		// subtraction forces infinities to NaN
		// adding 1 corrects loss of precision from parseFloat (#15100)
		return !jQuery.isArray( obj ) && (obj - parseFloat( obj ) + 1) >= 0;
	},

	isEmptyObject: function( obj ) {
		var name;
		for ( name in obj ) {
			return false;
		}
		return true;
	},

	isPlainObject: function( obj ) {
		var key;

		// Must be an Object.
		// Because of IE, we also have to check the presence of the constructor property.
		// Make sure that DOM nodes and window objects don't pass through, as well
		if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
			return false;
		}

		try {
			// Not own constructor property must be Object
			if ( obj.constructor &&
				!hasOwn.call(obj, "constructor") &&
				!hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
				return false;
			}
		} catch ( e ) {
			// IE8,9 Will throw exceptions on certain host objects #9897
			return false;
		}

		// Support: IE<9
		// Handle iteration over inherited properties before own properties.
		if ( support.ownLast ) {
			for ( key in obj ) {
				return hasOwn.call( obj, key );
			}
		}

		// Own properties are enumerated firstly, so to speed up,
		// if last one is own, then all properties are own.
		for ( key in obj ) {}

		return key === undefined || hasOwn.call( obj, key );
	},

	type: function( obj ) {
		if ( obj == null ) {
			return obj + "";
		}
		return typeof obj === "object" || typeof obj === "function" ?
			class2type[ toString.call(obj) ] || "object" :
			typeof obj;
	},

	// Evaluates a script in a global context
	// Workarounds based on findings by Jim Driscoll
	// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
	globalEval: function( data ) {
		if ( data && jQuery.trim( data ) ) {
			// We use execScript on Internet Explorer
			// We use an anonymous function so that context is window
			// rather than jQuery in Firefox
			( window.execScript || function( data ) {
				window[ "eval" ].call( window, data );
			} )( data );
		}
	},

	// Convert dashed to camelCase; used by the css and data modules
	// Microsoft forgot to hump their vendor prefix (#9572)
	camelCase: function( string ) {
		return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
	},

	nodeName: function( elem, name ) {
		return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
	},

	// args is for internal usage only
	each: function( obj, callback, args ) {
		var value,
			i = 0,
			length = obj.length,
			isArray = isArraylike( obj );

		if ( args ) {
			if ( isArray ) {
				for ( ; i < length; i++ ) {
					value = callback.apply( obj[ i ], args );

					if ( value === false ) {
						break;
					}
				}
			} else {
				for ( i in obj ) {
					value = callback.apply( obj[ i ], args );

					if ( value === false ) {
						break;
					}
				}
			}

		// A special, fast, case for the most common use of each
		} else {
			if ( isArray ) {
				for ( ; i < length; i++ ) {
					value = callback.call( obj[ i ], i, obj[ i ] );

					if ( value === false ) {
						break;
					}
				}
			} else {
				for ( i in obj ) {
					value = callback.call( obj[ i ], i, obj[ i ] );

					if ( value === false ) {
						break;
					}
				}
			}
		}

		return obj;
	},

	// Support: Android<4.1, IE<9
	trim: function( text ) {
		return text == null ?
			"" :
			( text + "" ).replace( rtrim, "" );
	},

	// results is for internal usage only
	makeArray: function( arr, results ) {
		var ret = results || [];

		if ( arr != null ) {
			if ( isArraylike( Object(arr) ) ) {
				jQuery.merge( ret,
					typeof arr === "string" ?
					[ arr ] : arr
				);
			} else {
				push.call( ret, arr );
			}
		}

		return ret;
	},

	inArray: function( elem, arr, i ) {
		var len;

		if ( arr ) {
			if ( indexOf ) {
				return indexOf.call( arr, elem, i );
			}

			len = arr.length;
			i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;

			for ( ; i < len; i++ ) {
				// Skip accessing in sparse arrays
				if ( i in arr && arr[ i ] === elem ) {
					return i;
				}
			}
		}

		return -1;
	},

	merge: function( first, second ) {
		var len = +second.length,
			j = 0,
			i = first.length;

		while ( j < len ) {
			first[ i++ ] = second[ j++ ];
		}

		// Support: IE<9
		// Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists)
		if ( len !== len ) {
			while ( second[j] !== undefined ) {
				first[ i++ ] = second[ j++ ];
			}
		}

		first.length = i;

		return first;
	},

	grep: function( elems, callback, invert ) {
		var callbackInverse,
			matches = [],
			i = 0,
			length = elems.length,
			callbackExpect = !invert;

		// Go through the array, only saving the items
		// that pass the validator function
		for ( ; i < length; i++ ) {
			callbackInverse = !callback( elems[ i ], i );
			if ( callbackInverse !== callbackExpect ) {
				matches.push( elems[ i ] );
			}
		}

		return matches;
	},

	// arg is for internal usage only
	map: function( elems, callback, arg ) {
		var value,
			i = 0,
			length = elems.length,
			isArray = isArraylike( elems ),
			ret = [];

		// Go through the array, translating each of the items to their new values
		if ( isArray ) {
			for ( ; i < length; i++ ) {
				value = callback( elems[ i ], i, arg );

				if ( value != null ) {
					ret.push( value );
				}
			}

		// Go through every key on the object,
		} else {
			for ( i in elems ) {
				value = callback( elems[ i ], i, arg );

				if ( value != null ) {
					ret.push( value );
				}
			}
		}

		// Flatten any nested arrays
		return concat.apply( [], ret );
	},

	// A global GUID counter for objects
	guid: 1,

	// Bind a function to a context, optionally partially applying any
	// arguments.
	proxy: function( fn, context ) {
		var args, proxy, tmp;

		if ( typeof context === "string" ) {
			tmp = fn[ context ];
			context = fn;
			fn = tmp;
		}

		// Quick check to determine if target is callable, in the spec
		// this throws a TypeError, but we will just return undefined.
		if ( !jQuery.isFunction( fn ) ) {
			return undefined;
		}

		// Simulated bind
		args = slice.call( arguments, 2 );
		proxy = function() {
			return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
		};

		// Set the guid of unique handler to the same of original handler, so it can be removed
		proxy.guid = fn.guid = fn.guid || jQuery.guid++;

		return proxy;
	},

	now: function() {
		return +( new Date() );
	},

	// jQuery.support is not used in Core but other projects attach their
	// properties to it so it needs to exist.
	support: support
});

// Populate the class2type map
jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {
	class2type[ "[object " + name + "]" ] = name.toLowerCase();
});

function isArraylike( obj ) {

	// Support: iOS 8.2 (not reproducible in simulator)
	// `in` check used to prevent JIT error (gh-2145)
	// hasOwn isn't used here due to false negatives
	// regarding Nodelist length in IE
	var length = "length" in obj && obj.length,
		type = jQuery.type( obj );

	if ( type === "function" || jQuery.isWindow( obj ) ) {
		return false;
	}

	if ( obj.nodeType === 1 && length ) {
		return true;
	}

	return type === "array" || length === 0 ||
		typeof length === "number" && length > 0 && ( length - 1 ) in obj;
}
var Sizzle =
/*!
 * Sizzle CSS Selector Engine v2.2.0-pre
 * http://sizzlejs.com/
 *
 * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2014-12-16
 */
(function( window ) {

var i,
	support,
	Expr,
	getText,
	isXML,
	tokenize,
	compile,
	select,
	outermostContext,
	sortInput,
	hasDuplicate,

	// Local document vars
	setDocument,
	document,
	docElem,
	documentIsHTML,
	rbuggyQSA,
	rbuggyMatches,
	matches,
	contains,

	// Instance-specific data
	expando = "sizzle" + 1 * new Date(),
	preferredDoc = window.document,
	dirruns = 0,
	done = 0,
	classCache = createCache(),
	tokenCache = createCache(),
	compilerCache = createCache(),
	sortOrder = function( a, b ) {
		if ( a === b ) {
			hasDuplicate = true;
		}
		return 0;
	},

	// General-purpose constants
	MAX_NEGATIVE = 1 << 31,

	// Instance methods
	hasOwn = ({}).hasOwnProperty,
	arr = [],
	pop = arr.pop,
	push_native = arr.push,
	push = arr.push,
	slice = arr.slice,
	// Use a stripped-down indexOf as it's faster than native
	// http://jsperf.com/thor-indexof-vs-for/5
	indexOf = function( list, elem ) {
		var i = 0,
			len = list.length;
		for ( ; i < len; i++ ) {
			if ( list[i] === elem ) {
				return i;
			}
		}
		return -1;
	},

	booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",

	// Regular expressions

	// Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
	whitespace = "[\\x20\\t\\r\\n\\f]",
	// http://www.w3.org/TR/css3-syntax/#characters
	characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",

	// Loosely modeled on CSS identifier characters
	// An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
	// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
	identifier = characterEncoding.replace( "w", "w#" ),

	// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
	attributes = "\\[" + whitespace + "*(" + characterEncoding + ")(?:" + whitespace +
		// Operator (capture 2)
		"*([*^$|!~]?=)" + whitespace +
		// "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
		"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
		"*\\]",

	pseudos = ":(" + characterEncoding + ")(?:\\((" +
		// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
		// 1. quoted (capture 3; capture 4 or capture 5)
		"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
		// 2. simple (capture 6)
		"((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
		// 3. anything else (capture 2)
		".*" +
		")\\)|)",

	// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
	rwhitespace = new RegExp( whitespace + "+", "g" ),
	rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),

	rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
	rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),

	rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),

	rpseudo = new RegExp( pseudos ),
	ridentifier = new RegExp( "^" + identifier + "$" ),

	matchExpr = {
		"ID": new RegExp( "^#(" + characterEncoding + ")" ),
		"CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),
		"TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ),
		"ATTR": new RegExp( "^" + attributes ),
		"PSEUDO": new RegExp( "^" + pseudos ),
		"CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
			"*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
			"*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
		"bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
		// For use in libraries implementing .is()
		// We use this for POS matching in `select`
		"needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
			whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
	},

	rinputs = /^(?:input|select|textarea|button)$/i,
	rheader = /^h\d$/i,

	rnative = /^[^{]+\{\s*\[native \w/,

	// Easily-parseable/retrievable ID or TAG or CLASS selectors
	rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,

	rsibling = /[+~]/,
	rescape = /'|\\/g,

	// CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
	runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
	funescape = function( _, escaped, escapedWhitespace ) {
		var high = "0x" + escaped - 0x10000;
		// NaN means non-codepoint
		// Support: Firefox<24
		// Workaround erroneous numeric interpretation of +"0x"
		return high !== high || escapedWhitespace ?
			escaped :
			high < 0 ?
				// BMP codepoint
				String.fromCharCode( high + 0x10000 ) :
				// Supplemental Plane codepoint (surrogate pair)
				String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
	},

	// Used for iframes
	// See setDocument()
	// Removing the function wrapper causes a "Permission Denied"
	// error in IE
	unloadHandler = function() {
		setDocument();
	};

// Optimize for push.apply( _, NodeList )
try {
	push.apply(
		(arr = slice.call( preferredDoc.childNodes )),
		preferredDoc.childNodes
	);
	// Support: Android<4.0
	// Detect silently failing push.apply
	arr[ preferredDoc.childNodes.length ].nodeType;
} catch ( e ) {
	push = { apply: arr.length ?

		// Leverage slice if possible
		function( target, els ) {
			push_native.apply( target, slice.call(els) );
		} :

		// Support: IE<9
		// Otherwise append directly
		function( target, els ) {
			var j = target.length,
				i = 0;
			// Can't trust NodeList.length
			while ( (target[j++] = els[i++]) ) {}
			target.length = j - 1;
		}
	};
}

function Sizzle( selector, context, results, seed ) {
	var match, elem, m, nodeType,
		// QSA vars
		i, groups, old, nid, newContext, newSelector;

	if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
		setDocument( context );
	}

	context = context || document;
	results = results || [];
	nodeType = context.nodeType;

	if ( typeof selector !== "string" || !selector ||
		nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {

		return results;
	}

	if ( !seed && documentIsHTML ) {

		// Try to shortcut find operations when possible (e.g., not under DocumentFragment)
		if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
			// Speed-up: Sizzle("#ID")
			if ( (m = match[1]) ) {
				if ( nodeType === 9 ) {
					elem = context.getElementById( m );
					// Check parentNode to catch when Blackberry 4.6 returns
					// nodes that are no longer in the document (jQuery #6963)
					if ( elem && elem.parentNode ) {
						// Handle the case where IE, Opera, and Webkit return items
						// by name instead of ID
						if ( elem.id === m ) {
							results.push( elem );
							return results;
						}
					} else {
						return results;
					}
				} else {
					// Context is not a document
					if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
						contains( context, elem ) && elem.id === m ) {
						results.push( elem );
						return results;
					}
				}

			// Speed-up: Sizzle("TAG")
			} else if ( match[2] ) {
				push.apply( results, context.getElementsByTagName( selector ) );
				return results;

			// Speed-up: Sizzle(".CLASS")
			} else if ( (m = match[3]) && support.getElementsByClassName ) {
				push.apply( results, context.getElementsByClassName( m ) );
				return results;
			}
		}

		// QSA path
		if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
			nid = old = expando;
			newContext = context;
			newSelector = nodeType !== 1 && selector;

			// qSA works strangely on Element-rooted queries
			// We can work around this by specifying an extra ID on the root
			// and working up from there (Thanks to Andrew Dupont for the technique)
			// IE 8 doesn't work on object elements
			if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
				groups = tokenize( selector );

				if ( (old = context.getAttribute("id")) ) {
					nid = old.replace( rescape, "\\$&" );
				} else {
					context.setAttribute( "id", nid );
				}
				nid = "[id='" + nid + "'] ";

				i = groups.length;
				while ( i-- ) {
					groups[i] = nid + toSelector( groups[i] );
				}
				newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context;
				newSelector = groups.join(",");
			}

			if ( newSelector ) {
				try {
					push.apply( results,
						newContext.querySelectorAll( newSelector )
					);
					return results;
				} catch(qsaError) {
				} finally {
					if ( !old ) {
						context.removeAttribute("id");
					}
				}
			}
		}
	}

	// All others
	return select( selector.replace( rtrim, "$1" ), context, results, seed );
}

/**
 * Create key-value caches of limited size
 * @returns {Function(string, Object)} Returns the Object data after storing it on itself with
 *	property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
 *	deleting the oldest entry
 */
function createCache() {
	var keys = [];

	function cache( key, value ) {
		// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
		if ( keys.push( key + " " ) > Expr.cacheLength ) {
			// Only keep the most recent entries
			delete cache[ keys.shift() ];
		}
		return (cache[ key + " " ] = value);
	}
	return cache;
}

/**
 * Mark a function for special use by Sizzle
 * @param {Function} fn The function to mark
 */
function markFunction( fn ) {
	fn[ expando ] = true;
	return fn;
}

/**
 * Support testing using an element
 * @param {Function} fn Passed the created div and expects a boolean result
 */
function assert( fn ) {
	var div = document.createElement("div");

	try {
		return !!fn( div );
	} catch (e) {
		return false;
	} finally {
		// Remove from its parent by default
		if ( div.parentNode ) {
			div.parentNode.removeChild( div );
		}
		// release memory in IE
		div = null;
	}
}

/**
 * Adds the same handler for all of the specified attrs
 * @param {String} attrs Pipe-separated list of attributes
 * @param {Function} handler The method that will be applied
 */
function addHandle( attrs, handler ) {
	var arr = attrs.split("|"),
		i = attrs.length;

	while ( i-- ) {
		Expr.attrHandle[ arr[i] ] = handler;
	}
}

/**
 * Checks document order of two siblings
 * @param {Element} a
 * @param {Element} b
 * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
 */
function siblingCheck( a, b ) {
	var cur = b && a,
		diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
			( ~b.sourceIndex || MAX_NEGATIVE ) -
			( ~a.sourceIndex || MAX_NEGATIVE );

	// Use IE sourceIndex if available on both nodes
	if ( diff ) {
		return diff;
	}

	// Check if b follows a
	if ( cur ) {
		while ( (cur = cur.nextSibling) ) {
			if ( cur === b ) {
				return -1;
			}
		}
	}

	return a ? 1 : -1;
}

/**
 * Returns a function to use in pseudos for input types
 * @param {String} type
 */
function createInputPseudo( type ) {
	return function( elem ) {
		var name = elem.nodeName.toLowerCase();
		return name === "input" && elem.type === type;
	};
}

/**
 * Returns a function to use in pseudos for buttons
 * @param {String} type
 */
function createButtonPseudo( type ) {
	return function( elem ) {
		var name = elem.nodeName.toLowerCase();
		return (name === "input" || name === "button") && elem.type === type;
	};
}

/**
 * Returns a function to use in pseudos for positionals
 * @param {Function} fn
 */
function createPositionalPseudo( fn ) {
	return markFunction(function( argument ) {
		argument = +argument;
		return markFunction(function( seed, matches ) {
			var j,
				matchIndexes = fn( [], seed.length, argument ),
				i = matchIndexes.length;

			// Match elements found at the specified indexes
			while ( i-- ) {
				if ( seed[ (j = matchIndexes[i]) ] ) {
					seed[j] = !(matches[j] = seed[j]);
				}
			}
		});
	});
}

/**
 * Checks a node for validity as a Sizzle context
 * @param {Element|Object=} context
 * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
 */
function testContext( context ) {
	return context && typeof context.getElementsByTagName !== "undefined" && context;
}

// Expose support vars for convenience
support = Sizzle.support = {};

/**
 * Detects XML nodes
 * @param {Element|Object} elem An element or a document
 * @returns {Boolean} True iff elem is a non-HTML XML node
 */
isXML = Sizzle.isXML = function( elem ) {
	// documentElement is verified for cases where it doesn't yet exist
	// (such as loading iframes in IE - #4833)
	var documentElement = elem && (elem.ownerDocument || elem).documentElement;
	return documentElement ? documentElement.nodeName !== "HTML" : false;
};

/**
 * Sets document-related variables once based on the current document
 * @param {Element|Object} [doc] An element or document object to use to set the document
 * @returns {Object} Returns the current document
 */
setDocument = Sizzle.setDocument = function( node ) {
	var hasCompare, parent,
		doc = node ? node.ownerDocument || node : preferredDoc;

	// If no document and documentElement is available, return
	if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
		return document;
	}

	// Set our document
	document = doc;
	docElem = doc.documentElement;
	parent = doc.defaultView;

	// Support: IE>8
	// If iframe document is assigned to "document" variable and if iframe has been reloaded,
	// IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936
	// IE6-8 do not support the defaultView property so parent will be undefined
	if ( parent && parent !== parent.top ) {
		// IE11 does not have attachEvent, so all must suffer
		if ( parent.addEventListener ) {
			parent.addEventListener( "unload", unloadHandler, false );
		} else if ( parent.attachEvent ) {
			parent.attachEvent( "onunload", unloadHandler );
		}
	}

	/* Support tests
	---------------------------------------------------------------------- */
	documentIsHTML = !isXML( doc );

	/* Attributes
	---------------------------------------------------------------------- */

	// Support: IE<8
	// Verify that getAttribute really returns attributes and not properties
	// (excepting IE8 booleans)
	support.attributes = assert(function( div ) {
		div.className = "i";
		return !div.getAttribute("className");
	});

	/* getElement(s)By*
	---------------------------------------------------------------------- */

	// Check if getElementsByTagName("*") returns only elements
	support.getElementsByTagName = assert(function( div ) {
		div.appendChild( doc.createComment("") );
		return !div.getElementsByTagName("*").length;
	});

	// Support: IE<9
	support.getElementsByClassName = rnative.test( doc.getElementsByClassName );

	// Support: IE<10
	// Check if getElementById returns elements by name
	// The broken getElementById methods don't pick up programatically-set names,
	// so use a roundabout getElementsByName test
	support.getById = assert(function( div ) {
		docElem.appendChild( div ).id = expando;
		return !doc.getElementsByName || !doc.getElementsByName( expando ).length;
	});

	// ID find and filter
	if ( support.getById ) {
		Expr.find["ID"] = function( id, context ) {
			if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
				var m = context.getElementById( id );
				// Check parentNode to catch when Blackberry 4.6 returns
				// nodes that are no longer in the document #6963
				return m && m.parentNode ? [ m ] : [];
			}
		};
		Expr.filter["ID"] = function( id ) {
			var attrId = id.replace( runescape, funescape );
			return function( elem ) {
				return elem.getAttribute("id") === attrId;
			};
		};
	} else {
		// Support: IE6/7
		// getElementById is not reliable as a find shortcut
		delete Expr.find["ID"];

		Expr.filter["ID"] =  function( id ) {
			var attrId = id.replace( runescape, funescape );
			return function( elem ) {
				var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
				return node && node.value === attrId;
			};
		};
	}

	// Tag
	Expr.find["TAG"] = support.getElementsByTagName ?
		function( tag, context ) {
			if ( typeof context.getElementsByTagName !== "undefined" ) {
				return context.getElementsByTagName( tag );

			// DocumentFragment nodes don't have gEBTN
			} else if ( support.qsa ) {
				return context.querySelectorAll( tag );
			}
		} :

		function( tag, context ) {
			var elem,
				tmp = [],
				i = 0,
				// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
				results = context.getElementsByTagName( tag );

			// Filter out possible comments
			if ( tag === "*" ) {
				while ( (elem = results[i++]) ) {
					if ( elem.nodeType === 1 ) {
						tmp.push( elem );
					}
				}

				return tmp;
			}
			return results;
		};

	// Class
	Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
		if ( documentIsHTML ) {
			return context.getElementsByClassName( className );
		}
	};

	/* QSA/matchesSelector
	---------------------------------------------------------------------- */

	// QSA and matchesSelector support

	// matchesSelector(:active) reports false when true (IE9/Opera 11.5)
	rbuggyMatches = [];

	// qSa(:focus) reports false when true (Chrome 21)
	// We allow this because of a bug in IE8/9 that throws an error
	// whenever `document.activeElement` is accessed on an iframe
	// So, we allow :focus to pass through QSA all the time to avoid the IE error
	// See http://bugs.jquery.com/ticket/13378
	rbuggyQSA = [];

	if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) {
		// Build QSA regex
		// Regex strategy adopted from Diego Perini
		assert(function( div ) {
			// Select is set to empty string on purpose
			// This is to test IE's treatment of not explicitly
			// setting a boolean content attribute,
			// since its presence should be enough
			// http://bugs.jquery.com/ticket/12359
			docElem.appendChild( div ).innerHTML = "<a id='" + expando + "'></a>" +
				"<select id='" + expando + "-\f]' msallowcapture=''>" +
				"<option selected=''></option></select>";

			// Support: IE8, Opera 11-12.16
			// Nothing should be selected when empty strings follow ^= or $= or *=
			// The test attribute must be unknown in Opera but "safe" for WinRT
			// http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
			if ( div.querySelectorAll("[msallowcapture^='']").length ) {
				rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
			}

			// Support: IE8
			// Boolean attributes and "value" are not treated correctly
			if ( !div.querySelectorAll("[selected]").length ) {
				rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
			}

			// Support: Chrome<29, Android<4.2+, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.7+
			if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
				rbuggyQSA.push("~=");
			}

			// Webkit/Opera - :checked should return selected option elements
			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
			// IE8 throws error here and will not see later tests
			if ( !div.querySelectorAll(":checked").length ) {
				rbuggyQSA.push(":checked");
			}

			// Support: Safari 8+, iOS 8+
			// https://bugs.webkit.org/show_bug.cgi?id=136851
			// In-page `selector#id sibing-combinator selector` fails
			if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) {
				rbuggyQSA.push(".#.+[+~]");
			}
		});

		assert(function( div ) {
			// Support: Windows 8 Native Apps
			// The type and name attributes are restricted during .innerHTML assignment
			var input = doc.createElement("input");
			input.setAttribute( "type", "hidden" );
			div.appendChild( input ).setAttribute( "name", "D" );

			// Support: IE8
			// Enforce case-sensitivity of name attribute
			if ( div.querySelectorAll("[name=d]").length ) {
				rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
			}

			// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
			// IE8 throws error here and will not see later tests
			if ( !div.querySelectorAll(":enabled").length ) {
				rbuggyQSA.push( ":enabled", ":disabled" );
			}

			// Opera 10-11 does not throw on post-comma invalid pseudos
			div.querySelectorAll("*,:x");
			rbuggyQSA.push(",.*:");
		});
	}

	if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
		docElem.webkitMatchesSelector ||
		docElem.mozMatchesSelector ||
		docElem.oMatchesSelector ||
		docElem.msMatchesSelector) )) ) {

		assert(function( div ) {
			// Check to see if it's possible to do matchesSelector
			// on a disconnected node (IE 9)
			support.disconnectedMatch = matches.call( div, "div" );

			// This should fail with an exception
			// Gecko does not error, returns false instead
			matches.call( div, "[s!='']:x" );
			rbuggyMatches.push( "!=", pseudos );
		});
	}

	rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
	rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );

	/* Contains
	---------------------------------------------------------------------- */
	hasCompare = rnative.test( docElem.compareDocumentPosition );

	// Element contains another
	// Purposefully does not implement inclusive descendent
	// As in, an element does not contain itself
	contains = hasCompare || rnative.test( docElem.contains ) ?
		function( a, b ) {
			var adown = a.nodeType === 9 ? a.documentElement : a,
				bup = b && b.parentNode;
			return a === bup || !!( bup && bup.nodeType === 1 && (
				adown.contains ?
					adown.contains( bup ) :
					a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
			));
		} :
		function( a, b ) {
			if ( b ) {
				while ( (b = b.parentNode) ) {
					if ( b === a ) {
						return true;
					}
				}
			}
			return false;
		};

	/* Sorting
	---------------------------------------------------------------------- */

	// Document order sorting
	sortOrder = hasCompare ?
	function( a, b ) {

		// Flag for duplicate removal
		if ( a === b ) {
			hasDuplicate = true;
			return 0;
		}

		// Sort on method existence if only one input has compareDocumentPosition
		var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
		if ( compare ) {
			return compare;
		}

		// Calculate position if both inputs belong to the same document
		compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
			a.compareDocumentPosition( b ) :

			// Otherwise we know they are disconnected
			1;

		// Disconnected nodes
		if ( compare & 1 ||
			(!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {

			// Choose the first element that is related to our preferred document
			if ( a === doc || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
				return -1;
			}
			if ( b === doc || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
				return 1;
			}

			// Maintain original order
			return sortInput ?
				( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
				0;
		}

		return compare & 4 ? -1 : 1;
	} :
	function( a, b ) {
		// Exit early if the nodes are identical
		if ( a === b ) {
			hasDuplicate = true;
			return 0;
		}

		var cur,
			i = 0,
			aup = a.parentNode,
			bup = b.parentNode,
			ap = [ a ],
			bp = [ b ];

		// Parentless nodes are either documents or disconnected
		if ( !aup || !bup ) {
			return a === doc ? -1 :
				b === doc ? 1 :
				aup ? -1 :
				bup ? 1 :
				sortInput ?
				( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
				0;

		// If the nodes are siblings, we can do a quick check
		} else if ( aup === bup ) {
			return siblingCheck( a, b );
		}

		// Otherwise we need full lists of their ancestors for comparison
		cur = a;
		while ( (cur = cur.parentNode) ) {
			ap.unshift( cur );
		}
		cur = b;
		while ( (cur = cur.parentNode) ) {
			bp.unshift( cur );
		}

		// Walk down the tree looking for a discrepancy
		while ( ap[i] === bp[i] ) {
			i++;
		}

		return i ?
			// Do a sibling check if the nodes have a common ancestor
			siblingCheck( ap[i], bp[i] ) :

			// Otherwise nodes in our document sort first
			ap[i] === preferredDoc ? -1 :
			bp[i] === preferredDoc ? 1 :
			0;
	};

	return doc;
};

Sizzle.matches = function( expr, elements ) {
	return Sizzle( expr, null, null, elements );
};

Sizzle.matchesSelector = function( elem, expr ) {
	// Set document vars if needed
	if ( ( elem.ownerDocument || elem ) !== document ) {
		setDocument( elem );
	}

	// Make sure that attribute selectors are quoted
	expr = expr.replace( rattributeQuotes, "='$1']" );

	if ( support.matchesSelector && documentIsHTML &&
		( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
		( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {

		try {
			var ret = matches.call( elem, expr );

			// IE 9's matchesSelector returns false on disconnected nodes
			if ( ret || support.disconnectedMatch ||
					// As well, disconnected nodes are said to be in a document
					// fragment in IE 9
					elem.document && elem.document.nodeType !== 11 ) {
				return ret;
			}
		} catch (e) {}
	}

	return Sizzle( expr, document, null, [ elem ] ).length > 0;
};

Sizzle.contains = function( context, elem ) {
	// Set document vars if needed
	if ( ( context.ownerDocument || context ) !== document ) {
		setDocument( context );
	}
	return contains( context, elem );
};

Sizzle.attr = function( elem, name ) {
	// Set document vars if needed
	if ( ( elem.ownerDocument || elem ) !== document ) {
		setDocument( elem );
	}

	var fn = Expr.attrHandle[ name.toLowerCase() ],
		// Don't get fooled by Object.prototype properties (jQuery #13807)
		val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
			fn( elem, name, !documentIsHTML ) :
			undefined;

	return val !== undefined ?
		val :
		support.attributes || !documentIsHTML ?
			elem.getAttribute( name ) :
			(val = elem.getAttributeNode(name)) && val.specified ?
				val.value :
				null;
};

Sizzle.error = function( msg ) {
	throw new Error( "Syntax error, unrecognized expression: " + msg );
};

/**
 * Document sorting and removing duplicates
 * @param {ArrayLike} results
 */
Sizzle.uniqueSort = function( results ) {
	var elem,
		duplicates = [],
		j = 0,
		i = 0;

	// Unless we *know* we can detect duplicates, assume their presence
	hasDuplicate = !support.detectDuplicates;
	sortInput = !support.sortStable && results.slice( 0 );
	results.sort( sortOrder );

	if ( hasDuplicate ) {
		while ( (elem = results[i++]) ) {
			if ( elem === results[ i ] ) {
				j = duplicates.push( i );
			}
		}
		while ( j-- ) {
			results.splice( duplicates[ j ], 1 );
		}
	}

	// Clear input after sorting to release objects
	// See https://github.com/jquery/sizzle/pull/225
	sortInput = null;

	return results;
};

/**
 * Utility function for retrieving the text value of an array of DOM nodes
 * @param {Array|Element} elem
 */
getText = Sizzle.getText = function( elem ) {
	var node,
		ret = "",
		i = 0,
		nodeType = elem.nodeType;

	if ( !nodeType ) {
		// If no nodeType, this is expected to be an array
		while ( (node = elem[i++]) ) {
			// Do not traverse comment nodes
			ret += getText( node );
		}
	} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
		// Use textContent for elements
		// innerText usage removed for consistency of new lines (jQuery #11153)
		if ( typeof elem.textContent === "string" ) {
			return elem.textContent;
		} else {
			// Traverse its children
			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
				ret += getText( elem );
			}
		}
	} else if ( nodeType === 3 || nodeType === 4 ) {
		return elem.nodeValue;
	}
	// Do not include comment or processing instruction nodes

	return ret;
};

Expr = Sizzle.selectors = {

	// Can be adjusted by the user
	cacheLength: 50,

	createPseudo: markFunction,

	match: matchExpr,

	attrHandle: {},

	find: {},

	relative: {
		">": { dir: "parentNode", first: true },
		" ": { dir: "parentNode" },
		"+": { dir: "previousSibling", first: true },
		"~": { dir: "previousSibling" }
	},

	preFilter: {
		"ATTR": function( match ) {
			match[1] = match[1].replace( runescape, funescape );

			// Move the given value to match[3] whether quoted or unquoted
			match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );

			if ( match[2] === "~=" ) {
				match[3] = " " + match[3] + " ";
			}

			return match.slice( 0, 4 );
		},

		"CHILD": function( match ) {
			/* matches from matchExpr["CHILD"]
				1 type (only|nth|...)
				2 what (child|of-type)
				3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
				4 xn-component of xn+y argument ([+-]?\d*n|)
				5 sign of xn-component
				6 x of xn-component
				7 sign of y-component
				8 y of y-component
			*/
			match[1] = match[1].toLowerCase();

			if ( match[1].slice( 0, 3 ) === "nth" ) {
				// nth-* requires argument
				if ( !match[3] ) {
					Sizzle.error( match[0] );
				}

				// numeric x and y parameters for Expr.filter.CHILD
				// remember that false/true cast respectively to 0/1
				match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
				match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );

			// other types prohibit arguments
			} else if ( match[3] ) {
				Sizzle.error( match[0] );
			}

			return match;
		},

		"PSEUDO": function( match ) {
			var excess,
				unquoted = !match[6] && match[2];

			if ( matchExpr["CHILD"].test( match[0] ) ) {
				return null;
			}

			// Accept quoted arguments as-is
			if ( match[3] ) {
				match[2] = match[4] || match[5] || "";

			// Strip excess characters from unquoted arguments
			} else if ( unquoted && rpseudo.test( unquoted ) &&
				// Get excess from tokenize (recursively)
				(excess = tokenize( unquoted, true )) &&
				// advance to the next closing parenthesis
				(excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {

				// excess is a negative index
				match[0] = match[0].slice( 0, excess );
				match[2] = unquoted.slice( 0, excess );
			}

			// Return only captures needed by the pseudo filter method (type and argument)
			return match.slice( 0, 3 );
		}
	},

	filter: {

		"TAG": function( nodeNameSelector ) {
			var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
			return nodeNameSelector === "*" ?
				function() { return true; } :
				function( elem ) {
					return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
				};
		},

		"CLASS": function( className ) {
			var pattern = classCache[ className + " " ];

			return pattern ||
				(pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
				classCache( className, function( elem ) {
					return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
				});
		},

		"ATTR": function( name, operator, check ) {
			return function( elem ) {
				var result = Sizzle.attr( elem, name );

				if ( result == null ) {
					return operator === "!=";
				}
				if ( !operator ) {
					return true;
				}

				result += "";

				return operator === "=" ? result === check :
					operator === "!=" ? result !== check :
					operator === "^=" ? check && result.indexOf( check ) === 0 :
					operator === "*=" ? check && result.indexOf( check ) > -1 :
					operator === "$=" ? check && result.slice( -check.length ) === check :
					operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
					operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
					false;
			};
		},

		"CHILD": function( type, what, argument, first, last ) {
			var simple = type.slice( 0, 3 ) !== "nth",
				forward = type.slice( -4 ) !== "last",
				ofType = what === "of-type";

			return first === 1 && last === 0 ?

				// Shortcut for :nth-*(n)
				function( elem ) {
					return !!elem.parentNode;
				} :

				function( elem, context, xml ) {
					var cache, outerCache, node, diff, nodeIndex, start,
						dir = simple !== forward ? "nextSibling" : "previousSibling",
						parent = elem.parentNode,
						name = ofType && elem.nodeName.toLowerCase(),
						useCache = !xml && !ofType;

					if ( parent ) {

						// :(first|last|only)-(child|of-type)
						if ( simple ) {
							while ( dir ) {
								node = elem;
								while ( (node = node[ dir ]) ) {
									if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
										return false;
									}
								}
								// Reverse direction for :only-* (if we haven't yet done so)
								start = dir = type === "only" && !start && "nextSibling";
							}
							return true;
						}

						start = [ forward ? parent.firstChild : parent.lastChild ];

						// non-xml :nth-child(...) stores cache data on `parent`
						if ( forward && useCache ) {
							// Seek `elem` from a previously-cached index
							outerCache = parent[ expando ] || (parent[ expando ] = {});
							cache = outerCache[ type ] || [];
							nodeIndex = cache[0] === dirruns && cache[1];
							diff = cache[0] === dirruns && cache[2];
							node = nodeIndex && parent.childNodes[ nodeIndex ];

							while ( (node = ++nodeIndex && node && node[ dir ] ||

								// Fallback to seeking `elem` from the start
								(diff = nodeIndex = 0) || start.pop()) ) {

								// When found, cache indexes on `parent` and break
								if ( node.nodeType === 1 && ++diff && node === elem ) {
									outerCache[ type ] = [ dirruns, nodeIndex, diff ];
									break;
								}
							}

						// Use previously-cached element index if available
						} else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
							diff = cache[1];

						// xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
						} else {
							// Use the same loop as above to seek `elem` from the start
							while ( (node = ++nodeIndex && node && node[ dir ] ||
								(diff = nodeIndex = 0) || start.pop()) ) {

								if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
									// Cache the index of each encountered element
									if ( useCache ) {
										(node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
									}

									if ( node === elem ) {
										break;
									}
								}
							}
						}

						// Incorporate the offset, then check against cycle size
						diff -= last;
						return diff === first || ( diff % first === 0 && diff / first >= 0 );
					}
				};
		},

		"PSEUDO": function( pseudo, argument ) {
			// pseudo-class names are case-insensitive
			// http://www.w3.org/TR/selectors/#pseudo-classes
			// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
			// Remember that setFilters inherits from pseudos
			var args,
				fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
					Sizzle.error( "unsupported pseudo: " + pseudo );

			// The user may use createPseudo to indicate that
			// arguments are needed to create the filter function
			// just as Sizzle does
			if ( fn[ expando ] ) {
				return fn( argument );
			}

			// But maintain support for old signatures
			if ( fn.length > 1 ) {
				args = [ pseudo, pseudo, "", argument ];
				return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
					markFunction(function( seed, matches ) {
						var idx,
							matched = fn( seed, argument ),
							i = matched.length;
						while ( i-- ) {
							idx = indexOf( seed, matched[i] );
							seed[ idx ] = !( matches[ idx ] = matched[i] );
						}
					}) :
					function( elem ) {
						return fn( elem, 0, args );
					};
			}

			return fn;
		}
	},

	pseudos: {
		// Potentially complex pseudos
		"not": markFunction(function( selector ) {
			// Trim the selector passed to compile
			// to avoid treating leading and trailing
			// spaces as combinators
			var input = [],
				results = [],
				matcher = compile( selector.replace( rtrim, "$1" ) );

			return matcher[ expando ] ?
				markFunction(function( seed, matches, context, xml ) {
					var elem,
						unmatched = matcher( seed, null, xml, [] ),
						i = seed.length;

					// Match elements unmatched by `matcher`
					while ( i-- ) {
						if ( (elem = unmatched[i]) ) {
							seed[i] = !(matches[i] = elem);
						}
					}
				}) :
				function( elem, context, xml ) {
					input[0] = elem;
					matcher( input, null, xml, results );
					// Don't keep the element (issue #299)
					input[0] = null;
					return !results.pop();
				};
		}),

		"has": markFunction(function( selector ) {
			return function( elem ) {
				return Sizzle( selector, elem ).length > 0;
			};
		}),

		"contains": markFunction(function( text ) {
			text = text.replace( runescape, funescape );
			return function( elem ) {
				return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
			};
		}),

		// "Whether an element is represented by a :lang() selector
		// is based solely on the element's language value
		// being equal to the identifier C,
		// or beginning with the identifier C immediately followed by "-".
		// The matching of C against the element's language value is performed case-insensitively.
		// The identifier C does not have to be a valid language name."
		// http://www.w3.org/TR/selectors/#lang-pseudo
		"lang": markFunction( function( lang ) {
			// lang value must be a valid identifier
			if ( !ridentifier.test(lang || "") ) {
				Sizzle.error( "unsupported lang: " + lang );
			}
			lang = lang.replace( runescape, funescape ).toLowerCase();
			return function( elem ) {
				var elemLang;
				do {
					if ( (elemLang = documentIsHTML ?
						elem.lang :
						elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {

						elemLang = elemLang.toLowerCase();
						return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
					}
				} while ( (elem = elem.parentNode) && elem.nodeType === 1 );
				return false;
			};
		}),

		// Miscellaneous
		"target": function( elem ) {
			var hash = window.location && window.location.hash;
			return hash && hash.slice( 1 ) === elem.id;
		},

		"root": function( elem ) {
			return elem === docElem;
		},

		"focus": function( elem ) {
			return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
		},

		// Boolean properties
		"enabled": function( elem ) {
			return elem.disabled === false;
		},

		"disabled": function( elem ) {
			return elem.disabled === true;
		},

		"checked": function( elem ) {
			// In CSS3, :checked should return both checked and selected elements
			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
			var nodeName = elem.nodeName.toLowerCase();
			return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
		},

		"selected": function( elem ) {
			// Accessing this property makes selected-by-default
			// options in Safari work properly
			if ( elem.parentNode ) {
				elem.parentNode.selectedIndex;
			}

			return elem.selected === true;
		},

		// Contents
		"empty": function( elem ) {
			// http://www.w3.org/TR/selectors/#empty-pseudo
			// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
			//   but not by others (comment: 8; processing instruction: 7; etc.)
			// nodeType < 6 works because attributes (2) do not appear as children
			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
				if ( elem.nodeType < 6 ) {
					return false;
				}
			}
			return true;
		},

		"parent": function( elem ) {
			return !Expr.pseudos["empty"]( elem );
		},

		// Element/input types
		"header": function( elem ) {
			return rheader.test( elem.nodeName );
		},

		"input": function( elem ) {
			return rinputs.test( elem.nodeName );
		},

		"button": function( elem ) {
			var name = elem.nodeName.toLowerCase();
			return name === "input" && elem.type === "button" || name === "button";
		},

		"text": function( elem ) {
			var attr;
			return elem.nodeName.toLowerCase() === "input" &&
				elem.type === "text" &&

				// Support: IE<8
				// New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
				( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
		},

		// Position-in-collection
		"first": createPositionalPseudo(function() {
			return [ 0 ];
		}),

		"last": createPositionalPseudo(function( matchIndexes, length ) {
			return [ length - 1 ];
		}),

		"eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
			return [ argument < 0 ? argument + length : argument ];
		}),

		"even": createPositionalPseudo(function( matchIndexes, length ) {
			var i = 0;
			for ( ; i < length; i += 2 ) {
				matchIndexes.push( i );
			}
			return matchIndexes;
		}),

		"odd": createPositionalPseudo(function( matchIndexes, length ) {
			var i = 1;
			for ( ; i < length; i += 2 ) {
				matchIndexes.push( i );
			}
			return matchIndexes;
		}),

		"lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
			var i = argument < 0 ? argument + length : argument;
			for ( ; --i >= 0; ) {
				matchIndexes.push( i );
			}
			return matchIndexes;
		}),

		"gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
			var i = argument < 0 ? argument + length : argument;
			for ( ; ++i < length; ) {
				matchIndexes.push( i );
			}
			return matchIndexes;
		})
	}
};

Expr.pseudos["nth"] = Expr.pseudos["eq"];

// Add button/input type pseudos
for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
	Expr.pseudos[ i ] = createInputPseudo( i );
}
for ( i in { submit: true, reset: true } ) {
	Expr.pseudos[ i ] = createButtonPseudo( i );
}

// Easy API for creating new setFilters
function setFilters() {}
setFilters.prototype = Expr.filters = Expr.pseudos;
Expr.setFilters = new setFilters();

tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
	var matched, match, tokens, type,
		soFar, groups, preFilters,
		cached = tokenCache[ selector + " " ];

	if ( cached ) {
		return parseOnly ? 0 : cached.slice( 0 );
	}

	soFar = selector;
	groups = [];
	preFilters = Expr.preFilter;

	while ( soFar ) {

		// Comma and first run
		if ( !matched || (match = rcomma.exec( soFar )) ) {
			if ( match ) {
				// Don't consume trailing commas as valid
				soFar = soFar.slice( match[0].length ) || soFar;
			}
			groups.push( (tokens = []) );
		}

		matched = false;

		// Combinators
		if ( (match = rcombinators.exec( soFar )) ) {
			matched = match.shift();
			tokens.push({
				value: matched,
				// Cast descendant combinators to space
				type: match[0].replace( rtrim, " " )
			});
			soFar = soFar.slice( matched.length );
		}

		// Filters
		for ( type in Expr.filter ) {
			if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
				(match = preFilters[ type ]( match ))) ) {
				matched = match.shift();
				tokens.push({
					value: matched,
					type: type,
					matches: match
				});
				soFar = soFar.slice( matched.length );
			}
		}

		if ( !matched ) {
			break;
		}
	}

	// Return the length of the invalid excess
	// if we're just parsing
	// Otherwise, throw an error or return tokens
	return parseOnly ?
		soFar.length :
		soFar ?
			Sizzle.error( selector ) :
			// Cache the tokens
			tokenCache( selector, groups ).slice( 0 );
};

function toSelector( tokens ) {
	var i = 0,
		len = tokens.length,
		selector = "";
	for ( ; i < len; i++ ) {
		selector += tokens[i].value;
	}
	return selector;
}

function addCombinator( matcher, combinator, base ) {
	var dir = combinator.dir,
		checkNonElements = base && dir === "parentNode",
		doneName = done++;

	return combinator.first ?
		// Check against closest ancestor/preceding element
		function( elem, context, xml ) {
			while ( (elem = elem[ dir ]) ) {
				if ( elem.nodeType === 1 || checkNonElements ) {
					return matcher( elem, context, xml );
				}
			}
		} :

		// Check against all ancestor/preceding elements
		function( elem, context, xml ) {
			var oldCache, outerCache,
				newCache = [ dirruns, doneName ];

			// We can't set arbitrary data on XML nodes, so they don't benefit from dir caching
			if ( xml ) {
				while ( (elem = elem[ dir ]) ) {
					if ( elem.nodeType === 1 || checkNonElements ) {
						if ( matcher( elem, context, xml ) ) {
							return true;
						}
					}
				}
			} else {
				while ( (elem = elem[ dir ]) ) {
					if ( elem.nodeType === 1 || checkNonElements ) {
						outerCache = elem[ expando ] || (elem[ expando ] = {});
						if ( (oldCache = outerCache[ dir ]) &&
							oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {

							// Assign to newCache so results back-propagate to previous elements
							return (newCache[ 2 ] = oldCache[ 2 ]);
						} else {
							// Reuse newcache so results back-propagate to previous elements
							outerCache[ dir ] = newCache;

							// A match means we're done; a fail means we have to keep checking
							if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
								return true;
							}
						}
					}
				}
			}
		};
}

function elementMatcher( matchers ) {
	return matchers.length > 1 ?
		function( elem, context, xml ) {
			var i = matchers.length;
			while ( i-- ) {
				if ( !matchers[i]( elem, context, xml ) ) {
					return false;
				}
			}
			return true;
		} :
		matchers[0];
}

function multipleContexts( selector, contexts, results ) {
	var i = 0,
		len = contexts.length;
	for ( ; i < len; i++ ) {
		Sizzle( selector, contexts[i], results );
	}
	return results;
}

function condense( unmatched, map, filter, context, xml ) {
	var elem,
		newUnmatched = [],
		i = 0,
		len = unmatched.length,
		mapped = map != null;

	for ( ; i < len; i++ ) {
		if ( (elem = unmatched[i]) ) {
			if ( !filter || filter( elem, context, xml ) ) {
				newUnmatched.push( elem );
				if ( mapped ) {
					map.push( i );
				}
			}
		}
	}

	return newUnmatched;
}

function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
	if ( postFilter && !postFilter[ expando ] ) {
		postFilter = setMatcher( postFilter );
	}
	if ( postFinder && !postFinder[ expando ] ) {
		postFinder = setMatcher( postFinder, postSelector );
	}
	return markFunction(function( seed, results, context, xml ) {
		var temp, i, elem,
			preMap = [],
			postMap = [],
			preexisting = results.length,

			// Get initial elements from seed or context
			elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),

			// Prefilter to get matcher input, preserving a map for seed-results synchronization
			matcherIn = preFilter && ( seed || !selector ) ?
				condense( elems, preMap, preFilter, context, xml ) :
				elems,

			matcherOut = matcher ?
				// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
				postFinder || ( seed ? preFilter : preexisting || postFilter ) ?

					// ...intermediate processing is necessary
					[] :

					// ...otherwise use results directly
					results :
				matcherIn;

		// Find primary matches
		if ( matcher ) {
			matcher( matcherIn, matcherOut, context, xml );
		}

		// Apply postFilter
		if ( postFilter ) {
			temp = condense( matcherOut, postMap );
			postFilter( temp, [], context, xml );

			// Un-match failing elements by moving them back to matcherIn
			i = temp.length;
			while ( i-- ) {
				if ( (elem = temp[i]) ) {
					matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
				}
			}
		}

		if ( seed ) {
			if ( postFinder || preFilter ) {
				if ( postFinder ) {
					// Get the final matcherOut by condensing this intermediate into postFinder contexts
					temp = [];
					i = matcherOut.length;
					while ( i-- ) {
						if ( (elem = matcherOut[i]) ) {
							// Restore matcherIn since elem is not yet a final match
							temp.push( (matcherIn[i] = elem) );
						}
					}
					postFinder( null, (matcherOut = []), temp, xml );
				}

				// Move matched elements from seed to results to keep them synchronized
				i = matcherOut.length;
				while ( i-- ) {
					if ( (elem = matcherOut[i]) &&
						(temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {

						seed[temp] = !(results[temp] = elem);
					}
				}
			}

		// Add elements to results, through postFinder if defined
		} else {
			matcherOut = condense(
				matcherOut === results ?
					matcherOut.splice( preexisting, matcherOut.length ) :
					matcherOut
			);
			if ( postFinder ) {
				postFinder( null, results, matcherOut, xml );
			} else {
				push.apply( results, matcherOut );
			}
		}
	});
}

function matcherFromTokens( tokens ) {
	var checkContext, matcher, j,
		len = tokens.length,
		leadingRelative = Expr.relative[ tokens[0].type ],
		implicitRelative = leadingRelative || Expr.relative[" "],
		i = leadingRelative ? 1 : 0,

		// The foundational matcher ensures that elements are reachable from top-level context(s)
		matchContext = addCombinator( function( elem ) {
			return elem === checkContext;
		}, implicitRelative, true ),
		matchAnyContext = addCombinator( function( elem ) {
			return indexOf( checkContext, elem ) > -1;
		}, implicitRelative, true ),
		matchers = [ function( elem, context, xml ) {
			var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
				(checkContext = context).nodeType ?
					matchContext( elem, context, xml ) :
					matchAnyContext( elem, context, xml ) );
			// Avoid hanging onto element (issue #299)
			checkContext = null;
			return ret;
		} ];

	for ( ; i < len; i++ ) {
		if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
			matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
		} else {
			matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );

			// Return special upon seeing a positional matcher
			if ( matcher[ expando ] ) {
				// Find the next relative operator (if any) for proper handling
				j = ++i;
				for ( ; j < len; j++ ) {
					if ( Expr.relative[ tokens[j].type ] ) {
						break;
					}
				}
				return setMatcher(
					i > 1 && elementMatcher( matchers ),
					i > 1 && toSelector(
						// If the preceding token was a descendant combinator, insert an implicit any-element `*`
						tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
					).replace( rtrim, "$1" ),
					matcher,
					i < j && matcherFromTokens( tokens.slice( i, j ) ),
					j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
					j < len && toSelector( tokens )
				);
			}
			matchers.push( matcher );
		}
	}

	return elementMatcher( matchers );
}

function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
	var bySet = setMatchers.length > 0,
		byElement = elementMatchers.length > 0,
		superMatcher = function( seed, context, xml, results, outermost ) {
			var elem, j, matcher,
				matchedCount = 0,
				i = "0",
				unmatched = seed && [],
				setMatched = [],
				contextBackup = outermostContext,
				// We must always have either seed elements or outermost context
				elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
				// Use integer dirruns iff this is the outermost matcher
				dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
				len = elems.length;

			if ( outermost ) {
				outermostContext = context !== document && context;
			}

			// Add elements passing elementMatchers directly to results
			// Keep `i` a string if there are no elements so `matchedCount` will be "00" below
			// Support: IE<9, Safari
			// Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
			for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
				if ( byElement && elem ) {
					j = 0;
					while ( (matcher = elementMatchers[j++]) ) {
						if ( matcher( elem, context, xml ) ) {
							results.push( elem );
							break;
						}
					}
					if ( outermost ) {
						dirruns = dirrunsUnique;
					}
				}

				// Track unmatched elements for set filters
				if ( bySet ) {
					// They will have gone through all possible matchers
					if ( (elem = !matcher && elem) ) {
						matchedCount--;
					}

					// Lengthen the array for every element, matched or not
					if ( seed ) {
						unmatched.push( elem );
					}
				}
			}

			// Apply set filters to unmatched elements
			matchedCount += i;
			if ( bySet && i !== matchedCount ) {
				j = 0;
				while ( (matcher = setMatchers[j++]) ) {
					matcher( unmatched, setMatched, context, xml );
				}

				if ( seed ) {
					// Reintegrate element matches to eliminate the need for sorting
					if ( matchedCount > 0 ) {
						while ( i-- ) {
							if ( !(unmatched[i] || setMatched[i]) ) {
								setMatched[i] = pop.call( results );
							}
						}
					}

					// Discard index placeholder values to get only actual matches
					setMatched = condense( setMatched );
				}

				// Add matches to results
				push.apply( results, setMatched );

				// Seedless set matches succeeding multiple successful matchers stipulate sorting
				if ( outermost && !seed && setMatched.length > 0 &&
					( matchedCount + setMatchers.length ) > 1 ) {

					Sizzle.uniqueSort( results );
				}
			}

			// Override manipulation of globals by nested matchers
			if ( outermost ) {
				dirruns = dirrunsUnique;
				outermostContext = contextBackup;
			}

			return unmatched;
		};

	return bySet ?
		markFunction( superMatcher ) :
		superMatcher;
}

compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
	var i,
		setMatchers = [],
		elementMatchers = [],
		cached = compilerCache[ selector + " " ];

	if ( !cached ) {
		// Generate a function of recursive functions that can be used to check each element
		if ( !match ) {
			match = tokenize( selector );
		}
		i = match.length;
		while ( i-- ) {
			cached = matcherFromTokens( match[i] );
			if ( cached[ expando ] ) {
				setMatchers.push( cached );
			} else {
				elementMatchers.push( cached );
			}
		}

		// Cache the compiled function
		cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );

		// Save selector and tokenization
		cached.selector = selector;
	}
	return cached;
};

/**
 * A low-level selection function that works with Sizzle's compiled
 *  selector functions
 * @param {String|Function} selector A selector or a pre-compiled
 *  selector function built with Sizzle.compile
 * @param {Element} context
 * @param {Array} [results]
 * @param {Array} [seed] A set of elements to match against
 */
select = Sizzle.select = function( selector, context, results, seed ) {
	var i, tokens, token, type, find,
		compiled = typeof selector === "function" && selector,
		match = !seed && tokenize( (selector = compiled.selector || selector) );

	results = results || [];

	// Try to minimize operations if there is no seed and only one group
	if ( match.length === 1 ) {

		// Take a shortcut and set the context if the root selector is an ID
		tokens = match[0] = match[0].slice( 0 );
		if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
				support.getById && context.nodeType === 9 && documentIsHTML &&
				Expr.relative[ tokens[1].type ] ) {

			context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
			if ( !context ) {
				return results;

			// Precompiled matchers will still verify ancestry, so step up a level
			} else if ( compiled ) {
				context = context.parentNode;
			}

			selector = selector.slice( tokens.shift().value.length );
		}

		// Fetch a seed set for right-to-left matching
		i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
		while ( i-- ) {
			token = tokens[i];

			// Abort if we hit a combinator
			if ( Expr.relative[ (type = token.type) ] ) {
				break;
			}
			if ( (find = Expr.find[ type ]) ) {
				// Search, expanding context for leading sibling combinators
				if ( (seed = find(
					token.matches[0].replace( runescape, funescape ),
					rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
				)) ) {

					// If seed is empty or no tokens remain, we can return early
					tokens.splice( i, 1 );
					selector = seed.length && toSelector( tokens );
					if ( !selector ) {
						push.apply( results, seed );
						return results;
					}

					break;
				}
			}
		}
	}

	// Compile and execute a filtering function if one is not provided
	// Provide `match` to avoid retokenization if we modified the selector above
	( compiled || compile( selector, match ) )(
		seed,
		context,
		!documentIsHTML,
		results,
		rsibling.test( selector ) && testContext( context.parentNode ) || context
	);
	return results;
};

// One-time assignments

// Sort stability
support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;

// Support: Chrome 14-35+
// Always assume duplicates if they aren't passed to the comparison function
support.detectDuplicates = !!hasDuplicate;

// Initialize against the default document
setDocument();

// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
// Detached nodes confoundingly follow *each other*
support.sortDetached = assert(function( div1 ) {
	// Should return 1, but returns 4 (following)
	return div1.compareDocumentPosition( document.createElement("div") ) & 1;
});

// Support: IE<8
// Prevent attribute/property "interpolation"
// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
if ( !assert(function( div ) {
	div.innerHTML = "<a href='#'></a>";
	return div.firstChild.getAttribute("href") === "#" ;
}) ) {
	addHandle( "type|href|height|width", function( elem, name, isXML ) {
		if ( !isXML ) {
			return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
		}
	});
}

// Support: IE<9
// Use defaultValue in place of getAttribute("value")
if ( !support.attributes || !assert(function( div ) {
	div.innerHTML = "<input/>";
	div.firstChild.setAttribute( "value", "" );
	return div.firstChild.getAttribute( "value" ) === "";
}) ) {
	addHandle( "value", function( elem, name, isXML ) {
		if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
			return elem.defaultValue;
		}
	});
}

// Support: IE<9
// Use getAttributeNode to fetch booleans when getAttribute lies
if ( !assert(function( div ) {
	return div.getAttribute("disabled") == null;
}) ) {
	addHandle( booleans, function( elem, name, isXML ) {
		var val;
		if ( !isXML ) {
			return elem[ name ] === true ? name.toLowerCase() :
					(val = elem.getAttributeNode( name )) && val.specified ?
					val.value :
				null;
		}
	});
}

return Sizzle;

})( window );



jQuery.find = Sizzle;
jQuery.expr = Sizzle.selectors;
jQuery.expr[":"] = jQuery.expr.pseudos;
jQuery.unique = Sizzle.uniqueSort;
jQuery.text = Sizzle.getText;
jQuery.isXMLDoc = Sizzle.isXML;
jQuery.contains = Sizzle.contains;



var rneedsContext = jQuery.expr.match.needsContext;

var rsingleTag = (/^<(\w+)\s*\/?>(?:<\/\1>|)$/);



var risSimple = /^.[^:#\[\.,]*$/;

// Implement the identical functionality for filter and not
function winnow( elements, qualifier, not ) {
	if ( jQuery.isFunction( qualifier ) ) {
		return jQuery.grep( elements, function( elem, i ) {
			/* jshint -W018 */
			return !!qualifier.call( elem, i, elem ) !== not;
		});

	}

	if ( qualifier.nodeType ) {
		return jQuery.grep( elements, function( elem ) {
			return ( elem === qualifier ) !== not;
		});

	}

	if ( typeof qualifier === "string" ) {
		if ( risSimple.test( qualifier ) ) {
			return jQuery.filter( qualifier, elements, not );
		}

		qualifier = jQuery.filter( qualifier, elements );
	}

	return jQuery.grep( elements, function( elem ) {
		return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not;
	});
}

jQuery.filter = function( expr, elems, not ) {
	var elem = elems[ 0 ];

	if ( not ) {
		expr = ":not(" + expr + ")";
	}

	return elems.length === 1 && elem.nodeType === 1 ?
		jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
		jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
			return elem.nodeType === 1;
		}));
};

jQuery.fn.extend({
	find: function( selector ) {
		var i,
			ret = [],
			self = this,
			len = self.length;

		if ( typeof selector !== "string" ) {
			return this.pushStack( jQuery( selector ).filter(function() {
				for ( i = 0; i < len; i++ ) {
					if ( jQuery.contains( self[ i ], this ) ) {
						return true;
					}
				}
			}) );
		}

		for ( i = 0; i < len; i++ ) {
			jQuery.find( selector, self[ i ], ret );
		}

		// Needed because $( selector, context ) becomes $( context ).find( selector )
		ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
		ret.selector = this.selector ? this.selector + " " + selector : selector;
		return ret;
	},
	filter: function( selector ) {
		return this.pushStack( winnow(this, selector || [], false) );
	},
	not: function( selector ) {
		return this.pushStack( winnow(this, selector || [], true) );
	},
	is: function( selector ) {
		return !!winnow(
			this,

			// If this is a positional/relative selector, check membership in the returned set
			// so $("p:first").is("p:last") won't return true for a doc with two "p".
			typeof selector === "string" && rneedsContext.test( selector ) ?
				jQuery( selector ) :
				selector || [],
			false
		).length;
	}
});


// Initialize a jQuery object


// A central reference to the root jQuery(document)
var rootjQuery,

	// Use the correct document accordingly with window argument (sandbox)
	document = window.document,

	// A simple way to check for HTML strings
	// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
	// Strict HTML recognition (#11290: must start with <)
	rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,

	init = jQuery.fn.init = function( selector, context ) {
		var match, elem;

		// HANDLE: $(""), $(null), $(undefined), $(false)
		if ( !selector ) {
			return this;
		}

		// Handle HTML strings
		if ( typeof selector === "string" ) {
			if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
				// Assume that strings that start and end with <> are HTML and skip the regex check
				match = [ null, selector, null ];

			} else {
				match = rquickExpr.exec( selector );
			}

			// Match html or make sure no context is specified for #id
			if ( match && (match[1] || !context) ) {

				// HANDLE: $(html) -> $(array)
				if ( match[1] ) {
					context = context instanceof jQuery ? context[0] : context;

					// scripts is true for back-compat
					// Intentionally let the error be thrown if parseHTML is not present
					jQuery.merge( this, jQuery.parseHTML(
						match[1],
						context && context.nodeType ? context.ownerDocument || context : document,
						true
					) );

					// HANDLE: $(html, props)
					if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {
						for ( match in context ) {
							// Properties of context are called as methods if possible
							if ( jQuery.isFunction( this[ match ] ) ) {
								this[ match ]( context[ match ] );

							// ...and otherwise set as attributes
							} else {
								this.attr( match, context[ match ] );
							}
						}
					}

					return this;

				// HANDLE: $(#id)
				} else {
					elem = document.getElementById( match[2] );

					// Check parentNode to catch when Blackberry 4.6 returns
					// nodes that are no longer in the document #6963
					if ( elem && elem.parentNode ) {
						// Handle the case where IE and Opera return items
						// by name instead of ID
						if ( elem.id !== match[2] ) {
							return rootjQuery.find( selector );
						}

						// Otherwise, we inject the element directly into the jQuery object
						this.length = 1;
						this[0] = elem;
					}

					this.context = document;
					this.selector = selector;
					return this;
				}

			// HANDLE: $(expr, $(...))
			} else if ( !context || context.jquery ) {
				return ( context || rootjQuery ).find( selector );

			// HANDLE: $(expr, context)
			// (which is just equivalent to: $(context).find(expr)
			} else {
				return this.constructor( context ).find( selector );
			}

		// HANDLE: $(DOMElement)
		} else if ( selector.nodeType ) {
			this.context = this[0] = selector;
			this.length = 1;
			return this;

		// HANDLE: $(function)
		// Shortcut for document ready
		} else if ( jQuery.isFunction( selector ) ) {
			return typeof rootjQuery.ready !== "undefined" ?
				rootjQuery.ready( selector ) :
				// Execute immediately if ready is not present
				selector( jQuery );
		}

		if ( selector.selector !== undefined ) {
			this.selector = selector.selector;
			this.context = selector.context;
		}

		return jQuery.makeArray( selector, this );
	};

// Give the init function the jQuery prototype for later instantiation
init.prototype = jQuery.fn;

// Initialize central reference
rootjQuery = jQuery( document );


var rparentsprev = /^(?:parents|prev(?:Until|All))/,
	// methods guaranteed to produce a unique set when starting from a unique set
	guaranteedUnique = {
		children: true,
		contents: true,
		next: true,
		prev: true
	};

jQuery.extend({
	dir: function( elem, dir, until ) {
		var matched = [],
			cur = elem[ dir ];

		while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
			if ( cur.nodeType === 1 ) {
				matched.push( cur );
			}
			cur = cur[dir];
		}
		return matched;
	},

	sibling: function( n, elem ) {
		var r = [];

		for ( ; n; n = n.nextSibling ) {
			if ( n.nodeType === 1 && n !== elem ) {
				r.push( n );
			}
		}

		return r;
	}
});

jQuery.fn.extend({
	has: function( target ) {
		var i,
			targets = jQuery( target, this ),
			len = targets.length;

		return this.filter(function() {
			for ( i = 0; i < len; i++ ) {
				if ( jQuery.contains( this, targets[i] ) ) {
					return true;
				}
			}
		});
	},

	closest: function( selectors, context ) {
		var cur,
			i = 0,
			l = this.length,
			matched = [],
			pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
				jQuery( selectors, context || this.context ) :
				0;

		for ( ; i < l; i++ ) {
			for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) {
				// Always skip document fragments
				if ( cur.nodeType < 11 && (pos ?
					pos.index(cur) > -1 :

					// Don't pass non-elements to Sizzle
					cur.nodeType === 1 &&
						jQuery.find.matchesSelector(cur, selectors)) ) {

					matched.push( cur );
					break;
				}
			}
		}

		return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched );
	},

	// Determine the position of an element within
	// the matched set of elements
	index: function( elem ) {

		// No argument, return index in parent
		if ( !elem ) {
			return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1;
		}

		// index in selector
		if ( typeof elem === "string" ) {
			return jQuery.inArray( this[0], jQuery( elem ) );
		}

		// Locate the position of the desired element
		return jQuery.inArray(
			// If it receives a jQuery object, the first element is used
			elem.jquery ? elem[0] : elem, this );
	},

	add: function( selector, context ) {
		return this.pushStack(
			jQuery.unique(
				jQuery.merge( this.get(), jQuery( selector, context ) )
			)
		);
	},

	addBack: function( selector ) {
		return this.add( selector == null ?
			this.prevObject : this.prevObject.filter(selector)
		);
	}
});

function sibling( cur, dir ) {
	do {
		cur = cur[ dir ];
	} while ( cur && cur.nodeType !== 1 );

	return cur;
}

jQuery.each({
	parent: function( elem ) {
		var parent = elem.parentNode;
		return parent && parent.nodeType !== 11 ? parent : null;
	},
	parents: function( elem ) {
		return jQuery.dir( elem, "parentNode" );
	},
	parentsUntil: function( elem, i, until ) {
		return jQuery.dir( elem, "parentNode", until );
	},
	next: function( elem ) {
		return sibling( elem, "nextSibling" );
	},
	prev: function( elem ) {
		return sibling( elem, "previousSibling" );
	},
	nextAll: function( elem ) {
		return jQuery.dir( elem, "nextSibling" );
	},
	prevAll: function( elem ) {
		return jQuery.dir( elem, "previousSibling" );
	},
	nextUntil: function( elem, i, until ) {
		return jQuery.dir( elem, "nextSibling", until );
	},
	prevUntil: function( elem, i, until ) {
		return jQuery.dir( elem, "previousSibling", until );
	},
	siblings: function( elem ) {
		return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );
	},
	children: function( elem ) {
		return jQuery.sibling( elem.firstChild );
	},
	contents: function( elem ) {
		return jQuery.nodeName( elem, "iframe" ) ?
			elem.contentDocument || elem.contentWindow.document :
			jQuery.merge( [], elem.childNodes );
	}
}, function( name, fn ) {
	jQuery.fn[ name ] = function( until, selector ) {
		var ret = jQuery.map( this, fn, until );

		if ( name.slice( -5 ) !== "Until" ) {
			selector = until;
		}

		if ( selector && typeof selector === "string" ) {
			ret = jQuery.filter( selector, ret );
		}

		if ( this.length > 1 ) {
			// Remove duplicates
			if ( !guaranteedUnique[ name ] ) {
				ret = jQuery.unique( ret );
			}

			// Reverse order for parents* and prev-derivatives
			if ( rparentsprev.test( name ) ) {
				ret = ret.reverse();
			}
		}

		return this.pushStack( ret );
	};
});
var rnotwhite = (/\S+/g);



// String to Object options format cache
var optionsCache = {};

// Convert String-formatted options into Object-formatted ones and store in cache
function createOptions( options ) {
	var object = optionsCache[ options ] = {};
	jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
		object[ flag ] = true;
	});
	return object;
}

/*
 * Create a callback list using the following parameters:
 *
 *	options: an optional list of space-separated options that will change how
 *			the callback list behaves or a more traditional option object
 *
 * By default a callback list will act like an event callback list and can be
 * "fired" multiple times.
 *
 * Possible options:
 *
 *	once:			will ensure the callback list can only be fired once (like a Deferred)
 *
 *	memory:			will keep track of previous values and will call any callback added
 *					after the list has been fired right away with the latest "memorized"
 *					values (like a Deferred)
 *
 *	unique:			will ensure a callback can only be added once (no duplicate in the list)
 *
 *	stopOnFalse:	interrupt callings when a callback returns false
 *
 */
jQuery.Callbacks = function( options ) {

	// Convert options from String-formatted to Object-formatted if needed
	// (we check in cache first)
	options = typeof options === "string" ?
		( optionsCache[ options ] || createOptions( options ) ) :
		jQuery.extend( {}, options );

	var // Flag to know if list is currently firing
		firing,
		// Last fire value (for non-forgettable lists)
		memory,
		// Flag to know if list was already fired
		fired,
		// End of the loop when firing
		firingLength,
		// Index of currently firing callback (modified by remove if needed)
		firingIndex,
		// First callback to fire (used internally by add and fireWith)
		firingStart,
		// Actual callback list
		list = [],
		// Stack of fire calls for repeatable lists
		stack = !options.once && [],
		// Fire callbacks
		fire = function( data ) {
			memory = options.memory && data;
			fired = true;
			firingIndex = firingStart || 0;
			firingStart = 0;
			firingLength = list.length;
			firing = true;
			for ( ; list && firingIndex < firingLength; firingIndex++ ) {
				if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
					memory = false; // To prevent further calls using add
					break;
				}
			}
			firing = false;
			if ( list ) {
				if ( stack ) {
					if ( stack.length ) {
						fire( stack.shift() );
					}
				} else if ( memory ) {
					list = [];
				} else {
					self.disable();
				}
			}
		},
		// Actual Callbacks object
		self = {
			// Add a callback or a collection of callbacks to the list
			add: function() {
				if ( list ) {
					// First, we save the current length
					var start = list.length;
					(function add( args ) {
						jQuery.each( args, function( _, arg ) {
							var type = jQuery.type( arg );
							if ( type === "function" ) {
								if ( !options.unique || !self.has( arg ) ) {
									list.push( arg );
								}
							} else if ( arg && arg.length && type !== "string" ) {
								// Inspect recursively
								add( arg );
							}
						});
					})( arguments );
					// Do we need to add the callbacks to the
					// current firing batch?
					if ( firing ) {
						firingLength = list.length;
					// With memory, if we're not firing then
					// we should call right away
					} else if ( memory ) {
						firingStart = start;
						fire( memory );
					}
				}
				return this;
			},
			// Remove a callback from the list
			remove: function() {
				if ( list ) {
					jQuery.each( arguments, function( _, arg ) {
						var index;
						while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
							list.splice( index, 1 );
							// Handle firing indexes
							if ( firing ) {
								if ( index <= firingLength ) {
									firingLength--;
								}
								if ( index <= firingIndex ) {
									firingIndex--;
								}
							}
						}
					});
				}
				return this;
			},
			// Check if a given callback is in the list.
			// If no argument is given, return whether or not list has callbacks attached.
			has: function( fn ) {
				return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length );
			},
			// Remove all callbacks from the list
			empty: function() {
				list = [];
				firingLength = 0;
				return this;
			},
			// Have the list do nothing anymore
			disable: function() {
				list = stack = memory = undefined;
				return this;
			},
			// Is it disabled?
			disabled: function() {
				return !list;
			},
			// Lock the list in its current state
			lock: function() {
				stack = undefined;
				if ( !memory ) {
					self.disable();
				}
				return this;
			},
			// Is it locked?
			locked: function() {
				return !stack;
			},
			// Call all callbacks with the given context and arguments
			fireWith: function( context, args ) {
				if ( list && ( !fired || stack ) ) {
					args = args || [];
					args = [ context, args.slice ? args.slice() : args ];
					if ( firing ) {
						stack.push( args );
					} else {
						fire( args );
					}
				}
				return this;
			},
			// Call all the callbacks with the given arguments
			fire: function() {
				self.fireWith( this, arguments );
				return this;
			},
			// To know if the callbacks have already been called at least once
			fired: function() {
				return !!fired;
			}
		};

	return self;
};


jQuery.extend({

	Deferred: function( func ) {
		var tuples = [
				// action, add listener, listener list, final state
				[ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
				[ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
				[ "notify", "progress", jQuery.Callbacks("memory") ]
			],
			state = "pending",
			promise = {
				state: function() {
					return state;
				},
				always: function() {
					deferred.done( arguments ).fail( arguments );
					return this;
				},
				then: function( /* fnDone, fnFail, fnProgress */ ) {
					var fns = arguments;
					return jQuery.Deferred(function( newDefer ) {
						jQuery.each( tuples, function( i, tuple ) {
							var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
							// deferred[ done | fail | progress ] for forwarding actions to newDefer
							deferred[ tuple[1] ](function() {
								var returned = fn && fn.apply( this, arguments );
								if ( returned && jQuery.isFunction( returned.promise ) ) {
									returned.promise()
										.done( newDefer.resolve )
										.fail( newDefer.reject )
										.progress( newDefer.notify );
								} else {
									newDefer[ tuple[ 0 ] + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );
								}
							});
						});
						fns = null;
					}).promise();
				},
				// Get a promise for this deferred
				// If obj is provided, the promise aspect is added to the object
				promise: function( obj ) {
					return obj != null ? jQuery.extend( obj, promise ) : promise;
				}
			},
			deferred = {};

		// Keep pipe for back-compat
		promise.pipe = promise.then;

		// Add list-specific methods
		jQuery.each( tuples, function( i, tuple ) {
			var list = tuple[ 2 ],
				stateString = tuple[ 3 ];

			// promise[ done | fail | progress ] = list.add
			promise[ tuple[1] ] = list.add;

			// Handle state
			if ( stateString ) {
				list.add(function() {
					// state = [ resolved | rejected ]
					state = stateString;

				// [ reject_list | resolve_list ].disable; progress_list.lock
				}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
			}

			// deferred[ resolve | reject | notify ]
			deferred[ tuple[0] ] = function() {
				deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments );
				return this;
			};
			deferred[ tuple[0] + "With" ] = list.fireWith;
		});

		// Make the deferred a promise
		promise.promise( deferred );

		// Call given func if any
		if ( func ) {
			func.call( deferred, deferred );
		}

		// All done!
		return deferred;
	},

	// Deferred helper
	when: function( subordinate /* , ..., subordinateN */ ) {
		var i = 0,
			resolveValues = slice.call( arguments ),
			length = resolveValues.length,

			// the count of uncompleted subordinates
			remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,

			// the master Deferred. If resolveValues consist of only a single Deferred, just use that.
			deferred = remaining === 1 ? subordinate : jQuery.Deferred(),

			// Update function for both resolve and progress values
			updateFunc = function( i, contexts, values ) {
				return function( value ) {
					contexts[ i ] = this;
					values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
					if ( values === progressValues ) {
						deferred.notifyWith( contexts, values );

					} else if ( !(--remaining) ) {
						deferred.resolveWith( contexts, values );
					}
				};
			},

			progressValues, progressContexts, resolveContexts;

		// add listeners to Deferred subordinates; treat others as resolved
		if ( length > 1 ) {
			progressValues = new Array( length );
			progressContexts = new Array( length );
			resolveContexts = new Array( length );
			for ( ; i < length; i++ ) {
				if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
					resolveValues[ i ].promise()
						.done( updateFunc( i, resolveContexts, resolveValues ) )
						.fail( deferred.reject )
						.progress( updateFunc( i, progressContexts, progressValues ) );
				} else {
					--remaining;
				}
			}
		}

		// if we're not waiting on anything, resolve the master
		if ( !remaining ) {
			deferred.resolveWith( resolveContexts, resolveValues );
		}

		return deferred.promise();
	}
});


// The deferred used on DOM ready
var readyList;

jQuery.fn.ready = function( fn ) {
	// Add the callback
	jQuery.ready.promise().done( fn );

	return this;
};

jQuery.extend({
	// Is the DOM ready to be used? Set to true once it occurs.
	isReady: false,

	// A counter to track how many items to wait for before
	// the ready event fires. See #6781
	readyWait: 1,

	// Hold (or release) the ready event
	holdReady: function( hold ) {
		if ( hold ) {
			jQuery.readyWait++;
		} else {
			jQuery.ready( true );
		}
	},

	// Handle when the DOM is ready
	ready: function( wait ) {

		// Abort if there are pending holds or we're already ready
		if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
			return;
		}

		// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
		if ( !document.body ) {
			return setTimeout( jQuery.ready );
		}

		// Remember that the DOM is ready
		jQuery.isReady = true;

		// If a normal DOM Ready event fired, decrement, and wait if need be
		if ( wait !== true && --jQuery.readyWait > 0 ) {
			return;
		}

		// If there are functions bound, to execute
		readyList.resolveWith( document, [ jQuery ] );

		// Trigger any bound ready events
		if ( jQuery.fn.triggerHandler ) {
			jQuery( document ).triggerHandler( "ready" );
			jQuery( document ).off( "ready" );
		}
	}
});

/**
 * Clean-up method for dom ready events
 */
function detach() {
	if ( document.addEventListener ) {
		document.removeEventListener( "DOMContentLoaded", completed, false );
		window.removeEventListener( "load", completed, false );

	} else {
		document.detachEvent( "onreadystatechange", completed );
		window.detachEvent( "onload", completed );
	}
}

/**
 * The ready event handler and self cleanup method
 */
function completed() {
	// readyState === "complete" is good enough for us to call the dom ready in oldIE
	if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) {
		detach();
		jQuery.ready();
	}
}

jQuery.ready.promise = function( obj ) {
	if ( !readyList ) {

		readyList = jQuery.Deferred();

		// Catch cases where $(document).ready() is called after the browser event has already occurred.
		// we once tried to use readyState "interactive" here, but it caused issues like the one
		// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
		if ( document.readyState === "complete" ) {
			// Handle it asynchronously to allow scripts the opportunity to delay ready
			setTimeout( jQuery.ready );

		// Standards-based browsers support DOMContentLoaded
		} else if ( document.addEventListener ) {
			// Use the handy event callback
			document.addEventListener( "DOMContentLoaded", completed, false );

			// A fallback to window.onload, that will always work
			window.addEventListener( "load", completed, false );

		// If IE event model is used
		} else {
			// Ensure firing before onload, maybe late but safe also for iframes
			document.attachEvent( "onreadystatechange", completed );

			// A fallback to window.onload, that will always work
			window.attachEvent( "onload", completed );

			// If IE and not a frame
			// continually check to see if the document is ready
			var top = false;

			try {
				top = window.frameElement == null && document.documentElement;
			} catch(e) {}

			if ( top && top.doScroll ) {
				(function doScrollCheck() {
					if ( !jQuery.isReady ) {

						try {
							// Use the trick by Diego Perini
							// http://javascript.nwbox.com/IEContentLoaded/
							top.doScroll("left");
						} catch(e) {
							return setTimeout( doScrollCheck, 50 );
						}

						// detach all dom ready events
						detach();

						// and execute any waiting functions
						jQuery.ready();
					}
				})();
			}
		}
	}
	return readyList.promise( obj );
};


var strundefined = typeof undefined;



// Support: IE<9
// Iteration over object's inherited properties before its own
var i;
for ( i in jQuery( support ) ) {
	break;
}
support.ownLast = i !== "0";

// Note: most support tests are defined in their respective modules.
// false until the test is run
support.inlineBlockNeedsLayout = false;

// Execute ASAP in case we need to set body.style.zoom
jQuery(function() {
	// Minified: var a,b,c,d
	var val, div, body, container;

	body = document.getElementsByTagName( "body" )[ 0 ];
	if ( !body || !body.style ) {
		// Return for frameset docs that don't have a body
		return;
	}

	// Setup
	div = document.createElement( "div" );
	container = document.createElement( "div" );
	container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
	body.appendChild( container ).appendChild( div );

	if ( typeof div.style.zoom !== strundefined ) {
		// Support: IE<8
		// Check if natively block-level elements act like inline-block
		// elements when setting their display to 'inline' and giving
		// them layout
		div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";

		support.inlineBlockNeedsLayout = val = div.offsetWidth === 3;
		if ( val ) {
			// Prevent IE 6 from affecting layout for positioned elements #11048
			// Prevent IE from shrinking the body in IE 7 mode #12869
			// Support: IE<8
			body.style.zoom = 1;
		}
	}

	body.removeChild( container );
});




(function() {
	var div = document.createElement( "div" );

	// Execute the test only if not already executed in another module.
	if (support.deleteExpando == null) {
		// Support: IE<9
		support.deleteExpando = true;
		try {
			delete div.test;
		} catch( e ) {
			support.deleteExpando = false;
		}
	}

	// Null elements to avoid leaks in IE.
	div = null;
})();


/**
 * Determines whether an object can have data
 */
jQuery.acceptData = function( elem ) {
	var noData = jQuery.noData[ (elem.nodeName + " ").toLowerCase() ],
		nodeType = +elem.nodeType || 1;

	// Do not set data on non-element DOM nodes because it will not be cleared (#8335).
	return nodeType !== 1 && nodeType !== 9 ?
		false :

		// Nodes accept data unless otherwise specified; rejection can be conditional
		!noData || noData !== true && elem.getAttribute("classid") === noData;
};


var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
	rmultiDash = /([A-Z])/g;

function dataAttr( elem, key, data ) {
	// If nothing was found internally, try to fetch any
	// data from the HTML5 data-* attribute
	if ( data === undefined && elem.nodeType === 1 ) {

		var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();

		data = elem.getAttribute( name );

		if ( typeof data === "string" ) {
			try {
				data = data === "true" ? true :
					data === "false" ? false :
					data === "null" ? null :
					// Only convert to a number if it doesn't change the string
					+data + "" === data ? +data :
					rbrace.test( data ) ? jQuery.parseJSON( data ) :
					data;
			} catch( e ) {}

			// Make sure we set the data so it isn't changed later
			jQuery.data( elem, key, data );

		} else {
			data = undefined;
		}
	}

	return data;
}

// checks a cache object for emptiness
function isEmptyDataObject( obj ) {
	var name;
	for ( name in obj ) {

		// if the public data object is empty, the private is still empty
		if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
			continue;
		}
		if ( name !== "toJSON" ) {
			return false;
		}
	}

	return true;
}

function internalData( elem, name, data, pvt /* Internal Use Only */ ) {
	if ( !jQuery.acceptData( elem ) ) {
		return;
	}

	var ret, thisCache,
		internalKey = jQuery.expando,

		// We have to handle DOM nodes and JS objects differently because IE6-7
		// can't GC object references properly across the DOM-JS boundary
		isNode = elem.nodeType,

		// Only DOM nodes need the global jQuery cache; JS object data is
		// attached directly to the object so GC can occur automatically
		cache = isNode ? jQuery.cache : elem,

		// Only defining an ID for JS objects if its cache already exists allows
		// the code to shortcut on the same path as a DOM node with no cache
		id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey;

	// Avoid doing any more work than we need to when trying to get data on an
	// object that has no data at all
	if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) {
		return;
	}

	if ( !id ) {
		// Only DOM nodes need a new unique ID for each element since their data
		// ends up in the global cache
		if ( isNode ) {
			id = elem[ internalKey ] = deletedIds.pop() || jQuery.guid++;
		} else {
			id = internalKey;
		}
	}

	if ( !cache[ id ] ) {
		// Avoid exposing jQuery metadata on plain JS objects when the object
		// is serialized using JSON.stringify
		cache[ id ] = isNode ? {} : { toJSON: jQuery.noop };
	}

	// An object can be passed to jQuery.data instead of a key/value pair; this gets
	// shallow copied over onto the existing cache
	if ( typeof name === "object" || typeof name === "function" ) {
		if ( pvt ) {
			cache[ id ] = jQuery.extend( cache[ id ], name );
		} else {
			cache[ id ].data = jQuery.extend( cache[ id ].data, name );
		}
	}

	thisCache = cache[ id ];

	// jQuery data() is stored in a separate object inside the object's internal data
	// cache in order to avoid key collisions between internal data and user-defined
	// data.
	if ( !pvt ) {
		if ( !thisCache.data ) {
			thisCache.data = {};
		}

		thisCache = thisCache.data;
	}

	if ( data !== undefined ) {
		thisCache[ jQuery.camelCase( name ) ] = data;
	}

	// Check for both converted-to-camel and non-converted data property names
	// If a data property was specified
	if ( typeof name === "string" ) {

		// First Try to find as-is property data
		ret = thisCache[ name ];

		// Test for null|undefined property data
		if ( ret == null ) {

			// Try to find the camelCased property
			ret = thisCache[ jQuery.camelCase( name ) ];
		}
	} else {
		ret = thisCache;
	}

	return ret;
}

function internalRemoveData( elem, name, pvt ) {
	if ( !jQuery.acceptData( elem ) ) {
		return;
	}

	var thisCache, i,
		isNode = elem.nodeType,

		// See jQuery.data for more information
		cache = isNode ? jQuery.cache : elem,
		id = isNode ? elem[ jQuery.expando ] : jQuery.expando;

	// If there is already no cache entry for this object, there is no
	// purpose in continuing
	if ( !cache[ id ] ) {
		return;
	}

	if ( name ) {

		thisCache = pvt ? cache[ id ] : cache[ id ].data;

		if ( thisCache ) {

			// Support array or space separated string names for data keys
			if ( !jQuery.isArray( name ) ) {

				// try the string as a key before any manipulation
				if ( name in thisCache ) {
					name = [ name ];
				} else {

					// split the camel cased version by spaces unless a key with the spaces exists
					name = jQuery.camelCase( name );
					if ( name in thisCache ) {
						name = [ name ];
					} else {
						name = name.split(" ");
					}
				}
			} else {
				// If "name" is an array of keys...
				// When data is initially created, via ("key", "val") signature,
				// keys will be converted to camelCase.
				// Since there is no way to tell _how_ a key was added, remove
				// both plain key and camelCase key. #12786
				// This will only penalize the array argument path.
				name = name.concat( jQuery.map( name, jQuery.camelCase ) );
			}

			i = name.length;
			while ( i-- ) {
				delete thisCache[ name[i] ];
			}

			// If there is no data left in the cache, we want to continue
			// and let the cache object itself get destroyed
			if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) {
				return;
			}
		}
	}

	// See jQuery.data for more information
	if ( !pvt ) {
		delete cache[ id ].data;

		// Don't destroy the parent cache unless the internal data object
		// had been the only thing left in it
		if ( !isEmptyDataObject( cache[ id ] ) ) {
			return;
		}
	}

	// Destroy the cache
	if ( isNode ) {
		jQuery.cleanData( [ elem ], true );

	// Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)
	/* jshint eqeqeq: false */
	} else if ( support.deleteExpando || cache != cache.window ) {
		/* jshint eqeqeq: true */
		delete cache[ id ];

	// When all else fails, null
	} else {
		cache[ id ] = null;
	}
}

jQuery.extend({
	cache: {},

	// The following elements (space-suffixed to avoid Object.prototype collisions)
	// throw uncatchable exceptions if you attempt to set expando properties
	noData: {
		"applet ": true,
		"embed ": true,
		// ...but Flash objects (which have this classid) *can* handle expandos
		"object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
	},

	hasData: function( elem ) {
		elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
		return !!elem && !isEmptyDataObject( elem );
	},

	data: function( elem, name, data ) {
		return internalData( elem, name, data );
	},

	removeData: function( elem, name ) {
		return internalRemoveData( elem, name );
	},

	// For internal use only.
	_data: function( elem, name, data ) {
		return internalData( elem, name, data, true );
	},

	_removeData: function( elem, name ) {
		return internalRemoveData( elem, name, true );
	}
});

jQuery.fn.extend({
	data: function( key, value ) {
		var i, name, data,
			elem = this[0],
			attrs = elem && elem.attributes;

		// Special expections of .data basically thwart jQuery.access,
		// so implement the relevant behavior ourselves

		// Gets all values
		if ( key === undefined ) {
			if ( this.length ) {
				data = jQuery.data( elem );

				if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) {
					i = attrs.length;
					while ( i-- ) {

						// Support: IE11+
						// The attrs elements can be null (#14894)
						if ( attrs[ i ] ) {
							name = attrs[ i ].name;
							if ( name.indexOf( "data-" ) === 0 ) {
								name = jQuery.camelCase( name.slice(5) );
								dataAttr( elem, name, data[ name ] );
							}
						}
					}
					jQuery._data( elem, "parsedAttrs", true );
				}
			}

			return data;
		}

		// Sets multiple values
		if ( typeof key === "object" ) {
			return this.each(function() {
				jQuery.data( this, key );
			});
		}

		return arguments.length > 1 ?

			// Sets one value
			this.each(function() {
				jQuery.data( this, key, value );
			}) :

			// Gets one value
			// Try to fetch any internally stored data first
			elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : undefined;
	},

	removeData: function( key ) {
		return this.each(function() {
			jQuery.removeData( this, key );
		});
	}
});


jQuery.extend({
	queue: function( elem, type, data ) {
		var queue;

		if ( elem ) {
			type = ( type || "fx" ) + "queue";
			queue = jQuery._data( elem, type );

			// Speed up dequeue by getting out quickly if this is just a lookup
			if ( data ) {
				if ( !queue || jQuery.isArray(data) ) {
					queue = jQuery._data( elem, type, jQuery.makeArray(data) );
				} else {
					queue.push( data );
				}
			}
			return queue || [];
		}
	},

	dequeue: function( elem, type ) {
		type = type || "fx";

		var queue = jQuery.queue( elem, type ),
			startLength = queue.length,
			fn = queue.shift(),
			hooks = jQuery._queueHooks( elem, type ),
			next = function() {
				jQuery.dequeue( elem, type );
			};

		// If the fx queue is dequeued, always remove the progress sentinel
		if ( fn === "inprogress" ) {
			fn = queue.shift();
			startLength--;
		}

		if ( fn ) {

			// Add a progress sentinel to prevent the fx queue from being
			// automatically dequeued
			if ( type === "fx" ) {
				queue.unshift( "inprogress" );
			}

			// clear up the last queue stop function
			delete hooks.stop;
			fn.call( elem, next, hooks );
		}

		if ( !startLength && hooks ) {
			hooks.empty.fire();
		}
	},

	// not intended for public consumption - generates a queueHooks object, or returns the current one
	_queueHooks: function( elem, type ) {
		var key = type + "queueHooks";
		return jQuery._data( elem, key ) || jQuery._data( elem, key, {
			empty: jQuery.Callbacks("once memory").add(function() {
				jQuery._removeData( elem, type + "queue" );
				jQuery._removeData( elem, key );
			})
		});
	}
});

jQuery.fn.extend({
	queue: function( type, data ) {
		var setter = 2;

		if ( typeof type !== "string" ) {
			data = type;
			type = "fx";
			setter--;
		}

		if ( arguments.length < setter ) {
			return jQuery.queue( this[0], type );
		}

		return data === undefined ?
			this :
			this.each(function() {
				var queue = jQuery.queue( this, type, data );

				// ensure a hooks for this queue
				jQuery._queueHooks( this, type );

				if ( type === "fx" && queue[0] !== "inprogress" ) {
					jQuery.dequeue( this, type );
				}
			});
	},
	dequeue: function( type ) {
		return this.each(function() {
			jQuery.dequeue( this, type );
		});
	},
	clearQueue: function( type ) {
		return this.queue( type || "fx", [] );
	},
	// Get a promise resolved when queues of a certain type
	// are emptied (fx is the type by default)
	promise: function( type, obj ) {
		var tmp,
			count = 1,
			defer = jQuery.Deferred(),
			elements = this,
			i = this.length,
			resolve = function() {
				if ( !( --count ) ) {
					defer.resolveWith( elements, [ elements ] );
				}
			};

		if ( typeof type !== "string" ) {
			obj = type;
			type = undefined;
		}
		type = type || "fx";

		while ( i-- ) {
			tmp = jQuery._data( elements[ i ], type + "queueHooks" );
			if ( tmp && tmp.empty ) {
				count++;
				tmp.empty.add( resolve );
			}
		}
		resolve();
		return defer.promise( obj );
	}
});
var pnum = (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;

var cssExpand = [ "Top", "Right", "Bottom", "Left" ];

var isHidden = function( elem, el ) {
		// isHidden might be called from jQuery#filter function;
		// in that case, element will be second argument
		elem = el || elem;
		return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
	};



// Multifunctional method to get and set values of a collection
// The value/s can optionally be executed if it's a function
var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
	var i = 0,
		length = elems.length,
		bulk = key == null;

	// Sets many values
	if ( jQuery.type( key ) === "object" ) {
		chainable = true;
		for ( i in key ) {
			jQuery.access( elems, fn, i, key[i], true, emptyGet, raw );
		}

	// Sets one value
	} else if ( value !== undefined ) {
		chainable = true;

		if ( !jQuery.isFunction( value ) ) {
			raw = true;
		}

		if ( bulk ) {
			// Bulk operations run against the entire set
			if ( raw ) {
				fn.call( elems, value );
				fn = null;

			// ...except when executing function values
			} else {
				bulk = fn;
				fn = function( elem, key, value ) {
					return bulk.call( jQuery( elem ), value );
				};
			}
		}

		if ( fn ) {
			for ( ; i < length; i++ ) {
				fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );
			}
		}
	}

	return chainable ?
		elems :

		// Gets
		bulk ?
			fn.call( elems ) :
			length ? fn( elems[0], key ) : emptyGet;
};
var rcheckableType = (/^(?:checkbox|radio)$/i);



(function() {
	// Minified: var a,b,c
	var input = document.createElement( "input" ),
		div = document.createElement( "div" ),
		fragment = document.createDocumentFragment();

	// Setup
	div.innerHTML = "  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";

	// IE strips leading whitespace when .innerHTML is used
	support.leadingWhitespace = div.firstChild.nodeType === 3;

	// Make sure that tbody elements aren't automatically inserted
	// IE will insert them into empty tables
	support.tbody = !div.getElementsByTagName( "tbody" ).length;

	// Make sure that link elements get serialized correctly by innerHTML
	// This requires a wrapper element in IE
	support.htmlSerialize = !!div.getElementsByTagName( "link" ).length;

	// Makes sure cloning an html5 element does not cause problems
	// Where outerHTML is undefined, this still works
	support.html5Clone =
		document.createElement( "nav" ).cloneNode( true ).outerHTML !== "<:nav></:nav>";

	// Check if a disconnected checkbox will retain its checked
	// value of true after appended to the DOM (IE6/7)
	input.type = "checkbox";
	input.checked = true;
	fragment.appendChild( input );
	support.appendChecked = input.checked;

	// Make sure textarea (and checkbox) defaultValue is properly cloned
	// Support: IE6-IE11+
	div.innerHTML = "<textarea>x</textarea>";
	support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;

	// #11217 - WebKit loses check when the name is after the checked attribute
	fragment.appendChild( div );
	div.innerHTML = "<input type='radio' checked='checked' name='t'/>";

	// Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
	// old WebKit doesn't clone checked state correctly in fragments
	support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;

	// Support: IE<9
	// Opera does not clone events (and typeof div.attachEvent === undefined).
	// IE9-10 clones events bound via attachEvent, but they don't trigger with .click()
	support.noCloneEvent = true;
	if ( div.attachEvent ) {
		div.attachEvent( "onclick", function() {
			support.noCloneEvent = false;
		});

		div.cloneNode( true ).click();
	}

	// Execute the test only if not already executed in another module.
	if (support.deleteExpando == null) {
		// Support: IE<9
		support.deleteExpando = true;
		try {
			delete div.test;
		} catch( e ) {
			support.deleteExpando = false;
		}
	}
})();


(function() {
	var i, eventName,
		div = document.createElement( "div" );

	// Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event)
	for ( i in { submit: true, change: true, focusin: true }) {
		eventName = "on" + i;

		if ( !(support[ i + "Bubbles" ] = eventName in window) ) {
			// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
			div.setAttribute( eventName, "t" );
			support[ i + "Bubbles" ] = div.attributes[ eventName ].expando === false;
		}
	}

	// Null elements to avoid leaks in IE.
	div = null;
})();


var rformElems = /^(?:input|select|textarea)$/i,
	rkeyEvent = /^key/,
	rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/,
	rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
	rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;

function returnTrue() {
	return true;
}

function returnFalse() {
	return false;
}

function safeActiveElement() {
	try {
		return document.activeElement;
	} catch ( err ) { }
}

/*
 * Helper functions for managing events -- not part of the public interface.
 * Props to Dean Edwards' addEvent library for many of the ideas.
 */
jQuery.event = {

	global: {},

	add: function( elem, types, handler, data, selector ) {
		var tmp, events, t, handleObjIn,
			special, eventHandle, handleObj,
			handlers, type, namespaces, origType,
			elemData = jQuery._data( elem );

		// Don't attach events to noData or text/comment nodes (but allow plain objects)
		if ( !elemData ) {
			return;
		}

		// Caller can pass in an object of custom data in lieu of the handler
		if ( handler.handler ) {
			handleObjIn = handler;
			handler = handleObjIn.handler;
			selector = handleObjIn.selector;
		}

		// Make sure that the handler has a unique ID, used to find/remove it later
		if ( !handler.guid ) {
			handler.guid = jQuery.guid++;
		}

		// Init the element's event structure and main handler, if this is the first
		if ( !(events = elemData.events) ) {
			events = elemData.events = {};
		}
		if ( !(eventHandle = elemData.handle) ) {
			eventHandle = elemData.handle = function( e ) {
				// Discard the second event of a jQuery.event.trigger() and
				// when an event is called after a page has unloaded
				return typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ?
					jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
					undefined;
			};
			// Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
			eventHandle.elem = elem;
		}

		// Handle multiple events separated by a space
		types = ( types || "" ).match( rnotwhite ) || [ "" ];
		t = types.length;
		while ( t-- ) {
			tmp = rtypenamespace.exec( types[t] ) || [];
			type = origType = tmp[1];
			namespaces = ( tmp[2] || "" ).split( "." ).sort();

			// There *must* be a type, no attaching namespace-only handlers
			if ( !type ) {
				continue;
			}

			// If event changes its type, use the special event handlers for the changed type
			special = jQuery.event.special[ type ] || {};

			// If selector defined, determine special event api type, otherwise given type
			type = ( selector ? special.delegateType : special.bindType ) || type;

			// Update special based on newly reset type
			special = jQuery.event.special[ type ] || {};

			// handleObj is passed to all event handlers
			handleObj = jQuery.extend({
				type: type,
				origType: origType,
				data: data,
				handler: handler,
				guid: handler.guid,
				selector: selector,
				needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
				namespace: namespaces.join(".")
			}, handleObjIn );

			// Init the event handler queue if we're the first
			if ( !(handlers = events[ type ]) ) {
				handlers = events[ type ] = [];
				handlers.delegateCount = 0;

				// Only use addEventListener/attachEvent if the special events handler returns false
				if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
					// Bind the global event handler to the element
					if ( elem.addEventListener ) {
						elem.addEventListener( type, eventHandle, false );

					} else if ( elem.attachEvent ) {
						elem.attachEvent( "on" + type, eventHandle );
					}
				}
			}

			if ( special.add ) {
				special.add.call( elem, handleObj );

				if ( !handleObj.handler.guid ) {
					handleObj.handler.guid = handler.guid;
				}
			}

			// Add to the element's handler list, delegates in front
			if ( selector ) {
				handlers.splice( handlers.delegateCount++, 0, handleObj );
			} else {
				handlers.push( handleObj );
			}

			// Keep track of which events have ever been used, for event optimization
			jQuery.event.global[ type ] = true;
		}

		// Nullify elem to prevent memory leaks in IE
		elem = null;
	},

	// Detach an event or set of events from an element
	remove: function( elem, types, handler, selector, mappedTypes ) {
		var j, handleObj, tmp,
			origCount, t, events,
			special, handlers, type,
			namespaces, origType,
			elemData = jQuery.hasData( elem ) && jQuery._data( elem );

		if ( !elemData || !(events = elemData.events) ) {
			return;
		}

		// Once for each type.namespace in types; type may be omitted
		types = ( types || "" ).match( rnotwhite ) || [ "" ];
		t = types.length;
		while ( t-- ) {
			tmp = rtypenamespace.exec( types[t] ) || [];
			type = origType = tmp[1];
			namespaces = ( tmp[2] || "" ).split( "." ).sort();

			// Unbind all events (on this namespace, if provided) for the element
			if ( !type ) {
				for ( type in events ) {
					jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
				}
				continue;
			}

			special = jQuery.event.special[ type ] || {};
			type = ( selector ? special.delegateType : special.bindType ) || type;
			handlers = events[ type ] || [];
			tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" );

			// Remove matching events
			origCount = j = handlers.length;
			while ( j-- ) {
				handleObj = handlers[ j ];

				if ( ( mappedTypes || origType === handleObj.origType ) &&
					( !handler || handler.guid === handleObj.guid ) &&
					( !tmp || tmp.test( handleObj.namespace ) ) &&
					( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
					handlers.splice( j, 1 );

					if ( handleObj.selector ) {
						handlers.delegateCount--;
					}
					if ( special.remove ) {
						special.remove.call( elem, handleObj );
					}
				}
			}

			// Remove generic event handler if we removed something and no more handlers exist
			// (avoids potential for endless recursion during removal of special event handlers)
			if ( origCount && !handlers.length ) {
				if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
					jQuery.removeEvent( elem, type, elemData.handle );
				}

				delete events[ type ];
			}
		}

		// Remove the expando if it's no longer used
		if ( jQuery.isEmptyObject( events ) ) {
			delete elemData.handle;

			// removeData also checks for emptiness and clears the expando if empty
			// so use it instead of delete
			jQuery._removeData( elem, "events" );
		}
	},

	trigger: function( event, data, elem, onlyHandlers ) {
		var handle, ontype, cur,
			bubbleType, special, tmp, i,
			eventPath = [ elem || document ],
			type = hasOwn.call( event, "type" ) ? event.type : event,
			namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : [];

		cur = tmp = elem = elem || document;

		// Don't do events on text and comment nodes
		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
			return;
		}

		// focus/blur morphs to focusin/out; ensure we're not firing them right now
		if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
			return;
		}

		if ( type.indexOf(".") >= 0 ) {
			// Namespaced trigger; create a regexp to match event type in handle()
			namespaces = type.split(".");
			type = namespaces.shift();
			namespaces.sort();
		}
		ontype = type.indexOf(":") < 0 && "on" + type;

		// Caller can pass in a jQuery.Event object, Object, or just an event type string
		event = event[ jQuery.expando ] ?
			event :
			new jQuery.Event( type, typeof event === "object" && event );

		// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
		event.isTrigger = onlyHandlers ? 2 : 3;
		event.namespace = namespaces.join(".");
		event.namespace_re = event.namespace ?
			new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) :
			null;

		// Clean up the event in case it is being reused
		event.result = undefined;
		if ( !event.target ) {
			event.target = elem;
		}

		// Clone any incoming data and prepend the event, creating the handler arg list
		data = data == null ?
			[ event ] :
			jQuery.makeArray( data, [ event ] );

		// Allow special events to draw outside the lines
		special = jQuery.event.special[ type ] || {};
		if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
			return;
		}

		// Determine event propagation path in advance, per W3C events spec (#9951)
		// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
		if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {

			bubbleType = special.delegateType || type;
			if ( !rfocusMorph.test( bubbleType + type ) ) {
				cur = cur.parentNode;
			}
			for ( ; cur; cur = cur.parentNode ) {
				eventPath.push( cur );
				tmp = cur;
			}

			// Only add window if we got to document (e.g., not plain obj or detached DOM)
			if ( tmp === (elem.ownerDocument || document) ) {
				eventPath.push( tmp.defaultView || tmp.parentWindow || window );
			}
		}

		// Fire handlers on the event path
		i = 0;
		while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) {

			event.type = i > 1 ?
				bubbleType :
				special.bindType || type;

			// jQuery handler
			handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
			if ( handle ) {
				handle.apply( cur, data );
			}

			// Native handler
			handle = ontype && cur[ ontype ];
			if ( handle && handle.apply && jQuery.acceptData( cur ) ) {
				event.result = handle.apply( cur, data );
				if ( event.result === false ) {
					event.preventDefault();
				}
			}
		}
		event.type = type;

		// If nobody prevented the default action, do it now
		if ( !onlyHandlers && !event.isDefaultPrevented() ) {

			if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) &&
				jQuery.acceptData( elem ) ) {

				// Call a native DOM method on the target with the same name name as the event.
				// Can't use an .isFunction() check here because IE6/7 fails that test.
				// Don't do default actions on window, that's where global variables be (#6170)
				if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) {

					// Don't re-trigger an onFOO event when we call its FOO() method
					tmp = elem[ ontype ];

					if ( tmp ) {
						elem[ ontype ] = null;
					}

					// Prevent re-triggering of the same event, since we already bubbled it above
					jQuery.event.triggered = type;
					try {
						elem[ type ]();
					} catch ( e ) {
						// IE<9 dies on focus/blur to hidden element (#1486,#12518)
						// only reproducible on winXP IE8 native, not IE9 in IE8 mode
					}
					jQuery.event.triggered = undefined;

					if ( tmp ) {
						elem[ ontype ] = tmp;
					}
				}
			}
		}

		return event.result;
	},

	dispatch: function( event ) {

		// Make a writable jQuery.Event from the native event object
		event = jQuery.event.fix( event );

		var i, ret, handleObj, matched, j,
			handlerQueue = [],
			args = slice.call( arguments ),
			handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [],
			special = jQuery.event.special[ event.type ] || {};

		// Use the fix-ed jQuery.Event rather than the (read-only) native event
		args[0] = event;
		event.delegateTarget = this;

		// Call the preDispatch hook for the mapped type, and let it bail if desired
		if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
			return;
		}

		// Determine handlers
		handlerQueue = jQuery.event.handlers.call( this, event, handlers );

		// Run delegates first; they may want to stop propagation beneath us
		i = 0;
		while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) {
			event.currentTarget = matched.elem;

			j = 0;
			while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) {

				// Triggered event must either 1) have no namespace, or
				// 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
				if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) {

					event.handleObj = handleObj;
					event.data = handleObj.data;

					ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
							.apply( matched.elem, args );

					if ( ret !== undefined ) {
						if ( (event.result = ret) === false ) {
							event.preventDefault();
							event.stopPropagation();
						}
					}
				}
			}
		}

		// Call the postDispatch hook for the mapped type
		if ( special.postDispatch ) {
			special.postDispatch.call( this, event );
		}

		return event.result;
	},

	handlers: function( event, handlers ) {
		var sel, handleObj, matches, i,
			handlerQueue = [],
			delegateCount = handlers.delegateCount,
			cur = event.target;

		// Find delegate handlers
		// Black-hole SVG <use> instance trees (#13180)
		// Avoid non-left-click bubbling in Firefox (#3861)
		if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {

			/* jshint eqeqeq: false */
			for ( ; cur != this; cur = cur.parentNode || this ) {
				/* jshint eqeqeq: true */

				// Don't check non-elements (#13208)
				// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
				if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) {
					matches = [];
					for ( i = 0; i < delegateCount; i++ ) {
						handleObj = handlers[ i ];

						// Don't conflict with Object.prototype properties (#13203)
						sel = handleObj.selector + " ";

						if ( matches[ sel ] === undefined ) {
							matches[ sel ] = handleObj.needsContext ?
								jQuery( sel, this ).index( cur ) >= 0 :
								jQuery.find( sel, this, null, [ cur ] ).length;
						}
						if ( matches[ sel ] ) {
							matches.push( handleObj );
						}
					}
					if ( matches.length ) {
						handlerQueue.push({ elem: cur, handlers: matches });
					}
				}
			}
		}

		// Add the remaining (directly-bound) handlers
		if ( delegateCount < handlers.length ) {
			handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) });
		}

		return handlerQueue;
	},

	fix: function( event ) {
		if ( event[ jQuery.expando ] ) {
			return event;
		}

		// Create a writable copy of the event object and normalize some properties
		var i, prop, copy,
			type = event.type,
			originalEvent = event,
			fixHook = this.fixHooks[ type ];

		if ( !fixHook ) {
			this.fixHooks[ type ] = fixHook =
				rmouseEvent.test( type ) ? this.mouseHooks :
				rkeyEvent.test( type ) ? this.keyHooks :
				{};
		}
		copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;

		event = new jQuery.Event( originalEvent );

		i = copy.length;
		while ( i-- ) {
			prop = copy[ i ];
			event[ prop ] = originalEvent[ prop ];
		}

		// Support: IE<9
		// Fix target property (#1925)
		if ( !event.target ) {
			event.target = originalEvent.srcElement || document;
		}

		// Support: Chrome 23+, Safari?
		// Target should not be a text node (#504, #13143)
		if ( event.target.nodeType === 3 ) {
			event.target = event.target.parentNode;
		}

		// Support: IE<9
		// For mouse/key events, metaKey==false if it's undefined (#3368, #11328)
		event.metaKey = !!event.metaKey;

		return fixHook.filter ? fixHook.filter( event, originalEvent ) : event;
	},

	// Includes some event props shared by KeyEvent and MouseEvent
	props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),

	fixHooks: {},

	keyHooks: {
		props: "char charCode key keyCode".split(" "),
		filter: function( event, original ) {

			// Add which for key events
			if ( event.which == null ) {
				event.which = original.charCode != null ? original.charCode : original.keyCode;
			}

			return event;
		}
	},

	mouseHooks: {
		props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
		filter: function( event, original ) {
			var body, eventDoc, doc,
				button = original.button,
				fromElement = original.fromElement;

			// Calculate pageX/Y if missing and clientX/Y available
			if ( event.pageX == null && original.clientX != null ) {
				eventDoc = event.target.ownerDocument || document;
				doc = eventDoc.documentElement;
				body = eventDoc.body;

				event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
				event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
			}

			// Add relatedTarget, if necessary
			if ( !event.relatedTarget && fromElement ) {
				event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
			}

			// Add which for click: 1 === left; 2 === middle; 3 === right
			// Note: button is not normalized, so don't use it
			if ( !event.which && button !== undefined ) {
				event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
			}

			return event;
		}
	},

	special: {
		load: {
			// Prevent triggered image.load events from bubbling to window.load
			noBubble: true
		},
		focus: {
			// Fire native event if possible so blur/focus sequence is correct
			trigger: function() {
				if ( this !== safeActiveElement() && this.focus ) {
					try {
						this.focus();
						return false;
					} catch ( e ) {
						// Support: IE<9
						// If we error on focus to hidden element (#1486, #12518),
						// let .trigger() run the handlers
					}
				}
			},
			delegateType: "focusin"
		},
		blur: {
			trigger: function() {
				if ( this === safeActiveElement() && this.blur ) {
					this.blur();
					return false;
				}
			},
			delegateType: "focusout"
		},
		click: {
			// For checkbox, fire native event so checked state will be right
			trigger: function() {
				if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) {
					this.click();
					return false;
				}
			},

			// For cross-browser consistency, don't fire native .click() on links
			_default: function( event ) {
				return jQuery.nodeName( event.target, "a" );
			}
		},

		beforeunload: {
			postDispatch: function( event ) {

				// Support: Firefox 20+
				// Firefox doesn't alert if the returnValue field is not set.
				if ( event.result !== undefined && event.originalEvent ) {
					event.originalEvent.returnValue = event.result;
				}
			}
		}
	},

	simulate: function( type, elem, event, bubble ) {
		// Piggyback on a donor event to simulate a different one.
		// Fake originalEvent to avoid donor's stopPropagation, but if the
		// simulated event prevents default then we do the same on the donor.
		var e = jQuery.extend(
			new jQuery.Event(),
			event,
			{
				type: type,
				isSimulated: true,
				originalEvent: {}
			}
		);
		if ( bubble ) {
			jQuery.event.trigger( e, null, elem );
		} else {
			jQuery.event.dispatch.call( elem, e );
		}
		if ( e.isDefaultPrevented() ) {
			event.preventDefault();
		}
	}
};

jQuery.removeEvent = document.removeEventListener ?
	function( elem, type, handle ) {
		if ( elem.removeEventListener ) {
			elem.removeEventListener( type, handle, false );
		}
	} :
	function( elem, type, handle ) {
		var name = "on" + type;

		if ( elem.detachEvent ) {

			// #8545, #7054, preventing memory leaks for custom events in IE6-8
			// detachEvent needed property on element, by name of that event, to properly expose it to GC
			if ( typeof elem[ name ] === strundefined ) {
				elem[ name ] = null;
			}

			elem.detachEvent( name, handle );
		}
	};

jQuery.Event = function( src, props ) {
	// Allow instantiation without the 'new' keyword
	if ( !(this instanceof jQuery.Event) ) {
		return new jQuery.Event( src, props );
	}

	// Event object
	if ( src && src.type ) {
		this.originalEvent = src;
		this.type = src.type;

		// Events bubbling up the document may have been marked as prevented
		// by a handler lower down the tree; reflect the correct value.
		this.isDefaultPrevented = src.defaultPrevented ||
				src.defaultPrevented === undefined &&
				// Support: IE < 9, Android < 4.0
				src.returnValue === false ?
			returnTrue :
			returnFalse;

	// Event type
	} else {
		this.type = src;
	}

	// Put explicitly provided properties onto the event object
	if ( props ) {
		jQuery.extend( this, props );
	}

	// Create a timestamp if incoming event doesn't have one
	this.timeStamp = src && src.timeStamp || jQuery.now();

	// Mark it as fixed
	this[ jQuery.expando ] = true;
};

// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
jQuery.Event.prototype = {
	isDefaultPrevented: returnFalse,
	isPropagationStopped: returnFalse,
	isImmediatePropagationStopped: returnFalse,

	preventDefault: function() {
		var e = this.originalEvent;

		this.isDefaultPrevented = returnTrue;
		if ( !e ) {
			return;
		}

		// If preventDefault exists, run it on the original event
		if ( e.preventDefault ) {
			e.preventDefault();

		// Support: IE
		// Otherwise set the returnValue property of the original event to false
		} else {
			e.returnValue = false;
		}
	},
	stopPropagation: function() {
		var e = this.originalEvent;

		this.isPropagationStopped = returnTrue;
		if ( !e ) {
			return;
		}
		// If stopPropagation exists, run it on the original event
		if ( e.stopPropagation ) {
			e.stopPropagation();
		}

		// Support: IE
		// Set the cancelBubble property of the original event to true
		e.cancelBubble = true;
	},
	stopImmediatePropagation: function() {
		var e = this.originalEvent;

		this.isImmediatePropagationStopped = returnTrue;

		if ( e && e.stopImmediatePropagation ) {
			e.stopImmediatePropagation();
		}

		this.stopPropagation();
	}
};

// Create mouseenter/leave events using mouseover/out and event-time checks
jQuery.each({
	mouseenter: "mouseover",
	mouseleave: "mouseout",
	pointerenter: "pointerover",
	pointerleave: "pointerout"
}, function( orig, fix ) {
	jQuery.event.special[ orig ] = {
		delegateType: fix,
		bindType: fix,

		handle: function( event ) {
			var ret,
				target = this,
				related = event.relatedTarget,
				handleObj = event.handleObj;

			// For mousenter/leave call the handler if related is outside the target.
			// NB: No relatedTarget if the mouse left/entered the browser window
			if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
				event.type = handleObj.origType;
				ret = handleObj.handler.apply( this, arguments );
				event.type = fix;
			}
			return ret;
		}
	};
});

// IE submit delegation
if ( !support.submitBubbles ) {

	jQuery.event.special.submit = {
		setup: function() {
			// Only need this for delegated form submit events
			if ( jQuery.nodeName( this, "form" ) ) {
				return false;
			}

			// Lazy-add a submit handler when a descendant form may potentially be submitted
			jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
				// Node name check avoids a VML-related crash in IE (#9807)
				var elem = e.target,
					form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
				if ( form && !jQuery._data( form, "submitBubbles" ) ) {
					jQuery.event.add( form, "submit._submit", function( event ) {
						event._submit_bubble = true;
					});
					jQuery._data( form, "submitBubbles", true );
				}
			});
			// return undefined since we don't need an event listener
		},

		postDispatch: function( event ) {
			// If form was submitted by the user, bubble the event up the tree
			if ( event._submit_bubble ) {
				delete event._submit_bubble;
				if ( this.parentNode && !event.isTrigger ) {
					jQuery.event.simulate( "submit", this.parentNode, event, true );
				}
			}
		},

		teardown: function() {
			// Only need this for delegated form submit events
			if ( jQuery.nodeName( this, "form" ) ) {
				return false;
			}

			// Remove delegated handlers; cleanData eventually reaps submit handlers attached above
			jQuery.event.remove( this, "._submit" );
		}
	};
}

// IE change delegation and checkbox/radio fix
if ( !support.changeBubbles ) {

	jQuery.event.special.change = {

		setup: function() {

			if ( rformElems.test( this.nodeName ) ) {
				// IE doesn't fire change on a check/radio until blur; trigger it on click
				// after a propertychange. Eat the blur-change in special.change.handle.
				// This still fires onchange a second time for check/radio after blur.
				if ( this.type === "checkbox" || this.type === "radio" ) {
					jQuery.event.add( this, "propertychange._change", function( event ) {
						if ( event.originalEvent.propertyName === "checked" ) {
							this._just_changed = true;
						}
					});
					jQuery.event.add( this, "click._change", function( event ) {
						if ( this._just_changed && !event.isTrigger ) {
							this._just_changed = false;
						}
						// Allow triggered, simulated change events (#11500)
						jQuery.event.simulate( "change", this, event, true );
					});
				}
				return false;
			}
			// Delegated event; lazy-add a change handler on descendant inputs
			jQuery.event.add( this, "beforeactivate._change", function( e ) {
				var elem = e.target;

				if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) {
					jQuery.event.add( elem, "change._change", function( event ) {
						if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
							jQuery.event.simulate( "change", this.parentNode, event, true );
						}
					});
					jQuery._data( elem, "changeBubbles", true );
				}
			});
		},

		handle: function( event ) {
			var elem = event.target;

			// Swallow native change events from checkbox/radio, we already triggered them above
			if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
				return event.handleObj.handler.apply( this, arguments );
			}
		},

		teardown: function() {
			jQuery.event.remove( this, "._change" );

			return !rformElems.test( this.nodeName );
		}
	};
}

// Create "bubbling" focus and blur events
if ( !support.focusinBubbles ) {
	jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {

		// Attach a single capturing handler on the document while someone wants focusin/focusout
		var handler = function( event ) {
				jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
			};

		jQuery.event.special[ fix ] = {
			setup: function() {
				var doc = this.ownerDocument || this,
					attaches = jQuery._data( doc, fix );

				if ( !attaches ) {
					doc.addEventListener( orig, handler, true );
				}
				jQuery._data( doc, fix, ( attaches || 0 ) + 1 );
			},
			teardown: function() {
				var doc = this.ownerDocument || this,
					attaches = jQuery._data( doc, fix ) - 1;

				if ( !attaches ) {
					doc.removeEventListener( orig, handler, true );
					jQuery._removeData( doc, fix );
				} else {
					jQuery._data( doc, fix, attaches );
				}
			}
		};
	});
}

jQuery.fn.extend({

	on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
		var type, origFn;

		// Types can be a map of types/handlers
		if ( typeof types === "object" ) {
			// ( types-Object, selector, data )
			if ( typeof selector !== "string" ) {
				// ( types-Object, data )
				data = data || selector;
				selector = undefined;
			}
			for ( type in types ) {
				this.on( type, selector, data, types[ type ], one );
			}
			return this;
		}

		if ( data == null && fn == null ) {
			// ( types, fn )
			fn = selector;
			data = selector = undefined;
		} else if ( fn == null ) {
			if ( typeof selector === "string" ) {
				// ( types, selector, fn )
				fn = data;
				data = undefined;
			} else {
				// ( types, data, fn )
				fn = data;
				data = selector;
				selector = undefined;
			}
		}
		if ( fn === false ) {
			fn = returnFalse;
		} else if ( !fn ) {
			return this;
		}

		if ( one === 1 ) {
			origFn = fn;
			fn = function( event ) {
				// Can use an empty set, since event contains the info
				jQuery().off( event );
				return origFn.apply( this, arguments );
			};
			// Use same guid so caller can remove using origFn
			fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
		}
		return this.each( function() {
			jQuery.event.add( this, types, fn, data, selector );
		});
	},
	one: function( types, selector, data, fn ) {
		return this.on( types, selector, data, fn, 1 );
	},
	off: function( types, selector, fn ) {
		var handleObj, type;
		if ( types && types.preventDefault && types.handleObj ) {
			// ( event )  dispatched jQuery.Event
			handleObj = types.handleObj;
			jQuery( types.delegateTarget ).off(
				handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
				handleObj.selector,
				handleObj.handler
			);
			return this;
		}
		if ( typeof types === "object" ) {
			// ( types-object [, selector] )
			for ( type in types ) {
				this.off( type, selector, types[ type ] );
			}
			return this;
		}
		if ( selector === false || typeof selector === "function" ) {
			// ( types [, fn] )
			fn = selector;
			selector = undefined;
		}
		if ( fn === false ) {
			fn = returnFalse;
		}
		return this.each(function() {
			jQuery.event.remove( this, types, fn, selector );
		});
	},

	trigger: function( type, data ) {
		return this.each(function() {
			jQuery.event.trigger( type, data, this );
		});
	},
	triggerHandler: function( type, data ) {
		var elem = this[0];
		if ( elem ) {
			return jQuery.event.trigger( type, data, elem, true );
		}
	}
});


function createSafeFragment( document ) {
	var list = nodeNames.split( "|" ),
		safeFrag = document.createDocumentFragment();

	if ( safeFrag.createElement ) {
		while ( list.length ) {
			safeFrag.createElement(
				list.pop()
			);
		}
	}
	return safeFrag;
}

var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +
		"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
	rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g,
	rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),
	rleadingWhitespace = /^\s+/,
	rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
	rtagName = /<([\w:]+)/,
	rtbody = /<tbody/i,
	rhtml = /<|&#?\w+;/,
	rnoInnerhtml = /<(?:script|style|link)/i,
	// checked="checked" or checked
	rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
	rscriptType = /^$|\/(?:java|ecma)script/i,
	rscriptTypeMasked = /^true\/(.*)/,
	rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,

	// We have to close these tags to support XHTML (#13200)
	wrapMap = {
		option: [ 1, "<select multiple='multiple'>", "</select>" ],
		legend: [ 1, "<fieldset>", "</fieldset>" ],
		area: [ 1, "<map>", "</map>" ],
		param: [ 1, "<object>", "</object>" ],
		thead: [ 1, "<table>", "</table>" ],
		tr: [ 2, "<table><tbody>", "</tbody></table>" ],
		col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
		td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],

		// IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,
		// unless wrapped in a div with non-breaking characters in front of it.
		_default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X<div>", "</div>"  ]
	},
	safeFragment = createSafeFragment( document ),
	fragmentDiv = safeFragment.appendChild( document.createElement("div") );

wrapMap.optgroup = wrapMap.option;
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
wrapMap.th = wrapMap.td;

function getAll( context, tag ) {
	var elems, elem,
		i = 0,
		found = typeof context.getElementsByTagName !== strundefined ? context.getElementsByTagName( tag || "*" ) :
			typeof context.querySelectorAll !== strundefined ? context.querySelectorAll( tag || "*" ) :
			undefined;

	if ( !found ) {
		for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) {
			if ( !tag || jQuery.nodeName( elem, tag ) ) {
				found.push( elem );
			} else {
				jQuery.merge( found, getAll( elem, tag ) );
			}
		}
	}

	return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
		jQuery.merge( [ context ], found ) :
		found;
}

// Used in buildFragment, fixes the defaultChecked property
function fixDefaultChecked( elem ) {
	if ( rcheckableType.test( elem.type ) ) {
		elem.defaultChecked = elem.checked;
	}
}

// Support: IE<8
// Manipulating tables requires a tbody
function manipulationTarget( elem, content ) {
	return jQuery.nodeName( elem, "table" ) &&
		jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?

		elem.getElementsByTagName("tbody")[0] ||
			elem.appendChild( elem.ownerDocument.createElement("tbody") ) :
		elem;
}

// Replace/restore the type attribute of script elements for safe DOM manipulation
function disableScript( elem ) {
	elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type;
	return elem;
}
function restoreScript( elem ) {
	var match = rscriptTypeMasked.exec( elem.type );
	if ( match ) {
		elem.type = match[1];
	} else {
		elem.removeAttribute("type");
	}
	return elem;
}

// Mark scripts as having already been evaluated
function setGlobalEval( elems, refElements ) {
	var elem,
		i = 0;
	for ( ; (elem = elems[i]) != null; i++ ) {
		jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) );
	}
}

function cloneCopyEvent( src, dest ) {

	if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
		return;
	}

	var type, i, l,
		oldData = jQuery._data( src ),
		curData = jQuery._data( dest, oldData ),
		events = oldData.events;

	if ( events ) {
		delete curData.handle;
		curData.events = {};

		for ( type in events ) {
			for ( i = 0, l = events[ type ].length; i < l; i++ ) {
				jQuery.event.add( dest, type, events[ type ][ i ] );
			}
		}
	}

	// make the cloned public data object a copy from the original
	if ( curData.data ) {
		curData.data = jQuery.extend( {}, curData.data );
	}
}

function fixCloneNodeIssues( src, dest ) {
	var nodeName, e, data;

	// We do not need to do anything for non-Elements
	if ( dest.nodeType !== 1 ) {
		return;
	}

	nodeName = dest.nodeName.toLowerCase();

	// IE6-8 copies events bound via attachEvent when using cloneNode.
	if ( !support.noCloneEvent && dest[ jQuery.expando ] ) {
		data = jQuery._data( dest );

		for ( e in data.events ) {
			jQuery.removeEvent( dest, e, data.handle );
		}

		// Event data gets referenced instead of copied if the expando gets copied too
		dest.removeAttribute( jQuery.expando );
	}

	// IE blanks contents when cloning scripts, and tries to evaluate newly-set text
	if ( nodeName === "script" && dest.text !== src.text ) {
		disableScript( dest ).text = src.text;
		restoreScript( dest );

	// IE6-10 improperly clones children of object elements using classid.
	// IE10 throws NoModificationAllowedError if parent is null, #12132.
	} else if ( nodeName === "object" ) {
		if ( dest.parentNode ) {
			dest.outerHTML = src.outerHTML;
		}

		// This path appears unavoidable for IE9. When cloning an object
		// element in IE9, the outerHTML strategy above is not sufficient.
		// If the src has innerHTML and the destination does not,
		// copy the src.innerHTML into the dest.innerHTML. #10324
		if ( support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) {
			dest.innerHTML = src.innerHTML;
		}

	} else if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
		// IE6-8 fails to persist the checked state of a cloned checkbox
		// or radio button. Worse, IE6-7 fail to give the cloned element
		// a checked appearance if the defaultChecked value isn't also set

		dest.defaultChecked = dest.checked = src.checked;

		// IE6-7 get confused and end up setting the value of a cloned
		// checkbox/radio button to an empty string instead of "on"
		if ( dest.value !== src.value ) {
			dest.value = src.value;
		}

	// IE6-8 fails to return the selected option to the default selected
	// state when cloning options
	} else if ( nodeName === "option" ) {
		dest.defaultSelected = dest.selected = src.defaultSelected;

	// IE6-8 fails to set the defaultValue to the correct value when
	// cloning other types of input fields
	} else if ( nodeName === "input" || nodeName === "textarea" ) {
		dest.defaultValue = src.defaultValue;
	}
}

jQuery.extend({
	clone: function( elem, dataAndEvents, deepDataAndEvents ) {
		var destElements, node, clone, i, srcElements,
			inPage = jQuery.contains( elem.ownerDocument, elem );

		if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
			clone = elem.cloneNode( true );

		// IE<=8 does not properly clone detached, unknown element nodes
		} else {
			fragmentDiv.innerHTML = elem.outerHTML;
			fragmentDiv.removeChild( clone = fragmentDiv.firstChild );
		}

		if ( (!support.noCloneEvent || !support.noCloneChecked) &&
				(elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {

			// We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
			destElements = getAll( clone );
			srcElements = getAll( elem );

			// Fix all IE cloning issues
			for ( i = 0; (node = srcElements[i]) != null; ++i ) {
				// Ensure that the destination node is not null; Fixes #9587
				if ( destElements[i] ) {
					fixCloneNodeIssues( node, destElements[i] );
				}
			}
		}

		// Copy the events from the original to the clone
		if ( dataAndEvents ) {
			if ( deepDataAndEvents ) {
				srcElements = srcElements || getAll( elem );
				destElements = destElements || getAll( clone );

				for ( i = 0; (node = srcElements[i]) != null; i++ ) {
					cloneCopyEvent( node, destElements[i] );
				}
			} else {
				cloneCopyEvent( elem, clone );
			}
		}

		// Preserve script evaluation history
		destElements = getAll( clone, "script" );
		if ( destElements.length > 0 ) {
			setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
		}

		destElements = srcElements = node = null;

		// Return the cloned set
		return clone;
	},

	buildFragment: function( elems, context, scripts, selection ) {
		var j, elem, contains,
			tmp, tag, tbody, wrap,
			l = elems.length,

			// Ensure a safe fragment
			safe = createSafeFragment( context ),

			nodes = [],
			i = 0;

		for ( ; i < l; i++ ) {
			elem = elems[ i ];

			if ( elem || elem === 0 ) {

				// Add nodes directly
				if ( jQuery.type( elem ) === "object" ) {
					jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );

				// Convert non-html into a text node
				} else if ( !rhtml.test( elem ) ) {
					nodes.push( context.createTextNode( elem ) );

				// Convert html into DOM nodes
				} else {
					tmp = tmp || safe.appendChild( context.createElement("div") );

					// Deserialize a standard representation
					tag = (rtagName.exec( elem ) || [ "", "" ])[ 1 ].toLowerCase();
					wrap = wrapMap[ tag ] || wrapMap._default;

					tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1></$2>" ) + wrap[2];

					// Descend through wrappers to the right content
					j = wrap[0];
					while ( j-- ) {
						tmp = tmp.lastChild;
					}

					// Manually add leading whitespace removed by IE
					if ( !support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
						nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) );
					}

					// Remove IE's autoinserted <tbody> from table fragments
					if ( !support.tbody ) {

						// String was a <table>, *may* have spurious <tbody>
						elem = tag === "table" && !rtbody.test( elem ) ?
							tmp.firstChild :

							// String was a bare <thead> or <tfoot>
							wrap[1] === "<table>" && !rtbody.test( elem ) ?
								tmp :
								0;

						j = elem && elem.childNodes.length;
						while ( j-- ) {
							if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) {
								elem.removeChild( tbody );
							}
						}
					}

					jQuery.merge( nodes, tmp.childNodes );

					// Fix #12392 for WebKit and IE > 9
					tmp.textContent = "";

					// Fix #12392 for oldIE
					while ( tmp.firstChild ) {
						tmp.removeChild( tmp.firstChild );
					}

					// Remember the top-level container for proper cleanup
					tmp = safe.lastChild;
				}
			}
		}

		// Fix #11356: Clear elements from fragment
		if ( tmp ) {
			safe.removeChild( tmp );
		}

		// Reset defaultChecked for any radios and checkboxes
		// about to be appended to the DOM in IE 6/7 (#8060)
		if ( !support.appendChecked ) {
			jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked );
		}

		i = 0;
		while ( (elem = nodes[ i++ ]) ) {

			// #4087 - If origin and destination elements are the same, and this is
			// that element, do not do anything
			if ( selection && jQuery.inArray( elem, selection ) !== -1 ) {
				continue;
			}

			contains = jQuery.contains( elem.ownerDocument, elem );

			// Append to fragment
			tmp = getAll( safe.appendChild( elem ), "script" );

			// Preserve script evaluation history
			if ( contains ) {
				setGlobalEval( tmp );
			}

			// Capture executables
			if ( scripts ) {
				j = 0;
				while ( (elem = tmp[ j++ ]) ) {
					if ( rscriptType.test( elem.type || "" ) ) {
						scripts.push( elem );
					}
				}
			}
		}

		tmp = null;

		return safe;
	},

	cleanData: function( elems, /* internal */ acceptData ) {
		var elem, type, id, data,
			i = 0,
			internalKey = jQuery.expando,
			cache = jQuery.cache,
			deleteExpando = support.deleteExpando,
			special = jQuery.event.special;

		for ( ; (elem = elems[i]) != null; i++ ) {
			if ( acceptData || jQuery.acceptData( elem ) ) {

				id = elem[ internalKey ];
				data = id && cache[ id ];

				if ( data ) {
					if ( data.events ) {
						for ( type in data.events ) {
							if ( special[ type ] ) {
								jQuery.event.remove( elem, type );

							// This is a shortcut to avoid jQuery.event.remove's overhead
							} else {
								jQuery.removeEvent( elem, type, data.handle );
							}
						}
					}

					// Remove cache only if it was not already removed by jQuery.event.remove
					if ( cache[ id ] ) {

						delete cache[ id ];

						// IE does not allow us to delete expando properties from nodes,
						// nor does it have a removeAttribute function on Document nodes;
						// we must handle all of these cases
						if ( deleteExpando ) {
							delete elem[ internalKey ];

						} else if ( typeof elem.removeAttribute !== strundefined ) {
							elem.removeAttribute( internalKey );

						} else {
							elem[ internalKey ] = null;
						}

						deletedIds.push( id );
					}
				}
			}
		}
	}
});

jQuery.fn.extend({
	text: function( value ) {
		return access( this, function( value ) {
			return value === undefined ?
				jQuery.text( this ) :
				this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );
		}, null, value, arguments.length );
	},

	append: function() {
		return this.domManip( arguments, function( elem ) {
			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
				var target = manipulationTarget( this, elem );
				target.appendChild( elem );
			}
		});
	},

	prepend: function() {
		return this.domManip( arguments, function( elem ) {
			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
				var target = manipulationTarget( this, elem );
				target.insertBefore( elem, target.firstChild );
			}
		});
	},

	before: function() {
		return this.domManip( arguments, function( elem ) {
			if ( this.parentNode ) {
				this.parentNode.insertBefore( elem, this );
			}
		});
	},

	after: function() {
		return this.domManip( arguments, function( elem ) {
			if ( this.parentNode ) {
				this.parentNode.insertBefore( elem, this.nextSibling );
			}
		});
	},

	remove: function( selector, keepData /* Internal Use Only */ ) {
		var elem,
			elems = selector ? jQuery.filter( selector, this ) : this,
			i = 0;

		for ( ; (elem = elems[i]) != null; i++ ) {

			if ( !keepData && elem.nodeType === 1 ) {
				jQuery.cleanData( getAll( elem ) );
			}

			if ( elem.parentNode ) {
				if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {
					setGlobalEval( getAll( elem, "script" ) );
				}
				elem.parentNode.removeChild( elem );
			}
		}

		return this;
	},

	empty: function() {
		var elem,
			i = 0;

		for ( ; (elem = this[i]) != null; i++ ) {
			// Remove element nodes and prevent memory leaks
			if ( elem.nodeType === 1 ) {
				jQuery.cleanData( getAll( elem, false ) );
			}

			// Remove any remaining nodes
			while ( elem.firstChild ) {
				elem.removeChild( elem.firstChild );
			}

			// If this is a select, ensure that it displays empty (#12336)
			// Support: IE<9
			if ( elem.options && jQuery.nodeName( elem, "select" ) ) {
				elem.options.length = 0;
			}
		}

		return this;
	},

	clone: function( dataAndEvents, deepDataAndEvents ) {
		dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
		deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;

		return this.map(function() {
			return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
		});
	},

	html: function( value ) {
		return access( this, function( value ) {
			var elem = this[ 0 ] || {},
				i = 0,
				l = this.length;

			if ( value === undefined ) {
				return elem.nodeType === 1 ?
					elem.innerHTML.replace( rinlinejQuery, "" ) :
					undefined;
			}

			// See if we can take a shortcut and just use innerHTML
			if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
				( support.htmlSerialize || !rnoshimcache.test( value )  ) &&
				( support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
				!wrapMap[ (rtagName.exec( value ) || [ "", "" ])[ 1 ].toLowerCase() ] ) {

				value = value.replace( rxhtmlTag, "<$1></$2>" );

				try {
					for (; i < l; i++ ) {
						// Remove element nodes and prevent memory leaks
						elem = this[i] || {};
						if ( elem.nodeType === 1 ) {
							jQuery.cleanData( getAll( elem, false ) );
							elem.innerHTML = value;
						}
					}

					elem = 0;

				// If using innerHTML throws an exception, use the fallback method
				} catch(e) {}
			}

			if ( elem ) {
				this.empty().append( value );
			}
		}, null, value, arguments.length );
	},

	replaceWith: function() {
		var arg = arguments[ 0 ];

		// Make the changes, replacing each context element with the new content
		this.domManip( arguments, function( elem ) {
			arg = this.parentNode;

			jQuery.cleanData( getAll( this ) );

			if ( arg ) {
				arg.replaceChild( elem, this );
			}
		});

		// Force removal if there was no new content (e.g., from empty arguments)
		return arg && (arg.length || arg.nodeType) ? this : this.remove();
	},

	detach: function( selector ) {
		return this.remove( selector, true );
	},

	domManip: function( args, callback ) {

		// Flatten any nested arrays
		args = concat.apply( [], args );

		var first, node, hasScripts,
			scripts, doc, fragment,
			i = 0,
			l = this.length,
			set = this,
			iNoClone = l - 1,
			value = args[0],
			isFunction = jQuery.isFunction( value );

		// We can't cloneNode fragments that contain checked, in WebKit
		if ( isFunction ||
				( l > 1 && typeof value === "string" &&
					!support.checkClone && rchecked.test( value ) ) ) {
			return this.each(function( index ) {
				var self = set.eq( index );
				if ( isFunction ) {
					args[0] = value.call( this, index, self.html() );
				}
				self.domManip( args, callback );
			});
		}

		if ( l ) {
			fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this );
			first = fragment.firstChild;

			if ( fragment.childNodes.length === 1 ) {
				fragment = first;
			}

			if ( first ) {
				scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
				hasScripts = scripts.length;

				// Use the original fragment for the last item instead of the first because it can end up
				// being emptied incorrectly in certain situations (#8070).
				for ( ; i < l; i++ ) {
					node = fragment;

					if ( i !== iNoClone ) {
						node = jQuery.clone( node, true, true );

						// Keep references to cloned scripts for later restoration
						if ( hasScripts ) {
							jQuery.merge( scripts, getAll( node, "script" ) );
						}
					}

					callback.call( this[i], node, i );
				}

				if ( hasScripts ) {
					doc = scripts[ scripts.length - 1 ].ownerDocument;

					// Reenable scripts
					jQuery.map( scripts, restoreScript );

					// Evaluate executable scripts on first document insertion
					for ( i = 0; i < hasScripts; i++ ) {
						node = scripts[ i ];
						if ( rscriptType.test( node.type || "" ) &&
							!jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) {

							if ( node.src ) {
								// Optional AJAX dependency, but won't run scripts if not present
								if ( jQuery._evalUrl ) {
									jQuery._evalUrl( node.src );
								}
							} else {
								jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) );
							}
						}
					}
				}

				// Fix #11809: Avoid leaking memory
				fragment = first = null;
			}
		}

		return this;
	}
});

jQuery.each({
	appendTo: "append",
	prependTo: "prepend",
	insertBefore: "before",
	insertAfter: "after",
	replaceAll: "replaceWith"
}, function( name, original ) {
	jQuery.fn[ name ] = function( selector ) {
		var elems,
			i = 0,
			ret = [],
			insert = jQuery( selector ),
			last = insert.length - 1;

		for ( ; i <= last; i++ ) {
			elems = i === last ? this : this.clone(true);
			jQuery( insert[i] )[ original ]( elems );

			// Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()
			push.apply( ret, elems.get() );
		}

		return this.pushStack( ret );
	};
});


var iframe,
	elemdisplay = {};

/**
 * Retrieve the actual display of a element
 * @param {String} name nodeName of the element
 * @param {Object} doc Document object
 */
// Called only from within defaultDisplay
function actualDisplay( name, doc ) {
	var style,
		elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),

		// getDefaultComputedStyle might be reliably used only on attached element
		display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ?

			// Use of this method is a temporary fix (more like optmization) until something better comes along,
			// since it was removed from specification and supported only in FF
			style.display : jQuery.css( elem[ 0 ], "display" );

	// We don't have any data stored on the element,
	// so use "detach" method as fast way to get rid of the element
	elem.detach();

	return display;
}

/**
 * Try to determine the default display value of an element
 * @param {String} nodeName
 */
function defaultDisplay( nodeName ) {
	var doc = document,
		display = elemdisplay[ nodeName ];

	if ( !display ) {
		display = actualDisplay( nodeName, doc );

		// If the simple way fails, read from inside an iframe
		if ( display === "none" || !display ) {

			// Use the already-created iframe if possible
			iframe = (iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" )).appendTo( doc.documentElement );

			// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
			doc = ( iframe[ 0 ].contentWindow || iframe[ 0 ].contentDocument ).document;

			// Support: IE
			doc.write();
			doc.close();

			display = actualDisplay( nodeName, doc );
			iframe.detach();
		}

		// Store the correct default display
		elemdisplay[ nodeName ] = display;
	}

	return display;
}


(function() {
	var shrinkWrapBlocksVal;

	support.shrinkWrapBlocks = function() {
		if ( shrinkWrapBlocksVal != null ) {
			return shrinkWrapBlocksVal;
		}

		// Will be changed later if needed.
		shrinkWrapBlocksVal = false;

		// Minified: var b,c,d
		var div, body, container;

		body = document.getElementsByTagName( "body" )[ 0 ];
		if ( !body || !body.style ) {
			// Test fired too early or in an unsupported environment, exit.
			return;
		}

		// Setup
		div = document.createElement( "div" );
		container = document.createElement( "div" );
		container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
		body.appendChild( container ).appendChild( div );

		// Support: IE6
		// Check if elements with layout shrink-wrap their children
		if ( typeof div.style.zoom !== strundefined ) {
			// Reset CSS: box-sizing; display; margin; border
			div.style.cssText =
				// Support: Firefox<29, Android 2.3
				// Vendor-prefix box-sizing
				"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +
				"box-sizing:content-box;display:block;margin:0;border:0;" +
				"padding:1px;width:1px;zoom:1";
			div.appendChild( document.createElement( "div" ) ).style.width = "5px";
			shrinkWrapBlocksVal = div.offsetWidth !== 3;
		}

		body.removeChild( container );

		return shrinkWrapBlocksVal;
	};

})();
var rmargin = (/^margin/);

var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );



var getStyles, curCSS,
	rposition = /^(top|right|bottom|left)$/;

if ( window.getComputedStyle ) {
	getStyles = function( elem ) {
		// Support: IE<=11+, Firefox<=30+ (#15098, #14150)
		// IE throws on elements created in popups
		// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
		if ( elem.ownerDocument.defaultView.opener ) {
			return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
		}

		return window.getComputedStyle( elem, null );
	};

	curCSS = function( elem, name, computed ) {
		var width, minWidth, maxWidth, ret,
			style = elem.style;

		computed = computed || getStyles( elem );

		// getPropertyValue is only needed for .css('filter') in IE9, see #12537
		ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;

		if ( computed ) {

			if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
				ret = jQuery.style( elem, name );
			}

			// A tribute to the "awesome hack by Dean Edwards"
			// Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right
			// Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
			// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
			if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {

				// Remember the original values
				width = style.width;
				minWidth = style.minWidth;
				maxWidth = style.maxWidth;

				// Put in the new values to get a computed value out
				style.minWidth = style.maxWidth = style.width = ret;
				ret = computed.width;

				// Revert the changed values
				style.width = width;
				style.minWidth = minWidth;
				style.maxWidth = maxWidth;
			}
		}

		// Support: IE
		// IE returns zIndex value as an integer.
		return ret === undefined ?
			ret :
			ret + "";
	};
} else if ( document.documentElement.currentStyle ) {
	getStyles = function( elem ) {
		return elem.currentStyle;
	};

	curCSS = function( elem, name, computed ) {
		var left, rs, rsLeft, ret,
			style = elem.style;

		computed = computed || getStyles( elem );
		ret = computed ? computed[ name ] : undefined;

		// Avoid setting ret to empty string here
		// so we don't default to auto
		if ( ret == null && style && style[ name ] ) {
			ret = style[ name ];
		}

		// From the awesome hack by Dean Edwards
		// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291

		// If we're not dealing with a regular pixel number
		// but a number that has a weird ending, we need to convert it to pixels
		// but not position css attributes, as those are proportional to the parent element instead
		// and we can't measure the parent instead because it might trigger a "stacking dolls" problem
		if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) {

			// Remember the original values
			left = style.left;
			rs = elem.runtimeStyle;
			rsLeft = rs && rs.left;

			// Put in the new values to get a computed value out
			if ( rsLeft ) {
				rs.left = elem.currentStyle.left;
			}
			style.left = name === "fontSize" ? "1em" : ret;
			ret = style.pixelLeft + "px";

			// Revert the changed values
			style.left = left;
			if ( rsLeft ) {
				rs.left = rsLeft;
			}
		}

		// Support: IE
		// IE returns zIndex value as an integer.
		return ret === undefined ?
			ret :
			ret + "" || "auto";
	};
}




function addGetHookIf( conditionFn, hookFn ) {
	// Define the hook, we'll check on the first run if it's really needed.
	return {
		get: function() {
			var condition = conditionFn();

			if ( condition == null ) {
				// The test was not ready at this point; screw the hook this time
				// but check again when needed next time.
				return;
			}

			if ( condition ) {
				// Hook not needed (or it's not possible to use it due to missing dependency),
				// remove it.
				// Since there are no other hooks for marginRight, remove the whole object.
				delete this.get;
				return;
			}

			// Hook needed; redefine it so that the support test is not executed again.

			return (this.get = hookFn).apply( this, arguments );
		}
	};
}


(function() {
	// Minified: var b,c,d,e,f,g, h,i
	var div, style, a, pixelPositionVal, boxSizingReliableVal,
		reliableHiddenOffsetsVal, reliableMarginRightVal;

	// Setup
	div = document.createElement( "div" );
	div.innerHTML = "  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
	a = div.getElementsByTagName( "a" )[ 0 ];
	style = a && a.style;

	// Finish early in limited (non-browser) environments
	if ( !style ) {
		return;
	}

	style.cssText = "float:left;opacity:.5";

	// Support: IE<9
	// Make sure that element opacity exists (as opposed to filter)
	support.opacity = style.opacity === "0.5";

	// Verify style float existence
	// (IE uses styleFloat instead of cssFloat)
	support.cssFloat = !!style.cssFloat;

	div.style.backgroundClip = "content-box";
	div.cloneNode( true ).style.backgroundClip = "";
	support.clearCloneStyle = div.style.backgroundClip === "content-box";

	// Support: Firefox<29, Android 2.3
	// Vendor-prefix box-sizing
	support.boxSizing = style.boxSizing === "" || style.MozBoxSizing === "" ||
		style.WebkitBoxSizing === "";

	jQuery.extend(support, {
		reliableHiddenOffsets: function() {
			if ( reliableHiddenOffsetsVal == null ) {
				computeStyleTests();
			}
			return reliableHiddenOffsetsVal;
		},

		boxSizingReliable: function() {
			if ( boxSizingReliableVal == null ) {
				computeStyleTests();
			}
			return boxSizingReliableVal;
		},

		pixelPosition: function() {
			if ( pixelPositionVal == null ) {
				computeStyleTests();
			}
			return pixelPositionVal;
		},

		// Support: Android 2.3
		reliableMarginRight: function() {
			if ( reliableMarginRightVal == null ) {
				computeStyleTests();
			}
			return reliableMarginRightVal;
		}
	});

	function computeStyleTests() {
		// Minified: var b,c,d,j
		var div, body, container, contents;

		body = document.getElementsByTagName( "body" )[ 0 ];
		if ( !body || !body.style ) {
			// Test fired too early or in an unsupported environment, exit.
			return;
		}

		// Setup
		div = document.createElement( "div" );
		container = document.createElement( "div" );
		container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
		body.appendChild( container ).appendChild( div );

		div.style.cssText =
			// Support: Firefox<29, Android 2.3
			// Vendor-prefix box-sizing
			"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;" +
			"box-sizing:border-box;display:block;margin-top:1%;top:1%;" +
			"border:1px;padding:1px;width:4px;position:absolute";

		// Support: IE<9
		// Assume reasonable values in the absence of getComputedStyle
		pixelPositionVal = boxSizingReliableVal = false;
		reliableMarginRightVal = true;

		// Check for getComputedStyle so that this code is not run in IE<9.
		if ( window.getComputedStyle ) {
			pixelPositionVal = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";
			boxSizingReliableVal =
				( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px";

			// Support: Android 2.3
			// Div with explicit width and no margin-right incorrectly
			// gets computed margin-right based on width of container (#3333)
			// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
			contents = div.appendChild( document.createElement( "div" ) );

			// Reset CSS: box-sizing; display; margin; border; padding
			contents.style.cssText = div.style.cssText =
				// Support: Firefox<29, Android 2.3
				// Vendor-prefix box-sizing
				"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +
				"box-sizing:content-box;display:block;margin:0;border:0;padding:0";
			contents.style.marginRight = contents.style.width = "0";
			div.style.width = "1px";

			reliableMarginRightVal =
				!parseFloat( ( window.getComputedStyle( contents, null ) || {} ).marginRight );

			div.removeChild( contents );
		}

		// Support: IE8
		// Check if table cells still have offsetWidth/Height when they are set
		// to display:none and there are still other visible table cells in a
		// table row; if so, offsetWidth/Height are not reliable for use when
		// determining if an element has been hidden directly using
		// display:none (it is still safe to use offsets if a parent element is
		// hidden; don safety goggles and see bug #4512 for more information).
		div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>";
		contents = div.getElementsByTagName( "td" );
		contents[ 0 ].style.cssText = "margin:0;border:0;padding:0;display:none";
		reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0;
		if ( reliableHiddenOffsetsVal ) {
			contents[ 0 ].style.display = "";
			contents[ 1 ].style.display = "none";
			reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0;
		}

		body.removeChild( container );
	}

})();


// A method for quickly swapping in/out CSS properties to get correct calculations.
jQuery.swap = function( elem, options, callback, args ) {
	var ret, name,
		old = {};

	// Remember the old values, and insert the new ones
	for ( name in options ) {
		old[ name ] = elem.style[ name ];
		elem.style[ name ] = options[ name ];
	}

	ret = callback.apply( elem, args || [] );

	// Revert the old values
	for ( name in options ) {
		elem.style[ name ] = old[ name ];
	}

	return ret;
};


var
		ralpha = /alpha\([^)]*\)/i,
	ropacity = /opacity\s*=\s*([^)]*)/,

	// swappable if display is none or starts with table except "table", "table-cell", or "table-caption"
	// see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
	rdisplayswap = /^(none|table(?!-c[ea]).+)/,
	rnumsplit = new RegExp( "^(" + pnum + ")(.*)$", "i" ),
	rrelNum = new RegExp( "^([+-])=(" + pnum + ")", "i" ),

	cssShow = { position: "absolute", visibility: "hidden", display: "block" },
	cssNormalTransform = {
		letterSpacing: "0",
		fontWeight: "400"
	},

	cssPrefixes = [ "Webkit", "O", "Moz", "ms" ];


// return a css property mapped to a potentially vendor prefixed property
function vendorPropName( style, name ) {

	// shortcut for names that are not vendor prefixed
	if ( name in style ) {
		return name;
	}

	// check for vendor prefixed names
	var capName = name.charAt(0).toUpperCase() + name.slice(1),
		origName = name,
		i = cssPrefixes.length;

	while ( i-- ) {
		name = cssPrefixes[ i ] + capName;
		if ( name in style ) {
			return name;
		}
	}

	return origName;
}

function showHide( elements, show ) {
	var display, elem, hidden,
		values = [],
		index = 0,
		length = elements.length;

	for ( ; index < length; index++ ) {
		elem = elements[ index ];
		if ( !elem.style ) {
			continue;
		}

		values[ index ] = jQuery._data( elem, "olddisplay" );
		display = elem.style.display;
		if ( show ) {
			// Reset the inline display of this element to learn if it is
			// being hidden by cascaded rules or not
			if ( !values[ index ] && display === "none" ) {
				elem.style.display = "";
			}

			// Set elements which have been overridden with display: none
			// in a stylesheet to whatever the default browser style is
			// for such an element
			if ( elem.style.display === "" && isHidden( elem ) ) {
				values[ index ] = jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
			}
		} else {
			hidden = isHidden( elem );

			if ( display && display !== "none" || !hidden ) {
				jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) );
			}
		}
	}

	// Set the display of most of the elements in a second loop
	// to avoid the constant reflow
	for ( index = 0; index < length; index++ ) {
		elem = elements[ index ];
		if ( !elem.style ) {
			continue;
		}
		if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
			elem.style.display = show ? values[ index ] || "" : "none";
		}
	}

	return elements;
}

function setPositiveNumber( elem, value, subtract ) {
	var matches = rnumsplit.exec( value );
	return matches ?
		// Guard against undefined "subtract", e.g., when used as in cssHooks
		Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
		value;
}

function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
	var i = extra === ( isBorderBox ? "border" : "content" ) ?
		// If we already have the right measurement, avoid augmentation
		4 :
		// Otherwise initialize for horizontal or vertical properties
		name === "width" ? 1 : 0,

		val = 0;

	for ( ; i < 4; i += 2 ) {
		// both box models exclude margin, so add it if we want it
		if ( extra === "margin" ) {
			val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
		}

		if ( isBorderBox ) {
			// border-box includes padding, so remove it if we want content
			if ( extra === "content" ) {
				val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
			}

			// at this point, extra isn't border nor margin, so remove border
			if ( extra !== "margin" ) {
				val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
			}
		} else {
			// at this point, extra isn't content, so add padding
			val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );

			// at this point, extra isn't content nor padding, so add border
			if ( extra !== "padding" ) {
				val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
			}
		}
	}

	return val;
}

function getWidthOrHeight( elem, name, extra ) {

	// Start with offset property, which is equivalent to the border-box value
	var valueIsBorderBox = true,
		val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
		styles = getStyles( elem ),
		isBorderBox = support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box";

	// some non-html elements return undefined for offsetWidth, so check for null/undefined
	// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
	// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
	if ( val <= 0 || val == null ) {
		// Fall back to computed then uncomputed css if necessary
		val = curCSS( elem, name, styles );
		if ( val < 0 || val == null ) {
			val = elem.style[ name ];
		}

		// Computed unit is not pixels. Stop here and return.
		if ( rnumnonpx.test(val) ) {
			return val;
		}

		// we need the check for style in case a browser which returns unreliable values
		// for getComputedStyle silently falls back to the reliable elem.style
		valueIsBorderBox = isBorderBox && ( support.boxSizingReliable() || val === elem.style[ name ] );

		// Normalize "", auto, and prepare for extra
		val = parseFloat( val ) || 0;
	}

	// use the active box-sizing model to add/subtract irrelevant styles
	return ( val +
		augmentWidthOrHeight(
			elem,
			name,
			extra || ( isBorderBox ? "border" : "content" ),
			valueIsBorderBox,
			styles
		)
	) + "px";
}

jQuery.extend({
	// Add in style property hooks for overriding the default
	// behavior of getting and setting a style property
	cssHooks: {
		opacity: {
			get: function( elem, computed ) {
				if ( computed ) {
					// We should always get a number back from opacity
					var ret = curCSS( elem, "opacity" );
					return ret === "" ? "1" : ret;
				}
			}
		}
	},

	// Don't automatically add "px" to these possibly-unitless properties
	cssNumber: {
		"columnCount": true,
		"fillOpacity": true,
		"flexGrow": true,
		"flexShrink": true,
		"fontWeight": true,
		"lineHeight": true,
		"opacity": true,
		"order": true,
		"orphans": true,
		"widows": true,
		"zIndex": true,
		"zoom": true
	},

	// Add in properties whose names you wish to fix before
	// setting or getting the value
	cssProps: {
		// normalize float css property
		"float": support.cssFloat ? "cssFloat" : "styleFloat"
	},

	// Get and set the style property on a DOM Node
	style: function( elem, name, value, extra ) {
		// Don't set styles on text and comment nodes
		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
			return;
		}

		// Make sure that we're working with the right name
		var ret, type, hooks,
			origName = jQuery.camelCase( name ),
			style = elem.style;

		name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );

		// gets hook for the prefixed version
		// followed by the unprefixed version
		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];

		// Check if we're setting a value
		if ( value !== undefined ) {
			type = typeof value;

			// convert relative number strings (+= or -=) to relative numbers. #7345
			if ( type === "string" && (ret = rrelNum.exec( value )) ) {
				value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );
				// Fixes bug #9237
				type = "number";
			}

			// Make sure that null and NaN values aren't set. See: #7116
			if ( value == null || value !== value ) {
				return;
			}

			// If a number was passed in, add 'px' to the (except for certain CSS properties)
			if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
				value += "px";
			}

			// Fixes #8908, it can be done more correctly by specifing setters in cssHooks,
			// but it would mean to define eight (for every problematic property) identical functions
			if ( !support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) {
				style[ name ] = "inherit";
			}

			// If a hook was provided, use that value, otherwise just set the specified value
			if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {

				// Support: IE
				// Swallow errors from 'invalid' CSS values (#5509)
				try {
					style[ name ] = value;
				} catch(e) {}
			}

		} else {
			// If a hook was provided get the non-computed value from there
			if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
				return ret;
			}

			// Otherwise just get the value from the style object
			return style[ name ];
		}
	},

	css: function( elem, name, extra, styles ) {
		var num, val, hooks,
			origName = jQuery.camelCase( name );

		// Make sure that we're working with the right name
		name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );

		// gets hook for the prefixed version
		// followed by the unprefixed version
		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];

		// If a hook was provided get the computed value from there
		if ( hooks && "get" in hooks ) {
			val = hooks.get( elem, true, extra );
		}

		// Otherwise, if a way to get the computed value exists, use that
		if ( val === undefined ) {
			val = curCSS( elem, name, styles );
		}

		//convert "normal" to computed value
		if ( val === "normal" && name in cssNormalTransform ) {
			val = cssNormalTransform[ name ];
		}

		// Return, converting to number if forced or a qualifier was provided and val looks numeric
		if ( extra === "" || extra ) {
			num = parseFloat( val );
			return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;
		}
		return val;
	}
});

jQuery.each([ "height", "width" ], function( i, name ) {
	jQuery.cssHooks[ name ] = {
		get: function( elem, computed, extra ) {
			if ( computed ) {
				// certain elements can have dimension info if we invisibly show them
				// however, it must have a current display style that would benefit from this
				return rdisplayswap.test( jQuery.css( elem, "display" ) ) && elem.offsetWidth === 0 ?
					jQuery.swap( elem, cssShow, function() {
						return getWidthOrHeight( elem, name, extra );
					}) :
					getWidthOrHeight( elem, name, extra );
			}
		},

		set: function( elem, value, extra ) {
			var styles = extra && getStyles( elem );
			return setPositiveNumber( elem, value, extra ?
				augmentWidthOrHeight(
					elem,
					name,
					extra,
					support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
					styles
				) : 0
			);
		}
	};
});

if ( !support.opacity ) {
	jQuery.cssHooks.opacity = {
		get: function( elem, computed ) {
			// IE uses filters for opacity
			return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
				( 0.01 * parseFloat( RegExp.$1 ) ) + "" :
				computed ? "1" : "";
		},

		set: function( elem, value ) {
			var style = elem.style,
				currentStyle = elem.currentStyle,
				opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
				filter = currentStyle && currentStyle.filter || style.filter || "";

			// IE has trouble with opacity if it does not have layout
			// Force it by setting the zoom level
			style.zoom = 1;

			// if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
			// if value === "", then remove inline opacity #12685
			if ( ( value >= 1 || value === "" ) &&
					jQuery.trim( filter.replace( ralpha, "" ) ) === "" &&
					style.removeAttribute ) {

				// Setting style.filter to null, "" & " " still leave "filter:" in the cssText
				// if "filter:" is present at all, clearType is disabled, we want to avoid this
				// style.removeAttribute is IE Only, but so apparently is this code path...
				style.removeAttribute( "filter" );

				// if there is no filter style applied in a css rule or unset inline opacity, we are done
				if ( value === "" || currentStyle && !currentStyle.filter ) {
					return;
				}
			}

			// otherwise, set new filter values
			style.filter = ralpha.test( filter ) ?
				filter.replace( ralpha, opacity ) :
				filter + " " + opacity;
		}
	};
}

jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
	function( elem, computed ) {
		if ( computed ) {
			// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
			// Work around by temporarily setting element display to inline-block
			return jQuery.swap( elem, { "display": "inline-block" },
				curCSS, [ elem, "marginRight" ] );
		}
	}
);

// These hooks are used by animate to expand properties
jQuery.each({
	margin: "",
	padding: "",
	border: "Width"
}, function( prefix, suffix ) {
	jQuery.cssHooks[ prefix + suffix ] = {
		expand: function( value ) {
			var i = 0,
				expanded = {},

				// assumes a single number if not a string
				parts = typeof value === "string" ? value.split(" ") : [ value ];

			for ( ; i < 4; i++ ) {
				expanded[ prefix + cssExpand[ i ] + suffix ] =
					parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
			}

			return expanded;
		}
	};

	if ( !rmargin.test( prefix ) ) {
		jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
	}
});

jQuery.fn.extend({
	css: function( name, value ) {
		return access( this, function( elem, name, value ) {
			var styles, len,
				map = {},
				i = 0;

			if ( jQuery.isArray( name ) ) {
				styles = getStyles( elem );
				len = name.length;

				for ( ; i < len; i++ ) {
					map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
				}

				return map;
			}

			return value !== undefined ?
				jQuery.style( elem, name, value ) :
				jQuery.css( elem, name );
		}, name, value, arguments.length > 1 );
	},
	show: function() {
		return showHide( this, true );
	},
	hide: function() {
		return showHide( this );
	},
	toggle: function( state ) {
		if ( typeof state === "boolean" ) {
			return state ? this.show() : this.hide();
		}

		return this.each(function() {
			if ( isHidden( this ) ) {
				jQuery( this ).show();
			} else {
				jQuery( this ).hide();
			}
		});
	}
});


function Tween( elem, options, prop, end, easing ) {
	return new Tween.prototype.init( elem, options, prop, end, easing );
}
jQuery.Tween = Tween;

Tween.prototype = {
	constructor: Tween,
	init: function( elem, options, prop, end, easing, unit ) {
		this.elem = elem;
		this.prop = prop;
		this.easing = easing || "swing";
		this.options = options;
		this.start = this.now = this.cur();
		this.end = end;
		this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
	},
	cur: function() {
		var hooks = Tween.propHooks[ this.prop ];

		return hooks && hooks.get ?
			hooks.get( this ) :
			Tween.propHooks._default.get( this );
	},
	run: function( percent ) {
		var eased,
			hooks = Tween.propHooks[ this.prop ];

		if ( this.options.duration ) {
			this.pos = eased = jQuery.easing[ this.easing ](
				percent, this.options.duration * percent, 0, 1, this.options.duration
			);
		} else {
			this.pos = eased = percent;
		}
		this.now = ( this.end - this.start ) * eased + this.start;

		if ( this.options.step ) {
			this.options.step.call( this.elem, this.now, this );
		}

		if ( hooks && hooks.set ) {
			hooks.set( this );
		} else {
			Tween.propHooks._default.set( this );
		}
		return this;
	}
};

Tween.prototype.init.prototype = Tween.prototype;

Tween.propHooks = {
	_default: {
		get: function( tween ) {
			var result;

			if ( tween.elem[ tween.prop ] != null &&
				(!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) {
				return tween.elem[ tween.prop ];
			}

			// passing an empty string as a 3rd parameter to .css will automatically
			// attempt a parseFloat and fallback to a string if the parse fails
			// so, simple values such as "10px" are parsed to Float.
			// complex values such as "rotate(1rad)" are returned as is.
			result = jQuery.css( tween.elem, tween.prop, "" );
			// Empty strings, null, undefined and "auto" are converted to 0.
			return !result || result === "auto" ? 0 : result;
		},
		set: function( tween ) {
			// use step hook for back compat - use cssHook if its there - use .style if its
			// available and use plain properties where available
			if ( jQuery.fx.step[ tween.prop ] ) {
				jQuery.fx.step[ tween.prop ]( tween );
			} else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {
				jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
			} else {
				tween.elem[ tween.prop ] = tween.now;
			}
		}
	}
};

// Support: IE <=9
// Panic based approach to setting things on disconnected nodes

Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
	set: function( tween ) {
		if ( tween.elem.nodeType && tween.elem.parentNode ) {
			tween.elem[ tween.prop ] = tween.now;
		}
	}
};

jQuery.easing = {
	linear: function( p ) {
		return p;
	},
	swing: function( p ) {
		return 0.5 - Math.cos( p * Math.PI ) / 2;
	}
};

jQuery.fx = Tween.prototype.init;

// Back Compat <1.8 extension point
jQuery.fx.step = {};




var
	fxNow, timerId,
	rfxtypes = /^(?:toggle|show|hide)$/,
	rfxnum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ),
	rrun = /queueHooks$/,
	animationPrefilters = [ defaultPrefilter ],
	tweeners = {
		"*": [ function( prop, value ) {
			var tween = this.createTween( prop, value ),
				target = tween.cur(),
				parts = rfxnum.exec( value ),
				unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),

				// Starting value computation is required for potential unit mismatches
				start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) &&
					rfxnum.exec( jQuery.css( tween.elem, prop ) ),
				scale = 1,
				maxIterations = 20;

			if ( start && start[ 3 ] !== unit ) {
				// Trust units reported by jQuery.css
				unit = unit || start[ 3 ];

				// Make sure we update the tween properties later on
				parts = parts || [];

				// Iteratively approximate from a nonzero starting point
				start = +target || 1;

				do {
					// If previous iteration zeroed out, double until we get *something*
					// Use a string for doubling factor so we don't accidentally see scale as unchanged below
					scale = scale || ".5";

					// Adjust and apply
					start = start / scale;
					jQuery.style( tween.elem, prop, start + unit );

				// Update scale, tolerating zero or NaN from tween.cur()
				// And breaking the loop if scale is unchanged or perfect, or if we've just had enough
				} while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );
			}

			// Update tween properties
			if ( parts ) {
				start = tween.start = +start || +target || 0;
				tween.unit = unit;
				// If a +=/-= token was provided, we're doing a relative animation
				tween.end = parts[ 1 ] ?
					start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :
					+parts[ 2 ];
			}

			return tween;
		} ]
	};

// Animations created synchronously will run synchronously
function createFxNow() {
	setTimeout(function() {
		fxNow = undefined;
	});
	return ( fxNow = jQuery.now() );
}

// Generate parameters to create a standard animation
function genFx( type, includeWidth ) {
	var which,
		attrs = { height: type },
		i = 0;

	// if we include width, step value is 1 to do all cssExpand values,
	// if we don't include width, step value is 2 to skip over Left and Right
	includeWidth = includeWidth ? 1 : 0;
	for ( ; i < 4 ; i += 2 - includeWidth ) {
		which = cssExpand[ i ];
		attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
	}

	if ( includeWidth ) {
		attrs.opacity = attrs.width = type;
	}

	return attrs;
}

function createTween( value, prop, animation ) {
	var tween,
		collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
		index = 0,
		length = collection.length;
	for ( ; index < length; index++ ) {
		if ( (tween = collection[ index ].call( animation, prop, value )) ) {

			// we're done with this property
			return tween;
		}
	}
}

function defaultPrefilter( elem, props, opts ) {
	/* jshint validthis: true */
	var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
		anim = this,
		orig = {},
		style = elem.style,
		hidden = elem.nodeType && isHidden( elem ),
		dataShow = jQuery._data( elem, "fxshow" );

	// handle queue: false promises
	if ( !opts.queue ) {
		hooks = jQuery._queueHooks( elem, "fx" );
		if ( hooks.unqueued == null ) {
			hooks.unqueued = 0;
			oldfire = hooks.empty.fire;
			hooks.empty.fire = function() {
				if ( !hooks.unqueued ) {
					oldfire();
				}
			};
		}
		hooks.unqueued++;

		anim.always(function() {
			// doing this makes sure that the complete handler will be called
			// before this completes
			anim.always(function() {
				hooks.unqueued--;
				if ( !jQuery.queue( elem, "fx" ).length ) {
					hooks.empty.fire();
				}
			});
		});
	}

	// height/width overflow pass
	if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
		// Make sure that nothing sneaks out
		// Record all 3 overflow attributes because IE does not
		// change the overflow attribute when overflowX and
		// overflowY are set to the same value
		opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];

		// Set display property to inline-block for height/width
		// animations on inline elements that are having width/height animated
		display = jQuery.css( elem, "display" );

		// Test default display if display is currently "none"
		checkDisplay = display === "none" ?
			jQuery._data( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;

		if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {

			// inline-level elements accept inline-block;
			// block-level elements need to be inline with layout
			if ( !support.inlineBlockNeedsLayout || defaultDisplay( elem.nodeName ) === "inline" ) {
				style.display = "inline-block";
			} else {
				style.zoom = 1;
			}
		}
	}

	if ( opts.overflow ) {
		style.overflow = "hidden";
		if ( !support.shrinkWrapBlocks() ) {
			anim.always(function() {
				style.overflow = opts.overflow[ 0 ];
				style.overflowX = opts.overflow[ 1 ];
				style.overflowY = opts.overflow[ 2 ];
			});
		}
	}

	// show/hide pass
	for ( prop in props ) {
		value = props[ prop ];
		if ( rfxtypes.exec( value ) ) {
			delete props[ prop ];
			toggle = toggle || value === "toggle";
			if ( value === ( hidden ? "hide" : "show" ) ) {

				// If there is dataShow left over from a stopped hide or show and we are going to proceed with show, we should pretend to be hidden
				if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
					hidden = true;
				} else {
					continue;
				}
			}
			orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );

		// Any non-fx value stops us from restoring the original display value
		} else {
			display = undefined;
		}
	}

	if ( !jQuery.isEmptyObject( orig ) ) {
		if ( dataShow ) {
			if ( "hidden" in dataShow ) {
				hidden = dataShow.hidden;
			}
		} else {
			dataShow = jQuery._data( elem, "fxshow", {} );
		}

		// store state if its toggle - enables .stop().toggle() to "reverse"
		if ( toggle ) {
			dataShow.hidden = !hidden;
		}
		if ( hidden ) {
			jQuery( elem ).show();
		} else {
			anim.done(function() {
				jQuery( elem ).hide();
			});
		}
		anim.done(function() {
			var prop;
			jQuery._removeData( elem, "fxshow" );
			for ( prop in orig ) {
				jQuery.style( elem, prop, orig[ prop ] );
			}
		});
		for ( prop in orig ) {
			tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );

			if ( !( prop in dataShow ) ) {
				dataShow[ prop ] = tween.start;
				if ( hidden ) {
					tween.end = tween.start;
					tween.start = prop === "width" || prop === "height" ? 1 : 0;
				}
			}
		}

	// If this is a noop like .hide().hide(), restore an overwritten display value
	} else if ( (display === "none" ? defaultDisplay( elem.nodeName ) : display) === "inline" ) {
		style.display = display;
	}
}

function propFilter( props, specialEasing ) {
	var index, name, easing, value, hooks;

	// camelCase, specialEasing and expand cssHook pass
	for ( index in props ) {
		name = jQuery.camelCase( index );
		easing = specialEasing[ name ];
		value = props[ index ];
		if ( jQuery.isArray( value ) ) {
			easing = value[ 1 ];
			value = props[ index ] = value[ 0 ];
		}

		if ( index !== name ) {
			props[ name ] = value;
			delete props[ index ];
		}

		hooks = jQuery.cssHooks[ name ];
		if ( hooks && "expand" in hooks ) {
			value = hooks.expand( value );
			delete props[ name ];

			// not quite $.extend, this wont overwrite keys already present.
			// also - reusing 'index' from above because we have the correct "name"
			for ( index in value ) {
				if ( !( index in props ) ) {
					props[ index ] = value[ index ];
					specialEasing[ index ] = easing;
				}
			}
		} else {
			specialEasing[ name ] = easing;
		}
	}
}

function Animation( elem, properties, options ) {
	var result,
		stopped,
		index = 0,
		length = animationPrefilters.length,
		deferred = jQuery.Deferred().always( function() {
			// don't match elem in the :animated selector
			delete tick.elem;
		}),
		tick = function() {
			if ( stopped ) {
				return false;
			}
			var currentTime = fxNow || createFxNow(),
				remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
				// archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
				temp = remaining / animation.duration || 0,
				percent = 1 - temp,
				index = 0,
				length = animation.tweens.length;

			for ( ; index < length ; index++ ) {
				animation.tweens[ index ].run( percent );
			}

			deferred.notifyWith( elem, [ animation, percent, remaining ]);

			if ( percent < 1 && length ) {
				return remaining;
			} else {
				deferred.resolveWith( elem, [ animation ] );
				return false;
			}
		},
		animation = deferred.promise({
			elem: elem,
			props: jQuery.extend( {}, properties ),
			opts: jQuery.extend( true, { specialEasing: {} }, options ),
			originalProperties: properties,
			originalOptions: options,
			startTime: fxNow || createFxNow(),
			duration: options.duration,
			tweens: [],
			createTween: function( prop, end ) {
				var tween = jQuery.Tween( elem, animation.opts, prop, end,
						animation.opts.specialEasing[ prop ] || animation.opts.easing );
				animation.tweens.push( tween );
				return tween;
			},
			stop: function( gotoEnd ) {
				var index = 0,
					// if we are going to the end, we want to run all the tweens
					// otherwise we skip this part
					length = gotoEnd ? animation.tweens.length : 0;
				if ( stopped ) {
					return this;
				}
				stopped = true;
				for ( ; index < length ; index++ ) {
					animation.tweens[ index ].run( 1 );
				}

				// resolve when we played the last frame
				// otherwise, reject
				if ( gotoEnd ) {
					deferred.resolveWith( elem, [ animation, gotoEnd ] );
				} else {
					deferred.rejectWith( elem, [ animation, gotoEnd ] );
				}
				return this;
			}
		}),
		props = animation.props;

	propFilter( props, animation.opts.specialEasing );

	for ( ; index < length ; index++ ) {
		result = animationPrefilters[ index ].call( animation, elem, props, animation.opts );
		if ( result ) {
			return result;
		}
	}

	jQuery.map( props, createTween, animation );

	if ( jQuery.isFunction( animation.opts.start ) ) {
		animation.opts.start.call( elem, animation );
	}

	jQuery.fx.timer(
		jQuery.extend( tick, {
			elem: elem,
			anim: animation,
			queue: animation.opts.queue
		})
	);

	// attach callbacks from options
	return animation.progress( animation.opts.progress )
		.done( animation.opts.done, animation.opts.complete )
		.fail( animation.opts.fail )
		.always( animation.opts.always );
}

jQuery.Animation = jQuery.extend( Animation, {
	tweener: function( props, callback ) {
		if ( jQuery.isFunction( props ) ) {
			callback = props;
			props = [ "*" ];
		} else {
			props = props.split(" ");
		}

		var prop,
			index = 0,
			length = props.length;

		for ( ; index < length ; index++ ) {
			prop = props[ index ];
			tweeners[ prop ] = tweeners[ prop ] || [];
			tweeners[ prop ].unshift( callback );
		}
	},

	prefilter: function( callback, prepend ) {
		if ( prepend ) {
			animationPrefilters.unshift( callback );
		} else {
			animationPrefilters.push( callback );
		}
	}
});

jQuery.speed = function( speed, easing, fn ) {
	var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
		complete: fn || !fn && easing ||
			jQuery.isFunction( speed ) && speed,
		duration: speed,
		easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
	};

	opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
		opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;

	// normalize opt.queue - true/undefined/null -> "fx"
	if ( opt.queue == null || opt.queue === true ) {
		opt.queue = "fx";
	}

	// Queueing
	opt.old = opt.complete;

	opt.complete = function() {
		if ( jQuery.isFunction( opt.old ) ) {
			opt.old.call( this );
		}

		if ( opt.queue ) {
			jQuery.dequeue( this, opt.queue );
		}
	};

	return opt;
};

jQuery.fn.extend({
	fadeTo: function( speed, to, easing, callback ) {

		// show any hidden elements after setting opacity to 0
		return this.filter( isHidden ).css( "opacity", 0 ).show()

			// animate to the value specified
			.end().animate({ opacity: to }, speed, easing, callback );
	},
	animate: function( prop, speed, easing, callback ) {
		var empty = jQuery.isEmptyObject( prop ),
			optall = jQuery.speed( speed, easing, callback ),
			doAnimation = function() {
				// Operate on a copy of prop so per-property easing won't be lost
				var anim = Animation( this, jQuery.extend( {}, prop ), optall );

				// Empty animations, or finishing resolves immediately
				if ( empty || jQuery._data( this, "finish" ) ) {
					anim.stop( true );
				}
			};
			doAnimation.finish = doAnimation;

		return empty || optall.queue === false ?
			this.each( doAnimation ) :
			this.queue( optall.queue, doAnimation );
	},
	stop: function( type, clearQueue, gotoEnd ) {
		var stopQueue = function( hooks ) {
			var stop = hooks.stop;
			delete hooks.stop;
			stop( gotoEnd );
		};

		if ( typeof type !== "string" ) {
			gotoEnd = clearQueue;
			clearQueue = type;
			type = undefined;
		}
		if ( clearQueue && type !== false ) {
			this.queue( type || "fx", [] );
		}

		return this.each(function() {
			var dequeue = true,
				index = type != null && type + "queueHooks",
				timers = jQuery.timers,
				data = jQuery._data( this );

			if ( index ) {
				if ( data[ index ] && data[ index ].stop ) {
					stopQueue( data[ index ] );
				}
			} else {
				for ( index in data ) {
					if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
						stopQueue( data[ index ] );
					}
				}
			}

			for ( index = timers.length; index--; ) {
				if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
					timers[ index ].anim.stop( gotoEnd );
					dequeue = false;
					timers.splice( index, 1 );
				}
			}

			// start the next in the queue if the last step wasn't forced
			// timers currently will call their complete callbacks, which will dequeue
			// but only if they were gotoEnd
			if ( dequeue || !gotoEnd ) {
				jQuery.dequeue( this, type );
			}
		});
	},
	finish: function( type ) {
		if ( type !== false ) {
			type = type || "fx";
		}
		return this.each(function() {
			var index,
				data = jQuery._data( this ),
				queue = data[ type + "queue" ],
				hooks = data[ type + "queueHooks" ],
				timers = jQuery.timers,
				length = queue ? queue.length : 0;

			// enable finishing flag on private data
			data.finish = true;

			// empty the queue first
			jQuery.queue( this, type, [] );

			if ( hooks && hooks.stop ) {
				hooks.stop.call( this, true );
			}

			// look for any active animations, and finish them
			for ( index = timers.length; index--; ) {
				if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
					timers[ index ].anim.stop( true );
					timers.splice( index, 1 );
				}
			}

			// look for any animations in the old queue and finish them
			for ( index = 0; index < length; index++ ) {
				if ( queue[ index ] && queue[ index ].finish ) {
					queue[ index ].finish.call( this );
				}
			}

			// turn off finishing flag
			delete data.finish;
		});
	}
});

jQuery.each([ "toggle", "show", "hide" ], function( i, name ) {
	var cssFn = jQuery.fn[ name ];
	jQuery.fn[ name ] = function( speed, easing, callback ) {
		return speed == null || typeof speed === "boolean" ?
			cssFn.apply( this, arguments ) :
			this.animate( genFx( name, true ), speed, easing, callback );
	};
});

// Generate shortcuts for custom animations
jQuery.each({
	slideDown: genFx("show"),
	slideUp: genFx("hide"),
	slideToggle: genFx("toggle"),
	fadeIn: { opacity: "show" },
	fadeOut: { opacity: "hide" },
	fadeToggle: { opacity: "toggle" }
}, function( name, props ) {
	jQuery.fn[ name ] = function( speed, easing, callback ) {
		return this.animate( props, speed, easing, callback );
	};
});

jQuery.timers = [];
jQuery.fx.tick = function() {
	var timer,
		timers = jQuery.timers,
		i = 0;

	fxNow = jQuery.now();

	for ( ; i < timers.length; i++ ) {
		timer = timers[ i ];
		// Checks the timer has not already been removed
		if ( !timer() && timers[ i ] === timer ) {
			timers.splice( i--, 1 );
		}
	}

	if ( !timers.length ) {
		jQuery.fx.stop();
	}
	fxNow = undefined;
};

jQuery.fx.timer = function( timer ) {
	jQuery.timers.push( timer );
	if ( timer() ) {
		jQuery.fx.start();
	} else {
		jQuery.timers.pop();
	}
};

jQuery.fx.interval = 13;

jQuery.fx.start = function() {
	if ( !timerId ) {
		timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
	}
};

jQuery.fx.stop = function() {
	clearInterval( timerId );
	timerId = null;
};

jQuery.fx.speeds = {
	slow: 600,
	fast: 200,
	// Default speed
	_default: 400
};


// Based off of the plugin by Clint Helfers, with permission.
// http://blindsignals.com/index.php/2009/07/jquery-delay/
jQuery.fn.delay = function( time, type ) {
	time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
	type = type || "fx";

	return this.queue( type, function( next, hooks ) {
		var timeout = setTimeout( next, time );
		hooks.stop = function() {
			clearTimeout( timeout );
		};
	});
};


(function() {
	// Minified: var a,b,c,d,e
	var input, div, select, a, opt;

	// Setup
	div = document.createElement( "div" );
	div.setAttribute( "className", "t" );
	div.innerHTML = "  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
	a = div.getElementsByTagName("a")[ 0 ];

	// First batch of tests.
	select = document.createElement("select");
	opt = select.appendChild( document.createElement("option") );
	input = div.getElementsByTagName("input")[ 0 ];

	a.style.cssText = "top:1px";

	// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
	support.getSetAttribute = div.className !== "t";

	// Get the style information from getAttribute
	// (IE uses .cssText instead)
	support.style = /top/.test( a.getAttribute("style") );

	// Make sure that URLs aren't manipulated
	// (IE normalizes it by default)
	support.hrefNormalized = a.getAttribute("href") === "/a";

	// Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)
	support.checkOn = !!input.value;

	// Make sure that a selected-by-default option has a working selected property.
	// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
	support.optSelected = opt.selected;

	// Tests for enctype support on a form (#6743)
	support.enctype = !!document.createElement("form").enctype;

	// Make sure that the options inside disabled selects aren't marked as disabled
	// (WebKit marks them as disabled)
	select.disabled = true;
	support.optDisabled = !opt.disabled;

	// Support: IE8 only
	// Check if we can trust getAttribute("value")
	input = document.createElement( "input" );
	input.setAttribute( "value", "" );
	support.input = input.getAttribute( "value" ) === "";

	// Check if an input maintains its value after becoming a radio
	input.value = "t";
	input.setAttribute( "type", "radio" );
	support.radioValue = input.value === "t";
})();


var rreturn = /\r/g;

jQuery.fn.extend({
	val: function( value ) {
		var hooks, ret, isFunction,
			elem = this[0];

		if ( !arguments.length ) {
			if ( elem ) {
				hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];

				if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
					return ret;
				}

				ret = elem.value;

				return typeof ret === "string" ?
					// handle most common string cases
					ret.replace(rreturn, "") :
					// handle cases where value is null/undef or number
					ret == null ? "" : ret;
			}

			return;
		}

		isFunction = jQuery.isFunction( value );

		return this.each(function( i ) {
			var val;

			if ( this.nodeType !== 1 ) {
				return;
			}

			if ( isFunction ) {
				val = value.call( this, i, jQuery( this ).val() );
			} else {
				val = value;
			}

			// Treat null/undefined as ""; convert numbers to string
			if ( val == null ) {
				val = "";
			} else if ( typeof val === "number" ) {
				val += "";
			} else if ( jQuery.isArray( val ) ) {
				val = jQuery.map( val, function( value ) {
					return value == null ? "" : value + "";
				});
			}

			hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];

			// If set returns undefined, fall back to normal setting
			if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
				this.value = val;
			}
		});
	}
});

jQuery.extend({
	valHooks: {
		option: {
			get: function( elem ) {
				var val = jQuery.find.attr( elem, "value" );
				return val != null ?
					val :
					// Support: IE10-11+
					// option.text throws exceptions (#14686, #14858)
					jQuery.trim( jQuery.text( elem ) );
			}
		},
		select: {
			get: function( elem ) {
				var value, option,
					options = elem.options,
					index = elem.selectedIndex,
					one = elem.type === "select-one" || index < 0,
					values = one ? null : [],
					max = one ? index + 1 : options.length,
					i = index < 0 ?
						max :
						one ? index : 0;

				// Loop through all the selected options
				for ( ; i < max; i++ ) {
					option = options[ i ];

					// oldIE doesn't update selected after form reset (#2551)
					if ( ( option.selected || i === index ) &&
							// Don't return options that are disabled or in a disabled optgroup
							( support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&
							( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {

						// Get the specific value for the option
						value = jQuery( option ).val();

						// We don't need an array for one selects
						if ( one ) {
							return value;
						}

						// Multi-Selects return an array
						values.push( value );
					}
				}

				return values;
			},

			set: function( elem, value ) {
				var optionSet, option,
					options = elem.options,
					values = jQuery.makeArray( value ),
					i = options.length;

				while ( i-- ) {
					option = options[ i ];

					if ( jQuery.inArray( jQuery.valHooks.option.get( option ), values ) >= 0 ) {

						// Support: IE6
						// When new option element is added to select box we need to
						// force reflow of newly added node in order to workaround delay
						// of initialization properties
						try {
							option.selected = optionSet = true;

						} catch ( _ ) {

							// Will be executed only in IE6
							option.scrollHeight;
						}

					} else {
						option.selected = false;
					}
				}

				// Force browsers to behave consistently when non-matching value is set
				if ( !optionSet ) {
					elem.selectedIndex = -1;
				}

				return options;
			}
		}
	}
});

// Radios and checkboxes getter/setter
jQuery.each([ "radio", "checkbox" ], function() {
	jQuery.valHooks[ this ] = {
		set: function( elem, value ) {
			if ( jQuery.isArray( value ) ) {
				return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
			}
		}
	};
	if ( !support.checkOn ) {
		jQuery.valHooks[ this ].get = function( elem ) {
			// Support: Webkit
			// "" is returned instead of "on" if a value isn't specified
			return elem.getAttribute("value") === null ? "on" : elem.value;
		};
	}
});




var nodeHook, boolHook,
	attrHandle = jQuery.expr.attrHandle,
	ruseDefault = /^(?:checked|selected)$/i,
	getSetAttribute = support.getSetAttribute,
	getSetInput = support.input;

jQuery.fn.extend({
	attr: function( name, value ) {
		return access( this, jQuery.attr, name, value, arguments.length > 1 );
	},

	removeAttr: function( name ) {
		return this.each(function() {
			jQuery.removeAttr( this, name );
		});
	}
});

jQuery.extend({
	attr: function( elem, name, value ) {
		var hooks, ret,
			nType = elem.nodeType;

		// don't get/set attributes on text, comment and attribute nodes
		if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
			return;
		}

		// Fallback to prop when attributes are not supported
		if ( typeof elem.getAttribute === strundefined ) {
			return jQuery.prop( elem, name, value );
		}

		// All attributes are lowercase
		// Grab necessary hook if one is defined
		if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
			name = name.toLowerCase();
			hooks = jQuery.attrHooks[ name ] ||
				( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook );
		}

		if ( value !== undefined ) {

			if ( value === null ) {
				jQuery.removeAttr( elem, name );

			} else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
				return ret;

			} else {
				elem.setAttribute( name, value + "" );
				return value;
			}

		} else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
			return ret;

		} else {
			ret = jQuery.find.attr( elem, name );

			// Non-existent attributes return null, we normalize to undefined
			return ret == null ?
				undefined :
				ret;
		}
	},

	removeAttr: function( elem, value ) {
		var name, propName,
			i = 0,
			attrNames = value && value.match( rnotwhite );

		if ( attrNames && elem.nodeType === 1 ) {
			while ( (name = attrNames[i++]) ) {
				propName = jQuery.propFix[ name ] || name;

				// Boolean attributes get special treatment (#10870)
				if ( jQuery.expr.match.bool.test( name ) ) {
					// Set corresponding property to false
					if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {
						elem[ propName ] = false;
					// Support: IE<9
					// Also clear defaultChecked/defaultSelected (if appropriate)
					} else {
						elem[ jQuery.camelCase( "default-" + name ) ] =
							elem[ propName ] = false;
					}

				// See #9699 for explanation of this approach (setting first, then removal)
				} else {
					jQuery.attr( elem, name, "" );
				}

				elem.removeAttribute( getSetAttribute ? name : propName );
			}
		}
	},

	attrHooks: {
		type: {
			set: function( elem, value ) {
				if ( !support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
					// Setting the type on a radio button after the value resets the value in IE6-9
					// Reset value to default in case type is set after value during creation
					var val = elem.value;
					elem.setAttribute( "type", value );
					if ( val ) {
						elem.value = val;
					}
					return value;
				}
			}
		}
	}
});

// Hook for boolean attributes
boolHook = {
	set: function( elem, value, name ) {
		if ( value === false ) {
			// Remove boolean attributes when set to false
			jQuery.removeAttr( elem, name );
		} else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {
			// IE<8 needs the *property* name
			elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name );

		// Use defaultChecked and defaultSelected for oldIE
		} else {
			elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true;
		}

		return name;
	}
};

// Retrieve booleans specially
jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {

	var getter = attrHandle[ name ] || jQuery.find.attr;

	attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ?
		function( elem, name, isXML ) {
			var ret, handle;
			if ( !isXML ) {
				// Avoid an infinite loop by temporarily removing this function from the getter
				handle = attrHandle[ name ];
				attrHandle[ name ] = ret;
				ret = getter( elem, name, isXML ) != null ?
					name.toLowerCase() :
					null;
				attrHandle[ name ] = handle;
			}
			return ret;
		} :
		function( elem, name, isXML ) {
			if ( !isXML ) {
				return elem[ jQuery.camelCase( "default-" + name ) ] ?
					name.toLowerCase() :
					null;
			}
		};
});

// fix oldIE attroperties
if ( !getSetInput || !getSetAttribute ) {
	jQuery.attrHooks.value = {
		set: function( elem, value, name ) {
			if ( jQuery.nodeName( elem, "input" ) ) {
				// Does not return so that setAttribute is also used
				elem.defaultValue = value;
			} else {
				// Use nodeHook if defined (#1954); otherwise setAttribute is fine
				return nodeHook && nodeHook.set( elem, value, name );
			}
		}
	};
}

// IE6/7 do not support getting/setting some attributes with get/setAttribute
if ( !getSetAttribute ) {

	// Use this for any attribute in IE6/7
	// This fixes almost every IE6/7 issue
	nodeHook = {
		set: function( elem, value, name ) {
			// Set the existing or create a new attribute node
			var ret = elem.getAttributeNode( name );
			if ( !ret ) {
				elem.setAttributeNode(
					(ret = elem.ownerDocument.createAttribute( name ))
				);
			}

			ret.value = value += "";

			// Break association with cloned elements by also using setAttribute (#9646)
			if ( name === "value" || value === elem.getAttribute( name ) ) {
				return value;
			}
		}
	};

	// Some attributes are constructed with empty-string values when not defined
	attrHandle.id = attrHandle.name = attrHandle.coords =
		function( elem, name, isXML ) {
			var ret;
			if ( !isXML ) {
				return (ret = elem.getAttributeNode( name )) && ret.value !== "" ?
					ret.value :
					null;
			}
		};

	// Fixing value retrieval on a button requires this module
	jQuery.valHooks.button = {
		get: function( elem, name ) {
			var ret = elem.getAttributeNode( name );
			if ( ret && ret.specified ) {
				return ret.value;
			}
		},
		set: nodeHook.set
	};

	// Set contenteditable to false on removals(#10429)
	// Setting to empty string throws an error as an invalid value
	jQuery.attrHooks.contenteditable = {
		set: function( elem, value, name ) {
			nodeHook.set( elem, value === "" ? false : value, name );
		}
	};

	// Set width and height to auto instead of 0 on empty string( Bug #8150 )
	// This is for removals
	jQuery.each([ "width", "height" ], function( i, name ) {
		jQuery.attrHooks[ name ] = {
			set: function( elem, value ) {
				if ( value === "" ) {
					elem.setAttribute( name, "auto" );
					return value;
				}
			}
		};
	});
}

if ( !support.style ) {
	jQuery.attrHooks.style = {
		get: function( elem ) {
			// Return undefined in the case of empty string
			// Note: IE uppercases css property names, but if we were to .toLowerCase()
			// .cssText, that would destroy case senstitivity in URL's, like in "background"
			return elem.style.cssText || undefined;
		},
		set: function( elem, value ) {
			return ( elem.style.cssText = value + "" );
		}
	};
}




var rfocusable = /^(?:input|select|textarea|button|object)$/i,
	rclickable = /^(?:a|area)$/i;

jQuery.fn.extend({
	prop: function( name, value ) {
		return access( this, jQuery.prop, name, value, arguments.length > 1 );
	},

	removeProp: function( name ) {
		name = jQuery.propFix[ name ] || name;
		return this.each(function() {
			// try/catch handles cases where IE balks (such as removing a property on window)
			try {
				this[ name ] = undefined;
				delete this[ name ];
			} catch( e ) {}
		});
	}
});

jQuery.extend({
	propFix: {
		"for": "htmlFor",
		"class": "className"
	},

	prop: function( elem, name, value ) {
		var ret, hooks, notxml,
			nType = elem.nodeType;

		// don't get/set properties on text, comment and attribute nodes
		if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
			return;
		}

		notxml = nType !== 1 || !jQuery.isXMLDoc( elem );

		if ( notxml ) {
			// Fix name and attach hooks
			name = jQuery.propFix[ name ] || name;
			hooks = jQuery.propHooks[ name ];
		}

		if ( value !== undefined ) {
			return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ?
				ret :
				( elem[ name ] = value );

		} else {
			return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ?
				ret :
				elem[ name ];
		}
	},

	propHooks: {
		tabIndex: {
			get: function( elem ) {
				// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
				// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
				// Use proper attribute retrieval(#12072)
				var tabindex = jQuery.find.attr( elem, "tabindex" );

				return tabindex ?
					parseInt( tabindex, 10 ) :
					rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
						0 :
						-1;
			}
		}
	}
});

// Some attributes require a special call on IE
// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
if ( !support.hrefNormalized ) {
	// href/src property should get the full normalized URL (#10299/#12915)
	jQuery.each([ "href", "src" ], function( i, name ) {
		jQuery.propHooks[ name ] = {
			get: function( elem ) {
				return elem.getAttribute( name, 4 );
			}
		};
	});
}

// Support: Safari, IE9+
// mis-reports the default selected property of an option
// Accessing the parent's selectedIndex property fixes it
if ( !support.optSelected ) {
	jQuery.propHooks.selected = {
		get: function( elem ) {
			var parent = elem.parentNode;

			if ( parent ) {
				parent.selectedIndex;

				// Make sure that it also works with optgroups, see #5701
				if ( parent.parentNode ) {
					parent.parentNode.selectedIndex;
				}
			}
			return null;
		}
	};
}

jQuery.each([
	"tabIndex",
	"readOnly",
	"maxLength",
	"cellSpacing",
	"cellPadding",
	"rowSpan",
	"colSpan",
	"useMap",
	"frameBorder",
	"contentEditable"
], function() {
	jQuery.propFix[ this.toLowerCase() ] = this;
});

// IE6/7 call enctype encoding
if ( !support.enctype ) {
	jQuery.propFix.enctype = "encoding";
}




var rclass = /[\t\r\n\f]/g;

jQuery.fn.extend({
	addClass: function( value ) {
		var classes, elem, cur, clazz, j, finalValue,
			i = 0,
			len = this.length,
			proceed = typeof value === "string" && value;

		if ( jQuery.isFunction( value ) ) {
			return this.each(function( j ) {
				jQuery( this ).addClass( value.call( this, j, this.className ) );
			});
		}

		if ( proceed ) {
			// The disjunction here is for better compressibility (see removeClass)
			classes = ( value || "" ).match( rnotwhite ) || [];

			for ( ; i < len; i++ ) {
				elem = this[ i ];
				cur = elem.nodeType === 1 && ( elem.className ?
					( " " + elem.className + " " ).replace( rclass, " " ) :
					" "
				);

				if ( cur ) {
					j = 0;
					while ( (clazz = classes[j++]) ) {
						if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
							cur += clazz + " ";
						}
					}

					// only assign if different to avoid unneeded rendering.
					finalValue = jQuery.trim( cur );
					if ( elem.className !== finalValue ) {
						elem.className = finalValue;
					}
				}
			}
		}

		return this;
	},

	removeClass: function( value ) {
		var classes, elem, cur, clazz, j, finalValue,
			i = 0,
			len = this.length,
			proceed = arguments.length === 0 || typeof value === "string" && value;

		if ( jQuery.isFunction( value ) ) {
			return this.each(function( j ) {
				jQuery( this ).removeClass( value.call( this, j, this.className ) );
			});
		}
		if ( proceed ) {
			classes = ( value || "" ).match( rnotwhite ) || [];

			for ( ; i < len; i++ ) {
				elem = this[ i ];
				// This expression is here for better compressibility (see addClass)
				cur = elem.nodeType === 1 && ( elem.className ?
					( " " + elem.className + " " ).replace( rclass, " " ) :
					""
				);

				if ( cur ) {
					j = 0;
					while ( (clazz = classes[j++]) ) {
						// Remove *all* instances
						while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
							cur = cur.replace( " " + clazz + " ", " " );
						}
					}

					// only assign if different to avoid unneeded rendering.
					finalValue = value ? jQuery.trim( cur ) : "";
					if ( elem.className !== finalValue ) {
						elem.className = finalValue;
					}
				}
			}
		}

		return this;
	},

	toggleClass: function( value, stateVal ) {
		var type = typeof value;

		if ( typeof stateVal === "boolean" && type === "string" ) {
			return stateVal ? this.addClass( value ) : this.removeClass( value );
		}

		if ( jQuery.isFunction( value ) ) {
			return this.each(function( i ) {
				jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
			});
		}

		return this.each(function() {
			if ( type === "string" ) {
				// toggle individual class names
				var className,
					i = 0,
					self = jQuery( this ),
					classNames = value.match( rnotwhite ) || [];

				while ( (className = classNames[ i++ ]) ) {
					// check each className given, space separated list
					if ( self.hasClass( className ) ) {
						self.removeClass( className );
					} else {
						self.addClass( className );
					}
				}

			// Toggle whole class name
			} else if ( type === strundefined || type === "boolean" ) {
				if ( this.className ) {
					// store className if set
					jQuery._data( this, "__className__", this.className );
				}

				// If the element has a class name or if we're passed "false",
				// then remove the whole classname (if there was one, the above saved it).
				// Otherwise bring back whatever was previously saved (if anything),
				// falling back to the empty string if nothing was stored.
				this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
			}
		});
	},

	hasClass: function( selector ) {
		var className = " " + selector + " ",
			i = 0,
			l = this.length;
		for ( ; i < l; i++ ) {
			if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) {
				return true;
			}
		}

		return false;
	}
});




// Return jQuery for attributes-only inclusion


jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
	"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
	"change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {

	// Handle event binding
	jQuery.fn[ name ] = function( data, fn ) {
		return arguments.length > 0 ?
			this.on( name, null, data, fn ) :
			this.trigger( name );
	};
});

jQuery.fn.extend({
	hover: function( fnOver, fnOut ) {
		return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
	},

	bind: function( types, data, fn ) {
		return this.on( types, null, data, fn );
	},
	unbind: function( types, fn ) {
		return this.off( types, null, fn );
	},

	delegate: function( selector, types, data, fn ) {
		return this.on( types, selector, data, fn );
	},
	undelegate: function( selector, types, fn ) {
		// ( namespace ) or ( selector, types [, fn] )
		return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );
	}
});


var nonce = jQuery.now();

var rquery = (/\?/);



var rvalidtokens = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;

jQuery.parseJSON = function( data ) {
	// Attempt to parse using the native JSON parser first
	if ( window.JSON && window.JSON.parse ) {
		// Support: Android 2.3
		// Workaround failure to string-cast null input
		return window.JSON.parse( data + "" );
	}

	var requireNonComma,
		depth = null,
		str = jQuery.trim( data + "" );

	// Guard against invalid (and possibly dangerous) input by ensuring that nothing remains
	// after removing valid tokens
	return str && !jQuery.trim( str.replace( rvalidtokens, function( token, comma, open, close ) {

		// Force termination if we see a misplaced comma
		if ( requireNonComma && comma ) {
			depth = 0;
		}

		// Perform no more replacements after returning to outermost depth
		if ( depth === 0 ) {
			return token;
		}

		// Commas must not follow "[", "{", or ","
		requireNonComma = open || comma;

		// Determine new depth
		// array/object open ("[" or "{"): depth += true - false (increment)
		// array/object close ("]" or "}"): depth += false - true (decrement)
		// other cases ("," or primitive): depth += true - true (numeric cast)
		depth += !close - !open;

		// Remove this token
		return "";
	}) ) ?
		( Function( "return " + str ) )() :
		jQuery.error( "Invalid JSON: " + data );
};


// Cross-browser xml parsing
jQuery.parseXML = function( data ) {
	var xml, tmp;
	if ( !data || typeof data !== "string" ) {
		return null;
	}
	try {
		if ( window.DOMParser ) { // Standard
			tmp = new DOMParser();
			xml = tmp.parseFromString( data, "text/xml" );
		} else { // IE
			xml = new ActiveXObject( "Microsoft.XMLDOM" );
			xml.async = "false";
			xml.loadXML( data );
		}
	} catch( e ) {
		xml = undefined;
	}
	if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
		jQuery.error( "Invalid XML: " + data );
	}
	return xml;
};


var
	// Document location
	ajaxLocParts,
	ajaxLocation,

	rhash = /#.*$/,
	rts = /([?&])_=[^&]*/,
	rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
	// #7653, #8125, #8152: local protocol detection
	rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
	rnoContent = /^(?:GET|HEAD)$/,
	rprotocol = /^\/\//,
	rurl = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,

	/* Prefilters
	 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
	 * 2) These are called:
	 *    - BEFORE asking for a transport
	 *    - AFTER param serialization (s.data is a string if s.processData is true)
	 * 3) key is the dataType
	 * 4) the catchall symbol "*" can be used
	 * 5) execution will start with transport dataType and THEN continue down to "*" if needed
	 */
	prefilters = {},

	/* Transports bindings
	 * 1) key is the dataType
	 * 2) the catchall symbol "*" can be used
	 * 3) selection will start with transport dataType and THEN go to "*" if needed
	 */
	transports = {},

	// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
	allTypes = "*/".concat("*");

// #8138, IE may throw an exception when accessing
// a field from window.location if document.domain has been set
try {
	ajaxLocation = location.href;
} catch( e ) {
	// Use the href attribute of an A element
	// since IE will modify it given document.location
	ajaxLocation = document.createElement( "a" );
	ajaxLocation.href = "";
	ajaxLocation = ajaxLocation.href;
}

// Segment location into parts
ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];

// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
function addToPrefiltersOrTransports( structure ) {

	// dataTypeExpression is optional and defaults to "*"
	return function( dataTypeExpression, func ) {

		if ( typeof dataTypeExpression !== "string" ) {
			func = dataTypeExpression;
			dataTypeExpression = "*";
		}

		var dataType,
			i = 0,
			dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];

		if ( jQuery.isFunction( func ) ) {
			// For each dataType in the dataTypeExpression
			while ( (dataType = dataTypes[i++]) ) {
				// Prepend if requested
				if ( dataType.charAt( 0 ) === "+" ) {
					dataType = dataType.slice( 1 ) || "*";
					(structure[ dataType ] = structure[ dataType ] || []).unshift( func );

				// Otherwise append
				} else {
					(structure[ dataType ] = structure[ dataType ] || []).push( func );
				}
			}
		}
	};
}

// Base inspection function for prefilters and transports
function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {

	var inspected = {},
		seekingTransport = ( structure === transports );

	function inspect( dataType ) {
		var selected;
		inspected[ dataType ] = true;
		jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
			var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
			if ( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
				options.dataTypes.unshift( dataTypeOrTransport );
				inspect( dataTypeOrTransport );
				return false;
			} else if ( seekingTransport ) {
				return !( selected = dataTypeOrTransport );
			}
		});
		return selected;
	}

	return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
}

// A special extend for ajax options
// that takes "flat" options (not to be deep extended)
// Fixes #9887
function ajaxExtend( target, src ) {
	var deep, key,
		flatOptions = jQuery.ajaxSettings.flatOptions || {};

	for ( key in src ) {
		if ( src[ key ] !== undefined ) {
			( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];
		}
	}
	if ( deep ) {
		jQuery.extend( true, target, deep );
	}

	return target;
}

/* Handles responses to an ajax request:
 * - finds the right dataType (mediates between content-type and expected dataType)
 * - returns the corresponding response
 */
function ajaxHandleResponses( s, jqXHR, responses ) {
	var firstDataType, ct, finalDataType, type,
		contents = s.contents,
		dataTypes = s.dataTypes;

	// Remove auto dataType and get content-type in the process
	while ( dataTypes[ 0 ] === "*" ) {
		dataTypes.shift();
		if ( ct === undefined ) {
			ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
		}
	}

	// Check if we're dealing with a known content-type
	if ( ct ) {
		for ( type in contents ) {
			if ( contents[ type ] && contents[ type ].test( ct ) ) {
				dataTypes.unshift( type );
				break;
			}
		}
	}

	// Check to see if we have a response for the expected dataType
	if ( dataTypes[ 0 ] in responses ) {
		finalDataType = dataTypes[ 0 ];
	} else {
		// Try convertible dataTypes
		for ( type in responses ) {
			if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
				finalDataType = type;
				break;
			}
			if ( !firstDataType ) {
				firstDataType = type;
			}
		}
		// Or just use first one
		finalDataType = finalDataType || firstDataType;
	}

	// If we found a dataType
	// We add the dataType to the list if needed
	// and return the corresponding response
	if ( finalDataType ) {
		if ( finalDataType !== dataTypes[ 0 ] ) {
			dataTypes.unshift( finalDataType );
		}
		return responses[ finalDataType ];
	}
}

/* Chain conversions given the request and the original response
 * Also sets the responseXXX fields on the jqXHR instance
 */
function ajaxConvert( s, response, jqXHR, isSuccess ) {
	var conv2, current, conv, tmp, prev,
		converters = {},
		// Work with a copy of dataTypes in case we need to modify it for conversion
		dataTypes = s.dataTypes.slice();

	// Create converters map with lowercased keys
	if ( dataTypes[ 1 ] ) {
		for ( conv in s.converters ) {
			converters[ conv.toLowerCase() ] = s.converters[ conv ];
		}
	}

	current = dataTypes.shift();

	// Convert to each sequential dataType
	while ( current ) {

		if ( s.responseFields[ current ] ) {
			jqXHR[ s.responseFields[ current ] ] = response;
		}

		// Apply the dataFilter if provided
		if ( !prev && isSuccess && s.dataFilter ) {
			response = s.dataFilter( response, s.dataType );
		}

		prev = current;
		current = dataTypes.shift();

		if ( current ) {

			// There's only work to do if current dataType is non-auto
			if ( current === "*" ) {

				current = prev;

			// Convert response if prev dataType is non-auto and differs from current
			} else if ( prev !== "*" && prev !== current ) {

				// Seek a direct converter
				conv = converters[ prev + " " + current ] || converters[ "* " + current ];

				// If none found, seek a pair
				if ( !conv ) {
					for ( conv2 in converters ) {

						// If conv2 outputs current
						tmp = conv2.split( " " );
						if ( tmp[ 1 ] === current ) {

							// If prev can be converted to accepted input
							conv = converters[ prev + " " + tmp[ 0 ] ] ||
								converters[ "* " + tmp[ 0 ] ];
							if ( conv ) {
								// Condense equivalence converters
								if ( conv === true ) {
									conv = converters[ conv2 ];

								// Otherwise, insert the intermediate dataType
								} else if ( converters[ conv2 ] !== true ) {
									current = tmp[ 0 ];
									dataTypes.unshift( tmp[ 1 ] );
								}
								break;
							}
						}
					}
				}

				// Apply converter (if not an equivalence)
				if ( conv !== true ) {

					// Unless errors are allowed to bubble, catch and return them
					if ( conv && s[ "throws" ] ) {
						response = conv( response );
					} else {
						try {
							response = conv( response );
						} catch ( e ) {
							return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current };
						}
					}
				}
			}
		}
	}

	return { state: "success", data: response };
}

jQuery.extend({

	// Counter for holding the number of active queries
	active: 0,

	// Last-Modified header cache for next request
	lastModified: {},
	etag: {},

	ajaxSettings: {
		url: ajaxLocation,
		type: "GET",
		isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
		global: true,
		processData: true,
		async: true,
		contentType: "application/x-www-form-urlencoded; charset=UTF-8",
		/*
		timeout: 0,
		data: null,
		dataType: null,
		username: null,
		password: null,
		cache: null,
		throws: false,
		traditional: false,
		headers: {},
		*/

		accepts: {
			"*": allTypes,
			text: "text/plain",
			html: "text/html",
			xml: "application/xml, text/xml",
			json: "application/json, text/javascript"
		},

		contents: {
			xml: /xml/,
			html: /html/,
			json: /json/
		},

		responseFields: {
			xml: "responseXML",
			text: "responseText",
			json: "responseJSON"
		},

		// Data converters
		// Keys separate source (or catchall "*") and destination types with a single space
		converters: {

			// Convert anything to text
			"* text": String,

			// Text to html (true = no transformation)
			"text html": true,

			// Evaluate text as a json expression
			"text json": jQuery.parseJSON,

			// Parse text as xml
			"text xml": jQuery.parseXML
		},

		// For options that shouldn't be deep extended:
		// you can add your own custom options here if
		// and when you create one that shouldn't be
		// deep extended (see ajaxExtend)
		flatOptions: {
			url: true,
			context: true
		}
	},

	// Creates a full fledged settings object into target
	// with both ajaxSettings and settings fields.
	// If target is omitted, writes into ajaxSettings.
	ajaxSetup: function( target, settings ) {
		return settings ?

			// Building a settings object
			ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :

			// Extending ajaxSettings
			ajaxExtend( jQuery.ajaxSettings, target );
	},

	ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
	ajaxTransport: addToPrefiltersOrTransports( transports ),

	// Main method
	ajax: function( url, options ) {

		// If url is an object, simulate pre-1.5 signature
		if ( typeof url === "object" ) {
			options = url;
			url = undefined;
		}

		// Force options to be an object
		options = options || {};

		var // Cross-domain detection vars
			parts,
			// Loop variable
			i,
			// URL without anti-cache param
			cacheURL,
			// Response headers as string
			responseHeadersString,
			// timeout handle
			timeoutTimer,

			// To know if global events are to be dispatched
			fireGlobals,

			transport,
			// Response headers
			responseHeaders,
			// Create the final options object
			s = jQuery.ajaxSetup( {}, options ),
			// Callbacks context
			callbackContext = s.context || s,
			// Context for global events is callbackContext if it is a DOM node or jQuery collection
			globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?
				jQuery( callbackContext ) :
				jQuery.event,
			// Deferreds
			deferred = jQuery.Deferred(),
			completeDeferred = jQuery.Callbacks("once memory"),
			// Status-dependent callbacks
			statusCode = s.statusCode || {},
			// Headers (they are sent all at once)
			requestHeaders = {},
			requestHeadersNames = {},
			// The jqXHR state
			state = 0,
			// Default abort message
			strAbort = "canceled",
			// Fake xhr
			jqXHR = {
				readyState: 0,

				// Builds headers hashtable if needed
				getResponseHeader: function( key ) {
					var match;
					if ( state === 2 ) {
						if ( !responseHeaders ) {
							responseHeaders = {};
							while ( (match = rheaders.exec( responseHeadersString )) ) {
								responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
							}
						}
						match = responseHeaders[ key.toLowerCase() ];
					}
					return match == null ? null : match;
				},

				// Raw string
				getAllResponseHeaders: function() {
					return state === 2 ? responseHeadersString : null;
				},

				// Caches the header
				setRequestHeader: function( name, value ) {
					var lname = name.toLowerCase();
					if ( !state ) {
						name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
						requestHeaders[ name ] = value;
					}
					return this;
				},

				// Overrides response content-type header
				overrideMimeType: function( type ) {
					if ( !state ) {
						s.mimeType = type;
					}
					return this;
				},

				// Status-dependent callbacks
				statusCode: function( map ) {
					var code;
					if ( map ) {
						if ( state < 2 ) {
							for ( code in map ) {
								// Lazy-add the new callback in a way that preserves old ones
								statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
							}
						} else {
							// Execute the appropriate callbacks
							jqXHR.always( map[ jqXHR.status ] );
						}
					}
					return this;
				},

				// Cancel the request
				abort: function( statusText ) {
					var finalText = statusText || strAbort;
					if ( transport ) {
						transport.abort( finalText );
					}
					done( 0, finalText );
					return this;
				}
			};

		// Attach deferreds
		deferred.promise( jqXHR ).complete = completeDeferred.add;
		jqXHR.success = jqXHR.done;
		jqXHR.error = jqXHR.fail;

		// Remove hash character (#7531: and string promotion)
		// Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
		// Handle falsy url in the settings object (#10093: consistency with old signature)
		// We also use the url parameter if available
		s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );

		// Alias method option to type as per ticket #12004
		s.type = options.method || options.type || s.method || s.type;

		// Extract dataTypes list
		s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];

		// A cross-domain request is in order when we have a protocol:host:port mismatch
		if ( s.crossDomain == null ) {
			parts = rurl.exec( s.url.toLowerCase() );
			s.crossDomain = !!( parts &&
				( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
					( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
						( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? "80" : "443" ) ) )
			);
		}

		// Convert data if not already a string
		if ( s.data && s.processData && typeof s.data !== "string" ) {
			s.data = jQuery.param( s.data, s.traditional );
		}

		// Apply prefilters
		inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );

		// If request was aborted inside a prefilter, stop there
		if ( state === 2 ) {
			return jqXHR;
		}

		// We can fire global events as of now if asked to
		// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
		fireGlobals = jQuery.event && s.global;

		// Watch for a new set of requests
		if ( fireGlobals && jQuery.active++ === 0 ) {
			jQuery.event.trigger("ajaxStart");
		}

		// Uppercase the type
		s.type = s.type.toUpperCase();

		// Determine if request has content
		s.hasContent = !rnoContent.test( s.type );

		// Save the URL in case we're toying with the If-Modified-Since
		// and/or If-None-Match header later on
		cacheURL = s.url;

		// More options handling for requests with no content
		if ( !s.hasContent ) {

			// If data is available, append data to url
			if ( s.data ) {
				cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
				// #9682: remove data so that it's not used in an eventual retry
				delete s.data;
			}

			// Add anti-cache in url if needed
			if ( s.cache === false ) {
				s.url = rts.test( cacheURL ) ?

					// If there is already a '_' parameter, set its value
					cacheURL.replace( rts, "$1_=" + nonce++ ) :

					// Otherwise add one to the end
					cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++;
			}
		}

		// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
		if ( s.ifModified ) {
			if ( jQuery.lastModified[ cacheURL ] ) {
				jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
			}
			if ( jQuery.etag[ cacheURL ] ) {
				jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
			}
		}

		// Set the correct header, if data is being sent
		if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
			jqXHR.setRequestHeader( "Content-Type", s.contentType );
		}

		// Set the Accepts header for the server, depending on the dataType
		jqXHR.setRequestHeader(
			"Accept",
			s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
				s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
				s.accepts[ "*" ]
		);

		// Check for headers option
		for ( i in s.headers ) {
			jqXHR.setRequestHeader( i, s.headers[ i ] );
		}

		// Allow custom headers/mimetypes and early abort
		if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
			// Abort if not done already and return
			return jqXHR.abort();
		}

		// aborting is no longer a cancellation
		strAbort = "abort";

		// Install callbacks on deferreds
		for ( i in { success: 1, error: 1, complete: 1 } ) {
			jqXHR[ i ]( s[ i ] );
		}

		// Get transport
		transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );

		// If no transport, we auto-abort
		if ( !transport ) {
			done( -1, "No Transport" );
		} else {
			jqXHR.readyState = 1;

			// Send global event
			if ( fireGlobals ) {
				globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
			}
			// Timeout
			if ( s.async && s.timeout > 0 ) {
				timeoutTimer = setTimeout(function() {
					jqXHR.abort("timeout");
				}, s.timeout );
			}

			try {
				state = 1;
				transport.send( requestHeaders, done );
			} catch ( e ) {
				// Propagate exception as error if not done
				if ( state < 2 ) {
					done( -1, e );
				// Simply rethrow otherwise
				} else {
					throw e;
				}
			}
		}

		// Callback for when everything is done
		function done( status, nativeStatusText, responses, headers ) {
			var isSuccess, success, error, response, modified,
				statusText = nativeStatusText;

			// Called once
			if ( state === 2 ) {
				return;
			}

			// State is "done" now
			state = 2;

			// Clear timeout if it exists
			if ( timeoutTimer ) {
				clearTimeout( timeoutTimer );
			}

			// Dereference transport for early garbage collection
			// (no matter how long the jqXHR object will be used)
			transport = undefined;

			// Cache response headers
			responseHeadersString = headers || "";

			// Set readyState
			jqXHR.readyState = status > 0 ? 4 : 0;

			// Determine if successful
			isSuccess = status >= 200 && status < 300 || status === 304;

			// Get response data
			if ( responses ) {
				response = ajaxHandleResponses( s, jqXHR, responses );
			}

			// Convert no matter what (that way responseXXX fields are always set)
			response = ajaxConvert( s, response, jqXHR, isSuccess );

			// If successful, handle type chaining
			if ( isSuccess ) {

				// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
				if ( s.ifModified ) {
					modified = jqXHR.getResponseHeader("Last-Modified");
					if ( modified ) {
						jQuery.lastModified[ cacheURL ] = modified;
					}
					modified = jqXHR.getResponseHeader("etag");
					if ( modified ) {
						jQuery.etag[ cacheURL ] = modified;
					}
				}

				// if no content
				if ( status === 204 || s.type === "HEAD" ) {
					statusText = "nocontent";

				// if not modified
				} else if ( status === 304 ) {
					statusText = "notmodified";

				// If we have data, let's convert it
				} else {
					statusText = response.state;
					success = response.data;
					error = response.error;
					isSuccess = !error;
				}
			} else {
				// We extract error from statusText
				// then normalize statusText and status for non-aborts
				error = statusText;
				if ( status || !statusText ) {
					statusText = "error";
					if ( status < 0 ) {
						status = 0;
					}
				}
			}

			// Set data for the fake xhr object
			jqXHR.status = status;
			jqXHR.statusText = ( nativeStatusText || statusText ) + "";

			// Success/Error
			if ( isSuccess ) {
				deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
			} else {
				deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
			}

			// Status-dependent callbacks
			jqXHR.statusCode( statusCode );
			statusCode = undefined;

			if ( fireGlobals ) {
				globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
					[ jqXHR, s, isSuccess ? success : error ] );
			}

			// Complete
			completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );

			if ( fireGlobals ) {
				globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
				// Handle the global AJAX counter
				if ( !( --jQuery.active ) ) {
					jQuery.event.trigger("ajaxStop");
				}
			}
		}

		return jqXHR;
	},

	getJSON: function( url, data, callback ) {
		return jQuery.get( url, data, callback, "json" );
	},

	getScript: function( url, callback ) {
		return jQuery.get( url, undefined, callback, "script" );
	}
});

jQuery.each( [ "get", "post" ], function( i, method ) {
	jQuery[ method ] = function( url, data, callback, type ) {
		// shift arguments if data argument was omitted
		if ( jQuery.isFunction( data ) ) {
			type = type || callback;
			callback = data;
			data = undefined;
		}

		return jQuery.ajax({
			url: url,
			type: method,
			dataType: type,
			data: data,
			success: callback
		});
	};
});


jQuery._evalUrl = function( url ) {
	return jQuery.ajax({
		url: url,
		type: "GET",
		dataType: "script",
		async: false,
		global: false,
		"throws": true
	});
};


jQuery.fn.extend({
	wrapAll: function( html ) {
		if ( jQuery.isFunction( html ) ) {
			return this.each(function(i) {
				jQuery(this).wrapAll( html.call(this, i) );
			});
		}

		if ( this[0] ) {
			// The elements to wrap the target around
			var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);

			if ( this[0].parentNode ) {
				wrap.insertBefore( this[0] );
			}

			wrap.map(function() {
				var elem = this;

				while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
					elem = elem.firstChild;
				}

				return elem;
			}).append( this );
		}

		return this;
	},

	wrapInner: function( html ) {
		if ( jQuery.isFunction( html ) ) {
			return this.each(function(i) {
				jQuery(this).wrapInner( html.call(this, i) );
			});
		}

		return this.each(function() {
			var self = jQuery( this ),
				contents = self.contents();

			if ( contents.length ) {
				contents.wrapAll( html );

			} else {
				self.append( html );
			}
		});
	},

	wrap: function( html ) {
		var isFunction = jQuery.isFunction( html );

		return this.each(function(i) {
			jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
		});
	},

	unwrap: function() {
		return this.parent().each(function() {
			if ( !jQuery.nodeName( this, "body" ) ) {
				jQuery( this ).replaceWith( this.childNodes );
			}
		}).end();
	}
});


jQuery.expr.filters.hidden = function( elem ) {
	// Support: Opera <= 12.12
	// Opera reports offsetWidths and offsetHeights less than zero on some elements
	return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||
		(!support.reliableHiddenOffsets() &&
			((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
};

jQuery.expr.filters.visible = function( elem ) {
	return !jQuery.expr.filters.hidden( elem );
};




var r20 = /%20/g,
	rbracket = /\[\]$/,
	rCRLF = /\r?\n/g,
	rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
	rsubmittable = /^(?:input|select|textarea|keygen)/i;

function buildParams( prefix, obj, traditional, add ) {
	var name;

	if ( jQuery.isArray( obj ) ) {
		// Serialize array item.
		jQuery.each( obj, function( i, v ) {
			if ( traditional || rbracket.test( prefix ) ) {
				// Treat each array item as a scalar.
				add( prefix, v );

			} else {
				// Item is non-scalar (array or object), encode its numeric index.
				buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );
			}
		});

	} else if ( !traditional && jQuery.type( obj ) === "object" ) {
		// Serialize object item.
		for ( name in obj ) {
			buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
		}

	} else {
		// Serialize scalar item.
		add( prefix, obj );
	}
}

// Serialize an array of form elements or a set of
// key/values into a query string
jQuery.param = function( a, traditional ) {
	var prefix,
		s = [],
		add = function( key, value ) {
			// If value is a function, invoke it and return its value
			value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
			s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
		};

	// Set traditional to true for jQuery <= 1.3.2 behavior.
	if ( traditional === undefined ) {
		traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
	}

	// If an array was passed in, assume that it is an array of form elements.
	if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
		// Serialize the form elements
		jQuery.each( a, function() {
			add( this.name, this.value );
		});

	} else {
		// If traditional, encode the "old" way (the way 1.3.2 or older
		// did it), otherwise encode params recursively.
		for ( prefix in a ) {
			buildParams( prefix, a[ prefix ], traditional, add );
		}
	}

	// Return the resulting serialization
	return s.join( "&" ).replace( r20, "+" );
};

jQuery.fn.extend({
	serialize: function() {
		return jQuery.param( this.serializeArray() );
	},
	serializeArray: function() {
		return this.map(function() {
			// Can add propHook for "elements" to filter or add form elements
			var elements = jQuery.prop( this, "elements" );
			return elements ? jQuery.makeArray( elements ) : this;
		})
		.filter(function() {
			var type = this.type;
			// Use .is(":disabled") so that fieldset[disabled] works
			return this.name && !jQuery( this ).is( ":disabled" ) &&
				rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
				( this.checked || !rcheckableType.test( type ) );
		})
		.map(function( i, elem ) {
			var val = jQuery( this ).val();

			return val == null ?
				null :
				jQuery.isArray( val ) ?
					jQuery.map( val, function( val ) {
						return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
					}) :
					{ name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
		}).get();
	}
});


// Create the request object
// (This is still attached to ajaxSettings for backward compatibility)
jQuery.ajaxSettings.xhr = window.ActiveXObject !== undefined ?
	// Support: IE6+
	function() {

		// XHR cannot access local files, always use ActiveX for that case
		return !this.isLocal &&

			// Support: IE7-8
			// oldIE XHR does not support non-RFC2616 methods (#13240)
			// See http://msdn.microsoft.com/en-us/library/ie/ms536648(v=vs.85).aspx
			// and http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9
			// Although this check for six methods instead of eight
			// since IE also does not support "trace" and "connect"
			/^(get|post|head|put|delete|options)$/i.test( this.type ) &&

			createStandardXHR() || createActiveXHR();
	} :
	// For all other browsers, use the standard XMLHttpRequest object
	createStandardXHR;

var xhrId = 0,
	xhrCallbacks = {},
	xhrSupported = jQuery.ajaxSettings.xhr();

// Support: IE<10
// Open requests must be manually aborted on unload (#5280)
// See https://support.microsoft.com/kb/2856746 for more info
if ( window.attachEvent ) {
	window.attachEvent( "onunload", function() {
		for ( var key in xhrCallbacks ) {
			xhrCallbacks[ key ]( undefined, true );
		}
	});
}

// Determine support properties
support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
xhrSupported = support.ajax = !!xhrSupported;

// Create transport if the browser can provide an xhr
if ( xhrSupported ) {

	jQuery.ajaxTransport(function( options ) {
		// Cross domain only allowed if supported through XMLHttpRequest
		if ( !options.crossDomain || support.cors ) {

			var callback;

			return {
				send: function( headers, complete ) {
					var i,
						xhr = options.xhr(),
						id = ++xhrId;

					// Open the socket
					xhr.open( options.type, options.url, options.async, options.username, options.password );

					// Apply custom fields if provided
					if ( options.xhrFields ) {
						for ( i in options.xhrFields ) {
							xhr[ i ] = options.xhrFields[ i ];
						}
					}

					// Override mime type if needed
					if ( options.mimeType && xhr.overrideMimeType ) {
						xhr.overrideMimeType( options.mimeType );
					}

					// X-Requested-With header
					// For cross-domain requests, seeing as conditions for a preflight are
					// akin to a jigsaw puzzle, we simply never set it to be sure.
					// (it can always be set on a per-request basis or even using ajaxSetup)
					// For same-domain requests, won't change header if already provided.
					if ( !options.crossDomain && !headers["X-Requested-With"] ) {
						headers["X-Requested-With"] = "XMLHttpRequest";
					}

					// Set headers
					for ( i in headers ) {
						// Support: IE<9
						// IE's ActiveXObject throws a 'Type Mismatch' exception when setting
						// request header to a null-value.
						//
						// To keep consistent with other XHR implementations, cast the value
						// to string and ignore `undefined`.
						if ( headers[ i ] !== undefined ) {
							xhr.setRequestHeader( i, headers[ i ] + "" );
						}
					}

					// Do send the request
					// This may raise an exception which is actually
					// handled in jQuery.ajax (so no try/catch here)
					xhr.send( ( options.hasContent && options.data ) || null );

					// Listener
					callback = function( _, isAbort ) {
						var status, statusText, responses;

						// Was never called and is aborted or complete
						if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
							// Clean up
							delete xhrCallbacks[ id ];
							callback = undefined;
							xhr.onreadystatechange = jQuery.noop;

							// Abort manually if needed
							if ( isAbort ) {
								if ( xhr.readyState !== 4 ) {
									xhr.abort();
								}
							} else {
								responses = {};
								status = xhr.status;

								// Support: IE<10
								// Accessing binary-data responseText throws an exception
								// (#11426)
								if ( typeof xhr.responseText === "string" ) {
									responses.text = xhr.responseText;
								}

								// Firefox throws an exception when accessing
								// statusText for faulty cross-domain requests
								try {
									statusText = xhr.statusText;
								} catch( e ) {
									// We normalize with Webkit giving an empty statusText
									statusText = "";
								}

								// Filter status for non standard behaviors

								// If the request is local and we have data: assume a success
								// (success with no data won't get notified, that's the best we
								// can do given current implementations)
								if ( !status && options.isLocal && !options.crossDomain ) {
									status = responses.text ? 200 : 404;
								// IE - #1450: sometimes returns 1223 when it should be 204
								} else if ( status === 1223 ) {
									status = 204;
								}
							}
						}

						// Call complete if needed
						if ( responses ) {
							complete( status, statusText, responses, xhr.getAllResponseHeaders() );
						}
					};

					if ( !options.async ) {
						// if we're in sync mode we fire the callback
						callback();
					} else if ( xhr.readyState === 4 ) {
						// (IE6 & IE7) if it's in cache and has been
						// retrieved directly we need to fire the callback
						setTimeout( callback );
					} else {
						// Add to the list of active xhr callbacks
						xhr.onreadystatechange = xhrCallbacks[ id ] = callback;
					}
				},

				abort: function() {
					if ( callback ) {
						callback( undefined, true );
					}
				}
			};
		}
	});
}

// Functions to create xhrs
function createStandardXHR() {
	try {
		return new window.XMLHttpRequest();
	} catch( e ) {}
}

function createActiveXHR() {
	try {
		return new window.ActiveXObject( "Microsoft.XMLHTTP" );
	} catch( e ) {}
}




// Install script dataType
jQuery.ajaxSetup({
	accepts: {
		script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
	},
	contents: {
		script: /(?:java|ecma)script/
	},
	converters: {
		"text script": function( text ) {
			jQuery.globalEval( text );
			return text;
		}
	}
});

// Handle cache's special case and global
jQuery.ajaxPrefilter( "script", function( s ) {
	if ( s.cache === undefined ) {
		s.cache = false;
	}
	if ( s.crossDomain ) {
		s.type = "GET";
		s.global = false;
	}
});

// Bind script tag hack transport
jQuery.ajaxTransport( "script", function(s) {

	// This transport only deals with cross domain requests
	if ( s.crossDomain ) {

		var script,
			head = document.head || jQuery("head")[0] || document.documentElement;

		return {

			send: function( _, callback ) {

				script = document.createElement("script");

				script.async = true;

				if ( s.scriptCharset ) {
					script.charset = s.scriptCharset;
				}

				script.src = s.url;

				// Attach handlers for all browsers
				script.onload = script.onreadystatechange = function( _, isAbort ) {

					if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {

						// Handle memory leak in IE
						script.onload = script.onreadystatechange = null;

						// Remove the script
						if ( script.parentNode ) {
							script.parentNode.removeChild( script );
						}

						// Dereference the script
						script = null;

						// Callback if not abort
						if ( !isAbort ) {
							callback( 200, "success" );
						}
					}
				};

				// Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending
				// Use native DOM manipulation to avoid our domManip AJAX trickery
				head.insertBefore( script, head.firstChild );
			},

			abort: function() {
				if ( script ) {
					script.onload( undefined, true );
				}
			}
		};
	}
});




var oldCallbacks = [],
	rjsonp = /(=)\?(?=&|$)|\?\?/;

// Default jsonp settings
jQuery.ajaxSetup({
	jsonp: "callback",
	jsonpCallback: function() {
		var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
		this[ callback ] = true;
		return callback;
	}
});

// Detect, normalize options and install callbacks for jsonp requests
jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {

	var callbackName, overwritten, responseContainer,
		jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
			"url" :
			typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data"
		);

	// Handle iff the expected data type is "jsonp" or we have a parameter to set
	if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {

		// Get callback name, remembering preexisting value associated with it
		callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
			s.jsonpCallback() :
			s.jsonpCallback;

		// Insert callback into url or form data
		if ( jsonProp ) {
			s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
		} else if ( s.jsonp !== false ) {
			s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
		}

		// Use data converter to retrieve json after script execution
		s.converters["script json"] = function() {
			if ( !responseContainer ) {
				jQuery.error( callbackName + " was not called" );
			}
			return responseContainer[ 0 ];
		};

		// force json dataType
		s.dataTypes[ 0 ] = "json";

		// Install callback
		overwritten = window[ callbackName ];
		window[ callbackName ] = function() {
			responseContainer = arguments;
		};

		// Clean-up function (fires after converters)
		jqXHR.always(function() {
			// Restore preexisting value
			window[ callbackName ] = overwritten;

			// Save back as free
			if ( s[ callbackName ] ) {
				// make sure that re-using the options doesn't screw things around
				s.jsonpCallback = originalSettings.jsonpCallback;

				// save the callback name for future use
				oldCallbacks.push( callbackName );
			}

			// Call if it was a function and we have a response
			if ( responseContainer && jQuery.isFunction( overwritten ) ) {
				overwritten( responseContainer[ 0 ] );
			}

			responseContainer = overwritten = undefined;
		});

		// Delegate to script
		return "script";
	}
});




// data: string of html
// context (optional): If specified, the fragment will be created in this context, defaults to document
// keepScripts (optional): If true, will include scripts passed in the html string
jQuery.parseHTML = function( data, context, keepScripts ) {
	if ( !data || typeof data !== "string" ) {
		return null;
	}
	if ( typeof context === "boolean" ) {
		keepScripts = context;
		context = false;
	}
	context = context || document;

	var parsed = rsingleTag.exec( data ),
		scripts = !keepScripts && [];

	// Single tag
	if ( parsed ) {
		return [ context.createElement( parsed[1] ) ];
	}

	parsed = jQuery.buildFragment( [ data ], context, scripts );

	if ( scripts && scripts.length ) {
		jQuery( scripts ).remove();
	}

	return jQuery.merge( [], parsed.childNodes );
};


// Keep a copy of the old load method
var _load = jQuery.fn.load;

/**
 * Load a url into a page
 */
jQuery.fn.load = function( url, params, callback ) {
	if ( typeof url !== "string" && _load ) {
		return _load.apply( this, arguments );
	}

	var selector, response, type,
		self = this,
		off = url.indexOf(" ");

	if ( off >= 0 ) {
		selector = jQuery.trim( url.slice( off, url.length ) );
		url = url.slice( 0, off );
	}

	// If it's a function
	if ( jQuery.isFunction( params ) ) {

		// We assume that it's the callback
		callback = params;
		params = undefined;

	// Otherwise, build a param string
	} else if ( params && typeof params === "object" ) {
		type = "POST";
	}

	// If we have elements to modify, make the request
	if ( self.length > 0 ) {
		jQuery.ajax({
			url: url,

			// if "type" variable is undefined, then "GET" method will be used
			type: type,
			dataType: "html",
			data: params
		}).done(function( responseText ) {

			// Save response for use in complete callback
			response = arguments;

			self.html( selector ?

				// If a selector was specified, locate the right elements in a dummy div
				// Exclude scripts to avoid IE 'Permission Denied' errors
				jQuery("<div>").append( jQuery.parseHTML( responseText ) ).find( selector ) :

				// Otherwise use the full result
				responseText );

		}).complete( callback && function( jqXHR, status ) {
			self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );
		});
	}

	return this;
};




// Attach a bunch of functions for handling common AJAX events
jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) {
	jQuery.fn[ type ] = function( fn ) {
		return this.on( type, fn );
	};
});




jQuery.expr.filters.animated = function( elem ) {
	return jQuery.grep(jQuery.timers, function( fn ) {
		return elem === fn.elem;
	}).length;
};





var docElem = window.document.documentElement;

/**
 * Gets a window from an element
 */
function getWindow( elem ) {
	return jQuery.isWindow( elem ) ?
		elem :
		elem.nodeType === 9 ?
			elem.defaultView || elem.parentWindow :
			false;
}

jQuery.offset = {
	setOffset: function( elem, options, i ) {
		var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
			position = jQuery.css( elem, "position" ),
			curElem = jQuery( elem ),
			props = {};

		// set position first, in-case top/left are set even on static elem
		if ( position === "static" ) {
			elem.style.position = "relative";
		}

		curOffset = curElem.offset();
		curCSSTop = jQuery.css( elem, "top" );
		curCSSLeft = jQuery.css( elem, "left" );
		calculatePosition = ( position === "absolute" || position === "fixed" ) &&
			jQuery.inArray("auto", [ curCSSTop, curCSSLeft ] ) > -1;

		// need to be able to calculate position if either top or left is auto and position is either absolute or fixed
		if ( calculatePosition ) {
			curPosition = curElem.position();
			curTop = curPosition.top;
			curLeft = curPosition.left;
		} else {
			curTop = parseFloat( curCSSTop ) || 0;
			curLeft = parseFloat( curCSSLeft ) || 0;
		}

		if ( jQuery.isFunction( options ) ) {
			options = options.call( elem, i, curOffset );
		}

		if ( options.top != null ) {
			props.top = ( options.top - curOffset.top ) + curTop;
		}
		if ( options.left != null ) {
			props.left = ( options.left - curOffset.left ) + curLeft;
		}

		if ( "using" in options ) {
			options.using.call( elem, props );
		} else {
			curElem.css( props );
		}
	}
};

jQuery.fn.extend({
	offset: function( options ) {
		if ( arguments.length ) {
			return options === undefined ?
				this :
				this.each(function( i ) {
					jQuery.offset.setOffset( this, options, i );
				});
		}

		var docElem, win,
			box = { top: 0, left: 0 },
			elem = this[ 0 ],
			doc = elem && elem.ownerDocument;

		if ( !doc ) {
			return;
		}

		docElem = doc.documentElement;

		// Make sure it's not a disconnected DOM node
		if ( !jQuery.contains( docElem, elem ) ) {
			return box;
		}

		// If we don't have gBCR, just use 0,0 rather than error
		// BlackBerry 5, iOS 3 (original iPhone)
		if ( typeof elem.getBoundingClientRect !== strundefined ) {
			box = elem.getBoundingClientRect();
		}
		win = getWindow( doc );
		return {
			top: box.top  + ( win.pageYOffset || docElem.scrollTop )  - ( docElem.clientTop  || 0 ),
			left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )
		};
	},

	position: function() {
		if ( !this[ 0 ] ) {
			return;
		}

		var offsetParent, offset,
			parentOffset = { top: 0, left: 0 },
			elem = this[ 0 ];

		// fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is its only offset parent
		if ( jQuery.css( elem, "position" ) === "fixed" ) {
			// we assume that getBoundingClientRect is available when computed position is fixed
			offset = elem.getBoundingClientRect();
		} else {
			// Get *real* offsetParent
			offsetParent = this.offsetParent();

			// Get correct offsets
			offset = this.offset();
			if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
				parentOffset = offsetParent.offset();
			}

			// Add offsetParent borders
			parentOffset.top  += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
			parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
		}

		// Subtract parent offsets and element margins
		// note: when an element has margin: auto the offsetLeft and marginLeft
		// are the same in Safari causing offset.left to incorrectly be 0
		return {
			top:  offset.top  - parentOffset.top - jQuery.css( elem, "marginTop", true ),
			left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true)
		};
	},

	offsetParent: function() {
		return this.map(function() {
			var offsetParent = this.offsetParent || docElem;

			while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position" ) === "static" ) ) {
				offsetParent = offsetParent.offsetParent;
			}
			return offsetParent || docElem;
		});
	}
});

// Create scrollLeft and scrollTop methods
jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
	var top = /Y/.test( prop );

	jQuery.fn[ method ] = function( val ) {
		return access( this, function( elem, method, val ) {
			var win = getWindow( elem );

			if ( val === undefined ) {
				return win ? (prop in win) ? win[ prop ] :
					win.document.documentElement[ method ] :
					elem[ method ];
			}

			if ( win ) {
				win.scrollTo(
					!top ? val : jQuery( win ).scrollLeft(),
					top ? val : jQuery( win ).scrollTop()
				);

			} else {
				elem[ method ] = val;
			}
		}, method, val, arguments.length, null );
	};
});

// Add the top/left cssHooks using jQuery.fn.position
// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
// getComputedStyle returns percent when specified for top/left/bottom/right
// rather than make the css module depend on the offset module, we just check for it here
jQuery.each( [ "top", "left" ], function( i, prop ) {
	jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
		function( elem, computed ) {
			if ( computed ) {
				computed = curCSS( elem, prop );
				// if curCSS returns percentage, fallback to offset
				return rnumnonpx.test( computed ) ?
					jQuery( elem ).position()[ prop ] + "px" :
					computed;
			}
		}
	);
});


// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
	jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) {
		// margin is only for outerHeight, outerWidth
		jQuery.fn[ funcName ] = function( margin, value ) {
			var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
				extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );

			return access( this, function( elem, type, value ) {
				var doc;

				if ( jQuery.isWindow( elem ) ) {
					// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
					// isn't a whole lot we can do. See pull request at this URL for discussion:
					// https://github.com/jquery/jquery/pull/764
					return elem.document.documentElement[ "client" + name ];
				}

				// Get document width or height
				if ( elem.nodeType === 9 ) {
					doc = elem.documentElement;

					// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
					// unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
					return Math.max(
						elem.body[ "scroll" + name ], doc[ "scroll" + name ],
						elem.body[ "offset" + name ], doc[ "offset" + name ],
						doc[ "client" + name ]
					);
				}

				return value === undefined ?
					// Get width or height on the element, requesting but not forcing parseFloat
					jQuery.css( elem, type, extra ) :

					// Set width or height on the element
					jQuery.style( elem, type, value, extra );
			}, type, chainable ? margin : undefined, chainable, null );
		};
	});
});


// The number of elements contained in the matched element set
jQuery.fn.size = function() {
	return this.length;
};

jQuery.fn.andSelf = jQuery.fn.addBack;

//gwd
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
	return jQuery;
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

return jQuery;

}));


/***/ }),

/***/ 10350:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var DESCRIPTORS = __webpack_require__(43724);
var hasOwn = __webpack_require__(39297);

var FunctionPrototype = Function.prototype;
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;

var EXISTS = hasOwn(FunctionPrototype, 'name');
// additional protection from minified / mangled / dropped function names
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));

module.exports = {
  EXISTS: EXISTS,
  PROPER: PROPER,
  CONFIGURABLE: CONFIGURABLE
};


/***/ }),

/***/ 10422:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


module.exports = data => {
  let siteIdArr = ['15', '94', '108', '196', '32', '234', '273', '290', '292', '367', '373', '377'];
  let img_server = G.crc64 ? G.img64_server : G.img_server;
  if (!data || !data.length) return [];
  for (let i = 0; i < data.length; i++) {
    let d = data[i];
    let dp_id = d.dp_id;
    if (!dp_id) continue;
    let siteId = dp_id.match(/\d+-(\d+)/) && dp_id.match(/\d+-(\d+)/)[1];
    if (!siteId) continue;
    for (let j = 0; j < siteIdArr.length; j++) {
      if (siteId === siteIdArr[j]) {
        if (data[i].pic_url) data[i].pic_url = `${img_server}/c_zoom,h_90/dp${d.dp_id}`;else data[i].img_url = `${img_server}/c_zoom,h_90/dp${d.dp_id}`;
      }
    }
  }
  return data;
};

/***/ }),

/***/ 10436:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var $ = __webpack_require__(46518);
var IS_PURE = __webpack_require__(96395);
var IS_NODE = __webpack_require__(16193);
var globalThis = __webpack_require__(44576);
var call = __webpack_require__(69565);
var defineBuiltIn = __webpack_require__(36840);
var setPrototypeOf = __webpack_require__(52967);
var setToStringTag = __webpack_require__(10687);
var setSpecies = __webpack_require__(87633);
var aCallable = __webpack_require__(79306);
var isCallable = __webpack_require__(94901);
var isObject = __webpack_require__(20034);
var anInstance = __webpack_require__(90679);
var speciesConstructor = __webpack_require__(2293);
var task = (__webpack_require__(59225).set);
var microtask = __webpack_require__(91955);
var hostReportErrors = __webpack_require__(90757);
var perform = __webpack_require__(1103);
var Queue = __webpack_require__(18265);
var InternalStateModule = __webpack_require__(91181);
var NativePromiseConstructor = __webpack_require__(80550);
var PromiseConstructorDetection = __webpack_require__(10916);
var newPromiseCapabilityModule = __webpack_require__(36043);

var PROMISE = 'Promise';
var FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;
var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
var setInternalState = InternalStateModule.set;
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
var PromiseConstructor = NativePromiseConstructor;
var PromisePrototype = NativePromisePrototype;
var TypeError = globalThis.TypeError;
var document = globalThis.document;
var process = globalThis.process;
var newPromiseCapability = newPromiseCapabilityModule.f;
var newGenericPromiseCapability = newPromiseCapability;

var DISPATCH_EVENT = !!(document && document.createEvent && globalThis.dispatchEvent);
var UNHANDLED_REJECTION = 'unhandledrejection';
var REJECTION_HANDLED = 'rejectionhandled';
var PENDING = 0;
var FULFILLED = 1;
var REJECTED = 2;
var HANDLED = 1;
var UNHANDLED = 2;

var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;

// helpers
var isThenable = function (it) {
  var then;
  return isObject(it) && isCallable(then = it.then) ? then : false;
};

var callReaction = function (reaction, state) {
  var value = state.value;
  var ok = state.state === FULFILLED;
  var handler = ok ? reaction.ok : reaction.fail;
  var resolve = reaction.resolve;
  var reject = reaction.reject;
  var domain = reaction.domain;
  var result, then, exited;
  try {
    if (handler) {
      if (!ok) {
        if (state.rejection === UNHANDLED) onHandleUnhandled(state);
        state.rejection = HANDLED;
      }
      if (handler === true) result = value;
      else {
        if (domain) domain.enter();
        result = handler(value); // can throw
        if (domain) {
          domain.exit();
          exited = true;
        }
      }
      if (result === reaction.promise) {
        reject(new TypeError('Promise-chain cycle'));
      } else if (then = isThenable(result)) {
        call(then, result, resolve, reject);
      } else resolve(result);
    } else reject(value);
  } catch (error) {
    if (domain && !exited) domain.exit();
    reject(error);
  }
};

var notify = function (state, isReject) {
  if (state.notified) return;
  state.notified = true;
  microtask(function () {
    var reactions = state.reactions;
    var reaction;
    while (reaction = reactions.get()) {
      callReaction(reaction, state);
    }
    state.notified = false;
    if (isReject && !state.rejection) onUnhandled(state);
  });
};

var dispatchEvent = function (name, promise, reason) {
  var event, handler;
  if (DISPATCH_EVENT) {
    event = document.createEvent('Event');
    event.promise = promise;
    event.reason = reason;
    event.initEvent(name, false, true);
    globalThis.dispatchEvent(event);
  } else event = { promise: promise, reason: reason };
  if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis['on' + name])) handler(event);
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
};

var onUnhandled = function (state) {
  call(task, globalThis, function () {
    var promise = state.facade;
    var value = state.value;
    var IS_UNHANDLED = isUnhandled(state);
    var result;
    if (IS_UNHANDLED) {
      result = perform(function () {
        if (IS_NODE) {
          process.emit('unhandledRejection', value, promise);
        } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
      });
      // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
      state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
      if (result.error) throw result.value;
    }
  });
};

var isUnhandled = function (state) {
  return state.rejection !== HANDLED && !state.parent;
};

var onHandleUnhandled = function (state) {
  call(task, globalThis, function () {
    var promise = state.facade;
    if (IS_NODE) {
      process.emit('rejectionHandled', promise);
    } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
  });
};

var bind = function (fn, state, unwrap) {
  return function (value) {
    fn(state, value, unwrap);
  };
};

var internalReject = function (state, value, unwrap) {
  if (state.done) return;
  state.done = true;
  if (unwrap) state = unwrap;
  state.value = value;
  state.state = REJECTED;
  notify(state, true);
};

var internalResolve = function (state, value, unwrap) {
  if (state.done) return;
  state.done = true;
  if (unwrap) state = unwrap;
  try {
    if (state.facade === value) throw new TypeError("Promise can't be resolved itself");
    var then = isThenable(value);
    if (then) {
      microtask(function () {
        var wrapper = { done: false };
        try {
          call(then, value,
            bind(internalResolve, wrapper, state),
            bind(internalReject, wrapper, state)
          );
        } catch (error) {
          internalReject(wrapper, error, state);
        }
      });
    } else {
      state.value = value;
      state.state = FULFILLED;
      notify(state, false);
    }
  } catch (error) {
    internalReject({ done: false }, error, state);
  }
};

// constructor polyfill
if (FORCED_PROMISE_CONSTRUCTOR) {
  // 25.4.3.1 Promise(executor)
  PromiseConstructor = function Promise(executor) {
    anInstance(this, PromisePrototype);
    aCallable(executor);
    call(Internal, this);
    var state = getInternalPromiseState(this);
    try {
      executor(bind(internalResolve, state), bind(internalReject, state));
    } catch (error) {
      internalReject(state, error);
    }
  };

  PromisePrototype = PromiseConstructor.prototype;

  // eslint-disable-next-line no-unused-vars -- required for `.length`
  Internal = function Promise(executor) {
    setInternalState(this, {
      type: PROMISE,
      done: false,
      notified: false,
      parent: false,
      reactions: new Queue(),
      rejection: false,
      state: PENDING,
      value: null
    });
  };

  // `Promise.prototype.then` method
  // https://tc39.es/ecma262/#sec-promise.prototype.then
  Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
    var state = getInternalPromiseState(this);
    var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
    state.parent = true;
    reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
    reaction.fail = isCallable(onRejected) && onRejected;
    reaction.domain = IS_NODE ? process.domain : undefined;
    if (state.state === PENDING) state.reactions.add(reaction);
    else microtask(function () {
      callReaction(reaction, state);
    });
    return reaction.promise;
  });

  OwnPromiseCapability = function () {
    var promise = new Internal();
    var state = getInternalPromiseState(promise);
    this.promise = promise;
    this.resolve = bind(internalResolve, state);
    this.reject = bind(internalReject, state);
  };

  newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
    return C === PromiseConstructor || C === PromiseWrapper
      ? new OwnPromiseCapability(C)
      : newGenericPromiseCapability(C);
  };

  if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {
    nativeThen = NativePromisePrototype.then;

    if (!NATIVE_PROMISE_SUBCLASSING) {
      // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
      defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
        var that = this;
        return new PromiseConstructor(function (resolve, reject) {
          call(nativeThen, that, resolve, reject);
        }).then(onFulfilled, onRejected);
      // https://github.com/zloirock/core-js/issues/640
      }, { unsafe: true });
    }

    // make `.constructor === Promise` work for native promise-based APIs
    try {
      delete NativePromisePrototype.constructor;
    } catch (error) { /* empty */ }

    // make `instanceof Promise` work for native promise-based APIs
    if (setPrototypeOf) {
      setPrototypeOf(NativePromisePrototype, PromisePrototype);
    }
  }
}

// `Promise` constructor
// https://tc39.es/ecma262/#sec-promise-executor
$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
  Promise: PromiseConstructor
});

setToStringTag(PromiseConstructor, PROMISE, false, true);
setSpecies(PROMISE);


/***/ }),

/***/ 10540:
/***/ ((module) => {

"use strict";


/* istanbul ignore next  */
function insertStyleElement(options) {
  var element = document.createElement("style");
  options.setAttributes(element, options.attributes);
  options.insert(element, options.options);
  return element;
}
module.exports = insertStyleElement;

/***/ }),

/***/ 10635:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("span", {
    staticClass: "gwd-price"
  }, [_vm.price ? _c("span", {
    staticStyle: {
      "font-size": "14px"
    }
  }, [_vm._v(_vm._s(_vm.unit))]) : _vm._e(), _vm._v(" "), _vm.price ? _c("span", {
    style: {
      "font-size": (_vm.fontSize ? _vm.fontSize : 20) + "px"
    }
  }, [_vm._v(_vm._s(parseFloat(_vm.price).toFixed(2).replace(".00", "")))]) : _vm._e()]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 10687:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var defineProperty = (__webpack_require__(24913).f);
var hasOwn = __webpack_require__(39297);
var wellKnownSymbol = __webpack_require__(78227);

var TO_STRING_TAG = wellKnownSymbol('toStringTag');

module.exports = function (target, TAG, STATIC) {
  if (target && !STATIC) target = target.prototype;
  if (target && !hasOwn(target, TO_STRING_TAG)) {
    defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
  }
};


/***/ }),

/***/ 10724:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {};

/***/ }),

/***/ 10738:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


let history = __webpack_require__(42288);
let template = __webpack_require__(26133);
const util = __webpack_require__(30888);
const userData = __webpack_require__(74222);
let historySize = 0;
let go_union = __webpack_require__(71363);
const global2 = __webpack_require__(7053);
const siteInfo = __webpack_require__(92834);
let renderBtnBottom = () => {
  let btnHtml = `<a id="${G.extBrand}_history" class="${G.extBrand}-close-module"> <span><em></em>浏览历史</span></a>`;
  let dom = $(`.${G.extBrand}_option_setting`);
  dom.after(template.compile(btnHtml)());
};
let fixtop = () => {
  /*修改了dom结构和css文件，为了不影响本地版本，不能直接修改原有的css属性，只能通过添加类名覆盖之前的属性*/
  $(`#${G.extName}-feed-close`).addClass(`_newbar1`);
  $(`#${G.extName}-main`).addClass(`_newbar2`);
};
let renderBtnTop = () => {
  fixtop();
  let btnHtml = `<div id="gwd_history" class="gwdang-tab">
    <span class="btn-tab-sp">
      <em class="gwd_bg"></em>
      <span class="tab-sp1 blkcolor1">浏览历史</span>
    </span>
  </div>`;
  $(`.search-mod`).after(template.compile(btnHtml)());
  $('#gwd_history').show();
  (__webpack_require__(7053).autoFixWidth)();
};
let renderBtn = () => {
  let perinfo = userData.get('permanent');
  if (perinfo.style == 'top') {
    renderBtnTop();
  } else if (perinfo.style == 'bottom') {
    renderBtnBottom();
  }
};
let historyGot = false;
let renderDetailHtml = (dom, data, height) => {
  let html = __webpack_require__(62853);
  $(dom).append(template.compile(html)({
    'data': data,
    's_server': G.s_server,
    'his_size': historySize,
    extName: G.extName
  }));
};
let renderDetail = (data, height) => {
  let perinfo = userData.get('permanent');
  if (perinfo.style == 'top') {
    renderDetailHtml($(`#gwd_history`), data, height);
  } else if (perinfo.style == `bottom`) {
    renderDetailHtml('#bjd_bottom_detail', data, height);
  }
};
let calHeight = () => {
  if (historySize >= 4) return 343;else {
    return historySize * 75 + (historySize - 1) * 14 + 1;
  }
};
let addUnion = data => {
  var newdata = [];
  for (let i = 0; i < data.length; i++) {
    if (!data[i].url) continue;
    let site = siteInfo.isProductPage(data[i].url);
    let obj = {
      'site_id': data[i].site_id,
      'url': data[i].url,
      'mod': 'history',
      'union': G.union.split('_')[1],
      'dp_id': data[i].dp_id
    };
    data[i].url = go_union.init(obj);
    data[i].currency = (__webpack_require__(22209).getMoneyInfo)(site)[0];
    data[i].site = site;
    newdata.push(data[i]);
  }
  return newdata;
};
let render = data => {
  historyGot = true;
  if (!data || data.length == 0) return;
  data = addUnion(data.slice(0, 10));
  historySize = data.length;
  let height = calHeight();
  renderBtn();
  renderDetail(data, height);
  addEvent(historySize);
};
let addEvent = size => {
  let timer, loadImg, setLeft;
  const ren = () => {
    if (!loadImg) {
      loadImg = true;
      global2.loadImg(0, size, $('#history_detail li .item_img img'));
    }
    if (!setLeft) {
      util.setSimplePagePos($('#gwd_history'), $('#history_detail'), 288);
      setLeft = true;
    }
    $(`#${G.extBrand}_history`).addClass(`history_hover`);
    $(`#history_detail`).show();
  };
  ren();
  $(`#${G.extBrand}_history`).on(`mouseenter`, ren);
  $(`#${G.extBrand}_history`).on('mouseleave', () => {
    timer = setTimeout(() => {
      $(`#${G.extBrand}_history`).removeClass(`history_hover`);
      $(`#history_detail`).hide();
    }, 200);
  });
  $(`#history_detail`).on('mouseenter', () => {
    clearTimeout(timer);
  });
  $(`#history_detail`).on(`mouseleave`, () => {
    $(`#${G.extBrand}_history`).removeClass(`history_hover`);
    $(`#history_detail`).hide();
  });
  $('#history_detail .item_close_btn').on('click', function () {
    let id = $(this).attr('data-id');
    historySize--;
    delHistory($(this).parents('li'), id);
  });
  $('#history_detail .clear_his').on('click', () => {
    clearHistory();
  });
};
let getHistory = () => {
  history.get(render);
};
const clearHistory = () => {
  history.delAll(() => {
    $('.history_detail .history_content ul').empty();
    $('.history_detail .history_content').addClass('no-his-content');
    $('.history_detail .history_content').height(76);
    $('.clear_his').hide();
  });
};
let setHistory = () => {
  /*因为没有抓取屏蔽淘宝天猫*/
  let other_info = userData.get('other_info');
  let dp_id = other_info && other_info.now && other_info.now.dp_id;
  if (G.site != 'taobao' && G.site != 'tmall') history.add(dp_id);
};
let delHistory = (obj, id) => {
  let height = calHeight();
  history.del(id, () => {
    $(obj).remove();
    if (height == 343) return;
    if (historySize === 0) {
      $('.history_detail .history_content').addClass('no-his-content');
      $('.clear_his').hide();
      return;
    }
    $('.history_detail .history_content').height(height);
  });
};
module.exports.init = () => {
  //getHistory()
  $(`#${G.extBrand}_history`).on(`mouseenter`, () => {
    if (!historyGot) {
      getHistory();
    }
  });
  setHistory();
};

/***/ }),

/***/ 10757:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var getBuiltIn = __webpack_require__(97751);
var isCallable = __webpack_require__(94901);
var isPrototypeOf = __webpack_require__(1625);
var USE_SYMBOL_AS_UID = __webpack_require__(7040);

var $Object = Object;

module.exports = USE_SYMBOL_AS_UID ? function (it) {
  return typeof it == 'symbol';
} : function (it) {
  var $Symbol = getBuiltIn('Symbol');
  return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
};


/***/ }),

/***/ 10809:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ QuestHintvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ QuestHint)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/QuestHint.vue?vue&type=template&id=1834bd8f&scoped=true
var QuestHintvue_type_template_id_1834bd8f_scoped_true = __webpack_require__(24700);
;// ./src/standard/module/components/QuestHint.vue?vue&type=template&id=1834bd8f&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/QuestHint.vue?vue&type=script&lang=js
var QuestHintvue_type_script_lang_js = __webpack_require__(10724);
;// ./src/standard/module/components/QuestHint.vue?vue&type=script&lang=js
 /* harmony default export */ const components_QuestHintvue_type_script_lang_js = (QuestHintvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/QuestHint.vue?vue&type=style&index=0&id=1834bd8f&prod&scoped=true&lang=less
var QuestHintvue_type_style_index_0_id_1834bd8f_prod_scoped_true_lang_less = __webpack_require__(42012);
;// ./src/standard/module/components/QuestHint.vue?vue&type=style&index=0&id=1834bd8f&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/QuestHint.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_QuestHintvue_type_script_lang_js,
  QuestHintvue_type_template_id_1834bd8f_scoped_true/* render */.XX,
  QuestHintvue_type_template_id_1834bd8f_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "1834bd8f",
  null
  
)

/* harmony default export */ const QuestHint = (component.exports);

/***/ }),

/***/ 10916:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);
var NativePromiseConstructor = __webpack_require__(80550);
var isCallable = __webpack_require__(94901);
var isForced = __webpack_require__(92796);
var inspectSource = __webpack_require__(33706);
var wellKnownSymbol = __webpack_require__(78227);
var ENVIRONMENT = __webpack_require__(84215);
var IS_PURE = __webpack_require__(96395);
var V8_VERSION = __webpack_require__(39519);

var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
var SPECIES = wellKnownSymbol('species');
var SUBCLASSING = false;
var NATIVE_PROMISE_REJECTION_EVENT = isCallable(globalThis.PromiseRejectionEvent);

var FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);
  var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);
  // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
  // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
  // We can't detect it synchronously, so just check versions
  if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
  // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution
  if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;
  // We can't use @@species feature detection in V8 since it causes
  // deoptimization and performance degradation
  // https://github.com/zloirock/core-js/issues/679
  if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
    // Detect correctness of subclassing with @@species support
    var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });
    var FakePromise = function (exec) {
      exec(function () { /* empty */ }, function () { /* empty */ });
    };
    var constructor = promise.constructor = {};
    constructor[SPECIES] = FakePromise;
    SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
    if (!SUBCLASSING) return true;
  // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
  } return !GLOBAL_CORE_JS_PROMISE && (ENVIRONMENT === 'BROWSER' || ENVIRONMENT === 'DENO') && !NATIVE_PROMISE_REJECTION_EVENT;
});

module.exports = {
  CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,
  REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,
  SUBCLASSING: SUBCLASSING
};


/***/ }),

/***/ 11086:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const request = __webpack_require__(49388);
const template = __webpack_require__(26133);
const getQRCode = __webpack_require__(95554);
const globalCondition = __webpack_require__(41761);
const cnzz = __webpack_require__(5300);
const PddActivityQr = (__webpack_require__(5650)/* ["default"] */ .A);
const rnd = Math.random();
module.exports.init = dp_id => {
  G.dp.itemId = dp_id;
  if (['360buy', 'yangkeduo'].indexOf(G.site) === -1) return;
  let url;
  getCouponInfo(dp_id, url, renderCoupon);
  if (G.site === 'yangkeduo') {
    $('body').append(`
      <div style="position: fixed; bottom: 245px; right: 50%; margin-right: 410px"><div id="gwd-pdd-act-qr"></div></div>
    `);
    new Vue({
      el: '#gwd-pdd-act-qr',
      render: h => h(PddActivityQr, {
        props: {
          needMouseOver: false,
          rnd: rnd
        }
      })
    });
  }
};
const getCouponInfo = (dp_id, url, callback) => {
  dp_id = dp_id ? `dp_id=${dp_id}` : '';
  url = url ? `url=${url}` : '';
  let url2 = `https://browser.gwdang.com/extension/Coupon?${dp_id}${url}${G.dp.price ? '&price=' + G.dp.price : ''}`;
  request.get(url2).done(async data => {
    await (__webpack_require__(30888).waitForConditionFn)(() => {
      return document.querySelector('#gwd-coupon-placeholder');
    });
    if (!data.coupon) {
      const config = await (__webpack_require__(41761).met)('GwdConfig');
      if (config.allowDuomai && G.site === '360buy') {
        const duomaiData = await request.rawGet(`https://u.gwdang.com/gyp/jd/item?id=${G.dp.itemId.replace('-3', '')}&with_coupon=1`);
        (__webpack_require__(41761).setMet)('duomaiData', duomaiData);
        if (duomaiData.coupon) {
          data.coupon = duomaiData.coupon.discount;
          data.limit = duomaiData.coupon.quota;
          data.click_url = `https://tb.gwdang.com/extension/qrpage?tag=coupon&dp_id=${G.dp.dpId}&discount=${data.coupon}&union=union_gwdang&link=${encodeURIComponent(duomaiData.coupon.link)}`;
        }
      }
    }
    if (data.coupon && data.click_url) {
      //globalCondition.setMet('coupon', data.coupon)
      globalCondition.setMet('coupon', `满${data.limit}元减${data.coupon}`);
      // require('common/sideCoupon').add('商品券', data.coupon, data.click_url)
      (__webpack_require__(92771).getStore)().commit('promos/setState', {
        coupon: {
          value: data.coupon,
          link: data.click_url
        }
      });
      callback(data);
      setTimeout(() => {
        (__webpack_require__(73743).init)(true);
      }, 1000);
    } else if (G.site === 'yangkeduo') {
      //let id = (G.dp.itemId.replace('-370', ''));
      //showQrCode(`https://mobile.yangkeduo.com/goods.html?goods_id=${id}`)
      data.coupon = 0;
      callback(data);
      $('.gwd-topbar-left').append('<div id="gwd-pdd-qr-top" style="display: inline-block; margin-top: 2px;"></div>');
      new Vue({
        el: '#gwd-pdd-qr-top',
        render: h => h(PddActivityQr, {
          props: {
            needMouseOver: true,
            rnd: rnd
          }
        })
      });
    } else {
      globalCondition.setMet('coupon', 0);
      setTimeout(async () => {
        await globalCondition.met('noOtherGiftMoney');
        (__webpack_require__(73743).init)(false);
      }, 1000);
      (__webpack_require__(38946).init)();
    }
  });
};
const showCustomQrCode = (content, couponValue = '') => {
  if (G.site !== 'yangkeduo') return;
  const templateHtml = __webpack_require__(53979);
  let showPinPrice = true;
  if (localStorage.getItem('gwd-disable-pinPrice') && parseInt(localStorage.getItem('gwd-disable-pinPrice')) + 3600000 * 24 > new Date().getTime()) {
    showPinPrice = false;
  }
  let result = template.compile(templateHtml)({
    qrcode: content,
    s_server: G.s_server,
    coupon: couponValue,
    showPinPrice: showPinPrice
  });
  cnzz.log('二维码', '展示', '底部拼多多');
  $('body').append(result);
  setTimeout(() => {
    $('.gwd-pinPrice').click(e => {
      if (e.offsetX >= 175 && e.offsetY <= 10) {
        $('.gwd-pinPrice').css('display', 'none');
        localStorage.setItem('gwd-disable-pinPrice', new Date().getTime());
      }
    });
  }, 0);
};
const renderCoupon = data => {
  let tle = "点击领券";
  let html = __webpack_require__(54608);
  if (G.site !== '360buy') {
    renderMini(data);
  }
  $('#gwdang-banner-ad').remove();
  if (G.site === 'yangkeduo') {
    let title = G.site === '360buy' ? $('.contact .J-hove-wrap a')[0] ? $('.contact .J-hove-wrap a')[0].title : '京东' : G.site;
    let productInfo = {
      itemNumId: G.dp.itemId,
      amount: data.coupon,
      couponUrl: data.click_url,
      discountPrice: data.price,
      effectiveStartTime: data.start_time,
      effectiveEndTime: data.end_time,
      id: G.dp.itemId,
      picUrl: $('.islider-outer img').attr('src'),
      pid: 'top',
      tmall: false,
      pdd: G.site === 'yangkeduo',
      shopName: G.site === 'yangkeduo' ? '拼多多' : title,
      title: $('.enable-select').text()
    };
    if (!productInfo.amount) {
      productInfo.discountPrice = G.dp.price;
    }
    if (G.site === '360buy') {
      productInfo.picUrl = $('#spec-img').attr('src');
      productInfo.title = $.trim($('.sku-name').text());
    }
    getQRCode(productInfo, data.click_url, function (qrcodeData) {
      if (parseInt(data.coupon)) {
        $('.gwd-topbar-left').append(template.compile(html)({
          price: data.coupon,
          url: data.click_url,
          tle: tle,
          isShowPic: true,
          picUrl: qrcodeData[0].imgSrc
        }));
        let newCouponHtml = __webpack_require__(82186);
        setTimeout(() => {
          let html = template.compile(newCouponHtml)({
            picUrl: qrcodeData[0].imgSrc
          });
          $('.coupon_detail').replaceWith(html);
        }, 0);
        renderMini(data, qrcodeData[0].imgSrc);
        let topLogged = false;
        $('#top_coupon_btn').hover(function () {
          if (topLogged) return;
          topLogged = true;
          cnzz.log('二维码', '展示', '顶部');
        });
        showCustomQrCode(qrcodeData[0].imgSrc, `当前商品领券立减 <strong>${data.coupon}元</strong>`);
      } else {
        showCustomQrCode(qrcodeData[0].imgSrc);
      }
    }, true);
  } else {
    $('.gwd-topbar-left').append(template.compile(html)({
      price: data.coupon,
      url: data.click_url,
      tle: tle,
      isShowPic: false
    }));
    cnzz.log('京东顶部优惠券', '展示');
    cnzz.log('京东中间优惠券', '展示');
    $('#top_coupon_btn').click(function () {
      cnzz.log('京东顶部优惠券', '点击');
    });
    $('#top_coupon_btn').hover(function () {
      cnzz.logOnce('京东顶部优惠券', '悬浮');
    });
    renderMini(data);
    $('#coupon_box').click(function () {
      cnzz.log('京东中间优惠券', '点击');
    });
    $('#coupon_box').hover(function () {
      cnzz.logOnce('京东中间优惠券', '悬浮');
    });
    (__webpack_require__(41761).setMet)('couponLink', {
      content: '发现' + data.coupon + '元优惠券，速领',
      url: data.click_url
    });
  }
};
const renderMini = (info, qr = null) => {
  let data = {
    coupon: {
      coupon_money: info.coupon
    },
    click_url2: info.click_url
  };
  if (G.site === '360buy') {
    const CommonCouponBarMini = (__webpack_require__(84593)["default"]);
    new Vue({
      el: '#gwd-coupon-placeholder',
      render: h => h(CommonCouponBarMini, {
        props: {
          type: 'link',
          icon: __webpack_require__(72966),
          text: '当前商品领券立减' + info.coupon + '元',
          mainColor: '#fd0937',
          href: info.click_url,
          secondColor: '#ff5e79'
        }
      })
    });
    return;
  }
  let html = __webpack_require__(33113);
  let views = template.compile(html)({
    data: data,
    isShowPic: !!qr,
    picUrl: qr
  });
  $('#gwd_minibar').after(views);
  if (!qr) return;
  setTimeout(() => {
    let newCouponHtml = __webpack_require__(80305);
    setTimeout(() => {
      let html = template.compile(newCouponHtml)({
        picUrl: qr
      });
      $('.minicoupon_detail').replaceWith(html);
    }, 0);
  }, 0);
  let logged = false;
  $('#coupon_box').hover(function () {
    if (logged) return;
    logged = true;
    cnzz.log('二维码', '展示', '中间');
  });
};

/***/ }),

/***/ 11418:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(60877);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("1e325817", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 11433:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

const Mode = __webpack_require__(30208)

/**
 * Array of characters available in alphanumeric mode
 *
 * As per QR Code specification, to each character
 * is assigned a value from 0 to 44 which in this case coincides
 * with the array index
 *
 * @type {Array}
 */
const ALPHA_NUM_CHARS = [
  '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
  'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
  'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
  ' ', '$', '%', '*', '+', '-', '.', '/', ':'
]

function AlphanumericData (data) {
  this.mode = Mode.ALPHANUMERIC
  this.data = data
}

AlphanumericData.getBitsLength = function getBitsLength (length) {
  return 11 * Math.floor(length / 2) + 6 * (length % 2)
}

AlphanumericData.prototype.getLength = function getLength () {
  return this.data.length
}

AlphanumericData.prototype.getBitsLength = function getBitsLength () {
  return AlphanumericData.getBitsLength(this.data.length)
}

AlphanumericData.prototype.write = function write (bitBuffer) {
  let i

  // Input data characters are divided into groups of two characters
  // and encoded as 11-bit binary codes.
  for (i = 0; i + 2 <= this.data.length; i += 2) {
    // The character value of the first character is multiplied by 45
    let value = ALPHA_NUM_CHARS.indexOf(this.data[i]) * 45

    // The character value of the second digit is added to the product
    value += ALPHA_NUM_CHARS.indexOf(this.data[i + 1])

    // The sum is then stored as 11-bit binary number
    bitBuffer.put(value, 11)
  }

  // If the number of input data characters is not a multiple of two,
  // the character value of the final character is encoded as a 6-bit binary number.
  if (this.data.length % 2) {
    bitBuffer.put(ALPHA_NUM_CHARS.indexOf(this.data[i]), 6)
  }
}

module.exports = AlphanumericData


/***/ }),

/***/ 11445:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(80300);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("7a7be5e6", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 11456:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(72839);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("caae43f0", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 11496:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.T = void 0;
__webpack_require__(3362);
var _MemberCouponTop = _interopRequireDefault(__webpack_require__(16112));
var _MemberCouponMini = _interopRequireDefault(__webpack_require__(4104));
var _MemberCouponMiniBjg = _interopRequireDefault(__webpack_require__(73222));
var _MemberCouponBottomBjg = _interopRequireDefault(__webpack_require__(63372));
// 会员券

const getMemberCoupon = async (shopId, userId) => {
  return await (__webpack_require__(49388).rawGet)(`https://alisitecdn.m.taobao.com/minidata/shop/index/downgrade.htm?pathInfo=shop/index2&userId=${userId}&shopId=${shopId}`);
};
const render = () => {
  (__webpack_require__(41761).setMet)('couponLink', {
    content: '发现店铺优惠券，速领',
    url: `https://tb.gwdang.com/extension/qrpage?dp_id=${G.dp.dpId}&tag=2`
  });
  const divTop = document.createElement('div');
  $('.gwd-topbar-left').append(divTop);
  new Vue({
    el: divTop,
    render: h => h(_MemberCouponTop.default, {
      props: {
        tag: 2
      }
    })
  });

  // const divBottom = document.createElement('div');
  // $('#gwd_minibar').after(divBottom);
  new Vue({
    el: '#gwd-coupon-placeholder',
    render: h => h(_MemberCouponMini.default, {
      props: {
        tag: 2
      }
    })
  });
};
const renderBjg = () => {
  new Vue({
    el: '#bjg-coupon-placeholder',
    render: h => h(_MemberCouponMiniBjg.default, {
      props: {
        tag: 8
      }
    })
  });
  let el = document.createElement('DIV');
  $('.bjg-coupon-space').after(el);
  new Vue({
    el: el,
    render: h => h(_MemberCouponBottomBjg.default, {
      props: {
        tag: 8
      }
    })
  });
};

// Define the init function first
const init = () => {
  return new Promise((resolve, reject) => {
    if (!G.aliSite) {
      resolve(false);
    }
    const metaStr = $('meta[name="microscope-data"]').attr('content');
    if (!metaStr) {
      resolve(false);
      return;
    }
    const parsedMetaStr = metaStr.split(';').map(item => {
      const arr = item.split('=');
      return {
        key: arr[0],
        value: arr[1]
      };
    });
    const meta = {};
    parsedMetaStr.forEach(item => {
      meta[item.key.trim()] = item.value;
    });
    getMemberCoupon(meta.shopId, meta.userid).then(res => {
      if (JSON.stringify(res).indexOf('market.m.taobao.com/app/cem-fe/benefit-exchange/benefit-exchange/index.html') > -1) {
        (__webpack_require__(5300).logOnce)('淘宝会员券:展示');
        if (G.from_device === 'bijiago' || G.from_device === 'biyibi') {
          renderBjg();
        } else {
          render();
        }
        resolve(true);
      } else {
        resolve(false);
      }
    });
  });
};

// Export the named function
exports.T = init;

/***/ }),

/***/ 11499:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Imljb24vc3RhciI+CjxwYXRoIGlkPSJWZWN0b3IiIGQ9Ik0xMS40OTk1IDVMOS4yMDcxIDkuNTk3MDFMNCAxMC4zMzg4TDcuNzcyMDkgMTMuOTYxOUw2Ljg3MDQgMTlMMTEuNDk5NSAxNi41NzU1TDE2LjEyOTUgMTlMMTUuMjM0NSAxMy45NjE5TDE5IDEwLjMzODhMMTMuODIxNyA5LjU5NzAxTDExLjQ5OTUgNVoiIHN0cm9rZT0iI0ZGNjEzMiIgc3Ryb2tlLXdpZHRoPSIxLjgiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9nPgo8L3N2Zz4K";

/***/ }),

/***/ 11521:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAwCAYAAAB0WahSAAAAAXNSR0IArs4c6QAABs5JREFUWMO9mF2oHWcZhZ/1zZx9Ak1Tq9BCJZAq+MNBglppEQTbCyG96k1zISilCFKsIBEpraDBWhUs/qD3FlS0CQriDxRRiiANEoSIAQ1UvRBJm+Qk5/T87Zk93/Lim733N7Nnn2NT7IbNnt/3Xe9a632/2SPewMf/PH0ohtu/DLoR4vp3dffpvZuNVb4RIJEj33b0I5JXI0eOAY/dbCzdFBMXHx5NVte+Kocv2E5BJOTJM6EOX9Ha6epNYWTC279OtXHKs1psgwxfjGpWgCdeNyO+9OxnaaoX9N6nLh3IxPkPrkzC2tMOxRMCvJTm5lvlpd0ndfLsgczYFn/95jvkvz1r0A3wT2n8HBf/dF4nzzYLN5x5uKiPVZ+mKL6HLYwUcDTCIAkbJAOKxMmplX+tfn8oVpL39GF0y30EfQb4aAskL0frOJ5D+iNRf6EI/2Z34z/V1u8fQ/oSSFhCti2BUZsdnGIZgSOO3xjV73yao2tHQEep/W6C3of1IcS9EG/BUvKIMK3f0rbfCnoQOIFs4uTqpH75quut9yDCXBDNjO656XPzB9mPT26tHihrvY2gOxFHMDO86fLksXIGYi7wtCqwQ7N14Y7Jxkt34Pj6uwuOxOvn7sMF5a3H8/iaYZaNUdktpKOSmq0LVFdfACb/wxxI1A522fpvAVMePg4EIRsMbmUG5MlrTtV6DsZ9UAPbMzu4ByG/3737+7Hb31BSeusiTHaBiN0ALSjH9KXJttvf9jrnx3rn6J0bvrbdLt5CyWQLN9uLQTrb/eTN8DUZaJOf7xfTZAAbNIqUjhXE8WKwDJDzAINAmzZ500qWA3WWOAeagXNFSQ6kDez9mGEgaH5dD9y0ADsietdOf2NNiSscq/1pzNkhIscuS/tUPqN/6sE+Y47QVJSO45aRZnk10+Sz6rwInFyiYUYG/WFjKkpcDwOZ0Ti/achsw8nbygfB5tK3RTYzj1QdIF6gtznYI0sA5ub3ANvpt6YkjnHcG/DHsFcSnf250OzTSQcwRYQ4piTWLSPDrTs97r7eC93Ul3RZ8i5wEyFWqWuIewOaD0zUvtvJq170wlDyxYHoJE1q3aojiYfkGayoR/3CeG/2MXvWxrFqPdLsDY7zpF/ucIMn+1DdBWOWzaTe8QSkBtf7DrLUbnmyvp8GJMqZic3SJcKdEd+MO2inOqqv6YAXPOid4bb3QiG9EU8cz2nMXO5cz17LecGYwzOm66M8hmmftpECpZu2a5atqoNzYbnm3oe92bMOAgKEgFTgsEKJx9jVopNzRvIFbWFse6Dls3s6yQUqQQUQkAIoIK1QOtbJI7M+X7b4LRv1y2RKtKOQqldAFGl/dqzdDyNKvNd6ZNm4XsZUHGjFLHmWUC0D8+PZPgVoREmcYI8HWi1RrYWnqZyN7AE5Sy56yVS0shSD+wqjNNCSNHFxbMe2+mWV5/ROK8+k6J9fem2SpgKPh0d2Xrnb/3MKLf0FImAVyXQso7137YyJBMQR4vbm7OHZdtRw5bSoy0HNdWDlIeuSuSSOptnapdnesatXKOXKMVbqDLNZ5UUncCfpkP7tuaUMKeBJpL6xQbOzi5sGKUgSpWMlYtVqrlR5FkTLDNdrRVFAGAIasCHujqk2Nol7ewglxRSQhCTKaXKpsAnqUJqCG4IWKyy6HSL1wBVgUV3fYLK1hSc1whZSSt7+Y27BlIRVFA7N9e05WqHA7s6AYV/MQTZ7Y+rNazTb2y39ar+hfZcihaDp0GmBaAWFFZtCyquaOb5sF6YCQuH0kiZnZe6Pyc4u1fo14niX9P4otAlDG5tZ4hxECHIZipFjOCQoZgvRzHTThckBhWA0ZWcqgQzhcn19fVxt3DgWq/E0CbQmDGEmCCHIthRCSC8B5qyoNCOhUStDYsKpQ1pvFCIErCBUoBCSlwj/CEX4QRObn2xefmW0WuhjUvg86GgKLaSUeCoNrT/S+6YuK6rOPxg9flWoSKxTLLSdFKZG3rbDuSLoa+Xma3/Q/S9Oui/8KG40xz4ilU8q6AFQKckp+xQMJEaUeUdofP4hU7/a7Zr5Mm0UMMW64fmi8Y9W7v3VSwe+sjqzNtosxh8glh8P8ich3DZNOJWnA0Kyqj+ftOsrwJz2tnVt9PdQ6IdlE7+je365c1Nvqc+sHd4p+JyCHsHcraCQ4mdAANUXPhHj+IrSKhhswhiK35j43Lrj7+66SQBDgMYj7lcoHwWdAK1OzRqCrOrCo3Z9zQrFFcyvo1eeOXTP8y/zf/zs/fz4u8pRccroIUl3JrNefPxF6ss/293Rj2/78Nl13sTP9i/ef9fqaOVEMJ/6LxJS0Lb6LJgOAAAAAElFTkSuQmCC";

/***/ }),

/***/ 11736:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNzRweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgNzQgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+57yW57uEPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iNTAlIiB5MT0iMCUiIHgyPSI1MCUiIHkyPSIxMDAlIiBpZD0ibGluZWFyR3JhZGllbnQtMSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRjVFNzkiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZEMDkzNyIgb2Zmc2V0PSIxMDAlIj48L3N0b3A+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLllYblk4HliLgt5oKs5YGcIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTIwMS4wMDAwMDAsIC0zNDIuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyMDEuMDAwMDAwLCAzNDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNzIsMCBDNzMuMTA0NTY5NSwtMi4wMjkwNjEyNWUtMTYgNzQsMC44OTU0MzA1IDc0LDIgTDczLjk5OTkxMzUsNi4yNTYwODkxNSBDNzIuMjUyMTcwMSw2Ljg3Mzg2ODIgNzEsOC41NDA3MDQxIDcxLDEwLjUgQzcxLDEyLjQ1OTI5NTkgNzIuMjUyMTcwMSwxNC4xMjYxMzE4IDczLjk5OTkxMzUsMTQuNzQzOTEwOCBMNzQsMTggQzc0LDE5LjEwNDU2OTUgNzMuMTA0NTY5NSwyMCA3MiwyMCBMMiwyMCBDMC44OTU0MzA1LDIwIDEuMzUyNzA3NWUtMTYsMTkuMTA0NTY5NSAwLDE4IEwwLjAwMDQ5ODMzMTI0MywxNC43NDM3NjUzIEMxLjc0ODAyNjU4LDE0LjEyNTg3IDMsMTIuNDU5MTQyIDMsMTAuNSBDMyw4LjU0MDg1Nzk4IDEuNzQ4MDI2NTgsNi44NzQxMzAwMiAwLjAwMDQ5ODMzMTI0Myw2LjI1NjIzNDczIEwwLDIgQy0xLjM1MjcwNzVlLTE2LDAuODk1NDMwNSAwLjg5NTQzMDUsMi4wMjkwNjEyNWUtMTYgMiwwIEw3MiwwIFoiIGlkPSLlvaLnirbnu5PlkIgiIGZpbGw9InVybCgjbGluZWFyR3JhZGllbnQtMSkiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0zOSwxIEwzOSwxOSBMMywxOSBDMS44OTU0MzA1LDE5IDEsMTguMTA0NTY5NSAxLDE3IEwwLjk5OTUzNjA1MSwxNS4yOTMwMzQ1IEMyLjY3MTI3OTEsMTQuMzQ5NDQ5MSAzLjgsMTIuNTU2NTM4IDMuOCwxMC41IEMzLjgsOC40NDM0NjIwMSAyLjY3MTI3OTEsNi42NTA1NTA5MiAwLjk5OTUzNjA1MSw1LjcwNjk2NTQ3IEwxLDMgQzEsMS44OTU0MzA1IDEuODk1NDMwNSwxIDMsMSBMMzksMSBaIiBpZD0i5b2i54q257uT5ZCIIiBmaWxsPSIjRkZGM0VDIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==";

/***/ }),

/***/ 12027:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-row[data-v-07d1070f] {\n  display: flex;\n  flex-direction: row;\n}\n.gwd-inline-row[data-v-07d1070f] {\n  display: inline-flex;\n  flex-direction: row;\n}\n.gwd-column[data-v-07d1070f] {\n  display: flex;\n  flex-direction: column;\n}\n.gwd-inline-column[data-v-07d1070f] {\n  display: inline-flex;\n  flex-direction: column;\n}\n.gwd-align[data-v-07d1070f] {\n  align-content: center;\n  align-items: center;\n}\n.gwd-jcc[data-v-07d1070f] {\n  justify-content: center;\n}\n.gwd-jic[data-v-07d1070f] {\n  justify-items: center;\n}\n.gwd-button[data-v-07d1070f] {\n  outline: none;\n  border: none;\n}\n.bjg-bar-button[data-v-07d1070f] {\n  font-size: 0;\n}\n.bjg-hover-bg[data-v-07d1070f] {\n  background: #fffbef;\n}\n.bjg-bar-button[data-v-07d1070f]:hover {\n  background: #fffbef;\n  cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window[data-v-07d1070f] {\n  display: block;\n}\n.mainbar-fold .bjg-bar-button[data-v-07d1070f],\n.mainbar-fold #top_coupon_btn[data-v-07d1070f],\n.mainbar-fold .rinfo-btn[data-v-07d1070f],\n.mainbar-fold .gwd-bottom-tmall[data-v-07d1070f] {\n  display: none!important;\n}\n.gwd-font12[data-v-07d1070f] {\n  font-size: 12px;\n}\n.gwd-font14[data-v-07d1070f] {\n  font-size: 14px;\n}\n.gwd-red[data-v-07d1070f] {\n  color: #ff3532;\n}\n.gwd-red-bg[data-v-07d1070f] {\n  background: #ff3532;\n}\n.gwd-hui333[data-v-07d1070f] {\n  color: #333333;\n}\n.gwd-hui999[data-v-07d1070f] {\n  color: #999999;\n}\n.gwd-font10[data-v-07d1070f] {\n  font-size: 12px;\n  transform: scale(0.8333);\n  transform-origin: bottom center;\n}\n.gwd-font11[data-v-07d1070f] {\n  font-size: 12px;\n  transform: scale(0.91666);\n  transform-origin: bottom center;\n}\n.gwd-font9[data-v-07d1070f] {\n  font-size: 12px;\n  transform: scale(0.75);\n  transform-origin: bottom center;\n}\n.gwd-hoverable[data-v-07d1070f]:hover {\n  background: #edf1f2;\n}\n.right-info > *[data-v-07d1070f] {\n  border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit[data-v-07d1070f]:hover {\n  color: #e03024 !important;\n}\n.gwd-button[data-v-07d1070f]:hover {\n  filter: brightness(1.1);\n}\n.gwd-button[data-v-07d1070f] {\n  padding-top: 1px;\n  padding-bottom: 1px;\n}\n.gwd-button[data-v-07d1070f]:active {\n  filter: brightness(0.9);\n}\n.gwd-fadeout-5s[data-v-07d1070f] {\n  opacity: 0;\n  transition: opacity 5s;\n}\n.gwd-scrollbar[data-v-07d1070f]::-webkit-scrollbar {\n  width: 6px;\n  border-radius: 17px;\n}\n.gwd-scrollbar[data-v-07d1070f]::-webkit-scrollbar-thumb {\n  border-radius: 17px;\n  background: #999;\n}\n#gwdang_main[data-v-07d1070f],\n.gwdang-main[data-v-07d1070f],\n.bjgext-detail[data-v-07d1070f] {\n  font-size: 12px;\n}\n#gwdang_main button[data-v-07d1070f],\n.gwdang-main button[data-v-07d1070f],\n.bjgext-detail button[data-v-07d1070f] {\n  text-align: center;\n}\n.gwd-width-100[data-v-07d1070f] {\n  width: 100%;\n}\n.gwd-overlay[data-v-07d1070f] {\n  font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n  font-size: 0;\n  position: fixed;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  background: rgba(0, 0, 0, 0.35);\n  z-index: 999999999;\n}\n.gwd-font-pfm[data-v-07d1070f] {\n  font-family: 'PingFangSC-Medium';\n  font-weight: normal!important;\n}\n@font-face {\n  font-family: 'PingFangSC-Medium';\n  src: local('PingFangSC-Medium');\n}\n.gwd-font-pfm[data-v-07d1070f] {\n  font-family: local('PingFangSC-Medium'), system-ui;\n  font-weight: bold;\n}\n#gwd_minibar svg[data-v-07d1070f],\n.gwdang-main svg[data-v-07d1070f],\n#bjgext_mb_bg svg[data-v-07d1070f],\n#bjgext_mainbar svg[data-v-07d1070f] {\n  fill: transparent;\n}\n.gwd-common-font[data-v-07d1070f] {\n  font-family: 'PingFang SC', 'Microsoft YaHei', '\\5FAE\\8F6F\\96C5\\9ED1', 'Hiragino Sans GB', 'WenQuanYi Micro Hei';\n}\n.gwd-taobao[data-v-07d1070f] {\n  margin-top: 20px;\n}\n.gwd-taobao span[data-v-07d1070f] {\n  color: #ff4400;\n}\n.gwd-jd[data-v-07d1070f] {\n  margin-top: 20px;\n}\n.gwd-jd span[data-v-07d1070f] {\n  color: #e2231a;\n}\na[data-v-07d1070f] {\n  white-space: nowrap;\n  position: relative;\n  height: 24px;\n  font-family: 'Microsoft YaHei';\n}\na[data-v-07d1070f]:hover {\n  text-decoration: none;\n  cursor: pointer;\n}\na:hover .gwd-tooltip[data-v-07d1070f] {\n  display: block;\n}\n.gwd-coupon[data-v-07d1070f] {\n  height: 24px;\n  box-sizing: border-box;\n  min-width: 106px;\n}\n.gwd-coupon[data-v-07d1070f] {\n  background-size: contain;\n  padding-left: 8px;\n  padding-right: 8px;\n}\n.gwd-coupon[data-v-07d1070f]:before,\n.gwd-coupon[data-v-07d1070f]:after {\n  content: '';\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  width: 9px;\n  background-size: contain;\n}\n.gwd-coupon[data-v-07d1070f]:before {\n  left: 0;\n}\n.gwd-coupon[data-v-07d1070f]:after {\n  right: 0;\n  transform: rotate(180deg);\n}\n.gwd-coupon.gwd-taobao[data-v-07d1070f] {\n  background-image: url(" + __webpack_require__(18378) + ");\n}\n.gwd-coupon.gwd-taobao[data-v-07d1070f]:before,\n.gwd-coupon.gwd-taobao[data-v-07d1070f]:after {\n  background-repeat: no-repeat;\n  background-image: url(" + __webpack_require__(24806) + ");\n}\n.gwd-coupon.gwd-taobao[data-v-07d1070f]:hover {\n  background-image: url(" + __webpack_require__(66583) + ");\n}\n.gwd-coupon.gwd-taobao[data-v-07d1070f]:hover:before,\n.gwd-coupon.gwd-taobao[data-v-07d1070f]:hover:after {\n  background-image: url(" + __webpack_require__(52611) + ");\n}\n.gwd-coupon.gwd-jd[data-v-07d1070f] {\n  background-image: url(" + __webpack_require__(34386) + ");\n}\n.gwd-coupon.gwd-jd[data-v-07d1070f]:before,\n.gwd-coupon.gwd-jd[data-v-07d1070f]:after {\n  background-image: url(" + __webpack_require__(2398) + ");\n  background-size: cover;\n  background-repeat: no-repeat;\n}\n.gwd-coupon.gwd-jd[data-v-07d1070f]:hover {\n  background-image: url(" + __webpack_require__(58223) + ");\n}\n.gwd-coupon.gwd-jd[data-v-07d1070f]:hover:before,\n.gwd-coupon.gwd-jd[data-v-07d1070f]:hover:after {\n  background-image: url(" + __webpack_require__(68267) + ");\n}\n.gwd-redpack[data-v-07d1070f] {\n  padding-right: 5px;\n  padding-left: 8px;\n  background: white;\n}\n.gwd-redpack.gwd-taobao[data-v-07d1070f] {\n  border: 1px solid #ff4400;\n}\n.gwd-redpack.gwd-taobao[data-v-07d1070f]:hover {\n  background: #fff0e7;\n}\n.gwd-redpack.gwd-jd[data-v-07d1070f] {\n  border: 1px solid #f9d2d3;\n}\n.gwd-redpack.gwd-jd[data-v-07d1070f]:hover {\n  background: #fff0e7;\n}\n.gwd-tooltip[data-v-07d1070f] {\n  position: absolute;\n  top: -30px;\n  left: 50%;\n  transform: translateX(-50%);\n  width: 60px;\n  height: 22px;\n  line-height: 22px;\n  text-align: center;\n  z-index: 1;\n  color: #3c3c3c;\n  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n  display: none;\n  background: white;\n  border-radius: 2px;\n}\n.gwd-tooltip span[data-v-07d1070f] {\n  color: #3c3c3c;\n}\n.gwd-tooltip[data-v-07d1070f]:after {\n  /* a triangle at bottom */\n  content: \" \";\n  position: absolute;\n  bottom: -10px;\n  left: 50%;\n  margin-left: -5px;\n  border-width: 5px;\n  border-style: solid;\n  border-color: transparent transparent white transparent;\n  transform: rotate(180deg);\n}\n", ""]);

// exports


/***/ }),

/***/ 12041:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

// TODO: Remove from `core-js@4`
__webpack_require__(79978);


/***/ }),

/***/ 12078:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-common-login.gwd-mini .gwd-main-login[data-v-fd8cca22],\ngwd-common-login.gwd-trend-top .gwd-main-login[data-v-fd8cca22] {\n  box-sizing: border-box;\n}\n.gwd-common-login.gwd-mini .gwd-main-login .gwd-login-methods[data-v-fd8cca22],\ngwd-common-login.gwd-trend-top .gwd-main-login .gwd-login-methods[data-v-fd8cca22] {\n  padding-left: 21px;\n  padding-right: 21px;\n}\n.gwd-common-login.gwd-mini .gwd-main-login .gwd-login-methods button[data-v-fd8cca22],\ngwd-common-login.gwd-trend-top .gwd-main-login .gwd-login-methods button[data-v-fd8cca22] {\n  font-size: 12px;\n  color: #666666;\n}\n.gwd-common-login.gwd-mini .gwd-main-login .gwd-login-methods .gwd-login-active[data-v-fd8cca22],\ngwd-common-login.gwd-trend-top .gwd-main-login .gwd-login-methods .gwd-login-active[data-v-fd8cca22] {\n  color: #333333;\n}\n.gwd-common-login.gwd-mini .gwd-main-login button[data-v-fd8cca22],\ngwd-common-login.gwd-trend-top .gwd-main-login button[data-v-fd8cca22] {\n  width: 340px;\n}\n.gwd-common-login.gwd-mini .gwd-main-login button.gwd-shorter[data-v-fd8cca22],\ngwd-common-login.gwd-trend-top .gwd-main-login button.gwd-shorter[data-v-fd8cca22] {\n  width: 270px;\n}\n", ""]);

// exports


/***/ }),

/***/ 12197:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _default = exports.A = {
  props: ['data', 'type'],
  data() {
    return {
      rendered: false
    };
  },
  methods: {
    draw() {
      if (this.rendered) return;
      this.rendered = true;
      __webpack_require__(64133)({
        el: this.$refs.plotArea,
        msg: this.data.store[0],
        unit: ' ',
        bg: '#1e1e1e'
      });
    }
  },
  mounted() {
    console.log(this.data);
  },
  computed: {
    priceStatusText() {
      return ['历史最低', '价格下降', '价格平稳', '价格上涨'][this.data.price_status + 2];
    },
    priceTrendIcon() {
      return [`${G.s_server}/images/extensions/newbar/fall@2x.png`, `${G.s_server}/images/extensions/newbar/fall@2x.png`, `${G.s_server}/images/extensions/newbar/stable@2x.png`, `${G.s_server}/images/extensions/newbar/rise@2x.png`][this.data.price_status + 2];
    }
  }
};

/***/ }),

/***/ 12211:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var fails = __webpack_require__(79039);

module.exports = !fails(function () {
  function F() { /* empty */ }
  F.prototype.constructor = null;
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
  return Object.getPrototypeOf(new F()) !== F.prototype;
});


/***/ }),

/***/ 12282:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['link']
};

/***/ }),

/***/ 12301:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', isAliSite = $data.isAliSite, nostore = $data.nostore, $escape = $imports.$escape, data = $data.data, lowestTime = $data.lowestTime, isGwd = $data.isGwd, site = $data.site, $each = $imports.$each, $value = $data.$value, $index = $data.$index;
    $$out += '<div class="price_tip_detail ';
    if (isAliSite) {
        $$out += ' alitip';
    }
    $$out += ' ';
    if (nostore) {
        $$out += ' nostoretip ';
    }
    $$out += '">\n  <div class="tip-box-left">\n    <div class="tip-title">最近180天價格歷史</div>\n    <div class="tip-price-status status';
    $$out += $escape(data.trend.store[0].price_status);
    $$out += '">\n      <em class="tip-bg"></em>\n      <span>';
    $$out += $escape(data.trend.store[0].status_tle);
    $$out += '</span>\n    </div>\n    <div class="highest-lowest-box">\n      ';
    if (data.trend.store[0].nowprice) {
        $$out += '\n      <span class="tip-now-btn" style="color: #3fc0f0">現價:<span class="fontSizec" style="color: #3fc0f0">';
        $$out += $escape(data.trend.store[0].nowprice);
        $$out += '</span></span>\n      ';
    } else {
        $$out += '\n      <span class="tip-highest-btn">最高:<span class="fontSizec">';
        $$out += $escape(data.trend.store[0].max_price);
        $$out += '</span></span>\n      <span class="tip-lowest-btn">最低:<span class="fontSizec">';
        $$out += $escape(data.trend.store[0].min_price);
        $$out += '</span></span>\n      ';
    }
    $$out += '\n      <span class="tip-lowest-time fontSizec">';
    $$out += $escape(lowestTime);
    $$out += '</span>\n    </div>\n    <div class="tip-chart" id="gwd_price_tip_trend"></div>\n    ';
    if (!isAliSite) {
        $$out += '\n    <div class="tip-info-btm">\n      <a class="tip-info-store">\n        <em class="tip-bg"></em>\n        <span>';
        $$out += $escape(data.site_name);
        $$out += '</span>\n      </a>\n      ';
        if (isGwd && site === '360buy') {
            $$out += '\n      ';
            $each(data.more, function ($value, $index) {
                $$out += '\n      <a href="';
                $$out += $escape($value.url);
                $$out += '" class="tip-info-promo">\n        <em class="tip-bg"></em>\n        <span>';
                $$out += $escape($value.title);
                $$out += '</span>\n      </a>\n      ';
            });
            $$out += '\n      ';
        }
        $$out += '\n    </div>\n    ';
    }
    $$out += '\n  </div>\n  ';
    if (!isAliSite && !nostore) {
        $$out += '\n  <div class="tip-box-right">\n    <p>商城比價</p>\n    <ul>\n      ';
        $each(data.store, function ($value, $index) {
            $$out += '\n      <li>\n        <a href="';
            $$out += $escape($value.url);
            $$out += '" class="tip-com-item" target="_blank">\n          <img src="';
            $$out += $escape($value.icon_url);
            $$out += '" alt="';
            $$out += $escape($value.site_name);
            $$out += '" title="';
            $$out += $escape($value.site_name);
            $$out += '">\n          <span class="fontSizec">';
            $$out += $escape($value.price);
            $$out += '</span>\n        </a>\n      </li>\n      ';
        });
        $$out += '\n    </ul>\n    ';
        if (isGwd) {
            $$out += '\n    <a class="tip-com-all" href="';
            $$out += $escape(data.more_link);
            $$out += '" target="_blank">';
            $$out += $escape(data.more_tle);
            $$out += '</a>\n    ';
        }
        $$out += '\n  </div>\n  ';
    }
    $$out += '\n  <style type="text/css">\n    .tip-bg {\n      background: url("https://cdn.gwdang.com/images/extensions/xbt/mini-icon.png") 0px 0px no-repeat;\n    }\n    .price_tip_detail {\n      height: 238px;\n    }\n    .price_tip_detail.alitip {\n      height: 218px;\n    }\n    #gwd_price_tip_detail, #gwd_price_tip_detail * {\n      font-family: "Microsoft YaHei";\n      box-sizing: content-box;\n    }\n    #bjgou_price_tip_detail, #bjgou_price_tip_detail * {\n      font-family: "Microsoft YaHei";\n      box-sizing: content-box;\n    }\n    .tip-box-left {\n      float: left;\n      width: 336px;\n      height: 100%;\n      margin-left: 6px;\n      margin-right: 5px;\n      position: relative;\n    }\n    .nostoretip .tip-box-left{\n      margin-left: 17px;\n      margin-right: 17px;\n    }\n    #gwd_price_tip_detail .fontSizec {\n      font-family: Helvetica;\n    }\n    #bjgou_price_tip_detail .fontSizec {\n      font-family: Helvetica;\n    }\n    .tip-title {\n      height: 15px;\n      line-height: 15px;\n      margin-top: 14px;\n      margin-bottom: 13px;\n      text-align: center;\n      width: 100%;\n      font-weight: bold;\n      float: left;\n      font-size: 12px;\n      color: #5E707C;\n    }\n    .tip-price-status {\n      float: left;\n      width: 70px;\n      height: 16px;\n      margin-left: 8px;\n    }\n    .tip-price-status em {\n      width: 16px;\n      height: 10px;\n      float: left;\n      margin-top: 3px;\n    }\n    .tip-price-status span {\n      float: left;\n      margin-left: 5px;\n      width: 48px;\n      height: 16px;\n      color: #5E707C;\n      font-size: 12px;\n      line-height: 16px;\n    }\n    .tip-highest-btn, .tip-now-btn {\n      color: #E4393C;\n      font-weight: bold;\n      margin-left: 14px;\n      margin-right: 10px;\n    }\n    .highest-lowest-box .tip-now-btn {\n      color: #3FC0F0;\n      margin-right: 0px;\n    }\n    .tip-lowest-btn {\n      color: #35bd67;\n      font-weight: bold;\n    }\n    .tip-lowest-time {\n      font-size: 12px;\n      color: #9D9D9D;\n      float: left;\n      line-height: 18px!important;\n      margin-left: 2px;\n    }\n    .highest-lowest-box {\n      float: left;\n      height: 16px;\n      line-height: 16px;\n      width: 254px;\n    }\n    .highest-lowest-box>span {\n      float: left;\n      line-height: 16px;\n      font-size: 12px;\n    }\n    .tip-info-btm {\n      font-size: 12px;\n      float: left;\n      height: 16px;\n      width: 324px;\n      line-height: 16px;\n      margin-top: 10px;\n    }\n    .tip-info-btm a {\n      float: left;\n    }\n    .tip-info-btm span {\n      float: left;\n    }\n    .tip-info-store {\n      cursor: default!important;\n    }\n    .tip-info-store em {\n      width: 10px;\n      height: 10px;\n      float: left;\n      margin-left: 31px;\n      margin-right: 5px;\n      margin-top: 5px!important;\n      background-position: -39px -23px;\n    }\n    a.tip-info-store span{\n      color: #5E707C;\n    }\n    .tip-info-promo em {\n      width: 12px;\n      height: 12px;\n      float: left;\n      margin-left: 24px;\n      margin-right: 5px;\n      background-position: -25px -22px;\n    }\n    .tip-info-promo span{\n      color: #48BEFE;\n    }\n    .tip-info-promo span:hover {\n      text-decoration: underline;\n    }\n    .tip-info-btm em {\n      margin-top: 3px;\n    }\n    .tip-box-right {\n      float: left;\n      width: 111px;\n      height: 100%;\n      border-left: 1px solid #F4F7F9;\n    }\n    .tip-box-right ul {\n      float: left;\n      margin: 0px;\n      margin-top: 12px;\n      padding: 0px;\n    }\n    .tip-box-right ul li {\n      height: 30px;\n      width: 113px;\n      float: left;\n      line-height: 30px;\n      list-style: none;\n      margin-top: 1px;\n    }\n    .tip-box-right ul li:first-child {\n      margin-top: 0px;\n    }\n    .tip-box-right ul li:hover {\n      background: #EDF5F8;\n    }\n    #gwd_price_tip_detail .tip-com-all, #bjgou_price_tip_detail .tip-com-all {\n      float: left;\n      margin-left: 15px;\n      margin-top: 16px;\n      color: #6B8393;\n      line-height: 13px;\n      height: 13px;\n      font-size: 12px;\n    }\n    #gwd_price_tip_detail .tip-com-all:hover, #bjgou_price_tip_detail .tip-com-all:hover{\n      color: #48BEFE;\n    }\n    .tip-box-right p{\n      font-size: 12px;\n      color: #5E707C;\n      font-weight: bold;\n      height: 15px;\n      width: 100%;\n      text-align: center;\n      line-height: 15px;\n      margin: 0px;\n      margin-top: 14px;\n    }\n    .tip-com-item {\n      float: left;\n      height: 30px;\n      width: 100%;\n      line-height: 30px;\n    }\n    .tip-com-item img {\n      height: 16px;\n      width: 16px;\n      float: left;\n      margin-left: 15px;\n      margin-right: 7px;\n      margin-top: 7px;\n    }\n    .tip-com-item span{\n      font-size: 12px;\n      color: #6B8393;\n    }\n    .tip-com-item, .tip-com-item span, .tip-com-all {\n      text-decoration: none!important;\n    }\n    .tip-chart {\n      width: 336px;\n      height: 126px;\n      margin-top: 6px;\n    }\n    .tip-chart svg .highcharts-series path {\n      fill: none;\n    }\n    .tip-chart .highcharts-tooltip path {\n      fill: white;\n    }\n  </style>\n  ';
    if (!isGwd) {
        $$out += '\n  <style>\n    .price_tip_detail {\n      height: 220px;\n    }\n\n    .tip-price-status em {\n      background-size: contain!important;\n      background-repeat: no-repeat!important;\n    }\n\n    .tip-price-status.status-1 em {\n      background: url(https://cdn.bijiago.com/images/extensions/bijiago/trend_down@2x.png);\n    }\n    .tip-price-status.status-2 em {\n      background: url(https://cdn.bijiago.com/images/extensions/bijiago/trend_lowest@2x.png);\n    }\n    .tip-price-status.status0 em {\n      background: url(https://cdn.bijiago.com/images/extensions/bijiago/trend_stable@2x.png);\n    }\n    .tip-price-status.status1 em {\n      background: url(https://cdn.bijiago.com/images/extensions/bijiago/trend_up@2x.png);\n    }\n  </style>\n  ';
    } else {
        $$out += '\n  <style>\n    .tip-price-status.status-1 em {\n      background-position: -5px -5px;\n    }\n    .tip-price-status.status-2 em {\n      background-position: -71px -5px;\n    }\n    .tip-price-status.status0 em {\n      background-position: -49px -5px;\n    }\n    .tip-price-status.status1 em {\n      background-position: -26px -5px;\n    }\n  </style>\n  ';
    }
    $$out += '\n</div>';
    return $$out;
};

/***/ }),

/***/ 12311:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("span", {
    staticStyle: {
      flex: "1",
      display: "flex"
    }
  }, [_c("date-picker", {
    attrs: {
      "append-to-body": false,
      clearable: false
    },
    on: {
      close: _vm.close
    },
    scopedSlots: _vm._u([{
      key: "icon-calendar",
      fn: function () {
        return [_c("div")];
      },
      proxy: true
    }, {
      key: "input",
      fn: function () {
        return [_c("span", {
          staticStyle: {
            color: "#404547",
            "font-size": "13px",
            cursor: "pointer"
          }
        }, [_vm._v(_vm._s(_vm.displayDate))])];
      },
      proxy: true
    }]),
    model: {
      value: _vm.localDate,
      callback: function ($$v) {
        _vm.localDate = $$v;
      },
      expression: "localDate"
    }
  })], 1);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 12496:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _QuestHint = _interopRequireDefault(__webpack_require__(10809));
var _CollectionSettingMixin = _interopRequireDefault(__webpack_require__(34246));
var _CommonLogin = _interopRequireDefault(__webpack_require__(36664));
var _Switch = _interopRequireDefault(__webpack_require__(99230));
var _PriceInput = _interopRequireDefault(__webpack_require__(84140));
var _default = exports.A = {
  components: {
    CommonLogin: _CommonLogin.default,
    SwitchBtn: _Switch.default,
    QuestHint: _QuestHint.default,
    PriceInput: _PriceInput.default
  },
  mixins: [_CollectionSettingMixin.default]
  // props: ['money', 'price_range', 'lastprice']
};

/***/ }),

/***/ 12550:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', showFold = $data.showFold, $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, $escape = $imports.$escape, img = $data.img;
    $$out += '<div id="promo_history" class="promo-history-detail">\n  <p>历史促销优惠信息</p>\n  <div class="history-content ';
    if (showFold) {
        $$out += ' show_fold ';
    }
    $$out += '">\n    <ul>\n      ';
    $each(data, function ($value, $index) {
        $$out += '\n        <li class=" ';
        $$out += $escape($value.mark);
        $$out += ']">\n          <a class="pro-pri-item">\n            <span class="ppi-sp1 prifontf">';
        $$out += $escape($value.time2);
        $$out += '</span>\n            <span class="ppi-sp2">';
        if ($value.isDSJ) {
            $$out += ' 到手价 ';
        } else {
            $$out += ' 到手价(多件) ';
        }
        $$out += '</span>\n            <span class="ppi-sp2 ppi-fh">:</span>\n            <span class="ppi-sp3 prifontf">\xA5';
        $$out += $escape($value.price);
        $$out += '</span>\n          </a>\n          <span class="pro-coupon-item">\n            <span class="pci-tlesp">页面价</span>\n            <span class="ppi-fh">:</span>\n            <span class="prifontf">\xA5';
        $$out += $escape($value.ori_price);
        $$out += '</span>\n            \n          </span>\n          ';
        if ($value.coupon) {
            $$out += '\n          <span class="pro-coupon-item">\n            ';
            $$out += $escape($value.coupon);
            $$out += '\n          </span>\n          ';
        }
        $$out += '\n          ';
        if ($value.promotion) {
            $$out += '\n          <span class="pro-pro-item">\n            ';
            $$out += $escape($value.promotion);
            $$out += '\n          </span>\n          ';
        }
        $$out += '\n        </li>\n      ';
    });
    $$out += '\n    </ul>\n  </div>\n  <div class="gwd-mini-mask">\n    <div class="gwd-miniBlurLayer"></div>\n    <div class="gwd-miniQr">\n      <img id="qrcode-compare" src="';
    $$out += $escape(img);
    $$out += '" alt="" style="width: 100%; height: 100%">\n    </div>\n    <div class="gwd-miniSlogan">\n      <span>打开</span><a class="appName" href="https://www.gwdang.com/app/mobile" target="_blank">购物党APP</a><span>扫码查看</span>\n    </div>\n  </div>\n</div>\n\n<style type="text/css">\n  .gwd-miniSlogan {\n    position: absolute;\n    bottom: 33px;\n    text-align: center;\n    left: 0;\n    right: 0;\n    font-size: 12px;\n    color: #333333;\n    line-height: 19px;\n    height: 19px;\n  }\n\n  .gwd-miniSlogan .appName {\n    font-weight: bold;\n    margin-left: 5px;\n    margin-right: 5px;\n  }\n\n  .gwd-miniSlogan .appName:hover {\n    color: #46c9ba;\n  }\n\n  .gwd-miniQr {\n    width: 116px;\n    height: 116px;\n    position: absolute;\n    bottom: 58px;\n    left: 50%;\n    margin-left: -58px;\n    padding: 5px;\n    box-sizing: border-box;\n  }\n  .gwd-mini-mask {\n    background:linear-gradient(360deg,rgba(255,255,255,1) 0%,rgba(255,255,255,0.78) 85%,rgba(255,255,255,0.25) 100%);;\n    position: absolute;\n    bottom: 0;\n    left: 0;\n    right: 0;\n    top: 83px;\n    z-index: 1;\n  }\n  .gwd-miniBlurLayer {\n    /*width:100%;*/\n    background:rgba(255,255,255,1);\n    position: absolute;\n    top: 38px;\n    left: 32px;\n    right: 32px;\n    bottom: 24px;\n    filter: blur(10px);\n  }\n  div#mini_price_history_detail {\n    width: 667px;\n    overflow: hidden;\n  }\n  #mini_price_history_detail .discount-price-re {\n    left: 364px;\n    right: inherit;\n  }\n  .fold-bar {\n    background-color: #F4F4F4;\n    border-radius: 2px;\n    width: 158px;\n    height: 26px;\n    line-height: 26px;\n    text-align: center;\n    color: #999;\n    font-size: 12px;\n    position: absolute;\n    left: 23px;\n    cursor: pointer;\n    display: none;\n  }\n  .fold-bar:hover {\n    background-color: #f0f0f0;\n  }\n  .show_fold .fold-bar {\n    display: inline-block;\n  }\n  #promo_history span.ppi-sp1 {\n    margin-right: 20px;\n    line-height: 18px;\n  }\n  #promo_history .ppi-remind-tle {\n    float: left;\n    width: 32px;\n    height: 16px;\n    border-radius: 2px;\n    line-height: 15px;\n    text-align: center;\n    background: #5ACFFA;\n    margin-left: 4px;\n    color: #fff;\n    display: none;\n  }\n  #promo_history .now_list .ppi-remind-tle {\n    background-color: #35BC68;\n  }\n  #promo_history .now_list2 .ppi-remind-tle {\n    background-color: #FF9F22;\n  }\n  .now_list .ppi-remind-tle,.now_list2 .ppi-remind-tle, .promo-history-detail ul li:first-child .ppi-remind-tle {\n    display: inline-block;\n  }\n  #promo_history .ppi-sp2 {\n    line-height: 17px;\n  }\n  .ppi-fh {\n    height: 17px;\n    width: 4px!important;\n  }\n  .pro-coupon-item .ppi-fh+span {\n    line-height: 18px;\n  }\n  #promo_history .ppi-sp1 ,#promo_history .ppi-sp2{\n    color: #999;\n  }\n  #promo_history span.ppi-sp3 {\n    font-size: 12px;\n    color: #e4393c;\n    line-height: 18px;\n    margin-left: 3px;\n  }\n  #promo_history {\n    float: left;\n    width: 206px;\n    height: 308px;\n    position: relative;\n    overflow: hidden;\n    border-left: 1px solid #e4e4e4;\n  }\n  ._dsj_show #promo_history {\n    height: 338px;\n  }\n  #promo_history>p {\n    height: 40px;\n    margin-top: 12px;\n    width: 100%;\n    font-size: 12px;\n    color: #333333;\n    background-color: white;\n    line-height: 40px;\n    padding-left: 19px;\n    box-sizing: border-box;\n    text-align: left;\n    font-weight: bold;\n  }\n  .history-content {\n    height: 265px;\n    width: 100%;\n    overflow-x: hidden;\n    overflow-y: hidden;\n    position: relative;\n    padding-left: 19px;\n    box-sizing: border-box;\n    -webkit-touch-callout: none;\n    -webkit-user-select: none;\n    -khtml-user-select: none;\n    -moz-user-select: none;\n    -ms-user-select: none;\n    user-select: none;\n  }\n  .gwd-gaussMask {\n    mask: url(\'#mask-linear\');\n    filter: url(\'#filtre2\');\n    -webkit-mask: -webkit-linear-gradient(transparent, black 30%, black);\n    -webkit-mask: linear-gradient(transparent, black 30%, black);\n    -webkit-filter: blur(3px);\n    background: white;\n    height: 270px;\n  }\n  ._dsj_show .history-content {\n    height: 295px;\n  }\n  .history-line {\n    border-left: 1px dashed #e0e0e0;\n    height: 200px;\n    width: 0px;\n    position: absolute;\n    left: 9px;\n    top: 24px;\n  }\n  .promo-history-detail ul li {\n    list-style: none;\n    float: left;\n    width: 200px;\n    height: auto;\n    margin-top: 14px;\n  }\n  .promo-history-detail .show_fold ul li.lowest_before {\n    display: none;\n  }\n  .promo-history-detail ul li:first-child.lowest_before {\n    display: inline-block;\n  }\n  .promo-history-detail .show_fold ul li.lowest_now {\n    margin-top: 54px;\n  }\n  .promo-history-detail ul li:first-child {\n    margin-top: 0px;\n  }\n  .promo-history-detail .history-content> ul li:last-child {\n    margin-bottom: 12px;\n  }\n  .promo-history-detail ul li a {\n    line-height: 17px;\n    height: 17px;\n    width: 100%;\n    float: left;\n  }\n  .promo-history-detail ul li.now_list a em {\n    background-color: #35BD68;\n    border: 1px solid #35BD68;\n  }\n  .promo-history-detail ul li a em {\n    float: left;\n    height: 5px;\n    width: 5px;\n    background: #fff;\n    border: 1px solid #babec0;\n    border-radius: 8px;\n    position: relative;\n    margin-right: 7px;\n    top: 5px;\n    margin-left: 6px;\n  }\n  .promo-history-detail ul li a span {\n    float: left;\n  }\n  .promo-history-detail ul li>span {\n    margin-top: 6px;\n    float: left;\n    line-height: 16px;\n    height: auto;\n    color: #999;\n    text-align: left;\n    /*margin-left: 20px;*/\n    font-size: 12px;\n    width: 141px;\n  }\n  .pro-coupon-item>span {\n    float: left;\n    height: 17px;\n    width: auto;\n    color: #999;\n  }\n  .pro-coupon-item .ppi-fh, .pro-pro-item .ppi-fh {\n    margin-right: 2px;\n    float: left;\n  }\n  .pro-coupon-item .pci-tlesp, .pro-pro-item .pci-tlesp{\n    color: #999;\n    float: left;\n  }\n  .promo-history-detail ul li .pro-coupon-item+.pro-pro-item {\n    margin-top: 4px;\n    width: 164px;\n  }\n\n\n\n\n\n\n  #promo_history ::-webkit-scrollbar {width:6px;}\n  #promo_history ::-webkit-scrollbar-track {background:#f0f0f0;}\n  #promo_history ::-webkit-scrollbar-thumb {\n    background: #A7A7A7;\n    border-radius: 12px;\n  }\n  #promo_history ::-webkit-scrollbar-thumb:hover {\n    background: #999;\n  }\n</style>\n\n<svg height="0">\n  <defs>\n    <mask id="mask-radial">\n      <rect width="400" height="300" fill="url(#g1)"></rect>\n      <radialGradient id="g1" cx="50%" cy="50%" r="50%">\n        <stop stop-color="black" offset="50%"/>\n        <stop stop-color="white" offset="110%"/>\n      </radialGradient>\n    </mask>\n    <mask id="mask-linear">\n      <rect width="400" height="265" fill="url(#l1)"></rect>\n      <linearGradient id="l1" x1="0" y1="0" x2="0" y2="1">\n        <stop stop-color="white" offset="0%"/>\n        <stop stop-color="black" offset="30%"/>\n        <stop stop-color="white" offset="100%"/>\n      </linearGradient>\n    </mask>\n    <filter id="filtre1">\n      <feGaussianBlur in="SourceGraphic" stdDeviation="5"/>\n    </filter>\n    <filter id="filtre2">\n      <feGaussianBlur in="SourceGraphic" stdDeviation="3"/>\n    </filter>\n  </defs>\n</svg>';
    return $$out;
};

/***/ }),

/***/ 12591:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-column gwd-align",
    class: {
      "gwd-bjg": _vm.bjg
    },
    staticStyle: {
      flex: "1",
      "padding-top": "172px"
    }
  }, [!_vm.hasPermission && _vm.permissionTextOnly ? [_c("img", {
    staticStyle: {
      width: "151px",
      height: "124px",
      "margin-top": "57px",
      "margin-bottom": "20px"
    },
    attrs: {
      src: __webpack_require__(86427)
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "font-size": "16px",
      color: "#404547",
      "line-height": "14px"
    }
  }, [_vm._v(_vm._s(_vm.transText("第一次使用时需要先同意授权")))])] : _vm._e(), _vm._v(" "), !_vm.hasPermission && !_vm.permissionTextOnly ? _c("div", {
    staticClass: "gwd-permission-hint",
    staticStyle: {
      color: "121212",
      "font-size": "14px"
    }
  }, [_vm._v(_vm._s(_vm.transText("第一次使用时需要先同意授权")))]) : _vm._e(), _vm._v(" "), !_vm.permissionTextOnly ? [_c("img", {
    staticStyle: {
      width: "150px"
    },
    attrs: {
      src: __webpack_require__(13335),
      alt: ""
    }
  }), _vm._v(" "), _vm.error === "needLogin" ? _c("span", {
    staticStyle: {
      color: "#666666",
      "font-size": "12px",
      "margin-top": "6px"
    }
  }, [_vm._v(_vm._s(_vm.transText("请先访问"))), _c("a", {
    staticStyle: {
      color: "#666666"
    },
    attrs: {
      href: _vm.index(_vm.site),
      target: "_blank"
    }
  }, [_vm._v(_vm._s(_vm.siteMap[_vm.site]) + _vm._s(_vm.transText("首页")))]), _vm._v(_vm._s(_vm.transText("，"))), _c("span", {
    staticStyle: {
      color: "#666666"
    }
  }, [_vm._v(_vm._s(_vm.transText("登录") + _vm.siteMap[_vm.site] + _vm.transText("帐号")))]), _vm._v(_vm._s(_vm.transText("，然后回来重试。")))]) : _vm.errorDetail.includes("FAIL_SYS_USER_VALIDATE") ? _c("span", {
    staticStyle: {
      color: "#666666",
      "font-size": "12px",
      "margin-top": "6px"
    }
  }, [_vm._v(_vm._s(_vm.transText("请先去【"))), _c("a", {
    staticStyle: {
      color: "blue",
      "text-decoration": "underline"
    },
    attrs: {
      href: _vm.verifyLink,
      target: "_blank"
    }
  }, [_vm._v(_vm._s(_vm.transText("淘宝首页")))]), _vm._v(_vm._s(_vm.transText("】，完成一次图片搜同款，并验证滑块后再回来重试。")))]) : _vm.error === "needVisit" ? _c("span", {
    staticStyle: {
      color: "#666666",
      "font-size": "12px",
      "margin-top": "6px"
    }
  }, [_vm._v(_vm._s(_vm.transText("加载失败，请先访问【"))), _c("a", {
    attrs: {
      target: "_blank",
      href: _vm.index(_vm.site)
    }
  }, [_vm._v(_vm._s(_vm.siteMap[_vm.site]) + _vm._s(_vm.transText("首页")))]), _vm._v(_vm._s(_vm.transText("】，再回来重试")))]) : _vm.errorDetail.includes("-FAILSYS::trace") ? _c("span", {
    staticStyle: {
      color: "#666666",
      "font-size": "12px",
      "margin-top": "6px"
    }
  }, [_vm._v("\n      " + _vm._s(_vm.transText("加载失败，")) + _vm._s(_vm.siteMap[_vm.site]) + _vm._s(_vm.transText("接口故障，请稍后再试")) + "\n    ")]) : _vm.errorDetail.includes("-") ? _c("span", {
    staticStyle: {
      color: "#666666",
      "font-size": "12px",
      "margin-top": "6px"
    }
  }, [_vm._v(_vm._s(_vm.transText("请先访问【"))), _c("a", {
    staticStyle: {
      color: "blue",
      "text-decoration": "underline"
    },
    attrs: {
      href: _vm.index(_vm.site),
      target: "_blank"
    }
  }, [_vm._v(_vm._s(_vm.siteMap[_vm.site]) + _vm._s(_vm.transText("首页")))]), _vm._v(_vm._s(_vm.transText("】，重新"))), _c("span", {
    staticStyle: {
      color: "red"
    }
  }, [_vm._v(_vm._s(_vm.transText("登录帐号")))]), _vm._v(_vm._s(_vm.transText("，然后回来重试。")))]) : _c("span", {
    staticStyle: {
      color: "#666666",
      "font-size": "12px",
      "margin-top": "-5px"
    }
  }, [_vm._v(_vm._s(_vm.error) + _vm._s(_vm.transText("，请重试一次")))]), _vm._v(" "), _c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      "margin-top": "31px"
    }
  }, [_vm.error === "needLogin" ? _c("button", {
    staticClass: "gwd-red",
    on: {
      click: _vm.login
    }
  }, [_vm._v(_vm._s(_vm.transText("去登录")))]) : _vm._e(), _vm._v(" "), _c("button", {
    on: {
      click: _vm.retry
    }
  }, [_vm._v(_vm._s(_vm.transText("再试一次")))])])] : _vm._e()], 2);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 12774:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ EpicTrend)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/EpicTrend.vue?vue&type=template&id=acea5bbc&scoped=true
var EpicTrendvue_type_template_id_acea5bbc_scoped_true = __webpack_require__(80585);
;// ./src/standard/module/components/EpicTrend.vue?vue&type=template&id=acea5bbc&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/EpicTrend.vue?vue&type=script&lang=js
var EpicTrendvue_type_script_lang_js = __webpack_require__(12197);
;// ./src/standard/module/components/EpicTrend.vue?vue&type=script&lang=js
 /* harmony default export */ const components_EpicTrendvue_type_script_lang_js = (EpicTrendvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/EpicTrend.vue?vue&type=style&index=0&id=acea5bbc&prod&scoped=true&lang=less
var EpicTrendvue_type_style_index_0_id_acea5bbc_prod_scoped_true_lang_less = __webpack_require__(30077);
;// ./src/standard/module/components/EpicTrend.vue?vue&type=style&index=0&id=acea5bbc&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/EpicTrend.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_EpicTrendvue_type_script_lang_js,
  EpicTrendvue_type_template_id_acea5bbc_scoped_true/* render */.XX,
  EpicTrendvue_type_template_id_acea5bbc_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "acea5bbc",
  null
  
)

/* harmony default export */ const EpicTrend = (component.exports);

/***/ }),

/***/ 12826:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
/*
 * 商品信息提取模块，
 * 用来提取商品标题/ISBN等基本信息
 * @version:1.0
 * @author:mllong(mllong0925@gmail.com)
 * @since:2013-06-17
 */
var siteInfo = __webpack_require__(92834);
let priceParser = __webpack_require__(5286);
const detect = __webpack_require__(3494);
var isbnTran = __webpack_require__(49994);
let parseprice = __webpack_require__(86421);
const util = __webpack_require__(60340);
//返回单品页的标题信息
let getProductInfo = () => {
  return {
    name: $('title').html(),
    price: 0,
    isbn: '',
    url: window.location.href
  };
};
const getPrice = selector => {
  if ($(selector).length) {
    let text = $(selector).eq(0).text().trim();
    if (text.includes('定金') || text.includes('首付') || text.includes('尾款') || text.includes('?')) {
      return '';
    }
    // get only number part
    text = text.replace(/[^0-9.]/g, '');
    if (!isNaN(parseFloat(text))) {
      return text;
    }
  }
  return '';
};
const tbInfoFix = info => {
  if (!info) return {};
  let shopName = $('.tb-shop-name a').text();
  if (!shopName) {
    shopName = $('[class^=ShopHeader--title]').text();
  }
  if (!shopName) {
    shopName = $('.slogo-shopname strong').text();
  }
  if (!shopName) {
    shopName = $('.shop-name-link').attr('title');
  }
  if (!shopName) {
    shopName = $('.shop-name-link').text();
  }
  if (!shopName) {
    shopName = $('[class^=ShopHeader--shopName--]').text();
  }
  if (!shopName) {
    shopName = $('[class^=ShopHeaderNew--shopName--]').text();
  }
  if (!shopName) {
    shopName = $('[class^=shopName--]').text();
  }
  if (!shopName) {
    shopName = $(`.${G.aliPrefix}--shopName--ccf81bdd`).text();
  }
  info.shopName = (shopName || '').trim();
  let shopAmount = $('#J_SellCounter').text();
  if (!shopAmount) {
    shopAmount = $('[class^=ItemHeader--salesDesc]').text();
  }
  if (!shopAmount) {
    shopAmount = $('[class^=salesDesc]').text();
  }
  if (!shopAmount) {
    shopAmount = $('[class^=subTitleInnerWrap--]').text().replace('已售', '');
  }
  if (!shopAmount) {
    shopAmount = $(`${G.aliPrefix}.--salesDesc--dd0678cc`).text().replace('已售', '');
  }
  info.shopAmount = (shopAmount || '').trim();
  const pageTitle = (__webpack_require__(60340).findStringFromSelectors)(['[class^=ItemTitle--root--] h1', '[class^=ItemTitle--] h1', '#tbpc-detail-item-title h1']);
  if (pageTitle) {
    info.name = pageTitle;
  }
  if (!info.price) {
    const toCheck = ['[class^=extraPrice--]', '[class^=originPrice--]', '.text--Mdqy24Ex', '.priceText--YZzF3UMh', '[class^=highlightPrice--]', `.${G.aliPrefix}--highlightPrice--fea17cf4`];
    for (let i = 0; i < toCheck.length; i++) {
      info.price = getPrice(toCheck[i]);
      if (info.price) break;
    }
  }
  const secPrice = $('[class^=SecurityPrice--text--]').text();
  if (secPrice) {
    info.price = secPrice;
  }
  if (!info.img && G.GwdConfig) {
    const imgCfg = G.GwdConfig.aliImgSelector;
    if (imgCfg) {
      for (let i = 0; i < imgCfg.length; i++) {
        const img = $(imgCfg[i].img).attr('src');
        if (img) {
          info.img = img;
          info.pic = img;
          break;
        }
      }
    }
  }
  return info;
};

//提取第三方评测导购网站中的商品信息
let getArticleInfo = (className, childPos, newSiteName) => {
  var dp = getProductInfo();
  G.site = newSiteName;
  try {
    var a = $(className).eq(childPos);
    dp.name = a.text();
    G.href = G.makeUrl(G.href, a.attr('href'));
    dp.url = G.href;
    if (typeof G.href == 'undefined' || G.href == "") {
      dp.useless = true;
    } else {
      var check = siteInfo.isProductPage();
      if (!check) {
        dp.useless = true;
      }
    }
  } catch (e) {
    dp.useless = true;
  }
  return dp;
};
let getArticleInfoNew = (className, childPos, attr, newSiteName) => {
  var dp = getProductInfo();
  G.site = newSiteName;
  if (G.crc64) return dp;
  try {
    var a = $(className).eq(childPos);
    G.href = a.attr(attr);
    dp.url = a.attr(attr);
    if (a.attr(attr)) dp.url = a.attr(attr);
    if (typeof G.href == 'undefined' || G.href == "") {
      G.href = window.location.href;
    }
  } catch (e) {}
  return dp;
};
//商品信息提取模板
let productPattern = {
  'oneplus': () => {
    let dp = getProductInfo();
    dp.price = $('.price .num').text();
    return dp;
  },
  'wjike': () => {
    return {
      name: $('.pb_tl').eq(0).text(),
      price: $('.pr2 .pc i').eq(0).text()
    };
  },
  'kinhom': () => {
    return {
      name: $('.item-title').text(),
      price: $('#J_itemActivePrice').text()
    };
  },
  'hpstore': () => {
    return {
      price: $('.price-box .price').eq(0).text()
    };
  },
  'tthigo': () => {
    return {
      name: $('.item-title').text(),
      price: $('.item-price-current').text()
    };
  },
  'yoox': () => {
    return {
      name: $('#yoox').text(),
      price: $('#item-price .font-bold').text()
    };
  },
  'feiniu': () => {
    return {
      name: $('#main_info_guidance_title').text(),
      price: $('.info-price>.JS-control-price').text()
    };
  },
  'suanjuzi': () => {
    return {
      name: $('.product-titles h2').text(),
      price: $('.action-pro_price').text()
    };
  },
  'ikjtao': () => {
    return {
      name: $('#sidebar .title').text(),
      price: $('#goodsPrice').text()
    };
  },
  'meizu': () => {
    return {
      name: $('#property .property-hd h1').text(),
      price: $('#J_price').text()
    };
  },
  'kaluli': () => {
    return {
      name: $('.pro-detail > h1').text(),
      price: $('#kaluliPrice').text()
    };
  },
  'opposhop': () => {
    return {
      name: 'oppo   ' + $('.product-title').text(),
      price: $('.buying-price .price').text()
    };
  },
  'yao123': () => {
    return {
      name: $('.inner>h1').text(),
      price: $('#opr').text()
    };
  },
  'baobeigezi': () => {
    return {
      name: $('#itemInfo>.name>h1').text(),
      price: $('#bb_price').text()
    };
  },
  'to8to': () => {
    return {
      name: $('#p_name').text(),
      price: $('span[name=goods_real_price]').eq(0).text()
    };
  },
  'yangkeduo': () => {
    return {
      name: $('.enable-select').text(),
      price: $('._15NyfC_w').text()
    };
  },
  'shangpin': () => {
    let brandName = $('.spDetail_price_box > h2 > a').text();
    if (!brandName) {
      brandName = $('.spDetail_price_box > h3 > a').text();
    }
    let result = {
      name: brandName + ' ' + $('.commodity_title').text(),
      price: $('.spDetail_spPriceBigRed > i').text(),
      img: $('#spDetail_bigImg > img').attr('src')
    };
    if (!result.price) {
      result.price = $('.spDetail_spPriceBig > i').text();
    }
    if (!result.price) {
      result.price = $('em.font_18').text();
    }
    return result;
  },
  'zhongjiu': () => {
    let name = $('.info > h1').text();
    let price = $('.pri > b').text();
    if (!name) {
      name = $('.c_t_list > li > span').text();
      price = $('.buy_pri').text();
    }
    let result = {
      name: name,
      price: price
    };
    return result;
  },
  'lemall': () => {
    var name = $('.pro_name').eq(0).text();
    var price = $('#all_price').text();
    if (price == '') price = $('.section_text .red .font48').eq(0).text();
    if (name == '') name = $('.product_info_attribute .title').text();
    return {
      name: "乐视" + name,
      price: price
    };
  },
  'juanpi': () => {
    return {
      name: $('.deal-wrap h1').text(),
      price: $('.price .current').text()
    };
  },
  'hisense': () => {
    return {
      name: $('.detail_info h3').text(),
      price: $('#salePriceId').text()
    };
  },
  'purcotton': () => {
    return {
      name: $('.goods-tite h5').eq(0).text(),
      price: $('.price').eq(0).text()
    };
  },
  'wstx': () => {
    return {
      name: $('.itemInfo .title').text(),
      price: $('.itemInfo .price b').text()
    };
  },
  'royyoungchemist': () => {
    return {
      name: $('.product-name').eq(0).text()
    };
  },
  'medihealshop': () => {
    return {
      name: $('.product-name').eq(0).text(),
      price: $('.rmb-price').eq(0).text()
    };
  },
  '1-163': () => {
    return {
      name: $('.m-detail-main-title h1').text()
    };
  },
  '1001pharmacies': () => {
    return {
      name: $('.product-name h1').eq(0).text(),
      price: $('.rmb-price').eq(0).text()
    };
  },
  'lookfantastic-cn': () => {
    return {
      name: $('.product-title').eq(0).text(),
      price: $('.product-price .price').eq(0).text()
    };
  },
  'guojimami': () => {
    return {
      name: $('#ECS_FORMBUY .name').text(),
      price: $('#ECS_SHOPPRICE').text(),
      img: $('#demo li img').eq(0).attr('src')
    };
  },
  'jinxiang': () => {
    return {
      name: $('.name').eq(0).text(),
      price: $('.jxPrice').eq(0).text()
    };
  },
  'you163': () => {
    return {
      name: $('.info .name').eq(0).text(),
      price: $('.j-retail-price').eq(0).text()
    };
  },
  'bl': () => {
    return {
      name: $('.goods-name h1').eq(0).text().replace('百联自营', '').trim(),
      price: $('#FlashPrice').text()
    };
  },
  'bestinfoods': () => {
    return {
      name: $('.goodsname').eq(0).text(),
      price: $('.price1').eq(0).text()
    };
  },
  'axmall': () => {
    return {
      name: $('.goods-intro .name').text(),
      price: $('#sku_vip_price').text()
    };
  },
  'bftv': () => {
    return {
      name: $('.title h2').text(),
      price: $('.price').text()
    };
  },
  'wangjiu': () => {
    return {
      name: $('.part_line01').text(),
      price: $('.part_line04 .spare02 span').text()
    };
  },
  '189': () => {
    var title = $('#articleshorttitle').text();
    var price = $('#mall_price').text();
    var brand_string = '';
    if (title == '') title = $('.ph-title h1').eq(0).text().replace('仅限江西省用户', '');
    if (title.toLowerCase().indexOf('iphone') > -1) brand_string = "苹果";
    if (price == '') price = $('#assprice').text();
    return {
      name: brand_string + title,
      price: price,
      brand_string: brand_string
    };
  },
  'taqu': () => {
    return {
      name: $('.details-name').eq(0).text(),
      price: $('#details-price').text()
    };
  },
  'bestcake': () => {
    return {
      name: $('.info-right-li p').eq(0).text(),
      price: $('.info-right-li .s4').eq(0).text()
    };
  },
  'gomehigo': () => {
    return {
      name: $('#gm-prd-main li.prdtit').text(),
      price: $('#prdPrice').text()
    };
  },
  'lovo': () => {
    return {
      name: $('#goodsNameStrong').text(),
      price: $('#actMsgS big').text()
    };
  },
  'zhe800': () => {
    return {
      name: $('#detail .detailmeta .clear h1').text(),
      price: $('.price .js_price_st').text()
    };
  },
  'hua': () => {
    return {
      name: $('.product-r .title h3.product-title').text(),
      price: $('#fjr .price-sell .price-num').text()
    };
  },
  'mei': () => {
    return {
      name: $('.Product_title').text() + ' ' + $('.product_name h1').text(),
      price: $('#productRMB').text()
    };
  },
  'benlai': () => {
    let price = $('#intro_price .price')[0].firstChild.nodeValue;
    if (price == '' || !price) price = $('#intro_price .price').text();
    return {
      'price': price,
      'name': $('#Product_ProductDetailsName').text()
    };
  },
  'vsigo': () => {
    return {
      name: $('h1').text(),
      price: $('.detail-price').text()
    };
  },
  'fengqu': () => {
    return {
      name: $('h1').text(),
      price: $('.goods-price .goods-price-r1 strong').text()
    };
  },
  'vmei': () => {
    let price = $('#currPrice').text();
    if (price.indexOf('-') > -1) price = price.split('-')[0];
    return {
      name: $('.product_detail_title h1').text(),
      price: price
    };
  },
  'easeeyes': () => {
    return {
      name: $('.main div.goods_name_tr span').text(),
      price: $('.main p.color9 span.fs20.fontArial').text()
    };
  },
  'staples': () => {
    return {
      'name': $('.productInfo h3 span').text(),
      'price': $('.nowPrice').text()
    };
  },
  'efotile': () => {
    return {
      'name': $('.item-title').text(),
      'price': $('.item-actPrice b').text()
    };
  },
  'jgb': () => {
    return {
      name: $('.h_des_title').text(),
      price: $('.h_des_price .J_rmb_price').text()
    };
  },
  '51din': () => {
    return {
      name: $('.product_title > div').eq(0).text(),
      price: $('.price_rmb').text()
    };
  },
  'aidai': () => {
    return {
      name: $('.pro-det h3').text(),
      price: $('#_thisfp').text()
    };
  },
  'boqii': () => {
    return {
      name: $('.shop_name').text(),
      price: $('#bqPrice').text()
    };
  },
  'spider': () => {
    return {
      name: $('.gdName h1').text(),
      price: $('#m12priceSpan').text()
    };
  },
  'taobao-xianyu': () => {
    return {
      name: $('h1.title').text(),
      price: $('.price-block .price em').text()
    };
  },
  'ai-taobao': function () {
    let price;
    if (!G.chrome_extension) {
      price = window.pageconfig.promoPrice;
      if (!price) {
        price = window.ENV_DATA && window.ENV_DATA.compList && window.ENV_DATA.compList.item_detail && window.ENV_DATA.compList.item_detail.data && window.ENV_DATA.compList.item_detail.data.data1[0].price;
      }
      return {
        name: $('h3.item-title a').text(),
        price: price,
        url: window.pageconfig.itemId ? 'http://item.taobao.com/item.htm?id=' + window.pageconfig.itemId : null
      };
    }
    var pageconfig = $('.aitaobao-edetail-header script').text();
    var itemId = /itemId":"(\d+)"/.exec(pageconfig);
    if (itemId) itemId = itemId[1];
    price = /promoPrice":"([\d\.]+)"/.exec(pageconfig);
    if (price) price = price[1];
    return {
      name: $('h3.item-title a').text(),
      price: price,
      url: itemId ? 'http://item.taobao.com/item.htm?id=' + itemId : null
    };
  },
  'm6go': function () {
    return {
      name: $('.goodsName h1').text(),
      price: $('#SGoodsPrice').text().replace(/[\s]+/g, '')
    };
  },
  'logitech': function () {
    return {
      name: $('h1.product-title').text()
    };
  },
  'kjt': function () {
    return {
      name: $('.prodetailtitle h1').text(),
      price: $('li.priceinfop span:first').text()
    };
  },
  'test': function () {
    return {
      url: $('#url').text()
    };
  },
  'philips': function () {
    return {
      name: $('h1.sku-name').text()
    };
  },
  'tcl': function () {
    return {
      name: $('.p_name').text()
    };
  },
  'changhong': function () {
    return {
      name: $('.pc_name').text()
    };
  },
  'konka': function () {
    return {
      name: $('.g_title h1').text()
    };
  },
  'ineigo': function () {
    return {
      name: $('h5.ProName').text()
    };
  },
  'skg': function () {
    return {
      name: $('.product-titles').text()
    };
  },
  'k-touch': function () {
    return {
      name: $('.pro_title').text()
    };
  },
  'gionee': function () {
    return {
      name: $('#goodName').text()
    };
  },
  '51buy': function () {
    var dp = getProductInfo();
    dp.price = $('.mod_price[itemprop="lowPrice"]').text().replace(/[￥¥\s]+/g, '');
    if (dp.price == '') dp.price = window.itemInfo && window.itemInfo.price / 100;
    if (dp.price == '') dp.price = $('.xbase_item  .mod_price ').text();
    dp.name = window.itemInfo && window.itemInfo.name;
    dp.brand_string = window.itemInfo && window.itemInfo.brand_name;
    return dp;
  },
  'vivo': function () {
    return {
      name: document.title,
      price: $('.now-price').text()
    };
  },
  'taobao-95095': function () {
    var dp = getProductInfo();
    dp.price = $('#J_PromoPrice .tm-price').text();
    dp.name = $('#J_DetailMeta .tb-detail-hd h1').text();
    if (!dp.price) dp.price = $('#J_StrPriceModBox .tm-price').text();
    return dp;
  },
  'walmart': function () {
    let dp = getProductInfo();
    dp.name = $('.js-product-heading span').text();
    dp.price = $('.js-price-display').text();
    dp.img = $('.js-product-media .slick-track li a img').eq(0) && $('.js-product-media .slick-track li a img').eq(0).attr('src');
    return dp;
  },
  'kongfz': function () {
    let dp = getProductInfo();
    let isbn = $('.item:contains("ISBN") .text-value').text();
    if (!isbn) {
      isbn = $('li:contains("ISBN") > span:eq(1)').text().trim();
    }
    dp.isbn = isbn;
    dp.name = isbn;
    return dp;
  },
  'haituncun': function () {
    let dp = getProductInfo();
    dp.name = $('.product-name h1').text();
    dp.price = $('.rmb-price').text();
    dp.img = $('.product-img-box li img').eq(0) && $('.product-img-box li img').eq(0).attr('src');
    return dp;
  },
  'ebay': function () {
    return {
      name: $('#itemTitle').text().replace(/^Details about/ig, ''),
      price: $('#prcIsum').attr('content'),
      img: $('#vi_main_img_fs ul li img').eq(0).attr('src')
    };
  },
  'wy163': function () {
    return {
      name: $('.PInfo dt').eq(0).text() || $('.mv_name').text()
    };
  },
  'dianping': function () {
    return {
      name: $('.deal-title h1,h1.title').text().replace(/\[.*\]/ig, '')
    };
  },
  'nuomi': function () {
    var pdetails = $('.details p.dp') && $('.details p.dp').text() || '';
    var name = '';
    try {
      name = $('.details h1').text().replace(/^\u3010.+\u3011/i, '');
    } catch (e) {}
    name = name + pdetails;
    return {
      'name': name
    };
  },
  'meituan': function () {
    return {
      name: $('.deal-component-title').text(),
      isbn: ''
    };
  },
  'meilishuo': function () {
    let name = $('.goods-title').eq(0).text();
    let price = $('#J_NowPrice').text();
    if (name == '') name = $('h3.s_tle').text();
    return {
      name: name,
      price: price
    };
  },
  'sfht': function () {
    var dp = getProductInfo();
    dp.name = $('#titleInfo h1').text();
    dp.price = $('#itemPrice .goods-price-r1 strong').text();
    return dp;
  },
  'meici': function () {
    var dp = getProductInfo();
    dp.name = $('#subpro .relative span').text();
    var isprice = $('.pro_price .price').text().match(/[0-9.]+/);
    if (isprice) dp.price = isprice[0];
    return dp;
  },
  'jianke': function () {
    var dp = getProductInfo();
    dp.name = $('.det_title h1').text();
    var pri = $('.Price_info .bigPrice dd em').text().match(/[0-9.]+/);
    if (pri) dp.price = pri[0];
    return dp;
  },
  'gome-home': function () {
    var dp = getProductInfo();
    dp.name = $('.prdmain .prdtit').text();
    var price = $('#prdPrice').text().replace(/\s/g, '').match(/[0-9.]+/);
    if (price) dp.price = price[0];
    return dp;
  },
  'nike': function () {
    var dp = getProductInfo();
    dp.name = $('.product-title-text').text();
    dp.price = $('.product-price').text();
    return dp;
  },
  '360kad': function () {
    var dp = getProductInfo();
    dp.name = $('.YIrd_l li').eq(0).text().replace("商品名称：", "");
    dp.price = $('#pricenumber').text();
    var arr = dp.url.split('/');
    var url = arr[0] + '//';
    var html = arr[arr.length - 1].split('.');
    for (var i = 2; i < arr.length - 1; i++) {
      url = url + arr[i] + '/';
    }
    let productId = $("div.Ydrug_info dl:first dd").text();
    if (productId) {
      dp.url = url + $("div.Ydrug_info dl:first dd").text() + '.' + html[1];
    } else {
      dp.url = location.href;
    }
    return dp;
  },
  'lbxcn': function () {
    var dp = getProductInfo();
    dp.name = $('.detailPas').text().replace(/\s/g, "");
    dp.price = $('#lblPrice').text();
    return dp;
  },
  'mogujie': function () {
    var dp = getProductInfo();
    dp.name = "";
    dp.name = $('.goods-title').text();
    if (dp.name == "") {
      dp.name = $('div.shoptitle').text();
    }
    if (dp.name == "") {
      dp.name = $('.goodstitle').text();
    }
    return dp;
  },
  'coolpad': function () {
    return {
      name: $('.good_name h1').text()
    };
  },
  'ztedevice': function () {
    return {
      name: $('.znproducts h3').text()
    };
  },
  'lenovo': function () {
    var dp = getProductInfo();
    dp.price = $('#gprice').text();
    if (dp.price == '') dp.price = window.price;
    dp.name = $('.goodsname').text();
    if (dp.name == '') dp.name = $('.de_proname').text();
    if (!dp.price) {
      dp.price = $('.price-show').text();
    }
    return dp;
  },
  'showjoy': function () {
    var dp = getProductInfo();
    dp.name = $('.choose-hd').text().replace(/\s/g, '');
    dp.price = $('#J_MainPrice .sj-price-text').text();
    return dp;
  },
  'ocj': function () {
    var dp = getProductInfo();
    dp.name = $('.pv_shop_detail_title h1').text();
    dp.price = $('.info_box .val .price').text();
    return dp;
  },
  'ocj-tuan': function () {
    var dp = getProductInfo();
    dp.name = $('.product-info > h1').text().replace(/\s/g, '');
    var price = $('.product_price_cont .p1').html().match(/\/span\>([0-9.]+)\</);
    if (price) dp.price = price[1];
    if (dp.price == '') dp.price = $('.product_price_cont .p1').text();
    if (dp.name == '') dp.name = $('.product-info  h1 .title').text();
    return dp;
  },
  'ocj-kr': function () {
    var dp = getProductInfo();
    dp.name = $('.pv1_li_table_wrap th:contains("品名")+td').text();
    dp.price = $('.pricekorea').text();
    return dp;
  },
  'gjw': function () {
    return {
      'name': $('.silder_column_name span').text(),
      'isbn': ''
    };
  },
  'apple': function () {
    var dp = getProductInfo();
    dp.price = $('.price-point-fullPrice span').eq(0).text();
    return dp;
  },
  'jumei': function () {
    var dp = getProductInfo();
    dp.name = $('h1.pop_detail_tit').text();
    if (dp.name == "") {
      dp.name = $("title").html();
      var title_arr = $("title").html().split("-");
      title_arr.pop();
      title_arr.pop();
      try {
        dp.name = title_arr.join('-');
      } catch (err) {}
    }
    dp.price = $('#mall_price_detail .price_num').text();
    if (dp.price == '') {
      dp.price = $('#stream_id').attr('price');
    }
    return dp;
  },
  'jumeiglobal': function () {
    var dp = getProductInfo();
    try {
      dp.price = $('.jumei_price').text().match(/[0-9.]+/)[0];
      dp.name = $('.deal_con_content td:contains("商品名称")').parent().find('td').eq(1).text();
    } catch (e) {}
    if (dp.price == '') {
      dp.price = $('#stream_id').attr('price');
    }
    return dp;
  },
  'yunhou': function () {
    var dp = getProductInfo();
    dp.name = $('.goods-name h1').text();
    dp.price = $('#jPriceNormal').text();
    dp.img = $('.pic-pager .pic-list a img').eq(0) && $('.pic-pager .pic-list a img').eq(0).attr('src');
    if (dp.price == '') dp.price = $('.jFirstPrice').text();
    return dp;
  },
  'boohee': function () {
    var dp = getProductInfo();
    dp.name = $('.widget-goods-primary .row-des h1').text();
    dp.price = $('.col-price b').text().match(/[0-9.]+/)[0];
    return dp;
  },
  'moonbasa': function () {
    var name = '';
    try {
      name = $('.p_info h2').html().replace(/<[^>]*[\s\S]*[^<]*>/ig, '');
      name = $.trim(name);
    } catch (e) {}
    return {
      'name': name
    };
  },
  'homevv': function () {
    var dp = getProductInfo();
    dp.name = $('.shop_name p[class="hdr_1"]').text();
    dp.name = dp.name.replace(/<div[^>]*[\s\S]*[^<]*\/div>/ig, '');
    dp.name = dp.name.replace(/<span[^>]*[\s\S]*[^<]*\/span>/ig, '');
    dp.name = dp.name.replace(/&nbsp;/ig, '');
    dp.name = $.trim(dp.name);
    return dp;
  },
  'paixie-faxian': function () {
    var dp = getProductInfo();
    dp.name = $('.find-info-product a p').eq(0).text();
    dp.price = $('.find-info-product a span').eq(0).text().match(/[0-9.]+/)[0];
    return dp;
  },
  'xiaomi': function () {
    var dp = getProductInfo();
    dp.price = $('#J_goodsInfoBlock .J_mi_goodsPrice').text();
    dp.name = $('.name').eq(0).text();
    if (!dp.name) {
      dp.name = $('.product-con h2').text();
    }
    if (dp.price == '') {
      try {
        dp.price = $('.J_proPrice')[0].childNodes[0].nodeValue;
      } catch (e) {
        var price = $('.J_proPrice').text().match(/[0-9.]+/);
        if (price) dp.price = price[0];
      }
    }
    return dp;
  },
  "youpin-mi": function () {
    return {
      'name': $('.sku-container .good-name').text(),
      'price': $('.price .value').text()
    };
  },
  'ihush': function () {
    return {
      'name': $('h1.title').text()
    };
  },
  '1688': function () {
    G.site = "1688";
    var sattrs = new Array();
    var brand = $('.de-feature:contains(\"品牌\")').text();
    if (brand) {
      sattrs.push(brand);
    }
    var no = $('.de-feature:contains(\"系列\")').length > 0 ? $('.de-feature:contains(\"系列\")').text() : null;
    no = !no ? $('.de-feature:contains(\"货号\")').length > 0 ? $('.de-feature:contains(\"货号\")').text() : null : no;
    no = !no ? $('.de-feature:contains(\"型号\")').length > 0 ? $('.de-feature:contains(\"型号\")').text() : null : no;
    if (no) {
      sattrs.push(no);
    }
    var isbn = $('.de-feature:contains(\"书号\")').length > 0 ? $('.de-feature:contains(\"书号\")').text() : null;
    isbn = isbn ? isbn.substr(isbn.indexOf('：') + 1) : null;
    if (isbn) {
      sattrs.push('ISBN：' + isbn);
    }
    sattrs = sattrs.join("|");
    return {
      'name': $('#mod-detail-hd h1').text(),
      'isbn': '',
      'skeyword': sattrs
    };
  },
  'womai-related': function () {
    // return getArticleInfo(".detail_goods_cont a", 0, "womai");
    return {
      name: $('.pro_tit_top_forcombi').text(),
      price: $('#combiProductMarketPrice').text()
    };
  },
  '139shop-article': function () {
    return getArticleInfo(".rginfo dt a", 0, "139shop");
  },
  'zol-article': function () {
    return getArticleInfo(".nav-header>a ", 1, "zol");
  },
  'pconline-article': function () {
    return getArticleInfo(".navProWrap h3 a", 0, "pconline");
  },
  'yesky-article': function () {
    return getArticleInfo(".artitle h3 a", 0, "yesky");
  },
  'it168-article': function () {
    return getArticleInfo(".bj980 .bj1 div>a", 0, "it168");
  },
  'pcpop-article': function () {
    return getArticleInfo(".bj980 .bj1 a", 0, "pcpop");
  },
  'pchome-article': function () {
    return getArticleInfo(".navProWrap h3 a", 0, "pchome");
  },
  'newegg': function () {
    var dp = getProductInfo();
    dp.name = $('#proCtner .proHeader h1').text();
    dp.price = $('#omHiddenPrice').val();
    dp.url = $(".proHeader h1 a").attr('href');
    dp.brand_string = $('.goods_info .goods_info_name:contains("牌")+.godds_info_data').text().replace(/\s/g, '');
    return dp;
  },
  'newegg-zhadan': function () {
    var dp = getProductInfo();
    dp.name = $('.proHeader h1 a').text();
    dp.url = $('.proHeader h1 a').attr('href');
    return dp;
  },
  'yiwugou': function () {
    var dp = getProductInfo();
    dp.name = $('li.fontbold.tit').text();
    dp.price = parseFloat($('#punitprice').text().replace(/\s/g, ''));
    return dp;
  },
  'zhiwo': function () {
    var dp = getProductInfo();
    dp.name = $('.mall_detail_prd_info .title').text();
    return dp;
  },
  'zhiwo-tuan': function () {
    var dp = getProductInfo();
    dp.name = $(".carousel li p").eq(0).text();
    return dp;
  },
  'zol': function () {
    var dp = getProductInfo();
    var merchant_price = [];
    var prices = $('.product-merchant-price em').text();
    if (prices != '' && prices.match(/[0-9]+/) && prices.indexOf('至') > -1) merchant_price = prices.replace(/[ ]/g, "").split('至');
    dp.name = $('.product-name h3').text();
    if (dp.name == "") {
      dp.name = $('.ptitle').text();
    }
    if (dp.name == "") {
      dp.name = $('.page-title.clearfix h1').text();
    }
    if (merchant_price.length > 0) {
      dp.min_price = merchant_price[0].substr(1);
      dp.max_price = merchant_price[1].substr(1);
    }
    dp.price = $('.price-type').text();
    if (dp.price.indexOf('万') > -1) {
      var p = dp.price.match(/[0-9.]+/);
      if (p) dp.price = p[0] * 10000;
    }
    dp.cat_name = $('.breadcrumb a').eq(1).text();
    dp.brand_string = $('.breadcrumb a').eq(2).text();
    return dp;
  },
  'vmall': function () {
    var dp = getProductInfo();
    dp.name = $('#pro-name').text();
    return dp;
  },
  'daling': function () {
    var dp = getProductInfo();
    dp.name = $('.goods-data h1.clearfix').text().replace(/\s/g, '');
    dp.price = $('.goods-price .clearfix .fl .bold').text();
    return dp;
  },
  'fclub': function () {
    var dp = getProductInfo();
    dp.name = $('.goods_introduce').text();
    dp.name = dp.name.replace(/(?:\t|\n)/ig, '');
    dp.name = dp.name.replace(/(?:\ \ |&nbsp;)/ig, ' ');
    if (dp.name == '') {
      dp.name = $('.tdleft:contains("商品名称")+.tdright').text().replace(/(\s)/g, '');
      dp.price = $('#priceFont').text();
    }
    return dp;
  },
  'taoshu': function () {
    var dp = getProductInfo();
    dp.isbn = $('.book_detailed span:contains("ISBN")').length > 0 ? $('.book_detailed span:contains("ISBN")').text().substr(5) : "";
    return dp;
  },
  'amazon': function () {
    var dp = getProductInfo();
    var isbn_str = '';
    var isbn_str1 = $('li:contains("ISBN")').text();
    var isbn_str2 = $('li:contains("条形码")').text();
    //var isbn_str3 = $('li:contains("ASIN")').text();
    var isbn_str3 = $('li b:contains("ASIN")').parent('li').text();
    isbn_str1 = isbn_str1 ? isbn_str1.substr(5) : '';
    isbn_str2 = isbn_str2 ? isbn_str2.substr(4) : '';
    isbn_str3 = isbn_str3 ? isbn_str3.substr(5) : '';
    if (isbn_str1 == '') {
      isbn_str = isbn_str2;
    } else if (isbn_str2 == '') {
      isbn_str = isbn_str1;
    } else {
      if (isbn_str1.length > isbn_str2.length) {
        isbn_str = isbn_str2;
      } else {
        isbn_str = isbn_str1;
      }
    }
    isbn_str = isbn_str || isbn_str3;
    isbn_str = isbn_str.replace(/(\s)/g, "");
    dp.name = $('#btAsinTitle span').eq(0).text().replace(/(.*)<span.*/i, "$1");
    dp.name = $('#productTitle').text().trim();
    dp.isbn = isbn_str;
    dp.brand_string = $('#brand').text().trim();
    try {
      dp.price = $('#priceblock_dealprice').text().replace(/[￥¥]+/, '');
    } catch (e) {}
    if (dp.price == '') {
      dp.price = $('span.a-size-large.a-color-price').is(':visible') && $('span.a-size-large.a-color-price').text();
      if (dp.price && dp.price.indexOf('-') > -1) {
        dp.price = '';
      }
    }
    if (dp.price == '') {
      dp.price = $('#apex_desktop .a-price span[aria-hidden=true]:eq(0)').text();
      (__webpack_require__(7129).log)('dp.price', dp.price);
    }
    if (dp.price == '') dp.price = $('#priceblock_ourprice').text();
    if (dp.price == '') dp.price = $('#priceblock_saleprice').text();
    if (dp.price == '') dp.price = $('.offer-price:eq(0)').text();
    if (dp.price == '') dp.price = $('#olp_feature_div .a-color-price').text();
    if (dp.price == '') dp.price = $('.a-color-price:eq(0)').text();
    if (dp.price == '') dp.price = $('#priceblock_saleprice').text();
    if (dp.price == '') dp.price = $('#price_feature_div .a-color-price').text();
    if (dp.price.indexOf('€') > -1) {
      dp.price = dp.price.replace(',', '.');
    }
    let url = location.href;
    let host = location.host;
    dp.itemId = function () {
      let match = location.href.match(/\/dp\/([0-9A-Za-z]+)/);
      if (match) {
        return match[1];
      }
      match = location.href.match(/\/gp\/([0-9A-Za-z]+)/);
      if (match) {
        return match[1];
      }
      return '';
    }();
    try {
      dp.cat_id = function () {
        var e,
          t,
          a = "";
        return document.querySelector(".a-breadcrumb li:nth-child(7) a") ? t = document.querySelector(".a-breadcrumb li:nth-child(7) a").getAttribute("href") : document.querySelector(".a-breadcrumb li:nth-child(5) a") ? t = document.querySelector(".a-breadcrumb li:nth-child(5) a").getAttribute("href") : document.querySelector(".a-breadcrumb li:nth-child(3) a") && (t = document.querySelector(".a-breadcrumb li:nth-child(3) a").getAttribute("href")), e = t.split("?")[1], e && e.split("&").forEach(function (e) {
          e.match(/node=.*/) && (a = e.match(/node=(.*)/)[1]);
        }), a;
      }();
    } catch (e) {
      dp.cat_id = "";
    }
    dp.url2 = url.replace(host, 'www.amazon.cn');
    let catdom = $('#wayfinding-breadcrumbs_feature_div .a-unordered-list li a');
    let catlen = catdom.length;
    let cat_name = [];
    for (var i = 0; i < catlen; i++) {
      cat_name.push(catdom.eq(i).text().trim());
    }
    dp.cat_name = cat_name.join('#');
    dp.website = 'amazon';
    dp.pic = $('#altImages li img').eq(0).attr('src');
    if (!dp.pic) {
      dp.pic = $('#landingImage').eq(0).attr('src');
    }
    dp.img = dp.pic;
    dp.sku = $('#addToCart #ASIN').val();
    dp.category = $('#wayfinding-breadcrumbs_feature_div a').text();
    let brandhref = $('#brand').attr('href');
    let brand = brandhref && brandhref.match(/field-lbr_brands_browse-bin=(.*)$/) && brandhref.match(/field-lbr_brands_browse-bin=(.*)$/)[1];
    dp.brand = dp.brand_string ? dp.brand_string : brand;
    return dp;
  },
  'muyingzhijia': function () {
    var dp = getProductInfo();
    dp.name = $('#name h1').text();
    dp.price = $('#summary-price .p-price').text();
    return dp;
  },
  'dangdang': function () {
    var prodSpuInfo = window.prodSpuInfo;
    var dp = getProductInfo();
    var isbn = $('.book_detailed span:contains("I S B N")').text().substr(8);
    if (isbn == '') {
      isbn = $('.intro span:contains("I S B N")').text().substr(8);
    }
    if (isbn == '') {
      isbn = $('.book_messbox .show_info_left:contains("\uFF29\uFF33\uFF22\uFF2E")').next('.show_info_right').text();
    }
    if (isbn == '') {
      isbn = $('.book_messbox .show_info_left:contains("I S R C")').next('.show_info_right').text();
    }
    if (isbn == '') {
      let dom = $('.book_messbox span:contains("I S R C")');
      isbn = dom && dom.parent().text().substr(7);
    }
    if (isbn == '') {
      var isbn = $('#detail_describe li:contains("ISBN")').text().match(/[0-9]+/);
      if (isbn) isbn = isbn[0];
    }
    dp.price = $('#dd-price').text();
    dp.isbn = isbn;
    dp.pic = $('#main-img-slider li img').eq(0).attr('src');
    dp.website = "dangdang";
    dp.itemId = location.href.match(/dangdang\.com\/(\d+)/)[1];
    dp.brand_string = $('.mall_goods_foursort_style_frame:contains("品牌")').text().replace('品牌：', '');
    if (dp.brand_string == '') dp.brand_string = window.google_tag_params && window.google_tag_params.ecomm_pbrand;
    if (!dp.price) dp.price = $('#salePriceTag').text();
    dp.name = $('.name_info h1').text().trim();
    dp.cat_id = prodSpuInfo && prodSpuInfo.categoryId;
    return dp;
  },
  '360buy-paimai': function () {
    var dp = getProductInfo();
    dp.price = $('#priceDiv').text().match(/[0-9.]+/)[0];
    dp.name = $('.intro_detail .name').attr('title');
    return dp;
  },
  '360buy-book': function () {
    var name = $('title').text(),
      isbn = "";
    isbn = $('#summary-isbn .dd').text();
    name = $('#name h1').html();
    if (name.indexOf('<') > 0) {
      name = name.substr(0, name.indexOf('<'));
    }
    isbn = isbn || $('li div:contains("\uFF29\uFF33\uFF22\uFF2E")').text().substr(5);
    name = name || $('#name h2').html().replace(/(.*)<font.*/i, "$1");
    return {
      'name': name,
      'isbn': isbn
    };
  },
  '360buy-tuan': function () {
    var dp = getProductInfo();
    dp.name = dp.name.replace(" - 京品惠团购", "");
    G.site = "360buy";
    dp.id = $("#PshowSkuid").val();
    //默认是从title里获取的信息，如果发现 能从网页中获取的关键字 长度比 title中获取的更长，就替换掉原来的title
    var tuan_dp_name = $(".e-content h2").text();
    if (tuan_dp_name.length > dp.name.length) {
      dp.name = tuan_dp_name;
    }

    //新增
    var jdTuanA = $('.e-extra .p-img a');
    if (jdTuanA.length > 0 && !/^javascript:/.test(jdTuanA.attr('href'))) {
      dp.href = jdTuanA.attr('href');
    } else {
      if (typeof $('#PshowSkuid').val() != "undefined") {
        dp.href = 'http://item.jd.com/' + $('#PshowSkuid').val() + '.html';
      }
    }
    dp.url = $(".e-extra a").eq(0).attr("href");
    if (dp.url.indexOf("javascript") > -1) {
      dp.url = $(".img-info a").eq(0).attr("href");
    }
    return dp;
  },
  '360buy-bigimage': function () {
    var url = "";
    if (url == "") {
      url = $('.o-m-1 h1 a').attr("href");
    }
    var name = $('.o-m-1 h1 a').eq(0).text();
    return {
      'url': url,
      'name': name,
      'isbn': ''
    };
  },
  '360buy-club': function () {
    var url = "";
    if (url == "") {
      url = $('.p-name a').attr("href");
    }
    var name = $('.p-name a').eq(0).text();
    return {
      'url': url,
      'name': name,
      'isbn': ''
    };
  },
  '360buy': function () {
    var dp = getProductInfo();
    var name = $('#name h1').text(),
      isbn = "";
    if (!name) name = $('.itemInfo-wrap .sku-name').eq(0).text();
    if (name && name.indexOf('<') > 0) {
      name = name.substr(0, name.indexOf('<'));
    }
    name = name.replace('收藏', '').trim();
    isbn = $('#summary-isbn .dd').text();
    if (!isbn) {
      isbn = $("td:contains('ISBN号：')").text().match(/\d+/);
      if (isbn) isbn = isbn[0];
    }
    if (!isbn) {
      isbn = $("#product-detail li:contains('ISBN：')").text().match(/\d+/);
      if (isbn) isbn = isbn[0];
    }
    if (!isbn) {
      isbn = $("td:contains('ISBN号：')").text().substr(7);
    }
    if (!isbn) {
      let isbntxt = $('.parameter2 li:contains("ISBN")').text();
      isbn = isbntxt.replace(/(?:ISBN|isbn)(?:\:|：)/, '');
    }
    if (!isbn) {
      let isbntxt = $('#parameter2 li:contains("ISBN")').text();
      isbn = isbntxt.replace(/(?:ISBN|isbn)(?:\:|：)/, '');
    }
    dp.name = $.trim(name);
    dp.isbn = isbn;
    var ab = window.pageConfig && window.pageConfig.product && window.pageConfig.product.brand;
    if (ab != 0) {
      dp.brand_string = $('#root-nav a[href*="' + ab + '"]').text();
      if (!dp.brand_string) dp.brand_string = $('#crumb-wrap .crumb .item a[href*="' + ab + '"]').eq(0).text();
    }
    if (window.pageConfig && window.pageConfig.product && window.pageConfig.product.name) {
      dp.name = window.pageConfig.product.name.replace(`&apos;`, `'`).replace(`&quot;`, `"`).replace('&nbsp;', ' ').trim();
    }
    // dp.price = $('#J_FinalPrice .price').text().replace(/[￥¥]+/, '');
    if (!dp.price) {
      dp.price = $('#jd-price').text().replace(/[￥¥]+/, '');
    }
    var new_cat_array = [];
    var cat_array = $("body").attr("class").match(/cat\-\d\-([0-9]+)/g) || [];
    for (var i = 0; i < cat_array.length; i++) {
      new_cat_array.push(cat_array[i].match(/\d\-([0-9]+)/)[1]);
    }
    if (new_cat_array.legnth === 0) {
      new_cat_array = window.pageConfig && window.pageConfig.product && window.pageConfig.product.cat;
    }
    if (window.pageConfig && window.pageConfig.product) {
      let pageConfig_pd = window.pageConfig.product;
      dp.shopId = pageConfig_pd.shopId;
      dp.venderId = pageConfig_pd.venderId;
    }
    dp.cat_id = new_cat_array.join("-");
    if (!dp.price) {
      dp.price = $('.p-price:not(.dj-price):eq(0)').text();
    }
    dp.plus_price = $('.p-price-plus .price').text().replace(/[￥¥]+/, '');
    dp.fans_price = $('.fans-price .p-price-fans span').text().replace(/[￥¥]+/, '');
    if (!dp.price) dp.price = $('.summary-price .p-price:not(.dj-price) .price').eq(0).text();
    try {
      dp.pic = 'https:' + $('#spec-img').eq(0).attr('data-origin').replace('/n5/', '/n1/');
    } catch (e) {}
    if (!dp.pic) {
      dp.pic = $('#spec-img').eq(0).attr('src').replace('/n5/', '/n1/');
    }
    if (!dp.pic) {
      dp.pic = $('#spec-img').attr('src');
    }
    if (!dp.pic) {
      dp.pic = $('.spec-items ul li img').eq(0).attr('src');
    }
    if (dp.pic && dp.pic.indexOf('http') === -1) dp.pic = 'http:' + dp.pic.replace(/\d+x\d+/, '160x160');
    dp.img = dp.pic;
    dp.itemId = location.href.match(/(\d+)\.html/)[1];
    dp.name = dp.name && dp.name.replace('【京东超市】', '');
    dp.website = 'jd.com';
    dp.cat_name = Array.prototype.map.call(document.querySelectorAll('#crumb-wrap .crumb a'), function (d) {
      return d.textContent;
    }).slice(0, 3).join('#');
    if (dp.price) {
      // change to number
      dp.price = dp.price.replace(/[^0-9.]/g, '');
    }
    dp.shopName = $('.shieldShopInfo .name:eq(1) a').text();
    if (!dp.shopName && location.host === 'npcitem.jd.hk') {
      dp.shopName = $('#crumb-wrap .contact .name a').text();
    }
    if (!dp.shopName) {
      dp.shopName = '京东';
    }
    const handler = {
      set(target, prop, value) {
        if (prop === 'price' && value > 16.9) {
          // console.log('dp price set', value)
          // if (!value && window.setBjgDebugger) {
          //   debugger
          // }
        }
        // if (!target[prop]) {
        //   target[prop] = value
        // }
        target[prop] = value;
        return true;
      },
      get(target, prop) {
        // console.log(`dp get prop `, prop, target[prop])
        return target[prop];
      }
    };
    const dpProxy = new Proxy(dp, handler);
    return dpProxy;
  },
  '360buy-re': function () {
    var dp = getProductInfo();
    dp.name = $('.shop_intro>h2>a').text();
    dp.price = $('.shop_intro_a .price a').text();
    return dp;
  },
  '360buy-auction': function () {
    var dp = getProductInfo();
    dp.name = $('#product-intro .p-info h1').text();
    dp.price = $('#cur_price').text().match(/[0-9.]+/)[0];
    return dp;
  },
  'fglady': function () {
    return {
      'name': $('.pd-content-left table tbody').children('tr').eq(1).children('td').eq(0).children('div').eq(0).text(),
      'isbn': ''
    };
  },
  'ouku': function () {
    var dp = getProductInfo();
    dp.name = $('.prod-info-title h1').text();
    dp.brand_string = $('.specTitle .strong-title:contains("品牌")+.inline span').text();
    dp.price = $('.sale-price').text().replace(/[￥¥\s]+/g, '');
    return dp;
  },
  '6pm': function () {
    var dp = getProductInfo();
    dp.name = $('#productStage .title').text();
    dp.brand_string = $('#productStage .title .brand').text();
    dp.price = $('#priceSlot .price').text().replace('$', '');
    dp.img = $('#productImages ul li img').eq(0).attr('src');
    dp.sku = $('input[name="productId"]').val();
    dp.category = $('#breadcrumbs a').text();
    dp.source = $('#thumbnailImages').next().next().next().text();
    dp.brand = $('a[itemprop="brand"]').text();
    if (!dp.price) dp.price = $('._3r_Ou').eq(0).text().replace('$', '');
    return dp;
  },
  'kimiss': function () {
    var name = "";
    name = $('.preview_title h1 a').text();
    var price = $('.preview_brief em').text();
    if (price.indexOf('-') > -1) {
      price = price.split('-')[0];
    }
    var pinfo = $('.preview_brief').text().match(/产品规格：(.*)/);
    if (pinfo) pinfo = pinfo[1];
    if (pinfo.indexOf('-') > -1) pinfo = pinfo.split('-')[0];
    name = name + pinfo;
    if (name == "") {
      name = $('.title h1').text();
    }
    return {
      'name': name,
      'price': price,
      'isbn': ''
    };
  },
  'redbaby': function () {
    return {
      'name': $('#pName').text(),
      'isbn': ''
    };
  },
  'm18': function () {
    return {
      'name': $('.goods_detail .name').text(),
      'isbn': ''
    };
  },
  'babyhaven': function () {
    let d = getProductInfo();
    d.name = $('.product-name').text();
    return d;
  },
  'w1': function () {
    return {
      'name': $('.title h1').text(),
      'isbn': ''
    };
  },
  'sephoracps': function () {
    let price = $('.proPrice>span:eq(1)').text();
    return {
      'name': $('.sdTitleL h1').text(),
      'isbn': '',
      'price': price
    };
  },
  'bookuu': function () {
    var dp = getProductInfo();
    dp.name = $('.shop-text-info h2').text();
    dp.price = $('.wj-meta span:contains("博库价")~strong').text();
    var meta = $("meta[name=keywords]")[0].getAttribute("content");
    dp.isbn = /ISBN：(\d+)/.exec(meta) && /ISBN：(\d+)/.exec(meta)[1];
    return dp;
  },
  'secoo': function () {
    var dp = getProductInfo();
    dp.price = $('.Dprice').text().replace(/(¥|,)/g, '');
    dp.name = $('.proName h2').text();
    return dp;
  },
  'lafaso': function () {
    var name = $('#pname').text();
    if (typeof name == 'undefined' || name == '') {
      name = $('title').html();
    }
    return {
      'name': name,
      'isbn': ''
    };
  },
  's': function () {
    return {
      'name': $('.goodsname').text(),
      'isbn': ''
    };
  },
  'letao': function () {
    return {
      'name': $('#buyinfo h1').text(),
      'isbn': ''
    };
  },
  'buy007': function () {
    return {
      'name': $('#info_right table tbody').children('tr').eq(0).children('td').eq(0).children('h1').eq(0).text(),
      'isbn': ''
    };
  },
  'taoxie': function () {
    return {
      'name': $('.detail').children('div').eq(0).children('h2').eq(0).text(),
      'isbn': ''
    };
  },
  'suning': function () {
    var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning");
    var name = $('#itemDisplayName').text().trim();
    var isbn;
    if (!isbn) {
      isbn = $('#total dt:contains("I")').next().eq(0).text();
      isbn = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig);
      if (isbn) isbn = isbn[0];
    }
    if (!isbn) {
      isbn = $('.book-info span:contains("I")').next().eq(0).text();
      isbn = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig);
      if (isbn) isbn = isbn[0];
    }
    if (!isbn) {
      isbn = $('#bookParameterField dl:contains("ISBN")').text().match(/[0-9]+/);
      if (isbn) isbn = isbn[0];
    }
    dp.url = location.href;
    let labelList = $('.w3').toArray();
    labelList = labelList.map(i => i.innerHTML);
    let tgPrice;
    if (labelList.indexOf('团购价') > -1 || labelList.indexOf('预售价') > -1) {
      tgPrice = $('span.small-price').text();
    }
    let promotionPrice = $('#promotionPrice.mainprice').text();
    let mainPrice = $('.mainprice').text();
    dp.name = name;
    dp.isbn = isbn;
    dp.brand_string = window.sn && window.sn.brandName || '';
    dp.price = window.sn && window.sn.promotionPrice || 0;
    if (mainPrice) {
      dp.price = mainPrice;
    }
    if (promotionPrice) {
      dp.price = promotionPrice;
    }
    if (tgPrice) {
      dp.price = tgPrice;
    }
    dp.itemId = location.href.match(/(\d+\/\d+)\.html/)[1];
    var catdom = $(".breadcrumb .dropdown:nth-last-of-type(3) a");
    var cathref = catdom && catdom.attr('href');
    dp.cat_id = cathref.match(/(\d-\d{0,}-\d)\.html/) ? cathref.match(/(\d-\d{0,}-\d)\.html/)[1] : "";
    dp.website = "suning";
    dp.pic = $('#bigImage img').attr('src');
    if (dp.pic) dp.pic = $('#bigImg img').attr('src');
    if (!dp.name) dp.name = window.sn && window.sn.itemDisplayName;
    dp.name = dp.name && dp.name.replace('【苏宁易购超市】', '');
    if ($('#mainPrice').text().indexOf('定金') > -1) {
      G.noRealPrice = true;
    }
    return dp;
  },
  'suning-ju': function () {
    var dp = {};
    dp.url = 'http://www.suning.com/emall/prd_10052_10051_-7_' + $("#itemId").attr("value") + '_.html';
    if (G.crc64) dp.url = undefined;
    dp.name = $("h1 a").text();
    return dp;
  },
  'suning-book-new': function () {
    var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning");
    var name = $('title').html();
    var isbn = "";
    isbn = $('#total dt:contains("I")').next().eq(0).text();
    var matches = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig);
    if (matches != null) {
      isbn = matches[0];
    } else {
      isbn = "";
    }
    if (isbn == '') {
      isbn = $('.book-info span:contains("I")').next().eq(0).text();
      var matches = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig);
      if (matches != null) {
        isbn = matches[0];
      } else {
        isbn = "";
      }
    }
    dp.name = name;
    dp.isbn = isbn;
    return dp;
  },
  'suning-snbook': function () {
    var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning");
    dp.name = $('.brief-info h1 strong').text();
    dp.isbn = $('.parm-isbn span.attr-v').text();
    return dp;
  },
  'suning-dgf': function () {
    var that = this;
    var dp = that.getProductInfo();
    var a = $('.detail-first h1.title a').eq(0);
    dp.name = $('.detail-first h1.title a span strong').text();
    G.href = a.attr('href');
    G.site = "suning";
    if (typeof G.href == 'undefined' || G.href == "") {
      dp.useless = true;
    } else {
      var check = siteInfo.isProductPage();
      if (!check) {
        dp.useless = true;
      }
    }
    return dp;
  },
  'suning-qiang': function () {
    var dp = getArticleInfo(".product-main-title h1 a", 0, "suning");
    var suningQiangProId = $('#catentry').val();
    if (suningQiangProId) {
      G.href = 'http://www.suning.com/emall/prd_10052_10051_-7_' + suningQiangProId + '_.html';
    }
    return dp;
  },
  'suning-pai': function () {
    var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning");
    var name = $('.fb-main-title a').text();
    var isbn = "";
    var url = "";
    url = $('.fb-main-title a').attr('href');
    isbn = $('#total dt:contains("I")').next().eq(0).text();
    var matches = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig);
    if (matches != null) {
      isbn = matches[0];
    } else {
      isbn = "";
    }
    dp.name = name;
    dp.isbn = isbn;
    dp.url = url;
    return dp;
  },
  'coo8': function () {
    return {
      'name': $('#productname h1').children('strong').eq(0).text(),
      'isbn': ''
    };
  },
  'lusen': function () {
    return {
      'url': 'http://www.lusen.com/Product/ProductInfo.aspx?id=' + $("#ProductId").val(),
      'name': $('h1.goodsname').text(),
      'isbn': ''
    };
  },
  'gome-rushbuy': function () {
    var url = "";
    url = $(".pic a").eq(0).attr("href");
    return {
      'name': $('.product-info .name').text(),
      'isbn': '',
      'url': url
    };
  },
  'gomehone': function () {
    var dp = getProductInfo();
    dp.price = $('#prdPrice').text().match(/[0-9.]+/)[0];
    dp.name = $('.prdmain .prdtit').text();
    return dp;
  },
  'gome': function () {
    var prdInfo = window.prdInfo;
    var dp = getProductInfo();
    var isbn = "";
    var name = $('title').html();
    name = $('.prdtit h1').text();
    dp.name = name;
    dp.isbn = isbn;
    dp.price = $('#prdPrice').text();
    if (name == '') dp.name = prdInfo && prdInfo.prdName;
    if (dp.price == '') dp.price = prdInfo && prdInfo.price;
    dp.brand_string = prdInfo && prdInfo.breadName;
    dp.itemId = location.href.match(/gome\.com\.cn\/([A-Z0-9]+)-/)[1];
    dp.cat_id = prdInfo && prdInfo.catId;
    dp.website = 'gome';
    dp.pic = $('.pic-small ul li img').eq(0).attr('src');
    if (!dp.cat_id) {
      var dom = $('.local a').eq(3).attr('href');
      dp.cat_id = dom.match(/cat\d+/) && dom.match(/cat\d+/)[0];
    }
    return dp;
  },
  'gome-q': function () {
    var dp = getProductInfo();
    dp.name = $('h1.title').text();
    dp.url = $('.pro_link')[0].href;
    return dp;
  },
  'gome-tao': function () {
    var dp = getProductInfo();
    dp.name = $('.prdtit').text();
    dp.price = parseInt($('#prdPrice').text().match(/[0-9]+/)[0]);
    return dp;
  },
  'gome-tuan': function () {
    var dp = getProductInfo();
    dp.url = $(".compare-link").attr("href");
    dp.name = $('title').html();
    dp.price = $('#salePrice').text();
    return dp;
  },
  'yihaodian': function () {
    var dp = getProductInfo();
    var id = "";
    if ($('#productId').length) {
      id = $('#productId').val();
    } else if ($('#productCode').length) {
      id = parseInt($('#productCode').text().slice(0, -1));
    } else if ($('#mainProductId').length) {
      id = $('#mainProductId').val();
    }
    // 名品特卖
    else if ($('.specific_detail p span').length) {
      id = parseInt($('.specific_detail p span').text().match(/\d+$/)[0].slice(0, -1));
    }
    var name = $('#productMainName').text();
    var sp = name.indexOf('<');
    if (sp > 0) {
      name = name.substr(0, sp);
    }
    if (name == '') {
      name = $('.main_info_con p.price').prev().eq(0).text();
    }
    ;
    if (name == '') {
      name = $('.pro_tit').text();
    }
    var isbn = $('#prodDetailCotentDiv dd:contains("ISBN")').text().substr(5);
    isbn = $.trim(isbn);
    var itemId = location.href.match(/item\/([0-9]{5,9})/);
    dp.itemId = itemId && itemId[1];
    dp.img = $('#jsproCrumb .mBox b img').eq(0).attr('src');
    dp.brand_string = $('#brandName').val();
    dp.price = $('#current_price').text().replace(/[￥¥]+/, '');
    dp.cat_id = $('#categoryId').val();
    dp.isbn = isbn;
    dp.name = name;
    dp.id = id;
    dp.pic = dp.img;
    dp.website = 'yhd';
    return dp;
  },
  'yihaodian-tuan': function () {
    var name = '';
    var id = '';
    var url = "";
    name = $('#detailDiv h2').eq(0).text();
    id = $('#productId').val();
    if (id == '') {
      id = $('#mainProductId').val();
    }
    if (name == '') {
      name = $("title").text().replace(/.{2}团购_1号团_1号店官网/, "");
    }
    var price = $('#pricenow').text();
    url = 'http://item.yhd.com/item/' + $('#productMercantId').val();
    return {
      'name': name,
      'isbn': '',
      'id': id,
      'url': url,
      'price': price
    };
  },
  'womai': function () {
    var dp = getProductInfo();
    dp.name = "";
    var matches = $(".main_detail").eq(0).html().match(/var _title = "([^"]+)"/);
    dp.name = matches[1];
    dp.price = $('.buyPrice').text();
    if (dp.name == "") {
      dp.name = $('.WrapTit').text();
    }
    dp.name = window.rtTag.data.ecom_view.prod[0].p_name;
    dp.price = window.rtTag.data.ecom_view.prod[0].p_price;
    dp.brand_string = window.rtTag.data.ecom_view.prod[0].p_brand;
    return dp;
  },
  'coocaa': function () {
    return {
      'name': "酷开 " + $(".proHeader h1").text()
    };
  },
  'leyou': function () {
    var dp = getProductInfo();
    dp.name = $('#baseInfoDiv h3').text();
    dp.price = $('.item_rmb .font_num').text();
    return dp;
  },
  'shopin': function () {
    var crumbs = $.trim($('.crumbs').text());
    var title = $.trim($('.product-list h2').text());
    crumbs = crumbs.replace(/(?:\u5f53\u524d\u4f4d\u7f6e|\u9996\u9875|-)/, "", crumbs);
    return {
      'name': crumbs + " " + title,
      'isbn': ''
    };
  },
  'xiu': function () {
    var name = "";
    name = $('.p_title span h1').text();
    return {
      'name': name,
      'isbn': ''
    };
  },
  'xiu-tuan': function () {
    return {
      'name': $('.xit_xqzgong h2').text(),
      'isbn': ''
    };
  },
  'vjia': function () {
    return {
      'name': $('.sp-singleName .title').text(),
      'isbn': ''
    };
  },
  '7cv': function () {
    return {
      'name': $('.main_right_top').text(),
      'isbn': ''
    };
  },
  'x': function () {
    return {
      'name': $('p.top_name').text(),
      'isbn': ''
    };
  },
  'guopi': function () {
    return {
      'name': $('#p_name').text(),
      'isbn': ''
    };
  },
  'no5': function () {
    var name = $('.part01 .p01_r h2').html();
    if (name.indexOf('<') > 0) {
      name = name.substr(0, name.indexOf('<'));
    }
    return {
      'name': name,
      'isbn': ''
    };
  },
  'sasa': function () {
    var name = $('.product-titles').text();
    var price = $('#product_information .action-pric').text();
    return {
      'name': name,
      'price': price,
      'isbn': ''
    };
  },
  'dhc': function () {
    return {
      'name': $('head title').text(),
      'isbn': ''
    };
  },
  '9dadao': function () {
    return {
      'name': $('.pra h2').text(),
      'isbn': ''
    };
  },
  'metao': function () {
    return {
      name: $(".pib_title_detail").text()
    };
  },
  'kzj365': function () {
    var content = $("title").text();
    var i = content.indexOf("_");
    return {
      name: content.slice(0, i)
    };
  },
  'nubia': function () {
    var title = '';
    if (title == '') {
      title = $('#subNav .sub-logo').eq(0).text();
    }
    var price = $('.price').text();
    return {
      name: title,
      price: price
    };
  },
  'gnc': function () {
    return {
      name: $('#product-title').text(),
      price: $('.price-regular').text().match(/[0-9.]+/) && $('.price-regular').text().match(/[0-9.]+/)[0]
    };
  },
  'ymatou': function () {
    var content = $("meta[name=description]").attr("content");
    var i = content.indexOf('”');
    return {
      name: content.slice(1, i)
    };
  },
  'kaola': function () {
    return {
      name: $(".product-title").text(),
      price: $('.currentPrice').text()
    };
  },
  '360kxr': function () {
    var name = $('.right-intro h2').html();
    name = name.indexOf('<') > 0 ? name.substr(0, name.indexOf('<')) : name;
    return {
      'name': name,
      'isbn': ''
    };
  },
  'likeface': function () {
    return {
      'name': $('.tCtn h1').text(),
      'isbn': ''
    };
  },
  'qxian': function () {
    return {
      'name': $('.product_body1_right_title h1').text(),
      'isbn': ''
    };
  },
  'didamall': function () {
    return {
      'name': $('.product-name').text(),
      'isbn': ''
    };
  },
  'yaodian100': function () {
    return {
      'name': $('.infoboxheader h1').text(),
      'isbn': ''
    };
  },
  'lijiababy': function () {
    var name = $('#txtproname').text();
    if (typeof name == 'undefined' || name == '') {
      name = $('#lbl_proname').text();
    }
    return {
      'name': name,
      'isbn': ''
    };
  },
  '99read': function () {
    var dp = getProductInfo();
    dp.isbn = $('li:contains("产品条码")').html();
    if (dp.isbn == null || typeof dp.isbn == 'undefined' || dp.isbn == '') {
      dp.isbn = '';
    } else {
      dp.isbn = dp.isbn.substr(7);
    }
    return dp;
  },
  'china-pub': function () {
    return {
      'name': $('h1.black15c').text(),
      'isbn': $('li:contains("ISBN")').children('strong').eq(0).html()
    };
  },
  'bookschina': function () {
    var dp = getProductInfo();
    dp.name = $('.this-pic').prev().text();
    dp.name = $.trim(dp.name);
    dp.isbn = $('tr:contains(\"出版时间：\")').children().eq(1).text();
    dp.isbn = $.trim(dp.isbn);
    return dp;
  },
  'bookschina-tuan': function () {
    var dp = getProductInfo();
    dp.name = $('.titword').text().match(/《([^》]+)/)[1];
    dp.price = $('.pricetime .pright .Mbig').text();
    dp.isbn = $('.comments:contains("ISBN")').text().match(/ISBN：([0-9]+)/)[1];
    if (dp.isbn == '') {
      dp.isbn = $('.comments').text().match(/[0-9]{13}/) && $('.comments').text().match(/[0-9]{13}/)[0];
    }
    return dp;
  },
  'efeihu': function () {
    var dp = getProductInfo();
    dp.name = $('.share_title em').text();
    var p = $('.box_wrap .price .a p').text().match(/[0-9]+/);
    if (p) dp.price = p[0];
    return dp;
  },
  'yintai': function () {
    return {
      'name': $('.p-tit').text(),
      'isbn': '',
      'price': $('.qd-num').text()
    };
  },
  'urcosme': function () {
    return {
      'name': $('.productInformationText h1').text(),
      'isbn': ''
    };
  },
  'strawberrynet': function () {
    return {
      'name': $('.product-frame h1').text() + $('.product-frame h2').text(),
      'isbn': ''
    };
  },
  'luce': function () {
    return {
      'name': $('.Product_Detail ul').children('li').eq(0).children('p').eq(0).text(),
      'isbn': ''
    };
  },
  'k121': function () {
    return {
      'name': $('.newproductname0').text(),
      'isbn': ''
    };
  },
  'happigo': function () {
    return {
      'name': $('.detail_top .detail_tit ').text(),
      'price': $('.price_now').text()
    };
  },
  'gap': function () {
    return {
      'name': $('.product-name h1').text(),
      'isbn': ''
    };
  },
  'misslele': function () {
    return {
      'name': $('#goods_name').text(),
      'isbn': ''
    };
  },
  'all3c': function () {
    return {
      'name': $('.buyinfo h1').text(),
      'isbn': ''
    };
  },
  'idaphne': function () {
    return {
      'name': $('.title').text(),
      'isbn': ''
    };
  },
  'binggo': function () {
    var name = $('#pName h1').html();
    var len = name.length;
    var i = 0;
    for (; i < len; i++) {
      if (name[i] == '<') {
        break;
      }
    }
    return {
      'name': name.substr(0, i),
      'isbn': ''
    };
  },
  'taobao-ju': function () {
    var info = getProductInfo();
    var id = /item_id=(\d+)/ig.exec(location.href);
    info.id = id && id.length == 2 && id[1];
    info.name = $.trim($('.main-box h2').text());
    info.url = `https://detail.tmall.com/item.htm?id=${info.id}`;
    info.itemId = location.href.match(/item_id=(\d+)/)[1];
    info.price = $('.currentPrice .J_actPrice').eq(0).text();
    return info;
  },
  'tmall': function () {
    var info = getProductInfo();
    var attrs = $(".attributes-list ul").html();
    var sattrs = '';
    var userid = "";
    if (attrs == null) {
      attrs = $(".attributes-list").html();
    }
    if (attrs) {
      attrs = attrs.replace(/(?:<\!\-\-[^\-]*\-\->|<li[^>]*>|\ \ )/ig, '');
      attrs = attrs.replace(/&nbsp;/ig, ' ');
      attrs = attrs.replace(/<\/li[^>]*>/ig, '|');
      attrs = attrs.replace(/\n/ig, '');
      var brand = attrs.match(new RegExp(/\|(\u54c1\u724c(?:\:|\uff1a)[^\|]+)/ig));
      if (brand) {
        for (var i = 0; i < brand.length; i++) {
          sattrs += brand[i] + '|';
        }
      }
      var no = attrs.match(new RegExp(/((?:\u7cfb\u5217|\u8d27\u53f7|\u578b\u53f7|\u6b3e\u53f7)(?:\:|\uff1a)[^\|]+)/ig));
      if (no) {
        for (var i = 0; i < no.length; i++) {
          sattrs += no[i] + '|';
        }
      }
      var isbn = attrs.match(new RegExp(/(ISBN[^\:\uff1a]*(?:\:|\uff1a)[^\|]+)/ig));
      if (isbn) {
        for (var i = 0; i < isbn.length; i++) {
          sattrs += isbn[i] + '|';
        }
      }
      info.skeyword = sattrs;
    }
    //提取分类信息
    info.cat_id = "";
    var cat_id = $('#tb-beacon-aplus').attr('exparams');
    cat_id = cat_id && cat_id.match(/category=item%5f(\d+)&/);
    cat_id = cat_id && cat_id[1];
    info.cat_id = cat_id;
    if (info.cat_id == "") {
      var cat_id = $('#detail-recommend-viewed').attr('data-catid');
      info.cat_id = cat_id;
    }
    info.root_id = $('#J_FrmBid input[name="rootCatId"]').val();
    //提取图片信息
    info.pic = $('#J_ImgBooth').attr('src');
    if (!info.pic) {
      let el = $('img[class^=PicGallery--mainPic--]');
      info.pic = el.attr('src');
    }
    if (!info.pic) {
      let el = $('[class^=PicGallery--thumbnailPic]');
      info.pic = el.attr('src');
    }
    if (info.pic && info.pic.indexOf('https:') !== 0) info.pic = 'https:' + info.pic;
    var itemid = location.href.match(/[?&]id=(\d+)/);
    itemid = itemid && itemid[1];
    //获取用户的id
    var doms = $("meta[name='microscope-data']").attr('content');
    var matches = doms && doms.match(/userid=(\d+)/);
    if (matches) {
      userid = matches[1];
    }
    let price = $('#J_PromoBox .tb-wrTuan-num').text();
    if (!price) price = $('#J_Price').text();
    if (!price) price = $('#J_StrPrice').text();
    if (!price) price = $('.tm-promo-price .tm-price').text();
    if (!price) price = $('#J_StrPriceModBox .tm-price').text();
    if (!price) price = $('.tm-price').text();
    if (!price) {
      price = $('[class^=Price--priceText]:eq(0)').text();
      let detailText = $('[class^=Price--originPrice]:eq(0)').text();
      let extraPriceText = $('[class^=Price--extraPrice]:eq(0)').text();
      if (extraPriceText) {
        detailText += '--' + extraPriceText;
      }
      G.priceTextCollectedFromPage = detailText;
      if (detailText.indexOf('折后') > -1 || detailText.indexOf('券后') > -1) {
        // console.log('dp price info bad', price)
        info.ori_price = price;
        price = '';
      }
    }
    const promoPrice = getPrice('[class^=Price--extraPrice] span[class^=Price--priceText]');
    if (promoPrice) {
      price = promoPrice;
    }
    if ($('[class^=SecurityPrice--priceText]').length) {
      price = $('[class^=SecurityPrice--priceText]').text();
    }
    info.shop_name = $('.shopkeeper .right a').text();
    info.shop_addres = $('.locus .right').text().replace(/(?:\t|\n|\s)/ig, '');
    info.price = price;
    // console.log('dp price info', price)
    info.userid = userid;
    info.img = info.pic;
    info.name = $('#J_DetailMeta .tb-detail-hd h1').text().replace(/\n/g, '').trim();
    if (!info.name) {
      info.name = $('[class^=ItemHeader--mainTitle]').text();
    }
    info.itemId = itemid;
    let url = location.href;
    // if (url.indexOf('detail.tmall.com') > -1 && url.indexOf('skuId') > -1) {
    //   let skuId = require('common/commonUtil').getParameterByName('skuId', location.href)
    //   let dp = require('common/commonUtil').getParameterByName('id', location.href)
    //   url = `https://sku-taobao.com/item.htm?id=${dp}-${skuId}`
    // }
    info.url = url;
    const handler = {
      set(target, prop, value) {
        if (prop === 'price') {
          // console.log('dp price set', value)
          if (!value && window.setBjgDebugger) {
            debugger;
          }
        }
        if (!target[prop]) {
          target[prop] = value;
        }
        return true;
      },
      get(target, prop) {
        // console.log(`dp get prop `, prop, target[prop])
        return target[prop];
      }
    };
    info.onPagePrice = info.price;
    info = tbInfoFix(info);
    const infoAlter = new Proxy(info, handler);
    return infoAlter;
  },
  'mi': () => {
    let info = getProductInfo();
    info.name = $('.product-con h1').text();
    return info;
  },
  'taobao': function () {
    var info = getProductInfo();
    var attrs = $(".attributes-list ul").html();
    var sattrs = '';
    var userid = "";
    if (attrs == null) {
      attrs = $(".attributes-list").html();
    }
    if (attrs) {
      attrs = attrs.replace(/(?:<\!\-\-[^\-]*\-\->|<li[^>]*>|\ \ )/ig, '');
      attrs = attrs.replace(/&nbsp;/ig, ' ');
      attrs = attrs.replace(/<\/li[^>]*>/ig, '|');
      attrs = attrs.replace(/\n/ig, '');
      var brand = attrs.match(new RegExp(/\|(\u54c1\u724c(?:\:|\uff1a)[^\|]+)/ig));
      if (brand) {
        for (var i = 0; i < brand.length; i++) {
          sattrs += brand[i] + '|';
        }
      }
      var no = attrs.match(new RegExp(/((?:\u7cfb\u5217|\u8d27\u53f7|\u578b\u53f7|\u6b3e\u53f7)(?:\:|\uff1a)[^\|]+)/ig));
      if (no) {
        for (var i = 0; i < no.length; i++) {
          sattrs += no[i] + '|';
        }
      }
      var isbn = attrs.match(new RegExp(/(ISBN[^\:\uff1a]*(?:\:|\uff1a)[^\|]+)/ig));
      if (isbn) {
        for (var i = 0; i < isbn.length; i++) {
          sattrs += isbn[i] + '|';
        }
      }
      info.skeyword = sattrs;
    }

    //提取分类信息
    info.cat_id = $('#J_Pine').attr('data-catid');
    info.root_id = $('#J_Pine').attr('data-rootid');
    //提取图片信息
    info.pic = $('#J_ImgBooth').attr('src');
    if (!info.pic) {
      let el = $('img[class^=PicGallery--mainPic--]');
      info.pic = el.attr('src');
    }
    if (!info.pic) {
      let el = $('[class^=PicGallery--thumbnailPic]');
      info.pic = el.attr('src');
    }
    if (info.pic && info.pic.indexOf('https:') !== 0) info.pic = 'https:' + info.pic;
    info.img = info.pic;

    //获取用户的id
    var doms = $("meta[name='microscope-data']").attr('content');
    var matches = doms && doms.match(/userid=(\d+)/);
    userid = matches && matches[1];
    var price = $('#J_Price').text();
    if (!price) {
      price = $('[class^=Price--priceText]:eq(0)').text();
      let detailText = $('[class^=Price--originPrice]:eq(0)').text();
      let extraPriceText = $('[class^=Price--extraPrice]:eq(0)').text();
      if (extraPriceText) {
        detailText += '--' + extraPriceText;
      }
      G.priceTextCollectedFromPage = detailText;
      if (detailText.indexOf('折后') > -1 || detailText.indexOf('券后') > -1) {
        // console.log('dp price info bad', price)
        info.ori_price = price;
        price = '';
      }
    }
    const promoPrice = getPrice('[class^=Price--extraPrice] span[class^=Price--priceText]');
    if (promoPrice) {
      price = promoPrice;
    }
    if ($('[class^=SecurityPrice--priceText]').length) {
      price = $('[class^=SecurityPrice--priceText]').text();
    }
    info.shop_name = $('.shopkeeper .right a').text();
    info.shop_addres = $('.locus .right').text().replace(/(?:\t|\n|\s)/ig, '');
    info.nnid = location.href.match(/[?&]id=([0-9]+)/) && location.href.match(/[?&]id=([0-9]+)/)[1];
    info.price = price;
    info.onPagePrice = price;
    info.newtitle = $('#J_Title .tb-main-title').text().trim();
    info.itemId = info.nnid;
    info.userid = userid;
    if (info.img && info.img.indexOf('//') === 0) {
      info.img = 'https:' + info.img;
    }
    info = tbInfoFix(info);
    return info;
  },
  'taobao-spu': function () {
    return {
      'name': $('#detail .detail-hd h3').text(),
      'isbn': ''
    };
  },
  'xijie': function () {
    return {
      'name': $('.detail_sh_right h1').text(),
      'isbn': ''
    };
  },
  'caomeipai': function () {
    return {
      'name': $('#pro_name h2').text(),
      'isbn': ''
    };
  },
  'dahuozhan': function () {
    return {
      'name': $('.property h2').text(),
      'isbn': ''
    };
  },
  'huolida': function () {
    return {
      'name': $('.h1_title h1').text(),
      'isbn': ''
    };
  },
  '12dian': function () {
    return {
      'name': $('.goodstitle').text(),
      'isbn': ''
    };
  },
  '111': function () {
    var dp = getProductInfo();
    dp.name = $('.detailnav span').last().text();
    dp.price = window._BFD.BFD_INFO.price;
    return dp;
  },
  'daoyao': function () {
    return {
      'name': $('.product_1_4 .d_table_3 .font_01').text(),
      'isbn': ''
    };
  },
  'douban': function () {
    var tmp_isbn = $('#info').html();
    var isbn = '';
    var start = tmp_isbn.indexOf('ISBN:');
    var length = tmp_isbn.length;
    start += 12;
    for (; start < length; start++) {
      if (tmp_isbn[start] >= '0' && tmp_isbn[start] <= '9') {
        isbn += tmp_isbn[start];
      }
    }
    if (isbn === '') {
      var t = $('#content .indent').eq(1).text().match(/isbn: (\d+)/);
      if (t) {
        isbn = t[1];
        isbn = isbnTran(isbn);
      }
    }
    var href = window.location.href.toString();
    var matches = href.match(/gwd_isbn=(\d+)/);
    if (isbn == "" && matches) {
      isbn = matches[1];
    }
    var info = getProductInfo();
    info.isbn = isbn;
    return info;
  },
  'douban-dongxi': function () {
    var info = getProductInfo();
    info.title = $('.commodity-name a').text();
    return info;
  },
  'it168': function () {
    return {
      'name': $('.title100 h1').text(),
      'isbn': ''
    };
  },
  'pconline': function () {
    return {
      'name': $('.pro-tit .name').text(),
      'isbn': ''
    };
  },
  'pcpop': function () {
    return {
      'name': $('.tit1 h1').text(),
      'isbn': ''
    };
  },
  'yoka': function () {
    return {
      'name': $('.pInfo_c2_lu h2').text(),
      'isbn': ''
    };
  },
  '55bbs': function () {
    return {
      'name': $('.cpjsright_name h1').text(),
      'isbn': ''
    };
  },
  'onlylady': function () {
    return {
      'name': $('.bnnaer_text').text(),
      'isbn': ''
    };
  },
  '24dq': function () {
    return {
      'name': $('.goodsname').text(),
      'isbn': ''
    };
  },
  'lingshi': function () {
    return {
      'name': $('#detail_bb h3').text(),
      'isbn': ''
    };
  },
  'onlyts': function () {
    return {
      'name': $('#bread .last').eq(1).text(),
      'isbn': ''
    };
  },
  'winxuan': function () {
    var isbn = '';
    isbn = $('li:contains("I S B N：")').text().substr(8);
    var title = '';
    title = $("meta[name='keywords']").attr("content");
    return {
      'name': title,
      'isbn': isbn
    };
  },
  /*'new7' : function(){
   return {
   'name': $('.mainR h1 strong').text(),
   'isbn': ''
   }
   },*/
  'beifabook': function () {
    var isbn = $('#LabelISBN').text();
    isbn = isbn.replace(/-/g, "");
    return {
      'name': $('#LabelTitle').text(),
      'isbn': isbn
    };
  },
  'sina-tech': function () {
    var name = $('.zcblk02 h2').html();
    if (typeof name == 'undefined' || name == '' || name == null) {
      name = $('.PartATitle h2').html();
      if (typeof name == 'undefined' || name == '' || name == null) {
        name = $('.Info h2').html();
        if (typeof name == 'undefined' || name == '' || name == null) {
          name = $('.product-name h1').html();
          if (typeof name == 'undefined' || name == '' || name == null) {
            name = $('title').html().substr(0, $('title').html().indexOf('_'));
          }
        }
      }
    }
    if (name.indexOf('<') > 0) {
      name = name.substr(0, name.indexOf('<'));
    }
    name = name.replace("&nbsp;", "");
    return {
      'name': name,
      'isbn': ''
    };
  },
  'sina-baby': function () {
    return {
      'name': $('.dp_info_title').text(),
      'isbn': ''
    };
  },
  'sina-eladies': function () {
    return {
      'name': $('.blk01 h1').text(),
      'isbn': ''
    };
  },
  'sohu-it': function () {
    return {
      'name': $('.til h2').text(),
      'isbn': ''
    };
  },
  'sohu-women': function () {
    return {
      'name': $('.r h2 span').text(),
      'isbn': ''
    };
  },
  '163-digi': function () {
    var name = $('.colA h3').text();
    if (typeof name == 'undefined' || name == null || name == '') {
      name = $('.colA h1').text();
    }
    return {
      'name': name,
      'isbn': ''
    };
  },
  '163-lady': function () {
    return {
      'name': $('.detailbox-main h1').text(),
      'isbn': ''
    };
  },
  'qq-digi': function () {
    var name = $('.top_hd h2').text();
    if (typeof name == 'undefined' || name == '' || name == null) {
      name = $('.font0751 span').text();
    }
    return {
      'name': name,
      'isbn': ''
    };
  },
  'qq-hea': function () {
    var name = $('#pdShow h1').text();
    if (typeof name == 'undefined' || name == '' || name == null) {
      name = $('#pdShow .longName').text();
    }
    return {
      'name': name,
      'isbn': ''
    };
  },
  'qq-lady': function () {
    var name = $('.pro_info .title').text();
    return {
      'name': name,
      'isbn': ''
    };
  },
  'vipshop': function () {
    var getCatgory = function () {
      var result;
      if (window.O_viewed) {
        return {
          cat_id: window.O_viewed.category_id,
          cat_name: window.O_viewed.category_name
        };
      } else {
        // for chrome
        var s = $('#J-bottom-adCode').next().text();
        if (!s) s = $('#J_topbar_pop_template').next().text();
        s = /var O_viewed = {([\s\S]*?)}/.exec(s);
        if (s) s = s[1];
        var cat_id = /'category_id' : '(\d+)'/.exec(s);
        if (cat_id) cat_id = cat_id[1];
        var cat_name = /'category_name' : '(.*?)'/.exec(s);
        if (cat_name) cat_name = cat_name[1];
        return {
          cat_name: cat_name,
          cat_id: cat_id
        };
      }
    };
    var cat = getCatgory();
    var name = "";
    name = $(".bt_layout li:contains('商品名称') .bt_lt_par_p").text();
    if (name == "") {
      name = $.trim($('.pro_info .goods_protit').text());
    }
    if (name == "") {
      name = $('.bt_title').text().replace(/(?:\n|\t|\s)/ig, '');
    }
    if (name == "") {
      name = $.trim($('.pib-title-detail').text());
    }
    return {
      'price': $('.pi-price-box .sp-price').text(),
      'name': name,
      'isbn': '',
      'cat_id': cat.cat_id,
      'cat_name': cat.cat_name,
      'img': $('.J-mer-bigImgZoom').attr('href'),
      'brand_string': $('.pib-title-class a').text()
    };
  },
  'j1': function () {
    return {
      'name': $('.productarea-right-1 H1').text(),
      'isbn': ''
    };
  },
  'yougou': function () {
    var dp = getProductInfo();
    dp.name = $('.goodsCon  .f16').text();
    if (dp.name == '') dp.name = $('.goodsCon h1').text().replace(/\s/g, '');
    if ($('#yitianPrice')) {
      dp.price = $('#yitianPrice').text();
    }
    return dp;
  },
  'jxdyf': function () {
    return {
      'name': $('.product .pro_name').text(),
      'isbn': ''
    };
  },
  'yaofang': function () {
    var name = $('.pro_title').html();
    if (name.indexOf('<') > 0) {
      name = name.substr(0, name.indexOf('<'));
    }
    return {
      'name': name,
      'isbn': ''
    };
  },
  'tiantian': function () {
    return {
      'name': $('.detail_mbx .c_ed').text(),
      'isbn': ''
    };
  },
  'tiantian-tuan': function () {
    var dp = getProductInfo();
    dp.name = $('td:contains("商品名称")+td span').text();
    dp.price = $('.buy_pri').text();
    return dp;
  },
  'yiguo': function () {
    return {
      'name': $.trim($('.main .cpname h1').text()),
      'isbn': ''
    };
  },
  'jiuxian': function () {
    var dp = getProductInfo();
    dp.name = $('.dmainBox .detail-depict .depict-name h1').text();
    if (dp.name == '') dp.name = $('.detailName h2').text().replace('(私人定制)', '');
    dp.price = $('#_nowPriceStr').text();
    return dp;
  },
  'meilele-tuan': function () {
    var dp = getProductInfo();
    dp.name = $('#JS_tg_goods_name').text();
    var p = $('#JS_bnr_state').text().match(/[0-9]+/);
    if (p) dp.price = p[0];
    return dp;
  },
  'ehaier': function () {
    var dp = getProductInfo();
    dp.name = $('.a-product-title').text();
    dp.price = $('.pricetag .cur-price').text().match(/[0-9]+/)[0];
    return dp;
  },
  'ule': function () {
    var dp = getProductInfo();
    dp.name = $('.productInfo h1').text();
    dp.price = $('.productPrice .price strong').text();
    return dp;
  },
  'esprit': function () {
    var dp = getProductInfo();
    dp.name = $('#itemName').text().replace(/\s/g, '');
    dp.price = $('#pdpPrice').text().replace(/[￥¥]+/, '');
    return dp;
  },
  'lining': function () {
    var dp = getProductInfo();
    dp.name = $('#product_name').text().replace(/\s/g, '');
    dp.price = $('#offerPrice .v').text().replace(/[\s￥¥]/g, '');
    return dp;
  },
  'oyeah': function () {
    var name = "";
    name = $("meta[name='Keywords']").attr("content");
    return {
      'name': name,
      'isbn': ''
    };
  },
  'lvyoumall': function () {
    return {
      'name': $("meta[name='keywords']").attr("content"),
      'isbn': ''
    };
  },
  'lefeng': function () {
    var name = "";
    var url = "";
    name = $.trim($(".path").text().split('/').pop());
    url = "http://product.lefeng.com/product/" + $("#productId").val() + ".html";
    let result = {
      'url': url,
      'name': name,
      'isbn': ''
    };
    if (!G.dp.price) {
      result['price'] = $('.dity-price-c').text();
    }
    return result;
  },
  'wbiao': function () {
    var dp = getProductInfo();
    dp.name = $('#info_on_sale h1').text();
    dp.price = $('#price').text();
    return dp;
  },
  'banggo': function () {
    var dp = getProductInfo();
    dp.name = $('.goods-name').text();
    dp.price = $('#salePriceText').text();
    return dp;
  },
  'yohobuy': function () {
    var dp = getProductInfo();
    dp.price = $('.promotion-price .price').text();
    if (!dp.price) dp.price = $('.product-detail-page .main .price').text();
    dp.name = $('.product-detail-page .main .name').text();
    return dp;
  },
  'sundan': () => {
    return {
      name: $('#buy_form div.box>div.ng-info>h2').text(),
      price: $('#buy_form div.box>div.ng-size span.price').text()
    };
  },
  'adidas-us': () => ({
    name: $('.pdp-title h3').text(),
    price: $('.pdp-title .goods-price').text()
  }),
  'jiae': () => {
    return {
      name: $('#content div.item-intro>div.property>h1').text(),
      price: $('#content div.item-intro>div.property .itemDetail-itemPrice span.j-item-now-price').text()
    };
  },
  'zazhipu': () => {
    return {
      name: $('.ic_content div.grid_m div.xbase_row1>h1').text(),
      price: $('.ic_content div.grid_m div.xbase_row2 span.mod_price').text().split('￥')[2].split('.')[0]
    };
  },
  'microsoftstore': () => {
    let name = $('#inner div.pdpContent>div.pdpInfo>.pdp_module_info>div.title>h1').text() || $('#inner div.content-block .right h2.title').text();
    let price = $('#inner div.pdpContent>div.pdpInfo>.pdp_module_info>.priceAndRank>div.price>span.current').text() || $('#selectVariantProduct span.price').text();
    return {
      name: name,
      price: price
    };
  },
  'xgdq': () => {
    return {
      name: $('.product-main .product-titles>h2').text(),
      price: $('.product-main .product-concerns li:first .action-price').text()
    };
  },
  'xtep': () => {
    let name = $('.goodsDetailsBox .goodsPrice>dt').text();
    let price = $('.goodsDetailsBox .goodsPrice dd>ul>li>div:first>span').text();
    if (!name || !price) {
      name = $('.wrapper .groupTittle').text();
      price = $('.wrapper .groupPriceBox>a>span').text();
    }
    return {
      name: name,
      price: price
    };
  },
  'midea': () => {
    return {
      name: $('.product_wrap>.product_right>h1').text(),
      price: $('.product_wrap>.product_right .price').text()
    };
  }
};
module.exports.productPattern = productPattern;
let reTry;
let retryCount = 0;
const startTime = Date.now();
let delayConditions = {
  'tmall': () => {
    if ($('[class^=Price--root]').length) {
      return $('[class^=Price--priceText]:eq(0)').text();
    }
    if (Date.now() - startTime > 5000) {
      return true;
    }
    if (G.GwdConfig) {
      return $(`[class^=${G.aliPrefix}--mainTitle--]`).text();
    }
    retryCount++;
    return retryCount > 10;
  },
  'taobao': () => {
    if ($('#J_ImgBooth').attr('src')) {
      return true;
    }
    if (Date.now() - startTime > 5000) {
      return true;
    }
    if (G.GwdConfig) {
      return $(`[class^=${G.aliPrefix}--mainTitle--]`).text();
    }
    retryCount++;
    return retryCount > 10;
  },
  'amazon': () => {
    if ($('#apex_desktop .a-price span[aria-hidden=true]').length) {
      return true;
    }
    retryCount++;
    if (retryCount > 10) {
      console.warn('amazon not met');
    }
    return retryCount > 10;
  },
  '360buy': () => {
    return $('.p-price').text() && $('#spec-img').attr('src') || Date.now() - startTime > 3000;
  }
};

//获取商品信息的统一入口
const get = async callback => {
  if (G.pageInfo.type === 1) {
    callback();
    return;
  }
  if (delayConditions[G.site]) {
    await (__webpack_require__(30888).waitForConditionFn)(delayConditions[G.site]);
  }
  let dp;
  siteName = G.pageInfo.siteName;
  var href = window.location.href;
  try {
    if (siteName && siteName.indexOf('amazon') > -1) siteName = 'amazon';
    if (siteName === 'taobao' && $('[class^=Item--main--]').length) {
      siteName = 'tmall';
    }
    dp = productPattern[siteName]();
    dp.oldPrice = dp.price;
    if (dp.price && dp.price.match(/(?:\?|\？)/)) dp.activePrice = true;
    if (typeof parseprice === 'function') {
      dp.price = parseprice(dp.price);
      dp.oldPrice = parseprice.getPriceBeforeExchangeRate(dp.oldPrice);
    }
    dp.site = siteName;
    if (dp.url == null) {
      if (dp.href != null) {
        dp.url = dp.href;
      } else {
        dp.url = href;
      }
    }
  } catch (e) {
    /*eslint-disable */
    G.debug = true;
    if (G.debug) {
      console.error(e);
    }
    /*eslint-enable */
    dp = getProductInfo();
    dp.site = siteName;
    dp.url = href;
  }
  if (typeof dp.useless != 'undefined' && dp.useless) {
    return null;
  }
  if (!dp.title && dp.name) {
    dp.title = dp.name;
  }
  dp.icon = dp.url.replace(/^http[s]?\:\/\//g, "");
  dp.icon = dp.icon.replace(/\/.*?$/g, "");
  dp.icon += '/favicon.ico';
  if (typeof dp.id == 'undefined' || dp.id == null) {
    dp.id = "";
  }
  if (typeof dp.keyword == 'undefined' || dp.keyword == null) {
    dp.keyword = '';
  }
  if (typeof dp.skeyword == 'undefined' || dp.skeyword == null) {
    dp.skeyword = '';
  }
  if (typeof dp.isbn == 'undefined' || dp.isbn == null) {
    dp.isbn = '';
  }
  const delayLoadList = ['youpin-mi', 'oneplus', 'lenovo', 'vipshop', 'amazon'];
  if (delayLoadList.indexOf(G.site) > -1 && !dp.price && !dp.name && !reTry) {
    reTry = true;
    setTimeout(function () {
      get(callback);
    }, 2000);
    return;
  }
  G.dp = dp;
  if (!dp.price) {
    var siteName = G.site;
    let siteId = detect.getSiteId(siteName);
    if (!siteId) siteId = 9999;
    priceParser.init(siteId, function (price) {
      if (price && price > 0) {
        dp.oldPrice = price;
        dp.price = price;
      }
      if (callback) callback();
    });
  } else {
    if (typeof dp.name == 'undefined' || dp.name == '') {
      dp.name = $('title').text();
    }
    if (callback) callback();
  }
  (__webpack_require__(41761).setMet)('productInfoReady');
  return dp;
};
module.exports.get = get;
module.exports.tbInfoFix = tbInfoFix;
module.exports.appendTbInfoForUrl = url => {
  if (!G.aliSite) return url;
  if (!G.dp) return url;
  G.dp = tbInfoFix(G.dp);
  if (G.dp.pic && G.dp.pic[0] === '/') {
    G.dp.pic = 'https:' + G.dp.pic;
  }
  const util = __webpack_require__(60340);
  let urlDpId = util.getParameterByName('dp_id', url);
  if (urlDpId && urlDpId !== G.dp.dpId) {
    return url;
  }
  let price = G.dp.price ? G.dp.price : G.dp.ori_price;
  if (G.aliSkuInfo) {
    var _G$aliSkuInfo$skuCore;
    if ((_G$aliSkuInfo$skuCore = G.aliSkuInfo.skuCore) !== null && _G$aliSkuInfo$skuCore !== void 0 && _G$aliSkuInfo$skuCore.sku2info) {
      let skuInfo = G.aliSkuInfo.skuCore.sku2info[0];
      if (skuInfo && skuInfo.price) {
        price = skuInfo.price.priceText;
      }
    }
  }
  return `${url}${url.includes('?') ? '' : '?'}&title=${encodeURIComponent(G.dp.name)}&img=${encodeURIComponent(G.dp.pic)}&price=${price}&shopName=${encodeURIComponent(G.dp.shopName.trim())}&sellAmount=${encodeURIComponent(G.dp.shopAmount)}${G.lang === 'zh-tr' ? '&lang=zh-tr' : ''}`;
};

/***/ }),

/***/ 12854:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, link = $data.link, extClass = $data.extClass, text = $data.text;
    $$out += '<a href="';
    $$out += $escape(link);
    $$out += '"\n   target="_blank"\n   title="点击领取"\n   style="display: inline-flex; position: relative; vertical-align: middle;" class="gwd-middle-tmall ';
    $$out += $escape(extClass);
    $$out += '">\n  <img ';
    $$out += 'src="https://cdn.gwdang.com/images/extensions/activity/618-take-middle@2x.png"';
    $$out += ' alt="" style="width: 24px; height: 24px;">\n  <span style="font-size: 12px; color: #ff471a; text-decoration: underline; margin-left: 3px; font-weight: 600; font-family: \'Microsoft YaHei\', \'Arial\', \'SimSun\'">';
    $$out += $escape(text);
    $$out += '</span>\n</a>\n<style>\n  .gwd-middle-tmall {\n    height: 100%;\n    align-items: center;\n    justify-content: center;\n    justify-items: center;\n    width: 150px!important;\n    white-space: nowrap;\n  }\n\n  .gwd-middle-tmall:hover {\n      background: #fff3eb;\n  }\n\n  .gwd-qr-act {\n    display: none;\n    flex-direction: column;\n    position: absolute;\n    width: 144px;\n    height: 167px;\n    box-sizing: border-box;\n    border: 1px solid #ff471a;\n    background: #fff9f6;\n    top: 37px;\n    left: 50%;\n    align-items: center;\n    margin-left: -72px;\n    z-index: 99;\n  }\n\n  .gwd-middle-tmall:hover .gwd-qr-act {\n    display: flex;\n  }\n</style>\n';
    return $$out;
};

/***/ }),

/***/ 12889:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, url = $data.url;
    $$out += '<div class="trend-error-info-mini">\n  <p class="error-p">我们检测到访问异常\uFF0C请您验证后继续使用</p>\n  <a class="error-sp" href="';
    $$out += $escape(url);
    $$out += '">点击验证</a>\n  <style type="text/css">\n    #mini_price_history {\n      \n    }\n    #mini_price_history span {\n      float: left;\n      width: 100%;\n      text-align: center;\n      line-height: 36px;\n      color: #666;\n      font-size: 14px;\n    }\n    #mini_price_history .trend-error-info-mini {\n      position: absolute;\n      top: 37px;\n      left: 0px;\n      width: 100%;\n      background: #fff;\n      z-index: 99999999;\n      height: 268px;\n      display: none;\n      box-shadow: 0px 5px 15px 0 rgba(23,25,27,0.15);\n      border-radius: 0 0 4px 4px;\n      width: 460px;\n      border: 1px solid #ddd;\n      border-top: none;\n    }\n    #mini_price_history .error-p {\n      width: 100%;\n      float: left;\n      text-align: center;\n      margin-top: 45px;\n      font-size: 14px;\n      color: #666;\n    }\n    #mini_price_history .error-sp {\n      width: 95px;\n      margin: 110px auto;\n      height: 20px;\n      line-height: 20px;\n      text-align: center;\n      color: #000!important;\n      border: 1px solid #333;\n      border-radius: 5px;\n      display: block;\n      text-decoration: none!important;\n    }\n    #mini_price_history:hover .trend-error-info-mini {\n      display: block;\n    }\n  </style>\n  <style type="text/css">\n    .bjgext-mini-trend {\n\n    }\n    .bjgext-mini-trend span {\n      float: left;\n      /*width: 100%;*/\n      text-align: center;\n      line-height: 36px;\n      color: #666;\n      font-size: 14px;\n    }\n    .bjgext-mini-trend .trend-error-info-mini {\n      position: absolute;\n      top: 37px;\n      left: -39px;\n      width: 100%;\n      background: #fff;\n      z-index: 99999999;\n      height: 268px;\n      display: none;\n      box-shadow: 0px 5px 15px 0 rgba(23,25,27,0.15);\n      border-radius: 0 0 4px 4px;\n      width: 460px;\n      border: 1px solid #ddd;\n      border-top: none;\n    }\n    .bjgext-mini-trend .error-p {\n      width: 100%;\n      float: left;\n      text-align: center;\n      margin-top: 45px;\n      font-size: 14px;\n      color: #666;\n    }\n    .bjgext-mini-trend .error-sp {\n      width: 95px;\n      margin: 110px auto;\n      height: 20px;\n      line-height: 20px;\n      text-align: center;\n      color: #000!important;\n      border: 1px solid #333;\n      border-radius: 5px;\n      display: block;\n      text-decoration: none!important;\n    }\n    .bjgext-mini-trend:hover .trend-error-info-mini {\n      display: block;\n    }\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 12890:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "bjg-qr-error"
  }, [_c("img", {
    attrs: {
      src: "https://cdn.gwdang.com/images/extensions/warn@2x.png",
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticClass: "grayText",
    staticStyle: {
      "margin-top": "10px"
    }
  }, [_vm._v("当前网络异常"), _c("br"), _vm._v("点此"), _c("span", {
    staticClass: "red",
    on: {
      click: _vm.click
    }
  }, [_vm._v("刷新")])])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 13209:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, str = $data.str, s_server = $data.s_server;
    $$out += '<div id="cptklbox" class="';
    $$out += $escape(str);
    $$out += '">\n  <div class="cptkl-btn">\n    <em></em>\n    <span>生成淘口令</span>\n  </div>\n  <span class="cptkl-tle">一键分享到微信或QQ</span>\n  <br>\n  <span class="cptkl-remind-err">抱歉\uFF0C当前商品暂时无法生成淘口令\uFF0C可以点击复制商品链接</span>\n  <style type="text/css">\n    #cptklbox {\n      float: left;\n      height: 52px;\n    }\n    #cptklbox * {\n      float: left;\n      font-family: "Microsoft YaHei";\n    }\n    .cptkl-btn {\n      /* width: 122px; */\n      padding-right: 17px;\n      height: 26px;\n      border-radius: 4px;\n      border: 1px solid #ff9851;\n      background-color: #FFF3ED;\n      cursor: pointer;\n    }\n    .cptkl-remind-err {\n      color: #B66A6A;\n      font-size: 12px;\n      display: none;\n      line-height: 16px;\n      margin-top: 8px;\n    }\n    .cptkl-btn em {\n      width: 16px;\n      height: 16px;\n      background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/commonpng/cptkl.png\') 0px 0px no-repeat;\n      margin: 5px 6px 5px 17px;\n    }\n    .cptkl-btn.cpsuccess em {\n      margin-top: 6px;\n      background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/commonpng/cptkl-success.png\') 0px 0px no-repeat;\n    }\n    .cptkl-btn.cpready em {\n      margin-left: 17px;\n    }\n    .cptkl-btn span {\n      line-height: 24px;\n      font-size: 12px;\n      color: #EF6701;\n    }\n    .cptkl-tle {\n      margin-left: 10px;\n      font-size: 12px;\n      line-height: 26px;\n      color: #7d7e80;\n    }\n    .tb-gallery p.tm-action {\n      padding-bottom: 15px;\n    }\n\n    #tttgbgbs {\n    height: 1px;\n    width: 1px;\n    overflow: hidden;\n    float: left;\n    position: fixed;\n    bottom: -9px;\n    left: -1000000px;\n  }\n    #box_btn {\n      height: 1px;\n      width: 1px;\n      overflow: hidden;\n      float: left;\n      position: fixed;\n      bottom: 0px;\n    }\n    .gggbox-input {\n      height: 1px;\n      width: 1px;\n      overflow: hidden;\n      float: left;\n      position: fixed;\n      bottom: 0px;\n      left:-99999px;\n    }\n\n    .Tabs--headerPlaceholder--3rpdDfW .gwd-bottom-img-area {\n      display: none;\n    }\n  </style>\n</div>\n<div id="tttgbgbs">\n<a id="box_btn" class="box-btn"  contenteditable="1">456</a>\n<input type="" name="" value="456" class="gggbox-input">\n</div>';
    return $$out;
};

/***/ }),

/***/ 13335:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
module.exports = __webpack_require__.p + "images/extensions/build/0f7c4ed1530a66c0321d.png";

/***/ }),

/***/ 13454:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(62953);
var _ShaiDanItem = _interopRequireDefault(__webpack_require__(5631));
const extConsole = __webpack_require__(7129);
const commonUtil = __webpack_require__(60340);
const id = (__webpack_require__(60340).getParameterByName)('id');
function extractAliSkuInfo() {
  const aliSkuBase = gwdDetailStorage[id].skuBase;
  const skuList = aliSkuBase.props.map(item => {
    return {
      name: item.name,
      pid: item.pid,
      options: item.values.map(value => ({
        name: value.name,
        img: value.image ? value.image : '',
        vid: value.vid
      }))
    };
  });
  return skuList;
}
function extractAliSkuStr() {
  let selectedSKU = [];
  document.querySelectorAll('.skuItem--uxMLmkRx').forEach(skuItem => {
    let name = skuItem.querySelector('.labelText--PsOAip_9').textContent.trim();
    let selectedOption = skuItem.querySelector('.valueItem--GzWd2LsV.isSelected--YrA6x4Yj .valueItemText--HiKnUqGa');
    if (name && selectedOption) {
      selectedSKU.push(`${name}: ${selectedOption.textContent.trim()}`);
    }
  });
  if (!selectedSKU.length) {
    return extractAliSkuStrV2();
  }
  return selectedSKU.join('; ') + ';';
}
function extractAliSkuStrV2() {
  let selectedSKU = [];

  // 遍历所有 SKU 分类
  document.querySelectorAll('.skuCate').forEach(skuCate => {
    let category = skuCate.querySelector('.skuCateText').textContent.trim().replace('：', ''); // 获取 SKU 分类名称
    let selectedOption = skuCate.querySelector('.skuItem.current .skuValueName'); // 选中的选项

    if (category && selectedOption) {
      selectedSKU.push(`${category}: ${selectedOption.textContent.trim()}`);
    }
  });
  if (!selectedSKU.length) {
    return '';
  }
  return selectedSKU.join('; ') + ';';
}
function extractAliSKUInfoV3() {
  let selectedSKU = [];
  document.querySelectorAll('.skuCate').forEach(skuCate => {
    let category = skuCate.querySelector('.skuCateText').textContent.trim().replace('：', ''); // 获取 SKU 分类名称
    let selectedOption = skuCate.querySelector('.skuItem.current .skuValueName'); // 选中的选项

    if (category && selectedOption) {
      selectedSKU.push(`${category}: ${selectedOption.textContent.trim()}`);
    }
  });
}
function extractJdSkuInfo() {
  let skuData = [];
  document.querySelectorAll('#choose-attrs .p-choose').forEach(attr => {
    let name = attr.getAttribute('data-type');
    let options = [...attr.querySelectorAll('.item')].map(item => ({
      name: item.getAttribute('data-value').trim(),
      img: item.querySelector('img') ? item.querySelector('img').src : '',
      vid: item.getAttribute('data-sku')
    }));
    if (name && options.length) {
      skuData.push({
        name,
        options
      });
    }
  });
  return skuData;
}
function extractJdSkuStr() {
  let selectedSKU = [];
  document.querySelectorAll('#choose-attrs .p-choose').forEach(attr => {
    let name = attr.getAttribute('data-type');
    let selectedOption = attr.querySelector('.item.selected');
    if (name && selectedOption) {
      selectedSKU.push(`${name}: ${selectedOption.getAttribute('data-value').trim()}`);
    }
  });
  return selectedSKU.join('; ') + ';';
}
var _default = exports.A = {
  components: {
    ShaiDanItem: _ShaiDanItem.default
  },
  props: ['dkey', 'price'],
  data() {
    return {
      hasTop: false,
      list: [],
      loaded: false,
      shop: G.dp.shopName,
      title: G.dp.title,
      img: G.dp.img,
      skuId: '',
      skuStr: '',
      skuOptions: '[]',
      skuMap: '[]',
      s_server: 'https://cdn.gwdang.com/images/extensions/shaidan/',
      loading: false
    };
  },
  computed: {
    sdUrl() {
      return `https://www.gwdang.com/v2/shaidan?dkey=${this.dkey}&dp_id=${G.dp.dpId}`;
    }
  },
  methods: {
    async extractPageData() {
      if (location.hostname === 'chaoshi.detail.tmall.com') {
        (__webpack_require__(30888).waitForConditionFn)(() => G.dp.name && G.dp.name !== '商品详情').then(() => {
          G.dp.shopName = '天猫超市';
          this.title = G.dp.name;
          this.img = G.dp.img;
        });
      }
      (__webpack_require__(30888).waitForConditionFn)(() => G.aliSkuInfo).then(() => {
        // this.shop = G.dp.shopName
        // this.title = G.dp.name
        // this.img = G.dp.img
        this.shop = G.aliSkuInfo.seller.shopName || G.aliSkuInfo.seller.sellerNick;
        this.title = G.aliSkuInfo.item.title;
        this.img = G.aliSkuInfo.item.images[0];
        this.skuOptions = JSON.stringify(extractAliSkuInfo());
        this.skuStr = extractAliSkuStr();
        (__webpack_require__(30888).waitForConditionFn)(() => commonUtil.getParameterByName('skuId')).then(() => {
          this.skuId = commonUtil.getParameterByName('skuId');
        });
        const skuBase = gwdDetailStorage[id].skuBase;
        const skuOptions = JSON.parse(this.skuOptions);
        const skuMap = skuBase.skus.map(item => {
          const path = item.propPath;
          const obj = {};
          path.split(';').forEach(p => {
            const [key, value] = p.split(':');
            const option = skuOptions.find(x => x.pid === key);
            if (option) {
              obj[option.name] = option.options.find(x => x.vid === value).name;
            }
          });
          obj.skuId = item.skuId;
          obj.stock = true;
          return obj;
        });
        this.skuMap = JSON.stringify(skuMap);
      });
      if (G.site === '360buy') {
        await (__webpack_require__(30888).waitForConditionFn)(() => document.querySelectorAll('.p-choose').length);
        this.skuOptions = JSON.stringify(extractJdSkuInfo());
        this.skuStr = extractJdSkuStr();
        this.skuId = G.dp.dpId.replace('-3', '');
        this.skuMap = JSON.stringify(pageConfig.product.colorSize);
        this.title = pageConfig.product.name;
      }

      // extConsole.log('extractAliSKUInfo', extractAliSKUInfo());
    },
    async getData() {
      if (this.loading) {
        return;
      }
      this.loading = true;
      if (G.site === '360buy') {
        await (__webpack_require__(30888).waitForConditionFn)(() => this.skuMap !== '[]');
      }
      if (G.aliSite) {
        const id = (__webpack_require__(60340).getParameterByName)('id');
        const site = G.site === 'taobao' ? 'taobao' : 'tmall';
        (__webpack_require__(71159).tmallDetail)(id, site).then(data => {
          G.aliSkuInfo = data;
        });
      }
      const res = await (__webpack_require__(76904).getShaiDanList)(this.dkey, this.skuMap);
      this.loaded = true;
      this.loading = false;
      if (res.data && res.data.list) {
        this.list = res.data.list;
      }
    },
    open() {
      $('#gwd-sd-submit').click();
    }
  },
  mounted() {
    (__webpack_require__(30888).waitForConditionFn)(() => {
      if (!G.aliSite) {
        return true;
      }
      return window.gwdDetailStorage;
    }).then(() => {
      this.extractPageData();
    });
    (__webpack_require__(41761).met)('lastPointPos').then(() => {
      this.getData();
    });
    (__webpack_require__(41761).met)('hasTop').then(() => {
      this.hasTop = true;
    });
  }
};

/***/ }),

/***/ 13567:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(62953);
const request = __webpack_require__(49388);
const productInfo = __webpack_require__(12826);
module.exports = async dpId => {
  if (G.site === 'taobao') {
    await Promise.race([(__webpack_require__(30888).waitForConditionFn)(() => $('.shop-name-link').length), (__webpack_require__(60340).sleep)(2000)]);
  }
  const link = productInfo.appendTbInfoForUrl(`${G.u_server}/gyp/taobao/coupon?dp_id=${dpId}&scene=item2&rebate=1&slist=1`);
  const res = await request.get(link);
  let toReturn = {
    code: 200
  };
  if (res.data && res.data.coupon) {
    toReturn.data = {
      coupon: {
        coupon_money: res.data.coupon.split('减')[1].replace('元', '')
      }
    };
    if (res.data.rebate) {
      toReturn.data.rebate = res.data.rebate;
      toReturn.data.utoken = res.data.utoken;
    }
  } else {
    toReturn.code = 500;
    toReturn.msg = '获取优惠券失败';
    if (res.data && res.data.rebate) {
      G.dp.rebate = res.data.rebate;
    } else {
      if (res.data && res.data.slist) {
        G.dp.slist = res.data.slist;
      } else {
        G.dp.slist = [];
      }
      (__webpack_require__(41761).setMet)('dpSlist', G.dp.slist);
    }
  }
  return toReturn;
};

/***/ }),

/***/ 13603:
/***/ ((__unused_webpack_module, exports) => {

"use strict";

// Generated using scripts/write-decode-map.ts
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports["default"] = new Uint16Array(
// prettier-ignore
"\u1d41<\xd5\u0131\u028a\u049d\u057b\u05d0\u0675\u06de\u07a2\u07d6\u080f\u0a4a\u0a91\u0da1\u0e6d\u0f09\u0f26\u10ca\u1228\u12e1\u1415\u149d\u14c3\u14df\u1525\0\0\0\0\0\0\u156b\u16cd\u198d\u1c12\u1ddd\u1f7e\u2060\u21b0\u228d\u23c0\u23fb\u2442\u2824\u2912\u2d08\u2e48\u2fce\u3016\u32ba\u3639\u37ac\u38fe\u3a28\u3a71\u3ae0\u3b2e\u0800EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig\u803b\xc6\u40c6P\u803b&\u4026cute\u803b\xc1\u40c1reve;\u4102\u0100iyx}rc\u803b\xc2\u40c2;\u4410r;\uc000\ud835\udd04rave\u803b\xc0\u40c0pha;\u4391acr;\u4100d;\u6a53\u0100gp\x9d\xa1on;\u4104f;\uc000\ud835\udd38plyFunction;\u6061ing\u803b\xc5\u40c5\u0100cs\xbe\xc3r;\uc000\ud835\udc9cign;\u6254ilde\u803b\xc3\u40c3ml\u803b\xc4\u40c4\u0400aceforsu\xe5\xfb\xfe\u0117\u011c\u0122\u0127\u012a\u0100cr\xea\xf2kslash;\u6216\u0176\xf6\xf8;\u6ae7ed;\u6306y;\u4411\u0180crt\u0105\u010b\u0114ause;\u6235noullis;\u612ca;\u4392r;\uc000\ud835\udd05pf;\uc000\ud835\udd39eve;\u42d8c\xf2\u0113mpeq;\u624e\u0700HOacdefhilorsu\u014d\u0151\u0156\u0180\u019e\u01a2\u01b5\u01b7\u01ba\u01dc\u0215\u0273\u0278\u027ecy;\u4427PY\u803b\xa9\u40a9\u0180cpy\u015d\u0162\u017aute;\u4106\u0100;i\u0167\u0168\u62d2talDifferentialD;\u6145leys;\u612d\u0200aeio\u0189\u018e\u0194\u0198ron;\u410cdil\u803b\xc7\u40c7rc;\u4108nint;\u6230ot;\u410a\u0100dn\u01a7\u01adilla;\u40b8terDot;\u40b7\xf2\u017fi;\u43a7rcle\u0200DMPT\u01c7\u01cb\u01d1\u01d6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01e2\u01f8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020foubleQuote;\u601duote;\u6019\u0200lnpu\u021e\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6a74\u0180git\u022f\u0236\u023aruent;\u6261nt;\u622fourIntegral;\u622e\u0100fr\u024c\u024e;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6a2fcr;\uc000\ud835\udc9ep\u0100;C\u0284\u0285\u62d3ap;\u624d\u0580DJSZacefios\u02a0\u02ac\u02b0\u02b4\u02b8\u02cb\u02d7\u02e1\u02e6\u0333\u048d\u0100;o\u0179\u02a5trahd;\u6911cy;\u4402cy;\u4405cy;\u440f\u0180grs\u02bf\u02c4\u02c7ger;\u6021r;\u61a1hv;\u6ae4\u0100ay\u02d0\u02d5ron;\u410e;\u4414l\u0100;t\u02dd\u02de\u6207a;\u4394r;\uc000\ud835\udd07\u0100af\u02eb\u0327\u0100cm\u02f0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031ccute;\u40b4o\u0174\u030b\u030d;\u42d9bleAcute;\u42ddrave;\u4060ilde;\u42dcond;\u62c4ferentialD;\u6146\u0470\u033d\0\0\0\u0342\u0354\0\u0405f;\uc000\ud835\udd3b\u0180;DE\u0348\u0349\u034d\u40a8ot;\u60dcqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03cf\u03e2\u03f8ontourIntegra\xec\u0239o\u0274\u0379\0\0\u037b\xbb\u0349nArrow;\u61d3\u0100eo\u0387\u03a4ft\u0180ART\u0390\u0396\u03a1rrow;\u61d0ightArrow;\u61d4e\xe5\u02cang\u0100LR\u03ab\u03c4eft\u0100AR\u03b3\u03b9rrow;\u67f8ightArrow;\u67faightArrow;\u67f9ight\u0100AT\u03d8\u03derrow;\u61d2ee;\u62a8p\u0241\u03e9\0\0\u03efrrow;\u61d1ownArrow;\u61d5erticalBar;\u6225n\u0300ABLRTa\u0412\u042a\u0430\u045e\u047f\u037crrow\u0180;BU\u041d\u041e\u0422\u6193ar;\u6913pArrow;\u61f5reve;\u4311eft\u02d2\u043a\0\u0446\0\u0450ightVector;\u6950eeVector;\u695eector\u0100;B\u0459\u045a\u61bdar;\u6956ight\u01d4\u0467\0\u0471eeVector;\u695fector\u0100;B\u047a\u047b\u61c1ar;\u6957ee\u0100;A\u0486\u0487\u62a4rrow;\u61a7\u0100ct\u0492\u0497r;\uc000\ud835\udc9frok;\u4110\u0800NTacdfglmopqstux\u04bd\u04c0\u04c4\u04cb\u04de\u04e2\u04e7\u04ee\u04f5\u0521\u052f\u0536\u0552\u055d\u0560\u0565G;\u414aH\u803b\xd0\u40d0cute\u803b\xc9\u40c9\u0180aiy\u04d2\u04d7\u04dcron;\u411arc\u803b\xca\u40ca;\u442dot;\u4116r;\uc000\ud835\udd08rave\u803b\xc8\u40c8ement;\u6208\u0100ap\u04fa\u04fecr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65fberySmallSquare;\u65ab\u0100gp\u0526\u052aon;\u4118f;\uc000\ud835\udd3csilon;\u4395u\u0100ai\u053c\u0549l\u0100;T\u0542\u0543\u6a75ilde;\u6242librium;\u61cc\u0100ci\u0557\u055ar;\u6130m;\u6a73a;\u4397ml\u803b\xcb\u40cb\u0100ip\u056a\u056fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058d\u05b2\u05ccy;\u4424r;\uc000\ud835\udd09lled\u0253\u0597\0\0\u05a3mallSquare;\u65fcerySmallSquare;\u65aa\u0370\u05ba\0\u05bf\0\0\u05c4f;\uc000\ud835\udd3dAll;\u6200riertrf;\u6131c\xf2\u05cb\u0600JTabcdfgorst\u05e8\u05ec\u05ef\u05fa\u0600\u0612\u0616\u061b\u061d\u0623\u066c\u0672cy;\u4403\u803b>\u403emma\u0100;d\u05f7\u05f8\u4393;\u43dcreve;\u411e\u0180eiy\u0607\u060c\u0610dil;\u4122rc;\u411c;\u4413ot;\u4120r;\uc000\ud835\udd0a;\u62d9pf;\uc000\ud835\udd3eeater\u0300EFGLST\u0635\u0644\u064e\u0656\u065b\u0666qual\u0100;L\u063e\u063f\u6265ess;\u62dbullEqual;\u6267reater;\u6aa2ess;\u6277lantEqual;\u6a7eilde;\u6273cr;\uc000\ud835\udca2;\u626b\u0400Aacfiosu\u0685\u068b\u0696\u069b\u069e\u06aa\u06be\u06caRDcy;\u442a\u0100ct\u0690\u0694ek;\u42c7;\u405eirc;\u4124r;\u610clbertSpace;\u610b\u01f0\u06af\0\u06b2f;\u610dizontalLine;\u6500\u0100ct\u06c3\u06c5\xf2\u06a9rok;\u4126mp\u0144\u06d0\u06d8ownHum\xf0\u012fqual;\u624f\u0700EJOacdfgmnostu\u06fa\u06fe\u0703\u0707\u070e\u071a\u071e\u0721\u0728\u0744\u0778\u078b\u078f\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803b\xcd\u40cd\u0100iy\u0713\u0718rc\u803b\xce\u40ce;\u4418ot;\u4130r;\u6111rave\u803b\xcc\u40cc\u0180;ap\u0720\u072f\u073f\u0100cg\u0734\u0737r;\u412ainaryI;\u6148lie\xf3\u03dd\u01f4\u0749\0\u0762\u0100;e\u074d\u074e\u622c\u0100gr\u0753\u0758ral;\u622bsection;\u62c2isible\u0100CT\u076c\u0772omma;\u6063imes;\u6062\u0180gpt\u077f\u0783\u0788on;\u412ef;\uc000\ud835\udd40a;\u4399cr;\u6110ilde;\u4128\u01eb\u079a\0\u079ecy;\u4406l\u803b\xcf\u40cf\u0280cfosu\u07ac\u07b7\u07bc\u07c2\u07d0\u0100iy\u07b1\u07b5rc;\u4134;\u4419r;\uc000\ud835\udd0dpf;\uc000\ud835\udd41\u01e3\u07c7\0\u07ccr;\uc000\ud835\udca5rcy;\u4408kcy;\u4404\u0380HJacfos\u07e4\u07e8\u07ec\u07f1\u07fd\u0802\u0808cy;\u4425cy;\u440cppa;\u439a\u0100ey\u07f6\u07fbdil;\u4136;\u441ar;\uc000\ud835\udd0epf;\uc000\ud835\udd42cr;\uc000\ud835\udca6\u0580JTaceflmost\u0825\u0829\u082c\u0850\u0863\u09b3\u09b8\u09c7\u09cd\u0a37\u0a47cy;\u4409\u803b<\u403c\u0280cmnpr\u0837\u083c\u0841\u0844\u084dute;\u4139bda;\u439bg;\u67ealacetrf;\u6112r;\u619e\u0180aey\u0857\u085c\u0861ron;\u413ddil;\u413b;\u441b\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087e\u08a9\u08b1\u08e0\u08e6\u08fc\u092f\u095b\u0390\u096a\u0100nr\u0883\u088fgleBracket;\u67e8row\u0180;BR\u0899\u089a\u089e\u6190ar;\u61e4ightArrow;\u61c6eiling;\u6308o\u01f5\u08b7\0\u08c3bleBracket;\u67e6n\u01d4\u08c8\0\u08d2eeVector;\u6961ector\u0100;B\u08db\u08dc\u61c3ar;\u6959loor;\u630aight\u0100AV\u08ef\u08f5rrow;\u6194ector;\u694e\u0100er\u0901\u0917e\u0180;AV\u0909\u090a\u0910\u62a3rrow;\u61a4ector;\u695aiangle\u0180;BE\u0924\u0925\u0929\u62b2ar;\u69cfqual;\u62b4p\u0180DTV\u0937\u0942\u094cownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61bfar;\u6958ector\u0100;B\u0965\u0966\u61bcar;\u6952ight\xe1\u039cs\u0300EFGLST\u097e\u098b\u0995\u099d\u09a2\u09adqualGreater;\u62daullEqual;\u6266reater;\u6276ess;\u6aa1lantEqual;\u6a7dilde;\u6272r;\uc000\ud835\udd0f\u0100;e\u09bd\u09be\u62d8ftarrow;\u61daidot;\u413f\u0180npw\u09d4\u0a16\u0a1bg\u0200LRlr\u09de\u09f7\u0a02\u0a10eft\u0100AR\u09e6\u09ecrrow;\u67f5ightArrow;\u67f7ightArrow;\u67f6eft\u0100ar\u03b3\u0a0aight\xe1\u03bfight\xe1\u03caf;\uc000\ud835\udd43er\u0100LR\u0a22\u0a2ceftArrow;\u6199ightArrow;\u6198\u0180cht\u0a3e\u0a40\u0a42\xf2\u084c;\u61b0rok;\u4141;\u626a\u0400acefiosu\u0a5a\u0a5d\u0a60\u0a77\u0a7c\u0a85\u0a8b\u0a8ep;\u6905y;\u441c\u0100dl\u0a65\u0a6fiumSpace;\u605flintrf;\u6133r;\uc000\ud835\udd10nusPlus;\u6213pf;\uc000\ud835\udd44c\xf2\u0a76;\u439c\u0480Jacefostu\u0aa3\u0aa7\u0aad\u0ac0\u0b14\u0b19\u0d91\u0d97\u0d9ecy;\u440acute;\u4143\u0180aey\u0ab4\u0ab9\u0aberon;\u4147dil;\u4145;\u441d\u0180gsw\u0ac7\u0af0\u0b0eative\u0180MTV\u0ad3\u0adf\u0ae8ediumSpace;\u600bhi\u0100cn\u0ae6\u0ad8\xeb\u0ad9eryThi\xee\u0ad9ted\u0100GL\u0af8\u0b06reaterGreate\xf2\u0673essLes\xf3\u0a48Line;\u400ar;\uc000\ud835\udd11\u0200Bnpt\u0b22\u0b28\u0b37\u0b3areak;\u6060BreakingSpace;\u40a0f;\u6115\u0680;CDEGHLNPRSTV\u0b55\u0b56\u0b6a\u0b7c\u0ba1\u0beb\u0c04\u0c5e\u0c84\u0ca6\u0cd8\u0d61\u0d85\u6aec\u0100ou\u0b5b\u0b64ngruent;\u6262pCap;\u626doubleVerticalBar;\u6226\u0180lqx\u0b83\u0b8a\u0b9bement;\u6209ual\u0100;T\u0b92\u0b93\u6260ilde;\uc000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0bb6\u0bb7\u0bbd\u0bc9\u0bd3\u0bd8\u0be5\u626fqual;\u6271ullEqual;\uc000\u2267\u0338reater;\uc000\u226b\u0338ess;\u6279lantEqual;\uc000\u2a7e\u0338ilde;\u6275ump\u0144\u0bf2\u0bfdownHump;\uc000\u224e\u0338qual;\uc000\u224f\u0338e\u0100fs\u0c0a\u0c27tTriangle\u0180;BE\u0c1a\u0c1b\u0c21\u62eaar;\uc000\u29cf\u0338qual;\u62ecs\u0300;EGLST\u0c35\u0c36\u0c3c\u0c44\u0c4b\u0c58\u626equal;\u6270reater;\u6278ess;\uc000\u226a\u0338lantEqual;\uc000\u2a7d\u0338ilde;\u6274ested\u0100GL\u0c68\u0c79reaterGreater;\uc000\u2aa2\u0338essLess;\uc000\u2aa1\u0338recedes\u0180;ES\u0c92\u0c93\u0c9b\u6280qual;\uc000\u2aaf\u0338lantEqual;\u62e0\u0100ei\u0cab\u0cb9verseElement;\u620cghtTriangle\u0180;BE\u0ccb\u0ccc\u0cd2\u62ebar;\uc000\u29d0\u0338qual;\u62ed\u0100qu\u0cdd\u0d0cuareSu\u0100bp\u0ce8\u0cf9set\u0100;E\u0cf0\u0cf3\uc000\u228f\u0338qual;\u62e2erset\u0100;E\u0d03\u0d06\uc000\u2290\u0338qual;\u62e3\u0180bcp\u0d13\u0d24\u0d4eset\u0100;E\u0d1b\u0d1e\uc000\u2282\u20d2qual;\u6288ceeds\u0200;EST\u0d32\u0d33\u0d3b\u0d46\u6281qual;\uc000\u2ab0\u0338lantEqual;\u62e1ilde;\uc000\u227f\u0338erset\u0100;E\u0d58\u0d5b\uc000\u2283\u20d2qual;\u6289ilde\u0200;EFT\u0d6e\u0d6f\u0d75\u0d7f\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uc000\ud835\udca9ilde\u803b\xd1\u40d1;\u439d\u0700Eacdfgmoprstuv\u0dbd\u0dc2\u0dc9\u0dd5\u0ddb\u0de0\u0de7\u0dfc\u0e02\u0e20\u0e22\u0e32\u0e3f\u0e44lig;\u4152cute\u803b\xd3\u40d3\u0100iy\u0dce\u0dd3rc\u803b\xd4\u40d4;\u441eblac;\u4150r;\uc000\ud835\udd12rave\u803b\xd2\u40d2\u0180aei\u0dee\u0df2\u0df6cr;\u414cga;\u43a9cron;\u439fpf;\uc000\ud835\udd46enCurly\u0100DQ\u0e0e\u0e1aoubleQuote;\u601cuote;\u6018;\u6a54\u0100cl\u0e27\u0e2cr;\uc000\ud835\udcaaash\u803b\xd8\u40d8i\u016c\u0e37\u0e3cde\u803b\xd5\u40d5es;\u6a37ml\u803b\xd6\u40d6er\u0100BP\u0e4b\u0e60\u0100ar\u0e50\u0e53r;\u603eac\u0100ek\u0e5a\u0e5c;\u63deet;\u63b4arenthesis;\u63dc\u0480acfhilors\u0e7f\u0e87\u0e8a\u0e8f\u0e92\u0e94\u0e9d\u0eb0\u0efcrtialD;\u6202y;\u441fr;\uc000\ud835\udd13i;\u43a6;\u43a0usMinus;\u40b1\u0100ip\u0ea2\u0eadncareplan\xe5\u069df;\u6119\u0200;eio\u0eb9\u0eba\u0ee0\u0ee4\u6abbcedes\u0200;EST\u0ec8\u0ec9\u0ecf\u0eda\u627aqual;\u6aaflantEqual;\u627cilde;\u627eme;\u6033\u0100dp\u0ee9\u0eeeuct;\u620fortion\u0100;a\u0225\u0ef9l;\u621d\u0100ci\u0f01\u0f06r;\uc000\ud835\udcab;\u43a8\u0200Ufos\u0f11\u0f16\u0f1b\u0f1fOT\u803b\"\u4022r;\uc000\ud835\udd14pf;\u611acr;\uc000\ud835\udcac\u0600BEacefhiorsu\u0f3e\u0f43\u0f47\u0f60\u0f73\u0fa7\u0faa\u0fad\u1096\u10a9\u10b4\u10bearr;\u6910G\u803b\xae\u40ae\u0180cnr\u0f4e\u0f53\u0f56ute;\u4154g;\u67ebr\u0100;t\u0f5c\u0f5d\u61a0l;\u6916\u0180aey\u0f67\u0f6c\u0f71ron;\u4158dil;\u4156;\u4420\u0100;v\u0f78\u0f79\u611cerse\u0100EU\u0f82\u0f99\u0100lq\u0f87\u0f8eement;\u620builibrium;\u61cbpEquilibrium;\u696fr\xbb\u0f79o;\u43a1ght\u0400ACDFTUVa\u0fc1\u0feb\u0ff3\u1022\u1028\u105b\u1087\u03d8\u0100nr\u0fc6\u0fd2gleBracket;\u67e9row\u0180;BL\u0fdc\u0fdd\u0fe1\u6192ar;\u61e5eftArrow;\u61c4eiling;\u6309o\u01f5\u0ff9\0\u1005bleBracket;\u67e7n\u01d4\u100a\0\u1014eeVector;\u695dector\u0100;B\u101d\u101e\u61c2ar;\u6955loor;\u630b\u0100er\u102d\u1043e\u0180;AV\u1035\u1036\u103c\u62a2rrow;\u61a6ector;\u695biangle\u0180;BE\u1050\u1051\u1055\u62b3ar;\u69d0qual;\u62b5p\u0180DTV\u1063\u106e\u1078ownVector;\u694feeVector;\u695cector\u0100;B\u1082\u1083\u61bear;\u6954ector\u0100;B\u1091\u1092\u61c0ar;\u6953\u0100pu\u109b\u109ef;\u611dndImplies;\u6970ightarrow;\u61db\u0100ch\u10b9\u10bcr;\u611b;\u61b1leDelayed;\u69f4\u0680HOacfhimoqstu\u10e4\u10f1\u10f7\u10fd\u1119\u111e\u1151\u1156\u1161\u1167\u11b5\u11bb\u11bf\u0100Cc\u10e9\u10eeHcy;\u4429y;\u4428FTcy;\u442ccute;\u415a\u0280;aeiy\u1108\u1109\u110e\u1113\u1117\u6abcron;\u4160dil;\u415erc;\u415c;\u4421r;\uc000\ud835\udd16ort\u0200DLRU\u112a\u1134\u113e\u1149ownArrow\xbb\u041eeftArrow\xbb\u089aightArrow\xbb\u0fddpArrow;\u6191gma;\u43a3allCircle;\u6218pf;\uc000\ud835\udd4a\u0272\u116d\0\0\u1170t;\u621aare\u0200;ISU\u117b\u117c\u1189\u11af\u65a1ntersection;\u6293u\u0100bp\u118f\u119eset\u0100;E\u1197\u1198\u628fqual;\u6291erset\u0100;E\u11a8\u11a9\u6290qual;\u6292nion;\u6294cr;\uc000\ud835\udcaear;\u62c6\u0200bcmp\u11c8\u11db\u1209\u120b\u0100;s\u11cd\u11ce\u62d0et\u0100;E\u11cd\u11d5qual;\u6286\u0100ch\u11e0\u1205eeds\u0200;EST\u11ed\u11ee\u11f4\u11ff\u627bqual;\u6ab0lantEqual;\u627dilde;\u627fTh\xe1\u0f8c;\u6211\u0180;es\u1212\u1213\u1223\u62d1rset\u0100;E\u121c\u121d\u6283qual;\u6287et\xbb\u1213\u0580HRSacfhiors\u123e\u1244\u1249\u1255\u125e\u1271\u1276\u129f\u12c2\u12c8\u12d1ORN\u803b\xde\u40deADE;\u6122\u0100Hc\u124e\u1252cy;\u440by;\u4426\u0100bu\u125a\u125c;\u4009;\u43a4\u0180aey\u1265\u126a\u126fron;\u4164dil;\u4162;\u4422r;\uc000\ud835\udd17\u0100ei\u127b\u1289\u01f2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128e\u1298kSpace;\uc000\u205f\u200aSpace;\u6009lde\u0200;EFT\u12ab\u12ac\u12b2\u12bc\u623cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uc000\ud835\udd4bipleDot;\u60db\u0100ct\u12d6\u12dbr;\uc000\ud835\udcafrok;\u4166\u0ae1\u12f7\u130e\u131a\u1326\0\u132c\u1331\0\0\0\0\0\u1338\u133d\u1377\u1385\0\u13ff\u1404\u140a\u1410\u0100cr\u12fb\u1301ute\u803b\xda\u40dar\u0100;o\u1307\u1308\u619fcir;\u6949r\u01e3\u1313\0\u1316y;\u440eve;\u416c\u0100iy\u131e\u1323rc\u803b\xdb\u40db;\u4423blac;\u4170r;\uc000\ud835\udd18rave\u803b\xd9\u40d9acr;\u416a\u0100di\u1341\u1369er\u0100BP\u1348\u135d\u0100ar\u134d\u1350r;\u405fac\u0100ek\u1357\u1359;\u63dfet;\u63b5arenthesis;\u63ddon\u0100;P\u1370\u1371\u62c3lus;\u628e\u0100gp\u137b\u137fon;\u4172f;\uc000\ud835\udd4c\u0400ADETadps\u1395\u13ae\u13b8\u13c4\u03e8\u13d2\u13d7\u13f3rrow\u0180;BD\u1150\u13a0\u13a4ar;\u6912ownArrow;\u61c5ownArrow;\u6195quilibrium;\u696eee\u0100;A\u13cb\u13cc\u62a5rrow;\u61a5own\xe1\u03f3er\u0100LR\u13de\u13e8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13f9\u13fa\u43d2on;\u43a5ing;\u416ecr;\uc000\ud835\udcb0ilde;\u4168ml\u803b\xdc\u40dc\u0480Dbcdefosv\u1427\u142c\u1430\u1433\u143e\u1485\u148a\u1490\u1496ash;\u62abar;\u6aeby;\u4412ash\u0100;l\u143b\u143c\u62a9;\u6ae6\u0100er\u1443\u1445;\u62c1\u0180bty\u144c\u1450\u147aar;\u6016\u0100;i\u144f\u1455cal\u0200BLST\u1461\u1465\u146a\u1474ar;\u6223ine;\u407ceparator;\u6758ilde;\u6240ThinSpace;\u600ar;\uc000\ud835\udd19pf;\uc000\ud835\udd4dcr;\uc000\ud835\udcb1dash;\u62aa\u0280cefos\u14a7\u14ac\u14b1\u14b6\u14bcirc;\u4174dge;\u62c0r;\uc000\ud835\udd1apf;\uc000\ud835\udd4ecr;\uc000\ud835\udcb2\u0200fios\u14cb\u14d0\u14d2\u14d8r;\uc000\ud835\udd1b;\u439epf;\uc000\ud835\udd4fcr;\uc000\ud835\udcb3\u0480AIUacfosu\u14f1\u14f5\u14f9\u14fd\u1504\u150f\u1514\u151a\u1520cy;\u442fcy;\u4407cy;\u442ecute\u803b\xdd\u40dd\u0100iy\u1509\u150drc;\u4176;\u442br;\uc000\ud835\udd1cpf;\uc000\ud835\udd50cr;\uc000\ud835\udcb4ml;\u4178\u0400Hacdefos\u1535\u1539\u153f\u154b\u154f\u155d\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417d;\u4417ot;\u417b\u01f2\u1554\0\u155boWidt\xe8\u0ad9a;\u4396r;\u6128pf;\u6124cr;\uc000\ud835\udcb5\u0be1\u1583\u158a\u1590\0\u15b0\u15b6\u15bf\0\0\0\0\u15c6\u15db\u15eb\u165f\u166d\0\u1695\u169b\u16b2\u16b9\0\u16becute\u803b\xe1\u40e1reve;\u4103\u0300;Ediuy\u159c\u159d\u15a1\u15a3\u15a8\u15ad\u623e;\uc000\u223e\u0333;\u623frc\u803b\xe2\u40e2te\u80bb\xb4\u0306;\u4430lig\u803b\xe6\u40e6\u0100;r\xb2\u15ba;\uc000\ud835\udd1erave\u803b\xe0\u40e0\u0100ep\u15ca\u15d6\u0100fp\u15cf\u15d4sym;\u6135\xe8\u15d3ha;\u43b1\u0100ap\u15dfc\u0100cl\u15e4\u15e7r;\u4101g;\u6a3f\u0264\u15f0\0\0\u160a\u0280;adsv\u15fa\u15fb\u15ff\u1601\u1607\u6227nd;\u6a55;\u6a5clope;\u6a58;\u6a5a\u0380;elmrsz\u1618\u1619\u161b\u161e\u163f\u164f\u1659\u6220;\u69a4e\xbb\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163a\u163c\u163e;\u69a8;\u69a9;\u69aa;\u69ab;\u69ac;\u69ad;\u69ae;\u69aft\u0100;v\u1645\u1646\u621fb\u0100;d\u164c\u164d\u62be;\u699d\u0100pt\u1654\u1657h;\u6222\xbb\xb9arr;\u637c\u0100gp\u1663\u1667on;\u4105f;\uc000\ud835\udd52\u0380;Eaeiop\u12c1\u167b\u167d\u1682\u1684\u1687\u168a;\u6a70cir;\u6a6f;\u624ad;\u624bs;\u4027rox\u0100;e\u12c1\u1692\xf1\u1683ing\u803b\xe5\u40e5\u0180cty\u16a1\u16a6\u16a8r;\uc000\ud835\udcb6;\u402amp\u0100;e\u12c1\u16af\xf1\u0288ilde\u803b\xe3\u40e3ml\u803b\xe4\u40e4\u0100ci\u16c2\u16c8onin\xf4\u0272nt;\u6a11\u0800Nabcdefiklnoprsu\u16ed\u16f1\u1730\u173c\u1743\u1748\u1778\u177d\u17e0\u17e6\u1839\u1850\u170d\u193d\u1948\u1970ot;\u6aed\u0100cr\u16f6\u171ek\u0200ceps\u1700\u1705\u170d\u1713ong;\u624cpsilon;\u43f6rime;\u6035im\u0100;e\u171a\u171b\u623dq;\u62cd\u0176\u1722\u1726ee;\u62bded\u0100;g\u172c\u172d\u6305e\xbb\u172drk\u0100;t\u135c\u1737brk;\u63b6\u0100oy\u1701\u1741;\u4431quo;\u601e\u0280cmprt\u1753\u175b\u1761\u1764\u1768aus\u0100;e\u010a\u0109ptyv;\u69b0s\xe9\u170cno\xf5\u0113\u0180ahw\u176f\u1771\u1773;\u43b2;\u6136een;\u626cr;\uc000\ud835\udd1fg\u0380costuvw\u178d\u179d\u17b3\u17c1\u17d5\u17db\u17de\u0180aiu\u1794\u1796\u179a\xf0\u0760rc;\u65efp\xbb\u1371\u0180dpt\u17a4\u17a8\u17adot;\u6a00lus;\u6a01imes;\u6a02\u0271\u17b9\0\0\u17becup;\u6a06ar;\u6605riangle\u0100du\u17cd\u17d2own;\u65bdp;\u65b3plus;\u6a04e\xe5\u1444\xe5\u14adarow;\u690d\u0180ako\u17ed\u1826\u1835\u0100cn\u17f2\u1823k\u0180lst\u17fa\u05ab\u1802ozenge;\u69ebriangle\u0200;dlr\u1812\u1813\u1818\u181d\u65b4own;\u65beeft;\u65c2ight;\u65b8k;\u6423\u01b1\u182b\0\u1833\u01b2\u182f\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183e\u184d\u0100;q\u1843\u1846\uc000=\u20e5uiv;\uc000\u2261\u20e5t;\u6310\u0200ptwx\u1859\u185e\u1867\u186cf;\uc000\ud835\udd53\u0100;t\u13cb\u1863om\xbb\u13cctie;\u62c8\u0600DHUVbdhmptuv\u1885\u1896\u18aa\u18bb\u18d7\u18db\u18ec\u18ff\u1905\u190a\u1910\u1921\u0200LRlr\u188e\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18a1\u18a2\u18a4\u18a6\u18a8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18b3\u18b5\u18b7\u18b9;\u655d;\u655a;\u655c;\u6559\u0380;HLRhlr\u18ca\u18cb\u18cd\u18cf\u18d1\u18d3\u18d5\u6551;\u656c;\u6563;\u6560;\u656b;\u6562;\u655fox;\u69c9\u0200LRlr\u18e4\u18e6\u18e8\u18ea;\u6555;\u6552;\u6510;\u650c\u0280;DUdu\u06bd\u18f7\u18f9\u18fb\u18fd;\u6565;\u6568;\u652c;\u6534inus;\u629flus;\u629eimes;\u62a0\u0200LRlr\u1919\u191b\u191d\u191f;\u655b;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193b\u6502;\u656a;\u6561;\u655e;\u653c;\u6524;\u651c\u0100ev\u0123\u1942bar\u803b\xa6\u40a6\u0200ceio\u1951\u1956\u195a\u1960r;\uc000\ud835\udcb7mi;\u604fm\u0100;e\u171a\u171cl\u0180;bh\u1968\u1969\u196b\u405c;\u69c5sub;\u67c8\u016c\u1974\u197el\u0100;e\u1979\u197a\u6022t\xbb\u197ap\u0180;Ee\u012f\u1985\u1987;\u6aae\u0100;q\u06dc\u06db\u0ce1\u19a7\0\u19e8\u1a11\u1a15\u1a32\0\u1a37\u1a50\0\0\u1ab4\0\0\u1ac1\0\0\u1b21\u1b2e\u1b4d\u1b52\0\u1bfd\0\u1c0c\u0180cpr\u19ad\u19b2\u19ddute;\u4107\u0300;abcds\u19bf\u19c0\u19c4\u19ca\u19d5\u19d9\u6229nd;\u6a44rcup;\u6a49\u0100au\u19cf\u19d2p;\u6a4bp;\u6a47ot;\u6a40;\uc000\u2229\ufe00\u0100eo\u19e2\u19e5t;\u6041\xee\u0693\u0200aeiu\u19f0\u19fb\u1a01\u1a05\u01f0\u19f5\0\u19f8s;\u6a4don;\u410ddil\u803b\xe7\u40e7rc;\u4109ps\u0100;s\u1a0c\u1a0d\u6a4cm;\u6a50ot;\u410b\u0180dmn\u1a1b\u1a20\u1a26il\u80bb\xb8\u01adptyv;\u69b2t\u8100\xa2;e\u1a2d\u1a2e\u40a2r\xe4\u01b2r;\uc000\ud835\udd20\u0180cei\u1a3d\u1a40\u1a4dy;\u4447ck\u0100;m\u1a47\u1a48\u6713ark\xbb\u1a48;\u43c7r\u0380;Ecefms\u1a5f\u1a60\u1a62\u1a6b\u1aa4\u1aaa\u1aae\u65cb;\u69c3\u0180;el\u1a69\u1a6a\u1a6d\u42c6q;\u6257e\u0261\u1a74\0\0\u1a88rrow\u0100lr\u1a7c\u1a81eft;\u61baight;\u61bb\u0280RSacd\u1a92\u1a94\u1a96\u1a9a\u1a9f\xbb\u0f47;\u64c8st;\u629birc;\u629aash;\u629dnint;\u6a10id;\u6aefcir;\u69c2ubs\u0100;u\u1abb\u1abc\u6663it\xbb\u1abc\u02ec\u1ac7\u1ad4\u1afa\0\u1b0aon\u0100;e\u1acd\u1ace\u403a\u0100;q\xc7\xc6\u026d\u1ad9\0\0\u1ae2a\u0100;t\u1ade\u1adf\u402c;\u4040\u0180;fl\u1ae8\u1ae9\u1aeb\u6201\xee\u1160e\u0100mx\u1af1\u1af6ent\xbb\u1ae9e\xf3\u024d\u01e7\u1afe\0\u1b07\u0100;d\u12bb\u1b02ot;\u6a6dn\xf4\u0246\u0180fry\u1b10\u1b14\u1b17;\uc000\ud835\udd54o\xe4\u0254\u8100\xa9;s\u0155\u1b1dr;\u6117\u0100ao\u1b25\u1b29rr;\u61b5ss;\u6717\u0100cu\u1b32\u1b37r;\uc000\ud835\udcb8\u0100bp\u1b3c\u1b44\u0100;e\u1b41\u1b42\u6acf;\u6ad1\u0100;e\u1b49\u1b4a\u6ad0;\u6ad2dot;\u62ef\u0380delprvw\u1b60\u1b6c\u1b77\u1b82\u1bac\u1bd4\u1bf9arr\u0100lr\u1b68\u1b6a;\u6938;\u6935\u0270\u1b72\0\0\u1b75r;\u62dec;\u62dfarr\u0100;p\u1b7f\u1b80\u61b6;\u693d\u0300;bcdos\u1b8f\u1b90\u1b96\u1ba1\u1ba5\u1ba8\u622arcap;\u6a48\u0100au\u1b9b\u1b9ep;\u6a46p;\u6a4aot;\u628dr;\u6a45;\uc000\u222a\ufe00\u0200alrv\u1bb5\u1bbf\u1bde\u1be3rr\u0100;m\u1bbc\u1bbd\u61b7;\u693cy\u0180evw\u1bc7\u1bd4\u1bd8q\u0270\u1bce\0\0\u1bd2re\xe3\u1b73u\xe3\u1b75ee;\u62ceedge;\u62cfen\u803b\xa4\u40a4earrow\u0100lr\u1bee\u1bf3eft\xbb\u1b80ight\xbb\u1bbde\xe4\u1bdd\u0100ci\u1c01\u1c07onin\xf4\u01f7nt;\u6231lcty;\u632d\u0980AHabcdefhijlorstuwz\u1c38\u1c3b\u1c3f\u1c5d\u1c69\u1c75\u1c8a\u1c9e\u1cac\u1cb7\u1cfb\u1cff\u1d0d\u1d7b\u1d91\u1dab\u1dbb\u1dc6\u1dcdr\xf2\u0381ar;\u6965\u0200glrs\u1c48\u1c4d\u1c52\u1c54ger;\u6020eth;\u6138\xf2\u1133h\u0100;v\u1c5a\u1c5b\u6010\xbb\u090a\u016b\u1c61\u1c67arow;\u690fa\xe3\u0315\u0100ay\u1c6e\u1c73ron;\u410f;\u4434\u0180;ao\u0332\u1c7c\u1c84\u0100gr\u02bf\u1c81r;\u61catseq;\u6a77\u0180glm\u1c91\u1c94\u1c98\u803b\xb0\u40b0ta;\u43b4ptyv;\u69b1\u0100ir\u1ca3\u1ca8sht;\u697f;\uc000\ud835\udd21ar\u0100lr\u1cb3\u1cb5\xbb\u08dc\xbb\u101e\u0280aegsv\u1cc2\u0378\u1cd6\u1cdc\u1ce0m\u0180;os\u0326\u1cca\u1cd4nd\u0100;s\u0326\u1cd1uit;\u6666amma;\u43ddin;\u62f2\u0180;io\u1ce7\u1ce8\u1cf8\u40f7de\u8100\xf7;o\u1ce7\u1cf0ntimes;\u62c7n\xf8\u1cf7cy;\u4452c\u026f\u1d06\0\0\u1d0arn;\u631eop;\u630d\u0280lptuw\u1d18\u1d1d\u1d22\u1d49\u1d55lar;\u4024f;\uc000\ud835\udd55\u0280;emps\u030b\u1d2d\u1d37\u1d3d\u1d42q\u0100;d\u0352\u1d33ot;\u6251inus;\u6238lus;\u6214quare;\u62a1blebarwedg\xe5\xfan\u0180adh\u112e\u1d5d\u1d67ownarrow\xf3\u1c83arpoon\u0100lr\u1d72\u1d76ef\xf4\u1cb4igh\xf4\u1cb6\u0162\u1d7f\u1d85karo\xf7\u0f42\u026f\u1d8a\0\0\u1d8ern;\u631fop;\u630c\u0180cot\u1d98\u1da3\u1da6\u0100ry\u1d9d\u1da1;\uc000\ud835\udcb9;\u4455l;\u69f6rok;\u4111\u0100dr\u1db0\u1db4ot;\u62f1i\u0100;f\u1dba\u1816\u65bf\u0100ah\u1dc0\u1dc3r\xf2\u0429a\xf2\u0fa6angle;\u69a6\u0100ci\u1dd2\u1dd5y;\u445fgrarr;\u67ff\u0900Dacdefglmnopqrstux\u1e01\u1e09\u1e19\u1e38\u0578\u1e3c\u1e49\u1e61\u1e7e\u1ea5\u1eaf\u1ebd\u1ee1\u1f2a\u1f37\u1f44\u1f4e\u1f5a\u0100Do\u1e06\u1d34o\xf4\u1c89\u0100cs\u1e0e\u1e14ute\u803b\xe9\u40e9ter;\u6a6e\u0200aioy\u1e22\u1e27\u1e31\u1e36ron;\u411br\u0100;c\u1e2d\u1e2e\u6256\u803b\xea\u40ealon;\u6255;\u444dot;\u4117\u0100Dr\u1e41\u1e45ot;\u6252;\uc000\ud835\udd22\u0180;rs\u1e50\u1e51\u1e57\u6a9aave\u803b\xe8\u40e8\u0100;d\u1e5c\u1e5d\u6a96ot;\u6a98\u0200;ils\u1e6a\u1e6b\u1e72\u1e74\u6a99nters;\u63e7;\u6113\u0100;d\u1e79\u1e7a\u6a95ot;\u6a97\u0180aps\u1e85\u1e89\u1e97cr;\u4113ty\u0180;sv\u1e92\u1e93\u1e95\u6205et\xbb\u1e93p\u01001;\u1e9d\u1ea4\u0133\u1ea1\u1ea3;\u6004;\u6005\u6003\u0100gs\u1eaa\u1eac;\u414bp;\u6002\u0100gp\u1eb4\u1eb8on;\u4119f;\uc000\ud835\udd56\u0180als\u1ec4\u1ece\u1ed2r\u0100;s\u1eca\u1ecb\u62d5l;\u69e3us;\u6a71i\u0180;lv\u1eda\u1edb\u1edf\u43b5on\xbb\u1edb;\u43f5\u0200csuv\u1eea\u1ef3\u1f0b\u1f23\u0100io\u1eef\u1e31rc\xbb\u1e2e\u0269\u1ef9\0\0\u1efb\xed\u0548ant\u0100gl\u1f02\u1f06tr\xbb\u1e5dess\xbb\u1e7a\u0180aei\u1f12\u1f16\u1f1als;\u403dst;\u625fv\u0100;D\u0235\u1f20D;\u6a78parsl;\u69e5\u0100Da\u1f2f\u1f33ot;\u6253rr;\u6971\u0180cdi\u1f3e\u1f41\u1ef8r;\u612fo\xf4\u0352\u0100ah\u1f49\u1f4b;\u43b7\u803b\xf0\u40f0\u0100mr\u1f53\u1f57l\u803b\xeb\u40ebo;\u60ac\u0180cip\u1f61\u1f64\u1f67l;\u4021s\xf4\u056e\u0100eo\u1f6c\u1f74ctatio\xee\u0559nential\xe5\u0579\u09e1\u1f92\0\u1f9e\0\u1fa1\u1fa7\0\0\u1fc6\u1fcc\0\u1fd3\0\u1fe6\u1fea\u2000\0\u2008\u205allingdotse\xf1\u1e44y;\u4444male;\u6640\u0180ilr\u1fad\u1fb3\u1fc1lig;\u8000\ufb03\u0269\u1fb9\0\0\u1fbdg;\u8000\ufb00ig;\u8000\ufb04;\uc000\ud835\udd23lig;\u8000\ufb01lig;\uc000fj\u0180alt\u1fd9\u1fdc\u1fe1t;\u666dig;\u8000\ufb02ns;\u65b1of;\u4192\u01f0\u1fee\0\u1ff3f;\uc000\ud835\udd57\u0100ak\u05bf\u1ff7\u0100;v\u1ffc\u1ffd\u62d4;\u6ad9artint;\u6a0d\u0100ao\u200c\u2055\u0100cs\u2011\u2052\u03b1\u201a\u2030\u2038\u2045\u2048\0\u2050\u03b2\u2022\u2025\u2027\u202a\u202c\0\u202e\u803b\xbd\u40bd;\u6153\u803b\xbc\u40bc;\u6155;\u6159;\u615b\u01b3\u2034\0\u2036;\u6154;\u6156\u02b4\u203e\u2041\0\0\u2043\u803b\xbe\u40be;\u6157;\u615c5;\u6158\u01b6\u204c\0\u204e;\u615a;\u615d8;\u615el;\u6044wn;\u6322cr;\uc000\ud835\udcbb\u0880Eabcdefgijlnorstv\u2082\u2089\u209f\u20a5\u20b0\u20b4\u20f0\u20f5\u20fa\u20ff\u2103\u2112\u2138\u0317\u213e\u2152\u219e\u0100;l\u064d\u2087;\u6a8c\u0180cmp\u2090\u2095\u209dute;\u41f5ma\u0100;d\u209c\u1cda\u43b3;\u6a86reve;\u411f\u0100iy\u20aa\u20aerc;\u411d;\u4433ot;\u4121\u0200;lqs\u063e\u0642\u20bd\u20c9\u0180;qs\u063e\u064c\u20c4lan\xf4\u0665\u0200;cdl\u0665\u20d2\u20d5\u20e5c;\u6aa9ot\u0100;o\u20dc\u20dd\u6a80\u0100;l\u20e2\u20e3\u6a82;\u6a84\u0100;e\u20ea\u20ed\uc000\u22db\ufe00s;\u6a94r;\uc000\ud835\udd24\u0100;g\u0673\u061bmel;\u6137cy;\u4453\u0200;Eaj\u065a\u210c\u210e\u2110;\u6a92;\u6aa5;\u6aa4\u0200Eaes\u211b\u211d\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6a8arox\xbb\u2124\u0100;q\u212e\u212f\u6a88\u0100;q\u212e\u211bim;\u62e7pf;\uc000\ud835\udd58\u0100ci\u2143\u2146r;\u610am\u0180;el\u066b\u214e\u2150;\u6a8e;\u6a90\u8300>;cdlqr\u05ee\u2160\u216a\u216e\u2173\u2179\u0100ci\u2165\u2167;\u6aa7r;\u6a7aot;\u62d7Par;\u6995uest;\u6a7c\u0280adels\u2184\u216a\u2190\u0656\u219b\u01f0\u2189\0\u218epro\xf8\u209er;\u6978q\u0100lq\u063f\u2196les\xf3\u2088i\xed\u066b\u0100en\u21a3\u21adrtneqq;\uc000\u2269\ufe00\xc5\u21aa\u0500Aabcefkosy\u21c4\u21c7\u21f1\u21f5\u21fa\u2218\u221d\u222f\u2268\u227dr\xf2\u03a0\u0200ilmr\u21d0\u21d4\u21d7\u21dbrs\xf0\u1484f\xbb\u2024il\xf4\u06a9\u0100dr\u21e0\u21e4cy;\u444a\u0180;cw\u08f4\u21eb\u21efir;\u6948;\u61adar;\u610firc;\u4125\u0180alr\u2201\u220e\u2213rts\u0100;u\u2209\u220a\u6665it\xbb\u220alip;\u6026con;\u62b9r;\uc000\ud835\udd25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223a\u223e\u2243\u225e\u2263rr;\u61fftht;\u623bk\u0100lr\u2249\u2253eftarrow;\u61a9ightarrow;\u61aaf;\uc000\ud835\udd59bar;\u6015\u0180clt\u226f\u2274\u2278r;\uc000\ud835\udcbdas\xe8\u21f4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xbb\u1c5b\u0ae1\u22a3\0\u22aa\0\u22b8\u22c5\u22ce\0\u22d5\u22f3\0\0\u22f8\u2322\u2367\u2362\u237f\0\u2386\u23aa\u23b4cute\u803b\xed\u40ed\u0180;iy\u0771\u22b0\u22b5rc\u803b\xee\u40ee;\u4438\u0100cx\u22bc\u22bfy;\u4435cl\u803b\xa1\u40a1\u0100fr\u039f\u22c9;\uc000\ud835\udd26rave\u803b\xec\u40ec\u0200;ino\u073e\u22dd\u22e9\u22ee\u0100in\u22e2\u22e6nt;\u6a0ct;\u622dfin;\u69dcta;\u6129lig;\u4133\u0180aop\u22fe\u231a\u231d\u0180cgt\u2305\u2308\u2317r;\u412b\u0180elp\u071f\u230f\u2313in\xe5\u078ear\xf4\u0720h;\u4131f;\u62b7ed;\u41b5\u0280;cfot\u04f4\u232c\u2331\u233d\u2341are;\u6105in\u0100;t\u2338\u2339\u621eie;\u69dddo\xf4\u2319\u0280;celp\u0757\u234c\u2350\u235b\u2361al;\u62ba\u0100gr\u2355\u2359er\xf3\u1563\xe3\u234darhk;\u6a17rod;\u6a3c\u0200cgpt\u236f\u2372\u2376\u237by;\u4451on;\u412ff;\uc000\ud835\udd5aa;\u43b9uest\u803b\xbf\u40bf\u0100ci\u238a\u238fr;\uc000\ud835\udcben\u0280;Edsv\u04f4\u239b\u239d\u23a1\u04f3;\u62f9ot;\u62f5\u0100;v\u23a6\u23a7\u62f4;\u62f3\u0100;i\u0777\u23aelde;\u4129\u01eb\u23b8\0\u23bccy;\u4456l\u803b\xef\u40ef\u0300cfmosu\u23cc\u23d7\u23dc\u23e1\u23e7\u23f5\u0100iy\u23d1\u23d5rc;\u4135;\u4439r;\uc000\ud835\udd27ath;\u4237pf;\uc000\ud835\udd5b\u01e3\u23ec\0\u23f1r;\uc000\ud835\udcbfrcy;\u4458kcy;\u4454\u0400acfghjos\u240b\u2416\u2422\u2427\u242d\u2431\u2435\u243bppa\u0100;v\u2413\u2414\u43ba;\u43f0\u0100ey\u241b\u2420dil;\u4137;\u443ar;\uc000\ud835\udd28reen;\u4138cy;\u4445cy;\u445cpf;\uc000\ud835\udd5ccr;\uc000\ud835\udcc0\u0b80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248d\u2491\u250e\u253d\u255a\u2580\u264e\u265e\u2665\u2679\u267d\u269a\u26b2\u26d8\u275d\u2768\u278b\u27c0\u2801\u2812\u0180art\u2477\u247a\u247cr\xf2\u09c6\xf2\u0395ail;\u691barr;\u690e\u0100;g\u0994\u248b;\u6a8bar;\u6962\u0963\u24a5\0\u24aa\0\u24b1\0\0\0\0\0\u24b5\u24ba\0\u24c6\u24c8\u24cd\0\u24f9ute;\u413amptyv;\u69b4ra\xee\u084cbda;\u43bbg\u0180;dl\u088e\u24c1\u24c3;\u6991\xe5\u088e;\u6a85uo\u803b\xab\u40abr\u0400;bfhlpst\u0899\u24de\u24e6\u24e9\u24eb\u24ee\u24f1\u24f5\u0100;f\u089d\u24e3s;\u691fs;\u691d\xeb\u2252p;\u61abl;\u6939im;\u6973l;\u61a2\u0180;ae\u24ff\u2500\u2504\u6aabil;\u6919\u0100;s\u2509\u250a\u6aad;\uc000\u2aad\ufe00\u0180abr\u2515\u2519\u251drr;\u690crk;\u6772\u0100ak\u2522\u252cc\u0100ek\u2528\u252a;\u407b;\u405b\u0100es\u2531\u2533;\u698bl\u0100du\u2539\u253b;\u698f;\u698d\u0200aeuy\u2546\u254b\u2556\u2558ron;\u413e\u0100di\u2550\u2554il;\u413c\xec\u08b0\xe2\u2529;\u443b\u0200cqrs\u2563\u2566\u256d\u257da;\u6936uo\u0100;r\u0e19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694bh;\u61b2\u0280;fgqs\u258b\u258c\u0989\u25f3\u25ff\u6264t\u0280ahlrt\u2598\u25a4\u25b7\u25c2\u25e8rrow\u0100;t\u0899\u25a1a\xe9\u24f6arpoon\u0100du\u25af\u25b4own\xbb\u045ap\xbb\u0966eftarrows;\u61c7ight\u0180ahs\u25cd\u25d6\u25derrow\u0100;s\u08f4\u08a7arpoon\xf3\u0f98quigarro\xf7\u21f0hreetimes;\u62cb\u0180;qs\u258b\u0993\u25falan\xf4\u09ac\u0280;cdgs\u09ac\u260a\u260d\u261d\u2628c;\u6aa8ot\u0100;o\u2614\u2615\u6a7f\u0100;r\u261a\u261b\u6a81;\u6a83\u0100;e\u2622\u2625\uc000\u22da\ufe00s;\u6a93\u0280adegs\u2633\u2639\u263d\u2649\u264bppro\xf8\u24c6ot;\u62d6q\u0100gq\u2643\u2645\xf4\u0989gt\xf2\u248c\xf4\u099bi\xed\u09b2\u0180ilr\u2655\u08e1\u265asht;\u697c;\uc000\ud835\udd29\u0100;E\u099c\u2663;\u6a91\u0161\u2669\u2676r\u0100du\u25b2\u266e\u0100;l\u0965\u2673;\u696alk;\u6584cy;\u4459\u0280;acht\u0a48\u2688\u268b\u2691\u2696r\xf2\u25c1orne\xf2\u1d08ard;\u696bri;\u65fa\u0100io\u269f\u26a4dot;\u4140ust\u0100;a\u26ac\u26ad\u63b0che\xbb\u26ad\u0200Eaes\u26bb\u26bd\u26c9\u26d4;\u6268p\u0100;p\u26c3\u26c4\u6a89rox\xbb\u26c4\u0100;q\u26ce\u26cf\u6a87\u0100;q\u26ce\u26bbim;\u62e6\u0400abnoptwz\u26e9\u26f4\u26f7\u271a\u272f\u2741\u2747\u2750\u0100nr\u26ee\u26f1g;\u67ecr;\u61fdr\xeb\u08c1g\u0180lmr\u26ff\u270d\u2714eft\u0100ar\u09e6\u2707ight\xe1\u09f2apsto;\u67fcight\xe1\u09fdparrow\u0100lr\u2725\u2729ef\xf4\u24edight;\u61ac\u0180afl\u2736\u2739\u273dr;\u6985;\uc000\ud835\udd5dus;\u6a2dimes;\u6a34\u0161\u274b\u274fst;\u6217\xe1\u134e\u0180;ef\u2757\u2758\u1800\u65cange\xbb\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277c\u2785\u2787r\xf2\u08a8orne\xf2\u1d8car\u0100;d\u0f98\u2783;\u696d;\u600eri;\u62bf\u0300achiqt\u2798\u279d\u0a40\u27a2\u27ae\u27bbquo;\u6039r;\uc000\ud835\udcc1m\u0180;eg\u09b2\u27aa\u27ac;\u6a8d;\u6a8f\u0100bu\u252a\u27b3o\u0100;r\u0e1f\u27b9;\u601arok;\u4142\u8400<;cdhilqr\u082b\u27d2\u2639\u27dc\u27e0\u27e5\u27ea\u27f0\u0100ci\u27d7\u27d9;\u6aa6r;\u6a79re\xe5\u25f2mes;\u62c9arr;\u6976uest;\u6a7b\u0100Pi\u27f5\u27f9ar;\u6996\u0180;ef\u2800\u092d\u181b\u65c3r\u0100du\u2807\u280dshar;\u694ahar;\u6966\u0100en\u2817\u2821rtneqq;\uc000\u2268\ufe00\xc5\u281e\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288e\u2893\u28a0\u28a5\u28a8\u28da\u28e2\u28e4\u0a83\u28f3\u2902Dot;\u623a\u0200clpr\u284e\u2852\u2863\u287dr\u803b\xaf\u40af\u0100et\u2857\u2859;\u6642\u0100;e\u285e\u285f\u6720se\xbb\u285f\u0100;s\u103b\u2868to\u0200;dlu\u103b\u2873\u2877\u287bow\xee\u048cef\xf4\u090f\xf0\u13d1ker;\u65ae\u0100oy\u2887\u288cmma;\u6a29;\u443cash;\u6014asuredangle\xbb\u1626r;\uc000\ud835\udd2ao;\u6127\u0180cdn\u28af\u28b4\u28c9ro\u803b\xb5\u40b5\u0200;acd\u1464\u28bd\u28c0\u28c4s\xf4\u16a7ir;\u6af0ot\u80bb\xb7\u01b5us\u0180;bd\u28d2\u1903\u28d3\u6212\u0100;u\u1d3c\u28d8;\u6a2a\u0163\u28de\u28e1p;\u6adb\xf2\u2212\xf0\u0a81\u0100dp\u28e9\u28eeels;\u62a7f;\uc000\ud835\udd5e\u0100ct\u28f8\u28fdr;\uc000\ud835\udcc2pos\xbb\u159d\u0180;lm\u2909\u290a\u290d\u43bctimap;\u62b8\u0c00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297e\u2989\u2998\u29da\u29e9\u2a15\u2a1a\u2a58\u2a5d\u2a83\u2a95\u2aa4\u2aa8\u2b04\u2b07\u2b44\u2b7f\u2bae\u2c34\u2c67\u2c7c\u2ce9\u0100gt\u2947\u294b;\uc000\u22d9\u0338\u0100;v\u2950\u0bcf\uc000\u226b\u20d2\u0180elt\u295a\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61cdightarrow;\u61ce;\uc000\u22d8\u0338\u0100;v\u297b\u0c47\uc000\u226a\u20d2ightarrow;\u61cf\u0100Dd\u298e\u2993ash;\u62afash;\u62ae\u0280bcnpt\u29a3\u29a7\u29ac\u29b1\u29ccla\xbb\u02deute;\u4144g;\uc000\u2220\u20d2\u0280;Eiop\u0d84\u29bc\u29c0\u29c5\u29c8;\uc000\u2a70\u0338d;\uc000\u224b\u0338s;\u4149ro\xf8\u0d84ur\u0100;a\u29d3\u29d4\u666el\u0100;s\u29d3\u0b38\u01f3\u29df\0\u29e3p\u80bb\xa0\u0b37mp\u0100;e\u0bf9\u0c00\u0280aeouy\u29f4\u29fe\u2a03\u2a10\u2a13\u01f0\u29f9\0\u29fb;\u6a43on;\u4148dil;\u4146ng\u0100;d\u0d7e\u2a0aot;\uc000\u2a6d\u0338p;\u6a42;\u443dash;\u6013\u0380;Aadqsx\u0b92\u2a29\u2a2d\u2a3b\u2a41\u2a45\u2a50rr;\u61d7r\u0100hr\u2a33\u2a36k;\u6924\u0100;o\u13f2\u13f0ot;\uc000\u2250\u0338ui\xf6\u0b63\u0100ei\u2a4a\u2a4ear;\u6928\xed\u0b98ist\u0100;s\u0ba0\u0b9fr;\uc000\ud835\udd2b\u0200Eest\u0bc5\u2a66\u2a79\u2a7c\u0180;qs\u0bbc\u2a6d\u0be1\u0180;qs\u0bbc\u0bc5\u2a74lan\xf4\u0be2i\xed\u0bea\u0100;r\u0bb6\u2a81\xbb\u0bb7\u0180Aap\u2a8a\u2a8d\u2a91r\xf2\u2971rr;\u61aear;\u6af2\u0180;sv\u0f8d\u2a9c\u0f8c\u0100;d\u2aa1\u2aa2\u62fc;\u62facy;\u445a\u0380AEadest\u2ab7\u2aba\u2abe\u2ac2\u2ac5\u2af6\u2af9r\xf2\u2966;\uc000\u2266\u0338rr;\u619ar;\u6025\u0200;fqs\u0c3b\u2ace\u2ae3\u2aeft\u0100ar\u2ad4\u2ad9rro\xf7\u2ac1ightarro\xf7\u2a90\u0180;qs\u0c3b\u2aba\u2aealan\xf4\u0c55\u0100;s\u0c55\u2af4\xbb\u0c36i\xed\u0c5d\u0100;r\u0c35\u2afei\u0100;e\u0c1a\u0c25i\xe4\u0d90\u0100pt\u2b0c\u2b11f;\uc000\ud835\udd5f\u8180\xac;in\u2b19\u2b1a\u2b36\u40acn\u0200;Edv\u0b89\u2b24\u2b28\u2b2e;\uc000\u22f9\u0338ot;\uc000\u22f5\u0338\u01e1\u0b89\u2b33\u2b35;\u62f7;\u62f6i\u0100;v\u0cb8\u2b3c\u01e1\u0cb8\u2b41\u2b43;\u62fe;\u62fd\u0180aor\u2b4b\u2b63\u2b69r\u0200;ast\u0b7b\u2b55\u2b5a\u2b5flle\xec\u0b7bl;\uc000\u2afd\u20e5;\uc000\u2202\u0338lint;\u6a14\u0180;ce\u0c92\u2b70\u2b73u\xe5\u0ca5\u0100;c\u0c98\u2b78\u0100;e\u0c92\u2b7d\xf1\u0c98\u0200Aait\u2b88\u2b8b\u2b9d\u2ba7r\xf2\u2988rr\u0180;cw\u2b94\u2b95\u2b99\u619b;\uc000\u2933\u0338;\uc000\u219d\u0338ghtarrow\xbb\u2b95ri\u0100;e\u0ccb\u0cd6\u0380chimpqu\u2bbd\u2bcd\u2bd9\u2b04\u0b78\u2be4\u2bef\u0200;cer\u0d32\u2bc6\u0d37\u2bc9u\xe5\u0d45;\uc000\ud835\udcc3ort\u026d\u2b05\0\0\u2bd6ar\xe1\u2b56m\u0100;e\u0d6e\u2bdf\u0100;q\u0d74\u0d73su\u0100bp\u2beb\u2bed\xe5\u0cf8\xe5\u0d0b\u0180bcp\u2bf6\u2c11\u2c19\u0200;Ees\u2bff\u2c00\u0d22\u2c04\u6284;\uc000\u2ac5\u0338et\u0100;e\u0d1b\u2c0bq\u0100;q\u0d23\u2c00c\u0100;e\u0d32\u2c17\xf1\u0d38\u0200;Ees\u2c22\u2c23\u0d5f\u2c27\u6285;\uc000\u2ac6\u0338et\u0100;e\u0d58\u2c2eq\u0100;q\u0d60\u2c23\u0200gilr\u2c3d\u2c3f\u2c45\u2c47\xec\u0bd7lde\u803b\xf1\u40f1\xe7\u0c43iangle\u0100lr\u2c52\u2c5ceft\u0100;e\u0c1a\u2c5a\xf1\u0c26ight\u0100;e\u0ccb\u2c65\xf1\u0cd7\u0100;m\u2c6c\u2c6d\u43bd\u0180;es\u2c74\u2c75\u2c79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2c8f\u2c94\u2c99\u2c9e\u2ca3\u2cb0\u2cb6\u2cd3\u2ce3ash;\u62adarr;\u6904p;\uc000\u224d\u20d2ash;\u62ac\u0100et\u2ca8\u2cac;\uc000\u2265\u20d2;\uc000>\u20d2nfin;\u69de\u0180Aet\u2cbd\u2cc1\u2cc5rr;\u6902;\uc000\u2264\u20d2\u0100;r\u2cca\u2ccd\uc000<\u20d2ie;\uc000\u22b4\u20d2\u0100At\u2cd8\u2cdcrr;\u6903rie;\uc000\u22b5\u20d2im;\uc000\u223c\u20d2\u0180Aan\u2cf0\u2cf4\u2d02rr;\u61d6r\u0100hr\u2cfa\u2cfdk;\u6923\u0100;o\u13e7\u13e5ear;\u6927\u1253\u1a95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2d2d\0\u2d38\u2d48\u2d60\u2d65\u2d72\u2d84\u1b07\0\0\u2d8d\u2dab\0\u2dc8\u2dce\0\u2ddc\u2e19\u2e2b\u2e3e\u2e43\u0100cs\u2d31\u1a97ute\u803b\xf3\u40f3\u0100iy\u2d3c\u2d45r\u0100;c\u1a9e\u2d42\u803b\xf4\u40f4;\u443e\u0280abios\u1aa0\u2d52\u2d57\u01c8\u2d5alac;\u4151v;\u6a38old;\u69bclig;\u4153\u0100cr\u2d69\u2d6dir;\u69bf;\uc000\ud835\udd2c\u036f\u2d79\0\0\u2d7c\0\u2d82n;\u42dbave\u803b\xf2\u40f2;\u69c1\u0100bm\u2d88\u0df4ar;\u69b5\u0200acit\u2d95\u2d98\u2da5\u2da8r\xf2\u1a80\u0100ir\u2d9d\u2da0r;\u69beoss;\u69bbn\xe5\u0e52;\u69c0\u0180aei\u2db1\u2db5\u2db9cr;\u414dga;\u43c9\u0180cdn\u2dc0\u2dc5\u01cdron;\u43bf;\u69b6pf;\uc000\ud835\udd60\u0180ael\u2dd4\u2dd7\u01d2r;\u69b7rp;\u69b9\u0380;adiosv\u2dea\u2deb\u2dee\u2e08\u2e0d\u2e10\u2e16\u6228r\xf2\u1a86\u0200;efm\u2df7\u2df8\u2e02\u2e05\u6a5dr\u0100;o\u2dfe\u2dff\u6134f\xbb\u2dff\u803b\xaa\u40aa\u803b\xba\u40bagof;\u62b6r;\u6a56lope;\u6a57;\u6a5b\u0180clo\u2e1f\u2e21\u2e27\xf2\u2e01ash\u803b\xf8\u40f8l;\u6298i\u016c\u2e2f\u2e34de\u803b\xf5\u40f5es\u0100;a\u01db\u2e3as;\u6a36ml\u803b\xf6\u40f6bar;\u633d\u0ae1\u2e5e\0\u2e7d\0\u2e80\u2e9d\0\u2ea2\u2eb9\0\0\u2ecb\u0e9c\0\u2f13\0\0\u2f2b\u2fbc\0\u2fc8r\u0200;ast\u0403\u2e67\u2e72\u0e85\u8100\xb6;l\u2e6d\u2e6e\u40b6le\xec\u0403\u0269\u2e78\0\0\u2e7bm;\u6af3;\u6afdy;\u443fr\u0280cimpt\u2e8b\u2e8f\u2e93\u1865\u2e97nt;\u4025od;\u402eil;\u6030enk;\u6031r;\uc000\ud835\udd2d\u0180imo\u2ea8\u2eb0\u2eb4\u0100;v\u2ead\u2eae\u43c6;\u43d5ma\xf4\u0a76ne;\u660e\u0180;tv\u2ebf\u2ec0\u2ec8\u43c0chfork\xbb\u1ffd;\u43d6\u0100au\u2ecf\u2edfn\u0100ck\u2ed5\u2eddk\u0100;h\u21f4\u2edb;\u610e\xf6\u21f4s\u0480;abcdemst\u2ef3\u2ef4\u1908\u2ef9\u2efd\u2f04\u2f06\u2f0a\u2f0e\u402bcir;\u6a23ir;\u6a22\u0100ou\u1d40\u2f02;\u6a25;\u6a72n\u80bb\xb1\u0e9dim;\u6a26wo;\u6a27\u0180ipu\u2f19\u2f20\u2f25ntint;\u6a15f;\uc000\ud835\udd61nd\u803b\xa3\u40a3\u0500;Eaceinosu\u0ec8\u2f3f\u2f41\u2f44\u2f47\u2f81\u2f89\u2f92\u2f7e\u2fb6;\u6ab3p;\u6ab7u\xe5\u0ed9\u0100;c\u0ece\u2f4c\u0300;acens\u0ec8\u2f59\u2f5f\u2f66\u2f68\u2f7eppro\xf8\u2f43urlye\xf1\u0ed9\xf1\u0ece\u0180aes\u2f6f\u2f76\u2f7approx;\u6ab9qq;\u6ab5im;\u62e8i\xed\u0edfme\u0100;s\u2f88\u0eae\u6032\u0180Eas\u2f78\u2f90\u2f7a\xf0\u2f75\u0180dfp\u0eec\u2f99\u2faf\u0180als\u2fa0\u2fa5\u2faalar;\u632eine;\u6312urf;\u6313\u0100;t\u0efb\u2fb4\xef\u0efbrel;\u62b0\u0100ci\u2fc0\u2fc5r;\uc000\ud835\udcc5;\u43c8ncsp;\u6008\u0300fiopsu\u2fda\u22e2\u2fdf\u2fe5\u2feb\u2ff1r;\uc000\ud835\udd2epf;\uc000\ud835\udd62rime;\u6057cr;\uc000\ud835\udcc6\u0180aeo\u2ff8\u3009\u3013t\u0100ei\u2ffe\u3005rnion\xf3\u06b0nt;\u6a16st\u0100;e\u3010\u3011\u403f\xf1\u1f19\xf4\u0f14\u0a80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30e0\u310e\u312b\u3147\u3162\u3172\u318e\u3206\u3215\u3224\u3229\u3258\u326e\u3272\u3290\u32b0\u32b7\u0180art\u3047\u304a\u304cr\xf2\u10b3\xf2\u03ddail;\u691car\xf2\u1c65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307f\u308f\u3094\u30cc\u0100eu\u306d\u3071;\uc000\u223d\u0331te;\u4155i\xe3\u116emptyv;\u69b3g\u0200;del\u0fd1\u3089\u308b\u308d;\u6992;\u69a5\xe5\u0fd1uo\u803b\xbb\u40bbr\u0580;abcfhlpstw\u0fdc\u30ac\u30af\u30b7\u30b9\u30bc\u30be\u30c0\u30c3\u30c7\u30cap;\u6975\u0100;f\u0fe0\u30b4s;\u6920;\u6933s;\u691e\xeb\u225d\xf0\u272el;\u6945im;\u6974l;\u61a3;\u619d\u0100ai\u30d1\u30d5il;\u691ao\u0100;n\u30db\u30dc\u6236al\xf3\u0f1e\u0180abr\u30e7\u30ea\u30eer\xf2\u17e5rk;\u6773\u0100ak\u30f3\u30fdc\u0100ek\u30f9\u30fb;\u407d;\u405d\u0100es\u3102\u3104;\u698cl\u0100du\u310a\u310c;\u698e;\u6990\u0200aeuy\u3117\u311c\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xec\u0ff2\xe2\u30fa;\u4440\u0200clqs\u3134\u3137\u313d\u3144a;\u6937dhar;\u6969uo\u0100;r\u020e\u020dh;\u61b3\u0180acg\u314e\u315f\u0f44l\u0200;ips\u0f78\u3158\u315b\u109cn\xe5\u10bbar\xf4\u0fa9t;\u65ad\u0180ilr\u3169\u1023\u316esht;\u697d;\uc000\ud835\udd2f\u0100ao\u3177\u3186r\u0100du\u317d\u317f\xbb\u047b\u0100;l\u1091\u3184;\u696c\u0100;v\u318b\u318c\u43c1;\u43f1\u0180gns\u3195\u31f9\u31fcht\u0300ahlrst\u31a4\u31b0\u31c2\u31d8\u31e4\u31eerrow\u0100;t\u0fdc\u31ada\xe9\u30c8arpoon\u0100du\u31bb\u31bfow\xee\u317ep\xbb\u1092eft\u0100ah\u31ca\u31d0rrow\xf3\u0feaarpoon\xf3\u0551ightarrows;\u61c9quigarro\xf7\u30cbhreetimes;\u62ccg;\u42daingdotse\xf1\u1f32\u0180ahm\u320d\u3210\u3213r\xf2\u0feaa\xf2\u0551;\u600foust\u0100;a\u321e\u321f\u63b1che\xbb\u321fmid;\u6aee\u0200abpt\u3232\u323d\u3240\u3252\u0100nr\u3237\u323ag;\u67edr;\u61fer\xeb\u1003\u0180afl\u3247\u324a\u324er;\u6986;\uc000\ud835\udd63us;\u6a2eimes;\u6a35\u0100ap\u325d\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6a12ar\xf2\u31e3\u0200achq\u327b\u3280\u10bc\u3285quo;\u603ar;\uc000\ud835\udcc7\u0100bu\u30fb\u328ao\u0100;r\u0214\u0213\u0180hir\u3297\u329b\u32a0re\xe5\u31f8mes;\u62cai\u0200;efl\u32aa\u1059\u1821\u32ab\u65b9tri;\u69celuhar;\u6968;\u611e\u0d61\u32d5\u32db\u32df\u332c\u3338\u3371\0\u337a\u33a4\0\0\u33ec\u33f0\0\u3428\u3448\u345a\u34ad\u34b1\u34ca\u34f1\0\u3616\0\0\u3633cute;\u415bqu\xef\u27ba\u0500;Eaceinpsy\u11ed\u32f3\u32f5\u32ff\u3302\u330b\u330f\u331f\u3326\u3329;\u6ab4\u01f0\u32fa\0\u32fc;\u6ab8on;\u4161u\xe5\u11fe\u0100;d\u11f3\u3307il;\u415frc;\u415d\u0180Eas\u3316\u3318\u331b;\u6ab6p;\u6abaim;\u62e9olint;\u6a13i\xed\u1204;\u4441ot\u0180;be\u3334\u1d47\u3335\u62c5;\u6a66\u0380Aacmstx\u3346\u334a\u3357\u335b\u335e\u3363\u336drr;\u61d8r\u0100hr\u3350\u3352\xeb\u2228\u0100;o\u0a36\u0a34t\u803b\xa7\u40a7i;\u403bwar;\u6929m\u0100in\u3369\xf0nu\xf3\xf1t;\u6736r\u0100;o\u3376\u2055\uc000\ud835\udd30\u0200acoy\u3382\u3386\u3391\u33a0rp;\u666f\u0100hy\u338b\u338fcy;\u4449;\u4448rt\u026d\u3399\0\0\u339ci\xe4\u1464ara\xec\u2e6f\u803b\xad\u40ad\u0100gm\u33a8\u33b4ma\u0180;fv\u33b1\u33b2\u33b2\u43c3;\u43c2\u0400;deglnpr\u12ab\u33c5\u33c9\u33ce\u33d6\u33de\u33e1\u33e6ot;\u6a6a\u0100;q\u12b1\u12b0\u0100;E\u33d3\u33d4\u6a9e;\u6aa0\u0100;E\u33db\u33dc\u6a9d;\u6a9fe;\u6246lus;\u6a24arr;\u6972ar\xf2\u113d\u0200aeit\u33f8\u3408\u340f\u3417\u0100ls\u33fd\u3404lsetm\xe9\u336ahp;\u6a33parsl;\u69e4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341c\u341d\u6aaa\u0100;s\u3422\u3423\u6aac;\uc000\u2aac\ufe00\u0180flp\u342e\u3433\u3442tcy;\u444c\u0100;b\u3438\u3439\u402f\u0100;a\u343e\u343f\u69c4r;\u633ff;\uc000\ud835\udd64a\u0100dr\u344d\u0402es\u0100;u\u3454\u3455\u6660it\xbb\u3455\u0180csu\u3460\u3479\u349f\u0100au\u3465\u346fp\u0100;s\u1188\u346b;\uc000\u2293\ufe00p\u0100;s\u11b4\u3475;\uc000\u2294\ufe00u\u0100bp\u347f\u348f\u0180;es\u1197\u119c\u3486et\u0100;e\u1197\u348d\xf1\u119d\u0180;es\u11a8\u11ad\u3496et\u0100;e\u11a8\u349d\xf1\u11ae\u0180;af\u117b\u34a6\u05b0r\u0165\u34ab\u05b1\xbb\u117car\xf2\u1148\u0200cemt\u34b9\u34be\u34c2\u34c5r;\uc000\ud835\udcc8tm\xee\xf1i\xec\u3415ar\xe6\u11be\u0100ar\u34ce\u34d5r\u0100;f\u34d4\u17bf\u6606\u0100an\u34da\u34edight\u0100ep\u34e3\u34eapsilo\xee\u1ee0h\xe9\u2eafs\xbb\u2852\u0280bcmnp\u34fb\u355e\u1209\u358b\u358e\u0480;Edemnprs\u350e\u350f\u3511\u3515\u351e\u3523\u352c\u3531\u3536\u6282;\u6ac5ot;\u6abd\u0100;d\u11da\u351aot;\u6ac3ult;\u6ac1\u0100Ee\u3528\u352a;\u6acb;\u628alus;\u6abfarr;\u6979\u0180eiu\u353d\u3552\u3555t\u0180;en\u350e\u3545\u354bq\u0100;q\u11da\u350feq\u0100;q\u352b\u3528m;\u6ac7\u0100bp\u355a\u355c;\u6ad5;\u6ad3c\u0300;acens\u11ed\u356c\u3572\u3579\u357b\u3326ppro\xf8\u32faurlye\xf1\u11fe\xf1\u11f3\u0180aes\u3582\u3588\u331bppro\xf8\u331aq\xf1\u3317g;\u666a\u0680123;Edehlmnps\u35a9\u35ac\u35af\u121c\u35b2\u35b4\u35c0\u35c9\u35d5\u35da\u35df\u35e8\u35ed\u803b\xb9\u40b9\u803b\xb2\u40b2\u803b\xb3\u40b3;\u6ac6\u0100os\u35b9\u35bct;\u6abeub;\u6ad8\u0100;d\u1222\u35c5ot;\u6ac4s\u0100ou\u35cf\u35d2l;\u67c9b;\u6ad7arr;\u697bult;\u6ac2\u0100Ee\u35e4\u35e6;\u6acc;\u628blus;\u6ac0\u0180eiu\u35f4\u3609\u360ct\u0180;en\u121c\u35fc\u3602q\u0100;q\u1222\u35b2eq\u0100;q\u35e7\u35e4m;\u6ac8\u0100bp\u3611\u3613;\u6ad4;\u6ad6\u0180Aan\u361c\u3620\u362drr;\u61d9r\u0100hr\u3626\u3628\xeb\u222e\u0100;o\u0a2b\u0a29war;\u692alig\u803b\xdf\u40df\u0be1\u3651\u365d\u3660\u12ce\u3673\u3679\0\u367e\u36c2\0\0\0\0\0\u36db\u3703\0\u3709\u376c\0\0\0\u3787\u0272\u3656\0\0\u365bget;\u6316;\u43c4r\xeb\u0e5f\u0180aey\u3666\u366b\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uc000\ud835\udd31\u0200eiko\u3686\u369d\u36b5\u36bc\u01f2\u368b\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369b\u43b8ym;\u43d1\u0100cn\u36a2\u36b2k\u0100as\u36a8\u36aeppro\xf8\u12c1im\xbb\u12acs\xf0\u129e\u0100as\u36ba\u36ae\xf0\u12c1rn\u803b\xfe\u40fe\u01ec\u031f\u36c6\u22e7es\u8180\xd7;bd\u36cf\u36d0\u36d8\u40d7\u0100;a\u190f\u36d5r;\u6a31;\u6a30\u0180eps\u36e1\u36e3\u3700\xe1\u2a4d\u0200;bcf\u0486\u36ec\u36f0\u36f4ot;\u6336ir;\u6af1\u0100;o\u36f9\u36fc\uc000\ud835\udd65rk;\u6ada\xe1\u3362rime;\u6034\u0180aip\u370f\u3712\u3764d\xe5\u1248\u0380adempst\u3721\u374d\u3740\u3751\u3757\u375c\u375fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65b5own\xbb\u1dbbeft\u0100;e\u2800\u373e\xf1\u092e;\u625cight\u0100;e\u32aa\u374b\xf1\u105aot;\u65ecinus;\u6a3alus;\u6a39b;\u69cdime;\u6a3bezium;\u63e2\u0180cht\u3772\u377d\u3781\u0100ry\u3777\u377b;\uc000\ud835\udcc9;\u4446cy;\u445brok;\u4167\u0100io\u378b\u378ex\xf4\u1777head\u0100lr\u3797\u37a0eftarro\xf7\u084fightarrow\xbb\u0f5d\u0900AHabcdfghlmoprstuw\u37d0\u37d3\u37d7\u37e4\u37f0\u37fc\u380e\u381c\u3823\u3834\u3851\u385d\u386b\u38a9\u38cc\u38d2\u38ea\u38f6r\xf2\u03edar;\u6963\u0100cr\u37dc\u37e2ute\u803b\xfa\u40fa\xf2\u1150r\u01e3\u37ea\0\u37edy;\u445eve;\u416d\u0100iy\u37f5\u37farc\u803b\xfb\u40fb;\u4443\u0180abh\u3803\u3806\u380br\xf2\u13adlac;\u4171a\xf2\u13c3\u0100ir\u3813\u3818sht;\u697e;\uc000\ud835\udd32rave\u803b\xf9\u40f9\u0161\u3827\u3831r\u0100lr\u382c\u382e\xbb\u0957\xbb\u1083lk;\u6580\u0100ct\u3839\u384d\u026f\u383f\0\0\u384arn\u0100;e\u3845\u3846\u631cr\xbb\u3846op;\u630fri;\u65f8\u0100al\u3856\u385acr;\u416b\u80bb\xa8\u0349\u0100gp\u3862\u3866on;\u4173f;\uc000\ud835\udd66\u0300adhlsu\u114b\u3878\u387d\u1372\u3891\u38a0own\xe1\u13b3arpoon\u0100lr\u3888\u388cef\xf4\u382digh\xf4\u382fi\u0180;hl\u3899\u389a\u389c\u43c5\xbb\u13faon\xbb\u389aparrows;\u61c8\u0180cit\u38b0\u38c4\u38c8\u026f\u38b6\0\0\u38c1rn\u0100;e\u38bc\u38bd\u631dr\xbb\u38bdop;\u630eng;\u416fri;\u65f9cr;\uc000\ud835\udcca\u0180dir\u38d9\u38dd\u38e2ot;\u62f0lde;\u4169i\u0100;f\u3730\u38e8\xbb\u1813\u0100am\u38ef\u38f2r\xf2\u38a8l\u803b\xfc\u40fcangle;\u69a7\u0780ABDacdeflnoprsz\u391c\u391f\u3929\u392d\u39b5\u39b8\u39bd\u39df\u39e4\u39e8\u39f3\u39f9\u39fd\u3a01\u3a20r\xf2\u03f7ar\u0100;v\u3926\u3927\u6ae8;\u6ae9as\xe8\u03e1\u0100nr\u3932\u3937grt;\u699c\u0380eknprst\u34e3\u3946\u394b\u3952\u395d\u3964\u3996app\xe1\u2415othin\xe7\u1e96\u0180hir\u34eb\u2ec8\u3959op\xf4\u2fb5\u0100;h\u13b7\u3962\xef\u318d\u0100iu\u3969\u396dgm\xe1\u33b3\u0100bp\u3972\u3984setneq\u0100;q\u397d\u3980\uc000\u228a\ufe00;\uc000\u2acb\ufe00setneq\u0100;q\u398f\u3992\uc000\u228b\ufe00;\uc000\u2acc\ufe00\u0100hr\u399b\u399fet\xe1\u369ciangle\u0100lr\u39aa\u39afeft\xbb\u0925ight\xbb\u1051y;\u4432ash\xbb\u1036\u0180elr\u39c4\u39d2\u39d7\u0180;be\u2dea\u39cb\u39cfar;\u62bbq;\u625alip;\u62ee\u0100bt\u39dc\u1468a\xf2\u1469r;\uc000\ud835\udd33tr\xe9\u39aesu\u0100bp\u39ef\u39f1\xbb\u0d1c\xbb\u0d59pf;\uc000\ud835\udd67ro\xf0\u0efbtr\xe9\u39b4\u0100cu\u3a06\u3a0br;\uc000\ud835\udccb\u0100bp\u3a10\u3a18n\u0100Ee\u3980\u3a16\xbb\u397en\u0100Ee\u3992\u3a1e\xbb\u3990igzag;\u699a\u0380cefoprs\u3a36\u3a3b\u3a56\u3a5b\u3a54\u3a61\u3a6airc;\u4175\u0100di\u3a40\u3a51\u0100bg\u3a45\u3a49ar;\u6a5fe\u0100;q\u15fa\u3a4f;\u6259erp;\u6118r;\uc000\ud835\udd34pf;\uc000\ud835\udd68\u0100;e\u1479\u3a66at\xe8\u1479cr;\uc000\ud835\udccc\u0ae3\u178e\u3a87\0\u3a8b\0\u3a90\u3a9b\0\0\u3a9d\u3aa8\u3aab\u3aaf\0\0\u3ac3\u3ace\0\u3ad8\u17dc\u17dftr\xe9\u17d1r;\uc000\ud835\udd35\u0100Aa\u3a94\u3a97r\xf2\u03c3r\xf2\u09f6;\u43be\u0100Aa\u3aa1\u3aa4r\xf2\u03b8r\xf2\u09eba\xf0\u2713is;\u62fb\u0180dpt\u17a4\u3ab5\u3abe\u0100fl\u3aba\u17a9;\uc000\ud835\udd69im\xe5\u17b2\u0100Aa\u3ac7\u3acar\xf2\u03cer\xf2\u0a01\u0100cq\u3ad2\u17b8r;\uc000\ud835\udccd\u0100pt\u17d6\u3adcr\xe9\u17d4\u0400acefiosu\u3af0\u3afd\u3b08\u3b0c\u3b11\u3b15\u3b1b\u3b21c\u0100uy\u3af6\u3afbte\u803b\xfd\u40fd;\u444f\u0100iy\u3b02\u3b06rc;\u4177;\u444bn\u803b\xa5\u40a5r;\uc000\ud835\udd36cy;\u4457pf;\uc000\ud835\udd6acr;\uc000\ud835\udcce\u0100cm\u3b26\u3b29y;\u444el\u803b\xff\u40ff\u0500acdefhiosw\u3b42\u3b48\u3b54\u3b58\u3b64\u3b69\u3b6d\u3b74\u3b7a\u3b80cute;\u417a\u0100ay\u3b4d\u3b52ron;\u417e;\u4437ot;\u417c\u0100et\u3b5d\u3b61tr\xe6\u155fa;\u43b6r;\uc000\ud835\udd37cy;\u4436grarr;\u61ddpf;\uc000\ud835\udd6bcr;\uc000\ud835\udccf\u0100jn\u3b85\u3b87;\u600dj;\u600c"
    .split("")
    .map(function (c) { return c.charCodeAt(0); }));
//# sourceMappingURL=decode-data-html.js.map

/***/ }),

/***/ 13709:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var userAgent = __webpack_require__(82839);

var firefox = userAgent.match(/firefox\/(\d+)/i);

module.exports = !!firefox && +firefox[1];


/***/ }),

/***/ 13763:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var UA = __webpack_require__(82839);

module.exports = /MSIE|Trident/.test(UA);


/***/ }),

/***/ 13871:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(62953);
const request = __webpack_require__(49388);
const getH5ShopCoupon = async () => {
  const id = G.dp.itemId.replace('-83', '').replace('-123', '');
  await Promise.race([(__webpack_require__(30888).waitForConditionFn)(() => {
    return window.gwd_G.aliSkuResults && window.gwd_G.aliSkuResults[id];
  }), new Promise(resolve => setTimeout(resolve, 5000))]);
  if (window.gwd_G.aliSkuResults && window.gwd_G.aliSkuResults[id]) {
    return {
      shop_coupon: window.gwd_G.aliSkuResults[id].couponInfo
    };
  } else {
    return false;
  }
};
const getShopCoupon = g_config => {
  return request.get(`${G.server}/extension/Coupon?dp_id=${G.dp.itemId}&sellerId=${g_config.sellerId}&price=${G.dp.price}`);
};
const getResult = g_config => {
  return new Promise(async resolve => {
    let res = await getH5ShopCoupon();
    if (res && res.shop_coupon !== 'no-coupon') {
      resolve(res);
    } else {
      res = await getShopCoupon(g_config);
      resolve(res);
    }
  });
};
module.exports = {
  init() {
    let g_config = window.g_config;
    let hasShopCoupon = false;
    setTimeout(() => {
      if (!hasShopCoupon) (__webpack_require__(41761).setMet)('shopCouponGot', false);
    }, 3000);
    getResult(g_config).then(async res => {
      (__webpack_require__(41761).setMet)('shopCouponGot', res && res.shop_coupon);
      hasShopCoupon = true;
      if (!res || !res.shop_coupon) return;
      let coupon = res.shop_coupon;
      setTimeout(() => {
        $('#gwd-coupon-placeholder').replaceWith(`<div id="shopCouponMini"></div>`);
        // const ShopCouponMini = require('standard/module/components/MiniCoupon').default
        const ShopCouponTop = (__webpack_require__(35372)/* ["default"] */ .A);
        // new Vue({
        //   el: '#shopCouponMini',
        //   render: h => h(ShopCouponMini, {
        //     props: {
        //       coupon: coupon,
        //       tag: 6
        //     }
        //   })
        // })
        $('.gwd-topbar-left').append(`<div id="shopCouponTop"></div>`);
        new Vue({
          el: '#shopCouponTop',
          render: h => h(ShopCouponTop, {
            props: {
              coupon: coupon,
              tag: 6
            }
          })
        });
        const CommonCouponBarMini = (__webpack_require__(84593)["default"]);
        new Vue({
          el: '#shopCouponMini',
          render: h => h(CommonCouponBarMini, {
            props: {
              type: 'link',
              mainColor: '#ff6200',
              secondColor: '#ff863b',
              icon: __webpack_require__(49277),
              text: `当前商品可领店铺券，满${coupon.limit}减${coupon.discount}`,
              href: `https://tb.gwdang.com/extension/qrpage?dp_id=${G.dp.dpId}&tag=6&limit=${coupon.limit}&discount=${coupon.discount}`
            }
          })
        });
        (__webpack_require__(41761).setMet)('couponLink', {
          content: '发现' + coupon.discount + '元店铺券，速领',
          url: `https://tb.gwdang.com/extension/qrpage?dp_id=${G.dp.dpId}&tag=6&limit=${coupon.limit}&discount=${coupon.discount}`
        });
      }, 0);
    });
  }
};

/***/ }),

/***/ 13925:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var isObject = __webpack_require__(20034);

module.exports = function (argument) {
  return isObject(argument) || argument === null;
};


/***/ }),

/***/ 13931:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ QRLinkSideBarvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ QRLinkSideBar)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/QRLinkSideBar.vue?vue&type=template&id=457b2972&scoped=true
var QRLinkSideBarvue_type_template_id_457b2972_scoped_true = __webpack_require__(67174);
;// ./src/standard/module/components/QRLinkSideBar.vue?vue&type=template&id=457b2972&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/QRLinkSideBar.vue?vue&type=script&lang=js
var QRLinkSideBarvue_type_script_lang_js = __webpack_require__(59614);
;// ./src/standard/module/components/QRLinkSideBar.vue?vue&type=script&lang=js
 /* harmony default export */ const components_QRLinkSideBarvue_type_script_lang_js = (QRLinkSideBarvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/QRLinkSideBar.vue?vue&type=style&index=0&id=457b2972&prod&scoped=true&lang=less
var QRLinkSideBarvue_type_style_index_0_id_457b2972_prod_scoped_true_lang_less = __webpack_require__(97354);
;// ./src/standard/module/components/QRLinkSideBar.vue?vue&type=style&index=0&id=457b2972&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/QRLinkSideBar.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_QRLinkSideBarvue_type_script_lang_js,
  QRLinkSideBarvue_type_template_id_457b2972_scoped_true/* render */.XX,
  QRLinkSideBarvue_type_template_id_457b2972_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "457b2972",
  null
  
)

/* harmony default export */ const QRLinkSideBar = (component.exports);

/***/ }),

/***/ 14055:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


__webpack_require__(26910);
let browser = {
  'url': '',
  'utype': ''
};
let chromeType = navigator.userAgent.toLowerCase();
module.exports.getBrowser = () => {
  if ("ActiveXObject" in window) {
    //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; slcc2; .net clr 2.0.50727; .net clr 3.5.30729; .net clr 3.0.30729; .net4.0c; infopath.3; .net4.0e)
    browser.utype = "ie";
    browser.utitle = "IE";
    browser.background = "-401px -81px";
  } else if (chromeType.indexOf('firefox') > -1) {
    //mozilla/5.0 (windows nt 6.1; wow64; rv:42.0) gecko/20100101 firefox/42.0
    browser.utype = "firefox";
    browser.utitle = "火狐";
    browser.background = "-401px -44px";
  } else if (chromeType.indexOf('opera') > -1 || chromeType.indexOf('opr') > -1) {
    //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.86 safari/537.36 opr/33.0.1990.115
    browser.utype = "opera";
    browser.utitle = "Opera";
    browser.background = "-2px -120px";
  } else if (chromeType.indexOf('safari') > -1 && chromeType.indexOf('chrome') == -1) {
    //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/534.57.2 (khtml, like gecko) version/5.1.7 safari/534.57.2
    browser.utype = "safari";
    browser.utitle = "Safari";
    browser.background = "-301px -44px";
  } else if (chromeType.indexOf('chrome') > -1) {
    let check360 = checkChromeWeight();
    if (chromeType.indexOf('qqbrowser') > -1) {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.87 safari/537.36 qqbrowser/9.2.5542.400
      browser.utype = "qq";
      browser.utitle = "QQ";
      browser.background = "-104px -81px";
    } else if (chromeType.indexOf('maxthon') > -1) {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) maxthon/4.4.8.1000 chrome/30.0.1599.101 safari/537.36
      browser.utype = "maxthon";
      browser.utitle = "傲游";
      browser.background = "-401px -4px";
    } else if (chromeType.indexOf('bidubrowser') > -1) {
      //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; bidubrowser 8.1) 
      browser.utype = 'baidu';
      browser.utitle = '百度';
      browser.background = "-104px -120px";
    } else if (chromeType.indexOf('ubrowser') > -1) {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/44.0.2403.157 ubrowser/5.5.6743.207 safari/537.36
      browser.utype = 'uc';
      browser.utitle = "UC";
      browser.background = "-2px -44px";
    } else if (chromeType.indexOf('lbbrowser') > -1) {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/42.0.2311.154 safari/537.36 lbbrowser
      browser.utype = 'liebao';
      browser.utitle = "猎豹安全";
      browser.background = "-301px -4px";
    } else if (chromeType.indexOf('taobrowser') > -1) {
      //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.11 TaoBrowser/3.5 Safari/536.11 
      browser.utype = 'taobao';
      browser.utitle = "淘宝";
      browser.background = "-104px -44px";
    } else if (chromeType.indexOf('2345explorer') > -1) {
      //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36 2345Explorer/6.4.0.10356
      browser.utype = '2345';
      browser.utitle = "2345王牌";
      browser.background = "-301px -81px";
    } else if (chromeType.indexOf('2345chrome') > -1) {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/39.0.2171.99 safari/537.36 2345chrome v3.0.0.9739
      browser.utype = '2345jiasu';
      browser.utitle = "2345加速";
    } else if (chromeType.indexOf('coolnovo') > -1) {
      //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36 CoolNovo/2.0.9.20 
      browser.utype = 'fengshu';
      browser.utitle = "枫树";
      browser.background = "-2px -81px";
    } else if (chromeType.indexOf('greenbrowser') > -1) {
      //Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; InfoPath.3; .NET4.0E; GreenBrowser)
      browser.utype = 'gb';
      browser.utitle = "GB";
      browser.background = "-203px -81px";
    } else if (check360 === "Chrome") {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.80 safari/537.36
      browser.utype = 'chrome';
      browser.utitle = 'Chrome';
      browser.background = "-2px -4px";
    } else if (check360 === "360SE") {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/31.0.1650.63 safari/537.36 
      browser.utype = '360se';
      browser.utitle = '360安全';
      browser.background = "-203px -4px";
    } else if (check360 === "360EE") {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.101 safari/537.36
      browser.utype = '360se';
      browser.utitle = '360极速 ';
      browser.background = "-104px -4px";
    } else if (chromeType.indexOf('se') > -1) {
      //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/38.0.2125.122 safari/537.36 se 2.x metasr 1.0
      browser.utype = 'sogou';
      browser.utitle = "搜狗";
      browser.background = "-401px -120px";
    } else {
      browser.utype = 'chrome';
      browser.utitle = 'Chromium内核';
    }
  } else {
    browser.utype = 'chrome';
    browser.utitle = '未知浏览器';
  }
  return browser;
};
let chrome_weight = {
  "result": "Chrome",
  "details": {
    "Chrome": 5,
    "Chromium": 0,
    "_360SE": 0,
    "_360EE": 0
  },
  "sorted": ["Chrome", "360SE", "360EE", "Chromium"],
  "exec": function (results) {
    let details = {
      "Chrome": 5,
      "Chromium": 0,
      "_360SE": 0,
      "_360EE": 0
    };
    let _ua = window.navigator.userAgent;
    if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) {
      if (window.navigator.platform == "Win32") {
        if (!window.clientInformation.languages) {
          details._360SE += 8;
        }
        if (/zh/i.test(navigator.language)) {
          details._360SE += 3;
          details._360EE += 3;
        }
        if (window.clientInformation.languages) {
          let lang_len = window.clientInformation.languages.length;
          if (lang_len >= 3) {
            details.Chrome += 10;
            details.Chromium += 6;
          } else if (lang_len == 2) {
            details.Chrome += 3;
            details.Chromium += 6;
            details._360EE += 6;
          } else if (lang_len == 1) {
            details.Chrome += 4;
            details.Chromium += 4;
          }
        }
        for (let i in window.navigator.plugins) {
          if (window.navigator.plugins[i].filename == "np-mswmp.dll") {
            details._360SE += 20;
            details._360EE += 20;
          }
        }
        if (Object.keys(window.chrome.webstore).length <= 1) {
          details._360SE += 7;
        } else if (Object.keys(window.chrome.webstore).length == 2) {
          details._360SE += 4;
          details.Chromium += 3;
        }
        if (window.navigator.plugins.length >= 30) {
          details._360EE += 7;
          details._360SE += 7;
          details.Chrome += 7;
        } else if (window.navigator.plugins.length < 30 && window.navigator.plugins.length > 10) {
          details._360EE += 3;
          details._360SE += 3;
          details.Chrome += 3;
        } else if (window.navigator.plugins.length <= 10) {
          details.Chromium += 6;
        }
      } else {
        details._360SE -= 50;
        details._360EE -= 50;
        if (/Linux/i.test(window.navigator.userAgent)) {
          details.Chromium += 5;
        }
      }
      let found = 0;
      let respdf;
      for (let i in window.navigator.plugins) {
        if (!!(respdf = /^(.+) PDF Viewer$/.exec(window.navigator.plugins[i].name))) {
          if (respdf[1] == "Chrome") {
            details.Chrome += 6;
            details._360SE += 6;
            found = 1;
            break;
          }
          if (respdf[1] == "Chromium") {
            details.Chromium += 10;
            details._360EE += 6;
            found = 1;
            break;
          }
        }
      }
      if (!found) {
        details.Chromium += 9;
      }
    }
    let chrome_result = new Object();
    chrome_result['Chrome'] = details.Chrome;
    chrome_result['Chromium'] = details.Chromium;
    chrome_result['360SE'] = details._360SE;
    chrome_result['360EE'] = details._360EE;
    let sortable = [];
    for (let value in chrome_result) sortable.push([value, chrome_result[value]]);
    sortable.sort(function (a, b) {
      return b[1] - a[1];
    });
    this.sorted = sortable;
    this.details = details;
    this.result = sortable[0][0];
    if (results == "result") {
      return sortable[0][0];
    } else if (results == "details") {
      return chrome_result;
    } else if (results == "sorted") {
      return sortable;
    }
  }
};
let checkChromeWeight = function () {
  let _ua = window.navigator.userAgent;
  try {
    chrome_weight.exec();
    if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) {
      return chrome_weight.result;
    } else {}
  } catch (e) {
    return;
  }
};
module.exports.getChromeVersion = () => {
  let raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
  return raw ? parseInt(raw[2], 10) : false;
};

/***/ }),

/***/ 14122:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-row gwd-align"
  }, [_c("a", {
    staticClass: "gwd-row gwd-align",
    attrs: {
      href: _vm.addLink(`https://tb.gwdang.com/extension/qrpage?dp_id=${_vm.dpId}&tag=${_vm.tag}&limit=${_vm.coupon.limit}&discount=${_vm.coupon.discount}`),
      title: "点击领取",
      target: "_blank"
    }
  }, [_c("span", {
    staticClass: "gwd-content",
    staticStyle: {
      flex: "1"
    }
  }, [_vm._v("\n      当前商品可领" + _vm._s(_vm.couponTypeText) + " "), _vm.coupon ? [_vm._v("满" + _vm._s(_vm.coupon.limit) + "减" + _vm._s(_vm.coupon.discount))] : _vm._e()], 2), _vm._v(" "), _c("span", {
    staticClass: "gwd-take"
  }, [_vm._v("点击领取")])]), _vm._v(" "), _c("img", {
    attrs: {
      src: __webpack_require__(84607),
      alt: ""
    }
  })]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 14259:
/***/ (function() {

/**
 * Recognize (:<name>regexp) format named captures.
 * and replace exec method of returned RegExp object.
 *
 * This function does not used with normal captures.
 */
function named (regexp) {
	var names = [];
	var ret = new RegExp(regexp.source.replace(/\(:<(\w+)>/g, function (_, name) {
			names.push(name);
			return '(';
		}),
		(regexp.global     ? 'g' : '') +
		(regexp.ignoreCase ? 'i' : '') +
		(regexp.multiline  ? 'm' : '')
	);

	var captures = function (matched) {
		if (!matched) return matched;
		var captures = {};
		for (var i = 0, len = names.length; i < len; i++) {
			var name = names[i];
			if (!captures[name]) captures[name] = [];
			captures[name].push(matched[i + 1]);
		}
		matched.captures = captures;
		matched.capture = function (name) {
			return captures[name][ captures[name].length - 1 ];
		};
		return matched;
	};

	// override RegExp#exec
	ret.exec = function (string) {
		return captures(RegExp.prototype.exec.call(this, string));
	};

	// like String#replace
	ret.replace = function (string, replace) {
		if (typeof replace == 'function') {
			return string.replace(this, function () {
				return replace(captures(Array.prototype.slice.call(arguments)));
			});
		} else {
			return string.replace(this, replace);
		}
	};

	return ret;
}

this.K = named;



/***/ }),

/***/ 14276:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


Object.defineProperty(exports, "__esModule", ({
  value: true
}));
Object.defineProperty(exports, "JSONRepairError", ({
  enumerable: true,
  get: function () {
    return _JSONRepairError.JSONRepairError;
  }
}));
Object.defineProperty(exports, "jsonrepair", ({
  enumerable: true,
  get: function () {
    return _jsonrepair.jsonrepair;
  }
}));
var _jsonrepair = __webpack_require__(66744);
var _JSONRepairError = __webpack_require__(4525);
//# sourceMappingURL=index.js.map

/***/ }),

/***/ 14396:
/***/ ((module) => {

"use strict";


module.exports = (time, type) => {
  // 1: xxxx-xx-xx 2.xx-xx 3.xx.xx 4. xxxx.xx.xx
  let dateObj = new Date(time);
  let y = dateObj.getFullYear();
  let m = dateObj.getMonth() + 1;
  let d = dateObj.getDate();
  let h = dateObj.getHours();
  let mi = dateObj.getMinutes();
  let ss = dateObj.getSeconds();
  if (m < 10) m = '0' + m;
  if (d < 10) d = '0' + d;
  if (ss < 10) ss = '0' + ss;
  if (mi < 10) mi = '0' + mi;
  if (h < 10) h = '0' + h;
  let str = ``;
  switch (type) {
    case "1":
      str = `${y}-${m}-${d}`;
      break;
    case "2":
      str = `${m}-${d}`;
      break;
    case "3":
      str = `${m}.${d}`;
      break;
    case "4":
      str = `${y}.${m}.${d}`;
      break;
    case "5":
      str = `${y}/${m}/${d}`;
      break;
    case "6":
      str = `${y}/${m}/${d}/${h}:${mi}:${ss}`;
      break;
    case "7":
      str = `${y}-${m}-${d} ${h}:${mi}:${ss}`;
      break;
    default:
      str = `(${y}.${m}.${d})`;
  }
  return str;
};
const offset = 0 * 3600000;
module.exports.isSameDay = (a, b) => {
  let aTime = new Date(a + offset);
  let bTime = new Date(b + offset);
  return aTime.toLocaleDateString() === bTime.toLocaleDateString();
};
module.exports.localeDateString = x => {
  return new Date(x + offset).toLocaleDateString();
};

/***/ }),

/***/ 14486:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   A: () => (/* binding */ normalizeComponent)
/* harmony export */ });
/* globals __VUE_SSR_CONTEXT__ */

// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.

function normalizeComponent(
  scriptExports,
  render,
  staticRenderFns,
  functionalTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier /* server only */,
  shadowMode /* vue-cli only */
) {
  // Vue.extend constructor export interop
  var options =
    typeof scriptExports === 'function' ? scriptExports.options : scriptExports

  // render functions
  if (render) {
    options.render = render
    options.staticRenderFns = staticRenderFns
    options._compiled = true
  }

  // functional template
  if (functionalTemplate) {
    options.functional = true
  }

  // scopedId
  if (scopeId) {
    options._scopeId = 'data-v-' + scopeId
  }

  var hook
  if (moduleIdentifier) {
    // server build
    hook = function (context) {
      // 2.3 injection
      context =
        context || // cached call
        (this.$vnode && this.$vnode.ssrContext) || // stateful
        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
      // 2.2 with runInNewContext: true
      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
        context = __VUE_SSR_CONTEXT__
      }
      // inject component styles
      if (injectStyles) {
        injectStyles.call(this, context)
      }
      // register component module identifier for async chunk inferrence
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier)
      }
    }
    // used by ssr in case component is cached and beforeCreate
    // never gets called
    options._ssrRegister = hook
  } else if (injectStyles) {
    hook = shadowMode
      ? function () {
          injectStyles.call(
            this,
            (options.functional ? this.parent : this).$root.$options.shadowRoot
          )
        }
      : injectStyles
  }

  if (hook) {
    if (options.functional) {
      // for template-only hot-reload because in that case the render fn doesn't
      // go through the normalizer
      options._injectStyles = hook
      // register for functional component in vue file
      var originalRender = options.render
      options.render = function renderWithStyleInjection(h, context) {
        hook.call(context)
        return originalRender(h, context)
      }
    } else {
      // inject component registration as beforeCreate hook
      var existing = options.beforeCreate
      options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
    }
  }

  return {
    exports: scriptExports,
    options: options
  }
}


/***/ }),

/***/ 14535:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


const TbScrollLink = (__webpack_require__(51390)/* ["default"] */ .A);
module.exports = {
  reset() {
    $('#gwd-tb-mini-coupon').remove();
  },
  add(text, icon, link, mainColor, secondColor, showStampBg, rebate) {
    // console.log('tbScrollLink add', text, icon, link, mainColor, secondColor, showStampBg, rebate)
    if (!G.aliSite) {
      return;
    }
    if ($('#gwd-tb-mini-coupon').length) {
      return;
    }
    // console.log('tbScrollLink appendElement', $('.gwd-minibar-bg').parent())
    const div = document.createElement('div');
    if ($('.sku-scroll-area').length) {
      $('.sku-scroll-area').before(div);
    } else {
      $('.gwd-minibar-bg').after(div);
    }
    // require('common/extConsole').log('tbScrollLink init', text)
    new Vue({
      el: div,
      render: h => h(TbScrollLink, {
        props: {
          text: text,
          icon,
          link: link,
          mainColor,
          secondColor,
          showStampBg,
          rebate
        }
      })
    });
    (__webpack_require__(82110).recoverMiniBar)();
  }
};

/***/ }),

/***/ 14823:
/***/ ((module) => {

"use strict";


// Note: we can't get significant speed boost here.
// So write code to minimize size - no pregenerated tables
// and array tools dependencies.

// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.

// Use ordinary array, since untyped makes no boost here
function makeTable() {
  var c, table = [];

  for (var n = 0; n < 256; n++) {
    c = n;
    for (var k = 0; k < 8; k++) {
      c = ((c & 1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));
    }
    table[n] = c;
  }

  return table;
}

// Create table on load. Just 255 signed longs. Not a problem.
var crcTable = makeTable();


function crc32(crc, buf, len, pos) {
  var t = crcTable,
      end = pos + len;

  crc ^= -1;

  for (var i = pos; i < end; i++) {
    crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];
  }

  return (crc ^ (-1)); // >>> 0;
}


module.exports = crc32;


/***/ }),

/***/ 15554:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const request = __webpack_require__(49388);
module.exports = {
  async init() {
    await (__webpack_require__(30888).waitForConditionFn)(() => {
      let t = $('[data-component=PurchaseButton] button')[0].innerText;
      return t === '立即购买' || t === '预购';
    });
    const EpicTrend = (__webpack_require__(12774)/* ["default"] */ .A);
    setTimeout(() => {
      let list = $('[data-component=ProductCard]');
      console.log(list);
      let r = list.toArray().map(item => {
        let link = $(item).find('a').attr('href');
        if (!link) {
          link = location.href;
        } else {
          link = 'https://' + location.hostname + link;
        }
        let el = $(item).find('[data-component=ProductCardBottomRowLayout]');
        return {
          mountPoint: el,
          link: link
        };
      });
      console.log(r);
      r.forEach(item => {
        request.get(`${G.server}/extension/price_towards?url=${item.link}&ver=1`, true).then(res => {
          let e = document.createElement('div');
          if (!res.store.length || !res.store[0].all_line.length) {
            return;
          }
          e.classList.add('gwd-tag');
          $(item.mountPoint).after(e);
          new Vue({
            el: e,
            render: h => h(EpicTrend, {
              props: {
                data: res
              }
            })
          });
          // debugger
          $(e).on('DOMNodeRemoved', () => {
            debugger;
          });
        });
      });
      let mountPoint = $('[data-component=PurchaseButton]');
      if (!mountPoint.length) {
        return;
      }
      if ($(mountPoint[0]).parents('[data-component=ProductCard]').length) {
        return;
      }
      // let priceText = $('[data-component=Price]')[0].innerText.replace('US$', '') * 100
      request.get(`${G.server}/extension/price_towards?url=${location.href}&ver=1`, true).then(res => {
        let e = document.createElement('div');
        if (!res.store.length || !res.store[0].all_line.length) {
          return;
        }
        $(mountPoint[0]).after(e);
        new Vue({
          el: e,
          render: h => h(EpicTrend, {
            props: {
              data: res,
              type: 'top'
            }
          })
        });
      });
    }, 2000);
  }
};

/***/ }),

/***/ 15585:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABGBJREFUWEftmM1yGkcQx7sHHBsnegD5AXgAo5scszJfssvijnxHPke+K7qH3LW5i7ugSsAiseuybyEPwAPgB1h/CO/utGsGVho2s7DIUsWVEkfRw/zn392/6RHCD/7BH1wf3An83gzdOfifObhVLueIsx1Acr3MffP9yYkbFZN/tl3DFD3ygDffW9b4OmJXTvGvlcp6KqA6IO5cbYhjD4LXoYjNanXt3qfJATAwLmMI2x4G5qpCVxKYLz6vI/AaIKyJjYngAyKsz0S4QOgIR4HgpRLj4ixexnFo2mfdRlI3EwvMPyvvYAoPZsJcYOxPp3faMorbBgHtK0Ll3kTgphDNc6vTzJfLO8CxHsYQYMOxOs0kIhMLfFqq7DOAGgGO/cxPr9SaE2lnRBvA2UuxKWN8+PXBg2a0Lo1ipQUI6xyg+dZK5mJigbIpCI+EAC9zf0vXFIsc2dysrt17OBmIGPRpbzDoDW/UwScvXmTTXnAsBQKvrlrssrk4tFZdn9hBtQZtq7uR5PTRGKNYGYjmufEanKIFTFE/QNi2+53fo5sLtDz88mWNc/7L2dnZSHeAfHH7CJFyAPNYWnTYWAfFhumPFwamMBtiQ3Smj/yVml4Z99mrqfgRAoiw7fRPTXXz2UGPpwjCMRD8Q5wP/RQN40omVmDYceEGQlxA/t47xZ05ZzU2EODIsTq76leFQiHrY7oxjyUcexEyhGu0AtWOJYIRY2TrsVE+CG8URDLTRG2RYp5KGURYn/KQTKff+7eTHHaJIIcIWRHnc39XPfxCgQK+gPQHALi21d3S1YiKDQbYEEBW44xSZR8Aaot+Q8RfNk5Ah855T3a5+tE6mC+W64hYF+45/e5cisLFy7iYFCthKcV1tl5gqVRDYPtA8MHud5Wh4Opsc1zUgDspN/PF7WNEyupKQUJdi4Ore3dxijOTE8k1TZ0ZxWl9iqvRsTrVOJSEKQbCN3a/YydKsXp6IhwCgu1D4ERRoNQZEDEzTV9txtjHCbCauLelA0TmINIkIZoAKDflYvz1p3VQNEA6MzmOoiDFvTcqhPVxVx7oMPOkUMimMX0UjmOy0xe4HMtBOaF4tIEMHhPgxkys60EE1GIIyFz8RoBGOPcJZjJGzUFPg5cAJKhFDCK0KaDRtUAdvQFYAKYQKVLu9Dt7upoqlUqPxN+tmPFerUtfmcCvddVFF+XDzl7AxkUbSeaVKn/LlCI7FMPusvjYLtYtTMq1uE3V9XG3hm5t4nFrGZiXuXHrA2s48uvgHT5BCSgHiC4SjKIvOPnS+zwRDXI7I79Sg4JaYwrwL+f8tJUvP68jcTkYRD4uAZricSSHXYZ1OU/eVg3OijwcAKZaCNzL56WY7wCmAwPRrvKCGyGQnFhmn6ad8MG0UpOEv65/uENT/e+CZGiADXHHhuuIaOgjHa76lkncJNH8zZrGIGQjHTLkLfPzhYGc5ZDx1qCX7BUX3efaApd17U19fyfwe528c/B/7+A3GVaYR0UnZPgAAAAASUVORK5CYII=";

/***/ }),

/***/ 16033:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, pos = $data.pos;
    $$out += '<div id="size_detail" class="ht_size_detail gwd_haitao" style="top: ';
    $$out += $escape(pos.posy);
    $$out += 'px;left: ';
    $$out += $escape(pos.posx);
    $$out += 'px;">\n    <span class="closebar closebg" title="关闭"></span>\n    \n    <div class="size_head">\n        <div class="clothes_nav">\n          <ul>\n            <li class="select">男装</li>\n            <li>女装</li>\n            <li>童装</li>\n            <li>男鞋</li>\n            <li>女鞋</li>\n            <li>童鞋</li>\n          </ul>\n        </div>\n        <div class="unit_desc unit_cm">单位\uFF1A厘米(CM)</div>\n        <div class="unit_desc unit_mm">单位\uFF1A毫米(MM)</div>\n    </div>\n    <div class="size_content">\n      <div class="detail_left">\n        <span class="shangyi size_hover">上装</span>\n        <span class="xiazhuang">下装</span>\n        <span class="tongzhuang tongzhuang0">0 ~ 4岁</span>\n        <span class="tongzhuang tongzhuang4">4 ~ 12岁</span>\n        <span class="shoes">鞋子</span>\n        <span class="tongxie tongxie0">0 ~ 4岁</span>\n        <span class="tongxie tongxie4">4 ~ 12岁</span>\n        <span class="cloth_icon ht_shangyi manshangzhuang"></span>\n      </div>\n      <div class="detail_right">\n        <div class="content_center">\n          <div class="size_s">\n          </div>\n          <div id="size_item">\n            <a class="size_item_img"></a>\n          </div>\n          \n        </div>\n        <div class="size_desc">\n          <span class="red"></span>\n          <span >此尺码为一般尺码\uFF0C不同品牌可能会存在相应不同</span>\n        </div>\n      </div>\n    </div>\n    <div class="size_foot">\n        <div class="size_con">在线尺寸转换工具</div>\n        <div class="size_op">\n          <input id="first_size" type="text">\n          <input class="size_xiala first_xiala" value="厘米" readonly>\n          <div class="size_xialabox" data-size="first_xiala">\n            <a href="javascript:void(0);"></a>\n            <a href="javascript:void(0);">米</a>\n            <a href="javascript:void(0);">厘米</a>\n            <a href="javascript:void(0);">毫米</a>\n            <a href="javascript:void(0);">英尺</a>\n            <a href="javascript:void(0);">英寸</a>\n            <a href="javascript:void(0);">码</a>\n            <a href="javascript:void(0);">尺</a>\n            <a href="javascript:void(0);">寸</a>\n            <a href="javascript:void(0);">分</a>\n            <a href="javascript:void(0);">厘</a>\n          </div>\n          <span class="conversion">转换为</span>\n          <input id="second_size">\n          <input class="size_xiala second_xiala" value="英寸" readonly>\n          <div class="size_xialabox" data-size="second_xiala">\n            <a href="javascript:void(0);"></a>\n            <a href="javascript:void(0);">米</a>\n            <a href="javascript:void(0);">厘米</a>\n            <a href="javascript:void(0);">毫米</a>\n            <a href="javascript:void(0);">英尺</a>\n            <a href="javascript:void(0);">英寸</a>\n            <a href="javascript:void(0);">码</a>\n            <a href="javascript:void(0);">尺</a>\n            <a href="javascript:void(0);">寸</a>\n            <a href="javascript:void(0);">分</a>\n            <a href="javascript:void(0);">厘</a>\n          </div>\n        </div>\n    </div>\n      </div>';
    return $$out;
};

/***/ }),

/***/ 16094:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(52267);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("18ec9027", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 16112:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ MemberCouponTopvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ MemberCouponTop)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/MemberCouponTop.vue?vue&type=template&id=0a149135&scoped=true
var MemberCouponTopvue_type_template_id_0a149135_scoped_true = __webpack_require__(87853);
;// ./src/common/components/MemberCouponTop.vue?vue&type=template&id=0a149135&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/MemberCouponTop.vue?vue&type=script&lang=js
var MemberCouponTopvue_type_script_lang_js = __webpack_require__(54455);
;// ./src/common/components/MemberCouponTop.vue?vue&type=script&lang=js
 /* harmony default export */ const components_MemberCouponTopvue_type_script_lang_js = (MemberCouponTopvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/MemberCouponTop.vue?vue&type=style&index=0&id=0a149135&prod&scoped=true&lang=less
var MemberCouponTopvue_type_style_index_0_id_0a149135_prod_scoped_true_lang_less = __webpack_require__(49279);
;// ./src/common/components/MemberCouponTop.vue?vue&type=style&index=0&id=0a149135&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/MemberCouponTop.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_MemberCouponTopvue_type_script_lang_js,
  MemberCouponTopvue_type_template_id_0a149135_scoped_true/* render */.XX,
  MemberCouponTopvue_type_template_id_0a149135_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "0a149135",
  null
  
)

/* harmony default export */ const MemberCouponTop = (component.exports);

/***/ }),

/***/ 16180:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(3362);
module.exports = {
  async init() {
    (__webpack_require__(7129).log)('ad init');
    const config = await (__webpack_require__(41761).met)('GwdConfig');
    (__webpack_require__(7129).log)('ad config', config);
    if (config.newestBuild && G.from_device === 'chrome') {
      const newestBuild = new Date(config.newestBuild).getTime();
      const currentBuild = gwd_G.version;
      const ua = navigator.userAgent.toLowerCase();
      if (newestBuild > currentBuild && !ua.includes('edg')) {
        const add = function () {
          if (document.getElementById('gwd-upgrade-link')) {
            return;
          }
          let right = document.querySelectorAll('.gwd-topbar-right')[0];
          if (!right) {
            return;
          }
          let a = document.createElement('A');
          a.id = 'gwd-upgrade-link';
          let img = document.createElement('IMG');
          img.src = 'https://cdn.gwdang.com/images/extensions/update@2x.png';
          img.style.height = '15px';
          img.style.verticalAlign = 'middle';
          a.target = '_blank';
          a.style.float = 'left';
          a.style.lineHeight = '36px';
          a.style.marginRight = '15px';
          a.appendChild(img);
          a.href = 'https://www.gwdang.com/v2/app/questions?page=chrome&fromUpgrade=1';
          if (navigator.userAgent.toLowerCase().indexOf('qqbrowser') > -1) {
            a.href = 'https://www.gwdang.com/v2/app/questions?page=qqbrowser&fromUpgrade=1';
          }
          if (navigator.userAgent.toLowerCase().indexOf('yabrowser') > -1) {
            a.href = 'https://www.gwdang.com/app/extension?page=question&guide=yandex';
          }
          // if (navigator.userAgent.toLowerCase.indexOf('opr') > -1) {
          //   a.href = 'https://www.gwdang.com/app/extension?page=question&guide=qq'
          // }
          right.prepend(a);
        };
        if (location.href.includes('.tmall.com') || location.href.includes('.taobao.com')) {
          setInterval(function () {
            if (!document.getElementById('gwd-upgrade-link')) {
              add();
            }
          }, 2000);
        } else {
          add();
        }
      }
    }
    if (G.from_device.includes('bijiago') && config.adsBijiago) {
      config.ads = config.adsBijiago;
    }
    if (G.from_device.includes('biyibi') && config.adsBiyibi) {
      config.ads = config.adsBiyibi;
    }
    if (config.ads) {
      config.ads.forEach(async item => {
        if (location.host.includes(item.site)) {
          if (item.startTime && new Date(item.startTime) > new Date()) return;
          if (item.endTime && new Date(item.endTime) < new Date()) return;
          await (__webpack_require__(30888).waitForConditionFn)(() => $(item.selector).length);
          const el = $(item.selector);
          switch (item.position) {
            case 'top':
              el.prepend(item.html);
              break;
            case 'bottom':
              el.append(item.html);
              break;
            case 'before':
              el.before(item.html);
              break;
            case 'after':
              el.after(item.html);
              break;
            default:
              el.append(item.html);
          }
        }
      });
    }
  }
};

/***/ }),

/***/ 16193:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var ENVIRONMENT = __webpack_require__(84215);

module.exports = ENVIRONMENT === 'NODE';


/***/ }),

/***/ 16327:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


const template = __webpack_require__(26133);
const log = __webpack_require__(35743);
const renderChart = data => {
  renderBtn(data);
  renderDetail();
  let id = 'trend_box';
  $('.min-max-price-lable .max-lab').text(`最高:￥${data.store[0].highest}`);
  $('.min-max-price-lable .min-lab').text(`最低:￥${data.store[0].lowest}`);
  __webpack_require__(64133)({
    el: id,
    msg: data.store[0],
    waterMark: true
  });
};
let priceTle = {
  'pri-t1': "价格上涨",
  'pri-t0': "价格平稳",
  'pri-t-1': "价格下降",
  'pri-t-2': "历史最低"
};
const renderBtn = data => {
  let dom = $('.game_purchase_action:contains("开始游戏")');
  if (dom.length === 0) dom = $('.game_purchase_action:contains("在购物车中")');
  if (dom.length === 0) dom = $('.game_purchase_action:contains("添加至购物车")');
  let status = data.price_status;
  let status_str = 'pri-t' + status;
  let status_tle = priceTle[status_str];
  let html = __webpack_require__(71196);
  let bixbox = dom.eq(0);
  let bigboxwidth = bixbox.width();
  let children = bixbox.children();
  let w = 0;
  for (let i = 0; i < children.length; i++) {
    w += children.eq(i).outerWidth();
  }
  let btnleft = bigboxwidth - w - 5 - 108;
  let imgurls = `${G.s_server}/images/extensions/newbar`;
  if ($('#steam_tremd_btn').length) {
    return;
  }
  dom.eq(0).prepend(template.compile(html)({
    imgurl: imgurls,
    btnleft: btnleft,
    status_tle: status_tle,
    status_str: status_str,
    ext_class: G.from_device.indexOf('bijiago') > -1 ? 'bjgou' : ''
  }));
};
const addEvent = () => {
  let time1;
  $('#steam_tremd_btn').on('mouseenter', function () {
    $('#trenm_trend_detail').show();
    $('#steam_tremd_btn').addClass('_mshover');
    log('steam-trend-track');
  });
  $('#steam_tremd_btn').on('mouseleave', function () {
    time1 = setTimeout(function () {
      $('#trenm_trend_detail').hide();
      $('#steam_tremd_btn').removeClass('_mshover');
    }, 300);
  });
  $('#trenm_trend_detail').on('mouseenter', function () {
    clearTimeout(time1);
  });
  $('#trenm_trend_detail').on('mouseleave', function () {
    $('#trenm_trend_detail').hide();
    $('#steam_tremd_btn').removeClass('_mshover');
  });
};
const renderDetail = () => {
  let html = __webpack_require__(6762);
  let dom = $('#steam_tremd_btn').parents('.game_area_purchase_game:contains("开始游戏")');
  if (dom.length === 0) dom = $('#steam_tremd_btn').parents('.game_area_purchase_game:contains("在购物车中")');
  if (dom.length === 0) dom = $('#steam_tremd_btn').parents('.game_area_purchase_game:contains("添加至购物车")');
  if (dom.length === 0) dom = $('#steam_tremd_btn').parents('.game_area_purchase_game_wrapper:contains("添加至购物车")');
  dom.eq(0).append(template.compile(html)());
  dom.eq(0).addClass('steam_box_tt');
  __webpack_require__(35743)('steam-ad-show');
  $('#steam_ad').click(e => {
    __webpack_require__(35743)('steam-ad-click');
  });
  addEvent();
};
module.exports.init = data => {
  if (!data || data instanceof Array || data.store[0].all_line.length === 0) return;
  renderChart(data);
};

/***/ }),

/***/ 16473:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-circle-progress"
  }, [_c("svg", {
    attrs: {
      width: _vm.size,
      height: _vm.size,
      viewBox: "0 0 100 100"
    }
  }, [_c("defs", [_c("linearGradient", {
    attrs: {
      id: _vm.progressGradientId,
      x1: "0%",
      y1: "0%",
      x2: "0%",
      y2: "100%"
    }
  }, [_c("stop", {
    attrs: {
      offset: "0%",
      "stop-color": "#499EF8"
    }
  }), _vm._v(" "), _c("stop", {
    attrs: {
      offset: "100%",
      "stop-color": "#3133F5"
    }
  })], 1)], 1), _vm._v(" "), _c("circle", {
    attrs: {
      cx: "50",
      cy: "50",
      r: _vm.radius,
      fill: "none",
      stroke: _vm.backgroundColor,
      "stroke-width": _vm.strokeWidth
    }
  }), _vm._v(" "), _vm._l(_vm.progressSegments, function (segment, index) {
    return _c("path", {
      key: index,
      staticClass: "gwd-progress-segment",
      attrs: {
        d: segment.path,
        fill: "none",
        stroke: segment.color,
        "stroke-width": _vm.strokeWidth,
        "stroke-linecap": "round"
      }
    });
  }), _vm._v(" "), _c("text", {
    staticClass: "gwd-percentage-text",
    style: {
      fontSize: "24px"
    },
    attrs: {
      x: "50",
      y: "53",
      "text-anchor": "middle",
      "dominant-baseline": "middle",
      fill: `url(#${_vm.progressGradientId})`
    }
  }, [_vm._v("\n      " + _vm._s(Math.round(_vm.percentage)) + "%\n    ")])], 2)]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 16499:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var $ = __webpack_require__(46518);
var call = __webpack_require__(69565);
var aCallable = __webpack_require__(79306);
var newPromiseCapabilityModule = __webpack_require__(36043);
var perform = __webpack_require__(1103);
var iterate = __webpack_require__(72652);
var PROMISE_STATICS_INCORRECT_ITERATION = __webpack_require__(90537);

// `Promise.all` method
// https://tc39.es/ecma262/#sec-promise.all
$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
  all: function all(iterable) {
    var C = this;
    var capability = newPromiseCapabilityModule.f(C);
    var resolve = capability.resolve;
    var reject = capability.reject;
    var result = perform(function () {
      var $promiseResolve = aCallable(C.resolve);
      var values = [];
      var counter = 0;
      var remaining = 1;
      iterate(iterable, function (promise) {
        var index = counter++;
        var alreadyCalled = false;
        remaining++;
        call($promiseResolve, C, promise).then(function (value) {
          if (alreadyCalled) return;
          alreadyCalled = true;
          values[index] = value;
          --remaining || resolve(values);
        }, reject);
      });
      --remaining || resolve(values);
    });
    if (result.error) reject(result.value);
    return capability.promise;
  }
});


/***/ }),

/***/ 16798:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
    return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (g && (g = 0, op[0] && (_ = 0)), _) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var _this = this;
var cnzz = __webpack_require__(5300);
var uid = '';
function retryUntilSuccess(fn_1) {
    return __awaiter(this, arguments, void 0, function (fn, maxRetries, interval) {
        var i, products;
        if (maxRetries === void 0) { maxRetries = 20; }
        if (interval === void 0) { interval = 500; }
        return __generator(this, function (_a) {
            switch (_a.label) {
                case 0:
                    i = 0;
                    _a.label = 1;
                case 1:
                    if (!(i < maxRetries)) return [3 /*break*/, 4];
                    products = fn();
                    if (products.length > 0) {
                        return [2 /*return*/, products];
                    }
                    return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, interval); })];
                case 2:
                    _a.sent();
                    _a.label = 3;
                case 3:
                    i++;
                    return [3 /*break*/, 1];
                case 4: return [2 /*return*/, []];
            }
        });
    });
}
function getSearchTbProducts() {
    return $('.search-content-col').toArray().map(function (item) {
        var dpId = $(item).find('a').attr('data-spm-act-id') + '-83';
        return {
            dpId: dpId,
            title: $(item).find('div[class^=title--]').text().trim(),
            price: $(item).find('div[class^=innerPriceWrapper--]').text().trim(),
            shopName: $(item).find('span[class^=shopNameText--]').text().trim(),
            sales: $(item).find('span[class^=realSales--]').text().trim(),
        };
    });
}
function getSearchJdProducts() {
    return $('.plugin_goodsCardWrapper').toArray().map(function (item) {
        var dpId = $(item).attr('data-sku') + '-3';
        return {
            dpId: dpId,
            title: $(item).find('[class^=_goods_title_container]').text().trim(),
            price: $(item).find('[class^=_price_]').text().trim(),
            shopName: $(item).find('._name_d19t5_35').text().trim(),
            sales: $(item).find('._goods_volume_container_1xkku_1').text().trim(),
        };
    });
}
function getTbSearchKeyword() {
    var urlParams = new URLSearchParams(window.location.search);
    return urlParams.get('q') || '';
}
function getJdSearchKeyword() {
    var urlParams = new URLSearchParams(window.location.search);
    return urlParams.get('keyword') || '';
}
var bgClient = __webpack_require__(40076);
function saveSearchData(keyword, products) {
    return __awaiter(this, void 0, void 0, function () {
        var searchData;
        return __generator(this, function (_a) {
            switch (_a.label) {
                case 0: return [4 /*yield*/, bgClient.get('/getStorage', { key: 'searchData' })];
                case 1:
                    searchData = _a.sent();
                    if (!searchData || !Array.isArray(searchData)) {
                        searchData = [];
                    }
                    if (searchData.length >= 20) {
                        searchData.shift();
                    }
                    searchData = searchData.filter(function (item) { item.keyword !== keyword; });
                    searchData.push({
                        keyword: G.site + '-' + keyword,
                        products: products,
                        timestamp: Date.now(),
                    });
                    uploadSearchResult(G.site + '-' + keyword, products);
                    return [4 /*yield*/, bgClient.get('/setStorage', {
                            searchData: searchData,
                        })];
                case 2:
                    _a.sent();
                    return [2 /*return*/];
            }
        });
    });
}
function uploadSearchResult(keyword, products) {
    var dpIdList = products.map(function (p) { return p.dpId; }).join(',');
    (__webpack_require__(5300).log)('searchResult', keyword, uid, dpIdList);
}
function main() {
    return __awaiter(this, void 0, void 0, function () {
        var clientID, products, keyword, products, keyword, refUrl, keyword_1, urlParams, urlParams, data, matched, product, index;
        return __generator(this, function (_a) {
            switch (_a.label) {
                case 0: return [4 /*yield*/, bgClient.get('/getCookie', {
                        url: 'https://browser.gwdang.com',
                        name: 'gwdang_permanent_id'
                    })];
                case 1:
                    clientID = _a.sent();
                    if (!clientID) {
                        return [2 /*return*/];
                    }
                    uid = clientID.value;
                    if (!location.hostname.startsWith('search.jd.com')) return [3 /*break*/, 4];
                    return [4 /*yield*/, retryUntilSuccess(getSearchJdProducts)];
                case 2:
                    products = _a.sent();
                    keyword = getJdSearchKeyword();
                    return [4 /*yield*/, saveSearchData(keyword, products)];
                case 3:
                    _a.sent();
                    _a.label = 4;
                case 4:
                    if (!location.hostname.startsWith('s.taobao.com')) return [3 /*break*/, 7];
                    return [4 /*yield*/, retryUntilSuccess(getSearchTbProducts)];
                case 5:
                    products = _a.sent();
                    debugger;
                    keyword = getTbSearchKeyword();
                    return [4 /*yield*/, saveSearchData(keyword, products)];
                case 6:
                    _a.sent();
                    _a.label = 7;
                case 7: return [4 /*yield*/, (__webpack_require__(41761).met)('GwdDpIdGot')];
                case 8:
                    _a.sent();
                    if (!(G.dp && G.dp.dpId)) return [3 /*break*/, 10];
                    if (!(document.referrer.startsWith('https://search.jd.com') || document.referrer.startsWith('https://s.taobao.com'))) return [3 /*break*/, 10];
                    refUrl = new URL(document.referrer);
                    keyword_1 = '';
                    if (refUrl.hostname === 'search.jd.com') {
                        urlParams = new URLSearchParams(refUrl.search);
                        keyword_1 = urlParams.get('keyword') || '';
                    }
                    if (refUrl.hostname === 's.taobao.com') {
                        urlParams = new URLSearchParams(refUrl.search);
                        keyword_1 = urlParams.get('q') || '';
                    }
                    keyword_1 = G.site + '-' + keyword_1;
                    return [4 /*yield*/, bgClient.get('/getStorage', { key: 'searchData' })];
                case 9:
                    data = _a.sent();
                    if (data && Array.isArray(data)) {
                        matched = data.filter(function (item) {
                            return item.keyword === keyword_1 && item.products.find(function (p) { return p.dpId === G.dp.dpId; });
                        });
                        if (matched.length > 0) {
                            product = matched[matched.length - 1].products.find(function (p) { return p.dpId === G.dp.dpId; });
                            index = matched[matched.length - 1].products.indexOf(product);
                            // console.log('当前商品在搜索结果中的位置：', index + 1)
                            (__webpack_require__(5300).log)('searchResultPosition', keyword_1, uid, G.dp.dpId, (index + 1).toString());
                        }
                        else {
                            // console.log('当前商品未出现在搜索结果中', keyword, data)
                        }
                    }
                    _a.label = 10;
                case 10: return [2 /*return*/];
            }
        });
    });
}
module.exports.init = function () { return __awaiter(_this, void 0, void 0, function () {
    return __generator(this, function (_a) {
        if (!(G.aliSite || G.site === '360buy')) {
            return [2 /*return*/];
        }
        setTimeout(function () {
            main();
        }, 1000);
        return [2 /*return*/];
    });
}); };


/***/ }),

/***/ 16823:
/***/ ((module) => {

"use strict";

var $String = String;

module.exports = function (argument) {
  try {
    return $String(argument);
  } catch (error) {
    return 'Object';
  }
};


/***/ }),

/***/ 16927:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['promoType', 'priceType', 'price', 'date', 'pagePrice', 'promo', 'coupon']
};

/***/ }),

/***/ 17162:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _vue2Datepicker = _interopRequireDefault(__webpack_require__(64042));
__webpack_require__(6679);
__webpack_require__(65791);
var _default = exports.A = {
  props: ['value'],
  components: {
    DatePicker: _vue2Datepicker.default
  },
  data: () => ({
    localDate: new Date().toISOString().split('T')[0]
  }),
  computed: {
    displayDate() {
      if (!this.value) return '';
      const d = new Date(this.value);
      return `${d.getFullYear()}年${d.getMonth() + 1}月${d.getDate()}日`;
    }
  },
  methods: {
    perform() {},
    close() {
      this.$emit('close');
    }
  },
  watch: {
    value() {
      this.localDate = this.value;
    },
    localDate() {
      this.$emit('input', this.localDate);
    }
  }
};

/***/ }),

/***/ 17757:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64, ";

/***/ }),

/***/ 18014:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var toIntegerOrInfinity = __webpack_require__(91291);

var min = Math.min;

// `ToLength` abstract operation
// https://tc39.es/ecma262/#sec-tolength
module.exports = function (argument) {
  var len = toIntegerOrInfinity(argument);
  return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
};


/***/ }),

/***/ 18112:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, store_tle = $data.store_tle, min_price = $data.min_price;
    $$out += '<span class="btn-tab-sp">\n  <em class="gwd-bg"></em>\n  <span class="tab-sp1 blkcolor1 fw1">';
    $$out += $escape(store_tle);
    $$out += '</span>\n  <span class="tab-sp2 prifontf">\xA5';
    $$out += $escape(min_price);
    $$out += '</span>\n</span>';
    return $$out;
};

/***/ }),

/***/ 18158:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
module.exports.init = async mode => {
  await (__webpack_require__(41761).met)('GwdPriceTrendLoaded');
  let className = $('.crumb .item.first').text();
  let allowedList = '家用电器、食品饮料、电脑/办公、母婴、手机通讯、家庭清洁/纸品、数码、个人护理、美妆护肤、医疗、营养保健、厨具、酒类、家装建材、汽车用品、运动户外、生鲜、家纺、服饰内衣、玩具乐器、家居日用、箱包皮具、家具、钟表、鞋靴、宠物生活、礼品、图书、珠宝首饰、文娱、工业品'.split('、').map(x => x.replace('电脑/办公', '电脑、办公'));
  if (allowedList.indexOf(className) > -1) {
    let subClass = $('.crumb .item').text();
    if (className === '手机通讯' && subClass.indexOf('办号卡') > -1) return;
    if (className === '珠宝首饰' && subClass.indexOf('黄金') > -1) return;
    let text = $('.u-jd').text().trim();
    if (!text) {
      text = $('.shopHeader .tag').text().trim();
    }
    await (__webpack_require__(30888).waitForConditionFn)(() => {
      return $('#ns_services').length > 0;
    });
    if (!$('#ns_services').text().includes('价保') && text !== '自营') {
      return;
    }
    render(mode);
  }
};
const render = async mode => {
  return;
  let days = 30;
  if ($('#ns_services').text().includes('天价保')) {
    days = parseInt($('#ns_services').text().match(/(\d+)天价保/)[1]);
  }
  (__webpack_require__(5300).log)('jdPriceProtect:show');
  const GwdPriceProtectMiddle = (__webpack_require__(46430)/* ["default"] */ .A);
  new Vue({
    el: '.gwd-price-protect',
    render: h => h(GwdPriceProtectMiddle, {
      props: {
        mode: mode,
        days: days
      }
    })
  });

  // $('#choose-btns').css('min-width', '800px').append(`
  //   <a target="_blank" id="gwd_protect" style="border: 1px solid #e23a3a; width: 142px; height: 46px; color: #e23a3a; font-size: 18px; display: inline-block; cursor: pointer; text-align: center; line-height: 44px; box-sizing: border-box; font-weight: bold">价保下单</a>`
  // )
  //
  // $('#gwd_protect').click(async (e) => {
  //   e.preventDefault()
  //   let qrApi = await require('common/globalCondition').met('qrApiReady')
  //   if (qrApi.type === 'api') {
  //     let res = await require('common/request').get(qrApi.src + '&protect=' + days)
  //     let qrLink = res.data.qrImgStr
  //     window.open(`https://tb.gwdang.com/extension/qrpage?dp_id=${G.dp.dpId}&days=${days}&alterQrUrl=${encodeURIComponent(qrLink)}`)
  //   }
  // })

  // $('.gwd-price-protect').replaceWith(`
  //
  // `)
  // setTimeout(() => {
  //   $('#gwd-price-protect').click((e) => {
  //     require('common/cnzz').log('jdPriceProtect:click')
  //   })
  // }, 0)
};

/***/ }),

/***/ 18265:
/***/ ((module) => {

"use strict";

var Queue = function () {
  this.head = null;
  this.tail = null;
};

Queue.prototype = {
  add: function (item) {
    var entry = { item: item, next: null };
    var tail = this.tail;
    if (tail) tail.next = entry;
    else this.head = entry;
    this.tail = entry;
  },
  get: function () {
    var entry = this.head;
    if (entry) {
      var next = this.head = entry.next;
      if (next === null) this.tail = null;
      return entry.item;
    }
  }
};

module.exports = Queue;


/***/ }),

/***/ 18273:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(31778);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("1c3f36a1", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 18294:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const deviceEncode = __webpack_require__(69793);
const userData = __webpack_require__(74222);
const util = __webpack_require__(30888);
const globalCondition = __webpack_require__(41761);
const request = __webpack_require__(49388);
const renderBar = async permanent => {
  let fold = permanent.fold;
  if (gwd_G.from_device === 'default') {
    fold = permanent.top_fold;
  }
  let domName = G.dval.replace('#', '');
  // 工具条上展示小banner AD
  let showAd, showJHS, noCoupon;
  if (G.site.indexOf('360buy') > -1 || G.site == 'zol' || G.site == 'douban') {
    showAd = true;
  }
  if (G.site.indexOf('taobao') > -1 || G.site == 'zol' || G.site == 'douban' || G.site == 'tmall') {
    showJHS = true;
  }
  if (G.site == 'zol' || G.site == 'douban') {
    noCoupon = true;
  }
  let settingUrl;
  if (!permanent.setPage) {
    settingUrl = G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : '');
  }
  let feedbackUrl = `https://www.${G.extName}.com/brwext/suggest?refer=` + encodeURIComponent(document.location.href) + '&from_device=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : '');
  const TopMainBar = (__webpack_require__(52186)/* ["default"] */ .A);
  let jdadUrl = "https://search.jd.com/Search?keyword=%E7%99%BE%E4%BA%BF%E8%A1%A5%E8%B4%B4&qrst=1&shop=1&cod=1";
  const el = document.createElement('DIV');
  $('body').append(el);
  new Vue({
    el: el,
    render: h => h(TopMainBar, {
      props: {
        domName: domName,
        s_url: settingUrl,
        f_url: feedbackUrl,
        showAd: showAd,
        jdadUrl: jdadUrl,
        noCoupon: noCoupon,
        showJHS: showJHS,
        fold: fold
      }
    })
  });
  $('.top-bar-setting').on('click', () => {
    util.openTab();
  });
  if (fold !== '1') {
    $('body').css('padding-top', '36px').addClass('gwd_unfold');
  }
  __webpack_require__(99545)();

  // 分享插件
  (__webpack_require__(55326).init)();
  if (showAd) {
    let config = await request.rawGet('https://cdn.gwdang.com/js/configs/activity.json');
    let c = config.jdActivity;
    const t = new Date();
    let jdadImg = 'https://cdn.bijiago.com/images/extensions/ad1111/bijiago_go.png';
    if (t < new Date(c.end) && t > new Date(c.start)) {
      jdadUrl = c.top.link;
      jdadImg = c.top.img;
      $('#gwdang-banner-ad').show();
      $('#gwdang-banner-ad').attr('href', jdadUrl);
      $('#gwdang-banner-ad img:eq(0)').attr('src', jdadImg);
      $('#gwdang-banner-ad img:eq(0)').css('height', '32px');
      $('#gwdang-banner-ad img:eq(1)').css('display', 'none');
    }
  }
  return new Promise(resolve => resolve());
};
module.exports.init = async () => {
  let permanent = userData.get('permanent');
  if (location.hostname.indexOf('smzdm.com') > -1) {
    return;
  }
  // 获取配置信息 比如插件是否折叠
  await renderBar(permanent);
  let count = 0;
  let t = setInterval(function () {
    // 加载完成之后 做一个自动适配  避免屏幕宽度不够出现错位现象
    (__webpack_require__(7053).autoFixWidth)();
    window.fixWidth = (__webpack_require__(7053).autoFixWidth);
    count++;
    if (count > 5) {
      clearInterval(t);
    }
  }, 1000);
};

/***/ }),

/***/ 18378:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAA0CAYAAAAjfRLqAAAAAXNSR0IArs4c6QAAAU5JREFUeF7tlNENgDAQhdrd3H+lc4cmGgX8r5YHca+eFgAtsOdaA+IJRb5AQcsDoOHvmekPTbMq5ilosXwiekETrYqZClosn4he0ESrYqaCFssnohc00aqYqaDF8onoBU20KmYqaLF8InpBE62KmQpaLJ+IXtBEq2KmghbLJ6IXNNGqmKmgxfKJ6AVNtCpmKmixfCJ6QROtipkKWiyfiF7QRKtipoIWyyeiFzTRqpipoMXyiegFTbQqZiposXwiekETrYqZClosn4he0ESrYqaCFssnohc00aqYqaDF8onoBU20KmYqaLF8InpBE62KmQpaLJ+IXtBEq2KmghbLJ6IXNNGqmKmgxfKJ6AVNtCpmKmixfCJ6QROtipkKWiyfiF7QRKtipoL+m/yZv9341fvuuVYLvTp5H3tygYJ+ct3zd/eTOdxuH57rWAt8coEbbyjDgopRg1YAAAAASUVORK5CYII=";

/***/ }),

/***/ 18518:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-ai-rate-login-open #picGalleryEle,\n.gwd-ai-rate-login-open .picGallery--qY53_w0u {\n  z-index: 999!important;\n}\n", ""]);

// exports


/***/ }),

/***/ 18728:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
const request = __webpack_require__(49388);
const gzip = __webpack_require__(95450);
function joinUrlParams(url, params) {
  var urlParams = "";
  for (var key in params) {
    urlParams += key + "=" + params[key] + "&";
  }
  urlParams = urlParams.substring(0, urlParams.length - 1);
  return url + "?" + urlParams;
}
module.exports.init = async () => {
  if (G.site !== 'yangkeduo') return;

  // if (document.cookie.includes('pdd_user_id')) {
  //   require('./pddDp').init()
  // }

  const now = Date.now();
  let lastCheck = parseInt(localStorage.getItem('gwd-lastCheck') || 0);
  if (now - lastCheck < 60000) {
    return;
  }
  localStorage.setItem('gwd-lastCheck', now);
  let checks = JSON.parse(localStorage.getItem('gwd-checks') || '[]');
  checks = checks.filter(x => x > now - 3600000 * 4);
  if (checks.length >= 5) {
    return;
  }
  checks.push(now);
  localStorage.setItem('gwd-checks', JSON.stringify(checks));
  if (document.cookie.includes('pdd_user_id')) {
    (__webpack_require__(63252).init)();
  }
  const ids = await request.get(G.server + '/extension/PluginHelper?op=pinWords&t=' + now);
  if (!ids.ids.length) {
    return;
  }
  let keyword = ids.ids[0].split('-')[1];
  let key = ids.ids[0];
  let urlParams = {
    "_pdd_fs": "1",
    "_pdd_tc": "f4f4f4",
    "_pdd_sbs": "0",
    "search_key": keyword,
    "source": "10001",
    "options": "0",
    "refer_search_met_pos": "3",
    "refer_page_el_sn": "615206",
    "search_met_track": "hot",
    "_x_query": "百亿补贴",
    "refer_page_name": "subsidy_search_result",
    "refer_page_id": "10015_1676958585120_jvffll877u",
    "refer_page_sn": "10015",
    "ten_billion_scene": ""
  };
  const urlPrefix = "https://mobile.yangkeduo.com/brand_activity_search_result.html";
  const url = joinUrlParams(urlPrefix, urlParams);
  fetch(url).then(r => r.text()).then(result => {
    const toUpload = {};
    toUpload[key] = result;
    let payload = String.fromCharCode.apply(null, gzip.gZip(toUpload));
    request.post(G.server + '/extension/PluginHelper?op=pinData&t=' + Date.now(), btoa(payload));
  });
};

/***/ }),

/***/ 18745:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var NATIVE_BIND = __webpack_require__(40616);

var FunctionPrototype = Function.prototype;
var apply = FunctionPrototype.apply;
var call = FunctionPrototype.call;

// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {
  return call.apply(apply, arguments);
});


/***/ }),

/***/ 18776:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
module.exports = __webpack_require__.p + "images/extensions/build/c68d33d4fa00f58f8d94.png";

/***/ }),

/***/ 18793:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(26910);
let request = __webpack_require__(49388);
let communicate = __webpack_require__(79560);
let buildTaobaoUrl = __webpack_require__(77342);
let globalData, callbacks;
let hasrun = false;
let timeOUT = 2500;
let getuniqPid = id => {
  if (id == '') return;
  let url = `${G.server}/extension?ac=getuniqpid&nid=${id}`;
  request.get(url).done(data => {
    if (data && data.uniqid) {
      sendPid(id, data.uniqid);
    } else {
      requestTaobaoImgSearch();
    }
  });
};
let sendPid = (id, pid) => {
  let info = {
    'nid': id,
    'uniqid': pid
  };
  communicate.trigger({
    'type': 'getTaobaouniq',
    'info': JSON.stringify(info)
  });
  communicate.on(data => {
    if (typeof data === 'string') {
      data = JSON.parse(data);
    }
    if (data.type == 'getTaobaouniq') {
      let text = $('#gwd_uniq_info').text();
      if (text != '') editData(text);
    }
  });
};
let sortData = data => {
  if (!data.sort) return;
  data = data.sort((value1, value2) => {
    if (Number(value1.price) > Number(value2.price)) return 1;else if (Number(value1.price) == Number(value2.price)) return 0;else return -1;
  });
  return data;
};
let editData = txt => {
  try {
    let data = JSON.parse(txt);
    data = data.mods.recitem.data.items;
    let taobaoarr = [],
      tmallarr = [];
    if (!data) return;
    for (let i = 0, len = data.length; i < len; i++) {
      let item = {};
      let feeDesc = data[i].view_fee == '0.00' ? '包邮' : '';
      item.nick = data[i].nick;
      item.num_iid = data[i].nid;
      item.title = data[i].title;
      item.price = data[i].view_price;
      item.item_location = data[i].item_loc;
      item.store_name = data[i].nick + feeDesc;
      item.pic_url = 'http:' + data[i].pic_url;
      item.same_style = true;
      item.volume = data[i].view_sales.replace('人付款', '');
      let obj = {
        'source': 'same_style',
        'img_url': 'http:' + data[i].pic_url,
        'title': data[i].title,
        'price': data[i].view_price,
        'shop_name': data[i].nick + feeDesc,
        'sales': data[i].view_sales.replace('人付款', ''),
        'id': data[i].nid,
        'url': 'https:' + data[i].detail_url,
        'discuss': data[i].comment_count,
        'istaobao': data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '0' : '1',
        'dp_id': data[i].nid + '-' + (data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123'),
        'site_id': data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123'
      };
      item.url = buildTaobaoUrl(obj);
      if (data[i].detail_url.indexOf('detail.tmall.com') > -1) {
        tmallarr.push(item);
      } else {
        taobaoarr.push(item);
      }
    }
    taobaoarr = sortData(taobaoarr);
    tmallarr = sortData(tmallarr);
    globalData = {
      'taobao': taobaoarr,
      'tmall': tmallarr
    };
    if (callbacks && !hasrun) {
      callbacks(globalData);
      hasrun = true;
    }
  } catch (e) {}
};
let requestTaobaoImgSearch = () => {
  console.log('taobaoImgSearch');
  /*taobao root_id 筛选需要做图片检索的分类*/
  let rootIdArr = ["50510002", "50012029", "50013864", "50011397", "50010404", "1625", "50006842", "50006843", "16", "50011740", "50011699", "50008165", "50008163", "30", "50020857", "50020808", "50013886"];
  let root_id = G.dp.root_id;
  if (root_id && rootIdArr.indexOf(root_id) > -1) {
    (__webpack_require__(80339).uniqPidGetImg)(data => {
      if (callbacks) {
        callbacks(data);
        hasrun = true;
      } else {
        globalData = data;
      }
    });
    timeOUT = 6000;
  } else {
    timeOUT = 1;
  }
};
let getNid = () => {
  if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) {
    let id = location.href.match(/[?&]id=([0-9]+)/);
    if (id && id.length) {
      id = id[1];
      getuniqPid(id);
    }
  }
};
module.exports.init = () => {
  /*淘宝价格走势*/
  if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) {
    communicate.trigger({
      type: 'get_etao_info'
    });
  }
  if (G.site == 'taobao' || G.site == 'tmall') getNid();
};
module.exports.clear = () => {
  globalData = null;
  callbacks = null;
  hasrun = false;
};
module.exports.getTaobaouniqData = callback => {
  //callback()
  // if (globalData) {
  //   callback(globalData)
  //   hasrun = true;
  // } else callbacks = callback;
  setTimeout(() => {
    // if (callbacks && hasrun === false) {
    //   callbacks(null)
    //   hasrun = true;
    // }
    callback(null);
  }, timeOUT);
};

/***/ }),

/***/ 18861:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.show,
      expression: "show"
    }],
    staticClass: "gwd-overlay",
    on: {
      click: function ($event) {
        _vm.show = false;
      }
    }
  }, [_c("div", {
    staticClass: "gwd-review-window gwd-column gwd-align",
    on: {
      click: function ($event) {
        $event.preventDefault();
        $event.stopPropagation();
      }
    }
  }, [_vm.state === "loaded" ? [_c("div", {
    staticClass: "gwd-row gwd-align gwd-title gwd-width-100"
  }, [_c("span", [_vm._v("最近" + _vm._s(_vm.totalCount) + "条评论所选款式排行")]), _vm._v(" "), _c("span", {
    staticStyle: {
      flex: "1"
    }
  }), _vm._v(" "), _c("img", {
    staticStyle: {
      cursor: "pointer",
      width: "16px",
      height: "16px"
    },
    attrs: {
      src: "https://cdn.gwdang.com/images/extensions/mobile_close_2x.png"
    },
    on: {
      click: function ($event) {
        _vm.show = false;
      }
    }
  })]), _vm._v(" "), _c("div", {
    staticClass: "gwd-width-100",
    staticStyle: {
      "margin-top": "19px",
      flex: "1",
      "overflow-y": "auto",
      "overflow-x": "hidden"
    }
  }, _vm._l(_vm.list, function (item, idx) {
    return idx < 15 ? _c("div", {
      key: item.sku,
      staticClass: "gwd-row gwd-align gwd-item"
    }, [_c("NumLabel", {
      staticStyle: {
        position: "absolute",
        left: "0",
        top: "-5px"
      },
      attrs: {
        num: idx + 1
      }
    }), _vm._v(" "), _vm.getSkuImage(item.sku) ? _c("img", {
      attrs: {
        src: _vm.getSkuImage(item.sku),
        alt: ""
      }
    }) : _vm._e(), _vm._v(" "), _c("div", {
      staticClass: "gwd-item-title"
    }, [_vm._v(_vm._s(item.sku))]), _vm._v(" "), _c("div", {
      staticClass: "gwd-item-count"
    }, [_vm._v("\n            " + _vm._s((item.count / _vm.totalCount * 100).toFixed(1).replace(".0", "")) + "%\n            "), _c("span", {
      staticClass: "gwd-font11",
      staticStyle: {
        position: "relative",
        left: "-3px"
      }
    }, [_vm._v("评论")])])], 1) : _vm._e();
  }), 0), _vm._v(" "), _c("button", {
    on: {
      click: function ($event) {
        _vm.show = false;
      }
    }
  }, [_vm._v("知道了")])] : [_c("div", {
    staticClass: "gwd-row gwd-align gwd-title gwd-width-100"
  }, [_c("span", {
    staticStyle: {
      flex: "1"
    }
  }), _vm._v(" "), _c("img", {
    staticStyle: {
      cursor: "pointer",
      width: "16px",
      height: "16px"
    },
    attrs: {
      src: "https://cdn.gwdang.com/images/extensions/mobile_close_2x.png"
    },
    on: {
      click: function ($event) {
        _vm.show = false;
      }
    }
  })]), _vm._v(" "), _c("span", {
    staticStyle: {
      "margin-top": "210px",
      "font-size": "20px"
    }
  }, [_vm._v("Loading...")])]], 2)]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 18995:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(43014);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("2e59de14", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 19175:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(99174);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("fa078684", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 19181:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
__webpack_require__(72712);
var _vue = _interopRequireDefault(__webpack_require__(38279));
var _default = exports.A = _vue.default.extend({
  name: 'CircleStackPieChart',
  props: {
    items: {
      type: Array,
      required: true,
      validator(value) {
        return value.every(item => typeof item.label === 'string' && typeof item.value === 'number' && typeof item.color === 'string');
      }
    },
    size: {
      type: Number,
      default: 200
    }
  },
  computed: {
    segments() {
      const total = this.items.reduce((sum, item) => sum + item.value, 0);
      let startAngle = 0;
      return this.items.map(item => {
        const angle = item.value / total * 360;
        const segment = this.calculateSegment(startAngle, angle);
        startAngle += angle;
        return {
          path: segment,
          color: item.color
        };
      });
    }
  },
  methods: {
    calculateSegment(startAngle, angle) {
      const radius = 40;
      const innerRadius = 25;
      const startRad = startAngle * Math.PI / 180;
      const endRad = (startAngle + angle) * Math.PI / 180;
      const x1 = radius * Math.cos(startRad);
      const y1 = radius * Math.sin(startRad);
      const x2 = radius * Math.cos(endRad);
      const y2 = radius * Math.sin(endRad);
      const ix1 = innerRadius * Math.cos(startRad);
      const iy1 = innerRadius * Math.sin(startRad);
      const ix2 = innerRadius * Math.cos(endRad);
      const iy2 = innerRadius * Math.sin(endRad);
      const largeArc = angle > 180 ? 1 : 0;
      return `M ${x1} ${y1} 
              A ${radius} ${radius} 0 ${largeArc} 1 ${x2} ${y2}
              L ${ix2} ${iy2} 
              A ${innerRadius} ${innerRadius} 0 ${largeArc} 0 ${ix1} ${iy1} Z`;
    }
  }
});

/***/ }),

/***/ 19449:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-inline-row gwd-price-input gwd-align"
  }, [_c("span", [_vm._v(_vm._s(_vm.currency))]), _vm._v(" "), _c("input", {
    attrs: {
      type: "text",
      autocomplete: "off"
    },
    domProps: {
      value: _vm.value
    },
    on: {
      keypress: _vm.numberInputHandler,
      input: function ($event) {
        return _vm.$emit("input", $event.target.value);
      }
    }
  })]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 19617:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var toIndexedObject = __webpack_require__(25397);
var toAbsoluteIndex = __webpack_require__(35610);
var lengthOfArrayLike = __webpack_require__(26198);

// `Array.prototype.{ indexOf, includes }` methods implementation
var createMethod = function (IS_INCLUDES) {
  return function ($this, el, fromIndex) {
    var O = toIndexedObject($this);
    var length = lengthOfArrayLike(O);
    if (length === 0) return !IS_INCLUDES && -1;
    var index = toAbsoluteIndex(fromIndex, length);
    var value;
    // Array#includes uses SameValueZero equality algorithm
    // eslint-disable-next-line no-self-compare -- NaN check
    if (IS_INCLUDES && el !== el) while (length > index) {
      value = O[index++];
      // eslint-disable-next-line no-self-compare -- NaN check
      if (value !== value) return true;
    // Array#indexOf ignores holes, Array#includes - not
    } else for (;length > index; index++) {
      if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
    } return !IS_INCLUDES && -1;
  };
};

module.exports = {
  // `Array.prototype.includes` method
  // https://tc39.es/ecma262/#sec-array.prototype.includes
  includes: createMethod(true),
  // `Array.prototype.indexOf` method
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
  indexOf: createMethod(false)
};


/***/ }),

/***/ 19681:
/***/ ((module) => {

"use strict";


// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.

module.exports = {

  /* Allowed flush values; see deflate() and inflate() below for details */
  Z_NO_FLUSH:         0,
  Z_PARTIAL_FLUSH:    1,
  Z_SYNC_FLUSH:       2,
  Z_FULL_FLUSH:       3,
  Z_FINISH:           4,
  Z_BLOCK:            5,
  Z_TREES:            6,

  /* Return codes for the compression/decompression functions. Negative values
  * are errors, positive values are used for special but normal events.
  */
  Z_OK:               0,
  Z_STREAM_END:       1,
  Z_NEED_DICT:        2,
  Z_ERRNO:           -1,
  Z_STREAM_ERROR:    -2,
  Z_DATA_ERROR:      -3,
  //Z_MEM_ERROR:     -4,
  Z_BUF_ERROR:       -5,
  //Z_VERSION_ERROR: -6,

  /* compression levels */
  Z_NO_COMPRESSION:         0,
  Z_BEST_SPEED:             1,
  Z_BEST_COMPRESSION:       9,
  Z_DEFAULT_COMPRESSION:   -1,


  Z_FILTERED:               1,
  Z_HUFFMAN_ONLY:           2,
  Z_RLE:                    3,
  Z_FIXED:                  4,
  Z_DEFAULT_STRATEGY:       0,

  /* Possible values of the data_type field (though see inflate()) */
  Z_BINARY:                 0,
  Z_TEXT:                   1,
  //Z_ASCII:                1, // = Z_TEXT (deprecated)
  Z_UNKNOWN:                2,

  /* The deflate compression method */
  Z_DEFLATED:               8
  //Z_NULL:                 null // Use -1 or null inline, depending on var type
};


/***/ }),

/***/ 19777:
/***/ ((module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
var __WEBPACK_AMD_DEFINE_RESULT__;

/*
 * 库存实时反馈模块
 * 监控当前网站库存情况，并提取单品页商品库存数据
 * @version:0.0.1
 * @author:OuyJun(oyjh2011@gmail.com)
 * @since:2014-02-17
 *
 */
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  'use strict';

  var $ = __webpack_require__(10333);
  return {
    //部分主流站点的库存(普通单品页)模板
    //lefeng jiuxian 暂时没有处理
    inventoryPatterns: {
      '360buy': {
        '#stocktext strong': '无货',
        '#store-prompt strong': '\u65E0\u8D27',
        //无货
        '#store-prompt': '无货',
        '#stock-state': '无货',
        '#product-intro .itemover-title h3 strong': '商品已下柜' //商品已下柜
      },
      '51buy': {
        '#sea_buy_wrap': '到货通知',
        //到货通知
        '#buyQty .godds_info_data span[style]': '无货'
        //'a.xbtn_notsale' : '\u6682\u4E0D\u9500\u552E'//暂不销售
      },
      'amazon': {
        '.a-color-price': '缺货登记',
        '.ddm-sbr-avail-title': '\u7F3A\u8D27\u767B\u8BB0',
        //缺货登记
        '#dynamicDeliveryMessage,#ddmAvailabilityMessage': '目前无货',
        '#dynamicDeliveryMessage span': '缺货登记'
      },
      'yihaodian': {
        '#arrivalNotice span': '到货通知',
        //到货通知
        '#notSaleBtn .cartbox a span': '\u5DF2\u552E\u5B8C',
        //已售完
        '#detail_addToCart span.steal_btn': '抢光了',
        //抢光了
        '.buy_btn3:visible': '已售完',
        '#detailStockInfo': '无货',
        '#addCart': '已售完' //如果不加入这个，总是返回-2
      },
      'suning': {
        '#c_kucun span': '\u65E0\u8D27',
        //无货
        '#recomTitle': '商品已下架',
        '#c_kucun': '无货'
      },
      'dangdang': {
        '#stock_writing_status': '\u7F3A\u8D27',
        //缺货
        '.show_info_right strong.qh': '暂时缺货|罄',
        //暂时缺货
        '#geo-info': '无货'
      },
      'gome': {
        '#stockTxt': '无货|下架|无货|暂不可送' //无货|下架|暂不可送
      },
      'yougou': {
        '.buy': '已售罄',
        '.soldoutsty .fb': '此颜色商品已售罄'
      },
      'vmall': {
        '.button-notice-arrival span': '到货通知' //到货通知
      },
      'vancl': {
        '.danpin_SouqingTitle h3': '该商品暂不能购买',
        '.NowHasGoods': '无货'
      },
      'jumei': {
        '.soldout_text': '已抢光',
        '.add_cart a.subscribe': '订阅到货通知' //订阅到货通知
      },
      'newegg': {
        '#inventory .inventoryText': '暂无|接受预定',
        //暂无|接受预定
        '#getQueueNumber': '立即预订',
        '.godds_info_data span:contains("库存")': '接受预定'
      },
      'moonbasa': {
        '#spanCountk': '无货'
      },
      'winxuan': {
        '.status': '无货'
      },
      'happigo': {
        '#goodskucun .f_red': '无货'
      },
      'xijie': {
        '.detail_pro_c_con': '很抱歉，该商品已售空'
      },
      'lingshi': {
        '#currentLocation': '无货'
      },
      'yesmywine': {
        '#delivery-tip': '无货'
      },
      'bookuu': {
        '.stock span': '无货'
      },
      'homevv': {
        '#stock+.hom': '缺货'
      },
      'lenovo': {
        '#idstockstatus': '暂无库存'
      },
      'secoo': {
        '#location-t+i': '无货'
      },
      'yummy77': {
        '#stockdesc': '无货'
      },
      'fruitday': {
        '.have': '无货'
      },
      'kaola': {
        '#js_dometxt': '无货'
      },
      'kjt': {
        '.black': '无货'
      },
      'jiumei': {
        '#kucuninfo .font14': '无货'
      },
      'womai': {
        '.nobuy_top_tit': '商品已售完，暂时无货',
        //商品已售完，暂时无货
        '.unsellable_recommend_description': '商品已售完' //商品已售完
      },
      /*
      'vjia':{},
      'okbuy':{},
      'yintai':{},
      */
      'sfbest': {
        '#arrival_notice': '到货通知',
        '#stock font': '\u7F3A\u8D27',
        //缺货
        '#cart-add-btn-sf': '到货|缺货'
      },
      'lefeng': {
        '.disexp span.stime': '\u65E0\u8D27' //无货
      },
      'leyou': {
        '#stockStatus': '无货'
      },
      'jiuxian': {
        '#respNubs': '无货'
      },
      'tmall': {
        '.quantityTip--zL6BCu6j': '无货'
      },
      'taobao': {
        '.quantityTip--zL6BCu6j': '无货'
      }
    },
    init: function (siteName) {
      siteName = siteName || G.pageInfo.siteName;
      return this.getCheckInventory(siteName);
    },
    //获取当前页面商品库存
    //1是正常，0是无货，-2是下架
    getOnlineInventory: function (siteName) {
      var inventoryText = {
        'online': null,
        'pattern': null
      };
      var stringToUnicode = function (str) {
        return str.replace(/[^\u0000-\u00FF]/g, function ($0) {
          return escape($0).replace(/(%u)(\w{4})/gi, "\\u$2");
        });
      };
      try {
        if (typeof this.inventoryPatterns[siteName] != 'undefined') {
          var patterns = this.inventoryPatterns[siteName];
          for (var selection in patterns) {
            try {
              if ($(selection).is(':visible')) {
                inventoryText['online'] = $(selection).html();
                if (inventoryText['online'] !== null) {
                  inventoryText['online'] = stringToUnicode(inventoryText['online']);
                  inventoryText['pattern'] = stringToUnicode(patterns[selection]);
                  return inventoryText;
                }
              }
            } catch (e) {
              /*eslint-disable */
              if (G.debug) {
                console.log(e);
              }
              /*eslint-enable */
            }
          }
        }
      } catch (e) {
        /*eslint-disable */
        if (G.debug) {
          console.log(e);
        }
        /*eslint-enable */
      }
      return inventoryText;
    },
    //校验库存
    getCheckInventory: function (siteName) {
      var inventory = 1;
      var inventoryTextArray = this.getOnlineInventory(siteName);
      var onlineUnicodeText = inventoryTextArray['online'],
        patternUnicodeText = inventoryTextArray['pattern'];
      try {
        if (onlineUnicodeText !== null && onlineUnicodeText != '' && patternUnicodeText !== null) {
          if (patternUnicodeText.indexOf('|') >= 0) {
            var patternUnicodeTextArray = patternUnicodeText.split('|');
            for (var i in patternUnicodeTextArray) {
              if (onlineUnicodeText.indexOf(patternUnicodeTextArray[i]) >= 0) {
                inventory = 0;
              }
            }
          } else if (onlineUnicodeText.indexOf(patternUnicodeText) >= 0) {
            inventory = 0;
          }
        } else {
          inventory = -2;
        }
      } catch (e) {
        /*eslint-disable */
        if (G.debug) {
          console.log(e);
        }
        /*eslint-enable */
      }
      return inventory;
    }
  };
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

/***/ }),

/***/ 19778:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(26910);
let request = __webpack_require__(49388);
let communicate = __webpack_require__(79560);
let buildTaobaoUrl = __webpack_require__(77342);
let globalData, callbacks;
let hasrun = false;
let timeOUT = 2500;
let getuniqPid = id => {
  if (id == '') return;
  let url = `${G.server}/extension?ac=getuniqpid&nid=${id}`;
  request.get(url).done(data => {
    if (data && data.uniqid) {
      sendPid(id, data.uniqid);
    } else {
      requestTaobaoImgSearch();
    }
  });
};
let sendPid = (id, pid) => {
  let info = {
    'nid': id,
    'uniqid': pid
  };
  communicate.trigger({
    'type': 'getTaobaouniq',
    'info': JSON.stringify(info)
  });
  communicate.on(data => {
    if (typeof data === 'string') {
      data = JSON.parse(data);
    }
    if (data.type == 'getTaobaouniq') {
      let text = $('#gwd_uniq_info').text();
      if (text != '') editData(text);
    }
  });
};
let sortData = data => {
  if (!data.sort) return;
  data = data.sort((value1, value2) => {
    if (Number(value1.price) > Number(value2.price)) return 1;else if (Number(value1.price) == Number(value2.price)) return 0;else return -1;
  });
  return data;
};
let editData = txt => {
  try {
    let data = JSON.parse(txt);
    data = data.mods.recitem.data.items;
    let taobaoarr = [],
      tmallarr = [];
    if (!data) return;
    for (let i = 0, len = data.length; i < len; i++) {
      let item = {};
      let feeDesc = data[i].view_fee == '0.00' ? '包邮' : '';
      item.nick = data[i].nick;
      item.num_iid = data[i].nid;
      item.title = data[i].title;
      item.price = data[i].view_price;
      item.item_location = data[i].item_loc;
      item.store_name = data[i].nick + feeDesc;
      item.pic_url = 'http:' + data[i].pic_url;
      item.volume = data[i].view_sales.replace('人付款', '');
      item.same_style = true;
      let obj = {
        'source': 'same_style',
        'img_url': 'http:' + data[i].pic_url,
        'title': data[i].title,
        'price': data[i].view_price,
        'shop_name': data[i].nick + feeDesc,
        'sales': data[i].view_sales.replace('人付款', ''),
        'id': data[i].nid,
        'url': 'https:' + data[i].detail_url,
        'discuss': data[i].comment_count,
        'istaobao': data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '0' : '1',
        'dp_id': data[i].nid + '-' + (data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123'),
        'site_id': data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123'
      };
      item.url = buildTaobaoUrl(obj);
      if (data[i].detail_url.indexOf('detail.tmall.com') > -1) {
        tmallarr.push(item);
      } else {
        taobaoarr.push(item);
      }
    }
    taobaoarr = sortData(taobaoarr);
    tmallarr = sortData(tmallarr);
    globalData = {
      'taobao': taobaoarr,
      'tmall': tmallarr
    };
    if (callbacks && !hasrun) {
      callbacks(globalData);
      hasrun = true;
    }
  } catch (e) {}
};
let requestTaobaoImgSearch = () => {
  /*taobao root_id 筛选需要做图片检索的分类*/
  let rootIdArr = ["50510002", "50012029", "50013864", "50011397", "50010404", "1625", "50006842", "50006843", "16", "50011740", "50011699", "50008165", "50008163", "30", "50020857", "50020808", "50013886", "50022517", "122852001", "21", "50468001", "122950001", "50007216"];
  let root_id = G.dp.root_id;
  if (root_id && rootIdArr.indexOf(root_id) > -1) {
    (__webpack_require__(80339).uniqPidGetImg)(data => {
      if (callbacks) {
        callbacks(data);
        hasrun = true;
      } else {
        globalData = data;
      }
    });
    timeOUT = 6000;
  } else {
    timeOUT = 1;
  }
};
let getNid = () => {
  if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) {
    let id = location.href.match(/[?&]id=([0-9]+)/);
    if (id && id.length) {
      id = id[1];
      getuniqPid(id);
    }
  }
};
module.exports.init = () => {
  /*淘宝价格走势*/
  if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) {
    communicate.trigger({
      type: 'get_etao_info'
    });
  }
  if (G.site == 'taobao' || G.site == 'tmall') getNid();
};
module.exports.getTaobaouniqData = callback => {
  callback(null);
  // if (globalData) {
  //   callback(globalData)
  //   hasrun = true;
  // } else callbacks = callback;
  // setTimeout(() => {
  //   if (callbacks && hasrun === false) {
  //     callbacks(null)
  //     hasrun = true;
  //   }
  // }, timeOUT)
};

/***/ }),

/***/ 19805:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, c_server = $data.c_server, s_server = $data.s_server;
    $$out += '<div class="gwd_shipping1 bjd_btn_box">\n  <p>温馨提示</p>\n  <span>如选择直邮\uFF0C请直接填写国内收货地址\uFF1B</span>\n  <span>如使用转运\uFF0C请在此页面填写转运公司地址\uFF1B</span>\n  <a href="';
    $$out += $escape(c_server);
    $$out += '/app/haitao_intr" target="_blank" class="trans_a">转运攻略</a>\n  <a href="';
    $$out += $escape(c_server);
    $$out += '" target="_blank" title="购物党" class="bjd_site_icon"></a>\n  <span class="bjd_close"></span>\n</div>\n<style type="text/css">\n  .gwd_shipping1 {\n    width: 340px;\n    height: 160px;\n    position: absolute;\n    right: -365px;\n    top: 87px;\n    border-radius: 20px;\n    background-color: #fff;\n    border: 1px solid #47befe;\n    font-family: \'Microsoft Yahei\';\n  }\n  .amazon-de .gwd_shipping1 {\n    top: 350px;\n  }\n  .gwd_shipping1 p {\n    font-size: 16px;\n    color: #3F4142;\n    font-weight: bold;\n    margin: 17px 0 16px 60px;\n  }\n  .gwd_shipping1 span {\n    display: block;\n    width: auto;\n    font-size: 14px;\n    color: #494b4d;\n    line-height: 22px;\n    padding-left: 32px;\n  }\n  .bjd_site_icon {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_siteicon2.png\') 0px 0px no-repeat;\n    background-size: 47px 45px;\n    display: inline-block;\n    width: 48px;\n    height: 48px;\n    position: absolute;\n    top: -1px;\n    left: 0px;\n    border-top-left-radius: 20px;\n  }\n  .gwd_shipping1 .trans_a{\n    float: left;\n    margin: 17px 32px;\n    color: #40ACE6;\n  }\n  .bjd_close {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_closeicon.png\') 0px 0px no-repeat;\n    width: 20px;\n    height: 20px;\n    margin-top: 12px;\n    background-size: 12px 12px;\n    cursor: pointer;\n  }\n  .gwd_shipping1 .bjd_close {\n    position: absolute;\n    right: 0px;\n    top: 0px;\n  }\n  #identity-add-new-address #enterAddressFullNameContainer{\n    position: relative;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 19981:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABgNJREFUWEe9l0tsVlUQx39zPhAVC5gACS5AXTSagC7qyhStRgsopSb4KopxISVoYpSayKMEFiCNRuNCiHxUE4P2SypqUutrgyiElTVGWBhcEFiAiY30AYWF6ZE5c8592FZx402+3Pvde+7Mf/4z/zlzhas4/CrquEw9lWlNeN8AsgAndUh4eQTnfmWck4gMSP/lw1dhMltiJqY4zLFrQ0R/dWGZ4O0sei24ZCKeHWcR+nGVz+XTsXP/BmZKAP7BShvQToUb1FPw6KK5zKeC0J/36MOwzIcbODmHk6ocHOv/JxCTAvDLXAfQlhlVCynSiCWyESgJR6UATgIYj1fQviYHL705FYgJAHyz2w60WDQasgQcyU+kXtMQcpA9C06ViYjWpVRpoly/9F7YMRmIEoAQuZcnccqrJTwYFdFsK612M0Un4jPaFYA61Tu2zp7ptV3VpPfiBCYyAL650oKIRg9OnWbVFY14BWBR56AKzMQCyZ2r7TJo4S2pXawVmTCoy1iAr+xD5KaM6sxQiB4eeAbmL4JDBzy/n7ZCCxFGSeTqMIYSayFncZ0wwoVrW6VvcDSBMADNrh0n67JKy3JuAdP6Ijz3hr1z4ghsa/ZW7alOojyTUzsXJRsBe1VSVT68UC0DWD6tD1EWotQC6Cz38FI33L/W3jn1E3TcHSVX7An2UqiQlNjAojIVwTqNzI8yMmNVYkH88mlNCBZeQm70SmKPW++Erb0wczb0vQO9O8G5YsFlrSLSHSVYKNIiWxVZLx8MD4Rb/iG3ER+6XUIeC6eUO4t+5o1waTiyl0nQ8p0OVcLNdwjPvA63N8LYMPx+Bs4ch+974ORR8FKTA0NBEeJXTN+H0JCaXWTCzJX0H29k+o7STM5D4UFwvu0ruH52hql08ctR+ODlk9L1wxoD8PD0QyCzYtHkHcequ6zzcKtQ4blze++WJWTOv9kLn3TZegW1dA3c1ghzF6qVURG5zzysvOYHaywx51m/V+dK7bh1xNR8Kolt7QtOQk/Q4p2/ELqOWeSf7YZPu/JU6Rpdq8+WbYDWV9X0XWUAZb3ay+Y4piNuPD42pCzrQnCutM9bCBr5h5tz1lUJaf+wXiG0bkIe2RQBtMz4FqiLDSVKJkZvHc/UUaa/nKpdx4z+08ehs3Fy5/Z+ajWj8t75mIKWa3pwUh8dwLybYdYcOPVzId8m8XwjSgoRz9ouYcXzMHgGdq20sxZq0FTsJ8W9xYW+8KN0n19vKVg1owNHG4vvhSc6YfFSi+DwAeh9zQyGXU93ushl2gtWvABru0xqWxuj83wfi4DzHTWxgNSk+48ow23NDTzeuS9zPDYEF4dh3iID8vEu+HIvXBrJpalX8xd53j5h3j7aDF/vLcwMWeRxdCpI2h69It1DYXQT772OWn2MDdXRvwc+3wOzZnse2yI0xfarjeTgLjjSYyA0TZ1f5EXXsyUWbSr8WLD6N6lK27Af1/9npXp+VSoU24xqO9v5Yk87l2OXS41Nq3u7Vndk47uP4LMuWL2ZoGtNz8YleSe0IoszY2ztOe3ewLj9Uh3822akw+f06/rC4JkkE16M+Xx4A6zeahrXfOtZne+ORZfJLNRJeVIKdmIfEc7hZb1UB7NhNVOzXz2zDec7QgSxhq344m6mGlcQGrke+5+Hoz3lTSgNqGlXVdoL28QVBnbIu4OlITXfRDQVj87soCI6DedTT8qjjl9q7Z6n7NmR2sTNK5uOvT1zaVJNGadapD/LTvZYQTx5w3aEFryO1qFCdKjMO6JaTu3Yho5UeTlblhId1UsBxoUlEJMtwD9e18E03xbne50qzVjxu8BSbayUvhdiyqYGoDgyEJMCCHG31bVQYR2EObFY6XHeSw0nDLD5B4lOP8bYCMh+PCrz9iLLRSamBBBAPH39ApjeQsWvBHeT1UZSR/w0KH6QhHpxozpw8Cc1ed+GT98+VwFMBDHO+n8EUKqNZ+c04WmgIvV46nEhMm0sI3j57crHzAC4w/qRmhyX3p8cRPWqAUxC4X++NYEJz5r/FUBIx7q59QhNjDMg3YMDfwFVcudXJaS4eAAAAABJRU5ErkJggg==";

/***/ }),

/***/ 20028:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, pages = $data.pages, productW = $data.productW, $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, imgLoad = $data.imgLoad, width = $data.width;
    $$out += '<div id="gwdang-b2c_fuzzy-dp-detail" class="panel gwd_compare top-compare-detail top-bar-detail">\n  <div class="panel-wrap">\n    <div class="b2c-pages blkcolor4">\n      第 \n      <span class="current-page" id="b2c-current-page">1</span>\n       页\uFF0C共 \n       <span class="page-num blkcolor4" id="b2c-page-num">';
    $$out += $escape(pages);
    $$out += '</span>\n        页\n    </div>\n    <div class="left-page turn-page" style="left:10px;">\n      <a id="fuzzy-prev-page" target="_self" title="上一页" class="gwd_bg"></a>\n    </div>\n    <div class="all-products" style="width:';
    $$out += $escape(productW);
    $$out += 'px">\n      <ul id="b2c-item-list">\n        ';
    $each(data.product, function ($value, $index) {
        $$out += '\n          <li id="b2c_fuzzy-prod-item-';
        $$out += $escape($index);
        $$out += '" >\n            <a id="img-';
        $$out += $escape($value.dp_id);
        $$out += '" title="';
        $$out += $escape($value.title);
        $$out += '" target="_blank" class="small-img" href="';
        $$out += $escape($value.url);
        $$out += '">\n              <img src="';
        $$out += $escape(imgLoad);
        $$out += '" data-original="';
        $$out += $escape($value.img_url);
        $$out += '" id="dp-image-small-';
        $$out += $escape($value.dp_id);
        $$out += '" class="gwdang-lazy">\n            </a>\n            <a target="_blank" class="b2c-other-info"  href="';
        $$out += $escape($value.url);
        $$out += '">\n              <div class="priceinfo-box">\n                <div class="center-box">\n                  <span class="gwd-price prifontf">';
        $$out += $escape($value.unit ? $value.unit : '\xA5');
        $$out += $escape($value.price_rmb ? $value.price_rmb : $value.price);
        $$out += '</span>\n                  ';
        if ($value.promo2) {
            $$out += '\n                  <span class="dp-promotion gwd_bg">\n                    <div class="dp-promotion-detail">\n                      ';
            $each($value.promo2, function ($value, $index) {
                $$out += '\n                        <span class="dp-pro-item">';
                $$out += $escape($value);
                $$out += '</span>\n                      ';
            });
            $$out += '\n                    </div>\n                  </span>\n                  ';
        }
        $$out += '\n                  ';
        if ($value.coupon2) {
            $$out += '\n                  <span class="dp-coupon gwd_bg">\n                    <div class="dp-coupon-detail">\n                      ';
            $each($value.coupon2, function ($value, $index) {
                $$out += '\n                        <span class="dp-coupon-item">';
                $$out += $escape($value);
                $$out += '</span>\n                      ';
            });
            $$out += '\n                    </div>\n                  </span>\n                  ';
        }
        $$out += '\n                  ';
        if ($value.yushou2) {
            $$out += '\n                  <span class="dp-yushou gwd_bg">\n                    <div class="dp-yushou-detail">\n                      ';
            $each($value.yushou2, function ($value, $index) {
                $$out += '\n                        <span class="dp-pro-item">';
                $$out += $escape($value);
                $$out += '</span>\n                      ';
            });
            $$out += '\n                    </div>\n                  </span>\n                  ';
        }
        $$out += '\n                </div>\n              </div>\n              \n              <span class="b2c-store blkcolor1">';
        $$out += $escape($value.site_name);
        $$out += '</span>\n              ';
        if ($value.promodom) {
            $$out += '\n              <span id="';
            $$out += $escape($value.dp_id);
            $$out += '_promotion">';
            $$out += $value.promodom;
            $$out += '</span>\n              ';
        }
        $$out += '\n              <span class="b2c-fees blkcolor4">';
        $$out += $escape($value.comment_num ? '评论数:' + $value.comment_num : $value.fee);
        $$out += '</span>\n              <span class="b2c-tle blkcolor1">';
        $$out += $escape($value.title);
        $$out += '</span>\n            </a>\n          </li>\n        ';
    });
    $$out += '\n      </ul>\n    </div>\n    <div class="right-page turn-page">\n      <a role="button" id="fuzzy-next-page" class="gwd_bg" title="下一页"></a>\n    </div>\n  </div>\n  <style type="text/css">\n    #gwdang-b2c_fuzzy-dp-detail {\n      display: none;\n    }\n  #gwdang-b2c_fuzzy-dp-detail .turn-page {\n    width: ';
    $$out += $escape(width);
    $$out += 'px;\n  }\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 20034:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var isCallable = __webpack_require__(94901);

module.exports = function (it) {
  return typeof it == 'object' ? it !== null : isCallable(it);
};


/***/ }),

/***/ 20089:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


module.exports = {
  getString(config, key) {
    let u = 'zh';
    if (G.lang) {
      u = G.lang;
    }
    if (G.ss_name === 'pricedog') {
      u = 'zh-tr';
    }
    return config[key][u];
  }
};

/***/ }),

/***/ 20228:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-row[data-v-ea7ea5c4] {\n  display: flex;\n  flex-direction: row;\n}\n.gwd-inline-row[data-v-ea7ea5c4] {\n  display: inline-flex;\n  flex-direction: row;\n}\n.gwd-column[data-v-ea7ea5c4] {\n  display: flex;\n  flex-direction: column;\n}\n.gwd-inline-column[data-v-ea7ea5c4] {\n  display: inline-flex;\n  flex-direction: column;\n}\n.gwd-align[data-v-ea7ea5c4] {\n  align-content: center;\n  align-items: center;\n}\n.gwd-jcc[data-v-ea7ea5c4] {\n  justify-content: center;\n}\n.gwd-jic[data-v-ea7ea5c4] {\n  justify-items: center;\n}\n.gwd-button[data-v-ea7ea5c4] {\n  outline: none;\n  border: none;\n}\n.bjg-bar-button[data-v-ea7ea5c4] {\n  font-size: 0;\n}\n.bjg-hover-bg[data-v-ea7ea5c4] {\n  background: #fffbef;\n}\n.bjg-bar-button[data-v-ea7ea5c4]:hover {\n  background: #fffbef;\n  cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window[data-v-ea7ea5c4] {\n  display: block;\n}\n.mainbar-fold .bjg-bar-button[data-v-ea7ea5c4],\n.mainbar-fold #top_coupon_btn[data-v-ea7ea5c4],\n.mainbar-fold .rinfo-btn[data-v-ea7ea5c4],\n.mainbar-fold .gwd-bottom-tmall[data-v-ea7ea5c4] {\n  display: none!important;\n}\n.gwd-font12[data-v-ea7ea5c4] {\n  font-size: 12px;\n}\n.gwd-font14[data-v-ea7ea5c4] {\n  font-size: 14px;\n}\n.gwd-red[data-v-ea7ea5c4] {\n  color: #ff3532;\n}\n.gwd-red-bg[data-v-ea7ea5c4] {\n  background: #ff3532;\n}\n.gwd-hui333[data-v-ea7ea5c4] {\n  color: #333333;\n}\n.gwd-hui999[data-v-ea7ea5c4] {\n  color: #999999;\n}\n.gwd-font10[data-v-ea7ea5c4] {\n  font-size: 12px;\n  transform: scale(0.8333);\n  transform-origin: bottom center;\n}\n.gwd-font11[data-v-ea7ea5c4] {\n  font-size: 12px;\n  transform: scale(0.91666);\n  transform-origin: bottom center;\n}\n.gwd-font9[data-v-ea7ea5c4] {\n  font-size: 12px;\n  transform: scale(0.75);\n  transform-origin: bottom center;\n}\n.gwd-hoverable[data-v-ea7ea5c4]:hover {\n  background: #edf1f2;\n}\n.right-info > *[data-v-ea7ea5c4] {\n  border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit[data-v-ea7ea5c4]:hover {\n  color: #e03024 !important;\n}\n.gwd-button[data-v-ea7ea5c4]:hover {\n  filter: brightness(1.1);\n}\n.gwd-button[data-v-ea7ea5c4] {\n  padding-top: 1px;\n  padding-bottom: 1px;\n}\n.gwd-button[data-v-ea7ea5c4]:active {\n  filter: brightness(0.9);\n}\n.gwd-fadeout-5s[data-v-ea7ea5c4] {\n  opacity: 0;\n  transition: opacity 5s;\n}\n.gwd-scrollbar[data-v-ea7ea5c4]::-webkit-scrollbar {\n  width: 6px;\n  border-radius: 17px;\n}\n.gwd-scrollbar[data-v-ea7ea5c4]::-webkit-scrollbar-thumb {\n  border-radius: 17px;\n  background: #999;\n}\n#gwdang_main[data-v-ea7ea5c4],\n.gwdang-main[data-v-ea7ea5c4],\n.bjgext-detail[data-v-ea7ea5c4] {\n  font-size: 12px;\n}\n#gwdang_main button[data-v-ea7ea5c4],\n.gwdang-main button[data-v-ea7ea5c4],\n.bjgext-detail button[data-v-ea7ea5c4] {\n  text-align: center;\n}\n.gwd-width-100[data-v-ea7ea5c4] {\n  width: 100%;\n}\n.gwd-overlay[data-v-ea7ea5c4] {\n  font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n  font-size: 0;\n  position: fixed;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  background: rgba(0, 0, 0, 0.35);\n  z-index: 999999999;\n}\n.gwd-font-pfm[data-v-ea7ea5c4] {\n  font-family: 'PingFangSC-Medium';\n  font-weight: normal!important;\n}\n@font-face {\n  font-family: 'PingFangSC-Medium';\n  src: local('PingFangSC-Medium');\n}\n.gwd-font-pfm[data-v-ea7ea5c4] {\n  font-family: local('PingFangSC-Medium'), system-ui;\n  font-weight: bold;\n}\n#gwd_minibar svg[data-v-ea7ea5c4],\n.gwdang-main svg[data-v-ea7ea5c4],\n#bjgext_mb_bg svg[data-v-ea7ea5c4],\n#bjgext_mainbar svg[data-v-ea7ea5c4] {\n  fill: transparent;\n}\n.gwd-common-font[data-v-ea7ea5c4] {\n  font-family: 'PingFang SC', 'Microsoft YaHei', '\\5FAE\\8F6F\\96C5\\9ED1', 'Hiragino Sans GB', 'WenQuanYi Micro Hei';\n}\n.gwd-switch[data-v-ea7ea5c4] {\n  position: relative;\n  display: inline-block;\n  width: 40px;\n  height: 22px;\n  box-sizing: border-box !important;\n}\n.gwd-switch input[data-v-ea7ea5c4] {\n  opacity: 0;\n  width: 0;\n  height: 0;\n}\n.gwd-switch .gwd-slider[data-v-ea7ea5c4] {\n  position: absolute;\n  cursor: pointer;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  background-color: #bfbfbf;\n  border-radius: 16px;\n}\n.gwd-switch .gwd-slider[data-v-ea7ea5c4]::before {\n  position: absolute;\n  content: \"\";\n  height: 18px;\n  width: 18px;\n  left: 2px;\n  bottom: 2px;\n  background-color: white;\n  border-radius: 50%;\n}\n.gwd-switch input:checked + .gwd-slider[data-v-ea7ea5c4] {\n  background-color: #48befe;\n}\n.gwd-switch input:checked + .gwd-slider[data-v-ea7ea5c4]::before {\n  -webkit-transform: translateX(18px);\n  -ms-transform: translateX(18px);\n  transform: translateX(18px);\n}\n.gwd-allow-animation .gwd-slider[data-v-ea7ea5c4],\n.gwd-allow-animation .gwd-slider[data-v-ea7ea5c4]::before {\n  -webkit-transition: 0.2s;\n  transition: 0.2s;\n}\n", ""]);

// exports


/***/ }),

/***/ 20363:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-minibar-bg {\n  font-size: 12px;\n}\n.gwd-mini-placeholder {\n  display: none;\n}\n.gwd-minibar-element {\n  border-left: 1px solid #e8e8e8;\n  border-right: 1px solid #e8e8e8;\n  border-bottom: 1px solid #e8e8e8;\n}\n.gwd-minibar-element:last-of-type {\n  border-bottom: 1px solid #e8e8e8;\n}\n.gwd-collection-mini {\n  display: none;\n  /*display: flex;*/\n  width: 462px;\n  height: 251px;\n  background: white;\n  border-radius: 2px;\n  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1);\n  border: 1px solid #e6e9eb;\n  position: absolute;\n  top: 36px;\n  left: -1px;\n  z-index: 30001;\n  box-sizing: border-box;\n  cursor: default;\n  overflow: visible;\n}\n#gwd_mini_remind:hover .gwd-collection-mini {\n  display: flex;\n}\n", ""]);

// exports


/***/ }),

/***/ 20397:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var getBuiltIn = __webpack_require__(97751);

module.exports = getBuiltIn('document', 'documentElement');


/***/ }),

/***/ 20408:
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_style_index_2_id_40244662_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50921);
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_style_index_2_id_40244662_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_style_index_2_id_40244662_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0__);


/***/ }),

/***/ 20669:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


let communicate = __webpack_require__(79560);
let globalData, callbacks;
const buildInfo = () => {
  let obj = {
    type: 'json',
    browser: 'chrome',
    ver: '6.1',
    style_show_type: null,
    style_ADID: null,
    currency: null,
    language: 'english',
    r: 0.7196959139817531,
    url: location.href
  };
  let str = `type=${obj.type}&browser=${obj.browser}&ver=${obj.ver}&style_show_type=undefined&style_ADID=undefined&currency=undefined&language=${obj.language}&r=${obj.r}&url=${encodeURIComponent(location.href)}`;
  return str;
};
const getPriceStatusNew = data => {
  var price_status = 0;
  var price_num = data.length;
  let lowest = Math.min.apply(void 0, data);
  var price_last = data[price_num - 1];
  let islowest = false;
  var change_range = 180;
  let time_length = 0;
  for (let i = data.length - 1; i >= 0; i--) {
    var now_price = data[i];
    if (i > 0) {
      time_length += 1;
    }
    if (now_price == 0) {
      continue;
    }
    if (price_last == now_price) {
      if (time_length > 180) {
        break;
      }
      continue;
    } else if (parseFloat(price_last) > parseFloat(now_price) && i >= price_num - change_range - 1) {
      price_status = 1;
      break;
    } else if (parseFloat(price_last) < parseFloat(now_price)) {
      price_status = -1;
      if (price_last === lowest) islowest = true;
      break;
    }
  }
  return {
    price_status: price_status,
    islowest: islowest,
    price_last: price_last
  };
};
const renderData = data => {
  const getDataFromTime = time => {
    for (let i = 0; i < data.length - 1; i++) {
      if (time >= Number(data[i]['time_update']) * 1000 && time < Number(data[i + 1]['time_update']) * 1000) {
        return data[i].price;
      }
    }
    return data[data.length - 1].price;
  };
  const oneHour = 3600000;
  const oneDay = 24 * oneHour;
  let lowestPrice = Number(globalData.lowest_pice.price);
  let highestPrice = lowestPrice;
  let startTime = Number(data[0].time_update) * 1000;
  let startD = new Date(startTime).getDate();
  let startM = new Date(startTime).getMonth();
  let startY = new Date(startTime).getFullYear();
  let allLine = [];
  let now_day = new Date();
  let current_price = data[data.length - 1].price;
  for (let i = 0; i < data.length; i++) {
    if (Number(data[i].price) > highestPrice) highestPrice = Number(data[i].price);
  }
  let price_range = lowestPrice + '-' + highestPrice;
  let start = startTime;
  while (start <= now_day.getTime()) {
    let s = getDataFromTime(start);
    allLine.push(parseFloat(s));
    start += oneDay;
  }
  let result = getPriceStatusNew(allLine);
  let price_status = result.price_status;
  let year_line = null;
  if (allLine.length >= 365) {
    year_line = allLine.slice(allLine.length - 365);
  }
  let month_line = null;
  if (allLine.length >= 31) {
    month_line = allLine.slice(allLine.length - 31);
  }
  let short_day_line = null;
  if (allLine.length >= 6) {
    let dayline = allLine.slice(allLine.length - 6);
    short_day_line = [];
    for (let i = 0; i < dayline.length - 1; i++) {
      let newArr = [];
      for (let n = 0; n < 24; n++) {
        newArr.push(dayline[i]);
      }
      short_day_line = short_day_line.concat(newArr);
    }
    short_day_line.push(dayline[dayline.length - 1]);
  }
  let price_trend = {
    "price_status": price_status,
    "startD": startD,
    "startM": startM,
    "startY": startY,
    "now_day": now_day.getTime(),
    "extra": 'start from another',
    "store": [{
      "current_price": current_price,
      "all_line": allLine,
      "all_line_begin_time": startTime + 8 * oneHour,
      "year_line": year_line,
      "year_line_time": now_day.getTime() - 365 * oneDay,
      "month_line": month_line,
      "month_line_time": now_day.getTime() - 30 * oneDay,
      "short_day_line": short_day_line,
      "short_day_line_begin_time": now_day.getTime() + 8 * oneHour - 5 * oneDay,
      "min_stamp": "0",
      "islowest": 0,
      "name": 'aliexpress',
      "price_range": price_range,
      "promo": [],
      "all_equal_short": false
    }]
  };
  return price_trend;
};
module.exports.init = () => {
  let str = buildInfo();
  communicate.on(data => {
    if (typeof data === 'string') {
      data = JSON.parse(data);
    }
    if (data.type === 'aliexpress') {
      globalData = JSON.parse(data.value);
      if (globalData.price_tracking) {
        globalData.price_tracking = renderData(globalData.price_tracking);
        if (callbacks) callbacks(globalData.price_tracking);
      }
    }
  });
  communicate.trigger({
    type: 'aliexpress',
    url: 'https://plugin.aliprice.com/plugin/chrome_v07.php?' + str
  });
};
module.exports.getTrendData = callback => {
  if (globalData) callback(globalData);else callbacks = callback;
};

/***/ }),

/***/ 20744:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, $escape = $imports.$escape;
    $$out += '  <ul>\n    ';
    $each(data, function ($value, $index) {
        $$out += '\n      <li class="li_';
        $$out += $escape($index);
        $$out += '">\n        <span>';
        $$out += $escape($value.promokeys);
        $$out += '</span>\n        <a href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank" title="';
        $$out += $escape($value.title);
        $$out += '">';
        $$out += $escape($value.title);
        $$out += '</a>\n      </li>\n    ';
    });
    $$out += '\n  </ul>\n  <em class="promo_shuxian"></em>';
    return $$out;
};

/***/ }),

/***/ 20879:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(26910);
let request = __webpack_require__(49388);
let template = __webpack_require__(26133);
var specialFilter = __webpack_require__(22480);
let calWidth = __webpack_require__(42869);
const replaceHref = __webpack_require__(26152);
module.exports.init = function (data) {
  if (G.save_tbres_data != null) {
    this.renderTbres(G.save_tbres_data);
    return;
  }
  var $this = this;
  var code_server = '1';
  var msg = data.exact_arr;
  var code = data['code-server'];
  var price = data.now.price * 100;
  if (!price) {
    price = G.dp.price * 100;
  }
  if (!code) {
    code = {};
    code_server = '0';
  }
  var sitearr = ['amazon', '6pm', 'ebay'];
  if (sitearr.indexOf(G.site) > -1) {
    price = G.dp.price * 100;
  }
  /*日亚 美亚 德亚 在没有品牌的情况下  不请求淘宝客*/
  if (G.site == 'amazon' && !msg.brand && data.now.site_id !== '1') return;
  G.dp.min_price = parseInt(G.dp.min_price * 100);
  G.dp.max_price = parseInt(G.dp.max_price * 100);
  var url = `${G.server}/brwext/tbres?union=${G.union}&url=${encodeURIComponent(msg.url)}&site=${msg.site}&isbn=${msg.isbn}&keywords=${encodeURIComponent(msg.keywords)}&brand=${encodeURIComponent(msg.brand)}&type=${encodeURIComponent(msg.type)}&price=${price}&class_id=${msg.class_id}&name=${encodeURIComponent(G.dp.name)}&code_brand_id=${code.brand_id}&code_clean_title=${encodeURIComponent(code.clean_title)}&code_code=${encodeURIComponent(code.code)}&code_display_brand=${encodeURIComponent(code.display_brand)}&code_brand=${encodeURIComponent(code.brand)}&code_class_id=${encodeURIComponent(code.class_id)}&code_price=${encodeURIComponent(code.price)}&code_spec=${encodeURIComponent(code.spec)}&code-server=${code_server}`;
  request.get(url).then(mm => {
    if (G.site == 'taobao' || G.site == 'tmall' || G.site == 'ai-taobao') {
      $this.getUniqPid(mm, mm => {
        G.save_tbres_data = mm;
        $this.renderTbres(mm);
      });
    } else {
      $this.getImgSearch(mm, mm => {
        G.save_tbres_data = mm;
        $this.renderTbres(mm);
      });
    }
  }).fail(() => {
    if (G.style == 'right') {
      $('#plt-tmall-block').hide();
      $('#plt-taobao-block').hide();
    }
  });
};
module.exports.renderTbres = function (mm) {
  (__webpack_require__(49042).init)(mm.tmall.product, 'tmall');
  (__webpack_require__(49042).init)(mm.taobao.product, 'taobao');
  mm.tmall = specialFilter.tb(mm.tmall);
  mm.taobao = specialFilter.tb(mm.taobao);
  if (G.style == 'top') {
    this.show_taobao_products_top(mm);
    G.fixWidth();
  }
};
module.exports.show_taobao_products_top = function (data) {
  //tmall
  //  from_self 如果为true 说明是用的我们自己的数据， 这个时候销量就是全部的销量 需要改一下。
  debugger;
  let widthObj = calWidth.init();
  var sale_tle = "最近销量";
  if (data.from_self === true) sale_tle = "总销量";
  if (G.lang === 'en') {
    sale_tle = 'Sales: ';
  }
  let tmhtml = __webpack_require__(82059);
  if (typeof data.tmall.min_price != 'undefined' && data.tmall.min_price !== null) {
    if (data.search.is_exact == 0 && G.site.indexOf('taobao') >= 0) {
      var html = $(`#${G.extName}-tmall-dp`).html();
      html = html.replace(/\u5929\u732b/ig, `天猫相似款`);
      $(`#${G.extName}-tmall-dp`).html(html);
    }
    replaceHref.init('tmall', data.tmall.product, '&column=b2c');
    $(`#${G.extName}-tmall-dp .gwd-price`).html(`&yen;` + data.tmall.min_price);
    $(`#${G.extName}-tmall-dp`).show();
    $(`#${G.extName}-tmall-dp-detail`).append(template.compile(tmhtml)({
      data: data.tmall.product,
      s_server: G.s_server,
      width: widthObj.turnpW,
      link: data.tmall.more_link,
      sale_tle: sale_tle,
      allProductW: widthObj.allProductW
    }));
    $('#tmall-prev-page').click(function () {
      G.change_page('tmall', -1);
    });
    $('#tmall-next-page').click(function () {
      G.change_page('tmall', 1);
    });
  }

  //taobao
  if (typeof data.taobao.min_price != 'undefined' && data.taobao.min_price !== null) {
    if (data.search.is_exact == 0 && G.site.indexOf('taobao') >= 0) {
      var html = $(`#${G.extName}-taobao-dp`).html();
      html = html.replace(/\u6dd8\u5b9d/ig, `淘宝相似款`);
      $(`#${G.extName}-taobao-dp`).html(html);
    }
    let tbhtml = __webpack_require__(81376);
    replaceHref.init('taobao', data.taobao.product, '&column=b2c');
    $(`#${G.extName}-taobao-dp .gwd-price`).html('&yen;' + data.taobao.min_price);
    $(`#${G.extName}-taobao-dp`).show();
    $(`#${G.extName}-taobao-dp-detail`).append(template.compile(tbhtml)({
      data: data.taobao.product,
      s_server: G.s_server,
      width: widthObj.turnpW,
      link: data.taobao.more_link,
      allProductW: widthObj.allProductW
    }));
    $('#taobao-prev-page').click(function () {
      G.change_page('taobao', -1);
    });
    $('#taobao-next-page').click(function () {
      G.change_page('taobao', 1);
    });
  }

  /*if (data.search.keywords == '') {
      data.search.keywords = G.dp.name;
  }*/
  if (G.site === 'vipshop') {
    $(`#${G.extName}-search-product`).val(G.dp.cat_name || G.save_dp_query.now.coreword);
  } else {
    if (data.search.keywords == `` && G.dp.isbn != ``) {
      $(`#${G.extName}-search-product`).val(G.dp.isbn);
    }
    if (data.search.keywords != ``) {
      $(`#${G.extName}-search-product`).val(data.search.keywords);
    }
  }
  G.init_item_list('tmall');
  G.set_item_args('tmall');
  G.set_page_args('tmall');
  G.load_image('tmall', 0, G.page_size);
  G.init_item_list('taobao');
  G.set_item_args('taobao');
  G.set_page_args('taobao');
  G.load_image('taobao', 0, G.page_size);
};
module.exports.getImgSearch = function (msg, callback) {
  let buildTaobaoUrl = __webpack_require__(77342);
  msg = buildTaobaoUrl.buildCommon(msg);
  if (G.btype == 'luyou') {
    callback(msg);
    return;
  }
  let dataShare = __webpack_require__(34810);
  let brandId = dataShare.get('dp_data') && dataShare.get('dp_data')['exact_arr']['brand_id'];
  if (G.site == '360buy' && brandId && (!msg.taobao.sort || !msg.tmall.sort)) {
    // 在京东有brand 有比价结果的情况下， 不走图片检索
    callback(msg);
    return;
  }
  (__webpack_require__(80339).init)(data => {
    if (data) {
      if (msg.tmall.sort) msg.tmall = {};
      if (data.tmall.length > 0) {
        msg.tmall.min_price = data.tmall[0].price;
        msg.tmall.max_price = data.tmall[data.tmall.length - 1].price;
        msg.tmall.store = data.tmall;
        msg.tmall.product = data.tmall;
      }
      if (data.taobao.length > 0) {
        msg.taobao.product = data.taobao;
        msg.taobao.store = data.taobao;
        msg.taobao.min_price = data.taobao[0].price;
        msg.taobao.max_price = data.taobao[data.taobao.length - 1].price;
      }
      if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union;
      if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union;
      callback(msg);
    } else {
      callback(msg);
    }
  });
};
module.exports.getUniqPid = function (msg, callback) {
  let buildTaobaoUrl = __webpack_require__(77342);
  msg = buildTaobaoUrl.buildCommon(msg);
  if (G.btype == 'luyou') {
    callback(msg);
    return;
  }
  (__webpack_require__(19778).getTaobaouniqData)(data => {
    if (data) {
      if (msg.tmall.sort) msg.tmall = {};
      if (data.tmall.length > 0) {
        msg.tmall.min_price = data.tmall[0].price;
        msg.tmall.max_price = data.tmall[data.tmall.length - 1].price;
        msg.tmall.store = data.tmall;
        msg.tmall.product = data.tmall;
      }
      if (data.taobao.length > 0) {
        msg.taobao.product = data.taobao;
        msg.taobao.store = data.taobao;
        msg.taobao.min_price = data.taobao[0].price;
        msg.taobao.max_price = data.taobao[data.taobao.length - 1].price;
      }
      if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union;
      if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union;
      callback(msg);
    } else {
      callback(msg);
    }
  });
};

/***/ }),

/***/ 21052:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, data = $data.data;
    $$out += '<a href="';
    $$out += $escape(data.url);
    $$out += '" target="_blank" id="amazon_global" >\n  <span>中亚海外购:</span>\n  <span class="ht_getprice_num prifontf">\n    ';
    $$out += $escape(data.price);
    $$out += '\n  </span>\n</a>';
    return $$out;
};

/***/ }),

/***/ 21094:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "a[data-v-12202de2] {\n  color: #ff4449;\n}\nbutton[data-v-12202de2] {\n  width: 94px;\n  height: 32px;\n  border-radius: 29px;\n  opacity: 1;\n  border: 1px solid rgba(64, 69, 81, 0.3);\n  background-color: transparent;\n  font-size: 14px;\n  text-align: center;\n  color: #666666;\n  cursor: pointer;\n  margin-left: 28px;\n  margin-right: 28px;\n}\n.gwd-red[data-v-12202de2] {\n  border: 1px solid #ff4449;\n  color: #ff4449;\n}\n.gwd-permission-hint[data-v-12202de2] {\n  width: 303px;\n  height: 36px;\n  line-height: 36px;\n  text-align: center;\n  background: #fff9ed;\n  font-size: 13px;\n  color: #ff9706;\n  margin-top: -50px;\n  margin-bottom: 57px;\n  border-radius: 8px;\n}\n.gwd-bjg .gwd-red[data-v-12202de2] {\n  border: 1px solid #ff9706;\n  color: #ff9706;\n}\n", ""]);

// exports


/***/ }),

/***/ 21323:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _default = exports.A = {
  props: ['data', 'domclass', 'aliSite']
};

/***/ }),

/***/ 21770:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.T = void 0;
__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(62953);
var _Coupon = _interopRequireDefault(__webpack_require__(55391));
const request = __webpack_require__(49388);
const extConsole = __webpack_require__(7129);
const sleep = (__webpack_require__(60340).sleep);
const components = [];
const shopItemAndDOM = {
  'jd': () => {
    const doms = document.querySelectorAll('.item-item');
    return Array.from(doms).map(dom => {
      const skuId = dom.getAttribute('data-sku');
      const insertPoint = $(dom).find('.cell.p-quantity');
      const productInfo = {
        price: $(dom).find('.p-price-cont').text().replace('￥', '').replace(',', '')
      };
      return {
        skuId,
        insertPoint,
        productInfo
      };
    });
  },
  'taobao': () => {
    const doms = document.querySelectorAll('.item-content');
    $('#content').css('position', 'relative');
    (__webpack_require__(60340).appendCss)(`
    .gwdang-coupon-mount-point {
      left: 775px;
    }
    
    @media only screen and (min-width: 1441px) {
      .gwdang-coupon-mount-point {
        left: 885px;
      }
    }
    `);
    new MutationObserver((mutations, observer) => {
      extConsole.log('[cart el] mutation:', mutations);
      components.forEach(component => {
        component.$refs.coupon.checkPosition();
      });
    }).observe(document.getElementById('J_OrderList'), {
      childList: true,
      subtree: true
    });
    return Array.from(doms).map(dom => {
      // const id = $(dom).parents('.item-body').attr('id')
      const a = $(dom).find('.item-pic a');
      const skuId = a.attr('href').split('id=')[1] + (a.attr('href').includes('.tmall.com') ? '-83' : '-123');
      // const skuId = id.replace('J_Item_', '')

      const placeHolder = $(dom).find('.td.td-sum');
      const el = document.createElement('div');
      placeHolder.append(el);
      el.id = 'gwdang-coupon-' + $(dom).parents('.item-body').attr('id');
      const mountPoint = document.createElement('div');
      mountPoint.style.position = 'absolute';
      mountPoint.classList.add('gwdang-coupon-mount-point');
      mountPoint.style.top = `${el.offsetParent.offsetTop + 40}px`;
      // mountPoint.style.left = `${leftPoint}px`
      $('#content').append(mountPoint);
      const insertPoint = $(mountPoint);
      const lazyloadImg = $(dom).find('.td-item .item-pic img.itempic').attr('lazyload');
      const addHTTPS = url => url.includes('https') ? url : `https:${url}`;
      const productInfo = {
        title: $(dom).find('.item-title').text().replace(/【[^】]*】/g, ''),
        price: parseFloat($(dom).find('.price-now').text().replace('￥', '')),
        shopName: $(dom).parents('.J_Order').find('.shop-info .J_MakePoint').text(),
        img: addHTTPS(lazyloadImg ? lazyloadImg : $(dom).find('.td-item .item-pic img.itempic').attr('src')).split('_80x80')[0]
      };
      if (!productInfo.shopName.endsWith('店')) {
        productInfo.shopName += '店';
      }
      // remove all【 】before product.title

      return {
        skuId,
        insertPoint,
        productInfo,
        elId: el.id
      };
    });
  }
};
const getCouponAndRedpack = {
  'jd': async (id, productInfo) => {
    const couponRes = await request.get(request.makeUrl(G.server, '/extension/Coupon', {
      dp_id: id + '-3',
      url: `https://item.jd.com/${id}.html`,
      ...productInfo
    }));
    if (couponRes.coupon) {
      return {
        value: couponRes.coupon,
        type: 'coupon',
        link: couponRes.click_url
      };
    } else {
      const queryParams = {
        dp_id: id + '-3',
        url: `https://item.jd.com/${id}.html`,
        ...productInfo,
        rebate: 1
      };
      try {
        const duomaiData = await request.rawGet(`https://u.gwdang.com/gyp/jd/item?id=${id}`);
        queryParams.rate = (parseFloat(duomaiData.commission_rate) * 100).toFixed(2);
      } catch (e) {
        extConsole.warn('duomai fail');
      }
      const redpackRes = await request.get(request.makeUrl(G.server, '/extension/Coupon', queryParams));
      if (redpackRes.rebate) {
        return {
          value: redpackRes.rebate,
          type: 'redpack',
          link: redpackRes.url
        };
      } else {
        return null;
      }
    }
  },
  'taobao': async (id, productInfo) => {
    return null;
  }
};
const domRequired = {
  'jd': () => {
    return document.querySelector('.item-item');
  },
  'taobao': () => {
    return false;
    // return document.querySelector('.cart-table-th') && !$('#J_Loading').length
  }
};
const autoClick = {
  'jd': async () => {
    const btns = $('.shop-coupon-btn').toArray();
    for (let btn of btns) {
      btn.click();
      await Promise.race([(__webpack_require__(30888).waitForConditionFn)(() => $('.coupon-btn').length), sleep(500)]);
      $('.coupon-btn').click();
      await sleep(100);
    }
  },
  'taobao': async () => {
    const btns = $('.shop-coupon-trigger').toArray();
    for (let btn of btns) {
      btn.scrollIntoViewIfNeeded();
      btn.click();
      extConsole.log('[autoclicker] waitting for coupon');
      await Promise.race([(__webpack_require__(30888).waitForConditionFn)(() => $('.coupon-op').length), sleep(500)]);
      extConsole.log('[autoclicker] coupon got');
      const coupons = $('.coupon-op span').toArray();
      for (let coupon of coupons) {
        coupon.click();
        extConsole.log('[autoclicker] coupon clicked', coupon);
        await sleep(2000);
      }
      await sleep(100);
    }
  }
};
const init = async () => {
  if (!(location.href.includes('cart.taobao.com/cart.htm') || location.href.includes('cart.jd.com/cart_index'))) return;
  G.site = location.href.includes('cart.taobao.com/cart.htm') ? 'taobao' : 'jd';
  await (__webpack_require__(30888).waitForConditionFn)(domRequired[G.site]);
  if (location.href.includes('autoclick')) {
    // autoClick[G.site]()
  } else {
    const ifr = document.createElement('iframe');
    document.body.appendChild(ifr);
    ifr.src = location.href + '#autoclick';
    ifr.style.display = 'none';
    ifr.style.position = 'fixed';
    ifr.style.top = '0';
    ifr.style.right = '0';
    ifr.style.width = '50%';
    ifr.style.height = '100%';
    ifr.style.zIndex = '999';
    ifr.style.border = '1px solid black';
    const items = shopItemAndDOM[G.site]();
    for (let item of items) {
      const {
        skuId,
        insertPoint,
        productInfo,
        elId
      } = item;
      const couponAndRedpack = await getCouponAndRedpack[G.site](skuId, productInfo);
      if (couponAndRedpack) {
        const {
          value,
          type,
          link
        } = couponAndRedpack;
        const el = document.createElement('div');
        insertPoint.append(el);
        const comp = new Vue({
          el: el,
          render: h => h(_Coupon.default, {
            props: {
              value,
              type,
              link,
              id: elId
            },
            ref: 'coupon'
          })
        });
        extConsole.log('comp', comp);
        components.push(comp);
      }
    }
  }
};
exports.T = init;

/***/ }),

/***/ 21878:
/***/ ((__unused_webpack_module, exports) => {

/**
 * Check if QR Code version is valid
 *
 * @param  {Number}  version QR Code version
 * @return {Boolean}         true if valid version, false otherwise
 */
exports.isValid = function isValid (version) {
  return !isNaN(version) && version >= 1 && version <= 40
}


/***/ }),

/***/ 21939:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


const getQRCode = __webpack_require__(95554);
module.exports = {
  data() {
    return {
      qrcode: '',
      error: false,
      logged: false,
      loading: false,
      site: location.hostname.indexOf('.jd.com') > -1 ? 'jd' : 'taobao',
      payload: {}
    };
  },
  methods: {
    goLink() {
      if (this.qr) return;
      (__webpack_require__(5300).log)(this.site + 'GiftMoney:click');
      if (this.url) {
        window.open(this.url);
      }
    },
    over() {
      if (!this.qr) return;
      if (this.qrcode) return;
      if (this.loading) return;
      this.loading = true;
      let payload = {
        id: G && G.dp ? G.dp.itemId : this.id,
        amount: this.value,
        title: '',
        _type: 'rebate'
      };
      if (this.price) {
        payload.price = this.price;
        payload.tip = this.price;
      }
      if (this.tag) {
        payload._tag = this.tag;
      }
      this.payload = payload;
      getQRCode(payload, '', res => {
        if (res[0].etag) {
          this.error = true;
          return;
        } else {
          this.error = false;
        }
        this.qrcode = res[0].imgSrc;
        if (!this.logged) {
          (__webpack_require__(5300).log)(this.site + 'GiftMoney:hover');
          (__webpack_require__(5300).log)(this.site + 'GiftMoney:-hover');
          if (this.oldPatch) {
            (__webpack_require__(5300).log)(this.site + 'GiftMoney:hover-oldPatch');
          }
          this.logged = true;
        }
      });
    }
  }
};

/***/ }),

/***/ 21992:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


//添加基本的参数配置和函数
__webpack_require__(71617);
G.extend({
  union: "union_gwdang",
  chrome_extension: false,
  from_device: "chrome",
  crc64: true,
  show_tip: 1,
  show_wishlist: 1,
  show_guess: 1,
  show_mainbar: 1,
  show_promo: 1,
  set_force: false,
  extBrand: 'gwd',
  extName: 'gwdang',
  default_style: 'top',
  ut: '&trans=1',
  p_id: '',
  is_open: 0,
  position: 0,
  style: '',
  notice: 0,
  first: 0,
  fold: 0,
  p_fold: 0,
  pop_share: 1,
  email: '',
  subsite_id: '',
  force: [],
  on_building: true,
  gwd_h: $('head').append,
  built_counter: 0,
  collectionChanged: true,
  gwd_browser_type: 1,
  is_site_page: null,
  href: window.location ? window.location.href : '',
  collectInfo: {
    dp_id: "",
    title: "",
    site_id: 0,
    url: "",
    img: "",
    price: "",
    comment: ""
  },
  now_dp_id: '',
  where_buy_dps: '',
  width: document.documentElement.clientWidth > 0 ? document.documentElement.clientWidth : document.body.clientWidth,
  timer: null,
  timer2: null,
  timer3: null,
  timer4: null,
  timer5: null,
  //fix suning
  timer5_mutex: true,
  //mutex
  height: 0,
  scrollTop: 0,
  page_size: 6,
  page_size_mini: 4,
  page_now: {
    b2c: 1,
    taobao: 1,
    tmall: 1,
    also_buy: 1,
    promotion: 1,
    b2c_fuzzy: 1
  },
  page_total: {
    b2c: 1,
    taobao: 1,
    tmall: 1,
    also_buy: 1,
    promotion: 1,
    b2c_fuzzy: 1
  },
  total_num: {
    b2c: 6,
    taobao: 6,
    tmall: 6,
    also_buy: 6,
    promotion: 6,
    b2c_fuzzy: 6
  },
  module_name: ["b2c", "taobao", "tmall", "also_buy", "promotion", "b2c_fuzzy"],
  dpIsBook: false,
  hiddenFavorButton: false,
  save_tbres_data: null,
  save_promo_len: 0,
  save_price_trend_data: null,
  save_promo_data: null,
  topResizeTimer: null,
  bottomResizeTimer: null,
  gwd_cnzz: 'https://hm.baidu.com/hm.js?d497f0f3c66a6a003b42e676beea8ba0'
});

/***/ }),

/***/ 21998:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.

var utils = __webpack_require__(9805);

var MAXBITS = 15;
var ENOUGH_LENS = 852;
var ENOUGH_DISTS = 592;
//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);

var CODES = 0;
var LENS = 1;
var DISTS = 2;

var lbase = [ /* Length codes 257..285 base */
  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, 0, 0
];

var lext = [ /* Length codes 257..285 extra */
  16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,
  19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78
];

var dbase = [ /* Distance codes 0..29 base */
  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, 0, 0
];

var dext = [ /* Distance codes 0..29 extra */
  16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22,
  23, 23, 24, 24, 25, 25, 26, 26, 27, 27,
  28, 28, 29, 29, 64, 64
];

module.exports = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts)
{
  var bits = opts.bits;
      //here = opts.here; /* table entry for duplication */

  var len = 0;               /* a code's length in bits */
  var sym = 0;               /* index of code symbols */
  var min = 0, max = 0;          /* minimum and maximum code lengths */
  var root = 0;              /* number of index bits for root table */
  var curr = 0;              /* number of index bits for current table */
  var drop = 0;              /* code bits to drop for sub-table */
  var left = 0;                   /* number of prefix codes available */
  var used = 0;              /* code entries in table used */
  var huff = 0;              /* Huffman code */
  var incr;              /* for incrementing code, index */
  var fill;              /* index for replicating entries */
  var low;               /* low bits for current root entry */
  var mask;              /* mask for low root bits */
  var next;             /* next available space in table */
  var base = null;     /* base value table to use */
  var base_index = 0;
//  var shoextra;    /* extra bits table to use */
  var end;                    /* use base and extra for symbol > end */
  var count = new utils.Buf16(MAXBITS + 1); //[MAXBITS+1];    /* number of codes of each length */
  var offs = new utils.Buf16(MAXBITS + 1); //[MAXBITS+1];     /* offsets in table for each length */
  var extra = null;
  var extra_index = 0;

  var here_bits, here_op, here_val;

  /*
   Process a set of code lengths to create a canonical Huffman code.  The
   code lengths are lens[0..codes-1].  Each length corresponds to the
   symbols 0..codes-1.  The Huffman code is generated by first sorting the
   symbols by length from short to long, and retaining the symbol order
   for codes with equal lengths.  Then the code starts with all zero bits
   for the first code of the shortest length, and the codes are integer
   increments for the same length, and zeros are appended as the length
   increases.  For the deflate format, these bits are stored backwards
   from their more natural integer increment ordering, and so when the
   decoding tables are built in the large loop below, the integer codes
   are incremented backwards.

   This routine assumes, but does not check, that all of the entries in
   lens[] are in the range 0..MAXBITS.  The caller must assure this.
   1..MAXBITS is interpreted as that code length.  zero means that that
   symbol does not occur in this code.

   The codes are sorted by computing a count of codes for each length,
   creating from that a table of starting indices for each length in the
   sorted table, and then entering the symbols in order in the sorted
   table.  The sorted table is work[], with that space being provided by
   the caller.

   The length counts are used for other purposes as well, i.e. finding
   the minimum and maximum length codes, determining if there are any
   codes at all, checking for a valid set of lengths, and looking ahead
   at length counts to determine sub-table sizes when building the
   decoding tables.
   */

  /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */
  for (len = 0; len <= MAXBITS; len++) {
    count[len] = 0;
  }
  for (sym = 0; sym < codes; sym++) {
    count[lens[lens_index + sym]]++;
  }

  /* bound code lengths, force root to be within code lengths */
  root = bits;
  for (max = MAXBITS; max >= 1; max--) {
    if (count[max] !== 0) { break; }
  }
  if (root > max) {
    root = max;
  }
  if (max === 0) {                     /* no symbols to code at all */
    //table.op[opts.table_index] = 64;  //here.op = (var char)64;    /* invalid code marker */
    //table.bits[opts.table_index] = 1;   //here.bits = (var char)1;
    //table.val[opts.table_index++] = 0;   //here.val = (var short)0;
    table[table_index++] = (1 << 24) | (64 << 16) | 0;


    //table.op[opts.table_index] = 64;
    //table.bits[opts.table_index] = 1;
    //table.val[opts.table_index++] = 0;
    table[table_index++] = (1 << 24) | (64 << 16) | 0;

    opts.bits = 1;
    return 0;     /* no symbols, but wait for decoding to report error */
  }
  for (min = 1; min < max; min++) {
    if (count[min] !== 0) { break; }
  }
  if (root < min) {
    root = min;
  }

  /* check for an over-subscribed or incomplete set of lengths */
  left = 1;
  for (len = 1; len <= MAXBITS; len++) {
    left <<= 1;
    left -= count[len];
    if (left < 0) {
      return -1;
    }        /* over-subscribed */
  }
  if (left > 0 && (type === CODES || max !== 1)) {
    return -1;                      /* incomplete set */
  }

  /* generate offsets into symbol table for each length for sorting */
  offs[1] = 0;
  for (len = 1; len < MAXBITS; len++) {
    offs[len + 1] = offs[len] + count[len];
  }

  /* sort symbols by length, by symbol order within each length */
  for (sym = 0; sym < codes; sym++) {
    if (lens[lens_index + sym] !== 0) {
      work[offs[lens[lens_index + sym]]++] = sym;
    }
  }

  /*
   Create and fill in decoding tables.  In this loop, the table being
   filled is at next and has curr index bits.  The code being used is huff
   with length len.  That code is converted to an index by dropping drop
   bits off of the bottom.  For codes where len is less than drop + curr,
   those top drop + curr - len bits are incremented through all values to
   fill the table with replicated entries.

   root is the number of index bits for the root table.  When len exceeds
   root, sub-tables are created pointed to by the root entry with an index
   of the low root bits of huff.  This is saved in low to check for when a
   new sub-table should be started.  drop is zero when the root table is
   being filled, and drop is root when sub-tables are being filled.

   When a new sub-table is needed, it is necessary to look ahead in the
   code lengths to determine what size sub-table is needed.  The length
   counts are used for this, and so count[] is decremented as codes are
   entered in the tables.

   used keeps track of how many table entries have been allocated from the
   provided *table space.  It is checked for LENS and DIST tables against
   the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in
   the initial root table size constants.  See the comments in inftrees.h
   for more information.

   sym increments through all symbols, and the loop terminates when
   all codes of length max, i.e. all codes, have been processed.  This
   routine permits incomplete codes, so another loop after this one fills
   in the rest of the decoding tables with invalid code markers.
   */

  /* set up for code type */
  // poor man optimization - use if-else instead of switch,
  // to avoid deopts in old v8
  if (type === CODES) {
    base = extra = work;    /* dummy value--not used */
    end = 19;

  } else if (type === LENS) {
    base = lbase;
    base_index -= 257;
    extra = lext;
    extra_index -= 257;
    end = 256;

  } else {                    /* DISTS */
    base = dbase;
    extra = dext;
    end = -1;
  }

  /* initialize opts for loop */
  huff = 0;                   /* starting code */
  sym = 0;                    /* starting code symbol */
  len = min;                  /* starting code length */
  next = table_index;              /* current table to fill in */
  curr = root;                /* current table index bits */
  drop = 0;                   /* current bits to drop from code for index */
  low = -1;                   /* trigger new sub-table when len > root */
  used = 1 << root;          /* use root table entries */
  mask = used - 1;            /* mask for comparing low */

  /* check available table space */
  if ((type === LENS && used > ENOUGH_LENS) ||
    (type === DISTS && used > ENOUGH_DISTS)) {
    return 1;
  }

  /* process all codes and make table entries */
  for (;;) {
    /* create table entry */
    here_bits = len - drop;
    if (work[sym] < end) {
      here_op = 0;
      here_val = work[sym];
    }
    else if (work[sym] > end) {
      here_op = extra[extra_index + work[sym]];
      here_val = base[base_index + work[sym]];
    }
    else {
      here_op = 32 + 64;         /* end of block */
      here_val = 0;
    }

    /* replicate for those indices with low len bits equal to huff */
    incr = 1 << (len - drop);
    fill = 1 << curr;
    min = fill;                 /* save offset to next table */
    do {
      fill -= incr;
      table[next + (huff >> drop) + fill] = (here_bits << 24) | (here_op << 16) | here_val |0;
    } while (fill !== 0);

    /* backwards increment the len-bit code huff */
    incr = 1 << (len - 1);
    while (huff & incr) {
      incr >>= 1;
    }
    if (incr !== 0) {
      huff &= incr - 1;
      huff += incr;
    } else {
      huff = 0;
    }

    /* go to next symbol, update count, len */
    sym++;
    if (--count[len] === 0) {
      if (len === max) { break; }
      len = lens[lens_index + work[sym]];
    }

    /* create new sub-table if needed */
    if (len > root && (huff & mask) !== low) {
      /* if first time, transition to sub-tables */
      if (drop === 0) {
        drop = root;
      }

      /* increment past last table */
      next += min;            /* here min is 1 << curr */

      /* determine length of next table */
      curr = len - drop;
      left = 1 << curr;
      while (curr + drop < max) {
        left -= count[curr + drop];
        if (left <= 0) { break; }
        curr++;
        left <<= 1;
      }

      /* check for enough space */
      used += 1 << curr;
      if ((type === LENS && used > ENOUGH_LENS) ||
        (type === DISTS && used > ENOUGH_DISTS)) {
        return 1;
      }

      /* point entry in root table to sub-table */
      low = huff & mask;
      /*table.op[low] = curr;
      table.bits[low] = root;
      table.val[low] = next - opts.table_index;*/
      table[low] = (root << 24) | (curr << 16) | (next - table_index) |0;
    }
  }

  /* fill in remaining table entry if code is incomplete (guaranteed to have
   at most one remaining entry, since if the code is incomplete, the
   maximum code length that was allowed to get this far is one bit) */
  if (huff !== 0) {
    //table.op[next + huff] = 64;            /* invalid code marker */
    //table.bits[next + huff] = len - drop;
    //table.val[next + huff] = 0;
    table[next + huff] = ((len - drop) << 24) | (64 << 16) |0;
  }

  /* set return parameters */
  //opts.table_index += used;
  opts.bits = root;
  return 0;
};


/***/ }),

/***/ 22157:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA/VJREFUaEPtWc1SE0EQ7p5dqrRKHiA8QLioAWN5xjtwhwcI3hMT9QK5iItQnol3uQt3eYEgwRM8ADxAFAKVmbZmslkmy/7M/qAVKnPememvv57++RZhzBeOuf0wAfC/GZww8OAYIGd+hhMvA7OeAIlpBRBZ10K6AEbnWO2c5Qk6lxCi7RdlwfkCIi4C0cDokIUI54LTEZuy97F21M4KJhMA1/AKApTTGCLBcEFf7Xcn+2n2K3LTbKQv5YK46W8EGo7YJSLp2QsC6LqXSFaKiFgMYogEHbDedQubp+dJ7UkMgD6WimTBDgAUvMsGRh8wIQ7x/a/IsKDNZ2WwrUUStKQbK9mAPtTwQ7I3kgiAMt7GXd2LCLAH0Gth41R523RJFqHPKyNAELvYp7UkIIwB+I1XHuOiGefxOECSEWJsw2M0IQgjANJbdNNvDS9Rxv/pvUkTs0GAspxvBuDz3PqQalPjaedVUdz0VqXBZFmndv3nXhQbfhAE0LYanbU4BmMB9D89X2KI68ODUIg1k7CRKZY431UADI1xw0ntUdnL4K5YAMIpyRytMg4BHViNExmvsSsNAHWHU6oSwIop8EgAuhHKI5e9ZdO4Tw9gdprw8fdhpotjIRqAFvtJvK+8lyKEhrRyp1TFWxb2rEZH1p3AFQlAD584T/hPzwJg5C0gdln9+HViAG7F/TZ4TdGHBKbGDAzI88TW3A8vjCJCN5QB2ny6QMzaNn1MeTIgz+JOaRsBFhQYomZYwxcKoL81v8JIVF0AkXF4Hwzo70Ag2wmrI+EAnFKFAVSUBwBadqMjK7HxyvIG5CV9w/sfMICxDyGthSCEQ6veqRnHTw4fcqe0OxyYOMPa1Nvjw6Bjw7PQoAMdjHop0mhWDCNp1IbVMDEgupDpudigscpq9HC/ngBk94v1znLiQubmYuOSfqcOyDpi2euyGCXNYpSghYnuhQbT0qC9lZMSXS2bjo56G6K2GzLozgWeShG3L7ad1h8TARgXND2GEwHwDU9R4aPOjYvbNEOGqt5OqUJuISSgM6txoqazqOVv36NaiOE5sQDct+ClNNORUoGQEgqxronKcHekNBuejABkGbrjvK6AZhANjACoS3yaUG6yyqDtvl9ZxcvPAcJWWlmQnNlpAY+krqrmXy/T3ZewNQLCLy1KhqS+aaA4hynZ/0Ra9EAEyYKaF4lI/gM484m7BUQsB4q7AG122WuaCgb6uzJ+A0GP0dWM5MxwK/SavFr3G6kXMSFaJjpT2LGZAHiM3CrOL2PBJFCyTXyRCwD9IpmtAPkMt6YK+i8mEPy3dXXdThMmUUByB2DitTy/mQDI05tpzpowkMZree4Zewb+AlX4+k8BERs6AAAAAElFTkSuQmCC";

/***/ }),

/***/ 22195:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var uncurryThis = __webpack_require__(79504);

var toString = uncurryThis({}.toString);
var stringSlice = uncurryThis(''.slice);

module.exports = function (it) {
  return stringSlice(toString(it), 8, -1);
};


/***/ }),

/***/ 22209:
/***/ ((module) => {

"use strict";


let money = {
  'us': ['$', '美元', 'USD'],
  'Europe': ['€', '欧元', 'EUR'],
  'Japan': ['JP¥', '日元', 'JPY'],
  'Europe2': ['€', '欧元', 'EUR'],
  'UK': ['£', '英镑', 'GBP'],
  'Australlia': ['AU$', '澳元', 'AUD'],
  'HK': ['HK$', '港元', 'HKD'],
  'New-Zealand': ['NZ$', '新元', 'NZD'],
  'Canada': ['CDN$', '加元', 'CAD'],
  'zh-tw': ['NT$', '新台币', 'NT$']
};
let countrys = {
  'wemakeprice': 'us',
  'dod': 'Europe',
  'apo': 'Europe',
  'ansgo': 'Australlia',
  'perfumesclub': 'Europe',
  'net-a-porter': 'us',
  'kidsroom': 'Europe',
  'getthelabel': 'UK',
  'babyhaven': 'us',
  'danielwellington': 'us',
  'dewaren': 'Europe',
  'bose': 'us',
  'takeya': 'Japan',
  'bienmanger': 'Europe2',
  'tlcpharmacy': 'UK',
  'petit-bateau': 'us',
  'esteelauder': 'us',
  '51taouk': 'UK',
  'amcal': 'Australlia',
  'joesnewbalanceoutlet': 'us',
  'gnc': 'us',
  'royyoungchemist': 'Australlia',
  'kohls': 'us',
  'bodybuilding': 'us',
  'newbalance': 'us',
  'newegg-us': 'us',
  'pharmacy4less': 'Australlia',
  'beautybay': 'us',
  'katespade': 'UK',
  'carters': 'us',
  'discount-apotheke': 'Europe2',
  'pharmacyonline': 'Australlia',
  'skinstore': 'us',
  'feelunique': 'UK',
  'x0061': 'Australlia',
  'bonjourhk': 'HK',
  'ba': 'Europe2',
  'chemistdirect': 'Australlia',
  'target': 'us',
  'ashford-zh': 'us',
  'forever21': 'UK',
  'holland-at-home': 'Europe2',
  'kiehls': 'us',
  'pharmacydirect': 'New-Zealand',
  'shoes': 'us',
  'shopbop': 'us',
  'windeln': 'Europe2',
  'bhphotovideo': 'us',
  'lookfantastic': 'UK',
  'hqhair': 'UK',
  'amazon-com': 'us',
  'amazon-jp': 'Japan',
  'amazon-fr': 'Europe',
  'amazon-de': 'Europe',
  'amazon-it': 'Europe',
  'amazon-uk': 'UK',
  'amazon-ca': 'Canada',
  'amazon-es': 'Europe',
  'amazon-au': 'Australlia',
  // 'iherb': 'us',
  '6pm': 'us',
  'aliexpress': 'us',
  '821': 'Europe',
  'shopee': 'zh-tw',
  'momoshop': 'zh-tw',
  'rakuten': 'zh-tw',
  'books': 'zh-tw',
  'pchometw': 'zh-tw',
  'twbuyyahoo': 'zh-tw'
};
module.exports.getSymbol = name => {
  let v = Object.values(money);
  let tgt = v.filter(x => x[2] === name || x[1] === name);
  if (tgt.length) {
    return tgt[0];
  }
};
module.exports.getMoneyInfo = site => {
  if (countrys[site] && money[countrys[site]]) {
    return countrys[site] && money[countrys[site]];
  }
  return ['¥', '元', 'CNY'];
};

/***/ }),

/***/ 22223:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("svg", {
    attrs: {
      width: "48px",
      height: "24px",
      viewBox: "0 0 48 24",
      version: "1.1",
      xmlns: "http://www.w3.org/2000/svg",
      "xmlns:xlink": "http://www.w3.org/1999/xlink"
    }
  }, [_c("g", {
    attrs: {
      id: "Page-1",
      stroke: "none",
      "stroke-width": "1",
      fill: "none",
      "fill-rule": "evenodd"
    }
  }, [_c("g", {
    attrs: {
      id: "店铺券-点击",
      transform: "translate(-1135.000000, -340.000000)"
    }
  }, [_c("g", {
    attrs: {
      id: "箭头3",
      transform: "translate(1135.000000, 340.000000)"
    }
  }, [_c("g", {
    attrs: {
      id: "编组-2",
      opacity: "0.900000036",
      transform: "translate(24.000000, 0.000000)"
    }
  }, [_c("g", {
    attrs: {
      id: "编组"
    }
  }, [_c("rect", {
    attrs: {
      id: "矩形",
      "fill-opacity": "0.01",
      fill: "#FFFFFF",
      "fill-rule": "nonzero",
      x: "0",
      y: "0",
      width: "24",
      height: "24"
    }
  }), _vm._v(" "), _c("polyline", {
    attrs: {
      id: "路径",
      stroke: _vm.color,
      "stroke-linecap": "round",
      "stroke-linejoin": "round",
      points: "9.5 6 15.5 12 9.5 18"
    }
  })])]), _vm._v(" "), _c("g", {
    attrs: {
      id: "编组-2备份",
      opacity: "0.5",
      transform: "translate(12.000000, 0.000000)"
    }
  }, [_c("g", {
    attrs: {
      id: "编组",
      opacity: "0.900000036"
    }
  }, [_c("rect", {
    attrs: {
      id: "矩形",
      "fill-opacity": "0.01",
      fill: "#FFFFFF",
      "fill-rule": "nonzero",
      x: "0",
      y: "0",
      width: "24",
      height: "24"
    }
  }), _vm._v(" "), _c("polyline", {
    attrs: {
      id: "路径",
      stroke: _vm.color,
      "stroke-linecap": "round",
      "stroke-linejoin": "round",
      points: "9.5 6 15.5 12 9.5 18"
    }
  })])]), _vm._v(" "), _c("g", {
    attrs: {
      id: "编组-2备份-2",
      opacity: "0.200000003"
    }
  }, [_c("g", {
    attrs: {
      id: "编组",
      opacity: "0.900000036"
    }
  }, [_c("rect", {
    attrs: {
      id: "矩形",
      "fill-opacity": "0.01",
      fill: "#FFFFFF",
      "fill-rule": "nonzero",
      x: "0",
      y: "0",
      width: "24",
      height: "24"
    }
  }), _vm._v(" "), _c("polyline", {
    attrs: {
      id: "路径",
      stroke: _vm.color,
      "stroke-linecap": "round",
      "stroke-linejoin": "round",
      points: "9.5 6 15.5 12 9.5 18"
    }
  })])])])])])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 22365:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "@font-face {\n  font-family: DDINPRO;\n  src: url('https://cdn.gwdang.com/js/configs/D-DIN-PRO-400-Regular.otf');\n}\n.gwd-app-tag-link[data-v-38c1c9be] {\n  text-decoration: none;\n  position: relative;\n  margin-bottom: 10px;\n}\n.gwd-app-tag-link .gwd-info[data-v-38c1c9be] {\n  position: absolute;\n  top: 5px;\n  right: 5px;\n  left: 5px;\n  height: 16px;\n  text-align: center;\n  color: #f83d18;\n  justify-content: center;\n}\n.gwd-app-tag-link .gwd-info .gwd-value[data-v-38c1c9be] {\n  font-size: 15px;\n  font-weight: bold;\n  margin-left: 3px;\n  font-family: DDINPRO;\n}\n.gwd-app-tag-link .gwd-info .gwd-value.gwd-font-sm[data-v-38c1c9be] {\n  font-size: 12px;\n}\n.gwd-app-tag-link .gwd-info .gwd-unit[data-v-38c1c9be] {\n  position: relative;\n  top: -2px;\n  font-weight: bold;\n  display: inline-block;\n  font-size: 12px;\n  transform: scale(0.5);\n  transform-origin: left bottom;\n}\n", ""]);

// exports


/***/ }),

/***/ 22383:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "\n.gwd-circle-stack-chart[data-v-27e90984] {\n  display: inline-block;\n}\n", ""]);

// exports


/***/ }),

/***/ 22480:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


let parseprice = __webpack_require__(86421);
module.exports = data => {
  var newdata = [];
  var dp_price = G.dp.price || 0;
  if (G.site === '189') {
    for (let i = 0; i < data.length; i++) {
      if (parseprice(data[i].price) >= dp_price) newdata.push(data[i]);
    }
    return newdata;
  } else {
    return data;
  }
};
module.exports.tb = data => {
  if (data instanceof Array) return data;
  var newdata = [];
  var product = data.product;
  var dp_price = G.dp.price || 0;
  for (let i = 0; i < product.length; i++) {
    if (product[i].img_url && !product[i].img_url.match(/_\d+x\d+/)) {
      product[i].img_url = product[i].img_url + '_100x100';
    }
    if (product[i].pic_url && !product[i].pic_url.match(/_\d+x\d+/)) {
      product[i].pic_url = product[i].pic_url + '_100x100';
    }
  }
  if (G.site === '189') {
    for (let i = 0; i < product.length; i++) {
      if (parseprice(product[i].price) >= dp_price) newdata.push(product[i]);
    }
    data.min_price = newdata[0] && newdata[0].price;
    data.product = newdata;
  }
  return data;
};

/***/ }),

/***/ 22485:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


var dpList = __webpack_require__(48514);
var priceCheck = __webpack_require__(78878);
let cnzz = __webpack_require__(5300);
let log = __webpack_require__(35743);
const communicate = __webpack_require__(79560);
var Timer, nowSiteId;
var maxTimes = 0;
var globalObj = {
  'crcarr': []
};
// 第一个是url  第二个是价格
let siteDicts = {
  'yihaodian': [['.proImg a.img', '.proPrice>em.num']],
  'tmall': [['.product-title a', '.ui-price strong'], ['.productTitle a', '.productPrice em']]
};
let siteIdDicts = {
  "yihaodian": 31,
  "tmall": 83,
  'taobao': 123
};
let listenerDicts = {
  "yihaodian": ".clearfix>#plist"
  // "suning": ".search-main"
};
let getItemInfo = (a, b, c) => {
  let info = [];
  let len = $(a).length;
  for (let i = 0; i < len; i++) {
    let urldom = $(a).eq(i).find(b).eq(0);
    let pricedom = $(a).eq(i).find(c).eq(0);
    if (urldom && pricedom) {
      let url = urldom.attr('href') || '';
      let price = pricedom.text().replace('¥', '').replace('约', '');
      let crc32 = getCrc(urldom);
      if (urlFilter(url)) continue;
      url = process(url);
      if (url && price && crc32) {
        if (globalObj.crcarr.indexOf && globalObj.crcarr.indexOf(crc32) === -1 && crc32 !== 'x') globalObj.crcarr.push(crc32);else if (crc32 === 'x') crc32 = '';else continue;
        info.push({
          'url': url,
          'price': price,
          'crc32': crc32
        });
      }
    }
  }
  return info;
};
let urlFilter = url => {
  // 一号店做一些广告商品过滤
  if (url.indexOf(`${G.extName}`) > -1) return true;
  if (G.site == 'yihaodian') {
    if (url.indexOf('tracker.yhd.com') > -1 || url.indexOf('item.yhd.com') == -1) return true;
  }
  if (G.site == "360buy") {
    if (url.indexOf('item.jd.com') == -1) return true;
  }
  return false;
};
let process = url => {
  if (!url) return;
  let hash = url.indexOf('#') > -1;
  if (hash) url = url.slice(0, hash);
  if (url.indexOf('//') === 0) return `http:${url}`;
  if (url.indexOf('/') === 0) return `${location.host}${url}`;
  return url;
};
let getCrc = a => {
  var crc = '';
  switch (G.site) {
    case "yihaodian":
      let crc32 = $(a).attr('id').match(/pdlink1_(\d+)/);
      if (crc32) crc = crc32[1];
      break;
    case "suning":
      crc = $(a).parents('.wrap').find('input.hidenInfo').attr('datapro').split('||')[1];
      break;
    default:
      crc = "x";
      break;
  }
  return crc;
};
let getInfo = selectors => {
  let siteP = siteDicts[G.site];
  let len = selectors.length;
  for (let i = 0; i < len; i++) {
    let selector = selectors[i];
    for (let j = 0; j < siteP.length; j++) {
      let itemP = siteP[j];
      let res1 = $(`${selector} ${itemP[0]}`);
      let res2 = $(`${selector} ${itemP[1]}`);
      if (res1.length && res2.length) {
        return getItemInfo(selector, itemP[0], itemP[1]);
      }
    }
  }
};
let sended = [];
let sendInfo = info => {
  //console.log('info:', info)
  if (sended.indexOf(JSON.stringify(info)) > -1) {
    return;
  }
  sended.push(JSON.stringify(info));
  if (!info || info.length === 0) return;
  let province_id = priceCheck.getSubStationId(G.site || gwd_G.site);
  let data = {
    'province_id': province_id,
    'info': info
  };
  if (!log) {
    log = console.log;
  }
  if (typeof log === 'function') {
    log(`getListInfo_is_send${G.union}_site${G.logsite}`);
  }
  cnzz.log('getListInfo_is_into');
  // 发送的数据需要加密处理
  data = (__webpack_require__(95450).gZip)(data);
  let siteid = siteIdDicts[G.site || gwd_G.site] || siteIdDicts['nowSite'] || nowSiteId;
  if (window.XMLHttpRequest) {
    try {
      // communicate.trigger({
      //   type: 'sendListInfo',
      //   data: btoa(data),
      //   url: `${G.server}/extension?ac=sendListInfo&site_id=${siteid}&u=${G.union}`
      // });
      let xml = new XMLHttpRequest();
      xml.open('POST', `${window.gwd_G.server}/extension?ac=sendListInfo&site_id=${siteid}&u=${G.union}&from=externalJS&url=${encodeURIComponent(location.href)}`, true);
      xml.send(data);

      //request.post(`${G.server}/extension?ac=sendListInfo&site_id=${siteid}&u=${G.union}`, data, false)
      cnzz.log("实时抓取发送请求");
    } catch (e) {}
  }
};
let addDomListener = () => {
  let scrollTop = 0;
  let time2;
  if (G.site === 'suning') {
    $(window).on('scroll', function (e) {
      let sctop = $(window).scrollTop();
      if (sctop - scrollTop > 500) {
        scrollTop = sctop;
        clearTimeout(time2);
        if (maxTimes > 8) return;
        time2 = setTimeout(function () {
          maxTimes++;
          (__webpack_require__(3494).init)(editInfo);
        }, 1500);
      }
    });
  } else {
    var dom = $(`${listenerDicts[G.site]}`)[0];
    if (!dom) return;
    // 监听节点变化 发现新内容加载再继续获取价格等信息
    if (dom.addEventListener) {
      dom.addEventListener('DOMSubtreeModified', function () {
        clearTimeout(Timer);
        if (maxTimes > 15) return;
        Timer = setTimeout(() => {
          maxTimes++;
          let info = getInfo(globalObj.selectors);
          if (!info || info.length === 0) return;
          //console.log('send info a')
          sendInfo(info);
        }, 1000);
      }, false);
    }
  }
};
let editInfo = (id, info) => {
  siteIdDicts['nowSite'] = id;
  sendInfo(info);
};
module.exports.init = () => {
  let ua = navigator.userAgent;
  if (G.from_device === 'firefox' || ua.match(/Firefox/i)) {
    return;
  }
  if (location.host.match(/^m\./)) return;
  if (G.site === 'yangkeduo') {
    try {
      let listInfo = window.__NEXT_DATA__ && window.__NEXT_DATA__.props.pageProps.data.initList;
      if (listInfo && listInfo.length > 0) {
        let newList = listInfo.map(v => {
          return {
            'url': location.protocol + '//' + location.host + '/' + v.linkURL,
            'price': Number(v.price),
            'tle': v.goodsName || '',
            'crc32': ''
          };
        });
        if (newList && newList.length > 0 && newList[0].price) {
          sendInfo(newList);
        }
      }
    } catch (e) {}
  } else if (!siteDicts[G.site]) {
    try {
      (__webpack_require__(3494).init)(editInfo);
    } catch (e) {
      log('listInfoError:' + JSON.stringify(e));
    }
    if (location.host.indexOf('suning') > -1) {
      addDomListener();
    }
  } else {
    let selectors = dpList.check();
    globalObj.selectors = selectors;
    if (!selectors || selectors && !selectors.length) return;
    setTimeout(() => {
      let info = getInfo(selectors);
      if (!info || info.length === 0) return;
      sendInfo(info);
      addDomListener();
    }, 1000);
  }
};
module.exports.sendPriCheck = info => {
  nowSiteId = (__webpack_require__(3494).getSiteId)(G.site || gwd_G.site);
  sendInfo(info);
};

/***/ }),

/***/ 22517:
/***/ ((__unused_webpack_module, exports) => {

"use strict";

// Generated using scripts/write-decode-map.ts
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports["default"] = new Uint16Array(
// prettier-ignore
"\u0200aglq\t\x15\x18\x1b\u026d\x0f\0\0\x12p;\u4026os;\u4027t;\u403et;\u403cuot;\u4022"
    .split("")
    .map(function (c) { return c.charCodeAt(0); }));
//# sourceMappingURL=decode-data-xml.js.map

/***/ }),

/***/ 22596:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var G = __webpack_require__(53558);


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _MemberCouponMixin = _interopRequireDefault(__webpack_require__(81507));
var _default = exports.A = {
  mixins: [_MemberCouponMixin.default],
  props: ['data'],
  data() {
    return {
      G: G
    };
  },
  computed: {},
  methods: {
    getText(text) {
      const map = {
        '购买方案': '購買方案',
        '实付总价': '實付總價',
        '折合每件': '折合每件',
        '使用的促销': '使用的促銷',
        '扫码 参加活动': '掃碼 參加活動',
        '淘宝APP': '淘寶APP'
      };
      if (G.lang === 'zh-tr') {
        return map[text];
      }
      return text;
    },
    link2(u, src) {
      if (src.indexOf('//') === 0) {
        return u.replace('$URL', encodeURIComponent('https:' + src)).replace('ext_promo_plan', 'promo_calc_plan');
      }
      return u.replace('$URL', encodeURIComponent(src)).replace('ext_promo_plan', 'promo_calc_all');
    }
  }
};

/***/ }),

/***/ 22632:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, hidemod = $data.hidemod, detailW = $data.detailW, f_url = $data.f_url, settingUrl = $data.settingUrl;
    $$out += '<div id="bjd_bottom_detail" class="';
    $$out += $escape(hidemod);
    $$out += ' gwdang-main">\n  <a  id="bjd_logo" >\n    <span class="gwd_bg"></span>\n  </a>\n  <div class="left-compare close-module ';
    $$out += $escape(hidemod);
    $$out += '">\n    <span class="com-lowpri">\n      <em class="gwd_bg"></em>\n    </span>\n    <span class="com-zdm">\n      <em class="gwd_bg"></em>\n    </span>\n    <span class="com-hym">\n      <em class="gwd_bg"></em>\n    </span>\n  </div>\n  <div class="nbt-adinfo close-module ';
    $$out += $escape(hidemod);
    $$out += '"></div>\n  <div class="main-compare close-module ';
    $$out += $escape(hidemod);
    $$out += '">\n    <span class="gwd_bg mbar-turnpage tleft"></span>\n    <div class="compare-box">\n      <ul class="compare-list">\n\n      </ul>\n    </div>\n    <span class="gwd_bg mbar-turnpage tright"></span>\n  </div>\n  <div class="right-info close-module ';
    $$out += $escape(hidemod);
    $$out += '" style="display: flex">\n    <div class="price-trend-btn btm-tab" id="gwdang-trend">\n      <div class="trend-box-dev">\n        <em class="gwd_bg"></em>\n        <span></span>\n      </div>\n\n      <div id="gwdang-trend-detail" class="gwd-trend-detail gwd-btn-detail" style="width:';
    $$out += $escape(detailW);
    $$out += 'px;" >\n        <div class="panel-wrap">\n          <div class="chart" id="gwdang-pri-trend-chart">\n            <div id="big_tooltip_top" class="big_tooltip_box"></div>\n            <div id="bar_trend_legend_btn" class="legend-btn-box">\n              <span class="price-trend-sp pt-sp1 " data-id="days180">\n                <em></em>\n                <span>到手价(单件)</span>\n              </span>\n              <span class="review-trend-sp" data-id="plotSpecial">\n                <em></em>\n                <span>到手价(多件)</span>\n              </span>\n            </div>\n          </div>\n        </div>\n        <div class="gwd-collection-trend-content"></div>\n      </div>\n    </div>\n    <div class="search-mod"></div>\n    <div class="bjd-history-btn rinfo-btn" id="gwd_history">\n      <span class="gwd_bg"></span>\n    </div>\n    <div class="bjd-favor-btn rinfo-btn" id="gwdang-favor">\n      <span class="gwd_bg"></span>\n    </div>\n    <a href="';
    $$out += $escape(f_url);
    $$out += '" target="_blank" title="反馈" class="bjd-feedback-btn rinfo-btn" id="gwdang-feedback">\n      <span class="gwd_bg"></span>\n    </a>\n    <a ';
    if (settingUrl) {
        $$out += ' href="';
        $$out += $escape(settingUrl);
        $$out += '" target="_blank"';
    }
    $$out += ' title="功能设置" class="bjd-setting-btn rinfo-btn" id="gwdang-setting">\n      <span class="gwd_bg"></span>\n    </a>\n  </div>\n  <div class="nbt-close-btn ';
    $$out += $escape(hidemod);
    $$out += '">\n    <span class="gwd_bg"></span>\n  </div>\n  <div ></div>\n</div>\n<style>\n  .right-info.b-hidden {\n    display: none!important;\n  }\n</style>\n';
    return $$out;
};

/***/ }),

/***/ 22795:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


var _interopRequireDefault = __webpack_require__(24994);
var _bgClient = _interopRequireDefault(__webpack_require__(40076));
const {
  jsonrepair
} = __webpack_require__(14276);
const markdownit = __webpack_require__(50383);
const md = markdownit();
window.extBg = _bgClient.default;
window.extJSONRepair = str => {
  try {
    return JSON.parse(jsonrepair(str));
  } catch (e) {
    return false;
  }
};
window.extMdRender = str => {
  return md.render(str);
};

/***/ }),

/***/ 22812:
/***/ ((module) => {

"use strict";

var $TypeError = TypeError;

module.exports = function (passed, required) {
  if (passed < required) throw new $TypeError('Not enough arguments');
  return passed;
};


/***/ }),

/***/ 22932:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   XX: () => (/* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_3_use_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ruleSet_1_rules_3_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_template_id_40244662_scoped_true__WEBPACK_IMPORTED_MODULE_0__.XX),
/* harmony export */   Yp: () => (/* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_3_use_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ruleSet_1_rules_3_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_template_id_40244662_scoped_true__WEBPACK_IMPORTED_MODULE_0__.Yp)
/* harmony export */ });
/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_3_use_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ruleSet_1_rules_3_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_template_id_40244662_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1717);


/***/ }),

/***/ 23075:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(12078);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("6c2184d3", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 23107:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const userData = __webpack_require__(74222);
const template = __webpack_require__(26133);
const userCenter = __webpack_require__(76904);
const request = __webpack_require__(49388);
const log = __webpack_require__(35743);
const cnzz = __webpack_require__(5300);
const utils = __webpack_require__(30888);
const price_remind = __webpack_require__(57031);
let globalFavor = {},
  reqCallbacks = [],
  hasReq;
const getRemindStyle = async callback => {
  if (G.remindInfo) {
    callback(G.remindInfo);
    return;
  }
  if (hasReq) {
    reqCallbacks.push(callback);
    return;
  }
  hasReq = true;
  // let dp_id = G.now_dp_id;
  // if (dp_id.indexOf('-') === -1) {
  //   dp_id = dp_id + '-' + G.site_id;
  // }
  let dp_id = G.dp.itemId;
  await (__webpack_require__(41761).met)('collectionDetailAllowed');
  userCenter.detail(dp_id).then(res => {
    setTimeout(() => {
      if ($('#gwd_mini_remind').is(':hover')) {
        onHoverContent();
      }
    });
    if (!res.data) {
      callback({});
      G.remindInfo = {};
      if (reqCallbacks.length > 0) {
        for (let i = 0; i < reqCallbacks.length; i++) {
          reqCallbacks[i]({});
        }
      }
      return;
    } else {
      let msg = {
        remind_price: res.data.notifier.threshold,
        is_collected: res.data.id,
        has_remind_type: res.data.notifier.type,
        remind_type: res.data.notifier.type,
        notify_site: res.data.notifier.site
      };
      G.remindInfo = msg;
      console.log('remindInfo got');
      callback(msg);
      if (reqCallbacks.length > 0) {
        for (let i = 0; i < reqCallbacks.length; i++) {
          reqCallbacks[i](msg);
        }
      }
    }
  });
  // callback(G.productChecked)
  // let url = `${G.c_server}/api/remind_setting?action=get&email=${G.email}&dp_id=${dp_id}`;
  // request.get(url).done((msg) => {
  //   G.remindInfo = msg;
  //   if (msg.remind_price) {
  //     msg.remind_price = msg.remind_price / 100
  //   }
  //   callback(msg)
  //   if (reqCallbacks.length > 0) {
  //     for (let i = 0; i < reqCallbacks.length; i++) {
  //       reqCallbacks[i](msg)
  //     }
  //   }
  // })
};
const check_favor = async id => {
  // debugger
  if (!G.userLogin || !id) return;
  // let url = `${G.c_server}/brwext/check_collected?email=${G.email}&dp_id=${id}`
  // request.get(url).done((data) => {
  await (__webpack_require__(41761).met)('checked_data_got');
  if (G.productChecked && G.productChecked.collected) {
    $('#gwd_mini_remind .minibar-btn-box span').text('已添加提醒');
    $('#gwd_mini_remind .minibar-btn-box em').addClass('favored');
    $('#topfavor_detail .topf-head .sp-col').text('收藏成功').addClass('collected');
    $('#ht_favor').text('收藏成功').addClass('collected');
  }
  // })
};
const loginAfterRender = () => {
  $('.bjd-login-box, .login-content').hide();
  $('.gwd-common-login').hide();
  $('.bjd-jiangjia-re').show();
  check_favor(G.now_dp_id);
  (__webpack_require__(57031).renderAgain)();
  getRemindStyle(msg => {
    if (msg) {
      globalFavor.is_collected = msg.is_collected;
      if (msg.has_remind_type) {
        $(`.select-item`).removeClass('selected');
        $('#bjd_minifavor_content').addClass('bjd_choosed');
        $('#favor_box').addClass('favor_choosed');
        $(`.jj-style .select-item[data-type="${msg.remind_type}"]`).addClass('selected');
        $('.gwd-del-collection').css('display', 'block');
      } else {
        $('.jj-style .select-item[data-type="1"]').addClass('selected');
      }
      //msg.notify_site = msg.notify_site;
      $(`.jj-remind .select-item[data-type="${msg.notify_site}"]`).addClass('selected');
      if (msg.remind_price) $(`.jj-remind .select-item[data-type="${msg.notify_site}"]`).parent().find('input').val(msg.remind_price);
      $('.jj-style .re-mail').val(G.email);
    }
  });
  $('#gwd-topText').css('display', 'none');
  $('.gwd-not-login').removeClass('gwd-not-login');
  $(`#plotArea_${G.from_device}`).removeClass('gwd-blurLayer');
};
$('body').on('gwd-login-complete', c => {
  let e = c.originalEvent;
  console.log(e);
  // G.email = e.detail.uid;
  // G.userLogin = true;
  utils.setLocal('email', e.detail.uid);
  loginAfterRender();
});
const userLogin = () => {};
let hasLoginRender;
const onHoverContent = () => {
  price_remind.getQRcode();
  if (G.userLogin && !hasLoginRender) {
    loginAfterRender();
    hasLoginRender = true;
  }
  $(`#gwd_mini_remind`).addClass('mshover');
  $(`#gwd_mini_remind em`).addClass('collect_hover');
  $('html').addClass('bjd-favor-show');
  $('#bjd_minifavor_content').show();
};
const miniFavorEvent = () => {
  let forbidHide;
  let msStyle = 'click';
  if (G.userLogin) msStyle = 'mouseenter';
  $('.remindHint').hide();
  $(`#gwd_mini_remind`).on(msStyle, () => {
    onHoverContent();
  }).on('mouseleave', e => {
    if (forbidHide) return;
    setTimeout(() => {
      $(`#gwd_mini_remind`).removeClass('mshover');
      $(`#gwd_mini_remind em`).removeClass('collect_hover');
      $('html').removeClass('bjd-favor-show');
      $('#bjd_minifavor_content').hide();
    }, 200);
  });

  // $('#bjd_minifavor_content').on('mouseenter', () => {
  //   clearTimeout(mTime1);
  //   clearTimeout(mTime2);
  // })
  // $('#bjd_minifavor_content').on('mouseleave', (e) => {
  //   if (forbidHide) return;
  //   mTime2 = setTimeout(function() {
  //     $(`#gwd_mini_remind`).removeClass('mshover')
  //     $(`#gwd_mini_remind em`).removeClass('collect_hover')
  //     $('html').removeClass('bjd-favor-show')
  //     $('#bjd_minifavor_content').hide()
  //   }, 200)
  // })
  $('#bjd_minifavor_content input').on('focus', function () {
    forbidHide = true;
    setTimeout(function () {
      forbidHide = false;
    }, 300);
  });
  $('.jiangjia-left .select-item').on('click', function () {
    $(this).parent().parent().find('.select-item').removeClass('selected');
    $(this).addClass('selected');
  });
  $('#edit_re_style').on('click', () => {
    $('#bjd_minifavor_content').removeClass('bjd_choosed');
  });
  $('#loginClickBtn').on('click', () => {
    let userN = $('#bjd_minifavor_content .username').val();
    let psd = $('#bjd_minifavor_content .password').val();
    if (userN && psd) {
      price_remind.loginRenderTop();
      userLogin(userN, psd);
    } else {
      $('#login_remind_tle').css('display', 'block').fadeOut(5000);
      return;
    }
  });
  $('#subbtn').on('click', () => {
    let ischoosed = $('#bjd_minifavor_content').hasClass('bjd_choosed');
    if (!ischoosed) {
      let remind_email;
      let remind_type = $('.jj-style .select-item.selected').attr('data-type');
      if (remind_type === '1') {
        remind_email = $('.jj-style .re-mail').val();
        if (!remind_email) {
          $('#error_remind_tle').text('请输入正确的邮箱地址').css('display', 'block').fadeOut(5000);
          return;
        }
      }
    }
    let dom = $('.jj-remind .select-item.selected');
    let notify_site = dom.attr('data-type');
    let price = dom.parent().find('input').val();
    if (price === '') {
      $('#error_remind_tle').text('请输入商品期望价格').css('display', 'block').fadeOut(5000);
      return;
    } else if (Number(price) <= 0 || !price.match(/(?:^\d+$|^\d+\.\d{1,2}$)/)) {
      $('#error_remind_tle').text('请输入正确格式的价格').css('display', 'block').fadeOut(5000);
      return;
    } else if (globalFavor.nowprice && Number(price) > globalFavor.nowprice) {
      $('#error_remind_tle').text('价格不能高于当前商品价格').css('display', 'block').fadeOut(5000);
      return;
    }
    log('mini-favor-detail-btn-click');
    cnzz.log('mini-favor-detail-btn-click');
    /*notify_site => 0 全网 1 当前网站*/
    add_favor(notify_site, price);
    // $('#bjd_minifavor_content').hide().addClass('bjd_choosed')
  });
  $('.jj-remind-logo').on('click', () => {
    log('allsite-lowpri-click');
    cnzz.log('allsite-lowpri-click');
  });
  $('.gwd-del-collection').on('click', () => {
    delFavor();
  });
};
const setNotifyPrice = (notify_site, notify_price) => {
  let allAddClass = (selector, className) => {
    $(selector).each(function () {
      $(this).addClass(className);
    });
  };
  let allVal = (selector, value) => {
    $(selector).each(function () {
      $(this).val(value);
    });
  };
  G.collectionChanged = true;
  // $(`#${G.extBrand}_add_favor`).text('收藏成功').show().fadeout(2000);
  /*收起价格走势*/
  // $(`#${G.extName}-trend-detail`).hide()
  $('.remindHint').show().fadeOut(2000);
  //设置嵌入页面的内容同步变化
  $(`#gwd_mini_remind .minibar-btn-box span`).text(`已添加提醒`);
  $('#gwd_mini_remind .minibar-btn-box em').addClass('favored');
  $('.remind-item.current-selected').removeClass('current-selected');
  $('.remind-item .select-item').removeClass('selected');
  let n = parseInt(notify_site);
  if (n) {
    allAddClass('.remind-item-snd', 'current-selected');
    allAddClass('.remind-item-snd .select-item', 'selected');
    allVal('.remind-item-snd input', notify_price);
  } else {
    allAddClass('.remind-item-fst', 'current-selected');
    allAddClass('.remind-item-fst .select-item', 'selected');
    allVal('.remind-item-fst input', notify_price);
  }
};
const delFavor = () => {
  userCenter.delete().then(res => {
    if (res.code !== 1) return;
    $('.remind-item.current-selected').removeClass('current-selected');
    $('#gwd_mini_remind .minibar-btn-box em').removeClass('favored');
    $(`#gwd_mini_remind .minibar-btn-box span`).text(`降价提醒`);
    $('.gwd-del-collection').css('display', 'none');
    G.remindInfo = {};
    userCenter.clearCurrent();
  });
};
const add_favor = (notify_site, notify_price) => {
  notify_site = notify_site || '';
  notify_price = notify_price || '';
  let dp_id = globalFavor['dp_query'].dp.dp_id;
  let site_id = globalFavor['dp_query'].dp.site_id;
  let dp = globalFavor['dp_query'].dp;
  let price = G.dp.oldPrice;
  let title = G.dp.name || $('title').html();
  $(`#${G.extBrand}_add_favor`).text('正在收藏');
  if (price == "" || price <= 0) {
    var nprice = G.price;
    price = nprice;
  }
  let is_collected = '0';
  if (globalFavor.is_collected) {
    is_collected = '1';
  }
  if (G.site_id == '83' || G.site_id === '123') dp.dp_id = dp.dp_id + '-' + G.site_id;
  (__webpack_require__(76904).add)(notify_price, notify_site).then(msg => {
    $(`#${G.extBrand}_add_favor`).text('收藏该商品');
    if (msg.code === 100 || msg.code <= 0) {
      $(`#${G.extBrand}_add_favor`).hide();
      $(`#${G.extBrand}_favor_item_list`).empty().hide();
      //$('#${G.extBrand}_favor_num').text(' N')
      $(`#${G.extBrand}-favor-detail .${G.extBrand}-login-info`).show();
    } else if (msg.code === 1) {
      setNotifyPrice(notify_site, notify_price);
      if (!msg.data) {
        G.remindInfo.remind_price = notify_price;
        G.remindInfo.notify_site = notify_site;
      } else {
        let data = {
          remind_price: msg.data.notifier.threshold,
          is_collected: msg.data.id,
          has_remind_type: msg.data.notifier.type,
          remind_type: msg.data.notifier.type,
          notify_site: msg.data.notifier.site
        };
        G.remindInfo = data;
        $('.gwd-del-collection').css('display', 'block');
      }

      // 更新本地收藏存储
      // utils.addFavorCheck()
    } else if (msg.code === 2) {
      $(`#gwd_mini_remind .minibar-btn-box span`).text(`已添加提醒`);
      $('#gwd_mini_remind .minibar-btn-box em').addClass('favored');
    }
  }).catch(() => {
    $(`#${G.extBrand}_add_favor`).text('收藏商品');
  });
};
let updateTimes = 0;
const updatePrice = async () => {
  if (globalFavor.nowprice) return;
  if (updateTimes > 5) return;
  updateTimes++;
  const nowPrice = await (__webpack_require__(41761).met)('NowPrice');
  if (nowPrice && nowPrice > 0 && Number($('.jj-remind .remind-item-snd input').val())) {
    globalFavor.nowprice = nowPrice;
    if (!globalFavor.allprice) {
      globalFavor.allprice = nowPrice;
      $('.jj-remind .remind-item input').val(nowPrice);
    }
    $('.jj-remind .remind-item-snd input').val(nowPrice);
  }
};
module.exports.init = async () => {
  await (__webpack_require__(41761).met)('dp_query_set');
  await (__webpack_require__(41761).met)('GwdDpIdGot');
  let dp_query = userData.get('dp_query');
  let other_info = userData.get('other_info');
  globalFavor['other_info'] = other_info;
  globalFavor['dp_query'] = dp_query;
  let minidom = `#gwd_mini_remind`;
  let choosed, remind_type, lowestUrl;
  let emailvalue = G.email;
  if (!other_info.now.dp_id) return;
  let url = encodeURIComponent(location.href);
  //let nowprice = other_info['code-server'] && other_info['code-server'].price || G.dp.price;
  let nowprice = await (__webpack_require__(41761).met)('NowPrice');
  if (G.aliSite && G.dp.price) nowprice = G.dp.price;
  let allprice = dp_query.b2c.min_price || nowprice;
  if (!allprice) allprice = nowprice;
  nowprice = Number(nowprice.toString().replace(',', ''));
  allprice = Number(allprice.toString().replace(',', ''));
  if (dp_query.b2c.product && dp_query.b2c.product.length !== 0) {
    lowestUrl = dp_query.b2c.product[0].url;
    log('allsite-lowpri-show');
    cnzz.log('allsite-lowpri-show');
  }
  // else if (dp_query.b2c.store && dp_query.b2c.store.length !== 0) {
  //   lowestUrl = dp_query.b2c.store[0].product[0].url;
  //   log('allsite-lowpri-show');
  //   cnzz.log('allsite-lowpri-show')
  // }
  globalFavor.nowprice = nowprice;
  if (G.userLogin) {
    setTimeout(() => {
      $('#gwdang-trend').hover(() => {
        (__webpack_require__(41761).setMet)('collectionDetailAllowed');
      });
    }, 0);
  }
  let html = __webpack_require__(78180);
  await (__webpack_require__(30888).waitForConditionFn)(() => {
    return $(`#mini_price_history`).length;
  });
  if (G.userLogin) {
    check_favor(other_info.now.dp_id);
    setTimeout(() => {
      $('#gwd_mini_remind').hover(() => {
        (__webpack_require__(41761).setMet)('collectionDetailAllowed');
      });
    }, 0);
    getRemindStyle(msg => {
      if (msg.has_remind_type) {
        choosed = true;
      }
      if (msg.is_collected) {
        globalFavor.is_collected = msg.is_collected;
        if (parseInt(msg.notify_site) === 1) nowprice = msg.remind_price;else allprice = msg.remind_price;
      }
      if (!allprice) allprice = nowprice;
      globalFavor.notify_site = msg.notify_site;
      globalFavor.allprice = allprice;
      remind_type = msg.remind_type || '0';
      // if (G.email.indexOf(`${G.extName}.com`) > -1)
      //   emailvalue = '';
      if (G.userLogin) {
        G.email = 1;
      }
      let config = (__webpack_require__(22209).getMoneyInfo)(G.logsite);
      let currency = '元';
      if (config) {
        currency = config[1];
      }
      let dom = template.compile(html)({
        choosed: choosed,
        email: G.email,
        emailvalue: emailvalue,
        url: url,
        lowestUrl: lowestUrl,
        notify_site: globalFavor.notify_site,
        nowprice: nowprice,
        allprice: allprice,
        remind_type: remind_type,
        extName: G.extName,
        currency: currency
      });
      if (globalFavor.notify_site === undefined) {
        setTimeout(() => {
          $('.remind-item-snd .select-item').addClass('selected');
        }, 1000);
      }
      $(minidom).append(dom);
      check_favor(other_info.now.dp_id);
      miniFavorEvent();
    });
  } else {
    let dom = template.compile(html)({
      choosed: choosed,
      email: G.userLogin,
      emailvalue: emailvalue,
      url: url,
      lowestUrl: lowestUrl,
      notify_site: globalFavor.notify_site,
      nowprice: nowprice,
      allprice: allprice,
      remind_type: remind_type,
      extName: G.extName
    });
    $(minidom).append(dom);
    miniFavorEvent();
    const CommonLogin = (__webpack_require__(36664)["default"]);
    new Vue({
      el: '#gwd-login-mini',
      render: h => h(CommonLogin, {
        props: {
          position: 'gwd-mini',
          showAlterLogin: true,
          alterLoginPosition: 'row'
        }
      })
    });
  }
  // let dom = template.compile(html)({
  //   choosed: choosed,
  //   email: '',
  //   emailvalue: '',
  //   url: url,
  //   lowestUrl: lowestUrl,
  //   notify_site: G.remindInfo.remind_type,
  //   nowprice: nowprice,
  //   allprice: allprice,
  //   remind_type: remind_type,
  //   extName: G.extName
  // })
  // $(minidom).append(dom)
  // miniFavorEvent()
  updatePrice();
};
module.exports.getRemindStyle = getRemindStyle;
module.exports.add_favor = add_favor;
module.exports.setNotifyPrice = setNotifyPrice;

/***/ }),

/***/ 23108:
/***/ ((module) => {

"use strict";
/*!
 * Vue.js v2.7.16
 * (c) 2014-2023 Evan You
 * Released under the MIT License.
 */
/*!
 * Vue.js v2.7.16
 * (c) 2014-2023 Evan You
 * Released under the MIT License.
 */
const t=Object.freeze({}),e=Array.isArray;function n(t){return null==t}function o(t){return null!=t}function r(t){return!0===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function i(t){return"function"==typeof t}function c(t){return null!==t&&"object"==typeof t}const a=Object.prototype.toString;function l(t){return"[object Object]"===a.call(t)}function u(t){const e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function d(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===a?JSON.stringify(t,p,2):String(t)}function p(t,e){return e&&e.__v_isRef?e.value:e}function h(t){const e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){const n=Object.create(null),o=t.split(",");for(let t=0;t<o.length;t++)n[o[t]]=!0;return e?t=>n[t.toLowerCase()]:t=>n[t]}const _=m("key,ref,slot,slot-scope,is");function v(t,e){const n=t.length;if(n){if(e===t[n-1])return void(t.length=n-1);const o=t.indexOf(e);if(o>-1)return t.splice(o,1)}}const y=Object.prototype.hasOwnProperty;function g(t,e){return y.call(t,e)}function b(t){const e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}const $=/-(\w)/g,w=b((t=>t.replace($,((t,e)=>e?e.toUpperCase():"")))),C=b((t=>t.charAt(0).toUpperCase()+t.slice(1))),x=/\B([A-Z])/g,O=b((t=>t.replace(x,"-$1").toLowerCase()));const k=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){const o=arguments.length;return o?o>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function S(t,e){e=e||0;let n=t.length-e;const o=new Array(n);for(;n--;)o[n]=t[n+e];return o}function j(t,e){for(const n in e)t[n]=e[n];return t}function A(t){const e={};for(let n=0;n<t.length;n++)t[n]&&j(e,t[n]);return e}function T(t,e,n){}const E=(t,e,n)=>!1,P=t=>t;function I(t,e){if(t===e)return!0;const n=c(t),o=c(e);if(!n||!o)return!n&&!o&&String(t)===String(e);try{const n=Array.isArray(t),o=Array.isArray(e);if(n&&o)return t.length===e.length&&t.every(((t,n)=>I(t,e[n])));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(n||o)return!1;{const n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&n.every((n=>I(t[n],e[n])))}}catch(t){return!1}}function D(t,e){for(let n=0;n<t.length;n++)if(I(t[n],e))return n;return-1}function N(t){let e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function M(t,e){return t===e?0===t&&1/t!=1/e:t==t||e==e}const L="data-server-rendered",R=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"];var U={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:E,isReservedAttr:E,isUnknownElement:E,getTagNamespace:T,parsePlatformTagName:P,mustUseProp:E,async:!0,_lifecycleHooks:F};function B(t){const e=(t+"").charCodeAt(0);return 36===e||95===e}function V(t,e,n,o){Object.defineProperty(t,e,{value:n,enumerable:!!o,writable:!0,configurable:!0})}const z=new RegExp(`[^${/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source}.$_\\d]`);const H="__proto__"in{},W="undefined"!=typeof window,K=W&&window.navigator.userAgent.toLowerCase(),q=K&&/msie|trident/.test(K),G=K&&K.indexOf("msie 9.0")>0,Z=K&&K.indexOf("edge/")>0;K&&K.indexOf("android");const J=K&&/iphone|ipad|ipod|ios/.test(K);K&&/chrome\/\d+/.test(K),K&&/phantomjs/.test(K);const X=K&&K.match(/firefox\/(\d+)/),Q={}.watch;let Y,tt=!1;if(W)try{const t={};Object.defineProperty(t,"passive",{get(){tt=!0}}),window.addEventListener("test-passive",null,t)}catch(t){}const et=()=>(void 0===Y&&(Y=!W&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),Y),nt=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ot(t){return"function"==typeof t&&/native code/.test(t.toString())}const rt="undefined"!=typeof Symbol&&ot(Symbol)&&"undefined"!=typeof Reflect&&ot(Reflect.ownKeys);let st;st="undefined"!=typeof Set&&ot(Set)?Set:class{constructor(){this.set=Object.create(null)}has(t){return!0===this.set[t]}add(t){this.set[t]=!0}clear(){this.set=Object.create(null)}};let it=null;function ct(t=null){t||it&&it._scope.off(),it=t,t&&t._scope.on()}class at{constructor(t,e,n,o,r,s,i,c){this.tag=t,this.data=e,this.children=n,this.text=o,this.elm=r,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=i,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=c,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}get child(){return this.componentInstance}}const lt=(t="")=>{const e=new at;return e.text=t,e.isComment=!0,e};function ut(t){return new at(void 0,void 0,void 0,String(t))}function ft(t){const e=new at(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}let dt=0;const pt=[],ht=()=>{for(let t=0;t<pt.length;t++){const e=pt[t];e.subs=e.subs.filter((t=>t)),e._pending=!1}pt.length=0};class mt{constructor(){this._pending=!1,this.id=dt++,this.subs=[]}addSub(t){this.subs.push(t)}removeSub(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,pt.push(this))}depend(t){mt.target&&mt.target.addDep(this)}notify(t){const e=this.subs.filter((t=>t));for(let t=0,n=e.length;t<n;t++){e[t].update()}}}mt.target=null;const _t=[];function vt(t){_t.push(t),mt.target=t}function yt(){_t.pop(),mt.target=_t[_t.length-1]}const gt=Array.prototype,bt=Object.create(gt);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){const e=gt[t];V(bt,t,(function(...n){const o=e.apply(this,n),r=this.__ob__;let s;switch(t){case"push":case"unshift":s=n;break;case"splice":s=n.slice(2)}return s&&r.observeArray(s),r.dep.notify(),o}))}));const $t=Object.getOwnPropertyNames(bt),wt={};let Ct=!0;function xt(t){Ct=t}const Ot={notify:T,depend:T,addSub:T,removeSub:T};class kt{constructor(t,n=!1,o=!1){if(this.value=t,this.shallow=n,this.mock=o,this.dep=o?Ot:new mt,this.vmCount=0,V(t,"__ob__",this),e(t)){if(!o)if(H)t.__proto__=bt;else for(let e=0,n=$t.length;e<n;e++){const n=$t[e];V(t,n,bt[n])}n||this.observeArray(t)}else{const e=Object.keys(t);for(let r=0;r<e.length;r++){jt(t,e[r],wt,void 0,n,o)}}}observeArray(t){for(let e=0,n=t.length;e<n;e++)St(t[e],!1,this.mock)}}function St(t,n,o){return t&&g(t,"__ob__")&&t.__ob__ instanceof kt?t.__ob__:!Ct||!o&&et()||!e(t)&&!l(t)||!Object.isExtensible(t)||t.__v_skip||Rt(t)||t instanceof at?void 0:new kt(t,n,o)}function jt(t,n,o,r,s,i,c=!1){const a=new mt,l=Object.getOwnPropertyDescriptor(t,n);if(l&&!1===l.configurable)return;const u=l&&l.get,f=l&&l.set;u&&!f||o!==wt&&2!==arguments.length||(o=t[n]);let d=s?o&&o.__ob__:St(o,!1,i);return Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){const n=u?u.call(t):o;return mt.target&&(a.depend(),d&&(d.dep.depend(),e(n)&&Et(n))),Rt(n)&&!s?n.value:n},set:function(e){const n=u?u.call(t):o;if(M(n,e)){if(f)f.call(t,e);else{if(u)return;if(!s&&Rt(n)&&!Rt(e))return void(n.value=e);o=e}d=s?e&&e.__ob__:St(e,!1,i),a.notify()}}}),a}function At(t,n,o){if(Mt(t))return;const r=t.__ob__;return e(t)&&u(n)?(t.length=Math.max(t.length,n),t.splice(n,1,o),r&&!r.shallow&&r.mock&&St(o,!1,!0),o):n in t&&!(n in Object.prototype)?(t[n]=o,o):t._isVue||r&&r.vmCount?o:r?(jt(r.value,n,o,void 0,r.shallow,r.mock),r.dep.notify(),o):(t[n]=o,o)}function Tt(t,n){if(e(t)&&u(n))return void t.splice(n,1);const o=t.__ob__;t._isVue||o&&o.vmCount||Mt(t)||g(t,n)&&(delete t[n],o&&o.dep.notify())}function Et(t){for(let n,o=0,r=t.length;o<r;o++)n=t[o],n&&n.__ob__&&n.__ob__.dep.depend(),e(n)&&Et(n)}function Pt(t){return It(t,!0),V(t,"__v_isShallow",!0),t}function It(t,e){Mt(t)||St(t,e,et())}function Dt(t){return Mt(t)?Dt(t.__v_raw):!(!t||!t.__ob__)}function Nt(t){return!(!t||!t.__v_isShallow)}function Mt(t){return!(!t||!t.__v_isReadonly)}const Lt="__v_isRef";function Rt(t){return!(!t||!0!==t.__v_isRef)}function Ft(t,e){if(Rt(t))return t;const n={};return V(n,Lt,!0),V(n,"__v_isShallow",e),V(n,"dep",jt(n,"value",t,null,e,et())),n}function Ut(t,e,n){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>{const t=e[n];if(Rt(t))return t.value;{const e=t&&t.__ob__;return e&&e.dep.depend(),t}},set:t=>{const o=e[n];Rt(o)&&!Rt(t)?o.value=t:e[n]=t}})}function Bt(t,e,n){const o=t[e];if(Rt(o))return o;const r={get value(){const o=t[e];return void 0===o?n:o},set value(n){t[e]=n}};return V(r,Lt,!0),r}const Vt="__v_rawToReadonly",zt="__v_rawToShallowReadonly";function Ht(t){return Wt(t,!1)}function Wt(t,e){if(!l(t))return t;if(Mt(t))return t;const n=e?zt:Vt,o=t[n];if(o)return o;const r=Object.create(Object.getPrototypeOf(t));V(t,n,r),V(r,"__v_isReadonly",!0),V(r,"__v_raw",t),Rt(t)&&V(r,Lt,!0),(e||Nt(t))&&V(r,"__v_isShallow",!0);const s=Object.keys(t);for(let n=0;n<s.length;n++)Kt(r,t,s[n],e);return r}function Kt(t,e,n,o){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){const t=e[n];return o||!l(t)?t:Ht(t)},set(){}})}const qt="watcher",Gt=`${qt} callback`,Zt=`${qt} getter`,Jt=`${qt} cleanup`;function Xt(t,e){return Yt(t,null,{flush:"post"})}const Qt={};function Yt(n,o,{immediate:r,deep:s,flush:c="pre",onTrack:a,onTrigger:l}=t){const u=it,f=(t,e,n=null)=>{const o=Ke(t,null,n,u,e);return s&&o&&o.__ob__&&o.__ob__.dep.depend(),o};let d,p,h=!1,m=!1;if(Rt(n)?(d=()=>n.value,h=Nt(n)):Dt(n)?(d=()=>(n.__ob__.dep.depend(),n),s=!0):e(n)?(m=!0,h=n.some((t=>Dt(t)||Nt(t))),d=()=>n.map((t=>Rt(t)?t.value:Dt(t)?(t.__ob__.dep.depend(),yn(t)):i(t)?f(t,Zt):void 0))):d=i(n)?o?()=>f(n,Zt):()=>{if(!u||!u._isDestroyed)return p&&p(),f(n,qt,[_])}:T,o&&s){const t=d;d=()=>yn(t())}let _=t=>{p=v.onStop=()=>{f(t,Jt)}};if(et())return _=T,o?r&&f(o,Gt,[d(),m?[]:void 0,_]):d(),T;const v=new wn(it,d,T,{lazy:!0});v.noRecurse=!o;let y=m?[]:Qt;return v.run=()=>{if(v.active)if(o){const t=v.get();(s||h||(m?t.some(((t,e)=>M(t,y[e]))):M(t,y)))&&(p&&p(),f(o,Gt,[t,y===Qt?void 0:y,_]),y=t)}else v.get()},"sync"===c?v.update=v.run:"post"===c?(v.post=!0,v.update=()=>zn(v)):v.update=()=>{if(u&&u===it&&!u._isMounted){const t=u._preWatchers||(u._preWatchers=[]);t.indexOf(v)<0&&t.push(v)}else zn(v)},o?r?v.run():y=v.get():"post"===c&&u?u.$once("hook:mounted",(()=>v.get())):v.get(),()=>{v.teardown()}}let te;class ee{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=te,!t&&te&&(this.index=(te.scopes||(te.scopes=[])).push(this)-1)}run(t){if(this.active){const e=te;try{return te=this,t()}finally{te=e}}}on(){te=this}off(){te=this.parent}stop(t){if(this.active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].teardown();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0,this.active=!1}}}function ne(){return te}function oe(t){const e=t._provided,n=t.$parent&&t.$parent._provided;return n===e?t._provided=Object.create(n):e}const re=b((t=>{const e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),o="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=o?t.slice(1):t,once:n,capture:o,passive:e}}));function se(t,n){function o(){const t=o.fns;if(!e(t))return Ke(t,null,arguments,n,"v-on handler");{const e=t.slice();for(let t=0;t<e.length;t++)Ke(e[t],null,arguments,n,"v-on handler")}}return o.fns=t,o}function ie(t,e,o,s,i,c){let a,l,u,f;for(a in t)l=t[a],u=e[a],f=re(a),n(l)||(n(u)?(n(l.fns)&&(l=t[a]=se(l,c)),r(f.once)&&(l=t[a]=i(f.name,l,f.capture)),o(f.name,l,f.capture,f.passive,f.params)):l!==u&&(u.fns=l,t[a]=u));for(a in e)n(t[a])&&(f=re(a),s(f.name,e[a],f.capture))}function ce(t,e,s){let i;t instanceof at&&(t=t.data.hook||(t.data.hook={}));const c=t[e];function a(){s.apply(this,arguments),v(i.fns,a)}n(c)?i=se([a]):o(c.fns)&&r(c.merged)?(i=c,i.fns.push(a)):i=se([c,a]),i.merged=!0,t[e]=i}function ae(t,e,n,r,s){if(o(e)){if(g(e,n))return t[n]=e[n],s||delete e[n],!0;if(g(e,r))return t[n]=e[r],s||delete e[r],!0}return!1}function le(t){return s(t)?[ut(t)]:e(t)?fe(t):void 0}function ue(t){return o(t)&&o(t.text)&&!1===t.isComment}function fe(t,i){const c=[];let a,l,u,f;for(a=0;a<t.length;a++)l=t[a],n(l)||"boolean"==typeof l||(u=c.length-1,f=c[u],e(l)?l.length>0&&(l=fe(l,`${i||""}_${a}`),ue(l[0])&&ue(f)&&(c[u]=ut(f.text+l[0].text),l.shift()),c.push.apply(c,l)):s(l)?ue(f)?c[u]=ut(f.text+l):""!==l&&c.push(ut(l)):ue(l)&&ue(f)?c[u]=ut(f.text+l.text):(r(t._isVList)&&o(l.tag)&&n(l.key)&&o(i)&&(l.key=`__vlist${i}_${a}__`),c.push(l)));return c}function de(t,n){let r,s,i,a,l=null;if(e(t)||"string"==typeof t)for(l=new Array(t.length),r=0,s=t.length;r<s;r++)l[r]=n(t[r],r);else if("number"==typeof t)for(l=new Array(t),r=0;r<t;r++)l[r]=n(r+1,r);else if(c(t))if(rt&&t[Symbol.iterator]){l=[];const e=t[Symbol.iterator]();let o=e.next();for(;!o.done;)l.push(n(o.value,l.length)),o=e.next()}else for(i=Object.keys(t),l=new Array(i.length),r=0,s=i.length;r<s;r++)a=i[r],l[r]=n(t[a],a,r);return o(l)||(l=[]),l._isVList=!0,l}function pe(t,e,n,o){const r=this.$scopedSlots[t];let s;r?(n=n||{},o&&(n=j(j({},o),n)),s=r(n)||(i(e)?e():e)):s=this.$slots[t]||(i(e)?e():e);const c=n&&n.slot;return c?this.$createElement("template",{slot:c},s):s}function he(t){return co(this.$options,"filters",t)||P}function me(t,n){return e(t)?-1===t.indexOf(n):t!==n}function _e(t,e,n,o,r){const s=U.keyCodes[e]||n;return r&&o&&!U.keyCodes[e]?me(r,o):s?me(s,t):o?O(o)!==e:void 0===t}function ve(t,n,o,r,s){if(o)if(c(o)){let i;e(o)&&(o=A(o));for(const e in o){if("class"===e||"style"===e||_(e))i=t;else{const o=t.attrs&&t.attrs.type;i=r||U.mustUseProp(n,o,e)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}const c=w(e),a=O(e);if(!(c in i)&&!(a in i)&&(i[e]=o[e],s)){(t.on||(t.on={}))[`update:${e}`]=function(t){o[e]=t}}}}else;return t}function ye(t,e){const n=this._staticTrees||(this._staticTrees=[]);let o=n[t];return o&&!e||(o=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),be(o,`__static__${t}`,!1)),o}function ge(t,e,n){return be(t,`__once__${e}${n?`_${n}`:""}`,!0),t}function be(t,n,o){if(e(t))for(let e=0;e<t.length;e++)t[e]&&"string"!=typeof t[e]&&$e(t[e],`${n}_${e}`,o);else $e(t,n,o)}function $e(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function we(t,e){if(e)if(l(e)){const n=t.on=t.on?j({},t.on):{};for(const t in e){const o=n[t],r=e[t];n[t]=o?[].concat(o,r):r}}else;return t}function Ce(t,n,o,r){n=n||{$stable:!o};for(let r=0;r<t.length;r++){const s=t[r];e(s)?Ce(s,n,o):s&&(s.proxy&&(s.fn.proxy=!0),n[s.key]=s.fn)}return r&&(n.$key=r),n}function xe(t,e){for(let n=0;n<e.length;n+=2){const o=e[n];"string"==typeof o&&o&&(t[e[n]]=e[n+1])}return t}function Oe(t,e){return"string"==typeof t?e+t:t}function ke(t){t._o=ge,t._n=h,t._s=d,t._l=de,t._t=pe,t._q=I,t._i=D,t._m=ye,t._f=he,t._k=_e,t._b=ve,t._v=ut,t._e=lt,t._u=Ce,t._g=we,t._d=xe,t._p=Oe}function Se(t,e){if(!t||!t.length)return{};const n={};for(let o=0,r=t.length;o<r;o++){const r=t[o],s=r.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,r.context!==e&&r.fnContext!==e||!s||null==s.slot)(n.default||(n.default=[])).push(r);else{const t=s.slot,e=n[t]||(n[t]=[]);"template"===r.tag?e.push.apply(e,r.children||[]):e.push(r)}}for(const t in n)n[t].every(je)&&delete n[t];return n}function je(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Ae(t){return t.isComment&&t.asyncFactory}function Te(e,n,o,r){let s;const i=Object.keys(o).length>0,c=n?!!n.$stable:!i,a=n&&n.$key;if(n){if(n._normalized)return n._normalized;if(c&&r&&r!==t&&a===r.$key&&!i&&!r.$hasNormal)return r;s={};for(const t in n)n[t]&&"$"!==t[0]&&(s[t]=Ee(e,o,t,n[t]))}else s={};for(const t in o)t in s||(s[t]=Pe(o,t));return n&&Object.isExtensible(n)&&(n._normalized=s),V(s,"$stable",c),V(s,"$key",a),V(s,"$hasNormal",i),s}function Ee(t,n,o,r){const s=function(){const n=it;ct(t);let o=arguments.length?r.apply(null,arguments):r({});o=o&&"object"==typeof o&&!e(o)?[o]:le(o);const s=o&&o[0];return ct(n),o&&(!s||1===o.length&&s.isComment&&!Ae(s))?void 0:o};return r.proxy&&Object.defineProperty(n,o,{get:s,enumerable:!0,configurable:!0}),s}function Pe(t,e){return()=>t[e]}function Ie(e){return{get attrs(){if(!e._attrsProxy){const n=e._attrsProxy={};V(n,"_v_attr_proxy",!0),De(n,e.$attrs,t,e,"$attrs")}return e._attrsProxy},get listeners(){if(!e._listenersProxy){De(e._listenersProxy={},e.$listeners,t,e,"$listeners")}return e._listenersProxy},get slots(){return function(t){t._slotsProxy||Me(t._slotsProxy={},t.$scopedSlots);return t._slotsProxy}(e)},emit:k(e.$emit,e),expose(t){t&&Object.keys(t).forEach((n=>Ut(e,t,n)))}}}function De(t,e,n,o,r){let s=!1;for(const i in e)i in t?e[i]!==n[i]&&(s=!0):(s=!0,Ne(t,i,o,r));for(const n in t)n in e||(s=!0,delete t[n]);return s}function Ne(t,e,n,o){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:()=>n[o][e]})}function Me(t,e){for(const n in e)t[n]=e[n];for(const n in t)n in e||delete t[n]}function Le(){const t=it;return t._setupContext||(t._setupContext=Ie(t))}let Re=null;function Fe(t,e){return(t.__esModule||rt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function Ue(t){if(e(t))for(let e=0;e<t.length;e++){const n=t[e];if(o(n)&&(o(n.componentOptions)||Ae(n)))return n}}const Be=1,Ve=2;function ze(t,n,a,l,u,f){return(e(a)||s(a))&&(u=l,l=a,a=void 0),r(f)&&(u=Ve),function(t,n,r,s,a){if(o(r)&&o(r.__ob__))return lt();o(r)&&o(r.is)&&(n=r.is);if(!n)return lt();e(s)&&i(s[0])&&((r=r||{}).scopedSlots={default:s[0]},s.length=0);a===Ve?s=le(s):a===Be&&(s=function(t){for(let n=0;n<t.length;n++)if(e(t[n]))return Array.prototype.concat.apply([],t);return t}(s));let l,u;if("string"==typeof n){let e;u=t.$vnode&&t.$vnode.ns||U.getTagNamespace(n),l=U.isReservedTag(n)?new at(U.parsePlatformTagName(n),r,s,void 0,void 0,t):r&&r.pre||!o(e=co(t.$options,"components",n))?new at(n,r,s,void 0,void 0,t):Xn(e,r,t,s,n)}else l=Xn(n,r,t,s);return e(l)?l:o(l)?(o(u)&&He(l,u),o(r)&&function(t){c(t.style)&&yn(t.style);c(t.class)&&yn(t.class)}(r),l):lt()}(t,n,a,l,u)}function He(t,e,s){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,s=!0),o(t.children))for(let i=0,c=t.children.length;i<c;i++){const c=t.children[i];o(c.tag)&&(n(c.ns)||r(s)&&"svg"!==c.tag)&&He(c,e,s)}}function We(t,e,n){vt();try{if(e){let o=e;for(;o=o.$parent;){const r=o.$options.errorCaptured;if(r)for(let s=0;s<r.length;s++)try{if(!1===r[s].call(o,t,e,n))return}catch(t){qe(t,o,"errorCaptured hook")}}}qe(t,e,n)}finally{yt()}}function Ke(t,e,n,o,r){let s;try{s=n?t.apply(e,n):t.call(e),s&&!s._isVue&&f(s)&&!s._handled&&(s.catch((t=>We(t,o,r+" (Promise/async)"))),s._handled=!0)}catch(t){We(t,o,r)}return s}function qe(t,e,n){if(U.errorHandler)try{return U.errorHandler.call(null,t,e,n)}catch(e){e!==t&&Ge(e)}Ge(t)}function Ge(t,e,n){if(!W||"undefined"==typeof console)throw t;console.error(t)}let Ze=!1;const Je=[];let Xe,Qe=!1;function Ye(){Qe=!1;const t=Je.slice(0);Je.length=0;for(let e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&ot(Promise)){const t=Promise.resolve();Xe=()=>{t.then(Ye),J&&setTimeout(T)},Ze=!0}else if(q||"undefined"==typeof MutationObserver||!ot(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Xe="undefined"!=typeof setImmediate&&ot(setImmediate)?()=>{setImmediate(Ye)}:()=>{setTimeout(Ye,0)};else{let t=1;const e=new MutationObserver(Ye),n=document.createTextNode(String(t));e.observe(n,{characterData:!0}),Xe=()=>{t=(t+1)%2,n.data=String(t)},Ze=!0}function tn(t,e){let n;if(Je.push((()=>{if(t)try{t.call(e)}catch(t){We(t,e,"nextTick")}else n&&n(e)})),Qe||(Qe=!0,Xe()),!t&&"undefined"!=typeof Promise)return new Promise((t=>{n=t}))}function en(t){return(e,n=it)=>{if(n)return function(t,e,n){const o=t.$options;o[e]=oo(o[e],n)}(n,t,e)}}const nn=en("beforeMount"),on=en("mounted"),rn=en("beforeUpdate"),sn=en("updated"),cn=en("beforeDestroy"),an=en("destroyed"),ln=en("activated"),un=en("deactivated"),fn=en("serverPrefetch"),dn=en("renderTracked"),pn=en("renderTriggered"),hn=en("errorCaptured");const mn="2.7.16";var _n=Object.freeze({__proto__:null,version:mn,defineComponent:function(t){return t},ref:function(t){return Ft(t,!1)},shallowRef:function(t){return Ft(t,!0)},isRef:Rt,toRef:Bt,toRefs:function(t){const n=e(t)?new Array(t.length):{};for(const e in t)n[e]=Bt(t,e);return n},unref:function(t){return Rt(t)?t.value:t},proxyRefs:function(t){if(Dt(t))return t;const e={},n=Object.keys(t);for(let o=0;o<n.length;o++)Ut(e,t,n[o]);return e},customRef:function(t){const e=new mt,{get:n,set:o}=t((()=>{e.depend()}),(()=>{e.notify()})),r={get value(){return n()},set value(t){o(t)}};return V(r,Lt,!0),r},triggerRef:function(t){t.dep&&t.dep.notify()},reactive:function(t){return It(t,!1),t},isReactive:Dt,isReadonly:Mt,isShallow:Nt,isProxy:function(t){return Dt(t)||Mt(t)},shallowReactive:Pt,markRaw:function(t){return Object.isExtensible(t)&&V(t,"__v_skip",!0),t},toRaw:function t(e){const n=e&&e.__v_raw;return n?t(n):e},readonly:Ht,shallowReadonly:function(t){return Wt(t,!0)},computed:function(t,e){let n,o;const r=i(t);r?(n=t,o=T):(n=t.get,o=t.set);const s=et()?null:new wn(it,n,T,{lazy:!0}),c={effect:s,get value(){return s?(s.dirty&&s.evaluate(),mt.target&&s.depend(),s.value):n()},set value(t){o(t)}};return V(c,Lt,!0),V(c,"__v_isReadonly",r),c},watch:function(t,e,n){return Yt(t,e,n)},watchEffect:function(t,e){return Yt(t,null,e)},watchPostEffect:Xt,watchSyncEffect:function(t,e){return Yt(t,null,{flush:"sync"})},EffectScope:ee,effectScope:function(t){return new ee(t)},onScopeDispose:function(t){te&&te.cleanups.push(t)},getCurrentScope:ne,provide:function(t,e){it&&(oe(it)[t]=e)},inject:function(t,e,n=!1){const o=it;if(o){const r=o.$parent&&o.$parent._provided;if(r&&t in r)return r[t];if(arguments.length>1)return n&&i(e)?e.call(o):e}},h:function(t,e,n){return ze(it,t,e,n,2,!0)},getCurrentInstance:function(){return it&&{proxy:it}},useSlots:function(){return Le().slots},useAttrs:function(){return Le().attrs},useListeners:function(){return Le().listeners},mergeDefaults:function(t,n){const o=e(t)?t.reduce(((t,e)=>(t[e]={},t)),{}):t;for(const t in n){const r=o[t];r?e(r)||i(r)?o[t]={type:r,default:n[t]}:r.default=n[t]:null===r&&(o[t]={default:n[t]})}return o},nextTick:tn,set:At,del:Tt,useCssModule:function(e="$style"){{if(!it)return t;const n=it[e];return n||t}},useCssVars:function(t){if(!W)return;const e=it;e&&Xt((()=>{const n=e.$el,o=t(e,e._setupProxy);if(n&&1===n.nodeType){const t=n.style;for(const e in o)t.setProperty(`--${e}`,o[e])}}))},defineAsyncComponent:function(t){i(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:c=!1,onError:a}=t;let l=null,u=0;const f=()=>{let t;return l||(t=l=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),a)return new Promise(((e,n)=>{a(t,(()=>e((u++,l=null,f()))),(()=>n(t)),u+1)}));throw t})).then((e=>t!==l&&l?l:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),e))))};return()=>({component:f(),delay:r,timeout:s,error:o,loading:n})},onBeforeMount:nn,onMounted:on,onBeforeUpdate:rn,onUpdated:sn,onBeforeUnmount:cn,onUnmounted:an,onActivated:ln,onDeactivated:un,onServerPrefetch:fn,onRenderTracked:dn,onRenderTriggered:pn,onErrorCaptured:function(t,e=it){hn(t,e)}});const vn=new st;function yn(t){return gn(t,vn),vn.clear(),t}function gn(t,n){let o,r;const s=e(t);if(!(!s&&!c(t)||t.__v_skip||Object.isFrozen(t)||t instanceof at)){if(t.__ob__){const e=t.__ob__.dep.id;if(n.has(e))return;n.add(e)}if(s)for(o=t.length;o--;)gn(t[o],n);else if(Rt(t))gn(t.value,n);else for(r=Object.keys(t),o=r.length;o--;)gn(t[r[o]],n)}}let bn,$n=0;class wn{constructor(t,e,n,o,r){!function(t,e=te){e&&e.active&&e.effects.push(t)}(this,te&&!te._vm?te:t?t._scope:void 0),(this.vm=t)&&r&&(t._watcher=this),o?(this.deep=!!o.deep,this.user=!!o.user,this.lazy=!!o.lazy,this.sync=!!o.sync,this.before=o.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++$n,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new st,this.newDepIds=new st,this.expression="",i(e)?this.getter=e:(this.getter=function(t){if(z.test(t))return;const e=t.split(".");return function(t){for(let n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}(e),this.getter||(this.getter=T)),this.value=this.lazy?void 0:this.get()}get(){let t;vt(this);const e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;We(t,e,`getter for watcher "${this.expression}"`)}finally{this.deep&&yn(t),yt(),this.cleanupDeps()}return t}addDep(t){const e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))}cleanupDeps(){let t=this.deps.length;for(;t--;){const e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}let e=this.depIds;this.depIds=this.newDepIds,this.newDepIds=e,this.newDepIds.clear(),e=this.deps,this.deps=this.newDeps,this.newDeps=e,this.newDeps.length=0}update(){this.lazy?this.dirty=!0:this.sync?this.run():zn(this)}run(){if(this.active){const t=this.get();if(t!==this.value||c(t)||this.deep){const e=this.value;if(this.value=t,this.user){const n=`callback for watcher "${this.expression}"`;Ke(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}}evaluate(){this.value=this.get(),this.dirty=!1}depend(){let t=this.deps.length;for(;t--;)this.deps[t].depend()}teardown(){if(this.vm&&!this.vm._isBeingDestroyed&&v(this.vm._scope.effects,this),this.active){let t=this.deps.length;for(;t--;)this.deps[t].removeSub(this);this.active=!1,this.onStop&&this.onStop()}}}function Cn(t,e){bn.$on(t,e)}function xn(t,e){bn.$off(t,e)}function On(t,e){const n=bn;return function o(){null!==e.apply(null,arguments)&&n.$off(t,o)}}function kn(t,e,n){bn=t,ie(e,n||{},Cn,xn,On,t),bn=void 0}let Sn=null;function jn(t){const e=Sn;return Sn=t,()=>{Sn=e}}function An(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function Tn(t,e){if(e){if(t._directInactive=!1,An(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(let e=0;e<t.$children.length;e++)Tn(t.$children[e]);Pn(t,"activated")}}function En(t,e){if(!(e&&(t._directInactive=!0,An(t))||t._inactive)){t._inactive=!0;for(let e=0;e<t.$children.length;e++)En(t.$children[e]);Pn(t,"deactivated")}}function Pn(t,e,n,o=!0){vt();const r=it,s=ne();o&&ct(t);const i=t.$options[e],c=`${e} hook`;if(i)for(let e=0,o=i.length;e<o;e++)Ke(i[e],t,n||null,t,c);t._hasHookEvent&&t.$emit("hook:"+e),o&&(ct(r),s&&s.on()),yt()}const In=[],Dn=[];let Nn={},Mn=!1,Ln=!1,Rn=0;let Fn=0,Un=Date.now;if(W&&!q){const t=window.performance;t&&"function"==typeof t.now&&Un()>document.createEvent("Event").timeStamp&&(Un=()=>t.now())}const Bn=(t,e)=>{if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function Vn(){let t,e;for(Fn=Un(),Ln=!0,In.sort(Bn),Rn=0;Rn<In.length;Rn++)t=In[Rn],t.before&&t.before(),e=t.id,Nn[e]=null,t.run();const n=Dn.slice(),o=In.slice();Rn=In.length=Dn.length=0,Nn={},Mn=Ln=!1,function(t){for(let e=0;e<t.length;e++)t[e]._inactive=!0,Tn(t[e],!0)}(n),function(t){let e=t.length;for(;e--;){const n=t[e],o=n.vm;o&&o._watcher===n&&o._isMounted&&!o._isDestroyed&&Pn(o,"updated")}}(o),ht(),nt&&U.devtools&&nt.emit("flush")}function zn(t){const e=t.id;if(null==Nn[e]&&(t!==mt.target||!t.noRecurse)){if(Nn[e]=!0,Ln){let e=In.length-1;for(;e>Rn&&In[e].id>t.id;)e--;In.splice(e+1,0,t)}else In.push(t);Mn||(Mn=!0,tn(Vn))}}function Hn(t,e){if(t){const n=Object.create(null),o=rt?Reflect.ownKeys(t):Object.keys(t);for(let r=0;r<o.length;r++){const s=o[r];if("__ob__"===s)continue;const c=t[s].from;if(c in e._provided)n[s]=e._provided[c];else if("default"in t[s]){const o=t[s].default;n[s]=i(o)?o.call(e):o}}return n}}function Wn(n,o,s,i,c){const a=c.options;let l;g(i,"_uid")?(l=Object.create(i),l._original=i):(l=i,i=i._original);const u=r(a._compiled),f=!u;this.data=n,this.props=o,this.children=s,this.parent=i,this.listeners=n.on||t,this.injections=Hn(a.inject,i),this.slots=()=>(this.$slots||Te(i,n.scopedSlots,this.$slots=Se(s,i)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return Te(i,n.scopedSlots,this.slots())}}),u&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=Te(i,n.scopedSlots,this.$slots)),a._scopeId?this._c=(t,n,o,r)=>{const s=ze(l,t,n,o,r,f);return s&&!e(s)&&(s.fnScopeId=a._scopeId,s.fnContext=i),s}:this._c=(t,e,n,o)=>ze(l,t,e,n,o,f)}function Kn(t,e,n,o,r){const s=ft(t);return s.fnContext=n,s.fnOptions=o,e.slot&&((s.data||(s.data={})).slot=e.slot),s}function qn(t,e){for(const n in e)t[w(n)]=e[n]}function Gn(t){return t.name||t.__name||t._componentTag}ke(Wn.prototype);const Zn={init(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){const e=t;Zn.prepatch(e,e)}else{(t.componentInstance=function(t,e){const n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,Sn)).$mount(e?t.elm:void 0,e)}},prepatch(e,n){const o=n.componentOptions;!function(e,n,o,r,s){const i=r.data.scopedSlots,c=e.$scopedSlots,a=!!(i&&!i.$stable||c!==t&&!c.$stable||i&&e.$scopedSlots.$key!==i.$key||!i&&e.$scopedSlots.$key);let l=!!(s||e.$options._renderChildren||a);const u=e.$vnode;e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=s;const f=r.data.attrs||t;e._attrsProxy&&De(e._attrsProxy,f,u.data&&u.data.attrs||t,e,"$attrs")&&(l=!0),e.$attrs=f,o=o||t;const d=e.$options._parentListeners;if(e._listenersProxy&&De(e._listenersProxy,o,d||t,e,"$listeners"),e.$listeners=e.$options._parentListeners=o,kn(e,o,d),n&&e.$options.props){xt(!1);const t=e._props,o=e.$options._propKeys||[];for(let r=0;r<o.length;r++){const s=o[r],i=e.$options.props;t[s]=ao(s,i,n,e)}xt(!0),e.$options.propsData=n}l&&(e.$slots=Se(s,r.context),e.$forceUpdate())}(n.componentInstance=e.componentInstance,o.propsData,o.listeners,n,o.children)},insert(t){const{context:e,componentInstance:n}=t;var o;n._isMounted||(n._isMounted=!0,Pn(n,"mounted")),t.data.keepAlive&&(e._isMounted?((o=n)._inactive=!1,Dn.push(o)):Tn(n,!0))},destroy(t){const{componentInstance:e}=t;e._isDestroyed||(t.data.keepAlive?En(e,!0):e.$destroy())}},Jn=Object.keys(Zn);function Xn(s,i,a,l,u){if(n(s))return;const d=a.$options._base;if(c(s)&&(s=d.extend(s)),"function"!=typeof s)return;let p;if(n(s.cid)&&(p=s,s=function(t,e){if(r(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;const s=Re;if(s&&o(t.owners)&&-1===t.owners.indexOf(s)&&t.owners.push(s),r(t.loading)&&o(t.loadingComp))return t.loadingComp;if(s&&!o(t.owners)){const r=t.owners=[s];let i=!0,a=null,l=null;s.$on("hook:destroyed",(()=>v(r,s)));const u=t=>{for(let t=0,e=r.length;t<e;t++)r[t].$forceUpdate();t&&(r.length=0,null!==a&&(clearTimeout(a),a=null),null!==l&&(clearTimeout(l),l=null))},d=N((n=>{t.resolved=Fe(n,e),i?r.length=0:u(!0)})),p=N((e=>{o(t.errorComp)&&(t.error=!0,u(!0))})),h=t(d,p);return c(h)&&(f(h)?n(t.resolved)&&h.then(d,p):f(h.component)&&(h.component.then(d,p),o(h.error)&&(t.errorComp=Fe(h.error,e)),o(h.loading)&&(t.loadingComp=Fe(h.loading,e),0===h.delay?t.loading=!0:a=setTimeout((()=>{a=null,n(t.resolved)&&n(t.error)&&(t.loading=!0,u(!1))}),h.delay||200)),o(h.timeout)&&(l=setTimeout((()=>{l=null,n(t.resolved)&&p(null)}),h.timeout)))),i=!1,t.loading?t.loadingComp:t.resolved}}(p,d),void 0===s))return function(t,e,n,o,r){const s=lt();return s.asyncFactory=t,s.asyncMeta={data:e,context:n,children:o,tag:r},s}(p,i,a,l,u);i=i||{},Co(s),o(i.model)&&function(t,n){const r=t.model&&t.model.prop||"value",s=t.model&&t.model.event||"input";(n.attrs||(n.attrs={}))[r]=n.model.value;const i=n.on||(n.on={}),c=i[s],a=n.model.callback;o(c)?(e(c)?-1===c.indexOf(a):c!==a)&&(i[s]=[a].concat(c)):i[s]=a}(s.options,i);const h=function(t,e,r){const s=e.options.props;if(n(s))return;const i={},{attrs:c,props:a}=t;if(o(c)||o(a))for(const t in s){const e=O(t);ae(i,a,t,e,!0)||ae(i,c,t,e,!1)}return i}(i,s);if(r(s.options.functional))return function(n,r,s,i,c){const a=n.options,l={},u=a.props;if(o(u))for(const e in u)l[e]=ao(e,u,r||t);else o(s.attrs)&&qn(l,s.attrs),o(s.props)&&qn(l,s.props);const f=new Wn(s,l,c,i,n),d=a.render.call(null,f._c,f);if(d instanceof at)return Kn(d,s,f.parent,a);if(e(d)){const t=le(d)||[],e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=Kn(t[n],s,f.parent,a);return e}}(s,h,i,a,l);const m=i.on;if(i.on=i.nativeOn,r(s.options.abstract)){const t=i.slot;i={},t&&(i.slot=t)}!function(t){const e=t.hook||(t.hook={});for(let t=0;t<Jn.length;t++){const n=Jn[t],o=e[n],r=Zn[n];o===r||o&&o._merged||(e[n]=o?Qn(r,o):r)}}(i);const _=Gn(s.options)||u;return new at(`vue-component-${s.cid}${_?`-${_}`:""}`,i,void 0,void 0,void 0,a,{Ctor:s,propsData:h,listeners:m,tag:u,children:l},p)}function Qn(t,e){const n=(n,o)=>{t(n,o),e(n,o)};return n._merged=!0,n}let Yn=T;const to=U.optionMergeStrategies;function eo(t,e,n=!0){if(!e)return t;let o,r,s;const i=rt?Reflect.ownKeys(e):Object.keys(e);for(let c=0;c<i.length;c++)o=i[c],"__ob__"!==o&&(r=t[o],s=e[o],n&&g(t,o)?r!==s&&l(r)&&l(s)&&eo(r,s):At(t,o,s));return t}function no(t,e,n){return n?function(){const o=i(e)?e.call(n,n):e,r=i(t)?t.call(n,n):t;return o?eo(o,r):r}:e?t?function(){return eo(i(e)?e.call(this,this):e,i(t)?t.call(this,this):t)}:e:t}function oo(t,n){const o=n?t?t.concat(n):e(n)?n:[n]:t;return o?function(t){const e=[];for(let n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(o):o}function ro(t,e,n,o){const r=Object.create(t||null);return e?j(r,e):r}to.data=function(t,e,n){return n?no(t,e,n):e&&"function"!=typeof e?t:no(t,e)},F.forEach((t=>{to[t]=oo})),R.forEach((function(t){to[t+"s"]=ro})),to.watch=function(t,n,o,r){if(t===Q&&(t=void 0),n===Q&&(n=void 0),!n)return Object.create(t||null);if(!t)return n;const s={};j(s,t);for(const t in n){let o=s[t];const r=n[t];o&&!e(o)&&(o=[o]),s[t]=o?o.concat(r):e(r)?r:[r]}return s},to.props=to.methods=to.inject=to.computed=function(t,e,n,o){if(!t)return e;const r=Object.create(null);return j(r,t),e&&j(r,e),r},to.provide=function(t,e){return t?function(){const n=Object.create(null);return eo(n,i(t)?t.call(this):t),e&&eo(n,i(e)?e.call(this):e,!1),n}:e};const so=function(t,e){return void 0===e?t:e};function io(t,n,o){if(i(n)&&(n=n.options),function(t,n){const o=t.props;if(!o)return;const r={};let s,i,c;if(e(o))for(s=o.length;s--;)i=o[s],"string"==typeof i&&(c=w(i),r[c]={type:null});else if(l(o))for(const t in o)i=o[t],c=w(t),r[c]=l(i)?i:{type:i};t.props=r}(n),function(t,n){const o=t.inject;if(!o)return;const r=t.inject={};if(e(o))for(let t=0;t<o.length;t++)r[o[t]]={from:o[t]};else if(l(o))for(const t in o){const e=o[t];r[t]=l(e)?j({from:t},e):{from:e}}}(n),function(t){const e=t.directives;if(e)for(const t in e){const n=e[t];i(n)&&(e[t]={bind:n,update:n})}}(n),!n._base&&(n.extends&&(t=io(t,n.extends,o)),n.mixins))for(let e=0,r=n.mixins.length;e<r;e++)t=io(t,n.mixins[e],o);const r={};let s;for(s in t)c(s);for(s in n)g(t,s)||c(s);function c(e){const s=to[e]||so;r[e]=s(t[e],n[e],o,e)}return r}function co(t,e,n,o){if("string"!=typeof n)return;const r=t[e];if(g(r,n))return r[n];const s=w(n);if(g(r,s))return r[s];const i=C(s);if(g(r,i))return r[i];return r[n]||r[s]||r[i]}function ao(t,e,n,o){const r=e[t],s=!g(n,t);let c=n[t];const a=po(Boolean,r.type);if(a>-1)if(s&&!g(r,"default"))c=!1;else if(""===c||c===O(t)){const t=po(String,r.type);(t<0||a<t)&&(c=!0)}if(void 0===c){c=function(t,e,n){if(!g(e,"default"))return;const o=e.default;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return i(o)&&"Function"!==uo(e.type)?o.call(t):o}(o,r,t);const e=Ct;xt(!0),St(c),xt(e)}return c}const lo=/^\s*function (\w+)/;function uo(t){const e=t&&t.toString().match(lo);return e?e[1]:""}function fo(t,e){return uo(t)===uo(e)}function po(t,n){if(!e(n))return fo(n,t)?0:-1;for(let e=0,o=n.length;e<o;e++)if(fo(n[e],t))return e;return-1}const ho={enumerable:!0,configurable:!0,get:T,set:T};function mo(t,e,n){ho.get=function(){return this[e][n]},ho.set=function(t){this[e][n]=t},Object.defineProperty(t,n,ho)}function _o(t){const n=t.$options;if(n.props&&function(t,e){const n=t.$options.propsData||{},o=t._props=Pt({}),r=t.$options._propKeys=[],s=!t.$parent;s||xt(!1);for(const s in e){r.push(s);jt(o,s,ao(s,e,n,t),void 0,!0),s in t||mo(t,"_props",s)}xt(!0)}(t,n.props),function(t){const e=t.$options,n=e.setup;if(n){const o=t._setupContext=Ie(t);ct(t),vt();const r=Ke(n,null,[t._props||Pt({}),o],t,"setup");if(yt(),ct(),i(r))e.render=r;else if(c(r))if(t._setupState=r,r.__sfc){const e=t._setupProxy={};for(const t in r)"__sfc"!==t&&Ut(e,r,t)}else for(const e in r)B(e)||Ut(t,r,e)}}(t),n.methods&&function(t,e){t.$options.props;for(const n in e)t[n]="function"!=typeof e[n]?T:k(e[n],t)}(t,n.methods),n.data)!function(t){let e=t.$options.data;e=t._data=i(e)?function(t,e){vt();try{return t.call(e,e)}catch(t){return We(t,e,"data()"),{}}finally{yt()}}(e,t):e||{},l(e)||(e={});const n=Object.keys(e),o=t.$options.props;t.$options.methods;let r=n.length;for(;r--;){const e=n[r];o&&g(o,e)||B(e)||mo(t,"_data",e)}const s=St(e);s&&s.vmCount++}(t);else{const e=St(t._data={});e&&e.vmCount++}n.computed&&function(t,e){const n=t._computedWatchers=Object.create(null),o=et();for(const r in e){const s=e[r],c=i(s)?s:s.get;o||(n[r]=new wn(t,c||T,T,vo)),r in t||yo(t,r,s)}}(t,n.computed),n.watch&&n.watch!==Q&&function(t,n){for(const o in n){const r=n[o];if(e(r))for(let e=0;e<r.length;e++)$o(t,o,r[e]);else $o(t,o,r)}}(t,n.watch)}const vo={lazy:!0};function yo(t,e,n){const o=!et();i(n)?(ho.get=o?go(e):bo(n),ho.set=T):(ho.get=n.get?o&&!1!==n.cache?go(e):bo(n.get):T,ho.set=n.set||T),Object.defineProperty(t,e,ho)}function go(t){return function(){const e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),mt.target&&e.depend(),e.value}}function bo(t){return function(){return t.call(this,this)}}function $o(t,e,n,o){return l(n)&&(o=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,o)}let wo=0;function Co(t){let e=t.options;if(t.super){const n=Co(t.super);if(n!==t.superOptions){t.superOptions=n;const o=function(t){let e;const n=t.options,o=t.sealedOptions;for(const t in n)n[t]!==o[t]&&(e||(e={}),e[t]=n[t]);return e}(t);o&&j(t.extendOptions,o),e=t.options=io(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function xo(t){this._init(t)}function Oo(t){t.cid=0;let e=1;t.extend=function(t){t=t||{};const n=this,o=n.cid,r=t._Ctor||(t._Ctor={});if(r[o])return r[o];const s=Gn(t)||Gn(n.options),i=function(t){this._init(t)};return(i.prototype=Object.create(n.prototype)).constructor=i,i.cid=e++,i.options=io(n.options,t),i.super=n,i.options.props&&function(t){const e=t.options.props;for(const n in e)mo(t.prototype,"_props",n)}(i),i.options.computed&&function(t){const e=t.options.computed;for(const n in e)yo(t.prototype,n,e[n])}(i),i.extend=n.extend,i.mixin=n.mixin,i.use=n.use,R.forEach((function(t){i[t]=n[t]})),s&&(i.options.components[s]=i),i.superOptions=n.options,i.extendOptions=t,i.sealedOptions=j({},i.options),r[o]=i,i}}function ko(t){return t&&(Gn(t.Ctor.options)||t.tag)}function So(t,n){return e(t)?t.indexOf(n)>-1:"string"==typeof t?t.split(",").indexOf(n)>-1:(o=t,"[object RegExp]"===a.call(o)&&t.test(n));var o}function jo(t,e){const{cache:n,keys:o,_vnode:r,$vnode:s}=t;for(const t in n){const s=n[t];if(s){const i=s.name;i&&!e(i)&&Ao(n,t,o,r)}}s.componentOptions.children=void 0}function Ao(t,e,n,o){const r=t[e];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),t[e]=null,v(n,e)}!function(e){e.prototype._init=function(e){const n=this;n._uid=wo++,n._isVue=!0,n.__v_skip=!0,n._scope=new ee(!0),n._scope.parent=void 0,n._scope._vm=!0,e&&e._isComponent?function(t,e){const n=t.$options=Object.create(t.constructor.options),o=e._parentVnode;n.parent=e.parent,n._parentVnode=o;const r=o.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(n,e):n.$options=io(Co(n.constructor),e||{},n),n._renderProxy=n,n._self=n,function(t){const e=t.$options;let n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(n),function(t){t._events=Object.create(null),t._hasHookEvent=!1;const e=t.$options._parentListeners;e&&kn(t,e)}(n),function(e){e._vnode=null,e._staticTrees=null;const n=e.$options,o=e.$vnode=n._parentVnode,r=o&&o.context;e.$slots=Se(n._renderChildren,r),e.$scopedSlots=o?Te(e.$parent,o.data.scopedSlots,e.$slots):t,e._c=(t,n,o,r)=>ze(e,t,n,o,r,!1),e.$createElement=(t,n,o,r)=>ze(e,t,n,o,r,!0);const s=o&&o.data;jt(e,"$attrs",s&&s.attrs||t,null,!0),jt(e,"$listeners",n._parentListeners||t,null,!0)}(n),Pn(n,"beforeCreate",void 0,!1),function(t){const e=Hn(t.$options.inject,t);e&&(xt(!1),Object.keys(e).forEach((n=>{jt(t,n,e[n])})),xt(!0))}(n),_o(n),function(t){const e=t.$options.provide;if(e){const n=i(e)?e.call(t):e;if(!c(n))return;const o=oe(t),r=rt?Reflect.ownKeys(n):Object.keys(n);for(let t=0;t<r.length;t++){const e=r[t];Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(n,e))}}}(n),Pn(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(xo),function(t){const e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=At,t.prototype.$delete=Tt,t.prototype.$watch=function(t,e,n){const o=this;if(l(e))return $o(o,t,e,n);(n=n||{}).user=!0;const r=new wn(o,t,e,n);if(n.immediate){const t=`callback for immediate watcher "${r.expression}"`;vt(),Ke(e,o,[r.value],o,t),yt()}return function(){r.teardown()}}}(xo),function(t){const n=/^hook:/;t.prototype.$on=function(t,o){const r=this;if(e(t))for(let e=0,n=t.length;e<n;e++)r.$on(t[e],o);else(r._events[t]||(r._events[t]=[])).push(o),n.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){const n=this;function o(){n.$off(t,o),e.apply(n,arguments)}return o.fn=e,n.$on(t,o),n},t.prototype.$off=function(t,n){const o=this;if(!arguments.length)return o._events=Object.create(null),o;if(e(t)){for(let e=0,r=t.length;e<r;e++)o.$off(t[e],n);return o}const r=o._events[t];if(!r)return o;if(!n)return o._events[t]=null,o;let s,i=r.length;for(;i--;)if(s=r[i],s===n||s.fn===n){r.splice(i,1);break}return o},t.prototype.$emit=function(t){const e=this;let n=e._events[t];if(n){n=n.length>1?S(n):n;const o=S(arguments,1),r=`event handler for "${t}"`;for(let t=0,s=n.length;t<s;t++)Ke(n[t],e,o,e,r)}return e}}(xo),function(t){t.prototype._update=function(t,e){const n=this,o=n.$el,r=n._vnode,s=jn(n);n._vnode=t,n.$el=r?n.__patch__(r,t):n.__patch__(n.$el,t,e,!1),s(),o&&(o.__vue__=null),n.$el&&(n.$el.__vue__=n);let i=n;for(;i&&i.$vnode&&i.$parent&&i.$vnode===i.$parent._vnode;)i.$parent.$el=i.$el,i=i.$parent},t.prototype.$forceUpdate=function(){const t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){const t=this;if(t._isBeingDestroyed)return;Pn(t,"beforeDestroy"),t._isBeingDestroyed=!0;const e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||v(e.$children,t),t._scope.stop(),t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Pn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}(xo),function(t){ke(t.prototype),t.prototype.$nextTick=function(t){return tn(t,this)},t.prototype._render=function(){const t=this,{render:n,_parentVnode:o}=t.$options;o&&t._isMounted&&(t.$scopedSlots=Te(t.$parent,o.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&Me(t._slotsProxy,t.$scopedSlots)),t.$vnode=o;const r=it,s=Re;let i;try{ct(t),Re=t,i=n.call(t._renderProxy,t.$createElement)}catch(e){We(e,t,"render"),i=t._vnode}finally{Re=s,ct(r)}return e(i)&&1===i.length&&(i=i[0]),i instanceof at||(i=lt()),i.parent=o,i}}(xo);const To=[String,RegExp,Array];var Eo={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:To,exclude:To,max:[String,Number]},methods:{cacheVNode(){const{cache:t,keys:e,vnodeToCache:n,keyToCache:o}=this;if(n){const{tag:r,componentInstance:s,componentOptions:i}=n;t[o]={name:ko(i),tag:r,componentInstance:s},e.push(o),this.max&&e.length>parseInt(this.max)&&Ao(t,e[0],e,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const t in this.cache)Ao(this.cache,t,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",(t=>{jo(this,(e=>So(t,e)))})),this.$watch("exclude",(t=>{jo(this,(e=>!So(t,e)))}))},updated(){this.cacheVNode()},render(){const t=this.$slots.default,e=Ue(t),n=e&&e.componentOptions;if(n){const t=ko(n),{include:o,exclude:r}=this;if(o&&(!t||!So(o,t))||r&&t&&So(r,t))return e;const{cache:s,keys:i}=this,c=null==e.key?n.Ctor.cid+(n.tag?`::${n.tag}`:""):e.key;s[c]?(e.componentInstance=s[c].componentInstance,v(i,c),i.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){const e={get:()=>U};Object.defineProperty(t,"config",e),t.util={warn:Yn,extend:j,mergeOptions:io,defineReactive:jt},t.set=At,t.delete=Tt,t.nextTick=tn,t.observable=t=>(St(t),t),t.options=Object.create(null),R.forEach((e=>{t.options[e+"s"]=Object.create(null)})),t.options._base=t,j(t.options.components,Eo),function(t){t.use=function(t){const e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;const n=S(arguments,1);return n.unshift(this),i(t.install)?t.install.apply(t,n):i(t)&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=io(this.options,t),this}}(t),Oo(t),function(t){R.forEach((e=>{t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&i(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(xo),Object.defineProperty(xo.prototype,"$isServer",{get:et}),Object.defineProperty(xo.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xo,"FunctionalRenderContext",{value:Wn}),xo.version=mn;const Po=m("style,class"),Io=m("input,textarea,option,select,progress"),Do=m("contenteditable,draggable,spellcheck"),No=m("events,caret,typing,plaintext-only"),Mo=(t,e)=>Bo(e)||"false"===e?"false":"contenteditable"===t&&No(e)?e:"true",Lo=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Ro="http://www.w3.org/1999/xlink",Fo=t=>":"===t.charAt(5)&&"xlink"===t.slice(0,5),Uo=t=>Fo(t)?t.slice(6,t.length):"",Bo=t=>null==t||!1===t;function Vo(t){let e=t.data,n=t,r=t;for(;o(r.componentInstance);)r=r.componentInstance._vnode,r&&r.data&&(e=zo(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=zo(e,n.data));return function(t,e){if(o(t)||o(e))return Ho(t,Wo(e));return""}(e.staticClass,e.class)}function zo(t,e){return{staticClass:Ho(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Ho(t,e){return t?e?t+" "+e:t:e||""}function Wo(t){return Array.isArray(t)?function(t){let e,n="";for(let r=0,s=t.length;r<s;r++)o(e=Wo(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):c(t)?function(t){let e="";for(const n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}const Ko={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},qo=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Go=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Zo=t=>qo(t)||Go(t);const Jo=Object.create(null);const Xo=m("text,number,password,search,email,tel,url");var Qo=Object.freeze({__proto__:null,createElement:function(t,e){const n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(Ko[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),Yo={create(t,e){tr(e)},update(t,e){t.data.ref!==e.data.ref&&(tr(t,!0),tr(e))},destroy(t){tr(t,!0)}};function tr(t,n){const r=t.data.ref;if(!o(r))return;const s=t.context,c=t.componentInstance||t.elm,a=n?null:c,l=n?void 0:c;if(i(r))return void Ke(r,s,[a],s,"template ref function");const u=t.data.refInFor,f="string"==typeof r||"number"==typeof r,d=Rt(r),p=s.$refs;if(f||d)if(u){const t=f?p[r]:r.value;n?e(t)&&v(t,c):e(t)?t.includes(c)||t.push(c):f?(p[r]=[c],er(s,r,p[r])):r.value=[c]}else if(f){if(n&&p[r]!==c)return;p[r]=l,er(s,r,a)}else if(d){if(n&&r.value!==c)return;r.value=a}}function er({_setupState:t},e,n){t&&g(t,e)&&(Rt(t[e])?t[e].value=n:t[e]=n)}const nr=new at("",{},[]),or=["create","activate","update","remove","destroy"];function rr(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&function(t,e){if("input"!==t.tag)return!0;let n;const r=o(n=t.data)&&o(n=n.attrs)&&n.type,s=o(n=e.data)&&o(n=n.attrs)&&n.type;return r===s||Xo(r)&&Xo(s)}(t,e)||r(t.isAsyncPlaceholder)&&n(e.asyncFactory.error))}function sr(t,e,n){let r,s;const i={};for(r=e;r<=n;++r)s=t[r].key,o(s)&&(i[s]=r);return i}var ir={create:cr,update:cr,destroy:function(t){cr(t,nr)}};function cr(t,e){(t.data.directives||e.data.directives)&&function(t,e){const n=t===nr,o=e===nr,r=lr(t.data.directives,t.context),s=lr(e.data.directives,e.context),i=[],c=[];let a,l,u;for(a in s)l=r[a],u=s[a],l?(u.oldValue=l.value,u.oldArg=l.arg,fr(u,"update",e,t),u.def&&u.def.componentUpdated&&c.push(u)):(fr(u,"bind",e,t),u.def&&u.def.inserted&&i.push(u));if(i.length){const o=()=>{for(let n=0;n<i.length;n++)fr(i[n],"inserted",e,t)};n?ce(e,"insert",o):o()}c.length&&ce(e,"postpatch",(()=>{for(let n=0;n<c.length;n++)fr(c[n],"componentUpdated",e,t)}));if(!n)for(a in r)s[a]||fr(r[a],"unbind",t,t,o)}(t,e)}const ar=Object.create(null);function lr(t,e){const n=Object.create(null);if(!t)return n;let o,r;for(o=0;o<t.length;o++){if(r=t[o],r.modifiers||(r.modifiers=ar),n[ur(r)]=r,e._setupState&&e._setupState.__sfc){const t=r.def||co(e,"_setupState","v-"+r.name);r.def="function"==typeof t?{bind:t,update:t}:t}r.def=r.def||co(e.$options,"directives",r.name)}return n}function ur(t){return t.rawName||`${t.name}.${Object.keys(t.modifiers||{}).join(".")}`}function fr(t,e,n,o,r){const s=t.def&&t.def[e];if(s)try{s(n.elm,t,n,o,r)}catch(o){We(o,n.context,`directive ${t.name} ${e} hook`)}}var dr=[Yo,ir];function pr(t,e){const s=e.componentOptions;if(o(s)&&!1===s.Ctor.options.inheritAttrs)return;if(n(t.data.attrs)&&n(e.data.attrs))return;let i,c,a;const l=e.elm,u=t.data.attrs||{};let f=e.data.attrs||{};for(i in(o(f.__ob__)||r(f._v_attr_proxy))&&(f=e.data.attrs=j({},f)),f)c=f[i],a=u[i],a!==c&&hr(l,i,c,e.data.pre);for(i in(q||Z)&&f.value!==u.value&&hr(l,"value",f.value),u)n(f[i])&&(Fo(i)?l.removeAttributeNS(Ro,Uo(i)):Do(i)||l.removeAttribute(i))}function hr(t,e,n,o){o||t.tagName.indexOf("-")>-1?mr(t,e,n):Lo(e)?Bo(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Do(e)?t.setAttribute(e,Mo(e,n)):Fo(e)?Bo(n)?t.removeAttributeNS(Ro,Uo(e)):t.setAttributeNS(Ro,e,n):mr(t,e,n)}function mr(t,e,n){if(Bo(n))t.removeAttribute(e);else{if(q&&!G&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){const e=n=>{n.stopImmediatePropagation(),t.removeEventListener("input",e)};t.addEventListener("input",e),t.__ieph=!0}t.setAttribute(e,n)}}var _r={create:pr,update:pr};function vr(t,e){const r=e.elm,s=e.data,i=t.data;if(n(s.staticClass)&&n(s.class)&&(n(i)||n(i.staticClass)&&n(i.class)))return;let c=Vo(e);const a=r._transitionClasses;o(a)&&(c=Ho(c,Wo(a))),c!==r._prevClass&&(r.setAttribute("class",c),r._prevClass=c)}var yr={create:vr,update:vr};const gr="__r",br="__c";let $r;function wr(t,e,n){const o=$r;return function r(){null!==e.apply(null,arguments)&&Or(t,r,n,o)}}const Cr=Ze&&!(X&&Number(X[1])<=53);function xr(t,e,n,o){if(Cr){const t=Fn,n=e;e=n._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=t||e.timeStamp<=0||e.target.ownerDocument!==document)return n.apply(this,arguments)}}$r.addEventListener(t,e,tt?{capture:n,passive:o}:n)}function Or(t,e,n,o){(o||$r).removeEventListener(t,e._wrapper||e,n)}function kr(t,e){if(n(t.data.on)&&n(e.data.on))return;const r=e.data.on||{},s=t.data.on||{};$r=e.elm||t.elm,function(t){if(o(t[gr])){const e=q?"change":"input";t[e]=[].concat(t[gr],t[e]||[]),delete t[gr]}o(t[br])&&(t.change=[].concat(t[br],t.change||[]),delete t[br])}(r),ie(r,s,xr,Or,wr,e.context),$r=void 0}var Sr={create:kr,update:kr,destroy:t=>kr(t,nr)};let jr;function Ar(t,e){if(n(t.data.domProps)&&n(e.data.domProps))return;let s,i;const c=e.elm,a=t.data.domProps||{};let l=e.data.domProps||{};for(s in(o(l.__ob__)||r(l._v_attr_proxy))&&(l=e.data.domProps=j({},l)),a)s in l||(c[s]="");for(s in l){if(i=l[s],"textContent"===s||"innerHTML"===s){if(e.children&&(e.children.length=0),i===a[s])continue;1===c.childNodes.length&&c.removeChild(c.childNodes[0])}if("value"===s&&"PROGRESS"!==c.tagName){c._value=i;const t=n(i)?"":String(i);Tr(c,t)&&(c.value=t)}else if("innerHTML"===s&&Go(c.tagName)&&n(c.innerHTML)){jr=jr||document.createElement("div"),jr.innerHTML=`<svg>${i}</svg>`;const t=jr.firstChild;for(;c.firstChild;)c.removeChild(c.firstChild);for(;t.firstChild;)c.appendChild(t.firstChild)}else if(i!==a[s])try{c[s]=i}catch(t){}}}function Tr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){let n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){const n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return h(n)!==h(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Er={create:Ar,update:Ar};const Pr=b((function(t){const e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){const o=t.split(n);o.length>1&&(e[o[0].trim()]=o[1].trim())}})),e}));function Ir(t){const e=Dr(t.style);return t.staticStyle?j(t.staticStyle,e):e}function Dr(t){return Array.isArray(t)?A(t):"string"==typeof t?Pr(t):t}const Nr=/^--/,Mr=/\s*!important$/,Lr=(t,e,n)=>{if(Nr.test(e))t.style.setProperty(e,n);else if(Mr.test(n))t.style.setProperty(O(e),n.replace(Mr,""),"important");else{const o=Ur(e);if(Array.isArray(n))for(let e=0,r=n.length;e<r;e++)t.style[o]=n[e];else t.style[o]=n}},Rr=["Webkit","Moz","ms"];let Fr;const Ur=b((function(t){if(Fr=Fr||document.createElement("div").style,"filter"!==(t=w(t))&&t in Fr)return t;const e=t.charAt(0).toUpperCase()+t.slice(1);for(let t=0;t<Rr.length;t++){const n=Rr[t]+e;if(n in Fr)return n}}));function Br(t,e){const r=e.data,s=t.data;if(n(r.staticStyle)&&n(r.style)&&n(s.staticStyle)&&n(s.style))return;let i,c;const a=e.elm,l=s.staticStyle,u=s.normalizedStyle||s.style||{},f=l||u,d=Dr(e.data.style)||{};e.data.normalizedStyle=o(d.__ob__)?j({},d):d;const p=function(t,e){const n={};let o;if(e){let e=t;for(;e.componentInstance;)e=e.componentInstance._vnode,e&&e.data&&(o=Ir(e.data))&&j(n,o)}(o=Ir(t.data))&&j(n,o);let r=t;for(;r=r.parent;)r.data&&(o=Ir(r.data))&&j(n,o);return n}(e,!0);for(c in f)n(p[c])&&Lr(a,c,"");for(c in p)i=p[c],Lr(a,c,null==i?"":i)}var Vr={create:Br,update:Br};const zr=/\s+/;function Hr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(zr).forEach((e=>t.classList.add(e))):t.classList.add(e);else{const n=` ${t.getAttribute("class")||""} `;n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Wr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(zr).forEach((e=>t.classList.remove(e))):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{let n=` ${t.getAttribute("class")||""} `;const o=" "+e+" ";for(;n.indexOf(o)>=0;)n=n.replace(o," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Kr(t){if(t){if("object"==typeof t){const e={};return!1!==t.css&&j(e,qr(t.name||"v")),j(e,t),e}return"string"==typeof t?qr(t):void 0}}const qr=b((t=>({enterClass:`${t}-enter`,enterToClass:`${t}-enter-to`,enterActiveClass:`${t}-enter-active`,leaveClass:`${t}-leave`,leaveToClass:`${t}-leave-to`,leaveActiveClass:`${t}-leave-active`}))),Gr=W&&!G,Zr="transition",Jr="animation";let Xr="transition",Qr="transitionend",Yr="animation",ts="animationend";Gr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Xr="WebkitTransition",Qr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Yr="WebkitAnimation",ts="webkitAnimationEnd"));const es=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:t=>t();function ns(t){es((()=>{es(t)}))}function os(t,e){const n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Hr(t,e))}function rs(t,e){t._transitionClasses&&v(t._transitionClasses,e),Wr(t,e)}function ss(t,e,n){const{type:o,timeout:r,propCount:s}=cs(t,e);if(!o)return n();const i=o===Zr?Qr:ts;let c=0;const a=()=>{t.removeEventListener(i,l),n()},l=e=>{e.target===t&&++c>=s&&a()};setTimeout((()=>{c<s&&a()}),r+1),t.addEventListener(i,l)}const is=/\b(transform|all)(,|$)/;function cs(t,e){const n=window.getComputedStyle(t),o=(n[Xr+"Delay"]||"").split(", "),r=(n[Xr+"Duration"]||"").split(", "),s=as(o,r),i=(n[Yr+"Delay"]||"").split(", "),c=(n[Yr+"Duration"]||"").split(", "),a=as(i,c);let l,u=0,f=0;e===Zr?s>0&&(l=Zr,u=s,f=r.length):e===Jr?a>0&&(l=Jr,u=a,f=c.length):(u=Math.max(s,a),l=u>0?s>a?Zr:Jr:null,f=l?l===Zr?r.length:c.length:0);return{type:l,timeout:u,propCount:f,hasTransform:l===Zr&&is.test(n[Xr+"Property"])}}function as(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(((e,n)=>ls(e)+ls(t[n]))))}function ls(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function us(t,e){const r=t.elm;o(r._leaveCb)&&(r._leaveCb.cancelled=!0,r._leaveCb());const s=Kr(t.data.transition);if(n(s))return;if(o(r._enterCb)||1!==r.nodeType)return;const{css:a,type:l,enterClass:u,enterToClass:f,enterActiveClass:d,appearClass:p,appearToClass:m,appearActiveClass:_,beforeEnter:v,enter:y,afterEnter:g,enterCancelled:b,beforeAppear:$,appear:w,afterAppear:C,appearCancelled:x,duration:O}=s;let k=Sn,S=Sn.$vnode;for(;S&&S.parent;)k=S.context,S=S.parent;const j=!k._isMounted||!t.isRootInsert;if(j&&!w&&""!==w)return;const A=j&&p?p:u,T=j&&_?_:d,E=j&&m?m:f,P=j&&$||v,I=j&&i(w)?w:y,D=j&&C||g,M=j&&x||b,L=h(c(O)?O.enter:O),R=!1!==a&&!G,F=ps(I),U=r._enterCb=N((()=>{R&&(rs(r,E),rs(r,T)),U.cancelled?(R&&rs(r,A),M&&M(r)):D&&D(r),r._enterCb=null}));t.data.show||ce(t,"insert",(()=>{const e=r.parentNode,n=e&&e._pending&&e._pending[t.key];n&&n.tag===t.tag&&n.elm._leaveCb&&n.elm._leaveCb(),I&&I(r,U)})),P&&P(r),R&&(os(r,A),os(r,T),ns((()=>{rs(r,A),U.cancelled||(os(r,E),F||(ds(L)?setTimeout(U,L):ss(r,l,U)))}))),t.data.show&&(e&&e(),I&&I(r,U)),R||F||U()}function fs(t,e){const r=t.elm;o(r._enterCb)&&(r._enterCb.cancelled=!0,r._enterCb());const s=Kr(t.data.transition);if(n(s)||1!==r.nodeType)return e();if(o(r._leaveCb))return;const{css:i,type:a,leaveClass:l,leaveToClass:u,leaveActiveClass:f,beforeLeave:d,leave:p,afterLeave:m,leaveCancelled:_,delayLeave:v,duration:y}=s,g=!1!==i&&!G,b=ps(p),$=h(c(y)?y.leave:y),w=r._leaveCb=N((()=>{r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),g&&(rs(r,u),rs(r,f)),w.cancelled?(g&&rs(r,l),_&&_(r)):(e(),m&&m(r)),r._leaveCb=null}));function C(){w.cancelled||(!t.data.show&&r.parentNode&&((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),d&&d(r),g&&(os(r,l),os(r,f),ns((()=>{rs(r,l),w.cancelled||(os(r,u),b||(ds($)?setTimeout(w,$):ss(r,a,w)))}))),p&&p(r,w),g||b||w())}v?v(C):C()}function ds(t){return"number"==typeof t&&!isNaN(t)}function ps(t){if(n(t))return!1;const e=t.fns;return o(e)?ps(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function hs(t,e){!0!==e.data.show&&us(e)}const ms=function(t){let i,c;const a={},{modules:l,nodeOps:u}=t;for(i=0;i<or.length;++i)for(a[or[i]]=[],c=0;c<l.length;++c)o(l[c][or[i]])&&a[or[i]].push(l[c][or[i]]);function f(t){const e=u.parentNode(t);o(e)&&u.removeChild(e,t)}function d(t,e,n,s,i,c,l){if(o(t.elm)&&o(c)&&(t=c[l]=ft(t)),t.isRootInsert=!i,function(t,e,n,s){let i=t.data;if(o(i)){const c=o(t.componentInstance)&&i.keepAlive;if(o(i=i.hook)&&o(i=i.init)&&i(t,!1),o(t.componentInstance))return p(t,e),h(n,t.elm,s),r(c)&&function(t,e,n,r){let s,i=t;for(;i.componentInstance;)if(i=i.componentInstance._vnode,o(s=i.data)&&o(s=s.transition)){for(s=0;s<a.activate.length;++s)a.activate[s](nr,i);e.push(i);break}h(n,t.elm,r)}(t,e,n,s),!0}}(t,e,n,s))return;const f=t.data,d=t.children,m=t.tag;o(m)?(t.elm=t.ns?u.createElementNS(t.ns,m):u.createElement(m,t),g(t),_(t,d,e),o(f)&&y(t,e),h(n,t.elm,s)):r(t.isComment)?(t.elm=u.createComment(t.text),h(n,t.elm,s)):(t.elm=u.createTextNode(t.text),h(n,t.elm,s))}function p(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,v(t)?(y(t,e),g(t)):(tr(t),e.push(t))}function h(t,e,n){o(t)&&(o(n)?u.parentNode(n)===t&&u.insertBefore(t,e,n):u.appendChild(t,e))}function _(t,n,o){if(e(n))for(let e=0;e<n.length;++e)d(n[e],o,t.elm,null,!0,n,e);else s(t.text)&&u.appendChild(t.elm,u.createTextNode(String(t.text)))}function v(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return o(t.tag)}function y(t,e){for(let e=0;e<a.create.length;++e)a.create[e](nr,t);i=t.data.hook,o(i)&&(o(i.create)&&i.create(nr,t),o(i.insert)&&e.push(t))}function g(t){let e;if(o(e=t.fnScopeId))u.setStyleScope(t.elm,e);else{let n=t;for(;n;)o(e=n.context)&&o(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e),n=n.parent}o(e=Sn)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e)}function b(t,e,n,o,r,s){for(;o<=r;++o)d(n[o],s,t,e,!1,n,o)}function $(t){let e,n;const r=t.data;if(o(r))for(o(e=r.hook)&&o(e=e.destroy)&&e(t),e=0;e<a.destroy.length;++e)a.destroy[e](t);if(o(e=t.children))for(n=0;n<t.children.length;++n)$(t.children[n])}function w(t,e,n){for(;e<=n;++e){const n=t[e];o(n)&&(o(n.tag)?(C(n),$(n)):f(n.elm))}}function C(t,e){if(o(e)||o(t.data)){let n;const r=a.remove.length+1;for(o(e)?e.listeners+=r:e=function(t,e){function n(){0==--n.listeners&&f(t)}return n.listeners=e,n}(t.elm,r),o(n=t.componentInstance)&&o(n=n._vnode)&&o(n.data)&&C(n,e),n=0;n<a.remove.length;++n)a.remove[n](t,e);o(n=t.data.hook)&&o(n=n.remove)?n(t,e):e()}else f(t.elm)}function x(t,e,n,r){for(let s=n;s<r;s++){const n=e[s];if(o(n)&&rr(t,n))return s}}function O(t,e,s,i,c,l){if(t===e)return;o(e.elm)&&o(i)&&(e=i[c]=ft(e));const f=e.elm=t.elm;if(r(t.isAsyncPlaceholder))return void(o(e.asyncFactory.resolved)?j(t.elm,e,s):e.isAsyncPlaceholder=!0);if(r(e.isStatic)&&r(t.isStatic)&&e.key===t.key&&(r(e.isCloned)||r(e.isOnce)))return void(e.componentInstance=t.componentInstance);let p;const h=e.data;o(h)&&o(p=h.hook)&&o(p=p.prepatch)&&p(t,e);const m=t.children,_=e.children;if(o(h)&&v(e)){for(p=0;p<a.update.length;++p)a.update[p](t,e);o(p=h.hook)&&o(p=p.update)&&p(t,e)}n(e.text)?o(m)&&o(_)?m!==_&&function(t,e,r,s,i){let c,a,l,f,p=0,h=0,m=e.length-1,_=e[0],v=e[m],y=r.length-1,g=r[0],$=r[y];const C=!i;for(;p<=m&&h<=y;)n(_)?_=e[++p]:n(v)?v=e[--m]:rr(_,g)?(O(_,g,s,r,h),_=e[++p],g=r[++h]):rr(v,$)?(O(v,$,s,r,y),v=e[--m],$=r[--y]):rr(_,$)?(O(_,$,s,r,y),C&&u.insertBefore(t,_.elm,u.nextSibling(v.elm)),_=e[++p],$=r[--y]):rr(v,g)?(O(v,g,s,r,h),C&&u.insertBefore(t,v.elm,_.elm),v=e[--m],g=r[++h]):(n(c)&&(c=sr(e,p,m)),a=o(g.key)?c[g.key]:x(g,e,p,m),n(a)?d(g,s,t,_.elm,!1,r,h):(l=e[a],rr(l,g)?(O(l,g,s,r,h),e[a]=void 0,C&&u.insertBefore(t,l.elm,_.elm)):d(g,s,t,_.elm,!1,r,h)),g=r[++h]);p>m?(f=n(r[y+1])?null:r[y+1].elm,b(t,f,r,h,y,s)):h>y&&w(e,p,m)}(f,m,_,s,l):o(_)?(o(t.text)&&u.setTextContent(f,""),b(f,null,_,0,_.length-1,s)):o(m)?w(m,0,m.length-1):o(t.text)&&u.setTextContent(f,""):t.text!==e.text&&u.setTextContent(f,e.text),o(h)&&o(p=h.hook)&&o(p=p.postpatch)&&p(t,e)}function k(t,e,n){if(r(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(let t=0;t<e.length;++t)e[t].data.hook.insert(e[t])}const S=m("attrs,class,staticClass,staticStyle,key");function j(t,e,n,s){let i;const{tag:c,data:a,children:l}=e;if(s=s||a&&a.pre,e.elm=t,r(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(a)&&(o(i=a.hook)&&o(i=i.init)&&i(e,!0),o(i=e.componentInstance)))return p(e,n),!0;if(o(c)){if(o(l))if(t.hasChildNodes())if(o(i=a)&&o(i=i.domProps)&&o(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{let e=!0,o=t.firstChild;for(let t=0;t<l.length;t++){if(!o||!j(o,l[t],n,s)){e=!1;break}o=o.nextSibling}if(!e||o)return!1}else _(e,l,n);if(o(a)){let t=!1;for(const o in a)if(!S(o)){t=!0,y(e,n);break}!t&&a.class&&yn(a.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,s,i){if(n(e))return void(o(t)&&$(t));let c=!1;const l=[];if(n(t))c=!0,d(e,l);else{const n=o(t.nodeType);if(!n&&rr(t,e))O(t,e,l,null,null,i);else{if(n){if(1===t.nodeType&&t.hasAttribute(L)&&(t.removeAttribute(L),s=!0),r(s)&&j(t,e,l))return k(e,l,!0),t;f=t,t=new at(u.tagName(f).toLowerCase(),{},[],void 0,f)}const i=t.elm,c=u.parentNode(i);if(d(e,l,i._leaveCb?null:c,u.nextSibling(i)),o(e.parent)){let t=e.parent;const n=v(e);for(;t;){for(let e=0;e<a.destroy.length;++e)a.destroy[e](t);if(t.elm=e.elm,n){for(let e=0;e<a.create.length;++e)a.create[e](nr,t);const e=t.data.hook.insert;if(e.merged){const t=e.fns.slice(1);for(let e=0;e<t.length;e++)t[e]()}}else tr(t);t=t.parent}}o(c)?w([t],0,0):o(t.tag)&&$(t)}}var f;return k(e,l,c),e.elm}}({nodeOps:Qo,modules:[_r,yr,Sr,Er,Vr,W?{create:hs,activate:hs,remove(t,e){!0!==t.data.show?fs(t,e):e()}}:{}].concat(dr)});G&&document.addEventListener("selectionchange",(()=>{const t=document.activeElement;t&&t.vmodel&&Cs(t,"input")}));const _s={inserted(t,e,n,o){"select"===n.tag?(o.elm&&!o.elm._vOptions?ce(n,"postpatch",(()=>{_s.componentUpdated(t,e,n)})):vs(t,e,n.context),t._vOptions=[].map.call(t.options,bs)):("textarea"===n.tag||Xo(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",$s),t.addEventListener("compositionend",ws),t.addEventListener("change",ws),G&&(t.vmodel=!0)))},componentUpdated(t,e,n){if("select"===n.tag){vs(t,e,n.context);const o=t._vOptions,r=t._vOptions=[].map.call(t.options,bs);if(r.some(((t,e)=>!I(t,o[e])))){(t.multiple?e.value.some((t=>gs(t,r))):e.value!==e.oldValue&&gs(e.value,r))&&Cs(t,"change")}}}};function vs(t,e,n){ys(t,e),(q||Z)&&setTimeout((()=>{ys(t,e)}),0)}function ys(t,e,n){const o=e.value,r=t.multiple;if(r&&!Array.isArray(o))return;let s,i;for(let e=0,n=t.options.length;e<n;e++)if(i=t.options[e],r)s=D(o,bs(i))>-1,i.selected!==s&&(i.selected=s);else if(I(bs(i),o))return void(t.selectedIndex!==e&&(t.selectedIndex=e));r||(t.selectedIndex=-1)}function gs(t,e){return e.every((e=>!I(e,t)))}function bs(t){return"_value"in t?t._value:t.value}function $s(t){t.target.composing=!0}function ws(t){t.target.composing&&(t.target.composing=!1,Cs(t.target,"input"))}function Cs(t,e){const n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function xs(t){return!t.componentInstance||t.data&&t.data.transition?t:xs(t.componentInstance._vnode)}var Os={bind(t,{value:e},n){const o=(n=xs(n)).data&&n.data.transition,r=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;e&&o?(n.data.show=!0,us(n,(()=>{t.style.display=r}))):t.style.display=e?r:"none"},update(t,{value:e,oldValue:n},o){if(!e==!n)return;(o=xs(o)).data&&o.data.transition?(o.data.show=!0,e?us(o,(()=>{t.style.display=t.__vOriginalDisplay})):fs(o,(()=>{t.style.display="none"}))):t.style.display=e?t.__vOriginalDisplay:"none"},unbind(t,e,n,o,r){r||(t.style.display=t.__vOriginalDisplay)}},ks={model:_s,show:Os};const Ss={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function js(t){const e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?js(Ue(e.children)):t}function As(t){const e={},n=t.$options;for(const o in n.propsData)e[o]=t[o];const o=n._parentListeners;for(const t in o)e[w(t)]=o[t];return e}function Ts(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}const Es=t=>t.tag||Ae(t),Ps=t=>"show"===t.name;var Is={name:"transition",props:Ss,abstract:!0,render(t){let e=this.$slots.default;if(!e)return;if(e=e.filter(Es),!e.length)return;const n=this.mode,o=e[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;const r=js(o);if(!r)return o;if(this._leaving)return Ts(t,o);const i=`__transition-${this._uid}-`;r.key=null==r.key?r.isComment?i+"comment":i+r.tag:s(r.key)?0===String(r.key).indexOf(i)?r.key:i+r.key:r.key;const c=(r.data||(r.data={})).transition=As(this),a=this._vnode,l=js(a);if(r.data.directives&&r.data.directives.some(Ps)&&(r.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(r,l)&&!Ae(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){const e=l.data.transition=j({},c);if("out-in"===n)return this._leaving=!0,ce(e,"afterLeave",(()=>{this._leaving=!1,this.$forceUpdate()})),Ts(t,o);if("in-out"===n){if(Ae(r))return a;let t;const n=()=>{t()};ce(c,"afterEnter",n),ce(c,"enterCancelled",n),ce(e,"delayLeave",(e=>{t=e}))}}return o}};const Ds=j({tag:String,moveClass:String},Ss);delete Ds.mode;var Ns={props:Ds,beforeMount(){const t=this._update;this._update=(e,n)=>{const o=jn(this);this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept,o(),t.call(this,e,n)}},render(t){const e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),o=this.prevChildren=this.children,r=this.$slots.default||[],s=this.children=[],i=As(this);for(let t=0;t<r.length;t++){const e=r[t];e.tag&&null!=e.key&&0!==String(e.key).indexOf("__vlist")&&(s.push(e),n[e.key]=e,(e.data||(e.data={})).transition=i)}if(o){const r=[],s=[];for(let t=0;t<o.length;t++){const e=o[t];e.data.transition=i,e.data.pos=e.elm.getBoundingClientRect(),n[e.key]?r.push(e):s.push(e)}this.kept=t(e,null,r),this.removed=s}return t(e,null,s)},updated(){const t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Ms),t.forEach(Ls),t.forEach(Rs),this._reflow=document.body.offsetHeight,t.forEach((t=>{if(t.data.moved){const n=t.elm,o=n.style;os(n,e),o.transform=o.WebkitTransform=o.transitionDuration="",n.addEventListener(Qr,n._moveCb=function t(o){o&&o.target!==n||o&&!/transform$/.test(o.propertyName)||(n.removeEventListener(Qr,t),n._moveCb=null,rs(n,e))})}})))},methods:{hasMove(t,e){if(!Gr)return!1;if(this._hasMove)return this._hasMove;const n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((t=>{Wr(n,t)})),Hr(n,e),n.style.display="none",this.$el.appendChild(n);const o=cs(n);return this.$el.removeChild(n),this._hasMove=o.hasTransform}}};function Ms(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Ls(t){t.data.newPos=t.elm.getBoundingClientRect()}function Rs(t){const e=t.data.pos,n=t.data.newPos,o=e.left-n.left,r=e.top-n.top;if(o||r){t.data.moved=!0;const e=t.elm.style;e.transform=e.WebkitTransform=`translate(${o}px,${r}px)`,e.transitionDuration="0s"}}var Fs={Transition:Is,TransitionGroup:Ns};xo.config.mustUseProp=(t,e,n)=>"value"===n&&Io(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t,xo.config.isReservedTag=Zo,xo.config.isReservedAttr=Po,xo.config.getTagNamespace=function(t){return Go(t)?"svg":"math"===t?"math":void 0},xo.config.isUnknownElement=function(t){if(!W)return!0;if(Zo(t))return!1;if(t=t.toLowerCase(),null!=Jo[t])return Jo[t];const e=document.createElement(t);return t.indexOf("-")>-1?Jo[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Jo[t]=/HTMLUnknownElement/.test(e.toString())},j(xo.options.directives,ks),j(xo.options.components,Fs),xo.prototype.__patch__=W?ms:T,xo.prototype.$mount=function(t,e){return function(t,e,n){let o;t.$el=e,t.$options.render||(t.$options.render=lt),Pn(t,"beforeMount"),o=()=>{t._update(t._render(),n)},new wn(t,o,T,{before(){t._isMounted&&!t._isDestroyed&&Pn(t,"beforeUpdate")}},!0),n=!1;const r=t._preWatchers;if(r)for(let t=0;t<r.length;t++)r[t].run();return null==t.$vnode&&(t._isMounted=!0,Pn(t,"mounted")),t}(this,t=t&&W?function(t){if("string"==typeof t){return document.querySelector(t)||document.createElement("div")}return t}(t):void 0,e)},W&&setTimeout((()=>{U.devtools&&nt&&nt.emit("init",xo)}),0),j(xo,_n),module.exports=xo;

/***/ }),

/***/ 23252:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, tle = $data.tle, isShowPic = $data.isShowPic, data = $data.data, picUrl = $data.picUrl, useTaobao = $data.useTaobao;
    $$out += '<a id="coupon_box" title="';
    $$out += $escape(tle);
    $$out += '" class="coupon-box1" ';
    if (!isShowPic) {
        $$out += ' href="';
        $$out += $escape(data.click_url2);
        $$out += '" target="_blank" style="cursor:pointer"';
    }
    $$out += '>\n  <span class="coupon-icon"></span>\n  <div  class="coupon-tle">\n    <span>当前商品领券立减';
    $$out += $escape(data.coupon.coupon_money);
    $$out += '元</span> \n    <em class="coupon_gif"></em>\n  </div>\n  <div  class="click2get">\n    <span class="c2g-sp1">\uFFE5';
    $$out += $escape(data.coupon.coupon_money);
    $$out += '</span>\n    <span class="c2g-sp2">领取</span>\n  </div>\n  ';
    if (picUrl && isShowPic) {
        $$out += '\n  <div class="minicoupon_detail">\n      <img src="';
        $$out += $escape(picUrl);
        $$out += '">\n      <span>';
        $$out += $escape(useTaobao ? '淘宝' : '微信');
        $$out += '扫码领券</span>\n  </div>\n  ';
    }
    $$out += '\n  <style type="text/css">\n    #coupon_box.coupon-box1 {\n      width: 460px;\n      height: 34px;\n      background-color: #fff;\n      border: 1px solid #e8e8e8;\n      border-top: none;\n      position: relative;\n      margin: 0px;\n      padding: 0px;\n      float: left;\n      display: block;\n    }\n    #coupon_box:after {\n      display: block;\n      content: "";\n      clear: both;\n    }\n    .gwd_tmall #gwd_minibar {\n      float: none;\n    }\n    #coupon_box * {\n      ';
    if (isShowPic) {
        $$out += '\n      cursor: default;\n      ';
    } else {
        $$out += '\n      cursor: pointer;\n      ';
    }
    $$out += '\n    }\n    .minicoupon_detail {\n      position: absolute;\n      top: 35px;\n      right: -1px;\n      height: 150px;\n      width: 132px;\n      display: none;\n      z-index: 99999999999;\n      background: #FFF7F8;\n      border: 1px solid #F95774;\n    }\n    #coupon_box:hover .minicoupon_detail {\n      display: block;\n    }\n    .minicoupon_detail img {\n      width: 114px;\n      height: 114px;\n      float: left;\n      margin-left: 9px;\n      margin-top: 9px;\n    }\n    .minicoupon_detail span {\n      font-size: 14px;\n      color: #F95572;\n      letter-spacing: 0;\n      font-weight: bold;\n      float: left;\n      height: 12px;\n      line-height: 14px;\n      width: 100%;\n      margin-top: 6px;\n      text-align: center;\n    }\n    .coupon-box1 * {\n      font-family: \'Microsoft YaHei\',Arial,SimSun;\n    }\n    .coupon-icon {\n      float: left;\n      width: 20px;\n      height: 20px;\n      background: url(\'https://cdn.gwdang.com/images/extensions/newbar/coupon_icon.png\') 0px 0px no-repeat;\n      margin: 9px 8px 9px 12px;\n    }\n    #coupon_box .coupon-tle {\n      color: #FF3B5C;\n      font-size: 12px;\n      margin-right: 11px;\n      float: left;\n      height: 34px;\n      overflow: hidden;\n      text-overflow: ellipsis;\n      white-space: nowrap;\n      width: 301px;\n      line-height: 34px;\n      text-decoration: none!important;\n    }\n    #coupon_box .coupon-tle * {\n      color: #f15672;\n    }\n    #coupon_box .coupon-tle span {\n      margin-right: 5px;\n      font-weight: bold;\n    }\n    .coupon_gif {\n      background: url(\'https://cdn.gwdang.com/images/extensions/newbar/turn.gif\') 0px 0px no-repeat;\n      float: right;\n      height: 20px;\n      width: 56px;\n      margin-top: 9px;\n    }\n    .click2get {\n      background: url(\'https://cdn.gwdang.com/images/extensions/newbar/coupon_01.png\') 0px 0px no-repeat;\n      float: left;\n      height: 30px;\n      width: 96px;\n      margin-top: 5px;\n    }\n    .click2get span {\n      height: 24px;\n      float: left;\n      margin-left: 1px;\n    }\n    .c2g-sp1 {\n      width: 50px;\n      color: #FF3B5C;\n      text-align: center;\n      font-size: 14px;\n      line-height: 24px!important;\n    }\n    .c2g-sp2 {\n      width: 44px;\n      line-height: 24px!important;\n      color: #fff!important;\n      text-align: center;\n    }\n    div#gwd_wishlist_div.gwd_wishlist_div {\n      border-bottom-right-radius: 0px;\n      border-bottom-left-radius: 0px;\n    }\n  </style>\n</a>';
    return $$out;
};

/***/ }),

/***/ 23348:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, $escape = $imports.$escape, totalPages = $data.totalPages, linkAll = $data.linkAll;
    $$out += '<div class="mini-compare-detail">\n  <div class="mini-com-box">\n    <ul>\n    ';
    $each(data, function ($value, $index) {
        $$out += '\n      <li class="mini-b2c-list">\n        <a href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank" class="mini-bigimg">\n          <img src="';
        $$out += $escape($value.img_url2);
        $$out += '" onerror="this.src = \'https://cdn.gwdang.com/images/extensions/gwd-noimg.png\'">\n        </a>\n        <a href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank" class="mini-tle" title="';
        $$out += $escape($value.title);
        $$out += '">\n          ';
        $$out += $escape($value.title);
        $$out += '\n        </a>\n        <div class="ot-info-box">\n          <span>\n            <img src="';
        $$out += $escape($value.icon_url);
        $$out += '">\n            <a href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank" class="mini-site-name">';
        $$out += $escape($value.site_name);
        $$out += '</a>\n          </span>\n        </div>\n        <span class="mini-price prifontf">\xA5';
        $$out += $escape($value.price);
        $$out += '</span>\n      </li>\n    ';
    });
    $$out += '\n  </ul>\n  </div>\n  <div class="mini-com-foot"> \n    <span class="mini-com-turnbtn mini-com-tleft" data-type="-1">< 上一页</span>\n    ';
    if (totalPages > 1) {
        $$out += '\n    <span class="mini-com-turnbtn mini-com-tright" data-type="1">下一页 ></span>\n    ';
    }
    $$out += '\n    ';
    if (linkAll) {
        $$out += '\n    <a href="';
        $$out += $escape(linkAll);
        $$out += '" class="linkAll" target="_blank">查看全部</a>\n    ';
    }
    $$out += '\n  </div>\n  \n    <style type="text/css">\n    .mini-compare-detail {\n      height: 284px;\n      width: 460px;\n      overflow: hidden;\n      position: absolute;\n      top: 36px;\n      left: -1px;\n      z-index: 99999999;\n      display: none;\n      background-color: #fff;\n      border: 1px solid #E6E9EB;\n    }\n    .mini-com-box ul:after {\n      display: block;\n      clear: both;\n      content: "";\n    }\n    .mini-com-box {\n      margin-top: 10px;\n      height: 247px;\n      width: 460px;\n      overflow: hidden;\n      position: relative;\n    }\n    .mini-com-box ul {\n      position: absolute;\n      height: 247px;\n      left: 0px;\n      padding: 0px;\n      margin: 0px;\n    }\n    .mini-compare-detail .mini-b2c-list {\n      float: left;\n      margin-left: 10px;\n      width: 140px;\n      height: 247px;\n      clear: none;\n      list-style: none;\n    }\n    .mini-bigimg {\n      width: 140px;\n      height: 140px;\n      float: left;\n      line-height: 140px;\n    }\n    .mini-bigimg img {\n      max-width: 100%;\n      max-height: 100%;\n      vertical-align: middle;\n    }\n    .ot-info-box {\n      float: left;\n      margin-top: 10px;\n      width: 100%;\n      height: 16px!important;\n      line-height: 16px!important;\n      text-align: center;\n    }\n    .ot-info-box>span {\n      display: inline-block;\n      margin:0 auto;\n      float: none!important;\n    }\n    .ot-info-box>span:after {\n      content: "";\n      display: block;\n      clear: both;\n    }\n    .ot-info-box>span * {\n      float: left;\n    }\n    .ot-info-box>span img {\n      height: 16px;\n      width: 16px;\n    }\n    .ot-info-box>span a {\n      margin-left: 6px;\n      line-height: 16px!important;\n      height: 16px!important;\n      width: auto;\n      overflow: hidden;\n      max-width: 114px;\n      font-size: 12px;\n      color: #666;\n      text-decoration: none!important;\n    }\n    .mini-compare-detail .mini-tle {\n      float: left;\n      margin-top: 10px;\n      width: 136px;\n      height: 32px;\n      line-height: 16px;\n      font-size: 12px;\n      color: #5C6266;\n      text-align: center;\n      overflow: hidden;\n    }\n    .mini-price {\n      float: left!important;\n      margin-top: 10px!important;\n      width: 100%;\n      height: 19px;\n      line-height: 19px!important;\n      text-align: center;\n      font-size: 14px;\n      color: #E4393C;\n      font-weight: bold;\n    }\n    .mini-com-foot {\n      width: 100%;\n      height: 26px;\n    }\n    .mini-com-foot .mini-com-turnbtn {\n      color: #999;\n      font-size: 12px;\n      position: absolute;\n      line-height: 16px;\n      bottom: 8px;\n      cursor: pointer;\n    }\n    .mini-com-foot .linkAll {\n      position: absolute;\n      bottom: 8px;\n      right: 10px;\n      font-size: 12px;\n      line-height: 16px;\n      color: #999;\n      display: none;\n    }\n    .mini-com-foot .mini-com-turnbtn:hover,.mini-tle:hover,.mini-com-foot .linkAll:hover, .mini-site-name:hover {\n      color: #48BEFF!important;\n    }\n    .mini-com-tleft {\n      left: 10px;\n      display: none;\n    }\n    .mini-com-tright {\n      right: 10px;\n    }\n  </style>\n</div>\n';
    return $$out;
};

/***/ }),

/***/ 23641:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(3320);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("4c22e37f", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 23665:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.

/* eslint-disable space-unary-ops */

var utils = __webpack_require__(9805);

/* Public constants ==========================================================*/
/* ===========================================================================*/


//var Z_FILTERED          = 1;
//var Z_HUFFMAN_ONLY      = 2;
//var Z_RLE               = 3;
var Z_FIXED               = 4;
//var Z_DEFAULT_STRATEGY  = 0;

/* Possible values of the data_type field (though see inflate()) */
var Z_BINARY              = 0;
var Z_TEXT                = 1;
//var Z_ASCII             = 1; // = Z_TEXT
var Z_UNKNOWN             = 2;

/*============================================================================*/


function zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }

// From zutil.h

var STORED_BLOCK = 0;
var STATIC_TREES = 1;
var DYN_TREES    = 2;
/* The three kinds of block type */

var MIN_MATCH    = 3;
var MAX_MATCH    = 258;
/* The minimum and maximum match lengths */

// From deflate.h
/* ===========================================================================
 * Internal compression state.
 */

var LENGTH_CODES  = 29;
/* number of length codes, not counting the special END_BLOCK code */

var LITERALS      = 256;
/* number of literal bytes 0..255 */

var L_CODES       = LITERALS + 1 + LENGTH_CODES;
/* number of Literal or Length codes, including the END_BLOCK code */

var D_CODES       = 30;
/* number of distance codes */

var BL_CODES      = 19;
/* number of codes used to transfer the bit lengths */

var HEAP_SIZE     = 2 * L_CODES + 1;
/* maximum heap size */

var MAX_BITS      = 15;
/* All codes must not exceed MAX_BITS bits */

var Buf_size      = 16;
/* size of bit buffer in bi_buf */


/* ===========================================================================
 * Constants
 */

var MAX_BL_BITS = 7;
/* Bit length codes must not exceed MAX_BL_BITS bits */

var END_BLOCK   = 256;
/* end of block literal code */

var REP_3_6     = 16;
/* repeat previous bit length 3-6 times (2 bits of repeat count) */

var REPZ_3_10   = 17;
/* repeat a zero length 3-10 times  (3 bits of repeat count) */

var REPZ_11_138 = 18;
/* repeat a zero length 11-138 times  (7 bits of repeat count) */

/* eslint-disable comma-spacing,array-bracket-spacing */
var extra_lbits =   /* extra bits for each length code */
  [0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];

var extra_dbits =   /* extra bits for each distance code */
  [0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];

var extra_blbits =  /* extra bits for each bit length code */
  [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];

var bl_order =
  [16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];
/* eslint-enable comma-spacing,array-bracket-spacing */

/* The lengths of the bit length codes are sent in order of decreasing
 * probability, to avoid transmitting the lengths for unused bit length codes.
 */

/* ===========================================================================
 * Local data. These are initialized only once.
 */

// We pre-fill arrays with 0 to avoid uninitialized gaps

var DIST_CODE_LEN = 512; /* see definition of array dist_code below */

// !!!! Use flat array instead of structure, Freq = i*2, Len = i*2+1
var static_ltree  = new Array((L_CODES + 2) * 2);
zero(static_ltree);
/* The static literal tree. Since the bit lengths are imposed, there is no
 * need for the L_CODES extra codes used during heap construction. However
 * The codes 286 and 287 are needed to build a canonical tree (see _tr_init
 * below).
 */

var static_dtree  = new Array(D_CODES * 2);
zero(static_dtree);
/* The static distance tree. (Actually a trivial tree since all codes use
 * 5 bits.)
 */

var _dist_code    = new Array(DIST_CODE_LEN);
zero(_dist_code);
/* Distance codes. The first 256 values correspond to the distances
 * 3 .. 258, the last 256 values correspond to the top 8 bits of
 * the 15 bit distances.
 */

var _length_code  = new Array(MAX_MATCH - MIN_MATCH + 1);
zero(_length_code);
/* length code for each normalized match length (0 == MIN_MATCH) */

var base_length   = new Array(LENGTH_CODES);
zero(base_length);
/* First normalized length for each code (0 = MIN_MATCH) */

var base_dist     = new Array(D_CODES);
zero(base_dist);
/* First normalized distance for each code (0 = distance of 1) */


function StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) {

  this.static_tree  = static_tree;  /* static tree or NULL */
  this.extra_bits   = extra_bits;   /* extra bits for each code or NULL */
  this.extra_base   = extra_base;   /* base index for extra_bits */
  this.elems        = elems;        /* max number of elements in the tree */
  this.max_length   = max_length;   /* max bit length for the codes */

  // show if `static_tree` has data or dummy - needed for monomorphic objects
  this.has_stree    = static_tree && static_tree.length;
}


var static_l_desc;
var static_d_desc;
var static_bl_desc;


function TreeDesc(dyn_tree, stat_desc) {
  this.dyn_tree = dyn_tree;     /* the dynamic tree */
  this.max_code = 0;            /* largest code with non zero frequency */
  this.stat_desc = stat_desc;   /* the corresponding static tree */
}



function d_code(dist) {
  return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];
}


/* ===========================================================================
 * Output a short LSB first on the stream.
 * IN assertion: there is enough room in pendingBuf.
 */
function put_short(s, w) {
//    put_byte(s, (uch)((w) & 0xff));
//    put_byte(s, (uch)((ush)(w) >> 8));
  s.pending_buf[s.pending++] = (w) & 0xff;
  s.pending_buf[s.pending++] = (w >>> 8) & 0xff;
}


/* ===========================================================================
 * Send a value on a given number of bits.
 * IN assertion: length <= 16 and value fits in length bits.
 */
function send_bits(s, value, length) {
  if (s.bi_valid > (Buf_size - length)) {
    s.bi_buf |= (value << s.bi_valid) & 0xffff;
    put_short(s, s.bi_buf);
    s.bi_buf = value >> (Buf_size - s.bi_valid);
    s.bi_valid += length - Buf_size;
  } else {
    s.bi_buf |= (value << s.bi_valid) & 0xffff;
    s.bi_valid += length;
  }
}


function send_code(s, c, tree) {
  send_bits(s, tree[c * 2]/*.Code*/, tree[c * 2 + 1]/*.Len*/);
}


/* ===========================================================================
 * Reverse the first len bits of a code, using straightforward code (a faster
 * method would use a table)
 * IN assertion: 1 <= len <= 15
 */
function bi_reverse(code, len) {
  var res = 0;
  do {
    res |= code & 1;
    code >>>= 1;
    res <<= 1;
  } while (--len > 0);
  return res >>> 1;
}


/* ===========================================================================
 * Flush the bit buffer, keeping at most 7 bits in it.
 */
function bi_flush(s) {
  if (s.bi_valid === 16) {
    put_short(s, s.bi_buf);
    s.bi_buf = 0;
    s.bi_valid = 0;

  } else if (s.bi_valid >= 8) {
    s.pending_buf[s.pending++] = s.bi_buf & 0xff;
    s.bi_buf >>= 8;
    s.bi_valid -= 8;
  }
}


/* ===========================================================================
 * Compute the optimal bit lengths for a tree and update the total bit length
 * for the current block.
 * IN assertion: the fields freq and dad are set, heap[heap_max] and
 *    above are the tree nodes sorted by increasing frequency.
 * OUT assertions: the field len is set to the optimal bit length, the
 *     array bl_count contains the frequencies for each bit length.
 *     The length opt_len is updated; static_len is also updated if stree is
 *     not null.
 */
function gen_bitlen(s, desc)
//    deflate_state *s;
//    tree_desc *desc;    /* the tree descriptor */
{
  var tree            = desc.dyn_tree;
  var max_code        = desc.max_code;
  var stree           = desc.stat_desc.static_tree;
  var has_stree       = desc.stat_desc.has_stree;
  var extra           = desc.stat_desc.extra_bits;
  var base            = desc.stat_desc.extra_base;
  var max_length      = desc.stat_desc.max_length;
  var h;              /* heap index */
  var n, m;           /* iterate over the tree elements */
  var bits;           /* bit length */
  var xbits;          /* extra bits */
  var f;              /* frequency */
  var overflow = 0;   /* number of elements with bit length too large */

  for (bits = 0; bits <= MAX_BITS; bits++) {
    s.bl_count[bits] = 0;
  }

  /* In a first pass, compute the optimal bit lengths (which may
   * overflow in the case of the bit length tree).
   */
  tree[s.heap[s.heap_max] * 2 + 1]/*.Len*/ = 0; /* root of the heap */

  for (h = s.heap_max + 1; h < HEAP_SIZE; h++) {
    n = s.heap[h];
    bits = tree[tree[n * 2 + 1]/*.Dad*/ * 2 + 1]/*.Len*/ + 1;
    if (bits > max_length) {
      bits = max_length;
      overflow++;
    }
    tree[n * 2 + 1]/*.Len*/ = bits;
    /* We overwrite tree[n].Dad which is no longer needed */

    if (n > max_code) { continue; } /* not a leaf node */

    s.bl_count[bits]++;
    xbits = 0;
    if (n >= base) {
      xbits = extra[n - base];
    }
    f = tree[n * 2]/*.Freq*/;
    s.opt_len += f * (bits + xbits);
    if (has_stree) {
      s.static_len += f * (stree[n * 2 + 1]/*.Len*/ + xbits);
    }
  }
  if (overflow === 0) { return; }

  // Trace((stderr,"\nbit length overflow\n"));
  /* This happens for example on obj2 and pic of the Calgary corpus */

  /* Find the first bit length which could increase: */
  do {
    bits = max_length - 1;
    while (s.bl_count[bits] === 0) { bits--; }
    s.bl_count[bits]--;      /* move one leaf down the tree */
    s.bl_count[bits + 1] += 2; /* move one overflow item as its brother */
    s.bl_count[max_length]--;
    /* The brother of the overflow item also moves one step up,
     * but this does not affect bl_count[max_length]
     */
    overflow -= 2;
  } while (overflow > 0);

  /* Now recompute all bit lengths, scanning in increasing frequency.
   * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all
   * lengths instead of fixing only the wrong ones. This idea is taken
   * from 'ar' written by Haruhiko Okumura.)
   */
  for (bits = max_length; bits !== 0; bits--) {
    n = s.bl_count[bits];
    while (n !== 0) {
      m = s.heap[--h];
      if (m > max_code) { continue; }
      if (tree[m * 2 + 1]/*.Len*/ !== bits) {
        // Trace((stderr,"code %d bits %d->%d\n", m, tree[m].Len, bits));
        s.opt_len += (bits - tree[m * 2 + 1]/*.Len*/) * tree[m * 2]/*.Freq*/;
        tree[m * 2 + 1]/*.Len*/ = bits;
      }
      n--;
    }
  }
}


/* ===========================================================================
 * Generate the codes for a given tree and bit counts (which need not be
 * optimal).
 * IN assertion: the array bl_count contains the bit length statistics for
 * the given tree and the field len is set for all tree elements.
 * OUT assertion: the field code is set for all tree elements of non
 *     zero code length.
 */
function gen_codes(tree, max_code, bl_count)
//    ct_data *tree;             /* the tree to decorate */
//    int max_code;              /* largest code with non zero frequency */
//    ushf *bl_count;            /* number of codes at each bit length */
{
  var next_code = new Array(MAX_BITS + 1); /* next code value for each bit length */
  var code = 0;              /* running code value */
  var bits;                  /* bit index */
  var n;                     /* code index */

  /* The distribution counts are first used to generate the code values
   * without bit reversal.
   */
  for (bits = 1; bits <= MAX_BITS; bits++) {
    next_code[bits] = code = (code + bl_count[bits - 1]) << 1;
  }
  /* Check that the bit counts in bl_count are consistent. The last code
   * must be all ones.
   */
  //Assert (code + bl_count[MAX_BITS]-1 == (1<<MAX_BITS)-1,
  //        "inconsistent bit counts");
  //Tracev((stderr,"\ngen_codes: max_code %d ", max_code));

  for (n = 0;  n <= max_code; n++) {
    var len = tree[n * 2 + 1]/*.Len*/;
    if (len === 0) { continue; }
    /* Now reverse the bits */
    tree[n * 2]/*.Code*/ = bi_reverse(next_code[len]++, len);

    //Tracecv(tree != static_ltree, (stderr,"\nn %3d %c l %2d c %4x (%x) ",
    //     n, (isgraph(n) ? n : ' '), len, tree[n].Code, next_code[len]-1));
  }
}


/* ===========================================================================
 * Initialize the various 'constant' tables.
 */
function tr_static_init() {
  var n;        /* iterates over tree elements */
  var bits;     /* bit counter */
  var length;   /* length value */
  var code;     /* code value */
  var dist;     /* distance index */
  var bl_count = new Array(MAX_BITS + 1);
  /* number of codes at each bit length for an optimal tree */

  // do check in _tr_init()
  //if (static_init_done) return;

  /* For some embedded targets, global variables are not initialized: */
/*#ifdef NO_INIT_GLOBAL_POINTERS
  static_l_desc.static_tree = static_ltree;
  static_l_desc.extra_bits = extra_lbits;
  static_d_desc.static_tree = static_dtree;
  static_d_desc.extra_bits = extra_dbits;
  static_bl_desc.extra_bits = extra_blbits;
#endif*/

  /* Initialize the mapping length (0..255) -> length code (0..28) */
  length = 0;
  for (code = 0; code < LENGTH_CODES - 1; code++) {
    base_length[code] = length;
    for (n = 0; n < (1 << extra_lbits[code]); n++) {
      _length_code[length++] = code;
    }
  }
  //Assert (length == 256, "tr_static_init: length != 256");
  /* Note that the length 255 (match length 258) can be represented
   * in two different ways: code 284 + 5 bits or code 285, so we
   * overwrite length_code[255] to use the best encoding:
   */
  _length_code[length - 1] = code;

  /* Initialize the mapping dist (0..32K) -> dist code (0..29) */
  dist = 0;
  for (code = 0; code < 16; code++) {
    base_dist[code] = dist;
    for (n = 0; n < (1 << extra_dbits[code]); n++) {
      _dist_code[dist++] = code;
    }
  }
  //Assert (dist == 256, "tr_static_init: dist != 256");
  dist >>= 7; /* from now on, all distances are divided by 128 */
  for (; code < D_CODES; code++) {
    base_dist[code] = dist << 7;
    for (n = 0; n < (1 << (extra_dbits[code] - 7)); n++) {
      _dist_code[256 + dist++] = code;
    }
  }
  //Assert (dist == 256, "tr_static_init: 256+dist != 512");

  /* Construct the codes of the static literal tree */
  for (bits = 0; bits <= MAX_BITS; bits++) {
    bl_count[bits] = 0;
  }

  n = 0;
  while (n <= 143) {
    static_ltree[n * 2 + 1]/*.Len*/ = 8;
    n++;
    bl_count[8]++;
  }
  while (n <= 255) {
    static_ltree[n * 2 + 1]/*.Len*/ = 9;
    n++;
    bl_count[9]++;
  }
  while (n <= 279) {
    static_ltree[n * 2 + 1]/*.Len*/ = 7;
    n++;
    bl_count[7]++;
  }
  while (n <= 287) {
    static_ltree[n * 2 + 1]/*.Len*/ = 8;
    n++;
    bl_count[8]++;
  }
  /* Codes 286 and 287 do not exist, but we must include them in the
   * tree construction to get a canonical Huffman tree (longest code
   * all ones)
   */
  gen_codes(static_ltree, L_CODES + 1, bl_count);

  /* The static distance tree is trivial: */
  for (n = 0; n < D_CODES; n++) {
    static_dtree[n * 2 + 1]/*.Len*/ = 5;
    static_dtree[n * 2]/*.Code*/ = bi_reverse(n, 5);
  }

  // Now data ready and we can init static trees
  static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS + 1, L_CODES, MAX_BITS);
  static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0,          D_CODES, MAX_BITS);
  static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0,         BL_CODES, MAX_BL_BITS);

  //static_init_done = true;
}


/* ===========================================================================
 * Initialize a new block.
 */
function init_block(s) {
  var n; /* iterates over tree elements */

  /* Initialize the trees. */
  for (n = 0; n < L_CODES;  n++) { s.dyn_ltree[n * 2]/*.Freq*/ = 0; }
  for (n = 0; n < D_CODES;  n++) { s.dyn_dtree[n * 2]/*.Freq*/ = 0; }
  for (n = 0; n < BL_CODES; n++) { s.bl_tree[n * 2]/*.Freq*/ = 0; }

  s.dyn_ltree[END_BLOCK * 2]/*.Freq*/ = 1;
  s.opt_len = s.static_len = 0;
  s.last_lit = s.matches = 0;
}


/* ===========================================================================
 * Flush the bit buffer and align the output on a byte boundary
 */
function bi_windup(s)
{
  if (s.bi_valid > 8) {
    put_short(s, s.bi_buf);
  } else if (s.bi_valid > 0) {
    //put_byte(s, (Byte)s->bi_buf);
    s.pending_buf[s.pending++] = s.bi_buf;
  }
  s.bi_buf = 0;
  s.bi_valid = 0;
}

/* ===========================================================================
 * Copy a stored block, storing first the length and its
 * one's complement if requested.
 */
function copy_block(s, buf, len, header)
//DeflateState *s;
//charf    *buf;    /* the input data */
//unsigned len;     /* its length */
//int      header;  /* true if block header must be written */
{
  bi_windup(s);        /* align on byte boundary */

  if (header) {
    put_short(s, len);
    put_short(s, ~len);
  }
//  while (len--) {
//    put_byte(s, *buf++);
//  }
  utils.arraySet(s.pending_buf, s.window, buf, len, s.pending);
  s.pending += len;
}

/* ===========================================================================
 * Compares to subtrees, using the tree depth as tie breaker when
 * the subtrees have equal frequency. This minimizes the worst case length.
 */
function smaller(tree, n, m, depth) {
  var _n2 = n * 2;
  var _m2 = m * 2;
  return (tree[_n2]/*.Freq*/ < tree[_m2]/*.Freq*/ ||
         (tree[_n2]/*.Freq*/ === tree[_m2]/*.Freq*/ && depth[n] <= depth[m]));
}

/* ===========================================================================
 * Restore the heap property by moving down the tree starting at node k,
 * exchanging a node with the smallest of its two sons if necessary, stopping
 * when the heap property is re-established (each father smaller than its
 * two sons).
 */
function pqdownheap(s, tree, k)
//    deflate_state *s;
//    ct_data *tree;  /* the tree to restore */
//    int k;               /* node to move down */
{
  var v = s.heap[k];
  var j = k << 1;  /* left son of k */
  while (j <= s.heap_len) {
    /* Set j to the smallest of the two sons: */
    if (j < s.heap_len &&
      smaller(tree, s.heap[j + 1], s.heap[j], s.depth)) {
      j++;
    }
    /* Exit if v is smaller than both sons */
    if (smaller(tree, v, s.heap[j], s.depth)) { break; }

    /* Exchange v with the smallest son */
    s.heap[k] = s.heap[j];
    k = j;

    /* And continue down the tree, setting j to the left son of k */
    j <<= 1;
  }
  s.heap[k] = v;
}


// inlined manually
// var SMALLEST = 1;

/* ===========================================================================
 * Send the block data compressed using the given Huffman trees
 */
function compress_block(s, ltree, dtree)
//    deflate_state *s;
//    const ct_data *ltree; /* literal tree */
//    const ct_data *dtree; /* distance tree */
{
  var dist;           /* distance of matched string */
  var lc;             /* match length or unmatched char (if dist == 0) */
  var lx = 0;         /* running index in l_buf */
  var code;           /* the code to send */
  var extra;          /* number of extra bits to send */

  if (s.last_lit !== 0) {
    do {
      dist = (s.pending_buf[s.d_buf + lx * 2] << 8) | (s.pending_buf[s.d_buf + lx * 2 + 1]);
      lc = s.pending_buf[s.l_buf + lx];
      lx++;

      if (dist === 0) {
        send_code(s, lc, ltree); /* send a literal byte */
        //Tracecv(isgraph(lc), (stderr," '%c' ", lc));
      } else {
        /* Here, lc is the match length - MIN_MATCH */
        code = _length_code[lc];
        send_code(s, code + LITERALS + 1, ltree); /* send the length code */
        extra = extra_lbits[code];
        if (extra !== 0) {
          lc -= base_length[code];
          send_bits(s, lc, extra);       /* send the extra length bits */
        }
        dist--; /* dist is now the match distance - 1 */
        code = d_code(dist);
        //Assert (code < D_CODES, "bad d_code");

        send_code(s, code, dtree);       /* send the distance code */
        extra = extra_dbits[code];
        if (extra !== 0) {
          dist -= base_dist[code];
          send_bits(s, dist, extra);   /* send the extra distance bits */
        }
      } /* literal or match pair ? */

      /* Check that the overlay between pending_buf and d_buf+l_buf is ok: */
      //Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx,
      //       "pendingBuf overflow");

    } while (lx < s.last_lit);
  }

  send_code(s, END_BLOCK, ltree);
}


/* ===========================================================================
 * Construct one Huffman tree and assigns the code bit strings and lengths.
 * Update the total bit length for the current block.
 * IN assertion: the field freq is set for all tree elements.
 * OUT assertions: the fields len and code are set to the optimal bit length
 *     and corresponding code. The length opt_len is updated; static_len is
 *     also updated if stree is not null. The field max_code is set.
 */
function build_tree(s, desc)
//    deflate_state *s;
//    tree_desc *desc; /* the tree descriptor */
{
  var tree     = desc.dyn_tree;
  var stree    = desc.stat_desc.static_tree;
  var has_stree = desc.stat_desc.has_stree;
  var elems    = desc.stat_desc.elems;
  var n, m;          /* iterate over heap elements */
  var max_code = -1; /* largest code with non zero frequency */
  var node;          /* new node being created */

  /* Construct the initial heap, with least frequent element in
   * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1].
   * heap[0] is not used.
   */
  s.heap_len = 0;
  s.heap_max = HEAP_SIZE;

  for (n = 0; n < elems; n++) {
    if (tree[n * 2]/*.Freq*/ !== 0) {
      s.heap[++s.heap_len] = max_code = n;
      s.depth[n] = 0;

    } else {
      tree[n * 2 + 1]/*.Len*/ = 0;
    }
  }

  /* The pkzip format requires that at least one distance code exists,
   * and that at least one bit should be sent even if there is only one
   * possible code. So to avoid special checks later on we force at least
   * two codes of non zero frequency.
   */
  while (s.heap_len < 2) {
    node = s.heap[++s.heap_len] = (max_code < 2 ? ++max_code : 0);
    tree[node * 2]/*.Freq*/ = 1;
    s.depth[node] = 0;
    s.opt_len--;

    if (has_stree) {
      s.static_len -= stree[node * 2 + 1]/*.Len*/;
    }
    /* node is 0 or 1 so it does not have extra bits */
  }
  desc.max_code = max_code;

  /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,
   * establish sub-heaps of increasing lengths:
   */
  for (n = (s.heap_len >> 1/*int /2*/); n >= 1; n--) { pqdownheap(s, tree, n); }

  /* Construct the Huffman tree by repeatedly combining the least two
   * frequent nodes.
   */
  node = elems;              /* next internal node of the tree */
  do {
    //pqremove(s, tree, n);  /* n = node of least frequency */
    /*** pqremove ***/
    n = s.heap[1/*SMALLEST*/];
    s.heap[1/*SMALLEST*/] = s.heap[s.heap_len--];
    pqdownheap(s, tree, 1/*SMALLEST*/);
    /***/

    m = s.heap[1/*SMALLEST*/]; /* m = node of next least frequency */

    s.heap[--s.heap_max] = n; /* keep the nodes sorted by frequency */
    s.heap[--s.heap_max] = m;

    /* Create a new node father of n and m */
    tree[node * 2]/*.Freq*/ = tree[n * 2]/*.Freq*/ + tree[m * 2]/*.Freq*/;
    s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1;
    tree[n * 2 + 1]/*.Dad*/ = tree[m * 2 + 1]/*.Dad*/ = node;

    /* and insert the new node in the heap */
    s.heap[1/*SMALLEST*/] = node++;
    pqdownheap(s, tree, 1/*SMALLEST*/);

  } while (s.heap_len >= 2);

  s.heap[--s.heap_max] = s.heap[1/*SMALLEST*/];

  /* At this point, the fields freq and dad are set. We can now
   * generate the bit lengths.
   */
  gen_bitlen(s, desc);

  /* The field len is now set, we can generate the bit codes */
  gen_codes(tree, max_code, s.bl_count);
}


/* ===========================================================================
 * Scan a literal or distance tree to determine the frequencies of the codes
 * in the bit length tree.
 */
function scan_tree(s, tree, max_code)
//    deflate_state *s;
//    ct_data *tree;   /* the tree to be scanned */
//    int max_code;    /* and its largest code of non zero frequency */
{
  var n;                     /* iterates over all tree elements */
  var prevlen = -1;          /* last emitted length */
  var curlen;                /* length of current code */

  var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */

  var count = 0;             /* repeat count of the current code */
  var max_count = 7;         /* max repeat count */
  var min_count = 4;         /* min repeat count */

  if (nextlen === 0) {
    max_count = 138;
    min_count = 3;
  }
  tree[(max_code + 1) * 2 + 1]/*.Len*/ = 0xffff; /* guard */

  for (n = 0; n <= max_code; n++) {
    curlen = nextlen;
    nextlen = tree[(n + 1) * 2 + 1]/*.Len*/;

    if (++count < max_count && curlen === nextlen) {
      continue;

    } else if (count < min_count) {
      s.bl_tree[curlen * 2]/*.Freq*/ += count;

    } else if (curlen !== 0) {

      if (curlen !== prevlen) { s.bl_tree[curlen * 2]/*.Freq*/++; }
      s.bl_tree[REP_3_6 * 2]/*.Freq*/++;

    } else if (count <= 10) {
      s.bl_tree[REPZ_3_10 * 2]/*.Freq*/++;

    } else {
      s.bl_tree[REPZ_11_138 * 2]/*.Freq*/++;
    }

    count = 0;
    prevlen = curlen;

    if (nextlen === 0) {
      max_count = 138;
      min_count = 3;

    } else if (curlen === nextlen) {
      max_count = 6;
      min_count = 3;

    } else {
      max_count = 7;
      min_count = 4;
    }
  }
}


/* ===========================================================================
 * Send a literal or distance tree in compressed form, using the codes in
 * bl_tree.
 */
function send_tree(s, tree, max_code)
//    deflate_state *s;
//    ct_data *tree; /* the tree to be scanned */
//    int max_code;       /* and its largest code of non zero frequency */
{
  var n;                     /* iterates over all tree elements */
  var prevlen = -1;          /* last emitted length */
  var curlen;                /* length of current code */

  var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */

  var count = 0;             /* repeat count of the current code */
  var max_count = 7;         /* max repeat count */
  var min_count = 4;         /* min repeat count */

  /* tree[max_code+1].Len = -1; */  /* guard already set */
  if (nextlen === 0) {
    max_count = 138;
    min_count = 3;
  }

  for (n = 0; n <= max_code; n++) {
    curlen = nextlen;
    nextlen = tree[(n + 1) * 2 + 1]/*.Len*/;

    if (++count < max_count && curlen === nextlen) {
      continue;

    } else if (count < min_count) {
      do { send_code(s, curlen, s.bl_tree); } while (--count !== 0);

    } else if (curlen !== 0) {
      if (curlen !== prevlen) {
        send_code(s, curlen, s.bl_tree);
        count--;
      }
      //Assert(count >= 3 && count <= 6, " 3_6?");
      send_code(s, REP_3_6, s.bl_tree);
      send_bits(s, count - 3, 2);

    } else if (count <= 10) {
      send_code(s, REPZ_3_10, s.bl_tree);
      send_bits(s, count - 3, 3);

    } else {
      send_code(s, REPZ_11_138, s.bl_tree);
      send_bits(s, count - 11, 7);
    }

    count = 0;
    prevlen = curlen;
    if (nextlen === 0) {
      max_count = 138;
      min_count = 3;

    } else if (curlen === nextlen) {
      max_count = 6;
      min_count = 3;

    } else {
      max_count = 7;
      min_count = 4;
    }
  }
}


/* ===========================================================================
 * Construct the Huffman tree for the bit lengths and return the index in
 * bl_order of the last bit length code to send.
 */
function build_bl_tree(s) {
  var max_blindex;  /* index of last bit length code of non zero freq */

  /* Determine the bit length frequencies for literal and distance trees */
  scan_tree(s, s.dyn_ltree, s.l_desc.max_code);
  scan_tree(s, s.dyn_dtree, s.d_desc.max_code);

  /* Build the bit length tree: */
  build_tree(s, s.bl_desc);
  /* opt_len now includes the length of the tree representations, except
   * the lengths of the bit lengths codes and the 5+5+4 bits for the counts.
   */

  /* Determine the number of bit length codes to send. The pkzip format
   * requires that at least 4 bit length codes be sent. (appnote.txt says
   * 3 but the actual value used is 4.)
   */
  for (max_blindex = BL_CODES - 1; max_blindex >= 3; max_blindex--) {
    if (s.bl_tree[bl_order[max_blindex] * 2 + 1]/*.Len*/ !== 0) {
      break;
    }
  }
  /* Update opt_len to include the bit length tree and counts */
  s.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4;
  //Tracev((stderr, "\ndyn trees: dyn %ld, stat %ld",
  //        s->opt_len, s->static_len));

  return max_blindex;
}


/* ===========================================================================
 * Send the header for a block using dynamic Huffman trees: the counts, the
 * lengths of the bit length codes, the literal tree and the distance tree.
 * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.
 */
function send_all_trees(s, lcodes, dcodes, blcodes)
//    deflate_state *s;
//    int lcodes, dcodes, blcodes; /* number of codes for each tree */
{
  var rank;                    /* index in bl_order */

  //Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, "not enough codes");
  //Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,
  //        "too many codes");
  //Tracev((stderr, "\nbl counts: "));
  send_bits(s, lcodes - 257, 5); /* not +255 as stated in appnote.txt */
  send_bits(s, dcodes - 1,   5);
  send_bits(s, blcodes - 4,  4); /* not -3 as stated in appnote.txt */
  for (rank = 0; rank < blcodes; rank++) {
    //Tracev((stderr, "\nbl code %2d ", bl_order[rank]));
    send_bits(s, s.bl_tree[bl_order[rank] * 2 + 1]/*.Len*/, 3);
  }
  //Tracev((stderr, "\nbl tree: sent %ld", s->bits_sent));

  send_tree(s, s.dyn_ltree, lcodes - 1); /* literal tree */
  //Tracev((stderr, "\nlit tree: sent %ld", s->bits_sent));

  send_tree(s, s.dyn_dtree, dcodes - 1); /* distance tree */
  //Tracev((stderr, "\ndist tree: sent %ld", s->bits_sent));
}


/* ===========================================================================
 * Check if the data type is TEXT or BINARY, using the following algorithm:
 * - TEXT if the two conditions below are satisfied:
 *    a) There are no non-portable control characters belonging to the
 *       "black list" (0..6, 14..25, 28..31).
 *    b) There is at least one printable character belonging to the
 *       "white list" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).
 * - BINARY otherwise.
 * - The following partially-portable control characters form a
 *   "gray list" that is ignored in this detection algorithm:
 *   (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).
 * IN assertion: the fields Freq of dyn_ltree are set.
 */
function detect_data_type(s) {
  /* black_mask is the bit mask of black-listed bytes
   * set bits 0..6, 14..25, and 28..31
   * 0xf3ffc07f = binary 11110011111111111100000001111111
   */
  var black_mask = 0xf3ffc07f;
  var n;

  /* Check for non-textual ("black-listed") bytes. */
  for (n = 0; n <= 31; n++, black_mask >>>= 1) {
    if ((black_mask & 1) && (s.dyn_ltree[n * 2]/*.Freq*/ !== 0)) {
      return Z_BINARY;
    }
  }

  /* Check for textual ("white-listed") bytes. */
  if (s.dyn_ltree[9 * 2]/*.Freq*/ !== 0 || s.dyn_ltree[10 * 2]/*.Freq*/ !== 0 ||
      s.dyn_ltree[13 * 2]/*.Freq*/ !== 0) {
    return Z_TEXT;
  }
  for (n = 32; n < LITERALS; n++) {
    if (s.dyn_ltree[n * 2]/*.Freq*/ !== 0) {
      return Z_TEXT;
    }
  }

  /* There are no "black-listed" or "white-listed" bytes:
   * this stream either is empty or has tolerated ("gray-listed") bytes only.
   */
  return Z_BINARY;
}


var static_init_done = false;

/* ===========================================================================
 * Initialize the tree data structures for a new zlib stream.
 */
function _tr_init(s)
{

  if (!static_init_done) {
    tr_static_init();
    static_init_done = true;
  }

  s.l_desc  = new TreeDesc(s.dyn_ltree, static_l_desc);
  s.d_desc  = new TreeDesc(s.dyn_dtree, static_d_desc);
  s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc);

  s.bi_buf = 0;
  s.bi_valid = 0;

  /* Initialize the first block of the first file: */
  init_block(s);
}


/* ===========================================================================
 * Send a stored block
 */
function _tr_stored_block(s, buf, stored_len, last)
//DeflateState *s;
//charf *buf;       /* input block */
//ulg stored_len;   /* length of input block */
//int last;         /* one if this is the last block for a file */
{
  send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3);    /* send block type */
  copy_block(s, buf, stored_len, true); /* with header */
}


/* ===========================================================================
 * Send one empty static block to give enough lookahead for inflate.
 * This takes 10 bits, of which 7 may remain in the bit buffer.
 */
function _tr_align(s) {
  send_bits(s, STATIC_TREES << 1, 3);
  send_code(s, END_BLOCK, static_ltree);
  bi_flush(s);
}


/* ===========================================================================
 * Determine the best encoding for the current block: dynamic trees, static
 * trees or store, and output the encoded block to the zip file.
 */
function _tr_flush_block(s, buf, stored_len, last)
//DeflateState *s;
//charf *buf;       /* input block, or NULL if too old */
//ulg stored_len;   /* length of input block */
//int last;         /* one if this is the last block for a file */
{
  var opt_lenb, static_lenb;  /* opt_len and static_len in bytes */
  var max_blindex = 0;        /* index of last bit length code of non zero freq */

  /* Build the Huffman trees unless a stored block is forced */
  if (s.level > 0) {

    /* Check if the file is binary or text */
    if (s.strm.data_type === Z_UNKNOWN) {
      s.strm.data_type = detect_data_type(s);
    }

    /* Construct the literal and distance trees */
    build_tree(s, s.l_desc);
    // Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
    //        s->static_len));

    build_tree(s, s.d_desc);
    // Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
    //        s->static_len));
    /* At this point, opt_len and static_len are the total bit lengths of
     * the compressed block data, excluding the tree representations.
     */

    /* Build the bit length tree for the above two trees, and get the index
     * in bl_order of the last bit length code to send.
     */
    max_blindex = build_bl_tree(s);

    /* Determine the best encoding. Compute the block lengths in bytes. */
    opt_lenb = (s.opt_len + 3 + 7) >>> 3;
    static_lenb = (s.static_len + 3 + 7) >>> 3;

    // Tracev((stderr, "\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u ",
    //        opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
    //        s->last_lit));

    if (static_lenb <= opt_lenb) { opt_lenb = static_lenb; }

  } else {
    // Assert(buf != (char*)0, "lost buf");
    opt_lenb = static_lenb = stored_len + 5; /* force a stored block */
  }

  if ((stored_len + 4 <= opt_lenb) && (buf !== -1)) {
    /* 4: two words for the lengths */

    /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.
     * Otherwise we can't have processed more than WSIZE input bytes since
     * the last block flush, because compression would have been
     * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to
     * transform a block into a stored block.
     */
    _tr_stored_block(s, buf, stored_len, last);

  } else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {

    send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3);
    compress_block(s, static_ltree, static_dtree);

  } else {
    send_bits(s, (DYN_TREES << 1) + (last ? 1 : 0), 3);
    send_all_trees(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, max_blindex + 1);
    compress_block(s, s.dyn_ltree, s.dyn_dtree);
  }
  // Assert (s->compressed_len == s->bits_sent, "bad compressed size");
  /* The above check is made mod 2^32, for files larger than 512 MB
   * and uLong implemented on 32 bits.
   */
  init_block(s);

  if (last) {
    bi_windup(s);
  }
  // Tracev((stderr,"\ncomprlen %lu(%lu) ", s->compressed_len>>3,
  //       s->compressed_len-7*last));
}

/* ===========================================================================
 * Save the match info and tally the frequency counts. Return true if
 * the current block must be flushed.
 */
function _tr_tally(s, dist, lc)
//    deflate_state *s;
//    unsigned dist;  /* distance of matched string */
//    unsigned lc;    /* match length-MIN_MATCH or unmatched char (if dist==0) */
{
  //var out_length, in_length, dcode;

  s.pending_buf[s.d_buf + s.last_lit * 2]     = (dist >>> 8) & 0xff;
  s.pending_buf[s.d_buf + s.last_lit * 2 + 1] = dist & 0xff;

  s.pending_buf[s.l_buf + s.last_lit] = lc & 0xff;
  s.last_lit++;

  if (dist === 0) {
    /* lc is the unmatched char */
    s.dyn_ltree[lc * 2]/*.Freq*/++;
  } else {
    s.matches++;
    /* Here, lc is the match length - MIN_MATCH */
    dist--;             /* dist = match distance - 1 */
    //Assert((ush)dist < (ush)MAX_DIST(s) &&
    //       (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&
    //       (ush)d_code(dist) < (ush)D_CODES,  "_tr_tally: bad match");

    s.dyn_ltree[(_length_code[lc] + LITERALS + 1) * 2]/*.Freq*/++;
    s.dyn_dtree[d_code(dist) * 2]/*.Freq*/++;
  }

// (!) This block is disabled in zlib defaults,
// don't enable it for binary compatibility

//#ifdef TRUNCATE_BLOCK
//  /* Try to guess if it is profitable to stop the current block here */
//  if ((s.last_lit & 0x1fff) === 0 && s.level > 2) {
//    /* Compute an upper bound for the compressed length */
//    out_length = s.last_lit*8;
//    in_length = s.strstart - s.block_start;
//
//    for (dcode = 0; dcode < D_CODES; dcode++) {
//      out_length += s.dyn_dtree[dcode*2]/*.Freq*/ * (5 + extra_dbits[dcode]);
//    }
//    out_length >>>= 3;
//    //Tracev((stderr,"\nlast_lit %u, in %ld, out ~%ld(%ld%%) ",
//    //       s->last_lit, in_length, out_length,
//    //       100L - out_length*100L/in_length));
//    if (s.matches < (s.last_lit>>1)/*int /2*/ && out_length < (in_length>>1)/*int /2*/) {
//      return true;
//    }
//  }
//#endif

  return (s.last_lit === s.lit_bufsize - 1);
  /* We avoid equality with lit_bufsize because of wraparound at 64K
   * on 16 bit machines and because stored blocks are restricted to
   * 64K-1 bytes.
   */
}

exports._tr_init  = _tr_init;
exports._tr_stored_block = _tr_stored_block;
exports._tr_flush_block  = _tr_flush_block;
exports._tr_tally = _tr_tally;
exports._tr_align = _tr_align;


/***/ }),

/***/ 23752:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


let communicate = __webpack_require__(79560);
module.exports.ready = () => {
  let arr = ['www.amazon.com', 'www.amazon.de', 'www.amazon.co.jp'];
  if (arr.indexOf(location.host) == -1) return;
  let info = {
    'name': G.dp.name || '',
    'price': G.dp.oldPrice || '0'
  };
  communicate.trigger({
    type: 'getAmazonPriceTrend',
    'info': JSON.stringify(info)
  });
};

/***/ }),

/***/ 23792:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var toIndexedObject = __webpack_require__(25397);
var addToUnscopables = __webpack_require__(6469);
var Iterators = __webpack_require__(26269);
var InternalStateModule = __webpack_require__(91181);
var defineProperty = (__webpack_require__(24913).f);
var defineIterator = __webpack_require__(51088);
var createIterResultObject = __webpack_require__(62529);
var IS_PURE = __webpack_require__(96395);
var DESCRIPTORS = __webpack_require__(43724);

var ARRAY_ITERATOR = 'Array Iterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);

// `Array.prototype.entries` method
// https://tc39.es/ecma262/#sec-array.prototype.entries
// `Array.prototype.keys` method
// https://tc39.es/ecma262/#sec-array.prototype.keys
// `Array.prototype.values` method
// https://tc39.es/ecma262/#sec-array.prototype.values
// `Array.prototype[@@iterator]` method
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
// `CreateArrayIterator` internal method
// https://tc39.es/ecma262/#sec-createarrayiterator
module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
  setInternalState(this, {
    type: ARRAY_ITERATOR,
    target: toIndexedObject(iterated), // target
    index: 0,                          // next index
    kind: kind                         // kind
  });
// `%ArrayIteratorPrototype%.next` method
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
}, function () {
  var state = getInternalState(this);
  var target = state.target;
  var index = state.index++;
  if (!target || index >= target.length) {
    state.target = null;
    return createIterResultObject(undefined, true);
  }
  switch (state.kind) {
    case 'keys': return createIterResultObject(index, false);
    case 'values': return createIterResultObject(target[index], false);
  } return createIterResultObject([index, target[index]], false);
}, 'values');

// argumentsList[@@iterator] is %ArrayProto_values%
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
var values = Iterators.Arguments = Iterators.Array;

// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');

// V8 ~ Chrome 45- bug
if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
  defineProperty(values, 'name', { value: 'values' });
} catch (error) { /* empty */ }


/***/ }),

/***/ 23807:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "gwd-member-coupon-top gwd-member-coupon",
    attrs: {
      href: _vm.link,
      target: "_blank",
      title: "点击领取"
    }
  }, [_c("span", {
    staticStyle: {
      color: "white",
      "margin-left": "5px"
    }
  }, [_vm._v(_vm._s(_vm.getText("当前商品可领会员券")))]), _vm._v(" "), _c("span", {
    staticStyle: {
      color: "white",
      "margin-left": "9px",
      "margin-right": "9px"
    }
  }, [_vm._v(_vm._s(_vm.getText("立即领取")))]), _vm._v(" "), _vm.qr ? _c("div", {
    staticClass: "gwd-qr-container"
  }, [_c("img", {
    staticStyle: {
      "margin-top": "7px",
      width: "120px",
      height: "120px"
    },
    attrs: {
      src: _vm.qr,
      alt: ""
    }
  }), _vm._v(" "), _c("div", {
    staticStyle: {
      "margin-top": "4px",
      "text-align": "center"
    }
  }, [_c("span", {
    staticStyle: {
      "font-weight": "bold",
      color: "#ff6132",
      "font-size": "14px"
    }
  }, [_vm._v(_vm._s(_vm.getText("手淘扫码")))]), _vm._v(" "), _c("span", {
    staticStyle: {
      "margin-left": "4px",
      color: "#333333",
      "font-size": "12px"
    }
  }, [_vm._v(_vm._s(_vm.getText("联系客服领取")))])])]) : _vm._e()]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 23891:
/***/ ((module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
var __WEBPACK_AMD_DEFINE_RESULT__;

__webpack_require__(3362);
!(__WEBPACK_AMD_DEFINE_RESULT__ = (() => {
  let originPrice = 0;
  let originPricePattern = {
    '360buy': '#page_maprice',
    'suning': ['del.small-price', 'del', '#itemPrice>del'],
    'amazon': ['.digital-list-price>td>.a-text-strike', '.a-span12.a-color-secondary.a-size-base', '.a-text-strike'],
    'yougou': 'del:eq(0)',
    'dangdang': ['.price_m:eq(0)', '.d15_price_info .price_pc .price_m'],
    'vipshop': '.J-mPrice',
    'keede': '.message_price_kd',
    'feiniu': 'del.fn-rmb-num:eq(0)',
    'kaola': '#js_marketPrice',
    '111': 'del',
    'jiuxian': 'del',
    'yintai': '.mk-num',
    'beibei': '.strike[op-value="originPrice"]',
    'bookschina': 'td:eq(19)',
    'tmall': ['.tb-rmb-num', '.tm-tagPrice-panel .tm-price', '.tm-price-panel .tm-price'],
    'taobao': '#J_StrPrice>em.tb-rmb-num',
    'taobao-95095': '.tm-price-panel .tm-price:eq(0)',
    'lefeng': '.marketPrice-s'
  };

  //let all_equal_short = false;

  let patternUsed = '';
  if (originPricePattern[G.site] != undefined) {
    let pattern = originPricePattern[G.site];
    if (pattern instanceof Array) {
      pattern.forEach(i => {
        let element = $(i);
        let len = $(i).toArray().length;
        if (len > 1) {
          element = $(i + `:eq(${len - 1})`);
        }
        if (originPrice) return;
        if (!element || !element.text()) return;
        let priceText = element.text();
        if (priceText.trim) {
          priceText = priceText.trim();
        }
        let price = parseFloat(priceText.replace(',', '').replace('￥', '').replace('¥', '').replace('$', '').replace(',', ''));
        originPrice = price;
        patternUsed = i;
      });
    } else {
      let element = $(pattern);
      if (element && element.text().length > 0) {
        let priceText = element.text();
        if (priceText.trim) {
          priceText = priceText.trim();
        }
        let price = parseFloat(priceText.replace(',', '').replace('￥', '').replace('¥', '').replace(',', ''));
        //
        originPrice = price;
        patternUsed = pattern;
      }
    }
  }

  // tmall.hk
  if (location.host === 'detail.tmall.hk') {
    originPrice = $('span.tm-price:eq(0)').text();
    let unitText = $('em.tm-yen:eq(0)').text();
    if (unitText === '₩' || unitText === 'NT$' || $('span.tm-price:eq(0)').css('text-decoration') && $('span.tm-price:eq(0)').css('text-decoration').indexOf('line-through') === -1) {
      originPrice = null;
    }
    let try2 = $('.wrtoriginprice .tm-price').text();
    if (try2) {
      originPrice = try2;
    }
  }

  // 淘宝需特殊处理
  let jstrprice = $('#J_StrPrice').text() && $('#J_StrPrice').css('text-decoration').toString().indexOf('line-through') === -1;
  if ((G.site === 'taobao' || G.site === 'tmall' || G.site === 'taobao-95095') && (jstrprice || G.site === 'tmall' && $('#J_StrPriceModBox').css('display') === 'none')) {
    if (patternUsed === '.tm-price-panel .tm-price' || patternUsed === '#J_StrPrice>em.tb-rmb-num') {
      originPrice = null;
    }
  }
  if (G.site === 'taobao' || G.site === 'tmall' || G.site === 'taobao-95095') {
    let e = $(patternUsed);
    if (e.css('text-decoration') && e.css('text-decoration').toString().indexOf('line-through') === -1) {
      if (G.site === 'taobao') {
        if (e.parent().css('text-decoration').toString().indexOf('line-through') === -1) {
          originPrice = null;
        }
      } else {
        originPrice = null;
      }
    }
  }
  if (G.site === 'bookschina') {
    let s = $('td').toArray().map(i => i.innerText);
    let pos = s.indexOf('定    价：');
    originPrice = s[pos + 1];
  }
  let type = null;
  if (location.host === 'www.amazon.co.jp') {
    type = 'JPY';
  }
  originPrice = __webpack_require__(86421)(originPrice, type);
  originPrice = parseFloat(originPrice);
  return originPrice;
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

/***/ }),

/***/ 24139:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(94634);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("6aaaa7e6", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 24197:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const template = __webpack_require__(26133);
const request = __webpack_require__(49388);
let log = __webpack_require__(35743);
let cnzz = __webpack_require__(5300);
const userData = __webpack_require__(74222);
const store = __webpack_require__(92771);
const {
  default: MiniBarCollectionButton
} = __webpack_require__(43642);
var country = 'us';
var timer, timer2;
var HOST;
var htX, htY, mouseDownX;
var sizeDict = {
  '米': 3000,
  '厘米': 30,
  '毫米': 3,
  '英尺': 914.4,
  '英寸': 76.2,
  '码': 2743.2,
  '尺': 1000,
  '寸': 100,
  '分': 10,
  '厘': 1
};
let clothesDict = {
  'shangyi': {
    'us': {
      'man': ['us_man_sz.jpg', 'us_man_sz2.jpg'],
      'woman': ['us_woman_sz.jpg', 'us_woman_sz2.jpg']
    },
    'uk': {
      'man': ['uk_man_sz.jpg', 'uk_man_sz2.jpg'],
      'woman': ['uk_woman_sz.jpg', 'uk_woman_sz2.jpg']
    },
    'jp': {
      'man': ['jp_man_sz.jpg', 'jp_man_sz2.jpg'],
      'woman': ['jp_woman_sz.jpg', 'jp_woman_sz2.jpg']
    }
  },
  'xiazhuang': {
    'us': {
      'man': ['us_man_xz.jpg', 'us_man_xz2.jpg'],
      'woman': ['us_woman_xz.jpg', 'us_woman_xz2.jpg']
    },
    'uk': {
      'man': ['uk_man_xz.jpg', 'uk_man_xz2.jpg'],
      'woman': ['uk_woman_xz.jpg', 'uk_woman_xz2.jpg']
    },
    'jp': {
      'man': ['jp_man_xz.jpg', 'jp_man_xz2.jpg'],
      'woman': ['jp_woman_xz.jpg', 'jp_woman_xz2.png']
    }
  },
  'kidscloth': {
    'us': ['us_kids.jpg', 'us_kids2_0.jpg', 'us_kids2_4.jpg'],
    'uk': ['uk_kids.jpg', 'uk_kids2_0.jpg', 'uk_kids2_4.jpg'],
    'jp': ['jp_kids.jpg', 'jp_kids2_4.jpg', 'jp_kids2_4.jpg']
  },
  'shoes': {
    'man': ['woman_shoes_1.jpg', 'man_shoes2.jpg'],
    'woman': ['woman_shoes_1.jpg', 'woman_shoes2.jpg'],
    'kids': ['kids_shoes.jpg', 'kids_shoes2_0.jpg', 'kids_shoes2_4.jpg']
  }
};
let sitePattern = {
  'www.amazon.com': {
    'coun': 'us',
    'dom': ['#corePriceDisplay_desktop_feature_div', '#price_feature_div', '#unifiedPrice_feature_div', '#tmmSwatches'],
    'position': 'after'
  },
  'www.amazon.co.jp': {
    'coun': 'jp',
    'dom': ['#corePriceDisplay_desktop_feature_div', '#price_feature_div', '#unifiedPrice_feature_div'],
    'position': 'after'
  },
  'www.amazon.fr': {
    'coun': 'fr',
    'dom': ['#corePriceDisplay_desktop_feature_div', '#price_feature_div', '#unifiedPrice_feature_div'],
    'position': 'after'
  },
  'www.amazon.de': {
    'coun': 'uk',
    'dom': ['#corePriceDisplay_desktop_feature_div', '#price_feature_div', '#unifiedPrice_feature_div'],
    'position': 'after'
  },
  'www.amazon.co.uk': {
    'coun': 'uk',
    'dom': ['#corePriceDisplay_desktop_feature_div', '#price_feature_div', '#unifiedPrice_feature_div'],
    'position': 'after'
  },
  'www.amazon.ca': {
    'coun': 'uk',
    'dom': ['#corePriceDisplay_desktop_feature_div', '#price_feature_div', '#unifiedPrice_feature_div'],
    'position': 'after'
  },
  'www.6pm.com': {
    'coun': 'us',
    'dom': ['.mGIQz', '#itemInformation'],
    'position': 'before'
  }
};
const insertSize = (headimg, itemimg) => {
  /*插入尺码帮助内容*/
  var Html = `<img src="http://s1.${G.extName}.com/images/extensions/{{imgurl}}">`;
  $('.size_s').empty().append(template.compile(Html)({
    'imgurl': headimg
  }));
  $('.size_item_img').empty().append(template.compile(Html)({
    'imgurl': itemimg
  }));
};
const calDetailPos = () => {
  let wWeight = ($(window).width() - 595) / 2;
  let wHeight = ($(window).height() - 420) / 2;
  return {
    'posx': wWeight,
    'posy': wHeight
  };
};
const render_size_detail = () => {
  let html = __webpack_require__(59641);
  $('body').append(template.compile(html)({
    pos: calDetailPos()
  }));
};
const getClothes = (t, c) => {
  switch (t) {
    case '男装':
      return clothesDict['shangyi'][c]['man'];
    case '女装':
      return clothesDict['shangyi'][c]['woman'];
    case '童装':
      return clothesDict['kidscloth'][c];
    case '男鞋':
      return clothesDict['shoes']['man'];
    case '女鞋':
      return clothesDict['shoes']['woman'];
    case '童鞋':
      return clothesDict['shoes']['kids'];
  }
};
const addSizeEvent = () => {
  /*添加尺码部分事件*/
  $('.closebar').on('click', function () {
    $(this).parent().hide();
  });
  $('.clothes_nav li').on('click', function () {
    $('.clothes_nav li').removeClass('select');
    $(this).addClass('select');
    var txt = $(this).text();
    var c = getClothes(txt, country);
    if (txt.indexOf('鞋') > -1) {
      $('.unit_cm').css('display', 'none');
      $('.unit_mm').css('display', 'inline-block');
      $('#size_detail .detail_left span').hide();
      $('.cloth_icon').css('display', 'inline-block');
      $('#size_detail .shoes').css('display', 'inline-block');
      if (txt.indexOf('男鞋') > -1) {
        $('.cloth_icon').attr('class', '').addClass('cloth_icon ht_shoes man_foot');
        $('.detail_left .shoes').text(txt);
      } else if (txt.indexOf('女鞋') > -1) {
        $('.cloth_icon').attr('class', '').addClass('cloth_icon ht_shoes woman_foot');
        $('.detail_left .shoes').text(txt);
      } else {
        $('#size_detail .shoes').hide();
        $('.cloth_icon').css('display', 'inline-block');
        $('.tongxie').css('display', 'inline-block');
        $('.tongxie0').addClass('size_hover');
        $('.tongxie4').removeClass('size_hover');
        $('.cloth_icon').attr('class', '').addClass('cloth_icon ht_shoes kids_foot');
      }
    } else if (txt.indexOf('童装') > -1) {
      $('.unit_mm').css('display', 'none');
      $('.unit_cm').css('display', 'inline-block');
      $('#size_detail .detail_left span').hide();
      $('#size_detail .tongzhuang').css('display', 'inline-block');
      $('.cloth_icon').css('display', 'inline-block');
      $('.cloth_icon').attr('class', '').addClass('cloth_icon kid0');
      $('.tongzhuang0').addClass('size_hover');
      $('.tongzhuang4').removeClass('size_hover');
    } else if (txt.indexOf('男装') > -1) {
      $('.unit_mm').css('display', 'none');
      $('.unit_cm').css('display', 'inline-block');
      $('#size_detail .detail_left span').hide();
      $('.cloth_icon').css('display', 'inline-block');
      $('#size_detail .shangyi').show();
      $('#size_detail .xiazhuang').show();
      $('.xiazhuang').removeClass('size_hover');
      $('.shangyi').addClass('size_hover');
      $('.cloth_icon').attr('class', '').addClass('cloth_icon manshangzhuang');
    } else {
      $('.unit_mm').css('display', 'none');
      $('.unit_cm').css('display', 'inline-block');
      $('#size_detail .detail_left span').hide();
      $('.cloth_icon').css('display', 'inline-block');
      $('#size_detail .shangyi').show();
      $('#size_detail .xiazhuang').show();
      $('.xiazhuang').removeClass('size_hover');
      $('.shangyi').addClass('size_hover');
      if (txt.indexOf('男装') > -1) $('.cloth_icon').attr('class', '').addClass('cloth_icon manshangzhuang');else $('.cloth_icon').attr('class', '').addClass('cloth_icon womanshangzhuang');
    }
    insertSize(c[0], c[1]);
  });
  $('.shangyi').on('click', function () {
    if ($(this).attr('class').indexOf('size_hover') > -1) return;
    var txt = $('.clothes_nav li[class="select"]').text();
    if (txt == "童装") return;
    if (txt == "男装") {
      $('.cloth_icon').attr('class', '').addClass('cloth_icon manshangzhuang');
    }
    if (txt == "女装") {
      $('.cloth_icon').attr('class', '').addClass('cloth_icon womanshangzhuang');
    }
    var c = getClothes(txt, country);
    insertSize(c[0], c[1]);
    $(this).addClass('size_hover');
    $('.xiazhuang').removeClass('size_hover');
  });
  $('.xiazhuang').on('click', function () {
    if ($(this).attr('class').indexOf('size_hover') > -1) return;
    var txt = $('.clothes_nav li[class="select"]').text();
    if (txt == "童装") return;
    if (txt == "男装") {
      var c = clothesDict['xiazhuang'][country]['man'];
      insertSize(c[0], c[1]);
      $('.cloth_icon').attr('class', '').addClass('cloth_icon manxiazhuang');
    }
    if (txt == "女装") {
      var c = clothesDict['xiazhuang'][country]['woman'];
      insertSize(c[0], c[1]);
      $('.cloth_icon').attr('class', '').addClass('cloth_icon womanxiazhuang');
    }
    $(this).addClass('size_hover');
    $('.shangyi').removeClass('size_hover');
  });
  $('.tongzhuang0').on('click', function () {
    var c = getClothes('童装', country);
    insertSize(c[0], c[1]);
    $(this).addClass('size_hover');
    $('.tongzhuang4').removeClass('size_hover');
    $('.cloth_icon').attr('class', '').addClass('cloth_icon kid0');
  });
  $('.tongzhuang4').on('click', function () {
    var c = getClothes('童装', country);
    insertSize(c[0], c[2]);
    $(this).addClass('size_hover');
    $('.tongzhuang0').removeClass('size_hover');
    $('.cloth_icon').attr('class', '').addClass('cloth_icon kid4');
  });
  $('.tongxie0').on('click', function () {
    var c = getClothes('童鞋', country);
    insertSize(c[0], c[1]);
    $(this).addClass('size_hover');
    $('.tongxie4').removeClass('size_hover');
  });
  $('.tongxie4').on('click', function () {
    var c = getClothes('童鞋', country);
    insertSize(c[0], c[2]);
    $(this).addClass('size_hover');
    $('.tongxie0').removeClass('size_hover');
  });

  /*尺寸转换*/
  $('.size_help').on('click', function () {
    $('#size_detail').show();
    log('click:haitao:size_help');
    cnzz.log('点击尺码帮助');
  });
  $('.size_xiala').on('mouseenter', function () {
    $(this).next('.size_xialabox').show();
    $(this).addClass('msHover');
  });
  $('.size_xiala').on('mouseleave', function () {
    var that = this;
    timer = setTimeout(function () {
      $(that).next('.size_xialabox').hide();
      $(that).removeClass('msHover');
    }, 100);
  });
  $('.size_xialabox').on('mouseenter', function () {
    clearTimeout(timer);
  });
  $('.size_xialabox').on('mouseleave', function () {
    $(this).hide();
  });
  $('.size_xialabox a').on('click', function () {
    var txt = $(this).text();
    var c = $(this).parent().attr('data-size');
    $('.' + c).val(txt);
    $(this).parent().hide();
    conversionSize();
  });
  $('#first_size').on('keyup', function () {
    conversionSize();
  });
};
const conversionSize = () => {
  /*尺码转换*/
  var first = $('.first_xiala').val();
  var second = $('.second_xiala').val();
  var num = $('#first_size').val();
  if (num) num = Number(num);
  var n1 = sizeDict[first];
  var n2 = sizeDict[second];
  var n3 = num * n1 / n2;
  if (n3.toString().indexOf('.') > -1) n3 = n3.toFixed(2);
  $('#second_size').val(n3);
};
const getCountry = () => {
  /*获取页面所属地区*/
  var host = location.host;
  for (var pattern in sitePattern) {
    if (pattern == host) {
      country = sitePattern[pattern]['coun'];
      HOST = pattern;
    }
  }
};
const getContainer = () => {
  let host = location.host;
  let patterns = sitePattern[host];
  if (!patterns) return false;
  return new Promise(async resolve => {
    let found = false,
      testTimes = 0;
    while (!found && testTimes < 10) {
      let dom = patterns.dom.find(dom => $(dom).length > 0);
      if (dom) {
        found = true;
        console.log('dom found', dom);
        resolve(dom);
      } else {
        testTimes++;
        console.log('waiting for dom', testTimes);
        await new Promise(resolve => setTimeout(resolve, 1000));
      }
    }
  });
  // for (let i = 0; i < patterns.dom.length; i++) {
  //   if ($(patterns.dom[i]).length > 0) {
  //     return patterns.dom[i];
  //   }
  // }
  // return false;
};
const addCommonEvent = () => {
  let href = location.href;
  $('#gwd_website_icon').on('click', e => {
    e.preventDefault();
    (__webpack_require__(30888).openTab)();
  });
  $('#gwd_minibar').on('click', function (e) {
    if ($(e.target).hasClass('sizehelp') || $(e.target).parent().hasClass('sizehelp')) {
      $('#size_detail').show();
    }
  });
  $('#ht_favor').on('click', function () {
    if (!G.email) {
      window.location.href = G.c_server + "/user/login?from_url=" + encodeURIComponent(href);
    } else {
      (__webpack_require__(24753).addFavor)(function () {
        window.location.href = G.c_server + "/user/login?from_url=" + encodeURIComponent(href);
      });
    }
  });
  $('.gwd-minibar-bg').on('mouseenter', '.minibar-tab', function () {
    $('#gwd_minibar').addClass('ms_enter');
    $(this).addClass('ms-tab-enter');
    var id = $(this).attr('id');
    $('#' + id + '_detail').show();
    if (id === "mini_price_history") {
      log("minitrend-show");
      (__webpack_require__(75957).calLineHeight)();
    }
  });
  $('.gwd-minibar-bg').on('mouseleave', '.minibar-tab', function () {
    $('#gwd_minibar').removeClass('ms_enter');
    $(this).removeClass('ms-tab-enter');
    $(this).removeClass('ms-tab-enter');
    var id = $(this).attr('id');
    $('body').removeClass('gwd-trend-hover-p');
    $('#' + id + '_detail').hide();
  });
};
const renderMini = dom => {
  $('body').addClass('ht_site');
  let host = location.host;
  let html = __webpack_require__(92433);
  let t = template.compile(html)({});
  switch (sitePattern[host]['position']) {
    case 'before':
      $(dom).before(t);
      break;
    case 'after':
      $(dom).after(t);
      break;
  }
  addCommonEvent();
  const store = (__webpack_require__(92771).getStore)();
  new Vue({
    el: '#gwd_mini_remind .minibar-btn-box',
    store,
    render: h => h(MiniBarCollectionButton)
  });
};
function baidufanyi(t, callback) {
  /*百度翻译接口*/
  var url = location.protocol + `//browser.${G.extName}.com/extension?ac=fanyi&string=` + t;
  request.get(url).done(function (data) {
    if (data.trans_result && !data.error_code) {
      var trans = [];
      for (var i = 0; i < data.trans_result.length; i++) {
        trans.push(data.trans_result[i].dst);
      }
      callback(trans);
    } else {
      callback([t]);
    }
  });
}
function requestFanyi(t, callback) {
  /*请求翻译接口*/
  baidufanyi(t, callback);
  log('request:haitao:fanyi');
  cnzz.log('请求划词翻译');
}
function insertFanyi(data) {
  /*插入翻译内容*/
  data = data.join('');
  $('.ht_fanyi').remove();
  var html = '<div class="ht_fanyi" style="top:{{hty}};left:{{htx}}"><span id="ht_top"></span>{{data}}</div>';
  var t = template.compile(html)({
    data: data,
    'htx': calPosition() + 'px',
    'hty': htY + 'px'
  });
  $('body').append(t);
  addFanyiEvent();
}
function calPosition() {
  /*计算插入位置*/
  var pos = 0;
  if (htX > mouseDownX) pos = htX - (htX - mouseDownX) / 2 - 65;else pos = htX + (mouseDownX - htX) / 2 - 65;
  return pos;
}
function editTxt(t) {
  requestFanyi(t, insertFanyi);
}
function addFanyiEvent() {
  $('.ht_fanyi').siblings().on('click', function () {
    $('.ht_fanyi').remove();
  });
}
function getSelect() {
  $('body').on('mousedown', function (e) {
    clearTimeout(timer2);
    mouseDownX = e.pageX;
  });
  $('body').on('mouseup', function (e) {
    timer2 = setTimeout(function () {
      var txt = '';
      htX = e.pageX;
      htY = e.pageY + 20;
      if (window.getSelection) {
        txt = window.getSelection().toString();
      } else if (document.selection) {
        txt = document.selection.createRange().text;
      }
      if (txt == '') return;else editTxt(txt);
    }, 100);
  });
}
function isZiying() {
  if (HOST == 'www.6pm.com') return 'ziying';
  if ($('#merchant-info').length > 0) {
    if (HOST == 'www.amazon.com') {
      if ($('#merchant-info').text().indexOf('sold by Amazon') > -1) return 'ziying';else return 'sanfang';
    }
    if (HOST == 'www.amazon.co.jp') {
      if ($('#merchant-info').text().indexOf('jp が販売') > -1) return 'ziying';else return 'sanfang';
    }
    if (HOST == 'www.amazon.de') {
      if ($('#merchant-info').text().indexOf('Verkauf und Versand durch Amazon') > -1) return 'ziying';else if ($('#merchant-info').text().indexOf('Dispatched from and sold by Amazon') > -1) return 'ziying';else return 'sanfang';
    }
  } else return 'sanfang';
}
module.exports.init = async () => {
  let permanent = userData.get('permanent');
  // if (permanent.sethaitao === "0") return;
  __webpack_require__(55535);
  let pattern = await getContainer();
  getCountry();
  if (!pattern) return;
  renderMini(pattern);
  getSelect();
  render_size_detail();
  try {
    insertSize(clothesDict['shangyi'][country]['man'][0], clothesDict['shangyi'][country]['man'][1]);
    addSizeEvent();
  } catch (e) {
    console.error(e);
  }
  setTimeout(function () {
    // check_favor()
  }, 1000);
};
module.exports.getHtInfo = () => {
  let obj = {};
  obj.HOST = HOST;
  obj.protype = isZiying();
  return obj;
};

/***/ }),

/***/ 24290:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-promo-plan[data-v-16fff0d4] {\n  z-index: 999;\n  display: none;\n  background: white;\n  position: absolute;\n  left: 0;\n  right: 0;\n  box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.2);\n  top: 35px;\n  box-sizing: border-box;\n  padding: 10px;\n}\n.gwd-promo-plan *[data-v-16fff0d4] {\n  float: initial;\n}\n.gwd-promo-plan table[data-v-16fff0d4] {\n  border-collapse: collapse;\n  width: 100%;\n  white-space: initial;\n}\n.gwd-promo-plan table .red[data-v-16fff0d4] {\n  color: #e4393c;\n}\n.gwd-promo-plan table th[data-v-16fff0d4] {\n  padding-left: 10px;\n  text-align: left;\n  height: 30px;\n  background: #f1f9fc;\n  font-weight: normal;\n}\n.gwd-promo-plan table th span[data-v-16fff0d4] {\n  display: inline-block;\n  font-size: 12px;\n  transform: scale(0.833);\n  transform-origin: left center;\n  color: #969899;\n  white-space: nowrap;\n}\n.gwd-promo-plan table th[data-v-16fff0d4],\n.gwd-promo-plan table td[data-v-16fff0d4] {\n  border: 1px solid #edf1f2;\n  box-sizing: border-box;\n  vertical-align: middle;\n  line-height: 17px;\n}\n.gwd-promo-plan table td[data-v-16fff0d4] {\n  min-height: 35px;\n}\n.gwd-promo-plan table td a[data-v-16fff0d4] {\n  text-decoration: underline;\n}\n.gwd-promo-plan table td a[data-v-16fff0d4]:hover {\n  color: #e4393c !important;\n}\n.gwd-promo-plan .gwd-p-qrcode[data-v-16fff0d4] {\n  box-sizing: border-box;\n  position: absolute;\n  bottom: -1px;\n  top: -36px;\n  z-index: 999;\n  width: 130px;\n  background: white;\n  border: 1px solid #e6e9eb;\n  box-shadow: 2px 1px 3px 0 rgba(0, 0, 0, 0.2);\n  right: -130px;\n  font-size: 0;\n}\n.gwd-promo-plan .gwd-p-qrcode span[data-v-16fff0d4] {\n  display: inline-block;\n}\n", ""]);

// exports


/***/ }),

/***/ 24357:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

const Mode = __webpack_require__(30208)

function NumericData (data) {
  this.mode = Mode.NUMERIC
  this.data = data.toString()
}

NumericData.getBitsLength = function getBitsLength (length) {
  return 10 * Math.floor(length / 3) + ((length % 3) ? ((length % 3) * 3 + 1) : 0)
}

NumericData.prototype.getLength = function getLength () {
  return this.data.length
}

NumericData.prototype.getBitsLength = function getBitsLength () {
  return NumericData.getBitsLength(this.data.length)
}

NumericData.prototype.write = function write (bitBuffer) {
  let i, group, value

  // The input data string is divided into groups of three digits,
  // and each group is converted to its 10-bit binary equivalent.
  for (i = 0; i + 3 <= this.data.length; i += 3) {
    group = this.data.substr(i, 3)
    value = parseInt(group, 10)

    bitBuffer.put(value, 10)
  }

  // If the number of input digits is not an exact multiple of three,
  // the final one or two digits are converted to 4 or 7 bits respectively.
  const remainingNum = this.data.length - i
  if (remainingNum > 0) {
    group = this.data.substr(i)
    value = parseInt(group, 10)

    bitBuffer.put(value, remainingNum * 3 + 1)
  }
}

module.exports = NumericData


/***/ }),

/***/ 24403:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-new-jd #mini_price_history::after {\n  position: absolute;\n  content: '';\n  background: transparent;\n  width: 137px;\n  left: 49px;\n  bottom: -3px;\n  height: 6px;\n}\n.gwd-minibar-bg {\n  font: 12px/1.5 tahoma, arial, 'Hiragino Sans GB', '\\5B8B\\4F53', sans-serif;\n  transform: matrix(1, 0, 0, 1, 0, 0);\n  left: 0;\n  z-index: 9999;\n}\n.gwd-minibar-bg em {\n  font-weight: normal;\n}\n.gwd-minibar-bg.gwd-npcitem-jdhk {\n  z-index: 9;\n  width: 462px;\n}\n", ""]);

// exports


/***/ }),

/***/ 24475:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ InstallCompletevue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ InstallComplete)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/Settings/InstallComplete.vue?vue&type=template&id=660deef5&scoped=true
var InstallCompletevue_type_template_id_660deef5_scoped_true = __webpack_require__(55157);
;// ./src/common/components/Settings/InstallComplete.vue?vue&type=template&id=660deef5&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/Settings/InstallComplete.vue?vue&type=script&lang=js
var InstallCompletevue_type_script_lang_js = __webpack_require__(88114);
;// ./src/common/components/Settings/InstallComplete.vue?vue&type=script&lang=js
 /* harmony default export */ const Settings_InstallCompletevue_type_script_lang_js = (InstallCompletevue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/Settings/InstallComplete.vue?vue&type=style&index=0&id=660deef5&prod&scoped=true&lang=less
var InstallCompletevue_type_style_index_0_id_660deef5_prod_scoped_true_lang_less = __webpack_require__(99759);
;// ./src/common/components/Settings/InstallComplete.vue?vue&type=style&index=0&id=660deef5&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/Settings/InstallComplete.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  Settings_InstallCompletevue_type_script_lang_js,
  InstallCompletevue_type_template_id_660deef5_scoped_true/* render */.XX,
  InstallCompletevue_type_template_id_660deef5_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "660deef5",
  null
  
)

/* harmony default export */ const InstallComplete = (component.exports);

/***/ }),

/***/ 24700:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-quest"
  }, [_c("div", {
    staticClass: "gwd-hint-text"
  }, [_c("span", {
    staticClass: "gwd-hint-2x"
  }, [_vm._t("default")], 2)])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 24753:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const template = __webpack_require__(26133);
const request = __webpack_require__(49388);
const globalCondition = __webpack_require__(41761);
const userData = __webpack_require__(74222);
const golbal2 = __webpack_require__(7053);
const util = __webpack_require__(30888);
const miniFavor = __webpack_require__(23107);
const userCenter = __webpack_require__(76904);
const siteInfo = __webpack_require__(92834);
let permanent, oinfo;
var siteidArr = ['228', '266', '246', '229', '365', '366', '1', '238', '230'];
const showListPrice = (price, dp_id, originUrl) => {
  let pattern = dp_id.split('-');
  let siteId = pattern[pattern.length - 1];
  if (price < 0) return '暂时缺货';else {
    if (siteidArr.indexOf(siteId) > -1) {
      let site = siteInfo.isProductPage(originUrl);
      let cur = (__webpack_require__(22209).getMoneyInfo)(site)[0];
      return cur + price.toString().replace(',', '');
    } else {
      return '¥' + price.toString().replace(',', '');
    }
  }
};
const addEvent = () => {
  $('#topfavor_detail').on('click', '.item_close_btn', function () {
    let id = $(this).attr('data-id');
    delFavor(id);
  });
  $('.favor-list a').on('click', function () {
    console.log($(this));
    if ($(this).attr('data-id')) {
      delFavor($(this).attr('data-id'));
      return false;
    }
    if (!$(this).attr('href')) {
      return false;
    }
    window.open($(this).attr('href'));
    return false;
  });
};
const delFavor = id => {
  id = id.trim();
  oinfo = userData.get('other_info');
  // let url = `${G.c_server}/collect/aj_del?dp_id=${id}`;
  // request.get(url).done((data) => {
  if (id === oinfo.id) {
    store.dispatch('priceRemind/cancel').then(() => {
      $('#topfavor_detail .sp-del').show().fadeOut(3000);
      getFavor(renderList);
    });
  } else {
    userCenter.delete(id).then(data => {
      // -1  失败  1 处理成功   100 未登录
      if (data.code === 1) {
        // if (id == oinfo.now.dp_id) {
        //   $('#topfavor_detail .topf-head .sp-col').text('收藏商品').removeClass('collected')
        // }
        $('#topfavor_detail .sp-del').show().fadeOut(3000);
        getFavor(renderList);
      }
    });
  }
};
const addFavor = callback => {
  const store = (__webpack_require__(92771).getStore)();
  let pagedp = G.dp;
  let dp = oinfo.now;
  store.dispatch('priceRemind/submit', {
    notifySite: '',
    price: '',
    mode: ''
  }).then(res => {
    // getFavor(renderList)
    // $('#topfavor_detail .topf-head .sp-col').text('收藏成功').addClass('collected')
  });
  // userCenter.add('', '').then(data => {
  //   if (Number(data.code) === 1 || data.error_code === '1') {
  //     getFavor(renderList)
  //     $('#topfavor_detail .topf-head .sp-col').text('收藏成功').addClass('collected')
  //     $('#ht_favor').text('收藏成功').addClass('collected')
  //     $(`#gwd_mini_remind .minibar-btn-box span`).text(`已添加提醒`);
  //     $('#gwd_mini_remind .minibar-btn-box em').addClass('favored')
  //
  //     if (data.data) {
  //       G.remindInfo = {
  //         remind_price: data.data.notifier.threshold,
  //         is_collected: data.data.id,
  //         has_remind_type: data.data.notifier.type,
  //         remind_type: data.data.notifier.type,
  //         notify_site: data.data.notifier.site
  //       };
  //
  //       miniFavor.setNotifyPrice(data.data.notifier.site, data.data.notifier.threshold)
  //     }
  //
  //     // 更新本地收藏存储
  //     // util.addFavorCheck()
  //   } else if (data.code === '2') {
  //     $('#topfavor_detail .topf-head .sp-col').text('收藏过了').addClass('collected')
  //     $('#ht_favor').text('收藏过了').addClass('collected')
  //     $(`#gwd_mini_remind .minibar-btn-box span`).text(`已添加提醒`);
  //     $('#gwd_mini_remind .minibar-btn-box em').addClass('favored')
  //   } else if (data.code === 100) {
  //     if (callback) callback()
  //   } else {
  //
  //   }
  // })
};
const renderList = data => {
  if (typeof data === 'string') {
    data = JSON.parse(data);
  }
  let datasize = data.products.length;
  for (let i = 0; i < datasize; i++) {
    let siteId = data.products[i].dp_id.split('-')[1];
    data.products[i].site_id = siteId;
    data.products[i].newPrice = showListPrice(data.products[i].now_price, data.products[i].dp_id, data.products[i].origin_url);
  }
  let html = __webpack_require__(56865);
  $('#topfavor_detail .favor-list').empty().append(template.compile(html)({
    data: data.products,
    imgLoad: G.imgLoad,
    s_server: G.s_server
  }));
  $('.see-all-favor em').text(data.cnt);
  $('.see-all-favor').attr('href', `https://www.gwdang.com/mine/collection`);
  addEvent();
  golbal2.loadImg(0, datasize, $('#topfavor_detail li .item_img img'));
  if (!$('#topfavor_detail').hasClass('islogin')) $('#topfavor_detail').addClass('islogin');
};
const getFavor = callback => {
  userCenter.getList('default', 1, 3).then(res => {
    let data = res;
    if (!data.data.list) {
      callback({
        products: [],
        cnt: 0
      });
      return;
    }
    callback({
      products: data.data.list.map(item => {
        item.now_price = item.price.last;
        return item;
      }),
      cnt: data.data.cnt
    });
  });
};
const userLogin = (u, p, callback) => {
  $.ajax({
    type: "post",
    url: `https://www.${G.extName}.com/user/aj_login`,
    xhrFields: {
      withCredentials: true
    },
    crossDomain: true,
    data: {
      email: u,
      password: p,
      t: "check",
      host: location.protocol + '//' + location.host
    },
    success: function (data) {
      callback(data);
      (__webpack_require__(57031).renderAgain)();
    }
  });
};
const addDetailEvent = () => {
  let stime, isRender, setLeft;
  $('#topfavor_detail .topf-head span').on('click', function () {
    addFavor();
  });
  $('#topfavor_detail .login_click').on('click', function () {
    let username = $('#topfavor_detail .username').val();
    let psd = $('#topfavor_detail .password').val();
    if (!username || !psd) {
      $('#topfavor_detail .login_remind').show().fadeOut(5000);
      return;
    }
    userLogin(username, psd, function (data) {
      if (data === '1') {
        G.email = username;
        getFavor(renderList);
      } else {
        $('#topfavor_detail .login_remind').show().fadeOut(5000);
      }
    });
  });
  $('body').on('gwd-login-complete', e => {
    console.log('fired');
    getFavor(renderList);
  });
  $('#gwdang-favor').on('mouseenter', function () {
    if (G.userLogin && !isRender) {
      isRender = true;
      $('#topfavor_detail').addClass('islogin');
      getFavor(renderList);
    }
    if (permanent.style === 'bottom') {
      setLeft = true;
      util.setSimplePagePos($('#gwdang-favor'), $('#topfavor_detail'), 279);
    }
    $('#topfavor_detail').show();
    $(this).addClass('msHover');
  });
  $('#gwdang-favor').on('mouseleave', function () {
    let that = this;
    stime = setTimeout(function () {
      $('#topfavor_detail').hide();
      $(that).removeClass('msHover');
    }, 100);
  });
  $('#topfavor_detail').on('mouseenter', function () {
    clearTimeout(stime);
  });
  $('#topfavor_detail').on('mouseleave', function () {
    $('#topfavor_detail').hide();
    $('#gwdang-favor').removeClass('msHover');
  });
};
const renderDetail = dp_id => {
  const store = (__webpack_require__(92771).getStore)();
  let hidebtn;
  let dom = '#gwdang_main';
  let style = 'top:37px;';
  if (permanent.style === 'bottom') {
    dom = '#bjd_bottom_detail';
    style = 'bottom: 60px;right: 40px;';
  }

  // 改商品没有抓取数据的时候   不能收藏商品
  if (!dp_id || dp_id.match(/^0-\d+$/)) {
    hidebtn = true;
  }
  let imgHost = G.imgHost;
  if (G.from_device === 'firefox') {
    imgHost = G.localImg;
  }
  let homeU = `https://www.gwdang.com/user/wechat_oauth/?pl=9&op=login&from_url=${encodeURIComponent(location.href)}`;
  homeU = encodeURIComponent(homeU);
  let wxUrl = `https://open.weixin.qq.com/connect/qrconnect?appid=wx34006c141f9daa3a&response_type=code&scope=snsapi_login&state=2ced970d5b97680e95670a48d1102611&redirect_uri=${homeU}`;
  let html = __webpack_require__(31584);
  $(dom).append(template.compile(html)({
    email: G.email,
    userLogin: G.userLogin,
    hidebtn: hidebtn,
    imgHost: imgHost,
    wxUrl: wxUrl,
    pageurl: encodeURIComponent(location.href),
    style: style
  }));
  const CommonLogin = (__webpack_require__(36664)["default"]);
  new Vue({
    el: '#gwd-login-favor',
    render: h => h(CommonLogin, {
      props: {
        position: 'gwd-favor',
        showAlterLogin: true,
        alterLoginPosition: 'column'
      }
    })
  });
  addDetailEvent(permanent);
  const setCollectedStatus = newVal => {
    (__webpack_require__(7129).log)('watch triggered', newVal);
    if (newVal) {
      // 已收藏
      $('#topfavor_detail .topf-head .sp-col').text('收藏成功').addClass('collected');
    } else {
      // 未收藏
      $('#topfavor_detail .topf-head .sp-col').text('收藏商品').removeClass('collected');
    }
  };
  setCollectedStatus(store.state.priceRemind.collected);
  store.watch(state => {
    return state.priceRemind.collected;
  }, setCollectedStatus);
};
module.exports.init = async () => {
  await (__webpack_require__(41761).met)('GwdDpIdGot');
  permanent = userData.get('permanent');
  oinfo = userData.get('other_info');
  renderDetail(oinfo.now.dp_id);
};
module.exports.addFavor = addFavor;

/***/ }),

/***/ 24806:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAA0CAYAAACHO2h8AAAAAXNSR0IArs4c6QAAAZJJREFUSEvtlz9OAkEUh79NsNJiOy038QDuEUggxM6INWCrDRRSwwE0UtqtiR7A3mKPwBH2CF7AZM2bAeJkIeyb3U004TU0w5f3Z37vNxtQUwTCybvkVXkNgT79E3MzumjDQwJnkbrSYmknITymcB6rYAZkGt4m4og5OSMkM4EpYgNawUJaZEDIewan5Ut0QKurIKm0TUaSWcnYBloCcSVQ3mFMwMKUJKUpwk6tQ0KANMTWMn2F3kiBAXf8xyEMZ9CfqCBy2AV9fIHAPMIF1SYR5ch/J16UiPTn7lld3Bok0ogIuDK3ejiHwUwFcyXSNeNPEeG+ZZjfkrH7Zr8sVRugGa3ll0R8I1rzU7/ZRS0jERlXTO8WpknJ7thjxfGLYJ9S1S4qgmTkNxMvmTQkkdq0drCjbResGYmsfO0v2pFsSKWTFLUmdjSYqwT7H+xI9rTHa237PqrJjuzL4X4B12NVww92tL9d9maLHYmXtRAPir2fx85HTS121B9bsSre1+uiG7Kj/T3deaLe77UKiWz++gOA98aFVwFZGwAAAABJRU5ErkJggg==";

/***/ }),

/***/ 24861:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

const Mode = __webpack_require__(30208)
const Utils = __webpack_require__(56886)

function KanjiData (data) {
  this.mode = Mode.KANJI
  this.data = data
}

KanjiData.getBitsLength = function getBitsLength (length) {
  return length * 13
}

KanjiData.prototype.getLength = function getLength () {
  return this.data.length
}

KanjiData.prototype.getBitsLength = function getBitsLength () {
  return KanjiData.getBitsLength(this.data.length)
}

KanjiData.prototype.write = function (bitBuffer) {
  let i

  // In the Shift JIS system, Kanji characters are represented by a two byte combination.
  // These byte values are shifted from the JIS X 0208 values.
  // JIS X 0208 gives details of the shift coded representation.
  for (i = 0; i < this.data.length; i++) {
    let value = Utils.toSJIS(this.data[i])

    // For characters with Shift JIS values from 0x8140 to 0x9FFC:
    if (value >= 0x8140 && value <= 0x9FFC) {
      // Subtract 0x8140 from Shift JIS value
      value -= 0x8140

    // For characters with Shift JIS values from 0xE040 to 0xEBBF
    } else if (value >= 0xE040 && value <= 0xEBBF) {
      // Subtract 0xC140 from Shift JIS value
      value -= 0xC140
    } else {
      throw new Error(
        'Invalid SJIS character: ' + this.data[i] + '\n' +
        'Make sure your charset is UTF-8')
    }

    // Multiply most significant byte of result by 0xC0
    // and add least significant byte to product
    value = (((value >>> 8) & 0xff) * 0xC0) + (value & 0xff)

    // Convert result to a 13-bit binary string
    bitBuffer.put(value, 13)
  }
}

module.exports = KanjiData


/***/ }),

/***/ 24883:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
module.exports = __webpack_require__.p + "images/extensions/build/638a37ca4ee8a2e6d85b.png";

/***/ }),

/***/ 24913:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

var DESCRIPTORS = __webpack_require__(43724);
var IE8_DOM_DEFINE = __webpack_require__(35917);
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(48686);
var anObject = __webpack_require__(28551);
var toPropertyKey = __webpack_require__(56969);

var $TypeError = TypeError;
// eslint-disable-next-line es/no-object-defineproperty -- safe
var $defineProperty = Object.defineProperty;
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var ENUMERABLE = 'enumerable';
var CONFIGURABLE = 'configurable';
var WRITABLE = 'writable';

// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  anObject(O);
  P = toPropertyKey(P);
  anObject(Attributes);
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
    var current = $getOwnPropertyDescriptor(O, P);
    if (current && current[WRITABLE]) {
      O[P] = Attributes.value;
      Attributes = {
        configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
        enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
        writable: false
      };
    }
  } return $defineProperty(O, P, Attributes);
} : $defineProperty : function defineProperty(O, P, Attributes) {
  anObject(O);
  P = toPropertyKey(P);
  anObject(Attributes);
  if (IE8_DOM_DEFINE) try {
    return $defineProperty(O, P, Attributes);
  } catch (error) { /* empty */ }
  if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
  if ('value' in Attributes) O[P] = Attributes.value;
  return O;
};


/***/ }),

/***/ 24931:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.T = void 0;
__webpack_require__(3362);
var _PromotionIcon = _interopRequireDefault(__webpack_require__(48076));
const init = async () => {
  if (G.promotion !== '1') {
    return;
  }
  const config = await (__webpack_require__(41761).met)('GwdConfig');
  if (config.promotionAllowedDomains.indexOf(location.host) === -1) {
    return;
  }
  if (window.gwdPromotionIcon) {
    return;
  }
  const el = document.createElement('div');
  if (G.site === '360buy') {
    if ($('#J-global-toolbar').length) {
      $('body').append(el);
    } else {
      $('.elevator').append(el);
    }
  }
  if (G.site === 'taobao' || G.site === 'tmall') {
    await (__webpack_require__(30888).waitForConditionFn)(() => $('.tb-toolkit-new').length);
    $('.tb-toolkit-new').append(el);
  }
  window.gwdPromotionIcon = new Vue({
    el,
    render: h => h(_PromotionIcon.default)
  });
};
exports.T = init;

/***/ }),

/***/ 24994:
/***/ ((module) => {

function _interopRequireDefault(e) {
  return e && e.__esModule ? e : {
    "default": e
  };
}
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 25110:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(37457);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("be6371c2", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 25166:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(40085);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("477f8038", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 25314:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "\n.gwd_compare {\n  display: none;\n}\n.gwd_compare .gwd-turn-page {\n  width: 147px;\n}\n", ""]);

// exports


/***/ }),

/***/ 25397:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

// toObject with fallback for non-array-like ES3 strings
var IndexedObject = __webpack_require__(47055);
var requireObjectCoercible = __webpack_require__(67750);

module.exports = function (it) {
  return IndexedObject(requireObjectCoercible(it));
};


/***/ }),

/***/ 25435:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ Specialvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ Special)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/PromoHistory/Special.vue?vue&type=template&id=60ccd948&scoped=true
var Specialvue_type_template_id_60ccd948_scoped_true = __webpack_require__(436);
;// ./src/common/components/PromoHistory/Special.vue?vue&type=template&id=60ccd948&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/PromoHistory/Special.vue?vue&type=script&lang=js
var Specialvue_type_script_lang_js = __webpack_require__(16927);
;// ./src/common/components/PromoHistory/Special.vue?vue&type=script&lang=js
 /* harmony default export */ const PromoHistory_Specialvue_type_script_lang_js = (Specialvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/PromoHistory/Special.vue?vue&type=style&index=0&id=60ccd948&prod&lang=less&scoped=true
var Specialvue_type_style_index_0_id_60ccd948_prod_lang_less_scoped_true = __webpack_require__(55934);
;// ./src/common/components/PromoHistory/Special.vue?vue&type=style&index=0&id=60ccd948&prod&lang=less&scoped=true

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/PromoHistory/Special.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  PromoHistory_Specialvue_type_script_lang_js,
  Specialvue_type_template_id_60ccd948_scoped_true/* render */.XX,
  Specialvue_type_template_id_60ccd948_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "60ccd948",
  null
  
)

/* harmony default export */ const Special = (component.exports);

/***/ }),

/***/ 25457:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);


var pagerParser = {
  timeout: 1000,
  tleEdit: function (tle) {
    tle = tle || '';
    tle = tle.replace('[广告]', '');
    return tle;
  },
  priceFormatter: function (price, radixPoint, split, site_id) {
    radixPoint = radixPoint || '.';
    split = split || ',';
    price = '' + price;
    var temp = price.replace(split, '').replace(radixPoint, '.');
    temp = temp.match(/[0-9.]+/);
    if (temp) {
      try {
        return parseFloat(temp);
      } catch (e) {
        return -1;
      }
    }
  },
  template: function (items_sel, href_sel, price_sel, tle_sel) {
    var items = document.querySelectorAll(items_sel);
    var r = [];
    for (var i = 0; i < items.length; ++i) {
      try {
        var href = items[i].querySelector(href_sel).href;
        let pridom = items[i].querySelector(price_sel);
        if (!pridom) continue;
        var price = pridom.textContent.trim();
        if (!price) continue;
        if (tle_sel) {
          let tledom = items[i].querySelector(tle_sel);
          if (!tledom) continue;
          var tle = tledom.textContent.trim();
        }
        r.push({
          'url': href,
          'price': pagerParser.priceFormatter(price),
          'tle': tle || '',
          'crc32': ''
        });
      } catch (e) {
        continue;
      }
    }
    return r;
  }
};

//amazon
pagerParser[1] = function (document) {
  var r = [];
  var items = document.querySelectorAll('.s-result-item');
  for (var i = 0; i < items.length; ++i) {
    try {
      var img = items[i].querySelector('.s-access-image');
      while (!img.parentNode.href && img.parentNode != document.body) {
        img = img.parentNode;
      }
      if (img.parentNode == document.body) {
        continue;
      }
      var href = img.parentNode.href;
      var price = items[i].querySelector('div>.a-spacing-mini>.a-spacing-none>a>span.a-color-price');
      var tle = items[i].querySelector('div>.a-spacing-mini>.a-spacing-none>a.s-color-twister-title-link h2');
      if (!price) {
        price = items[i].querySelector('span.a-color-price');
      }
      tle = pagerParser.tleEdit(tle.textContent);
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price.textContent),
        'tle': tle,
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//dangdang
pagerParser[2] = function (document) {
  var items = document.querySelectorAll('#search_nature_rg li');
  if (!items.length) {
    items = document.querySelectorAll('#content .shop_box');
  }
  if (!items.length) {
    items = document.querySelectorAll('.shoplist>ul>li');
  }
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].querySelector('a.pic').href;
      var price = items[i].querySelector('.price>span').textContent;
      var tle = items[i].querySelector('p.name>a').textContent;
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price),
        'tle': tle,
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//jd
pagerParser[3] = function (document) {
  return pagerParser.template('.m-list .gl-warp>li', '.p-img>a', '.p-price em+i', '.p-name>a>em');
};

//ouku
pagerParser[6] = function (document) {
  return pagerParser.template('.item-block', 'a.ctr-track', 'a.price');
};

//newegg
pagerParser[7] = function (document) {
  return pagerParser.template('.main .prolist>li', 'a', 'span.price');
};

//m18
pagerParser[10] = function (document) {
  return pagerParser.template('.item', 'a.thmb', '.prc>strong');
};

//sephora
pagerParser[12] = function (document) {
  return pagerParser.template('#searchResultListDiv li', '.proPic>a', '.proPrice');
};

//lefeng
pagerParser[13] = function (document) {
  return pagerParser.template('#productDivGroup>.pruwrap', 'a', 'span.price');
};

//s.cn
pagerParser[14] = function (document) {
  return pagerParser.template('.product_list>dl', 'dt>a', 'i.price');
};

//menglu
pagerParser[16] = function (document) {
  return pagerParser.template('.smList>ul>li', '.pro155 a', 'span.off');
};

//moonbase
pagerParser[17] = function (document) {
  return pagerParser.template('.chapList dl', 'a', 'span>font');
};

//keede
pagerParser[18] = function (document) {
  return pagerParser.template('#goodsPanel li[class]', 'a', '.classify_price>span');
};

//vancl
pagerParser[19] = function (document) {
  return pagerParser.template('#vanclproducts>ul>li', '.pic a', '.Sprice');
};

//okbuy
pagerParser[21] = function (document) {
  return pagerParser.template('.gl-item', '.gl-img>a', '.okprice');
};

//letao
pagerParser[22] = function (document) {
  return pagerParser.template('.pro_list ul li', '.pro_img>a', '.pro_price');
};

//taoxie
pagerParser[24] = function (document) {
  return pagerParser.template('#list>ul>li', '.pic>a', '.real-price>em');
};

//suning
pagerParser[25] = function (document) {
  setTimeout(function () {
    document._links = pagerParser.template('.product-list li', 'a.sellPoint', '.price-box .def-price', '.title-selling-point');
  }, 2000);
  return {
    wait: true
  };
};

//lusen
pagerParser[27] = function (document) {
  return pagerParser.template('.shows', 'a', '.new');
};

//gome
pagerParser[28] = function (document) {
  return pagerParser.template('#product-box>li', 'a.item-link', '.price');
};

//yhd
pagerParser[31] = function (document) {
  return pagerParser.template('#itemSearchList .mod_search_pro', '.proImg a', '.proPrice .num');
};

//leyou
pagerParser[33] = function (document) {
  return pagerParser.template('.propicList .products', '.pic>a', '.disPrice');
};

//shopin
pagerParser[34] = function (document) {
  return pagerParser.template('.content ul li', 'a', 'strong.price');
};

//xiu
pagerParser[35] = function (document) {
  return pagerParser.template('.item', '.pic>a', 'span.showprice');
};

//mbaobao
pagerParser[36] = function (document) {
  return pagerParser.template('#js-goods-list>ul>li', 'a', 'strong.red');
};

//qinqinbaby
pagerParser[39] = function (document) {
  return pagerParser.template('#proactive>li', '.pro-img a', '.price b.fontYHei');
};

//chunshuitang
pagerParser[40] = function (document) {
  return pagerParser.template('.L_boxlist', 'dt>a', '.L_rmb_xuj');
};

//x
pagerParser[41] = function (document) {
  return pagerParser.template('.s_pro_list li', '.pic>a', '.price');
};

//guopi
pagerParser[42] = function (document) {
  var tr = document.querySelectorAll('#main_table>tbody>tr.img,#main_table>tbody>tr.price');
  var r = [];
  for (var i = 0; i < tr.length; i += 2) {
    try {
      var imgs = tr[i].querySelectorAll('td');
      var prices = tr[i + 1].querySelectorAll('td');
      for (var j = 0; j < imgs.length; ++j) {
        var href = imgs[j].querySelector('a').href;
        var price = prices[j].querySelector('span.price').textContent;
        r.push({
          'url': href,
          'price': pagerParser.priceFormatter(price),
          'crc32': ''
        });
      }
    } catch (e) {
      continue;
    }
  }
  return r;
};

//no5
pagerParser[43] = function (document) {
  return pagerParser.template('.cplist>dl', 'dt a', '.pro-price>span>span');
};

//sasa
pagerParser[45] = function (document) {
  return pagerParser.template('#gallery_show>ul>li', '.arrivals-pic a', 'span.price');
};

//m6go
pagerParser[51] = function (document) {
  return pagerParser.template('.result>ul>li', 'a.pica', '.price-info strong');
};

//likeface
pagerParser[52] = function (document) {
  return pagerParser.template('ul.tLst2 li', 'a.tImg', 'span.tPrc');
};

//morefood
pagerParser[54] = function (document) {
  return pagerParser.template('.goods_list', '.img>a', 'span[datatype="price"]');
};

//99read
pagerParser[59] = function (document) {
  return pagerParser.template('.list_r_list', 'h1 a', '.f-Price:last-child');
};

//chinapub
pagerParser[60] = function (document) {
  return pagerParser.template('.search_result table', '.result_name a', '.book_dis b');
};

//bookschina
pagerParser[61] = function (document) {
  return pagerParser.template('.bookContent', '.titlein', 'span.red12');
};

//winxuan
pagerParser[62] = function (document) {
  return pagerParser.template('#list>li', '.img a', '.price-n');
};

//efeihu
pagerParser[63] = function (document) {
  return pagerParser.template('#Jlist>li', '.ui_pimg>a', '.ui_pprice_e>em');
};

//yintai
pagerParser[66] = function (document) {
  return pagerParser.template('.p-listInfo', '.p-listImgBig a', '.p-listPrice strong');
};

//hapigo
pagerParser[72] = function (document) {
  return pagerParser.template('.sl_list_ul>li', '.goods-pic>a', '.sl_price1>span');
};

//gap
pagerParser[73] = function (document) {
  return pagerParser.template('.categoryProductItem', '.product-image>a', '.special-price .price>.price');
};

//5lux
pagerParser[75] = function (document) {
  var items = document.querySelectorAll('.stblock_body>dl>dd');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].querySelector('a').href;
      var price = items[i].querySelector('.coc2a67d').childNodes[0].textContent;
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};
// tmall
pagerParser[83] = function (document) {
  var items = document.querySelectorAll('#J_ItemList div.product');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].querySelector('a.productImg').href;
      var price = items[i].querySelector('.productPrice em').textContent;
      var tle = items[i].querySelector('.productTitle a').textContent.trim();
      r.push({
        'url': href,
        'tle': tle,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};
//tiantian
pagerParser[84] = function (document) {
  return pagerParser.template('.rg_sl_list>ul>li', '.list1', '.list3>span');
};

//xijie
pagerParser[85] = function (document) {
  return pagerParser.template('.goods_one', '.com_link', '.xj_list_pro_text2>.xj_list_pro_text2');
};

//jumei
pagerParser[86] = function (document) {
  return pagerParser.template('.products_wrap>ul>li', '.s_l_pic>a', '.search_list_price>span');
};

//yougou
pagerParser[93] = function (document) {
  return pagerParser.template('#proList>li', 'a', '.price_sc>em>i');
};

//111
pagerParser[94] = function (document) {
  setTimeout(function () {
    document._links = pagerParser.template('#itemSearchList>li', ':not(.none) a', ':not(.none) .price>span:first-child');
  }, pagerParser.timeout);
  return {
    wait: true
  };
};

//jianke
pagerParser[97] = function (document) {
  return pagerParser.template('.pro-con>li', 'a.pro-check', '.pro-botxt span');
};

//muyingzhijia
pagerParser[98] = function (document) {
  setTimeout(function () {
    document._links = pagerParser.template('.goods_list>li', 'a', 'span[data-type="price"]');
  }, pagerParser.timeout);
  return {
    wait: true
  };
};

//lingshi
pagerParser[99] = function (document) {
  var items = document.querySelectorAll('.snack_wrap>ul>li');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].querySelector('a').href;
      var price = items[i].querySelector('.price').childNodes[0].textContent;
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//banggo
pagerParser[100] = function (document) {
  return pagerParser.template('.mbshop_listPdCon', 'a', '.mbshop_listPdText>b');
};

//yesmywine
pagerParser[101] = function (document) {
  return pagerParser.template('.piclist>li', 'a', '.price strong');
};

//jiumei
pagerParser[102] = function (document) {
  return pagerParser.template('.gn_m_list_a', 'a', '.gn_m_list_price .b>span');
};

//jiuxian
pagerParser[103] = function (document) {
  return pagerParser.template('.proListSearch>ul>li', 'a', '.price');
};

//gjw
pagerParser[108] = function (document) {
  return pagerParser.template('.main_wrap>.min_in', '.productImg-wrap a', '.productPrice>em>strong');
};

//okhqb
pagerParser[109] = function (document) {
  return pagerParser.template('.result_list_container>ul>li', '.thumb_picture a', '.price_i>em');
};

//bookuu
pagerParser[110] = function (document) {
  return pagerParser.template('.books-list', 'a', '.ll>b');
};

//d1
pagerParser[115] = function (document) {
  return pagerParser.template('#r_list .libox', '.g_simg>a', '.g_mprice font');
};

//rayi
pagerParser[120] = function (document) {
  return pagerParser.template('.GoodsSearchWrap>table>tbody>tr>td', '.goodpic>a', '.price1');
};

//paixie
pagerParser[122] = function (document) {
  return pagerParser.template('.prolist>li', '.probox>a', '.info>b');
};
//taobao
pagerParser[123] = function (document) {
  let items = document.querySelectorAll('#mainsrp-itemlist div.items>.item');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var id = items[i].querySelector('.pic-box a.pic-link').getAttribute('data-nid');
      var href = `https://item.taobao.com/item.htm?id=${id}`;
      var price = items[i].querySelector('.ctx-box .price').textContent;
      var tle = items[i].querySelector('.ctx-box .title .J_ClickStat').textContent.trim();
      var uniqPid = $(items[i]).find('.similars a[href]:contains(同款)').attr('href');
      if (uniqPid) uniqPid = uniqPid.match(/&uniqpid=([0-9-]+)/)[1];
      r.push({
        'nid': id,
        'uniqpid': uniqPid || '',
        'url': href,
        'tle': tle,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};
//homevv
pagerParser[124] = function (document) {
  return pagerParser.template('.list_pic>.item', '.goods-pic a', '.sale-price');
};

//jxdyf
pagerParser[125] = function (document) {
  return pagerParser.template('#searchPList>ul>li', '.pImg a', '.price');
};

//sfbest
pagerParser[126] = function (document) {
  return pagerParser.template('.list-all>li', '.pic a', '.price strong');
};

//benlai
pagerParser[127] = function (document) {
  return pagerParser.template('#Content>dl', '.pic a', 'p.price');
};

//tuotuo
pagerParser[128] = function (document) {
  return pagerParser.template('#list_goodslist>li', '.pro_img>a', '.pro_price>b');
};

//vip
pagerParser[129] = function (document) {
  return pagerParser.template('#J_searchCatList>.goods-list-item', '.goods-image>a', '.price');
};

//vmall
pagerParser[134] = function (document) {
  return pagerParser.template('.pro-list>ul>li', 'a', '.p-price>b');
};

//lenovo
pagerParser[135] = function (document) {
  return pagerParser.template('#productList>li', '.search_pro_img', '.search_pro_price');
};

//zm7
pagerParser[138] = function (document) {
  return pagerParser.template('.goods_table_list>ul>li', '.g_t_list_m>a', '.goods_table_list .fl');
};

//zhiwo
pagerParser[140] = function (document) {
  return pagerParser.template('#bfd_show_fu>li', '.goods_img a', '.price_day');
};

//j1
pagerParser[141] = function (document) {
  return pagerParser.template('.listsearch-one', '.listsearch-ztimg a', '.listsearch-price>span');
};

//wangjiu
pagerParser[142] = function (document) {
  return pagerParser.template('.shop_list_item>ul>li', '.p_i a', '.p_m');
};

//lamiu
pagerParser[146] = function (document) {
  return pagerParser.template('#gallery_show ul>li', '.goods-pic a', 'ins.price');
};

//aimer
pagerParser[147] = function (document) {
  return pagerParser.template('.infoShop>li', 'div>a', 'span.track');
};

//wbiao
pagerParser[153] = function (document) {
  return pagerParser.template('#search_goods_list>ul>li', 'dd:not([class])>a', 'dt .s_price');
};

//handu
pagerParser[154] = function (document) {
  return pagerParser.template('#tile li', '.boxCont>a', '.price');
};

//ehaier
pagerParser[155] = function (document) {
  return pagerParser.template('.prolist-box>ul>li', 'a', '.strong-price');
};

//secoo
pagerParser[156] = function (document) {
  return pagerParser.template('.commodity-list>dl', 'a', '.dl_price>span');
};

//camel
pagerParser[157] = function (document) {
  return pagerParser.template('.pro_list_ul>li', 'a', '.salePrice');
};

//masamaso
pagerParser[158] = function (document) {
  return pagerParser.template('.in_masa:not([id]) ul>li', '.in_masa_up a', '.in_price>em>span:nth-of-type(2)');
};

//xifuquan
pagerParser[164] = function (document) {
  return pagerParser.template('.ullistcont>li', 'a', 'strong');
};

//mi
pagerParser[167] = function (document) {
  var items = document.querySelectorAll('.goods-list>div');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].querySelector('a').href;
      var price = items[i].querySelector('.price').childNodes[0].textContent;
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//lemall
pagerParser[168] = function (document) {
  var items = document.querySelectorAll('.result_list>li');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].querySelector('.pro_img a').getAttribute('data-url');
      var price = items[i].querySelector('.pro_price>span.red').textContent.trim();
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
};

// //meituan
// pagerParser[172] = function (document) {
//   return pagerParser.template('.item', 'a', '.price>strong')
// }

//yiguo
pagerParser[174] = function (document) {
  setTimeout(function () {
    document._links = pagerParser.template('.product_item', '.p_img a', '.price>strong');
  }, pagerParser.timeout);
  return {
    wait: true
  };
};

//fruitday
pagerParser[178] = function (document) {
  return pagerParser.template('.f-list .leftpart>ul>li', 'a', '.s-info>.s-unit');
};

//feiniu
pagerParser[180] = function (document) {
  return pagerParser.template('.u-m-goods>ul>li', '.p-img.J_p_img a', '.J_now_price');
};

//zuipin
pagerParser[182] = function (document) {
  return pagerParser.template('.tea_products .products_box', '.pro_img>span>a', '.zp_price>span');
};

//yohobuy
pagerParser[184] = function (document) {
  return pagerParser.template('.goods-container>div.good-info', 'a[href*="item"]', '.price>span:last-child');
};

//bestkeep
pagerParser[188] = function (document) {
  return pagerParser.template('.listTable>li', 'a', '.goods-price');
};

//mf910
pagerParser[194] = function (document) {
  return pagerParser.template('#J_goodsList>ul>li', 'a', '.p-price>strong>i');
};

//miyabaobei
pagerParser[195] = function (document) {
  return pagerParser.template('.Lcon.content>div.block', 'a', 'span[id^="sale_price"]');
};

//ule
pagerParser[196] = function (document) {
  setTimeout(function () {
    document._links = pagerParser.template('.goodsListBlock>ul>li', '.img>a', '.ulePrice>strong');
  }, pagerParser.timeout);
  return {
    wait: true
  };
};

//minshengec
pagerParser[197] = function (document) {
  return pagerParser.template('.itemList>div.product', 'a', 'em[name="price"]');
};

//wangfujing
// pagerParser[198] = function (document) {
//   return pagerParser.template('.itemList>li', 'a[id^="catalogEntry_img"]', 'dl .nprice')
// }

//meilele
pagerParser[201] = function (document) {
  return pagerParser.template('.list-goods:first-child>li', 'a', '.JS_async_price');
};

//supuy
pagerParser[210] = function (document) {
  return pagerParser.template('#ul_content>li', '.list_good_img>a', '.list_good_price_new');
};

//lining
pagerParser[213] = function (document) {
  return pagerParser.template('.cate_search_content .selItem', 'a', '.hprice.price');
};

//rrs
pagerParser[217] = function (document) {
  return pagerParser.template('.product_list>li', 'a', 'div>b');
};

//coocaa
pagerParser[218] = function (document) {
  var items = document.querySelectorAll('#tv_list>ul>li');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].querySelector('a').href.replace('get', 'goodsDetailBuy');
      var price = items[i].querySelector('.product_show_right_price').textContent;
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//lifevc
pagerParser[220] = function (document) {
  return pagerParser.template('.productPic', 'a.proPic', '.productPrice');
};

//kzj365
pagerParser[222] = function (document) {
  var items = document.querySelectorAll('.goodsItem>li');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].querySelector('a').href;
      var price = items[i].querySelector('.price').childNodes[0].textContent;
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//kaola
pagerParser[223] = function (document) {
  return pagerParser.template('#result>li', 'a', '.cur');
};

//ymatou
pagerParser[224] = function (document) {
  return pagerParser.template('#product-list >li', 'a.product-img', '.price');
};

//metao
pagerParser[225] = function (document) {
  if (document.querySelectorAll('.special-ul').length) {
    return pagerParser.template('.special-ul>li', 'a', '.s-product-sale-price');
  }
  var items = document.querySelectorAll('.prod-list.prod-cols3-list:first-child>li');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].querySelector('a').href;
      var price = items[i].querySelector('.price').childNodes[0].textContent;
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//kjt
pagerParser[226] = function (document) {
  return pagerParser.template('.prolist.listhover>li', '.img a', '.price.price16');
};

//logitech
pagerParser[227] = function (document) {
  return pagerParser.template('.productList-list-ul>li', '.p-img a', '.price>strong');
};

//amazon_us
pagerParser[228] = pagerParser[1];

//amazon_jp
pagerParser[229] = pagerParser[1];

//xiji
pagerParser[232] = function (document) {
  return pagerParser.template('.gallery-grid ul>li', 'a', '.goods-price ins.price');
};

//nike
pagerParser[233] = function (document) {
  return pagerParser.template('.grid-item', '.grid-item-image a', '.prices>.local');
};

//360kad
pagerParser[234] = function (document) {
  return pagerParser.template('.Productlist>li', '.pic>a', '.pri');
};

//lbxcn
pagerParser[235] = function (document) {
  return pagerParser.template('.search_cholist>ul>li', '.ucol_p_img>a', '.ucol_p_wod span:nth-child(1)');
};

//meici
pagerParser[236] = function (document) {
  return pagerParser.template('#product-list>ul>li', 'a', '.product_p .c_purple, .product_p .product_active');
};

//beibei
pagerParser[237] = function (document) {
  var items = document.querySelectorAll('.view-ItemListItem');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].querySelector('a').href;
      var price = [items[i].querySelector('.price-int').textContent.trim(), items[i].querySelector('.price-decimal').textContent.trim()].join('');
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//6pm
pagerParser[238] = function (document) {
  // return pagerParser.template('#searchResults>a','','.price-6pm')
  var items = document.querySelectorAll('#searchResults>a');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].href;
      var price = items[i].querySelector('.price-6pm').textContent.trim();
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//shopbop
pagerParser[241] = function (document) {
  return pagerParser.template('.product-list>ul>li', 'a.photo', '.retail-price');
};

//amazon_de
pagerParser[246] = function (document) {
  var r = [];
  var items = document.querySelectorAll('.s-result-item');
  for (var i = 0; i < items.length; ++i) {
    try {
      var img = items[i].querySelector('.s-access-image');
      while (!img.parentNode.href && img.parentNode != document.body) {
        img = img.parentNode;
      }
      if (img.parentNode == document.body) {
        continue;
      }
      var href = img.parentNode.href;
      var price = items[i].querySelector('div>.a-spacing-mini>.a-spacing-none>a>span');
      if (!price) {
        price = items[i].querySelector('span.a-color-price');
      }
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price.textContent, ',', '.', 246),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//ashford
pagerParser[247] = function (document) {
  return pagerParser.template('.automaticScrollProductsList>div', 'a', '.product-price');
};

//lookfantastic
pagerParser[248] = function (document) {
  return pagerParser.template('#divSearchResults>div>div', '.product-image>a:first-child', '.item_price');
};

//vsigo
pagerParser[252] = function (document) {
  return pagerParser.template('.search_lst>ul>li', '.Npro_img>a', '.sigoprice');
};

//100yue
pagerParser[256] = function (document) {
  return pagerParser.template('.cont-gd>li', 'a', '.new-price>span:first-child');
};

//amazon_uk
pagerParser[266] = function (document) {
  return pagerParser.template('#resultsCol ul.s-result-list>li', 'a.a-link-normal', '.a-color-price');
};

//daling
pagerParser[267] = function (document) {
  return pagerParser.template('.searchlist>ul>li', 'a', '.now-price');
};

//fengqu
pagerParser[268] = function (document) {
  return pagerParser.template('.product-1-list>li', 'a', 'strong');
};

//mei
pagerParser[269] = function (document) {
  return pagerParser.template('#contentDiv>div.listproduct', 'a', 'span.red');
};

//showjoy
pagerParser[270] = function (document) {
  return pagerParser.template('.widget-brick-item', '.brick-pic', '.price');
};

//ocj
pagerParser[271] = function (document) {
  if (document.querySelectorAll('.pv_shop_list_content.normal_list').length) {
    return pagerParser.template('.pv_shop_list_content>div.item1', 'a', '.price>em');
  }
  return pagerParser.template('.item1', '.image a', '.price>em');
};

//sundan
pagerParser[272] = function (document) {
  return pagerParser.template('#gallery_show ul>li', '.goods-pic>a', '.price');
};

//easeeyes
pagerParser[273] = function (document) {
  return pagerParser.template('.itemSearchResult.box-items-result>ul>li', '.images a', '.price>strong');
};

//yunhou
pagerParser[274] = function (document) {
  return pagerParser.template('.goods-lists>div', 'a.goods-img', '.p-normal');
};

//haituncun
pagerParser[275] = function (document) {
  return pagerParser.template('.products-grid>li', 'a.product-image', '.regular-price');
};

//walmart
pagerParser[276] = function (document) {
  return pagerParser.template('#tile-container>div', '.js-product-title', '.price-display');
};

//vmei
pagerParser[277] = function (document) {
  return pagerParser.template('.product_list.product_list_v2>ul>li', '.pic', '.price>strong');
};

//51din
pagerParser[279] = function (document) {
  return pagerParser.template('#result>ul', 'a.img_figure', '.boutique_price');
};

//aidai
pagerParser[280] = function (document) {
  var items = document.querySelectorAll('#proNum>li');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].querySelector('a[href^="/Pro"]').href;
      var price = items[i].querySelector('.proprice');
      price = price.childNodes[price.childNodes.length - 1].textContent;
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//boqii
pagerParser[281] = function (document) {
  return pagerParser.template('.product_list>li', 'a', 'strong[id^="priceat"]');
};

//spider
pagerParser[284] = function (document) {
  if (document.querySelectorAll('.rsltAll').length) {
    return pagerParser.template('.rsltAll>ul>li', 'a', '.red2');
  }
  if (document.querySelectorAll('.produclb_cp1').length) {
    return pagerParser.template('.produclb_cp>.produclb_cp1', 'a', '.font14_red');
  }
  //http://www.spider.com.cn/461970-323-100120.html
  return pagerParser.template('.prstgdlist>li', 'a', '.f18');
};

//jiae
pagerParser[286] = function (document) {
  return pagerParser.template('.j-item-list-li', '.a-pic', '.item-price');
};

//zazhipu
pagerParser[287] = function (document) {
  return pagerParser.template('#itemList>li', 'a', '.mod_price:first-child');
};

//xgdq
pagerParser[288] = function (document) {
  return pagerParser.template('#gallery_show ul>li', 'a', '.goods-price ins');
};

//xtep
pagerParser[289] = function (document) {
  var doc = document.querySelector('iframe#m').contentWindow.document;
  var items = doc.querySelectorAll('.pro_list>li');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].querySelector('.pro_img').href;
      var price = items[i].querySelector('.pro_price>span>b').textContent.trim();
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//midea
pagerParser[290] = function (document) {
  return pagerParser.template('.hproduct', 'a', '.price>em');
};

//staples
pagerParser[291] = function (document) {
  return pagerParser.template('.cg_mainContent>div.cg_pro', 'a', '.pro_price>strong');
};

//efotile
pagerParser[292] = function (document) {
  return pagerParser.template('.result>ul>li', 'a', '.item-price');
};

//lovo
pagerParser[294] = function (document) {
  return pagerParser.template('.prolistitems', '.ad-image-wrapper a', 'big.jiacu');
};

//hua
pagerParser[295] = function (document) {
  return pagerParser.template('.grid-item', '.img-box a', '.price-num');
};

//tuhu
pagerParser[299] = function (document) {
  return pagerParser.template('.List tr', 'a.DisplayName', '.price>strong');
};

//taqu
pagerParser[313] = function (document) {
  return pagerParser.template('.p-list>li.p-item', '.p-pic a', '.p-price-current');
};

//bl
pagerParser[347] = function (document) {
  return pagerParser.template('.pro-class>li', '.pro-img>a', '.money-fl');
};

//bestinfoods
pagerParser[348] = function (document) {
  return pagerParser.template('.items-gallery', 'a', '.price1');
};

//163
pagerParser[349] = function (document) {
  return pagerParser.template('#j-searchList>li', '.hd>a', '.price>span');
};

//guojimami
pagerParser[351] = function (document) {
  return pagerParser.template('.gmg', 'a', '.shop_prices');
};

//baiyangwang
pagerParser[352] = function (document) {
  return pagerParser.template('.g-d-ul>li', '.pic', 'span[id^="JgoodsPrice"]');
};

//tao3c
/*
 pagerParser[111] = function(document) {
 return pagerParser.merge(
 pagerParser.slice.call(document.querySelectorAll('#plist a>img'))
 .map(function(v){ return v.parentNode.href }) ,
 pagerParser.slice.call(document.querySelectorAll('#plist .pd4>span'))
 .map(function(v) {return v.textContent })
 )
 }
 */

//feifei
pagerParser[181] = function (document) {
  var items = document.querySelectorAll('.sku-ul>li');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].querySelector('a').href;
      var price = items[i].querySelector('.wsl-price.j-wsl-price').childNodes[0].textContent;
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//purcotton
pagerParser[364] = function (document) {
  var items = document.querySelectorAll('#productResultList>li');
  var r = [];
  var MallPath = 'http://www.purcotton.com';
  for (var i = 0; i < items.length; ++i) {
    try {
      var a = items[i].querySelector('a[onclick^="toDetail"]');
      var prodNo = a.getAttribute('onclick').match(/[\d-]+/)[0];
      var number = prodNo.substr(prodNo.length - 3);
      var href = MallPath + "/detail/" + number + "/" + prodNo + ".html";
      var price = items[i].querySelector('.aprice').textContent;
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//amazon_fr
pagerParser[365] = function (document) {
  var items = document.querySelectorAll('#s-results-list-atf>li');
  var r = [];
  for (var i = 0; i < items.length; ++i) {
    try {
      var href = items[i].querySelector('.a-link-normal').href;
      var price = items[i].querySelector('.a-color-price').textContent.trim();
      r.push({
        'url': href,
        'price': pagerParser.priceFormatter(price, ',', '.'),
        'crc32': ''
      });
    } catch (e) {
      continue;
    }
  }
  return r;
};

//amazon_ca
pagerParser[366] = pagerParser[1];

//wstx
pagerParser[367] = function (document) {
  return pagerParser.template('.goods-item', '.figure-img>a', '.price>b');
};

//hisense
pagerParser[368] = function (document) {
  return pagerParser.template('.product-list>ul>li', 'a', '.price>.red');
};

//zhongjiu
pagerParser[369] = function (document) {
  return pagerParser.template('.list-h>li', '.p-img>a', '.p-price>strong');
};

//kaluli
pagerParser[370] = function (document) {
  return pagerParser.template('.p-l-grid>ul>li', 'a', '.price .red');
};

//to8to
pagerParser[371] = function (document) {
  return pagerParser.template('#goodsList:first-child>li', 'a', '.cur_pric .pri_msg .f_arial');
};

//opposhop
pagerParser[372] = function (document) {
  return pagerParser.template('.grid-special>.box', 'a', '.box-price strong');
};

//baobeigezi
pagerParser[373] = function (document) {
  return pagerParser.template('#main_list > .pro_item', '.pro_infor_img', '.pro_price');
};

//yao123
pagerParser[374] = function (document) {
  return pagerParser.template('.product-list>ul>li', '.items>a:nth-child(1)', '.opr');
};

//gionee
pagerParser[376] = function (document) {
  return pagerParser.template('ul#JmobileList>li', 'a.ui_pimg', '.ui_pprice');
};

//suanjuzi
pagerParser[377] = function (document) {
  return pagerParser.template('#gallery_show ul>li', '.goods-pic>a', 'ins.price');
};

//aomygod
pagerParser[378] = function (document) {
  return pagerParser.template('.goods-lists>div', 'a.goods-img', '.goods-price>.p-normal');
};

//luolai
pagerParser[379] = function (document) {
  return pagerParser.template('.gallery-grid>ul>li', '.goods-pic>a', 'ins.price');
};

//vivo
pagerParser[380] = function (document) {
  return pagerParser.template('.prod-list>li', 'a', 'p');
};

//dixintong
pagerParser[381] = function (document) {
  return pagerParser.template('.GoodsList>li', 'a', '.goodsprice>span');
};

//coolpad
pagerParser[382] = function (document) {
  return pagerParser.template('.goods-ul-box li', 'a', '.price');
};

//skg
pagerParser[383] = function (document) {
  return pagerParser.template('.goods_list.clearfix>li', 'a.gimg', 'p.gprice');
};

//aolaigo
pagerParser[385] = function (document) {
  return pagerParser.template('.pro>ul>li', 'dl>dd:nth-child(1)>a', '.valc-n>span:nth-child(2)');
};
module.exports = pagerParser;

/***/ }),

/***/ 25728:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(90937);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("78bdec26", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 25745:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var store = __webpack_require__(77629);

module.exports = function (key, value) {
  return store[key] || (store[key] = value || {});
};


/***/ }),

/***/ 25756:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-row {\n  display: flex;\n  flex-direction: row;\n}\n.gwd-inline-row {\n  display: inline-flex;\n  flex-direction: row;\n}\n.gwd-column {\n  display: flex;\n  flex-direction: column;\n}\n.gwd-inline-column {\n  display: inline-flex;\n  flex-direction: column;\n}\n.gwd-align {\n  align-content: center;\n  align-items: center;\n}\n.gwd-jcc {\n  justify-content: center;\n}\n.gwd-jic {\n  justify-items: center;\n}\n.gwd-button {\n  outline: none;\n  border: none;\n}\n.bjg-bar-button {\n  font-size: 0;\n}\n.bjg-hover-bg {\n  background: #fffbef;\n}\n.bjg-bar-button:hover {\n  background: #fffbef;\n  cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window {\n  display: block;\n}\n.mainbar-fold .bjg-bar-button,\n.mainbar-fold #top_coupon_btn,\n.mainbar-fold .rinfo-btn,\n.mainbar-fold .gwd-bottom-tmall {\n  display: none!important;\n}\n.gwd-font12 {\n  font-size: 12px;\n}\n.gwd-font14 {\n  font-size: 14px;\n}\n.gwd-red {\n  color: #ff3532;\n}\n.gwd-red-bg {\n  background: #ff3532;\n}\n.gwd-hui333 {\n  color: #333333;\n}\n.gwd-hui999 {\n  color: #999999;\n}\n.gwd-font10 {\n  font-size: 12px;\n  transform: scale(0.8333);\n  transform-origin: bottom center;\n}\n.gwd-font11 {\n  font-size: 12px;\n  transform: scale(0.91666);\n  transform-origin: bottom center;\n}\n.gwd-font9 {\n  font-size: 12px;\n  transform: scale(0.75);\n  transform-origin: bottom center;\n}\n.gwd-hoverable:hover {\n  background: #edf1f2;\n}\n.right-info > * {\n  border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit:hover {\n  color: #e03024 !important;\n}\n.gwd-button:hover {\n  filter: brightness(1.1);\n}\n.gwd-button {\n  padding-top: 1px;\n  padding-bottom: 1px;\n}\n.gwd-button:active {\n  filter: brightness(0.9);\n}\n.gwd-fadeout-5s {\n  opacity: 0;\n  transition: opacity 5s;\n}\n.gwd-scrollbar::-webkit-scrollbar {\n  width: 6px;\n  border-radius: 17px;\n}\n.gwd-scrollbar::-webkit-scrollbar-thumb {\n  border-radius: 17px;\n  background: #999;\n}\n#gwdang_main,\n.gwdang-main,\n.bjgext-detail {\n  font-size: 12px;\n}\n#gwdang_main button,\n.gwdang-main button,\n.bjgext-detail button {\n  text-align: center;\n}\n.gwd-width-100 {\n  width: 100%;\n}\n.gwd-overlay {\n  font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n  font-size: 0;\n  position: fixed;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  background: rgba(0, 0, 0, 0.35);\n  z-index: 999999999;\n}\n.gwd-font-pfm {\n  font-family: 'PingFangSC-Medium';\n  font-weight: normal!important;\n}\n@font-face {\n  font-family: 'PingFangSC-Medium';\n  src: local('PingFangSC-Medium');\n}\n.gwd-font-pfm {\n  font-family: local('PingFangSC-Medium'), system-ui;\n  font-weight: bold;\n}\n#gwd_minibar svg,\n.gwdang-main svg,\n#bjgext_mb_bg svg,\n#bjgext_mainbar svg {\n  fill: transparent;\n}\n.gwd-common-font {\n  font-family: 'PingFang SC', 'Microsoft YaHei', '\\5FAE\\8F6F\\96C5\\9ED1', 'Hiragino Sans GB', 'WenQuanYi Micro Hei';\n}\n.gwd-hidden {\n  display: none!important;\n}\n.gwd-topbar-right {\n  /*display: flex;*/\n  flex-direction: column;\n  justify-content: flex-end;\n  flex-wrap: nowrap;\n}\n#gwd_setting_div .gwd-hover-helper {\n  content: '';\n  position: absolute;\n  top: -10px;\n  left: 0;\n  right: 0;\n  height: 10px;\n}\n#gwd_setting_div {\n  cursor: pointer;\n  display: none;\n}\n#gwd_setting_div a:hover {\n  color: #48befe !important;\n}\n#gwdang-banner-ad:hover {\n  background: none;\n}\n.gwd-topbar-logo:hover #gwd_setting_div {\n  display: block;\n}\n#gwdang-mini a:hover #gwd_setting_div {\n  display: block;\n}\n#gwdang-main-nav a.gwd_logo {\n  height: 30px!important;\n}\n", ""]);

// exports


/***/ }),

/***/ 25807:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ JdRankList)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/JdRankList.vue?vue&type=template&id=51dc1e02&scoped=true
var JdRankListvue_type_template_id_51dc1e02_scoped_true = __webpack_require__(28582);
;// ./src/standard/module/components/JdRankList.vue?vue&type=template&id=51dc1e02&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/JdRankList.vue?vue&type=script&lang=js
var JdRankListvue_type_script_lang_js = __webpack_require__(77049);
;// ./src/standard/module/components/JdRankList.vue?vue&type=script&lang=js
 /* harmony default export */ const components_JdRankListvue_type_script_lang_js = (JdRankListvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/JdRankList.vue?vue&type=style&index=0&id=51dc1e02&prod&scoped=true&lang=less
var JdRankListvue_type_style_index_0_id_51dc1e02_prod_scoped_true_lang_less = __webpack_require__(40834);
;// ./src/standard/module/components/JdRankList.vue?vue&type=style&index=0&id=51dc1e02&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/JdRankList.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_JdRankListvue_type_script_lang_js,
  JdRankListvue_type_template_id_51dc1e02_scoped_true/* render */.XX,
  JdRankListvue_type_template_id_51dc1e02_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "51dc1e02",
  null
  
)

/* harmony default export */ const JdRankList = (component.exports);

/***/ }),

/***/ 25822:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

const Mode = __webpack_require__(30208)

function ByteData (data) {
  this.mode = Mode.BYTE
  if (typeof (data) === 'string') {
    this.data = new TextEncoder().encode(data)
  } else {
    this.data = new Uint8Array(data)
  }
}

ByteData.getBitsLength = function getBitsLength (length) {
  return length * 8
}

ByteData.prototype.getLength = function getLength () {
  return this.data.length
}

ByteData.prototype.getBitsLength = function getBitsLength () {
  return ByteData.getBitsLength(this.data.length)
}

ByteData.prototype.write = function (bitBuffer) {
  for (let i = 0, l = this.data.length; i < l; i++) {
    bitBuffer.put(this.data[i], 8)
  }
}

module.exports = ByteData


/***/ }),

/***/ 26133:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

module.exports.compile = function(template) {
  if (typeof template === 'function') {
    return template
  }
  return function(options) {
    var el = document.createElement('DIV')

    // let cmp = new Vue({
    //   el: el,
    //   template: template,
    //   data: options
    // })

    el.class = 'fake'
    el.innerHTML = template
    __webpack_require__(7129).log('bad template', template)
    return el
  }
}

/***/ }),

/***/ 26152:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


const getTransInfo = (name, data, str) => {
  for (let i = 0; i < data.length; i++) {
    if (data[i].num_iid) {
      data[i].oldUrl = data[i].url;
      // let type = data[i].type ? ('&type=' + data[i].type) : '';
      data[i].url = `${G.u_server}/redirect/tao?id=${data[i].num_iid}&source=${data[i].source}&from_device=${G.from_device}`;
    }
  }
};
module.exports.init = (name, data, str) => {
  if (!data || !(data instanceof Array) || G.aliSite) return;
  str = str || '';
  getTransInfo(name, data, str);
};

/***/ }),

/***/ 26198:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var toLength = __webpack_require__(18014);

// `LengthOfArrayLike` abstract operation
// https://tc39.es/ecma262/#sec-lengthofarraylike
module.exports = function (obj) {
  return toLength(obj.length);
};


/***/ }),

/***/ 26269:
/***/ ((module) => {

"use strict";

module.exports = {};


/***/ }),

/***/ 26312:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-procon[data-v-7b48957e] {\n  flex: 1;\n  border-radius: 16px;\n  padding: 20px 24px;\n}\n.gwd-procon.gwd-good[data-v-7b48957e] {\n  background: #f1faf4;\n}\n.gwd-procon.gwd-bad[data-v-7b48957e] {\n  background: #fff7f7;\n  margin-left: 32px;\n}\n.gwd-procon .gwd-tt[data-v-7b48957e] {\n  font-weight: bold;\n  font-size: 20px;\n  color: #111;\n}\n.gwd-procon .gwd-review-item-title[data-v-7b48957e] {\n  margin-top: 20px;\n  font-size: 18px;\n  font-weight: bold;\n}\n.gwd-procon .gwd-progress-bar[data-v-7b48957e] {\n  height: 12px;\n  background: #ebf2ed;\n  border-radius: 16px;\n  margin-top: 8px;\n}\n.gwd-procon .gwd-progress-bar .gwd-progress-bar-filled[data-v-7b48957e] {\n  height: 100%;\n  border-radius: 16px;\n}\n.gwd-procon .gwd-reviews[data-v-7b48957e] {\n  margin-top: 12px;\n  background: white;\n  border-radius: 8px;\n  font-size: 16px;\n  padding: 12px 16px;\n  color: #404547;\n}\n.gwd-procon .gwd-comment[data-v-7b48957e] {\n  margin-top: 8px;\n}\n.gwd-procon .gwd-comment.gwd-first[data-v-7b48957e] {\n  margin-top: 0;\n}\n.gwd-procon.gwd-good .gwd-review-item-title[data-v-7b48957e] {\n  color: #1e933c;\n}\n.gwd-procon.gwd-good .gwd-progress-bar-filled[data-v-7b48957e] {\n  background: #22c55e;\n}\n.gwd-procon.gwd-bad .gwd-review-item-title[data-v-7b48957e] {\n  color: #ef4444;\n}\n.gwd-procon.gwd-bad .gwd-progress-bar[data-v-7b48957e] {\n  background: #f7efef;\n}\n.gwd-procon.gwd-bad .gwd-progress-bar-filled[data-v-7b48957e] {\n  background: #ef4444;\n}\n.gwd-login-box[data-v-7b48957e] {\n  width: 558px;\n  height: 408px;\n  box-shadow: 0px 6px 16px 0px rgba(50, 85, 104, 0.1);\n  border-radius: 16px;\n}\n.gwd-login-box button[data-v-7b48957e] {\n  width: 364px;\n  height: 42px;\n  border: none;\n  background: #ff4449;\n  border-radius: 8px;\n  color: #fff;\n  cursor: pointer;\n  font-weight: bold;\n}\n", ""]);

// exports


/***/ }),

/***/ 26418:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-row[data-v-0e3edad3] {\n  display: flex;\n  flex-direction: row;\n}\n.gwd-inline-row[data-v-0e3edad3] {\n  display: inline-flex;\n  flex-direction: row;\n}\n.gwd-column[data-v-0e3edad3] {\n  display: flex;\n  flex-direction: column;\n}\n.gwd-inline-column[data-v-0e3edad3] {\n  display: inline-flex;\n  flex-direction: column;\n}\n.gwd-align[data-v-0e3edad3] {\n  align-content: center;\n  align-items: center;\n}\n.gwd-jcc[data-v-0e3edad3] {\n  justify-content: center;\n}\n.gwd-jic[data-v-0e3edad3] {\n  justify-items: center;\n}\n.gwd-button[data-v-0e3edad3] {\n  outline: none;\n  border: none;\n}\n.bjg-bar-button[data-v-0e3edad3] {\n  font-size: 0;\n}\n.bjg-hover-bg[data-v-0e3edad3] {\n  background: #fffbef;\n}\n.bjg-bar-button[data-v-0e3edad3]:hover {\n  background: #fffbef;\n  cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window[data-v-0e3edad3] {\n  display: block;\n}\n.mainbar-fold .bjg-bar-button[data-v-0e3edad3],\n.mainbar-fold #top_coupon_btn[data-v-0e3edad3],\n.mainbar-fold .rinfo-btn[data-v-0e3edad3],\n.mainbar-fold .gwd-bottom-tmall[data-v-0e3edad3] {\n  display: none!important;\n}\n.gwd-font12[data-v-0e3edad3] {\n  font-size: 12px;\n}\n.gwd-font14[data-v-0e3edad3] {\n  font-size: 14px;\n}\n.gwd-red[data-v-0e3edad3] {\n  color: #ff3532;\n}\n.gwd-red-bg[data-v-0e3edad3] {\n  background: #ff3532;\n}\n.gwd-hui333[data-v-0e3edad3] {\n  color: #333333;\n}\n.gwd-hui999[data-v-0e3edad3] {\n  color: #999999;\n}\n.gwd-font10[data-v-0e3edad3] {\n  font-size: 12px;\n  transform: scale(0.8333);\n  transform-origin: bottom center;\n}\n.gwd-font11[data-v-0e3edad3] {\n  font-size: 12px;\n  transform: scale(0.91666);\n  transform-origin: bottom center;\n}\n.gwd-font9[data-v-0e3edad3] {\n  font-size: 12px;\n  transform: scale(0.75);\n  transform-origin: bottom center;\n}\n.gwd-hoverable[data-v-0e3edad3]:hover {\n  background: #edf1f2;\n}\n.right-info > *[data-v-0e3edad3] {\n  border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit[data-v-0e3edad3]:hover {\n  color: #e03024 !important;\n}\n.gwd-button[data-v-0e3edad3]:hover {\n  filter: brightness(1.1);\n}\n.gwd-button[data-v-0e3edad3] {\n  padding-top: 1px;\n  padding-bottom: 1px;\n}\n.gwd-button[data-v-0e3edad3]:active {\n  filter: brightness(0.9);\n}\n.gwd-fadeout-5s[data-v-0e3edad3] {\n  opacity: 0;\n  transition: opacity 5s;\n}\n.gwd-scrollbar[data-v-0e3edad3]::-webkit-scrollbar {\n  width: 6px;\n  border-radius: 17px;\n}\n.gwd-scrollbar[data-v-0e3edad3]::-webkit-scrollbar-thumb {\n  border-radius: 17px;\n  background: #999;\n}\n#gwdang_main[data-v-0e3edad3],\n.gwdang-main[data-v-0e3edad3],\n.bjgext-detail[data-v-0e3edad3] {\n  font-size: 12px;\n}\n#gwdang_main button[data-v-0e3edad3],\n.gwdang-main button[data-v-0e3edad3],\n.bjgext-detail button[data-v-0e3edad3] {\n  text-align: center;\n}\n.gwd-width-100[data-v-0e3edad3] {\n  width: 100%;\n}\n.gwd-overlay[data-v-0e3edad3] {\n  font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n  font-size: 0;\n  position: fixed;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  background: rgba(0, 0, 0, 0.35);\n  z-index: 999999999;\n}\n.gwd-font-pfm[data-v-0e3edad3] {\n  font-family: 'PingFangSC-Medium';\n  font-weight: normal!important;\n}\n@font-face {\n  font-family: 'PingFangSC-Medium';\n  src: local('PingFangSC-Medium');\n}\n.gwd-font-pfm[data-v-0e3edad3] {\n  font-family: local('PingFangSC-Medium'), system-ui;\n  font-weight: bold;\n}\n#gwd_minibar svg[data-v-0e3edad3],\n.gwdang-main svg[data-v-0e3edad3],\n#bjgext_mb_bg svg[data-v-0e3edad3],\n#bjgext_mainbar svg[data-v-0e3edad3] {\n  fill: transparent;\n}\n.gwd-common-font[data-v-0e3edad3] {\n  font-family: 'PingFang SC', 'Microsoft YaHei', '\\5FAE\\8F6F\\96C5\\9ED1', 'Hiragino Sans GB', 'WenQuanYi Micro Hei';\n}\n.gwd-btn-submit[data-v-0e3edad3] {\n  border: none;\n  outline: none;\n  background: #48befe;\n  width: 128px;\n  height: 32px;\n  font-size: 14px;\n  color: white;\n  border-radius: 4px;\n  cursor: pointer;\n}\n.gwd-btn-del[data-v-0e3edad3] {\n  width: 60px;\n  height: 20px;\n  border-radius: 2px 2px 2px 2px;\n  opacity: 1;\n  border: 1px solid #E6E9EB;\n  color: #404547;\n  background: white;\n  position: relative;\n  box-sizing: border-box;\n}\n.gwd-btn-del[data-v-0e3edad3]:hover {\n  filter: brightness(1.05);\n  cursor: pointer;\n}\n.gwd-btn-del[data-v-0e3edad3]::before {\n  content: '';\n  position: absolute;\n  top: -1px;\n  left: -1px;\n  right: -1px;\n  bottom: -1px;\n  z-index: -1;\n  background: #e6e9eb;\n}\n.gwd-collection-detail[data-v-0e3edad3] {\n  font-family: 'Microsoft Yahei', tahoma, arial, 'Hiragino Sans GB', sans-serif;\n}\n.gwd-collection-detail .gwd-vline[data-v-0e3edad3] {\n  width: 0;\n  height: 197px;\n  border-right: 1px dashed #e6e9eb;\n  margin-left: 13px;\n  margin-right: 15px;\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option[data-v-0e3edad3] {\n  height: 24px;\n  white-space: nowrap;\n  position: relative;\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option span[data-v-0e3edad3] {\n  color: #404547;\n  font-size: 13px;\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option span.gwd-currency[data-v-0e3edad3] {\n  color: #48befe;\n  font-size: 16px;\n  position: absolute;\n  left: 82px;\n  top: 13px;\n  transform: translateY(-50%);\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option .gwd-remind-current[data-v-0e3edad3] {\n  margin-left: 8px;\n  width: 57px;\n}\n.gwd-remind-error-text[data-v-0e3edad3] {\n  color: #d80001;\n  position: absolute;\n  bottom: 61px;\n  left: 0;\n  right: 0;\n  text-align: center;\n}\n.gwd-remind-hint-text[data-v-0e3edad3] {\n  color: #48befe;\n  position: absolute;\n  bottom: 61px;\n  left: 0;\n  right: 0;\n  text-align: center;\n}\n.gwd-btn-del[data-v-0e3edad3] {\n  margin-right: 114px;\n  padding-left: 0;\n  padding-right: 0;\n}\n.gwd-btn-del span[data-v-0e3edad3] {\n  position: relative;\n  top: -1px;\n}\n.gwd-collection-detail[data-v-0e3edad3] {\n  padding: 16px;\n  padding-bottom: 0;\n}\n.gwd-collection-detail .gwd-container[data-v-0e3edad3] {\n  width: 305px;\n  height: 56px;\n  justify-content: center;\n  min-width: 319px;\n  border-radius: 4px;\n  background: #f8fcfe;\n  padding-left: 12px;\n  padding-right: 12px;\n  box-sizing: border-box;\n}\n.gwd-collection-detail .gwd-remind-error-text[data-v-0e3edad3] {\n  bottom: 44px;\n}\n.gwd-collection-detail .gwd-remind-hint-text[data-v-0e3edad3] {\n  bottom: 44px;\n}\n", ""]);

// exports


/***/ }),

/***/ 26431:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports["default"] = void 0;
__webpack_require__(3362);
const request = __webpack_require__(49388);
const extConsole = __webpack_require__(7129);
const fillPriceAndPromo = async list => {
  const dpIds = list.map(item => item.dpId).join(',');
  const priceInfos = (await request.post(`${G.server}/extension/ProductFilter?scene=img `, {
    dp_ids: dpIds
  }, true)).list;
  extConsole.log('priceInfos', priceInfos);
  return list.map(item => {
    const itemDpId = item.dpId.replace('-123', '-83');
    if (!item.price) {
      item.price = priceInfos[itemDpId] ? priceInfos[itemDpId].pri / 100 : '';
    }
    item.promos = priceInfos[itemDpId] && priceInfos[itemDpId].promo && priceInfos[itemDpId].promo.promo_list || [];
    return item;
  }).filter(x => x.price);
};
var _default = exports["default"] = fillPriceAndPromo;

/***/ }),

/***/ 26521:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64, ";

/***/ }),

/***/ 26552:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
__webpack_require__(72712);
__webpack_require__(26910);
__webpack_require__(3362);
var _NumLabel = _interopRequireDefault(__webpack_require__(98456));
var _default = exports.A = {
  components: {
    NumLabel: _NumLabel.default
  },
  props: ['keyString'],
  data: () => ({
    list: [],
    state: 'empty',
    show: false,
    skuOptions: []
  }),
  mounted() {
    G.getReview = () => this.getReviews().then(console.log);
  },
  methods: {
    getSkuImage(skuName) {
      const sku = this.skuOptions.find(x => x.name === skuName);
      return sku ? sku.img : '';
    },
    async getReviews() {
      const dpId = window.gwd_G.dp.dpId;
      let reviews = [];
      let page = 1,
        hasNext = true;
      do {
        const res = await (__webpack_require__(32892).get)(dpId, page);
        if (res.data && res.data.module && res.data.module.reviewVOList) {
          reviews = reviews.concat(res.data.module.reviewVOList);
          if (res.data.module.hasNext === 'false') {
            hasNext = false;
          }
        } else {
          hasNext = false;
        }
        page++;
        await new Promise(resolve => setTimeout(resolve, 100));
      } while (hasNext);
      return reviews;
    },
    async getReviewCount() {
      this.state = 'loading';
      const reviews = await this.getReviews();
      if (!reviews || reviews.length === 0) {
        (__webpack_require__(5300).log)('reviewCount', 'failed');
      } else {
        (__webpack_require__(5300).log)('reviewCount', 'success');
      }
      // console.log('评论', reviews.map(x => ({
      //   sku: x.skuText ? x.skuText[this.keyString]: '无sku',
      //   userNick: x.userNick,
      //   reviewWordContent: x.reviewWordContent
      // })))
      const counts = {};
      console.log('review data', reviews);
      reviews.forEach(review => {
        if (!review.skuText) {
          console.warn('评论没有skuText', review);
        }
        let sku = review.skuText ? review.skuText[this.keyString] : '其他';
        if (!review.skuText || !review.skuText[this.keyString]) {
          console.warn('评论没有skuText', review);
          sku = '其他';
        }
        if (!counts[sku]) {
          counts[sku] = 0;
        }
        counts[sku]++;
      });
      this.list = Object.keys(counts).map(sku => ({
        sku,
        count: counts[sku]
      })).sort((a, b) => b.count - a.count);
      this.loadSkuOptions();
      this.state = 'loaded';
    },
    loadSkuOptions() {
      const firstSku = document.querySelector(`.${G.aliPrefix}--skuItem--_68c0cae`);
      const skuOptions = $(firstSku).find(`.${G.aliPrefix}--valueItem--ee898cc0`).toArray().map(x => ({
        name: x.innerText,
        img: $(x).find('img').attr('src')
      }));
      this.skuOptions = skuOptions;
    },
    open() {
      (__webpack_require__(5300).log)('reviewCount', 'popupOpen');
      this.show = true;
      if (this.state === 'empty') {
        this.getReviewCount();
      }
    }
  },
  computed: {
    totalCount() {
      return this.list.reduce((acc, cur) => acc + cur.count, 0);
    }
  }
};

/***/ }),

/***/ 26787:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ MiniSameListvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ MiniSameList)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/MiniSameList.vue?vue&type=template&id=5aa6bd38&scoped=true
var MiniSameListvue_type_template_id_5aa6bd38_scoped_true = __webpack_require__(38752);
;// ./src/standard/module/components/MiniSameList.vue?vue&type=template&id=5aa6bd38&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/MiniSameList.vue?vue&type=script&lang=js
var MiniSameListvue_type_script_lang_js = __webpack_require__(8762);
;// ./src/standard/module/components/MiniSameList.vue?vue&type=script&lang=js
 /* harmony default export */ const components_MiniSameListvue_type_script_lang_js = (MiniSameListvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/MiniSameList.vue?vue&type=style&index=0&id=5aa6bd38&prod&scoped=true&lang=less
var MiniSameListvue_type_style_index_0_id_5aa6bd38_prod_scoped_true_lang_less = __webpack_require__(49122);
;// ./src/standard/module/components/MiniSameList.vue?vue&type=style&index=0&id=5aa6bd38&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(85072);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(97825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(77659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(55056);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(10540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(41113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/MiniSameList.vue?vue&type=style&index=1&id=5aa6bd38&prod&scoped=true&lang=css
var MiniSameListvue_type_style_index_1_id_5aa6bd38_prod_scoped_true_lang_css = __webpack_require__(50627);
var MiniSameListvue_type_style_index_1_id_5aa6bd38_prod_scoped_true_lang_css_default = /*#__PURE__*/__webpack_require__.n(MiniSameListvue_type_style_index_1_id_5aa6bd38_prod_scoped_true_lang_css);
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/MiniSameList.vue?vue&type=style&index=1&id=5aa6bd38&prod&scoped=true&lang=css

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());

      options.insert = insertBySelector_default().bind(null, "head");
    
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()((MiniSameListvue_type_style_index_1_id_5aa6bd38_prod_scoped_true_lang_css_default()), options);




       /* harmony default export */ const components_MiniSameListvue_type_style_index_1_id_5aa6bd38_prod_scoped_true_lang_css = ((MiniSameListvue_type_style_index_1_id_5aa6bd38_prod_scoped_true_lang_css_default()) && (MiniSameListvue_type_style_index_1_id_5aa6bd38_prod_scoped_true_lang_css_default()).locals ? (MiniSameListvue_type_style_index_1_id_5aa6bd38_prod_scoped_true_lang_css_default()).locals : undefined);

;// ./src/standard/module/components/MiniSameList.vue?vue&type=style&index=1&id=5aa6bd38&prod&scoped=true&lang=css

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/MiniSameList.vue?vue&type=style&index=2&id=5aa6bd38&prod&scoped=true&lang=less
var MiniSameListvue_type_style_index_2_id_5aa6bd38_prod_scoped_true_lang_less = __webpack_require__(90664);
;// ./src/standard/module/components/MiniSameList.vue?vue&type=style&index=2&id=5aa6bd38&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/MiniSameList.vue



;




/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_MiniSameListvue_type_script_lang_js,
  MiniSameListvue_type_template_id_5aa6bd38_scoped_true/* render */.XX,
  MiniSameListvue_type_template_id_5aa6bd38_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "5aa6bd38",
  null
  
)

/* harmony default export */ const MiniSameList = (component.exports);

/***/ }),

/***/ 26814:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ MiniBar)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/MiniBar.vue?vue&type=template&id=c45398e6
var MiniBarvue_type_template_id_c45398e6 = __webpack_require__(28264);
;// ./src/standard/module/components/MiniBar.vue?vue&type=template&id=c45398e6

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/MiniBar.vue?vue&type=script&lang=js
var MiniBarvue_type_script_lang_js = __webpack_require__(66477);
;// ./src/standard/module/components/MiniBar.vue?vue&type=script&lang=js
 /* harmony default export */ const components_MiniBarvue_type_script_lang_js = (MiniBarvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/MiniBar.vue?vue&type=style&index=0&id=c45398e6&prod&lang=less
var MiniBarvue_type_style_index_0_id_c45398e6_prod_lang_less = __webpack_require__(38469);
;// ./src/standard/module/components/MiniBar.vue?vue&type=style&index=0&id=c45398e6&prod&lang=less

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/MiniBar.vue?vue&type=style&index=1&id=c45398e6&prod&lang=less
var MiniBarvue_type_style_index_1_id_c45398e6_prod_lang_less = __webpack_require__(57422);
;// ./src/standard/module/components/MiniBar.vue?vue&type=style&index=1&id=c45398e6&prod&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/MiniBar.vue



;



/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_MiniBarvue_type_script_lang_js,
  MiniBarvue_type_template_id_c45398e6/* render */.XX,
  MiniBarvue_type_template_id_c45398e6/* staticRenderFns */.Yp,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ const MiniBar = (component.exports);

/***/ }),

/***/ 26902:
/***/ ((module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];
/* provided dependency */ var Highcharts = __webpack_require__(58174);
var __WEBPACK_AMD_DEFINE_RESULT__;

__webpack_require__(3362);
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  const extConsole = __webpack_require__(7129);
  if (['smzdm'].indexOf(G.site) > -1) {
    return;
  }

  /* TODO
  支持常用网站列表 支持定时查找 鼠标滚动查找
  浏览器兼容性检测
  */
  var exports = {};
  var $ = __webpack_require__(10333);
  const lang = __webpack_require__(20089);
  const langCfg = __webpack_require__(38276);
  var template = __webpack_require__(26133);
  var siteinfo = __webpack_require__(92834);
  const userData = __webpack_require__(74222);
  const countryConfig = __webpack_require__(22209);
  var parseprice = __webpack_require__(86421);
  const util = __webpack_require__(30888);
  var viewPriceTip = __webpack_require__(61517);
  if (G.lang == 'zh-tr') {
    viewPriceTip = __webpack_require__(12301);
  }
  var pageInfo = G.pageInfo;
  var smallTip, smallTip2;
  var tipDetail;
  var time, nowTipDom;
  var nowUrl,
    newId,
    nowPrice = 0;
  var tipResult = {};
  var blacklist = [/shangpin\.com/, /cfe\.m\.jd\.com/, /1688\.com/, /plogin\.m\.jd\.com/];
  let moneyInfo;
  let priceTle = {
    'pri-t1': lang.getString(langCfg, 'priceUp'),
    'pri-t0': lang.getString(langCfg, 'priceStable'),
    'pri-t-1': lang.getString(langCfg, 'priceDecrease'),
    'pri-t-2': lang.getString(langCfg, 'priceLowest')
  };
  let request = __webpack_require__(49388);
  function block() {
    var r = false;
    for (var i = blacklist.length - 1; i >= 0; i--) {
      r = blacklist[i].test(location.href);
      if (r) return r;
    }
    ;
  }

  //获取元素和页面顶部的距离
  var getTop = function (e) {
    var offset = e.offsetTop;
    if (e.offsetParent != null) offset += getTop(e.offsetParent);
    if (e.className.includes('mainPicAndDesc--')) {
      return offset - 16;
    }
    return offset;
  };

  //获取元素和页面左侧的距离
  var getLeft = function (e) {
    var offset = e.offsetLeft;
    if (e.offsetParent != null) offset += getLeft(e.offsetParent);
    if (G.aliSite && e.className.includes('search-content-col')) {
      return offset + 8;
    }
    return offset;
  };
  // const getWidth = (e) => {
  //   let w = $(e).width()
  //   if (!w)
  //     return getWidth(e.parentElement)
  //   return w;
  // }
  const getListPrice = () => {
    // 获取列表页鼠标所在当前商品价格
    let price = '0';
    switch (G.site) {
      case "360buy":
        price = $(nowTipDom).parent().parent().find('.p-price strong i').eq(0).text();
        if (!price) {
          price = nowPrice;
        }
        if (!price) {
          price = $(nowTipDom).parents('li').find('.p-price i').eq(0).text();
        }
        if (!price) {
          price = $(nowTipDom).parents('li').find('.more2_info_price_txt').eq(0).text();
        }
        break;
      case "suning":
        price = $(nowTipDom).parent().parent().parent().find('.res-info .price-box .def-price').eq(0).text();
        break;
      case "taobao":
        price = $(nowTipDom).parents('.search-content-col').find('[class^=innerPriceWrapper--]').text();
        if (!price) {
          price = $(nowTipDom).parents('.tb-pick-content-item').find('.price-value').eq(0).text();
        }
        break;
      case "tmall":
        price = $(nowTipDom).parent().parent().find('.productPrice>em').eq(0).text();
        break;
      case "amazon":
        price = $(nowTipDom).parent().parent().parent().parent().find('.a-spacing-mini span.s-price').eq(0).text();
        break;
      case "gome":
        price = $(nowTipDom).parent().parent().find('.item-price-info .item-price .price').eq(0).text();
        break;
      case "dangdang":
        price = $(nowTipDom).parent().find('.price .price_n').eq(0).text();
        break;
      case "vipshop":
        price = $(nowTipDom).parent().parent().parent().parent().find('.special-price .title').eq(0).text();
        if (!price) {
          price = $(nowTipDom).parent().parent().parent().parent().find('.goods-price-info .price').eq(0).text();
        }
        break;
      default:
        price = '0';
    }
    price = price.toString().replace(/[,￥¥]+/g, '');
    return price;
  };
  // 没有价格走势数据时候的伪造虚拟点
  const noTrendAddTrendData = data => {
    let site_name;
    let price = getListPrice();
    if (price === '0') return data;
    let date = util.getTimeNumber(new Date().getTime() - 86400000 * 179, "5");
    let date2 = util.getTimeNumber(new Date().getTime(), "5");
    let arr = [];
    date = new Date(date).getTime();
    date2 = new Date(date2).getTime();
    arr.push([date, Number(price)]);
    arr.push([date2, Number(price)]);
    site_name = data.site_name;
    let noTrendObj = {
      current_price: price,
      data: arr,
      max_price: price,
      min_price: price,
      min_stamp: date2 / 1000,
      name: site_name,
      start: date,
      price_status: 0
    };
    data.trend.store = [noTrendObj];
    data.taobaoNoTrend = true;
    data.start = date;
    return data;
  };
  let inited = false;
  exports.init = function () {
    if (inited) return;
    if (!inited) {
      inited = true;
    }
    // 获取价格符号
    moneyInfo = countryConfig.getMoneyInfo(G.logsite);
    let b = G.extBrand;
    if (G.from_device !== 'bijiago' && G.from_device !== 'biyibi') {
      let permanent = userData.get('permanent');
      if (permanent.setTip === '0') return;
    } else {
      b = 'bjgou';
    }
    if (block()) return;
    if (pageInfo.type === 1) {
      $('body').append(`<a id ="${b}_price_tip" class="${G.from_device}-ext" src="javascript:void(0)" target="_self">
          <div class="tip_btn_box">
            <em></em>
            <span>${G.lang === 'zh-tr' ? '比價' : '比价'}</span>
          </div>
          <div id="${b}_price_tip_detail"></div>
        </a>`);
      smallTip = $(`#${b}_price_tip`);
      smallTip2 = $(`#${b}_price_tip .tip_btn_box`);
      tipDetail = $(`#${b}_price_tip_detail`);
    }
    bindDpEvent();

    // if (location.hostname.includes('s.taobao.com')) {
    //   $('body').append(`
    //     <style> #mainsrp-header.m-header-fixed { display: block !important; } </style>
    //   `)
    // }
  };
  function bindDpEvent(area) {
    let isNewTb = false; // 是否是新版淘宝
    if (G.aliSite && $('#search-content-leftWrapper').length) {
      isNewTb = true;
    }
    const dpMouseOver = async function (e) {
      var img = e.target;
      if (G.site === '360buy' && img.tagName !== 'IMG' && $(img).parents('.more2_img')) {
        let elList = $(img).parents('.more2_img').find('img');
        if (elList.length) {
          img = elList[0];
        }
        if (img.tagName !== 'IMG') {
          img = $(e.target).parents('.more2_item').find('.more2_img img')[0];
        }
      }
      if (G.site === '360buy' && $(e.target).parents('.plugin_goodsCardWrapper').length) {
        const skuId = $(e.target).parents('.plugin_goodsCardWrapper').attr('data-sku');
        nowUrl = `https://item.jd.com/${skuId}.html`;
        img = $(e.target).find('img')[0];
      }
      if (img && img.tagName !== 'IMG' && !isNewTb) {
        img = $(img).find('img')[0];
      }
      if (!img) {
        img = $(e.target).parents('.item-link').find('.img-wrapper')[0];
      }
      if (!img) {
        img = $(e.target).parents('[class^=doubleCard--]').find('[class^=mainPicAndDesc--]')[0];
      }
      if (!img) {
        return;
      }
      if (img.parentElement.getAttribute('data-tip')) return false;
      if (img.tagName === 'A' || $(img).parents('.item-link').length || $(img).parents('._wrapper_e2ts5_1').length || img.className.includes('MainPic--mask') || img.className.includes('mainPicAndDesc--') || img.width > 50 && img.height > 50) {
        var parent = img.tagName === 'A' ? img : $(img).parents('a')[0];
        if (!parent) {
          parent = $(img).find('a')[0];
        }
        if (!parent && img) {
          parent = img.parentElement;
        }
        if (parent.href && parent.href.includes('.gwdang.com')) {
          return;
        }
        if (parent.href && parent.href.includes('store.taobao.com')) {
          return;
        }
        if ($(parent).parents('[class^=ShopInfo--shopInfo--]').length) {
          return;
        }
        nowTipDom = parent;
        if (G.site === 'taobao' && parent.tagName === 'A' && /^https?:\/\//.test(parent.href)) {
          let id = parent.getAttribute('data-nid');
          nowPrice = $(parent).parent().parent().parent().next().find('.price strong').text();
          addId(img);
          if (parent.href.match(/(?:item\.taobao\.com|detail\.tmall\.com)/)) {
            nowUrl = parent.href;
          } else {
            if (id) {
              nowUrl = `https://item.taobao.com/item.htm?id=${id}`;
            } else {
              nowUrl = parent.href;
              if (!nowUrl.includes('click.simba.taobao.com')) {
                return;
              }
            }
          }
          // 加载小标签
          let renderTarget = parent;
          let leaveTarget = parent;
          if (G.aliSite) {
            renderTarget = $(parent).parents('.search-content-col')[0];
            if (!renderTarget) {
              renderTarget = $(parent).find('.img-wrapper img')[0];
            }
            leaveTarget = $(e.target).parents('.search-content-col')[0];
            if (!leaveTarget) {
              leaveTarget = renderTarget;
            }
            if (!leaveTarget) {
              extConsole.warn('no leave target');
            }
            nowPrice = $(renderTarget).find('[class^=priceInt--]').text();
          }
          setTimeout(() => {
            renderTip(renderTarget);
            bindDpEvent2(leaveTarget);
          }, 0);
        } else if (isNewTb) {
          let parentEl = $(parent).parents('[class^=Card--doubleCard--]');
          if (!parentEl.length) {
            parentEl = $(parent).parents('[class^=Card--listCard--]');
          }
          if (parentEl.length) {
            nowPrice = parentEl.find('.Card--price').text();
            // let nowId = parentEl.find('.ww-light.ww-small').attr('data-item')
            // nowUrl = `https://item.taobao.com/item.htm?id=${nowId}`
            nowUrl = parentEl.parents('a').attr('href');
            addId(img);
            renderTip(parent);
            bindDpEvent2(parent);
          }
        } else if (parent.tagName === 'A' && /^https?:\/\//.test(parent.href) && siteinfo.isProductPage(parent.href)) {
          addId(img);
          nowUrl = makeUrl(img, parent.href);
          renderTip(parent);
          bindDpEvent2(parent);
          if (G.aliSite) {
            nowPrice = getListPrice();
          }
        } else if (parent.parentElement.tagName === 'A' && /^https?:\/\//.test(parent.parentElement.href) && siteinfo.isProductPage(parent.parentElement.href)) {
          /*amazon.com有一种情况是 a div img 的结构*/
          parent = parent.parentElement;
          addId(img);
          nowUrl = makeUrl(img, parent.href);
          renderTip(parent);
          bindDpEvent2(parent);
          if (G.aliSite) {
            nowPrice = getListPrice();
          }
        } else if ($(parent).parents('.plugin_goodsCardWrapper').length) {
          // 京东新版搜索页
          addId(img);
          renderTip(parent);
          bindDpEvent2(parent);
          const text = $(parent).parents('.plugin_goodsCardWrapper').find('[class^=_price_]').text();
          nowPrice = (__webpack_require__(60340).extractNumberFromText)(text);
        } else if ($(parent).parents('a').length) {
          // console.log('[img] use last a element')
          let a = $(parent).parents('a')[0];
          if (siteinfo.isProductPage(a.href)) {
            parent = a;
            addId(img);
            nowUrl = makeUrl(img, parent.href);
            renderTip(parent);
            bindDpEvent2(parent);
          }
          if (G.aliSite) {
            const priceText = getListPrice();
            nowPrice = (__webpack_require__(60340).extractNumberFromText)(priceText);
          }
        }
      } else {
        extConsole.log('img parent is not a link, exit');
      }
    };
    $('body').on('mouseover', 'img, .pd_pic_wrap', dpMouseOver);
    // $('body').on('mouseover', '[class^=doubleCard--]', dpMouseOver)
    $('body').on('mouseover', '.search-content-col', dpMouseOver);
    $('body').on('mouseover', '[class^=doubleCardWrapper]', dpMouseOver);
    $('body').on('mouseover', '[class^=Card--listCard--]', dpMouseOver);
    $('body').on('mouseover', '.item-link', dpMouseOver);
    $('body').on('mouseover', '.more2_item', dpMouseOver);
    $('body').on('mouseover', '.pic.imglink', dpMouseOver);
    $('body').on('mouseover', '.plugin_goodsCardWrapper', dpMouseOver);
    smallTip2.on('mouseenter', smallTipOnMouseOver);
    smallTip.on('mouseleave', function () {
      tipDetail.hide();
      smallTip.hide();
    });
    tipDetail.on('mouseleave', function () {
      tipDetail.hide();
      smallTip.hide();
    });
  }
  function makeUrl(obj, url) {
    if (G.crc64) {
      return url;
    }
    switch (pageInfo.siteName) {
      case 'suning':
        var productId = $(obj).parents('.wrap').find('input.hidenInfo').attr('datapro').split('||')[0];
        url = "http://www.suning.com/emall/prd_10052_10051_-7_" + productId + "_.html";
        break;
    }
    return url;
  }
  function bindDpEvent2(dom) {
    var $dom = $(dom);
    if ($dom.attr(`${G.extBrand}_tip_bind`)) return;
    $dom.on(`mouseleave`, dpMouseLeave);
    $dom.attr(`${G.extBrand}_tip_bind`, 1);
  }
  function smallTipOnMouseOver() {
    clearTimeout(time);
    smallTip.show();
    render();
  }
  function dpMouseLeave() {
    extConsole.log('dpMouseLeave', Date.now());
    smallTip.hide();
    tipDetail.hide();
  }
  function renderTip(d) {
    extConsole.log('renderTip', Date.now());
    let dom = d;
    if ($(dom).parents('.p-img').length) {
      dom = $(dom).parents('.p-img')[0];
    }
    smallTip.css('left', getLeft(dom));
    smallTip.css('top', getTop(dom));
    smallTip.show().css('display', 'inline-block');
  }
  function addId(obj) {
    var id = '';
    switch (G.site) {
      case 'yihaodian':
        var d = $(obj).parent().attr('id').split('_');
        if (d) d = d[1];
        id = "&id=" + d + '-31';
        break;
    }
    newId = id;
  }

  // function currencyChange(data) {
  //   if (!G.currency || !data) return data;
  //   if (data.store && data.store.length > 0) {
  //     for (var i = 0; i < data.store.length; i++) {
  //       var item = data.store[i];
  //       if (item.price && item.price.match(/\d+/))
  //         data.store[i].price = '¥' + parseprice(item.price);
  //     }
  //   }
  //   if (data.trend && data.trend.store.length > 0) {
  //     for (var j = 0; j < data.trend.store[0].data.length; j++) {
  //       var item2 = data.trend.store[0].data[j];
  //       data.trend.store[0].data[j][1] = parseprice(item2[1]);
  //     }
  //     data.trend.store[0].min_price = parseprice(data.trend.store[0].min_price).toFixed(2);
  //     data.trend.store[0].max_price = parseprice(data.trend.store[0].max_price).toFixed(2);
  //     data.trend.store[0].current_price = parseprice(data.trend.store[0].current_price);
  //   }

  //   return data;
  // }
  const yanzhengma = url => {
    let html = __webpack_require__(97745);
    tipDetail.empty().append(template.compile(html)({
      url: url
    }));
    tipDetail.css('width', 370);
    resetTipDetailPos(tipDetail, smallTip);
  };
  const resetTipDetailPos = (tipDetail, smallTip) => {
    if ($(window).width() - getLeft($(smallTip)[0]) - $(smallTip).width() < 460) {
      tipDetail.css('left', 0 - $(tipDetail).width() - 3 + 'px');
    } else {
      tipDetail.css('left', '67px');
    }
  };
  async function render() {
    tipDetail.html(`<img src="${G.server}/template/aug/images/035.gif" style="margin: 5px;" id="${G.extBrand}_price_tip_loading">`);
    tipDetail.css('width', 50);
    // tipDetail.css('left', getLeft($(smallTip)[0]) + $(smallTip).width())
    // tipDetail.css('top', getTop($(smallTip)[0]))
    tipDetail.show();
    if (!tipResult[nowUrl]) {
      if (nowUrl.includes('click.simba.taobao.com')) {
        if (G.allowBackgroundRequest) {
          const res = await (__webpack_require__(40076).get)('/remoteAddress', {
            url: nowUrl
          });
          nowUrl = res;
        } else {
          const arr = nowTipDom.id.split('_');
          const id = arr[arr.length - 1];
          nowUrl = `https://item.taobao.com/item.htm?id=${id}`;
        }
      }
      let url = `${G.server}/brwext/tip_new?days=180&ver=1&site=${G.site}&price=${nowPrice}&url=${encodeURIComponent(nowUrl)}${newId}`;
      request.getOnce(url).then(msg => {
        try {
          if (msg && msg.now_url) {
            nowUrl = msg.now_url;
          }
          // msg = {
          //   is_ban: true,
          //   action: {
          //   method: 'redirect',
          //   to: 'https://tb.gwdang.com/static_page/activity_scan/imgScan.html?img=jd25618bg.png'
          //   }
          // }
          if (msg.is_ban && msg.action && msg.action.method === 'redirect' && msg.action.to) {
            yanzhengma(msg.action.to);
            return;
          }
          if (msg.trend.store.length === 0) {
            msg = noTrendAddTrendData(msg);
          }
          // msg = currencyChange(msg);         //暂时不转化汇率  使用原始货币  价格走势提示框里面才加人民币提示
          if (!msg || msg.trend.store.length === 0) return renderError();
          if (msg.trend.store[0].current_price == '0.00') return renderError();
          tipResult[nowUrl] = msg;
          render2(msg);
        } catch (e) {}
      }).catch(() => {
        return renderError();
      });
    } else render2(tipResult[nowUrl]);
  }
  function render2(msg) {
    // 处理数据
    processData(msg);
    let nostore;
    if (G.from_device === 'bijiago') {
      msg.store = [];
    }
    console.log('msg.store', msg.store);
    if (!msg.store || msg.store.length === 0) nostore = true;
    let lowestTime = util.getTimeNumber(msg.trend.store[0].min_stamp * 1000);
    tipDetail.removeClass('tip-error-info');
    if (msg.trend.store[0].max_price === msg.trend.store[0].min_price) {
      msg.trend.store[0].nowprice = msg.trend.store[0].min_price;
    }
    //msg.trend.store[0].price_status = require('bjgou/modules/trend').getPriceStatus(msg.trend.store[0].data).price_status
    tipDetail.html(template.compile(viewPriceTip)({
      data: msg,
      new_extension: G.new_extension,
      extName: G.extName,
      isAliSite: G.aliSite,
      nostore: nostore,
      lowestTime: lowestTime,
      extBrand: G.extBrand,
      isGwd: G.from_device !== 'bijiago' && G.from_device !== 'biyibi',
      site: G.site,
      ss_name: G.ss_name
    }));
    const isBjg = G.from_device === 'bijiago';
    if (G.aliSite || nostore) {
      tipDetail.css('width', isBjg && G.site === '360buy' ? 507 : 370);
      if (isBjg && G.site === '360buy') {
        const el = document.createElement('div');
        $('.tip-box-left').after(el);
        new Vue({
          el: el,
          render: h => h((__webpack_require__(50883)/* ["default"] */ .A))
        });
      }
    } else {
      tipDetail.css('width', 460);
    }
    if ($(window).width() - getLeft($(smallTip)[0]) - $(smallTip).width() < 460) {
      tipDetail.css('left', 0 - $(tipDetail).width() - 3 + 'px');
    } else {
      tipDetail.css('left', '67px');
    }
    initMiniTrend(msg.trend, msg.taobaoNoTrend, msg.start);
    bindFavorEvent(msg);
    if (G.aliSite) {
      msg.dp_id = msg.dp_id.replace('-83', '-123');
    }
    if (G.from_device !== 'bijiago' && G.from_device !== 'biyibi') {
      __webpack_require__(51683)(msg.dp_id);
    }
  }
  function bindFavorEvent(data) {
    $(`#${G.extBrand}_price_tip_notify_btn`).on(`click`, function (event) {
      event.preventDefault();
      $(`#${G.extBrand}_notify_error`).hide();
      $(`#${G.extBrand}_price_tip_notify_btn`).text('正在添加......');
      request.get(G.c_server + '/collect/aj_add?' + 'dp_id=' + data.dp_id + '&from=tip').done(msg => {
        if (msg.code == 100 || msg.code <= 0) {
          window.location.href = `http://www.${G.extName}.com/user/login?from_url=` + encodeURIComponent(window.location.href);
        } else if (msg.code == 1) {
          $(`#${G.extBrand}_price_tip_notify_btn`).text(`已添加到收藏夹`).attr(`style`, `float:right;color:#fff;background:#18A0F5;`);
        } else if (msg.code == 2) {
          if ($(`#${G.extBrand}_price_tip_notify_btn`).text() == `正在添加......`) {
            $(`#${G.extBrand}_price_tip_notify_btn`).text(`你已经添加过啦`).attr(`style`, `float:right;color:#fff;background:#18A0F5;`);
          }
        }
      });
    });
  }
  function processData(msg) {
    var new_icon_site_ids = [1, 103, 108, 123, 124, 126, 129, 134, 136, 14, 141, 15, 167, 168, 19, 2, 21, 25, 26, 28, 3, 31, 34, 35, 41, 6, 66, 7, 86, 93, 9];
    var store = msg.store;
    if (store) {
      for (var i = store.length - 1; i >= 0; i--) {
        store[i].icon_url = store[i].icon_url.replace("browser", "s1");
        if (store[i].price.indexOf('￥') > -1) store[i].price = '￥' + Number(store[i].price.replace('￥', '').replace(',', '')).toFixed(2);
        var site_id = /\/(\d+)\.ico/.exec(store[i].icon_url);
        if (site_id) {
          site_id = site_id[1];
          if (!G.IE6 && new_icon_site_ids.indexOf(Number(site_id)) > -1) {
            store[i].icon_url = store[i].icon_url.replace(/\d+\.ico/, site_id + ".png").replace(/browser\./, "s1.");
          }
        }
      }
    }
    let status_str = 'pri-t' + msg.trend.store[0].price_status;
    msg.trend.store[0].status_tle = priceTle[status_str];
    msg.trend.store[0].max_price = Number(msg.trend.store[0].max_price.replace(',', '')).toFixed(2);
    msg.trend.store[0].min_price = Number(msg.trend.store[0].min_price.replace(',', '')).toFixed(2);
  }
  function renderError(data) {
    if (data && data.is_ban) {
      yanzhengma(data.action.to);
    } else {
      tipDetail.html(G.lang === 'zh-tr' ? '<div>抱歉，當前商品暫無價格走勢~</div>' : '<div>抱歉，当前商品暂无价格走势~</div>');
      tipDetail.addClass('tip-error-info');
      tipDetail.css('width', 220);
      tipDetail.show();
    }
  }
  function initMiniTrend(data, taobaoNoTrend, sstart) {
    if (G.site == '360buy') {
      // 京东上的这个影响图表样式
      let p = $('.elevator_fix style');
      p.remove();
    }
    let yAxistext = '';
    if (moneyInfo) {
      yAxistext = moneyInfo[1];
    }
    let maxP = Number(data.store[0].max_price);
    let maxN;
    if (maxP > 5) {
      maxN = parseInt(data.store[0].max_price).toString() || '';
    } else {
      maxN = Number(data.store[0].max_price).toString() || '';
    }
    let maxN2 = yAxistext.length * 2;
    let maxS1 = parseInt(maxN.length * 5.6);
    let maxS2 = parseInt(maxN2 * 5.6);
    let maxS = Math.max(maxS1, maxS2);
    let chartML = maxS + 8 + 8;
    let yAxisY = maxS + 8;
    var trend_div = $(`#gwd_price_tip_trend`);
    var obj = {
      chart: {
        renderTo: `gwd_price_tip_trend`,
        type: 'line',
        backgroundColor: 'transparent',
        marginTop: 10,
        marginLeft: chartML,
        marginRight: 15,
        marginBottom: 27,
        spacing: [0, 0, 0, 0],
        events: {
          load: function () {
            let xinterval = parseInt((this.xAxis[0].dataMax - this.xAxis[0].dataMin) / 3.9) || 1;
            this.xAxis[0].update({
              tickInterval: xinterval
            });
            let lmin, lmax;
            lmin = Math.floor(this.yAxis[0].dataMin);
            lmax = Math.ceil(this.yAxis[0].dataMax);
            let interv2 = Math.pow(10, lmin.toString().length - 2);
            let tkinterv;
            if (this.yAxis[0].dataMax < 1) {
              lmin = this.yAxis[0].dataMin;
              lmax = this.yAxis[0].dataMax;
              tkinterv = 0;
            } else if (this.yAxis[0].dataMin === this.yAxis[0].dataMax) {
              lmin = Math.floor(lmin / interv2) * interv2;
              lmax = lmin * 2;
              lmin = 0;
              tkinterv = parseInt((lmax - lmin) / 2);
            } else {
              lmin = Math.floor(lmin / interv2) * interv2;
              lmax = Math.ceil(lmax / interv2) * interv2;
              if (lmin === lmax) {
                lmin = lmin - 1;
                lmax = lmax + 1;
              }
              tkinterv = parseInt((lmax - lmin) / 4);
              if (lmin + tkinterv < this.yAxis[0].dataMin) {
                lmin = lmin + tkinterv;
              }
            }
            let tkinterv2 = Math.pow(10, tkinterv.toString().length - 1);
            tkinterv = Math.ceil(tkinterv / tkinterv2) * tkinterv2;
            // console.log(lmin, lmax, tkinterv)
            this.yAxis[0].update({
              min: lmin,
              max: lmax,
              tickInterval: tkinterv || 1
            });
          }
        }
      },
      credits: {
        enabled: false
      },
      colors: ['#2f7ed8'],
      title: {
        text: null
      },
      xAxis: {
        type: 'datetime',
        labels: {
          rotation: 0,
          y: 16,
          step: 2,
          style: {
            fontSize: '10px',
            fontFamily: 'Helvetica',
            color: '#9D9D9D'
          },
          align: 'center'
        },
        dateTimeLabelFormats: {
          day: '%m-%e',
          week: '%m-%e',
          month: '%Y/%m',
          year: '%Y/%m'
        },
        tickLength: 0,
        gridLineColor: '#e6e9eb',
        lineColor: '#e6e9eb',
        minorTickLength: 0,
        gridLineWidth: 1
      },
      yAxis: {
        title: {
          text: "",
          rotation: 0,
          y: -20,
          x: -13,
          align: 'high',
          offset: 0,
          style: {
            fontFamily: 'Microsoft YaHei',
            fontSize: '10px',
            color: '#969899'
          }
        },
        labels: {
          align: 'left',
          padding: 4,
          x: -yAxisY,
          y: 3,
          style: {
            fontSize: '10px',
            fontFamily: 'Helvetica',
            color: '#9D9D9D'
          },
          formatter: function () {
            return this.value;
          }
        },
        plotLines: [{
          value: 0,
          width: 1,
          color: '#808080'
        }],
        gridLineColor: '#e6e9eb',
        lineColor: '#e6e9eb',
        tickPixelInterval: 50
      },
      plotOptions: {
        series: {
          animation: false,
          marker: {
            radius: 2
          },
          enableMouseTracking: true,
          states: {
            hover: {
              enabled: true,
              fillColor: 'rgba(72,190,254,0.25)'
            }
          },
          shadow: false
        }
      },
      tooltip: {
        xDateFormat: '%Y-%m-%d',
        borderColor: "#48BEFE",
        useHTML: true,
        backgroundColor: 'white',
        formatter: function () {
          let x = new Date(this.x);
          let year = x.getFullYear();
          let month = x.getMonth() + 1;
          let day = x.getDate();
          if (month < 10) month = '0' + month.toString();
          if (day < 10) day = '0' + day.toString();
          // let format = data.msg.formatted[this.x.toString()];
          // let disc = format.discount
          // if (disc !== 0)
          //   disc = '-' + disc.toString() + '%';
          if (taobaoNoTrend) {
            let nowDate = new Date();
            if (x.getMonth() !== nowDate.getMonth() || x.getDate() !== nowDate.getDate()) {
              return false;
            }
          }
          let price;
          if (this.y !== 0) price = this.y.toFixed(2);else price = '0';
          let price2 = "";
          if (moneyInfo) {
            price2 = '(¥' + parseprice(price) + ')';
            price = moneyInfo[0] + price;
          }
          let dom = `
                <div style="background: white">
              <div>${year}/${month}/${day}</div>
              <div class="price-tip-item">
                <span class="price-tip-sp1" style="color: ${this.series.color};font-size:12px;font-family:arial;float:none">●</span>
                <span class="price-tip-sp2">${this.series.name}</span>
                <span class="price-tip-sp3" style="font-family:Helvetica">${price}${price2}</span>
              </div>
</div>`;
          return dom;
        }
      },
      legend: {
        enabled: false
      },
      series: []
    };
    obj.series[0] = {
      visible: true,
      name: data.store[0].name,
      pointStart: sstart,
      pointInterval: 86400000 * 179,
      color: "#48BEFE",
      lineWidth: 1,
      marker: {
        enabled: false
      },
      states: {
        enabled: false,
        hover: {
          lineWidth: 1
        }
      },
      data: []
    };
    if (taobaoNoTrend) {
      obj.series[0].dashStyle = "Dash";
    }
    if (data.store[0].data.length > 0) {
      var store = data.store[0];
      var len2 = store.data.length;
      var datas = store.data;
      if (store.min_stamp * 1000 > parseInt(Date.UTC(data.startY, data.startM, data.startD))) {
        obj.series[0].data.push(null);
      }
      if (taobaoNoTrend) {
        for (var j = 0; j < len2; j++) {
          obj.series[0].data.push({
            y: datas[j][1]
          });
        }
      } else {
        obj.series[0].data = data.store[0].data;
      }
    }
    if (taobaoNoTrend) {
      obj.series[0].data[1].marker = {
        enabled: true,
        fillColor: '#5ACFFB',
        radius: 2.5,
        lineWidth: 0,
        symbol: "circle"
      };
      obj.plotOptions.series.states = {
        hover: {
          enabled: false
        }
      };
    }
    if (moneyInfo) {
      obj.yAxis.title.text = moneyInfo[1];
      obj.yAxis.title.y = 104;
      obj.yAxis.title.x = -(chartML - 6 - maxS2);
    }
    if ($('#' + obj.chart.renderTo).length) {
      new Highcharts.Chart(obj);
    }
    trend_div.show();
  }
  return exports;
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

/***/ }),

/***/ 26910:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var $ = __webpack_require__(46518);
var uncurryThis = __webpack_require__(79504);
var aCallable = __webpack_require__(79306);
var toObject = __webpack_require__(48981);
var lengthOfArrayLike = __webpack_require__(26198);
var deletePropertyOrThrow = __webpack_require__(84606);
var toString = __webpack_require__(655);
var fails = __webpack_require__(79039);
var internalSort = __webpack_require__(74488);
var arrayMethodIsStrict = __webpack_require__(34598);
var FF = __webpack_require__(13709);
var IE_OR_EDGE = __webpack_require__(13763);
var V8 = __webpack_require__(39519);
var WEBKIT = __webpack_require__(3607);

var test = [];
var nativeSort = uncurryThis(test.sort);
var push = uncurryThis(test.push);

// IE8-
var FAILS_ON_UNDEFINED = fails(function () {
  test.sort(undefined);
});
// V8 bug
var FAILS_ON_NULL = fails(function () {
  test.sort(null);
});
// Old WebKit
var STRICT_METHOD = arrayMethodIsStrict('sort');

var STABLE_SORT = !fails(function () {
  // feature detection can be too slow, so check engines versions
  if (V8) return V8 < 70;
  if (FF && FF > 3) return;
  if (IE_OR_EDGE) return true;
  if (WEBKIT) return WEBKIT < 603;

  var result = '';
  var code, chr, value, index;

  // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
  for (code = 65; code < 76; code++) {
    chr = String.fromCharCode(code);

    switch (code) {
      case 66: case 69: case 70: case 72: value = 3; break;
      case 68: case 71: value = 4; break;
      default: value = 2;
    }

    for (index = 0; index < 47; index++) {
      test.push({ k: chr + index, v: value });
    }
  }

  test.sort(function (a, b) { return b.v - a.v; });

  for (index = 0; index < test.length; index++) {
    chr = test[index].k.charAt(0);
    if (result.charAt(result.length - 1) !== chr) result += chr;
  }

  return result !== 'DGBEFHACIJK';
});

var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;

var getSortCompare = function (comparefn) {
  return function (x, y) {
    if (y === undefined) return -1;
    if (x === undefined) return 1;
    if (comparefn !== undefined) return +comparefn(x, y) || 0;
    return toString(x) > toString(y) ? 1 : -1;
  };
};

// `Array.prototype.sort` method
// https://tc39.es/ecma262/#sec-array.prototype.sort
$({ target: 'Array', proto: true, forced: FORCED }, {
  sort: function sort(comparefn) {
    if (comparefn !== undefined) aCallable(comparefn);

    var array = toObject(this);

    if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);

    var items = [];
    var arrayLength = lengthOfArrayLike(array);
    var itemsLength, index;

    for (index = 0; index < arrayLength; index++) {
      if (index in array) push(items, array[index]);
    }

    internalSort(items, getSortCompare(comparefn));

    itemsLength = lengthOfArrayLike(items);
    index = 0;

    while (index < itemsLength) array[index] = items[index++];
    while (index < arrayLength) deletePropertyOrThrow(array, index++);

    return array;
  }
});


/***/ }),

/***/ 26928:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ TipTbV3)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/TipTbV3.vue?vue&type=template&id=79759303&scoped=true
var TipTbV3vue_type_template_id_79759303_scoped_true = __webpack_require__(31910);
;// ./src/standard/module/components/ImgSame/TipTbV3.vue?vue&type=template&id=79759303&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/TipTbV3.vue?vue&type=script&lang=js
var TipTbV3vue_type_script_lang_js = __webpack_require__(2367);
;// ./src/standard/module/components/ImgSame/TipTbV3.vue?vue&type=script&lang=js
 /* harmony default export */ const ImgSame_TipTbV3vue_type_script_lang_js = (TipTbV3vue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/TipTbV3.vue?vue&type=style&index=0&id=79759303&prod&scoped=true&lang=less
var TipTbV3vue_type_style_index_0_id_79759303_prod_scoped_true_lang_less = __webpack_require__(4356);
;// ./src/standard/module/components/ImgSame/TipTbV3.vue?vue&type=style&index=0&id=79759303&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/ImgSame/TipTbV3.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  ImgSame_TipTbV3vue_type_script_lang_js,
  TipTbV3vue_type_template_id_79759303_scoped_true/* render */.XX,
  TipTbV3vue_type_template_id_79759303_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "79759303",
  null
  
)

/* harmony default export */ const TipTbV3 = (component.exports);

/***/ }),

/***/ 27207:
/***/ ((module) => {

"use strict";


module.exports = function () {
  var host = document.location.host;
  if (host.indexOf('hao123') > -1 || host.indexOf('baidu') > -1) return true;else return false;
};

/***/ }),

/***/ 27208:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var $ = __webpack_require__(46518);
var call = __webpack_require__(69565);

// `URL.prototype.toJSON` method
// https://url.spec.whatwg.org/#dom-url-tojson
$({ target: 'URL', proto: true, enumerable: true }, {
  toJSON: function toJSON() {
    return call(URL.prototype.toString, this);
  }
});


/***/ }),

/***/ 27252:
/***/ ((module) => {

"use strict";


module.exports = function (l) {
  var x = "0123456789qwertyuioplkjhgfdsazxcvbnm";
  var tmp = "";
  for (var i = 0; i < l; i++) {
    tmp += x.charAt(Math.ceil(Math.random() * 100000000) % x.length);
  }
  return tmp;
};

/***/ }),

/***/ 27334:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ Indexvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ Index)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Index.vue?vue&type=template&id=0650373c&scoped=true
var Indexvue_type_template_id_0650373c_scoped_true = __webpack_require__(9519);
;// ./src/standard/module/components/ImgSame/Index.vue?vue&type=template&id=0650373c&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Index.vue?vue&type=script&lang=js
var Indexvue_type_script_lang_js = __webpack_require__(93327);
;// ./src/standard/module/components/ImgSame/Index.vue?vue&type=script&lang=js
 /* harmony default export */ const ImgSame_Indexvue_type_script_lang_js = (Indexvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Index.vue?vue&type=style&index=0&id=0650373c&prod&scoped=true&lang=less
var Indexvue_type_style_index_0_id_0650373c_prod_scoped_true_lang_less = __webpack_require__(49906);
;// ./src/standard/module/components/ImgSame/Index.vue?vue&type=style&index=0&id=0650373c&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Index.vue?vue&type=style&index=1&id=0650373c&prod&scoped=true&lang=less
var Indexvue_type_style_index_1_id_0650373c_prod_scoped_true_lang_less = __webpack_require__(23641);
;// ./src/standard/module/components/ImgSame/Index.vue?vue&type=style&index=1&id=0650373c&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/ImgSame/Index.vue



;



/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  ImgSame_Indexvue_type_script_lang_js,
  Indexvue_type_template_id_0650373c_scoped_true/* render */.XX,
  Indexvue_type_template_id_0650373c_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "0650373c",
  null
  
)

/* harmony default export */ const Index = (component.exports);

/***/ }),

/***/ 27337:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var $ = __webpack_require__(46518);
var uncurryThis = __webpack_require__(79504);
var toAbsoluteIndex = __webpack_require__(35610);

var $RangeError = RangeError;
var fromCharCode = String.fromCharCode;
// eslint-disable-next-line es/no-string-fromcodepoint -- required for testing
var $fromCodePoint = String.fromCodePoint;
var join = uncurryThis([].join);

// length should be 1, old FF problem
var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length !== 1;

// `String.fromCodePoint` method
// https://tc39.es/ecma262/#sec-string.fromcodepoint
$({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
  // eslint-disable-next-line no-unused-vars -- required for `.length`
  fromCodePoint: function fromCodePoint(x) {
    var elements = [];
    var length = arguments.length;
    var i = 0;
    var code;
    while (length > i) {
      code = +arguments[i++];
      if (toAbsoluteIndex(code, 0x10FFFF) !== code) throw new $RangeError(code + ' is not a valid code point');
      elements[i] = code < 0x10000
        ? fromCharCode(code)
        : fromCharCode(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00);
    } return join(elements, '');
  }
});


/***/ }),

/***/ 27444:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   decode: () => (/* binding */ decode),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   encode: () => (/* binding */ encode),
/* harmony export */   toASCII: () => (/* binding */ toASCII),
/* harmony export */   toUnicode: () => (/* binding */ toUnicode),
/* harmony export */   ucs2decode: () => (/* binding */ ucs2decode),
/* harmony export */   ucs2encode: () => (/* binding */ ucs2encode)
/* harmony export */ });


/** Highest positive signed 32-bit float value */
const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1

/** Bootstring parameters */
const base = 36;
const tMin = 1;
const tMax = 26;
const skew = 38;
const damp = 700;
const initialBias = 72;
const initialN = 128; // 0x80
const delimiter = '-'; // '\x2D'

/** Regular expressions */
const regexPunycode = /^xn--/;
const regexNonASCII = /[^\0-\x7F]/; // Note: U+007F DEL is excluded too.
const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators

/** Error messages */
const errors = {
	'overflow': 'Overflow: input needs wider integers to process',
	'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
	'invalid-input': 'Invalid input'
};

/** Convenience shortcuts */
const baseMinusTMin = base - tMin;
const floor = Math.floor;
const stringFromCharCode = String.fromCharCode;

/*--------------------------------------------------------------------------*/

/**
 * A generic error utility function.
 * @private
 * @param {String} type The error type.
 * @returns {Error} Throws a `RangeError` with the applicable error message.
 */
function error(type) {
	throw new RangeError(errors[type]);
}

/**
 * A generic `Array#map` utility function.
 * @private
 * @param {Array} array The array to iterate over.
 * @param {Function} callback The function that gets called for every array
 * item.
 * @returns {Array} A new array of values returned by the callback function.
 */
function map(array, callback) {
	const result = [];
	let length = array.length;
	while (length--) {
		result[length] = callback(array[length]);
	}
	return result;
}

/**
 * A simple `Array#map`-like wrapper to work with domain name strings or email
 * addresses.
 * @private
 * @param {String} domain The domain name or email address.
 * @param {Function} callback The function that gets called for every
 * character.
 * @returns {String} A new string of characters returned by the callback
 * function.
 */
function mapDomain(domain, callback) {
	const parts = domain.split('@');
	let result = '';
	if (parts.length > 1) {
		// In email addresses, only the domain name should be punycoded. Leave
		// the local part (i.e. everything up to `@`) intact.
		result = parts[0] + '@';
		domain = parts[1];
	}
	// Avoid `split(regex)` for IE8 compatibility. See #17.
	domain = domain.replace(regexSeparators, '\x2E');
	const labels = domain.split('.');
	const encoded = map(labels, callback).join('.');
	return result + encoded;
}

/**
 * Creates an array containing the numeric code points of each Unicode
 * character in the string. While JavaScript uses UCS-2 internally,
 * this function will convert a pair of surrogate halves (each of which
 * UCS-2 exposes as separate characters) into a single code point,
 * matching UTF-16.
 * @see `punycode.ucs2.encode`
 * @see <https://mathiasbynens.be/notes/javascript-encoding>
 * @memberOf punycode.ucs2
 * @name decode
 * @param {String} string The Unicode input string (UCS-2).
 * @returns {Array} The new array of code points.
 */
function ucs2decode(string) {
	const output = [];
	let counter = 0;
	const length = string.length;
	while (counter < length) {
		const value = string.charCodeAt(counter++);
		if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
			// It's a high surrogate, and there is a next character.
			const extra = string.charCodeAt(counter++);
			if ((extra & 0xFC00) == 0xDC00) { // Low surrogate.
				output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
			} else {
				// It's an unmatched surrogate; only append this code unit, in case the
				// next code unit is the high surrogate of a surrogate pair.
				output.push(value);
				counter--;
			}
		} else {
			output.push(value);
		}
	}
	return output;
}

/**
 * Creates a string based on an array of numeric code points.
 * @see `punycode.ucs2.decode`
 * @memberOf punycode.ucs2
 * @name encode
 * @param {Array} codePoints The array of numeric code points.
 * @returns {String} The new Unicode string (UCS-2).
 */
const ucs2encode = codePoints => String.fromCodePoint(...codePoints);

/**
 * Converts a basic code point into a digit/integer.
 * @see `digitToBasic()`
 * @private
 * @param {Number} codePoint The basic numeric code point value.
 * @returns {Number} The numeric value of a basic code point (for use in
 * representing integers) in the range `0` to `base - 1`, or `base` if
 * the code point does not represent a value.
 */
const basicToDigit = function(codePoint) {
	if (codePoint >= 0x30 && codePoint < 0x3A) {
		return 26 + (codePoint - 0x30);
	}
	if (codePoint >= 0x41 && codePoint < 0x5B) {
		return codePoint - 0x41;
	}
	if (codePoint >= 0x61 && codePoint < 0x7B) {
		return codePoint - 0x61;
	}
	return base;
};

/**
 * Converts a digit/integer into a basic code point.
 * @see `basicToDigit()`
 * @private
 * @param {Number} digit The numeric value of a basic code point.
 * @returns {Number} The basic code point whose value (when used for
 * representing integers) is `digit`, which needs to be in the range
 * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
 * used; else, the lowercase form is used. The behavior is undefined
 * if `flag` is non-zero and `digit` has no uppercase form.
 */
const digitToBasic = function(digit, flag) {
	//  0..25 map to ASCII a..z or A..Z
	// 26..35 map to ASCII 0..9
	return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
};

/**
 * Bias adaptation function as per section 3.4 of RFC 3492.
 * https://tools.ietf.org/html/rfc3492#section-3.4
 * @private
 */
const adapt = function(delta, numPoints, firstTime) {
	let k = 0;
	delta = firstTime ? floor(delta / damp) : delta >> 1;
	delta += floor(delta / numPoints);
	for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
		delta = floor(delta / baseMinusTMin);
	}
	return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
};

/**
 * Converts a Punycode string of ASCII-only symbols to a string of Unicode
 * symbols.
 * @memberOf punycode
 * @param {String} input The Punycode string of ASCII-only symbols.
 * @returns {String} The resulting string of Unicode symbols.
 */
const decode = function(input) {
	// Don't use UCS-2.
	const output = [];
	const inputLength = input.length;
	let i = 0;
	let n = initialN;
	let bias = initialBias;

	// Handle the basic code points: let `basic` be the number of input code
	// points before the last delimiter, or `0` if there is none, then copy
	// the first basic code points to the output.

	let basic = input.lastIndexOf(delimiter);
	if (basic < 0) {
		basic = 0;
	}

	for (let j = 0; j < basic; ++j) {
		// if it's not a basic code point
		if (input.charCodeAt(j) >= 0x80) {
			error('not-basic');
		}
		output.push(input.charCodeAt(j));
	}

	// Main decoding loop: start just after the last delimiter if any basic code
	// points were copied; start at the beginning otherwise.

	for (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {

		// `index` is the index of the next character to be consumed.
		// Decode a generalized variable-length integer into `delta`,
		// which gets added to `i`. The overflow checking is easier
		// if we increase `i` as we go, then subtract off its starting
		// value at the end to obtain `delta`.
		const oldi = i;
		for (let w = 1, k = base; /* no condition */; k += base) {

			if (index >= inputLength) {
				error('invalid-input');
			}

			const digit = basicToDigit(input.charCodeAt(index++));

			if (digit >= base) {
				error('invalid-input');
			}
			if (digit > floor((maxInt - i) / w)) {
				error('overflow');
			}

			i += digit * w;
			const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);

			if (digit < t) {
				break;
			}

			const baseMinusT = base - t;
			if (w > floor(maxInt / baseMinusT)) {
				error('overflow');
			}

			w *= baseMinusT;

		}

		const out = output.length + 1;
		bias = adapt(i - oldi, out, oldi == 0);

		// `i` was supposed to wrap around from `out` to `0`,
		// incrementing `n` each time, so we'll fix that now:
		if (floor(i / out) > maxInt - n) {
			error('overflow');
		}

		n += floor(i / out);
		i %= out;

		// Insert `n` at position `i` of the output.
		output.splice(i++, 0, n);

	}

	return String.fromCodePoint(...output);
};

/**
 * Converts a string of Unicode symbols (e.g. a domain name label) to a
 * Punycode string of ASCII-only symbols.
 * @memberOf punycode
 * @param {String} input The string of Unicode symbols.
 * @returns {String} The resulting Punycode string of ASCII-only symbols.
 */
const encode = function(input) {
	const output = [];

	// Convert the input in UCS-2 to an array of Unicode code points.
	input = ucs2decode(input);

	// Cache the length.
	const inputLength = input.length;

	// Initialize the state.
	let n = initialN;
	let delta = 0;
	let bias = initialBias;

	// Handle the basic code points.
	for (const currentValue of input) {
		if (currentValue < 0x80) {
			output.push(stringFromCharCode(currentValue));
		}
	}

	const basicLength = output.length;
	let handledCPCount = basicLength;

	// `handledCPCount` is the number of code points that have been handled;
	// `basicLength` is the number of basic code points.

	// Finish the basic string with a delimiter unless it's empty.
	if (basicLength) {
		output.push(delimiter);
	}

	// Main encoding loop:
	while (handledCPCount < inputLength) {

		// All non-basic code points < n have been handled already. Find the next
		// larger one:
		let m = maxInt;
		for (const currentValue of input) {
			if (currentValue >= n && currentValue < m) {
				m = currentValue;
			}
		}

		// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
		// but guard against overflow.
		const handledCPCountPlusOne = handledCPCount + 1;
		if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
			error('overflow');
		}

		delta += (m - n) * handledCPCountPlusOne;
		n = m;

		for (const currentValue of input) {
			if (currentValue < n && ++delta > maxInt) {
				error('overflow');
			}
			if (currentValue === n) {
				// Represent delta as a generalized variable-length integer.
				let q = delta;
				for (let k = base; /* no condition */; k += base) {
					const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
					if (q < t) {
						break;
					}
					const qMinusT = q - t;
					const baseMinusT = base - t;
					output.push(
						stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
					);
					q = floor(qMinusT / baseMinusT);
				}

				output.push(stringFromCharCode(digitToBasic(q, 0)));
				bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
				delta = 0;
				++handledCPCount;
			}
		}

		++delta;
		++n;

	}
	return output.join('');
};

/**
 * Converts a Punycode string representing a domain name or an email address
 * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
 * it doesn't matter if you call it on a string that has already been
 * converted to Unicode.
 * @memberOf punycode
 * @param {String} input The Punycoded domain name or email address to
 * convert to Unicode.
 * @returns {String} The Unicode representation of the given Punycode
 * string.
 */
const toUnicode = function(input) {
	return mapDomain(input, function(string) {
		return regexPunycode.test(string)
			? decode(string.slice(4).toLowerCase())
			: string;
	});
};

/**
 * Converts a Unicode string representing a domain name or an email address to
 * Punycode. Only the non-ASCII parts of the domain name will be converted,
 * i.e. it doesn't matter if you call it with a domain that's already in
 * ASCII.
 * @memberOf punycode
 * @param {String} input The domain name or email address to convert, as a
 * Unicode string.
 * @returns {String} The Punycode representation of the given domain name or
 * email address.
 */
const toASCII = function(input) {
	return mapDomain(input, function(string) {
		return regexNonASCII.test(string)
			? 'xn--' + encode(string)
			: string;
	});
};

/*--------------------------------------------------------------------------*/

/** Define the public API */
const punycode = {
	/**
	 * A string representing the current Punycode.js version number.
	 * @memberOf punycode
	 * @type String
	 */
	'version': '2.3.1',
	/**
	 * An object of methods to convert from JavaScript's internal character
	 * representation (UCS-2) to Unicode code points, and back.
	 * @see <https://mathiasbynens.be/notes/javascript-encoding>
	 * @memberOf punycode
	 * @type Object
	 */
	'ucs2': {
		'decode': ucs2decode,
		'encode': ucs2encode
	},
	'decode': decode,
	'encode': encode,
	'toASCII': toASCII,
	'toUnicode': toUnicode
};


/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (punycode);


/***/ }),

/***/ 27476:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var classofRaw = __webpack_require__(22195);
var uncurryThis = __webpack_require__(79504);

module.exports = function (fn) {
  // Nashorn bug:
  //   https://github.com/zloirock/core-js/issues/1128
  //   https://github.com/zloirock/core-js/issues/1130
  if (classofRaw(fn) === 'Function') return uncurryThis(fn);
};


/***/ }),

/***/ 27733:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(46228);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("616dd7b6", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 28189:
/***/ ((module) => {

"use strict";


/*! art-template@runtime | https://github.com/goofychris/art-template */

var globalThis = typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {};

var runtime = Object.create(globalThis);
var ESCAPE_REG = /["&'<>]/;

/**
 * 编码模板输出的内容
 * @param  {any}        content
 * @return {string}
 */
runtime.$escape = function (content) {
    return xmlEscape(toString(content));
};

/**
 * 迭代器，支持数组与对象
 * @param {array|Object} data
 * @param {function}     callback
 */
runtime.$each = function (data, callback) {
    if (Array.isArray(data)) {
        for (var i = 0, len = data.length; i < len; i++) {
            callback(data[i], i);
        }
    } else {
        for (var _i in data) {
            callback(data[_i], _i);
        }
    }
};

// 将目标转成字符
function toString(value) {
    if (typeof value !== 'string') {
        if (value === undefined || value === null) {
            value = '';
        } else if (typeof value === 'function') {
            value = toString(value.call(value));
        } else {
            value = JSON.stringify(value);
        }
    }

    return value;
}

// 编码 HTML 内容
function xmlEscape(content) {
    var html = '' + content;
    var regexResult = ESCAPE_REG.exec(html);
    if (!regexResult) {
        return content;
    }

    var result = '';
    var i = void 0,
        lastIndex = void 0,
        char = void 0;
    for (i = regexResult.index, lastIndex = 0; i < html.length; i++) {
        switch (html.charCodeAt(i)) {
            case 34:
                char = '&#34;';
                break;
            case 38:
                char = '&#38;';
                break;
            case 39:
                char = '&#39;';
                break;
            case 60:
                char = '&#60;';
                break;
            case 62:
                char = '&#62;';
                break;
            default:
                continue;
        }

        if (lastIndex !== i) {
            result += html.substring(lastIndex, i);
        }

        lastIndex = i + 1;
        result += char;
    }

    if (lastIndex !== i) {
        return result + html.substring(lastIndex, i);
    } else {
        return result;
    }
}

module.exports = runtime;


/***/ }),

/***/ 28192:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var G = __webpack_require__(53558);


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
__webpack_require__(26910);
__webpack_require__(3362);
var _CircleProgress = _interopRequireDefault(__webpack_require__(7591));
var _CircleStackPieChart = _interopRequireDefault(__webpack_require__(82480));
var _NumLabel = _interopRequireDefault(__webpack_require__(98456));
const {
  jsonrepair
} = __webpack_require__(14276);
const extConsole = __webpack_require__(7129);
const maxAllowedPage = 5;
var _default = exports.A = {
  components: {
    CircleProgress: _CircleProgress.default,
    CircleStackPieChart: _CircleStackPieChart.default,
    NumLabel: _NumLabel.default
  },
  data() {
    return {
      feedbackUrl: 'https://www.gwdang.com/brwext/suggest?from_device=' + G.from_device + '&from=ai&refer=' + encodeURIComponent(location.href),
      show: false,
      loadedPage: 0,
      interval: 100,
      maxPage: maxAllowedPage,
      userRanks: [],
      buyItems: [],
      markdownText: '',
      status: 'pending',
      textChunks: [],
      lastTop: 0,
      result: {}
    };
  },
  methods: {
    displayPercentText(percent, postfix) {
      if (percent < 10) {
        return percent + '%';
      }
      return '约' + percent + '%' + postfix;
    },
    goLogin() {
      let u = encodeURIComponent(location.href);
      location.href = `https://www.gwdang.com/user/login?ext=1&from_url=${u}`;
    },
    open() {
      this.show = true;
      if (this.status === 'pending') {
        this.startAnalysis();
      }
    },
    close() {
      this.show = false;
    },
    getImg(img) {
      return `https://cdn.gwdang.com/images/extensions/ai/${img}`;
    },
    async getReviews() {
      const useLocalReviewCache = await (__webpack_require__(40076).get)('/getStorage', {
        key: 'useLocalReviewCache'
      });
      if (useLocalReviewCache && localStorage.getItem('dp_reviews-' + gwd_G.dp.dpId)) {
        await new Promise(resolve => setTimeout(resolve, 2000));
        return JSON.parse(localStorage.getItem('dp_reviews-' + gwd_G.dp.dpId));
      }
      const dpId = window.gwd_G.dp.dpId;
      let reviews = [];
      let page = 1,
        hasNext = true;
      do {
        if (page > this.maxPage) {
          break;
        }
        if (gwd_G.aliSite) {
          // const res = await require('common/thirdPartyApis/taobaoReview').get(dpId, page)
          const res = await (__webpack_require__(40238).get)(dpId, page);
          if (res.data && res.data.rateList && res.data.rateList.length) {
            reviews = reviews.concat(res.data.rateList.map(x => {
              return x;
            }));
            if (res.data.hasNext === 'false') {
              hasNext = false;
            }
          } else {
            hasNext = false;
          }
        } else {
          const res = await (__webpack_require__(82788).get)(pageConfig.product.skuid, page);
          if (res.comments && res.comments.length) {
            reviews = reviews.concat(res.comments);
          } else {
            hasNext = false;
          }
        }
        (__webpack_require__(7129).log)(`获取第${page}页评论`);
        this.loadedPage = page;
        page++;
        await new Promise(resolve => setTimeout(resolve, this.interval));
      } while (hasNext);
      window.gwd_G.dp_reviews = reviews;
      if (reviews.length && useLocalReviewCache) {
        localStorage.setItem('dp_reviews-' + gwd_G.dp.dpId, JSON.stringify(reviews));
      }
      return reviews;
    },
    nextitem() {
      const text = this.textChunks.shift();
      this.markdownText = this.markdownText + text;
    },
    async startAnalysis() {
      (__webpack_require__(5300).log)('ai', 'popupOpen');
      if (!gwd_G.userLogin) {
        this.status = 'needLogin';
        (__webpack_require__(5300).log)('ai', 'needLogin');
        return;
      }
      if (this.status !== 'pending' && this.status !== 'failed') {
        return;
      }
      this.status = 'loading';
      const reviews = await this.getReviews();
      if (!reviews.length) {
        this.status = 'failed';
        (__webpack_require__(5300).log)('ai', 'noreview');
        return;
      }
      this.status = 'analyzing';
      const userResult = (__webpack_require__(42603).getUserRank)(reviews);
      this.userRanks = userResult;
      this.buyItems = (__webpack_require__(42603).getSkuCounts)(reviews).sort((a, b) => b.value - a.value).slice(0, 5);
      (__webpack_require__(40076).get)('/aistream', {
        url: location.href,
        dpId: gwd_G.dp.dpId,
        data: reviews,
        instanceId: gwd_G.instanceId
      });
      setTimeout(() => {
        if (!this.markdownText.length) {
          this.status = 'timeout';
          (__webpack_require__(5300).log)('ai', 'timeout');
        }
      }, 20000);
    }
  },
  mounted() {
    document.addEventListener('gwd_stream', e => {
      // this.textChunks.push(e.detail.content)
      const detail = typeof e.detail === 'string' ? JSON.parse(e.detail) : e.detail;
      if (detail.instanceId !== gwd_G.instanceId) {
        console.log('instance mismatch', e);
        return;
      }
      this.markdownText += detail.content;
      try {
        const result = JSON.parse(jsonrepair(this.outputJson));
        this.result = result;
      } catch (e) {
        console.error('Error parsing JSON', e);
      }
      this.$nextTick(() => {
        // Only auto-scroll if user is already at or near the bottom
        const content = this.$refs.content;
        const isAtBottom = content.scrollHeight - content.scrollTop - content.clientHeight < 5 || content.scrollTop === this.lastTop;
        // extConsole.log('isAtBottom', content.scrollHeight - content.scrollTop - content.clientHeight)
        if (isAtBottom) {
          content.scrollTop = content.scrollHeight;
          this.lastTop = content.scrollTop;
        }
      });
    });
  },
  watch: {
    firstLine(val) {
      if (val === 'OK') {
        (__webpack_require__(5300).logOnce)('ai', 'aishow');
      }
      if (val === 'Limited') {
        (__webpack_require__(5300).logOnce)('ai', 'limitReached');
      }
    }
  },
  computed: {
    firstLine() {
      return this.markdownText.split('\n')[0];
    },
    // renderedMD() {
    //   if (this.show === 'json') {
    //     return ''
    //   }
    //   const textWithoutFirstLine = this.markdownText.split('\n').slice(1).join('\n')
    //   const mdText = textWithoutFirstLine.trim().endsWith('-') ? textWithoutFirstLine.trim().slice(0, -1) : textWithoutFirstLine
    //   return md.render(mdText)
    // }
    outputJson() {
      const textWithoutFirstLine = this.markdownText.split('\n').slice(1).join('\n');
      return textWithoutFirstLine;
    },
    hasCons() {
      return this.result.prosAndCons && this.result.prosAndCons.cons && this.result.prosAndCons.cons.length;
    },
    consLoading() {
      return !this.result.overallRating && !this.hasCons;
    }
  }
};

/***/ }),

/***/ 28264:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-minibar-bg",
    class: `gwd-minibar-${_vm.site} ${_vm.isNewJd ? "gwd-new-jd" : ""} ${_vm.additionalClass}`,
    style: {
      top: `${_vm.top}`
    }
  }, [_c("div", {
    class: {
      alisite_page: _vm.aliSite
    },
    staticStyle: {
      display: "flex"
    },
    attrs: {
      id: "gwd_minibar"
    }
  }, [_vm._m(0), _vm._v(" "), _c("div", {
    staticClass: "minibar-tab",
    staticStyle: {
      flex: "1"
    },
    attrs: {
      id: "mini_price_history"
    }
  }), _vm._v(" "), _c("div", {
    staticClass: "minibar-tab",
    staticStyle: {
      flex: "1"
    },
    attrs: {
      id: "gwd_mini_compare"
    }
  }), _vm._v(" "), _vm.newTime ? _c("div", {
    staticClass: "minibar-tab",
    staticStyle: {
      flex: "1"
    },
    attrs: {
      id: "gwd_mini_seckill"
    }
  }, [_vm._m(1)]) : _c("div", {
    staticClass: "minibar-tab",
    staticStyle: {
      flex: "1"
    },
    attrs: {
      id: "gwd_mini_remind"
    }
  }, [_c("div", {
    staticClass: "minibar-btn-box"
  }), _vm._v(" "), _vm._m(2)])]), _vm._v(" "), _c("div", {
    staticClass: "gwd-mini-placeholder gwd-price-protect"
  }), _vm._v(" "), _c("div", {
    staticClass: "gwd-mini-placeholder",
    attrs: {
      id: "gwd-coupon-placeholder"
    }
  }), _vm._v(" "), _c("div", {
    staticClass: "gwd-mini-placeholder",
    attrs: {
      id: "gwd-dsj-placeholder"
    }
  }), _vm._v(" "), _c("div", {
    attrs: {
      id: "promo_box"
    }
  })]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "gwd_website",
    attrs: {
      title: "功能设置",
      id: "gwd_website_icon",
      target: "_blank",
      href: "#"
    }
  }, [_c("em", {
    staticClass: "setting-bg website_icon"
  })]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "minibar-btn-box"
  }, [_c("em", {}), _vm._v(" "), _c("span", [_vm._v("抢购提醒")])]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-collection-mini"
  }, [_c("div", {
    staticClass: "gwd-collection-mini-content"
  })]);
}];
render._withStripped = true;

/***/ }),

/***/ 28271:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
// import spin from 'ant-design-vue'
// import 'ant-design-vue/dist/antd.css';
// Vue.use(spin)

const cnzz = __webpack_require__(5300);
function addZero(number, p = 2) {
  return (Math.pow(10, p) + number).toString().slice(1);
}
var _default = exports.A = {
  props: ['position'],
  data() {
    return {
      show: true,
      time: new Date()
    };
  },
  methods: {
    close() {
      this.show = false;
      cnzz.log('clock:hide');
      (__webpack_require__(30888).setLocal)('setclock', '0');
    },
    tik() {
      requestAnimationFrame(() => {
        this.time = new Date();
        if (!this.show) return;
        this.tik();
      });
    }
  },
  computed: {
    hour() {
      return addZero(this.time.getHours());
    },
    minute() {
      return addZero(this.time.getMinutes());
    },
    second() {
      return addZero(this.time.getSeconds());
    },
    mill() {
      return addZero(this.time.getMilliseconds(), 3);
    }
  },
  mounted() {
    cnzz.log('clock:show');
    this.tik();
    // setInterval(() => {
    //   this.time = new Date
    // }, 50)
  }
};

/***/ }),

/***/ 28461:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(33376);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("237597ab", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 28483:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-promotion-window[data-v-79f90a80] {\n  width: 242px;\n  height: 540px;\n  background: #fff;\n  border-radius: 8px;\n  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.2);\n  position: absolute;\n  right: 68px;\n  top: -315px;\n  z-index: 9;\n  font-family: PingFangSC-Medium, PingFang SC;\n}\n.gwd-promotion-window .gwd-title[data-v-79f90a80] {\n  font-size: 14px;\n  color: #333;\n  font-weight: bold;\n  height: 44px;\n  padding-left: 12px;\n  padding-right: 12px;\n  border-bottom: 1px solid #f0ecec;\n}\n.gwd-spliter[data-v-79f90a80] {\n  width: 218px;\n  border-bottom: 1px dashed #f0ecec;\n  margin-top: 4px;\n}\n.gwd-promo-item[data-v-79f90a80] {\n  margin-top: 4px;\n  width: 234px;\n  height: 98px;\n  padding: 8px;\n  box-sizing: border-box;\n}\n.gwd-promo-item[data-v-79f90a80]:hover {\n  box-shadow: 0px 6px 12px 0px rgba(50, 85, 104, 0.1), 0px -1px 4px 0px rgba(50, 85, 104, 0.05);\n}\n.gwd-promo-item img[data-v-79f90a80] {\n  width: 82px;\n  height: 82px;\n  border-radius: 4px;\n  border: 1px solid #e6e9eb;\n}\n.gwd-promo-item .gwd-pd-title[data-v-79f90a80] {\n  height: 32px;\n  line-height: 16px;\n  display: -webkit-box;\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp: 2;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  font-size: 12px;\n  color: #111;\n  word-break: break-all;\n}\n.gwd-promo-item .gwd-pinfo[data-v-79f90a80] {\n  line-height: 16px;\n  max-height: 32px;\n  display: -webkit-box;\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp: 2;\n  font-size: 12px;\n  color: #ff4449;\n  overflow: hidden;\n  word-break: break-all;\n  text-overflow: ellipsis;\n}\n.gwd-list[data-v-79f90a80]::-webkit-scrollbar {\n  width: 4px;\n  height: 4px;\n}\n", ""]);

// exports


/***/ }),

/***/ 28551:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var isObject = __webpack_require__(20034);

var $String = String;
var $TypeError = TypeError;

// `Assert: Type(argument) is Object`
module.exports = function (argument) {
  if (isObject(argument)) return argument;
  throw new $TypeError($String(argument) + ' is not an object');
};


/***/ }),

/***/ 28582:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-inline-row gwd-align gwd-jd-rank",
    class: _vm.additionalClass,
    style: `margin-top: ${_vm.mt}px`
  }, [_c("img", {
    staticClass: "gwd-icon-rank",
    attrs: {
      src: "https://cdn.gwdang.com/images/extensions/jdRanking/icon.svg",
      alt: ""
    }
  }), _vm._v(" "), _vm.additionalClass === "gwd-w217" ? _c("img", {
    staticStyle: {
      "margin-left": "-2px"
    },
    attrs: {
      src: "https://cdn.gwdang.com/images/extensions/jdRanking/text.svg",
      alt: ""
    }
  }) : _vm._e(), _vm._v(" "), _vm.additionalClass === "gwd-w210" || _vm.additionalClass === "gwd-w235" ? _c("img", {
    staticStyle: {
      "margin-left": "2px",
      "margin-right": "1px"
    },
    attrs: {
      src: "https://cdn.gwdang.com/images/extensions/jdRanking/text-w210.svg",
      alt: ""
    }
  }) : _vm._e(), _vm._v(" "), _c("hr", {
    staticClass: "gwd-vline"
  }), _vm._v(" "), _c("div", {
    staticClass: "gwd-rank-list gwd-row gwd-align",
    class: _vm.data.length > 1 ? "gwd-rotate" : "",
    staticStyle: {
      position: "relative"
    }
  }, [_c("a", {
    staticClass: "gwd-row gwd-align gwd-rank-first",
    attrs: {
      title: _vm.data[0].rname,
      href: _vm.data[0].rurl,
      target: "_blank"
    }
  }, [_c("span", {
    staticClass: "gwd-font11"
  }, [_c("span", {
    staticClass: "gwd-mw"
  }, [_vm._v(_vm._s(_vm.data[0].rname))]), _vm.data[0].rank ? _c("span", [_vm._v("第" + _vm._s(_vm.data[0].rank) + "名")]) : _vm._e()])]), _vm._v(" "), _vm.data.length > 1 ? _c("div", {
    staticClass: "gwd-rank-addition"
  }, _vm._l(_vm.addition, function (item) {
    return _c("a", {
      key: item.rurl,
      attrs: {
        title: item.rname,
        href: item.rurl,
        target: "_blank"
      }
    }, [_c("span", {
      staticClass: "gwd-font11 gwd-mw"
    }, [_vm._v(_vm._s(item.rname))])]);
  }), 0) : _vm._e()]), _vm._v(" "), _c("form", {
    staticStyle: {
      display: "none"
    },
    attrs: {
      action: _vm.debugMode ? `https://localdev.gwdang.com:3000/v2/ext/jd_rank` : `https://www.gwdang.com/v2/ext/jd_rank`,
      method: "post",
      target: "_blank"
    }
  }, [_c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.content,
      expression: "content"
    }],
    attrs: {
      type: "hidden",
      name: "products"
    },
    domProps: {
      value: _vm.content
    },
    on: {
      input: function ($event) {
        if ($event.target.composing) return;
        _vm.content = $event.target.value;
      }
    }
  }), _vm._v(" "), _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.search,
      expression: "search"
    }],
    attrs: {
      type: "hidden",
      name: "search"
    },
    domProps: {
      value: _vm.search
    },
    on: {
      input: function ($event) {
        if ($event.target.composing) return;
        _vm.search = $event.target.value;
      }
    }
  }), _vm._v(" "), _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.rankName,
      expression: "rankName"
    }],
    attrs: {
      type: "hidden",
      name: "rank"
    },
    domProps: {
      value: _vm.rankName
    },
    on: {
      input: function ($event) {
        if ($event.target.composing) return;
        _vm.rankName = $event.target.value;
      }
    }
  }), _vm._v(" "), _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.from,
      expression: "from"
    }],
    attrs: {
      type: "hidden",
      name: "from"
    },
    domProps: {
      value: _vm.from
    },
    on: {
      input: function ($event) {
        if ($event.target.composing) return;
        _vm.from = $event.target.value;
      }
    }
  }), _vm._v(" "), _c("input", {
    staticStyle: {
      display: "inline-block",
      "font-size": "20px",
      color: "#666"
    },
    attrs: {
      type: "submit",
      value: "测试",
      id: `gwd-jdrank-submit-${_vm.id}`
    }
  })])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 28755:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
module.exports = __webpack_require__.p + "images/extensions/build/06198aba3991ae675287.svg";

/***/ }),

/***/ 28839:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(44490);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("21d79e37", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 28845:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);
var call = __webpack_require__(69565);
var ArrayBufferViewCore = __webpack_require__(94644);
var lengthOfArrayLike = __webpack_require__(26198);
var toOffset = __webpack_require__(58229);
var toIndexedObject = __webpack_require__(48981);
var fails = __webpack_require__(79039);

var RangeError = globalThis.RangeError;
var Int8Array = globalThis.Int8Array;
var Int8ArrayPrototype = Int8Array && Int8Array.prototype;
var $set = Int8ArrayPrototype && Int8ArrayPrototype.set;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;

var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails(function () {
  // eslint-disable-next-line es/no-typed-arrays -- required for testing
  var array = new Uint8ClampedArray(2);
  call($set, array, { length: 1, 0: 3 }, 1);
  return array[1] !== 3;
});

// https://bugs.chromium.org/p/v8/issues/detail?id=11294 and other
var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS && fails(function () {
  var array = new Int8Array(2);
  array.set(1);
  array.set('2', 1);
  return array[0] !== 0 || array[1] !== 2;
});

// `%TypedArray%.prototype.set` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.set
exportTypedArrayMethod('set', function set(arrayLike /* , offset */) {
  aTypedArray(this);
  var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);
  var src = toIndexedObject(arrayLike);
  if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS) return call($set, this, src, offset);
  var length = this.length;
  var len = lengthOfArrayLike(src);
  var index = 0;
  if (len + offset > length) throw new RangeError('Wrong length');
  while (index < len) this[offset + index] = src[index++];
}, !WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG);


/***/ }),

/***/ 28874:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
module.exports = __webpack_require__.p + "images/extensions/build/d0229c177074a0b8a798.png";

/***/ }),

/***/ 29280:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _default = exports.A = {
  props: ['title', 'priceInfo', 'priceInfoCopy', 'link']
};

/***/ }),

/***/ 29340:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(3362);
const request = __webpack_require__(49388);
const userData = __webpack_require__(74222);
const priceCheck = __webpack_require__(78878);
const monitor = __webpack_require__(89084);
const inventoryCheck = __webpack_require__(19777);
const tbCompare2 = __webpack_require__(97353);
const log = __webpack_require__(35743);
const communicate = __webpack_require__(79560);
const loadCss = __webpack_require__(39277);
const utils = __webpack_require__(30888);
const globalCondition = __webpack_require__(41761);
const extConsole = __webpack_require__(7129);
__webpack_require__(58531);
if (!console.error) {
  console.error = function () {};
}
const getPermanInfo = () => {
  // 一些cookie信息获取， 比如email 针对一些飞提交商店版本插件， 插件的设置信息也是用cookie保存的
  let url = `${G.server}/brwext/permanent_id?version=2&default_style=${G.default_style}&referrer=${encodeURIComponent(document.referrer)}`;
  request.get(url).then(data => {
    if (data) {
      (__webpack_require__(76904).checked)(G.dp.dpId).then(res => {
        if (res.data && res.data.qr_api) {
          G.qrApi = res.data.qr_api;
        }
        if (res.code === 0 || res.error_code === 1000) {
          /** 用户是否登录 */
          G.userLogin = false;
          utils.setLocal('userLogin', null);
        } else if (res.code !== undefined) {
          /** 商品收藏状态 */
          G.productChecked = res.data;
          G.userLogin = true;
          utils.setLocal('userLogin', true);
          (__webpack_require__(57031).renderAgain)();
          $(document).trigger('checkfavor');
        }
        globalCondition.setMet('userLoginChecked');
        (__webpack_require__(41761).setMet)('checked_data_got');
        // 加载中间部分收藏降价提醒
        //require('standard/module/miniFavor').init()
        // 加载顶部
        (__webpack_require__(24753).init)();
        // 收藏模块
        (__webpack_require__(57652)/* .init */ .Ts)();
      });
      if (data.email && data.email.indexOf('%') > -1) {
        data.email = decodeURIComponent(data.email);
      }
      G.email = data.email;
      utils.setLocal('force', JSON.stringify(data.force));
      utils.setLocal('email', data.email);
      $(document).trigger('checkfavor');
    }
  });
};
const editData = (style, data) => {
  // 针对b2c数据的提前处理
  if (G.aliSite) return data;
  if (data.b2c && data.b2c.length !== 0) {
    if (style === 'top') {
      let storeLen = data.b2c.store.length;
      for (let i = storeLen - 1; i >= 0; i--) {
        if (data.b2c.store[i].is_third && data.b2c.store[i].shop_name) {
          data.b2c.store[i].site_name2 = data.b2c.store[i].site_name;
          data.b2c.store[i].site_name = data.b2c.store[i].site_name.replace("第三方", "") + '-' + data.b2c.store[i].shop_name;
        }
        data.b2c.store[i].price = (Number(data.b2c.store[i].price) / 100).toFixed(2);
        data.b2c.store[i].price2 = data.b2c.store[i].price;
        if (!data.b2c.store[i].title || !data.b2c.store[i].img_url) {
          data.b2c.store.splice(i, 1);
        }
      }
      data.b2c.store2 = data.b2c.store.slice(0, 6);
      let productLen = data.b2c.product.length;
      for (let i = productLen - 1; i >= 0; i--) {
        if (data.b2c.product[i].is_third && data.b2c.product[i].shop_name) {
          data.b2c.product[i].site_name2 = data.b2c.product[i].site_name;
          data.b2c.product[i].site_name = data.b2c.product[i].site_name.replace("第三方", "") + '-' + data.b2c.product[i].shop_name;
        }
        let pitem = data.b2c.product[i];
        if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) {
          pitem.promo2 = [];
          pitem.coupon2 = [];
          pitem.yushou2 = [];
          for (let k = 0; k < pitem.promotions.length; k++) {
            if (pitem.promotions[k].type === "promo") {
              if (pitem.promotions[k].tag === '预售') {
                pitem.yushou2.push(pitem.promotions[k].text);
              } else {
                pitem.promo2.push(pitem.promotions[k].text);
              }
            } else {
              pitem.coupon2.push(pitem.promotions[k].text);
            }
          }
          if (pitem.promo2.length === 0) pitem.promo2 = null;
          if (pitem.coupon2.length === 0) pitem.coupon2 = null;
          if (pitem.yushou2.length === 0) pitem.yushou2 = null;
        }
        data.b2c.product[i].price = (Number(data.b2c.product[i].price) / 100).toFixed(2);
        if (!data.b2c.product[i].title || !data.b2c.product[i].img_url) {
          data.b2c.product.splice(i, 1);
        }
      }
      data.b2c.min_price = (Number(data.b2c.min_price) / 100).toFixed(2);
    } else {
      let storeLen = data.b2c.store.length;
      for (let i = storeLen - 1; i >= 0; i--) {
        if (!data.b2c.store[i].product) continue;
        let productiLen = data.b2c.store[i].product.length;
        for (let j = productiLen - 1; j >= 0; j--) {
          if (data.b2c.store[i].product[j].is_third && data.b2c.store[i].product[j].shop_name) {
            data.b2c.store[i].product[j].site_name2 = data.b2c.store[i].product[j].site_name;
            data.b2c.store[i].product[j].site_name = data.b2c.store[i].product[j].site_name.replace("第三方", "") + '-' + data.b2c.store[i].product[j].shop_name;
          }
          data.b2c.store[i].product[j].price = (Number(data.b2c.store[i].product[j].price) / 100).toFixed(2);
          data.b2c.store[i].product[j].l_price = (Number(data.b2c.store[i].product[j].l_price) / 100).toFixed(2);
          let pitem = data.b2c.store[i].product[j];
          if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) {
            pitem.promo2 = [];
            pitem.coupon2 = [];
            pitem.yushou2 = [];
            for (let k = 0; k < pitem.promotions.length; k++) {
              if (pitem.promotions[k].type === "promo") {
                if (pitem.promotions[k].tag === '预售') {
                  pitem.yushou2.push(pitem.promotions[k].text);
                } else {
                  pitem.promo2.push(pitem.promotions[k].text);
                }
              } else {
                pitem.coupon2.push(pitem.promotions[k].text);
              }
            }
            if (pitem.promo2.length === 0) pitem.promo2 = null;
            if (pitem.coupon2.length === 0) pitem.coupon2 = null;
            if (pitem.yushou2.length === 0) pitem.yushou2 = null;
          }
          if (!data.b2c.store[i].product[j].title || !data.b2c.store[i].product[j].img_url) {
            data.b2c.store[i].product.splice(j, 1);
          }
        }
      }
    }
  } else if (data.b2c_fuzzy && data.b2c_fuzzy.length !== 0) {
    let productLen = data.b2c_fuzzy.product.length;
    for (let i = productLen - 1; i >= 0; i--) {
      if (data.b2c_fuzzy.product[i].is_third && data.b2c_fuzzy.product[i].shop_name) {
        data.b2c_fuzzy.product[i].site_name2 = data.b2c_fuzzy.product[i].site_name;
        data.b2c_fuzzy.product[i].site_name = data.b2c_fuzzy.product[i].site_name.replace("第三方", "") + '-' + data.b2c_fuzzy.product[i].shop_name;
      }
      let pitem = data.b2c_fuzzy.product[i];
      if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) {
        pitem.promo2 = [];
        pitem.coupon2 = [];
        pitem.yushou2 = [];
        for (let k = 0; k < pitem.promotions.length; k++) {
          if (pitem.promotions[k].type === "promo") {
            if (pitem.promotions[k].tag === '预售') {
              pitem.yushou2.push(pitem.promotions[k].text);
            } else {
              pitem.promo2.push(pitem.promotions[k].text);
            }
          } else {
            pitem.coupon2.push(pitem.promotions[k].text);
          }
        }
        if (pitem.promo2.length === 0) pitem.promo2 = null;
        if (pitem.coupon2.length === 0) pitem.coupon2 = null;
        if (pitem.yushou2.length === 0) pitem.yushou2 = null;
      }
      data.b2c_fuzzy.product[i].price = (Number(data.b2c_fuzzy.product[i].price) / 100).toFixed(2);
      data.b2c_fuzzy.product[i].img_url2 = data.b2c_fuzzy.product[i].img_url && data.b2c_fuzzy.product[i].img_url.replace('s100x100', 's140x140');
      if (!data.b2c_fuzzy.product[i].title || !data.b2c_fuzzy.product[i].img_url) {
        data.b2c_fuzzy.product.splice(i, 1);
      }
    }
    data.b2c_fuzzy.min_price = (Number(data.b2c_fuzzy.min_price) / 100).toFixed(2);
  }
  return data;
};
let times = 0;
const renderMiniFavor = () => {
  times++;
  if (times > 1) {
    getPermanInfo();
    $(document).trigger('checkfavor');
  }
};
const getProductInfo = (style, callback) => {
  G.province_id = priceCheck.getSubStationId(G.dp.site);
  var debugData = G.debug ? '&debug=1' : '';
  if (G.noRealPrice) {
    G.dp.price = 0;
  }
  G.dp.inventory = inventoryCheck.init(G.site);
  let url = encodeURIComponent(G.dp.url);
  let name = encodeURIComponent(G.dp.name);
  let keyword = encodeURIComponent(G.dp.keyword);
  let skeyword = encodeURIComponent(G.dp.skeyword);
  let cat_id = typeof G.dp.cat_id != 'undefined' ? G.dp.cat_id : '';
  let pic = typeof G.dp.pic != 'undefined' ? encodeURIComponent(G.dp.pic) : '';
  let cat_name = encodeURIComponent(G.dp.cat_name);
  let brand_string = encodeURIComponent(G.dp.brand_string);
  // 这里两个接口，说传参数都差不多， 因为之前是一个接口， 为了速度提升， 后面改成了两个。
  // dp_query_latest 比价信息   prepare 当前商品的一些信息
  var dp_interfavce_url = `${G.server}/brwext/dp_query_latest?permanent_id=${G.p_id}&union=${G.union}&url=${url}&site=${G.dp.site}&isbn=${G.dp.isbn}&name=${name}&keyword=${keyword}&skeyword=${skeyword}&id=${G.dp.id}&price=${G.dp.price}&stock=${G.dp.inventory}&province_id=${G.province_id}&subsite_id=${G.subsite_id}&cat_id=${cat_id}&pic=${pic}&userid=${G.dp.userid}&shop_name=${G.dp.shop_name}&shop_addres=${G.dp.shop_addres}&cat_name=${cat_name}&brand_string=${brand_string}${debugData}&style=${style}&ingre=1`;
  var other_info_url = `${G.server}/brwext/prepare?permanent_id=${G.p_id}&union=${G.union}&url=${url}&site=${G.dp.site}&isbn=${G.dp.isbn}&name=${name}&keyword=${keyword}&skeyword=${skeyword}&id=${G.dp.id}&price=${G.dp.price}&stock=${G.dp.inventory}&province_id=${G.province_id}&subsite_id=${G.subsite_id}&cat_id=${cat_id}&pic=${pic}&userid=${G.dp.userid}&shop_name=${G.dp.shop_name}&shop_addres=${G.dp.shop_addres}&cat_name=${cat_name}&brand_string=${brand_string}${debugData}`;
  request.get(dp_interfavce_url).then(data => {
    (__webpack_require__(41761).setMet)('dp_query_latest_complete', data);
    (__webpack_require__(40067).init)(data.ingre);
    G.dp.dpId = data.dp.dp_id;
    data = editData(style, data);
    // 保存数据， 方便在其他地方使用。
    userData.set('dp_query', data);
    (__webpack_require__(41761).setMet)('dp_query_set');
    renderMiniFavor();
    callback(data);
  }).catch(e => {
    (__webpack_require__(7129).error)(e);
    callback(null);
  });
  request.get(other_info_url).then(data => {
    G.dp.dpId = data.now.dp_id;
    let code_server = data['code-server'] || {};
    userData.set('other_info', data);
    // 淘宝天猫比价  获取当前商品在淘宝天猫的同款/相似款数据
    tbCompare2.init();
    // 促销优惠券接口
    (__webpack_require__(91129).init)(data);
    // 工具条上的搜索框
    (__webpack_require__(51332).init)(data);
    // 中间嵌入部分的促销活动
    (__webpack_require__(36703).init)();
    renderMiniFavor();
    // 口碑
    (__webpack_require__(35418).init)();
    // 浏览历史
    (__webpack_require__(10738).init)();
    // 亚马逊全球海外购
    (__webpack_require__(99495).init)(data.now.dp_id);
    // 豆瓣
    (__webpack_require__(67625).show)(data.exact_arr.isbn, style);
    // 到手价计算器
    (__webpack_require__(49917).init)(data.now.dp_id);
    // require('standard/module/qrlink').init()
    $(document).trigger('minicom');
    (__webpack_require__(41761).setMet)('GwdDpIdGot', data.now.dp_id);
    log(`category:${G.logsite}:${data.now.dp_id}/${code_server.class_id}/`);
  }).catch(err => {
    (__webpack_require__(7129).error)(err);
    (__webpack_require__(35418).init)();
  });
};
const renderCss = async style => {
  $('html').addClass(`gwd_${G.site}`);
  $('html').addClass(`gwd_${style}`);
  $('html').addClass(`${G.from_device}`);
  $('html').attr('data-gwd-id', G.instanceId);
  if (style === 'top') {
    await loadCss.init('gwdang-notifier-new6.css');
  } else if (style === 'bottom') {
    await loadCss.init('gwdang-notifier-bottom-new6.css');
  }
};
const renderMainBar = style => {
  if (G.site === "steampowered") return;
  // 根据style不同  加载顶部或者底部
  let permanent = userData.get('permanent');
  if (permanent.setclock === '1') {
    (__webpack_require__(42056).init)(style);
  }
  if (style === 'top') {
    (__webpack_require__(18294).init)();
  } else if (style === 'bottom') {
    (__webpack_require__(75682).init2)();
  }
};
const getLocalPermanInfo = callback => {
  // 获取插件本地的配置信息
  let count = 0;
  window.gwd_G = G;
  communicate.on(data => {
    if (typeof data === 'string') {
      data = JSON.parse(data);
    }
    if (data.type === 'browser_setinfo') {
      count++;
      if (count > 1) {
        return;
      }
      data = data.value;
      G.allowBackgroundRequest = !!data.allowBackgroundRequest;
      G.canUseLocalLoginCheck = true;
      G.promotion = data.promotion;
      data.style = data.setStyle || 'top';
      if (data.localHost) G.localHost = data.localHost;
      if (data.user_extension_id) G.userid = data.user_extension_id;
      if (data.version) G.ext_v = data.version;
      if (data.email) G.email = data.email;
      if (data.force) {
        try {
          G.force = JSON.parse(data.force);
        } catch (e) {
          (__webpack_require__(7129).error)(e);
        }
      }
      userData.set('permanent', data);
      callback(data);
    }
  });
  communicate.trigger({
    'type': 'browser_setinfo'
  });
};
const renderModule = style => {
  // 价格走势
  (__webpack_require__(87268)/* .init */ .T)();
  // 从页面上获取当前商品的一些信息 价格  标题 等信息
  getProductInfo(style, function (data) {
    // b2c比价 同款或者相似款
    (__webpack_require__(63368).init)(style, data);
    // 嵌入部分中间mini比价
    (__webpack_require__(75772).init)('b2c', data);
    // 顶部优惠券
    (__webpack_require__(11086).init)(data.dp.dp_id);
    // if (userData.get('other_info')) {
    //   require('./miniBar').renderMiniCom(data)
    // } else {
    //   $(document).on('minicom', function() {
    //     require('./miniBar').renderMiniCom(data)
    //   })
    // }

    (__webpack_require__(56678).init)();
    if (location.host.indexOf('.jd.com') > -1 || location.host.indexOf('suning') > -1) (__webpack_require__(47552).init2)();else if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) (__webpack_require__(47552).init)();
    setTimeout(function () {
      (__webpack_require__(79963).init)();
      (__webpack_require__(2035)/* ["default"] */ .A).init();
    }, 2500);
    // 分享淘口令
    (__webpack_require__(40761).init)();
    (__webpack_require__(79702).init)();
    monitor.init();
  });
};
const backgroundReqReady = () => {
  if (G.site === 'tmall' || G.site === 'taobao-95095' || G.site === 'ai-taobao' || G.site === 'taobao') {
    // 淘宝天猫用别人的接口
    (__webpack_require__(98324).init2)();
    // 淘宝同款
    (__webpack_require__(19778).init)();
  }
  if (location.host.indexOf('amazon') > -1 && location.host !== 'www.amazon.cn') {
    // 海外亚马逊用别人接口获取价格走势数据
    (__webpack_require__(23752).ready)();
  }
  // 图片搜索
  (__webpack_require__(80339).ready)();
  if (G.site === "aliexpress") (__webpack_require__(20669).init)();
};
let urltimes = 0;
const now = Date.now();
const listenUrlChange = () => {
  if (urltimes > 99999) return;
  urltimes++;
  let url = location.href;
  if (window.gwdExtReloadListener) {
    clearInterval(window.gwdExtReloadListener);
  }
  window.gwdExtReloadListener = setInterval(function () {
    if (url !== location.href || window.extNeedReload) {
      //location.reload();
      if (!$('.gwd-minibar-bg').length && Date.now() - now < 1000) {
        extConsole.warn('reload interrupted: no minibar');
        return;
      }
      window.extNeedReload = false;
      extConsole.warn('reload start', url !== location.href);
      (__webpack_require__(5286).clear)();
      (__webpack_require__(41761).clearAll)();
      $('.gwd-minibar-bg').remove();
      $('#gwdang_main').remove();
      $('#bjd_bottom_detail').remove();
      (__webpack_require__(67298).clear)();
      $(G.dval).remove();
      url = location.href;
      G = __webpack_require__(53558);
      (__webpack_require__(18793).clear)();
      if (window.gwdActivity) {
        window.gwdActivity = false;
      }
      if (navigator.userAgent.indexOf('Firefox') > -1) {
        __webpack_require__(32413);
      } else {
        __webpack_require__(21992);
      }
      (__webpack_require__(92834).init)();
      if (location.host === 'm.fine3q.com') (__webpack_require__(94226).init)();
      (__webpack_require__(86421).getRate)(() => {
        (__webpack_require__(32752).common)(data => {
          if (data && data.result.address.indexOf('北京') > -1) {
            G.forbidGiftMoney = true;
          }
          (__webpack_require__(12826).get)(() => {
            var cnzz = __webpack_require__(5300);
            if (cnzz) cnzz.init(G.gwd_cnzz);
            G.clientImgSame = true;
            (__webpack_require__(29340).init)();
          });
        });
      });
      clearInterval(window.gwdExtReloadListener);
    }
  }, 200);
};
module.exports.init = (skipUrlListen = false) => {
  if (Date.now() < new Date('2024-08-08').getTime()) {
    G.from_device = '360server';
  }
  (__webpack_require__(76904).reset)();
  (__webpack_require__(1373).reset)();
  G.instanceId = parseInt(Math.random() * 10000);
  __webpack_require__(5267);
  (__webpack_require__(76928).init)();
  extConsole.log('main_chm init');
  if (!skipUrlListen) {
    if (G.site === 'amazon' || G.site === '6pm' || G.site === 'esprit' || G.site === 'lining' || G.site === 'samsung' || G.site === 'apple') {
      setTimeout(listenUrlChange, 200);
    }
  }
  loadExt();
};
const loadExt = () => {
  // 获取插件本地配置信息
  getLocalPermanInfo(async data => {
    // 记录日志 page_view表示pv
    log("page_view:" + G.logsite);
    // 加载插件所用到的css
    await renderCss(data.style);

    // steam现在不需要其他组件
    if (G.site === "steampowered" || G.site === 'epic') {
      let url = `${G.server}/brwext/permanent_id?version=2&default_style=${G.default_style}&referrer=${encodeURIComponent(document.referrer)}`;
      request.get(url).then((__webpack_require__(87268)/* .init */ .T));
      return;
    }
    (__webpack_require__(16180).init)();
    if (location.host.includes('.bilibili.com')) {
      return;
    }
    let pInfo = G.pageInfo;
    // 获取插件正则对当前页面链接的匹配结果， 是单品页还是非单品页
    if (pInfo.type === 1) {
      // 非单品页加载 列表页小标签  房源价格走势  列表页优惠券   实时抓取
      // require('standard/module/aiSearch').init()
      (__webpack_require__(16798).init)();
      (__webpack_require__(24931)/* .init */ .T)();
      (__webpack_require__(26902).init)();
      (__webpack_require__(82699).init)();
      if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) {
        (__webpack_require__(76710).init)();
      }
      if (location.host.indexOf('.jd.com') > -1) {
        (__webpack_require__(37272).init)();
      }
      // if (location.host === 'search.jd.com' || location.host === 'list.jd.com') {
      //   require('standard/module/jdSearchEnhance').init()
      // }
      (__webpack_require__(22485).init)();
      // require('common/infoCollect/tmallAndTaobao').init()
      // require('common/setForceInfo')();
    } else if (pInfo.type === 2) {
      // 单品页  插件主要功能都聚集在此
      // 加载主工具条
      (__webpack_require__(16798).init)();
      extConsole.log(G);
      // G.secSDK = require('common/thirdPartyApis/tbextSupport')
      (__webpack_require__(14535).reset)();
      (__webpack_require__(35930).init)();
      if (location.hostname.includes('.1688.com')) return;
      G.style = data.style;
      renderMainBar(data.style);
      // 加载各个模块ma
      renderModule(data.style);
      // 加载中间嵌入部分插件
      (__webpack_require__(82110).init)();
      // 监听事件
      (__webpack_require__(7053).listenBar)(data.style);
      // 向插件的background 发送请求准备
      backgroundReqReady();
      // 一键海淘
      if (location.host === 'www.amazon.com' || location.host === 'www.amazon.co.jp' || G.site === '6pm') (__webpack_require__(71991).init)();
      log('product_page_visit:' + G.logsite);
      // 获取页面上的促销信息
      (__webpack_require__(41718).init)();
      (__webpack_require__(307).init)();
      // require('common/live').init()
      setTimeout(() => {
        // require('common/infoCollect/aliSku').init();
        // require('common/infoCollect/aliSkuBatch').init();
        // require('common/infoCollect/jdPromoData').init()
        (__webpack_require__(97628)/* .init */ .T)();
        (__webpack_require__(18728).init)();
        if (G.site === 'taobao' || G.site === 'tmall') {
          // require('standard/module/tbSameGroup').init()
          (__webpack_require__(1373).init)();
        }
        // require('standard/module/appSameQr').init()
      }, 3000);
      if (G.aliSite) {
        // require('standard/module/aliMobilePriceNotifier').init()
        (__webpack_require__(82366)/* .init */ .T)();
      }
      if (G.site === '360buy') {
        G.getReview = (page = 1) => {
          (__webpack_require__(82788).get)(pageConfig.product.skuid, page).then(console.log);
        };
        G.testSku = async () => {
          const skuIdList = pageConfig.product.colorSize.map(x => x.skuId + '-3');
          const priceInfos = (await request.post(`${G.server}/extension/ProductFilter?scene=skulist`, {
            dp_ids: skuIdList.join(','),
            dp_id: pageConfig.product.skuid + '-3'
          }, true)).list;
          console.log(priceInfos);
        };
      }
      if (G.site === '360buy' || G.aliSite) {
        (__webpack_require__(72674).init)();
        (__webpack_require__(83783).init)();
        // require('standard/module/aiCompare/aiCompare')
        // require('standard/module/aiRate/rate').init()
      }
      if (G.site === 'amazon' || G.site === 'vipshop') {
        (__webpack_require__(72674).init)();
      }
    }
    (__webpack_require__(37796).init)(pInfo.type);
    (__webpack_require__(85187).init)();
  });
};

// G.mtop = require('common/customMtop')

window.disable_gwd_privacy = function () {
  communicate.trigger({
    type: 'disable_gwd_privacy'
  });
};
window.enable_gwd_privacy = function () {
  communicate.trigger({
    type: 'enable_gwd_privacy'
  });
};

/***/ }),

/***/ 29416:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _vm.show ? _c("a", {
    staticClass: "gwd-inline-row gwd-align gwd-jcc",
    class: `gwd-${_vm.type} gwd-${_vm.site}`,
    attrs: {
      "data-elid": _vm.id,
      target: "_blank",
      href: _vm.link
    }
  }, [_c("span", [_vm._v(_vm._s(_vm.type === "coupon" ? "优惠券" : "补贴红包") + "：¥" + _vm._s(typeof _vm.value === "number" ? _vm.value.toFixed(2).replace(".00", "") : _vm.value))]), _vm._v(" "), _c("img", {
    staticStyle: {
      width: "12px",
      height: "12px",
      "margin-left": "8px",
      "z-index": "1"
    },
    attrs: {
      src: __webpack_require__(538),
      alt: ""
    }
  }), _vm._v(" "), _vm._m(0)]) : _vm._e();
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-tooltip"
  }, [_c("span", {
    staticClass: "gwd-font11"
  }, [_vm._v("点击领取")])]);
}];
render._withStripped = true;

/***/ }),

/***/ 29801:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

const Mode = __webpack_require__(30208)
const NumericData = __webpack_require__(24357)
const AlphanumericData = __webpack_require__(11433)
const ByteData = __webpack_require__(25822)
const KanjiData = __webpack_require__(24861)
const Regex = __webpack_require__(67044)
const Utils = __webpack_require__(56886)
const dijkstra = __webpack_require__(76320)

/**
 * Returns UTF8 byte length
 *
 * @param  {String} str Input string
 * @return {Number}     Number of byte
 */
function getStringByteLength (str) {
  return unescape(encodeURIComponent(str)).length
}

/**
 * Get a list of segments of the specified mode
 * from a string
 *
 * @param  {Mode}   mode Segment mode
 * @param  {String} str  String to process
 * @return {Array}       Array of object with segments data
 */
function getSegments (regex, mode, str) {
  const segments = []
  let result

  while ((result = regex.exec(str)) !== null) {
    segments.push({
      data: result[0],
      index: result.index,
      mode: mode,
      length: result[0].length
    })
  }

  return segments
}

/**
 * Extracts a series of segments with the appropriate
 * modes from a string
 *
 * @param  {String} dataStr Input string
 * @return {Array}          Array of object with segments data
 */
function getSegmentsFromString (dataStr) {
  const numSegs = getSegments(Regex.NUMERIC, Mode.NUMERIC, dataStr)
  const alphaNumSegs = getSegments(Regex.ALPHANUMERIC, Mode.ALPHANUMERIC, dataStr)
  let byteSegs
  let kanjiSegs

  if (Utils.isKanjiModeEnabled()) {
    byteSegs = getSegments(Regex.BYTE, Mode.BYTE, dataStr)
    kanjiSegs = getSegments(Regex.KANJI, Mode.KANJI, dataStr)
  } else {
    byteSegs = getSegments(Regex.BYTE_KANJI, Mode.BYTE, dataStr)
    kanjiSegs = []
  }

  const segs = numSegs.concat(alphaNumSegs, byteSegs, kanjiSegs)

  return segs
    .sort(function (s1, s2) {
      return s1.index - s2.index
    })
    .map(function (obj) {
      return {
        data: obj.data,
        mode: obj.mode,
        length: obj.length
      }
    })
}

/**
 * Returns how many bits are needed to encode a string of
 * specified length with the specified mode
 *
 * @param  {Number} length String length
 * @param  {Mode} mode     Segment mode
 * @return {Number}        Bit length
 */
function getSegmentBitsLength (length, mode) {
  switch (mode) {
    case Mode.NUMERIC:
      return NumericData.getBitsLength(length)
    case Mode.ALPHANUMERIC:
      return AlphanumericData.getBitsLength(length)
    case Mode.KANJI:
      return KanjiData.getBitsLength(length)
    case Mode.BYTE:
      return ByteData.getBitsLength(length)
  }
}

/**
 * Merges adjacent segments which have the same mode
 *
 * @param  {Array} segs Array of object with segments data
 * @return {Array}      Array of object with segments data
 */
function mergeSegments (segs) {
  return segs.reduce(function (acc, curr) {
    const prevSeg = acc.length - 1 >= 0 ? acc[acc.length - 1] : null
    if (prevSeg && prevSeg.mode === curr.mode) {
      acc[acc.length - 1].data += curr.data
      return acc
    }

    acc.push(curr)
    return acc
  }, [])
}

/**
 * Generates a list of all possible nodes combination which
 * will be used to build a segments graph.
 *
 * Nodes are divided by groups. Each group will contain a list of all the modes
 * in which is possible to encode the given text.
 *
 * For example the text '12345' can be encoded as Numeric, Alphanumeric or Byte.
 * The group for '12345' will contain then 3 objects, one for each
 * possible encoding mode.
 *
 * Each node represents a possible segment.
 *
 * @param  {Array} segs Array of object with segments data
 * @return {Array}      Array of object with segments data
 */
function buildNodes (segs) {
  const nodes = []
  for (let i = 0; i < segs.length; i++) {
    const seg = segs[i]

    switch (seg.mode) {
      case Mode.NUMERIC:
        nodes.push([seg,
          { data: seg.data, mode: Mode.ALPHANUMERIC, length: seg.length },
          { data: seg.data, mode: Mode.BYTE, length: seg.length }
        ])
        break
      case Mode.ALPHANUMERIC:
        nodes.push([seg,
          { data: seg.data, mode: Mode.BYTE, length: seg.length }
        ])
        break
      case Mode.KANJI:
        nodes.push([seg,
          { data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }
        ])
        break
      case Mode.BYTE:
        nodes.push([
          { data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }
        ])
    }
  }

  return nodes
}

/**
 * Builds a graph from a list of nodes.
 * All segments in each node group will be connected with all the segments of
 * the next group and so on.
 *
 * At each connection will be assigned a weight depending on the
 * segment's byte length.
 *
 * @param  {Array} nodes    Array of object with segments data
 * @param  {Number} version QR Code version
 * @return {Object}         Graph of all possible segments
 */
function buildGraph (nodes, version) {
  const table = {}
  const graph = { start: {} }
  let prevNodeIds = ['start']

  for (let i = 0; i < nodes.length; i++) {
    const nodeGroup = nodes[i]
    const currentNodeIds = []

    for (let j = 0; j < nodeGroup.length; j++) {
      const node = nodeGroup[j]
      const key = '' + i + j

      currentNodeIds.push(key)
      table[key] = { node: node, lastCount: 0 }
      graph[key] = {}

      for (let n = 0; n < prevNodeIds.length; n++) {
        const prevNodeId = prevNodeIds[n]

        if (table[prevNodeId] && table[prevNodeId].node.mode === node.mode) {
          graph[prevNodeId][key] =
            getSegmentBitsLength(table[prevNodeId].lastCount + node.length, node.mode) -
            getSegmentBitsLength(table[prevNodeId].lastCount, node.mode)

          table[prevNodeId].lastCount += node.length
        } else {
          if (table[prevNodeId]) table[prevNodeId].lastCount = node.length

          graph[prevNodeId][key] = getSegmentBitsLength(node.length, node.mode) +
            4 + Mode.getCharCountIndicator(node.mode, version) // switch cost
        }
      }
    }

    prevNodeIds = currentNodeIds
  }

  for (let n = 0; n < prevNodeIds.length; n++) {
    graph[prevNodeIds[n]].end = 0
  }

  return { map: graph, table: table }
}

/**
 * Builds a segment from a specified data and mode.
 * If a mode is not specified, the more suitable will be used.
 *
 * @param  {String} data             Input data
 * @param  {Mode | String} modesHint Data mode
 * @return {Segment}                 Segment
 */
function buildSingleSegment (data, modesHint) {
  let mode
  const bestMode = Mode.getBestModeForData(data)

  mode = Mode.from(modesHint, bestMode)

  // Make sure data can be encoded
  if (mode !== Mode.BYTE && mode.bit < bestMode.bit) {
    throw new Error('"' + data + '"' +
      ' cannot be encoded with mode ' + Mode.toString(mode) +
      '.\n Suggested mode is: ' + Mode.toString(bestMode))
  }

  // Use Mode.BYTE if Kanji support is disabled
  if (mode === Mode.KANJI && !Utils.isKanjiModeEnabled()) {
    mode = Mode.BYTE
  }

  switch (mode) {
    case Mode.NUMERIC:
      return new NumericData(data)

    case Mode.ALPHANUMERIC:
      return new AlphanumericData(data)

    case Mode.KANJI:
      return new KanjiData(data)

    case Mode.BYTE:
      return new ByteData(data)
  }
}

/**
 * Builds a list of segments from an array.
 * Array can contain Strings or Objects with segment's info.
 *
 * For each item which is a string, will be generated a segment with the given
 * string and the more appropriate encoding mode.
 *
 * For each item which is an object, will be generated a segment with the given
 * data and mode.
 * Objects must contain at least the property "data".
 * If property "mode" is not present, the more suitable mode will be used.
 *
 * @param  {Array} array Array of objects with segments data
 * @return {Array}       Array of Segments
 */
exports.fromArray = function fromArray (array) {
  return array.reduce(function (acc, seg) {
    if (typeof seg === 'string') {
      acc.push(buildSingleSegment(seg, null))
    } else if (seg.data) {
      acc.push(buildSingleSegment(seg.data, seg.mode))
    }

    return acc
  }, [])
}

/**
 * Builds an optimized sequence of segments from a string,
 * which will produce the shortest possible bitstream.
 *
 * @param  {String} data    Input string
 * @param  {Number} version QR Code version
 * @return {Array}          Array of segments
 */
exports.fromString = function fromString (data, version) {
  const segs = getSegmentsFromString(data, Utils.isKanjiModeEnabled())

  const nodes = buildNodes(segs)
  const graph = buildGraph(nodes, version)
  const path = dijkstra.find_path(graph.map, 'start', 'end')

  const optimizedSegs = []
  for (let i = 1; i < path.length - 1; i++) {
    optimizedSegs.push(graph.table[path[i]].node)
  }

  return exports.fromArray(mergeSegments(optimizedSegs))
}

/**
 * Splits a string in various segments with the modes which
 * best represent their content.
 * The produced segments are far from being optimized.
 * The output of this function is only used to estimate a QR Code version
 * which may contain the data.
 *
 * @param  {string} data Input string
 * @return {Array}       Array of segments
 */
exports.rawSplit = function rawSplit (data) {
  return exports.fromArray(
    getSegmentsFromString(data, Utils.isKanjiModeEnabled())
  )
}


/***/ }),

/***/ 30029:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-promo-normal[data-v-5cc5ff78] {\n  line-height: initial;\n  text-align: left;\n}\n.gwd-promo-normal .gwd-tp-1[data-v-5cc5ff78] {\n  display: inline-flex;\n  align-items: center;\n  height: 12px;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-date[data-v-5cc5ff78] {\n  font-size: 12px;\n  color: #999999;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-priceType[data-v-5cc5ff78] {\n  font-size: 12px;\n  color: #999999;\n  margin-left: 6px;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-priceType .gwd-price[data-v-5cc5ff78] {\n  color: #e4393c;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-badge[data-v-5cc5ff78] {\n  margin-left: 4px;\n  display: inline-block;\n  text-align: center;\n  width: 48px;\n  height: 24px;\n  line-height: 19px;\n  vertical-align: middle;\n  border: 2px solid #5acffa;\n  color: #5acffa;\n  font-size: 16px;\n  border-radius: 2px;\n  box-sizing: border-box;\n  transform: scale(0.5);\n  transform-origin: center left;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-lowest[data-v-5cc5ff78] {\n  background: #3dbc6b;\n  border: 2px solid #3dbc6b;\n  color: white;\n}\n", ""]);

// exports


/***/ }),

/***/ 30075:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(94612);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("4c52edae", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 30077:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(56004);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("f7be3236", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 30208:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

const VersionCheck = __webpack_require__(21878)
const Regex = __webpack_require__(67044)

/**
 * Numeric mode encodes data from the decimal digit set (0 - 9)
 * (byte values 30HEX to 39HEX).
 * Normally, 3 data characters are represented by 10 bits.
 *
 * @type {Object}
 */
exports.NUMERIC = {
  id: 'Numeric',
  bit: 1 << 0,
  ccBits: [10, 12, 14]
}

/**
 * Alphanumeric mode encodes data from a set of 45 characters,
 * i.e. 10 numeric digits (0 - 9),
 *      26 alphabetic characters (A - Z),
 *   and 9 symbols (SP, $, %, *, +, -, ., /, :).
 * Normally, two input characters are represented by 11 bits.
 *
 * @type {Object}
 */
exports.ALPHANUMERIC = {
  id: 'Alphanumeric',
  bit: 1 << 1,
  ccBits: [9, 11, 13]
}

/**
 * In byte mode, data is encoded at 8 bits per character.
 *
 * @type {Object}
 */
exports.BYTE = {
  id: 'Byte',
  bit: 1 << 2,
  ccBits: [8, 16, 16]
}

/**
 * The Kanji mode efficiently encodes Kanji characters in accordance with
 * the Shift JIS system based on JIS X 0208.
 * The Shift JIS values are shifted from the JIS X 0208 values.
 * JIS X 0208 gives details of the shift coded representation.
 * Each two-byte character value is compacted to a 13-bit binary codeword.
 *
 * @type {Object}
 */
exports.KANJI = {
  id: 'Kanji',
  bit: 1 << 3,
  ccBits: [8, 10, 12]
}

/**
 * Mixed mode will contain a sequences of data in a combination of any of
 * the modes described above
 *
 * @type {Object}
 */
exports.MIXED = {
  bit: -1
}

/**
 * Returns the number of bits needed to store the data length
 * according to QR Code specifications.
 *
 * @param  {Mode}   mode    Data mode
 * @param  {Number} version QR Code version
 * @return {Number}         Number of bits
 */
exports.getCharCountIndicator = function getCharCountIndicator (mode, version) {
  if (!mode.ccBits) throw new Error('Invalid mode: ' + mode)

  if (!VersionCheck.isValid(version)) {
    throw new Error('Invalid version: ' + version)
  }

  if (version >= 1 && version < 10) return mode.ccBits[0]
  else if (version < 27) return mode.ccBits[1]
  return mode.ccBits[2]
}

/**
 * Returns the most efficient mode to store the specified data
 *
 * @param  {String} dataStr Input data string
 * @return {Mode}           Best mode
 */
exports.getBestModeForData = function getBestModeForData (dataStr) {
  if (Regex.testNumeric(dataStr)) return exports.NUMERIC
  else if (Regex.testAlphanumeric(dataStr)) return exports.ALPHANUMERIC
  else if (Regex.testKanji(dataStr)) return exports.KANJI
  else return exports.BYTE
}

/**
 * Return mode name as string
 *
 * @param {Mode} mode Mode object
 * @returns {String}  Mode name
 */
exports.toString = function toString (mode) {
  if (mode && mode.id) return mode.id
  throw new Error('Invalid mode')
}

/**
 * Check if input param is a valid mode object
 *
 * @param   {Mode}    mode Mode object
 * @returns {Boolean} True if valid mode, false otherwise
 */
exports.isValid = function isValid (mode) {
  return mode && mode.bit && mode.ccBits
}

/**
 * Get mode object from its name
 *
 * @param   {String} string Mode name
 * @returns {Mode}          Mode object
 */
function fromString (string) {
  if (typeof string !== 'string') {
    throw new Error('Param is not a string')
  }

  const lcStr = string.toLowerCase()

  switch (lcStr) {
    case 'numeric':
      return exports.NUMERIC
    case 'alphanumeric':
      return exports.ALPHANUMERIC
    case 'kanji':
      return exports.KANJI
    case 'byte':
      return exports.BYTE
    default:
      throw new Error('Unknown mode: ' + string)
  }
}

/**
 * Returns mode from a value.
 * If value is not a valid mode, returns defaultValue
 *
 * @param  {Mode|String} value        Encoding mode
 * @param  {Mode}        defaultValue Fallback value
 * @return {Mode}                     Encoding mode
 */
exports.from = function from (value, defaultValue) {
  if (exports.isValid(value)) {
    return value
  }

  try {
    return fromString(value)
  } catch (e) {
    return defaultValue
  }
}


/***/ }),

/***/ 30241:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var Highcharts = __webpack_require__(58174);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports["default"] = void 0;
__webpack_require__(72712);
__webpack_require__(26910);
__webpack_require__(3362);
var _DataUpdateMixin = _interopRequireDefault(__webpack_require__(91920));
var _BarTrendInfo = _interopRequireDefault(__webpack_require__(863));
var _jQuery = _interopRequireDefault(__webpack_require__(10333));
var _util = _interopRequireDefault(__webpack_require__(30888));
var _globalCondition = _interopRequireDefault(__webpack_require__(41761));
const timeUtil = __webpack_require__(14396);
const extConsole = __webpack_require__(7129);
let dataPostedIn = null;
const miniChartHeight = 200;
const newTrend = (() => {
  let today = new Date();
  let chart;
  let renderedComponents = {};
  const viewTest = __webpack_require__(73256);
  const parsePrice = __webpack_require__(86421);
  const getMidDay = __webpack_require__(64737);
  const $ = __webpack_require__(10333);
  const template = __webpack_require__(26133);
  const cnzz = __webpack_require__(5300);
  const log = __webpack_require__(35743);
  const util = __webpack_require__(30888);
  const userData = __webpack_require__(74222);
  const countryConfig = __webpack_require__(22209);
  const globalCondition = __webpack_require__(41761);
  let chartBox = `#biggraph_chrome`;
  const oneDay = 3600 * 24 * 1000;
  let needFold = false;
  let foldValue; // 折叠后的原价线Y轴坐标
  let foldChange; // Y轴坐标与实际原价之差
  let coudanSeries;
  let toolTipDom, moneyInfo;
  let discountInfo = {},
    discountInfo2 = {};
  let nopuzzlePpromo,
    lowHighInfoObj = {},
    hideCoudanManage = {};
  let noTbTrend;
  let halfYearExist = false;
  Highcharts.wrap(Highcharts.Tooltip.prototype, 'hide', function (proceed) {
    proceed && proceed.apply && proceed.apply(this);
    this.chart.tooltip.options.onHide && this.chart.tooltip.options.onHide.apply && this.chart.tooltip.options.onHide.apply(this);
  });
  let currentSymbol = {
    folded: 'smallRect',
    extended: 'rect'
  };
  if (G.IE7 || G.IE8) {
    currentSymbol.folded = 'circle';
    currentSymbol.extended = 'circle';
  }
  let currentShowing = 'plotAll';
  let showingCenter = false;

  // 控制商城的显示
  let showingManager = (() => {
    let showList = [];
    return {
      inList: name => showList.indexOf(name) > -1,
      add: name => {
        if (showList.indexOf(name) > -1) {
          return;
        } else {
          showList.push(name);
        }
      },
      remove: name => {
        let pos = showList.indexOf(name);
        if (pos > -1) {
          showList.splice(pos, 1);
        }
      },
      clear: () => {
        showList = [];
      }
    };
  })();

  // 用于为商城分配颜色
  let generateColorForStore = (() => {
    let colorList = {};
    colorList['评论数'] = '#ca60a6';
    let availableColors = ['#5ACFFB', '#eb46eb', '#ffad06', '#21c1db', '#b88ae6', '#b37036', '#b9db0f', '#ffd91c'];
    let i = 0;
    return storeName => {
      if (colorList[storeName]) {
        return colorList[storeName];
      } else {
        if (i < availableColors.length) {
          colorList[storeName] = availableColors[i++];
          return colorList[storeName];
        } else {
          colorList[storeName] = '#' + parseInt(Math.random() * 256 * 256 * 256).toString(16);
          return colorList[storeName];
        }
      }
    };
  })();

  // qrcode log
  const doLog = (() => {
    let hasLogged = false;
    return () => {
      if (!hasLogged) {
        hasLogged = true;
        cnzz.log('trend-qrcode-show');
        log('trend-qrcode-show');
      }
    };
  })();
  const copy = origin => JSON.parse(JSON.stringify(origin));
  let originPrice = 0;
  let showHour = false;
  let store;
  let currentTime;
  let originData;
  let currentLineShowing;
  let plotWidth;
  originPrice = __webpack_require__(23891);

  // 原始的价格数据大多是一天一个数据的,但是如果数据点过少,鼠标滑动时就会有卡顿感,因此绘制走势图时需要增大数据点的数目
  // 填充好数据后，由于走势图上的点是连续的,和原始数据并不一致
  // 例如3天的价格分别为1、2、3,走势图上第一天和第二天之间的数据为1.5,但是实际上并不存在这个价格,鼠标移到该位置时在tooltip中应该显示为1
  // 此函数用于从实际走势图中的位置找到对应的原始价格
  let getNearestPriceFromOriginData = (name, price, position, time) => {
    let store = originData.store.filter(i => i.name === name)[0];
    if (store == undefined) {
      return price;
    }
    let arr = store[currentLineShowing];
    if (!arr) {
      return price;
    }
    if (!store.all_equal_short && currentLineShowing !== 'short_day_line' && time) {
      let firstDay, days;
      switch (currentLineShowing) {
        case 'all_line':
          firstDay = store.all_line_begin_time;
          break;
        case 'half_year_line':
          firstDay = store.half_year_line_time;
          break;
        case 'month_line':
          firstDay = store.month_line_time;
          break;
      }
      // firstDay = new Date(firstDay);
      // firstDay = new Date(firstDay.getYear() + 1900, firstDay.getMonth(), firstDay.getDate());
      // days = time - firstDay.getTime();

      const everyDayPrice = {};
      arr.forEach((i, idx) => {
        everyDayPrice[timeUtil.localeDateString(firstDay + idx * oneDay)] = i;
      });

      // return arr[parseInt(days / oneDay)];
      return everyDayPrice[timeUtil.localeDateString(time)];
    }
    //return arr[diff.indexOf(minVal)];
    let intPos = parseInt(arr.length * position - 1);
    if (intPos < 0) {
      intPos += 1;
    }
    let toSelect;
    if (intPos >= 1) {
      toSelect = [arr[intPos - 1], arr[intPos], arr[intPos + 1]];
    } else {
      toSelect = [arr[intPos], arr[intPos + 1]];
    }
    toSelect = toSelect.filter(x => x !== undefined);
    let diff = toSelect.map(i => Math.abs(i - price));
    let p = diff.indexOf(Math.min.apply(null, diff));
    return toSelect[p];
  };
  let mousePosition = {
    x: 0,
    y: 0
  };
  Highcharts.setOptions({
    global: {
      timezoneOffset: 0
    }
  });

  // Highcharts选项
  let obj = {
    chart: {
      renderTo: `plotArea_chrome`,
      type: 'line',
      animation: false,
      marginRight: 290,
      marginLeft: 70,
      backgroundColor: 'white',
      events: {
        load: function () {
          let firstSeries = this.series[0];
          let pointStart = this.xAxis[0].max - oneDay * 5;
          if (!firstSeries) {
            extConsole.warn('no first series', dataPostedIn);
          }
          if (firstSeries.options.pointStart > pointStart) {
            pointStart = firstSeries.options.pointStart;
          }
          const waterMarkSrc = showingCenter ? 'https://cdn.gwdang.com/images/extensions/logoMarkBigCenter@2x.png' : 'https://cdn.gwdang.com/images/extensions/logoMarkBigTop@2x.png';
          const img = this.renderer.image(waterMarkSrc, '50%', this.xAxis[0].top + 45, showingCenter ? 210 : 300, showingCenter ? 64 : 91);
          img.add();
          if (showingCenter) {
            img.attr({
              transform: 'translate(-80, 0)'
            });
          } else {
            img.attr({
              transform: 'translate(-150, 0)'
            });
          }
          let series = this.series;
          // 让一个外部变量可访问，方便控制显示隐藏
          if (series && series[1] && series[1].name === '凑单到手价') {
            coudanSeries = series[1];
          }
          plotWidth = this.plotWidth;
          let theData = series[0].data;
          // theData.forEach((i) => {
          //   if (i.y !== originPrice) {
          //     originSeriesShouldShow = true;
          //   }
          // });
          let days = 0;
          let chartShowing = showingCenter && G.centerSeries ? G.centerSeries : currentShowing;
          switch (chartShowing) {
            case 'plotYear':
              days = 180;
              break;
            case 'plotMonth':
              days = 30;
              break;
            case 'plot5Day':
              days = 5;
              break;
          }
          if (chartShowing !== 'plotAll') {
            this.xAxis[0].update({
              min: currentTime - days * oneDay,
              max: currentTime
            });
          }
          let currentShowingSeries = series.filter(item => item.visible && item.name !== 'max' && item.name !== 'min');
          if (currentShowingSeries.length === 0) {
            return;
          }
          let arr = currentShowingSeries.map(i => i.options.pointStart).filter(i => i);
          let minStart = Math.min.apply(null, arr);
          if (chartShowing !== 'plotAll') {
            minStart = currentTime - days * oneDay;
          }
          for (let i = 0; i < series.length; i++) {
            if (series[i].data.length) {
              theData = series[i].data;
              break;
            }
          }
          let lastPoint = theData[theData.length - 1];
          this.xAxis[0].update({
            min: minStart,
            max: lastPoint ? lastPoint.x : today.getTime()
          });
          let lmin, lmax;
          lmin = Math.floor(this.yAxis[0].dataMin);
          lmax = Math.ceil(this.yAxis[0].dataMax);
          let interv2 = Math.pow(10, lmin.toString().length - 2);
          let tkinterv;
          if (this.yAxis[0].dataMax < 1) {
            lmin = this.yAxis[0].dataMin;
            lmax = this.yAxis[0].dataMax;
            tkinterv = (lmax - lmin) / 2;
          } else if (this.yAxis[0].dataMin === this.yAxis[0].dataMax) {
            lmin = Math.floor(lmin / interv2) * interv2;
            lmax = lmin * 2;
            lmin = 0;
            tkinterv = parseInt((lmax - lmin) / 2);
          } else {
            lmin = Math.floor(lmin / interv2) * interv2;
            lmax = Math.ceil(lmax / interv2) * interv2;
            tkinterv = parseInt((lmax - lmin) / 5);
          }
          // 调整最大最小值 使曲线看起来分布均匀
          let tkinterv2 = Math.pow(10, parseInt(tkinterv).toString().length - 1);
          if (tkinterv < 1) {
            tkinterv2 = tkinterv;
          }
          tkinterv = Math.ceil(tkinterv / tkinterv2) * tkinterv2;
          this.yAxis[0].update({
            min: lmin,
            max: lmax,
            tickInterval: tkinterv || 1
          });

          // if (this.yAxis.length > 1) {
          //   if (this.yAxis[0].dataMin == this.yAxis[0].dataMax) {
          //     let interv = parseInt(this.yAxis[0].dataMin * 0.2);
          //     if (interv > 100) {
          //       interv = Math.round(interv / 100) * 100
          //     }
          //     this.yAxis[0].update({
          //       min: parseInt(this.yAxis[0].dataMin * 0.5),
          //       max: parseInt(this.yAxis[0].dataMin * 1.5),
          //       tickInterval: interv
          //     });
          //   }
          //   this.yAxis[1].update({
          //     min: this.yAxis[1].dataMin,
          //     max: this.yAxis[1].dataMax,
          //     tickInterval: parseInt(this.yAxis[1].dataMax / 5) || 1
          //   });
          //   this.xAxis[0].update({
          //     min: this.series[1].data[0].category
          //   });
          // }
        }
      }
    },
    credits: {
      enabled: false
    },
    title: {
      text: null,
      style: {
        fontWeight: 'bold',
        fontFamily: 'Microsoft YaHei',
        fontSize: 16
      }
    },
    xAxis: {
      offset: 0,
      type: 'datetime',
      dateTimeLabelFormats: {
        minute: '%m/%d',
        hour: '%m/%d',
        day: '%m/%d',
        week: '%m/%d',
        month: '%y/%m'
      },
      crosshair: {
        dashStyle: 'ShortDash',
        snap: false,
        zIndex: 999,
        color: '#444'
      },
      minorGridLineColor: '#dfdfdf',
      labels: {
        rotation: 0,
        y: 30,
        style: {
          fontSize: '12px',
          fontFamily: 'Helvetica',
          color: '#969899'
        },
        align: 'center'
      },
      gridLineColor: '#e6e9eb',
      lineColor: '#e6e9eb',
      gridLineWidth: 1,
      tickLength: 0,
      minTickInterval: oneDay,
      startOnTick: false,
      tickPositioner: function () {
        let positions = [];
        let min = this.min;
        let max = this.max;
        let minDate = new Date(min);
        let tick = 0;
        let mode;
        let months = 1;
        if (max - min > 300 * oneDay) {
          let s = new Date(1900 + minDate.getYear(), minDate.getMonth() + 1, 2);
          tick = s.getTime();
          let widthPerMonth = plotWidth / ((max - min) / (30 * oneDay));
          if (!widthPerMonth) return;
          while (months * widthPerMonth < 100) {
            months++;
          }
          mode = 'nmonth';
        } else if (max - min > 64 * oneDay) {
          let s = new Date(1900 + minDate.getYear(), minDate.getMonth() + 1, 2);
          tick = s.getTime();
          mode = 'month';
        } else if (max - min > 10 * oneDay) {
          tick = min;
          mode = 'day';
        } else {
          let s = new Date(1900 + minDate.getYear(), minDate.getMonth(), minDate.getDate() + 1);
          tick = s.getTime();
          mode = 'hour';
        }
        while (tick - 3600000 * 15 <= max) {
          let s;
          let s1;
          positions.push(tick - 3600000 * 15);
          switch (mode) {
            case 'month':
              s = new Date(tick);
              s1 = new Date(1900 + s.getYear(), s.getMonth() + 1, 2);
              tick = s1.getTime();
              break;
            case 'day':
              tick += 5 * oneDay;
              break;
            case 'hour':
              tick += oneDay;
              break;
            case 'nmonth':
              s = new Date(tick);
              s1 = new Date(1900 + s.getYear(), s.getMonth() + months, 2);
              tick = s1.getTime();
              break;
          }
        }
        if (showingCenter) {
          let i = 0;
          while (positions[i] < this.min) i++;
          positions = [positions[i], positions[positions.length - 1]];
        }
        switch (mode) {
          case 'month':
          case 'nmonth':
            positions.info = {
              unitName: 'month',
              higherRanks: {}
            };
            break;
          default:
            positions.info = {
              unitName: 'day',
              higherRanks: {}
            };
        }
        // positions.forEach((i) => {
        //
        // });
        return positions;
      }
    },
    yAxis: {
      offset: 0,
      labels: {
        align: 'right',
        style: {
          fontSize: '12px',
          fontFamily: 'Helvetica',
          color: '#969899'
        },
        formatter: function () {
          let valStr;
          if (!needFold || this.value < foldValue) {
            valStr = Highcharts.numberFormat(this.value, 2);
          } else {
            valStr = Highcharts.numberFormat(this.value + foldChange, 2);
          }
          // if (valStr[valStr.length - 1] === '.') {
          //   valStr += '00';
          // }
          valStr = valStr.replace(',', '');
          if (Number(valStr) > 9999) {
            valStr = Number(valStr);
          } else if (Number(valStr) > 10) {
            valStr = parseInt(valStr);
          }
          const min = this.axis.tickPositions[0];
          if (this.axis.tickInterval === 1 && min === parseInt(min)) {
            valStr = valStr.toString().replace('.00', '');
          }
          // let valNum = Number(valStr.replace(/,/g, ''))
          // if (valNum/100000 > 1) {
          //   valStr = valNum/10000 + '万'
          // }
          return valStr;
        }
      },
      align: 'high',
      gridLineColor: '#e6e9eb',
      minorGridLineWidth: 0,
      title: {
        text: null,
        rotation: 0,
        y: -20,
        x: -13,
        align: 'high',
        offset: 0,
        style: {
          fontFamily: 'Microsoft YaHei',
          fontSize: 12,
          color: '#969899'
        }
      }
    },
    legend: {
      enabled: false
    },
    plotOptions: {
      series: {
        turboThreshold: 0,
        states: {
          hover: {
            enabled: true,
            halo: {
              size: 0
            }
          }
        },
        marker: {
          enabled: false
        },
        dataGrouping: {
          enabled: false
        },
        animation: false
      },
      line: {
        states: {
          hover: {
            enabled: true,
            lineWidth: 1
          }
        }
      }
    },
    tooltip: {
      shadow: false,
      shared: true,
      valueSuffix: '元',
      hideDelay: 0,
      shape: 'square',
      followPointer: false,
      dateTimeLabelFormats: {
        day: '%Y/%m/%e',
        minute: '%Y/%m/%e',
        second: '%Y/%m/%e',
        hour: '%Y/%m/%e %H:%M'
      },
      useHTML: true,
      positioner: function (boxWidth, boxHeight, point) {
        if (point.plotX + boxWidth > this.chart.plotWidth + 12) {
          return {
            x: point.plotX - boxWidth + this.chart.plotLeft,
            y: this.chart.plotHeight / 2 - boxHeight / 2 + 45
          };
        }
        return {
          x: point.plotX + this.chart.plotLeft,
          y: this.chart.plotHeight / 2 - boxHeight / 2 + 45
        };
      },
      onHide: function () {
        renderTooltip('hide');
      },
      formatter: function () {
        let tipObj = {};
        tipObj.x = this.x;
        let x = new Date(this.x);
        let year = x.getFullYear();
        let month = x.getMonth() + 1;
        let day = x.getDate();
        let hour = x.getHours();
        let hasdiscount;
        if (month < 10) month = '0' + month;
        if (day < 10) day = '0' + day;
        // showHour = true;
        let timeStr = `${year}/${month}/${day}` + (showHour ? ` ${hour}:00` : '');
        tipObj.time = timeStr.replace(/\//g, '.');
        let result1 = "";
        let filtered = this.points.sort((a, b) => {
          let s = getNearestPriceFromOriginData(b.series.name, b.y, (b.point.index + 1) / b.series.data.length, b.x - 8 * 3600000) - getNearestPriceFromOriginData(a.series.name, a.y, (a.point.index + 1) / a.series.data.length, b.x - 8 * 3600000);
          return s;
        }).filter(item => {
          if (item.series.name === 'max' || item.series.name === 'min') {
            return false;
          }
          return true;
        });
        if (filtered.length === 0) {
          return false;
        }
        filtered.forEach((i, index) => {
          let showName = i.point.series.name;
          let showPrice = getNearestPriceFromOriginData(showName, i.point.y, (i.point.index + 1) / i.point.series.data.length, i.point.x);
          showPrice = Highcharts.numberFormat(showPrice, 2);
          if (showPrice[showPrice.length - 1] === '.') {
            showPrice += '00';
          }
          if (showName == '页面价') {
            tipObj.pagePrice = showPrice.replace(/,/g, '');
          } else if (showName == '凑单到手价') {
            tipObj.addpro = showPrice.replace(/,/g, '');
          }
          if (showName === "凑单到手价" && i.y === filtered[0].y && i.y === Number(tipObj.pagePrice)) {
            result1 += "";
          } else {
            if (showName === "凑单到手价") hasdiscount = true;
          }
        });
        if (hasdiscount) {
          let promoObj = discountInfo[timeUtil.localeDateString(this.points[0].x)];
          let promotion = promoObj && promoObj["promotion"] || "";
          let quan = promoObj && promoObj["coupon"] && promoObj["coupon"].replace("领券:", "");
          let promoStr = "";
          if (quan) {
            if (quan.match(/\d+-\d+/)) {
              let quanarr = quan.split('-');
              promoStr += `券:&nbsp;满${quanarr[0]}减${quanarr[1]}` + ' ';
            } else {
              promoStr += `券:&nbsp;${quan}` + ' ';
            }
          }
          if (promotion) {
            promoStr += `促:&nbsp;${promotion}`;
          }
          tipObj.promo1 = promoStr;
        }
        if (noTbTrend) {
          (__webpack_require__(7129).log)('noTbTrend');
          let time = util.getTimeNumber(new Date().getTime(), '5');
          // 不用highchart默认的tooltip  使用自定义的
          if (timeStr === time) {
            (__webpack_require__(7129).log)('noTbTrend A');
            renderTooltip(null, tipObj);
          } else {
            (__webpack_require__(7129).log)('noTbTrend B');
            renderTooltip('hide');
          }
        } else {
          renderTooltip(null, tipObj);
        }
      },
      backgroundColor: 'rgba(255,255,255,0.94)',
      borderColor: '#d5d5d5',
      borderWidth: 1,
      style: {
        padding: 0
      }
    },
    series: []
  };
  if (G.IE7 || G.IE8) {
    obj.tooltip.style = {
      width: '400px'
    };
  }
  let getEarlistDay = store => {
    if (!store.length) {
      return false;
    }
    if (store.length === 1) {
      return store[0].all_line_begin_time;
    }
    return store.reduce((prev, next) => {
      if (typeof prev == 'number') {
        return Math.min(prev, next.all_line_begin_time);
      } else {
        return Math.min(prev.all_line_begin_time, next.all_line_begin_time);
      }
    });
  };
  let seriesList = {
    plotAll: [],
    plotYear: [],
    plotMonth: [],
    plot5Day: [],
    plotSpecial: [],
    days180: []
  };
  let setXAxisMinInterval = x => {
    obj.xAxis.minTickInterval = x;
  };
  let qrlogged = false;
  let lastShow = Date.now();
  let showSeries = (series, isCenter = false, obj, minibar) => {
    extConsole.log('showSeries', series, isCenter, obj, minibar);
    let t = Date.now();
    if (t - lastShow < 100) {
      return;
    }
    lastShow = t;
    if (!seriesList[series] || !seriesList[series].length) {
      let k = Object.keys(seriesList).filter(x => seriesList[x].length);
      series = k[0];
    }
    extConsole.log('loginLayer showSeries', series, isCenter, obj, minibar);
    extConsole.log('loginLayer hide');
    extConsole.log('loginLayer dpid', G.dp.dpId);
    $('#gwd-topText').hide();
    $('.gwd-blurLayer').removeClass('gwd-blurLayer');
    let series2 = series;
    showingCenter = isCenter;
    if (hideCoudanManage && hideCoudanManage[series]) {
      $('#mini_price_history_detail_btn').addClass('no-review');
      $('.discount-price-re').hide();
      $('#bar_trend_legend_btn').addClass('no-review');
    } else if (hideCoudanManage) {
      $('#mini_price_history_detail_btn').removeClass('no-review');
      $('.discount-price-re').show();
      $('#bar_trend_legend_btn').removeClass('no-review');
    }
    if (series === 'center') {
      series = 'plotAll';
    }
    if (series !== 'days180') {
      // 加载概况 最高最低等信息
      renderBarTrendInfo(series, isCenter);
    }
    obj.series = seriesList[series];
    if (series === 'days180') series = 'plotYear';
    $('.floatButtons>a').removeClass('activePlot');
    $('.floatButtons>#' + series).addClass('activePlot');
    //new Highcharts.Chart(obj);
    let theSeries = seriesList[series2];
    if (series === 'plot5Day') {
      setXAxisMinInterval(oneDay);
      showHour = true;
      currentLineShowing = 'short_day_line';
    } else {
      showHour = false;
    }
    if (series === 'plotMonth') {
      setXAxisMinInterval(5 * oneDay);
      currentLineShowing = 'month_line';
    }
    $('.gwd-not-login').removeClass('gwd-not-login');
    if (isCenter) {
      obj.chart.marginBottom = 23;
    }
    if (series === 'plotAll') {
      let dayLength = Math.max.apply(null, theSeries.map(i => i.data.length));
      if (!G.email) {
        // $('.max-min-priinfo').addClass('gwd-not-login')
        $('.barTrendInfoBox').addClass('gwd-not-login');
      } else {
        $('.gwd-not-login').removeClass('gwd-not-login');
      }

      //在非淘宝天猫网站上，如果全部的时间超过180天，需要登陆
      if (store[0].half_year_line) {
        halfYearExist = true;
      }
      if (halfYearExist) {
        if (theSeries[0].pointStart < new Date().getTime() - 180 * 24 * 3600000 && !G.userLogin) {
          extConsole.log('loginLayer show', isCenter, series2, theSeries[0]);
          $('#gwd-topText').show();
          if ((__webpack_require__(4873).getChromeVersion)() < 53) {
            $('#gwd-topText').css('background', 'white');
          }
          const LoginBox = (__webpack_require__(36664)["default"]);
          new Vue({
            el: '#gwd-trend-login',
            render: h => h(LoginBox)
          });
          $(`#plotArea_chrome`).addClass('gwd-blurLayer');
        }
      }
      if (dayLength > 30) {
        setXAxisMinInterval(30 * oneDay);
      } else if (dayLength > 5) {
        setXAxisMinInterval(5 * oneDay);
      } else {
        setXAxisMinInterval(oneDay);
      }
      currentLineShowing = 'all_line';
      if (store[0].all_equal_short || store[0].all_line.length < 5 && store.length == 1) {
        currentLineShowing = 'short_day_line';
        showHour = true;
        if (store[0].all_line.length < 5 && store.length == 1) {
          obj.series[0].pointStart = today.getTime() + 8 * 3600000 - (store[0].all_line.length - 1) * oneDay;
        }
      }
    }
    if (series === 'plotYear') {
      setXAxisMinInterval(30 * oneDay);
      currentLineShowing = 'half_year_line';
    }
    if (isCenter) {
      //currentShowing = 'center';
    } else {
      currentShowing = series;
    }
    chart = new Highcharts.Chart(obj);
    window.gwd_chart = chart;
    if (isCenter) {
      let s = chart.series[0].data;
      let lastPoint = s[s.length - 1];
      if (chart.series.length > 1) {
        s = chart.series[1].data;
        if (s[s.length - 1].plotX === lastPoint.plotX && s[s.length - 1].plotY !== lastPoint.plotY) {
          lastPoint = s[s.length - 1];
        }
      }
      (__webpack_require__(7129).log)(lastPoint);
      if (lastPoint.y) {
        globalCondition.setMet('lastPointPos', lastPoint);
      }
    }
  };
  let enablePlot = plotName => {
    $('.floatButtons>' + plotName).removeClass('bjd-hidden');
  };
  let doBind = () => {
    $('.floatButtons').on('click', 'a', e => {
      let isCenter = false;
      if ($(e.target).parents('#mini_price_history_detail').length) {
        G.centerSeries = e.target.id;
        isCenter = true;
      }
      showSeries(e.target.id, isCenter, util.deepCopy(obj));
    });
  };
  const doMainBind = () => {
    let hidecoudanBar;
    $('#bar_trend_legend_btn').on('click', e => {
      let id = $(e.target).attr('data-id');
      if (!id) id = $(e.target).parent().attr('data-id');
      if (id === 'plotSpecial') {
        if (!hidecoudanBar) {
          hidecoudanBar = true;
          coudanSeries.hide();
          $('#bar_trend_legend_btn').addClass('hideserires');
        } else {
          coudanSeries.show();
          hidecoudanBar = false;
          $('#bar_trend_legend_btn').removeClass('hideserires');
        }
      }
    });
  };
  const doMiniBind = () => {
    let hidecoudan;
    $('#mini_price_history_detail_btn').on('click', e => {
      let id = $(e.target).attr('data-id');
      if (!id) id = $(e.target).parent().attr('data-id');
      if (id === 'plotSpecial') {
        if (!hidecoudan) {
          hidecoudan = true;
          coudanSeries.hide();
          $('#mini_price_history_detail_btn').addClass('hideserires');
        } else {
          coudanSeries.show();
          hidecoudan = false;
          $('#mini_price_history_detail_btn').removeClass('hideserires');
        }
      }
    });
  };
  let resetData = i => {
    return {
      y: i,
      marker: {
        enabled: false
      }
    };
  };
  // 加载价格走势最高最低信息

  const BarTrendInfo = (__webpack_require__(863)["default"]);
  let barTrendComp = null;
  let miniTrendComp = null;
  const renderBarTrendInfo = (series, isCenter) => {
    let showcoudan;
    let obj1 = lowHighInfoObj[series + '0'];
    if (!obj1) {
      obj1 = Object.keys(lowHighInfoObj)[0];
      obj1 = lowHighInfoObj[obj1];
    }
    if (typeof obj1.lowestDate === 'number') obj1.lowestDate = util.getTimeNumber(obj1.lowestDate);
    let obj2 = lowHighInfoObj[series + '1'];
    if (obj2) {
      if (obj2.Plowest < obj1.Plowest) showcoudan = true;
      if (typeof obj2.lowestDate === 'number') obj2.lowestDate = util.getTimeNumber(obj2.lowestDate);
      if (moneyInfo) {
        obj2.display_nowprice = obj2.nowprice ? moneyInfo[0] + obj2.nowprice : obj2.nowprice;
        obj2.display_Phighest = obj2.Phighest ? moneyInfo[0] + obj2.Phighest : obj2.Phighest;
        obj2.display_Plowest = obj2.Plowest ? moneyInfo[0] + obj2.Plowest : obj2.Plowest;
      } else {
        obj2.display_nowprice = '¥' + obj2.nowprice;
        obj2.display_Phighest = '¥' + obj2.Phighest;
        obj2.display_Plowest = '¥' + obj2.Plowest;
      }
    }
    if (moneyInfo) {
      obj1.display_nowprice = obj1.nowprice ? moneyInfo[0] + obj1.nowprice : obj1.nowprice;
      obj1.display_Phighest = obj1.Phighest ? moneyInfo[0] + obj1.Phighest : obj1.Phighest;
      obj1.display_Plowest = obj1.Plowest ? moneyInfo[0] + obj1.Plowest : obj1.Plowest;
    } else {
      obj1.display_nowprice = '¥' + obj1.nowprice;
      obj1.display_Phighest = '¥' + obj1.Phighest;
      obj1.display_Plowest = '¥' + obj1.Plowest;
    }
    let lowtle = `最低(单&nbsp;&nbsp;&nbsp;件):`;
    // if (G.aliSite) {
    //   lowtle = `最低:`;
    // } else if (!hideCoudanManage || !obj2) {
    //   lowtle = `最低(单件):`;
    // }
    let oinfo = userData.get('other_info');
    let dp_id = oinfo && oinfo.now && oinfo.now.dp_id;
    let promoUrl;
    if (dp_id) {
      promoUrl = `https://www.gwdang.com/trend/${dp_id}.html?static=true`;
    }
    if (obj1 && obj2 && obj1.Plowest === obj2.Plowest && obj1.lowestDate === obj2.lowestDate) {
      obj2 = null;
    }
    if (!G.h_nopuzzle_promo) {
      promoUrl = null;
    }
    let data = {
      d1: obj1,
      d2: obj2,
      aliSite: G.aliSite,
      promoUrl: promoUrl,
      lowtle: lowtle,
      showcoudan: showcoudan
    };
    if (isCenter) {
      const trendInfoList = [];
      const d1 = data.d1,
        d2 = obj2;
      const formatDate = dateStr => {
        // (2024.06.10) => 2024-06-10
        return dateStr.replace(/\./g, '-').replace(')', '').replace('(', '');
      };
      if (d1.nowprice) {
        trendInfoList.push({
          text: '现价: ' + d1.display_nowprice,
          color: '#3fc0c0'
        });
      } else {
        trendInfoList.push({
          text: '最高: ' + d1.display_Phighest,
          color: '#e4393c'
        });
        trendInfoList.push({
          text: `最低(单件):` + ' ' + d1.display_Plowest,
          color: '#35bd68',
          date: formatDate(d1.lowestDate)
        });
      }
      if (d2) {
        trendInfoList.push({
          text: '最低(多件): ' + d2.display_Plowest,
          color: '#e89607',
          date: formatDate(d2.lowestDate)
        });
      }
      miniTrendComp.trendInfoList = trendInfoList;
    }
    if (!$('.barTrendInfoBox').length) {
      let el = document.createElement('DIV');
      $('#gwdang-pri-trend-chart').append(el);
      barTrendComp = new Vue({
        el: el,
        data: data,
        render: function (h) {
          return h(BarTrendInfo, {
            props: {
              d1: this.d1,
              d2: this.d2,
              aliSite: this.aliSite,
              promoUrl: this.promoUrl,
              lowtle: this.lowtle,
              showcoudan: this.showcoudan
            }
          });
        }
      });
    } else {
      Object.keys(data).forEach(key => {
        barTrendComp[key] = data[key];
      });
    }
    window.barTrendComp = barTrendComp;
    globalCondition.setMet('promoUrl', promoUrl);
    setTimeout(function () {
      // 为了上下对齐， 需要手动计算一次上面的距离给下面
      let ppiW = $('#gwdang-trend-detail .opi-sp1').outerWidth() + $('#gwdang-trend-detail .opi-sp2').outerWidth();
      $('#gwdang-trend-detail .ppi-sp1').width(Math.ceil(ppiW) + 2);
    }, 100);
  };
  const getLowestDate2 = (ki, data) => {
    let store = data.store[ki];
    if (ki === 1) {
      let origin_st = data.store[0].all_line;
      if (store.all_line.join("") === origin_st.join("")) {
        return;
      }
    }
    getLowestDate('plotAll', ki, store.all_line, store.all_equal_short, store.all_line_begin_time, data.promo);
    if (store.half_year_line && store.half_year_line.length > 0) {
      if (ki === 1) {
        let origin_st = data.store[0].half_year_line;
        if (store.half_year_line.join("") === origin_st.join("")) {
          return;
        }
      }
      getLowestDate('plotYear', ki, store.half_year_line, store.all_equal_short, store.half_year_line_time, data.promo);
    }
    let newStsize = store.all_line.length;
    if (newStsize > 180) {
      newStsize = store.all_line.length;
      let newSt = store.all_line.slice(newStsize - 180);
      if (ki === 1) {
        let origin_st = data.store[0].all_line.slice(newStsize - 180);
        if (newSt.join("") === origin_st.join("")) {
          return;
        }
      }
      let pointStart = store.all_line_begin_time + 86400000 * (newStsize - 180);
      getLowestDate('days180', ki, newSt, store.all_equal_short, pointStart, data.promo);
    } else {
      if (ki === 1) {
        let origin_st = data.store[0].all_line;
        if (store.all_line.join("") === origin_st.join("")) {
          return;
        }
      }
      getLowestDate('days180', ki, store.all_line, store.all_equal_short, store.all_line_begin_time, data.promo);
    }
    if (store.month_line && store.month_line.length > 0) {
      if (ki === 1) {
        let origin_st = data.store[0].month_line;
        if (store.month_line.join("") === origin_st.join("")) {
          return;
        }
      }
      getLowestDate('plotMonth', ki, store.month_line, store.all_equal_short, store.month_line_time, data.promo);
    }
  };
  const getLowestDate = (id, ki, newSt, all_equal_short, pointStart, promo) => {
    // 计算最低最高点 以及最低点对应的时间
    id = id + ki.toString();
    lowHighInfoObj[id] = {};
    let Plowest, Phighest;
    let lowestDate;
    let lowestPromo, lowestPromoPprice, lowestCoupon;
    Plowest = Math.min.apply(Math, newSt);
    Phighest = Math.max.apply(Math, newSt);
    let low_index = newSt.lastIndexOf(Plowest);
    let low_index2 = low_index;
    let point_interval = 86400000;
    if (all_equal_short) point_interval = 3600000;
    lowestDate = pointStart + point_interval * low_index;
    if (ki == 1) {
      for (let k = low_index2; k > 0; k--) {
        if (newSt[k] === newSt[low_index2]) {
          // let str = (pointStart + point_interval * (k) - 3600000 * 8).toString()
          let str = timeUtil.localeDateString(pointStart + point_interval * k);
          if (Number(discountInfo2[str] && discountInfo2[str].price) == Plowest) {
            lowestDate = Number(str) + 3600000 * 8;
            break;
          }
        }
      }
      for (let i = 0; i < promo.length; i++) {
        // 获取最低点对应的促销活动
        if (promo[i].time * 1000 === lowestDate - 3600000 * 8) {
          lowestPromo = promo[i].msg.promotion;
          lowestCoupon = promo[i].msg.coupon && promo[i].msg.coupon.replace("领券:", "");
          lowestPromoPprice = (promo[i].ori_price / 100).toFixed(2);
        }
      }
    }
    lowHighInfoObj[id].lowestDate = lowestDate;
    lowHighInfoObj[id].Plowest = Number(Plowest).toFixed(2);
    lowHighInfoObj[id].Phighest = Number(Phighest).toFixed(2);
    if (lowHighInfoObj[id].Phighest === lowHighInfoObj[id].Plowest) {
      lowHighInfoObj[id].nowprice = lowHighInfoObj[id].Plowest;
    }
    if (lowestPromo || lowestCoupon) {
      let str = '';
      str += '页面价' + lowestPromoPprice + '&nbsp;&nbsp;';
      if (lowestCoupon) {
        if (lowestCoupon.match(/\d+-\d+/)) {
          let quanarr = lowestCoupon.split('-');
          str += `券: 满${quanarr[0]}减${quanarr[1]}` + '&nbsp;';
        } else {
          str += `券: ${lowestCoupon}` + ' ';
        }
      }
      if (lowestPromo) str = str + '促: ' + lowestPromo.replace(/，/g, ',');
      lowHighInfoObj[id].lowestPromo = str;
      lowHighInfoObj[id].lowestPromoPprice = lowestPromoPprice;
    }
  };
  let pageLow = {};
  // 在走势图上加label标签
  const addSeriesDataLabels = (data, nopuzzle_promo, key) => {
    let addpromo;
    if (data.name === '页面价' && nopuzzle_promo) {
      addpromo = true;
    }
    let obj = {
      enabled: true,
      borderColor: '#f2f2f2',
      borderWidth: 1,
      padding: 3,
      backgroundColor: 'rgba(255, 255, 255, 0.7)',
      shadow: false,
      borderRadius: 2,
      style: {
        fontWeight: 'normal',
        fontFamily: 'Helvetica',
        fontSize: '13px'
      },
      y: -3,
      formatter: function () {
        return '¥' + this.y.toString().replace(',', '');
      }
    };
    let list = data.data;
    let lowestIndex = 0;
    let highestIndex = 0;
    let low = list[0].y || 9999999;
    let high = list[0].y || 0;
    let allNull = true;
    for (let i = 0; i < list.length; i++) {
      if (i != 0 && i != list.length - 1 && list[i].y) {
        allNull = false;
      }
      if (addpromo) {
        for (let j = 0; j < nopuzzle_promo.length; j++) {
          if (data.pointStart + data.pointInterval * i - 3600000 * 19 === nopuzzle_promo[j].time * 1000) {
            if (nopuzzle_promo[j].showCircle) {
              list[i].marker = {
                enabled: true,
                fillColor: '#fff',
                lineColor: '#5ACFFB',
                radius: 2.5,
                lineWidth: 1,
                symbol: "circle"
              };
            }
          }
        }
      }
      if (list[i].y && list[i].y >= high) {
        high = list[i].y;
        highestIndex = i;
      }
      if (list[i].y && list[i].y <= low) {
        low = list[i].y;
        lowestIndex = i;
      }
    }
    if (data.name === '页面价') {
      pageLow[key] = list[lowestIndex].y;
    }
    if (allNull && data.name === '凑单到手价' && hideCoudanManage) {
      hideCoudanManage[key] = true;
      return;
    }
    if ((!list[lowestIndex - 1] || list[lowestIndex - 1].y === null) && (!list[lowestIndex + 1] || list[lowestIndex + 1].y === null)) {
      return;
    }
    if (data.name === '凑单到手价' && pageLow[key] === list[lowestIndex].y) {
      return;
    }
    if (highestIndex === lowestIndex) {
      obj.color = '#3FC0F0';
      // list[highestIndex].dataLabels = obj;
    } else {
      obj.color = '#E4393C';
      if (data.name === '页面价') {
        // list[highestIndex].dataLabels = obj;
        list[highestIndex].marker = {
          enabled: true,
          fillColor: 'rgba(228,57,60,1)',
          lineColor: 'rgba(228,57,60,0.3233)',
          radius: 2.5,
          lineWidth: 4,
          symbol: "circle"
        };
      }
      let obj2 = JSON.parse(JSON.stringify(obj));
      obj2.color = '#35BD68';
      let fillColor = 'rgba(53,189,104,1)';
      let lineColor = 'rgba(53,189,104,0.3233)';
      if (data.name === '凑单到手价') {
        obj2.color = '#FFC06D';
        fillColor = 'rgba(255,166,0,1)';
        lineColor = 'rgba(255,166,0,0.3233)';
      }
      // list[lowestIndex].dataLabels = obj2;
      list[lowestIndex].marker = {
        enabled: true,
        fillColor: fillColor,
        lineColor: lineColor,
        radius: 2.5,
        lineWidth: 4,
        symbol: "circle"
      };
    }
    if (noTbTrend) {
      list[list.length - 1].marker = {
        enabled: true,
        fillColor: '#5ACFFB',
        radius: 2.5,
        lineWidth: 0,
        symbol: "circle"
      };
    }
  };
  const TooltipView = (__webpack_require__(82350)/* ["default"] */ .A);
  const TooltipViewBar = (__webpack_require__(66614)/* ["default"] */ .A);
  const renderTooltip = (ishide, data) => {
    if (ishide) {
      $(toolTipDom).hide();
      return;
    }
    $(toolTipDom).show();
    if (data.addpro === data.pagePrice) data.addpro = null;
    if (nopuzzlePpromo) {
      for (let i = 0; i < nopuzzlePpromo.length; i++) {
        //if (data.x - 3600000 * 19 === nopuzzlePpromo[i].time * 1000) {
        if ((__webpack_require__(14396).isSameDay)(data.x, nopuzzlePpromo[i].time * 1000)) {
          let str = '';
          if (nopuzzlePpromo[i].msg.coupon) {
            let coupon = nopuzzlePpromo[i].msg.coupon;
            if (coupon.match(/\d+-\d+/)) {
              let quanarr = coupon.split('-');
              str += `券:&nbsp;满${quanarr[0]}减${quanarr[1]}` + ' ';
            } else {
              str += `券:&nbsp;${coupon}` + ' ';
            }
          }
          if (nopuzzlePpromo[i].msg.promotion) {
            str = str + '促:&nbsp;' + nopuzzlePpromo[i].msg.promotion + '  ';
          }
          data.directpro = (nopuzzlePpromo[i].price / 100).toFixed(2);
          data.promo2 = str;
          data.pagePrice = (nopuzzlePpromo[i].ori_price / 100).toFixed(2);
        }
      }
    }
    let html = __webpack_require__(37484);
    if (toolTipDom !== '#big_tooltip') {
      html = __webpack_require__(90987);
    }
    let domclass = '';
    if (data.directpro) domclass += 'directpro ';
    if (data.addpro) domclass += 'addpro ';
    if (data.addpro || data.directpro) {
      $(toolTipDom).addClass('bigheight');
    } else {
      $(toolTipDom).removeClass('bigheight');
    }
    if (moneyInfo) {
      let np = parsePrice(data.pagePrice, moneyInfo[2]);
      data.pagePrice = moneyInfo[0] + data.pagePrice + `(¥${np})`;
    } else {
      data.pagePrice = '¥' + data.pagePrice;
    }
    if (!renderedComponents[toolTipDom]) {
      let el = document.createElement('DIV');
      $(toolTipDom).empty().append(el);
      renderedComponents[toolTipDom] = new Vue({
        data: {
          data: data,
          domclass: domclass,
          aliSite: false
        },
        el: el,
        mixins: [_DataUpdateMixin.default],
        render: function (h) {
          return h(toolTipDom !== '#big_tooltip' ? TooltipViewBar : TooltipView, {
            props: {
              data: this.data,
              domclass: this.domclass,
              aliSite: this.aliSite
            }
          });
        }
      });
    } else {
      renderedComponents[toolTipDom].updateData({
        data: data,
        domclass: domclass,
        aliSite: false
      });
    }
  };
  // 两条线相同点部分去掉 避免重叠造成颜色污染
  const sliceData = data => {
    for (let pattern in data) {
      if (data[pattern].length && data[pattern].length > 1 && data[pattern][1].name === "凑单到手价") {
        let size = data[pattern][0].data.length;
        for (let i = 2; i < size; i++) {
          let a1 = data[pattern][0].data;
          let a2 = data[pattern][1].data;
          if (a1[i].y === a2[i].y && a1[i - 1].y === a2[i - 1].y && (a1[i - 2].y === a2[i - 2].y || a2[i - 2].y === null)) {
            a2[i - 1].y = null;
          }
        }
      }
    }
  };
  let hasBind = false;
  const exports = {
    init: async (data, currentPage = 'dpPage', target = false, plotLinesHideStatus = false) => {
      // 评论走势
      //renderReviewData(data)
      dataPostedIn = JSON.parse(JSON.stringify(data));
      lowHighInfoObj = {};
      $('#biggraph_chrome').remove();
      if ($('#plotArea_chrome').length) {
        $('.bjd-newtrend-dev').remove();
        $('#plotArea_chrome').remove();
        $('#gwd-topText').remove();
      }
      currentShowing = 'plotAll';
      renderedComponents = {};
      noTbTrend = false;
      seriesList = {
        plotAll: [],
        plotYear: [],
        plotMonth: [],
        plot5Day: [],
        plotSpecial: [],
        days180: []
      };
      originPrice = 0;
      let renderMiniTrendInfo;
      // 加载货币配置 获取当前网站货币符号
      moneyInfo = countryConfig.getMoneyInfo(G.logsite);
      if (moneyInfo[2] === 'CNY') moneyInfo = null;
      if (data.taobaoNoTrend) noTbTrend = true;
      if (data.store && data.store[0] && data.store[0].all_line.length === 0) return;
      $('body').append(`<div id="biggraph_chrome" style="position: absolute;left: -1000000px; top: -100000px;background: white;overflow: visible"></div>`);
      $(chartBox).append(viewTest);
      let biggraphState = '';
      doBind();
      if (target) {
        $(target).append($(chartBox));
      }

      // 顶部
      let time = 0;
      if (!hasBind) {
        $(`#${G.extName}-trend`).hover(() => {
          if (Date.now() - time < 1000) {
            return;
          }
          toolTipDom = '#big_tooltip_top';
          obj.chart.marginRight = 30;
          obj.chart.marginBottom = 23;
          obj.chart.marginTop = 4;
          obj.xAxis.labels.y = 22;
          if (moneyInfo) {
            obj.yAxis.title.text = moneyInfo[1];
            obj.yAxis.title.y = 176;
          }
          let num = parseInt(lowHighInfoObj['plotAll0'].Phighest).toString().length;
          obj.chart.marginLeft = 29 + 9 + parseInt(num * 6.8);
          obj.yAxis.labels.x = -9;
          obj.yAxis.title.x = -(9 + parseInt(num * 6.8) - 24);
          $(chartBox).css({
            left: 0,
            top: 0,
            bottom: 0,
            right: 0
          });
          // if (biggraphState === 'trend') return;
          let chartArea = $(`#${G.extName}-pri-trend-chart`);
          chartArea.append($(chartBox));
          biggraphState = 'trend';
          $('.floatButtons').show();
          $('#bjd-qrcode-trend').show();
          if ($('#bjd-qrcode-trend').length) {
            doLog();
          }
          $(chartBox).css({
            visibility: 'hidden'
          });
          window.setTimeout(() => {
            let width1 = $('.floatButtons').width();
            (__webpack_require__(7129).log)('float button width', width1);
            $('#bar_trend_legend_btn').css('right', width1 + 50 + 'px');
            showSeries(currentShowing, false, util.deepCopy(obj));
            let width = $(`#${G.extName}-pri-trend-chart`).width();
            chart.setSize(width, 182);
            plotWidth = chart.plotWidth;
            chart.axes[0].update(obj.xAxis);
            $(chartBox).css({
              visibility: 'visible'
            });
            doMainBind();
          }, 0);
        });
      }
      const renderMiniTrend = detail => {
        toolTipDom = '#big_tooltip';
        let lowest_obj = lowHighInfoObj['days1800'];
        let lowest_obj2, lowestDate, lowestDate2;
        if (data.store[1] && data.store[1].name === '凑单到手价') {
          lowest_obj2 = lowHighInfoObj['days1801'];
          lowestDate2 = lowest_obj2 && lowest_obj2.lowestDate;
          lowestDate2 = lowestDate2 && util.getTimeNumber(lowestDate2);
        }
        lowestDate = lowest_obj.lowestDate;
        if (G.aliSite && data.lowestTime) lowestDate = new Date(data.lowestTime).getTime();
        // lowestDate = lowestDate - 3600000 * 8;

        lowestDate = util.getTimeNumber(lowestDate);
        if (!renderMiniTrendInfo) {
          let oinfo = userData.get('other_info');
          let dp_id = oinfo && oinfo.now && oinfo.now.dp_id;
          let promoUrl;
          if (dp_id) {
            promoUrl = `https://www.gwdang.com/trend/${dp_id}.html?static=true`;
          }
          let infohtml = __webpack_require__(41623);
          let lowtle = `最低(单件):`;
          // if (G.aliSite) {
          //   lowtle = `最低:`;
          // } else if (!hideCoudanManage || !lowestDate2) {
          //   lowtle = `最低(单件):`;
          // }
          if (lowest_obj && lowest_obj2 && lowest_obj.Plowest === lowest_obj2.Plowest && lowest_obj.lowestDate === lowest_obj2.lowestDate) {
            lowest_obj2 = null;
          }
          if (!G.h_nopuzzle_promo) {
            promoUrl = null;
          }
          // if ($('.orign-pri-info').length) {
          //   $('.orign-pri-info').remove();
          // }
          if ($('.mini-share-product').length) {
            $('.mini-share-product').remove();
            $('#mini-share-btn').remove();
          }

          // $('.max-min-priinfo').empty().append(template.compile(infohtml)({
          //   lowtle: lowtle,
          //   aliSite: G.aliSite,
          //   lowest_obj: lowest_obj,
          //   lowestDate: lowestDate,
          //   lowestDate2: lowestDate2,
          //   promoUrl: promoUrl,
          //   lowest_obj2: lowest_obj2,
          //   currency: moneyInfo ? moneyInfo[0]: '¥'
          // }))

          const trendInfoList = [];
          const currency = moneyInfo ? moneyInfo[0] : '¥';
          const formatDate = date => date.replace('(', '').replace(')', '').replace(/\./g, '-');
          if (lowest_obj.nowprice) {
            trendInfoList.push({
              text: '现价: ' + currency + lowest_obj.nowprice,
              color: '#3fc0c0'
            });
          } else {
            trendInfoList.push({
              text: '最高: ' + currency + lowest_obj.Phighest,
              color: '#e4393c'
            });
            trendInfoList.push({
              text: lowtle + ' ' + currency + lowest_obj.Plowest,
              color: '#35bd68',
              date: formatDate(lowestDate)
            });
          }
          if (lowest_obj2 && lowestDate2) {
            trendInfoList.push({
              text: '最低(多件): ' + currency + lowest_obj2.Plowest,
              color: '#e89607',
              date: formatDate(lowestDate2)
            });
          }
          const infoEl = document.createElement('DIV');
          $('.max-min-priinfo').empty().append(infoEl);
          const MiniTrendInfoBar = (__webpack_require__(78803)/* ["default"] */ .A);
          miniTrendComp = new Vue({
            el: infoEl,
            data() {
              return {
                trendInfoList: trendInfoList
              };
            },
            render: function (h) {
              return h(MiniTrendInfoBar, {
                props: {
                  trendInfoList: this.trendInfoList
                }
              });
            }
          });
          window.gwdMiniTrendComp = miniTrendComp;
          const tipEl = document.createElement('DIV');
          $('.max-min-priinfo').append(tipEl);
          const PriceTip = (__webpack_require__(69779)/* ["default"] */ .A);
          new Vue({
            el: tipEl,
            render: h => h(PriceTip, {
              props: {
                currency
              }
            })
          });
          globalCondition.setMet('promoUrl', promoUrl);

          // 分享商品
          // require('shareProduct').init(data.price_status)
          if (!lowest_obj2) {
            $('#mini_price_history').removeClass('coudanpri');
          }
          setTimeout(function () {
            let ppiW = $('.opi-sp1').outerWidth() + $('.opi-sp2').outerWidth();
            $('.promo-pri-info .ppi-sp1').width(Math.ceil(ppiW) + 2);
          }, 100);
          renderMiniTrendInfo = true;
        }
        if (moneyInfo) {
          $('#mini_price_history .ht-mm-max').text(moneyInfo[0] + lowest_obj.Phighest);
          $('#mini_price_history .ht-mm-min').text(moneyInfo[0] + lowest_obj.Plowest);
          $('#big_tooltip').addClass('ht_tip');
        }
        obj.title.x = 0;
        obj.chart.marginRight = 16;
        obj.chart.marginTop = 5;
        obj.yAxis.title.text = null;
        obj.xAxis.labels.y = 20;
        obj.xAxis.labels.x = -2;
        obj.yAxis.title.y = -26;
        if (moneyInfo) {
          obj.chart.marginTop = 4;
          let num = parseInt(lowest_obj.Phighest).toString().length;
          obj.chart.marginRight = 2;
          obj.chart.marginLeft = Math.ceil(num * 6.8 + 11);
          obj.chart.marginBottom = 24;
          // obj.yAxis.labels.x = -Math.ceil(num * 6.8 + 11);
          obj.yAxis.labels.x = -14;
          obj.yAxis.title.x = -(Math.ceil(num * 6.8 + 11) - 24); //25 title长度
          obj.yAxis.title.text = moneyInfo[1];
          // obj.yAxis.title.y = 162;
          obj.yAxis.title.y = -12;
        } else {
          let num = parseInt(lowest_obj.Phighest).toString().length;
          obj.chart.marginLeft = 16 + 14 + parseInt(num * 6.8);
          obj.yAxis.labels.x = -14;
        }
        if (lowest_obj.Phighest < 1) {
          obj.chart.marginLeft = 16 + 14 + parseInt(4 * 6.8);
        }
        if (G.site === 'amazon') {
          obj.chart.marginLeft = 50;
        }
        // $('.floatButtons').hide();
        $('#bjd-qrcode-trend').hide();
        // yhd.com
        $('#detailPromotion').css({
          zIndex: 0
        });
        $(chartBox).css({
          left: 0,
          top: 0,
          bottom: 0,
          right: 0
        });
        if (biggraphState === 'btn') return;
        $(detail).append($(chartBox));
        doMiniBind();
        biggraphState = 'btn';
        $(chartBox).css({
          visibility: 'hidden'
        });
        window.setTimeout(() => {
          originPrice = 0;
          // if (data.store[0].all_line.length > 31 && !data.store[0].all_equal_short) {
          //   showSeries('plotMonth', true);
          // } else {
          //   showSeries('plotAll', true);
          // }
          let toShow = 'days180';
          if (store[0].all_line.length < 180) {
            toShow = currentShowing;
          }
          if (store[0].half_year_line) {
            halfYearExist = true;
          }
          if (G.centerSeries) {
            toShow = G.centerSeries;
          }
          showSeries(toShow, true, util.deepCopy(obj), true);
          let width1 = $(`#bdext_mini_trendbox`).width();
          let height1 = miniChartHeight;
          if (!width1) {
            width1 = 460;
          }
          if (G.site == 'amazon') {
            width1 = 450;
          }
          const shaidanAvailable = G.shaidanAvailable;
          if (shaidanAvailable) {
            width1 = 460;
          } else {
            width1 = 690;
            $('#mini_price_history_detail_chart').css('width', '690px');
            $('.mini_price_history_detail_wrapper').css('width', '676px');
            $('#mini_price_history_detail_btn').css('width', '690px');
            $('#big_tooltip').css('width', '690px');
          }
          if (width1 && width1 > 0) {
            chart.setSize(width1, height1, false);
          }
          $(chartBox).css({
            visibility: 'visible'
          });
        }, 25);
      };
      if (true) {
        (__webpack_require__(30888).waitForConditionFn)(() => {
          return $(`#mini_price_history`).length;
        }).then(() => {
          $(`#mini_price_history`).hover(() => {
            if (window.gwdTrendReAdjust) {
              window.gwdTrendReAdjust();
            }
            let doms = '#mini_price_history_detail_chart';
            // if (G.site == 'amazon' || G.site == '6pm') {
            //   doms = '#mini_ht_detail_chart'
            // }
            $('body').addClass('gwd-trend-hover-p');
            if (window.gwdMiniFixSwitcher) {
              window.gwdMiniFixSwitcher.replaceToFixed();
            }
            renderMiniTrend(doms);
            setTimeout(() => {
              if (window.gwdTrendFixed) {
                return;
              }
              if (!(__webpack_require__(60340).isNewJd)()) {
                return;
              }
              window.gwdTrendFixed = true;
            }, 0);
          });

          // yhd.com
          $(`#mini_price_history_detail`).mouseleave(() => {
            $('#detailPromotion').css({
              zIndex: 15
            });
          });
        });
      }

      // 底部
      $(`#gwd-trend`).hover(() => {
        // obj.yAxis.title.text = foreignTitle
        if (biggraphState === `gwd`) return;
        obj.chart.marginRight = 60;
        obj.chart.marginBottom = 23;
        obj.chart.marginTop = 4;
        obj.xAxis.labels.y = 22;
        $(chartBox).css({
          left: 0,
          top: 0,
          bottom: 0,
          right: 0
        });
        $(`#gwd-trend-chart`).append($(chartBox));
        biggraphState = `gwd`;
        $(chartBox).css({
          visibility: 'hidden'
        });
        window.setTimeout(() => {
          showSeries(currentShowing, false, util.deepCopy(obj));
          chart.reflow();
          $(chartBox).css({
            visibility: 'visible'
          });
          $(`#gwd-trend-chart`).show();
          doMainBind();
        }, 0);
        $('.floatButtons').show();
        $('#bjd-qrcode-trend').show();
        if ($('#bjd-qrcode-trend').length) {
          doLog();
        }
        $('#bjd-qrcode-trend').css('bottom', '9px');
      });
      $(`#plotArea_chrome`).css({
        maxWidth: document.body.clientWidth - 280 + 'px'
      });
      $(`#plotArea_chrome`).mousemove(e => {
        mousePosition.x = e.pageX;
        mousePosition.y = e.pageY;
      });
      $(`#plotArea_chrome`).click(function () {
        return false;
      });
      hasBind = true;
      if (data) {
        store = data.store;
        getLowestDate2(0, data);
        if (data.store[1] && data.store[1].name === "凑单到手价" && data.promo) {
          // 如果有凑单到手价同时有对应的促销活动   把促销活动信息给一个全局变量方便取用
          for (let i = 0; i < data.promo.length; i++) {
            let datestr = timeUtil.localeDateString(data.promo[i].time * 1000);
            discountInfo[datestr] = data.promo[i].msg;
            discountInfo2[datestr] = {
              price: data.promo[i].price,
              info: data.promo[i].msg.promotion
            };
          }
          // 计算最低最高价和时间
          getLowestDate2(1, data);
          $(".discount-price-re").show();
          // $('#mini_price_history').addClass('coudanpri')
          $('#bar_trend_legend_btn').removeClass('no-review');
          (__webpack_require__(30888).waitForConditionFn)(() => $(`#mini_price_history_detail_btn`).length).then(() => {
            $('#mini_price_history_detail_btn').removeClass('no-review');
          });
          extConsole.log('trend: has review');
        } else {
          hideCoudanManage = null;
          $('#bar_trend_legend_btn').addClass('no-review');
          (__webpack_require__(30888).waitForConditionFn)(() => $(`#mini_price_history_detail_btn`).length).then(() => {
            $('#mini_price_history_detail_btn').addClass('no-review');
          });
          extConsole.log('trend: no review');
        }
        if (data.nopuzzle_promo) {
          G.h_nopuzzle_promo = true;
        }
        // if (G.aliSite) {
        //   $('#bar_trend_legend_btn').remove()
        //   $('#mini_price_history_detail_btn').addClass('aliSite')
        // }
        originData = data;
        let earlistDay = Math.min(data.store[0] && data.store[0].all_line_begin_time, getEarlistDay(store));
        let currentDay = data.now_day;
        currentTime = data.now_day;
        let seriesConfig = [{
          plot: 'plotAll',
          start: 'all_line_begin_time',
          minDay: 0.1,
          data: 'all_line'
        }, {
          plot: 'plotMonth',
          start: 'month_line_time',
          minDay: 30,
          data: 'month_line'
        }, {
          plot: 'plotYear',
          start: 'half_year_line_time',
          minDay: 0.1,
          data: 'half_year_line'
        }, {
          plot: 'days180',
          start: 'all_line_begin_time',
          minDay: 0.1,
          data: 'all_line'
        }];
        enablePlot('#plotAll');
        // if (store[0].name.indexOf('(当前)') === -1) {
        //   store[0].name += '(当前)';
        // }
        store[0].name = "页面价";
        let storeLimit = 18;
        if (currentPage === 'zhidemai') {
          storeLimit = 1;
        }
        if (currentPage === 'priceHistory') {
          storeLimit = 20;
        }
        let allDays = parseInt((currentDay - earlistDay) / oneDay);
        for (let i = 0; i < Math.min(store.length, storeLimit); i++) {
          if (store[i].all_line.length === 0) continue;
          // if (store[i].promo && store[i].promo.length > 0) {
          //   promotionData[store[i].name] = store[i].promo[0].desc;
          // }
          if (store[i].all_equal_short && store.length !== 1) {
            store[i].all_line = [];
            for (let j = 0; j < store[i].short_day_line.length; j += 24) {
              store[i].all_line.push(store[i].short_day_line[j]);
            }
            store[i].all_line_begin_time = data.now_day - 5 * oneDay;
            store[i].all_equal_short = false;
          }
          for (let k = 0; k < seriesConfig.length; k++) {
            let j = seriesConfig[k];
            if (getMidDay(currentDay) - getMidDay(earlistDay) >= j.minDay * oneDay) {
              if (!store[i][j.data]) {
                continue;
              }
              if (j.start !== 'short_day_line_begin_time') {
                //store[i][j.start] = getMidDay(store[i][j.start]);
              }
              if (store[i].all_equal_short && j.start === 'all_line_begin_time') {
                //store[i][j.start] = store[i].short_day_line_begin_time;
              }
              enablePlot('#' + j.plot);
              let newSeries = {
                color: generateColorForStore(store[i].name),
                name: store[i].name,
                pointStart: store[i][j.start],
                pointInterval: oneDay,
                legendIndex: 1,
                connectNulls: false,
                lineWidth: 1,
                zIndex: 500 - i * 500 - 1,
                marker: {
                  //symbol: 'rect',
                  symbol: currentSymbol.extended,
                  states: {
                    hover: {
                      enabled: false
                    }
                  }
                },
                states: {
                  hover: {
                    enabled: false,
                    halo: {
                      size: 0
                    }
                  }
                },
                data: store[i][j.data]
              };
              if (store[i].name === '凑单到手价') {
                newSeries.color = "#FFC06D";
              }
              if (noTbTrend) {
                newSeries.dashStyle = "Dash";
              }
              if (j.plot === 'plot5Day') {
                //newSeries.pointStart -= 5*oneDay;
                newSeries.pointInterval = 3600000;
                if (newSeries.pointInterval * newSeries.data.length + newSeries.pointStart > currentTime) {
                  currentTime = newSeries.pointInterval * newSeries.data.length + newSeries.pointStart;
                }
              }
              if (j.plot === 'plotAll' && newSeries.data.length < 30) {
                newSeries.pointInterval = oneDay;
                setXAxisMinInterval(oneDay);
              }
              if ((j.plot === 'plotAll' || j.plot === 'days180') && store[i].all_equal_short) {
                if (i === 0) {
                  newSeries.pointInterval = 3600000;
                  //all_equal_short = true;
                } else {
                  let s = new Date(newSeries.pointStart);
                  let s2 = new Date(s.getYear() + 1900, s.getMonth(), s.getDate(), 8);
                  newSeries.pointStart = s2.getTime();
                  newSeries.pointInterval = oneDay;
                  let tmpData = [];
                  for (let i = 0; i < newSeries.data.length; i += 24) {
                    tmpData.push(newSeries.data[i]);
                  }
                  newSeries.data = tmpData;
                }
              }
              // 增大点的密度,使移动平滑
              newSeries.addPointTimes = 1;
              while (newSeries.data && newSeries.data.length < 100) {
                if (j.plot === 'plotAll') {
                  break;
                }
                let newData = [];
                for (let k = 0; k < newSeries.data.length; k++) {
                  newData.push(newSeries.data[k]);
                  if (k + 1 === newSeries.data.length) break;
                  newData.push(newSeries.data[k]);
                }
                newSeries.data = newData;
                newSeries.pointInterval = newSeries.pointInterval / 2;
                newSeries.addPointTimes = newSeries.addPointTimes * 2;
              }
              newSeries.data = newSeries.data ? newSeries.data.map(resetData) : null;
              if (newSeries.data != null) {
                seriesList[j.plot].push(newSeries);
              }
              // require('common/extConsole').log('newSeries data', JSON.parse(JSON.stringify(newSeries.data)));
            }
          }
        }
        if (seriesList['plotAll'].length === 1) {
          let series = seriesList['plotAll'][0];
          series.data = series.data.map(i => i.y);
          while (series.data.length < 100) {
            let newData = [];
            for (let k = 0; k < series.data.length; k++) {
              newData.push(series.data[k]);
              if (k + 1 === series.data.length) break;
              newData.push(series.data[k]);
            }
            series.data = newData;
            series.pointInterval = series.pointInterval / 2;
          }
          series.data = series.data.map(i => {
            return {
              y: i,
              marker: {
                enabled: false
              }
            };
          });
        }
        // 和原始数据重合的点 去掉
        // sliceData(seriesList)
        if (!store[0].all_equal_short) {
          $('#plotAll').html(`全部${store[0].all_line.length}天`);
          if (store[0].all_line.length > 180) {
            currentShowing = 'plotYear';
          }
        } else {
          allDays++;
          $('#plotAll').html(`全部(${allDays}天)`);
        }
        showingManager.clear();
        // 默认显示原始价格和当前商品
        if (originPrice && currentPage !== 'zhidemai') {
          showingManager.add('当前商城原始价格');
        }
        showingManager.add(store[0].name);

        // data copy start
        let mergeSeries = (a, b) => {
          let bList = b.map(item => item.name);
          return a.map(item => {
            if (bList.indexOf(item.name) === -1) {
              return item;
            } else {
              let toMerge = b.filter(j => j.name === item.name)[0];
              let tmp = copy(item);
              tmp.data = toMerge.data;
              tmp.pointStart = toMerge.pointStart;
              tmp.pointInterval = toMerge.pointInterval;
              return tmp;
            }
          });
        };
        let fillSeries = seriesList => {
          let pointIntervalList = seriesList.map(i => i.pointInterval);
          let minInterval = Math.min.apply(null, pointIntervalList);
          seriesList.forEach(series => {
            while (series.pointInterval > minInterval) {
              let newData = [];
              for (let i = 0; i < series.data.length; i++) {
                newData.push(series.data[i]);
                if (i + 1 === series.data.length) break;
                let newPoint = {
                  marker: series.data[i].marker,
                  y: (series.data[i + 1].y + series.data[i].y) / 2
                };
                newData.push(newPoint);
              }
              series.pointInterval = series.pointInterval / 2;
              series.data = newData;
            }
          });
        };
        ['plotMonth', 'plotYear'].forEach(i => {
          if (!$(`#${i}`).hasClass('bjd-hidden')) {
            let allSeries = seriesList['plotAll'];
            let thisSeries = seriesList[i];
            let toAdd = mergeSeries(allSeries, thisSeries);
            seriesList[i] = toAdd;
            fillSeries(seriesList[i]);
          }
        });
        fillSeries(seriesList['plotAll']);
        let days180_size = seriesList['days180'][0] && seriesList['days180'][0].data.length;
        if (days180_size && days180_size > 180) {
          for (let k = 0; k < seriesList['days180'].length; k++) {
            seriesList['days180'][k].data.splice(0, days180_size - 180);
            seriesList['days180'][k]['pointStart'] = seriesList['days180'][k]['pointStart'] + seriesList['days180'][k]['pointInterval'] * (days180_size - 180);
          }
        }
        for (let spattern in seriesList) {
          if (seriesList[spattern].length) {
            for (let di = 0; di < seriesList[spattern].length; di++) {
              addSeriesDataLabels(seriesList[spattern][di], data.nopuzzle_promo, spattern);
              nopuzzlePpromo = data.nopuzzle_promo;
            }
          }
        }

        // showSeries('plotAll', false, util.deepCopy(obj));
        //chart.reflow();
      }
      ;
    },
    resetBind: () => {
      hasBind = false;
    }
  };
  return exports;
})();
var _default = exports["default"] = newTrend;

/***/ }),

/***/ 30353:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['value', 'type', 'link', 'id'],
  data: () => ({
    site: G.site,
    show: true
  }),
  methods: {
    checkPosition() {
      let el = $(`#${this.id}`);
      if (!el.length) {
        const tid = this.id.replace('gwdang-coupon-', '');
        if (!$(`#${tid}`).length) {
          this.show = false;
          return;
        } else {
          this.show = true;
          el = $(`#${tid} .td.td-sum`).append(`<div id="${this.id}"></div>`);
        }
      }
      this.$el.parentElement.style.top = `${el[0].offsetParent.offsetTop + 40}px`;
    }
  }
};

/***/ }),

/***/ 30364:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "button[data-v-fd8cca22] {\n  background: none;\n  border: none;\n  outline: none;\n  box-sizing: border-box;\n}\nbutton[data-v-fd8cca22]:active {\n  border: none;\n}\n.gwd-light-btn[data-v-fd8cca22] {\n  height: 34px;\n  line-height: 34px;\n  min-width: 80px;\n  border: 1px solid #cfd7dc;\n  background: #f4f9fc;\n  color: #5d93bd;\n  font-size: 12px;\n  border-radius: 4px;\n}\n.gwd-common-login[data-v-fd8cca22] {\n  display: flex;\n  line-height: initial;\n  box-sizing: border-box;\n}\n.gwd-common-login .gwd-main-login[data-v-fd8cca22] {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n}\n.gwd-common-login .gwd-main-login button[data-v-fd8cca22] {\n  background: #48bef3;\n  color: white;\n  height: 34px;\n  font-size: 14px;\n  font-weight: bold;\n  border-radius: 4px;\n  width: 100%;\n  cursor: pointer;\n  letter-spacing: 1px;\n  box-sizing: border-box !important;\n  font-family: 'Microsoft Yahei' !important;\n}\n.gwd-common-login .gwd-main-login a[data-v-fd8cca22] {\n  color: #5d93b0;\n  margin-top: 12px;\n  font-size: 12px;\n}\n.gwd-alter-login[data-v-fd8cca22] {\n  margin-top: 29px;\n  display: flex;\n  flex-direction: column;\n}\n.gwd-alter-login span[data-v-fd8cca22] {\n  cursor: pointer;\n}\n.gwd-alter-login .gwd-vline[data-v-fd8cca22] {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: space-between;\n  height: 12px;\n}\n.gwd-alter-login .gwd-vline div[data-v-fd8cca22] {\n  flex: 1;\n  height: 2px;\n  background: linear-gradient(to right, #ffffff 0%, #cfd7dc 100%);\n}\n.gwd-alter-login .gwd-vline span[data-v-fd8cca22] {\n  font-size: 12px;\n  color: #999999;\n  margin-left: 10px;\n  margin-right: 10px;\n  letter-spacing: 2px;\n}\n.gwd-alter-login .gwd-vline .gwd-line-b[data-v-fd8cca22] {\n  transform: rotate(180deg);\n}\n.gwd-alter-login .third-login[data-v-fd8cca22] {\n  margin-top: 18px;\n  flex-direction: row;\n  margin-left: 0;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n.gwd-alter-login .third-login span[data-v-fd8cca22] {\n  margin-left: 20px;\n  margin-right: 20px;\n  margin-top: 0;\n}\n.third-login[data-v-fd8cca22] {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  margin-left: 34px;\n}\n.third-login span[data-v-fd8cca22] {\n  width: 32px;\n  height: 32px;\n  display: inline-block;\n  margin-top: 10px;\n  margin-bottom: 10px;\n}\n.qqlogin[data-v-fd8cca22] {\n  background-position: -10px -117px !important;\n}\n.sinalogin[data-v-fd8cca22] {\n  background-position: -43px -117px !important;\n}\n.weixinlogin[data-v-fd8cca22] {\n  background-position: -77px -117px !important;\n}\n.loginBox[data-v-fd8cca22] {\n  background-image: url(https://cdn.gwdang.com/images/extensions/xbt/newbar-top3.png) !important;\n}\n", ""]);

// exports


/***/ }),

/***/ 30391:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _vm.data.time ? _c("div", [_c("div", {
    staticClass: "prifontf tip-time"
  }, [_vm._v(_vm._s(_vm.data.time))]), _vm._v(" "), _c("div", {
    staticClass: "pri-right-info",
    class: _vm.domclass
  }, [_vm.data.pagePrice && _vm.domclass === "" ? _c("div", {
    staticClass: "tip-item tip-pagepri tip-pagepri2"
  }, [_c("em"), _vm._v(" "), !_vm.aliSite ? [_c("span", {
    staticClass: "tip-item-sp1",
    staticStyle: {
      width: "120px"
    }
  }, [_vm._v("到手价(单件) / 页面价")]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp2"
  }, [_vm._v(":")])] : _vm._e(), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp3 prifontf"
  }, [_vm._v(_vm._s(_vm.data.pagePrice))])], 2) : _vm.data.pagePrice ? _c("div", {
    staticClass: "tip-item tip-pagepri"
  }, [_c("em"), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp1"
  }, [_vm._v("页面价")]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp2"
  }, [_vm._v(":")]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp3 prifontf"
  }, [_vm._v(_vm._s(_vm.data.pagePrice))])]) : _vm._e(), _vm._v(" "), _vm.data.directpro ? _c("div", {
    staticClass: "tip-item tip-directpro"
  }, [_c("em"), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp1"
  }, [_vm._v("到手价(单件)")]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp2"
  }, [_vm._v(":")]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp3 prifontf"
  }, [_vm._v("¥" + _vm._s(_vm.data.directpro))]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp4",
    domProps: {
      innerHTML: _vm._s(_vm.data.promo2)
    }
  })]) : _vm._e(), _vm._v(" "), _vm.data.addpro ? _c("div", {
    staticClass: "tip-item tip-addpro"
  }, [_c("em"), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp1"
  }, [_vm._v("到手价(多件)")]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp2"
  }, [_vm._v(":")]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp3 prifontf"
  }, [_vm._v("¥" + _vm._s(_vm.data.addpro))]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp4",
    domProps: {
      innerHTML: _vm._s(_vm.data.promo1)
    }
  })]) : _vm._e()])]) : _vm._e();
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 30421:
/***/ ((module) => {

"use strict";

module.exports = {};


/***/ }),

/***/ 30493:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, ulWidth = $data.ulWidth, $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, totalPages = $data.totalPages, linkAll = $data.linkAll;
    $$out += '<div class="mini-compare-detail">\n  <div class="mini-com-box">\n      <ul id="mini_lowest_ul" style="width:';
    $$out += $escape(ulWidth);
    $$out += 'px">\n      ';
    $each(data, function ($value, $index) {
        $$out += '\n        <li class="mini-lowest-list">\n          <a href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank" class="mini-bigimg">\n            <img src="';
        $$out += $escape($value.img_url);
        $$out += '">\n            ';
        if ($value.promo) {
            $$out += '\n            <span>';
            $$out += $escape($value.promo);
            $$out += '</span>\n            ';
        }
        $$out += '\n          </a>\n          <a href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank" class="mini-tle" title="';
        $$out += $escape($value.title);
        $$out += '">\n            ';
        $$out += $escape($value.title);
        $$out += '\n          </a>\n          <a class="mini-low-other" href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank">\n              <img src="https://s1.gwdang.com/images/favicon/';
        $$out += $escape($value.site_id);
        $$out += '.ico">\n              <span>';
        $$out += $escape($value.site_name);
        $$out += '</span>\n          </a>\n          <span class="mimi-page-price ">页面价\uFF1A<span class="prifontf">\xA5';
        $$out += $escape($value.last_price);
        $$out += '</span></span>\n          <span class="mini-price"><span>到手价\uFF1A</span><strong class="prifontf">\xA5';
        $$out += $escape($value.price);
        $$out += '</strong></span>\n        </li>\n      ';
    });
    $$out += '\n      <style type="text/css">\n        .mini-compare-detail {\n          height: 284px;\n          width: 460px;\n          overflow: hidden;\n          position: absolute;\n          top: 36px;\n          left: -1px;\n          z-index: 99999999;\n          display: none;\n          background-color: #fff;\n          border: 1px solid #E6E9EB;\n        }\n        .mini-com-box {\n          margin-top: 10px;\n          height: 247px;\n          width: 460px;\n          overflow: hidden;\n          position: relative;\n        }\n        #mini_lowest_ul:after {\n          display: block;\n          clear: both;\n          content: "";\n        }\n        #mini_lowest_ul {\n          position: absolute;\n          left: 0px;\n          height: 247px;\n          padding: 0px;\n          margin: 0px;\n        }\n        #mini_lowest_ul .mini-lowest-list {\n          float: left;\n          margin-left: 10px;\n          width: 140px;\n          height: 247px;\n          list-style: none;\n          clear: none;\n        }\n        #mini_lowest_ul .mini-bigimg {\n          width: 140px;\n          height: 140px;\n          position: relative;\n          float: left;\n        }\n        #mini_lowest_ul .mini-bigimg img {\n          width: 100%;\n          height: 100%;\n          vertical-align: middle;\n        }\n        #mini_lowest_ul .mini-bigimg span {\n          position: absolute;\n          bottom: 0px;\n          display: inline-block;\n          width: 135px;\n          z-index: 99;\n          max-height: 36px;\n          left: 0px;\n          line-height: 18px!important;\n          background: rgba(17,51,75, .6);\n          color: #fff;\n          text-align: center;\n          padding-left: 5px;\n        }\n        \n        #mini_lowest_ul .mini-tle {\n          float: left;\n          margin-top: 10px;\n          width: 136px;\n          height: 16px;\n          line-height: 16px;\n          font-size: 12px;\n          color: #666666;\n          text-align: center;\n          overflow: hidden;\n          white-space: nowrap;\n        }\n        #mini_lowest_ul .mimi-page-price {\n          float: left;\n          font-size: 12px;\n          color: #999;\n          margin-top: 10px;\n          height: 16px;\n          width: 100%;\n          text-align: left;\n          line-height: 16px!important;\n        }\n        #mini_lowest_ul .mini-low-other {\n          float: left;\n          width: 100%;\n          height: 14px;\n          line-height: 14px;\n          margin-top: 10px;\n        }\n        #mini_lowest_ul .mini-low-other * {\n          float: left;\n        }\n        #mini_lowest_ul .mini-low-other img {\n          margin-right: 10px;\n          height: 14px;\n          width: 14px;\n        }\n        #mini_lowest_ul .mini-low-other span {\n          line-height: 14px!important;\n          color: #666;\n          font-size: 12px;\n        }\n        #mini_lowest_ul .mini-price {\n          float: left!important;\n          margin-top: 6px!important;\n          width: 100%;\n          height: 16px;\n          line-height: 16px!important;\n          text-align: left;\n          font-size: 12px;\n          color: #E4393C;\n        }\n        #mini_lowest_ul .mini-price strong {\n          font-size: 14px!important;\n        }\n        .mini-com-foot {\n          width: 100%;\n          height: 26px;\n        }\n        .mini-com-foot .mini-com-turnbtn {\n          color: #999;\n          font-size: 12px;\n          position: absolute;\n          line-height: 16px;\n          bottom: 8px;\n          cursor: pointer;\n        }\n        .mini-com-foot .linkAll {\n          position: absolute;\n          bottom: 8px;\n          right: 10px;\n          font-size: 12px;\n          line-height: 16px;\n          color: #999;\n          display: none;\n        }\n        .mini-com-foot .mini-com-turnbtn:hover,.mini-tle:hover,.mini-com-foot .linkAll:hover, .mini-low-other span:hover {\n          color: #48BEFF!important;\n        }\n        .mini-com-tleft {\n          left: 10px;\n          display: none;\n        }\n        .mini-com-tright {\n          right: 10px;\n        }\n      </style>\n    </ul>\n  </div>\n  <div class="mini-com-foot"> \n      <span class="mini-com-turnbtn mini-com-tleft" data-type="-1">< 上一页</span>\n      ';
    if (totalPages > 1) {
        $$out += '\n      <span class="mini-com-turnbtn mini-com-tright" data-type="1">下一页 ></span>\n      ';
    }
    $$out += '\n      ';
    if (linkAll) {
        $$out += '\n    <a href="';
        $$out += $escape(linkAll);
        $$out += '" class="linkAll" target="_blank">查看全部</a>\n    ';
    }
    $$out += '\n    </div>\n</div>';
    return $$out;
};

/***/ }),

/***/ 30888:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(3362);
const communicate = __webpack_require__(79560);
const deviceEncode = __webpack_require__(69793);
module.exports.retry = (wait, cb, times, time) => {
  //@param function wait 等待的条件
  //@param function cb 条件满足后做的操作
  //@param number times  尝试的次数
  //@param number time  每次等待的时间
  var _times = 0;
  function _try() {
    if (_times >= times) return;
    if (wait()) cb();else {
      _times++;
      setTimeout(_try, time);
    }
  }
  _try();
};
module.exports.settings = (op, key, value) => {
  let request = __webpack_require__(49388);
  request.get(G.server + '/brwext/permanent_id?' + `version=2&op=${op}&${key}=${value}`).done(msg => {
    G[key] = value;
  });
};
module.exports.setLocal = (key, value) => {
  communicate.trigger({
    'type': 'setStorage',
    'key': key,
    'value': value
  });
};
module.exports.openTab = () => {
  if (!G.allowBackgroundRequest) {
    window.open(G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''));
  }
  communicate.trigger({
    'type': 'opentab'
  });
};
// module.exports.addFavorCheck = () => {
//   communicate.trigger({
//     'type': 'addFavorCheck'
//   })
// }

module.exports.getTimeNumber = (time, type) => {
  // 1: xxxx-xx-xx 2.xx-xx 3.xx.xx 4. xxxx.xx.xx
  let dateObj = new Date(time);
  let y = dateObj.getFullYear();
  let m = dateObj.getMonth() + 1;
  let d = dateObj.getDate();
  if (m < 10) m = '0' + m;
  if (d < 10) d = '0' + d;
  let str = ``;
  switch (type) {
    case "1":
      str = `${y}-${m}-${d}`;
      break;
    case "2":
      str = `${m}-${d}`;
      break;
    case "3":
      str = `${m}.${d}`;
      break;
    case "4":
      str = `${y}.${m}.${d}`;
      break;
    case "5":
      str = `${y}/${m}/${d}`;
      break;
    default:
      str = `(${y}.${m}.${d})`;
  }
  return str;
};

/**
 * 数组去重
 * @param array
 */
module.exports.arrayUnique = array => {
  let newArray = [];
  array.forEach(item => {
    if (newArray.indexOf(item) === -1) {
      newArray.push(item);
    }
  });
  return newArray;
};
module.exports.setSimplePagePos = (dom, detail, detailW) => {
  let mainW = $(window).width();
  let left = dom.offset().left;
  let domw = dom.outerWidth();
  let dleft = left + domw - detailW - 2;
  if (dleft < 0) dleft = 0;
  if (dleft + detailW > mainW) dleft = mainW - detailW - 2;
  detail.css('left', dleft + 'px');
};
module.exports.deepCopy = obj => {
  return $.extend(true, {}, obj);
};
module.exports.stringToNumber = text => {
  if (!text) {
    return 0;
  }
  let x = parseInt(text);
  if (text.includes('万')) {
    x = x * 10000;
  }
  return x;
};
module.exports.numberToString = (number, digit = 2) => {
  if (typeof number === 'string' && number.includes('万')) {
    return number;
  }
  let x = parseInt(number);
  if (x > 10000) {
    x = x / 10000;
    x = x.toFixed(digit).replace('.' + '0'.repeat(digit), '') + '万';
  }
  return x;
};
module.exports.waitForConditionFn = (conditionFn, checkInterval = 300, maxTryTimes = 0) => {
  return new Promise(resolve => {
    if (conditionFn()) {
      resolve(true);
      return;
    }
    let tryTimes = 0;
    let t = setInterval(() => {
      if (conditionFn()) {
        resolve(true);
        clearInterval(t);
      }
      tryTimes++;
      if (maxTryTimes && tryTimes > maxTryTimes) {
        clearInterval(t);
      }
    }, checkInterval);
  });
};

/***/ }),

/***/ 31166:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAANBJREFUWEft1kEOgjAQBdCZCxjOgB6Mm1BOQryXegYDax1CTTAYjDPTj92UPfzHbzspU+aHM+dTAZQGTA1IdWzoQcLj9YzavGpADBfqY7BI4OHWIRA+ABChBsTM6hRIpF3+HNCECbAHwgxAI1wAJMINQCGSAAhEMmAT8aRGO6wwgEPdEnNYjuc/AfIZztzx/fLG/BiXSQ2khs82NwAR7gagwl0AZLgZgA43AVb3gfimbbd/OwzqTbgCgMJNDbwmXsYrGeL6tfUN9RIUQGlgrwYm+oKKIeRVPMUAAAAASUVORK5CYII=";

/***/ }),

/***/ 31270:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, c_server = $data.c_server, s_server = $data.s_server;
    $$out += '<div class="gwd_checkout bjd_btn_box">\n  <a href="';
    $$out += $escape(c_server);
    $$out += '" target="_blank" title="购物党"></a>\n  <span class="bjd_addcart">去结算</span>\n  <span class="bjd_close"></span>\n</div>\n<style type="text/css">\n  .gwd_checkout {\n    width: 148px;\n    height: 36px;\n    background-color: #fff;\n    color: #494b4d;\n    position: absolute;\n    line-height: 35px;\n    border-bottom-right-radius: 28px;\n    border-top-right-radius: 28px;\n    font-size: 14px;\n    border: 1px solid #47befe;\n    font-family: \'Microsoft Yahei\';\n    top: 2px;\n    z-index: 99;\n    right: -211px;\n  }\n  .gwd_checkout a, .gwd_checkout span {\n    float: left;\n    margin-left: 19px;\n  }\n  .gwd_checkout .bjd_addcart {\n    cursor: text;\n  }\n  .gwd_checkout a {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_siteicon.png\') 0px 6px no-repeat;\n    background-size: 24px 22px;\n    height: 35px;\n    width: 26px;\n    margin-left: 7px;\n  }\n  .bjd_close {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_closeicon.png\') 0px 0px no-repeat;\n    width: 20px;\n    height: 20px;\n    margin-top: 12px;\n    background-size: 12px 12px;\n  }\n  .gwd_checkout:before{\n    border: 29px solid transparent;\n    border-right-color: #47befe;\n    content: "";\n    border-bottom-width: 18px;\n    border-top-width: 18px;\n    position: absolute;\n    left: -58px;\n    width: 0px;\n    height: 0px;\n    top: -1px;\n  }\n  .gwd_checkout:after {\n    border: 27px solid transparent;\n    border-right-color: #fff;\n    content: "";\n    border-bottom-width: 17px;\n    border-top-width: 17px;\n    border-left-width: 30px;\n    position: absolute;\n    left: -57px;\n    width: 0px;\n    height: 0px;\n    top: 0px;\n  }\n#hlb-ptc-btn span.a-button-inner{\n  overflow: visible;\n}\n\n</style>';
    return $$out;
};

/***/ }),

/***/ 31378:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _default = exports.A = {
  components: {},
  data() {
    return {
      text: '',
      max: !G.shaidanAvailable
    };
  },
  mounted() {
    (__webpack_require__(41761).met)('priceTipText').then(text => {
      this.text = text;
    });
  }
};

/***/ }),

/***/ 31403:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(30364);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("15b70cf9", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 31427:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

const Utils = __webpack_require__(56886)
const ECCode = __webpack_require__(97518)
const ECLevel = __webpack_require__(49953)
const Mode = __webpack_require__(30208)
const VersionCheck = __webpack_require__(21878)

// Generator polynomial used to encode version information
const G18 = (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0)
const G18_BCH = Utils.getBCHDigit(G18)

function getBestVersionForDataLength (mode, length, errorCorrectionLevel) {
  for (let currentVersion = 1; currentVersion <= 40; currentVersion++) {
    if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, mode)) {
      return currentVersion
    }
  }

  return undefined
}

function getReservedBitsCount (mode, version) {
  // Character count indicator + mode indicator bits
  return Mode.getCharCountIndicator(mode, version) + 4
}

function getTotalBitsFromDataArray (segments, version) {
  let totalBits = 0

  segments.forEach(function (data) {
    const reservedBits = getReservedBitsCount(data.mode, version)
    totalBits += reservedBits + data.getBitsLength()
  })

  return totalBits
}

function getBestVersionForMixedData (segments, errorCorrectionLevel) {
  for (let currentVersion = 1; currentVersion <= 40; currentVersion++) {
    const length = getTotalBitsFromDataArray(segments, currentVersion)
    if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, Mode.MIXED)) {
      return currentVersion
    }
  }

  return undefined
}

/**
 * Returns version number from a value.
 * If value is not a valid version, returns defaultValue
 *
 * @param  {Number|String} value        QR Code version
 * @param  {Number}        defaultValue Fallback value
 * @return {Number}                     QR Code version number
 */
exports.from = function from (value, defaultValue) {
  if (VersionCheck.isValid(value)) {
    return parseInt(value, 10)
  }

  return defaultValue
}

/**
 * Returns how much data can be stored with the specified QR code version
 * and error correction level
 *
 * @param  {Number} version              QR Code version (1-40)
 * @param  {Number} errorCorrectionLevel Error correction level
 * @param  {Mode}   mode                 Data mode
 * @return {Number}                      Quantity of storable data
 */
exports.getCapacity = function getCapacity (version, errorCorrectionLevel, mode) {
  if (!VersionCheck.isValid(version)) {
    throw new Error('Invalid QR Code version')
  }

  // Use Byte mode as default
  if (typeof mode === 'undefined') mode = Mode.BYTE

  // Total codewords for this QR code version (Data + Error correction)
  const totalCodewords = Utils.getSymbolTotalCodewords(version)

  // Total number of error correction codewords
  const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)

  // Total number of data codewords
  const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8

  if (mode === Mode.MIXED) return dataTotalCodewordsBits

  const usableBits = dataTotalCodewordsBits - getReservedBitsCount(mode, version)

  // Return max number of storable codewords
  switch (mode) {
    case Mode.NUMERIC:
      return Math.floor((usableBits / 10) * 3)

    case Mode.ALPHANUMERIC:
      return Math.floor((usableBits / 11) * 2)

    case Mode.KANJI:
      return Math.floor(usableBits / 13)

    case Mode.BYTE:
    default:
      return Math.floor(usableBits / 8)
  }
}

/**
 * Returns the minimum version needed to contain the amount of data
 *
 * @param  {Segment} data                    Segment of data
 * @param  {Number} [errorCorrectionLevel=H] Error correction level
 * @param  {Mode} mode                       Data mode
 * @return {Number}                          QR Code version
 */
exports.getBestVersionForData = function getBestVersionForData (data, errorCorrectionLevel) {
  let seg

  const ecl = ECLevel.from(errorCorrectionLevel, ECLevel.M)

  if (Array.isArray(data)) {
    if (data.length > 1) {
      return getBestVersionForMixedData(data, ecl)
    }

    if (data.length === 0) {
      return 1
    }

    seg = data[0]
  } else {
    seg = data
  }

  return getBestVersionForDataLength(seg.mode, seg.getLength(), ecl)
}

/**
 * Returns version information with relative error correction bits
 *
 * The version information is included in QR Code symbols of version 7 or larger.
 * It consists of an 18-bit sequence containing 6 data bits,
 * with 12 error correction bits calculated using the (18, 6) Golay code.
 *
 * @param  {Number} version QR Code version
 * @return {Number}         Encoded version info bits
 */
exports.getEncodedBits = function getEncodedBits (version) {
  if (!VersionCheck.isValid(version) || version < 7) {
    throw new Error('Invalid QR Code version')
  }

  let d = version << 12

  while (Utils.getBCHDigit(d) - G18_BCH >= 0) {
    d ^= (G18 << (Utils.getBCHDigit(d) - G18_BCH))
  }

  return (version << 12) | d
}


/***/ }),

/***/ 31584:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', userLogin = $data.userLogin, $escape = $imports.$escape, style = $data.style, hidebtn = $data.hidebtn;
    $$out += '<div id="topfavor_detail" class="';
    if (userLogin) {
        $$out += 'islogin';
    }
    $$out += '" style="';
    $$out += $escape(style);
    $$out += '">\n    <div class="topf-head" >\n      <div class="blkcolor1">收藏并降价提醒</div>\n      <span class="sp-del">删除成功</span>\n      ';
    if (!hidebtn) {
        $$out += '\n      <span class="sp-col">收藏商品</span>\n      ';
    }
    $$out += '\n    </div>\n    <div class="topf-body">\n      <div class="login_detail" style="">\n        <div id="gwd-login-favor"></div>\n      </div>\n      <div class="favor-dp-detail">\n        <ul class="favor-list">\n          \n        </ul>\n        <a class="see-all-favor blkcolor4" target="_blank" href="">查看全部(<em></em>)</a>\n      </div>\n    </div>\n\n    <style type="text/css">\n      #topfavor_detail {\n        position: absolute;\n        right: 67px;\n        width: 280px;\n        height: 374px;\n        background: #FFFFFF;\n        box-shadow: 0 5px 10px 0 rgba(22,24,26,0.15);\n        display: none;\n      }\n      #topfavor_detail .topf-head {\n        height: 40px;\n        float: left;\n        width: 100%;\n        display: none;\n      }\n      #topfavor_detail.islogin .topf-head {\n        display: block;\n      }\n      #topfavor_detail .topf-body {\n        float: left;\n        width: 100%;\n      }\n      .topf-head * {\n        float: left;\n      }\n      #topfavor_detail .topf-head div {\n        font-size: 14px;\n        line-height: 14px;\n        margin-top: 14px;\n        margin-left: 14px;\n        font-weight: bold;\n      }\n      #topfavor_detail .topf-head span.sp-col {\n        border: 1px solid #F07860;\n        color: #F07860;\n        border-radius: 20px;\n        height: 24px;\n        width: 68px;\n        line-height: 24px;\n        text-align: center;\n        position: absolute;\n        top: 10px;\n        right: 14px;\n        cursor: pointer;\n        display: none;\n        font-size: 12px;\n      }\n      #topfavor_detail .topf-head .sp-del {\n        position: absolute;\n        color: #F07860;\n        font-size: 12px;\n        top: 12px;\n        left: 130px;\n        display: none;\n      } \n      #topfavor_detail .topf-head .sp-col.collected {\n        color: #fff;\n        background-color: #F07860;\n      }\n      #topfavor_detail.islogin .topf-head span.sp-col {\n        display: inline-block;\n      }\n      .topf-body {\n        height: 336px;\n      }\n      .islogin .login_detail {\n        display: none;\n      }\n      .topf-body p.login-remind {\n        font-size: 12px;\n        margin-left: 14px;\n        line-height: 12px;\n      }\n      .login_detail .logininfo {\n        margin-top: 30px;\n        text-align: center;\n        position: relative;\n      }\n      .login_detail .password {\n        margin-top: 18px;\n      }\n      .login_detail .forget_pass {\n        margin-left: 201px;\n        float: left;\n        margin-top: 21px;\n        font-size: 12px;\n        line-height: 12px;\n      }\n      .login_detail .forget_pass:hover {\n        color: #48befe!important;\n        text-decoration: none;\n      }\n      #topfavor_detail .login_detail .logininfo input {\n        width: 196px;\n        height: 30px;\n        font-size: 14px;\n        padding: 0px 6px 0px 16px;\n        display: inline-block;\n        border-radius: 15px;\n        outline: none;\n      }\n      .login_detail .login_click {\n        float: left;\n        margin-left: 97px;\n        height: 28px;\n        width: 86px;\n        cursor: pointer;\n        margin-top: 15px;\n        background-color: #48befe;\n        color: #fff!important;\n        line-height: 28px;\n        text-align: center;\n        font-size: 14px;\n        border-radius: 15px;\n      }\n      .login_detail .login_click:hover {\n        background-color: #18ACFC;\n      }\n      .login_detail .login_remind {\n        position: absolute;\n        top: 172px;\n        left: 37px;\n        height: 20px;\n        font-size: 12px;\n        width: 116px;\n        color: #EC4966;\n        display: none;\n      }\n      .login_detail .register {\n        float: left;\n        width: 100%;\n        height: 12px;\n        line-height: 12px;\n        text-align: center;\n        margin-top: 9px;\n        color: #48BEFE!important;\n        font-size: 12px;\n        border: none;\n        background-color: #fff;\n      }\n      .register:hover {\n        text-decoration: none;\n        color: #48BEFE;\n      }\n      .slice_div {\n        height: 12px;\n        width: 100%;\n        float: left!important;\n        margin-top: 23px;\n        background-position: 14px -239px;\n      }\n      .login_detail .qqlogin, .login_detail .sinalogin, .login_detail .weixinlogin {\n        display: inline-block;\n        width: 32px;\n        height: 32px;\n        margin-top: 20px;\n        \n      }\n      .login_detail .qqlogin {\n        margin-left: 51px;\n      }\n      .login_detail .sinalogin {\n        margin-left: 41px;\n      }\n      .login_detail .weixinlogin {\n        margin-left: 41px;\n      }\n      .login_detail .other_login {\n        float: left;\n        height: 57px;\n        width: 100%;\n      } \n      .login_detail .other_login a {\n        float: left;\n      }\n      .favor-dp-detail {\n        display: none;\n      }\n      .islogin .favor-dp-detail {\n        display: block;\n      }\n      #topfavor_detail .favor-list {\n        height: 256px;\n        width: 280px;\n        margin: 0px;\n        padding: 0px;\n        float: left;\n      }\n      #topfavor_detail .favor-list li {\n        list-style: none;\n        height: 76px;\n        margin-top: 20px;\n        overflow: hidden;\n        margin-left: 14px;\n        float: none;\n      }\n      #topfavor_detail .favor-list li:first-child {\n        margin-top: 14px;\n      }\n      #topfavor_detail .favor-list li .item_img {\n        height: 74px;\n        width: 74px;\n        float: left;\n        text-align: center;\n        border: 1px solid #edf1f2;\n      }\n      #topfavor_detail .favor-list li .item_img:after {\n        content:\'\';\n        width:0;\n        height:100%;\n        display:inline-block;\n        vertical-align:middle;\n      }\n      #topfavor_detail .item_img img {\n        max-height: 74px;\n        max-width: 74px;\n        margin: 0 auto;\n        display: inline-block;\n        vertical-align: middle;\n      }\n      #topfavor_detail .item_desc {\n        display: inline-block;\n        margin-left: 14px;\n        float: left;\n        -margin-left: 10px;\n        width: 164px;\n      }\n      #topfavor_detail a.item_title {\n        font-size: 12px;\n        line-height: 16px;\n        height: 32px;\n        width: 159px;\n        text-decoration: none;\n      }\n      #topfavor_detail a.item_title:hover {\n        text-decoration: none;\n        color: #48befe;\n      }\n      #topfavor_detail .other_desc, #topfavor_detail .item_title {\n        height: 16px;\n        line-height: 16px;\n        display: block;\n        text-align: left;\n        overflow: hidden;\n        float: left;\n      }\n      #topfavor_detail .other_desc {\n        margin-top: 26px;\n        width: 164px;\n      }\n      #topfavor_detail span.site_icon {\n        height: 16px;\n        line-height: 16px;\n        cursor: text;\n      }\n      #topfavor_detail .site_icon img {\n        height: 16px;\n      }\n      #topfavor_detail span.item_price {\n        margin-left: 6px;\n        margin-top: 2px;\n        cursor: text;\n        display: inline-block;\n        height: 14px;\n        line-height: 14px;\n        color: #e4393c;\n        font-size: 14px;\n        font-weight: bold;\n      }\n      #topfavor_detail span.item_close_btn {\n        font-size: 12px;\n        height: 12px;\n        width: 25px;\n        float: right;\n        text-align: center;\n        line-height: 16px;\n        letter-spacing: 0;\n        cursor: pointer;\n      }\n      #topfavor_detail span.item_close_btn:hover {\n        color: #48befe;\n      }\n      #topfavor_detail .see-all-favor {\n        position: absolute;\n        bottom: 17px;\n        right: 14px;\n        font-size: 12px;\n        text-decoration: none;\n      }\n      #topfavor_detail .see-all-favor:hover{\n        color: #48befe;\n      }\n    </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 31645:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ ReviewPopup)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/AI/ReviewPopup.vue?vue&type=template&id=7b48957e&scoped=true
var ReviewPopupvue_type_template_id_7b48957e_scoped_true = __webpack_require__(78615);
;// ./src/standard/module/components/AI/ReviewPopup.vue?vue&type=template&id=7b48957e&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/AI/ReviewPopup.vue?vue&type=script&lang=js
var ReviewPopupvue_type_script_lang_js = __webpack_require__(28192);
;// ./src/standard/module/components/AI/ReviewPopup.vue?vue&type=script&lang=js
 /* harmony default export */ const AI_ReviewPopupvue_type_script_lang_js = (ReviewPopupvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/AI/ReviewPopup.vue?vue&type=style&index=0&id=7b48957e&prod&scoped=true&lang=less
var ReviewPopupvue_type_style_index_0_id_7b48957e_prod_scoped_true_lang_less = __webpack_require__(84639);
;// ./src/standard/module/components/AI/ReviewPopup.vue?vue&type=style&index=0&id=7b48957e&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/AI/ReviewPopup.vue?vue&type=style&index=1&id=7b48957e&prod&scoped=true&lang=less
var ReviewPopupvue_type_style_index_1_id_7b48957e_prod_scoped_true_lang_less = __webpack_require__(11456);
;// ./src/standard/module/components/AI/ReviewPopup.vue?vue&type=style&index=1&id=7b48957e&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/AI/ReviewPopup.vue?vue&type=style&index=2&id=7b48957e&prod&scoped=true&lang=less
var ReviewPopupvue_type_style_index_2_id_7b48957e_prod_scoped_true_lang_less = __webpack_require__(47137);
;// ./src/standard/module/components/AI/ReviewPopup.vue?vue&type=style&index=2&id=7b48957e&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(85072);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(97825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(77659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(55056);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(10540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(41113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/AI/ReviewPopup.vue?vue&type=style&index=3&id=7b48957e&prod&lang=css
var ReviewPopupvue_type_style_index_3_id_7b48957e_prod_lang_css = __webpack_require__(43727);
var ReviewPopupvue_type_style_index_3_id_7b48957e_prod_lang_css_default = /*#__PURE__*/__webpack_require__.n(ReviewPopupvue_type_style_index_3_id_7b48957e_prod_lang_css);
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/AI/ReviewPopup.vue?vue&type=style&index=3&id=7b48957e&prod&lang=css

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());

      options.insert = insertBySelector_default().bind(null, "head");
    
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()((ReviewPopupvue_type_style_index_3_id_7b48957e_prod_lang_css_default()), options);




       /* harmony default export */ const AI_ReviewPopupvue_type_style_index_3_id_7b48957e_prod_lang_css = ((ReviewPopupvue_type_style_index_3_id_7b48957e_prod_lang_css_default()) && (ReviewPopupvue_type_style_index_3_id_7b48957e_prod_lang_css_default()).locals ? (ReviewPopupvue_type_style_index_3_id_7b48957e_prod_lang_css_default()).locals : undefined);

;// ./src/standard/module/components/AI/ReviewPopup.vue?vue&type=style&index=3&id=7b48957e&prod&lang=css

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/AI/ReviewPopup.vue



;





/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  AI_ReviewPopupvue_type_script_lang_js,
  ReviewPopupvue_type_template_id_7b48957e_scoped_true/* render */.XX,
  ReviewPopupvue_type_template_id_7b48957e_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "7b48957e",
  null
  
)

/* harmony default export */ const ReviewPopup = (component.exports);

/***/ }),

/***/ 31778:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".bjgou-subsidy-bar[data-v-7da8ed48] {\n  background: white;\n  border-left: 1px solid #e6e9eb;\n  border-right: 1px solid #e6e9eb;\n  border-bottom: 1px solid #e6e9eb;\n  width: 460px;\n  display: inline-flex;\n  align-items: center;\n  font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\";\n  height: 34px;\n}\n.bjgou-subsidy-bar .bjg-badge[data-v-7da8ed48] {\n  font-size: 0;\n  margin-left: 12px;\n  position: relative;\n  text-align: center;\n}\n.bjgou-subsidy-bar .bjg-badge span[data-v-7da8ed48] {\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 32px;\n  height: 32px;\n  display: block;\n  line-height: 32px;\n  font-size: 22px;\n  color: white;\n  transform: scale(0.5);\n  transform-origin: top left;\n}\n.bjgou-subsidy-bar .bjg-bold[data-v-7da8ed48] {\n  font-size: 13px;\n  font-weight: bold;\n  color: #ff2d53;\n}\n.bjgou-subsidy-bar .bjg-take[data-v-7da8ed48] {\n  min-width: 87px;\n  height: 22px;\n  border: 1px solid #FF2D53;\n  position: relative;\n  display: flex;\n  cursor: pointer;\n}\n.bjgou-subsidy-bar .bjg-take span[data-v-7da8ed48] {\n  font-size: 12px;\n  text-align: center;\n  line-height: 22px;\n}\n.bjgou-subsidy-bar .bjg-take .taker[data-v-7da8ed48] {\n  color: white;\n  width: 36px;\n  height: 24px;\n  line-height: 24px;\n  background: linear-gradient(90deg, #FF3A62 0%, #FF665B 100%);\n  display: inline-block;\n}\n.bjgou-subsidy-bar .bjg-take .qrcode[data-v-7da8ed48] {\n  display: none;\n  position: absolute;\n  top: 27px;\n  right: -15px;\n  width: 148px;\n  height: 156px;\n  background: #FFF7F7;\n  border: 1px solid #FF2D53;\n  z-index: 9;\n}\n", ""]);

// exports


/***/ }),

/***/ 31900:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(12027);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("92f79678", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 31910:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "gwd-row gwd-align gwd-img-same",
    class: `gwd-${_vm.site}`,
    attrs: {
      role: "button",
      title: _vm.transText("点击查看结果")
    },
    on: {
      click: function ($event) {
        $event.preventDefault();
        return _vm.openApp.apply(null, arguments);
      }
    }
  }, [_c("img", {
    staticStyle: {
      width: "16px",
      height: "16px"
    },
    attrs: {
      src: __webpack_require__(19981),
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "margin-left": "5px",
      color: "#11192d",
      "font-size": "14px"
    }
  }, [_vm._v(_vm._s(_vm.transText("根据图片找同款")))])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 32012:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
__webpack_require__(26910);
__webpack_require__(3362);
var _Normal = _interopRequireDefault(__webpack_require__(55379));
var _Special = _interopRequireDefault(__webpack_require__(25435));
var _ShaiDan = _interopRequireDefault(__webpack_require__(91547));
var _util = _interopRequireDefault(__webpack_require__(30888));
var _globalCondition = _interopRequireDefault(__webpack_require__(41761));
var _default = exports.A = {
  components: {
    Normal: _Normal.default,
    Special: _Special.default,
    ShaiDan: _ShaiDan.default
  },
  props: ['promoHistory', 'showApp'],
  data() {
    return {
      linkContent: '',
      linkUrl: '',
      lineHeight: 200,
      left: -492,
      price: '',
      tip: '',
      ready: false,
      priceType: '',
      currentPromo: '',
      promoUrl: '',
      currency: (__webpack_require__(22209).getMoneyInfo)(G.logsite)[0],
      isAliSite: G.aliSite,
      showingPromo: [],
      shaidanAvailable: G.shaidanAvailable,
      showingType: 'special' // special/normal
    };
  },
  methods: {
    async syncHeight() {
      let p = await _globalCondition.default.met('lastPointPos');
      _globalCondition.default.clear('lastPointPos');
      this.$nextTick(() => {
        let lHeight = $('.max-min-priinfo').height();
        if (lHeight < 64) lHeight = 64;
        let left = gwd_chart.axes[0].left;
        this.left = (this.shaidanAvailable ? -452 : -675) + left;
        this.lineHeight = p.plotY + parseInt(lHeight) + 5 + 4 + 16 + 38;
        this.price = p.y;
        if (this.promoHistory.analysis) this.tip = this.promoHistory.analysis.tip;
        this.priceType = p.series.name.indexOf('页面价') > -1 ? '到手价(单件)' : '到手价(多件)';
        _globalCondition.default.setMet('priceTipText', `当前${this.priceType}: ${this.currency}${parseFloat(this.price).toFixed(2)}${this.tip ? ',' : ''} ${this.tip}`);
        let promos = [];
        if (G.aliSite || G.site === '360buy') {
          this.ready = true;
        }
        if (this.promoHistory.promoShow) {
          let lastPromo = this.promoHistory.promoShow[0];
          this.currentPromo = lastPromo.msg.promotion ? lastPromo.msg.promotion + ';' : '';
          if (lastPromo.msg.coupon) {
            this.currentPromo += lastPromo.msg.coupon;
          }
          let type = '到手价(多件)';
          if (this.promoHistory.store.length > 1 && this.promoHistory.store[1].name === '到手价') {
            type = '到手价';
          }
          promos = promos.concat(this.promoHistory.promoShow.map(x => {
            x.type = type;
            return x;
          }).filter(x => {
            return x.time * 1000 >= this.promoHistory.store[1].all_line_begin_time - 19 * 3600000;
          }));
          if (_util.default.getTimeNumber(new Date(lastPromo.time * 1000), '2') !== _util.default.getTimeNumber(new Date(), '2')) {
            this.currentPromo = '';
          }
        }

        // if (this.promoHistory.nopuzzle_promo) {
        //   promos = promos.concat(this.promoHistory.nopuzzle_promo.map(x => {
        //     x.type = '页面价'
        //     return x
        //   }))
        // }

        this.setShowingPromo(promos);
        this.currentPromo = this.currentPromo.replace(/;/g, '；');
      });
    },
    getTimePrice(time) {
      let current = this.promoHistory.store[0].all_line_begin_time,
        idx = 0;
      while (_util.default.getTimeNumber(current, '2') !== time) {
        current += 86400000;
        idx++;
        if (idx > this.promoHistory.store[0].all_line.length - 1) return null;
      }
      return {
        price: this.promoHistory.store[0].all_line[idx],
        time: current
      };
    },
    urlClick() {
      window.open(this.promoUrl);
    },
    setShowingPromo(promos) {
      let obj = {};
      promos.map(x => {
        let t = new Date(x.time * 1000);
        return {
          pagePrice: '',
          price: x.price / 100,
          oriPrice: x.ori_price / 100,
          promo: x.msg.promotion,
          coupon: x.msg.coupon,
          dateStr: _util.default.getTimeNumber(t, '2'),
          time: x.time * 1000,
          type: x.isDSJ ? '到手价' : '到手价(多件)',
          isDSJ: x.isDSJ
        };
      }).forEach(x => {
        if (obj[x.dateStr]) {
          if (obj[x.dateStr].price > x.price) {
            obj[x.dateStr] = x;
          }
        } else {
          obj[x.dateStr] = x;
        }
      });
      let key618, key1111;
      if (this.promoHistory.analysis) {
        this.promoHistory.analysis.promo_days.forEach(item => {
          if (item.show === '618价格') {
            key618 = item.date.substr(5);
          }
          if (item.show === '双11价格') {
            key1111 = item.date.substr(5);
          }
        });
      }
      let pri618 = this.getTimePrice('06-18');
      let pri1111 = this.getTimePrice('11-11');
      // if (false) {
      if (obj[key1111] || obj[key618] || pri618 || pri1111) {
        if (obj[key1111]) {
          obj[key1111].type = '到手价(多件)';
          obj[key1111].date = new Date(obj[key1111].time).getFullYear() + '-' + key1111;
          obj[key1111].dateStr = '11-11';
          this.showingPromo.push(obj[key1111]);
        }
        if (obj[key618]) {
          obj[key618].type = '到手价(多件)';
          obj[key618].date = new Date(obj[key618].time).getFullYear() + '-' + key618;
          obj[key618].dateStr = '06-18';
          this.showingPromo.push(obj[key618]);
        }
        if (pri618 && !obj[key618]) {
          this.showingPromo.push({
            pagePrice: '',
            price: pri618.price,
            dateStr: '06-18',
            time: pri618.time,
            date: new Date(pri618.time).getFullYear() + '-' + '06-18',
            type: '到手价'
          });
        }
        if (pri1111 && !obj[key1111]) {
          this.showingPromo.push({
            pagePrice: '',
            price: pri1111.price,
            dateStr: '11-11',
            time: pri1111.time,
            date: new Date(pri1111.time).getFullYear() + '-' + '11-11',
            type: '到手价'
          });
        }
        this.showingPromo.sort((a, b) => b.time - a.time);
        this.showingType = 'special';
        _globalCondition.default.setMet('showingPromo', this.showingPromo);
        return;
      }
      this.showingType = 'normal';
      let todayPoint = obj[_util.default.getTimeNumber(new Date(), '2')];
      let r = Object.keys(obj).map(k => obj[k]).filter(x => x.dateStr !== _util.default.getTimeNumber(new Date(), '2'));
      r.sort((a, b) => b.time - a.time);
      let nearest = r[0];
      let lowest = r[0];
      r.forEach(x => {
        if (x.price < lowest.price) {
          lowest = x;
        }
      });
      if (todayPoint && todayPoint.price <= lowest.price) {
        r = r.filter(x => x.dateStr !== _util.default.getTimeNumber(new Date(), '2'));
        if (r.length) {
          r[0].badge = '最近';
          this.showingPromo = [r[0]];
          if (r.length > 1) {
            this.showingPromo.push(r[1]);
          }
        }
        return;
      }
      if (!nearest) return;
      if (nearest.time !== lowest.time) {
        nearest.badge = '最近';
        lowest.badge = '最低';
        this.showingPromo = [nearest, lowest];
      } else {
        lowest.badge = '最低';
        let secondLowest = r.filter(x => x.time !== lowest.time).reverse()[0];
        this.showingPromo = [lowest, secondLowest];
      }
    }
  },
  computed: {
    strokeColor() {
      return this.priceType === '到手价(单件)' ? '#5acffb' : '#ffc06d';
    },
    textColor() {
      return this.priceType === '到手价(单件)' ? '#5acffb' : '#fba500';
    },
    width() {
      if (this.showingPromo && this.showingPromo.length > 0) {
        $('#mini_price_history_detail').css('width', '690px');
        return 690;
      } else {
        if (this.promoHistory.analysis) {
          $('#mini_price_history_detail').css('width', '640px');
        }
        return 640;
      }
    }
  },
  mounted() {
    this.syncHeight();
    _globalCondition.default.met('promoUrl').then(res => {
      this.promoUrl = res;
    });
    _globalCondition.default.met('couponLink').then(res => {
      if (G.from_device === 'chrome' || G.from_device === 'firefox') {
        return;
      }
      this.linkContent = res.content;
      this.linkUrl = res.url;
    });
  }
};

/***/ }),

/***/ 32222:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-promotion-icon gwd-column gwd-align gwd-jcc",
    class: `gwd-${_vm.site} ${_vm.additionalClass}`,
    on: {
      mouseover: _vm.clearNum
    }
  }, [_c("img", {
    staticStyle: {
      width: "39px",
      height: "50px"
    },
    attrs: {
      src: __webpack_require__(71239)
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "margin-top": "4px"
    }
  }, [_vm._v("折扣精选")]), _vm._v(" "), _c("PromotionList", {
    ref: "pList",
    staticClass: "gwd-hover-show"
  })], 1);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 32273:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, fmdv = $data.fmdv, $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, lang = $data.lang;
    $$out += '<div id="miniCouponCom" class="';
    $$out += $escape(fmdv);
    $$out += '">\n  <ul>\n    ';
    $each(data, function ($value, $index) {
        $$out += '\n      <li ';
        if ($value.same_style) {
            $$out += ' class="isSamestyle" ';
        }
        $$out += '>\n        <span class="samestyle">';
        if (lang == 'en') {
            $$out += 'Same product';
        } else {
            $$out += '同款';
        }
        $$out += '</span>\n        <img src="';
        $$out += $escape($value.sicon);
        $$out += '" class="mini-site-icon mini-site-icon1">\n        <a href="';
        $$out += $escape($value.click_url2);
        $$out += '" target="_blank" class="mini-cc-tle">';
        $$out += $escape($value.title);
        $$out += '</a>\n        <div class="cc-other-info">\n          <img src="';
        $$out += $escape($value.sicon);
        $$out += '" class="mini-site-icon">\n          <span class="cc-now-price">';
        if (lang == 'en') {
            $$out += 'Price after coupon';
        } else {
            $$out += '券后价';
        }
        $$out += '\uFF1A\uFFE5';
        $$out += $escape($value.promoPri);
        $$out += '</span>\n          <span class="cc-old-price">\uFFE5';
        $$out += $escape($value.price);
        $$out += '</span>\n          <a class="click2get2" href="';
        $$out += $escape($value.click_url2);
        $$out += '" target="_blank">\n            <span class="c2g2-sp1">\uFFE5';
        $$out += $escape($value.coupon_money);
        $$out += '</span>\n            <span class="c2g2-sp2">';
        if (lang == 'en') {
            $$out += 'Take';
        } else {
            $$out += '领取';
        }
        $$out += '</span>\n          </a>\n          <em class="coupon_gif"></em>\n        </div>\n      </li>\n    ';
    });
    $$out += '\n  </ul>\n  <style type="text/css">\n    #miniCouponCom {\n      width: 460px;\n      height: 62px;\n      float: left;\n      background: #FFFFFF;\n      overflow: hidden;\n      position: relative;\n      border: 1px solid #E6E9EB;\n      top: -1px;\n    }\n    #miniCouponCom.east #miniCouponCom.universal {\n      top: 0px;\n    }\n    .gwd_kaola #miniCouponCom {\n      float: none;\n    }\n    #miniCouponCom * {\n      font-family: "Microsoft YaHei";\n    }\n    #miniCouponCom ul {\n      position: absolute;\n      top: 0px;\n    }\n    #miniCouponCom ul li {\n      list-style: none;\n      height: 62px;\n      width:  460px;\n    }\n    #miniCouponCom ul li>* {\n      float: left;\n    }\n    #miniCouponCom .samestyle+.mini-site-icon {\n      margin-top: 8px;\n    }\n    #miniCouponCom .mini-site-icon {\n      margin-left: 12px;\n      margin-right: 11px;\n      margin-top: 4px;\n    }\n    .cc-other-info .mini-site-icon {\n      display: none;\n    }\n    .isSamestyle .cc-other-info .mini-site-icon {\n      display: inline-block;\n    }\n    #miniCouponCom .mini-cc-tle {\n      width: 398px;\n      height: 32px;\n      overflow: hidden;\n      line-height: 32px;\n      font-size: 12px;\n      color: #404547;\n      letter-spacing: 0;\n      text-decoration: none;\n    }\n    #miniCouponCom .cc-now-price {\n      font-size: 12px;\n      color: #FF3B5C;\n      letter-spacing: 0;\n      font-weight: bold;\n      margin-right: 8px;\n      margin-left: 12px;\n    }\n    #miniCouponCom .isSamestyle .cc-now-price {\n      margin-left: 0px;\n    }\n    #miniCouponCom .coupon_gif {\n      background: url(\'https://cdn.gwdang.com/images/extensions/newbar/turn.gif\') 0px 0px no-repeat;\n      float: right!important;\n      height: 20px;\n      width: 56px;\n      margin-top: 5px;\n      margin-right: 11px;\n    }\n    #miniCouponCom .click2get2 {\n      background: url(\'https://cdn.gwdang.com/images/extensions/newbar/coupon_01.png\') 0px 0px no-repeat;\n      float: right!important;\n      height: 30px;\n      width: 96px;\n      margin-right: 12px;\n    }\n    #miniCouponCom .click2get2 span {\n      height: 24px;\n      float: left;\n      margin-left: 1px;\n    }\n    #miniCouponCom .c2g2-sp1 {\n      width: 50px;\n      color: #FF3B5C;\n      text-align: center;\n      font-size: 14px;\n      line-height: 24px!important;\n    }\n    #miniCouponCom .c2g2-sp2 {\n      width: 44px;\n      line-height: 24px!important;\n      color: #fff!important;\n      text-align: center;\n    }\n    #miniCouponCom .cc-other-info {\n      width: 100%;\n      line-height: 24px;\n    }\n    #miniCouponCom .cc-other-info * {\n      float: left;\n    }\n    #miniCouponCom .cc-old-price {\n      font-size: 12px;\n      color: #7D7E80;\n      text-decoration: line-through;\n    }\n    #miniCouponCom .samestyle {\n      background: #FFF1F4;\n      border: 1px solid #FF3B5C;\n      width: 30px;\n      height: 16px;\n      line-height: 16px;\n      text-align: center;\n      margin-left: 12px;\n      margin-right: 11px;\n      margin-top: 7px;\n      font-size: 12px;\n      color: #FF3B5C;\n      display: none;\n    }\n    #miniCouponCom .isSamestyle .samestyle {\n      display: inline-block;\n    }\n    #miniCouponCom .isSamestyle .mini-site-icon1 {\n      display: none;\n    }\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 32290:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "\n.qrcode[data-v-cda10c54] {\n  display: none;\n  position: absolute;\n  top: 27px;\n  right: -15px;\n  width: 148px;\n  height: 156px;\n  background: #FFF7F7;\n  border: 1px solid #FF2D53;\n  z-index: 9;\n}\n.bjgou-subsidy-bar:hover .qrcode[data-v-cda10c54] {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n}\n#coupon_box.coupon-box1[data-v-cda10c54] {\n  width: 460px;\n  height: 34px;\n  background-color: #fff;\n  border: 1px solid #e8e8e8;\n  border-top: none;\n  position: relative;\n  margin: 0px;\n  padding: 0px;\n  float: left;\n  display: block;\n}\n#coupon_box[data-v-cda10c54]:after {\n  display: block;\n  content: \"\";\n  clear: both;\n}\n.gwd_tmall #gwd_minibar[data-v-cda10c54] {\n  float: none;\n}\n#coupon_box *[data-v-cda10c54] {\n  cursor: pointer;\n}\n.minicoupon_detail[data-v-cda10c54] {\n  position: absolute;\n  top: 35px;\n  right: -1px;\n  height: 150px;\n  width: 132px;\n  display: none;\n  z-index: 99999999999;\n  background: #FFF7F8;\n  border: 1px solid #F95774;\n}\n#coupon_box:hover .minicoupon_detail[data-v-cda10c54] {\n  display: block;\n}\n#coupon_box:hover .gwd-qrcode-container[data-v-cda10c54] {\n  display: flex;\n}\n#coupon_box:hover .gwd-qrcode-container[data-v-cda10c54] {\n  right: 0!important;\n  margin-right: 0!important;\n  z-index: 999;\n}\n#coupon_box:hover .gwd-qrcode-jd[data-v-cda10c54] {\n  top: 6px;\n}\n.minicoupon_detail img[data-v-cda10c54] {\n  width: 114px;\n  height: 114px;\n  float: left;\n  margin-left: 9px;\n  margin-top: 9px;\n}\n.minicoupon_detail span[data-v-cda10c54] {\n  font-size: 14px;\n  color: #F95572;\n  letter-spacing: 0;\n  font-weight: bold;\n  float: left;\n  height: 12px;\n  line-height: 14px;\n  width: 100%;\n  margin-top: 6px;\n  text-align: center;\n}\n.coupon-box1 *[data-v-cda10c54] {\n  font-family: 'Microsoft YaHei',Arial,SimSun;\n}\n.coupon-icon[data-v-cda10c54] {\n  float: left;\n  width: 20px;\n  height: 20px;\n  background: url('https://cdn.gwdang.com/images/extensions/newbar/coupon_icon.png') 0px 0px no-repeat;\n  margin: 9px 8px 9px 12px;\n}\n#coupon_box .coupon-tle[data-v-cda10c54] {\n  color: #FF3B5C;\n  font-size: 12px;\n  margin-right: 11px;\n  float: left;\n  height: 34px;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  width: 301px;\n  line-height: 34px;\n  text-decoration: none!important;\n}\n#coupon_box .coupon-tle *[data-v-cda10c54] {\n  color: #f15672;\n}\n#coupon_box .coupon-tle span[data-v-cda10c54] {\n  margin-right: 5px;\n}\n.coupon_gif[data-v-cda10c54] {\n  background: url('https://cdn.gwdang.com/images/extensions/newbar/turn.gif') 0px 0px no-repeat;\n  float: right;\n  height: 20px;\n  width: 56px;\n  margin-top: 9px;\n}\n.click2get[data-v-cda10c54] {\n  width: 70px;\n  height: 18px;\n  background: linear-gradient(90deg, #EF2525 0%, #FF2F20 100%);\n  border-radius: 9px;\n  text-align: center;\n}\n.click2get span[data-v-cda10c54] {\n  font-size: 12px;\n  color: #fff;\n}\n.c2g-sp1[data-v-cda10c54] {\n  width: 50px;\n  color: #FF3B5C;\n  text-align: center;\n  font-size: 14px;\n  line-height: 24px!important;\n}\n.c2g-sp2[data-v-cda10c54] {\n  width: 44px;\n  line-height: 24px!important;\n  color: #fff!important;\n  text-align: center;\n}\ndiv#gwd_wishlist_div.gwd_wishlist_div[data-v-cda10c54] {\n  border-bottom-right-radius: 0px;\n  border-bottom-left-radius: 0px;\n}\n", ""]);

// exports


/***/ }),

/***/ 32413:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


//添加基本的参数配置和函数
__webpack_require__(71617);
G.extend({
  union: "union_gwdang",
  chrome_extension: false,
  from_device: "firefox",
  crc64: true,
  show_tip: 1,
  show_wishlist: 1,
  show_guess: 1,
  show_mainbar: 1,
  show_promo: 1,
  set_force: false,
  extBrand: 'gwd',
  extName: 'gwdang',
  default_style: 'top',
  ut: '&trans=1',
  p_id: '',
  is_open: 0,
  position: 0,
  style: '',
  notice: 0,
  first: 0,
  fold: 0,
  p_fold: 0,
  pop_share: 1,
  email: '',
  subsite_id: '',
  force: [],
  on_building: true,
  gwd_h: $('head').append,
  built_counter: 0,
  collectionChanged: true,
  gwd_browser_type: 1,
  is_site_page: null,
  href: window.location ? window.location.href : '',
  collectInfo: {
    dp_id: "",
    title: "",
    site_id: 0,
    url: "",
    img: "",
    price: "",
    comment: ""
  },
  now_dp_id: '',
  where_buy_dps: '',
  width: document.documentElement.clientWidth > 0 ? document.documentElement.clientWidth : document.body.clientWidth,
  timer: null,
  timer2: null,
  timer3: null,
  timer4: null,
  timer5: null,
  //fix suning
  timer5_mutex: true,
  //mutex
  height: 0,
  scrollTop: 0,
  page_size: 6,
  page_size_mini: 4,
  page_now: {
    b2c: 1,
    taobao: 1,
    tmall: 1,
    also_buy: 1,
    promotion: 1,
    b2c_fuzzy: 1
  },
  page_total: {
    b2c: 1,
    taobao: 1,
    tmall: 1,
    also_buy: 1,
    promotion: 1,
    b2c_fuzzy: 1
  },
  total_num: {
    b2c: 6,
    taobao: 6,
    tmall: 6,
    also_buy: 6,
    promotion: 6,
    b2c_fuzzy: 6
  },
  module_name: ["b2c", "taobao", "tmall", "also_buy", "promotion", "b2c_fuzzy"],
  dpIsBook: false,
  hiddenFavorButton: false,
  save_tbres_data: null,
  save_promo_len: 0,
  save_price_trend_data: null,
  save_promo_data: null,
  topResizeTimer: null,
  bottomResizeTimer: null
});

/***/ }),

/***/ 32546:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(6695);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("12797050", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 32606:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ TrendSideLine)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TrendSideLine.vue?vue&type=template&id=eab637cc&scoped=true
var TrendSideLinevue_type_template_id_eab637cc_scoped_true = __webpack_require__(47460);
;// ./src/common/components/TrendSideLine.vue?vue&type=template&id=eab637cc&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TrendSideLine.vue?vue&type=script&lang=js
var TrendSideLinevue_type_script_lang_js = __webpack_require__(32012);
;// ./src/common/components/TrendSideLine.vue?vue&type=script&lang=js
 /* harmony default export */ const components_TrendSideLinevue_type_script_lang_js = (TrendSideLinevue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TrendSideLine.vue?vue&type=style&index=0&id=eab637cc&prod&scoped=true&lang=less
var TrendSideLinevue_type_style_index_0_id_eab637cc_prod_scoped_true_lang_less = __webpack_require__(658);
;// ./src/common/components/TrendSideLine.vue?vue&type=style&index=0&id=eab637cc&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/TrendSideLine.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_TrendSideLinevue_type_script_lang_js,
  TrendSideLinevue_type_template_id_eab637cc_scoped_true/* render */.XX,
  TrendSideLinevue_type_template_id_eab637cc_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "eab637cc",
  null
  
)

/* harmony default export */ const TrendSideLine = (component.exports);

/***/ }),

/***/ 32676:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
const request = __webpack_require__(49388);
const userCenter = __webpack_require__(76904);
const wechat = userCenter.getQueryString('/UserUnion/Authorize', {
  utype: 2,
  _referer: location.href
});
const qq = userCenter.getQueryString('/UserUnion/Authorize', {
  utype: 1,
  _referer: location.href
});
const weibo = userCenter.getQueryString('/UserUnion/Authorize', {
  utype: 3,
  _referer: location.href
});
var _default = exports.A = {
  props: ['showAlterLogin', 'alterLoginPosition', 'position'],
  data() {
    return {
      currentLoginMethod: 'phone',
      loginError: false,
      showPassword: false,
      extName: G.extName,
      url: location.href,
      account: '',
      password: '',
      phone: '',
      verifyCode: '',
      countDown: 0,
      remember_me: false,
      smsLoginUrl: '',
      wechat: wechat,
      qq: qq,
      weibo: weibo
    };
  },
  methods: {
    goLogin() {
      if (this.position === 'gwd-popup') {
        window.open('https://www.gwdang.com/user/login');
      } else {
        let u = encodeURIComponent(location.href);
        location.href = `https://www.gwdang.com/user/login?ext=1&from_url=${u}`;
      }
    },
    goLink(place) {
      let param = {};
      if (place === 'wechat') {
        param.utype = '2';
      }
      if (place === 'qq') {
        param.utype = '1';
      }
      if (place === 'weibo') {
        param.utype = '3';
      }
      if (this.position === 'gwd-popup') {
        window.open(userCenter.getQueryString('/UserUnion/Authorize', param));
      } else {
        param._referer = location.href;
        location.href = userCenter.getQueryString('/UserUnion/Authorize', param);
      }
    },
    goReg() {
      if (this.position === 'gwd-popup') {
        window.open('https://www.gwdang.com/user/register');
      }
      location.href = 'https://www.gwdang.com/user/register';
    },
    sendSms() {
      if (this.countDown > 0) {
        return;
      }
      (__webpack_require__(76904).sendSms)(this.phone).then(res => {
        this.countDown = 60;
        this.smsLoginUrl = res.data.capi;
        let t = setInterval(() => {
          if (this.countDown === 0) {
            clearInterval(t);
            return;
          }
          this.countDown--;
        }, 1000);
      });
    },
    login() {
      if (this.currentLoginMethod === 'phone') {
        if (!this.smsLoginUrl) {
          alert('先发送验证码');
          return;
        }
        request.post(`${this.smsLoginUrl}`, {
          code: this.verifyCode
        }, true).then(res => {
          if (res.code === 1) {
            document.body.dispatchEvent(new CustomEvent('gwd-login-complete', {
              detail: res.data
            }));
          }
        });
      } else {
        (__webpack_require__(76904).login)(this.account, this.password, this.remember_me).then(res => {
          if (res.code === 1) {
            document.body.dispatchEvent(new CustomEvent('gwd-login-complete', {
              detail: res.data
            }));
          }
        });
      }
    }
  }
};

/***/ }),

/***/ 32752:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


module.exports = callback => {
  let cc = "?from_device=" + G.from_device + "&callback=?";
  if (G.from_device === 'sogou' || G.from_device === "chrome") cc = '?from_device=' + G.from_device;
  $.getJSON(G.server + '/ip.php' + cc).done(data => {
    if (data && data.result instanceof Array) {
      G.forbidWishlit = true;
      G.forbidYFQ = true;
    }
    if (data && data.result && data.result.address && data.result.address.indexOf('北京') > -1) {
      G.forbidWishlit = true;
      //  屏蔽 yifenqian 
      G.forbidYFQ = true;
    }
    callback();
  }).fail(() => {
    callback();
  });
};
module.exports.common = callback => {
  // let cc = "?from_device=" + G.from_device + "&callback=?"
  // if (G.from_device === 'sogou' || (G.from_device === 'bijiago' && G.chrome_extension))
  //   cc = '?from_device=' + G.from_device;
  // if (G.from_device === 'xdjf')
  //   cc = "?callback=?&district=1"
  callback(null);
  // $.getJSON(G.server + '/ip.php' + cc).then((data) => {
  //   debugger
  //   if (data && data.result && data.result.address) {
  //     callback(data);
  //   } else {
  //     callback(null)
  //   }
  //
  // }).catch(() => {
  //   callback(null)
  // })
};

/***/ }),

/***/ 32892:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


__webpack_require__(3362);
const md5 = __webpack_require__(83386);
const request = __webpack_require__(49388);
const bgClient = __webpack_require__(40076);
const _m_h5_tk = document.cookie.match(/_m_h5_tk=([^;]+)/)[1].split("_")[0];
const host = location.hostname.includes('.taobao.com') ? 'https://h5api.m.taobao.com' : `https://h5api.m.tmall.${location.hostname.includes('.hk') ? 'hk' : 'com'}`;
module.exports = {
  async get(itemId, page = 1) {
    const t = Date.now();
    const api = 'mtop.alibaba.review.list.for.new.pc.detail';
    const data = {
      itemId: itemId.replace('-83', '').replace('-123', '').replace('-8', ''),
      bizCode: 'ali.china.tmall',
      channel: 'pc_detail',
      pageSize: 20,
      pageNum: page,
      orderType: 'feedbackdate'
    };
    return request.requestXHR(request.makeUrl(host, `/h5/${api}/1.0/`, {
      jsv: '2.7.2',
      appKey: 12574478,
      t: t,
      sign: md5(`${_m_h5_tk}&${t}&12574478&${JSON.stringify(data)}`),
      api: api,
      v: '1.0',
      isSec: 0,
      ecode: 0,
      timeout: 20000,
      ttid: '2022@taobao_litepc_9.17.0',
      AntiFlood: true,
      AntiCreep: true,
      dataType: 'json',
      valueType: 'string',
      preventFallback: true,
      type: 'json',
      data: JSON.stringify(data)
    }));
  }
};

/***/ }),

/***/ 33113:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, tle = $data.tle, isShowPic = $data.isShowPic, data = $data.data, picUrl = $data.picUrl;
    $$out += '<a id="coupon_box" title="';
    $$out += $escape(tle);
    $$out += '" class="coupon-box1" ';
    if (!isShowPic) {
        $$out += ' href="';
        $$out += $escape(data.click_url2);
        $$out += '" target="_blank" style="cursor:pointer"';
    }
    $$out += '>\n  <span class="coupon-icon"></span>\n  <div  class="coupon-tle">\n    <span>当前商品可领内部券\uFF0C立减';
    $$out += $escape(data.coupon.coupon_money);
    $$out += '元</span> \n    <em class="coupon_gif"></em>\n  </div>\n  <div  class="click2get">\n    <span class="c2g-sp1">\uFFE5';
    $$out += $escape(data.coupon.coupon_money);
    $$out += '</span>\n    <span class="c2g-sp2">领取</span>\n  </div>\n  ';
    if (picUrl && isShowPic) {
        $$out += '\n  <div class="minicoupon_detail">\n      <img src="';
        $$out += $escape(picUrl);
        $$out += '">\n      <span>微信扫码领券</span>\n  </div>\n  ';
    }
    $$out += '\n  <style type="text/css">\n    #coupon_box.coupon-box1 {\n      width: 460px;\n      height: 34px;\n      background-color: #fff;\n      border: 1px solid #e8e8e8;\n      border-top: none;\n      position: relative;\n      margin: 0px;\n      padding: 0px;\n      float: left;\n      display: block;\n    }\n    #coupon_box:after {\n      display: block;\n      content: "";\n      clear: both;\n    }\n    .gwd_tmall #gwd_minibar {\n      float: none;\n    }\n    #coupon_box * {\n      ';
    if (isShowPic) {
        $$out += '\n      cursor: default;\n      ';
    } else {
        $$out += '\n      cursor: pointer;\n      ';
    }
    $$out += '\n    }\n    .minicoupon_detail {\n      position: absolute;\n      top: 35px;\n      right: -1px;\n      height: 150px;\n      width: 132px;\n      display: none;\n      z-index: 99999999999;\n      background: #FFF7F8;\n      border: 1px solid #F95774;\n    }\n    #coupon_box:hover .minicoupon_detail {\n      display: block;\n    }\n    #coupon_box:hover .gwd-qrcode-container {\n      display: flex;\n    }\n\n    #coupon_box:hover .gwd-qrcode-container {\n      right: 0!important;\n      margin-right: 0!important;\n      z-index: 999;\n    }\n\n    #coupon_box:hover .gwd-qrcode-jd {\n      top: 6px;\n    }\n\n    .minicoupon_detail img {\n      width: 114px;\n      height: 114px;\n      float: left;\n      margin-left: 9px;\n      margin-top: 9px;\n    }\n    .minicoupon_detail span {\n      font-size: 14px;\n      color: #F95572;\n      letter-spacing: 0;\n      font-weight: bold;\n      float: left;\n      height: 12px;\n      line-height: 14px;\n      width: 100%;\n      margin-top: 6px;\n      text-align: center;\n    }\n    .coupon-box1 * {\n      font-family: \'Microsoft YaHei\',Arial,SimSun;\n    }\n    .coupon-icon {\n      float: left;\n      width: 20px;\n      height: 20px;\n      background: url(\'https://cdn.gwdang.com/images/extensions/newbar/coupon_icon.png\') 0px 0px no-repeat;\n      margin: 9px 8px 9px 12px;\n    }\n    #coupon_box .coupon-tle {\n      color: #FF3B5C;\n      font-size: 12px;\n      margin-right: 11px;\n      float: left;\n      height: 34px;\n      overflow: hidden;\n      text-overflow: ellipsis;\n      white-space: nowrap;\n      width: 301px;\n      line-height: 34px;\n      text-decoration: none!important;\n    }\n    #coupon_box .coupon-tle * {\n      color: #f15672;\n    }\n    #coupon_box .coupon-tle span {\n      margin-right: 5px;\n    }\n    .coupon_gif {\n      background: url(\'https://cdn.gwdang.com/images/extensions/newbar/turn.gif\') 0px 0px no-repeat;\n      float: right;\n      height: 20px;\n      width: 56px;\n      margin-top: 9px;\n    }\n    .click2get {\n      background: url(\'https://cdn.gwdang.com/images/extensions/newbar/coupon_01.png\') 0px 0px no-repeat;\n      float: left;\n      height: 30px;\n      width: 96px;\n      margin-top: 5px;\n    }\n    .click2get span {\n      height: 24px;\n      float: left;\n      margin-left: 1px;\n    }\n    .c2g-sp1 {\n      width: 50px;\n      color: #FF3B5C;\n      text-align: center;\n      font-size: 14px;\n      line-height: 24px!important;\n    }\n    .c2g-sp2 {\n      width: 44px;\n      line-height: 24px!important;\n      color: #fff!important;\n      text-align: center;\n    }\n    div#gwd_wishlist_div.gwd_wishlist_div {\n      border-bottom-right-radius: 0px;\n      border-bottom-left-radius: 0px;\n    }\n  </style>\n</a>';
    return $$out;
};

/***/ }),

/***/ 33278:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ SideBar)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/SideBar.vue?vue&type=template&id=36e11cc6&scoped=true
var SideBarvue_type_template_id_36e11cc6_scoped_true = __webpack_require__(95625);
;// ./src/standard/module/components/SideBar.vue?vue&type=template&id=36e11cc6&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/SideBar.vue?vue&type=script&lang=js
var SideBarvue_type_script_lang_js = __webpack_require__(83089);
;// ./src/standard/module/components/SideBar.vue?vue&type=script&lang=js
 /* harmony default export */ const components_SideBarvue_type_script_lang_js = (SideBarvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/SideBar.vue?vue&type=style&index=0&id=36e11cc6&prod&lang=less&scoped=true
var SideBarvue_type_style_index_0_id_36e11cc6_prod_lang_less_scoped_true = __webpack_require__(92857);
;// ./src/standard/module/components/SideBar.vue?vue&type=style&index=0&id=36e11cc6&prod&lang=less&scoped=true

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/SideBar.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_SideBarvue_type_script_lang_js,
  SideBarvue_type_template_id_36e11cc6_scoped_true/* render */.XX,
  SideBarvue_type_template_id_36e11cc6_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "36e11cc6",
  null
  
)

/* harmony default export */ const SideBar = (component.exports);

/***/ }),

/***/ 33355:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAYdJREFUaEPtmNFtwzAMRMXNukmTyZps0s0UsJAAwbAskndCEJT+tUXf45ESbSkffsmH6y8J8G4H04F0AMxAlhCYQHh5OgCnEAzwfx2otf6UUn5F5Ikksdb6XUr5EpF7JE7IgSb+1l54i0I08Y8W5xGBcAMcxPekuSEO4nscN0QEQDOv5XO8zBAT8RrvLiLdEVNFuQE0aq01DMEUr1pCAFEItngIwAuxQzwMYIXYJZ4CsILoW+RJR7ob9qyrwz1wDHbR2GfvpYinOdAVGiFo4ukAi3IK7fOrw4BWQoMLOtvMDiPzYbcS3u9TAS52m1EPFYIGYBQfnp1mjlAArvb59mJodroqJxjAckghs9OqFyAAi3jDFgv1RBjAI34nRAggIn4XhBsAEb8DIgKgh5QeVuPlHg8mjf0Ukf6tverfv/tugDYujBBu8RMn3OLDAAOE/lZxfcNOplj9reLK/JZRwuQ5+aFQCZE1QOESAEofYXE6QEgiFCIdgNJHWJwOEJIIhUgHoPQRFr8A9LXIMfoAs74AAAAASUVORK5CYII=";

/***/ }),

/***/ 33376:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-qr-container[data-v-295049ea] {\n  display: none;\n  position: absolute;\n  right: 0px;\n  width: 153px;\n  height: 156px;\n  background: #FFF6F4;\n  border: 1px solid #FF6132;\n  flex-direction: column;\n  z-index: 9;\n  bottom: 28px;\n  align-items: center;\n}\n.mainbar-fold .gwd-member-coupon-top[data-v-295049ea] {\n  display: none;\n}\n.gwd-member-coupon-top[data-v-295049ea] {\n  height: 28px;\n  background: linear-gradient(to right, #f28936, #ff351e);\n  position: relative;\n  background-size: cover;\n  display: inline-flex;\n  align-items: center;\n  margin-top: 2px;\n  cursor: pointer;\n  border-radius: 2px;\n  margin-right: 5px;\n}\n.gwd-member-coupon-top .gwd-qr-container[data-v-295049ea] {\n  display: none;\n  position: absolute;\n}\n.gwd-member-coupon-top[data-v-295049ea]::before,\n.gwd-member-coupon-top[data-v-295049ea]::after {\n  content: '';\n  position: absolute;\n  left: 115px;\n  width: 4px;\n  height: 4px;\n  background: white;\n  border-radius: 2px;\n  top: -2px;\n}\n.gwd-member-coupon-top[data-v-295049ea]::after {\n  top: unset;\n  bottom: -2px;\n}\n.gwd-member-coupon-top[data-v-295049ea]:hover {\n  text-decoration: none;\n}\n.gwd-member-coupon-top:hover .gwd-qr-container[data-v-295049ea] {\n  display: flex;\n}\n", ""]);

// exports


/***/ }),

/***/ 33392:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var uncurryThis = __webpack_require__(79504);

var id = 0;
var postfix = Math.random();
var toString = uncurryThis(1.0.toString);

module.exports = function (key) {
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
};


/***/ }),

/***/ 33517:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var uncurryThis = __webpack_require__(79504);
var fails = __webpack_require__(79039);
var isCallable = __webpack_require__(94901);
var classof = __webpack_require__(36955);
var getBuiltIn = __webpack_require__(97751);
var inspectSource = __webpack_require__(33706);

var noop = function () { /* empty */ };
var construct = getBuiltIn('Reflect', 'construct');
var constructorRegExp = /^\s*(?:class|function)\b/;
var exec = uncurryThis(constructorRegExp.exec);
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);

var isConstructorModern = function isConstructor(argument) {
  if (!isCallable(argument)) return false;
  try {
    construct(noop, [], argument);
    return true;
  } catch (error) {
    return false;
  }
};

var isConstructorLegacy = function isConstructor(argument) {
  if (!isCallable(argument)) return false;
  switch (classof(argument)) {
    case 'AsyncFunction':
    case 'GeneratorFunction':
    case 'AsyncGeneratorFunction': return false;
  }
  try {
    // we can't check .prototype since constructors produced by .bind haven't it
    // `Function#toString` throws on some built-it function in some legacy engines
    // (for example, `DOMQuad` and similar in FF41-)
    return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  } catch (error) {
    return true;
  }
};

isConstructorLegacy.sham = true;

// `IsConstructor` abstract operation
// https://tc39.es/ecma262/#sec-isconstructor
module.exports = !construct || fails(function () {
  var called;
  return isConstructorModern(isConstructorModern.call)
    || !isConstructorModern(Object)
    || !isConstructorModern(function () { called = true; })
    || called;
}) ? isConstructorLegacy : isConstructorModern;


/***/ }),

/***/ 33706:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var uncurryThis = __webpack_require__(79504);
var isCallable = __webpack_require__(94901);
var store = __webpack_require__(77629);

var functionToString = uncurryThis(Function.toString);

// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
if (!isCallable(store.inspectSource)) {
  store.inspectSource = function (it) {
    return functionToString(it);
  };
}

module.exports = store.inspectSource;


/***/ }),

/***/ 33717:
/***/ ((__unused_webpack_module, exports) => {

"use strict";

// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
exports.f = Object.getOwnPropertySymbols;


/***/ }),

/***/ 33835:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['img', 'x', 'y', 'tipmode'],
  data() {
    return {
      imgWidth: 0,
      imgHeight: 0,
      over: false,
      maxWidth: 600
    };
  },
  methods: {
    onMouseOver() {
      this.over = true;
    },
    onMouseLeave() {
      this.over = false;
    }
  },
  computed: {
    style() {
      const imgWidth = this.imgWidth > this.maxWidth ? this.maxWidth : this.imgWidth;
      const imgHeight = this.imgHeight * imgWidth / this.imgWidth;
      const left = this.mode === 'landscape' ? this.x - imgWidth / 2 - 8 + 29 : this.x - imgWidth - 26 - 8;
      const top = this.mode === 'landscape' ? this.y - imgHeight - 26 - 6 : this.y - imgHeight / 2 - 8 + 7;
      return {
        left: left + 'px',
        top: top + 'px',
        'pointer-events': this.tipmode === 'tooltip' ? 'none' : ''
        // visibility: this.tipmode === 'tooltip' ? 'visible' : 'hidden',
      };
    },
    mode() {
      return this.imgWidth > this.imgHeight ? 'landscape' : 'portrait';
    }
  },
  mounted() {}
};

/***/ }),

/***/ 33994:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var IteratorPrototype = (__webpack_require__(57657).IteratorPrototype);
var create = __webpack_require__(2360);
var createPropertyDescriptor = __webpack_require__(6980);
var setToStringTag = __webpack_require__(10687);
var Iterators = __webpack_require__(26269);

var returnThis = function () { return this; };

module.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
  var TO_STRING_TAG = NAME + ' Iterator';
  IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
  setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
  Iterators[TO_STRING_TAG] = returnThis;
  return IteratorConstructor;
};


/***/ }),

/***/ 34192:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".bjg-coupon-white[data-v-4df286a2] {\n  color: #ffffff;\n}\n.bjgou-subsidy-bar[data-v-4df286a2] {\n  cursor: pointer;\n  margin-top: 5px;\n  width: 442px;\n  height: 67px;\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  background: url(https://cdn.bijiago.com/images/extensions/bijiago/bigCoupon@2x.png);\n  box-sizing: border-box !important;\n  background-size: contain;\n}\n.bjgou-subsidy-bar .qrcode[data-v-4df286a2] {\n  display: none;\n  position: absolute;\n  top: 70px;\n  right: -15px;\n  width: 148px;\n  height: 156px;\n  background: #FFF6F4;\n  border: 1px solid #FF6132;\n  z-index: 9;\n}\n.bjgou-subsidy-bar .bjg-bold[data-v-4df286a2] {\n  font-size: 13px;\n  font-weight: bold;\n  color: #ff2d53;\n}\n.bjgou-subsidy-bar .bjg-take[data-v-4df286a2] {\n  min-width: 87px;\n  height: 22px;\n  border-radius: 11px;\n  border: 1px solid #FF2D53;\n  position: relative;\n  display: flex;\n  cursor: pointer;\n}\n.bjgou-subsidy-bar .bjg-take span[data-v-4df286a2] {\n  font-size: 12px;\n  text-align: center;\n  line-height: 22px;\n}\n.bjgou-subsidy-bar .bjg-take .taker[data-v-4df286a2] {\n  color: white;\n  width: 36px;\n  height: 24px;\n  line-height: 24px;\n  background: linear-gradient(90deg, #FF3A62 0%, #FF665B 100%);\n  border-radius: 11px;\n  display: inline-block;\n}\n.bjgou-subsidy-bar[data-v-4df286a2]:hover {\n  text-decoration: none;\n}\n.bjgou-subsidy-bar:hover .qrcode[data-v-4df286a2] {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n}\n", ""]);

// exports


/***/ }),

/***/ 34246:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports["default"] = void 0;
var _vuex = __webpack_require__(95353);
let currencyConfig = (__webpack_require__(22209).getMoneyInfo)(G.logsite);
var _default = exports["default"] = {
  props: ['haitao'],
  computed: (0, _vuex.mapState)({
    priceRemind: state => state.priceRemind,
    user: state => state.user,
    trend: state => state.priceTrend
  }),
  data() {
    return {
      allPrice: '',
      currentPrice: '',
      notifySite: '',
      mode: 0,
      currency: currencyConfig ? currencyConfig[0] : '¥',
      settedNotifySite: null,
      errorText: '',
      errorFadeClass: false,
      hintText: '',
      hintFadeClass: false,
      allowAnimation: true,
      loaded: false,
      mPromo: true
    };
  },
  methods: {
    performUpdate() {
      this.allPrice = this.$store.state.priceRemind.allPrice;
      this.currentPrice = this.$store.state.priceRemind.currentPrice;
      this.notifySite = this.$store.state.priceRemind.notifySite;
      this.mode = this.$store.state.priceRemind.mode;
      this.mPromo = this.$store.state.priceRemind.notifierMPromo;
      this.settedNotifySite = this.$store.state.priceRemind.settedNotifySite;
      this.allowAnimation = false;
      setTimeout(() => {
        if (this.$store.state.priceRemind.hovered || !this.$store.state.priceRemind.collected) {
          this.allowAnimation = true;
        }
      }, 1000);
    },
    showError(text) {
      this.errorFadeClass = false;
      this.errorText = text;
      setTimeout(() => {
        this.errorFadeClass = true;
      }, 200);
    },
    showHint(text) {
      this.hintFadeClass = false;
      this.hintText = text;
      setTimeout(() => {
        this.hintFadeClass = true;
      }, 200);
    },
    cancel() {
      this.$store.dispatch('priceRemind/cancel');
    },
    submit() {
      let price;
      if (this.notifySite === 0) {
        price = this.allPrice;
      } else if (this.notifySite === 1) {
        price = this.currentPrice;
      }
      if (price === '') {
        this.showError('请输入商品期望价格');
        return;
      }
      if (price <= 0) {
        this.showError('请输入正确格式的价格');
        return;
      }
      if (price.toString().indexOf('.') > -1) {
        let after = price.toString().split('.')[1];
        if (after && after.length > 2) {
          this.showError('请输入正确格式的价格');
          return;
        }
      }
      if (this.$store.state.priceRemind.nowPrice && price > this.$store.state.priceRemind.nowPrice) {
        this.showError('价格不能高于当前商品价格');
        return;
      }
      this.$store.dispatch('priceRemind/submit', {
        notifySite: this.notifySite,
        price: price,
        mode: this.mode,
        notifyMPromo: this.mPromo
      }).then(r => {
        this.showHint(r);
        (__webpack_require__(7129).log)('resolve ', r);
      }).catch(r => {
        this.showError('提交失败,' + r);
        (__webpack_require__(7129).log)('reject ', r);
      });
    }
  },
  mounted() {
    (__webpack_require__(7129).log)('store', this.$store);
    this.$nextTick(() => {
      this.performUpdate();
    });
    this.$store.subscribe(mutation => {
      if (mutation.type === 'priceRemind/updateRemindSettings') {
        this.$nextTick(() => {
          this.performUpdate();
        });
      }
    });
  }
};

/***/ }),

/***/ 34386:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAAAsCAYAAAD1nyNHAAAAAXNSR0IArs4c6QAAAR1JREFUeF7tnbERgFAMhcz+2+k0VnGF33kcWFvwAmfrXD1dAHCBee9nAZwhyi9QqPIAKPNnd/uiUmyJOQtVLJ80vVBJtsSshSqWT5peqCRbYtZCFcsnTS9Uki0xa6GK5ZOmFyrJlpi1UMXySdMLlWRLzFqoYvmk6YVKsiVmLVSxfNL0QiXZErMWqlg+aXqhkmyJWQtVLJ80vVBJtsSshSqWT5peqCRbYtZCFcsnTS9Uki0xa6GK5ZOmFyrJlpi1UMXySdMLlWRLzFqoYvmk6YVKsiVmLVSxfNL0QiXZErMWqlg+aXqhkmyJWQtVLJ80vVBJtsSshSqWT5peqCRbYtZCFcsnTe/3PSRbYtZC/V9+v086cDAH7/RKF/j9Ah900KcI8oZhhwAAAABJRU5ErkJggg==";

/***/ }),

/***/ 34598:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var fails = __webpack_require__(79039);

module.exports = function (METHOD_NAME, argument) {
  var method = [][METHOD_NAME];
  return !!method && fails(function () {
    // eslint-disable-next-line no-useless-call -- required for testing
    method.call(null, argument || function () { return 1; }, 1);
  });
};


/***/ }),

/***/ 34810:
/***/ ((module) => {

"use strict";


let data = {};
module.exports.get = k => {
  return data[k];
};
module.exports.set = (k, v) => {
  data[k] = v;
};

/***/ }),

/***/ 35031:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var getBuiltIn = __webpack_require__(97751);
var uncurryThis = __webpack_require__(79504);
var getOwnPropertyNamesModule = __webpack_require__(38480);
var getOwnPropertySymbolsModule = __webpack_require__(33717);
var anObject = __webpack_require__(28551);

var concat = uncurryThis([].concat);

// all object keys, includes non-enumerable and symbols
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  var keys = getOwnPropertyNamesModule.f(anObject(it));
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
};


/***/ }),

/***/ 35161:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
const template = __webpack_require__(26133);
const calWidth = __webpack_require__(42869);
// const replaceHref = require('common/replaceHref')
const cnzz = __webpack_require__(5300);
const log = __webpack_require__(35743);
let pInfo = {},
  proInfo = {};
let widthInfo, allink_tb, allink_tm;
let skipEventAdd = false;
const addEvent = () => {
  $('.compare-list').off();
  $('.main-compare .tright, .main-compare .tleft').off();
  $('.compare-box').off();
  $('.main-compare .tright').on('click', function () {
    if (pInfo.nowpage + 1 === pInfo.pages) {
      return;
    }
    pInfo.nowpage++;
    $('.compare-list>li').hide();
    for (let i = pInfo.pageNum * pInfo.nowpage; i < pInfo.pageNum * (pInfo.nowpage + 1); i++) {
      $('.compare-list>li').eq(i).show();
    }
  });
  $('.main-compare .tleft').on('click', function () {
    if (pInfo.nowpage === 0) {
      return;
    }
    pInfo.nowpage--;
    $('.compare-list>li').hide();
    for (let i = pInfo.pageNum * pInfo.nowpage; i < pInfo.pageNum * (pInfo.nowpage + 1); i++) {
      $('.compare-list>li').eq(i).show();
    }
  });
  $('.compare-list').on('mouseenter', 'li', function (e) {
    $('.compare-list>li').removeClass('bar-item-hover');
    let id = $(this).attr('data-id');
    if ($(this).find('.btcom-detail').length > 0) {
      $(this).find('.btcom-detail').show();
    } else {
      if (id) {
        renderDetail(id, $(this));
      }
    }
    $(this).addClass('bar-item-hover');
  });
  if (G.site === 'suning') {
    $('.compare-list').on('click', 'a', function (e) {
      if ($(this).attr('href')) {
        window.open($(this).attr('href'));
        e.preventDefault();
      }
    });
  }
  $('.compare-list').on('mouseleave', 'li', function (e) {
    let that = this;
    $(that).removeClass('bar-item-hover');
    $(that).find('.btcom-detail').hide();
  });
  $('.compare-box').on('click', function (e) {
    if (skipEventAdd) {
      return;
    }
    if ($(e.target).hasClass('turnleft')) {
      runTurnPage($(e.target), -1);
    } else if ($(e.target).hasClass('turnright')) {
      runTurnPage($(e.target), 1);
    } else {
      let url = '';
      if (e.target.nodeName === 'A') {
        url = e.target.href;
      } else if (e.target.parentNode.nodeName === 'A') {
        url = e.target.parentNode.href;
      } else if (e.target.parentNode.parentNode.nodeName === 'A') {
        url = e.target.parentNode.parentNode.href;
      }
      if (url.indexOf('uland.taobao.com/coupon') > -1) {
        cnzz.log('click:dpcoupon');
        log('click:dpcoupon');
      }
    }
  });
};
const runTurnPage = (dom, type) => {
  let parentDom = $(dom).parent().parent();
  let lists = parentDom.find('.all-products .btcom-list li');
  let size = lists.length;
  let curpg = Number(parentDom.find('.bjd-pages .current-page').text());
  let totalp = Number(parentDom.find('.bjd-pages .page-num').text());
  parentDom.find('.all-products .btcom-list li').hide();
  if (type === 1) curpg++;else if (type === -1) curpg--;
  if (curpg === 0) curpg = totalp;
  if (curpg === totalp + 1) curpg = 1;
  let end = curpg * widthInfo.showListNum > size ? size : curpg * widthInfo.showListNum;
  for (let i = (curpg - 1) * widthInfo.showListNum; i < end; i++) {
    lists.eq(i).show();
    let img = lists.eq(i).find('.com-item-img img');
    replaceSrc(img);
  }
  parentDom.find('.bjd-pages .current-page').text(curpg);
};
const replaceSrc = img => {
  let src = img.attr('data-src');
  if (!src) return;
  let imgObj = new Image();
  imgObj.onload = function () {
    if (imgObj.complete == true) {
      $(img).attr('src', src).attr('data-src', null);
    }
  };
  imgObj.onerror = function (e) {
    let obj = $(img)[0];
    if (!$(img)[0]) return;
    obj.src = `${G.s_server}/images/extensions/newbar/no_img.png`;
    obj.setAttribute("data-src", `${G.s_server}/images/extensions/newbar/no_img.png`);
  };
  imgObj.src = src;
};
const editData = (data, tb, tbsite) => {
  for (let i = 0; i < data.length; i++) {
    if (data[i].price) {
      data[i].price = Number(data[i].price.toString().replace(',', '')).toFixed(2);
    }
    if (!data[i].img_url) data[i].img_url = data[i].pic_url;
    if (tbsite) {
      data[i].nick2 = data[i].item_location;
    }
    if (!data[i].site_name) data[i].site_name = data[i].nick2 || data[i].nick;
    if (tb && data[i].img_url.match(/_\d+x\d+/)) {
      let match = data[i].img_url.match(/_(\d+)x\d+/);
      if (match) {
        match = Number(match[1]);
        if (match > 200) {
          data[i].img_url = data[i].img_url + '_100x100';
        }
      }
    } else if (tb) {
      data[i].img_url = data[i].img_url + '_100x100';
    }
  }
  return data;
};
const renderDetail = async (id, container) => {
  let len = proInfo[id].length;
  let showpages;
  let detailW;
  if (len > widthInfo.showListNum) {
    showpages = true;
    detailW = $(window).width();
  } else {
    detailW = len * 268;
  }
  let sale_tle, allink;
  if (id === 'tmcompare' || id === 'tbcompare') {
    sale_tle = "最近销量";
    if (proInfo[id].from_self === true) sale_tle = "总销量";
  }
  if (id === 'tmcompare') allink = allink_tm;else if (id === 'tbcompare') allink = allink_tb;
  let pages = Math.ceil(len / widthInfo.showListNum);
  console.log('coupon ready got', proInfo);
  if (id === 'tmcompare' || id === 'tbcompare') {
    // await Promise.race([require('common/globalCondition').met('bottomCouponReady-' + id), require('common/commonUtil').sleep(600)])
  }
  console.log('done', proInfo);
  let html = __webpack_require__(52361);
  let dom = template.compile(html)({
    data: proInfo[id],
    sale_tle: sale_tle,
    showpages: showpages,
    prowidth: widthInfo.allProductW,
    turnpW: widthInfo.turnpW,
    detailW: detailW,
    link: allink,
    id: id,
    pages: pages
  });
  $(container).append(dom);
  for (let i = 0; i < Math.min(widthInfo.showListNum, len); i++) {
    let img = $(container).find('.btcom-detail li .com-item-img img').eq(i);
    replaceSrc(img);
  }
  if (!showpages) {
    setSimplePagePos(len, container);
  }
};
const renderCompareBar = data => {
  if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) {
    return;
  }
  if (!data.store || !data.store[0] || data.store[0].product.length === 0) return;
  let turnpage = (13 + 18 + 20) * 2;
  let comArr = [];
  let totalSize = data.store.length;
  let freeW = calWidth.calBottomBar();
  pInfo.pageNum = parseInt((freeW - turnpage) / 104);
  pInfo.mbarItemShowNum = totalSize > pInfo.pageNum ? pInfo.pageNum : totalSize;
  if (pInfo.pageNum <= 0) pInfo.pageNum = 1;
  for (let i = 0; i < data.store.length; i++) {
    comArr.push(data.store[i].product[0]);
    proInfo[data.store[i].product[0].dp_id] = editData(data.store[i].product);
  }
  let lens = $('.compare-list li').length;
  pInfo.pages = Math.ceil((totalSize + lens) / pInfo.pageNum);
  let html = __webpack_require__(63860);
  let views = template.compile(html)({
    data: comArr,
    pageNum: pInfo.pageNum
  });
  $('.compare-list').prepend(views);
  pInfo.nowpage = 0;
  pInfo.totalSize = totalSize;
  $('.compare-box').css('width', pInfo.mbarItemShowNum * 102 + 'px');
  if (pInfo.pages === 1) {
    $('.mbar-turnpage').hide();
  } else {
    $('.mbar-turnpage').show();
  }
  addEvent();
};
const setSimplePagePos = (size, dom) => {
  let mainW = $(window).width();
  let left = dom.offset().left;
  let domw = dom.outerWidth();
  let detail = dom.find('.btcom-detail');
  let width = 268 * size + 2;
  let dleft = left + domw / 2 - width / 2;
  if (dleft < 0) dleft = 0;
  if (dleft + width > mainW) dleft = mainW - width - 2;
  detail.css('left', dleft + 'px');
};
const exchangeData = data => {
  if (!data.product || data.product && data.product.length === 0) return data;
  let b2c = [],
    obj = {};
  for (let i = 0; i < data.product.length; i++) {
    if (!data.product[i].site_name2) {
      data.product[i].site_name2 = data.product[i].site_name;
    }
    if (!obj[data.product[i].site_name2]) {
      obj[data.product[i].site_name2] = {
        product: [data.product[i]]
      };
    } else {
      obj[data.product[i].site_name2]['product'].push(data.product[i]);
    }
  }
  for (let pattern in obj) {
    if (pattern) {
      b2c.push(obj[pattern]);
    }
  }
  return {
    store: b2c
  };
};
const renderTbCompare = data => {
  let html = __webpack_require__(63860);
  let insNum = 0;
  if (data.tmall && data.tmall.product) {
    let obj = {
      dp_id: 'tmcompare',
      site_name: '天猫商城',
      price: data.tmall.min_price
    };
    // if (!G.aliSite && G.from_device !== '360')
    //   replaceHref.init('tmall', data.tmall.product, '&column=b2c')
    proInfo['tmcompare'] = editData(data.tmall.product, true);
    let dom = $('.compare-list>li').eq(5);
    if (dom.length === 0) dom = $('.compare-list>li:last-child');
    if (dom.length === 0) {
      $('.compare-list').append(template.compile(html)({
        data: [obj]
      }));
    } else {
      dom.after(template.compile(html)({
        data: [obj]
      }));
    }
    insNum++;
  }
  if (data.taobao && data.taobao.product) {
    let obj = {
      dp_id: 'tbcompare',
      site_name: '淘宝',
      price: data.taobao.min_price
    };
    // if (!G.aliSite && G.from_device !== '360')
    //   replaceHref.init('taobao', data.taobao.product, '&column=b2c')
    proInfo['tbcompare'] = editData(data.taobao.product, true, true);
    $('.compare-list').append(template.compile(html)({
      data: [obj]
    }));
    insNum++;
  }
  pInfo.totalSize = pInfo.totalSize + insNum;
  let pages = Math.ceil(pInfo.totalSize / pInfo.pageNum);
  if (pInfo.pages === 1 || !pInfo.pages) {
    if (pages > 1) {
      $('.mbar-turnpage.tright').show();
      pInfo.pages = pages;
    }
    pInfo.mbarItemShowNum = pInfo.totalSize > pInfo.pageNum ? pInfo.pageNum : pInfo.totalSize;
    $('.compare-box').css('width', pInfo.mbarItemShowNum * 102 + 'px');
    $('.mbar-turnpage').hide();
  } else {
    pInfo.pages = pages;
  }
  addEvent();
};
module.exports.renderBt = (data, skipEvent = false) => {
  if (!(data.taobao instanceof Array) && data.taobao.more_link) allink_tb = data.taobao.more_link;
  if (!(data.tmall instanceof Array) && data.tmall.more_link) allink_tm = data.tmall.more_link;
  if (!widthInfo) widthInfo = calWidth.init();
  if (skipEvent) {
    skipEventAdd = true;
  }
  renderTbCompare(data);
  if (G.from_device !== '360') {
    (__webpack_require__(49042).init)(data.tmall.product, 'tmall', true, data.tmall.min_price);
    (__webpack_require__(49042).init)(data.taobao.product, 'taobao', true, data.taobao.min_price);
  }
};
module.exports.init = data => {
  if (data.b2c && data.b2c.store) {
    renderCompareBar(data.b2c);
  } else if (data.b2c_fuzzy) {
    data.b2c2 = exchangeData(data.b2c_fuzzy);
    renderCompareBar(data.b2c2);
  }
  widthInfo = calWidth.init();
};

/***/ }),

/***/ 35203:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(54208);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("d40ad512", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 35235:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(77004);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("dac94b42", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 35250:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-common-login.gwd-popup[data-v-fd8cca22] {\n  box-sizing: border-box !important;\n  align-items: center;\n}\n.gwd-common-login.gwd-popup .gwd-main-login[data-v-fd8cca22] {\n  /*padding-left: 18px;*/\n  box-sizing: border-box;\n  width: 280px;\n}\n", ""]);

// exports


/***/ }),

/***/ 35372:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ LongCoupon)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/LongCoupon.vue?vue&type=template&id=6f5d34be&scoped=true
var LongCouponvue_type_template_id_6f5d34be_scoped_true = __webpack_require__(14122);
;// ./src/standard/module/components/LongCoupon.vue?vue&type=template&id=6f5d34be&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/LongCoupon.vue?vue&type=script&lang=js
var LongCouponvue_type_script_lang_js = __webpack_require__(56857);
;// ./src/standard/module/components/LongCoupon.vue?vue&type=script&lang=js
 /* harmony default export */ const components_LongCouponvue_type_script_lang_js = (LongCouponvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/LongCoupon.vue?vue&type=style&index=0&id=6f5d34be&prod&scoped=true&lang=less
var LongCouponvue_type_style_index_0_id_6f5d34be_prod_scoped_true_lang_less = __webpack_require__(58998);
;// ./src/standard/module/components/LongCoupon.vue?vue&type=style&index=0&id=6f5d34be&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/LongCoupon.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_LongCouponvue_type_script_lang_js,
  LongCouponvue_type_template_id_6f5d34be_scoped_true/* render */.XX,
  LongCouponvue_type_template_id_6f5d34be_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "6f5d34be",
  null
  
)

/* harmony default export */ const LongCoupon = (component.exports);

/***/ }),

/***/ 35418:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


const template = __webpack_require__(26133);
const request = __webpack_require__(49388);
const userData = __webpack_require__(74222);
const renderBtn = () => {
  let t = `<div id="review_btn" class="gwdang-tab">
    <span class="btn-tab-sp">
      <em class="gwd_bg"></em>
      <span class="tab-sp1 blkcolor1">口碑</span>
    </span>
  </div>`;
  $(`.gwd-topbar-left`).append(t);
  $('#review_btn').css('display', 'block');
};
const addEvent = () => {
  let choosed, time;
  $('#review_btn').on('mouseenter', function () {
    if (!choosed) {
      let cls = $('.review-good').attr('data-d');
      $('.' + cls).show();
    }
    let left = $(this).offset().left;
    $('#review_detail').css('left', left + 'px');
    $('#review_detail').show();
    $(this).addClass('msenter');
    if ($(window).width() - ($(`#review_detail`).offset().left + $(`#review_detail`).outerWidth() + 2) < 0) {
      $(`#review_detail`).css(`right`, '0px').css('left', 'auto');
    }
  });
  $('#review_btn').on('mouseleave', function () {
    let that = this;
    time = setTimeout(function () {
      $('#review_detail').hide();
      $(that).removeClass('msenter');
    }, 200);
  });
  $('#review_detail').on('mouseenter', function () {
    clearTimeout(time);
  });
  $('#review_detail').on('mouseleave', function () {
    $('#review_detail').hide();
    $('#review_btn').removeClass('msenter');
  });
  $('#review_detail .review-tab').on('click', function () {
    choosed = true;
    let cls = $(this).attr('data-d');
    $('#review_detail .review-tab').removeClass('selected');
    $(this).addClass('selected');
    $('.review-right>div').hide();
    $('.' + cls).show();
  });
};
const addUrls = data => {
  let other_info = userData.get('other_info');
  let dpid = other_info && other_info.now.dp_id;
  if (!dpid) return data;
  if (data.bad && data.bad.length > 0) {
    for (let i = 0; i < data.bad.length; i++) {
      let href = `${G.c_server}/crc64/dp${dpid}/reviews/?rword=${encodeURIComponent(data.bad[i].label)}&ext=1&rtype=2`;
      data.bad[i].url = href;
    }
  }
  if (data.good && data.good.length > 0) {
    for (let i = 0; i < data.good.length; i++) {
      let href = `${G.c_server}/crc64/dp${dpid}/reviews/?rword=${encodeURIComponent(data.good[i].label)}&ext=1&rtype=1`;
      data.good[i].url = href;
    }
  }
  return data;
};
const getInfo = callback => {
  let href = encodeURIComponent(location.href);
  let url = `${G.server}/extension/review?url=${href}`;
  request.get(url).done(function (data) {
    if (data && !(data instanceof Array)) {
      callback(data);
      // if (callback2)
      //   callback2(data)
      // else
      //   globalData = data;
    }
  });
};
const renderReview = data => {
  data.goodbox = 'review-r-good';
  data.badbox = 'review-r-bad';
  if (!data.good) data.goodbox = 'review-r-noinfo';
  if (!data.bad) data.badbox = 'review-r-noinfo';
  let html = __webpack_require__(87772);
  data = addUrls(data);
  let dom = template.compile(html)({
    data: data,
    s_server: G.s_server
  });
  $(`.gwd-topbar-left`).append(dom);
  addEvent();
};

// module.exports.getReviewTrend = (callback) => {
//   if (globalData) callback(globalData)
//   else callback2 = callback
// }

module.exports.init = data => {
  getInfo(function (data) {
    if (data.reviews.length === 0) {
      (__webpack_require__(41761).setMet)('no_reviews');
      return;
    }
    renderBtn();
    renderReview(data.reviews);
  });
};

/***/ }),

/***/ 35504:
/***/ ((__unused_webpack_module, exports) => {

"use strict";

// Generated using scripts/write-encode-map.ts
Object.defineProperty(exports, "__esModule", ({ value: true }));
function restoreDiff(arr) {
    for (var i = 1; i < arr.length; i++) {
        arr[i][0] += arr[i - 1][0] + 1;
    }
    return arr;
}
// prettier-ignore
exports["default"] = new Map(/* #__PURE__ */ restoreDiff([[9, "&Tab;"], [0, "&NewLine;"], [22, "&excl;"], [0, "&quot;"], [0, "&num;"], [0, "&dollar;"], [0, "&percnt;"], [0, "&amp;"], [0, "&apos;"], [0, "&lpar;"], [0, "&rpar;"], [0, "&ast;"], [0, "&plus;"], [0, "&comma;"], [1, "&period;"], [0, "&sol;"], [10, "&colon;"], [0, "&semi;"], [0, { v: "&lt;", n: 8402, o: "&nvlt;" }], [0, { v: "&equals;", n: 8421, o: "&bne;" }], [0, { v: "&gt;", n: 8402, o: "&nvgt;" }], [0, "&quest;"], [0, "&commat;"], [26, "&lbrack;"], [0, "&bsol;"], [0, "&rbrack;"], [0, "&Hat;"], [0, "&lowbar;"], [0, "&DiacriticalGrave;"], [5, { n: 106, o: "&fjlig;" }], [20, "&lbrace;"], [0, "&verbar;"], [0, "&rbrace;"], [34, "&nbsp;"], [0, "&iexcl;"], [0, "&cent;"], [0, "&pound;"], [0, "&curren;"], [0, "&yen;"], [0, "&brvbar;"], [0, "&sect;"], [0, "&die;"], [0, "&copy;"], [0, "&ordf;"], [0, "&laquo;"], [0, "&not;"], [0, "&shy;"], [0, "&circledR;"], [0, "&macr;"], [0, "&deg;"], [0, "&PlusMinus;"], [0, "&sup2;"], [0, "&sup3;"], [0, "&acute;"], [0, "&micro;"], [0, "&para;"], [0, "&centerdot;"], [0, "&cedil;"], [0, "&sup1;"], [0, "&ordm;"], [0, "&raquo;"], [0, "&frac14;"], [0, "&frac12;"], [0, "&frac34;"], [0, "&iquest;"], [0, "&Agrave;"], [0, "&Aacute;"], [0, "&Acirc;"], [0, "&Atilde;"], [0, "&Auml;"], [0, "&angst;"], [0, "&AElig;"], [0, "&Ccedil;"], [0, "&Egrave;"], [0, "&Eacute;"], [0, "&Ecirc;"], [0, "&Euml;"], [0, "&Igrave;"], [0, "&Iacute;"], [0, "&Icirc;"], [0, "&Iuml;"], [0, "&ETH;"], [0, "&Ntilde;"], [0, "&Ograve;"], [0, "&Oacute;"], [0, "&Ocirc;"], [0, "&Otilde;"], [0, "&Ouml;"], [0, "&times;"], [0, "&Oslash;"], [0, "&Ugrave;"], [0, "&Uacute;"], [0, "&Ucirc;"], [0, "&Uuml;"], [0, "&Yacute;"], [0, "&THORN;"], [0, "&szlig;"], [0, "&agrave;"], [0, "&aacute;"], [0, "&acirc;"], [0, "&atilde;"], [0, "&auml;"], [0, "&aring;"], [0, "&aelig;"], [0, "&ccedil;"], [0, "&egrave;"], [0, "&eacute;"], [0, "&ecirc;"], [0, "&euml;"], [0, "&igrave;"], [0, "&iacute;"], [0, "&icirc;"], [0, "&iuml;"], [0, "&eth;"], [0, "&ntilde;"], [0, "&ograve;"], [0, "&oacute;"], [0, "&ocirc;"], [0, "&otilde;"], [0, "&ouml;"], [0, "&div;"], [0, "&oslash;"], [0, "&ugrave;"], [0, "&uacute;"], [0, "&ucirc;"], [0, "&uuml;"], [0, "&yacute;"], [0, "&thorn;"], [0, "&yuml;"], [0, "&Amacr;"], [0, "&amacr;"], [0, "&Abreve;"], [0, "&abreve;"], [0, "&Aogon;"], [0, "&aogon;"], [0, "&Cacute;"], [0, "&cacute;"], [0, "&Ccirc;"], [0, "&ccirc;"], [0, "&Cdot;"], [0, "&cdot;"], [0, "&Ccaron;"], [0, "&ccaron;"], [0, "&Dcaron;"], [0, "&dcaron;"], [0, "&Dstrok;"], [0, "&dstrok;"], [0, "&Emacr;"], [0, "&emacr;"], [2, "&Edot;"], [0, "&edot;"], [0, "&Eogon;"], [0, "&eogon;"], [0, "&Ecaron;"], [0, "&ecaron;"], [0, "&Gcirc;"], [0, "&gcirc;"], [0, "&Gbreve;"], [0, "&gbreve;"], [0, "&Gdot;"], [0, "&gdot;"], [0, "&Gcedil;"], [1, "&Hcirc;"], [0, "&hcirc;"], [0, "&Hstrok;"], [0, "&hstrok;"], [0, "&Itilde;"], [0, "&itilde;"], [0, "&Imacr;"], [0, "&imacr;"], [2, "&Iogon;"], [0, "&iogon;"], [0, "&Idot;"], [0, "&imath;"], [0, "&IJlig;"], [0, "&ijlig;"], [0, "&Jcirc;"], [0, "&jcirc;"], [0, "&Kcedil;"], [0, "&kcedil;"], [0, "&kgreen;"], [0, "&Lacute;"], [0, "&lacute;"], [0, "&Lcedil;"], [0, "&lcedil;"], [0, "&Lcaron;"], [0, "&lcaron;"], [0, "&Lmidot;"], [0, "&lmidot;"], [0, "&Lstrok;"], [0, "&lstrok;"], [0, "&Nacute;"], [0, "&nacute;"], [0, "&Ncedil;"], [0, "&ncedil;"], [0, "&Ncaron;"], [0, "&ncaron;"], [0, "&napos;"], [0, "&ENG;"], [0, "&eng;"], [0, "&Omacr;"], [0, "&omacr;"], [2, "&Odblac;"], [0, "&odblac;"], [0, "&OElig;"], [0, "&oelig;"], [0, "&Racute;"], [0, "&racute;"], [0, "&Rcedil;"], [0, "&rcedil;"], [0, "&Rcaron;"], [0, "&rcaron;"], [0, "&Sacute;"], [0, "&sacute;"], [0, "&Scirc;"], [0, "&scirc;"], [0, "&Scedil;"], [0, "&scedil;"], [0, "&Scaron;"], [0, "&scaron;"], [0, "&Tcedil;"], [0, "&tcedil;"], [0, "&Tcaron;"], [0, "&tcaron;"], [0, "&Tstrok;"], [0, "&tstrok;"], [0, "&Utilde;"], [0, "&utilde;"], [0, "&Umacr;"], [0, "&umacr;"], [0, "&Ubreve;"], [0, "&ubreve;"], [0, "&Uring;"], [0, "&uring;"], [0, "&Udblac;"], [0, "&udblac;"], [0, "&Uogon;"], [0, "&uogon;"], [0, "&Wcirc;"], [0, "&wcirc;"], [0, "&Ycirc;"], [0, "&ycirc;"], [0, "&Yuml;"], [0, "&Zacute;"], [0, "&zacute;"], [0, "&Zdot;"], [0, "&zdot;"], [0, "&Zcaron;"], [0, "&zcaron;"], [19, "&fnof;"], [34, "&imped;"], [63, "&gacute;"], [65, "&jmath;"], [142, "&circ;"], [0, "&caron;"], [16, "&breve;"], [0, "&DiacriticalDot;"], [0, "&ring;"], [0, "&ogon;"], [0, "&DiacriticalTilde;"], [0, "&dblac;"], [51, "&DownBreve;"], [127, "&Alpha;"], [0, "&Beta;"], [0, "&Gamma;"], [0, "&Delta;"], [0, "&Epsilon;"], [0, "&Zeta;"], [0, "&Eta;"], [0, "&Theta;"], [0, "&Iota;"], [0, "&Kappa;"], [0, "&Lambda;"], [0, "&Mu;"], [0, "&Nu;"], [0, "&Xi;"], [0, "&Omicron;"], [0, "&Pi;"], [0, "&Rho;"], [1, "&Sigma;"], [0, "&Tau;"], [0, "&Upsilon;"], [0, "&Phi;"], [0, "&Chi;"], [0, "&Psi;"], [0, "&ohm;"], [7, "&alpha;"], [0, "&beta;"], [0, "&gamma;"], [0, "&delta;"], [0, "&epsi;"], [0, "&zeta;"], [0, "&eta;"], [0, "&theta;"], [0, "&iota;"], [0, "&kappa;"], [0, "&lambda;"], [0, "&mu;"], [0, "&nu;"], [0, "&xi;"], [0, "&omicron;"], [0, "&pi;"], [0, "&rho;"], [0, "&sigmaf;"], [0, "&sigma;"], [0, "&tau;"], [0, "&upsi;"], [0, "&phi;"], [0, "&chi;"], [0, "&psi;"], [0, "&omega;"], [7, "&thetasym;"], [0, "&Upsi;"], [2, "&phiv;"], [0, "&piv;"], [5, "&Gammad;"], [0, "&digamma;"], [18, "&kappav;"], [0, "&rhov;"], [3, "&epsiv;"], [0, "&backepsilon;"], [10, "&IOcy;"], [0, "&DJcy;"], [0, "&GJcy;"], [0, "&Jukcy;"], [0, "&DScy;"], [0, "&Iukcy;"], [0, "&YIcy;"], [0, "&Jsercy;"], [0, "&LJcy;"], [0, "&NJcy;"], [0, "&TSHcy;"], [0, "&KJcy;"], [1, "&Ubrcy;"], [0, "&DZcy;"], [0, "&Acy;"], [0, "&Bcy;"], [0, "&Vcy;"], [0, "&Gcy;"], [0, "&Dcy;"], [0, "&IEcy;"], [0, "&ZHcy;"], [0, "&Zcy;"], [0, "&Icy;"], [0, "&Jcy;"], [0, "&Kcy;"], [0, "&Lcy;"], [0, "&Mcy;"], [0, "&Ncy;"], [0, "&Ocy;"], [0, "&Pcy;"], [0, "&Rcy;"], [0, "&Scy;"], [0, "&Tcy;"], [0, "&Ucy;"], [0, "&Fcy;"], [0, "&KHcy;"], [0, "&TScy;"], [0, "&CHcy;"], [0, "&SHcy;"], [0, "&SHCHcy;"], [0, "&HARDcy;"], [0, "&Ycy;"], [0, "&SOFTcy;"], [0, "&Ecy;"], [0, "&YUcy;"], [0, "&YAcy;"], [0, "&acy;"], [0, "&bcy;"], [0, "&vcy;"], [0, "&gcy;"], [0, "&dcy;"], [0, "&iecy;"], [0, "&zhcy;"], [0, "&zcy;"], [0, "&icy;"], [0, "&jcy;"], [0, "&kcy;"], [0, "&lcy;"], [0, "&mcy;"], [0, "&ncy;"], [0, "&ocy;"], [0, "&pcy;"], [0, "&rcy;"], [0, "&scy;"], [0, "&tcy;"], [0, "&ucy;"], [0, "&fcy;"], [0, "&khcy;"], [0, "&tscy;"], [0, "&chcy;"], [0, "&shcy;"], [0, "&shchcy;"], [0, "&hardcy;"], [0, "&ycy;"], [0, "&softcy;"], [0, "&ecy;"], [0, "&yucy;"], [0, "&yacy;"], [1, "&iocy;"], [0, "&djcy;"], [0, "&gjcy;"], [0, "&jukcy;"], [0, "&dscy;"], [0, "&iukcy;"], [0, "&yicy;"], [0, "&jsercy;"], [0, "&ljcy;"], [0, "&njcy;"], [0, "&tshcy;"], [0, "&kjcy;"], [1, "&ubrcy;"], [0, "&dzcy;"], [7074, "&ensp;"], [0, "&emsp;"], [0, "&emsp13;"], [0, "&emsp14;"], [1, "&numsp;"], [0, "&puncsp;"], [0, "&ThinSpace;"], [0, "&hairsp;"], [0, "&NegativeMediumSpace;"], [0, "&zwnj;"], [0, "&zwj;"], [0, "&lrm;"], [0, "&rlm;"], [0, "&dash;"], [2, "&ndash;"], [0, "&mdash;"], [0, "&horbar;"], [0, "&Verbar;"], [1, "&lsquo;"], [0, "&CloseCurlyQuote;"], [0, "&lsquor;"], [1, "&ldquo;"], [0, "&CloseCurlyDoubleQuote;"], [0, "&bdquo;"], [1, "&dagger;"], [0, "&Dagger;"], [0, "&bull;"], [2, "&nldr;"], [0, "&hellip;"], [9, "&permil;"], [0, "&pertenk;"], [0, "&prime;"], [0, "&Prime;"], [0, "&tprime;"], [0, "&backprime;"], [3, "&lsaquo;"], [0, "&rsaquo;"], [3, "&oline;"], [2, "&caret;"], [1, "&hybull;"], [0, "&frasl;"], [10, "&bsemi;"], [7, "&qprime;"], [7, { v: "&MediumSpace;", n: 8202, o: "&ThickSpace;" }], [0, "&NoBreak;"], [0, "&af;"], [0, "&InvisibleTimes;"], [0, "&ic;"], [72, "&euro;"], [46, "&tdot;"], [0, "&DotDot;"], [37, "&complexes;"], [2, "&incare;"], [4, "&gscr;"], [0, "&hamilt;"], [0, "&Hfr;"], [0, "&Hopf;"], [0, "&planckh;"], [0, "&hbar;"], [0, "&imagline;"], [0, "&Ifr;"], [0, "&lagran;"], [0, "&ell;"], [1, "&naturals;"], [0, "&numero;"], [0, "&copysr;"], [0, "&weierp;"], [0, "&Popf;"], [0, "&Qopf;"], [0, "&realine;"], [0, "&real;"], [0, "&reals;"], [0, "&rx;"], [3, "&trade;"], [1, "&integers;"], [2, "&mho;"], [0, "&zeetrf;"], [0, "&iiota;"], [2, "&bernou;"], [0, "&Cayleys;"], [1, "&escr;"], [0, "&Escr;"], [0, "&Fouriertrf;"], [1, "&Mellintrf;"], [0, "&order;"], [0, "&alefsym;"], [0, "&beth;"], [0, "&gimel;"], [0, "&daleth;"], [12, "&CapitalDifferentialD;"], [0, "&dd;"], [0, "&ee;"], [0, "&ii;"], [10, "&frac13;"], [0, "&frac23;"], [0, "&frac15;"], [0, "&frac25;"], [0, "&frac35;"], [0, "&frac45;"], [0, "&frac16;"], [0, "&frac56;"], [0, "&frac18;"], [0, "&frac38;"], [0, "&frac58;"], [0, "&frac78;"], [49, "&larr;"], [0, "&ShortUpArrow;"], [0, "&rarr;"], [0, "&darr;"], [0, "&harr;"], [0, "&updownarrow;"], [0, "&nwarr;"], [0, "&nearr;"], [0, "&LowerRightArrow;"], [0, "&LowerLeftArrow;"], [0, "&nlarr;"], [0, "&nrarr;"], [1, { v: "&rarrw;", n: 824, o: "&nrarrw;" }], [0, "&Larr;"], [0, "&Uarr;"], [0, "&Rarr;"], [0, "&Darr;"], [0, "&larrtl;"], [0, "&rarrtl;"], [0, "&LeftTeeArrow;"], [0, "&mapstoup;"], [0, "&map;"], [0, "&DownTeeArrow;"], [1, "&hookleftarrow;"], [0, "&hookrightarrow;"], [0, "&larrlp;"], [0, "&looparrowright;"], [0, "&harrw;"], [0, "&nharr;"], [1, "&lsh;"], [0, "&rsh;"], [0, "&ldsh;"], [0, "&rdsh;"], [1, "&crarr;"], [0, "&cularr;"], [0, "&curarr;"], [2, "&circlearrowleft;"], [0, "&circlearrowright;"], [0, "&leftharpoonup;"], [0, "&DownLeftVector;"], [0, "&RightUpVector;"], [0, "&LeftUpVector;"], [0, "&rharu;"], [0, "&DownRightVector;"], [0, "&dharr;"], [0, "&dharl;"], [0, "&RightArrowLeftArrow;"], [0, "&udarr;"], [0, "&LeftArrowRightArrow;"], [0, "&leftleftarrows;"], [0, "&upuparrows;"], [0, "&rightrightarrows;"], [0, "&ddarr;"], [0, "&leftrightharpoons;"], [0, "&Equilibrium;"], [0, "&nlArr;"], [0, "&nhArr;"], [0, "&nrArr;"], [0, "&DoubleLeftArrow;"], [0, "&DoubleUpArrow;"], [0, "&DoubleRightArrow;"], [0, "&dArr;"], [0, "&DoubleLeftRightArrow;"], [0, "&DoubleUpDownArrow;"], [0, "&nwArr;"], [0, "&neArr;"], [0, "&seArr;"], [0, "&swArr;"], [0, "&lAarr;"], [0, "&rAarr;"], [1, "&zigrarr;"], [6, "&larrb;"], [0, "&rarrb;"], [15, "&DownArrowUpArrow;"], [7, "&loarr;"], [0, "&roarr;"], [0, "&hoarr;"], [0, "&forall;"], [0, "&comp;"], [0, { v: "&part;", n: 824, o: "&npart;" }], [0, "&exist;"], [0, "&nexist;"], [0, "&empty;"], [1, "&Del;"], [0, "&Element;"], [0, "&NotElement;"], [1, "&ni;"], [0, "&notni;"], [2, "&prod;"], [0, "&coprod;"], [0, "&sum;"], [0, "&minus;"], [0, "&MinusPlus;"], [0, "&dotplus;"], [1, "&Backslash;"], [0, "&lowast;"], [0, "&compfn;"], [1, "&radic;"], [2, "&prop;"], [0, "&infin;"], [0, "&angrt;"], [0, { v: "&ang;", n: 8402, o: "&nang;" }], [0, "&angmsd;"], [0, "&angsph;"], [0, "&mid;"], [0, "&nmid;"], [0, "&DoubleVerticalBar;"], [0, "&NotDoubleVerticalBar;"], [0, "&and;"], [0, "&or;"], [0, { v: "&cap;", n: 65024, o: "&caps;" }], [0, { v: "&cup;", n: 65024, o: "&cups;" }], [0, "&int;"], [0, "&Int;"], [0, "&iiint;"], [0, "&conint;"], [0, "&Conint;"], [0, "&Cconint;"], [0, "&cwint;"], [0, "&ClockwiseContourIntegral;"], [0, "&awconint;"], [0, "&there4;"], [0, "&becaus;"], [0, "&ratio;"], [0, "&Colon;"], [0, "&dotminus;"], [1, "&mDDot;"], [0, "&homtht;"], [0, { v: "&sim;", n: 8402, o: "&nvsim;" }], [0, { v: "&backsim;", n: 817, o: "&race;" }], [0, { v: "&ac;", n: 819, o: "&acE;" }], [0, "&acd;"], [0, "&VerticalTilde;"], [0, "&NotTilde;"], [0, { v: "&eqsim;", n: 824, o: "&nesim;" }], [0, "&sime;"], [0, "&NotTildeEqual;"], [0, "&cong;"], [0, "&simne;"], [0, "&ncong;"], [0, "&ap;"], [0, "&nap;"], [0, "&ape;"], [0, { v: "&apid;", n: 824, o: "&napid;" }], [0, "&backcong;"], [0, { v: "&asympeq;", n: 8402, o: "&nvap;" }], [0, { v: "&bump;", n: 824, o: "&nbump;" }], [0, { v: "&bumpe;", n: 824, o: "&nbumpe;" }], [0, { v: "&doteq;", n: 824, o: "&nedot;" }], [0, "&doteqdot;"], [0, "&efDot;"], [0, "&erDot;"], [0, "&Assign;"], [0, "&ecolon;"], [0, "&ecir;"], [0, "&circeq;"], [1, "&wedgeq;"], [0, "&veeeq;"], [1, "&triangleq;"], [2, "&equest;"], [0, "&ne;"], [0, { v: "&Congruent;", n: 8421, o: "&bnequiv;" }], [0, "&nequiv;"], [1, { v: "&le;", n: 8402, o: "&nvle;" }], [0, { v: "&ge;", n: 8402, o: "&nvge;" }], [0, { v: "&lE;", n: 824, o: "&nlE;" }], [0, { v: "&gE;", n: 824, o: "&ngE;" }], [0, { v: "&lnE;", n: 65024, o: "&lvertneqq;" }], [0, { v: "&gnE;", n: 65024, o: "&gvertneqq;" }], [0, { v: "&ll;", n: new Map(/* #__PURE__ */ restoreDiff([[824, "&nLtv;"], [7577, "&nLt;"]])) }], [0, { v: "&gg;", n: new Map(/* #__PURE__ */ restoreDiff([[824, "&nGtv;"], [7577, "&nGt;"]])) }], [0, "&between;"], [0, "&NotCupCap;"], [0, "&nless;"], [0, "&ngt;"], [0, "&nle;"], [0, "&nge;"], [0, "&lesssim;"], [0, "&GreaterTilde;"], [0, "&nlsim;"], [0, "&ngsim;"], [0, "&LessGreater;"], [0, "&gl;"], [0, "&NotLessGreater;"], [0, "&NotGreaterLess;"], [0, "&pr;"], [0, "&sc;"], [0, "&prcue;"], [0, "&sccue;"], [0, "&PrecedesTilde;"], [0, { v: "&scsim;", n: 824, o: "&NotSucceedsTilde;" }], [0, "&NotPrecedes;"], [0, "&NotSucceeds;"], [0, { v: "&sub;", n: 8402, o: "&NotSubset;" }], [0, { v: "&sup;", n: 8402, o: "&NotSuperset;" }], [0, "&nsub;"], [0, "&nsup;"], [0, "&sube;"], [0, "&supe;"], [0, "&NotSubsetEqual;"], [0, "&NotSupersetEqual;"], [0, { v: "&subne;", n: 65024, o: "&varsubsetneq;" }], [0, { v: "&supne;", n: 65024, o: "&varsupsetneq;" }], [1, "&cupdot;"], [0, "&UnionPlus;"], [0, { v: "&sqsub;", n: 824, o: "&NotSquareSubset;" }], [0, { v: "&sqsup;", n: 824, o: "&NotSquareSuperset;" }], [0, "&sqsube;"], [0, "&sqsupe;"], [0, { v: "&sqcap;", n: 65024, o: "&sqcaps;" }], [0, { v: "&sqcup;", n: 65024, o: "&sqcups;" }], [0, "&CirclePlus;"], [0, "&CircleMinus;"], [0, "&CircleTimes;"], [0, "&osol;"], [0, "&CircleDot;"], [0, "&circledcirc;"], [0, "&circledast;"], [1, "&circleddash;"], [0, "&boxplus;"], [0, "&boxminus;"], [0, "&boxtimes;"], [0, "&dotsquare;"], [0, "&RightTee;"], [0, "&dashv;"], [0, "&DownTee;"], [0, "&bot;"], [1, "&models;"], [0, "&DoubleRightTee;"], [0, "&Vdash;"], [0, "&Vvdash;"], [0, "&VDash;"], [0, "&nvdash;"], [0, "&nvDash;"], [0, "&nVdash;"], [0, "&nVDash;"], [0, "&prurel;"], [1, "&LeftTriangle;"], [0, "&RightTriangle;"], [0, { v: "&LeftTriangleEqual;", n: 8402, o: "&nvltrie;" }], [0, { v: "&RightTriangleEqual;", n: 8402, o: "&nvrtrie;" }], [0, "&origof;"], [0, "&imof;"], [0, "&multimap;"], [0, "&hercon;"], [0, "&intcal;"], [0, "&veebar;"], [1, "&barvee;"], [0, "&angrtvb;"], [0, "&lrtri;"], [0, "&bigwedge;"], [0, "&bigvee;"], [0, "&bigcap;"], [0, "&bigcup;"], [0, "&diam;"], [0, "&sdot;"], [0, "&sstarf;"], [0, "&divideontimes;"], [0, "&bowtie;"], [0, "&ltimes;"], [0, "&rtimes;"], [0, "&leftthreetimes;"], [0, "&rightthreetimes;"], [0, "&backsimeq;"], [0, "&curlyvee;"], [0, "&curlywedge;"], [0, "&Sub;"], [0, "&Sup;"], [0, "&Cap;"], [0, "&Cup;"], [0, "&fork;"], [0, "&epar;"], [0, "&lessdot;"], [0, "&gtdot;"], [0, { v: "&Ll;", n: 824, o: "&nLl;" }], [0, { v: "&Gg;", n: 824, o: "&nGg;" }], [0, { v: "&leg;", n: 65024, o: "&lesg;" }], [0, { v: "&gel;", n: 65024, o: "&gesl;" }], [2, "&cuepr;"], [0, "&cuesc;"], [0, "&NotPrecedesSlantEqual;"], [0, "&NotSucceedsSlantEqual;"], [0, "&NotSquareSubsetEqual;"], [0, "&NotSquareSupersetEqual;"], [2, "&lnsim;"], [0, "&gnsim;"], [0, "&precnsim;"], [0, "&scnsim;"], [0, "&nltri;"], [0, "&NotRightTriangle;"], [0, "&nltrie;"], [0, "&NotRightTriangleEqual;"], [0, "&vellip;"], [0, "&ctdot;"], [0, "&utdot;"], [0, "&dtdot;"], [0, "&disin;"], [0, "&isinsv;"], [0, "&isins;"], [0, { v: "&isindot;", n: 824, o: "&notindot;" }], [0, "&notinvc;"], [0, "&notinvb;"], [1, { v: "&isinE;", n: 824, o: "&notinE;" }], [0, "&nisd;"], [0, "&xnis;"], [0, "&nis;"], [0, "&notnivc;"], [0, "&notnivb;"], [6, "&barwed;"], [0, "&Barwed;"], [1, "&lceil;"], [0, "&rceil;"], [0, "&LeftFloor;"], [0, "&rfloor;"], [0, "&drcrop;"], [0, "&dlcrop;"], [0, "&urcrop;"], [0, "&ulcrop;"], [0, "&bnot;"], [1, "&profline;"], [0, "&profsurf;"], [1, "&telrec;"], [0, "&target;"], [5, "&ulcorn;"], [0, "&urcorn;"], [0, "&dlcorn;"], [0, "&drcorn;"], [2, "&frown;"], [0, "&smile;"], [9, "&cylcty;"], [0, "&profalar;"], [7, "&topbot;"], [6, "&ovbar;"], [1, "&solbar;"], [60, "&angzarr;"], [51, "&lmoustache;"], [0, "&rmoustache;"], [2, "&OverBracket;"], [0, "&bbrk;"], [0, "&bbrktbrk;"], [37, "&OverParenthesis;"], [0, "&UnderParenthesis;"], [0, "&OverBrace;"], [0, "&UnderBrace;"], [2, "&trpezium;"], [4, "&elinters;"], [59, "&blank;"], [164, "&circledS;"], [55, "&boxh;"], [1, "&boxv;"], [9, "&boxdr;"], [3, "&boxdl;"], [3, "&boxur;"], [3, "&boxul;"], [3, "&boxvr;"], [7, "&boxvl;"], [7, "&boxhd;"], [7, "&boxhu;"], [7, "&boxvh;"], [19, "&boxH;"], [0, "&boxV;"], [0, "&boxdR;"], [0, "&boxDr;"], [0, "&boxDR;"], [0, "&boxdL;"], [0, "&boxDl;"], [0, "&boxDL;"], [0, "&boxuR;"], [0, "&boxUr;"], [0, "&boxUR;"], [0, "&boxuL;"], [0, "&boxUl;"], [0, "&boxUL;"], [0, "&boxvR;"], [0, "&boxVr;"], [0, "&boxVR;"], [0, "&boxvL;"], [0, "&boxVl;"], [0, "&boxVL;"], [0, "&boxHd;"], [0, "&boxhD;"], [0, "&boxHD;"], [0, "&boxHu;"], [0, "&boxhU;"], [0, "&boxHU;"], [0, "&boxvH;"], [0, "&boxVh;"], [0, "&boxVH;"], [19, "&uhblk;"], [3, "&lhblk;"], [3, "&block;"], [8, "&blk14;"], [0, "&blk12;"], [0, "&blk34;"], [13, "&square;"], [8, "&blacksquare;"], [0, "&EmptyVerySmallSquare;"], [1, "&rect;"], [0, "&marker;"], [2, "&fltns;"], [1, "&bigtriangleup;"], [0, "&blacktriangle;"], [0, "&triangle;"], [2, "&blacktriangleright;"], [0, "&rtri;"], [3, "&bigtriangledown;"], [0, "&blacktriangledown;"], [0, "&dtri;"], [2, "&blacktriangleleft;"], [0, "&ltri;"], [6, "&loz;"], [0, "&cir;"], [32, "&tridot;"], [2, "&bigcirc;"], [8, "&ultri;"], [0, "&urtri;"], [0, "&lltri;"], [0, "&EmptySmallSquare;"], [0, "&FilledSmallSquare;"], [8, "&bigstar;"], [0, "&star;"], [7, "&phone;"], [49, "&female;"], [1, "&male;"], [29, "&spades;"], [2, "&clubs;"], [1, "&hearts;"], [0, "&diamondsuit;"], [3, "&sung;"], [2, "&flat;"], [0, "&natural;"], [0, "&sharp;"], [163, "&check;"], [3, "&cross;"], [8, "&malt;"], [21, "&sext;"], [33, "&VerticalSeparator;"], [25, "&lbbrk;"], [0, "&rbbrk;"], [84, "&bsolhsub;"], [0, "&suphsol;"], [28, "&LeftDoubleBracket;"], [0, "&RightDoubleBracket;"], [0, "&lang;"], [0, "&rang;"], [0, "&Lang;"], [0, "&Rang;"], [0, "&loang;"], [0, "&roang;"], [7, "&longleftarrow;"], [0, "&longrightarrow;"], [0, "&longleftrightarrow;"], [0, "&DoubleLongLeftArrow;"], [0, "&DoubleLongRightArrow;"], [0, "&DoubleLongLeftRightArrow;"], [1, "&longmapsto;"], [2, "&dzigrarr;"], [258, "&nvlArr;"], [0, "&nvrArr;"], [0, "&nvHarr;"], [0, "&Map;"], [6, "&lbarr;"], [0, "&bkarow;"], [0, "&lBarr;"], [0, "&dbkarow;"], [0, "&drbkarow;"], [0, "&DDotrahd;"], [0, "&UpArrowBar;"], [0, "&DownArrowBar;"], [2, "&Rarrtl;"], [2, "&latail;"], [0, "&ratail;"], [0, "&lAtail;"], [0, "&rAtail;"], [0, "&larrfs;"], [0, "&rarrfs;"], [0, "&larrbfs;"], [0, "&rarrbfs;"], [2, "&nwarhk;"], [0, "&nearhk;"], [0, "&hksearow;"], [0, "&hkswarow;"], [0, "&nwnear;"], [0, "&nesear;"], [0, "&seswar;"], [0, "&swnwar;"], [8, { v: "&rarrc;", n: 824, o: "&nrarrc;" }], [1, "&cudarrr;"], [0, "&ldca;"], [0, "&rdca;"], [0, "&cudarrl;"], [0, "&larrpl;"], [2, "&curarrm;"], [0, "&cularrp;"], [7, "&rarrpl;"], [2, "&harrcir;"], [0, "&Uarrocir;"], [0, "&lurdshar;"], [0, "&ldrushar;"], [2, "&LeftRightVector;"], [0, "&RightUpDownVector;"], [0, "&DownLeftRightVector;"], [0, "&LeftUpDownVector;"], [0, "&LeftVectorBar;"], [0, "&RightVectorBar;"], [0, "&RightUpVectorBar;"], [0, "&RightDownVectorBar;"], [0, "&DownLeftVectorBar;"], [0, "&DownRightVectorBar;"], [0, "&LeftUpVectorBar;"], [0, "&LeftDownVectorBar;"], [0, "&LeftTeeVector;"], [0, "&RightTeeVector;"], [0, "&RightUpTeeVector;"], [0, "&RightDownTeeVector;"], [0, "&DownLeftTeeVector;"], [0, "&DownRightTeeVector;"], [0, "&LeftUpTeeVector;"], [0, "&LeftDownTeeVector;"], [0, "&lHar;"], [0, "&uHar;"], [0, "&rHar;"], [0, "&dHar;"], [0, "&luruhar;"], [0, "&ldrdhar;"], [0, "&ruluhar;"], [0, "&rdldhar;"], [0, "&lharul;"], [0, "&llhard;"], [0, "&rharul;"], [0, "&lrhard;"], [0, "&udhar;"], [0, "&duhar;"], [0, "&RoundImplies;"], [0, "&erarr;"], [0, "&simrarr;"], [0, "&larrsim;"], [0, "&rarrsim;"], [0, "&rarrap;"], [0, "&ltlarr;"], [1, "&gtrarr;"], [0, "&subrarr;"], [1, "&suplarr;"], [0, "&lfisht;"], [0, "&rfisht;"], [0, "&ufisht;"], [0, "&dfisht;"], [5, "&lopar;"], [0, "&ropar;"], [4, "&lbrke;"], [0, "&rbrke;"], [0, "&lbrkslu;"], [0, "&rbrksld;"], [0, "&lbrksld;"], [0, "&rbrkslu;"], [0, "&langd;"], [0, "&rangd;"], [0, "&lparlt;"], [0, "&rpargt;"], [0, "&gtlPar;"], [0, "&ltrPar;"], [3, "&vzigzag;"], [1, "&vangrt;"], [0, "&angrtvbd;"], [6, "&ange;"], [0, "&range;"], [0, "&dwangle;"], [0, "&uwangle;"], [0, "&angmsdaa;"], [0, "&angmsdab;"], [0, "&angmsdac;"], [0, "&angmsdad;"], [0, "&angmsdae;"], [0, "&angmsdaf;"], [0, "&angmsdag;"], [0, "&angmsdah;"], [0, "&bemptyv;"], [0, "&demptyv;"], [0, "&cemptyv;"], [0, "&raemptyv;"], [0, "&laemptyv;"], [0, "&ohbar;"], [0, "&omid;"], [0, "&opar;"], [1, "&operp;"], [1, "&olcross;"], [0, "&odsold;"], [1, "&olcir;"], [0, "&ofcir;"], [0, "&olt;"], [0, "&ogt;"], [0, "&cirscir;"], [0, "&cirE;"], [0, "&solb;"], [0, "&bsolb;"], [3, "&boxbox;"], [3, "&trisb;"], [0, "&rtriltri;"], [0, { v: "&LeftTriangleBar;", n: 824, o: "&NotLeftTriangleBar;" }], [0, { v: "&RightTriangleBar;", n: 824, o: "&NotRightTriangleBar;" }], [11, "&iinfin;"], [0, "&infintie;"], [0, "&nvinfin;"], [4, "&eparsl;"], [0, "&smeparsl;"], [0, "&eqvparsl;"], [5, "&blacklozenge;"], [8, "&RuleDelayed;"], [1, "&dsol;"], [9, "&bigodot;"], [0, "&bigoplus;"], [0, "&bigotimes;"], [1, "&biguplus;"], [1, "&bigsqcup;"], [5, "&iiiint;"], [0, "&fpartint;"], [2, "&cirfnint;"], [0, "&awint;"], [0, "&rppolint;"], [0, "&scpolint;"], [0, "&npolint;"], [0, "&pointint;"], [0, "&quatint;"], [0, "&intlarhk;"], [10, "&pluscir;"], [0, "&plusacir;"], [0, "&simplus;"], [0, "&plusdu;"], [0, "&plussim;"], [0, "&plustwo;"], [1, "&mcomma;"], [0, "&minusdu;"], [2, "&loplus;"], [0, "&roplus;"], [0, "&Cross;"], [0, "&timesd;"], [0, "&timesbar;"], [1, "&smashp;"], [0, "&lotimes;"], [0, "&rotimes;"], [0, "&otimesas;"], [0, "&Otimes;"], [0, "&odiv;"], [0, "&triplus;"], [0, "&triminus;"], [0, "&tritime;"], [0, "&intprod;"], [2, "&amalg;"], [0, "&capdot;"], [1, "&ncup;"], [0, "&ncap;"], [0, "&capand;"], [0, "&cupor;"], [0, "&cupcap;"], [0, "&capcup;"], [0, "&cupbrcap;"], [0, "&capbrcup;"], [0, "&cupcup;"], [0, "&capcap;"], [0, "&ccups;"], [0, "&ccaps;"], [2, "&ccupssm;"], [2, "&And;"], [0, "&Or;"], [0, "&andand;"], [0, "&oror;"], [0, "&orslope;"], [0, "&andslope;"], [1, "&andv;"], [0, "&orv;"], [0, "&andd;"], [0, "&ord;"], [1, "&wedbar;"], [6, "&sdote;"], [3, "&simdot;"], [2, { v: "&congdot;", n: 824, o: "&ncongdot;" }], [0, "&easter;"], [0, "&apacir;"], [0, { v: "&apE;", n: 824, o: "&napE;" }], [0, "&eplus;"], [0, "&pluse;"], [0, "&Esim;"], [0, "&Colone;"], [0, "&Equal;"], [1, "&ddotseq;"], [0, "&equivDD;"], [0, "&ltcir;"], [0, "&gtcir;"], [0, "&ltquest;"], [0, "&gtquest;"], [0, { v: "&leqslant;", n: 824, o: "&nleqslant;" }], [0, { v: "&geqslant;", n: 824, o: "&ngeqslant;" }], [0, "&lesdot;"], [0, "&gesdot;"], [0, "&lesdoto;"], [0, "&gesdoto;"], [0, "&lesdotor;"], [0, "&gesdotol;"], [0, "&lap;"], [0, "&gap;"], [0, "&lne;"], [0, "&gne;"], [0, "&lnap;"], [0, "&gnap;"], [0, "&lEg;"], [0, "&gEl;"], [0, "&lsime;"], [0, "&gsime;"], [0, "&lsimg;"], [0, "&gsiml;"], [0, "&lgE;"], [0, "&glE;"], [0, "&lesges;"], [0, "&gesles;"], [0, "&els;"], [0, "&egs;"], [0, "&elsdot;"], [0, "&egsdot;"], [0, "&el;"], [0, "&eg;"], [2, "&siml;"], [0, "&simg;"], [0, "&simlE;"], [0, "&simgE;"], [0, { v: "&LessLess;", n: 824, o: "&NotNestedLessLess;" }], [0, { v: "&GreaterGreater;", n: 824, o: "&NotNestedGreaterGreater;" }], [1, "&glj;"], [0, "&gla;"], [0, "&ltcc;"], [0, "&gtcc;"], [0, "&lescc;"], [0, "&gescc;"], [0, "&smt;"], [0, "&lat;"], [0, { v: "&smte;", n: 65024, o: "&smtes;" }], [0, { v: "&late;", n: 65024, o: "&lates;" }], [0, "&bumpE;"], [0, { v: "&PrecedesEqual;", n: 824, o: "&NotPrecedesEqual;" }], [0, { v: "&sce;", n: 824, o: "&NotSucceedsEqual;" }], [2, "&prE;"], [0, "&scE;"], [0, "&precneqq;"], [0, "&scnE;"], [0, "&prap;"], [0, "&scap;"], [0, "&precnapprox;"], [0, "&scnap;"], [0, "&Pr;"], [0, "&Sc;"], [0, "&subdot;"], [0, "&supdot;"], [0, "&subplus;"], [0, "&supplus;"], [0, "&submult;"], [0, "&supmult;"], [0, "&subedot;"], [0, "&supedot;"], [0, { v: "&subE;", n: 824, o: "&nsubE;" }], [0, { v: "&supE;", n: 824, o: "&nsupE;" }], [0, "&subsim;"], [0, "&supsim;"], [2, { v: "&subnE;", n: 65024, o: "&varsubsetneqq;" }], [0, { v: "&supnE;", n: 65024, o: "&varsupsetneqq;" }], [2, "&csub;"], [0, "&csup;"], [0, "&csube;"], [0, "&csupe;"], [0, "&subsup;"], [0, "&supsub;"], [0, "&subsub;"], [0, "&supsup;"], [0, "&suphsub;"], [0, "&supdsub;"], [0, "&forkv;"], [0, "&topfork;"], [0, "&mlcp;"], [8, "&Dashv;"], [1, "&Vdashl;"], [0, "&Barv;"], [0, "&vBar;"], [0, "&vBarv;"], [1, "&Vbar;"], [0, "&Not;"], [0, "&bNot;"], [0, "&rnmid;"], [0, "&cirmid;"], [0, "&midcir;"], [0, "&topcir;"], [0, "&nhpar;"], [0, "&parsim;"], [9, { v: "&parsl;", n: 8421, o: "&nparsl;" }], [44343, { n: new Map(/* #__PURE__ */ restoreDiff([[56476, "&Ascr;"], [1, "&Cscr;"], [0, "&Dscr;"], [2, "&Gscr;"], [2, "&Jscr;"], [0, "&Kscr;"], [2, "&Nscr;"], [0, "&Oscr;"], [0, "&Pscr;"], [0, "&Qscr;"], [1, "&Sscr;"], [0, "&Tscr;"], [0, "&Uscr;"], [0, "&Vscr;"], [0, "&Wscr;"], [0, "&Xscr;"], [0, "&Yscr;"], [0, "&Zscr;"], [0, "&ascr;"], [0, "&bscr;"], [0, "&cscr;"], [0, "&dscr;"], [1, "&fscr;"], [1, "&hscr;"], [0, "&iscr;"], [0, "&jscr;"], [0, "&kscr;"], [0, "&lscr;"], [0, "&mscr;"], [0, "&nscr;"], [1, "&pscr;"], [0, "&qscr;"], [0, "&rscr;"], [0, "&sscr;"], [0, "&tscr;"], [0, "&uscr;"], [0, "&vscr;"], [0, "&wscr;"], [0, "&xscr;"], [0, "&yscr;"], [0, "&zscr;"], [52, "&Afr;"], [0, "&Bfr;"], [1, "&Dfr;"], [0, "&Efr;"], [0, "&Ffr;"], [0, "&Gfr;"], [2, "&Jfr;"], [0, "&Kfr;"], [0, "&Lfr;"], [0, "&Mfr;"], [0, "&Nfr;"], [0, "&Ofr;"], [0, "&Pfr;"], [0, "&Qfr;"], [1, "&Sfr;"], [0, "&Tfr;"], [0, "&Ufr;"], [0, "&Vfr;"], [0, "&Wfr;"], [0, "&Xfr;"], [0, "&Yfr;"], [1, "&afr;"], [0, "&bfr;"], [0, "&cfr;"], [0, "&dfr;"], [0, "&efr;"], [0, "&ffr;"], [0, "&gfr;"], [0, "&hfr;"], [0, "&ifr;"], [0, "&jfr;"], [0, "&kfr;"], [0, "&lfr;"], [0, "&mfr;"], [0, "&nfr;"], [0, "&ofr;"], [0, "&pfr;"], [0, "&qfr;"], [0, "&rfr;"], [0, "&sfr;"], [0, "&tfr;"], [0, "&ufr;"], [0, "&vfr;"], [0, "&wfr;"], [0, "&xfr;"], [0, "&yfr;"], [0, "&zfr;"], [0, "&Aopf;"], [0, "&Bopf;"], [1, "&Dopf;"], [0, "&Eopf;"], [0, "&Fopf;"], [0, "&Gopf;"], [1, "&Iopf;"], [0, "&Jopf;"], [0, "&Kopf;"], [0, "&Lopf;"], [0, "&Mopf;"], [1, "&Oopf;"], [3, "&Sopf;"], [0, "&Topf;"], [0, "&Uopf;"], [0, "&Vopf;"], [0, "&Wopf;"], [0, "&Xopf;"], [0, "&Yopf;"], [1, "&aopf;"], [0, "&bopf;"], [0, "&copf;"], [0, "&dopf;"], [0, "&eopf;"], [0, "&fopf;"], [0, "&gopf;"], [0, "&hopf;"], [0, "&iopf;"], [0, "&jopf;"], [0, "&kopf;"], [0, "&lopf;"], [0, "&mopf;"], [0, "&nopf;"], [0, "&oopf;"], [0, "&popf;"], [0, "&qopf;"], [0, "&ropf;"], [0, "&sopf;"], [0, "&topf;"], [0, "&uopf;"], [0, "&vopf;"], [0, "&wopf;"], [0, "&xopf;"], [0, "&yopf;"], [0, "&zopf;"]])) }], [8906, "&fflig;"], [0, "&filig;"], [0, "&fllig;"], [0, "&ffilig;"], [0, "&ffllig;"]]));
//# sourceMappingURL=encode-html.js.map

/***/ }),

/***/ 35548:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var isConstructor = __webpack_require__(33517);
var tryToString = __webpack_require__(16823);

var $TypeError = TypeError;

// `Assert: IsConstructor(argument) is true`
module.exports = function (argument) {
  if (isConstructor(argument)) return argument;
  throw new $TypeError(tryToString(argument) + ' is not a constructor');
};


/***/ }),

/***/ 35570:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-ai-rate-button gwd-column gwd-align",
    class: {
      "gwd-contain-ori": _vm.hasOriButton
    },
    on: {
      click: _vm.open
    }
  }, [_c("img", {
    staticStyle: {
      width: "32px",
      height: "32px"
    },
    attrs: {
      src: _vm.getImg("aiRate"),
      title: "AI自动总结，秒懂商品好坏",
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "font-size": "12px",
      color: "#3c4c54",
      "line-height": "12px",
      "margin-top": "8px"
    }
  }, [_vm._v("AI秒懂")]), _vm._v(" "), _vm.opened ? _c("div", {
    staticClass: "gwd-login-window gwd-column gwd-align",
    on: {
      click: function ($event) {
        $event.stopPropagation();
      }
    }
  }, [_c("img", {
    staticStyle: {
      width: "24px",
      height: "24px",
      position: "absolute",
      right: "32px",
      top: "19px",
      cursor: "pointer"
    },
    attrs: {
      src: _vm.getImg("close"),
      alt: ""
    },
    on: {
      click: _vm.close
    }
  }), _vm._v(" "), _c("img", {
    staticStyle: {
      width: "169px",
      height: "26px",
      "margin-top": "24px"
    },
    attrs: {
      src: _vm.getImg("miaodongTitle"),
      alt: ""
    }
  }), _vm._v(" "), _c("img", {
    staticStyle: {
      width: "263px",
      height: "168px",
      "margin-top": "62px"
    },
    attrs: {
      src: _vm.getImg("miaodongContent"),
      alt: ""
    }
  }), _vm._v(" "), _vm._m(0), _vm._v(" "), _c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      height: "22px"
    }
  }, [_c("img", {
    staticStyle: {
      width: "18px",
      height: "18px"
    },
    attrs: {
      src: _vm.getImg("miaodongIcon"),
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "margin-left": "10px",
      "font-size": "16px",
      color: "#333",
      "font-weight": "bold"
    }
  }, [_vm._v("由于资源有限，请登录后使用")])]), _vm._v(" "), _c("button", {
    staticClass: "gwd-font-pfm",
    staticStyle: {
      "margin-top": "25px"
    },
    on: {
      click: function ($event) {
        return _vm.goLogin();
      }
    }
  }, [_vm._v("去登录")])]) : _vm._e()]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticStyle: {
      color: "#999",
      "font-size": "16px",
      height: "40px",
      "line-height": "20px",
      "margin-top": "38px",
      "margin-bottom": "77px",
      "text-align": "center"
    }
  }, [_vm._v("\n      60秒速读商品精华，优缺点一目了然\n      "), _c("br"), _vm._v("\n      跟同类商品相比，帮你判断是否值得购买\n    ")]);
}];
render._withStripped = true;

/***/ }),

/***/ 35580:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
const extConsole = __webpack_require__(7129);
const request = __webpack_require__(49388);
const gzip = __webpack_require__(95450);
async function vipCollect() {
  await (__webpack_require__(30888).waitForConditionFn)(() => {
    return $('.J_goods_item').length;
  });
  let list = $('.J_goods_item').toArray().map(item => {
    const id = $(item).attr('data-product_id');
    return {
      // url: `https://detail.vip.com/detail-${id}.html`,
      id: id,
      // title: $(item).find('.c-order-goods-title').text(),
      price: $(item).find('.u-price').text(),
      price_html: $(item).find('.c-order-group-item-price').text(),
      num: $(item).find('.c-order-group-item-quantity').text().replace(/[^\d]/g, '')
      // img: $(item).find('.c-order-goods-pic img').attr('src')
    };
  });
  return list;
}
async function jdCollect() {
  await (__webpack_require__(30888).waitForConditionFn)(() => {
    return $('.goods-item').length;
  });
  let list = $('.goods-item').toArray().map(item => {
    let priceText = $(item).find('.p-price .jd-price').text();
    if (!priceText) {
      priceText = $(item).find('.p-price .jd-final-price').text();
    }
    if (!priceText) {
      priceText = $(item).find('.p-price .jd-final-plus-price').text();
    }
    if (!priceText) {
      priceText = $(item).find('.p-price').html();
    }
    return {
      id: $(item).attr('goods-id'),
      // url: $(item).find('.p-img a').attr('href'),
      // title: $(item).find('.p-name a').text().trim(),
      price: priceText.replace(/[￥¥]+/g, '').replace(/,/g, ''),
      price_html: $(item).find('.p-price').html(),
      num: $(item).find('.p-num').text().replace(/[^\d]/g, '')
      // img: $(item).find('.p-img img').attr('src')
    };
  });
  return list;
}
module.exports.init = async () => {
  if (location.href.includes('autoclick')) {
    return;
  }
  const config = await (__webpack_require__(41761).met)('GwdConfig');
  if (!config.allowCartCollect) {
    return;
  }
  let list = [];
  if (location.href.startsWith('https://checkout.vip.com/te2/')) {
    list = await vipCollect();
  }
  if (location.href.startsWith('https://trade.jd.com/shopping/order/')) {
    list = await jdCollect();
  }
  extConsole.log('collected', list);
  if (!list.length) {
    return;
  }
  const content = {
    // ver: 1,
    key: 'extOrderData',
    data: {
      list: list,
      host: location.host,
      time: Date.now()
    }
  };
  let payload = String.fromCharCode.apply(null, gzip.gZip(content));
  request.post(G.server + '/extension/PluginHelper?op=orderData&t=' + Date.now(), btoa(payload));
};

/***/ }),

/***/ 35610:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var toIntegerOrInfinity = __webpack_require__(91291);

var max = Math.max;
var min = Math.min;

// Helper for a popular repeating case of the spec:
// Let integer be ? ToInteger(index).
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
module.exports = function (index, length) {
  var integer = toIntegerOrInfinity(index);
  return integer < 0 ? max(integer + length, 0) : min(integer, length);
};


/***/ }),

/***/ 35743:
/***/ ((module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
var __WEBPACK_AMD_DEFINE_RESULT__;

!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  let tm;
  let globalEvent;
  let userData = __webpack_require__(74222);
  function goLog(event) {
    if (window.gwd_G) G = window.gwd_G;
    if (!G) return;
    var userid = (__webpack_require__(68459).getInfo)('user_extension_id') || '';
    userid = userid || G.userid || window.gwd_G && window.gwd_G.userid;
    var t_server = G.tj_server;
    if (G.new_extension && !G.fdsMod) t_server = G.server;
    if (!event) event = "";
    event = encodeURIComponent(event);
    // if (navigator.userAgent.includes('Firefox') && !G.allowTracking) return;
    if (!t_server) t_server = G.server;
    var n = 'img_random' + Math.random();
    var img = window[n] = new Image();
    img.onload = img.onerror = function () {
      window[n] = null;
    };
    img.src = `${t_server}/visit/?version=${G.version}&userid=${userid}&ext_v=${G.ext_v}&from_device=${G.from_device}&permanent_id=${userData.get('p_id')}&random=${Math.random()}&action=${event}&refer=${encodeURIComponent(document.referrer)}&url=${encodeURIComponent(location.href)}&title=${encodeURIComponent(document.title)}`;
  }
  if (G.from_type === 'bjg_360') return;
  return function (event) {
    if (G.from_device === '360') return;
    if (globalEvent === event) {
      globalEvent = event;
      clearTimeout(tm);
      tm = setTimeout(() => {
        goLog(event);
      }, 500);
    } else {
      globalEvent = event;
      goLog(event);
    }
  };
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

/***/ }),

/***/ 35767:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAwCAYAAAB9sggoAAAAAXNSR0IArs4c6QAAAmxJREFUWEftV8tREEEQfS8AAtAATEDvwF29q3cJAO7qXQKQAOQu3IU7JkAAEgABtPWsbmuAmZ3pda3CqpmqPW1vz+vXrz9LPNLDR4oLE1g2M5OxyViWgaz91NhkLMtA1v7/1ZiZ7QB4A+A5gKcAnnj0twCuAVwAuCT5M8vKkn2TMTMTgI8OaOTOcwAnWwGsAjMzMfQegNgSM7r0hxiKi83smTO4C+BVwaLAnY5EkmLMzARIj44AHZMUuOZxdvVNABS4k78Bd4cxZ+rQHQpQKvJ7QaW/LwP5A8yj/urpq0bs6XvrDqp6KoITy+/Waq4E9sFTcU5Son9wzEyV+cVfHJCU7mp2nwHsSZckD9ak9DcwZ+vMHbxuRZkApqL55uzv9zRaAx7AVIXSVpMtD2CIMbeVP/ldVQgBTOnRpUck1TCrZ5QxB6ZUKqWr0hnAvjvtzTSuYEwNWvK4IRltZFhuAexKX5B80elXw6n0QIb8LmlsyEEmlVsBE+WivpdKVZu0oyPtNAe39zz1xVuS+8M5dMOU+DPOzWwT8cd8PCV53NGZWoDWH7WB5gw1s2jYq0ZTMKYUqTJ1kdJZvbBgQdib/Wm0YS8RUI6k6GUXJI8ao6asyk8kY1rcMS/YWmzYo8Ak/hjiTfq9MndajbjYMLYZ4l7eMZoWU7UwGcrvV2krfD/YYCuLYndd9v8CiT1ayar5WAY8slrLXpusZmi5WqsytV5Ldy+LNfzfrNaBurIu99qYdjMVxCZ/S93/SgeoFOkRQ2otOjcABEKA1P8W/wt6Ud1/3wWWdbiV/QSWZXIyNhnLMpC1nxqbjGUZyNr/Av3ZLEAJ1fHeAAAAAElFTkSuQmCC";

/***/ }),

/***/ 35917:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var DESCRIPTORS = __webpack_require__(43724);
var fails = __webpack_require__(79039);
var createElement = __webpack_require__(4055);

// Thanks to IE8 for its funny defineProperty
module.exports = !DESCRIPTORS && !fails(function () {
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  return Object.defineProperty(createElement('div'), 'a', {
    get: function () { return 7; }
  }).a !== 7;
});


/***/ }),

/***/ 35930:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const extConsole = __webpack_require__(7129);
const request = __webpack_require__(49388);
const Tip = (__webpack_require__(82168)/* ["default"] */ .A);
const TipTbV3 = (__webpack_require__(26928)/* ["default"] */ .A);
const Tip1688 = (__webpack_require__(10162)/* ["default"] */ .A);
const bgClient = __webpack_require__(40076);
const isOldTm = false;
const sitePosition = {
  '360buy': () => {
    let el = document.createElement('DIV');
    if ($('.information-wrap').length) {
      document.body.appendChild(el);
    } else {
      $('.product-intro').append(el);
    }
    return el;
  },
  'tmall': () => {
    let el = document.createElement('DIV');
    // if ($('[class^=Item2024--mainInnerWrap]').length) {
    //   $('[class^=Item2024--mainInnerWrap]').append(el)
    // } else {
    //   $('[class^=Item--content--]').append(el)
    // }
    document.body.appendChild(el);
    return el;
  },
  'taobao': () => {
    let el = document.createElement('DIV');
    // if ($('#detail').length) {
    //   $('#detail').append(el)
    // } else if ($('[class^=Item2024--mainInnerWrap]').length) {
    //   $('[class^=Item2024--mainInnerWrap]').append(el)
    // } else if ($('[class^=Item--content--]').length) {
    //   $('[class^=Item--content--]').append(el)
    // }
    document.body.appendChild(el);
    return el;
  },
  'vipshop': () => {
    let el = document.createElement('DIV');
    $('.J_M_product').append(el);
    return el;
  },
  '1688': () => {
    let el = document.createElement('DIV');
    if ($('.gallery-fix-wrapper').length) {
      $('.gallery-fix-wrapper').append(el);
    } else {
      $('.detail-gallery-wrapper').append(el);
    }
    return el;
  },
  'amazon': () => {
    let el = document.createElement('DIV');
    document.body.appendChild(el);
    return el;
  }
};
const is1688 = location.hostname.includes('.1688.com');
const get1688Img = () => {
  const elements = $('.detail-gallery-turn-wrapper').toArray();
  const first = elements.filter(el => !$(el).find('.video-icon').length)[0];
  return $(first).find('img').attr('src');
};
const get1688Price = () => {
  if (window.__INIT_DATA) {
    const priceComponent = Object.values(__INIT_DATA.data).filter(x => x.componentType === '@ali/tdmod-od-pc-offer-price');
    if (priceComponent.length) {
      return priceComponent[0].data.priceModel.currentPrices[0].price;
    }
  }
  return '';
};
const loadImg = async () => {
  let img = G.dp.img;
  let imgEl = document.querySelector('[class^=PicGallery--thumbnailPic]');
  if (imgEl && !isOldTm) {
    await (__webpack_require__(30888).waitForConditionFn)(() => {
      if (imgEl) {
        img = imgEl.src;
        imgEl.style.border = '2px solid green';
        return true;
      }
      return false;
    });
    img = img.split('_110x')[0];
  }
  let mainPic = document.querySelector('#J_UlThumb li:not(.tb-video-thumb) img');
  if (!is1688 && (mainPic || isOldTm)) {
    await (__webpack_require__(30888).waitForConditionFn)(() => document.querySelector('#J_UlThumb'));
    if (mainPic) {
      img = mainPic.src;
    }
    img = img.split('_50x50')[0];
  }
  if (G.site === '360buy') {
    const specImg = $('#spec-img').attr('src');
    if (specImg) {
      img = specImg;
    }
  }
  if (is1688) {
    await (__webpack_require__(30888).waitForConditionFn)(() => document.querySelector('.detail-gallery-turn-wrapper'));
    img = get1688Img();
  }
  const config = await (__webpack_require__(41761).met)('GwdConfig');
  if (config.aliImgSelector) {
    const c = config.aliImgSelector.find(item => $(item.container).length);
    if (c) {
      img = $(c.img).attr('src');
      G.dp.img = img;
    }
  }
  if (G.site === 'amazon') {
    img = $('#imgTagWrapperId img').attr('src');
    if (!img) {
      img = $('.imgTagWrapper img').attr('src');
    }
  }
  window.gwd_temp_html = document.body.innerHTML;
  if (navigator.userAgent.includes('Firefox')) {
    return await request.imgUrlToDataUri(img.replace('http:', 'https:'), 200);
  }
  return await request.imgUrlToDataUri(img.replace('http:', 'https:'));
};
module.exports = {
  async init() {
    if (G.site === 'amazon' && location.hostname !== 'www.amazon.com') {
      return;
    }
    const load = (create = true) => {
      loadImg().then(async res => {
        let price = is1688 ? get1688Price() : await (__webpack_require__(41761).met)('NowPrice');
        if (create) {
          const site = is1688 ? '1688' : G.site;
          let el = sitePosition[site]();
          let tbv3 = false;
          // if ($('[class^=Item2024--root--]').length) {
          //   tbv3 = true
          //   await require('standard/module/util').waitForConditionFn(() => $('.gwd-bottom-img-area').length)
          //   el = document.createElement('DIV')
          //   $('.gwd-bottom-img-area').append(el)
          // }
          if (window.gwdImgSameTip) {
            return;
          }
          if (G.from_device === 'bijiago') {
            window.gwdImgSameTip = new Vue({
              el: el,
              render: h => h(site === '1688' ? Tip1688 : tbv3 ? TipTbV3 : Tip, {
                props: {
                  img: res,
                  site: 'taobao',
                  price: price
                },
                class: G.aliSite
              })
            });
          }
        }
        const imgSameData = {
          img: res,
          price: price
        };
        (__webpack_require__(41761).setMet)('ImgSameReady', imgSameData);
      });
    };
    const bgVer = await bgClient.get('/bgVer', {});
    if (parseFloat(bgVer) < 1.2) return;
    if (window.clientImgSameLoaded) {
      load();
    }
    G.clientImgSame = true;
    window.clientImgSameLoaded = true;
    setTimeout(load, 300);
  }
};

/***/ }),

/***/ 35999:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, extClass = $data.extClass, img = $data.img, qr = $data.qr;
    $$out += '<div style="display: inline-flex; position: relative; vertical-align: middle; margin-left: 5px; width: auto" class="gwd-bottom-tmall ';
    $$out += $escape(extClass);
    $$out += '">\n  <img src="';
    $$out += $escape(img);
    $$out += '" alt="" style="height: 44px">\n  <div class="gwd-qr-act-bottom" style="margin-left: -74px;">\n    <img class="gwd-act-qr-img" loading="lazy" src="';
    $$out += $escape(qr);
    $$out += '" alt="" style="width: 130px; height: 130px; margin-top: 7px">\n    <span style="margin-top: 5px; vertical-align: middle; font-size: 0; height: 14px; line-height: 14px;">\n      <span style="font-size: 14px; color: #ff1a78; font-weight: bold">微信扫码</span>\n      <span style="margin-left: 3px; color: #070707; font-size: 12px; transform-origin: center center; transform: scale(0.9166)">领红包</span>\n    </span>\n  </div>\n</div>\n<style>\n  .gwd-bottom-tmall {\n    height: 100%;\n    align-items: center;\n  }\n\n  .gwd-qr-act-bottom {\n    display: none;\n    flex-direction: column;\n    position: absolute;\n    width: 144px;\n    height: 167px;\n    box-sizing: border-box;\n    border: 1px solid #ff471a;\n    background: #fff9f6;\n    bottom: 62px;\n    left: 50%;\n    align-items: center;\n    margin-left: -72px;\n  }\n\n  .gwd-qr-act-bottom span {\n    width: initial;\n    margin: 0;\n  }\n\n  .gwd-bottom-tmall:hover .gwd-qr-act-bottom {\n    display: flex;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 36043:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var aCallable = __webpack_require__(79306);

var $TypeError = TypeError;

var PromiseCapability = function (C) {
  var resolve, reject;
  this.promise = new C(function ($$resolve, $$reject) {
    if (resolve !== undefined || reject !== undefined) throw new $TypeError('Bad Promise constructor');
    resolve = $$resolve;
    reject = $$reject;
  });
  this.resolve = aCallable(resolve);
  this.reject = aCallable(reject);
};

// `NewPromiseCapability` abstract operation
// https://tc39.es/ecma262/#sec-newpromisecapability
module.exports.f = function (C) {
  return new PromiseCapability(C);
};


/***/ }),

/***/ 36094:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  name: 'CircleProgress',
  props: {
    percentage: {
      type: Number,
      required: true,
      validator: value => value >= 0 && value <= 100
    },
    size: {
      type: Number,
      default: 100
    },
    color: {
      type: String,
      default: '#2196F3'
    },
    backgroundColor: {
      type: String,
      default: '#eee'
    },
    strokeWidth: {
      type: Number,
      default: 8
    },
    textColor: {
      type: String,
      default: '#333'
    }
  },
  computed: {
    radius() {
      return 50 - this.strokeWidth / 2;
    },
    circumference() {
      return 2 * Math.PI * this.radius;
    },
    progressSegments() {
      const segments = [];
      const segmentCount = Math.ceil(this.percentage); // 只生成到当前进度的段数
      const anglePerSegment = 2 * Math.PI / 100; // 仍然按100等分计算角度

      for (let i = 0; i < segmentCount; i++) {
        const startAngle = -Math.PI / 2 + i * anglePerSegment;
        const endAngle = startAngle + anglePerSegment;
        const start = {
          x: 50 + this.radius * Math.cos(startAngle),
          y: 50 + this.radius * Math.sin(startAngle)
        };
        const end = {
          x: 50 + this.radius * Math.cos(endAngle),
          y: 50 + this.radius * Math.sin(endAngle)
        };

        // 计算当前段的渐变颜色，使用当前位置相对于进度的比例
        const progress = i / this.percentage;
        const color = this.interpolateColor('#4fbefe', '#8c7afa', progress);
        segments.push({
          path: `M ${start.x} ${start.y} A ${this.radius} ${this.radius} 0 0 1 ${end.x} ${end.y}`,
          color
        });
      }
      return segments;
    },
    gradientStartOffset() {
      // 计算渐变开始位置
      return `${Math.max(0, this.percentage - 2)}%`;
    },
    gradientEndOffset() {
      // 计算渐变结束位置
      return `${Math.min(100, this.percentage + 2)}%`;
    },
    progressGradientId() {
      return `progressGradient-${this._uid}`;
    },
    circleGradientId() {
      return `circleGradient-${this._uid}`;
    }
  },
  methods: {
    interpolateColor(color1, color2, factor) {
      const r1 = parseInt(color1.substr(1, 2), 16);
      const g1 = parseInt(color1.substr(3, 2), 16);
      const b1 = parseInt(color1.substr(5, 2), 16);
      const r2 = parseInt(color2.substr(1, 2), 16);
      const g2 = parseInt(color2.substr(3, 2), 16);
      const b2 = parseInt(color2.substr(5, 2), 16);
      const r = Math.round(r1 + (r2 - r1) * factor);
      const g = Math.round(g1 + (g2 - g1) * factor);
      const b = Math.round(b1 + (b2 - b1) * factor);
      return `#${(r << 16 | g << 8 | b).toString(16).padStart(6, '0')}`;
    }
  }
};

/***/ }),

/***/ 36408:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ Stampvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ Stamp)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/Stamp.vue?vue&type=template&id=2701b8ba&scoped=true
var Stampvue_type_template_id_2701b8ba_scoped_true = __webpack_require__(47053);
;// ./src/standard/module/components/Widgets/Stamp.vue?vue&type=template&id=2701b8ba&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/Stamp.vue?vue&type=script&lang=js
var Stampvue_type_script_lang_js = __webpack_require__(39302);
;// ./src/standard/module/components/Widgets/Stamp.vue?vue&type=script&lang=js
 /* harmony default export */ const Widgets_Stampvue_type_script_lang_js = (Stampvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/Stamp.vue?vue&type=style&index=0&id=2701b8ba&prod&scoped=true&lang=less
var Stampvue_type_style_index_0_id_2701b8ba_prod_scoped_true_lang_less = __webpack_require__(75591);
;// ./src/standard/module/components/Widgets/Stamp.vue?vue&type=style&index=0&id=2701b8ba&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/Widgets/Stamp.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  Widgets_Stampvue_type_script_lang_js,
  Stampvue_type_template_id_2701b8ba_scoped_true/* render */.XX,
  Stampvue_type_template_id_2701b8ba_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "2701b8ba",
  null
  
)

/* harmony default export */ const Stamp = (component.exports);

/***/ }),

/***/ 36664:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ CommonLoginvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ CommonLogin)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/CommonLogin.vue?vue&type=template&id=fd8cca22&scoped=true
var CommonLoginvue_type_template_id_fd8cca22_scoped_true = __webpack_require__(82995);
;// ./src/common/components/CommonLogin.vue?vue&type=template&id=fd8cca22&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/CommonLogin.vue?vue&type=script&lang=js
var CommonLoginvue_type_script_lang_js = __webpack_require__(32676);
;// ./src/common/components/CommonLogin.vue?vue&type=script&lang=js
 /* harmony default export */ const components_CommonLoginvue_type_script_lang_js = (CommonLoginvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/CommonLogin.vue?vue&type=style&index=0&id=fd8cca22&prod&scoped=true&lang=less
var CommonLoginvue_type_style_index_0_id_fd8cca22_prod_scoped_true_lang_less = __webpack_require__(31403);
;// ./src/common/components/CommonLogin.vue?vue&type=style&index=0&id=fd8cca22&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/CommonLogin.vue?vue&type=style&index=1&id=fd8cca22&prod&scoped=true&lang=less&data-class-type=gwd-favor
var CommonLoginvue_type_style_index_1_id_fd8cca22_prod_scoped_true_lang_less_data_class_type_gwd_favor = __webpack_require__(81152);
;// ./src/common/components/CommonLogin.vue?vue&type=style&index=1&id=fd8cca22&prod&scoped=true&lang=less&data-class-type=gwd-favor

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/CommonLogin.vue?vue&type=style&index=2&id=fd8cca22&prod&scoped=true&lang=less&data-class-type=gwd-remind
var CommonLoginvue_type_style_index_2_id_fd8cca22_prod_scoped_true_lang_less_data_class_type_gwd_remind = __webpack_require__(44100);
;// ./src/common/components/CommonLogin.vue?vue&type=style&index=2&id=fd8cca22&prod&scoped=true&lang=less&data-class-type=gwd-remind

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/CommonLogin.vue?vue&type=style&index=3&id=fd8cca22&prod&scoped=true&lang=less&data-class-type=gwd-mini
var CommonLoginvue_type_style_index_3_id_fd8cca22_prod_scoped_true_lang_less_data_class_type_gwd_mini = __webpack_require__(23075);
;// ./src/common/components/CommonLogin.vue?vue&type=style&index=3&id=fd8cca22&prod&scoped=true&lang=less&data-class-type=gwd-mini

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/CommonLogin.vue?vue&type=style&index=4&id=fd8cca22&prod&scoped=true&lang=less&data-class-type=gwd-popup
var CommonLoginvue_type_style_index_4_id_fd8cca22_prod_scoped_true_lang_less_data_class_type_gwd_popup = __webpack_require__(47065);
;// ./src/common/components/CommonLogin.vue?vue&type=style&index=4&id=fd8cca22&prod&scoped=true&lang=less&data-class-type=gwd-popup

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/CommonLogin.vue



;






/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_CommonLoginvue_type_script_lang_js,
  CommonLoginvue_type_template_id_fd8cca22_scoped_true/* render */.XX,
  CommonLoginvue_type_template_id_fd8cca22_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "fd8cca22",
  null
  
)

/* harmony default export */ const CommonLogin = (component.exports);

/***/ }),

/***/ 36703:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


const request = __webpack_require__(49388);
const userData = __webpack_require__(74222);
const template = __webpack_require__(26133);
const cnzz = __webpack_require__(5300);
const log = __webpack_require__(35743);
const getPromoInfo = callback => {
  let other_info = userData.get('other_info');
  let class_id = other_info['code-server'] && other_info['code-server'].class_id || '00000000';
  let dp_id = other_info.now.dp_id;
  let title = encodeURIComponent(G.dp.name);
  let href = encodeURIComponent(location.href);
  let sbrand = encodeURIComponent(other_info.exact_arr.sbrand);
  let keyword = encodeURIComponent(other_info.now.coreword);
  let url = `${G.server}/brwext/promo_brand?pg=1&ps=30&order=0&class_id=${class_id}&dp_id=${dp_id}&title=${title}&url=${href}&sbrand=${sbrand}&keyword=${keyword}`;
  request.get(url).done(data => {
    if (data && data.length !== 0) {
      callback(data);
    }
  });
};
const render = data => {
  if (data.products.length === 0) {
    return;
  }
  ;
  let html = __webpack_require__(20744);
  /* 1：减  2：返  3：赠9:手机  10：惠  11多买多减 */
  var promokey = {
    '1': '促',
    '2': '折',
    '3': '赠',
    '4': '减',
    '5': '赠',
    '6': '返'
  };
  data.products = data.products.slice(0, 4);
  if (data.products.length < 4) {
    return;
  }
  for (let i = 0; i < data.products.length; i++) {
    if (promokey[data.products[i].promo_type]) data.products[i].promokeys = promokey[data.products[i].promo_type];else
      //if (data.products[i].promo_type != 7)   7是特殊优惠 先按促显示
      data.products[i].promokeys = '促';
  }
  $('#promo_box').append(template.compile(html)({
    data: data.products
  }));
  $('#promo_box').css('display', 'block');
  cnzz.log('track:mini:promo');
  log('track:mini:promo');
  $('#promo_box').on('click', 'a', function (e) {
    cnzz.log('click:mini:promo');
    log('click:mini:promo');
    if (G.site === 'suning' && $(this).attr('href')) {
      window.open($(this).attr('href'));
      e.preventDefault();
    }
  });
};
module.exports.init = () => {
  let permanent = userData.get('permanent');
  if (permanent.setShowPromo === '0' || permanent.setShowPromo === 0) {
    return;
  }
  ;
  if (G.site === '360buy-re') return;
  getPromoInfo(render);
};

/***/ }),

/***/ 36733:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _PromotionList = _interopRequireDefault(__webpack_require__(43116));
var _default = exports.A = {
  components: {
    PromotionList: _PromotionList.default
  },
  data() {
    return {
      site: G.site,
      open: false,
      num: 0,
      additionalClass: ''
    };
  },
  methods: {
    clearNum() {
      this.num = 0;
      localStorage.setItem('gwd-promotion-icon-open', Date.now());
      this.$refs.pList.load();
    }
  },
  mounted() {
    if (location.hostname === 'search.jd.com' || location.hostname === 'list.jd.com') {
      this.additionalClass = 'gwd-jd-search';
    }
    const lastOpen = localStorage.getItem('gwd-promotion-icon-open');
    if (lastOpen) {
      const time = parseInt(lastOpen);
      if (Date.now() - time < 3600000) {
        // 随机1～5
        this.num = parseInt(Math.random() * 5) + 1;
        return;
      }
    }
    // 随机6~9
    this.num = parseInt(Math.random() * 4) + 6;
  }
};

/***/ }),

/***/ 36826:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("CommonCouponBarMini", {
    attrs: {
      icon: _vm.icon,
      type: "link",
      text: `当前商品可领会员券`,
      mainColor: "#ff6132",
      secondColor: "#ff7d38",
      href: `https://tb.gwdang.com/extension/qrpage?dp_id=${_vm.G.dp.dpId}&tag=2`
    }
  });
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 36840:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var isCallable = __webpack_require__(94901);
var definePropertyModule = __webpack_require__(24913);
var makeBuiltIn = __webpack_require__(50283);
var defineGlobalProperty = __webpack_require__(39433);

module.exports = function (O, key, value, options) {
  if (!options) options = {};
  var simple = options.enumerable;
  var name = options.name !== undefined ? options.name : key;
  if (isCallable(value)) makeBuiltIn(value, name, options);
  if (options.global) {
    if (simple) O[key] = value;
    else defineGlobalProperty(key, value);
  } else {
    try {
      if (!options.unsafe) delete O[key];
      else if (O[key]) simple = true;
    } catch (error) { /* empty */ }
    if (simple) O[key] = value;
    else definePropertyModule.f(O, key, {
      value: value,
      enumerable: false,
      configurable: !options.nonConfigurable,
      writable: !options.nonWritable
    });
  } return O;
};


/***/ }),

/***/ 36955:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var TO_STRING_TAG_SUPPORT = __webpack_require__(92140);
var isCallable = __webpack_require__(94901);
var classofRaw = __webpack_require__(22195);
var wellKnownSymbol = __webpack_require__(78227);

var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var $Object = Object;

// ES3 wrong here
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';

// fallback for IE11 Script Access Denied error
var tryGet = function (it, key) {
  try {
    return it[key];
  } catch (error) { /* empty */ }
};

// getting tag from ES6+ `Object.prototype.toString`
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
  var O, tag, result;
  return it === undefined ? 'Undefined' : it === null ? 'Null'
    // @@toStringTag case
    : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
    // builtinTag case
    : CORRECT_ARGUMENTS ? classofRaw(O)
    // ES3 arguments fallback
    : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
};


/***/ }),

/***/ 37246:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-ai-rate-button[data-v-c25490d8] {\n  cursor: pointer;\n  border-radius: 8px;\n}\n.gwd-login-window[data-v-c25490d8] {\n  cursor: default;\n  position: absolute;\n  left: 80px;\n  top: -130px;\n  width: 450px;\n  height: 614px;\n  background: linear-gradient(180deg, #EAF7FF 0%, #FFFFFF 12%);\n  border-radius: 16px;\n  box-shadow: 0px 6px 16px 0px rgba(50, 85, 104, 0.1);\n}\n.gwd-login-window button[data-v-c25490d8] {\n  width: 300px;\n  height: 42px;\n  background: #ff4449;\n  border-radius: 8px;\n  border: none;\n  cursor: pointer;\n  font-size: 14px;\n  color: white;\n}\n", ""]);

// exports


/***/ }),

/***/ 37272:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(62953);
const request = __webpack_require__(49388);
const siteInfo = __webpack_require__(92834);
const globalCondition = __webpack_require__(41761);
let cachedRes = {};
let t = 0;
const checkFirstGiftMoney = id => {
  let el = $(`li[data-sku=${id}] .cashGift`);
  if (!el.length) {
    el = $(`div[data-sku=${id}] ._tags_hzhkm_2`);
  }
  if (!el.length) {
    el = $(`.more2_item[id=${id}] .more2_tail_tag`);
  }
  if (el.length) {
    if (el.text().indexOf('首购礼金') > -1) {
      // 首购礼金A元
      const reg = /首购礼金([0-9]+)元/;
      const m = el.text().match(reg);
      return {
        type: 'firstGiftMoney',
        coupon: m[1],
        click_url: `${G.tb_server}/extension/qrpage?tag=qr-ext_search_link&dp_id=${id}-3&extLink=1`
      };
    }
  }
  return false;
};
const process = async list => {
  $('i[data-tips=京东自营，品质保障]').parents('li').addClass('gwd-self');
  const lang = G.lang === 'zh-tr' ? '&lang=zh-tr' : '';
  let result = await request.post(G.server + '/extension/CouponMulti?union=' + G.union + lang, {
    ids: list.join(','),
    site_id: 3
  }, true, false);
  list.forEach(id => {
    if (!result[id]) {
      result[id] = checkFirstGiftMoney(id);
    }
  });
  render(result);
  cachedRes = {
    ...result,
    ...cachedRes
  };
};
let mode = 'searchPage';
const render = result => {
  if (!result) return;
  Object.keys(result).map(key => {
    if (result[key]) {
      let d = result[key];
      if ($(`li[data-sku=${key}] .p-img .search_coupon_tip`).length) {
        return;
      }
      if ($(`a[data-sku=${key}] .search_coupon_tip`).length) {
        return;
      }
      if ($(`.plugin_goodsCardWrapper[data-sku=${key}] .search_coupon_tip`).length) {
        return;
      }
      $(`li[data-sku=${key}]`).addClass('gwd-has-coupon');
      $(`.plugin_goodsCardWrapper[data-sku=${key}]`).addClass('gwd-has-coupon');
      let txt1 = `当前商品点击领券立减${d.coupon}元`,
        txt2 = `￥${d.coupon} 优惠券`;
      if (G.lang === 'zh-tr') {
        txt1 = `當前商品點擊領券立減${d.coupon}元`;
        txt2 = `￥${d.coupon} 優惠券`;
      }
      if (d.type && d.type === 'firstGiftMoney') {
        txt1 = `当前商品领取礼金立减${d.coupon}元`;
        txt2 = `￥${d.coupon} 首购礼金`;
      }
      globalCondition.setMet(`gwd-pricetip-data-${key}`, {
        type: d.type ? d.type : 'coupon',
        coupon: d.coupon,
        link: d.click_url
      });
      if (mode === 'promoPage') {
        $(`a[data-sku=${key}]:eq(0)`).css('position', 'relative').append(`
          <a href="${d.click_url}" class="search_coupon_tip" title="${txt1}" style="position: absolute; cursor:pointer; line-height: 23px; top: 0; right: 0; width: unset; min-width: 92px" target="_blank">${txt2}</a>
        `);
      } else if (mode === 'more2') {
        $(`li[id=${key}]`).append(`
          <a href="${d.click_url}" class="search_coupon_tip" title="${txt1}" style="position: absolute; cursor:pointer; line-height: 23px; top: 0; right: 0" target="_blank">${txt2}</a>
        `);
      } else if (mode === 'search2025') {
        $(`.plugin_goodsCardWrapper[data-sku=${key}]`).append(`
          <a href="${d.click_url}" class="search_coupon_tip" title="${txt1}" style="position: absolute; white-space: nowrap; cursor:pointer; line-height: 23px; top: 0; right: 20px; z-index: 9" target="_blank">${txt2}</a>
        `);
      } else {
        $(`li[data-sku=${key}] .p-img`).append(`
          <a href="${d.click_url}" class="search_coupon_tip" title="${txt1}" style="position: absolute; cursor:pointer; line-height: 23px; top: 0; right: 0" target="_blank">${txt2}</a>
        `);
      }
    } else {
      globalCondition.setMet(`gwd-pricetip-data-${key}`, {
        type: 'none'
      });
    }
  });
};
module.exports.init = async () => {
  const excludeHosts = ['order.jd.com', 'club.jd.com'];
  if (excludeHosts.includes(location.hostname)) {
    return;
  }
  // let list = $('ul.gl-warp li.gl-item').toArray().map(item => item.dataset.sku)
  // if (list.length) {
  //   process(list)
  // }
  let list = [];
  let url = location.href;
  let dom = $('#J_main')[0];
  if (!dom) {
    dom = $('.babel-app')[0];
    mode = 'promoPage';
    $('body').on('click', '.search_coupon_tip', e => {
      e.preventDefault();
      e.stopPropagation();
      window.open(e.target.href);
    });
  }
  if (!dom) dom = document.body;
  let modding = false;
  if ($('#J_app').length) {
    mode = 'more2';
    await (__webpack_require__(30888).waitForConditionFn)(() => $('#feedContent0').length);
    dom = $('#feedContent0')[0];
  }
  if ($('#main_search_conter').length) {
    dom = $('[class^=_wrapper_]')[0];
    mode = 'search2025';
  }
  const check = function (e) {
    if (modding) return;
    modding = true;
    let newList = $('ul.gl-warp li.gl-item').toArray().map(item => item.dataset.sku);
    if (!newList.length) {
      newList = $('.pd_common').toArray().filter(x => !x.dataset.sku).map(item => {
        if (item.attributes.jsonparams) {
          let p = JSON.parse(item.attributes.jsonparams.value);
          $(item).attr('data-sku', p.sku);
          return p.sku;
        }
        return false;
      }).filter(x => x);
    }
    if (!newList.length) {
      newList = $('a img').toArray().map(x => {
        let a = $(x).parents('a');
        return {
          el: a,
          href: a.attr('href')
        };
      }).filter(x => {
        if (x.el.attr('data-sku')) return false;
        if (siteInfo.isProductPage('https:' + x.href)) {
          const sku = x.href.replace(/[^\d]*/g, '');
          x.el.attr('data-sku', sku);
          x.sku = sku;
          return true;
        }
        return false;
      }).map(x => x.sku);
    }
    if (!newList.length) {
      newList = $('.more2_item_good').toArray().map(x => {
        let a = $(x);
        return a.attr('id');
      }).filter(x => x);
    }
    if (!newList.length) {
      newList = $('.plugin_goodsCardWrapper').toArray().map(x => {
        let a = $(x);
        return a.attr('data-sku');
      }).filter(x => x);
      newList = [...new Set(newList)];
    }
    modding = false;
    newList = newList.filter(x => {
      return list.indexOf(x) === -1;
    });
    if (newList.length > 0) {
      console.log(newList);
      process(newList);
      list = list.concat(newList);
    } else if (location.href !== url) {
      setTimeout(() => {
        render(cachedRes);
      }, 1000);
    }
    url = location.href;
  };
  check();
  const onChangeFunc = (__webpack_require__(60340).debounce)(check, mode === 'more2' ? 0 : 300);
  const observer = new MutationObserver(onChangeFunc);
  observer.observe(dom, {
    childList: true,
    subtree: true
  });
};

/***/ }),

/***/ 37414:
/***/ ((module) => {

"use strict";


// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.

function GZheader() {
  /* true if compressed data believed to be text */
  this.text       = 0;
  /* modification time */
  this.time       = 0;
  /* extra flags (not used when writing a gzip file) */
  this.xflags     = 0;
  /* operating system */
  this.os         = 0;
  /* pointer to extra field or Z_NULL if none */
  this.extra      = null;
  /* extra field length (valid if extra != Z_NULL) */
  this.extra_len  = 0; // Actually, we don't need it in JS,
                       // but leave for few code modifications

  //
  // Setup limits is not necessary because in js we should not preallocate memory
  // for inflate use constant limit in 65536 bytes
  //

  /* space at extra (only when reading header) */
  // this.extra_max  = 0;
  /* pointer to zero-terminated file name or Z_NULL */
  this.name       = '';
  /* space at name (only when reading header) */
  // this.name_max   = 0;
  /* pointer to zero-terminated comment or Z_NULL */
  this.comment    = '';
  /* space at comment (only when reading header) */
  // this.comm_max   = 0;
  /* true if there was or will be a header crc */
  this.hcrc       = 0;
  /* true when done reading gzip header (not used when writing a gzip file) */
  this.done       = false;
}

module.exports = GZheader;


/***/ }),

/***/ 37457:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".bjg-qr-error[data-v-5351d26a] {\n  width: 118px;\n  height: 118px;\n  background: white;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n}\n.bjg-qr-error img[data-v-5351d26a] {\n  margin-top: 22px;\n  width: 32px;\n  height: 32px;\n}\n.bjg-qr-error .grayText[data-v-5351d26a] {\n  color: #999999;\n  display: inline-block;\n  font-size: 20px;\n  width: 125px;\n  text-align: center;\n  line-height: 32px;\n  transform: scale(0.5);\n  transform-origin: top center;\n}\n.bjg-qr-error .grayText .red[data-v-5351d26a] {\n  color: #ff2d53;\n  text-decoration: underline;\n  cursor: pointer;\n}\n", ""]);

// exports


/***/ }),

/***/ 37484:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, data = $data.data, domclass = $data.domclass, aliSite = $data.aliSite;
    $$out += '<p class="prifontf">';
    $$out += $escape(data.time);
    $$out += '</p>\n';
    if (data.pagePrice && domclass == '') {
        $$out += '\n<div class="tip-item tip-pagepri tip-pagepri2">\n  <em></em>\n  ';
        if (!aliSite) {
            $$out += '\n  <span class="tip-item-sp1">到手价 / 页面价</span>\n  <span class="tip-item-sp2">:</span>\n  ';
        }
        $$out += '\n  <span class="tip-item-sp3 prifontf">';
        $$out += $escape(data.pagePrice);
        $$out += '</span>\n</div>\n\n';
    } else if (data.pagePrice) {
        $$out += '\n<div class="tip-item tip-pagepri">\n  <em></em>\n  <span class="tip-item-sp1">页面价</span>\n  <span class="tip-item-sp2">:</span>\n  <span class="tip-item-sp3 prifontf">';
        $$out += $escape(data.pagePrice);
        $$out += '</span>\n</div>\n';
    }
    $$out += '\n';
    if (data.directpro) {
        $$out += '\n<div class="tip-item tip-directpro">\n  <em></em>\n  <span class="tip-item-sp1">到手价</span>\n  <span class="tip-item-sp2">:</span>\n  <span class="tip-item-sp3 prifontf">\xA5';
        $$out += $escape(data.directpro);
        $$out += '</span>\n  <span class="tip-item-sp4"> ';
        $$out += data.promo2;
        $$out += '</span>\n</div>\n';
    }
    $$out += '\n';
    if (data.addpro) {
        $$out += '\n<div class="tip-item tip-addpro">\n  <em></em>\n  <span class="tip-item-sp1">到手价(多件)</span>\n  <span class="tip-item-sp2">:</span>\n  <span class="tip-item-sp3 prifontf">\xA5';
        $$out += $escape(data.addpro);
        $$out += '</span>\n  <span class="tip-item-sp4">';
        $$out += data.promo1;
        $$out += '</span>\n</div>\n';
    }
    $$out += '\n<style>\n  .big_tooltip_box .tip-item {\n      display: flex;\n  }\n\n  .big_tooltip_box .tip-item-sp4 {\n      flex: 1;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 37757:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(51366);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("469cb0bc", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 37796:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


//  addCart 添加购物车  checkout 结结算  shipping1 转运   continue1 下一步  creditinfo 信用卡识别  addcredit添加信用卡  promocode 优惠码  chooseCredit 单币双币信用卡  finished 结束
let template = __webpack_require__(26133);
const utils = __webpack_require__(30888);
const log = __webpack_require__(35743);
let Timer,
  insTimes = 0;
let btnDom = {
  'addCart': __webpack_require__(77813),
  'checkout': __webpack_require__(31270),
  'shipping1': __webpack_require__(19805),
  'shipping2': __webpack_require__(71496),
  'continue1': __webpack_require__(51228),
  'continue2': __webpack_require__(94145),
  'creditinfo': __webpack_require__(8143),
  'addcredit': __webpack_require__(91746),
  'promocode': __webpack_require__(49234),
  'chooseCredit': __webpack_require__(1909),
  'finished': __webpack_require__(54240)
};
let parentDom = {
  'addCart': '#buybox_feature_div #addToCart .a-button-stack .a-button-input',
  'checkout': '#hlb-ptc-btn-native',
  'shipping1': '#identity-add-new-address #enterAddressFullNameContainer',
  'shipping2': '#identity-add-new-address #enterAddressFullNameContainer',
  'continue1': '#shippingOptionFormId .a-spacing-medium .continue-button .a-button-inner',
  'continue2': '#order-summary #order-summary-container .continue-buttons .a-button-inner #continue-top',
  'creditinfo': '#wrapper-new-cc',
  'addcredit': '#wrapper-new-cc',
  'promocode': '.pmts-redeem-claim-code-form',
  'chooseCredit': '#nav-bar+.a-container .a-spacing-base',
  'finished': '#order-summary-box'
};
let addDomListener = () => {
  var dom = $(`body`)[0];
  if (!dom) return;
  var func = function () {
    clearTimeout(Timer);
    Timer = setTimeout(() => {
      insTimes++;
      if (insTimes === 45) {
        dom.removeEventListener('DOMSubtreeModified', func, false);
        return;
      }
      matchUrl();
    }, 2000);
  };
  if (dom.addEventListener) {
    dom.addEventListener('DOMSubtreeModified', func, false);
  }
};
let insertDom = (type, pos) => {
  if ($(`.gwd_${type}`).length > 0) return;
  log('haitao_remind_' + type);
  let html = btnDom[type];
  if (pos == 'after') $(parentDom[type]).eq(0).after(template.compile(html)({
    c_server: G.c_server,
    s_server: G.s_server
  }));else if (pos == 'append') $(parentDom[type]).eq(0).append(template.compile(html)({
    c_server: G.c_server,
    s_server: G.s_server
  }));
};
const addEvent = () => {
  $('.bjd_btn_box .bjd_close').on('click', function () {
    $('.bjd_btn_box').hide();
    utils.settings('set_hide_shoptip', 'hide_shoptip', '1');
    return false;
  });
};
let matchUrl = () => {
  if (G.pageInfo.type == 2) {
    insertDom('addCart', 'after');
  } else if ($('#hlb-ptc-btn-native').length > 0) insertDom('checkout', 'after');else if ($('#identity-add-new-address').length > 0) {
    insertDom('shipping1', 'append');
  } else if ($('#shippingOptionFormId .a-spacing-medium .continue-button .a-button-inner').length > 0) {
    insertDom('continue1', 'append');
    $('#shippingOptionFormId .a-spacing-medium .continue-button .a-button-inner .a-button-text').on('click', () => {
      setTimeout(() => {
        if ($('#wrapper-new-cc').length > 0) {
          insertDom('creditinfo', 'append');
          insertDom('addcredit', 'append');
          insertDom('chooseCredit', 'append');
        }
      }, 1500);
    });
  } else if ($('#continue-top').length > 0) {
    insertDom('continue2', 'after');
    if ($('#wrapper-new-cc').length > 0) {
      insertDom('creditinfo', 'append');
      insertDom('addcredit', 'append');
      insertDom('chooseCredit', 'append');
      $('#order-summary-container #continue-top').on('click', () => {
        setTimeout(() => {
          insertDom('promocode', 'append');
          insertDom('finished', 'append');
          $('#order-summary-box .a-button-text.place-your-order-button').on('click', function () {
            log('haitao_remind_finishordersuccess');
          });
        }, 1000);
      });
    }
  } else if ($('.pmts-redeem-claim-code-form').length > 0) {
    insertDom('promocode', 'append');
    insertDom('finished', 'append');
    $('#order-summary-box .a-button-text.place-your-order-button').on('click', function () {
      log('haitao_remind_finishordersuccess');
    });
  } else if ($('#order-summary-box .a-button-text.place-your-order-button').length > 0) {
    insertDom('promocode', 'append');
    insertDom('finished', 'append');
    $('#order-summary-box .a-button-text.place-your-order-button').on('click', function () {
      log('haitao_remind_finishordersuccess');
    });
  }
  if ($('#wrapper-new-cc').length > 0) {
    insertDom('creditinfo', 'append');
    insertDom('addcredit', 'append');
    insertDom('chooseCredit', 'append');
  }
  if ($('#ccAddCard').length) $('#ccAddCard').on('click', () => {
    setTimeout(function () {
      insertDom('creditinfo', 'append');
      insertDom('addcredit', 'append');
      insertDom('chooseCredit', 'append');
    }, 1500);
  });
  addEvent();
};
module.exports.init = type => {
  if (G.IE6 || G.IE7 || G.IE8) return;
  if (location.host.indexOf('amazon') > -1 && location.host != 'www.amazon.cn') {
    if (location.host.indexOf('.co.jp') > -1) {
      $('html').addClass('amazon-jp');
    }
    if (location.host.indexOf('.de') > -1) {
      return;
      // $('html').addClass('amazon-de')
    }
    if (type === 2) {
      $(document).on('runhaitao', function () {
        matchUrl();
        addDomListener();
      });
    } else {
      setTimeout(function () {
        matchUrl();
        addDomListener();
      }, 1500);
    }
  } else {
    return;
  }
};

/***/ }),

/***/ 37953:
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_style_index_1_id_40244662_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(39360);
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_style_index_1_id_40244662_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_style_index_1_id_40244662_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0__);


/***/ }),

/***/ 38276:
/***/ ((module) => {

"use strict";
module.exports = /*#__PURE__*/JSON.parse('{"priceUp":{"zh":"价格上涨","en":"Price Increases","zh-tr":"價格上漲"},"priceStable":{"zh":"价格平稳","en":"Keep Stable","zh-tr":"價格平穩"},"priceDecrease":{"zh":"价格下降","en":"Price Declining","zh-tr":"價格下降"},"priceLowest":{"zh":"历史最低价","en":"Lowest Price","zh-tr":"歷史最低價"},"lowestSingleWithSpace":{"zh":"最低(单&nbsp;&nbsp;&nbsp;件):","en":"Lowest Price(single):","zh-tr":"最低(單&nbsp;&nbsp;&nbsp;件):"},"lowestSingle":{"zh":"最低(单件):","en":"Lowest(single):","zh-tr":"最低(單件):"},"lowest":{"zh":"最低:","en":"Lowest:","zh-tr":"最低:"},"textCurrent":{"zh":"现价","en":"Current","zh-tr":"現價"},"textHigh":{"zh":"最高","en":"Highest","zh-tr":"最高"},"textLow":{"zh":"最低","en":"Lowest","zh-tr":"最低"},"day":{"zh":"天","en":" days","zh-tr":"天"},"all":{"zh":"全部","en":"All","zh-tr":"全部"},"single":{"zh":"单&nbsp;&nbsp;&nbsp;件","en":"Single","zh-tr":"單&nbsp;&nbsp;&nbsp;件"},"combine":{"zh":"多&nbsp;&nbsp;&nbsp;件","en":"Combined","zh-tr":"多&nbsp;&nbsp;&nbsp;件"},"pagePrice":{"zh":"页面价","en":"Price","zh-tr":"頁面價"},"onHandPrice":{"zh":"到手价(单件)","en":"Promotion Price","zh-tr":"到手價(單件)"},"combinePrice":{"zh":"到手价(多件)","en":"Combined Price","zh-tr":"到手價(多件)"}}');

/***/ }),

/***/ 38279:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

if (true) {
  module.exports = __webpack_require__(23108)
} else {}


/***/ }),

/***/ 38332:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, " #gwd_ht_main a{\n      display: inline-block;\n    }\n    .gwd_haitao {\n      font-size: 12px;\n      font-family: 'Microsoft Yahei'\n    }\n    #gwd_ht_main .unit_price #ht_addcollect{\n      border: 1px solid #f07860;\n      cursor: pointer;\n      height: 24px;\n      line-height: 24px;\n      text-align: center;\n      width: 77px;\n      border-radius: 12px;\n      background-color: #fff;\n      margin-bottom: 6px;\n      margin-top: 4px;\n      color: #f07860;\n    }\n    #gwd_ht_main .unit_price #ht_addcollect.trend_wait.c_adding{\n      background-color: #f07860;\n      color: #fff;\n    }\n    #gwd_ht_main .unit_price #ht_addcollect.trend_wait.c_added{\n      background-color: #f07860;\n      color: #fff;\n    }\n    .gwd_haitao .div_detail {\n      display: none;\n      position: absolute;\n      width: 146px;\n      border: 1px solid #e6e9eb;\n      background-color: #fff;\n      z-index: 99;\n      line-height: 19px;\n      font-size: 12px;\n      color: #888;\n      padding: 6px 6px 9px 6px;\n      box-shadow: 2px 2px 12px 2px #e6e9eb;\n      height: auto;\n    }\n    .gwd_haitao .content_default_left .weight_type_detail  {\n      top: 7px;\n      left: 156px;\n      position: absolute;\n      width: 113px;\n      height: 24px;\n      line-height: 22px;\n      padding: 0px 6px;\n    }\n    .pro_type_detail {\n      top: 9px;\n      left: 350px;\n    }\n    .gwd_haitao .pro_type_detail.div_detail {\n      padding: 0 6px;\n      width: 134px;\n    }\n    .size_detail {\n      top: 130px;\n      left: 350px;\n    }\n    .gwd_haitao .size_detail.div_detail {\n      padding: 0px 6px;\n      width: 110px;\n    }\n    .pro_type:hover,.mail_type:hover {\n      cursor: text;\n    }\n    .gwd_haitao .ht_getprice:hover{\n      text-decoration: none;\n      color: #454A4D;\n    }\n    .gwd_haitao .content_default_left{\n      height: 160px;\n      width: 254px;\n      border-right: 1px solid #e6e9eb;\n      float: left;\n      display: inline-block;\n    }\n    .gwd_haitao .ht_freight,.gwd_haitao .del_line{\n      display: inline-block;\n      text-align: left;\n      font-size: 14px;\n      margin-left: 12px;\n    }\n    a.ht_transport_btn span, .ht_tariff_btn span {\n      display: inline-block;\n      width: 60px;\n      height: 40px;\n      overflow: hidden;\n      float: left;\n      font-size: 12px;\n      margin-right: 5px;\n    }\n    a.ht_transport_btn span:hover, .ht_tariff_btn span:hover {\n      text-decoration: underline;\n    }\n    .gwd_haitao .content_default_right{\n      display: inline-block;\n      height: 160px;\n      width: 119px;\n    }\n    .gwd_haitao .content_default_right a{\n      width: 120px;\n      height: 40px;\n      line-height: 40px;\n      color: #383835;\n      border-bottom: 1px solid #e6e9eb;\n      padding: 0 0 0 14px;\n      text-decoration: none;\n    }\n    .gwd_haitao .content_default_right a span {\n      font-size: 12px;\n      margin-left: 7px;\n    }\n    .gwd_haitao .content_default_right a:hover{\n      text-decoration: none;\n      color: #383835;\n    }\n    #gwd_ht_main .size_help{\n      cursor: pointer;\n      border-bottom: none;\n    }\n    #gwd_ht_main .size_help span {\n      text-decoration: none;\n      color: #5aa4cc;\n    }\n    #gwd_ht_main .size_help span:hover {\n      text-decoration: underline;\n    }\n    .gwd_haitao .content_default_right em{\n      display: inline-block;\n      width: 20px;\n      height: 20px;\n      position: relative;\n      top: 5px;\n    }\n    .gwd_haitao .size_help em{\n      background: url('https://s1.gwdang.com/images/extensions/haitao_sizeicon.png') 0px 0px no-repeat;\n      background-size: 20px 20px;\n    }\n    .gwd_haitao .ht_translate em{\n      background: url('https://s1.gwdang.com/images/extensions/haitao_transicon.png') 0px 0px no-repeat;\n      background-size: 20px 20px;\n    }\n    .gwd_haitao .pro_type .ziying{\n      background: url('https://s1.gwdang.com/images/extensions/haitao_ziyingicon.png') 0px 0px no-repeat;\n    }\n    .gwd_haitao .pro_type .sanfang{\n      background: url('https://s1.gwdang.com/images/extensions/haitao_sanicon.png') 0px 0px no-repeat;\n      background-size: 20px 20px;\n    }\n    .gwd_haitao .mail_type .zhiyou{\n      background: url('https://s1.gwdang.com/images/extensions/haitao_zhiicon.png') 0px 0px no-repeat;\n    }\n    .gwd_haitao .mail_type .feizhiyou{\n      background: url('https://s1.gwdang.com/images/extensions/haitao_zhuanicon.png') 0px 0px no-repeat;\n      background-size: 20px 20px;\n    }\n    .gwd_haitao .same-style em {\n      background: url('https://s1.gwdang.com/images/extensions/haitao_samestyle.png') 0px 0px no-repeat;\n    }\n    .gwd_haitao .vip_tle em {\n      background: url('https://s1.gwdang.com/images/extensions/haitao_vipicon.png') 0px 0px no-repeat;\n    }\n    .gwd_haitao .gwd_wishlist_trend_detail_wrapper{\n      float: left;\n    }\n    .gwd_haitao .ht_content{\n      height: 162px;\n      border-top: 1px solid #e6e9eb;\n      position: relative;\n    }\n    .content_default {\n      float: left;\n    }\n    .content_default:after, .gwd_haitao .content_default_right:after {\n      content: \"\";\n      display: block;\n      clear: both;\n    }\n    #cate_select_box{\n      text-align: center;\n      margin-top: 4px;\n      position: relative;\n    }\n    .gwd_haitao #cate_select_box input{\n      height: 30px;\n      width: 109px;\n      background: url('https://s1.gwdang.com/images/extensions/haitao_downgrayicon.png') no-repeat 89px 11px;\n      background-size: 12px 7px;\n      cursor: pointer;\n      border: 1px solid #fff;\n      box-shadow: none;\n      box-sizing: border-box;\n      padding: 3px 7px;\n      border-radius: 4px;\n      color: #9ca7ad;\n      font-size: 12px;\n    }\n    .gwd_haitao #cate_select_box input.sel_info{\n      background-color: #e1e1e1;\n    }\n    .gwd_haitao #cate_select_box input.input_hover{\n      border-bottom: 1px solid #fff;\n      color: #9ca7ad;\n    }\n    .gwd_haitao .cate_select_1{\n      display: inline-block;\n      float: left;\n      margin-left: 22px;\n      border: 1px solid #969899;\n      border-radius: 4px;\n      position: relative;\n    }\n    .gwd_haitao .cate_select_1.select_hover , .gwd_haitao .cate_select_2.select_hover{\n      height: 218px;\n      z-index: 9999;\n      background-color: #fff;\n\n    }\n    .gwd_haitao .cate_select_2{\n      margin-left: 16px;\n      display: inline-block;\n      border: 1px solid #969899;\n      border-radius: 4px;\n      position: relative;\n      float: left;\n    }\n    .gwd_haitao .xialabox{\n      display: none;\n      background-color: #fff;\n      overflow-y: scroll;\n      overflow-x: hidden;\n      height: 185px;\n      text-align: left;\n      border-top: none;\n      position: absolute;\n      width: 109px;\n      font-size: 12px;\n    }\n    .ie_hack.gwd_haitao .xialabox {\n      width: 111px;\n    }\n    .gwd_haitao #select_btn{\n      display: inline-block;\n      width: 60px;\n      height: 24px;\n      background-color: #47befe;\n      border-radius: 12px;\n      margin: 0 auto;\n      color: #fff;\n      text-align: center;\n      line-height: 23px;\n      cursor: pointer;\n      position: absolute;\n      top: 54px;\n      left: 116px;\n    }\n    #transport_detail{\n      position: fixed;\n      width: 755px;\n      height: 314px;\n      border: 1px solid #e6e9eb;\n      background-color: #fff;\n      top: 400px;\n      left: 400px;\n      display: none;\n      z-index: 99999;\n      box-shadow: 0px 5px 19px 0px #d7d8d9;\n    }\n    #transport_detail *{\n      box-sizing: border-box;\n    }\n    #transport_detail .trans_nav .span_0 {\n      margin-left: 10px;\n    }\n    #transport_detail .trans_nav .span_1{\n      text-align: left;\n      width: 146px;\n      margin-left: 17px;\n    }\n    #transport_detail .trans_nav .span_2{\n      text-align: left;\n      width: 147px;\n      margin-left: 4px;\n    }\n    .ht_trans_detail .trans_head{\n      height: 51px;\n      border-bottom: 1px solid #e6e9eb;\n    }\n    .gwd_haitao .closebar{\n      display: inline-block;\n      text-align: center;\n      font-size: 30px;\n      position: absolute;\n      top: 4px;\n      right: 7px;\n      color: #666;\n      cursor: pointer;\n    }\n    .gwd_haitao .closebar.closebg {\n      background: url(\"https://s1.gwdang.com/images/extensions/haitao_closeicon.png\") 6px 6px no-repeat;\n      background-size: 9px 9px;\n      height: 22px;\n      width: 22px;\n      top: 1px;\n      right: 1px;\n    }\n    .gwd_haitao .closebar.closebg:hover {\n      background: url(\"https://s1.gwdang.com/images/extensions/haitao_closehovericon.png\") 3px 3px no-repeat;\n      background-size: 15px 15px;\n    }\n\n    .size_desc {\n      color: #9f9f9f;\n      line-height: 35px;\n    }\n\n\n    /* 尺码帮助 */\n    #size_detail{\n      width: 618px;\n      height: 440px;\n      position: fixed;\n      top: 400px;\n      left: 400px;\n      display: none;\n      text-align: left;\n      z-index: 9999999;\n      box-sizing: border-box;\n      background-color: #fff;\n      border: 1px solid #e6e9eb; \n      box-shadow: 0px 5px 19px 0px #d7d8d9;       \n    }\n    .ht_size_detail .shangyi, .tongzhuang0, .tongxie0{\n      position: absolute;\n      left: 38px;\n    }\n    .ht_size_detail .xiazhuang, .tongzhuang4, .tongxie4{\n      position: absolute;\n      top: 50px;\n      left: 38px;\n    }\n    .ht_size_detail .shoes,.ht_size_detail .tongzhuang, .ht_size_detail .tongxie{\n      display: none;\n    }\n    .ht_size_detail span.shoes {\n      position: absolute;\n      top: 39px;\n      left: 38px;\n      color: #fff;\n      background-color: #47befe;\n      border:  1px solid #47befe;\n    }\n    .ht_size_detail .shangyi.size_hover,.ht_size_detail .xiazhuang.size_hover, .ht_size_detail .xiazhuang.size_hover, .ht_size_detail .tongzhuang.size_hover, .ht_size_detail .tongxie.size_hover{\n      background-color: #47befe;\n      border:  1px solid #47befe;\n      color: #fff;\n    }\n    .ht_size_detail .shangyi,.ht_size_detail .xiazhuang,.ht_size_detail .shoes,.ht_size_detail .tongzhuang, .ht_size_detail .tongxie{\n      height: 30px;\n      width: 60px;\n      text-align: center;\n      line-height: 30px;\n      cursor: pointer;\n      border-radius: 15px;\n      border:  1px solid #969899;\n      color: #8A9499;\n    }\n    .ht_size_detail .cloth_icon{\n      position: absolute;\n      top: 100px;\n      left: 22px;\n    }\n    \n    .ht_size_detail .manshangzhuang {\n      background: url('https://s1.gwdang.com/images/extensions/man_shangzhuang.png') -4px 0px no-repeat;\n      height: 191px;\n      width: 93px;\n    }\n    .ht_size_detail .womanshangzhuang {\n      background: url('https://s1.gwdang.com/images/extensions/woman_shangzhuang.png') 0px 0px no-repeat;\n      height: 187px;\n      width: 87px;\n    }\n    .ht_size_detail .kid0 {\n      background: url('https://s1.gwdang.com/images/extensions/kids0_4.png') 0px 0px no-repeat;\n      height: 187px;\n      width: 87px;\n      margin-left: 8px;\n    }\n    .ht_size_detail .kid4 {\n      background: url('https://s1.gwdang.com/images/extensions/kids4_12.png') -2px 0px no-repeat;\n      height: 187px;\n      width: 87px;\n      margin-left: 0px;\n    }\n    .ht_size_detail .manxiazhuang {\n      background: url('https://s1.gwdang.com/images/extensions/man_xiazhuang.png') -17px 0px no-repeat;\n      height: 216px;\n      width: 63px;\n      margin-left: 13px;\n    }\n    .ht_size_detail .womanxiazhuang {\n      background: url('https://s1.gwdang.com/images/extensions/woman_xiazhuang.png') 0px 0px no-repeat;\n      height: 220px;\n      width: 66px;\n      margin-left: 11px;\n    }\n    \n    .ht_size_detail .ht_shoes.man_foot {\n      background: url('https://s1.gwdang.com/images/extensions/man_foot.png') 4px 0px no-repeat;\n      height: 170px;\n      width: 111px;\n    }\n    .ht_size_detail .ht_shoes.woman_foot {\n      background: url('https://s1.gwdang.com/images/extensions/woman_foot.png') 4px 0px no-repeat;\n      height: 170px;\n      width: 111px;\n    }\n    .ht_size_detail .ht_shoes.kids_foot {\n      background: url('https://s1.gwdang.com/images/extensions/kid_shoes.png') 0px 0px no-repeat;\n      height: 171px;\n      width: 131px;\n      left: 4px;\n    }\n    .ht_size_detail .clothes_nav{\n      margin-top: 13px;\n      line-height: 30px;\n      height: 30px;\n      width: 567px;\n      margin-left: 55px;\n    }\n    .ht_size_detail .clothes_nav ul{\n      padding: 0;\n      margin: 0px;\n    }\n    .ht_size_detail .size_s{\n      height: 40px;\n      display: inline-block;\n      border-right: 2px solid #e6e9eb;\n    }\n    .detail_left {\n      float: left;\n      width: 136px;\n      height: 367px;\n      position: relative;\n    }\n    .detail_left span {\n      display: inline-block;\n    }\n    .ht_size_detail #size_item{\n      height: 180px;\n      width: 452px;\n      overflow-y: scroll;\n      border: 1px solid #e6e9eb;\n    }\n    .ht_size_detail .clothes_nav ul li{\n      list-style: none;\n      float: left;\n      font-size: 16px;\n      width: 32px;\n      margin-right: 57px;\n      color: #000;\n      cursor: pointer;\n      border-bottom: 3px solid #fff;\n    }\n    .ht_size_detail .clothes_nav ul li:hover {\n      color: #47befe;\n    }\n    .ht_size_detail .clothes_nav ul li.select{\n      border-bottom: 3px solid #47befe;\n      color: #47befe;\n    }\n    .ht_size_detail .size_head{\n      height: 60px;\n    }\n    .ht_size_detail .unit_desc{\n      display: inline-block;\n      float: right;\n      margin-right: 27px;\n      margin-top: 8px;\n      position: relative;\n    }\n    .ht_size_detail .size_con{\n      text-align: right;\n      margin-top: 16px;\n      margin-bottom: 11px;\n      margin-right: 26px;\n      color: #575e61;\n    }\n    .ht_size_detail .size_op{\n      width: 440px;\n      display: inline-block;\n      position: relative;\n    }\n\n    .ht_size_detail .size_op input+input {\n     margin-left: 0px; \n    }\n    #first_size+.first_xiala {\n     position: absolute;\n     right: 267px;\n    }\n    .ht_size_detail .size_op input{\n      width: 100px;\n      height: 31px;\n      box-sizing: border-box;\n    }\n    #first_size, #second_size {\n      border-radius: 4px;\n      outline: none;\n      padding: 0 7px;\n      border: 1px solid #969899;\n      box-shadow: none;\n    }\n    #first_size:focus, #second_size:focus {\n      border-color: #47befe;\n    }\n    .ht_size_detail .size_xialabox {\n      display: none;\n      width: 60px;\n      height: 190px;\n      border: 1px solid #999;\n      border-bottom: none;\n      position: absolute;\n      text-align: left;\n      line-height: 19px;\n      top: -189px;\n      right: 267px;\n      box-sizing: border-box;\n      background-color: #fff;\n      border-top-left-radius: 4px;\n      border-top-right-radius: 4px;\n    }\n    #second_size+.second_xiala{\n      position: absolute;\n      right: -14px;\n    }\n    .ht_size_detail #second_size+input+.size_xialabox{\n      right: -14px;\n    }\n    .ht_size_detail .size_xialabox a{\n      display: block;\n      padding-left: 7px;\n      color: #5c6266;\n    }\n    .ht_size_detail .size_xialabox a:hover{\n      text-decoration: underline;\n      color: #47befe;\n    }\n    .ht_size_detail .size_op .size_xiala{\n      width: 60px;\n      border: 1px solid #999;\n      padding-left: 7px;\n      border-radius: 4px;\n      color: #8a9499;\n    }\n    .ht_size_detail .size_op .size_xiala.msHover {\n      border-radius: 0px;\n      border-bottom-left-radius: 4px;\n      border-bottom-right-radius: 4px;\n      background: url('https://s1.gwdang.com/images/extensions/haitao_upgrayicon.png') no-repeat 42px 12px;\n      background-size: 12px 7px;\n    }\n    .ht_size_detail .size_xiala{\n      background: url('https://s1.gwdang.com/images/extensions/haitao_downgrayicon.png') no-repeat 42px 12px;\n      background-size: 12px 7px;\n      cursor: pointer;\n    }\n    .ht_size_detail .conversion{\n      margin: 0 30px 0 105px;\n    }\n    /* fanyi */\n    .ht_fanyi{\n      display: block;\n      position: absolute;\n      width: 200px;\n      z-index: 99;\n      background: #fff url('https://s1.gwdang.com/images/extensions/haitao_fanyi_icon.png') 0px 0px no-repeat;\n      border: 1px solid #47befe;\n      border-radius: 8px;\n      min-height: 25px;\n      color: #494b4d;\n      text-indent: 32px;\n      padding: 2px 12px;\n      line-height: 19px;\n    }\n    .ht_fanyi a{\n      display: block;\n      width: 130px;\n      text-decoration: none;\n      color: #494b4d;\n    }\n    .ht_fanyi a:hover{\n      text-decoration: none;\n      color: #494b4d;\n    }\n    #ht_top{\n      position: absolute;\n      width: 0px;\n      height: 0px;\n      line-height: 0px;\n      border-bottom: 8px solid #278ac9;\n      border-left: 9px solid transparent;\n      border-right: 9px solid transparent;\n      left: 58px;\n      top: -8px;\n    }\n    #ht_top:after {\n      content: \"\";\n      display: block;\n      position: absolute;\n      width: 0px;\n      height: 0px;\n      line-height: 0px;\n      border-bottom: 7px solid #fff;\n      border-left: 8px solid transparent;\n      border-right: 8px solid transparent;\n      left: -8px;\n      top: 1px;\n    }\n    /* 滚动条样式 */\n    .gwd_haitao ::-webkit-scrollbar {width:6px;height: 6px;}\n    .gwd_haitao ::-webkit-scrollbar-track {background:#f0f0f0;}\n    .gwd_haitao ::-webkit-scrollbar-thumb {\n      background: #cdcdcd;\n      border-radius: 4px;\n    }\n    #size_detail ::-webkit-scrollbar {width:2px;height: 6px;}\n    /* 亚马逊遮挡 */\n    div#actionPanelWrapper.burj {\n      overflow: visible!important;\n    }\n\n   ", ""]);

// exports


/***/ }),

/***/ 38456:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ ImgSameAppvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ ImgSameApp)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/ImgSameApp.vue?vue&type=template&id=794ee166&scoped=true
var ImgSameAppvue_type_template_id_794ee166_scoped_true = __webpack_require__(73334);
;// ./src/standard/module/components/ImgSame/ImgSameApp.vue?vue&type=template&id=794ee166&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/ImgSameApp.vue?vue&type=script&lang=js
var ImgSameAppvue_type_script_lang_js = __webpack_require__(81011);
;// ./src/standard/module/components/ImgSame/ImgSameApp.vue?vue&type=script&lang=js
 /* harmony default export */ const ImgSame_ImgSameAppvue_type_script_lang_js = (ImgSameAppvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/ImgSameApp.vue?vue&type=style&index=0&id=794ee166&prod&scoped=true&lang=less
var ImgSameAppvue_type_style_index_0_id_794ee166_prod_scoped_true_lang_less = __webpack_require__(25166);
;// ./src/standard/module/components/ImgSame/ImgSameApp.vue?vue&type=style&index=0&id=794ee166&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/ImgSame/ImgSameApp.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  ImgSame_ImgSameAppvue_type_script_lang_js,
  ImgSameAppvue_type_template_id_794ee166_scoped_true/* render */.XX,
  ImgSameAppvue_type_template_id_794ee166_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "794ee166",
  null
  
)

/* harmony default export */ const ImgSameApp = (component.exports);

/***/ }),

/***/ 38469:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(72524);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("31c72026", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 38480:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

var internalObjectKeys = __webpack_require__(61828);
var enumBugKeys = __webpack_require__(88727);

var hiddenKeys = enumBugKeys.concat('length', 'prototype');

// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  return internalObjectKeys(O, hiddenKeys);
};


/***/ }),

/***/ 38752:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "minibar-tab",
    class: {
      bjg: _vm.isBjg,
      "gwd-fake-tr": _vm.position.top
    },
    staticStyle: {
      flex: "1",
      display: "inline-block"
    },
    style: _vm.style,
    attrs: {
      id: "gwd_mini_compare"
    },
    on: {
      mouseover: _vm.mouseover,
      mouseleave: _vm.mouseleave,
      "~hover": function ($event) {
        return _vm.logHover.apply(null, arguments);
      }
    }
  }, [!_vm.position.top ? _c("div", {
    staticClass: "minibar-btn-box"
  }, [_c("em", {
    staticClass: "setting-bg mini-compare-icon"
  }), _vm._v(" "), _vm.data.length && _vm.data[0].view_price < _vm.pri ? _c("span", {
    staticStyle: {
      float: "none"
    }
  }, [_vm._v(_vm._s(_vm.transText("更低价")) + ":¥" + _vm._s(_vm.data[0].view_price))]) : _vm.data.length === 0 ? _c("span", {
    staticStyle: {
      float: "none"
    }
  }, [_vm._v(_vm._s(_vm.transText("暂无结果")))]) : _c("span", {
    staticStyle: {
      float: "none"
    }
  }, [_vm._v(_vm._s(_vm.transText("其他")) + _vm._s(_vm.data.length) + _vm._s(_vm.transText("家报价")))])]) : _vm._e(), _vm._v(" "), _vm.position.top ? _c("div") : _vm._e(), _vm._v(" "), _c("div", {
    staticClass: "minibar-detail",
    attrs: {
      id: "gwd_mini_compare_detail"
    }
  }, [_c("ul", _vm._l(_vm.data, function (item) {
    return _c("li", {
      key: item.nid
    }, [_c("a", {
      attrs: {
        href: item.url,
        target: "_blank"
      },
      on: {
        click: function ($event) {
          return _vm.logLink();
        }
      }
    }, [_c("img", {
      attrs: {
        src: `https://cdn.gwdang.com/images/favicon/${item.site}.png`
      }
    }), _vm._v(" "), _c("span", {
      staticClass: "m-item-sitename"
    }, [_vm._v(_vm._s(item.shopName))]), _vm._v(" "), _c("span", {
      staticClass: "m-item-price prifontf"
    }, [_vm._v("¥" + _vm._s(item.view_price))])])]);
  }), 0)])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 38942:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAwCAYAAAB0WahSAAAAAXNSR0IArs4c6QAACBNJREFUWEe9WF2MXVUV/ta+nWGGTu9MC3agkUR9AF98ITH4YkI1MfJgog9tiA+GGIM2YtAxDdYoDpYaU4FoqiGSWMCKtcUGA2oj2tCIyBAbNRpIQBGrRLEzvTNz/3/3MmuvvffZ59wzBcbE23Tuueecvde3vvV9a+9zCP/Dh59anALmvgKM1oDGt2j3Ynez09FmB8o4PnPP/QzcQkSXgem79P6FfZudb1NA+OTipN0+fTeA/WDW2CRT2UNmtfdV2rvYf7OANgVkcPruewlYcMFZMDAzw81FhMOVD37pjjcNhJ978DPA4Bd0w60vvd5gPnfrxPC1XQcZfAeBBIP/yJHg0DPEuG9Lhw68EWaYmfDbh99BvHRURq+B+Eeww4fwz1+do72Pjoqg+OSeymDy2k+CcATExExEhMhEBsRBtAAvTPT+8u2yuZy+nvrODKam3wPiT8PSjcTPfk/IzTIj1MC8BFN5BuA/gehVrHb/1W2+so9AdyoIQSEgnDB8aQSYCkYvwzLo61M7pg+iP1/F7PQ1sMPrYCrvAtt3A3QDCFvlZmVx6agNP2TGwrFMvDJYv7AyrC+/kwgmaDPHWJKH1sbrl7le2bbzhYm5+StAmAdzNY5z+opCZ8+IvyxA0g8zDdYvYLD6bzi204BKBhiiUtGLfo9/CJPbr8aW2Z3BXVmynk5HoZamBIiAqK+gv3w+ijCHMQzxV3MYCxKGqWDyirdiYtuVavOQsC+Lw2MHbUGY0RS9IOdSV6R4/IVcnfRcdipPrs4lf5J5wzlTAQ3+8zxj2HMzsNAPC9Gc2EHFn37rsbNKuH+D+9xccXx+LrmWxqCpGVD/1XOMQTcf1ErFUxD+2NrsvC2CVICQ87mxPkEB5a559v1vGWOmq6D++SUHxAUumTwyNcaOz1hAeybFsEUWlZnieQGdnaepWVD/ld8w9zvJzRml+UkCK8oWCTsOgGfBl6y8HCNfTs9aBKaxaHoO1P/rWeZ+u6T2wpCoSQNSWbkSBlVTIfNUH0nwWDZNit14AbId1Hvxlx7IuKDcxCFYWjrpGnZUQnkmZmUm05YTecJedGoE8sLpAiNWkaaD4nEQ3qUyL2jCalku6aDLd4B6f36Cbb+Vzy4n2kBtmUvyJYilCQIuFep4MiRAun98jLnXVMt51WcZlFuUnDDz9tZ6C5Hl4HL3e+0F4Ark948qEJlc1suc+hMH5crlqXZa8X2jxLra/Mrs67XkmacZAfK742y79THh5eoqwgyNyA8OnTPrkCre8sy9S4JWvFsiIzNXgjpLx5h7DaXU9Ybx5pM2pHzrDgGyshZFWdqLEpbkutkqQJ45yrZTz9pyUoJxuyWBcz0jcZETarmrxhjzgMy2naD20w8wCxA3uEhvMUBYK8qXg/KFMjCdtoSMdcdIVYCcvZ9te20Dtfuax8Uq36SUdpHPeHPbaI3JseL1ZmbnQe0zR9h2VpWRJKA4yNW7pBuO6yS/HOQ6cmLn8bag22UzdzWo9eR9zO21gtrTpdwDKm1SGze7kJQDnS7/2W7Q7dZkm02zV4Fapw+zbQsjwe+ZLi7lIA0QdnZ5zYxlHrd6bpsIkIkghBIHpPnTQ8wOiJYmTlLYn+iubGN7B03Ee1zwEFh2tJp9BOI2qh5QdR7UfPwutq2UkbIlvKxPlHTNscw1e7e7jyD8cXKOqleBGo99mblVy+0l4pavKFbX0tMeIWmJnvwe3sh3CJxlrA/ookr/7ZkIjDn7Nn58gG3zoj6ZBIXnghVXS68Ll6F/mvJ1j9SHbMeYMLFc6b3kgJzcz7a5EndjIsDSHXiqdl9fN9klaRcNyM3G6UOeUPNjDCwzLE2A6sc/x2gus7Xsn50LmxgXKw1YUvMc7d4VHuAYS549ay36nQYG7QaPej1Q45Hb7Ki+Io/UWQOLD6/BalrvMdFFNlT9gZ3MHQXGYDAaDdFt1DDotMCjYXQS1R/ex7a5nD1ARp97seVsV1R8ec3zDjGuJQy6bXQbaxj22oo5zOsIJ1D9+59i26zJD/82Id9sYOTBXO709Zbv1Hob6sS4zXJ3vYZeuw477MsLHBfDGKNrlNNMAHLsNratGsjIFkevpIIiY/Q9SNIHxt3hS+PtOep10WmtYtBqwI5GmrH8h+jVldtp19fFVYPqP7yd0booD376VqHgcX37Ii9hXB9gbQblDUro76yvuDKQ2MHFk4B6oBHVQbE8huQ2psaJBWubNaW+oH6fuQNitERQwEEr8tO81lm72Os1Vt82HHQjm9pm3D/WHmdgpDSCyb8ENBUT1gFQ48R+tu2aisdT6yph5CbftdKyuFI5Sv5GZB6cYHP8H+f/MDnB9AEwfZ6IrnFXVYxeX5kWsjVHZpfkvUaap75gbWvVDY0Nx9+QrJJOZMzUMgZLgPnazFvO/Zp2nx3mXt6c3FP5+8uN95oKHSDC+wDaIoxIZaK1feBMix5I49QX3X4kFWvoCXJOjnlkamRwgol+UN17z7Pjr6fyZ55f3DM5u617PbP9KBF9DKBZNZeRwkbNBVMYA6bmT+7U/YiKKBOmqvpFA3NsfWr9m7s+9ED79QCUXb+weONMv1r9rDF0Cxhvl3pEF0XrA9R6/C47aq+qbcXCbHpE+DlbPNS8vH5mswCKoC4s7pmxO/q7gcrHAdwk7+9VQ84JTM0nDrLtrDGRWWZDP7MDPjR38zde3kz2b3TM8r0fudZeVlkwoA8z0bxjqHn68FluL5+yo62PzO5dFPv83z7LR27eZQxuGhl84r+aWdP15+gE8wAAAABJRU5ErkJggg==";

/***/ }),

/***/ 38946:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
// 京东礼金

const request = __webpack_require__(49388);
const globalCondition = __webpack_require__(41761);
const getGiftMoney = async () => {
  let config = await (__webpack_require__(41761).met)('GwdConfig');
  if (config.allowJdGiftMoney) {
    let payload = {
      rebate: 1,
      dp_id: G.dp.itemId
    };
    if (config.allowDuomai) {
      try {
        let duomaiData = await (__webpack_require__(41761).met)('duomaiData');
        if (duomaiData.commission_rate && duomaiData.price) {
          payload.rate = (parseFloat(duomaiData.commission_rate) * 100).toFixed(2);
          payload.price = duomaiData.price * (location.href.indexOf('debugExt') > -1 ? 10000 : 1);
        }
      } catch (e) {
        console.warn(e);
      }
    }
    let params = Object.keys(payload).map(k => `${k}=${encodeURIComponent(payload[k])}`).join('&');
    let res = await request.get(`${G.server}/extension/Coupon?${params}`);
    return res;
  }
  return null;
};
module.exports.getGiftMoney = getGiftMoney;
module.exports.init = async () => {
  //if (navigator.userAgent.toLowerCase().indexOf('metasr') === -1) return
  if (G.site !== '360buy') return;
  if (G.forbidGiftMoney) {
    globalCondition.setMet('noOtherGiftMoney');
    (__webpack_require__(18158).init)('qr');
    return;
  }
  await (__webpack_require__(30888).waitForConditionFn)(() => $('#summary-tips').length > 0);
  if ($('#summary-tips').text().indexOf('不可使用东券') > -1 || $('#summary-tips').text().indexOf('不可使用京券、东券') > -1) {
    globalCondition.setMet('noOtherGiftMoney');
    (__webpack_require__(18158).init)('qr');
    return;
  }
  if ($('#pingou-banner .activity-type strong').text().indexOf('预售') > -1) {
    globalCondition.setMet('noOtherGiftMoney');
    (__webpack_require__(18158).init)('qr');
    return;
  }
  const res = await getGiftMoney();
  if (res && res.rebate && res.rebate >= 1) {
    (__webpack_require__(5300).log)('jdGiftMoney:show');
    if (res._jump === 'qrcode') {
      (__webpack_require__(5300).log)('jdGiftMoney:needScanQr');
      (__webpack_require__(5300).log)('jdGiftMoney:-needScanQr');
    } else if (res._jump === 'link') {
      (__webpack_require__(5300).log)('jdGiftMoney:needClickLink');
    }
    const GiftMoney = (__webpack_require__(44666)/* ["default"] */ .A);
    $('#gwd-coupon-placeholder').replaceWith('<div id="gwd-giftmoney"></div>');
    new Vue({
      el: '#gwd-giftmoney',
      render: h => h(GiftMoney, {
        props: {
          value: res.rebate,
          qr: res._jump === 'qrcode',
          url: res.url,
          tag: res._tag
        }
      })
    });
    if (res.jump !== 'qrcode') {
      (__webpack_require__(41761).setMet)('couponLink', {
        content: '发现' + res.rebate + '元红包，速领',
        url: res.url
      });
      // require('common/sideCoupon').add('店铺红包', res.rebate, res.url)
      (__webpack_require__(92771).getStore)().commit('promos/setState', {
        rebate: {
          value: res.rebate,
          link: res.url
        }
      });
    }
    $('#gwdang-banner-ad').remove();
    const GiftMoneyTop = (__webpack_require__(61915)/* ["default"] */ .A);
    $('.gwd-topbar-left').append(`<div id="gwd-giftmoney-top"></div>`);
    new Vue({
      el: '#gwd-giftmoney-top',
      render: h => h(GiftMoneyTop, {
        props: {
          value: res.rebate,
          qr: res._jump === 'qrcode',
          url: res.url,
          tag: res._tag
        }
      })
    });
    //require('standard/module/jdPriceProtect').init('redpack')
  } else {
    globalCondition.setMet('noOtherGiftMoney');
    (__webpack_require__(18158).init)('qr');
  }
};

/***/ }),

/***/ 39084:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _jquery = __webpack_require__(10333);
function copyTextToClipboard(text) {
  const textArea = document.createElement('textarea');
  textArea.value = text;
  document.body.appendChild(textArea);
  textArea.select();
  document.execCommand('copy');
  document.body.removeChild(textArea);
}
var _default = exports.A = {
  props: ['getTKL'],
  data() {
    return {
      tkl: '',
      copied: false,
      error: false
    };
  },
  methods: {
    transText: __webpack_require__(54600),
    click() {
      if (!this.tkl) {
        this.getTKL(data => {
          if (data) {
            this.tkl = '7' + data;
          } else {
            this.tkl = location.href;
            this.error = true;
          }
        });
      } else {
        this.copyTkl();
      }
    },
    copyTkl() {
      copyTextToClipboard(this.tkl);
      this.copied = true;
    }
  }
};

/***/ }),

/***/ 39102:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-content[data-v-40244662] {\n  flex: 1;\n  overflow-y: auto;\n  padding: 24px;\n  width: 100%;\n  box-sizing: border-box;\n  scrollbar-width: none;\n  -ms-overflow-style: none;\n}\n.gwd-content[data-v-40244662]::-webkit-scrollbar {\n  display: none;\n}\n.gwd-content .gwd-select[data-v-40244662] {\n  margin-bottom: 8px;\n}\n.gwd-content .gwd-label[data-v-40244662] {\n  font-size: 14px;\n  font-weight: bold;\n  color: #404547;\n  margin-right: 8px;\n  margin-top: 5px;\n}\n.gwd-content .gwd-select-option[data-v-40244662] {\n  margin-right: 12px;\n  margin-bottom: 12px;\n  display: inline-block;\n  height: 32px;\n  line-height: 32px;\n  padding: 0 16px;\n  background: #f7f7f7;\n  font-size: 14px;\n  color: #404547;\n  border-radius: 4px;\n  cursor: pointer;\n  border: 1px solid #f7f7f7;\n}\n.gwd-content .gwd-select-option.gwd-select-option-active[data-v-40244662] {\n  background: #fff1f1;\n  color: #e03024;\n  border: 1px solid #e03024;\n}\n.gwd-content .gwd-first-option[data-v-40244662] {\n  padding: 12px;\n  box-sizing: border-box;\n  background: #fafafa;\n  border-radius: 8px;\n  margin-bottom: 12px;\n}\n.gwd-content .gwd-first-option .gwd-option-img[data-v-40244662] {\n  width: 52px;\n  height: 52px;\n  border-radius: 4px;\n  border: 1px solid #e6e9eb;\n  margin-right: 12px;\n}\n.gwd-content .gwd-second-option[data-v-40244662] {\n  height: 54px;\n  justify-content: center;\n  border: 1px solid #e6e9eb;\n  background: #fff;\n  border-radius: 4px;\n  padding: 0 12px;\n  margin-right: 12px;\n  margin-top: 12px;\n}\n", ""]);

// exports


/***/ }),

/***/ 39182:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAAXNSR0IArs4c6QAAABVQTFRFAAAAmZmZl5eXm5ubl5eXmpqamZmZ6DxeMAAAAAZ0Uk5TAF9gf4Cf612RewAAADlJREFUKM9jYKAfYBJAE1BLRhdIM0AVYElDV+JGKyWJqAKs6AJhaQ5oClKorUANTQGDWgqhIKQ1AAB+lA6zbxMvQgAAAABJRU5ErkJggg==";

/***/ }),

/***/ 39227:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAoCAMAAAC2PjgYAAAB1FBMVEUAAAD//4D//0D/30D/xjn/1UD/zED/wj3/xDv/yDf/xTT/wTn/wzX/wDX/wTT/wTX/wjT/wTb/wTb/wjb/wTX/wTX/wjX/wDX/wTX/wDT/wTT/wTT/wTb/wDT/wTX/wDX/wDX/wDT/wTX/wTX/wDX/wTT/wDX/wTX/wTX/wTT/wTT/wDX/wTT/wDT/wDb/wDf/wTn/wTr/wjv/wjz/wz//w0D/xEH/xEL/xEP/xUT/xUX/xUb/xUf/xkf/xkj/xkr/x0z/yE7/yE//yFD/yVH/yVP/ylX/ylb/y1j/zFv/zFz/zF3/zV7/zWD/zmP/0Gj/0Gn/0Gr/0Wv/0Wz/0m7/03H/03L/03P/1HX/1Hb/1Xf/1Xn/1nz/2IL/2IT/2YX/2Yf/2on/2or/24v/243/3I7/3JD/3ZH/3ZP/3pb/35n/4Jv/5Kj/5Kn/5Kr/5q//57L/57P/6LX/6Lb/6bj/6rz/7cf/7cj/7sv/787/8M//8ND/8NH/8dL/8dT/8tf/89j/89n/89r/9Nz/9eD/9uL/9uT/9+X/9+b/9+f/+Oj/+On/+Or/+e7/+u//+vD/+/L/+/P//PX//Pb//Pf//fr//fv//vv//vz//v3//v7///8fUl1IAAAALXRSTlMAAgQICQwUFRocLC1ETU5SU15faG94eYKDkpOcnaa2t8/X2uLj5ujt8fX5/P21FPrRAAAB+ElEQVQ4y7XVZ1cTQRSH8djFrtgVO/YrGhVRMIgFFWOLAkZYQLEiaOyFxYIgUkQ2WdTN82V9sSQ7syEhweP/1Z7c38mZmXNnbiBQVFIqObJv28qAkqJdMlXWKrxEps4Sj5fmwbfOTHPJJ8WF8Z1zCuLebvPje+Zn8h7brnO/moeGvpVrfmMm/wxhERGpHgPuanz/wuz8DcCfiOY3Z+VtwCBY5zS/SOPReNwBOx6VswnorPwO/cdVvmWGyptw03RmEN6VSa0FAxdUv2Iy3jECAxUicu0XJKIK3zFb4Yeqqr7CzesWJNw/NYBku+JXZ2w18gPoe+HmJ1Cv1HfPzTiZJyhJ2t3a4az3c+NOzydIOo7jOJCovajxvfM8XnN7BKAhBi0iIkdh1N86y9L81cQCbqR4CIb9fGmaPwVg+OXpFG+Ejz6tLOYxYzaERZ5Da6S1ub0fYj6+ztvq+csH3J6JQct9d2H1BzU9yUG6/ArA74cP4q+vKvVVgSz8sGEYDSelCzq88vZZOv+S4vcmfvgAjV55ud7vRywIizyD3kvBYDBY2QacytLA0fFxoFrkkdoGsWzXo9wB+kQkZHl6tCKtN/kuXy/J93UiIjWdb03TNM3urlvHvKu9wMdDJ8pyPDQb/vlZypE1//NJLZ7uOMhn2Cye9igrbFD+BdGdnGbZt/FYAAAAAElFTkSuQmCC";

/***/ }),

/***/ 39277:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
let appended = false;
module.exports.init = css => {
  let imgurl;
  try {
    if (!navigator.userAgent.includes('Chrome')) {
      css = `${G.s_server}/css/brwext/${css}`;
      imgurl = `${G.s_server}/css/brwext/images.css`;
    } else if (G.localHost && G.from_device !== 'default') {
      css = `${G.localHost}css/${css}`;
      imgurl = `${G.localHost}css/images.css`;
    } else if (chrome && chrome.extension && (G.from_device === 'chrome' || G.from_device === '2345')) {
      css = `css/${css}`;
      css = chrome.extension.getURL(css);
      imgurl = chrome.extension.getURL(`css/images.css`);
    } else {
      css = `${G.s_server}/css/brwext/${css}`;
      imgurl = `${G.s_server}/css/brwext/images.css`;
    }
  } catch (e) {
    css = `${G.s_server}/css/brwext/${css}`;
    imgurl = `${G.s_server}/css/brwext/images.css`;
  }

  // $(`body`).append(`<link type="text/css" href="${css}" rel="stylesheet" />`);
  // $(`body`).append(`<link type="text/css" href="${imgurl}?v=${G.version}" rel="stylesheet" />`);
  return new Promise(resolve => {
    if (appended) {
      resolve();
      return;
    }
    let link = document.createElement('link');
    link.type = 'text/css';
    link.rel = 'stylesheet';
    link.href = css;
    let imgLink = document.createElement('link');
    imgLink.type = 'text/css';
    imgLink.rel = 'stylesheet';
    imgLink.href = `${imgurl}?v=${G.version}`;
    link.onload = () => {
      appended = true;
      resolve();
    };
    document.body.appendChild(link);
    document.body.appendChild(imgLink);
  });
};

/***/ }),

/***/ 39297:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var uncurryThis = __webpack_require__(79504);
var toObject = __webpack_require__(48981);

var hasOwnProperty = uncurryThis({}.hasOwnProperty);

// `HasOwnProperty` abstract operation
// https://tc39.es/ecma262/#sec-hasownproperty
// eslint-disable-next-line es/no-object-hasown -- safe
module.exports = Object.hasOwn || function hasOwn(it, key) {
  return hasOwnProperty(toObject(it), key);
};


/***/ }),

/***/ 39302:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['value']
};

/***/ }),

/***/ 39313:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ NumberInputvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ NumberInput)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Controls/NumberInput.vue?vue&type=template&id=e2c6ebd0&scoped=true
var NumberInputvue_type_template_id_e2c6ebd0_scoped_true = __webpack_require__(84154);
;// ./src/standard/module/components/Controls/NumberInput.vue?vue&type=template&id=e2c6ebd0&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Controls/NumberInput.vue?vue&type=script&lang=js
var NumberInputvue_type_script_lang_js = __webpack_require__(3603);
;// ./src/standard/module/components/Controls/NumberInput.vue?vue&type=script&lang=js
 /* harmony default export */ const Controls_NumberInputvue_type_script_lang_js = (NumberInputvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Controls/NumberInput.vue?vue&type=style&index=0&id=e2c6ebd0&prod&scoped=true&lang=less
var NumberInputvue_type_style_index_0_id_e2c6ebd0_prod_scoped_true_lang_less = __webpack_require__(46894);
;// ./src/standard/module/components/Controls/NumberInput.vue?vue&type=style&index=0&id=e2c6ebd0&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/Controls/NumberInput.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  Controls_NumberInputvue_type_script_lang_js,
  NumberInputvue_type_template_id_e2c6ebd0_scoped_true/* render */.XX,
  NumberInputvue_type_template_id_e2c6ebd0_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "e2c6ebd0",
  null
  
)

/* harmony default export */ const NumberInput = (component.exports);

/***/ }),

/***/ 39360:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(63459);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("5d29e196", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 39433:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);

// eslint-disable-next-line es/no-object-defineproperty -- safe
var defineProperty = Object.defineProperty;

module.exports = function (key, value) {
  try {
    defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
  } catch (error) {
    globalThis[key] = value;
  } return value;
};


/***/ }),

/***/ 39519:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);
var userAgent = __webpack_require__(82839);

var process = globalThis.process;
var Deno = globalThis.Deno;
var versions = process && process.versions || Deno && Deno.version;
var v8 = versions && versions.v8;
var match, version;

if (v8) {
  match = v8.split('.');
  // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  // but their correct versions are not interesting for us
  version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
}

// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
// so check `userAgent` even if `.v8` exists, but 0
if (!version && userAgent) {
  match = userAgent.match(/Edge\/(\d+)/);
  if (!match || match[1] >= 74) {
    match = userAgent.match(/Chrome\/(\d+)/);
    if (match) version = +match[1];
  }
}

module.exports = version;


/***/ }),

/***/ 39542:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
module.exports = __webpack_require__.p + "images/extensions/build/a674a7bbf4b8ee3afe23.png";

/***/ }),

/***/ 39749:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c,
    _setup = _vm._self._setupProxy;
  return _c("div", {
    staticClass: "gwd-circle-stack-chart"
  }, [_c("svg", {
    attrs: {
      width: _vm.size,
      height: _vm.size,
      viewBox: "0 0 100 100"
    }
  }, [_c("g", {
    attrs: {
      transform: "translate(50,50)"
    }
  }, _vm._l(_vm.segments, function (segment, index) {
    return _c("path", {
      key: index,
      attrs: {
        d: segment.path,
        fill: segment.color
      }
    });
  }), 0)])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 39793:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
module.exports = __webpack_require__.p + "images/extensions/build/5f2c04614c42c151e3be.png";

/***/ }),

/***/ 39851:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, data = $data.data;
    $$out += '<div class="ht-com-detail" id="global_detail">\n  <div class="global-content global-model">\n    <div class="gl-left">\n      <div class="gl-l-item ziying">\n        <em class="ht-bg"></em>\n        <span>自营</span>\n      </div>\n      <div class="gl-l-item zhiyou">\n        <em class="ht-bg"></em>\n        <span>直邮</span>\n      </div>\n      <div class="gl-l-item samestyle">\n        <em class="ht-bg"></em>\n        <span>同款</span>\n      </div>\n      <div class="gl-l-item vipfee">\n        <em class="ht-bg"></em>\n        <span>会员免运费</span>\n      </div>\n    </div>\n    <div class="gl-right">\n      <a href="';
    $$out += $escape(data.url);
    $$out += '" target="_blank">\n        <div class="gl-img-box">\n          <img src="';
    $$out += $escape(data.img);
    $$out += '">\n        </div>\n        <p>';
    $$out += $escape(data.tle);
    $$out += '</p>\n      </a>\n    </div>\n  </div>\n  <div class="global-foot">\n    <span>在亚马逊中国购买\uFF0C由亚马逊美国从境外发货</span>\n    <a href="';
    $$out += $escape(data.url);
    $$out += '" target="_blank">链接直达</a>\n  </div>\n  <style type="text/css">\n    \n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 40067:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
const extConsole = __webpack_require__(7129);
module.exports.init = async data => {
  extConsole.log(data);
  const icon = __webpack_require__(50575);
  if (data && data.link) {
    let dom = `
      <div id="gwd-ingre" class="gwdang-tab gwd-row gwd-align gwd-hoverable" style="line-height: 36px; padding-left: 5px; padding-right: 5px">
        <a href="${data.link}" target="_blank" style="text-decoration: none!important;">
          <img src="${icon}" alt="" style="width: 22px; height: 22px; margin-top: -2px;vertical-align: middle; display: inline-block">
          <span style="margin-left: 5px; font-size: 14px; color: #333333">查看成分表</span>
        </a>
      </div>`;
    extConsole.log($(`#${G.extName}-trend`));
    //await require('common/globalCondition').met('GwdPriceTrendLoaded')
    if ($(`#${G.extName}-trend`).length > 0) $(`#${G.extName}-trend`).after($(dom));else $(`#${G.extName}-main-contents`).append($(dom));
    extConsole.log('showing dom');
    //require('common/mutationObserver').observe($('#gwd-ingre')[0])
    $('#gwd-ingre').css('display', 'flex');
    (__webpack_require__(41761).setMet)('ingreComplete');
  }
};

/***/ }),

/***/ 40075:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAAAkCAMAAADo18WhAAAAAXNSR0IArs4c6QAAAQhQTFRFAAAAAP//QL/vPMPwSLf3SL/vRsHwRbr0Rb/vRLv1RMHvR73wSbrzSLvzSL/vR7zzR8DvR771RrzyRr/vRb3ySb70SLzySL/0SL3ySL/vSL/0R73ySL7zR7z0R7/0R73xR730R7/0Sb30SL3xSL3zSL/zSLvzSL3xSL3zSL/zR730R7/zSb3xSb3zSb/zR73xR73zSbzzSb3xSb3zRr7xSb30Sb70SL3ySL30SL/ySL/0SLzySL7xSL7yR7zyRr/zSb3zR73yR73zSb3zSL7ySL/zSL7zSL70R77zR73zR77zR770SL7ySL7ySL70SL7ySL70R77yR77zR77yR77zSL7zSL7zSL7z6L2p4AAAAFd0Uk5TAAEQESAgITAwMTEyP0BAQUFPUFBRXl9fYGBgYW5vb3BwcHB/f3+AgICAj4+Pj4+QkJCQkJGenp+fn5+goKChrq6vr6+wvr+/zc7Pz93e3t/f7u7v7/3+4imx9gAABW1JREFUWMPtmXt32zQUwGV1WkKpTZcy4lKWtKzB4dl1pcVbGxgpNSwjtVmM9f2/CffqEUu2nMRLD+dwDvePxbVs6f50n/II+V/+u8KiKHIOHBweBvoanungb0i3WSqMIl9f04BZYzRYKfZEvqlzwDl3LpdwnuhrzouQkFHO39jP0MNVYqtIPJhxue4+5/fmIKrRLJk9U2TqvDmAN4GfofXM41WrInMjwKecv/1XAXDpnZTz96w9AI2kZDCjuOgLHX6tAqRuWTwYAPmEV/ZtM4DaU3fEmxrW0GqovWFxdFBRd2uAXC7nveCLcQWg8J1ve2sAMl58yZRQG+Ca89dbAlCcFgBmanaSqv2iY0raAzhcyGK6sgBCuPo9VtL7MAAzol4rgCutTfew0xLAEcRHjQDd3ByKHgggEauwg0GcWplIAoRxVYZrALzrqpYaAPVfJFLyVQDLZD0q/wgaASDksiQ3d8wA8G64w8lNAC+1o5t4OS/6mqp4UgIMcJFM+hJolrJGAJeUofMIZAYei79y2w1ZXG4NAB5UsKWrdTUAxh1KPpT68x75QAAjCzHziXQ66D2qBXHdhb6qACRWYp+jM92RHnYWu8ijAWiKmz6GyzhAlvGKLOSqGBfONKo9Jx50ap1QqyAuBfqIoo+Gi9AWd2Ud8PkFrDFWlj7eKI02igaYpdOLs6XJSbA9gAfeOcdaVoQYzd8ZhUwsEsgQT7oPAUCFGzLlqbh59/06ALOlBuAlhh/e70wwhDF8QyxofbMS0+C8DJjZgG0JQEd5YrSjBCson7MqgKWfdOpVAIQM5yr/7OqdEQCD85nynnFnIjmyOHACZBsB5LluJ1Jl6a9hwWOyNYBypMJnvcnbshd6IbVPxIsslAjHdXXPNgGgajMkwI2MNewA5sQJsCh7x2JdEEuAXLtlmYVyvohD2uPZubBy52IGqbEOAGUpTyryxC7Fg0TbUmaeITTSoG9WBnMV4KpsEjYD2LESgIyBAHM0y4T/y1CDXqwOkDhqQFghtNSXUex7ZW5uBVCpY2oTwP35S1c7TXzp/9mINnh8vg5gyE33WTbUr7hK2g8CAGcytKoDAFvSpCysNQAKY7eRKVUAHzb/IrMAIG6Qe862AyiE/A2zeD9y04fKblQVGjZZsAYAfNauPlUAEvv2gUYexmr6t4sB4MBbnresZsYKSwDYt9n5AV6ypqR5VisDNYDqiUydqv4SWYM6Ad6oInbiBDiJDqgEOElulxPmpQk0QKhrWBw0Zn3bNzYDEG2uPNB7Scxa1wEouEwA4D+otPcz2DMql1ieBwZTlb95ftunLoAujA3bAQTvpGK+yt/3fkuAfdFhCwsMVUWB3X+6U5rADGKobjpqqAPg2o739QCBVG+hUtCuEXsa4Mbqav+sAmDX8FQBoNJUGAByEeh2T11ZiHREJUocFmC85kErAUbSovMehHExAmXOjGK8YTd6JF6RAPB+8dzDUD8lSMO/cQKIXiLpOwDQAP0WAFNd0eCbimgiM9UWtfiskqEBdBbyizt/FxSfU1lx5BEbAW5jp7yzADDKU9ICgOW6IOOHOR5/a3YTTgAP5WMY+UyvWRTzMo2SPQ/1L/Z0lyf66U0/LbK8bioHwCiJ0QV/E8sPdN78KHce6qv6v5rJLwrlCPupH+zvnygm7/NcOpCY4b0k2BRgWu1m3AAqG1dd7ahazZwWGJoNg6Y6k7f2ZJ1f6i+WKn6QAC8jpyQmAJ3wGVkPIE/yaf0MnOpqtgLgsWoaTs2bPXHvD3E9Lopn5ci4+AWTO1it4T8fwiSJjT+PHY/ByxU1kLznmrDjm3fp5eVlpxYD38Pdy+d7dgOG975Q755aY88o+QeoMwyTJnu6xAAAAABJRU5ErkJggg==";

/***/ }),

/***/ 40076:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


__webpack_require__(3362);
const communicate = __webpack_require__(79560);
module.exports = {
  get(path, params, callback) {
    let reqId = parseInt(Math.random() * 10000).toString() + Date.now();
    return new Promise(resolve => {
      communicate.trigger({
        type: 'backgroundReq',
        reqId: reqId,
        path: path,
        params: typeof params === 'object' ? JSON.stringify(params) : '{}',
        referer: location.href
      });
      communicate.on(resp => {
        if (resp.type === 'backgroundResp' && resp.value.reqId === reqId) {
          if (!callback) {
            try {
              resolve(JSON.parse(resp.value.data));
            } catch (e) {
              // require('common/extConsole').error(e)
              (__webpack_require__(7129).warn)('bg resp json fail', resp.value.data);
              resolve(resp.value.data);
            }
            return;
          }
          try {
            callback(JSON.parse(resp.value.data));
          } catch (e) {
            callback(resp.value.data);
          }
        }
      });
    });
  }
};

/***/ }),

/***/ 40085:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-img-same-app[data-v-794ee166] {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  cursor: pointer;\n  height: 82px;\n  border-radius: 8px;\n}\n.gwd-img-same-app .gwd-img-same-icon[data-v-794ee166] {\n  width: 32px;\n  height: 32px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  overflow: hidden;\n  background-color: #f5f5f5;\n}\n.gwd-img-same-app .gwd-img-same-icon .gwd-preview-img[data-v-794ee166] {\n  width: 32px;\n  height: 32px;\n  object-fit: cover;\n}\n.gwd-img-same-app .gwd-app-label[data-v-794ee166] {\n  font-size: 12px;\n  color: #3c4c54;\n  line-height: 13px;\n  text-align: center;\n  margin-top: 8px;\n}\n", ""]);

// exports


/***/ }),

/***/ 40238:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


__webpack_require__(3362);
const md5 = __webpack_require__(83386);
const request = __webpack_require__(49388);
const bgClient = __webpack_require__(40076);
const _m_h5_tk = document.cookie.match(/_m_h5_tk=([^;]+)/)[1].split("_")[0];
const host = location.hostname.includes('.taobao.com') ? 'https://h5api.m.taobao.com' : `https://h5api.m.tmall.${location.hostname.includes('.hk') ? 'hk' : 'com'}`;
module.exports = {
  async get(itemId, page = 1) {
    const t = Date.now();
    const api = 'mtop.taobao.rate.detaillist.get';
    const data = {
      showTrueCount: false,
      auctionNumId: itemId.replace('-83', '').replace('-123', '').replace('-8', ''),
      pageNo: page,
      pageSize: 20,
      rateType: "",
      searchImpr: "-8",
      orderType: "",
      expression: "",
      rateSrc: "pc_rate_list"
    };
    return request.requestXHR(request.makeUrl(host, `/h5/${api}/6.0/`, {
      jsv: '2.7.4',
      appKey: 12574478,
      t: t,
      sign: md5(`${_m_h5_tk}&${t}&12574478&${JSON.stringify(data)}`),
      api: api,
      v: '6.0',
      isSec: 0,
      ecode: 1,
      timeout: 20000,
      dataType: 'json',
      type: 'json',
      data: JSON.stringify(data)
    }));
  }
};

/***/ }),

/***/ 40280:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var $ = __webpack_require__(46518);
var getBuiltIn = __webpack_require__(97751);
var IS_PURE = __webpack_require__(96395);
var NativePromiseConstructor = __webpack_require__(80550);
var FORCED_PROMISE_CONSTRUCTOR = (__webpack_require__(10916).CONSTRUCTOR);
var promiseResolve = __webpack_require__(93438);

var PromiseConstructorWrapper = getBuiltIn('Promise');
var CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;

// `Promise.resolve` method
// https://tc39.es/ecma262/#sec-promise.resolve
$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {
  resolve: function resolve(x) {
    return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);
  }
});


/***/ }),

/***/ 40452:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
__webpack_require__(3362);
const request = __webpack_require__(49388);
const globalCondition = __webpack_require__(41761);
var _default = exports.A = {
  props: ['mode', 'days'],
  data() {
    return {
      qrLink: '',
      loading: false
    };
  },
  methods: {
    async over() {
      if (this.loading || this.qrLink) return;
      if (this.mode !== 'qr') return;
      this.loading = true;
      let qrApi = await globalCondition.met('qrApiReady');
      if (qrApi.type === 'api') {
        let res = await request.get(qrApi.src + '&protect=' + this.days);
        this.qrLink = res.data.qrImgStr;
      }
    }
  }
};

/***/ }),

/***/ 40473:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
const bgClient = __webpack_require__(40076);
var _default = exports.A = {
  props: ['site', 'siteMap', 'error', 'errorDetail', 'permissionTextOnly', 'hasPermission'],
  data() {
    return {
      verifyLink: G.GwdConfig && G.GwdConfig.tbVerifyLink ? G.GwdConfig.tbImgVerifyLink : 'https://s.taobao.com/search?commend=all&ie=utf8&page=1&preLoadOrigin=https%3A%2F%2Fwww.taobao.com&q=%E7%81%AB%E8%85%BF%E8%82%A0&search_type=item&sourceId=tb.index&spm=a21bo.jianhua%2Fa.search_manual.0&ssid=s5-e&tab=all',
      bjg: G.from_device === 'bijiago'
    };
  },
  methods: {
    transText: __webpack_require__(54600),
    index(site) {
      switch (site) {
        case 'jd':
          return 'https://www.jd.com/';
        case 'tb':
          return 'https://www.taobao.com/';
        case '1688':
          return 'https://www.1688.com/';
      }
      return '';
    },
    login() {
      // switch(this.site) {
      //   case 'jd':
      //     window.open('https://passport.jd.com/new/login.aspx?ReturnUrl=https%3A%2F%2Fwww.jd.com%2F')
      //     break;
      //   case 'tb':
      //     window.open('https://login.taobao.com/member/login.jhtml')
      //     break;
      //   case 'pdd':
      //     window.open('https://mobile.yangkeduo.com/login.html')
      //     break;
      // }
      window.open(this.index(this.site));
    },
    retry() {
      this.$emit('retry');
    }
  },
  mounted() {
    (__webpack_require__(41761).met)('GwdConfig').then(config => {
      if (config.tbImgVerifyLink) {
        this.verifyLink = config.tbImgVerifyLink;
      }
    });
  }
};

/***/ }),

/***/ 40584:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "\n.gwd-main-login button[data-v-549382c4] {\n  width: 200px!important;\n}\n.gwd-remind-qr:hover #gwd-remind-qrcode_img[data-v-549382c4] {\n  display: block;\n}\n#gwd-remind-qrcode[data-v-549382c4] {\n  /*position: absolute;*/\n  /*bottom: 14px;*/\n  /*right: 14px;*/\n  font-size: 12px;\n  cursor: pointer;\n  -moz-user-select: -moz-none;\n  -khtml-user-select: none;\n  -webkit-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n.favor_choosed #gwd-remind-qrcode[data-v-549382c4] {\n  bottom: 14px;\n  right: 14px;\n  z-index: 99999999;\n}\n#gwd-remind-qrcode_img[data-v-549382c4] {\n  position: absolute;\n  right: 15px;\n  height: 134px;\n  width: 120px;\n  bottom: 29px;\n  display: none;\n  border: 1px solid #e1e1e1;\n  background-color: #fff;\n  box-shadow: 0px 5px 15px 0 rgba(23,25,27,0.15);\n}\n#gwd-remind-qrcode_img img[data-v-549382c4] {\n  width: 100%;\n}\n#gwd-remind-qrcode_img[data-v-549382c4]:before {\n  display: block;\n  content: \"\";\n  height: 0px;\n  width: 0px;\n  border: 8px solid transparent;\n  border-top-color: #999;\n  border-right-width: 7px;\n  border-left-width: 7px;\n  top: 135px;\n  right: 52px;\n  position: absolute;\n}\n#gwd-remind-qrcode_img[data-v-549382c4]:after {\n  display: block;\n  content: \"\";\n  height: 0px;\n  width: 0px;\n  border: 8px solid transparent;\n  border-top-color: #fff;\n  border-right-width: 8px;\n  border-left-width: 8px;\n  top: 134px;\n  right: 51px;\n  position: absolute;\n}\n#gwd-remind-qrcode_img p[data-v-549382c4] {\n  text-align: justify;\n  margin: 0px;\n  padding: 0px 6px;\n  height: 20px;\n  font-size: 12px;\n  color: #8d8d8d;\n  position: relative;\n  white-space: normal;\n  top: -8px;\n}\n#gwd-remind-qrcode_img p[data-v-549382c4]:after{\n  content:\".\";\n  display: inline-block;\n  width:100%;\n  overflow:hidden;\n  height:0;\n}\n", ""]);

// exports


/***/ }),

/***/ 40610:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAmUlEQVQYGV3BSw7BUAAF0Luh0g4QBj6xBiJiIIT41nrufa9zUxZhMfpC38CcpE1aPQe86oIaTvgAAz11QYWm9HYMgAFTxihoRs8RcqbBlDF+OKc3Q5SSJlOdzYJeA/xLmsz4sX3UacmMjif804qZegrpzBEls9Y76eJHIZ0OyGmjNzso2IiOewBmy5dto8JGdNqBd7VQYyPdvmBUR/wmd8lEAAAAAElFTkSuQmCC";

/***/ }),

/***/ 40616:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var fails = __webpack_require__(79039);

module.exports = !fails(function () {
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
  var test = (function () { /* empty */ }).bind();
  // eslint-disable-next-line no-prototype-builtins -- safe
  return typeof test != 'function' || test.hasOwnProperty('prototype');
});


/***/ }),

/***/ 40740:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, s_server = $data.s_server;
    $$out += '<a href="#" id="bjg-tkl" style="font-size: 0; position: relative; vertical-align: middle; top: 0.5px;">\n    <img src="';
    $$out += $escape(s_server);
    $$out += '/images/extensions/TKL@2x.png" alt="" style="width: 14px; height: 14px; margin-top: -4px;">\n    <span style="width: 4px; display: inline-block"></span>\n    <span style="font-size: 12px; color: #727272" id="gwd-tkl-text">生成淘口令</span>\n</a>\n<input type="" name="" value="456" class="gggbox-input">\n<a id="box_btn" class="box-btn"  contenteditable="1">456</a>\n<style>\n    .gwd-notkl-error::after {\n        content: \'此商品暂不支持生成淘口令\';\n        position: absolute;\n        top: 6px;\n        left: 50%;\n        width: 150px;\n        margin-left: -75px;\n        font-size: 12px;\n        transform: scale(0.8333);\n        display: inline-block;\n        transform-origin: top center;\n        color: #ff8c2b;\n    }\n\n    .gggbox-input {\n        height: 1px;\n        width: 1px;\n        overflow: hidden;\n        position: fixed;\n        bottom: 0px;\n        left:-999px;\n    }\n\n    #box_btn {\n        height: 1px;\n        width: 1px;\n        overflow: hidden;\n        float: left;\n        position: fixed;\n        bottom: 0px;\n    }\n</style>\n';
    return $$out;
};

/***/ }),

/***/ 40757:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-img-same[data-v-79759303] {\n  position: absolute;\n  top: 10px;\n  cursor: pointer;\n  width: 165px;\n  height: 36px;\n  justify-content: center;\n  border: 1px solid #dadde0;\n  border-radius: 4px;\n  text-decoration: none!important;\n  box-sizing: border-box;\n}\n", ""]);

// exports


/***/ }),

/***/ 40761:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const template = __webpack_require__(26133);
const request = __webpack_require__(49388);
const cnzz = __webpack_require__(5300);
let posDict = {
  'taobao': '#J_Social',
  'tmall': '#J_DetailMeta .tm-action.tm-clear'
};
let tokenCache;
module.exports.init = () => {
  if (G.from_device.indexOf('bijiago') > -1 && $('html').hasClass('gwd_taobao_ju')) return;
  if (window.bjd_tkl_exist && window.bjd_tkl_exist.indexOf(G.from_device) === -1) {
    return;
  }
  window.bjd_tkl_exist = G.from_device;
  if (G.forbidTkl) return;
  if (location.host.indexOf('taobao') === -1 && location.host.indexOf('tmall') === -1) {
    return;
  }
  if (G.site === 'taobao-ju') {
    if ($('#bjg-tkl').length) {
      $('#bjg-tkl').remove();
    }
    renderJu();
    return;
  }
  render();
};
const renderJu = () => {
  const html = __webpack_require__(40740);
  const res = template.compile(html)({
    s_server: G.s_server
  });
  window.$ = $;
  $('.botbar .operation').append(res);
  addEventJu();
};
const addEventJu = () => {
  let tklOK = false;
  $('#bjg-tkl').on('click', e => {
    if (tklOK) {
      clipboard();
      e.preventDefault();
      return;
    } else {
      cnzz.log("gettklinfo");
      getTkl(function (data) {
        if (data) {
          $('#gwd-tkl-text').text("点击复制淘口令");
          tklOK = true;
          let dptle = getTbTle();
          let newTxt = '7' + data;
          $('#box_btn').text(newTxt);
          $('.gggbox-input').val(newTxt);
        } else {
          // $('.cptkl-remind-err').show()
          cnzz.log("gettklerr");
          $('#bjg-tkl').addClass('gwd-notkl-error');
        }
      });
    }
    e.preventDefault();
  });
};
const getTkl = callback => {
  if (tokenCache) {
    callback(tokenCache);
    return;
  }
  // callback(false); return
  // let id = location.href.match(/id=(\d+)/)[1];
  // if (G.site === 'taobao-ju') {
  //   id = location.href.match(/item_id=(\d+)/)[1];
  // }
  let id = (__webpack_require__(60340).getParameterByName)('id');
  if (!id) id = (__webpack_require__(60340).getParameterByName)('item_id');
  let pic = G.dp.pic;
  // let s = $('#J_UlThumb img')
  // if (s.length) {
  //   pic = s[s.length - 1].src
  // }

  let url = `${G.server}/extension/TaoKL?id=${id}&title=${encodeURIComponent(G.dp.name.trim())}&img=${encodeURIComponent(pic)}&price=${G.dp.price}&shopName=${encodeURIComponent(G.dp.shopName.trim())}&sellAmount=${encodeURIComponent(G.dp.shopAmount)}`;
  if (G.ss_name === 'priceDog') {
    url = `${G.u_server}/redirect/tao?id=${id}&format=json&tkl=1`;
  }
  request.get(url).then(function (data) {
    if (data && data.ios_token) {
      tokenCache = data.ios_token;
      callback(data.ios_token);
    } else {
      callback();
    }
  }).catch(() => {
    callback();
  });
};
const getTbTle = () => {
  let tle = '';
  if (G.site === 'taobao') {
    tle = $('#J_Title h3').text().trim();
  } else if (G.site === 'taobao-ju') {
    tle = $('.title').text().trim();
  } else {
    tle = $('.tb-detail-hd>h1').text().trim();
  }
  return tle;
};
const render = async () => {
  if ($('.gwd-bottom-img-area').length) {
    return;
  }
  $('.gwd-bottom-img-area').remove();
  let html = __webpack_require__(13209);
  if (G.lang === 'zh-tr') {
    html = __webpack_require__(64823);
  }
  // let pos = posDict[G.site];
  let str = 'is_tb_site';
  if (G.site === 'tmall') str = 'is_tm_site';
  let posContainer = '[class^=PicGallery--mainPicWrap--]',
    htmlContainer = `<div class="gwd-bottom-img-area" style="height: 30px; position: absolute; z-index: 9999; background: white; bottom: -85px; width: 100%"></div>`;
  if (!$('[class^=Item2024--main--]').length) {
    posContainer = '[class^=PicGallery--root--]';
    htmlContainer = `<div class="gwd-bottom-img-area" style="height: 70px; position: relative; z-index: 9999; background: white; top: 10px; width: 100%"></div>`;
  }
  const config = await (__webpack_require__(41761).met)('GwdConfig');
  if (!$(posContainer).length) {
    (__webpack_require__(7129).warn)('no posContainer');
    await (__webpack_require__(30888).waitForConditionFn)(() => {
      posContainer = config.tklContainer.find(item => $(item).length);
      htmlContainer = `<div class="gwd-bottom-img-area" style="height: 30px; position: absolute; z-index: 9999; background: white; bottom: -85px; width: 100%"></div>`;
      return !!posContainer;
    });
  }
  if ($('[class^=GoLoginInfo--]').length) {
    posContainer = config.loginTklContainer.find(item => $(item).length);
    htmlContainer = `<div class="gwd-bottom-img-area" style="position: absolute; top: 0; z-index: 9999; width: 500px; left: 110px;"></div>`;
  }
  $(posContainer).append(htmlContainer);
  // await require('standard/module/util').waitForConditionFn(() => $('.gwd-bottom-img-area').length > 0)
  let pos = '.gwd-bottom-img-area';
  if ($(pos).length > 0) {
    $('.' + str).remove();
    $(pos).append(template.compile(html)({
      s_server: G.s_server,
      str: str
    }));
    if (G.ss_name === 'priceDog') {
      $('#cptklbox').hide();
    }
  }
  (__webpack_require__(41761).setMet)('tklBarReady', true);
  addEvent();
  if ((G.from_device === 'biyibi' || G.from_device === 'bijiago') && window.gwd_G) {
    return;
  }
  if (G.tklSideBar) {
    G.tklSideBar.$el.remove();
    G.tklSideBar.$destroy();
  }
  const el = document.createElement('div');
  // document.body.appendChild(el)
  await (__webpack_require__(30888).waitForConditionFn)(() => {
    return $(`.${G.aliPrefix}--Operation--_70adcf3`).length || $(`.${G.aliPrefix}--itemQR--_6c67fb5`).length || $('.quantityLine').length || $('.quantityTip--zL6BCu6j').length;
  });
  (__webpack_require__(60340).appendCss)(`
    .bannerWrap--ApeVpytP, .${G.aliPrefix}--bannerWrap--_3e77f96 { position: relative; top: 102px; }

    .${G.aliPrefix}--detailInfoWrap--_780a838 {
      position: relative;
      top: 108px;
    }
  `);
  if ($(`.${G.aliPrefix}--Operation--_70adcf3`).length) {
    $(`.${G.aliPrefix}--Operation--_70adcf3`).append(el);
  } else if ($(`.${G.aliPrefix}--itemQR--_6c67fb5`).length) {
    $(`.${G.aliPrefix}--itemQR--_6c67fb5`).after(el);
  } else if ($('.quantityLine').length) {
    $('.quantityLine .countWrapper').after(el);
  } else if ($('.quantityTip--zL6BCu6j').length) {
    $('.quantityTip--zL6BCu6j').after(el);
  }
  const TklSideBar = (__webpack_require__(80493)/* ["default"] */ .A);
  G.tklSideBar = new Vue({
    el: el,
    render: h => h(TklSideBar, {
      props: {
        getTKL: getTkl
      }
    })
  });
};
let clicked;
const clipboard = () => {
  //if (clicked) return;
  var element = document.getElementById('box_btn');
  var element2 = document.querySelectorAll('.gggbox-input')[0];
  if (element.hasAttribute('contenteditable')) {
    element.focus();
  }
  var selection = window.getSelection();
  var range = document.createRange();
  range.selectNodeContents(element);
  selection.removeAllRanges();
  selection.addRange(range);
  window.selectedText = selection.toString();
  if (!window.selectedText) {
    element2.select();
    element2.setSelectionRange(0, element2.value.length);
    window.selectedText = element2.value;
  }
  try {
    let t = window.document.execCommand("copy");
    if (t) {
      clicked = true;
      cnzz.log("copytklss");
      if (G.site === 'taobao-ju') {
        $('#gwd-tkl-text').text("复制成功");
        $('#bjg-tkl img').attr('src', G.s_server + '/images/extensions/TKLSuccess@2x.png');
      }
      $('.cptkl-btn span').text(G.lang === 'zh-tr' ? '復製成功' : "复制成功");
      $('.cptkl-btn').removeClass('cpready').addClass('cpsuccess');
      $('.cptkl-remind-err').hide();
    }
  } catch (e) {
    (__webpack_require__(7129).error)(e);
  }
};
const addEvent = () => {
  let tklOK;
  $('.cptkl-btn').on('click', function () {
    if (tklOK) {
      clipboard();
      return;
    } else {
      cnzz.log("gettklinfo");
    }
    getTkl(function (data) {
      if (data) {
        $('.cptkl-btn span').text(G.lang === 'zh-tr' ? '點擊復製淘口令' : "点击复制淘口令");
        $('.cptkl-btn').addClass('cpready');
        tklOK = true;
        let dptle = getTbTle();
        let newTxt = '7' + data;
        $('#box_btn').text(newTxt);
        $('.gggbox-input').val(newTxt);
      } else {
        $('.cptkl-remind-err').show();
        // setTimeout(() => {
        //   $('.cptkl-remind-err').fadeOut()
        // }, 5000)
        $('.cptkl-btn').addClass('cpready');
        $('.cptkl-btn span').text(G.lang === 'zh-tr' ? '點擊復製URL' : "点击复制链接");
        tklOK = true;
        let dptle = getTbTle();
        let newTxt = location.href;
        $('#box_btn').text(newTxt);
        $('.gggbox-input').val(newTxt);
        cnzz.log("gettklerr");
      }
    });
  });
};

/***/ }),

/***/ 40834:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(91909);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("0a4a81ee", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 40837:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-mini-trend-right[data-v-eab637cc] {\n  /*width: 196px;*/\n  padding-right: 6px;\n  display: flex;\n  flex: 1;\n}\n", ""]);

// exports


/***/ }),

/***/ 40862:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ GovBtvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ GovBt)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/SideBar/GovBt.vue?vue&type=template&id=c858bf92
var GovBtvue_type_template_id_c858bf92 = __webpack_require__(41260);
;// ./src/standard/module/components/SideBar/GovBt.vue?vue&type=template&id=c858bf92

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/SideBar/GovBt.vue?vue&type=script&lang=js
var GovBtvue_type_script_lang_js = __webpack_require__(12282);
;// ./src/standard/module/components/SideBar/GovBt.vue?vue&type=script&lang=js
 /* harmony default export */ const SideBar_GovBtvue_type_script_lang_js = (GovBtvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/SideBar/GovBt.vue





/* normalize component */
;
var component = (0,componentNormalizer/* default */.A)(
  SideBar_GovBtvue_type_script_lang_js,
  GovBtvue_type_template_id_c858bf92/* render */.XX,
  GovBtvue_type_template_id_c858bf92/* staticRenderFns */.Yp,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ const GovBt = (component.exports);

/***/ }),

/***/ 40927:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAAA4CAMAAABXPbSWAAAA4VBMVEUAAAD/////gID/VVX/QED/MzP/MzP/Li7/QCr/OzvwLS3zLi70NSr1MTH2Ly/2Li7wLS30LCzvMCrvLyrxLi7yMCvxLyvxLSrxLSnwLynwLivwLSrwLSrvLCrwLirwLSvxLSvvLSrvLSnwLCvwLirwLSrvLSnwLSrwLSrxLSrvLCnvLSrvLSrwLSnwLSrwLCnvLSrwLSnwLSrwLCnvLSnvLCrwLSrvLSrvLCrwLSnwLSnvLSrvLCnwLCrwLSrwLCnwLCrvLCnvLCrvLSrvLSnwLCnwLSrwLSnwLCnwLCnvLClKa/IOAAAASnRSTlMAAQIDBAUKCwwNERYYGhscIi4wMTg7R0lKV2RmZ3N0d32BgoSGh5SYnp+ho6Smqa2xury/wMPO1NXY3+Pm5+js7fLz9fb4+vz9/nwWOEQAAAEjSURBVHja7dzJUsJQFADRaFRAxYDijBOIqIDzzOCs4P9/kGvDwtBv2+cTuipVN8m7L4qSTu9H/xs+7U9FKcmLXbJqput1bJLdViqez+wEerm/8SwyiQPjce9F43HHxgsYWMrG4y6NF2DdeNx9bDxu23hcP288rma8gEl5yXjcifECJuVl43FXxguwYTzuITYeVzUeNygYj6sbj/tIjBc2KVsB+lowHrdjPK5lPO7aeNy58biG8bgV42G3znnYqGI87NR3W+x10XjYrt/zsMdZ42Fr/sPALvx7hn2WjIfVPTGAdeeMh216Sgq78XAj9l02HnbkgW7sed54WNU9DOxu2njYqrtnWNtlZeyt6Jo8tucFDdjZzNj1Fl4Nksmoexin0v0Cprd2eI0+u68AAAAASUVORK5CYII=";

/***/ }),

/***/ 41113:
/***/ ((module) => {

"use strict";


/* istanbul ignore next  */
function styleTagTransform(css, styleElement) {
  if (styleElement.styleSheet) {
    styleElement.styleSheet.cssText = css;
  } else {
    while (styleElement.firstChild) {
      styleElement.removeChild(styleElement.firstChild);
    }
    styleElement.appendChild(document.createTextNode(css));
  }
}
module.exports = styleTagTransform;

/***/ }),

/***/ 41147:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-common-login.gwd-favor[data-v-fd8cca22] {\n  box-sizing: border-box !important;\n  align-items: center;\n}\n.gwd-common-login.gwd-favor .gwd-main-login[data-v-fd8cca22] {\n  box-sizing: border-box;\n  width: 240px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-methods[data-v-fd8cca22] {\n  padding-left: 8px;\n  padding-right: 8px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-methods button[data-v-fd8cca22] {\n  font-size: 14px;\n  color: #333333;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-methods .gwd-login-active[data-v-fd8cca22] {\n  font-weight: bold;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main[data-v-fd8cca22] {\n  width: 240px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main input[data-v-fd8cca22] {\n  box-sizing: border-box !important;\n  height: 32px;\n  line-height: 32px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main button[data-v-fd8cca22] {\n  box-sizing: border-box !important;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main .gwd-light-btn[data-v-fd8cca22] {\n  height: 32px;\n  line-height: 30px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main .bottom-line[data-v-fd8cca22] {\n  width: 240px;\n  align-items: center;\n  justify-content: center;\n}\n.gwd-common-login.gwd-favor .gwd-main-login button[data-v-fd8cca22] {\n  width: 220px;\n}\n.gwd-common-login.gwd-favor .gwd-alter-login[data-v-fd8cca22] {\n  margin-top: 54px;\n}\n", ""]);

// exports


/***/ }),

/***/ 41151:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAM1JREFUWEft1l0OgjAQBODZG/YI3EQ4ifEEcsPqAolKVPZntC/tCyGhzMeybSpoPKRxPjqgV8BVgVowQFDligurec2AJRw4b8GjzJgYiChAsykIM0ATa8F4v5yevjyNcAF+gXAD2IgQgIkIA1iIFICBSAPeIgSDdbNiAXRp6hJdxz8BtSz7wiMcmGR+uf+6YaYqkA1fixUcjPAwgBUeAjDD3QB2uAuwOw/oXFe3f2o1cxPuAJRwVwW2Ha/dkSy4Wg+nmX/B4ZuCD3RAr8AN945QIdBoFgMAAAAASUVORK5CYII=";

/***/ }),

/***/ 41239:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ PriceProtectvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ PriceProtect)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceProtect.vue?vue&type=template&id=a3d40d2c&scoped=true
var PriceProtectvue_type_template_id_a3d40d2c_scoped_true = __webpack_require__(6074);
;// ./src/standard/module/components/PriceProtect.vue?vue&type=template&id=a3d40d2c&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceProtect.vue?vue&type=script&lang=js
var PriceProtectvue_type_script_lang_js = __webpack_require__(63381);
;// ./src/standard/module/components/PriceProtect.vue?vue&type=script&lang=js
 /* harmony default export */ const components_PriceProtectvue_type_script_lang_js = (PriceProtectvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceProtect.vue?vue&type=style&index=0&id=a3d40d2c&prod&scoped=true&lang=less
var PriceProtectvue_type_style_index_0_id_a3d40d2c_prod_scoped_true_lang_less = __webpack_require__(84510);
;// ./src/standard/module/components/PriceProtect.vue?vue&type=style&index=0&id=a3d40d2c&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceProtect.vue?vue&type=style&index=1&id=a3d40d2c&prod&lang=less
var PriceProtectvue_type_style_index_1_id_a3d40d2c_prod_lang_less = __webpack_require__(72614);
;// ./src/standard/module/components/PriceProtect.vue?vue&type=style&index=1&id=a3d40d2c&prod&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/PriceProtect.vue



;



/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_PriceProtectvue_type_script_lang_js,
  PriceProtectvue_type_template_id_a3d40d2c_scoped_true/* render */.XX,
  PriceProtectvue_type_template_id_a3d40d2c_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "a3d40d2c",
  null
  
)

/* harmony default export */ const PriceProtect = (component.exports);

/***/ }),

/***/ 41260:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "gwd-column gwd-align",
    staticStyle: {
      "text-decoration": "none",
      "margin-bottom": "10px"
    },
    attrs: {
      href: _vm.link,
      target: "_blank"
    }
  }, [_c("img", {
    staticStyle: {
      width: "45px",
      height: "43px"
    },
    attrs: {
      src: __webpack_require__(24883),
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "font-size": "12px",
      color: "#3c4c54",
      "line-height": "17px",
      "margin-top": "8px"
    }
  }, [_vm._v("政府补贴")])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 41456:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _pddQrLq = _interopRequireDefault(__webpack_require__(39542));
var _pddQr = _interopRequireDefault(__webpack_require__(39793));
var _default = exports.A = {
  props: ['needMouseOver', 'rnd'],
  computed: {
    text() {
      return this.rnd > 0.5 ? '先领券 &nbsp; 再下单' : '全场1.9元低价包邮';
    },
    qr() {
      return this.rnd > 0.5 ? _pddQrLq.default : _pddQr.default;
    }
  }
};

/***/ }),

/***/ 41623:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', lowest_obj = $data.lowest_obj, $escape = $imports.$escape, currency = $data.currency, lowtle = $data.lowtle, lowestDate = $data.lowestDate, lowest_obj2 = $data.lowest_obj2, lowestDate2 = $data.lowestDate2, promoUrl = $data.promoUrl;
    $$out += '<table class="gwd-mini-table">\n  <tr class="orign-pri-info">\n    ';
    if (lowest_obj.nowprice) {
        $$out += '\n    <td>\n      <span class="opi-sp1 nowpri">现价:</span>\n      <span class="opi-sp2 nowpri">';
        $$out += $escape(currency);
        $$out += $escape(lowest_obj.nowprice);
        $$out += '</span>\n    </td>\n    <td></td>\n    ';
    } else {
        $$out += '\n    <td>\n      <span class="opi-sp1">最高:</span>\n      <span class="opi-sp2">';
        $$out += $escape(currency);
        $$out += $escape(lowest_obj.Phighest);
        $$out += '</span>\n    </td>\n    <td>\n      <span class="opi-sp3" style="margin-left: 16px">';
        $$out += lowtle;
        $$out += '</span>\n      <span class="opi-sp4">';
        $$out += $escape(currency);
        $$out += $escape(lowest_obj.Plowest);
        $$out += '</span>\n      <span class="opi-sp5">';
        $$out += $escape(lowestDate);
        $$out += '</span>\n    </td>\n    ';
    }
    $$out += '\n  </tr>\n  ';
    if (lowest_obj2 && lowestDate2) {
        $$out += '\n  <tr class="promo-pri-info">\n    ';
        if (!lowest_obj.nowprice) {
            $$out += '\n    <td style="text-align: center">\n      <span class="ppi-sp1"></span>\n    </td>\n    ';
        }
        $$out += '\n    <td>\n      <span class="ppi-sp2" style="margin-left: 16px">最低(多&nbsp;&nbsp;&nbsp;件):</span>\n      <span class="ppi-sp3">';
        $$out += $escape(currency);
        $$out += $escape(lowest_obj2.Plowest);
        $$out += '</span>\n      <span class="ppi-sp4">';
        $$out += $escape(lowestDate2);
        $$out += '</span>\n    </td>\n\n  </tr>\n  ';
    }
    $$out += '\n</table>\n\n';
    if (promoUrl) {
        $$out += '\n<!--  <a href="';
        $$out += $escape(promoUrl);
        $$out += '" class="promo-history-link" target="_blank">历史促销明细\uFF1E</a>-->\n';
    }
    return $$out;
};

/***/ }),

/***/ 41703:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(82562);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("3e991070", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 41718:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(12041);
__webpack_require__(62953);
const detect = __webpack_require__(3494);
const priceParser = __webpack_require__(5286);
const request = __webpack_require__(49388);
const gzip = __webpack_require__(95450);
const seprator = ':';
let quanobj = {
    'manjian': {},
    'zhe': {},
    'quanmanjian': {},
    'quanmeimanjian': {},
    'manzhe': {}
  },
  promoobj = {
    'manjian': {},
    'meimanjian': {},
    'manzhe': {},
    'manzhe2': {},
    'zhe': {}
  };
let disPrice,
  callbacks,
  disPrice2 = {};
let coudanObj = {},
  xdljObj = {},
  vipPromo = "";
let dingjinzhekou = {
  "suning": () => {
    let dj = Number($('#mainPrice dt:contains("定金") +dd .small-price').text().replace('¥', ''));
    let djdk = $('.deposit-info-small').text().match(/[0-9.]+/);
    if (djdk) djdk = Number(djdk[0]);
    if (dj && djdk) {
      return djdk - dj;
    } else {
      return 0;
    }
  },
  "360buy": () => {
    let dj = $('#pingou .summary-price div.dt:contains("定")+.dd .price').text();
    let djdk = $('#pingou .summary-price div.dt:contains("定")+.dd .yy-category').text().match(/[0-9.]+/);
    if (djdk) djdk = Number(djdk[0]);
    if (dj && djdk) {
      return djdk - dj;
    } else {
      return 0;
    }
  },
  'tmall': () => false
};
const extractAliPromoText = () => {
  const text = $('[class^=CouponInfo--couponText]').text();
  return text ? text.split(' ') : [];
};
let sitePattern = {
  "360buy": () => {
    let quan,
      promo = [];
    // if ($('#pingou .summary-price>.dt').text().replace(/\s/g, '').indexOf("定金") > -1) {
    //   return {
    //     quan: quan,
    //     promo: promo
    //   }
    // }
    let quandom = $('#summary-quan:visible');
    let isFloor = false;
    if ($('.floor-discount .floor-item').length) {
      quandom = $('.floor-discount');
      isFloor = true;
    }
    if ($('.floor-list .floor-item').length) {
      quandom = $('.floor-list');
      isFloor = true;
    }
    let promodom = $('#prom-one .J-prom:visible');
    if (!promodom.length) {
      promodom = $('#summary-promotion .J-prom:visible');
    }
    if (quandom.length > 0) {
      const quanSelector = isFloor ? '.floor-item' : 'span.quan-item span.text';
      let arrs = quandom.find(quanSelector);
      quan = Array.prototype.map.call(arrs, function (e) {
        return {
          text: $(e).text(),
          title: $(e).parents('.quan-item').attr('title'),
          batchId: $(e).parents('.quan-item').attr('batchid'),
          promotionId: $(e).parents('.quan-item').attr('promotionid')
        };
      }).filter(x => {
        if (x.title) {
          let re = new RegExp('有效期([\\d\\-: ]*)至([\\d\\-: ]*)').exec(x.title);
          if (re && re[1]) {
            if (new Date(re[1].trim()) > new Date()) {
              console.warn('filter early coupon', x);
              return false;
            }
          }
        }
        if (x.promotionId) {
          promo.push(x.text);
          return false;
        }
        return true;
      }).map(x => x.text);
    }
    if (promodom.length > 0) {
      let arrs = promodom.find('.prom-item');
      const process = function (e) {
        let strt = $(e).find('.hl_red_bg').text();
        if (strt.indexOf('跨自营/店铺满减进行中') > -1 || strt.indexOf('活动预告') > -1) return '';else {
          let text = $(e).find('.hl_red').text();
          if (!text) {
            text = $(e).find('.mj_red').text();
          }
          if (!text) {
            return '';
          }
          let prepend = '';
          if (strt) {
            prepend = strt + '--';
          }
          let url = $(e).find('a').attr('href');
          if (url) {
            return url + seprator + prepend + text;
          } else {
            return prepend + text;
          }
        }
      };
      promo = promo.concat(Array.prototype.map.call(arrs, process).filter(x => x));
      // let promo2 = Array.prototype.map.call(arrs2, process)
      // promo = promo.concat(promo2)
    }
    let fanPrice = $('.p-price-fans .price').text();
    if (fanPrice && !$('.fans-price').hasClass('hide')) {
      promo.push('粉丝价' + fanPrice);
    }
    return {
      quan: quan,
      promo: promo
    };
  },
  "suning": () => {
    let quan, promo;
    let quandom = $('#freeCouponTitle .more-juan .p-quan2');
    let promodom = $('.promo-list li>label:contains("满 减")+i+p');
    if (quandom.length > 0) {
      let arrs = quandom.find('span.p-quan-white');
      quan = Array.prototype.map.call(arrs, function (e) {
        let txt = $(e).text();
        if (txt.match(/每\d+用\d+/)) {
          txt = txt + '最多可减' + $(e).prev().prev().text();
        }
        return txt;
      });
    }
    if (promodom.length > 0) {
      let arrs = promodom;
      promo = Array.prototype.map.call(arrs, function (e) {
        let txt = $(e).text();
        if ($(e).children().text()) {
          let txt2 = $(e)[0].childNodes[0].nodeValue;
          if (txt2) {
            txt = txt2;
          }
        }
        return txt;
      });
    }
    return {
      quan: quan,
      promo: promo
    };
  },
  'tmall': () => {
    let promo = [],
      coupon = [];
    $('.tm-shopPromotion-title dd').each((idx, item) => {
      promo.push(item.innerText);
    });
    const tbNew = $('[class^=PromotionNew--caption]');
    if (tbNew.length) {
      let z = [];
      const texts = tbNew.toArray().map(x => x.innerText);
      texts.forEach(item => {
        if (item.indexOf('，') > -1) {
          z = z.concat(item.split('，'));
        } else {
          z.push(item);
        }
      });
      z.forEach(item => {
        if (item.indexOf('券') > -1) {
          coupon.push(item);
        } else {
          promo.push(item);
        }
      });
    }
    const aliPromoText = extractAliPromoText();
    aliPromoText.forEach(item => {
      if (item.indexOf('券') > -1) {
        coupon.push(item);
      } else {
        promo.push(item);
      }
    });
    return {
      promo: promo,
      quan: coupon
    };
  },
  'taobao': () => {
    let promo = [],
      coupon = [];
    if ($('.tb-other-discount').length) {
      promo.push($('.tb-other-discount').text().trim());
    }
    const aliPromoText = extractAliPromoText();
    aliPromoText.forEach(item => {
      if (item.indexOf('券') > -1) {
        coupon.push(item);
      } else {
        promo.push(item);
      }
    });
    return {
      promo: promo,
      coupon: coupon
    };
  },
  'dangdang': () => {
    let coupons = $('#coupon-list li a').toArray().map(item => item.innerText.trim());
    return {
      quan: coupons,
      promo: $('.rule .text').toArray().map(item => item.innerText.trim())
    };
  }
};
const pingxingcelue = () => {
  let arr = ["360buy"];
  if (arr.indexOf(G.site) > -1) {
    return true;
  }
  return false;
};
const getPromoInfoNum = (pagePrice, arr, type) => {
  let infoObj = promoobj;
  let dishead = "促: ";
  if (type === 'quan') {
    infoObj = quanobj;
    dishead = "券: ";
  }
  if (!disPrice) disPrice = {};
  for (let j = 0; j < arr.length; j++) {
    let item = arr[j];
    let _reg0 = /且满[￥￥]?([.\d]{2,})元?(?:售价)?[^件]{0,3}?可?立?减[￥￥]?([.\d]+)/;
    if (_reg0.test(item)) {
      continue;
    }
    let reg00 = /每(\d+)用(\d+)最多可减.?([1-9]\d+)/;
    if (reg00.test(item) && type === 'quan') {
      let qmmjobj = infoObj['quanmeimanjian'];
      let match = item.match(reg00);
      if (match[3]) {
        qmmjobj[match[1] + '-' + match[2] + '-' + match[3]] = dishead + item;
      } else {
        qmmjobj[match[1] + '-' + match[2]] = dishead + item;
      }
      continue;
    }
    let reg0 = /每满([.\d]{2,})元?.{0,3}?可?减([.\d]+)元现金(?:(?:，|,)(?:最多可减|)([.\d]+))?/;
    if (reg0.test(item)) {
      let mmjobj = infoObj['meimanjian'];
      let match = item.match(reg0);
      if (match[3]) {
        mmjobj[match[1] + '-' + match[2] + '-' + match[3]] = dishead + item;
      } else {
        mmjobj[match[1] + '-' + match[2]] = dishead + item;
      }
      continue;
    }
    let reg = /(?:[^每]|^)满[￥￥]?([.\d]{1,})元?(?:售价)?[^件]{0,3}?可?立?减[￥￥]?([.\d]+%?)元?/;
    let _reg = /(?:[^每]|^)满[￥￥]?([.\d]{1,})元?(?:售价)?[^件]{0,3}?可?立?减[￥￥]?([.\d]+%?)元?/g;
    let mjobj = infoObj['manjian'];
    if (reg.test(item)) {
      let _match = item.match(_reg);
      if (_match.length > 1) {
        for (let i = 0; i < _match.length; i++) {
          let m = _match[i].match(reg);
          mjobj[m[1] + '-' + m[2]] = dishead + _match[i].trim().replace(/^[,，;；]/, '');
        }
      } else {
        let match = item.match(reg);
        mjobj[match[1] + '-' + match[2]] = dishead + item;
      }
      continue;
    }
    let reg1 = /满([.\d]{2,})享([.\d]+)折/;
    let mzobj = infoObj['manzhe'];
    if (reg1.test(item)) {
      let match = item.match(reg1);
      mzobj[match[1] + '-' + match[2]] = dishead + item;
      continue;
    }
    let reg2 = /金额达到([.\d]{2,}).*?享受([.\d]+)/;
    if (reg2.test(item)) {
      let match = item.match(reg2);
      mjobj[match[1] + '-' + match[2]] = dishead + item;
      continue;
    }
    let reg3 = /([.\d]{2,})\-([.\d]+)/;
    if (reg3.test(item)) {
      let match = item.match(reg3);
      mjobj[match[1] + '-' + match[2]] = dishead + item;
      continue;
    }
    let zkobj = infoObj['zhe'];
    let reg4 = /满(\d+)件.{0,4}打([.\d]+)折/;
    let _reg4 = /满(\d+)件.{0,4}打([.\d]+)折/g;
    if (reg4.test(item)) {
      let _match = item.match(_reg4);
      if (_match.length > 1) {
        for (let i = 0; i < _match.length; i++) {
          let m = _match[i].match(reg4);
          zkobj[m[1] + '-' + m[2]] = dishead + _match[i];
        }
      } else {
        let match = item.match(reg4);
        zkobj[match[1] + '-' + match[2]] = dishead + item;
      }
      continue;
    }
    let reg4_1 = /满(\d+)件([.\d]+)折/;
    let _reg4_1 = /满(\d+)件([.\d]+)折/g;
    if (reg4_1.test(item)) {
      let _match = item.match(_reg4_1);
      if (_match.length > 1) {
        for (let i = 0; i < _match.length; i++) {
          let m = _match[i].match(reg4_1);
          zkobj[m[1] + '-' + m[2]] = dishead + _match[i];
        }
      } else {
        let match = item.match(reg4_1);
        zkobj[match[1] + '-' + match[2]] = dishead + item;
      }
      continue;
    }
    let quanmj = infoObj['quanmanjian'];
    let reg5 = /满?(\d+)(?:减|用|可用|可减)(\d+)/;
    if (reg5.test(item)) {
      let match = item.match(reg5);
      quanmj[match[1] + '-' + match[2]] = dishead + item;
      continue;
    }
    let mz2Obj = infoObj['manzhe2'];
    let reg6 = /满(\d)件.{1,4}减最低1件商品价格/;
    if (reg6.test(item)) {
      let match = item.match(reg6);
      mz2Obj[match[1]] = dishead + item;
      continue;
    }
  }
  for (let pattern in infoObj) {
    switch (pattern) {
      case "manjian":
        for (let mjitem in infoObj[pattern]) {
          let mjarr = mjitem.split('-');
          // 如果计算的是优惠券且到手价里有促销活动的价格数据   会在到手价的基础上进行计算
          if (type === "quan" && Object.keys(disPrice).length > 0) {
            for (let dis in disPrice) {
              // 京东使用平行式门槛
              // jd 不凑单条件
              let jdtj = pingxingcelue() && xdljObj[dis] && Number(mjarr[0]) <= pagePrice;
              // jd 凑单条件
              let jdcdtj = pingxingcelue() && coudanObj[dis] && coudanObj[dis]["tt1"] > Number(mjarr[0]);
              // 到手价满足起减点
              if (jdtj || Number(mjarr[0]) <= Number(dis) && xdljObj[dis]) {
                let pPrice = Number(dis) - Number(mjarr[1]);
                if (xdljObj[dis]) xdljObj[pPrice] = true;
                disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mjitem]]);
                // 促销活动需要凑单  凑单计算优惠之后的价格大于起减点  或者平行策略  促销活动凑单之后大于优惠券起减点
              } else if (coudanObj[dis] && coudanObj[dis]["tt1"] - coudanObj[dis]["tt2"] > Number(mjarr[0]) || jdcdtj) {
                let pPrice;
                if (coudanObj[dis]["type"] === "manzhe2") {
                  // manzhe2 满多少件减一件商品价格
                  if (pingxingcelue()) {
                    if (coudanObj[dis]["tt1"] >= Number(mjarr[0])) {
                      pPrice = (coudanObj[dis]["tt1"] - Number(mjarr[1]) - pagePrice) / coudanObj[dis]["t2"];
                    } else {
                      let p1 = coudanObj[dis]["tt1"] * (Number(mjarr[1]) / Number(mjarr[0]));
                      pPrice = (coudanObj[dis]["tt1"] - pagePrice - p1) / coudanObj[dis]["t2"];
                    }
                  } else {
                    let price1 = coudanObj[dis]["t1"] > Number(mjarr[0]) ? coudanObj[dis]["t1"] : Number(mjarr[0]);
                    pPrice = (price1 - Number(mjarr[1])) / coudanObj[dis]["t2"];
                  }
                } else if (coudanObj[dis]["type"] === "zhe") {
                  // 满多少件打多少折
                  if (pingxingcelue()) {
                    pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1])) / coudanObj[dis]["t3"];
                  } else {
                    pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1])) / coudanObj[dis]["t3"];
                  }
                } else if (coudanObj[dis]["type"] === "manzhe") {
                  // 满多少元打多少折
                  let price1 = coudanObj[dis]["t1"] - coudanObj[dis]["t2"];
                  pPrice = (price1 - Number(mjarr[1])) / (coudanObj[dis]["t1"] / pagePrice);
                } else {
                  pPrice = (coudanObj[dis]["t1"] - coudanObj[dis]["t2"] - Number(mjarr[1])) / (coudanObj[dis]["t1"] / pagePrice);
                }
                pPrice = pPrice.toFixed(4);
                coudanObj[pPrice] = true;
                disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mjitem]]);
                // 折扣力度大于20% 或者 到手价不低于起减点90%  不管促销活动是否凑单  到优惠券计算的时候都不满足条件 都需要凑单
              } else if (Number(mjarr[1]) / Number(mjarr[0]) > 0.2 || dis / Number(mjarr[0]) > 0.9 || coudanObj[dis] && (coudanObj[dis]["tt1"] - coudanObj[dis]["tt2"]) / Number(mjarr[0]) > 0.9 || pingxingcelue() && coudanObj[dis] && coudanObj[dis]["tt1"] / Number(mjarr[0]) > 0.9 || pingxingcelue() && pagePrice / Number(mjarr[0]) > 0.9) {
                let pPrice;
                if (xdljObj[dis] && xdljObj[dis]["type"] === "meimanjian") {
                  //每满减
                  if (pingxingcelue()) {
                    pPrice = xdljObj[dis]["lastp"] - Number(mjarr[1]) * (pagePrice / Number(mjarr[0]));
                  } else {
                    pPrice = xdljObj[dis]["lastp"] - Number(mjarr[1]) * (xdljObj[dis]["lastp"] / Number(mjarr[0]));
                  }
                } else if (xdljObj) {
                  if (pingxingcelue()) {
                    pPrice = dis - Number(mjarr[1]) * (pagePrice / Number(mjarr[0]));
                  } else {
                    pPrice = dis - Number(mjarr[1]) * (dis / Number(mjarr[0]));
                  }
                } else if (coudanObj[dis]["type"] === "zhe") {
                  if (pingxingcelue()) {
                    pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] / Number(mjarr[1]))) / coudanObj[dis]["t3"];
                  } else {
                    pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] / Number(mjarr[1]))) / coudanObj[dis]["t3"];
                  }
                } else if (coudanObj[dis]["type"] === "manzhe") {
                  // 满多少元打多少折
                  if (pingxingcelue()) {
                    pPrice = coudanObj[dis]["t1"] * coudanObj[dis]["t3"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] / Number(mjarr[0]));
                  } else {
                    pPrice = coudanObj[dis]["t1"] * coudanObj[dis]["t3"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] * coudanObj[dis]["t3"] / Number(mjarr[0]));
                  }
                } else {
                  if (pingxingcelue()) {
                    pPrice = coudanObj[dis]["t1"] - coudanObj[dis]["t2"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] / Number(mjarr[0]));
                  } else {
                    pPrice = coudanObj[dis]["t1"] - coudanObj[dis]["t2"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] - coudanObj[dis]["t2"] / Number(mjarr[0]));
                  }
                }
                pPrice = pPrice.toFixed(4);
                coudanObj[pPrice] = true;
                disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mjitem]]);
              }
            }
            // 没有促销活动只针对优惠券计算
          } else if (type === "quan") {
            if (Number(mjarr[0]) <= pagePrice) {
              let pPrice = pagePrice - Number(mjarr[1]);
              xdljObj[pPrice] = true;
              disPrice2[pPrice] = [infoObj[pattern][mjitem]];
            } else if (Number(mjarr[1]) / Number(mjarr[0]) > 0.2 || pagePrice / Number(mjarr[0]) > 0.9) {
              let salePrice = pagePrice - pagePrice * Number(mjarr[1]) / Number(mjarr[0]);
              let pPrice = salePrice.toFixed(4);
              coudanObj[pPrice] = true;
              disPrice2[pPrice] = [infoObj[pattern][mjitem]];
            }
            // 促销活动计算
          } else {
            if (Number(mjarr[0]) <= pagePrice) {
              if (mjarr[1].indexOf('%') > -1) {
                mjarr[1] = pagePrice * Number(mjarr[1].replace('%', '')) / 100;
              }
              let pPrice = pagePrice - Number(mjarr[1]);
              xdljObj[pPrice] = true;
              disPrice[pPrice] = [infoObj[pattern][mjitem]];
            } else {
              let salePrice = pagePrice - pagePrice * Number(mjarr[1]) / Number(mjarr[0]);
              let pPrice = salePrice.toFixed(4);
              if (mjarr[1].indexOf('%') > -1) {
                pPrice = pagePrice - pagePrice * Number(mjarr[1].replace('%', '')) / 100;
              }
              if (coudanObj[pPrice] && typeof coudanObj[pPrice] === 'object' && coudanObj[pPrice].type === 'manjian') {
                if (Number(mjarr[0]) >= coudanObj[pPrice]["t1"]) {
                  continue;
                }
              }
              coudanObj[pPrice] = {
                "type": "manjian",
                "tt1": Number(mjarr[0]),
                "tt2": Number(mjarr[1]),
                "t1": Number(mjarr[0]),
                "t2": Number(mjarr[1])
              };
              disPrice[pPrice] = [infoObj[pattern][mjitem]];
            }
          }
        }
        break;
      case "meimanjian":
        for (let mmjitem in infoObj[pattern]) {
          let mmjarr = mmjitem.split('-');
          if (Number(mmjarr[0]) <= pagePrice) {
            let num = parseInt(pagePrice / Number(mmjarr[0]));
            let disp = num * Number(mmjarr[1]);
            if (Number(mmjarr[2]) && Number(mmjarr[2]) < disp) disp = Number(mmjarr[2]);
            let pPrice = pagePrice - disp;
            xdljObj[pPrice] = {
              "type": "meimanjian",
              "tt1": pagePrice,
              "tt2": disp,
              "t1": Number(mmjarr[0]),
              "t2": Number(mmjarr[1]),
              "disp": disp,
              "lastp": pPrice
            };
            disPrice[pPrice] = [infoObj[pattern][mmjitem]];
          } else {
            let salePrice = pagePrice - pagePrice * Number(mmjarr[1]) / Number(mmjarr[0]);
            let pPrice = salePrice.toFixed(4);
            coudanObj[pPrice] = {
              "type": "meimanjian",
              "tt1": Number(mmjarr[0]),
              "tt2": Number(mmjarr[1]),
              "t1": Number(mmjarr[0]),
              "t2": Number(mmjarr[1])
            };
            disPrice[pPrice] = [infoObj[pattern][mmjitem]];
          }
        }
        break;
      case "quanmeimanjian":
        for (let qmmjitem in infoObj[pattern]) {
          let qmmjarr = qmmjitem.split('-');
          if (Object.keys(disPrice).length > 0) {
            for (let dis in disPrice) {
              if (coudanObj[dis]['type'] == 'zhe') {
                if (coudanObj[dis]['t1'] * coudanObj[dis]['t4'] >= Number(qmmjarr[0]) || pingxingcelue() && coudanObj[dis]['t1'] >= Number(qmmjarr[0])) {
                  let nums = coudanObj[dis]['t3'];
                  let pPrice = (coudanObj[dis]['t1'] * coudanObj[dis]['t4'] - Number(qmmjarr[0])) / nums;
                  coudanObj[pPrice] = true;
                  disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][qmmjitem]]);
                }
              }
            }
          } else {
            let pPrice;
            if (Number(qmmjarr[0]) > pagePrice) {
              if (Number(qmmjarr[1]) / Number(qmmjarr[0]) > 0.2) {
                pPrice = (Number(qmmjarr[0]) - Number(qmmjarr[1])) / (Number(qmmjarr[0]) / pagePrice);
                coudanObj[pPrice] = true;
              }
            } else {
              let nums1 = parseInt(pagePrice / Number(qmmjarr[0]));
              let nums2 = 99999;
              if (Number(qmmjarr[2])) {
                nums2 = parseInt(Number(qmmjarr[2]) / Number(qmmjarr[1]));
              }
              if (nums1 < nums2) {
                pPrice = pagePrice - nums1 * Number(qmmjarr[1]);
              } else {
                pPrice = pagePrice - nums2 * Number(qmmjarr[1]);
              }
            }
            if (pPrice) disPrice2[pPrice] = [infoObj[pattern][qmmjitem]];
          }
        }
        break;
      case "zhe":
        for (let zheitem in infoObj[pattern]) {
          let zhearr = zheitem.split('-');
          let point = Number(zhearr[1]) / 10;
          let pPrice = (pagePrice * point).toFixed(4);
          if (Number(zhearr[0]) > 1) {
            coudanObj[pPrice] = {
              "type": "zhe",
              "tt1": Number(zhearr[0]) * pagePrice,
              "tt2": Number(zhearr[0]),
              "t1": Number(zhearr[0]) * pagePrice,
              "t3": Number(zhearr[0]),
              "t4": Number(zhearr[1]) / 10,
              "t2": Number(zhearr[0]) * pagePrice * (1 - Number(zhearr[1]) / 10)
            };
          } else {
            xdljObj[pPrice] = true;
          }
          disPrice[pPrice] = [infoObj[pattern][zheitem]];
        }
        break;
      case "manzhe":
        for (let mzitem in infoObj[pattern]) {
          let mzarr = mzitem.split('-');
          if (type === "quan" && Object.keys(disPrice).length > 0) {
            for (let dis in disPrice) {
              let jd1 = coudanObj[dis] && Number(mzarr[0]) <= coudanObj[dis]['tt1'];
              let jd2 = xdljObj[dis];
              if (Number(mzarr[0]) <= Number(dis) || pingxingcelue() && (jd1 || jd2)) {
                let pPrice;
                if (pingxingcelue() && coudanObj[dis]) {
                  let p2 = coudanObj[dis]['tt1'] - coudanObj[dis]['tt2'] - coudanObj[dis]['tt1'] * (1 - Number(mzarr[1]) / 10);
                  pPrice = p2 / (coudanObj[dis]['tt1'] / pagePrice);
                } else if (pingxingcelue() && xdljObj[dis]) {
                  pPrice = dis - pagePrice * (1 - Number(mzarr[1]) / 10);
                } else {
                  pPrice = Number(dis) * (Number(mzarr[1]) / 10);
                }
                if (coudanObj[dis]) coudanObj[pPrice] = true;
                if (xdljObj[dis]) xdljObj[pPrice] = true;
                disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mzitem]]);
              } else if (Number(mzarr[1]) <= 8 || dis / Number(mzarr[0]) > 0.9) {
                let pPrice = Number(dis) * (Number(mzarr[1]) / 10);
                disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mzitem]]);
                coudanObj[pPrice] = true;
              } else if (coudanObj[dis] && Number(mzarr[0]) <= coudanObj[dis]) {
                let pPrice = Number(dis) * (Number(mzarr[1]) / 10);
                coudanObj[pPrice] = true;
                disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mzitem]]);
              }
            }
          } else if (type === "quan") {
            if (Number(mzarr[0]) <= pagePrice) {
              let pPrice = pagePrice * (Number(mzarr[1]) / 10);
              xdljObj[pPrice] = true;
              disPrice2[pPrice] = [infoObj[pattern][mzitem]];
            } else if (Number(mzarr[1]) < 9 || pagePrice / Number(mzarr[0]) > 0.9) {
              let pPrice = pagePrice * (Number(mzarr[1]) / 10);
              coudanObj[pPrice] = true;
              disPrice2[pPrice] = [infoObj[pattern][mzitem]];
            }
          } else {
            if (Number(mzarr[0]) <= pagePrice) {
              let pPrice = pagePrice * (Number(mzarr[1]) / 10);
              xdljObj[pPrice] = true;
              disPrice[pPrice] = [infoObj[pattern][mzitem]];
            } else {
              let pPrice = pagePrice * (Number(mzarr[1]) / 10);
              coudanObj[pPrice] = {
                "type": "manzhe",
                "tt1": Number(mzarr[0]),
                "tt2": Number(mzarr[0]) - pPrice,
                "t1": Number(mzarr[0]),
                "t2": Number(mzarr[0]) - pPrice,
                "t3": Number(mzarr[1]) / 10
              };
              disPrice[pPrice] = [infoObj[pattern][mzitem]];
            }
          }
        }
        break;
      case "manzhe2":
        for (let mzitem in infoObj[pattern]) {
          let pPrice = pagePrice * (Number(mzitem) - 1) / Number(mzitem);
          coudanObj[pPrice] = {
            "type": "manzhe2",
            "tt1": pagePrice * Number(mzitem),
            "tt2": pagePrice,
            "t1": pagePrice * (Number(mzitem) - 1),
            "t2": Number(mzitem)
          };
          disPrice[pPrice] = [infoObj[pattern][mzitem]];
        }
        break;
      case "quanmanjian":
        for (let quanmjitem in infoObj[pattern]) {
          let quanmjarr = quanmjitem.split('-');
          if (Object.keys(disPrice).length > 0) {
            for (let dis in disPrice) {
              if (Number(dis) >= Number(quanmjarr[0]) || pingxingcelue() && pagePrice >= Number(quanmjarr[0])) {
                let pPrice = Number(dis) - Number(quanmjarr[1]);
                xdljObj[pPrice] = true;
                disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][quanmjitem]]);
              }
            }
          } else {
            if (Number(quanmjarr[0]) <= pagePrice) {
              let pPrice = pagePrice - Number(quanmjarr[1]);
              xdljObj[pPrice] = true;
              disPrice2[pPrice] = [infoObj[pattern][quanmjitem]];
            } else if (Number(quanmjarr[1]) / Number(quanmjarr[0]) > 0.2) {
              let pPrice = (Number(quanmjarr[0]) - Number(quanmjarr[1])) / (Number(quanmjarr[0]) / pagePrice);
              coudanObj[pPrice] = true;
              disPrice2[pPrice] = [infoObj[pattern][quanmjitem]];
            }
          }
        }
    }
  }
};
const vipPrice = price => {
  let PLUSDom = $('.plus-price .price');
  if (PLUSDom.length === 0) {
    PLUSDom = $('.p-price-plus .price');
  }
  if (G.site === '360buy' && PLUSDom.length > 0) {
    let price1 = PLUSDom.text().replace(/[￥¥\s]+/g, '');
    price1 = price1 && Number(price1);
    if (price1) {
      price = price1;
      vipPromo = "PLUS会员专享价" + price1;
    }
  }
  return price;
};
module.exports.getPrice = callback => {
  // if (disPrice) callback(disPrice, coudanObj, xdljObj)
  // else callbacks = callback
  (__webpack_require__(30888).waitForConditionFn)(() => disPrice).then(() => {
    callback(disPrice, coudanObj, xdljObj);
  });
};
module.exports.reload = cb => {
  disPrice = null;
  module.exports.init();
  cb();
};
const domRequired = {
  '360buy': () => {
    if (location.hostname.includes('.jkcsjd.com')) {
      return true;
    }
    return $('#summary-quan').length || $('#J-summary-topcjmj').length;
  },
  'tmall': () => {
    return $('[class^=Price--root]').length || $('.tb-wrap').length;
  }
};
const uploadLinkData = (linkData, preferences) => {
  let batchName = 'jd_batch-' + pageConfig.product.skuid;
  let toUpload = {};
  toUpload[batchName] = {
    stockInfo: linkData.stockInfo,
    price: linkData.price,
    preferenceVO: linkData.preferenceVO
  };
  let payload = String.fromCharCode.apply(null, (__webpack_require__(95450).gZip)(toUpload));
  (__webpack_require__(49388).post)(G.server + '/extension/PluginHelper?op=jdPromoData&t=' + Date.now(), btoa(payload));
};
const fillPromoWithLinkData = (info, promoLinkData) => {
  info.promo = info.promo.map(item => {
    promoLinkData.forEach(promo => {
      if (item.indexOf(promo.value) > -1 && (item.indexOf('.jd.com') === -1 || item.indexOf('item.jd.com/') > -1)) {
        item = item.replaceAll(':', '_').replaceAll(';', '_');
        if (item.indexOf(seprator) > -1) {
          item = item.split(seprator)[1];
        }
        if (promo.promoId) {
          item = `https://search.jd.com/Search?activity_id=${promo.promoId}&sku=${pageConfig.product.skuid}${seprator}${item}`;
        }
      }
    });
    return item;
  });
  if (promoLinkData.length && !info.promo.length) {
    info.promo = promoLinkData.map(promo => {
      const linkHTML = promo.link;
      if (!linkHTML) {
        return `${seprator}${promo.text}${seprator}${promo.value}`;
      }
      const isLink = linkHTML.startsWith('//');
      if (isLink) {
        return `${linkHTML}${seprator}${promo.text}${promo.value ? '--' : ''}${promo.value}`;
      }
      const link = linkHTML.match(/href='([^']+)'/);
      if (link && link[1]) {
        return `${link[1]}${seprator}${promo.text}${promo.value ? '--' : ''}${promo.value}`;
      }
      return `${seprator}${promo.text}${seprator}${promo.value}`;
    });
  }
};
const fillPromoWithCouponLinkData = (info, couponLinkData) => {
  info.quan = info.quan.map(item => {
    let stritem = item.toString();
    let theCoupon = null;
    couponLinkData.forEach(coupon => {
      if (coupon.value && !coupon.couponValue) {
        coupon.couponValue = coupon.value;
      }
      if (!coupon.batchId && coupon.preferenceId) {
        coupon.batchId = coupon.preferenceId;
      }
      if (stritem.indexOf(coupon.couponValue) > -1 && stritem.indexOf('.jd.com') === -1) {
        theCoupon = coupon;
        // item = `https://search.jd.com/Search?coupon_batch=${coupon.batchId}&sku=${pageConfig.product.skuid}:${item}`
        item = `${coupon.batchId}_${coupon.roleId}_${coupon.encryptedKey}${seprator}${stritem}`;
      }
      if ((stritem.indexOf(coupon.quota + '元减') > -1 || stritem.indexOf(coupon.quota + '减') > -1) && stritem.indexOf('.jd.com') === -1) {
        theCoupon = coupon;
        // item = `https://search.jd.com/Search?coupon_batch=${coupon.batchId}&sku=${pageConfig.product.skuid}:${item}`
        item = `${coupon.batchId}_${coupon.roleId}_${coupon.encryptedKey}${seprator}${stritem}`;
      }
    });
    if (theCoupon && new Date(theCoupon.beginTime + ' ' + theCoupon.beginHour) > new Date()) {
      return;
    }
    return item;
  }).filter(x => !!x && !x.includes('官方直降'));
};
const init2 = async () => {
  if (domRequired[G.site]) {
    await (__webpack_require__(30888).waitForConditionFn)(domRequired[G.site]);
  }
  console.timeLog('promo', 'dom ready');
  let info = sitePattern[G.site]();
  let pagePrice = (__webpack_require__(12826).productPattern)[G.site]().price;
  // 京东plus价格参加实际计算
  let plusPrice = vipPrice(pagePrice);
  let toSend = [];
  if (plusPrice !== pagePrice) {
    toSend.push(`plus:${plusPrice}`);
  }
  if (!info.promo) info.promo = [];
  if (!info.quan) info.quan = [];
  if (G.site === '360buy') {
    let loginCoupon = await (__webpack_require__(5582).init)();
    if (loginCoupon instanceof Array) {
      info.quan = [...new Set(info.quan.concat(loginCoupon.map(x => x.replace('元减', '减'))))];
    }
    let coupon = await (__webpack_require__(41761).met)('coupon');
    if (coupon && info.quan.indexOf(coupon) === -1) {
      info.quan.push(coupon);
    }
  }
  // if (G.aliSite) {
  //   let coupon = await require('common/globalCondition').met('coupon')
  //   if (coupon) {
  //     info.quan.push(coupon + '元券')
  //   }
  // }
  info.promo = (__webpack_require__(30888).arrayUnique)(info.promo);
  if (G.site === '360buy') {
    try {
      let linkData = null,
        count = 0;
      while (!linkData) {
        if (count > 10) break;
        try {
          count++;
          linkData = await request.jdRequest(pageConfig.product.skuid);
        } catch (e) {
          console.log(e);
        }
      }
      if (linkData) {
        let couponAndPromo = {};
        if (linkData.preference && linkData.preference.preferencePopUp) {
          const preferences = [];
          if (linkData.preference.preferencePopUp.sharedPreference) {
            preferences.push(...linkData.preference.preferencePopUp.sharedPreference);
          }
          if (linkData.preference.preferencePopUp.morePreference) {
            preferences.push(...linkData.preference.preferencePopUp.morePreference);
          }
          fillPromoWithLinkData(info, preferences.filter(x => x.promoId));
          info.quan = info.quan.filter(x => !preferences.filter(x => x.promoId).map(x => x.shortText).includes(x));
          fillPromoWithCouponLinkData(info, preferences.filter(x => x.couponType));
          couponAndPromo = {
            promo: preferences.filter(x => x.promoId),
            coupon: preferences.filter(x => x.couponType)
          };
          // if (linkData.preference.preferencePopUp.morePreference) {
          //   fillPromoWithCouponLinkData(info, linkData.preference.preferencePopUp.morePreference)
          // }
        }
        uploadLinkData(linkData, couponAndPromo);
        if (linkData.preferenceInfo && linkData.preferenceInfo.coupons) {
          fillPromoWithCouponLinkData(info, linkData.preferenceInfo.coupons);
        }
      }
    } catch (err) {
      (__webpack_require__(7129).error)(err);
    }
  }
  toSend = toSend.concat(info.promo.map(x => {
    return `促: ${x.replace('http://', '//').replace('https://', '//')}`;
  })).concat(info.quan.map(x => `券: ${x.toString().replace('http://', '//').replace('https://', '//')}`));

  //if (true) {
  let k = $('.J-prom > .prom-item > img').attr('src');
  if (k && k.indexOf('6223615cd83592b5') > -1) {
    toSend.push('会员特权:9.5折');
  }
  let promoText = encodeURIComponent(toSend.join(';'));
  const globalCondition = __webpack_require__(41761);
  let dp_id = await globalCondition.met('GwdDpIdGot');
  if (G.priceTextCollectedFromPage && (G.priceTextCollectedFromPage.includes('券后') || G.priceTextCollectedFromPage.includes('折后'))) {
    return;
  }
  let skuid = (__webpack_require__(60340).getParameterByName)('skuId');
  request.get(`${G.server}/extension/InTimePromotion?dp_id=${dp_id}&price=${pagePrice}&promo_text=${promoText}${skuid ? '&sku_id=' + skuid : ''}`).then(res => {
    (__webpack_require__(41761).setMet)('promoGot', res.data);
    (__webpack_require__(41761).setMet)('localPromoGot', info);
    (__webpack_require__(41761).setMet)('remoteUrlMap', res._map);
    // if (callbacks) {
    //   callbacks(res.data)
    // }
    disPrice = res.data;
    if (res.data) {
      G.dp.promoPrice = res.data.current_price;
    }
  });
  //此处需要优先计算促销活动 再计算优惠券
  // pagePrice = vipPrice(pagePrice)
  // if (info.promo)
  //   getPromoInfoNum(pagePrice, info.promo, "promo")
  // if (info.quan)
  //   getPromoInfoNum(pagePrice, info.quan, "quan")
  // for (let dis2 in disPrice2) {
  //   disPrice[dis2] = disPrice2[dis2]
  // }
  // let dk = dingjinzhekou[G.site]();
  // if (dk || vipPromo) {
  //   for (let disp in disPrice) {
  //     let newdisp = disp - dk;
  //     if (vipPromo) {
  //       disPrice[disp].push(vipPromo)
  //     }
  //     if (Number(newdisp) !== Number(disp)) {
  //       disPrice[newdisp] = disPrice[disp];
  //     }
  //   }
  // }
  // if (callbacks)
  //   callbacks(disPrice, coudanObj, xdljObj)
};
module.exports.init = async () => {
  disPrice = 0;
  if (['360buy', 'suning', 'tmall', 'dangdang', 'taobao'].indexOf(G.site) === -1) return;
  let instanceId = G.instanceId;
  console.time('promo');
  let perform = function () {
    var siteName = G.site;
    let siteId = detect.getSiteId(siteName);
    console.timeLog('promo', 'site id detected');
    priceParser.init(siteId, async function (price) {
      console.timeLog('promo', 'price parsed');
      await (__webpack_require__(41761).met)('productInfoReady');
      console.timeLog('promo', 'product info ready');
      if (!G.dp) return;
      if (G.instanceId && instanceId !== G.instanceId) return;
      if (price && price > 0) {
        G.dp.oldPrice = price;
        G.dp.price = price;
      }
      init2();
    });
  };
  if (G.site === '360buy') {
    if (location.hostname.includes('.jd.com')) {
      const now = Date.now();
      await (__webpack_require__(30888).waitForConditionFn)(() => $('.floor-item').length || $('.prom-item').length || $('.quan-item').length || Date.now() - now > 8000);
    }
    perform();
  } else {
    setTimeout(perform, 4000);
  }
};

/***/ }),

/***/ 41761:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
// 有时需要等待条件满足再执行

let metConditions = [];
let waitList = {};
let dataList = {};
const globalCondition = {
  met: function (condition, timeout = null, defaultValue = null) {
    return new Promise(resolve => {
      if (metConditions.indexOf(condition) > -1) {
        resolve(dataList[condition]);
      } else {
        if (waitList[condition]) {
          waitList[condition].push(resolve);
        } else {
          waitList[condition] = [resolve];
        }
        if (timeout) {
          setTimeout(() => {
            resolve(defaultValue);
          }, timeout);
        }
      }
    });
  },
  hasMet(condition) {
    return metConditions.indexOf(condition) > -1;
  },
  getDataList() {
    return {
      dataList,
      metConditions
    };
  },
  clearAll() {
    metConditions = metConditions.filter(x => x === 'GwdConfig');
    waitList = {};
    dataList = {
      GwdConfig: dataList.GwdConfig
    };
  },
  clear: function (condition) {
    let idx = metConditions.indexOf(condition);
    if (idx > -1) {
      metConditions.splice(idx, 1);
      delete dataList[condition];
    }
  },
  setMet: function (condition, data = null) {
    if (metConditions.indexOf(condition) === -1) {
      metConditions.push(condition);
      dataList[condition] = data;
    }
    if (waitList[condition]) {
      waitList[condition].forEach(x => x(data));
      waitList[condition] = [];
    }
  }
};
G.globalCondition = globalCondition;
module.exports = globalCondition;
// export default globalCondition;

/***/ }),

/***/ 41826:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


let callbacks, hasreq, urls;
const request = __webpack_require__(49388);
const getPageInfo = (info, callback) => {
  let infoObj = {};
  if (hasreq) {
    callbacks = callback;
    urls = info.click_url;
    return;
  }
  let itemId = G.dp.itemId;
  if (!itemId && G.site === 'taobao-ju') {
    itemId = location.href.match(/item_id=(\d+)/)[1];
  }
  let obj = {
    itemNumId: itemId
  };
  let url = `https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0/?data=${encodeURIComponent(JSON.stringify(obj))}`;
  request.getPure(url).done(function (data) {
    try {
      let item = data.data.item;
      let seller = data.data.seller;
      let item2 = JSON.parse(data.data.apiStack[0].value);
      infoObj.title = item.title;
      infoObj.picUrl = item.images[0];
      infoObj.shopName = seller.shopName;
      infoObj.shopLogo = seller.shopIcon;
      infoObj.shopUrl = seller.shopUrl;
      infoObj.biz30Day = item2.item.sellCount;
      infoObj.discountPrice = (Number(item2.skuCore.sku2info['0'].price.priceMoney) / 100).toFixed(2);
    } catch (e) {
      //require('common/extConsole').error(e)
    }
    if (!infoObj.title) {
      infoObj.title = document.title;
    }
    if (!infoObj.title) {
      infoObj.title = $('.tb-detail-hd > h1').text().trim();
    }
    if (!infoObj.picUrl) {
      infoObj.picUrl = $('#J_ImgBooth').attr('src');
    }
    if (!infoObj.discountPrice) {
      infoObj.discountPrice = G.dp.price;
    }
    infoObj.id = itemId;
    infoObj.amount = info.coupon.coupon_money;
    infoObj.effectiveStartTime = info.coupon.start_time;
    infoObj.effectiveEndTime = info.coupon.end_time;
    infoObj.pid = info.pid;
    infoObj.tkl = info.tkl;
    infoObj.tmall = location.host.indexOf('tmall') > -1 ? true : false;
    if (G.site === 'taobao-ju') {
      infoObj.shopName = $('.sellername:eq(0)').text();
    }
    callback(infoObj, info.click_url);
    //console.log(infoObj)
    if (callbacks) {
      callbacks(infoObj, urls);
    }
  });
};
module.exports = getPageInfo;

/***/ }),

/***/ 41859:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ ShaiDanPicTooltipvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ ShaiDanPicTooltip)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/ShaiDanPicTooltip.vue?vue&type=template&id=b19132fc&scoped=true
var ShaiDanPicTooltipvue_type_template_id_b19132fc_scoped_true = __webpack_require__(64966);
;// ./src/standard/module/trend/ShaiDanPicTooltip.vue?vue&type=template&id=b19132fc&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/ShaiDanPicTooltip.vue?vue&type=script&lang=js
var ShaiDanPicTooltipvue_type_script_lang_js = __webpack_require__(33835);
;// ./src/standard/module/trend/ShaiDanPicTooltip.vue?vue&type=script&lang=js
 /* harmony default export */ const trend_ShaiDanPicTooltipvue_type_script_lang_js = (ShaiDanPicTooltipvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/ShaiDanPicTooltip.vue?vue&type=style&index=0&id=b19132fc&prod&scoped=true&lang=less
var ShaiDanPicTooltipvue_type_style_index_0_id_b19132fc_prod_scoped_true_lang_less = __webpack_require__(63478);
;// ./src/standard/module/trend/ShaiDanPicTooltip.vue?vue&type=style&index=0&id=b19132fc&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/trend/ShaiDanPicTooltip.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  trend_ShaiDanPicTooltipvue_type_script_lang_js,
  ShaiDanPicTooltipvue_type_template_id_b19132fc_scoped_true/* render */.XX,
  ShaiDanPicTooltipvue_type_template_id_b19132fc_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "b19132fc",
  null
  
)

/* harmony default export */ const ShaiDanPicTooltip = (component.exports);

/***/ }),

/***/ 41966:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(60727);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("1d0a483a", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 41968:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


module.exports = {
  observe(dom, cb, config = {
    subtree: true,
    attributes: true
  }) {
    var observer = new MutationObserver(function (mutations, observer) {
      if (cb) {
        cb(mutations, observer);
      }
    });
    try {
      if (typeof dom === 'string') {
        dom = document.querySelector(dom);
      }
      observer.observe(dom, config);
    } catch (e) {
      (__webpack_require__(7129).error)(e);
    }
  }
};

/***/ }),

/***/ 41996:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
// String encode/decode helpers



var utils = __webpack_require__(9805);


// Quick check if we can use fast array to bin string conversion
//
// - apply(Array) can fail on Android 2.2
// - apply(Uint8Array) can fail on iOS 5.1 Safari
//
var STR_APPLY_OK = true;
var STR_APPLY_UIA_OK = true;

try { String.fromCharCode.apply(null, [ 0 ]); } catch (__) { STR_APPLY_OK = false; }
try { String.fromCharCode.apply(null, new Uint8Array(1)); } catch (__) { STR_APPLY_UIA_OK = false; }


// Table with utf8 lengths (calculated by first byte of sequence)
// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,
// because max possible codepoint is 0x10ffff
var _utf8len = new utils.Buf8(256);
for (var q = 0; q < 256; q++) {
  _utf8len[q] = (q >= 252 ? 6 : q >= 248 ? 5 : q >= 240 ? 4 : q >= 224 ? 3 : q >= 192 ? 2 : 1);
}
_utf8len[254] = _utf8len[254] = 1; // Invalid sequence start


// convert string to array (typed, when possible)
exports.string2buf = function (str) {
  var buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0;

  // count binary size
  for (m_pos = 0; m_pos < str_len; m_pos++) {
    c = str.charCodeAt(m_pos);
    if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {
      c2 = str.charCodeAt(m_pos + 1);
      if ((c2 & 0xfc00) === 0xdc00) {
        c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);
        m_pos++;
      }
    }
    buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4;
  }

  // allocate buffer
  buf = new utils.Buf8(buf_len);

  // convert
  for (i = 0, m_pos = 0; i < buf_len; m_pos++) {
    c = str.charCodeAt(m_pos);
    if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {
      c2 = str.charCodeAt(m_pos + 1);
      if ((c2 & 0xfc00) === 0xdc00) {
        c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);
        m_pos++;
      }
    }
    if (c < 0x80) {
      /* one byte */
      buf[i++] = c;
    } else if (c < 0x800) {
      /* two bytes */
      buf[i++] = 0xC0 | (c >>> 6);
      buf[i++] = 0x80 | (c & 0x3f);
    } else if (c < 0x10000) {
      /* three bytes */
      buf[i++] = 0xE0 | (c >>> 12);
      buf[i++] = 0x80 | (c >>> 6 & 0x3f);
      buf[i++] = 0x80 | (c & 0x3f);
    } else {
      /* four bytes */
      buf[i++] = 0xf0 | (c >>> 18);
      buf[i++] = 0x80 | (c >>> 12 & 0x3f);
      buf[i++] = 0x80 | (c >>> 6 & 0x3f);
      buf[i++] = 0x80 | (c & 0x3f);
    }
  }

  return buf;
};

// Helper (used in 2 places)
function buf2binstring(buf, len) {
  // On Chrome, the arguments in a function call that are allowed is `65534`.
  // If the length of the buffer is smaller than that, we can use this optimization,
  // otherwise we will take a slower path.
  if (len < 65534) {
    if ((buf.subarray && STR_APPLY_UIA_OK) || (!buf.subarray && STR_APPLY_OK)) {
      return String.fromCharCode.apply(null, utils.shrinkBuf(buf, len));
    }
  }

  var result = '';
  for (var i = 0; i < len; i++) {
    result += String.fromCharCode(buf[i]);
  }
  return result;
}


// Convert byte array to binary string
exports.buf2binstring = function (buf) {
  return buf2binstring(buf, buf.length);
};


// Convert binary string (typed, when possible)
exports.binstring2buf = function (str) {
  var buf = new utils.Buf8(str.length);
  for (var i = 0, len = buf.length; i < len; i++) {
    buf[i] = str.charCodeAt(i);
  }
  return buf;
};


// convert array to string
exports.buf2string = function (buf, max) {
  var i, out, c, c_len;
  var len = max || buf.length;

  // Reserve max possible length (2 words per char)
  // NB: by unknown reasons, Array is significantly faster for
  //     String.fromCharCode.apply than Uint16Array.
  var utf16buf = new Array(len * 2);

  for (out = 0, i = 0; i < len;) {
    c = buf[i++];
    // quick process ascii
    if (c < 0x80) { utf16buf[out++] = c; continue; }

    c_len = _utf8len[c];
    // skip 5 & 6 byte codes
    if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len - 1; continue; }

    // apply mask on first byte
    c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07;
    // join the rest
    while (c_len > 1 && i < len) {
      c = (c << 6) | (buf[i++] & 0x3f);
      c_len--;
    }

    // terminated by end of string?
    if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; }

    if (c < 0x10000) {
      utf16buf[out++] = c;
    } else {
      c -= 0x10000;
      utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff);
      utf16buf[out++] = 0xdc00 | (c & 0x3ff);
    }
  }

  return buf2binstring(utf16buf, out);
};


// Calculate max possible position in utf8 buffer,
// that will not break sequence. If that's not possible
// - (very small limits) return max size as is.
//
// buf[] - utf8 bytes array
// max   - length limit (mandatory);
exports.utf8border = function (buf, max) {
  var pos;

  max = max || buf.length;
  if (max > buf.length) { max = buf.length; }

  // go back from last position, until start of sequence found
  pos = max - 1;
  while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; }

  // Very small and broken sequence,
  // return max, because we should return something anyway.
  if (pos < 0) { return max; }

  // If we came to start of buffer - that means buffer is too small,
  // return max too.
  if (pos === 0) { return max; }

  return (pos + _utf8len[buf[pos]] > max) ? pos : max;
};


/***/ }),

/***/ 42012:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(65169);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("0c2a229e", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 42034:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ PrivacyDialogvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ PrivacyDialog)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/Settings/PrivacyDialog.vue?vue&type=template&id=08c0879c&scoped=true
var PrivacyDialogvue_type_template_id_08c0879c_scoped_true = __webpack_require__(78678);
;// ./src/common/components/Settings/PrivacyDialog.vue?vue&type=template&id=08c0879c&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/Settings/PrivacyDialog.vue?vue&type=script&lang=js
var PrivacyDialogvue_type_script_lang_js = __webpack_require__(7054);
;// ./src/common/components/Settings/PrivacyDialog.vue?vue&type=script&lang=js
 /* harmony default export */ const Settings_PrivacyDialogvue_type_script_lang_js = (PrivacyDialogvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/Settings/PrivacyDialog.vue?vue&type=style&index=0&id=08c0879c&prod&scoped=true&lang=less
var PrivacyDialogvue_type_style_index_0_id_08c0879c_prod_scoped_true_lang_less = __webpack_require__(84306);
;// ./src/common/components/Settings/PrivacyDialog.vue?vue&type=style&index=0&id=08c0879c&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/Settings/PrivacyDialog.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  Settings_PrivacyDialogvue_type_script_lang_js,
  PrivacyDialogvue_type_template_id_08c0879c_scoped_true/* render */.XX,
  PrivacyDialogvue_type_template_id_08c0879c_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "08c0879c",
  null
  
)

/* harmony default export */ const PrivacyDialog = (component.exports);

/***/ }),

/***/ 42056:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


module.exports.init = position => {
  let el = document.createElement('div');
  document.body.appendChild(el);
  let clock = (__webpack_require__(85127)/* ["default"] */ .A);
  new Vue({
    el: el,
    render: h => h(clock, {
      props: {
        position: position
      }
    })
  });
};

/***/ }),

/***/ 42077:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "\n.tip-item-sp3.prifontf[data-v-7b887b5e] {\n  position: relative;\n  top: 1px;\n}\n", ""]);

// exports


/***/ }),

/***/ 42288:
/***/ ((module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
var __WEBPACK_AMD_DEFINE_RESULT__;

!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  var exports = {};
  var globalData, hasCallback, callbacks;
  var request = __webpack_require__(49388);
  var yixunImg = __webpack_require__(10422);
  exports.get = function (callback) {
    request.get(G.server + '/brwext/history?op=get').done(function (data) {
      data = yixunImg(data.result);
      data = filtPrice(data);
      globalData = data;
      if (callback) callback(data);
      if (callbacks && !hasCallback) {
        callbacks(data);
        hasCallback = true;
      }
    });
  };
  const filtPrice = data => {
    let newdata = [];
    for (let i = 0; i < data.length; i++) {
      let price = Number(data[i].price);
      if (!data[i].url || !data[i].title) continue;
      if (price && price > 0) {
        newdata.push(data[i]);
      }
    }
    return newdata;
  };
  exports.add = function (dp_id, callback) {
    request.get(G.server + '/brwext/history?op=add&dp_id=' + dp_id).done(function (data) {
      if (callback) callback(data);
    });
  };
  exports.delAll = function (callback) {
    request.get(G.server + '/brwext/history?op=delAll').done(data => {
      callback();
    });
  };
  exports.del = function (dp_id, callback) {
    request.get(G.server + '/brwext/history?op=del&dp_id=' + dp_id).done(function (data) {
      if (callback) callback();
    });
  };
  exports.getSize = function (callback) {
    if (globalData) {
      callback(globalData);
      hasCallback = true;
    } else callbacks = callback;
    setTimeout(() => {
      if (!hasCallback) {
        callbacks(null);
        hasCallback = true;
      }
    }, 14000);
  };
  return exports;
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

/***/ }),

/***/ 42603:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


__webpack_require__(72712);
const getTbUserRank = data => {
  // 初始化统计对象
  const stats = {
    oneStar: 0,
    // 1-5级
    twoStar: 0,
    // 6-10级
    threeStar: 0 // 11-15级
  };

  // 总评论数
  const total = data.length;

  // 遍历评论统计
  data.forEach(review => {
    if (review.userTagList && review.userTagList[0] && review.userTagList[0].extraInfo) {
      const level = parseInt(review.userTagList[0].extraInfo.level);
      if (level <= 5) {
        stats.oneStar++;
      } else if (level <= 10) {
        stats.twoStar++;
      } else {
        stats.threeStar++;
      }
    }
  });

  // 计算百分比
  return [{
    name: '心级用户',
    icon: 'l0',
    percent: Math.round(stats.oneStar / total * 100),
    value: stats.oneStar
  }, {
    name: '钻级用户',
    icon: 'l1',
    percent: Math.round(stats.twoStar / total * 100),
    value: stats.twoStar
  }, {
    name: '皇冠用户',
    icon: 'l2',
    percent: Math.round(stats.threeStar / total * 100),
    value: stats.threeStar
  }].filter(item => item.value > 0);
};
const getTbSkuCounts = data => {
  const skuCounts = {};
  const colors = ['#5a7eea', '#2bc0f6', '#ee6666', '#fac858', '#87da6b', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'];
  // 遍历评论统计
  data.forEach(review => {
    const skuValue = review.skuValueStr;
    if (!skuValue) {
      return;
    }
    let skuCount = skuCounts[skuValue];
    if (skuCount) {
      skuCount++;
    } else {
      skuCount = 1;
    }
    skuCounts[skuValue] = skuCount;
  });
  const total = Object.values(skuCounts).reduce((acc, cur) => acc + cur, 0);
  const result = Object.keys(skuCounts).map((key, index) => {
    return {
      label: key,
      percentage: (skuCounts[key] / total * 100).toFixed(2).replace('.00', ''),
      value: skuCounts[key],
      color: index < colors.length ? colors[index] : `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0')}`
    };
  });
  return result;
};
const getJdUserRank = data => {
  const stats = {
    plus: 0,
    normal: 0
  };
  const total = data.length;
  data.forEach(review => {
    const userLevel = review.plusAvailable === 201 ? 'plus' : 'normal';
    stats[userLevel]++;
  });
  return [{
    name: 'PLUS会员',
    percent: Math.round(stats.plus / total * 100),
    value: stats.plus
  }, {
    name: '普通用户',
    percent: Math.round(stats.normal / total * 100),
    value: stats.normal
  }].filter(x => x.value > 0);
};
const getJdSkuCounts = data => {
  const skuCounts = {};
  const colors = ['#5a7eea', '#2bc0f6', '#ee6666', '#fac858', '#87da6b', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'];
  data.forEach(review => {
    const productColor = review.productColor || '其他';
    const productSize = review.productSize || '';
    const skuValue = productSize ? `${productColor} ${productSize}` : productColor;
    skuCounts[skuValue] = (skuCounts[skuValue] || 0) + 1;
  });
  const total = Object.values(skuCounts).reduce((acc, cur) => acc + cur, 0);
  return Object.keys(skuCounts).map((key, index) => ({
    label: key,
    percentage: (skuCounts[key] / total * 100).toFixed(2).replace('.00', ''),
    value: skuCounts[key],
    color: index < colors.length ? colors[index] : `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0')}`
  }));
};
module.exports = {
  getUserRank(data) {
    if (gwd_G.aliSite) {
      return getTbUserRank(data);
    } else {
      return getJdUserRank(data);
    }
  },
  getSkuCounts(data) {
    if (gwd_G.aliSite) {
      return getTbSkuCounts(data);
    } else {
      return getJdSkuCounts(data);
    }
  }
};

/***/ }),

/***/ 42629:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _vuex = __webpack_require__(95353);
var _default = exports.A = {
  computed: (0, _vuex.mapState)({
    checked: state => state.priceRemind.collected,
    id: state => state.priceRemind.instanceId
  })
};

/***/ }),

/***/ 42670:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-sd-img-tooltip gwd-row gwd-align",
    on: {
      mouseenter: _vm.onMouseOver,
      mousemove: _vm.onMouseOver,
      mouseleave: _vm.onMouseLeave
    }
  }, [_c("span", {
    staticClass: "gwd-font11"
  }, [_vm._v("订单截图")]), _vm._v(" "), _c("img", {
    staticStyle: {
      width: "10px",
      height: "10px",
      "margin-left": "-2px"
    },
    attrs: {
      src: "https://cdn.gwdang.com/images/extensions/shaidan/arrow@2x.png",
      alt: ""
    }
  }), _vm._v(" "), _vm.over ? _c("ShaiDanPicTooltip", {
    attrs: {
      tipmode: "cursor",
      img: _vm.img,
      x: _vm.x,
      y: _vm.y
    },
    on: {
      mouseover: function ($event) {
        _vm.overTip = true;
      },
      mouseleave: function ($event) {
        _vm.overTip = false;
      }
    }
  }) : _vm._e(), _vm._v(" "), _c("Teleport", {
    attrs: {
      to: "body"
    }
  }, [_vm.over ? _c("ShaiDanPicTooltip", {
    attrs: {
      img: _vm.img,
      x: _vm.x,
      y: _vm.y,
      tipmode: "tooltip"
    },
    on: {
      mouseover: function ($event) {
        _vm.overTip = true;
      },
      mouseleave: function ($event) {
        _vm.overTip = false;
      }
    }
  }) : _vm._e()], 1)], 1);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 42787:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var hasOwn = __webpack_require__(39297);
var isCallable = __webpack_require__(94901);
var toObject = __webpack_require__(48981);
var sharedKey = __webpack_require__(66119);
var CORRECT_PROTOTYPE_GETTER = __webpack_require__(12211);

var IE_PROTO = sharedKey('IE_PROTO');
var $Object = Object;
var ObjectPrototype = $Object.prototype;

// `Object.getPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.getprototypeof
// eslint-disable-next-line es/no-object-getprototypeof -- safe
module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
  var object = toObject(O);
  if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
  var constructor = object.constructor;
  if (isCallable(constructor) && object instanceof constructor) {
    return constructor.prototype;
  } return object instanceof $Object ? ObjectPrototype : null;
};


/***/ }),

/***/ 42814:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


var uc_micro = __webpack_require__(73492);

function reFactory (opts) {
  const re = {};
  opts = opts || {};

  re.src_Any = uc_micro.Any.source;
  re.src_Cc = uc_micro.Cc.source;
  re.src_Z = uc_micro.Z.source;
  re.src_P = uc_micro.P.source;

  // \p{\Z\P\Cc\CF} (white spaces + control + format + punctuation)
  re.src_ZPCc = [re.src_Z, re.src_P, re.src_Cc].join('|');

  // \p{\Z\Cc} (white spaces + control)
  re.src_ZCc = [re.src_Z, re.src_Cc].join('|');

  // Experimental. List of chars, completely prohibited in links
  // because can separate it from other part of text
  const text_separators = '[><\uff5c]';

  // All possible word characters (everything without punctuation, spaces & controls)
  // Defined via punctuation & spaces to save space
  // Should be something like \p{\L\N\S\M} (\w but without `_`)
  re.src_pseudo_letter = '(?:(?!' + text_separators + '|' + re.src_ZPCc + ')' + re.src_Any + ')';
  // The same as abothe but without [0-9]
  // var src_pseudo_letter_non_d = '(?:(?![0-9]|' + src_ZPCc + ')' + src_Any + ')';

  re.src_ip4 =

    '(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)';

  // Prohibit any of "@/[]()" in user/pass to avoid wrong domain fetch.
  re.src_auth = '(?:(?:(?!' + re.src_ZCc + '|[@/\\[\\]()]).)+@)?';

  re.src_port =

    '(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?';

  re.src_host_terminator =

    '(?=$|' + text_separators + '|' + re.src_ZPCc + ')' +
    '(?!' + (opts['---'] ? '-(?!--)|' : '-|') + '_|:\\d|\\.-|\\.(?!$|' + re.src_ZPCc + '))';

  re.src_path =

    '(?:' +
      '[/?#]' +
        '(?:' +
          '(?!' + re.src_ZCc + '|' + text_separators + '|[()[\\]{}.,"\'?!\\-;]).|' +
          '\\[(?:(?!' + re.src_ZCc + '|\\]).)*\\]|' +
          '\\((?:(?!' + re.src_ZCc + '|[)]).)*\\)|' +
          '\\{(?:(?!' + re.src_ZCc + '|[}]).)*\\}|' +
          '\\"(?:(?!' + re.src_ZCc + '|["]).)+\\"|' +
          "\\'(?:(?!" + re.src_ZCc + "|[']).)+\\'|" +

          // allow `I'm_king` if no pair found
          "\\'(?=" + re.src_pseudo_letter + '|[-])|' +

          // google has many dots in "google search" links (#66, #81).
          // github has ... in commit range links,
          // Restrict to
          // - english
          // - percent-encoded
          // - parts of file path
          // - params separator
          // until more examples found.
          '\\.{2,}[a-zA-Z0-9%/&]|' +

          '\\.(?!' + re.src_ZCc + '|[.]|$)|' +
          (opts['---']
            ? '\\-(?!--(?:[^-]|$))(?:-*)|' // `---` => long dash, terminate
            : '\\-+|'
          ) +
          // allow `,,,` in paths
          ',(?!' + re.src_ZCc + '|$)|' +

          // allow `;` if not followed by space-like char
          ';(?!' + re.src_ZCc + '|$)|' +

          // allow `!!!` in paths, but not at the end
          '\\!+(?!' + re.src_ZCc + '|[!]|$)|' +

          '\\?(?!' + re.src_ZCc + '|[?]|$)' +
        ')+' +
      '|\\/' +
    ')?';

  // Allow anything in markdown spec, forbid quote (") at the first position
  // because emails enclosed in quotes are far more common
  re.src_email_name =

    '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*';

  re.src_xn =

    'xn--[a-z0-9\\-]{1,59}';

  // More to read about domain names
  // http://serverfault.com/questions/638260/

  re.src_domain_root =

    // Allow letters & digits (http://test1)
    '(?:' +
      re.src_xn +
      '|' +
      re.src_pseudo_letter + '{1,63}' +
    ')';

  re.src_domain =

    '(?:' +
      re.src_xn +
      '|' +
      '(?:' + re.src_pseudo_letter + ')' +
      '|' +
      '(?:' + re.src_pseudo_letter + '(?:-|' + re.src_pseudo_letter + '){0,61}' + re.src_pseudo_letter + ')' +
    ')';

  re.src_host =

    '(?:' +
    // Don't need IP check, because digits are already allowed in normal domain names
    //   src_ip4 +
    // '|' +
      '(?:(?:(?:' + re.src_domain + ')\\.)*' + re.src_domain/* _root */ + ')' +
    ')';

  re.tpl_host_fuzzy =

    '(?:' +
      re.src_ip4 +
    '|' +
      '(?:(?:(?:' + re.src_domain + ')\\.)+(?:%TLDS%))' +
    ')';

  re.tpl_host_no_ip_fuzzy =

    '(?:(?:(?:' + re.src_domain + ')\\.)+(?:%TLDS%))';

  re.src_host_strict =

    re.src_host + re.src_host_terminator;

  re.tpl_host_fuzzy_strict =

    re.tpl_host_fuzzy + re.src_host_terminator;

  re.src_host_port_strict =

    re.src_host + re.src_port + re.src_host_terminator;

  re.tpl_host_port_fuzzy_strict =

    re.tpl_host_fuzzy + re.src_port + re.src_host_terminator;

  re.tpl_host_port_no_ip_fuzzy_strict =

    re.tpl_host_no_ip_fuzzy + re.src_port + re.src_host_terminator;

  //
  // Main rules
  //

  // Rude test fuzzy links by host, for quick deny
  re.tpl_host_fuzzy_test =

    'localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:' + re.src_ZPCc + '|>|$))';

  re.tpl_email_fuzzy =

      '(^|' + text_separators + '|"|\\(|' + re.src_ZCc + ')' +
      '(' + re.src_email_name + '@' + re.tpl_host_fuzzy_strict + ')';

  re.tpl_link_fuzzy =
      // Fuzzy link can't be prepended with .:/\- and non punctuation.
      // but can start with > (markdown blockquote)
      '(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|' + re.src_ZPCc + '))' +
      '((?![$+<=>^`|\uff5c])' + re.tpl_host_port_fuzzy_strict + re.src_path + ')';

  re.tpl_link_no_ip_fuzzy =
      // Fuzzy link can't be prepended with .:/\- and non punctuation.
      // but can start with > (markdown blockquote)
      '(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|' + re.src_ZPCc + '))' +
      '((?![$+<=>^`|\uff5c])' + re.tpl_host_port_no_ip_fuzzy_strict + re.src_path + ')';

  return re
}

//
// Helpers
//

// Merge objects
//
function assign (obj /* from1, from2, from3, ... */) {
  const sources = Array.prototype.slice.call(arguments, 1);

  sources.forEach(function (source) {
    if (!source) { return }

    Object.keys(source).forEach(function (key) {
      obj[key] = source[key];
    });
  });

  return obj
}

function _class (obj) { return Object.prototype.toString.call(obj) }
function isString (obj) { return _class(obj) === '[object String]' }
function isObject (obj) { return _class(obj) === '[object Object]' }
function isRegExp (obj) { return _class(obj) === '[object RegExp]' }
function isFunction (obj) { return _class(obj) === '[object Function]' }

function escapeRE (str) { return str.replace(/[.?*+^$[\]\\(){}|-]/g, '\\$&') }

//

const defaultOptions = {
  fuzzyLink: true,
  fuzzyEmail: true,
  fuzzyIP: false
};

function isOptionsObj (obj) {
  return Object.keys(obj || {}).reduce(function (acc, k) {
    /* eslint-disable-next-line no-prototype-builtins */
    return acc || defaultOptions.hasOwnProperty(k)
  }, false)
}

const defaultSchemas = {
  'http:': {
    validate: function (text, pos, self) {
      const tail = text.slice(pos);

      if (!self.re.http) {
        // compile lazily, because "host"-containing variables can change on tlds update.
        self.re.http = new RegExp(
          '^\\/\\/' + self.re.src_auth + self.re.src_host_port_strict + self.re.src_path, 'i'
        );
      }
      if (self.re.http.test(tail)) {
        return tail.match(self.re.http)[0].length
      }
      return 0
    }
  },
  'https:': 'http:',
  'ftp:': 'http:',
  '//': {
    validate: function (text, pos, self) {
      const tail = text.slice(pos);

      if (!self.re.no_http) {
      // compile lazily, because "host"-containing variables can change on tlds update.
        self.re.no_http = new RegExp(
          '^' +
          self.re.src_auth +
          // Don't allow single-level domains, because of false positives like '//test'
          // with code comments
          '(?:localhost|(?:(?:' + self.re.src_domain + ')\\.)+' + self.re.src_domain_root + ')' +
          self.re.src_port +
          self.re.src_host_terminator +
          self.re.src_path,

          'i'
        );
      }

      if (self.re.no_http.test(tail)) {
        // should not be `://` & `///`, that protects from errors in protocol name
        if (pos >= 3 && text[pos - 3] === ':') { return 0 }
        if (pos >= 3 && text[pos - 3] === '/') { return 0 }
        return tail.match(self.re.no_http)[0].length
      }
      return 0
    }
  },
  'mailto:': {
    validate: function (text, pos, self) {
      const tail = text.slice(pos);

      if (!self.re.mailto) {
        self.re.mailto = new RegExp(
          '^' + self.re.src_email_name + '@' + self.re.src_host_strict, 'i'
        );
      }
      if (self.re.mailto.test(tail)) {
        return tail.match(self.re.mailto)[0].length
      }
      return 0
    }
  }
};

// RE pattern for 2-character tlds (autogenerated by ./support/tlds_2char_gen.js)
/* eslint-disable-next-line max-len */
const tlds_2ch_src_re = 'a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]';

// DON'T try to make PRs with changes. Extend TLDs with LinkifyIt.tlds() instead
const tlds_default = 'biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф'.split('|');

function resetScanCache (self) {
  self.__index__ = -1;
  self.__text_cache__ = '';
}

function createValidator (re) {
  return function (text, pos) {
    const tail = text.slice(pos);

    if (re.test(tail)) {
      return tail.match(re)[0].length
    }
    return 0
  }
}

function createNormalizer () {
  return function (match, self) {
    self.normalize(match);
  }
}

// Schemas compiler. Build regexps.
//
function compile (self) {
  // Load & clone RE patterns.
  const re = self.re = reFactory(self.__opts__);

  // Define dynamic patterns
  const tlds = self.__tlds__.slice();

  self.onCompile();

  if (!self.__tlds_replaced__) {
    tlds.push(tlds_2ch_src_re);
  }
  tlds.push(re.src_xn);

  re.src_tlds = tlds.join('|');

  function untpl (tpl) { return tpl.replace('%TLDS%', re.src_tlds) }

  re.email_fuzzy = RegExp(untpl(re.tpl_email_fuzzy), 'i');
  re.link_fuzzy = RegExp(untpl(re.tpl_link_fuzzy), 'i');
  re.link_no_ip_fuzzy = RegExp(untpl(re.tpl_link_no_ip_fuzzy), 'i');
  re.host_fuzzy_test = RegExp(untpl(re.tpl_host_fuzzy_test), 'i');

  //
  // Compile each schema
  //

  const aliases = [];

  self.__compiled__ = {}; // Reset compiled data

  function schemaError (name, val) {
    throw new Error('(LinkifyIt) Invalid schema "' + name + '": ' + val)
  }

  Object.keys(self.__schemas__).forEach(function (name) {
    const val = self.__schemas__[name];

    // skip disabled methods
    if (val === null) { return }

    const compiled = { validate: null, link: null };

    self.__compiled__[name] = compiled;

    if (isObject(val)) {
      if (isRegExp(val.validate)) {
        compiled.validate = createValidator(val.validate);
      } else if (isFunction(val.validate)) {
        compiled.validate = val.validate;
      } else {
        schemaError(name, val);
      }

      if (isFunction(val.normalize)) {
        compiled.normalize = val.normalize;
      } else if (!val.normalize) {
        compiled.normalize = createNormalizer();
      } else {
        schemaError(name, val);
      }

      return
    }

    if (isString(val)) {
      aliases.push(name);
      return
    }

    schemaError(name, val);
  });

  //
  // Compile postponed aliases
  //

  aliases.forEach(function (alias) {
    if (!self.__compiled__[self.__schemas__[alias]]) {
      // Silently fail on missed schemas to avoid errons on disable.
      // schemaError(alias, self.__schemas__[alias]);
      return
    }

    self.__compiled__[alias].validate =
      self.__compiled__[self.__schemas__[alias]].validate;
    self.__compiled__[alias].normalize =
      self.__compiled__[self.__schemas__[alias]].normalize;
  });

  //
  // Fake record for guessed links
  //
  self.__compiled__[''] = { validate: null, normalize: createNormalizer() };

  //
  // Build schema condition
  //
  const slist = Object.keys(self.__compiled__)
    .filter(function (name) {
      // Filter disabled & fake schemas
      return name.length > 0 && self.__compiled__[name]
    })
    .map(escapeRE)
    .join('|');
  // (?!_) cause 1.5x slowdown
  self.re.schema_test = RegExp('(^|(?!_)(?:[><\uff5c]|' + re.src_ZPCc + '))(' + slist + ')', 'i');
  self.re.schema_search = RegExp('(^|(?!_)(?:[><\uff5c]|' + re.src_ZPCc + '))(' + slist + ')', 'ig');
  self.re.schema_at_start = RegExp('^' + self.re.schema_search.source, 'i');

  self.re.pretest = RegExp(
    '(' + self.re.schema_test.source + ')|(' + self.re.host_fuzzy_test.source + ')|@',
    'i'
  );

  //
  // Cleanup
  //

  resetScanCache(self);
}

/**
 * class Match
 *
 * Match result. Single element of array, returned by [[LinkifyIt#match]]
 **/
function Match (self, shift) {
  const start = self.__index__;
  const end = self.__last_index__;
  const text = self.__text_cache__.slice(start, end);

  /**
   * Match#schema -> String
   *
   * Prefix (protocol) for matched string.
   **/
  this.schema = self.__schema__.toLowerCase();
  /**
   * Match#index -> Number
   *
   * First position of matched string.
   **/
  this.index = start + shift;
  /**
   * Match#lastIndex -> Number
   *
   * Next position after matched string.
   **/
  this.lastIndex = end + shift;
  /**
   * Match#raw -> String
   *
   * Matched string.
   **/
  this.raw = text;
  /**
   * Match#text -> String
   *
   * Notmalized text of matched string.
   **/
  this.text = text;
  /**
   * Match#url -> String
   *
   * Normalized url of matched string.
   **/
  this.url = text;
}

function createMatch (self, shift) {
  const match = new Match(self, shift);

  self.__compiled__[match.schema].normalize(match, self);

  return match
}

/**
 * class LinkifyIt
 **/

/**
 * new LinkifyIt(schemas, options)
 * - schemas (Object): Optional. Additional schemas to validate (prefix/validator)
 * - options (Object): { fuzzyLink|fuzzyEmail|fuzzyIP: true|false }
 *
 * Creates new linkifier instance with optional additional schemas.
 * Can be called without `new` keyword for convenience.
 *
 * By default understands:
 *
 * - `http(s)://...` , `ftp://...`, `mailto:...` & `//...` links
 * - "fuzzy" links and emails (example.com, foo@bar.com).
 *
 * `schemas` is an object, where each key/value describes protocol/rule:
 *
 * - __key__ - link prefix (usually, protocol name with `:` at the end, `skype:`
 *   for example). `linkify-it` makes shure that prefix is not preceeded with
 *   alphanumeric char and symbols. Only whitespaces and punctuation allowed.
 * - __value__ - rule to check tail after link prefix
 *   - _String_ - just alias to existing rule
 *   - _Object_
 *     - _validate_ - validator function (should return matched length on success),
 *       or `RegExp`.
 *     - _normalize_ - optional function to normalize text & url of matched result
 *       (for example, for @twitter mentions).
 *
 * `options`:
 *
 * - __fuzzyLink__ - recognige URL-s without `http(s):` prefix. Default `true`.
 * - __fuzzyIP__ - allow IPs in fuzzy links above. Can conflict with some texts
 *   like version numbers. Default `false`.
 * - __fuzzyEmail__ - recognize emails without `mailto:` prefix.
 *
 **/
function LinkifyIt (schemas, options) {
  if (!(this instanceof LinkifyIt)) {
    return new LinkifyIt(schemas, options)
  }

  if (!options) {
    if (isOptionsObj(schemas)) {
      options = schemas;
      schemas = {};
    }
  }

  this.__opts__ = assign({}, defaultOptions, options);

  // Cache last tested result. Used to skip repeating steps on next `match` call.
  this.__index__ = -1;
  this.__last_index__ = -1; // Next scan position
  this.__schema__ = '';
  this.__text_cache__ = '';

  this.__schemas__ = assign({}, defaultSchemas, schemas);
  this.__compiled__ = {};

  this.__tlds__ = tlds_default;
  this.__tlds_replaced__ = false;

  this.re = {};

  compile(this);
}

/** chainable
 * LinkifyIt#add(schema, definition)
 * - schema (String): rule name (fixed pattern prefix)
 * - definition (String|RegExp|Object): schema definition
 *
 * Add new rule definition. See constructor description for details.
 **/
LinkifyIt.prototype.add = function add (schema, definition) {
  this.__schemas__[schema] = definition;
  compile(this);
  return this
};

/** chainable
 * LinkifyIt#set(options)
 * - options (Object): { fuzzyLink|fuzzyEmail|fuzzyIP: true|false }
 *
 * Set recognition options for links without schema.
 **/
LinkifyIt.prototype.set = function set (options) {
  this.__opts__ = assign(this.__opts__, options);
  return this
};

/**
 * LinkifyIt#test(text) -> Boolean
 *
 * Searches linkifiable pattern and returns `true` on success or `false` on fail.
 **/
LinkifyIt.prototype.test = function test (text) {
  // Reset scan cache
  this.__text_cache__ = text;
  this.__index__ = -1;

  if (!text.length) { return false }

  let m, ml, me, len, shift, next, re, tld_pos, at_pos;

  // try to scan for link with schema - that's the most simple rule
  if (this.re.schema_test.test(text)) {
    re = this.re.schema_search;
    re.lastIndex = 0;
    while ((m = re.exec(text)) !== null) {
      len = this.testSchemaAt(text, m[2], re.lastIndex);
      if (len) {
        this.__schema__ = m[2];
        this.__index__ = m.index + m[1].length;
        this.__last_index__ = m.index + m[0].length + len;
        break
      }
    }
  }

  if (this.__opts__.fuzzyLink && this.__compiled__['http:']) {
    // guess schemaless links
    tld_pos = text.search(this.re.host_fuzzy_test);
    if (tld_pos >= 0) {
      // if tld is located after found link - no need to check fuzzy pattern
      if (this.__index__ < 0 || tld_pos < this.__index__) {
        if ((ml = text.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null) {
          shift = ml.index + ml[1].length;

          if (this.__index__ < 0 || shift < this.__index__) {
            this.__schema__ = '';
            this.__index__ = shift;
            this.__last_index__ = ml.index + ml[0].length;
          }
        }
      }
    }
  }

  if (this.__opts__.fuzzyEmail && this.__compiled__['mailto:']) {
    // guess schemaless emails
    at_pos = text.indexOf('@');
    if (at_pos >= 0) {
      // We can't skip this check, because this cases are possible:
      // 192.168.1.1@gmail.com, my.in@example.com
      if ((me = text.match(this.re.email_fuzzy)) !== null) {
        shift = me.index + me[1].length;
        next = me.index + me[0].length;

        if (this.__index__ < 0 || shift < this.__index__ ||
            (shift === this.__index__ && next > this.__last_index__)) {
          this.__schema__ = 'mailto:';
          this.__index__ = shift;
          this.__last_index__ = next;
        }
      }
    }
  }

  return this.__index__ >= 0
};

/**
 * LinkifyIt#pretest(text) -> Boolean
 *
 * Very quick check, that can give false positives. Returns true if link MAY BE
 * can exists. Can be used for speed optimization, when you need to check that
 * link NOT exists.
 **/
LinkifyIt.prototype.pretest = function pretest (text) {
  return this.re.pretest.test(text)
};

/**
 * LinkifyIt#testSchemaAt(text, name, position) -> Number
 * - text (String): text to scan
 * - name (String): rule (schema) name
 * - position (Number): text offset to check from
 *
 * Similar to [[LinkifyIt#test]] but checks only specific protocol tail exactly
 * at given position. Returns length of found pattern (0 on fail).
 **/
LinkifyIt.prototype.testSchemaAt = function testSchemaAt (text, schema, pos) {
  // If not supported schema check requested - terminate
  if (!this.__compiled__[schema.toLowerCase()]) {
    return 0
  }
  return this.__compiled__[schema.toLowerCase()].validate(text, pos, this)
};

/**
 * LinkifyIt#match(text) -> Array|null
 *
 * Returns array of found link descriptions or `null` on fail. We strongly
 * recommend to use [[LinkifyIt#test]] first, for best speed.
 *
 * ##### Result match description
 *
 * - __schema__ - link schema, can be empty for fuzzy links, or `//` for
 *   protocol-neutral  links.
 * - __index__ - offset of matched text
 * - __lastIndex__ - index of next char after mathch end
 * - __raw__ - matched text
 * - __text__ - normalized text
 * - __url__ - link, generated from matched text
 **/
LinkifyIt.prototype.match = function match (text) {
  const result = [];
  let shift = 0;

  // Try to take previous element from cache, if .test() called before
  if (this.__index__ >= 0 && this.__text_cache__ === text) {
    result.push(createMatch(this, shift));
    shift = this.__last_index__;
  }

  // Cut head if cache was used
  let tail = shift ? text.slice(shift) : text;

  // Scan string until end reached
  while (this.test(tail)) {
    result.push(createMatch(this, shift));

    tail = tail.slice(this.__last_index__);
    shift += this.__last_index__;
  }

  if (result.length) {
    return result
  }

  return null
};

/**
 * LinkifyIt#matchAtStart(text) -> Match|null
 *
 * Returns fully-formed (not fuzzy) link if it starts at the beginning
 * of the string, and null otherwise.
 **/
LinkifyIt.prototype.matchAtStart = function matchAtStart (text) {
  // Reset scan cache
  this.__text_cache__ = text;
  this.__index__ = -1;

  if (!text.length) return null

  const m = this.re.schema_at_start.exec(text);
  if (!m) return null

  const len = this.testSchemaAt(text, m[2], m[0].length);
  if (!len) return null

  this.__schema__ = m[2];
  this.__index__ = m.index + m[1].length;
  this.__last_index__ = m.index + m[0].length + len;

  return createMatch(this, 0)
};

/** chainable
 * LinkifyIt#tlds(list [, keepOld]) -> this
 * - list (Array): list of tlds
 * - keepOld (Boolean): merge with current list if `true` (`false` by default)
 *
 * Load (or merge) new tlds list. Those are user for fuzzy links (without prefix)
 * to avoid false positives. By default this algorythm used:
 *
 * - hostname with any 2-letter root zones are ok.
 * - biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф
 *   are ok.
 * - encoded (`xn--...`) root zones are ok.
 *
 * If list is replaced, then exact match for 2-chars root zones will be checked.
 **/
LinkifyIt.prototype.tlds = function tlds (list, keepOld) {
  list = Array.isArray(list) ? list : [list];

  if (!keepOld) {
    this.__tlds__ = list.slice();
    this.__tlds_replaced__ = true;
    compile(this);
    return this
  }

  this.__tlds__ = this.__tlds__.concat(list)
    .sort()
    .filter(function (el, idx, arr) {
      return el !== arr[idx - 1]
    })
    .reverse();

  compile(this);
  return this
};

/**
 * LinkifyIt#normalize(match)
 *
 * Default normalizer (if schema does not define it's own).
 **/
LinkifyIt.prototype.normalize = function normalize (match) {
  // Do minimal possible changes by default. Need to collect feedback prior
  // to move forward https://github.com/markdown-it/linkify-it/issues/1

  if (!match.schema) { match.url = 'http://' + match.url; }

  if (match.schema === 'mailto:' && !/^mailto:/i.test(match.url)) {
    match.url = 'mailto:' + match.url;
  }
};

/**
 * LinkifyIt#onCompile()
 *
 * Override to modify basic RegExp-s.
 **/
LinkifyIt.prototype.onCompile = function onCompile () {
};

module.exports = LinkifyIt;


/***/ }),

/***/ 42869:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


let widthObj;
const calB2cWidth = () => {
  let winWidth = $(window).width();
  let itemlistW = 268;
  let turnpW = 130;
  let storeList = 304;
  let allProductW = winWidth - turnpW * 2 - storeList;
  let showListNum = parseInt(allProductW / itemlistW);
  // 如果使用最小的翻页宽度能再增加一个商品list 就再增加， 宽度动态计算
  if (allProductW - showListNum * itemlistW + 80 > 268) {
    showListNum++;
    turnpW = parseInt((winWidth - showListNum * itemlistW - storeList) / 2);
    allProductW = winWidth - turnpW * 2 - storeList;
  }
  return {
    productW: allProductW,
    turnpW: turnpW,
    showListNum: showListNum
  };
};
module.exports.init = () => {
  if (widthObj) return widthObj;
  let winWidth = $(window).width();
  let itemlistW = 268;
  let turnpW = 147;
  let allProductW = winWidth - turnpW * 2;
  let showListNum = parseInt(allProductW / itemlistW);
  // 如果使用最小的翻页宽度能再增加一个商品list 就再增加， 宽度动态计算

  if (allProductW - showListNum * itemlistW + 92 > 268) {
    showListNum++;
    turnpW = parseInt((winWidth - showListNum * itemlistW) / 2);
    allProductW = winWidth - turnpW * 2;
  }
  if (G.site === 'amazon') {
    turnpW--;
  }
  let B2cW = calB2cWidth();
  widthObj = {
    'allProductW': allProductW,
    'turnpW': turnpW,
    'showListNum': showListNum,
    'b2cProductW': B2cW.productW,
    'b2cTurnpW': B2cW.turnpW,
    'b2cShowListNum': B2cW.showListNum
  };
  return widthObj;
};
module.exports.calBottomBar = () => {
  let logo = $('#bjd_logo').outerWidth();
  let leftCom = $('.left-compare').outerWidth();
  let adinfo = $('.nbt-adinfo').outerWidth();
  let close = $('.nbt-close-btn').outerWidth();
  let rightInfo = $('.right-info').outerWidth();
  let winWidth = $(window).width();
  if (rightInfo < 500) rightInfo = 502;
  // 110 价格走势宽度
  let comBox = winWidth - (logo + leftCom + adinfo + close + rightInfo);
  return comBox;
};
module.exports.clearWidthObj = () => {
  widthObj = null;
};

/***/ }),

/***/ 42965:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-sd-popup[data-v-b19132fc] {\n  position: fixed;\n  background: rgba(0, 0, 0, 0.5);\n  z-index: 999999;\n  padding: 8px;\n  border-radius: 8px;\n}\n.gwd-cursor[data-v-b19132fc] {\n  background: transparent;\n}\n.gwd-landscape[data-v-b19132fc]::before {\n  content: '';\n  position: absolute;\n  bottom: -28px;\n  left: 50%;\n  transform: translateX(-50%);\n  border: 14px solid transparent;\n  border-top-color: rgba(0, 0, 0, 0.5);\n}\n.gwd-landscape.gwd-cursor[data-v-b19132fc]::before {\n  border-top-color: transparent;\n}\n.gwd-portrait[data-v-b19132fc]::before {\n  content: '';\n  position: absolute;\n  right: -28px;\n  top: 50%;\n  transform: translateY(-50%);\n  border: 14px solid transparent;\n  border-left-color: rgba(0, 0, 0, 0.5);\n}\n.gwd-portrait.gwd-cursor[data-v-b19132fc]::before {\n  border-left-color: transparent;\n}\n", ""]);

// exports


/***/ }),

/***/ 43014:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-review-window[data-v-a38ef2b4] {\n  width: 398px;\n  height: 548px;\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  background: white;\n  border-radius: 12px;\n  padding: 24px;\n  box-sizing: border-box;\n}\n.gwd-review-window .gwd-title[data-v-a38ef2b4] {\n  font-size: 18px;\n  color: #11192d;\n}\n.gwd-review-window .gwd-item[data-v-a38ef2b4] {\n  position: relative;\n  height: 59px;\n  border: 1px solid #e6e9eb;\n  border-radius: 4px;\n  margin-top: 8px;\n  padding-right: 9px;\n  padding-left: 25px;\n}\n.gwd-review-window .gwd-item img[data-v-a38ef2b4] {\n  width: 51px;\n  height: 51px;\n  border-radius: 4px;\n}\n.gwd-review-window .gwd-item .gwd-item-title[data-v-a38ef2b4] {\n  font-size: 14px;\n  color: #11192d;\n  margin-left: 12px;\n  flex: 1;\n  word-break: break-all;\n  display: -webkit-box;\n  -webkit-line-clamp: 2;\n  -webkit-box-orient: vertical;\n  overflow: hidden;\n  display: box;\n  line-clamp: 2;\n  box-orient: vertical;\n}\n.gwd-review-window .gwd-item .gwd-item-count[data-v-a38ef2b4] {\n  font-size: 16px;\n  color: #ef6701;\n  margin-left: 5px;\n}\n.gwd-review-window button[data-v-a38ef2b4] {\n  margin-top: 24px;\n  width: 122px;\n  height: 32px;\n  border-radius: 4px;\n  border: 1px solid #ff9851;\n  color: #ef6701;\n  font-size: 14px;\n  background: white;\n  cursor: pointer;\n}\n", ""]);

// exports


/***/ }),

/***/ 43116:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ PromotionListvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ PromotionList)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PromotionList.vue?vue&type=template&id=79f90a80&scoped=true
var PromotionListvue_type_template_id_79f90a80_scoped_true = __webpack_require__(97342);
;// ./src/standard/module/components/PromotionList.vue?vue&type=template&id=79f90a80&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PromotionList.vue?vue&type=script&lang=js
var PromotionListvue_type_script_lang_js = __webpack_require__(55658);
;// ./src/standard/module/components/PromotionList.vue?vue&type=script&lang=js
 /* harmony default export */ const components_PromotionListvue_type_script_lang_js = (PromotionListvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PromotionList.vue?vue&type=style&index=0&id=79f90a80&prod&scoped=true&lang=less
var PromotionListvue_type_style_index_0_id_79f90a80_prod_scoped_true_lang_less = __webpack_require__(55718);
;// ./src/standard/module/components/PromotionList.vue?vue&type=style&index=0&id=79f90a80&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/PromotionList.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_PromotionListvue_type_script_lang_js,
  PromotionListvue_type_template_id_79f90a80_scoped_true/* render */.XX,
  PromotionListvue_type_template_id_79f90a80_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "79f90a80",
  null
  
)

/* harmony default export */ const PromotionList = (component.exports);

/***/ }),

/***/ 43487:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IiYjMjMwOyYjMTQ4OyYjMTgyOyYjMjMyOyYjMTgxOyYjMTgzOyI+CjxwYXRoIGlkPSJWZWN0b3IiIGQ9Ik04LjI1IDExQzguMDI1IDExIDcuODc1IDEwLjkyODYgNy43MjUgMTAuNzg1N0wzLjIyNSA2LjVDMi45MjUgNi4yMTQyOCAyLjkyNSA1Ljc4NTcxIDMuMjI1IDUuNUw3LjcyNSAxLjIxNDI5QzguMDI1IDAuOTI4NTcxIDguNDc1IDAuOTI4NTcxIDguNzc1IDEuMjE0MjlDOS4wNzUgMS41IDkuMDc1IDEuOTI4NTcgOC43NzUgMi4yMTQyOUw0LjggNkw4Ljc3NSA5Ljc4NTcxQzkuMDc1IDEwLjA3MTQgOS4wNzUgMTAuNSA4Ljc3NSAxMC43ODU3QzguNjI1IDEwLjkyODYgOC40NzUgMTEgOC4yNSAxMVoiIGZpbGw9IiMzQzRDNTQiLz4KPC9nPgo8L3N2Zz4K";

/***/ }),

/***/ 43552:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
module.exports = __webpack_require__.p + "images/extensions/build/26e60d1208ae7c617e30.png";

/***/ }),

/***/ 43623:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "a[data-v-0650373c]:hover {\n  text-decoration: none !important;\n}\n.gwd-scrollbar[data-v-0650373c] {\n  height: 100%;\n  z-index: 3;\n  position: relative;\n  overscroll-behavior-y: contain;\n  scrollbar-width: thin;\n}\n.gwd-overlay[data-v-0650373c] {\n  overscroll-behavior-y: contain;\n}\n.gwd-overlay .gwd-1688.gwd-app-window[data-v-0650373c] {\n  top: 0;\n}\n.gwd-overlay .gwd-app-window[data-v-0650373c] {\n  padding: 10px;\n  position: absolute;\n  top: 42px;\n  bottom: 0;\n  left: 0;\n  background: #f4f5f5;\n  width: 735px;\n  border-top-right-radius: 8px;\n  border-bottom-right-radius: 8px;\n  box-sizing: border-box;\n  transition: all 0.3s ease-in-out;\n}\n.gwd-overlay .gwd-app-window .gwd-window-close[data-v-0650373c] {\n  position: absolute;\n  top: 0;\n  right: -32px;\n  width: 24px;\n  height: 24px;\n}\n.gwd-overlay .gwd-app-window .gwd-window-close img[data-v-0650373c] {\n  width: 24px;\n  height: 24px;\n}\n.gwd-overlay .gwd-app-window .gwd-window-expand[data-v-0650373c] {\n  position: absolute;\n  right: -18px;\n  width: 36px;\n  height: 36px;\n  top: 50%;\n  background: #f4f5f5;\n  border-radius: 18px;\n  transform: translateY(-50%);\n}\n.gwd-overlay .gwd-app-window .gwd-window-expand img[data-v-0650373c] {\n  transition: all 0.3s ease;\n  width: 16px;\n  height: 16px;\n  transform: rotate(180deg) translate(-5px);\n}\n.gwd-overlay .gwd-app-window .gwd-window-left[data-v-0650373c] {\n  width: 220px;\n  background: white;\n  border-radius: 8px;\n}\n.gwd-overlay .gwd-app-window.gwd-expanded[data-v-0650373c] {\n  width: 1455px;\n}\n@media (max-width: 1440px) {\n.gwd-overlay .gwd-app-window.gwd-expanded[data-v-0650373c] {\n    width: 1210px;\n}\n}\n.gwd-overlay .gwd-app-window.gwd-expanded .gwd-window-expand img[data-v-0650373c] {\n  transform: rotate(0);\n}\n.gwd-overlay-bottom .gwd-app-window[data-v-0650373c] {\n  top: 0;\n  bottom: 60px;\n}\n.gwd-overlay-bottom.gwd-xhs .gwd-app-window[data-v-0650373c] {\n  bottom: 0;\n}\n.gwd-site-select[data-v-0650373c] {\n  width: 180px;\n  height: 40px;\n  line-height: 40px;\n  text-align: left;\n  border-radius: 8px;\n  font-size: 14px;\n  padding-left: 20px;\n  box-sizing: border-box;\n  color: #3c4c54;\n}\n.gwd-site-select.gwd-active[data-v-0650373c] {\n  background: #48bef3;\n  color: white;\n  text-decoration: none;\n  font-weight: bold;\n}\n.gwd-sort[data-v-0650373c] {\n  width: 100%;\n  box-sizing: border-box;\n  align-items: flex-start;\n}\n.gwd-sort span[data-v-0650373c] {\n  color: #999;\n  font-size: 13px;\n}\n.gwd-sort .gwd-sort-item[data-v-0650373c] {\n  display: inline-block;\n  background: white;\n  color: #3c4c54;\n  font-size: 13px;\n  height: 20px;\n  line-height: 20px;\n  padding-left: 8px;\n  padding-right: 8px;\n  border-radius: 10px;\n  margin-top: 23px;\n}\n.gwd-sort .gwd-sort-item.gwd-active[data-v-0650373c],\n.gwd-sort .gwd-sort-item[data-v-0650373c]:hover {\n  background: rgba(72, 190, 243, 0.1);\n  color: #38b4ee;\n  text-decoration: none;\n}\n.gwd-bjg .gwd-sort .gwd-sort-item.gwd-active[data-v-0650373c],\n.gwd-bjg .gwd-sort .gwd-sort-item[data-v-0650373c]:hover {\n  background: rgba(255, 193, 78, 0.1);\n  color: #ef6c00;\n  text-decoration: none;\n}\n.gwd-bjg .gwd-site-select.gwd-active[data-v-0650373c] {\n  background: #ff9706 !important;\n}\n.gwd-bjg .gwd-same-logo[data-v-0650373c] {\n  filter: hue-rotate(190deg) brightness(1);\n}\n.gwd-bjg .gwd-window-right[data-v-0650373c] {\n  background: white;\n  margin-left: 10px;\n  padding-top: 11px;\n  border-radius: 8px;\n  z-index: 9;\n}\n.gwd-bjg.gwd-overlay .gwd-app-window[data-v-0650373c] {\n  width: 741px;\n}\n.gwd-bjg .gwd-app-window.gwd-expanded[data-v-0650373c] {\n  width: 1455px;\n}\nhr[data-v-0650373c] {\n  width: 172px;\n  border-top: 1px solid #e6e9eb;\n  border-bottom: none;\n}\n", ""]);

// exports


/***/ }),

/***/ 43642:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ MiniBarCollectionButtonvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ MiniBarCollectionButton)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/MiniBarCollectionButton.vue?vue&type=template&id=d3ad16a8&scoped=true
var MiniBarCollectionButtonvue_type_template_id_d3ad16a8_scoped_true = __webpack_require__(6301);
;// ./src/standard/module/components/MiniBarCollectionButton.vue?vue&type=template&id=d3ad16a8&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/MiniBarCollectionButton.vue?vue&type=script&lang=js
var MiniBarCollectionButtonvue_type_script_lang_js = __webpack_require__(42629);
;// ./src/standard/module/components/MiniBarCollectionButton.vue?vue&type=script&lang=js
 /* harmony default export */ const components_MiniBarCollectionButtonvue_type_script_lang_js = (MiniBarCollectionButtonvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/MiniBarCollectionButton.vue?vue&type=style&index=0&id=d3ad16a8&prod&scoped=true&lang=less
var MiniBarCollectionButtonvue_type_style_index_0_id_d3ad16a8_prod_scoped_true_lang_less = __webpack_require__(99937);
;// ./src/standard/module/components/MiniBarCollectionButton.vue?vue&type=style&index=0&id=d3ad16a8&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/MiniBarCollectionButton.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_MiniBarCollectionButtonvue_type_script_lang_js,
  MiniBarCollectionButtonvue_type_template_id_d3ad16a8_scoped_true/* render */.XX,
  MiniBarCollectionButtonvue_type_template_id_d3ad16a8_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "d3ad16a8",
  null
  
)

/* harmony default export */ const MiniBarCollectionButton = (component.exports);

/***/ }),

/***/ 43724:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var fails = __webpack_require__(79039);

// Detect IE8's incomplete defineProperty implementation
module.exports = !fails(function () {
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
});


/***/ }),

/***/ 43727:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "\n.gwd-md-result {\n  flex: 1;\n}\n.gwd-feedback {\n  box-sizing: border-box;\n  padding-left: 7px;\n  text-decoration: none;\n  position: absolute;\n  width: 100px;\n  height: 32px;\n  border-radius: 4px 4px 4px 4px;\n  border: 1px solid #C3C3C3;\n  background: transparent;\n  font-size: 14px;\n  color: #404547;\n  top: 24px;\n  right: 77px;\n&:hover {\n    color: #404547;\n    text-decoration: none;\n}\n}\n", ""]);

// exports


/***/ }),

/***/ 43783:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-row[data-v-08c0879c] {\n  display: flex;\n  flex-direction: row;\n}\n.gwd-inline-row[data-v-08c0879c] {\n  display: inline-flex;\n  flex-direction: row;\n}\n.gwd-column[data-v-08c0879c] {\n  display: flex;\n  flex-direction: column;\n}\n.gwd-inline-column[data-v-08c0879c] {\n  display: inline-flex;\n  flex-direction: column;\n}\n.gwd-align[data-v-08c0879c] {\n  align-content: center;\n  align-items: center;\n}\n.gwd-jcc[data-v-08c0879c] {\n  justify-content: center;\n}\n.gwd-jic[data-v-08c0879c] {\n  justify-items: center;\n}\n.gwd-button[data-v-08c0879c] {\n  outline: none;\n  border: none;\n}\n.bjg-bar-button[data-v-08c0879c] {\n  font-size: 0;\n}\n.bjg-hover-bg[data-v-08c0879c] {\n  background: #fffbef;\n}\n.bjg-bar-button[data-v-08c0879c]:hover {\n  background: #fffbef;\n  cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window[data-v-08c0879c] {\n  display: block;\n}\n.mainbar-fold .bjg-bar-button[data-v-08c0879c],\n.mainbar-fold #top_coupon_btn[data-v-08c0879c],\n.mainbar-fold .rinfo-btn[data-v-08c0879c],\n.mainbar-fold .gwd-bottom-tmall[data-v-08c0879c] {\n  display: none!important;\n}\n.gwd-font12[data-v-08c0879c] {\n  font-size: 12px;\n}\n.gwd-font14[data-v-08c0879c] {\n  font-size: 14px;\n}\n.gwd-red[data-v-08c0879c] {\n  color: #ff3532;\n}\n.gwd-red-bg[data-v-08c0879c] {\n  background: #ff3532;\n}\n.gwd-hui333[data-v-08c0879c] {\n  color: #333333;\n}\n.gwd-hui999[data-v-08c0879c] {\n  color: #999999;\n}\n.gwd-font10[data-v-08c0879c] {\n  font-size: 12px;\n  transform: scale(0.8333);\n  transform-origin: bottom center;\n}\n.gwd-font11[data-v-08c0879c] {\n  font-size: 12px;\n  transform: scale(0.91666);\n  transform-origin: bottom center;\n}\n.gwd-font9[data-v-08c0879c] {\n  font-size: 12px;\n  transform: scale(0.75);\n  transform-origin: bottom center;\n}\n.gwd-hoverable[data-v-08c0879c]:hover {\n  background: #edf1f2;\n}\n.right-info > *[data-v-08c0879c] {\n  border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit[data-v-08c0879c]:hover {\n  color: #e03024 !important;\n}\n.gwd-button[data-v-08c0879c]:hover {\n  filter: brightness(1.1);\n}\n.gwd-button[data-v-08c0879c] {\n  padding-top: 1px;\n  padding-bottom: 1px;\n}\n.gwd-button[data-v-08c0879c]:active {\n  filter: brightness(0.9);\n}\n.gwd-fadeout-5s[data-v-08c0879c] {\n  opacity: 0;\n  transition: opacity 5s;\n}\n.gwd-scrollbar[data-v-08c0879c]::-webkit-scrollbar {\n  width: 6px;\n  border-radius: 17px;\n}\n.gwd-scrollbar[data-v-08c0879c]::-webkit-scrollbar-thumb {\n  border-radius: 17px;\n  background: #999;\n}\n#gwdang_main[data-v-08c0879c],\n.gwdang-main[data-v-08c0879c],\n.bjgext-detail[data-v-08c0879c] {\n  font-size: 12px;\n}\n#gwdang_main button[data-v-08c0879c],\n.gwdang-main button[data-v-08c0879c],\n.bjgext-detail button[data-v-08c0879c] {\n  text-align: center;\n}\n.gwd-width-100[data-v-08c0879c] {\n  width: 100%;\n}\n.gwd-overlay[data-v-08c0879c] {\n  font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n  font-size: 0;\n  position: fixed;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  background: rgba(0, 0, 0, 0.35);\n  z-index: 999999999;\n}\n.gwd-font-pfm[data-v-08c0879c] {\n  font-family: 'PingFangSC-Medium';\n  font-weight: normal!important;\n}\n@font-face {\n  font-family: 'PingFangSC-Medium';\n  src: local('PingFangSC-Medium');\n}\n.gwd-font-pfm[data-v-08c0879c] {\n  font-family: local('PingFangSC-Medium'), system-ui;\n  font-weight: bold;\n}\n#gwd_minibar svg[data-v-08c0879c],\n.gwdang-main svg[data-v-08c0879c],\n#bjgext_mb_bg svg[data-v-08c0879c],\n#bjgext_mainbar svg[data-v-08c0879c] {\n  fill: transparent;\n}\n.gwd-common-font[data-v-08c0879c] {\n  font-family: 'PingFang SC', 'Microsoft YaHei', '\\5FAE\\8F6F\\96C5\\9ED1', 'Hiragino Sans GB', 'WenQuanYi Micro Hei';\n}\n.gwd-button[data-v-08c0879c] {\n  background: #48befe;\n  width: 184px;\n  height: 38px;\n  border: none;\n  border-radius: 4px;\n  margin-top: 24px;\n  font-size: 16px;\n  color: white;\n}\n.gwd-privacy-dialog[data-v-08c0879c] {\n  position: fixed;\n  width: 492px;\n  top: 311px;\n  left: 50%;\n  transform: translate(-50%, 0);\n  background: #1c3e59;\n}\n.gwd-privacy-dialog .title[data-v-08c0879c],\n.gwd-privacy-dialog .content[data-v-08c0879c] {\n  padding-left: 24px;\n  padding-right: 24px;\n}\n.gwd-privacy-dialog .title[data-v-08c0879c] {\n  font-size: 18px;\n  font-weight: 500;\n  color: #fff;\n  height: 57px;\n  border-bottom: 1px solid rgba(255, 255, 255, 0.15);\n}\n.gwd-privacy-dialog .content[data-v-08c0879c] {\n  flex: 1;\n  padding-bottom: 24px;\n}\n.gwd-privacy-dialog .content .options[data-v-08c0879c] {\n  background: #244660;\n  padding-left: 24px;\n  padding-right: 24px;\n  margin-top: 24px;\n  width: 100%;\n}\n.gwd-privacy-dialog .content .options .option[data-v-08c0879c] {\n  justify-content: space-between;\n  padding-top: 13px;\n  padding-bottom: 16px;\n}\n.gwd-privacy-dialog .content .options .big[data-v-08c0879c] {\n  font-weight: 400;\n  color: #fff;\n  font-size: 16px;\n}\n.gwd-privacy-dialog .content .options .small[data-v-08c0879c] {\n  font-size: 12px;\n  color: rgba(255, 255, 255, 0.4);\n}\n", ""]);

// exports


/***/ }),

/***/ 44100:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(80709);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("2fea7440", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 44141:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "#gwd_mini_compare[data-v-5aa6bd38] {\n  width: 155px;\n  cursor: default;\n  text-align: center;\n  font-family: 'Microsoft YaHei', Arial, SimSun !important;\n}\n#gwd_mini_compare[data-v-5aa6bd38]:hover {\n  background-color: #edf1f2;\n}\n#gwd_mini_compare.gwd-fake-tr[data-v-5aa6bd38]:hover {\n  background-color: transparent;\n}\n#gwd_mini_compare.bjg[data-v-5aa6bd38] {\n  border-right: 1px solid #e6e9eb;\n}\n.setting-bg[data-v-5aa6bd38] {\n  background: url('https://cdn.gwdang.com/images/extensions/xbt/new_wishlist_pg5_2.png') no-repeat;\n  width: 18px;\n  height: 18px;\n  vertical-align: middle;\n  float: left;\n  margin-right: 8px;\n  margin-top: 0px;\n}\n.mini-compare-icon[data-v-5aa6bd38] {\n  background-position: -93px -134px;\n}\n.minibar-btn-box[data-v-5aa6bd38] {\n  display: inline-flex;\n  align-items: center;\n  margin: 0 auto;\n  float: none;\n  height: 100%;\n}\n.minibar-btn-box *[data-v-5aa6bd38] {\n  float: left;\n}\n.minibar-btn-box span[data-v-5aa6bd38] {\n  color: #404547;\n  font-size: 13px;\n}\n.minibar-btn-box span em[data-v-5aa6bd38] {\n  font-style: normal;\n  line-height: 36px;\n}\n.minibar-btn-box span .price-em[data-v-5aa6bd38] {\n  margin-left: 2px;\n  line-height: 37px;\n  font-weight: normal;\n}\n#gwd_mini_compare_detail[data-v-5aa6bd38] {\n  display: none;\n}\n#gwd_mini_compare:hover #gwd_mini_compare_detail[data-v-5aa6bd38] {\n  display: block;\n}\n", ""]);

// exports


/***/ }),

/***/ 44209:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var wellKnownSymbol = __webpack_require__(78227);
var Iterators = __webpack_require__(26269);

var ITERATOR = wellKnownSymbol('iterator');
var ArrayPrototype = Array.prototype;

// check on default Array iterator
module.exports = function (it) {
  return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
};


/***/ }),

/***/ 44213:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var DESCRIPTORS = __webpack_require__(43724);
var uncurryThis = __webpack_require__(79504);
var call = __webpack_require__(69565);
var fails = __webpack_require__(79039);
var objectKeys = __webpack_require__(71072);
var getOwnPropertySymbolsModule = __webpack_require__(33717);
var propertyIsEnumerableModule = __webpack_require__(48773);
var toObject = __webpack_require__(48981);
var IndexedObject = __webpack_require__(47055);

// eslint-disable-next-line es/no-object-assign -- safe
var $assign = Object.assign;
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
var defineProperty = Object.defineProperty;
var concat = uncurryThis([].concat);

// `Object.assign` method
// https://tc39.es/ecma262/#sec-object.assign
module.exports = !$assign || fails(function () {
  // should have correct order of operations (Edge bug)
  if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
    enumerable: true,
    get: function () {
      defineProperty(this, 'b', {
        value: 3,
        enumerable: false
      });
    }
  }), { b: 2 })).b !== 1) return true;
  // should work with symbols and should have deterministic property order (V8 bug)
  var A = {};
  var B = {};
  // eslint-disable-next-line es/no-symbol -- safe
  var symbol = Symbol('assign detection');
  var alphabet = 'abcdefghijklmnopqrst';
  A[symbol] = 7;
  // eslint-disable-next-line es/no-array-prototype-foreach -- safe
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  var T = toObject(target);
  var argumentsLength = arguments.length;
  var index = 1;
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  var propertyIsEnumerable = propertyIsEnumerableModule.f;
  while (argumentsLength > index) {
    var S = IndexedObject(arguments[index++]);
    var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
    var length = keys.length;
    var j = 0;
    var key;
    while (length > j) {
      key = keys[j++];
      if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
    }
  } return T;
} : $assign;


/***/ }),

/***/ 44265:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var userAgent = __webpack_require__(82839);

module.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';


/***/ }),

/***/ 44442:
/***/ ((module) => {

"use strict";


// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.

function ZStream() {
  /* next input byte */
  this.input = null; // JS specific, because we have no pointers
  this.next_in = 0;
  /* number of bytes available at input */
  this.avail_in = 0;
  /* total number of input bytes read so far */
  this.total_in = 0;
  /* next output byte should be put there */
  this.output = null; // JS specific, because we have no pointers
  this.next_out = 0;
  /* remaining free space at output */
  this.avail_out = 0;
  /* total number of bytes output so far */
  this.total_out = 0;
  /* last error message, NULL if no error */
  this.msg = ''/*Z_NULL*/;
  /* not visible by applications */
  this.state = null;
  /* best guess about the data type: binary or text */
  this.data_type = 2/*Z_UNKNOWN*/;
  /* adler32 value of the uncompressed data */
  this.adler = 0;
}

module.exports = ZStream;


/***/ }),

/***/ 44451:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-inline-row gwd-align gwd-tkl",
    staticStyle: {
      "margin-left": "10px"
    }
  }, [_c("div", {
    staticClass: "gwd-vline"
  }), _vm._v(" "), _c("img", {
    staticStyle: {
      width: "14px",
      height: "14px"
    },
    attrs: {
      src: "https://cdn.gwdang.com/images/extensions/commonpng/cptkl.png",
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "font-size": "14px",
      color: "#ef6701",
      "margin-left": "4px",
      cursor: "pointer",
      "white-space": "nowrap"
    },
    on: {
      click: _vm.click
    }
  }, [_vm._v(_vm._s(_vm.tkl ? _vm.copied ? "复制成功" : `点击复制${_vm.error ? "链接" : "淘口令"}` : "生成淘口令"))]), _vm._v(" "), _c("span", {
    staticClass: "gwd-hint",
    staticStyle: {
      "font-size": "14px",
      color: "#999",
      "margin-left": "10px"
    }
  }, [_vm._v("（一键分享到微信或QQ）")]), _vm._v(" "), _vm.error ? void 0 : _vm._e()], 2);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 44490:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-clock[data-v-1b85940e] {\n  position: fixed;\n  right: 94px;\n  bottom: 81px;\n  width: 253px;\n  height: 104px;\n  background: #FFFFFF;\n  padding-left: 10px;\n  box-sizing: border-box;\n  box-shadow: 0px 2px 8px 0px rgba(198, 198, 198, 0.5);\n  border-radius: 2px;\n  font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n  z-index: 9999;\n}\n.gwd-clock .gwd-line[data-v-1b85940e] {\n  display: flex;\n  align-content: center;\n  width: 100%;\n}\n.gwd-clock .gwd-smallText[data-v-1b85940e] {\n  display: inline-block;\n  font-size: 12px;\n}\n.gwd-clock .gwd-clock-timer[data-v-1b85940e] {\n  line-height: 34px;\n}\n.gwd-clock .gwd-clock-timer span[data-v-1b85940e] {\n  display: inline-block;\n}\n", ""]);

// exports


/***/ }),

/***/ 44576:
/***/ (function(module) {

"use strict";

var check = function (it) {
  return it && it.Math === Math && it;
};

// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
module.exports =
  // eslint-disable-next-line es/no-global-this -- safe
  check(typeof globalThis == 'object' && globalThis) ||
  check(typeof window == 'object' && window) ||
  // eslint-disable-next-line no-restricted-globals -- safe
  check(typeof self == 'object' && self) ||
  check(typeof global == 'object' && global) ||
  check(typeof this == 'object' && this) ||
  // eslint-disable-next-line no-new-func -- fallback
  (function () { return this; })() || Function('return this')();


/***/ }),

/***/ 44666:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ GiftMoney)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/GiftMoney.vue?vue&type=template&id=cda10c54&scoped=true
var GiftMoneyvue_type_template_id_cda10c54_scoped_true = __webpack_require__(97013);
;// ./src/common/components/GiftMoney.vue?vue&type=template&id=cda10c54&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/GiftMoney.vue?vue&type=script&lang=js
var GiftMoneyvue_type_script_lang_js = __webpack_require__(82648);
;// ./src/common/components/GiftMoney.vue?vue&type=script&lang=js
 /* harmony default export */ const components_GiftMoneyvue_type_script_lang_js = (GiftMoneyvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/GiftMoney.vue?vue&type=style&index=0&id=cda10c54&prod&scoped=true&lang=less
var GiftMoneyvue_type_style_index_0_id_cda10c54_prod_scoped_true_lang_less = __webpack_require__(45597);
;// ./src/common/components/GiftMoney.vue?vue&type=style&index=0&id=cda10c54&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(85072);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(97825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(77659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(55056);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(10540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(41113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/GiftMoney.vue?vue&type=style&index=1&id=cda10c54&prod&scoped=true&lang=css
var GiftMoneyvue_type_style_index_1_id_cda10c54_prod_scoped_true_lang_css = __webpack_require__(32290);
var GiftMoneyvue_type_style_index_1_id_cda10c54_prod_scoped_true_lang_css_default = /*#__PURE__*/__webpack_require__.n(GiftMoneyvue_type_style_index_1_id_cda10c54_prod_scoped_true_lang_css);
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/GiftMoney.vue?vue&type=style&index=1&id=cda10c54&prod&scoped=true&lang=css

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());

      options.insert = insertBySelector_default().bind(null, "head");
    
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()((GiftMoneyvue_type_style_index_1_id_cda10c54_prod_scoped_true_lang_css_default()), options);




       /* harmony default export */ const components_GiftMoneyvue_type_style_index_1_id_cda10c54_prod_scoped_true_lang_css = ((GiftMoneyvue_type_style_index_1_id_cda10c54_prod_scoped_true_lang_css_default()) && (GiftMoneyvue_type_style_index_1_id_cda10c54_prod_scoped_true_lang_css_default()).locals ? (GiftMoneyvue_type_style_index_1_id_cda10c54_prod_scoped_true_lang_css_default()).locals : undefined);

;// ./src/common/components/GiftMoney.vue?vue&type=style&index=1&id=cda10c54&prod&scoped=true&lang=css

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/GiftMoney.vue



;



/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_GiftMoneyvue_type_script_lang_js,
  GiftMoneyvue_type_template_id_cda10c54_scoped_true/* render */.XX,
  GiftMoneyvue_type_template_id_cda10c54_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "cda10c54",
  null
  
)

/* harmony default export */ const GiftMoney = (component.exports);

/***/ }),

/***/ 44679:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(25756);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("6049c4ec", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 44772:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-pdd-act-bottom-qr[data-v-770c6b88] {\n  display: inline-block;\n  font-family: \"Microsoft YaHei\";\n  margin-top: 3px;\n  box-sizing: border-box !important;\n}\n.gwd-pdd-act-bottom-qr .top[data-v-770c6b88] {\n  position: relative;\n  width: 150px;\n  height: 28px;\n  background: #f40209;\n  display: flex;\n  align-items: center;\n  cursor: pointer;\n}\n.gwd-pdd-act-bottom-qr .top .bold[data-v-770c6b88] {\n  font-size: 12px;\n  height: 12px;\n  line-height: 11px;\n  color: white;\n  font-weight: bold;\n}\n.gwd-pdd-act-bottom-qr .top .circle[data-v-770c6b88] {\n  width: 22px;\n  height: 22px;\n  border-radius: 11px;\n  display: inline-block;\n  margin-right: 4px;\n  line-height: 22px;\n  font-size: 12px;\n  color: white;\n  text-align: center;\n  font-weight: bold;\n  background: #FFC034;\n}\n.gwd-pdd-act-bottom-qr .top .qr-area[data-v-770c6b88] {\n  position: absolute;\n  left: 0;\n  width: 150px;\n  box-sizing: border-box !important;\n  top: 28px;\n  height: 158px;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  background: #FFF7F6;\n  border: 1px solid #EF2C29;\n}\n.gwd-pdd-act-bottom-qr .top .qr-area img[data-v-770c6b88] {\n  width: 120px;\n  height: 120px;\n}\n.gwd-pdd-act-bottom-qr .top:hover .qr-area[data-v-770c6b88] {\n  display: flex!important;\n}\n.gwd-pdd-act-bottom-qr .top-2[data-v-770c6b88] {\n  width: 158px;\n  background: url(" + __webpack_require__(40927) + ");\n  background-size: cover;\n}\n", ""]);

// exports


/***/ }),

/***/ 44900:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _Teleport = _interopRequireDefault(__webpack_require__(6527));
var _ShaiDanPicTooltip = _interopRequireDefault(__webpack_require__(41859));
const scrollFunc = _this => {
  if (_this.over) {
    const rect = _this.$el.getBoundingClientRect();
    _this.x = rect.left;
    _this.y = rect.top;
  }
};
var _default = exports.A = {
  components: {
    ShaiDanPicTooltip: _ShaiDanPicTooltip.default,
    Teleport: _Teleport.default
  },
  props: ['img'],
  data() {
    return {
      over: false,
      overTip: false,
      x: 0,
      y: 0
    };
  },
  methods: {
    onMouseOver() {
      this.over = true;
      const rect = this.$el.getBoundingClientRect();
      this.x = rect.left;
      this.y = rect.top;
    },
    onMouseLeave() {
      this.over = false;
    }
  },
  mounted() {
    document.querySelector('.gwd-sd-list').addEventListener('scroll', () => scrollFunc(this));
    window.addEventListener('scroll', () => scrollFunc(this));
  }
};

/***/ }),

/***/ 45046:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, site_k = $data.site_k, keyword = $data.keyword, site_k2 = $data.site_k2;
    $$out += '<div class="search-tle">\n  <span class="blkcolor1">';
    $$out += $escape(site_k);
    $$out += '</span>\n  <em class="gwd_bg"></em>\n</div>\n<input class="search-input blkcolor3" value="';
    $$out += $escape(keyword);
    $$out += '" style="position: initial">\n<a href="" class="search-submit" target="_blank">\n  <em class="gwd_bg"></em>\n</a>\n<div class="bjd-search-list">\n  <span>';
    $$out += $escape(site_k2);
    $$out += '</span>\n  <span>京东</span>\n  <span>苏宁</span>\n  <!-- <span>亚马逊</span> -->\n  <span>当当</span>\n  <span>一号店</span>\n  <span>国美</span>\n  <span>购物党</span>\n  <style type="text/css">\n    .search-tle {\n      background: #F0F5F7;\n      width: 61px;\n      height: 28px;\n      border-right: none;\n      cursor: pointer;\n      border-bottom-left-radius: 18px;\n      border-top-left-radius: 18px;\n      line-height: 22px;\n      margin-top: 4px;\n    }\n    .search-tle.search-select {\n      border-bottom-left-radius: 0px;\n    }\n    .search-tle span {\n      float: left;\n      width: 36px;\n      height: 28px;\n      line-height: 28px;\n      margin-left: 10px;\n      text-align: center;\n      text-align: justify;\n      -webkit-text-align-last:justify;\n      font-size: 12px;\n    }\n    .search-tle em {\n      float: left;\n      height: 6px;\n      width: 10px;\n      margin-top: 12px;\n      margin-left: 5px;\n      background-position: -201px -15px;\n    }\n    .search-tle em.emup {\n      background-position: -201px -25px;\n    }\n    .bjd-search-list {\n      position: absolute;\n      height: 160px;\n      width: 70px;\n      display: none;\n      top: 32px;\n      background-color: #F0F5F7;\n      border: 1px solid #edf1f2;\n      border-top: none;\n    }\n    .gwd_amazon .bjd-search-list {\n      bottom: 57px;\n    }\n    .gwd_vipshop .bjd-search-list {\n      left: 10px;\n    }\n    .bjd-search-list span {\n      width: 36px;\n      margin-left: 10px;\n      font-size: 12px;\n      float: left;\n      height: 20px;\n      color: #303233;\n      cursor: pointer;\n      text-align: justify;\n      -webkit-text-align-last:justify;\n    }\n    .bjd-search-list span:hover {\n      color: #5ebeff;\n    }\n    @media screen and (-webkit-min-device-pixel-ratio:0){\n      .bjd-search-list span:after, .search-tle span:after{\n          content:".";\n          display: inline-block;\n          width:100%;\n          overflow:hidden;\n          height:0;\n      }\n    }\n    .search-input {\n      width: 123px;\n      margin: 0;\n      height: 28px;\n      padding: 0 4px 0 12px;\n      line-height: 28px;\n      border: 0px solid #cdcdcd;\n      border-left: none;\n      outline: 0;\n      font-size: 12px;\n      font-family: \'Microsoft YaHei\',tahoma,arial,SimSun;\n      background-color: #F0F5F7;\n      margin-top: 4px!important;\n    }\n    a.search-submit {\n      width: 30px;\n      height: 28px;\n      cursor: pointer;\n      background-color: #F0F5F7;\n      border-bottom-right-radius: 18px;\n      border-top-right-radius: 18px;\n      margin-top: 4px;\n    }\n    a.search-submit em {\n      width: 17px;\n      height: 24px;\n      background-position: -13px -39px;\n      display: inline-block;\n      float: right;\n      margin-right: 7px;\n      margin-top: 3px;\n    }\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 45077:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ CollectionSettingMini)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CollectionSettingMini.vue?vue&type=template&id=0e3edad3&scoped=true
var CollectionSettingMinivue_type_template_id_0e3edad3_scoped_true = __webpack_require__(72105);
;// ./src/standard/module/components/CollectionSettingMini.vue?vue&type=template&id=0e3edad3&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CollectionSettingMini.vue?vue&type=script&lang=js
var CollectionSettingMinivue_type_script_lang_js = __webpack_require__(82016);
;// ./src/standard/module/components/CollectionSettingMini.vue?vue&type=script&lang=js
 /* harmony default export */ const components_CollectionSettingMinivue_type_script_lang_js = (CollectionSettingMinivue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CollectionSettingMini.vue?vue&type=style&index=0&id=0e3edad3&prod&scoped=true&lang=less
var CollectionSettingMinivue_type_style_index_0_id_0e3edad3_prod_scoped_true_lang_less = __webpack_require__(56815);
;// ./src/standard/module/components/CollectionSettingMini.vue?vue&type=style&index=0&id=0e3edad3&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/CollectionSettingMini.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_CollectionSettingMinivue_type_script_lang_js,
  CollectionSettingMinivue_type_template_id_0e3edad3_scoped_true/* render */.XX,
  CollectionSettingMinivue_type_template_id_0e3edad3_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "0e3edad3",
  null
  
)

/* harmony default export */ const CollectionSettingMini = (component.exports);

/***/ }),

/***/ 45085:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("CommonCouponBarMini", {
    attrs: {
      icon: "https://cdn.gwdang.com/images/extensions/activity/giftMoneyV3@2x.png",
      type: "link",
      href: `https://tb.gwdang.com/extension/qrpage?tag=9_chrome&rebate=1&dp_id=${_vm.id}&discount=${_vm.value}${_vm.butie ? "&butie=1" : ""}`,
      text: _vm.text,
      couponValue: _vm.value,
      mainColor: "#ff3b5c",
      secondColor: "#ff809a",
      takeBg: _vm.takeBg,
      title: "购物党用户专享红包，下单自动抵扣！",
      qrTitle: "领红包"
    }
  });
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 45523:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "\n.gwd-circle-progress[data-v-1b000c10] {\n  display: inline-block;\n}\n.gwd-progress-segment[data-v-1b000c10] {\n  transition: all 0.3s ease;\n}\n.gwd-percentage-text[data-v-1b000c10] {\n  font-size: 20px;\n  font-weight: bold;\n}\n", ""]);

// exports


/***/ }),

/***/ 45597:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(48190);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("76992781", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 45634:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _MemberCouponMixin = _interopRequireDefault(__webpack_require__(81507));
var _MemberCouponQr = _interopRequireDefault(__webpack_require__(46419));
var _default = exports.A = {
  mixins: [_MemberCouponMixin.default],
  components: {
    MemberCouponQr: _MemberCouponQr.default
  },
  data() {
    return {
      G: G
    };
  }
};

/***/ }),

/***/ 45806:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
__webpack_require__(47764);
var $ = __webpack_require__(46518);
var DESCRIPTORS = __webpack_require__(43724);
var USE_NATIVE_URL = __webpack_require__(67416);
var globalThis = __webpack_require__(44576);
var bind = __webpack_require__(76080);
var uncurryThis = __webpack_require__(79504);
var defineBuiltIn = __webpack_require__(36840);
var defineBuiltInAccessor = __webpack_require__(62106);
var anInstance = __webpack_require__(90679);
var hasOwn = __webpack_require__(39297);
var assign = __webpack_require__(44213);
var arrayFrom = __webpack_require__(97916);
var arraySlice = __webpack_require__(67680);
var codeAt = (__webpack_require__(68183).codeAt);
var toASCII = __webpack_require__(3717);
var $toString = __webpack_require__(655);
var setToStringTag = __webpack_require__(10687);
var validateArgumentsLength = __webpack_require__(22812);
var URLSearchParamsModule = __webpack_require__(98406);
var InternalStateModule = __webpack_require__(91181);

var setInternalState = InternalStateModule.set;
var getInternalURLState = InternalStateModule.getterFor('URL');
var URLSearchParams = URLSearchParamsModule.URLSearchParams;
var getInternalSearchParamsState = URLSearchParamsModule.getState;

var NativeURL = globalThis.URL;
var TypeError = globalThis.TypeError;
var parseInt = globalThis.parseInt;
var floor = Math.floor;
var pow = Math.pow;
var charAt = uncurryThis(''.charAt);
var exec = uncurryThis(/./.exec);
var join = uncurryThis([].join);
var numberToString = uncurryThis(1.0.toString);
var pop = uncurryThis([].pop);
var push = uncurryThis([].push);
var replace = uncurryThis(''.replace);
var shift = uncurryThis([].shift);
var split = uncurryThis(''.split);
var stringSlice = uncurryThis(''.slice);
var toLowerCase = uncurryThis(''.toLowerCase);
var unshift = uncurryThis([].unshift);

var INVALID_AUTHORITY = 'Invalid authority';
var INVALID_SCHEME = 'Invalid scheme';
var INVALID_HOST = 'Invalid host';
var INVALID_PORT = 'Invalid port';

var ALPHA = /[a-z]/i;
// eslint-disable-next-line regexp/no-obscure-range -- safe
var ALPHANUMERIC = /[\d+-.a-z]/i;
var DIGIT = /\d/;
var HEX_START = /^0x/i;
var OCT = /^[0-7]+$/;
var DEC = /^\d+$/;
var HEX = /^[\da-f]+$/i;
/* eslint-disable regexp/no-control-character -- safe */
var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;
var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;
var LEADING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+/;
var TRAILING_C0_CONTROL_OR_SPACE = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/;
var TAB_AND_NEW_LINE = /[\t\n\r]/g;
/* eslint-enable regexp/no-control-character -- safe */
var EOF;

// https://url.spec.whatwg.org/#ipv4-number-parser
var parseIPv4 = function (input) {
  var parts = split(input, '.');
  var partsLength, numbers, index, part, radix, number, ipv4;
  if (parts.length && parts[parts.length - 1] === '') {
    parts.length--;
  }
  partsLength = parts.length;
  if (partsLength > 4) return input;
  numbers = [];
  for (index = 0; index < partsLength; index++) {
    part = parts[index];
    if (part === '') return input;
    radix = 10;
    if (part.length > 1 && charAt(part, 0) === '0') {
      radix = exec(HEX_START, part) ? 16 : 8;
      part = stringSlice(part, radix === 8 ? 1 : 2);
    }
    if (part === '') {
      number = 0;
    } else {
      if (!exec(radix === 10 ? DEC : radix === 8 ? OCT : HEX, part)) return input;
      number = parseInt(part, radix);
    }
    push(numbers, number);
  }
  for (index = 0; index < partsLength; index++) {
    number = numbers[index];
    if (index === partsLength - 1) {
      if (number >= pow(256, 5 - partsLength)) return null;
    } else if (number > 255) return null;
  }
  ipv4 = pop(numbers);
  for (index = 0; index < numbers.length; index++) {
    ipv4 += numbers[index] * pow(256, 3 - index);
  }
  return ipv4;
};

// https://url.spec.whatwg.org/#concept-ipv6-parser
// eslint-disable-next-line max-statements -- TODO
var parseIPv6 = function (input) {
  var address = [0, 0, 0, 0, 0, 0, 0, 0];
  var pieceIndex = 0;
  var compress = null;
  var pointer = 0;
  var value, length, numbersSeen, ipv4Piece, number, swaps, swap;

  var chr = function () {
    return charAt(input, pointer);
  };

  if (chr() === ':') {
    if (charAt(input, 1) !== ':') return;
    pointer += 2;
    pieceIndex++;
    compress = pieceIndex;
  }
  while (chr()) {
    if (pieceIndex === 8) return;
    if (chr() === ':') {
      if (compress !== null) return;
      pointer++;
      pieceIndex++;
      compress = pieceIndex;
      continue;
    }
    value = length = 0;
    while (length < 4 && exec(HEX, chr())) {
      value = value * 16 + parseInt(chr(), 16);
      pointer++;
      length++;
    }
    if (chr() === '.') {
      if (length === 0) return;
      pointer -= length;
      if (pieceIndex > 6) return;
      numbersSeen = 0;
      while (chr()) {
        ipv4Piece = null;
        if (numbersSeen > 0) {
          if (chr() === '.' && numbersSeen < 4) pointer++;
          else return;
        }
        if (!exec(DIGIT, chr())) return;
        while (exec(DIGIT, chr())) {
          number = parseInt(chr(), 10);
          if (ipv4Piece === null) ipv4Piece = number;
          else if (ipv4Piece === 0) return;
          else ipv4Piece = ipv4Piece * 10 + number;
          if (ipv4Piece > 255) return;
          pointer++;
        }
        address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
        numbersSeen++;
        if (numbersSeen === 2 || numbersSeen === 4) pieceIndex++;
      }
      if (numbersSeen !== 4) return;
      break;
    } else if (chr() === ':') {
      pointer++;
      if (!chr()) return;
    } else if (chr()) return;
    address[pieceIndex++] = value;
  }
  if (compress !== null) {
    swaps = pieceIndex - compress;
    pieceIndex = 7;
    while (pieceIndex !== 0 && swaps > 0) {
      swap = address[pieceIndex];
      address[pieceIndex--] = address[compress + swaps - 1];
      address[compress + --swaps] = swap;
    }
  } else if (pieceIndex !== 8) return;
  return address;
};

var findLongestZeroSequence = function (ipv6) {
  var maxIndex = null;
  var maxLength = 1;
  var currStart = null;
  var currLength = 0;
  var index = 0;
  for (; index < 8; index++) {
    if (ipv6[index] !== 0) {
      if (currLength > maxLength) {
        maxIndex = currStart;
        maxLength = currLength;
      }
      currStart = null;
      currLength = 0;
    } else {
      if (currStart === null) currStart = index;
      ++currLength;
    }
  }
  return currLength > maxLength ? currStart : maxIndex;
};

// https://url.spec.whatwg.org/#host-serializing
var serializeHost = function (host) {
  var result, index, compress, ignore0;

  // ipv4
  if (typeof host == 'number') {
    result = [];
    for (index = 0; index < 4; index++) {
      unshift(result, host % 256);
      host = floor(host / 256);
    }
    return join(result, '.');
  }

  // ipv6
  if (typeof host == 'object') {
    result = '';
    compress = findLongestZeroSequence(host);
    for (index = 0; index < 8; index++) {
      if (ignore0 && host[index] === 0) continue;
      if (ignore0) ignore0 = false;
      if (compress === index) {
        result += index ? ':' : '::';
        ignore0 = true;
      } else {
        result += numberToString(host[index], 16);
        if (index < 7) result += ':';
      }
    }
    return '[' + result + ']';
  }

  return host;
};

var C0ControlPercentEncodeSet = {};
var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
  ' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
});
var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
  '#': 1, '?': 1, '{': 1, '}': 1
});
var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
  '/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
});

var percentEncode = function (chr, set) {
  var code = codeAt(chr, 0);
  return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
};

// https://url.spec.whatwg.org/#special-scheme
var specialSchemes = {
  ftp: 21,
  file: null,
  http: 80,
  https: 443,
  ws: 80,
  wss: 443
};

// https://url.spec.whatwg.org/#windows-drive-letter
var isWindowsDriveLetter = function (string, normalized) {
  var second;
  return string.length === 2 && exec(ALPHA, charAt(string, 0))
    && ((second = charAt(string, 1)) === ':' || (!normalized && second === '|'));
};

// https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
var startsWithWindowsDriveLetter = function (string) {
  var third;
  return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (
    string.length === 2 ||
    ((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#')
  );
};

// https://url.spec.whatwg.org/#single-dot-path-segment
var isSingleDot = function (segment) {
  return segment === '.' || toLowerCase(segment) === '%2e';
};

// https://url.spec.whatwg.org/#double-dot-path-segment
var isDoubleDot = function (segment) {
  segment = toLowerCase(segment);
  return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
};

// States:
var SCHEME_START = {};
var SCHEME = {};
var NO_SCHEME = {};
var SPECIAL_RELATIVE_OR_AUTHORITY = {};
var PATH_OR_AUTHORITY = {};
var RELATIVE = {};
var RELATIVE_SLASH = {};
var SPECIAL_AUTHORITY_SLASHES = {};
var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
var AUTHORITY = {};
var HOST = {};
var HOSTNAME = {};
var PORT = {};
var FILE = {};
var FILE_SLASH = {};
var FILE_HOST = {};
var PATH_START = {};
var PATH = {};
var CANNOT_BE_A_BASE_URL_PATH = {};
var QUERY = {};
var FRAGMENT = {};

var URLState = function (url, isBase, base) {
  var urlString = $toString(url);
  var baseState, failure, searchParams;
  if (isBase) {
    failure = this.parse(urlString);
    if (failure) throw new TypeError(failure);
    this.searchParams = null;
  } else {
    if (base !== undefined) baseState = new URLState(base, true);
    failure = this.parse(urlString, null, baseState);
    if (failure) throw new TypeError(failure);
    searchParams = getInternalSearchParamsState(new URLSearchParams());
    searchParams.bindURL(this);
    this.searchParams = searchParams;
  }
};

URLState.prototype = {
  type: 'URL',
  // https://url.spec.whatwg.org/#url-parsing
  // eslint-disable-next-line max-statements -- TODO
  parse: function (input, stateOverride, base) {
    var url = this;
    var state = stateOverride || SCHEME_START;
    var pointer = 0;
    var buffer = '';
    var seenAt = false;
    var seenBracket = false;
    var seenPasswordToken = false;
    var codePoints, chr, bufferCodePoints, failure;

    input = $toString(input);

    if (!stateOverride) {
      url.scheme = '';
      url.username = '';
      url.password = '';
      url.host = null;
      url.port = null;
      url.path = [];
      url.query = null;
      url.fragment = null;
      url.cannotBeABaseURL = false;
      input = replace(input, LEADING_C0_CONTROL_OR_SPACE, '');
      input = replace(input, TRAILING_C0_CONTROL_OR_SPACE, '$1');
    }

    input = replace(input, TAB_AND_NEW_LINE, '');

    codePoints = arrayFrom(input);

    while (pointer <= codePoints.length) {
      chr = codePoints[pointer];
      switch (state) {
        case SCHEME_START:
          if (chr && exec(ALPHA, chr)) {
            buffer += toLowerCase(chr);
            state = SCHEME;
          } else if (!stateOverride) {
            state = NO_SCHEME;
            continue;
          } else return INVALID_SCHEME;
          break;

        case SCHEME:
          if (chr && (exec(ALPHANUMERIC, chr) || chr === '+' || chr === '-' || chr === '.')) {
            buffer += toLowerCase(chr);
          } else if (chr === ':') {
            if (stateOverride && (
              (url.isSpecial() !== hasOwn(specialSchemes, buffer)) ||
              (buffer === 'file' && (url.includesCredentials() || url.port !== null)) ||
              (url.scheme === 'file' && !url.host)
            )) return;
            url.scheme = buffer;
            if (stateOverride) {
              if (url.isSpecial() && specialSchemes[url.scheme] === url.port) url.port = null;
              return;
            }
            buffer = '';
            if (url.scheme === 'file') {
              state = FILE;
            } else if (url.isSpecial() && base && base.scheme === url.scheme) {
              state = SPECIAL_RELATIVE_OR_AUTHORITY;
            } else if (url.isSpecial()) {
              state = SPECIAL_AUTHORITY_SLASHES;
            } else if (codePoints[pointer + 1] === '/') {
              state = PATH_OR_AUTHORITY;
              pointer++;
            } else {
              url.cannotBeABaseURL = true;
              push(url.path, '');
              state = CANNOT_BE_A_BASE_URL_PATH;
            }
          } else if (!stateOverride) {
            buffer = '';
            state = NO_SCHEME;
            pointer = 0;
            continue;
          } else return INVALID_SCHEME;
          break;

        case NO_SCHEME:
          if (!base || (base.cannotBeABaseURL && chr !== '#')) return INVALID_SCHEME;
          if (base.cannotBeABaseURL && chr === '#') {
            url.scheme = base.scheme;
            url.path = arraySlice(base.path);
            url.query = base.query;
            url.fragment = '';
            url.cannotBeABaseURL = true;
            state = FRAGMENT;
            break;
          }
          state = base.scheme === 'file' ? FILE : RELATIVE;
          continue;

        case SPECIAL_RELATIVE_OR_AUTHORITY:
          if (chr === '/' && codePoints[pointer + 1] === '/') {
            state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
            pointer++;
          } else {
            state = RELATIVE;
            continue;
          } break;

        case PATH_OR_AUTHORITY:
          if (chr === '/') {
            state = AUTHORITY;
            break;
          } else {
            state = PATH;
            continue;
          }

        case RELATIVE:
          url.scheme = base.scheme;
          if (chr === EOF) {
            url.username = base.username;
            url.password = base.password;
            url.host = base.host;
            url.port = base.port;
            url.path = arraySlice(base.path);
            url.query = base.query;
          } else if (chr === '/' || (chr === '\\' && url.isSpecial())) {
            state = RELATIVE_SLASH;
          } else if (chr === '?') {
            url.username = base.username;
            url.password = base.password;
            url.host = base.host;
            url.port = base.port;
            url.path = arraySlice(base.path);
            url.query = '';
            state = QUERY;
          } else if (chr === '#') {
            url.username = base.username;
            url.password = base.password;
            url.host = base.host;
            url.port = base.port;
            url.path = arraySlice(base.path);
            url.query = base.query;
            url.fragment = '';
            state = FRAGMENT;
          } else {
            url.username = base.username;
            url.password = base.password;
            url.host = base.host;
            url.port = base.port;
            url.path = arraySlice(base.path);
            url.path.length--;
            state = PATH;
            continue;
          } break;

        case RELATIVE_SLASH:
          if (url.isSpecial() && (chr === '/' || chr === '\\')) {
            state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
          } else if (chr === '/') {
            state = AUTHORITY;
          } else {
            url.username = base.username;
            url.password = base.password;
            url.host = base.host;
            url.port = base.port;
            state = PATH;
            continue;
          } break;

        case SPECIAL_AUTHORITY_SLASHES:
          state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
          if (chr !== '/' || charAt(buffer, pointer + 1) !== '/') continue;
          pointer++;
          break;

        case SPECIAL_AUTHORITY_IGNORE_SLASHES:
          if (chr !== '/' && chr !== '\\') {
            state = AUTHORITY;
            continue;
          } break;

        case AUTHORITY:
          if (chr === '@') {
            if (seenAt) buffer = '%40' + buffer;
            seenAt = true;
            bufferCodePoints = arrayFrom(buffer);
            for (var i = 0; i < bufferCodePoints.length; i++) {
              var codePoint = bufferCodePoints[i];
              if (codePoint === ':' && !seenPasswordToken) {
                seenPasswordToken = true;
                continue;
              }
              var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
              if (seenPasswordToken) url.password += encodedCodePoints;
              else url.username += encodedCodePoints;
            }
            buffer = '';
          } else if (
            chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
            (chr === '\\' && url.isSpecial())
          ) {
            if (seenAt && buffer === '') return INVALID_AUTHORITY;
            pointer -= arrayFrom(buffer).length + 1;
            buffer = '';
            state = HOST;
          } else buffer += chr;
          break;

        case HOST:
        case HOSTNAME:
          if (stateOverride && url.scheme === 'file') {
            state = FILE_HOST;
            continue;
          } else if (chr === ':' && !seenBracket) {
            if (buffer === '') return INVALID_HOST;
            failure = url.parseHost(buffer);
            if (failure) return failure;
            buffer = '';
            state = PORT;
            if (stateOverride === HOSTNAME) return;
          } else if (
            chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
            (chr === '\\' && url.isSpecial())
          ) {
            if (url.isSpecial() && buffer === '') return INVALID_HOST;
            if (stateOverride && buffer === '' && (url.includesCredentials() || url.port !== null)) return;
            failure = url.parseHost(buffer);
            if (failure) return failure;
            buffer = '';
            state = PATH_START;
            if (stateOverride) return;
            continue;
          } else {
            if (chr === '[') seenBracket = true;
            else if (chr === ']') seenBracket = false;
            buffer += chr;
          } break;

        case PORT:
          if (exec(DIGIT, chr)) {
            buffer += chr;
          } else if (
            chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
            (chr === '\\' && url.isSpecial()) ||
            stateOverride
          ) {
            if (buffer !== '') {
              var port = parseInt(buffer, 10);
              if (port > 0xFFFF) return INVALID_PORT;
              url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port;
              buffer = '';
            }
            if (stateOverride) return;
            state = PATH_START;
            continue;
          } else return INVALID_PORT;
          break;

        case FILE:
          url.scheme = 'file';
          if (chr === '/' || chr === '\\') state = FILE_SLASH;
          else if (base && base.scheme === 'file') {
            switch (chr) {
              case EOF:
                url.host = base.host;
                url.path = arraySlice(base.path);
                url.query = base.query;
                break;
              case '?':
                url.host = base.host;
                url.path = arraySlice(base.path);
                url.query = '';
                state = QUERY;
                break;
              case '#':
                url.host = base.host;
                url.path = arraySlice(base.path);
                url.query = base.query;
                url.fragment = '';
                state = FRAGMENT;
                break;
              default:
                if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
                  url.host = base.host;
                  url.path = arraySlice(base.path);
                  url.shortenPath();
                }
                state = PATH;
                continue;
            }
          } else {
            state = PATH;
            continue;
          } break;

        case FILE_SLASH:
          if (chr === '/' || chr === '\\') {
            state = FILE_HOST;
            break;
          }
          if (base && base.scheme === 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
            if (isWindowsDriveLetter(base.path[0], true)) push(url.path, base.path[0]);
            else url.host = base.host;
          }
          state = PATH;
          continue;

        case FILE_HOST:
          if (chr === EOF || chr === '/' || chr === '\\' || chr === '?' || chr === '#') {
            if (!stateOverride && isWindowsDriveLetter(buffer)) {
              state = PATH;
            } else if (buffer === '') {
              url.host = '';
              if (stateOverride) return;
              state = PATH_START;
            } else {
              failure = url.parseHost(buffer);
              if (failure) return failure;
              if (url.host === 'localhost') url.host = '';
              if (stateOverride) return;
              buffer = '';
              state = PATH_START;
            } continue;
          } else buffer += chr;
          break;

        case PATH_START:
          if (url.isSpecial()) {
            state = PATH;
            if (chr !== '/' && chr !== '\\') continue;
          } else if (!stateOverride && chr === '?') {
            url.query = '';
            state = QUERY;
          } else if (!stateOverride && chr === '#') {
            url.fragment = '';
            state = FRAGMENT;
          } else if (chr !== EOF) {
            state = PATH;
            if (chr !== '/') continue;
          } break;

        case PATH:
          if (
            chr === EOF || chr === '/' ||
            (chr === '\\' && url.isSpecial()) ||
            (!stateOverride && (chr === '?' || chr === '#'))
          ) {
            if (isDoubleDot(buffer)) {
              url.shortenPath();
              if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
                push(url.path, '');
              }
            } else if (isSingleDot(buffer)) {
              if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
                push(url.path, '');
              }
            } else {
              if (url.scheme === 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
                if (url.host) url.host = '';
                buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter
              }
              push(url.path, buffer);
            }
            buffer = '';
            if (url.scheme === 'file' && (chr === EOF || chr === '?' || chr === '#')) {
              while (url.path.length > 1 && url.path[0] === '') {
                shift(url.path);
              }
            }
            if (chr === '?') {
              url.query = '';
              state = QUERY;
            } else if (chr === '#') {
              url.fragment = '';
              state = FRAGMENT;
            }
          } else {
            buffer += percentEncode(chr, pathPercentEncodeSet);
          } break;

        case CANNOT_BE_A_BASE_URL_PATH:
          if (chr === '?') {
            url.query = '';
            state = QUERY;
          } else if (chr === '#') {
            url.fragment = '';
            state = FRAGMENT;
          } else if (chr !== EOF) {
            url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
          } break;

        case QUERY:
          if (!stateOverride && chr === '#') {
            url.fragment = '';
            state = FRAGMENT;
          } else if (chr !== EOF) {
            if (chr === "'" && url.isSpecial()) url.query += '%27';
            else if (chr === '#') url.query += '%23';
            else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
          } break;

        case FRAGMENT:
          if (chr !== EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
          break;
      }

      pointer++;
    }
  },
  // https://url.spec.whatwg.org/#host-parsing
  parseHost: function (input) {
    var result, codePoints, index;
    if (charAt(input, 0) === '[') {
      if (charAt(input, input.length - 1) !== ']') return INVALID_HOST;
      result = parseIPv6(stringSlice(input, 1, -1));
      if (!result) return INVALID_HOST;
      this.host = result;
    // opaque host
    } else if (!this.isSpecial()) {
      if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input)) return INVALID_HOST;
      result = '';
      codePoints = arrayFrom(input);
      for (index = 0; index < codePoints.length; index++) {
        result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
      }
      this.host = result;
    } else {
      input = toASCII(input);
      if (exec(FORBIDDEN_HOST_CODE_POINT, input)) return INVALID_HOST;
      result = parseIPv4(input);
      if (result === null) return INVALID_HOST;
      this.host = result;
    }
  },
  // https://url.spec.whatwg.org/#cannot-have-a-username-password-port
  cannotHaveUsernamePasswordPort: function () {
    return !this.host || this.cannotBeABaseURL || this.scheme === 'file';
  },
  // https://url.spec.whatwg.org/#include-credentials
  includesCredentials: function () {
    return this.username !== '' || this.password !== '';
  },
  // https://url.spec.whatwg.org/#is-special
  isSpecial: function () {
    return hasOwn(specialSchemes, this.scheme);
  },
  // https://url.spec.whatwg.org/#shorten-a-urls-path
  shortenPath: function () {
    var path = this.path;
    var pathSize = path.length;
    if (pathSize && (this.scheme !== 'file' || pathSize !== 1 || !isWindowsDriveLetter(path[0], true))) {
      path.length--;
    }
  },
  // https://url.spec.whatwg.org/#concept-url-serializer
  serialize: function () {
    var url = this;
    var scheme = url.scheme;
    var username = url.username;
    var password = url.password;
    var host = url.host;
    var port = url.port;
    var path = url.path;
    var query = url.query;
    var fragment = url.fragment;
    var output = scheme + ':';
    if (host !== null) {
      output += '//';
      if (url.includesCredentials()) {
        output += username + (password ? ':' + password : '') + '@';
      }
      output += serializeHost(host);
      if (port !== null) output += ':' + port;
    } else if (scheme === 'file') output += '//';
    output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
    if (query !== null) output += '?' + query;
    if (fragment !== null) output += '#' + fragment;
    return output;
  },
  // https://url.spec.whatwg.org/#dom-url-href
  setHref: function (href) {
    var failure = this.parse(href);
    if (failure) throw new TypeError(failure);
    this.searchParams.update();
  },
  // https://url.spec.whatwg.org/#dom-url-origin
  getOrigin: function () {
    var scheme = this.scheme;
    var port = this.port;
    if (scheme === 'blob') try {
      return new URLConstructor(scheme.path[0]).origin;
    } catch (error) {
      return 'null';
    }
    if (scheme === 'file' || !this.isSpecial()) return 'null';
    return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');
  },
  // https://url.spec.whatwg.org/#dom-url-protocol
  getProtocol: function () {
    return this.scheme + ':';
  },
  setProtocol: function (protocol) {
    this.parse($toString(protocol) + ':', SCHEME_START);
  },
  // https://url.spec.whatwg.org/#dom-url-username
  getUsername: function () {
    return this.username;
  },
  setUsername: function (username) {
    var codePoints = arrayFrom($toString(username));
    if (this.cannotHaveUsernamePasswordPort()) return;
    this.username = '';
    for (var i = 0; i < codePoints.length; i++) {
      this.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
    }
  },
  // https://url.spec.whatwg.org/#dom-url-password
  getPassword: function () {
    return this.password;
  },
  setPassword: function (password) {
    var codePoints = arrayFrom($toString(password));
    if (this.cannotHaveUsernamePasswordPort()) return;
    this.password = '';
    for (var i = 0; i < codePoints.length; i++) {
      this.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
    }
  },
  // https://url.spec.whatwg.org/#dom-url-host
  getHost: function () {
    var host = this.host;
    var port = this.port;
    return host === null ? ''
      : port === null ? serializeHost(host)
      : serializeHost(host) + ':' + port;
  },
  setHost: function (host) {
    if (this.cannotBeABaseURL) return;
    this.parse(host, HOST);
  },
  // https://url.spec.whatwg.org/#dom-url-hostname
  getHostname: function () {
    var host = this.host;
    return host === null ? '' : serializeHost(host);
  },
  setHostname: function (hostname) {
    if (this.cannotBeABaseURL) return;
    this.parse(hostname, HOSTNAME);
  },
  // https://url.spec.whatwg.org/#dom-url-port
  getPort: function () {
    var port = this.port;
    return port === null ? '' : $toString(port);
  },
  setPort: function (port) {
    if (this.cannotHaveUsernamePasswordPort()) return;
    port = $toString(port);
    if (port === '') this.port = null;
    else this.parse(port, PORT);
  },
  // https://url.spec.whatwg.org/#dom-url-pathname
  getPathname: function () {
    var path = this.path;
    return this.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
  },
  setPathname: function (pathname) {
    if (this.cannotBeABaseURL) return;
    this.path = [];
    this.parse(pathname, PATH_START);
  },
  // https://url.spec.whatwg.org/#dom-url-search
  getSearch: function () {
    var query = this.query;
    return query ? '?' + query : '';
  },
  setSearch: function (search) {
    search = $toString(search);
    if (search === '') {
      this.query = null;
    } else {
      if (charAt(search, 0) === '?') search = stringSlice(search, 1);
      this.query = '';
      this.parse(search, QUERY);
    }
    this.searchParams.update();
  },
  // https://url.spec.whatwg.org/#dom-url-searchparams
  getSearchParams: function () {
    return this.searchParams.facade;
  },
  // https://url.spec.whatwg.org/#dom-url-hash
  getHash: function () {
    var fragment = this.fragment;
    return fragment ? '#' + fragment : '';
  },
  setHash: function (hash) {
    hash = $toString(hash);
    if (hash === '') {
      this.fragment = null;
      return;
    }
    if (charAt(hash, 0) === '#') hash = stringSlice(hash, 1);
    this.fragment = '';
    this.parse(hash, FRAGMENT);
  },
  update: function () {
    this.query = this.searchParams.serialize() || null;
  }
};

// `URL` constructor
// https://url.spec.whatwg.org/#url-class
var URLConstructor = function URL(url /* , base */) {
  var that = anInstance(this, URLPrototype);
  var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
  var state = setInternalState(that, new URLState(url, false, base));
  if (!DESCRIPTORS) {
    that.href = state.serialize();
    that.origin = state.getOrigin();
    that.protocol = state.getProtocol();
    that.username = state.getUsername();
    that.password = state.getPassword();
    that.host = state.getHost();
    that.hostname = state.getHostname();
    that.port = state.getPort();
    that.pathname = state.getPathname();
    that.search = state.getSearch();
    that.searchParams = state.getSearchParams();
    that.hash = state.getHash();
  }
};

var URLPrototype = URLConstructor.prototype;

var accessorDescriptor = function (getter, setter) {
  return {
    get: function () {
      return getInternalURLState(this)[getter]();
    },
    set: setter && function (value) {
      return getInternalURLState(this)[setter](value);
    },
    configurable: true,
    enumerable: true
  };
};

if (DESCRIPTORS) {
  // `URL.prototype.href` accessors pair
  // https://url.spec.whatwg.org/#dom-url-href
  defineBuiltInAccessor(URLPrototype, 'href', accessorDescriptor('serialize', 'setHref'));
  // `URL.prototype.origin` getter
  // https://url.spec.whatwg.org/#dom-url-origin
  defineBuiltInAccessor(URLPrototype, 'origin', accessorDescriptor('getOrigin'));
  // `URL.prototype.protocol` accessors pair
  // https://url.spec.whatwg.org/#dom-url-protocol
  defineBuiltInAccessor(URLPrototype, 'protocol', accessorDescriptor('getProtocol', 'setProtocol'));
  // `URL.prototype.username` accessors pair
  // https://url.spec.whatwg.org/#dom-url-username
  defineBuiltInAccessor(URLPrototype, 'username', accessorDescriptor('getUsername', 'setUsername'));
  // `URL.prototype.password` accessors pair
  // https://url.spec.whatwg.org/#dom-url-password
  defineBuiltInAccessor(URLPrototype, 'password', accessorDescriptor('getPassword', 'setPassword'));
  // `URL.prototype.host` accessors pair
  // https://url.spec.whatwg.org/#dom-url-host
  defineBuiltInAccessor(URLPrototype, 'host', accessorDescriptor('getHost', 'setHost'));
  // `URL.prototype.hostname` accessors pair
  // https://url.spec.whatwg.org/#dom-url-hostname
  defineBuiltInAccessor(URLPrototype, 'hostname', accessorDescriptor('getHostname', 'setHostname'));
  // `URL.prototype.port` accessors pair
  // https://url.spec.whatwg.org/#dom-url-port
  defineBuiltInAccessor(URLPrototype, 'port', accessorDescriptor('getPort', 'setPort'));
  // `URL.prototype.pathname` accessors pair
  // https://url.spec.whatwg.org/#dom-url-pathname
  defineBuiltInAccessor(URLPrototype, 'pathname', accessorDescriptor('getPathname', 'setPathname'));
  // `URL.prototype.search` accessors pair
  // https://url.spec.whatwg.org/#dom-url-search
  defineBuiltInAccessor(URLPrototype, 'search', accessorDescriptor('getSearch', 'setSearch'));
  // `URL.prototype.searchParams` getter
  // https://url.spec.whatwg.org/#dom-url-searchparams
  defineBuiltInAccessor(URLPrototype, 'searchParams', accessorDescriptor('getSearchParams'));
  // `URL.prototype.hash` accessors pair
  // https://url.spec.whatwg.org/#dom-url-hash
  defineBuiltInAccessor(URLPrototype, 'hash', accessorDescriptor('getHash', 'setHash'));
}

// `URL.prototype.toJSON` method
// https://url.spec.whatwg.org/#dom-url-tojson
defineBuiltIn(URLPrototype, 'toJSON', function toJSON() {
  return getInternalURLState(this).serialize();
}, { enumerable: true });

// `URL.prototype.toString` method
// https://url.spec.whatwg.org/#URL-stringification-behavior
defineBuiltIn(URLPrototype, 'toString', function toString() {
  return getInternalURLState(this).serialize();
}, { enumerable: true });

if (NativeURL) {
  var nativeCreateObjectURL = NativeURL.createObjectURL;
  var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
  // `URL.createObjectURL` method
  // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
  if (nativeCreateObjectURL) defineBuiltIn(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));
  // `URL.revokeObjectURL` method
  // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
  if (nativeRevokeObjectURL) defineBuiltIn(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));
}

setToStringTag(URLConstructor, 'URL');

$({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
  URL: URLConstructor
});


/***/ }),

/***/ 45853:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _MemberCouponMixin = _interopRequireDefault(__webpack_require__(81507));
var _MemberCouponQr = _interopRequireDefault(__webpack_require__(46419));
var _CommonCouponBarMini = _interopRequireDefault(__webpack_require__(84593));
var _default = exports.A = {
  mixins: [_MemberCouponMixin.default],
  components: {
    CommonCouponBarMini: _CommonCouponBarMini.default
  },
  data() {
    return {
      icon: __webpack_require__(49277),
      G: G
    };
  }
};

/***/ }),

/***/ 46228:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-row[data-v-c322638e] {\n  display: flex;\n  flex-direction: row;\n}\n.gwd-inline-row[data-v-c322638e] {\n  display: inline-flex;\n  flex-direction: row;\n}\n.gwd-column[data-v-c322638e] {\n  display: flex;\n  flex-direction: column;\n}\n.gwd-inline-column[data-v-c322638e] {\n  display: inline-flex;\n  flex-direction: column;\n}\n.gwd-align[data-v-c322638e] {\n  align-content: center;\n  align-items: center;\n}\n.gwd-jcc[data-v-c322638e] {\n  justify-content: center;\n}\n.gwd-jic[data-v-c322638e] {\n  justify-items: center;\n}\n.gwd-button[data-v-c322638e] {\n  outline: none;\n  border: none;\n}\n.bjg-bar-button[data-v-c322638e] {\n  font-size: 0;\n}\n.bjg-hover-bg[data-v-c322638e] {\n  background: #fffbef;\n}\n.bjg-bar-button[data-v-c322638e]:hover {\n  background: #fffbef;\n  cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window[data-v-c322638e] {\n  display: block;\n}\n.mainbar-fold .bjg-bar-button[data-v-c322638e],\n.mainbar-fold #top_coupon_btn[data-v-c322638e],\n.mainbar-fold .rinfo-btn[data-v-c322638e],\n.mainbar-fold .gwd-bottom-tmall[data-v-c322638e] {\n  display: none!important;\n}\n.gwd-font12[data-v-c322638e] {\n  font-size: 12px;\n}\n.gwd-font14[data-v-c322638e] {\n  font-size: 14px;\n}\n.gwd-red[data-v-c322638e] {\n  color: #ff3532;\n}\n.gwd-red-bg[data-v-c322638e] {\n  background: #ff3532;\n}\n.gwd-hui333[data-v-c322638e] {\n  color: #333333;\n}\n.gwd-hui999[data-v-c322638e] {\n  color: #999999;\n}\n.gwd-font10[data-v-c322638e] {\n  font-size: 12px;\n  transform: scale(0.8333);\n  transform-origin: bottom center;\n}\n.gwd-font11[data-v-c322638e] {\n  font-size: 12px;\n  transform: scale(0.91666);\n  transform-origin: bottom center;\n}\n.gwd-font9[data-v-c322638e] {\n  font-size: 12px;\n  transform: scale(0.75);\n  transform-origin: bottom center;\n}\n.gwd-hoverable[data-v-c322638e]:hover {\n  background: #edf1f2;\n}\n.right-info > *[data-v-c322638e] {\n  border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit[data-v-c322638e]:hover {\n  color: #e03024 !important;\n}\n.gwd-button[data-v-c322638e]:hover {\n  filter: brightness(1.1);\n}\n.gwd-button[data-v-c322638e] {\n  padding-top: 1px;\n  padding-bottom: 1px;\n}\n.gwd-button[data-v-c322638e]:active {\n  filter: brightness(0.9);\n}\n.gwd-fadeout-5s[data-v-c322638e] {\n  opacity: 0;\n  transition: opacity 5s;\n}\n.gwd-scrollbar[data-v-c322638e]::-webkit-scrollbar {\n  width: 6px;\n  border-radius: 17px;\n}\n.gwd-scrollbar[data-v-c322638e]::-webkit-scrollbar-thumb {\n  border-radius: 17px;\n  background: #999;\n}\n#gwdang_main[data-v-c322638e],\n.gwdang-main[data-v-c322638e],\n.bjgext-detail[data-v-c322638e] {\n  font-size: 12px;\n}\n#gwdang_main button[data-v-c322638e],\n.gwdang-main button[data-v-c322638e],\n.bjgext-detail button[data-v-c322638e] {\n  text-align: center;\n}\n.gwd-width-100[data-v-c322638e] {\n  width: 100%;\n}\n.gwd-overlay[data-v-c322638e] {\n  font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n  font-size: 0;\n  position: fixed;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  background: rgba(0, 0, 0, 0.35);\n  z-index: 999999999;\n}\n.gwd-font-pfm[data-v-c322638e] {\n  font-family: 'PingFangSC-Medium';\n  font-weight: normal!important;\n}\n@font-face {\n  font-family: 'PingFangSC-Medium';\n  src: local('PingFangSC-Medium');\n}\n.gwd-font-pfm[data-v-c322638e] {\n  font-family: local('PingFangSC-Medium'), system-ui;\n  font-weight: bold;\n}\n#gwd_minibar svg[data-v-c322638e],\n.gwdang-main svg[data-v-c322638e],\n#bjgext_mb_bg svg[data-v-c322638e],\n#bjgext_mainbar svg[data-v-c322638e] {\n  fill: transparent;\n}\n.gwd-common-font[data-v-c322638e] {\n  font-family: 'PingFang SC', 'Microsoft YaHei', '\\5FAE\\8F6F\\96C5\\9ED1', 'Hiragino Sans GB', 'WenQuanYi Micro Hei';\n}\n.gwd-price-input[data-v-c322638e] {\n  border: 1px solid #48befe;\n  background: white;\n  height: 30px;\n  line-height: 30px;\n  color: #48befe;\n  font-size: 16px;\n  border-radius: 4px;\n  margin-left: 8px;\n  margin-right: 8px;\n  overflow: hidden;\n}\n.gwd-price-input span[data-v-c322638e] {\n  margin-left: 8px;\n  margin-right: 4px;\n  flex-grow: 0;\n  flex-shrink: 0;\n}\n.gwd-price-input input[data-v-c322638e] {\n  outline: none;\n  border: none;\n  flex: 1;\n  resize: none;\n  color: #48befe;\n  font-size: 16px;\n  margin-right: 5px;\n  flex-basis: 100%;\n  min-width: 0;\n  box-shadow: none;\n}\n", ""]);

// exports


/***/ }),

/***/ 46251:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.show,
      expression: "show"
    }],
    staticClass: "gwd-clock"
  }, [_vm._m(0), _vm._v(" "), _c("img", {
    staticStyle: {
      width: "8px",
      height: "8px",
      top: "5px",
      right: "5px",
      position: "absolute"
    },
    attrs: {
      src: __webpack_require__(40610),
      alt: ""
    },
    on: {
      click: _vm.close
    }
  }), _vm._v(" "), _c("div", {
    staticClass: "gwd-clock-timer",
    staticStyle: {
      "margin-top": "23px"
    }
  }, [_c("span", {
    staticStyle: {
      "font-size": "40px",
      color: "#333333",
      "font-weight": "bold",
      "vertical-align": "baseline"
    }
  }, [_vm._v(_vm._s(_vm.hour) + ":" + _vm._s(_vm.minute) + ":" + _vm._s(_vm.second))]), _vm._v(" "), _c("span", {
    staticStyle: {
      "margin-left": "4px",
      "font-size": "26px",
      color: "#999999",
      "vertical-align": "baseline"
    }
  }, [_vm._v(_vm._s(_vm.mill))])])]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-line",
    staticStyle: {
      "margin-top": "10px",
      "font-size": "0",
      "line-height": "14px",
      "vertical-align": "text-bottom"
    }
  }, [_c("img", {
    staticStyle: {
      width: "14px",
      height: "14px"
    },
    attrs: {
      src: __webpack_require__(91574),
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "font-size": "14px",
      color: "#333333",
      "margin-left": "6px"
    }
  }, [_vm._v("购物党抢购提醒时钟")]), _vm._v(" "), _c("span", {
    staticClass: "gwd-smallText",
    staticStyle: {
      "margin-left": "3px"
    }
  }, [_vm._v("-秒杀必备")])]);
}];
render._withStripped = true;

/***/ }),

/***/ 46364:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ TipCenter)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/TipCenter.vue?vue&type=template&id=6fda7d74&scoped=true
var TipCentervue_type_template_id_6fda7d74_scoped_true = __webpack_require__(69759);
;// ./src/standard/module/components/ImgSame/TipCenter.vue?vue&type=template&id=6fda7d74&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/TipCenter.vue?vue&type=script&lang=js
var TipCentervue_type_script_lang_js = __webpack_require__(64943);
;// ./src/standard/module/components/ImgSame/TipCenter.vue?vue&type=script&lang=js
 /* harmony default export */ const ImgSame_TipCentervue_type_script_lang_js = (TipCentervue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(85072);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(97825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(77659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(55056);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(10540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(41113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/TipCenter.vue?vue&type=style&index=0&id=6fda7d74&prod&scoped=true&lang=css
var TipCentervue_type_style_index_0_id_6fda7d74_prod_scoped_true_lang_css = __webpack_require__(94842);
var TipCentervue_type_style_index_0_id_6fda7d74_prod_scoped_true_lang_css_default = /*#__PURE__*/__webpack_require__.n(TipCentervue_type_style_index_0_id_6fda7d74_prod_scoped_true_lang_css);
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/TipCenter.vue?vue&type=style&index=0&id=6fda7d74&prod&scoped=true&lang=css

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());

      options.insert = insertBySelector_default().bind(null, "head");
    
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()((TipCentervue_type_style_index_0_id_6fda7d74_prod_scoped_true_lang_css_default()), options);




       /* harmony default export */ const ImgSame_TipCentervue_type_style_index_0_id_6fda7d74_prod_scoped_true_lang_css = ((TipCentervue_type_style_index_0_id_6fda7d74_prod_scoped_true_lang_css_default()) && (TipCentervue_type_style_index_0_id_6fda7d74_prod_scoped_true_lang_css_default()).locals ? (TipCentervue_type_style_index_0_id_6fda7d74_prod_scoped_true_lang_css_default()).locals : undefined);

;// ./src/standard/module/components/ImgSame/TipCenter.vue?vue&type=style&index=0&id=6fda7d74&prod&scoped=true&lang=css

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/ImgSame/TipCenter.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  ImgSame_TipCentervue_type_script_lang_js,
  TipCentervue_type_template_id_6fda7d74_scoped_true/* render */.XX,
  TipCentervue_type_template_id_6fda7d74_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "6fda7d74",
  null
  
)

/* harmony default export */ const TipCenter = (component.exports);

/***/ }),

/***/ 46419:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ MemberCouponQrvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ MemberCouponQr)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/MemberCouponQr.vue?vue&type=template&id=6a1278a7&scoped=true
var MemberCouponQrvue_type_template_id_6a1278a7_scoped_true = __webpack_require__(82796);
;// ./src/common/components/MemberCouponQr.vue?vue&type=template&id=6a1278a7&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/MemberCouponQr.vue?vue&type=script&lang=js
var MemberCouponQrvue_type_script_lang_js = __webpack_require__(87245);
;// ./src/common/components/MemberCouponQr.vue?vue&type=script&lang=js
 /* harmony default export */ const components_MemberCouponQrvue_type_script_lang_js = (MemberCouponQrvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/MemberCouponQr.vue?vue&type=style&index=0&id=6a1278a7&prod&scoped=true&lang=less
var MemberCouponQrvue_type_style_index_0_id_6a1278a7_prod_scoped_true_lang_less = __webpack_require__(41966);
;// ./src/common/components/MemberCouponQr.vue?vue&type=style&index=0&id=6a1278a7&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/MemberCouponQr.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_MemberCouponQrvue_type_script_lang_js,
  MemberCouponQrvue_type_template_id_6a1278a7_scoped_true/* render */.XX,
  MemberCouponQrvue_type_template_id_6a1278a7_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "6a1278a7",
  null
  
)

/* harmony default export */ const MemberCouponQr = (component.exports);

/***/ }),

/***/ 46430:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ GwdPriceProtectMiddle)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/GwdPriceProtectMiddle.vue?vue&type=template&id=2bd1d232&scoped=true
var GwdPriceProtectMiddlevue_type_template_id_2bd1d232_scoped_true = __webpack_require__(82690);
;// ./src/standard/module/components/GwdPriceProtectMiddle.vue?vue&type=template&id=2bd1d232&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/GwdPriceProtectMiddle.vue?vue&type=script&lang=js
var GwdPriceProtectMiddlevue_type_script_lang_js = __webpack_require__(40452);
;// ./src/standard/module/components/GwdPriceProtectMiddle.vue?vue&type=script&lang=js
 /* harmony default export */ const components_GwdPriceProtectMiddlevue_type_script_lang_js = (GwdPriceProtectMiddlevue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/GwdPriceProtectMiddle.vue?vue&type=style&index=0&id=2bd1d232&prod&scoped=true&lang=less
var GwdPriceProtectMiddlevue_type_style_index_0_id_2bd1d232_prod_scoped_true_lang_less = __webpack_require__(61154);
;// ./src/standard/module/components/GwdPriceProtectMiddle.vue?vue&type=style&index=0&id=2bd1d232&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/GwdPriceProtectMiddle.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_GwdPriceProtectMiddlevue_type_script_lang_js,
  GwdPriceProtectMiddlevue_type_template_id_2bd1d232_scoped_true/* render */.XX,
  GwdPriceProtectMiddlevue_type_template_id_2bd1d232_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "2bd1d232",
  null
  
)

/* harmony default export */ const GwdPriceProtectMiddle = (component.exports);

/***/ }),

/***/ 46518:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);
var getOwnPropertyDescriptor = (__webpack_require__(77347).f);
var createNonEnumerableProperty = __webpack_require__(66699);
var defineBuiltIn = __webpack_require__(36840);
var defineGlobalProperty = __webpack_require__(39433);
var copyConstructorProperties = __webpack_require__(77740);
var isForced = __webpack_require__(92796);

/*
  options.target         - name of the target object
  options.global         - target is the global object
  options.stat           - export as static methods of target
  options.proto          - export as prototype methods of target
  options.real           - real prototype method for the `pure` version
  options.forced         - export even if the native feature is available
  options.bind           - bind methods to the target, required for the `pure` version
  options.wrap           - wrap constructors to preventing global pollution, required for the `pure` version
  options.unsafe         - use the simple assignment of property instead of delete + defineProperty
  options.sham           - add a flag to not completely full polyfills
  options.enumerable     - export as enumerable property
  options.dontCallGetSet - prevent calling a getter on target
  options.name           - the .name of the function if it does not match the key
*/
module.exports = function (options, source) {
  var TARGET = options.target;
  var GLOBAL = options.global;
  var STATIC = options.stat;
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  if (GLOBAL) {
    target = globalThis;
  } else if (STATIC) {
    target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});
  } else {
    target = globalThis[TARGET] && globalThis[TARGET].prototype;
  }
  if (target) for (key in source) {
    sourceProperty = source[key];
    if (options.dontCallGetSet) {
      descriptor = getOwnPropertyDescriptor(target, key);
      targetProperty = descriptor && descriptor.value;
    } else targetProperty = target[key];
    FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
    // contained in target
    if (!FORCED && targetProperty !== undefined) {
      if (typeof sourceProperty == typeof targetProperty) continue;
      copyConstructorProperties(sourceProperty, targetProperty);
    }
    // add a flag to not completely full polyfills
    if (options.sham || (targetProperty && targetProperty.sham)) {
      createNonEnumerableProperty(sourceProperty, 'sham', true);
    }
    defineBuiltIn(target, key, sourceProperty, options);
  }
};


/***/ }),

/***/ 46529:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(7476);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("a9b14c6a", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 46570:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-row {\n  display: flex;\n  flex-direction: row;\n}\n.gwd-inline-row {\n  display: inline-flex;\n  flex-direction: row;\n}\n.gwd-column {\n  display: flex;\n  flex-direction: column;\n}\n.gwd-inline-column {\n  display: inline-flex;\n  flex-direction: column;\n}\n.gwd-align {\n  align-content: center;\n  align-items: center;\n}\n.gwd-jcc {\n  justify-content: center;\n}\n.gwd-jic {\n  justify-items: center;\n}\n.gwd-button {\n  outline: none;\n  border: none;\n}\n.bjg-bar-button {\n  font-size: 0;\n}\n.bjg-hover-bg {\n  background: #fffbef;\n}\n.bjg-bar-button:hover {\n  background: #fffbef;\n  cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window {\n  display: block;\n}\n.mainbar-fold .bjg-bar-button,\n.mainbar-fold #top_coupon_btn,\n.mainbar-fold .rinfo-btn,\n.mainbar-fold .gwd-bottom-tmall {\n  display: none!important;\n}\n.gwd-font12 {\n  font-size: 12px;\n}\n.gwd-font14 {\n  font-size: 14px;\n}\n.gwd-red {\n  color: #ff3532;\n}\n.gwd-red-bg {\n  background: #ff3532;\n}\n.gwd-hui333 {\n  color: #333333;\n}\n.gwd-hui999 {\n  color: #999999;\n}\n.gwd-font10 {\n  font-size: 12px;\n  transform: scale(0.8333);\n  transform-origin: bottom center;\n}\n.gwd-font11 {\n  font-size: 12px;\n  transform: scale(0.91666);\n  transform-origin: bottom center;\n}\n.gwd-font9 {\n  font-size: 12px;\n  transform: scale(0.75);\n  transform-origin: bottom center;\n}\n.gwd-hoverable:hover {\n  background: #edf1f2;\n}\n.right-info > * {\n  border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit:hover {\n  color: #e03024 !important;\n}\n.gwd-button:hover {\n  filter: brightness(1.1);\n}\n.gwd-button {\n  padding-top: 1px;\n  padding-bottom: 1px;\n}\n.gwd-button:active {\n  filter: brightness(0.9);\n}\n.gwd-fadeout-5s {\n  opacity: 0;\n  transition: opacity 5s;\n}\n.gwd-scrollbar::-webkit-scrollbar {\n  width: 6px;\n  border-radius: 17px;\n}\n.gwd-scrollbar::-webkit-scrollbar-thumb {\n  border-radius: 17px;\n  background: #999;\n}\n#gwdang_main,\n.gwdang-main,\n.bjgext-detail {\n  font-size: 12px;\n}\n#gwdang_main button,\n.gwdang-main button,\n.bjgext-detail button {\n  text-align: center;\n}\n.gwd-width-100 {\n  width: 100%;\n}\n.gwd-overlay {\n  font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n  font-size: 0;\n  position: fixed;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  background: rgba(0, 0, 0, 0.35);\n  z-index: 999999999;\n}\n.gwd-font-pfm {\n  font-family: 'PingFangSC-Medium';\n  font-weight: normal!important;\n}\n@font-face {\n  font-family: 'PingFangSC-Medium';\n  src: local('PingFangSC-Medium');\n}\n.gwd-font-pfm {\n  font-family: local('PingFangSC-Medium'), system-ui;\n  font-weight: bold;\n}\n#gwd_minibar svg,\n.gwdang-main svg,\n#bjgext_mb_bg svg,\n#bjgext_mainbar svg {\n  fill: transparent;\n}\n.gwd-common-font {\n  font-family: 'PingFang SC', 'Microsoft YaHei', '\\5FAE\\8F6F\\96C5\\9ED1', 'Hiragino Sans GB', 'WenQuanYi Micro Hei';\n}\n", ""]);

// exports


/***/ }),

/***/ 46706:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var uncurryThis = __webpack_require__(79504);
var aCallable = __webpack_require__(79306);

module.exports = function (object, key, method) {
  try {
    // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
    return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
  } catch (error) { /* empty */ }
};


/***/ }),

/***/ 46894:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(77665);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("03793061", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 47053:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-stamp-bg gwd-row gwd-align"
  }, [_c("div", {
    staticClass: "gwd-text"
  }, [_vm._v("再送"), _c("br"), _vm._v(_vm._s(_vm.value) + "元红包")])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 47055:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var uncurryThis = __webpack_require__(79504);
var fails = __webpack_require__(79039);
var classof = __webpack_require__(22195);

var $Object = Object;
var split = uncurryThis(''.split);

// fallback for non-array-like ES3 and non-enumerable old V8 strings
module.exports = fails(function () {
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  // eslint-disable-next-line no-prototype-builtins -- safe
  return !$Object('z').propertyIsEnumerable(0);
}) ? function (it) {
  return classof(it) === 'String' ? split(it, '') : $Object(it);
} : $Object;


/***/ }),

/***/ 47065:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(35250);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("28ae7037", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 47134:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
__webpack_unused_export__ = exports.iw = __webpack_unused_export__ = void 0;
exports.a6 = collectMovement;
__webpack_unused_export__ = packStaticFeatureValue;
__webpack_unused_export__ = parseMovementText;
__webpack_unused_export__ = unpackStaticFeatureValue;
__webpack_require__(23792);
__webpack_require__(62953);
//https://github.com/javascript-obfuscator/javascript-obfuscator

class DynamicDetails {
  constructor() {
    this.touchPosition = {
      x: 0,
      y: 0
    };
    this.touchEventTrusted = false;
    this.mouseEventCount = 0;
    this.mousePosition = {
      x: 0,
      y: 0
    };
    this.mouseDownCount = 0;
    this.mouseClickPosition = {
      x: 0,
      y: 0
    };
    this.mouseEventTrusted = false;
    this.keyDownCount = 0;
    this.scrollCount = 0;
    this.windowBlur = false;
    this.windowFocus = false;
    this.consoleWindowOpened = false;
    this.ip = 0; //webrtc ipv4 address
    this.batteryLevel = 127;
    this.deviceOrientationExists = false;
    this.features = packStaticFeatureValue();
    this.checkConsoleLoopHandle = 0;
  }
  touchStartFn(e) {
    this.touchEventTrusted = e.isTrusted;
    this.mouseEventCount++;
    let t = e.touches[0];
    this.touchPosition.x = t.clientX | 0;
    this.touchPosition.y = t.clientY | 0;
  }
  touchMoveFn(e) {
    this.touchEventTrusted = e.isTrusted;
    this.mouseEventCount++;
  }
  mouseMoveFn(e) {
    this.mouseEventTrusted = e.isTrusted;
    this.mouseEventCount++;
  }
  mouseDownFn(e) {
    //数值是不是0, 同时移动没有过界，window.outerHeight跟documentElement.clientHeight 或者document.body.clientHeight是否相等
    this.mouseEventTrusted = e.isTrusted;
    this.mouseEventCount++;
    this.mousePosition.x = e.clientX;
    this.mousePosition.y = e.clientY;
    this.mouseDownCount++;
  }
  mouseClickFn(e) {
    this.mouseEventTrusted = e.isTrusted;
    this.mouseEventCount++;
    this.mouseClickPosition.x = e.clientX;
    this.mouseClickPosition.y = e.clientY;
  }
  keyDownFn(e) {
    this.keyDownCount++;
  }
  scrollFn(e) {
    this.scrollCount++;
  }
  focusFn(e) {
    this.windowFocus = true;
    this.windowBlur = false;
  }
  blurFn(e) {
    this.windowBlur = true;
  }
  devtoolsCb() {
    let details = this;
    var e = new Error();
    Object.defineProperty(e, 'stack', {
      get() {
        clearInterval(details.checkConsoleLoopHandle);
        details.consoleWindowOpened = true;
      }
    });
    console.log(e);
    if (details.consoleWindowOpened) {
      console.clear();
    }
  }
  consoleCheckLoop() {
    // if (process.env.NODE_ENV !== 'debug') {
    //   let func = this.devtoolsCb.bind(this);
    //   func();
    //   this.checkConsoleLoopHandle = setInterval(function (e) {
    //     func();
    //   }, 5e3);
    // }
  }
  getBatteryStatus(details) {
    if (!navigator.getBattery) {
      return;
    }
    navigator.getBattery().then(function (battery) {
      if (battery) {
        details.batteryLevel = battery.level * 100 | 0;
      }
    });
  }
  getDeviceOrientation(details) {
    function cb(event) {
      if (event.gamma) {
        details.deviceOrientationExists = true;
      }
      document.removeEventListener("deviceorientation", cb, false);
    }
    window.addEventListener('deviceorientation', cb, false);
  }
  getWebRTCIP(details) {
    var t = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
    if (!t) details.ip = 0;
    var r = {
      iceServers: [{
        urls: ["stun:stun.cloudflare.com:3478", "stun:stun.qq.com:3478"]
      }]
    };
    try {
      var a = new t(r);
      setTimeout(function () {
        try {
          a.close();
        } catch (t) {}
      }, 5e3);
      a.onicecandidate = function (t) {
        if (t.candidate) {
          const ipRegex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/;
          const match = t.candidate.candidate.match(ipRegex);
          // const ipAddress = t.candidate.candidate.match(ipRegex)?.[1];
          const ipAddress = match ? match[1] : null;
          if (ipAddress && !ipAddress.includes('.local')) {
            r = extractIPFromWebRTCCandidate(ipAddress);
            if (null != r) {
              details.ip = r;
              a.onicecandidate = null;
            }
          }
        }
      };
      a.createDataChannel("");
      a.createOffer().then(function (n) {
        a.setLocalDescription(n);
      }).catch(function (t) {
        details.ip = 0;
      });
    } catch (e) {
      details.ip = 0;
    }
  }
  pack() {
    let group1 = `${this.touchPosition.x | 1 << 30},${this.touchPosition.y},${this.touchEventTrusted ? 1 : 0}`;
    let group2 = `${this.mouseEventCount},${this.mousePosition.x},${this.mousePosition.y},${this.mouseClickPosition.x},${this.mouseClickPosition.y},${this.mouseDownCount},${this.mouseEventTrusted ? 1 : 0}`;
    let group3 = `${this.keyDownCount},${this.scrollCount},${this.windowBlur ? 1 : 0},${this.windowFocus ? 1 : 0}`;
    let group4 = `${this.consoleWindowOpened ? 1 : 0},${numberToHex(this.ip)},${this.batteryLevel},${this.deviceOrientationExists ? 1 : 0}`;
    let group5 = `${numberToHex(this.features)}`;
    let all = `${group1};${group2};${group3};${group4};${group5}`;
    return all;
  }
  encode() {
    return Base64.encode(this.pack());
  }
}
exports.iw = DynamicDetails;
;
function parseMovementText(text) {
  let [group1, group2, group3, group4, group5] = text.split(";");
  let details = new DynamicDetails();
  [details.touchPosition.x, details.touchPosition.y, details.touchEventTrusted] = group1.split(",");
  details.touchEventTrusted = !!parseInt(details.touchEventTrusted);
  [details.mouseEventCount, details.mousePosition.x, details.mousePosition.y, details.mouseClickPosition.x, details.mouseClickPosition.y, details.mouseDownCount, details.mouseEventTrusted] = group2.split(",");
  details.mouseEventTrusted = !!parseInt(details.mouseEventTrusted);
  [details.keyDownCount, details.scrollCount, details.windowBlur, details.windowFocus] = group3.split(",");
  details.windowBlur = !!parseInt(details.windowBlur);
  details.windowFocus = !!parseInt(details.windowFocus);
  [details.consoleWindowOpened, details.ip, details.batteryLevel, details.deviceOrientationExists] = group4.split(",");
  details.consoleWindowOpened = !!parseInt(details.consoleWindowOpened);
  details.deviceOrientationExists = !!parseInt(details.deviceOrientationExists);
  details.ip = int2ip(parseInt(details.ip, 16));
  return [details, group5];
}
function collectMovement(details) {
  let b = document.body;
  if ("ontouchmove" in document) {
    document.addEventListener("touchmove", details.touchMoveFn.bind(details), true);
  }
  b.addEventListener("touchstart", details.touchStartFn.bind(details), true);
  b.addEventListener("mousemove", details.mouseMoveFn.bind(details), true);
  b.addEventListener("mousedown", details.mouseDownFn.bind(details), true);
  b.addEventListener("click", details.mouseClickFn.bind(details), true);
  b.addEventListener("keydown", details.keyDownFn.bind(details), true);
  b.addEventListener("wheel", details.scrollFn.bind(details), true);
  window.addEventListener("focus", details.focusFn.bind(details), true);
  window.addEventListener("blur", details.blurFn.bind(details), true);
  details.getWebRTCIP(details);
  details.getDeviceOrientation(details);
  details.getBatteryStatus(details);
  details.consoleCheckLoop();
}
function extractIPFromWebRTCCandidate(n) {
  var t = /(\d+)\.(\d+)\.(\d+)\.(\d+)/.exec(n);
  return t ? (+t[1] << 24 | +t[2] << 16 | +t[3] << 8 | +t[4]) >>> 0 : null;
}
function int2ip(ipInt) {
  return (ipInt >>> 24) + '.' + (ipInt >> 16 & 255) + '.' + (ipInt >> 8 & 255) + '.' + (ipInt & 255);
}
function numberToHex(number) {
  return parseInt(number).toString(16);
}
function isNativeObject(o) {
  return !!/native code/.test(o.toString.toString()) && !!/native code/.test(o.toString());
}
function isWebGLSupported() {
  try {
    const canvas = document.createElement('canvas');
    const context = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
    return !!context;
  } catch (e) {
    return false;
  }
}
function IsSwiftShader() {
  try {
    const canvas = document.createElement('canvas');
    const gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
    if (!gl) return false;
    const debugInfo = gl.getExtension('WEBGL_debug_renderer_info');
    if (!debugInfo) return false;
    const renderer = gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL);
    return renderer.includes('SwiftShader');
  } catch (e) {
    return false;
  }
}
function IsSupportLocalStorage() {
  try {
    localStorage.a = "b";
    return localStorage.a === "b";
  } catch (e) {
    return false;
  }
}
function isMP4Supported() {
  const video = document.createElement('video');
  const isSupported = video.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');
  if (isSupported === "probably" || isSupported === "maybe") {
    return true;
  } else {
    return false;
  }
}

// Detect Browser
function getEngine() {
  const x = [].constructor;
  try {
    (-1).toFixed(-1);
  } catch (err) {
    return err.message.length + (x + '').split(x.name).join('').length;
  }
}
const engineIdentifier = getEngine();
const isBlink = engineIdentifier == 80;
const isGecko = engineIdentifier == 58;
const isWebkit = engineIdentifier == 77;
let headStyle = document.head.style;
let isChrome = window.chrome !== undefined;
let isIE = "ActiveXObject" in window;
let hasWeakMap = "WeakMap" in window.WeakMap && new window.WeakMap();
let ua = navigator.userAgent;

//收集立刻能返回的标志, 通过bit set, 打包进一个interger
let checkFunctions = __webpack_unused_export__ = {
  _1: function () {
    //mp4支持
    return isMP4Supported();
  },
  _2: function () {
    //chrome
    return isChrome;
  },
  _3: function () {
    //safari
    return "safari" in window;
  },
  _4: function () {
    //isBlink
    return isBlink;
  },
  _5: function () {
    return isGecko;
  },
  _6: function () {
    return isWebkit;
  },
  _7: function () {
    //IE 9
    return isIE && !window.atob;
  },
  _8: function () {
    //device
    return navigator.deviceMemory > 0 && navigator.hardwareConcurrency > 0;
  },
  _9: function () {
    //IE >= 11
    return isIE && hasWeakMap && isNativeObject(window.WeakMap);
  },
  _10: function () {
    //chrome
    return "Google Inc." === navigator.vendor;
  },
  _11: function () {
    //safari
    return "Apple Computer, Inc." === navigator.vendor;
  },
  _12: function () {
    //chrome headless
    return window.innerWidth === 800 && window.innerHeight === 600 && window.outerWidth === 0 && window.outerHeight === 0 || navigator.languages == "" || /Headless/i.test(ua);
  },
  _13: function () {
    //webgl支持
    return isWebGLSupported();
  },
  _14: function () {
    //python
    return /python/i.test(navigator.appVersion);
  },
  _15: function () {
    return IsSupportLocalStorage();
  },
  _16: function () {
    return /Maxthon/i.test(navigator.vendor);
  },
  _17: function () {
    //opera
    return "opr" in window || "opera" in window;
  },
  _18: function () {
    //chromium based browsers
    return isChrome && /BIDUBrowser/i.test(ua);
  },
  _19: function () {
    return isChrome && /LBBROWSER/i.test(ua);
  },
  _20: function () {
    return isChrome && /QQBrowser/.test(ua);
  },
  _21: function () {
    return isChrome && /UBrowser/i.test(ua);
  },
  _22: function () {
    return isChrome && /2345Explorer/.test(ua);
  },
  _23: function () {
    return isChrome && /TheWorld/.test(ua);
  },
  _24: function () {
    //Not Chrome, it's the Edge browser
    return isChrome && "MSGesture" in window;
  },
  _25: function () {
    return isNativeObject(Object.getOwnPropertyDescriptor) && Object.getOwnPropertyDescriptor(navigator) != undefined;
  },
  _26: function () {
    //webdriver
    return "$cdc_asdjflasutopfhvcZLmcfl_" in window || navigator.webdriver;
  },
  _27: function () {
    //document is hidden
    return document.hidden;
  },
  _28: function () {
    //chinese
    return /zh-cn/i.test(navigator.language || navigator.systemLanguage);
  },
  _29: function () {
    //beijing timezone
    return -480 === new Date().getTimezoneOffset();
  },
  _30: function () {
    return IsSwiftShader();
  },
  _31: function () {
    //document size compare
    //IE8 不支持outerWidth, 同时如果成立表示， 没有显示滚动条
    return window.outerWidth !== null && (window.outerWidth === document.documentElement.clientWidth || document.body.clientWidth);
  }
};
function packStaticFeatureValue() {
  let value = 0;
  for (let i in checkFunctions) {
    let shift = parseInt(i.split("_")[1]) - 1;
    let set = 0;
    try {
      set = checkFunctions[i]() ? 1 : 0;
    } catch (e) {}
    value |= set << shift;
  }
  return value;
}
function unpackStaticFeatureValue(value) {
  let number = parseInt(value, 16);
  let statuses = [];
  for (let i = 0; i < 31; i++) {
    let status = (number & 1 << i) > 0;
    statuses.push(status);
  }
  return statuses;
}

//用js实现， 打乱码表
var Base64 = __webpack_unused_export__ = {
  // private property
  _keyStr: "ZLHUPIO4tAok06E/caWCmSFfKusy3nrjJRzDTvBgY7wdMlXp82NViGq=+Qheb91x5",
  // public method for encoding
  encode: function (input) {
    var output = "";
    var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
    var i = 0;
    input = Base64._utf8_encode(input);
    while (i < input.length) {
      chr1 = input.charCodeAt(i++);
      chr2 = input.charCodeAt(i++);
      chr3 = input.charCodeAt(i++);
      enc1 = chr1 >> 2;
      enc2 = (chr1 & 3) << 4 | chr2 >> 4;
      enc3 = (chr2 & 15) << 2 | chr3 >> 6;
      enc4 = chr3 & 63;
      if (isNaN(chr2)) {
        enc3 = enc4 = 64;
      } else if (isNaN(chr3)) {
        enc4 = 64;
      }
      output = output + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) + this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);
    }
    return output;
  },
  // public method for decoding
  decode: function (input) {
    var output = "";
    var chr1, chr2, chr3;
    var enc1, enc2, enc3, enc4;
    var i = 0;
    input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
    while (i < input.length) {
      enc1 = this._keyStr.indexOf(input.charAt(i++));
      enc2 = this._keyStr.indexOf(input.charAt(i++));
      enc3 = this._keyStr.indexOf(input.charAt(i++));
      enc4 = this._keyStr.indexOf(input.charAt(i++));
      chr1 = enc1 << 2 | enc2 >> 4;
      chr2 = (enc2 & 15) << 4 | enc3 >> 2;
      chr3 = (enc3 & 3) << 6 | enc4;
      output = output + String.fromCharCode(chr1);
      if (enc3 != 64) {
        output = output + String.fromCharCode(chr2);
      }
      if (enc4 != 64) {
        output = output + String.fromCharCode(chr3);
      }
    }
    output = Base64._utf8_decode(output);
    return output;
  },
  // private method for UTF-8 encoding
  _utf8_encode: function (string) {
    string = string.replace(/\r\n/g, "\n");
    var utftext = "";
    for (var n = 0; n < string.length; n++) {
      var c = string.charCodeAt(n);
      if (c < 128) {
        utftext += String.fromCharCode(c);
      } else if (c > 127 && c < 2048) {
        utftext += String.fromCharCode(c >> 6 | 192);
        utftext += String.fromCharCode(c & 63 | 128);
      } else {
        utftext += String.fromCharCode(c >> 12 | 224);
        utftext += String.fromCharCode(c >> 6 & 63 | 128);
        utftext += String.fromCharCode(c & 63 | 128);
      }
    }
    return utftext;
  },
  // private method for UTF-8 decoding
  _utf8_decode: function (utftext) {
    let string = "";
    let i = 0;
    let c = 0;
    let c2 = 0;
    let c3 = 0;
    while (i < utftext.length) {
      c = utftext.charCodeAt(i);
      if (c < 128) {
        string += String.fromCharCode(c);
        i++;
      } else if (c > 191 && c < 224) {
        c2 = utftext.charCodeAt(i + 1);
        string += String.fromCharCode((c & 31) << 6 | c2 & 63);
        i += 2;
      } else {
        c2 = utftext.charCodeAt(i + 1);
        c3 = utftext.charCodeAt(i + 2);
        string += String.fromCharCode((c & 15) << 12 | (c2 & 63) << 6 | c3 & 63);
        i += 3;
      }
    }
    return string;
  }
};

/***/ }),

/***/ 47137:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(49938);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("7b2aa5e7", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 47241:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['num'],
  computed: {
    className() {
      if (this.num === 1) {
        return 'gwd-1st';
      } else if (this.num === 2) {
        return 'gwd-2nd';
      } else if (this.num === 3) {
        return 'gwd-3rd';
      } else {
        return 'gwd-nth';
      }
    }
  }
};

/***/ }),

/***/ 47293:
/***/ ((module) => {

"use strict";


// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.

// See state defs from inflate.js
var BAD = 30;       /* got a data error -- remain here until reset */
var TYPE = 12;      /* i: waiting for type bits, including last-flag bit */

/*
   Decode literal, length, and distance codes and write out the resulting
   literal and match bytes until either not enough input or output is
   available, an end-of-block is encountered, or a data error is encountered.
   When large enough input and output buffers are supplied to inflate(), for
   example, a 16K input buffer and a 64K output buffer, more than 95% of the
   inflate execution time is spent in this routine.

   Entry assumptions:

        state.mode === LEN
        strm.avail_in >= 6
        strm.avail_out >= 258
        start >= strm.avail_out
        state.bits < 8

   On return, state.mode is one of:

        LEN -- ran out of enough output space or enough available input
        TYPE -- reached end of block code, inflate() to interpret next block
        BAD -- error in block data

   Notes:

    - The maximum input bits used by a length/distance pair is 15 bits for the
      length code, 5 bits for the length extra, 15 bits for the distance code,
      and 13 bits for the distance extra.  This totals 48 bits, or six bytes.
      Therefore if strm.avail_in >= 6, then there is enough input to avoid
      checking for available input while decoding.

    - The maximum bytes that a single length/distance pair can output is 258
      bytes, which is the maximum length that can be coded.  inflate_fast()
      requires strm.avail_out >= 258 for each loop to avoid checking for
      output space.
 */
module.exports = function inflate_fast(strm, start) {
  var state;
  var _in;                    /* local strm.input */
  var last;                   /* have enough input while in < last */
  var _out;                   /* local strm.output */
  var beg;                    /* inflate()'s initial strm.output */
  var end;                    /* while out < end, enough space available */
//#ifdef INFLATE_STRICT
  var dmax;                   /* maximum distance from zlib header */
//#endif
  var wsize;                  /* window size or zero if not using window */
  var whave;                  /* valid bytes in the window */
  var wnext;                  /* window write index */
  // Use `s_window` instead `window`, avoid conflict with instrumentation tools
  var s_window;               /* allocated sliding window, if wsize != 0 */
  var hold;                   /* local strm.hold */
  var bits;                   /* local strm.bits */
  var lcode;                  /* local strm.lencode */
  var dcode;                  /* local strm.distcode */
  var lmask;                  /* mask for first level of length codes */
  var dmask;                  /* mask for first level of distance codes */
  var here;                   /* retrieved table entry */
  var op;                     /* code bits, operation, extra bits, or */
                              /*  window position, window bytes to copy */
  var len;                    /* match length, unused bytes */
  var dist;                   /* match distance */
  var from;                   /* where to copy match from */
  var from_source;


  var input, output; // JS specific, because we have no pointers

  /* copy state to local variables */
  state = strm.state;
  //here = state.here;
  _in = strm.next_in;
  input = strm.input;
  last = _in + (strm.avail_in - 5);
  _out = strm.next_out;
  output = strm.output;
  beg = _out - (start - strm.avail_out);
  end = _out + (strm.avail_out - 257);
//#ifdef INFLATE_STRICT
  dmax = state.dmax;
//#endif
  wsize = state.wsize;
  whave = state.whave;
  wnext = state.wnext;
  s_window = state.window;
  hold = state.hold;
  bits = state.bits;
  lcode = state.lencode;
  dcode = state.distcode;
  lmask = (1 << state.lenbits) - 1;
  dmask = (1 << state.distbits) - 1;


  /* decode literals and length/distances until end-of-block or not enough
     input data or output space */

  top:
  do {
    if (bits < 15) {
      hold += input[_in++] << bits;
      bits += 8;
      hold += input[_in++] << bits;
      bits += 8;
    }

    here = lcode[hold & lmask];

    dolen:
    for (;;) { // Goto emulation
      op = here >>> 24/*here.bits*/;
      hold >>>= op;
      bits -= op;
      op = (here >>> 16) & 0xff/*here.op*/;
      if (op === 0) {                          /* literal */
        //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?
        //        "inflate:         literal '%c'\n" :
        //        "inflate:         literal 0x%02x\n", here.val));
        output[_out++] = here & 0xffff/*here.val*/;
      }
      else if (op & 16) {                     /* length base */
        len = here & 0xffff/*here.val*/;
        op &= 15;                           /* number of extra bits */
        if (op) {
          if (bits < op) {
            hold += input[_in++] << bits;
            bits += 8;
          }
          len += hold & ((1 << op) - 1);
          hold >>>= op;
          bits -= op;
        }
        //Tracevv((stderr, "inflate:         length %u\n", len));
        if (bits < 15) {
          hold += input[_in++] << bits;
          bits += 8;
          hold += input[_in++] << bits;
          bits += 8;
        }
        here = dcode[hold & dmask];

        dodist:
        for (;;) { // goto emulation
          op = here >>> 24/*here.bits*/;
          hold >>>= op;
          bits -= op;
          op = (here >>> 16) & 0xff/*here.op*/;

          if (op & 16) {                      /* distance base */
            dist = here & 0xffff/*here.val*/;
            op &= 15;                       /* number of extra bits */
            if (bits < op) {
              hold += input[_in++] << bits;
              bits += 8;
              if (bits < op) {
                hold += input[_in++] << bits;
                bits += 8;
              }
            }
            dist += hold & ((1 << op) - 1);
//#ifdef INFLATE_STRICT
            if (dist > dmax) {
              strm.msg = 'invalid distance too far back';
              state.mode = BAD;
              break top;
            }
//#endif
            hold >>>= op;
            bits -= op;
            //Tracevv((stderr, "inflate:         distance %u\n", dist));
            op = _out - beg;                /* max distance in output */
            if (dist > op) {                /* see if copy from window */
              op = dist - op;               /* distance back in window */
              if (op > whave) {
                if (state.sane) {
                  strm.msg = 'invalid distance too far back';
                  state.mode = BAD;
                  break top;
                }

// (!) This block is disabled in zlib defaults,
// don't enable it for binary compatibility
//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR
//                if (len <= op - whave) {
//                  do {
//                    output[_out++] = 0;
//                  } while (--len);
//                  continue top;
//                }
//                len -= op - whave;
//                do {
//                  output[_out++] = 0;
//                } while (--op > whave);
//                if (op === 0) {
//                  from = _out - dist;
//                  do {
//                    output[_out++] = output[from++];
//                  } while (--len);
//                  continue top;
//                }
//#endif
              }
              from = 0; // window index
              from_source = s_window;
              if (wnext === 0) {           /* very common case */
                from += wsize - op;
                if (op < len) {         /* some from window */
                  len -= op;
                  do {
                    output[_out++] = s_window[from++];
                  } while (--op);
                  from = _out - dist;  /* rest from output */
                  from_source = output;
                }
              }
              else if (wnext < op) {      /* wrap around window */
                from += wsize + wnext - op;
                op -= wnext;
                if (op < len) {         /* some from end of window */
                  len -= op;
                  do {
                    output[_out++] = s_window[from++];
                  } while (--op);
                  from = 0;
                  if (wnext < len) {  /* some from start of window */
                    op = wnext;
                    len -= op;
                    do {
                      output[_out++] = s_window[from++];
                    } while (--op);
                    from = _out - dist;      /* rest from output */
                    from_source = output;
                  }
                }
              }
              else {                      /* contiguous in window */
                from += wnext - op;
                if (op < len) {         /* some from window */
                  len -= op;
                  do {
                    output[_out++] = s_window[from++];
                  } while (--op);
                  from = _out - dist;  /* rest from output */
                  from_source = output;
                }
              }
              while (len > 2) {
                output[_out++] = from_source[from++];
                output[_out++] = from_source[from++];
                output[_out++] = from_source[from++];
                len -= 3;
              }
              if (len) {
                output[_out++] = from_source[from++];
                if (len > 1) {
                  output[_out++] = from_source[from++];
                }
              }
            }
            else {
              from = _out - dist;          /* copy direct from output */
              do {                        /* minimum length is three */
                output[_out++] = output[from++];
                output[_out++] = output[from++];
                output[_out++] = output[from++];
                len -= 3;
              } while (len > 2);
              if (len) {
                output[_out++] = output[from++];
                if (len > 1) {
                  output[_out++] = output[from++];
                }
              }
            }
          }
          else if ((op & 64) === 0) {          /* 2nd level distance code */
            here = dcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];
            continue dodist;
          }
          else {
            strm.msg = 'invalid distance code';
            state.mode = BAD;
            break top;
          }

          break; // need to emulate goto via "continue"
        }
      }
      else if ((op & 64) === 0) {              /* 2nd level length code */
        here = lcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];
        continue dolen;
      }
      else if (op & 32) {                     /* end-of-block */
        //Tracevv((stderr, "inflate:         end of block\n"));
        state.mode = TYPE;
        break top;
      }
      else {
        strm.msg = 'invalid literal/length code';
        state.mode = BAD;
        break top;
      }

      break; // need to emulate goto via "continue"
    }
  } while (_in < last && _out < end);

  /* return unused bytes (on entry, bits < 8, so in won't go too far back) */
  len = bits >> 3;
  _in -= len;
  bits -= len << 3;
  hold &= (1 << bits) - 1;

  /* update state and return */
  strm.next_in = _in;
  strm.next_out = _out;
  strm.avail_in = (_in < last ? 5 + (last - _in) : 5 - (_in - last));
  strm.avail_out = (_out < end ? 257 + (end - _out) : 257 - (_out - end));
  state.hold = hold;
  state.bits = bits;
  return;
};


/***/ }),

/***/ 47460:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-mini-trend-right",
    style: _vm.ready ? "display: flex; height: 100%;" : "width: 7px"
  }, [_c("div", {
    staticStyle: {
      width: "13px"
    }
  }), _vm._v(" "), _vm.shaidanAvailable ? _c("ShaiDan", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.ready,
      expression: "ready"
    }],
    staticStyle: {
      flex: "1"
    },
    attrs: {
      dkey: _vm.promoHistory.dkey,
      price: this.price
    }
  }) : _vm._e()], 1);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 47552:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
// const getCoupon = require('common/getCoupon')
const template = __webpack_require__(26133);
const detect = __webpack_require__(3494);
const priceParser = __webpack_require__(5286);
let html = __webpack_require__(23252);
const request = __webpack_require__(49388);
const cnzz = __webpack_require__(5300);
const log = __webpack_require__(35743);
const userData = __webpack_require__(74222);
const getCoupon = __webpack_require__(80791);
const QRReloader = __webpack_require__(76855);
const extConsole = __webpack_require__(7129);
const store = (__webpack_require__(92771).getStore)();
let randomNum;
const renderTop = data => {
  extConsole.log('renderTop');
  if (!data || data.code !== 200) {
    // require('tbHbQrcode').init()
    $('#gwdang-banner-ad2').show();
    setTimeout(() => {
      (__webpack_require__(73743).init)(false);
    }, 3000);
    return;
  }
  data = data.data;
  if (data) {
    setTimeout(() => {
      (__webpack_require__(73743).init)(true);
    }, 3000);
  } else {
    setTimeout(() => {
      (__webpack_require__(73743).init)(false);
    }, 3000);
  }
  data.pid = '30002';
  if (navigator.userAgent.indexOf('Firefox') > -1) {
    data.pid = 'firefox-top';
  }
  data.rendering = 'renderTop';
  getPageInfo(data, function (newData, url) {
    let html = __webpack_require__(54608);
    let isShowPic = randomNum > -1 ? true : false;
    let tle = "点击领券";
    if (isShowPic) {
      tle = "";
    }
    const clickLink = (__webpack_require__(12826).appendTbInfoForUrl)(`https://tb.gwdang.com/extension/qrpage${data.rebate ? 'all' : ''}?dp_id=${G.dp.dpId}&tag=9_${G.browser}&discount=${data.coupon.coupon_money}${data.rebate ? `&rebate=${data.rebate}&utoken=${data.utoken}` : ''}`);
    let views = template.compile(html)({
      price: data.coupon.coupon_money,
      url: clickLink,
      tle: tle,
      isShowPic: false,
      picUrl: false,
      useTaobao: false
    });
    if ($('#top_coupon_btn').length) {
      return;
    }
    $('.gwd-topbar-left').append(views);
    // require('common/sideCoupon').add('商品券', data.coupon.coupon_money, clickLink)
    cnzz.log('淘宝优惠券顶部二维码', '曝光');
    let hasQr = false;
    $('.gwd-topbar-left .coupon_detail img').css('visibility', 'hidden');
    $('#top_coupon_btn').hover(function () {
      if (!hasQr) {
        QRReloader.init(newData, url, '.gwd-topbar-left .coupon_detail > img', function (newData2) {
          hasQr = true;
          cnzz.log('淘宝优惠券顶部二维码', '悬浮');
          cnzz.log('track:topcoupon:' + G.from_device);
          log('track:topcoupon:' + G.from_device);
          addEvent('click:topcoupon:' + G.from_device);
        });
      }
    });
  });
};
const renderTop2 = data => {
  if (data instanceof Array) {
    return;
  }
  let html = __webpack_require__(54608);
  $('.gwd-topbar-left').append(template.compile(html)({
    price: data.discount,
    url: data.click_url2
  }));
  cnzz.log('track:topcoupon_2:' + G.from_device);
  log('track:topcoupon_2:' + G.from_device);
  addEvent('click:topcoupon_2:' + G.from_device);
};
const addEvent = str => {
  let showQRcode;
  $('#top_coupon_btn').on('click', function () {
    cnzz.log(str);
    log(str);
  });
  $('.coupon-close-btn').on('click', function (e) {
    $('#top_coupon_btn').remove();
    return false;
  });
  $('#top_coupon_btn').on('mouseenter', function () {
    if (!showQRcode) {
      cnzz.log("track:coupon:qrcode:top");
      log("track:coupon:qrcode:top");
      showQRcode = true;
    }
  });
};
const getPageInfo = __webpack_require__(41826);
const renderMini = async data => {
  await (__webpack_require__(30888).waitForConditionFn)(() => {
    return $(`#mini_price_history`).length;
  });
  if (!data || data && data.code !== 200) {
    if (G.runminiCoupon2) {
      $(document).trigger('runminiCoupon2');
    } else {
      G.runminiCoup = '1';
    }
    (__webpack_require__(13871).init)();
    (__webpack_require__(41761).setMet)('coupon');
    //renderRedPack()
    return;
  }
  (__webpack_require__(41761).setMet)('shopCouponGot', false);
  G.runminiCoup = '2';
  data = data.data;
  data.pid = '30001';
  if (navigator.userAgent.indexOf('Firefox') > -1) {
    data.pid = 'firefox-middle';
  }
  (__webpack_require__(41761).setMet)('coupon', data.coupon.coupon_money);
  const butie = false;
  store.commit('promos/setState', {
    coupon: {
      value: data.coupon.coupon_money,
      link: `https://tb.gwdang.com/extension/qrpage${data.rebate ? 'all' : ''}?dp_id=${G.dp.dpId}&tag=9_${G.browser}&discount=${data.coupon.coupon_money}${data.rebate ? `&rebate=${data.rebate}&utoken=${data.utoken}` : ''}${butie ? '&butie=1' : ''}`
    }
  });
  getPageInfo(data, function (newData, url) {
    data.coupon.lastPrice = Number(G.dp.price - data.coupon.coupon_money).toFixed(2);
    let isShowPic = randomNum > -1 ? true : false;
    let tle = "点击领券";
    if (isShowPic) {
      tle = "";
    }

    // new coupon
    const CommonCouponBarMini = (__webpack_require__(84593)["default"]);
    new Vue({
      el: '#gwd-coupon-placeholder',
      render: h => h(CommonCouponBarMini, {
        props: {
          type: 'link',
          href: `https://tb.gwdang.com/extension/qrpage${data.rebate ? 'all' : ''}?dp_id=${G.dp.dpId}&tag=9_${G.browser}&discount=${data.coupon.coupon_money}${data.rebate ? `&rebate=${data.rebate}&utoken=${data.utoken}` : ''}${butie ? '&butie=1' : ''}`,
          icon: __webpack_require__(72966),
          text: butie ? `当前商品可领<span style="font-size: 18px; font-family: PingfangSC-Medium">${data.coupon.coupon_money}</span>元券 & 补贴` : '当前商品领券立减<span style="font-size: 18px; font-family: PingfangSC-Medium">' + data.coupon.coupon_money + '</span>元',
          mainColor: '#fd0937',
          secondColor: '#ff5e79',
          couponValue: data.coupon.coupon_money,
          takeBg: __webpack_require__(11736),
          qrTitle: '领商品券',
          qrParams: newData,
          rebate: data.rebate
        }
      })
    });
  });
};
const renderMini2 = data => {
  if (data instanceof Array) {
    return;
  }
  data = {
    'click_url': data.click_url2,
    'coupon': {
      'coupon_money': data.discount,
      'lastPrice': data.couponPricePC
    }
  };
  let views = template.compile(html)({
    data: data
  });
  $(`.${G.wishdom}`).append(views);
  cnzz.log('track:topcoupon_2:' + G.from_device);
  log('track:topcoupon_2:' + G.from_device);
  $('#coupon_box').on('click', function () {
    cnzz.log('click:minicoupon_2:' + G.from_device);
    log('click:minicoupon_2:' + G.from_device);
  });
};
const getCouponInfo = callback => {
  let dp_query = userData.get('dp_query');
  let dp_id = dp_query && dp_query.dp && dp_query.dp.dp_id;
  let url = `https://browser.gwdang.com/app/quanbtc?dpid=${dp_id}`;
  request.get(url).done(data => {
    callback(data);
  });
};
const render2 = data => {
  if (data.length === 0 || !data.lt_short_link && !data.click_url) {
    return;
  }
  if ($('.gwd-coupon-bar').length) {
    return;
  }
  if (data.lt_short_link) data.click_url = data.lt_short_link;
  if (!data.couponPricePC) {
    data.couponPricePC = (Number(data.pcPrice) - Number(data.discount)).toFixed(2);
  }
  renderMini2(data);
  renderTop2(data);
};
const renderIndex = () => {
  randomNum = parseInt(Math.random() * 100);
  let dp_id = G.dp.dpId;
  __webpack_require__(13567)(dp_id).then(r => {
    if ($('.gwd-coupon-bar').length) {
      return;
    }
    renderMini(r);
    renderTop(r);
  });
};
module.exports.init = dom => {
  if (G.forbidCoupon) return;
  if (G.from_device === '360') return;
  var siteName = G.site;
  let siteId = detect.getSiteId(siteName);
  priceParser.init(siteId, function (price) {
    if (price && price > 0) {
      G.dp.oldPrice = price;
      G.dp.price = price;
    }
    renderIndex();
  });
};
module.exports.init2 = () => {
  getCouponInfo(render2);
};

/***/ }),

/***/ 47764:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var charAt = (__webpack_require__(68183).charAt);
var toString = __webpack_require__(655);
var InternalStateModule = __webpack_require__(91181);
var defineIterator = __webpack_require__(51088);
var createIterResultObject = __webpack_require__(62529);

var STRING_ITERATOR = 'String Iterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);

// `String.prototype[@@iterator]` method
// https://tc39.es/ecma262/#sec-string.prototype-@@iterator
defineIterator(String, 'String', function (iterated) {
  setInternalState(this, {
    type: STRING_ITERATOR,
    string: toString(iterated),
    index: 0
  });
// `%StringIteratorPrototype%.next` method
// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
}, function next() {
  var state = getInternalState(this);
  var string = state.string;
  var index = state.index;
  var point;
  if (index >= string.length) return createIterResultObject(undefined, true);
  point = charAt(string, index);
  state.index += point.length;
  return createIterResultObject(point, false);
});


/***/ }),

/***/ 47899:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

const Utils = __webpack_require__(92726)

function clearCanvas (ctx, canvas, size) {
  ctx.clearRect(0, 0, canvas.width, canvas.height)

  if (!canvas.style) canvas.style = {}
  canvas.height = size
  canvas.width = size
  canvas.style.height = size + 'px'
  canvas.style.width = size + 'px'
}

function getCanvasElement () {
  try {
    return document.createElement('canvas')
  } catch (e) {
    throw new Error('You need to specify a canvas element')
  }
}

exports.render = function render (qrData, canvas, options) {
  let opts = options
  let canvasEl = canvas

  if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {
    opts = canvas
    canvas = undefined
  }

  if (!canvas) {
    canvasEl = getCanvasElement()
  }

  opts = Utils.getOptions(opts)
  const size = Utils.getImageWidth(qrData.modules.size, opts)

  const ctx = canvasEl.getContext('2d')
  const image = ctx.createImageData(size, size)
  Utils.qrToImageData(image.data, qrData, opts)

  clearCanvas(ctx, canvasEl, size)
  ctx.putImageData(image, 0, 0)

  return canvasEl
}

exports.renderToDataURL = function renderToDataURL (qrData, canvas, options) {
  let opts = options

  if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {
    opts = canvas
    canvas = undefined
  }

  if (!opts) opts = {}

  const canvasEl = exports.render(qrData, canvas, opts)

  const type = opts.type || 'image/png'
  const rendererOpts = opts.rendererOpts || {}

  return canvasEl.toDataURL(type, rendererOpts.quality)
}


/***/ }),

/***/ 48073:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "\ndiv.shareExt[data-v-43260888] {\n  display: inline-block;\n  position: relative;\n  /* border-left: none!important; */\n}\n.shareExt .btn-tab-sp em[data-v-43260888] {\n  height: 22px;\n  width: 22px;\n  margin-top: 7px !important;\n  background: url(\"https://cdn.gwdang.com/images/extensions/newbar/sshareext.png\") 0px 0px no-repeat;\n}\n.shareExt:hover .share-detail[data-v-43260888] {\n  display: block;\n}\n.share-detail[data-v-43260888] {\n  width: 300px;\n  /*height:184px;*/\n  height: auto !important;\n  /* left: -47px; */\n  right: -81px;\n  top: 36px;\n  background-color: #fff;\n  border: 1px solid rgba(237, 241, 242, 1);\n  box-shadow: 0px 1px 6px 0px rgba(135, 135, 135, 0.49);\n}\n.share-sp1[data-v-43260888] {\n  float: left;\n  margin-top: 16px;\n  margin-left: 16px;\n  margin-right: 19px;\n  /*height: 20px;*/\n  /*width: 168px;*/\n  line-height: 20px;\n  color: #48BEFE;\n  font-size: 16px;\n}\n.share-sp2[data-v-43260888] {\n  /*float: left;*/\n  display: block;\n  margin-left: 16px;\n  margin-top: 16px;\n  margin-right: 19px;\n  /*width:192px;*/\n  font-size: 12px;\n  line-height: 16px;\n  color: #333333;\n  word-break: break-all;\n}\n.share-sp2 a[data-v-43260888] {\n  text-decoration: underline;\n  color: #333333;\n}\n.share-sp2 a[data-v-43260888]:hover {\n  color: #48befe;\n}\n.share-sp3[data-v-43260888] {\n  width: 116px;\n  height: 34px;\n  background: rgba(72, 190, 254, 1);\n  border-radius: 2px;\n  margin-top: 20px;\n  /*margin-left: 75px;*/\n  font-size: 12px;\n  color: #fff;\n  text-align: center;\n  line-height: 34px;\n  font-weight: bold;\n  cursor: pointer;\n  display: inline-block;\n}\n.gwd-share-title[data-v-43260888] {\n  display: -webkit-box;\n  text-overflow: ellipsis;\n  -webkit-line-clamp: 2;\n  overflow: hidden;\n  -webkit-box-orient: vertical;\n}\n#copy-input[data-v-43260888] {\n  position: fixed;\n  bottom: -1px;\n  right: -1px;\n  float: left;\n  opacity: 0;\n  width: 10px;\n  height: 10px;\n}\n#copy-btn.copyss[data-v-43260888] {\n  background-color: #2FCE98;\n}\n", ""]);

// exports


/***/ }),

/***/ 48076:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ PromotionIconvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ PromotionIcon)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PromotionIcon.vue?vue&type=template&id=c3c64a38&scoped=true
var PromotionIconvue_type_template_id_c3c64a38_scoped_true = __webpack_require__(32222);
;// ./src/standard/module/components/PromotionIcon.vue?vue&type=template&id=c3c64a38&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PromotionIcon.vue?vue&type=script&lang=js
var PromotionIconvue_type_script_lang_js = __webpack_require__(36733);
;// ./src/standard/module/components/PromotionIcon.vue?vue&type=script&lang=js
 /* harmony default export */ const components_PromotionIconvue_type_script_lang_js = (PromotionIconvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PromotionIcon.vue?vue&type=style&index=0&id=c3c64a38&prod&scoped=true&lang=less
var PromotionIconvue_type_style_index_0_id_c3c64a38_prod_scoped_true_lang_less = __webpack_require__(5856);
;// ./src/standard/module/components/PromotionIcon.vue?vue&type=style&index=0&id=c3c64a38&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/PromotionIcon.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_PromotionIconvue_type_script_lang_js,
  PromotionIconvue_type_template_id_c3c64a38_scoped_true/* render */.XX,
  PromotionIconvue_type_template_id_c3c64a38_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "c3c64a38",
  null
  
)

/* harmony default export */ const PromotionIcon = (component.exports);

/***/ }),

/***/ 48097:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAwCAYAAAB0WahSAAAAAXNSR0IArs4c6QAABt5JREFUWMO9WF2oXFcV/r51zv0JTW5IhChCoLGgQkVEAg2CYHwQ+iD44kV8kKKFUESQiEgpaLBWffGP1hdBrFixvWClYAUFqQjaijEUNRarJrQVU5rQxDt35s6ZOXt9Ppy/fX5mbnqLPXDvzOyz91rf+ta31t7nEK/junz58vo0T78k4MaBNP/OiRMnpvu1lb4eIJMs+Rbgd5Fcm2R2K4B79muL+1l08eLF1anf8hWDPi8JIEtjeuAfz+1+eXPz9tkbwsh2tvo1an62AgBAgAjgvuO3ra8A+MJrZuQPF174DCz/5R3vue35vSafP39+ZTQ/eD87jtSjl9985aX83pthRhJ//6d/vo3PXLgkADcIPuqOh1+69Mfzm5ubobtga2srOXzsXWdoeBAEJZCkJGcDQSAJiS7q7PaVvz40ZAsAnnrq4sH1w+unTPi0yA9UQOLrOsinE+h3zuTPVPLv6zb9z/SV8T0gv0iQgkhQkggAJFSNlQwRoAv+9cPJxv2zo2HjcI7jbnwHA95txpMCTgG4peZwAEiHdV29sZNd2x5n7yRgVSq45DNK1/ahA2t/O7Kx9iYIbwF5aF9ilcQbO9mxazfGx6RKB41LQXFSyv/FZzl9I8vyU6Bw5NCB/VfN9dEUV67tQHrtlRWzc+XaGBJwdGMxGM7mQRJKZ2pVARQbVud3lTn01ihe0xvvrBFgRqRXr2fI5w6XiqUCXIJUfJcEQZAXY67CgYRiDIK8GHPvris/vfzugiO6X85dX0uQzmY5ZnNv3egC8ZIyV9uIR04aEH1HHs1HbL8Gtoo0BEdwbyF3b0fjgw6WAIuY9JK5ZcGE4Ehzd+S5d1IQs7KYqTaggTleApEXvxEH1tgI7kg9OELwjsHGKNQxtpCJRidDkQ8FV80JISCdB0cewoLJBQCvDTYC9UiAXVZqQBDcl6dTEkJIkQbvMtJEPyTa2kgNqO8IHYFqiMEoqBAcqedCviA17YrpOOwBGPrtHQDDQQR3pHmdGrQqBIijAuTergbvR9kHXFVgo52mKpvCKBhppSZCvIfA4ijRqxxv66lKlw+lumYk1OXbrfVeA1qQhpbzQf10mWwHGYIjDa66ofUdd6tGUW/QktLEoN4GQddAcsc8DzcVeSsNcdRQa9+5GVBxsEVq3OGlELv7xXKDw/oY2oeGumkPSHBHnodW9N1+4XEV+YKU9SIdAF9137qPeFM1ITjyEE1espP6QFl2nRQ7arvcfUFDQ/1MRKQhDwihYaS1Vyxq4Us7ZrThIYocaJ30SIBmIAkzK1MTfKmTroNuCpZXUcc5iqcPIwESZHlCC6HQyKKU+B4aGD51qT5mF/5Y/hWjLG9Y+aSYVECC+x5lNsyEol25OmqWrsDCawMCAI01kBhYYlbtNd4W4R7lWe9Haj9u0qymvsWAoQY3xEqRGhdC7kvOGP3ds46cgC2KvnJajbecF2O1DTOkIQTk7k2ufbjMFDkHDFYabSLkoB5qgChECbTnQY7J7i7SPAh5cMnFoYbWGLWeo0psfTFW0Rf3huZJwnQ6wXS6q5DPkLqkPA9sSq15RjNjvdgq+ruOe+koy7P414izBBg8x3g0QjadwuUwkkYgzfPA4F4WG0Ba34FxGEDHeV8frJ+FsyzDZLyD2Syr7yXWMJUWFBtglAHsKTsej/I7THskTCvo3xmNMJ1MEEIOAKKBFgnZykBSK5ExMbBu/e1mUzlCtLCV8+p7yVw2y7A7nmB3dwJ3r4VdplpFO6ESipV40yQxWJqoDrRDfwFIIA1mFIoXMk3FRGCyLMP29n+RZRnglCUiSdEqRkFjVQBivdaoNEkSpVZNQy1KK2VvVgtXjY7qVAjky6PtUbYzGt06n8/LTQxgWjgCCQNgBoAmg1jbTEyUSIgpCZpZT2RmVPnehSUzrNBDopGXZPaDYPjJy9eurq4n6YdIfs4MxyMRq9FywYJFGjSItFKsSZIoMWulxco3Y9WkIiUgwDGoZyxJv/rike3fnjt9Oo/etTz30a2th25/ge9nynsT8oMgUlqhCaJgCqh0htoXjeAPf3ZeO5MZzKzIf4zYqFKYr4J6DEGPfGrzjqf3elt07tzWano0ea+ZfTwhPgHgMDtibSqmTPsjT1zQeHdW6MJM1bvKkta/E/aj2aq+febDJyf7eTl87rtbBw9y5bNI7C4DTpCFRGpgleYe/fmzPppkLE9KopTB8Au4Hp6t2a/3C2AI0NHkwGmk+CSAO824ZqXeEjPxsSef1Xg6F2lXCTyZzfTAmY+d/Bf+j9c3vvf429dXVs8a8RGSbzYSfPxXf/nNaDz/6Xw+/fHdm+97FW/g9eD3n3jr+srqnaDu/h/Pp+8aC0PduwAAAABJRU5ErkJggg==";

/***/ }),

/***/ 48190:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".bjgou-subsidy-bar[data-v-cda10c54] {\n  width: 460px;\n  background: white;\n  border-left: 1px solid #e6e9eb;\n  border-right: 1px solid #e6e9eb;\n  border-bottom: 1px solid #e6e9eb;\n  display: inline-flex;\n  align-items: center;\n  height: 34px;\n}\n.bjgou-subsidy-bar .bjg-badge[data-v-cda10c54] {\n  margin-left: 13px;\n  font-size: 0;\n}\n.bjgou-subsidy-bar .bjg-bold[data-v-cda10c54] {\n  font-size: 13px;\n  font-weight: bold;\n  color: #ff2d53;\n}\n.bjgou-subsidy-bar .bjg-take[data-v-cda10c54] {\n  min-width: 87px;\n  height: 22px;\n  border: 0.5px solid #FF2D53;\n  position: relative;\n  display: flex;\n  cursor: pointer;\n  border-radius: 2px;\n}\n.bjgou-subsidy-bar .bjg-take span[data-v-cda10c54] {\n  font-size: 12px;\n  text-align: center;\n  line-height: 22px;\n}\n.bjgou-subsidy-bar .bjg-take .taker[data-v-cda10c54] {\n  color: white;\n  width: 36px;\n  height: 24px;\n  line-height: 24px;\n  background: linear-gradient(90deg, #FF3A62 0%, #FF665B 100%);\n  display: inline-block;\n}\n.bjgou-subsidy-bar .bjg-take .qrcode[data-v-cda10c54] {\n  display: none;\n  position: absolute;\n  top: 27px;\n  right: -15px;\n  width: 148px;\n  height: 156px;\n  background: #FFF7F7;\n  border: 1px solid #FF2D53;\n  z-index: 9;\n}\n.bjgou-subsidy-bar .bjgou-subsidy-bar:hover .qrcode[data-v-cda10c54] {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n}\n", ""]);

// exports


/***/ }),

/***/ 48408:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

// TODO: Remove this module from `core-js@4` since it's replaced to module below
__webpack_require__(98406);


/***/ }),

/***/ 48514:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


let dict = {
  '360buy': [[/^(?:http|https):\/\/www\.jd\.com\/pinpai\/.*\.html/, '#J_goodsList', '#plist .list-h'], [/^(?:http|https):\/\/search\.jd\.com\/Search\?keyword/i, '#J_goodsList li', '#plist .list-h'], [/^(?:http|https):\/\/list\.jd\.com/, '#J_main li'], [/^(?:http|https):\/\/sale\.jd\.com/, 'div.layoutcontainer .layoutarea .layout .layout_one']],
  // 'vipshop':[
  //   [/^(?:http|https):\/\/list\.vip\.com/, '.pro_list'],
  //   [/^(?:http|https):\/\/act\.vip\.com/, '.floor li', '.act li', '.lh_list'],
  //   [/^(?:http|https):\/\/category\.vip\.com/, '#bulidFloor', '.m-cat-list']
  // ],
  '51buy': [[/http:\/\/searchex\.yixun\.com/, "#container .goods"], [/http:\/\/event\.yixun\.com/, "ul.item_list_3", 'div.bd'], [/http:\/\/sale\.yixun\.com/, "#J_floorHoliday .bd"], [/http:\/\/event\.yixun\.com\/event\/.*\.html/, '.page_event']],
  'tmall': [[/(?:https:|http:)\/\/list\.tmall\.com\/search_product.htm/, '#J_ProductList > .product'], [/(?:https:|http:)\/\/list\.tmall\.hk\/search_product.htm/, '#J_ItemList > .product']],
  'amazon': [[/http:\/\/www\.amazon\.cn\/[a-z]\//, 'body']],
  'suning': [
  // [/http:\/\/sale\.suning\.com/,'div.part'],
  [/(?:https:|http:)\/\/cuxiao\.suning\.com/, '.head-img-wrapper', '.floor'], [/(?:https:|http:)\/\/list\.suning\.com/, '.grid', '#filter-results li'], [/(?:https:|http:)\/\/search\.suning\.com/, '#filter-results li'], [/(?:https:|http:)\/\/www\.suning\.com/, '#filter-results li']],
  'dangdang': [[/http:\/\/www\.dangdang\.com\/brands\//, '.search_list'], [/http:\/\/search\.dangdang\.com/, '.bigimg', '.cloth_good_sort'], [/http:\/\/book\.dangdang\.com/, '#bd_auto ul'],
  // [/http:\/\/category\.dangdang\.com/,'#bd .shoplist', '#bd .content_list'],
  [/http:\/\/list\.dangdang\.com/, '#bd .resultlist'], [/http:\/\/promo\.dangdang\.com/, '.promotionslist_wrapper .pro_list', '.promo_activity_wrap'], [/http:\/\/v\.dangdang\.com/, '#bd .v_shop_box'], [/http:\/\/t\.dangdang\.com/, '#bd ul']],
  'gome': [[/http:\/\/brand\.gome\.com\.cn/, '.result-wrap'], [/http:\/\/list\.gome\.com\.cn/, '.nSearchWarp-main'], [/http:\/\/prom\.gome\.com\.cn/, '.tpage .paget', '.shangpin_fx'], [/http:\/\/search\.gome\.com\.cn/, '.result-wrap', 'li.product-item']],
  'yihaodian': [[/http:\/\/list\.yhd\.com/, '.mod_product_list .mod_search_pro'], [/http:\/\/cms\.yhd\.com/, '#cmsBgPath '], [/http:\/\/search\.yhd\.com/, '.mod_product_list .mod_search_pro']],
  'jumei': [[/^(?:http|https):\/\/search\.jumei\.com/, '.products_wrap'], [/^(?:http|https):\/\/hd\.jumei\.com/, '.act_product_list']],
  'jumeiglobal': [[/^(?:http|https):\/\/hd\.jumeiglobal\.com/, '.act_product_list', '.model_parent ul']],
  'vmall': [[/^(?:http|https):\/\/www\.vmall\.com\/.+/, '.layout'], [/^(?:http|https):\/\/sale\.vmall\.com/, '.guide-bd', '#activity_main'], [/^(?:http|https):\/\/mm\.vmall\.com/, '.new-reserve-top-wrp']],
  'feiniu': [[/^(?:http|https):\/\/www\.feiniu\.com\/.+/, '.editDomain', '.productshow', '.exhibition', '#tracker_category'], [/^(?:http|https):\/\/sale\.feiniu\.com/, '.title_bg.cms_pool ul'], [/^(?:http|https):\/\/search\.feiniu\.com/, '#cata_choose_product']],
  'yougou': [[/^(?:http|https):\/\/www\.yougou\.com\/.+/, '.yui3-g'], [/^(?:http|https):\/\/seoul\.yougou\.com/, 'div.main_goods', '.yui3-g']],
  // 'womai':[
  //   [/^(?:http|https):\/\/www\.womai\.com/, '.wrap ul'],
  //   [/^(?:http|https):\/\/gz\.womai\.com/, '.floors .f_m_cont', '.pglist_main .product_list'],
  //   [/^(?:http|https):\/\/sh\.womai\.com/, '.J-floor', '.wrap ul', '.pglist_main .product_list']
  // ],
  'kaola': [[/^(?:http|https):\/\/www\.kaola\.com\/.+/, 'li.goods', '.wrap ul']],
  // 'yintai':[
  //   [/^(?:http|https):\/\/www\.yintai\.com/, '.yt-wrap', '.p-listInfo'],
  //   [/^(?:http|https):\/\/temai\.yintai\.com/, '.offer-list-product', '#bd'],
  //   [/^(?:http|https):\/\/promotion\.yintai\.com/, '.mp_product']
  // ],
  'jiuxian': [[/^(?:http|https):\/\/www\.jiuxian\.com\/.+/, '.mainBox', '.sequence_list'],
  // [/^(?:http|https):\/\/list\.jiuxian\.com/, '.proListSearch'],
  [/^(?:http|https):\/\/special\.jiuxian\.com/, '.fourbox']
  // [/^(?:http|https):\/\/sale\.jiuxian\.com/, '.modeltwo']
  ],
  // 'secoo':[
  //   [/^(?:http|https):\/\/www\.secoo\.com/, '.floor'],
  //   [/^(?:http|https):\/\/list\.secoo\.com/, '.commodity-list'],
  //   [/^(?:http|https):\/\/search\.secoo\.com/, '.commodity-list'],
  //   [/^(?:http|https):\/\/sale\.secoo\.com/, '.contentSpList']
  // ],
  // 'wbiao':[
  //   [/^(?:http|https):\/\/www\.wbiao\.cn/, '.act-f', '.watchShow', '#search_goods_list', '.wrap'],
  //   [/^(?:http|https):\/\/search\.wbiao\.cn/, '#search_goods_list']
  // ],
  'sfbest': [[/^(?:http|https):\/\/www\.sfbest\.com\/.+/, '.sfRight', '.p-list']],
  'vancl': [[/^(?:http|https):\/\/s\.vancl\.com/, 'li.productwrapper']
  // [/^(?:http|https):\/\/catalog\.vancl\.com/, '#new_tb td']
  ],
  // 'miyabaobei':[
  //   [/^(?:http|https):\/\/www\.mia\.com/, '.HolidayBackgroundBottom', 'body']
  // ],
  'fengqu': [[/^(?:http|https):\/\/www\.fengqu\.com\/.+/, '.module']],
  'lefeng': [[/^(?:http|https):\/\/search\.lefeng\.com/, '#productDivGroup'], [/^(?:http|https):\/\/brand\.lefeng\.com/, '.makeup']],
  'ehaier': [[/^(?:http|https):\/\/search\.ehaier\.com/, 'ul.ul-prolist'], [/^(?:http|https):\/\/www\.ehaier\.com\/.+/, 'ul.ul-excel', '.tab-cont', '.kinds-main']],
  'yunhou': [[/^(?:http|https):\/\/search\.yunhou\.com/, '#jGoodsCnt .goods-lists div.cols'], [/^(?:http|https):\/\/list\.yunhou\.com\/.+/, '#jGoodsCnt .goods-lists div.cols']],
  'ule': [[/^(?:http|https):\/\/(?!item|www).+\.ule\.com\/.+/, '.goodsList .goodsListBlock li.noPre']],
  'banggo': [[/^(?:http|https):\/\/search\.banggo\.com/, '.mbshop_pdList li.mbshop_listPdCon']],
  'baobeigezi': [[/^(?:http|https):\/\/search\.baobeigezi\.com/, '#main_list .pro_item'], [/^(?:http|https):\/\/list\.baobeigezi\.com/, '#main_list .pro_item'], [/^(?:http|https):\/\/item\.baobeigezi\.com\/[a-z]+_[0-9]+\//, '#main_list .pro_item']],
  'zhongjiu': [[/^(?:http|https):\/\/www\.zhongjiu\.cn\/list\//, '#plist li.clearfix'], [/^(?:http|https):\/\/www\.zhongjiu\.cn\/search\./, '#plist li.clearfix'], [/^(?:http|https):\/\/s\.zhongjiu\.cn\/search\/index/, '.rg_sl_list ul li']]
};
let cache;
module.exports.check = site => {
  if (cache) return cache;
  site = G.site || site;
  if (!dict[site]) return false;
  for (let i = dict[site].length - 1; i >= 0; i--) {
    let p = dict[site][i];
    if (p[0].test(location.href)) {
      cache = p.slice(1);
      return cache;
    }
  }
  ;
};

/***/ }),

/***/ 48686:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var DESCRIPTORS = __webpack_require__(43724);
var fails = __webpack_require__(79039);

// V8 ~ Chrome 36-
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
module.exports = DESCRIPTORS && fails(function () {
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
    value: 42,
    writable: false
  }).prototype !== 42;
});


/***/ }),

/***/ 48773:
/***/ ((__unused_webpack_module, exports) => {

"use strict";

var $propertyIsEnumerable = {}.propertyIsEnumerable;
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;

// Nashorn ~ JDK8 bug
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);

// `Object.prototype.propertyIsEnumerable` method implementation
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  var descriptor = getOwnPropertyDescriptor(this, V);
  return !!descriptor && descriptor.enumerable;
} : $propertyIsEnumerable;


/***/ }),

/***/ 48836:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "#gwdang-trend:hover {\n  background: #edf1f2;\n}\n#gwdang-trend:hover #gwdang-trend-detail {\n  display: block;\n}\n.gwdang-tab .top-bar-detail {\n  display: none!important;\n}\n.gwdang-tab:hover .top-bar-detail {\n  display: flex!important;\n}\n", ""]);

// exports


/***/ }),

/***/ 48904:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", [_vm._t("default")], 2);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 48981:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var requireObjectCoercible = __webpack_require__(67750);

var $Object = Object;

// `ToObject` abstract operation
// https://tc39.es/ecma262/#sec-toobject
module.exports = function (argument) {
  return $Object(requireObjectCoercible(argument));
};


/***/ }),

/***/ 49042:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(3362);
const getCoupon = __webpack_require__(80791);
const globalCondition = __webpack_require__(41761);
let globalData = {
  tmall: [],
  taobao: []
};
let minPriceObj = {};
let minPriceStatus = {};
let sizeObj = {},
  totalObj = {};
const renderCoupon = (data, type, isBottom) => {
  sizeObj[type]++;
  if (data && data.data && data.data.coupon.coupon_limit !== '1') globalData[type].push(data.data);
  if (sizeObj[type] === totalObj[type]) {
    if (isBottom) {
      renderProdutBt(type, isBottom);
    } else {
      renderProdut(type);
    }
    if (G.aliSite) {
      // 如果是淘宝天猫，当前商品没有优惠券，需要吧比价结果里面有优惠券的商品在中间展示
      // 元旦红包时暂停显示
      // if (new Date() < new Date('2020-01-10T23:59:59')) {
      //   return
      // }
      if (G.runminiCoup === '1') {
        (__webpack_require__(62941).init)(globalData, '.gwd-minibar-bg');
      } else if (!G.runminiCoup) {
        G.runminiCoupon2 = true;
        $(document).on('runminiCoupon2', function () {
          (__webpack_require__(62941).init)(globalData, '.gwd-minibar-bg');
        });
      }
    }
  }
};
const renderProdutBt = (type, bdata) => {
  // 渲染底部优惠券
  let arr = globalData[type];
  for (let i = 0; i < bdata.length; i++) {
    for (let j = 0; j < arr.length; j++) {
      if (bdata[i] && arr[j] && bdata[i].num_iid == arr[j].reqid) {
        let lastP = (Number(bdata[i].price) - arr[j].coupon.coupon_money).toFixed(2);
        if (Number(lastP) < 0) continue;
        if (Number(lastP) < minPriceObj[type] && lastP > 0) {
          minPriceObj[type] = lastP;
          minPriceStatus[type] = true;
        }
        let coupon_money = arr[j].coupon.coupon_money;
        bdata[i].url = arr[j].click_url2;
        bdata[i].tspan = `<span class="coupon_span">领${coupon_money}元券</span>`;
        bdata[i].ta = `<div class="coupon_price">
                    <span class="coupon_price_span">
                      <span class="cou-pri-sp1">券后价:</span>
                      <span class="cou-pri-sp2 prifontf">¥${lastP}</span>
                      <span class="cou-pri-sp3 prifontf">¥${bdata[i].price}</span>
                    </span>
            </div>`;
        break;
      }
    }
  }
  if (minPriceStatus[type]) {
    if (type === 'taobao') {
      $('.compare-list li[data-id="tbcompare"] .com-item-pri').text('¥' + minPriceObj[type]);
    } else {
      $('.compare-list li[data-id="tmcompare"] .com-item-pri').text('¥' + minPriceObj[type]);
    }
  }
  globalCondition.setMet('bottomCouponReady-' + (type === 'taobao' ? 'tbcompare' : 'tmcompare'));
};
const renderProdut = type => {
  // 渲染顶部优惠券
  let ul = $(`#${type}-item-list li`);
  let len = ul.length;
  let arr = globalData[type];
  for (let i = 0; i < len; i++) {
    let id = ul.eq(i).attr('data-id');
    for (let j = 0; j < arr.length; j++) {
      if (arr[j] && arr[j].reqid == id) {
        if (ul.eq(i).find('.coupon_span').length) {
          console.warn('skipping coupon', ul.eq(i));
          return;
        }
        ul.eq(i).find('.small-img').append($(`<span class="coupon_span">领${arr[j].coupon.coupon_money}元券</span>`));
        ul.eq(i).find('a').attr('href', arr[j].click_url2);
        ul.eq(i).find('a').on('click', e => {
          e.preventDefault();
          let adzone_id = '10003';
          if (G.aliSite) adzone_id = '10004';
          getCoupon.init(id, adzone_id, data => {
            window.open(data.data.click_url2);
          });
        });
        let price = ul.eq(i).find('span.gwd-price').text();
        let lastP = (Number(price.replace(/[¥￥]/g, '')) - arr[j].coupon.coupon_money).toFixed(2);
        if (Number(lastP) < 0) continue;
        if (Number(lastP) < minPriceObj[type]) {
          minPriceObj[type] = lastP;
          minPriceStatus[type] = true;
        }
        ul.eq(i).find('.gwd-price').after($(`<div class="coupon_price">
              <span class="cou-pri-sp1">券后价:</span>
              <span class="cou-pri-sp2 prifontf">¥${lastP}</span>
              <span class="cou-pri-sp3 prifontf">${price}</span>
            </div>`)).remove();
      }
    }
  }
  if (minPriceStatus[type]) {
    if (type == 'taobao') {
      $('#tb_compare .tab-sp2').text('¥' + minPriceObj[type]);
    } else {
      $('#tm_compare .tab-sp2').text('¥' + minPriceObj[type]);
    }
  }
};

// 比价结果部分的优惠券
module.exports.init = async (data, type, isBottom, minpri, direct = false) => {
  // forbidCoupon entry部分给的值  可能会针对特定地区屏蔽
  window.gwd_G.aliCouponNotNeedFix = true;
  if (G.forbidCoupon) return;
  if (!data) return;
  if (!data.length) return;
  minPriceObj[type] = minpri;
  totalObj[type] = data.length;
  sizeObj[type] = 0;
  if (isBottom) isBottom = data;
  let f2 = function (newData) {
    renderCoupon(newData, type, isBottom);
  };
  let adzone_id = '10003';
  if (G.aliSite) adzone_id = '10004';
  G.arrToCheck = data.map(x => x.num_iid);
  $('#tb_compare').hover(function () {
    globalCondition.setMet('aliCouponAllowed');
  });
  $('#tm_compare').hover(function () {
    globalCondition.setMet('aliCouponAllowed');
  });
  $('.compare-box').hover(function () {
    globalCondition.setMet('aliCouponAllowed');
  });
  $('.compare-list li[data-id="tbcompare"]').hover(function () {
    globalCondition.setMet('aliCouponAllowed');
  });
  $('.compare-list li[data-id="tmcompare"]').hover(function () {
    globalCondition.setMet('aliCouponAllowed');
  });
  await globalCondition.met('aliCouponAllowed');
  for (let i = 0; i < data.length; i++) {
    getCoupon.init(data[i].num_iid, adzone_id, f2, direct);
  }
};

/***/ }),

/***/ 49122:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(44141);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("05f95d05", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 49234:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, c_server = $data.c_server, s_server = $data.s_server;
    $$out += '<div class="gwd_promocode bjd_btn_box">\n  <a href="';
    $$out += $escape(c_server);
    $$out += '" target="_blank" title="购物党"></a>\n  <span class="bjd_addcart">如有优惠码\uFF0C此处添加优惠码</span>\n  <span class="bjd_close"></span>\n</div>\n<style type="text/css">\n  .gwd_promocode {\n    width: 293px;\n    height: 36px;\n    background-color: #fff;\n    color: #494b4d;\n    position: absolute;\n    left: -69px;\n    top: 45px;\n    text-align: center;\n    line-height: 35px;\n    border-radius: 28px;\n    font-size: 14px;\n    border: 1px solid #47befe;\n    font-family: \'Microsoft Yahei\';\n  }\n  .gwd_promocode a, .gwd_promocode span {\n    float: left;\n    margin-left: 19px;\n  }\n  .gwd_promocode .bjd_addcart {\n    cursor: text;\n  }\n  .gwd_promocode a {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_siteicon.png\') 0px 6px no-repeat;\n    background-size: 24px 22px;\n    height: 35px;\n    width: 26px;\n  }\n  .bjd_close {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_closeicon.png\') 0px 0px no-repeat;\n    width: 20px;\n    height: 20px;\n    margin-top: 12px;\n    cursor: pointer;\n    background-size: 12px 12px;\n  }\n  .gwd_promocode:before{\n    border: 10px solid transparent;\n    border-bottom-color: #47befe;\n    content: "";\n    position: absolute;\n    left: 149px;\n    width: 0px;\n    height: 0px;\n    top: -21px;\n  }\n  .gwd_promocode:after{\n    border: 10px solid transparent;\n    border-bottom-color: #fff;\n    content: "";\n    position: absolute;\n    left: 149px;\n    width: 0px;\n    height: 0px;\n    top: -20px;\n  }\n  .pmts-redeem-claim-code-form {\n    position: relative;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 49277:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64, ";

/***/ }),

/***/ 49279:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(88944);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("78da3180", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 49339:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(26910);
var template = __webpack_require__(26133);
const userData = __webpack_require__(74222);
let parseprice = __webpack_require__(86421);
let request = __webpack_require__(49388);
let log = __webpack_require__(35743);
let cnzz = __webpack_require__(5300);
let gwd_protocol = 'https:';
var timer, timer2, weight;
var HOST;
var noSale;
let HT = {};
var htX, htY, mouseDownX;
var country = 'us';
var cateDict, transDict;
/*转换成厘对应比例*/
var sizeDict = {
  '米': 3000,
  '厘米': 30,
  '毫米': 3,
  '英尺': 914.4,
  '英寸': 76.2,
  '码': 2743.2,
  '尺': 1000,
  '寸': 100,
  '分': 10,
  '厘': 1
};
var weightDict = {
  'g': 1,
  'kg': 1000,
  'ounces': 28.35,
  'pounds': 453.60
};
var clothesDict = {
  'shangyi': {
    'us': {
      'man': ['us_man_sz.jpg', 'us_man_sz2.jpg'],
      'woman': ['us_woman_sz.jpg', 'us_woman_sz2.jpg']
    },
    'uk': {
      'man': ['uk_man_sz.jpg', 'uk_man_sz2.jpg'],
      'woman': ['uk_woman_sz.jpg', 'uk_woman_sz2.jpg']
    },
    'jp': {
      'man': ['jp_man_sz.jpg', 'jp_man_sz2.jpg'],
      'woman': ['jp_woman_sz.jpg', 'jp_woman_sz2.jpg']
    }
  },
  'xiazhuang': {
    'us': {
      'man': ['us_man_xz.jpg', 'us_man_xz2.jpg'],
      'woman': ['us_woman_xz.jpg', 'us_woman_xz2.jpg']
    },
    'uk': {
      'man': ['uk_man_xz.jpg', 'uk_man_xz2.jpg'],
      'woman': ['uk_woman_xz.jpg', 'uk_woman_xz2.jpg']
    },
    'jp': {
      'man': ['jp_man_xz.jpg', 'jp_man_xz2.jpg'],
      'woman': ['jp_woman_xz.jpg', 'jp_woman_xz2.png']
    }
  },
  'kidscloth': {
    'us': ['us_kids.jpg', 'us_kids2_0.jpg', 'us_kids2_4.jpg'],
    'uk': ['uk_kids.jpg', 'uk_kids2_0.jpg', 'uk_kids2_4.jpg'],
    'jp': ['jp_kids.jpg', 'jp_kids2_4.jpg', 'jp_kids2_4.jpg']
  },
  'shoes': {
    'man': ['woman_shoes_1.jpg', 'man_shoes2.jpg'],
    'woman': ['woman_shoes_1.jpg', 'woman_shoes2.jpg'],
    'kids': ['kids_shoes.jpg', 'kids_shoes2_0.jpg', 'kids_shoes2_4.jpg']
  }
};
var sitePattern = {
  'www.amazon.com': {
    'coun': 'us',
    'dom': ['#price_feature_div', '#unifiedPrice_feature_div'],
    'position': 'after'
  },
  'www.amazon.co.jp': {
    'coun': 'jp',
    'dom': ['#price_feature_div', '#unifiedPrice_feature_div'],
    'position': 'after'
  },
  'www.amazon.de': {
    'coun': 'uk',
    'dom': ['#price_feature_div', '#unifiedPrice_feature_div'],
    'position': 'after'
  },
  'www.amazon.com.au': {
    'coun': 'au',
    'dom': ['#price_feature_div', '#unifiedPrice_feature_div'],
    'position': 'after'
  },
  'www.amazon.co.uk': {
    'coun': 'uk',
    'dom': ['#price_feature_div', '#unifiedPrice_feature_div'],
    'position': 'after'
  },
  'www.amazon.fr': {
    'coun': 'fr',
    'dom': ['#price_feature_div', '#unifiedPrice_feature_div'],
    'position': 'after'
  },
  'www.6pm.com': {
    'coun': 'us',
    'dom': ['.mGIQz'],
    'position': 'before'
  }
};
var categoryDict1 = {
  'coffee': '咖啡',
  'snack': '饮料/保健品/其他食品',
  'nut': '饮料/保健品/其他食品',
  'pistachio': '饮料/保健品/其他食品',
  'almond': '饮料/保健品/其他食品',
  'chestnuts': '饮料/保健品/其他食品',
  'walnut': '饮料/保健品/其他食品',
  'hazelnut': '饮料/保健品/其他食品',
  'pecan': '饮料/保健品/其他食品',
  'cashew': '饮料/保健品/其他食品',
  'peanut': '饮料/保健品/其他食品',
  'chocolates': '饮料/保健品/其他食品',
  'pastry': '饮料/保健品/其他食品',
  'candy': '饮料/保健品/其他食品',
  'condiment': '饮料/保健品/其他食品',
  'ketchup': '饮料/保健品/其他食品',
  'beverage': '饮料/保健品/其他食品',
  'tea': '茶叶',
  'coats': '外衣/衣服/冲锋衣',
  'clothes': '外衣/衣服/冲锋衣',
  'shirt': '外裤/裤子/衬衫/衬衣/T恤',
  'sweaters': '外裤/裤子/衬衫/衬衣/T恤',
  'lingerie': '内衣/内裤',
  'tankinis': '内衣/内裤',
  'bikinis': '内衣/内裤',
  'loungewear': '内衣/内裤',
  'underwear': '内衣/内裤',
  'briefs': '内衣/内裤',
  'swimsuit': '内衣/内裤',
  'scarves': '配饰（帽子/围巾/头巾/丝巾/领带/腰带/手套）',
  'hats': '配饰（帽子/围巾/头巾/丝巾/领带/腰带/手套）',
  'scarf': '配饰（帽子/围巾/头巾/丝巾/领带/腰带/手套）',
  'tie': '配饰（帽子/围巾/头巾/丝巾/领带/腰带/手套）',
  'belt': '配饰（帽子/围巾/头巾/丝巾/领带/腰带/手套）',
  'gloves': '配饰（帽子/围巾/头巾/丝巾/领带/腰带/手套）',
  'bedding': '毛毯/被子/床罩/睡袋',
  'quilt': '毛毯/被子/床罩/睡袋',
  'bedspread ': '毛毯/被子/床罩/睡袋',
  'leather': '皮鞋',
  'boots': '皮靴/靴子',
  'outdoor': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋',
  'athletic': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋',
  'sports': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋',
  'wading': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋',
  'climbing': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋',
  'running': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋',
  'sandals': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋',
  'slippers': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋',
  'insoles': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋',
  'shoelaces': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋',
  'suitcases': '箱/行李箱/旅行箱/手提箱',
  'luggage': '箱/行李箱/旅行箱/手提箱',
  'briefcases': '箱/行李箱/旅行箱/手提箱',
  'travel': '箱/行李箱/旅行箱/手提箱',
  'backpacks': '挎包/背包/邮差包/背包/单肩包/双肩包',
  'satchel': '挎包/背包/邮差包/背包/单肩包/双肩包',
  'bags': '挎包/背包/邮差包/背包/单肩包/双肩包',
  'cases': '挎包/背包/邮差包/背包/单肩包/双肩包',
  'handbags': '挎包/背包/邮差包/背包/单肩包/双肩包',
  'clutches': '挎包/背包/邮差包/背包/单肩包/双肩包',
  'wallet': '钱包/钥匙包',
  'money': '钱包/钥匙包',
  'key': '钱包/钥匙包',
  'watches': '机械表',
  'wrist': '机械表',
  'dishwashers': '餐具/刀具',
  'hoods': '餐具/刀具',
  'drawers': '餐具/刀具',
  'dath': '餐具/刀具',
  'cutlery': '餐具/刀具',
  'flatware': '餐具/刀具',
  'kitchen & dining': '餐具/刀具',
  'dining': '餐具/刀具',
  'knife': '餐具/刀具',
  'pot': '炊具/锅',
  'cookware': '炊具/锅',
  'kitchenware': '炊具/锅',
  'cooktops': '炊具/锅',
  'purifier': '净水器（含滤芯）',
  'steamers': '电饭煲',
  'ovens': '微波炉',
  'juicer': '电动榨汁机',
  'coffeemachine': '咖啡机',
  'vacuums': '吸尘器',
  'ceiling ': '电风扇',
  'irons': '电熨斗',
  'humidifiers': '增/除湿机/増除湿一体机',
  'sewing': '电动缝纫机',
  'refrigerators': '家电',
  'freezers': '家电',
  'compactors': '家电',
  'washers': '家电',
  'bulbs': '家电',
  'shaver': '电动剃须刀',
  'blood': '血压计/血糖计',
  'glucose': '血压计/血糖计',
  'dryer': '电吹风机',
  'toothbrush': '电动牙刷',
  'sunscreen': '防晒露/防晒霜/防嗮乳液',
  'lotions': '防晒露/防晒霜/防嗮乳液',
  'scream': '护手霜',
  'lipstick': '唇膏',
  'perfume': '香水',
  'masks': '面膜',
  'toner': '爽肤水',
  'phones': '触屏式手机',
  'cameras': '数码相机/卡片机/DC',
  'canon': '数码相机/卡片机/DC',
  'joystick': '游戏机遥控器/控制器/手柄/摇杆/方向盘',
  'controller': '游戏机遥控器/控制器/手柄/摇杆/方向盘',
  'recorder': '录音笔/录音机/收音机',
  'radios': '录音笔/录音机/收音机',
  'echo': '音箱（音响设备）',
  'stereos': '音箱（音响设备）',
  'laptop': '笔记本电脑/含平板电脑',
  'memory': '内存条4G以上',
  'cards': '功能卡/显卡/声卡等',
  'card': '功能卡/显卡/声卡等',
  'mice': '鼠标',
  'keyboards': '键盘',
  'input': '键盘',
  'scanner': '投影仪',
  'screens': '投影仪',
  'disk': '移动硬盘1TB-2TB(含2TB)',
  'toys': '玩具',
  'mp3 players': 'MP3播放器',
  'diapering': '婴儿用品'
};
var categoryDict2 = {
  'food': {
    'tle': '食品',
    'cate': 'cate1'
  },
  'clothing': {
    'tle': '服饰',
    'cate': 'cate2'
  },
  'packs': {
    'tle': '鞋、箱包',
    'cate': 'cate3'
  },
  'shoes': {
    'tle': '鞋、箱包',
    'cate': 'cate3'
  },
  'bags': {
    'tle': '鞋、箱包',
    'cate': 'cate3'
  },
  'kitchen & dining': {
    'tle': '厨房、餐厅',
    'cate': 'cate4'
  },
  'home & kitchen': {
    'tle': '家电',
    'cate': 'cate6'
  },
  'health & personal': {
    'tle': '个人护理',
    'cate': 'cate7'
  },
  'beauty ': {
    'tle': '美容',
    'cate': 'cate8'
  },
  'camera & photo ': {
    'tle': '照相机、摄像机',
    'cate': 'cate11'
  },
  'electronics': {
    'tle': '电子数码',
    'cate': 'cate12'
  },
  'cumputers': {
    'tle': '个人电脑',
    'cate': 'cate15'
  },
  'diapering': {
    'tle': '婴儿用品',
    'cate': 'cate18'
  }
};
var searchCateDict = ['#wayfinding-breadcrumbs_feature_div .a-list-item .a-link-normal', '#SalesRank .zg_hrsr_ladder a'];
var weightDom = {
  'www.amazon.com': ['#detailBullets_feature_div .a-list-item .a-text-bold:contains(Weight) + span', '#technical-details-table td:contains(Weight)+td', '#detail-bullets ul li:contains(Weight)', '#technical-details_feature_div table.a-keyvalue th.a-nowrap:contains("Shipping Weight")+td'],
  'www.amazon.de': ['#detail_bullets_id ul li:contains(Produktgewicht)', '#prodDetails .shipping-weight .value'],
  'www.amazon.co.jp': ['#detail_bullets_id ul li:contains(発送重量)', '.shipping-weight .value'],
  'www.6pm.com': ['#prdInfoText .measurements li:contains(Weight)']
};

/*初始化*/
function init() {
  if (G.IE6 || G.IE7 || G.IE8 || G.IE9) return;
  if (!isHaitaoPage()) return;
  getCountry();
  getMessage(() => {
    insertHtml();
    if ($('#gwd_ht_main').length == 0) return;
    render_size_detail();
    render_trans_detail();
    insertShop();
    insertSize(clothesDict['shangyi'][country]['man'][0], clothesDict['shangyi'][country]['man'][1]);
    addEvent();
    addSizeEvent();
    fixPageCss();
    getSelect();
    searchCate();
    showTransport();
    changePrice();
    listenPrice();
    if (G.email) {
      check_favor();
    } else {
      $(document).on('checkfavor', function () {
        check_favor();
      });
    }
    checkRemove();
  });
}
let checkTime = 0;
const checkRemove = () => {
  if (checkTime > 10) {
    clearTimeout(tt);
    return;
  }
  let tt = setTimeout(function () {
    if ($('#gwd_ht_main .ht_head .gwd_site_icon').length === 0) {
      $('#gwd_ht_main').remove();
      init();
    } else {
      checkTime++;
      checkRemove();
    }
  }, 4000);
};
function editCurrent(arr) {
  /*配置文件有一些不是人民币，需要转换*/
  if (!arr) return [];
  /*参加活动的转运商家随机排序， 其他的放后面*/
  let looparr = [],
    elsearr = [];
  for (var i = 0; i < arr.length; i++) {
    if (arr[i]['current'] && !arr[i]['asce']) {
      if (arr[i]['type']) {
        arr[i].firstW[1] = parseprice(arr[i].firstW[1], arr[i]['type']);
        arr[i].nextW[1] = parseprice(arr[i].nextW[1], arr[i]['type']);
      } else {
        arr[i].firstW[1] = parseprice(arr[i].firstW[1]);
        arr[i].nextW[1] = parseprice(arr[i].nextW[1]);
      }
    }
    if (arr[i].sale_tle) noSale = true;
    if (arr[i].cooper) looparr.push(arr[i]);else elsearr.push(arr[i]);
    /*有一些转运商家使用货币和当前网页使用的汇率不一致，需要再请求一次汇率*/
  }
  arr = looparr.sort(() => {
    return Math.random() - 0.5;
  }).concat(elsearr);
  return arr;
}
function getMessage(callback) {
  let url = `${gwd_protocol}//browser.${G.extName}.com/extension?ac=haitaoInfo`;
  request.get(url).done(data => {
    if (data && data.cate && data.trans) {
      cateDict = data.cate;
      transDict = data.trans;
      transDict[country] = editCurrent(transDict[country]);
      callback();
    }
  });
}
function isHaitaoPage() {
  /*判断是否是海淘页面*/
  var host = location.host;
  const twSites = ['shopee.tw', 'momoshop', 'rakuten', 'books.com.tw', '24h.pchome.com.tw', '.yahoo.com'];
  if (twSites.some(item => host.includes(item))) {
    return true;
  }
  for (let pattern in sitePattern) {
    if (host == pattern) return true;
  }
  return false;
}
function setTariff(t) {
  /*自动设置关税 --- 2级分类*/
  $('.ht_tariff_btn span').text(t.slice(0, 5));
  $('.ht_tariff_btn span').attr('title', t);
  $('#cate_small').val(t);
  $('.ht_tariff_cate').text(t);
  replaceStr('#cate_small');
  replaceStr('.ht_tariff_cate', 'text', 4);
  for (var pattern in cateDict) {
    let len = cateDict[pattern].length;
    for (let i = 0; i < len; i++) {
      if (cateDict[pattern][i][1] == t) {
        let txt = $('#big_xiala a[cate="' + pattern + '"]').text();
        $('#cate_big').val(txt);
        replaceStr('#cate_big');
        insertCate(cateDict[pattern]);
        $('.ht_tariff .ht_tariff_num em').text(cateDict[pattern][i][0]);
      }
    }
  }
}
function setTariff2(p) {
  /*自动设置关税 --- 1级分类*/
  let t = categoryDict2[p].tle;
  let cate = categoryDict2[p].cate;
  $('.ht_tariff_btn span').text(t.slice(0, 5));
  $('.ht_tariff_btn span').attr('title', t);
  $('#cate_big').val(t);
  replaceStr('#cate_big');
  $('#cate_small').val(cateDict[cate][cateDict[cate].length - 1][1]);
  $('.ht_tariff_cate').text(cateDict[cate][cateDict[cate].length - 1][1]);
  replaceStr('#cate_small');
  replaceStr('.ht_tariff_cate', 'text', 4);
  insertCate(cateDict[cate]);
  $('.ht_tariff .ht_tariff_num em').text(cateDict[cate][cateDict[cate].length - 1][0]);
}
function matchCate(t) {
  /*匹配2级分类*/
  for (let pattern in categoryDict1) {
    if (t.indexOf(pattern) > -1) {
      return categoryDict1[pattern];
    }
  }

  /*二级分类未匹配到，匹配一级分类*/
  for (let pattern in categoryDict2) {
    if (t.indexOf(pattern) > -1) {
      setTariff2(pattern);
      return;
    }
  }
  return false;
}
function getClothes(t, c) {
  switch (t) {
    case '男装':
      return clothesDict['shangyi'][c]['man'];
    case '女装':
      return clothesDict['shangyi'][c]['woman'];
    case '童装':
      return clothesDict['kidscloth'][c];
    case '男鞋':
      return clothesDict['shoes']['man'];
    case '女鞋':
      return clothesDict['shoes']['woman'];
    case '童鞋':
      return clothesDict['shoes']['kids'];
  }
}
function searchCate() {
  /*查找分类关键词*/
  for (let j = 0; j < searchCateDict.length; j++) {
    var dom = searchCateDict[j];
    var len = $(dom).length;
    for (let i = len - 1; i >= 0; i--) {
      let txt = $(dom).eq(i).text().toLowerCase();
      let m = matchCate(txt);
      if (m) {
        setTariff(m);
        return;
      }
    }
  }
}
function fixPageCss() {
  if (navigator.userAgent.toLowerCase().indexOf('chrome') == -1) {
    $('#gwd_ht_main').addClass('ie_hack');
    $('#transport_detail').addClass('ie_hack');
    $('#size_detail').addClass('ie_hack');
  }
  if (HOST == 'www.6pm.com') {
    var width = $('#gwd_ht_main').parent().outerWidth();
    var newwidth = width - 355;
    $('#gwd_ht_main').css('margin-left', newwidth / 2 + 'px');
  }
}
function isZiying() {
  if (HOST == 'www.6pm.com') return 'ziying';
  if ($('#merchant-info').length > 0) {
    if (HOST == 'www.amazon.com') {
      if ($('#merchant-info').text().indexOf('sold by Amazon') > -1) return 'ziying';else return 'sanfang';
    }
    if (HOST == 'www.amazon.co.jp') {
      if ($('#merchant-info').text().indexOf('jp が販売') > -1) return 'ziying';else return 'sanfang';
    }
    if (HOST == 'www.amazon.de') {
      if ($('#merchant-info').text().indexOf('Verkauf und Versand durch Amazon') > -1) return 'ziying';else if ($('#merchant-info').text().indexOf('Dispatched from and sold by Amazon') > -1) return 'ziying';else return 'sanfang';
    }
  } else return 'sanfang';
}
function isZhiyou() {
  if (HOST == 'www.amazon.de') {
    if ($('#ddmShippingMessage').text().indexOf('Dieser Artikel kann nach') > -1 && $('#ddmInlineAddressInfo').text().indexOf('China') > -1) return 'zhiyou';else return 'feizhiyou';
  }
  if ($('#detail-bullets .content ul li:contains("International Shipping")').length > 0) return 'zhiyou';
  if ($('.shipping-restrictions .label:contains("International")').length > 0) return 'zhiyou';else return 'feizhiyou';
}
function insertHtml() {
  /*插入主界面*/
  __webpack_require__(55997);
  var html = __webpack_require__(64930);
  var t = template.compile(html)({
    data: {
      'pageclass': addPageclass(),
      'getprice': calPrice(),
      'unit_price': getPrice(),
      'protype': isZiying(),
      'mailtype': isZhiyou(),
      'he_weight': getWeight(),
      'hosts': HOST,
      'site': G.site == '6pm' ? '6PM' : '亚马逊',
      c_server: G.c_server
    }
  });
  var dom, arr;
  arr = sitePattern[HOST]['dom'];
  for (let i = 0; i < arr.length; i++) {
    if ($(arr[i]).length > 0) dom = arr[i];
  }
  if (!dom) return;
  switch (sitePattern[HOST]['position']) {
    case 'before':
      $(dom).before(t);
      break;
    case 'after':
      $(dom).after(t);
      break;
  }
  log('track:haitao:main');
  cnzz.log('显示海淘主界面');
}
function addPageclass() {
  var s = 'ht_' + HOST.split('.')[1];
  return s;
}
function getCountry() {
  /*获取页面所属地区*/
  var host = location.host;
  for (var pattern in sitePattern) {
    if (pattern == host) {
      country = sitePattern[pattern]['coun'];
      HOST = pattern;
    }
  }
}
function getWeightNum(t) {
  let p = t.match(/[0-9]+(?:\.|\,|)(?:[0-9]+|)/);
  if (p) p = p[0];
  if (HOST == 'www.amazon.de') p = p.toString().replace(',', '.');
  return p;
}
function getWeightType(t) {
  switch (HOST) {
    case 'www.amazon.com':
      if (t.indexOf('pounds') > -1) return 'pounds';
      if (t.indexOf('ounces') > -1) return 'ounces';
      break;
    case 'www.amazon.de':
      if (t.indexOf('Kg') > -1) return 'kg';
      if (t.indexOf('g') > -1) return 'g';
      break;
    case 'www.amazon.co.jp':
      if (t.indexOf('Kg') > -1) return 'kg';
      if (t.indexOf('g') > -1) return 'g';
      break;
    case 'www.6pm.com':
      if (t.indexOf('lb') > -1 && t.indexOf('oz') > -1) return 'lb_oz';
      if (t.indexOf('lb') > -1) return 'pounds';
      if (t.indexOf('oz') > -1) return 'ounces';
      break;
  }
}
function getWeight(noCache) {
  if (HT.weight && !noCache) return HT.weight;
  let weight_1 = 0;
  let domarr = weightDom[HOST];
  let len = domarr.length;
  for (let i = 0; i < len; i++) {
    let w = $(domarr[i]).text();
    if (w != '') {
      let type = getWeightType(w);
      if (type == 'lb_oz') {
        let m = w.match(/[0-9]+/g);
        weight_1 = Math.round((weightDict['pounds'] / 1000 * parseInt(m[0]) + weightDict['ounces'] / 1000 * parseInt(m[1])) * 100) / 100;
        HT.weight = weight_1;
        return weight_1;
      }
      if (type != '') {
        weight_1 = Math.round(weightDict[type] / 1000 * getWeightNum(w) * 100) / 100;
        if (weight_1 !== 0 && !weight_1) weight_1 = 0;
        HT.weight = weight_1;
        return weight_1;
      }
    }
  }
}
function showTransport(noCache) {
  let weight_2 = getWeight(noCache);
  if (!weight_2 || weight_2 == 0) return;
  /*nocache为true时候，说明重量更新，需要重新设置重量*/
  if (noCache) $('.ht_weight_num').val(weight_2);
  let minT = changeTransPrice(weight_2);
  let title = $('#trans_list li .trans_com').eq(minT.minindex).text();
  if (title == '') return;
  if (minT.minprice == 99999999) return;
  $('.ht_freight_num').text('¥' + minT.minprice);
  $('.ht_transport_btn span').text(title);
}
function getPrice() {
  return G.dp.price || '0';
}
function calPrice(p) {
  /*计算价格*/
  var price = 0;
  if (p) price = p;else price = getPrice();
  var transP = $('.ht_freight_num').text().match(/[0-9.]+/);
  if (transP) transP = transP[0];
  var tariffP = $('.ht_tariff .ht_tariff_num em').text().match(/[0-9.]+/);
  if (tariffP) tariffP = tariffP[0];
  if ($('.ht_tariff .ht_tariff_num') && $('.ht_tariff .ht_tariff_num').attr('data-price') == "0") {
    tariffP = 0;
  }
  if (!tariffP) tariffP = 0;
  if (!transP) transP = 0;
  price = Number((Number(price) + Number(transP) + Number(tariffP)).toLocaleString().replace(/,/g, ''));
  if (price.toString().match(/\.\d{3}/)) {
    price = price.toString().replace(/(\.\d{2})\d+/, '$1');
  }
  return price;
}
function changeZiying() {
  /*价格变化可能是否是自营也会变化*/
  setTimeout(() => {
    var ziying = isZiying();
    $('.pro_type em').attr('class', ziying);
    if (ziying == 'ziying') {
      $('.pro_type .pro_t_tle').text('自营');
      $('.pro_type_detail').text((G.site == '6pm' ? '6PM' : '亚马逊') + '直接销售。');
    } else {
      $('.pro_type .pro_t_tle').text('第三方');
      $('.pro_type_detail').text((G.site == '6pm' ? '6PM' : '亚马逊') + '第三方商家销售。');
    }
  }, 1000);
}
function listenPrice() {
  /*监听价格变化*/
  let priceDom = '#priceblock_ourprice';
  let subdom = 'price_feature_div';
  if (G.site == '6pm') {
    priceDom = '#priceSlot .price';
    subdom = "productForm";
  }
  let oldprice = $(priceDom).text();
  var dom = document.getElementById(subdom);
  if (dom && dom.addEventListener) {
    dom.addEventListener('DOMSubtreeModified', function () {
      let pageprice = $(priceDom).text();
      if (pageprice != oldprice && pageprice) {
        oldprice = pageprice;
        pageprice = parseprice(pageprice);
        $('.ht_content .price_num').text('¥' + pageprice);
        /*价格发生变化，说明用户改变了一些信息，重量 自营也会跟着改变*/
        changePrice(pageprice);
        changeZiying();
        setTimeout(() => {
          showTransport(true);
        }, 800);
      }
    }, false);
  }
}
function changePrice(p) {
  var price = '¥' + calPrice(p);
  $('.ht_getprice_num').text(price);
}
function calDetailPos() {
  let wWeight = ($(window).width() - 595) / 2;
  let wHeight = ($(window).height() - 420) / 2;
  return {
    'posx': wWeight,
    'posy': wHeight
  };
}
function render_size_detail() {
  let html = __webpack_require__(16033);
  $('body').append(template.compile(html)({
    pos: calDetailPos()
  }));
}
function render_trans_detail() {
  let html = __webpack_require__(64523);
  $('body').append(template.compile(html)({
    pos: calDetailPos(),
    'ht_weight': getWeight(),
    c_server: G.c_server
  }));
}
function insertSize(headimg, itemimg) {
  /*插入尺码帮助内容*/
  var Html = `<img src="http://s1.${G.extName}.com/images/extensions/{{imgurl}}">`;
  $('.size_s').empty().append(template.compile(Html)({
    'imgurl': headimg
  }));
  $('.size_item_img').empty().append(template.compile(Html)({
    'imgurl': itemimg
  }));
}
function findShop(name) {
  if (!transDict) return null;
  let transdata = transDict[country];
  for (var i = 0; i < transdata.length; i++) {
    if (name === transdata[i].shopId && transdata[i]['asce']) {
      let ascearr = transdata[i]['ascearr'];
      let current = transdata[i]['current'];
      return {
        'ascearr': ascearr,
        'current': current
      };
    }
  }
}
/*改变运费值*/
function changeTransPrice(weight) {
  var minprice = 99999999;
  var minindex = 0;
  var dom = $('#trans_list li .trans_pr');
  var len = $(dom).length;
  for (var i = 0; i < len; i++) {
    var fp = Number($(dom).eq(i).attr('data-fp'));
    var fw = Number($(dom).eq(i).attr('data-fw'));
    var sw = Number($(dom).eq(i).attr('data-sw'));
    var sp = Number($(dom).eq(i).attr('data-sp'));
    var name = $(dom).eq(i).attr('data-shopname');
    if (name) {
      var shopInfo = findShop(name);
      if (!shopInfo) return;
      var price = calTrans2(weight, shopInfo['ascearr'], shopInfo['current']);
    } else {
      var price = calTrans(weight, [fp, fw, sp, sw]);
    }
    /*因为不考虑最便宜逻辑，随机选择，因为排列的随机的，所以这里就选择第一个*/
    if (i == 0) {
      minprice = price;
    }
    $(dom).eq(i).text('￥' + price);
  }
  return {
    'minindex': minindex,
    'minprice': minprice
  };
}
function conversionSize() {
  /*尺码转换*/
  var first = $('.first_xiala').val();
  var second = $('.second_xiala').val();
  var num = $('#first_size').val();
  if (num) num = Number(num);
  var n1 = sizeDict[first];
  var n2 = sizeDict[second];
  var n3 = num * n1 / n2;
  if (n3.toString().indexOf('.') > -1) n3 = n3.toFixed(2);
  $('#second_size').val(n3);
}

/*计算运费*/
function calTrans(weight, arr) {
  /*fp：首重价格  fw 首重的重量   sp 续重价格   sp 续重重量*/
  var fp = arr[0],
    fw = arr[1],
    sp = arr[2],
    sw = arr[3];
  var price;
  var pow = 1;
  if (sw.toString().indexOf('.') > -1) pow = sw.toString().match(/\.(\d+)/)[1].length;
  if (fp == "0") {
    price = weight / sw * sp;
  } else if (weight <= fw) {
    price = fp;
  } else {
    var weight2 = weight - fw;
    var weight3 = 0;
    if (weight2 * Math.pow(10, pow) % (sw * Math.pow(10, pow)) == 0) weight3 = weight2 / sw;else weight3 = parseInt(weight2 / sw) + 1;
    var price = fp + weight3 * sp;
  }
  return Number(price).toFixed(2);
}
/*针对梯度增长计费的转运公司计算运费*/
function calTrans2(weight, arr, rmb) {
  weight = Number(weight);
  for (var i = 0; i < arr.length; i++) {
    if (arr[i][0] > weight) {
      if (i == 0) i = 1; //如果是第一个就用第一个的数据
      else if (arr[i - 1][0] < weight) i = i + 1; //如果大于前面一个重量， 说明在两者之间， 应该选择当前，所以+1
      if (!rmb) {
        return Number(arr[i - 1][1]).toFixed(2);
      } else {
        return parseprice(arr[i - 1][1]).toFixed(2);
      }
    }
  }
  if (weight > arr[arr.length - 1][0]) {
    if (!rmb) {
      return Number(arr[arr.length - 1][1]).toFixed(2);
    } else {
      return parseprice(arr[arr.length - 1][1]).toFixed(2);
    }
  }
}
function changeFreight() {
  /*改变运费*/
  var weight = Number($('.ht_weight .ht_weight_num').val()) || 0;
  var transShop = $('.ht_transport_btn span').attr('data-title');
  var tsdata = transDict[country];
  var first, next, asce, asceArr, current; //asce 判断是否为递增的运费计算方式
  for (var i = 0; i < tsdata.length; i++) {
    if (tsdata[i]['shopname'] == transShop) {
      first = tsdata[i]['firstW'];
      next = tsdata[i]['nextW'];
      asce = tsdata[i]['asce'];
      asceArr = tsdata[i]['ascearr'];
      current = tsdata[i]['current'];
    }
  }
  if (asce) {
    var price = '¥' + calTrans2(weight, asceArr, current);
  } else {
    var price = '¥' + calTrans(weight, [first[1], first[0], next[1], next[0]]);
  }
  $('.ht_freight_num').text(price);
}
function insertShop() {
  /*插入转运商家*/
  var trans = transDict[country];
  var html = `{{each data}}
              <li class="{{if $index%2==1}}l_odd{{/if}}">
                <a class="trans_com" target="_blank" href="{{$value.shop_url}}" >{{$value.shopname}}</a>
                <span class="lo_center">{{$value.warehouse}}</span>
                <span class="trans_pr" {{if $value.asce}}data-shopname="{{$value.shopId}}" {{/if}} data-fw="{{$value.firstW[0]}}" data-sw="{{$value.nextW[0]}}" data-sp="{{$value.nextW[1]}}" data-fp="{{$value.firstW[1]}}">{{$value.firstW[1]==0?"无首重":("￥"+$value.firstW[1])}}</span>
                {{if $value.cooper}}<span class="sale_tle"><a  href="{{$value.url}}" target="_blank">{{$value.sale_tle}}</a></span>{{/if}}
              </li>
            {{/each}}`;
  $('#trans_list').append(template.compile(html)({
    data: trans
  }));
  changefirstW();
  if (!noSale) $('#transport_detail').addClass('no_sale');
}
function changefirstW() {
  var trans = transDict[country];
  $('#trans_list li .trans_pr').each((index, e) => {
    if ($(e).text() == "无首重") {
      for (let i = 0; i < trans.length; i++) {
        if (trans[i].shopId === $(e).attr('data-shopname')) {
          if (trans[i].current) $(e).text('￥' + Number(parseprice(trans[i].ascearr[0][1])).toFixed(2));else $(e).text('￥' + Number(trans[i].ascearr[0][1]).toFixed(2));
        }
      }
    } else {
      let price = $(e).text().replace('￥', '');
      price = '￥' + Number(price).toFixed(2);
      $(e).text(price);
    }
  });
}
function transWeight(type, w) {
  if (type == 'LB') {
    w = Number(w) * 0.4536;
  }
  return w;
}
function addShopEvent() {
  /*重量输入框焦点事件*/
  $('.trans_w input').on('keyup', function () {
    var txt = Number($(this).val());
    var weight_type = $('.trans_w input+.weight_type').text();
    var weight = transWeight(weight_type, txt);
    if (txt === 0) return;else if (!txt) {
      /*eslint-disable */
      alert('请输入数字！');
      /*eslint-enable */
    } else {
      changeTransPrice(weight);
    }
  });
  $('#trans_list li .sale_tle a').on('click', function () {
    log('click:haitao:sale_tle');
    cnzz.log('海淘转运商家优惠政策点击情况');
  });
  $('#trans_list li .trans_com').on('click', function () {
    log('click:haitao:trans_com');
    cnzz.log('海淘转运商家网站点击情况');
  });
  $('#trans_list li .lo_center, #trans_list li .trans_pr').on('click', function () {
    var txt = $(this).parent().find('.trans_com').text();
    $('.ht_transport_btn span').text(txt.slice(0, 5));
    $('.ht_transport_btn span').attr('data-title', txt);
    changeFreight();
    changePrice();
    $('#transport_detail').hide();
  });
}
function addSizeEvent() {
  /*添加尺码部分事件*/
  $('.clothes_nav li').on('click', function () {
    $('.clothes_nav li').removeClass('select');
    $(this).addClass('select');
    var txt = $(this).text();
    var c = getClothes(txt, country);
    if (txt.indexOf('鞋') > -1) {
      $('.unit_cm').css('display', 'none');
      $('.unit_mm').css('display', 'inline-block');
      $('#size_detail .detail_left span').hide();
      $('.cloth_icon').css('display', 'inline-block');
      $('#size_detail .shoes').css('display', 'inline-block');
      if (txt.indexOf('男鞋') > -1) {
        $('.cloth_icon').attr('class', '').addClass('cloth_icon ht_shoes man_foot');
        $('.detail_left .shoes').text(txt);
      } else if (txt.indexOf('女鞋') > -1) {
        $('.cloth_icon').attr('class', '').addClass('cloth_icon ht_shoes woman_foot');
        $('.detail_left .shoes').text(txt);
      } else {
        $('#size_detail .shoes').hide();
        $('.cloth_icon').css('display', 'inline-block');
        $('.tongxie').css('display', 'inline-block');
        $('.tongxie0').addClass('size_hover');
        $('.tongxie4').removeClass('size_hover');
        $('.cloth_icon').attr('class', '').addClass('cloth_icon ht_shoes kids_foot');
      }
    } else if (txt.indexOf('童装') > -1) {
      $('.unit_mm').css('display', 'none');
      $('.unit_cm').css('display', 'inline-block');
      $('#size_detail .detail_left span').hide();
      $('#size_detail .tongzhuang').css('display', 'inline-block');
      $('.cloth_icon').css('display', 'inline-block');
      $('.cloth_icon').attr('class', '').addClass('cloth_icon kid0');
      $('.tongzhuang0').addClass('size_hover');
      $('.tongzhuang4').removeClass('size_hover');
    } else if (txt.indexOf('男装') > -1) {
      $('.unit_mm').css('display', 'none');
      $('.unit_cm').css('display', 'inline-block');
      $('#size_detail .detail_left span').hide();
      $('.cloth_icon').css('display', 'inline-block');
      $('#size_detail .shangyi').show();
      $('#size_detail .xiazhuang').show();
      $('.xiazhuang').removeClass('size_hover');
      $('.shangyi').addClass('size_hover');
      $('.cloth_icon').attr('class', '').addClass('cloth_icon manshangzhuang');
    } else {
      $('.unit_mm').css('display', 'none');
      $('.unit_cm').css('display', 'inline-block');
      $('#size_detail .detail_left span').hide();
      $('.cloth_icon').css('display', 'inline-block');
      $('#size_detail .shangyi').show();
      $('#size_detail .xiazhuang').show();
      $('.xiazhuang').removeClass('size_hover');
      $('.shangyi').addClass('size_hover');
      if (txt.indexOf('男装') > -1) $('.cloth_icon').attr('class', '').addClass('cloth_icon manshangzhuang');else $('.cloth_icon').attr('class', '').addClass('cloth_icon womanshangzhuang');
    }
    insertSize(c[0], c[1]);
  });
  $('.shangyi').on('click', function () {
    if ($(this).attr('class').indexOf('size_hover') > -1) return;
    var txt = $('.clothes_nav li[class="select"]').text();
    if (txt == "童装") return;
    if (txt == "男装") {
      $('.cloth_icon').attr('class', '').addClass('cloth_icon manshangzhuang');
    }
    if (txt == "女装") {
      $('.cloth_icon').attr('class', '').addClass('cloth_icon womanshangzhuang');
    }
    var c = getClothes(txt, country);
    insertSize(c[0], c[1]);
    $(this).addClass('size_hover');
    $('.xiazhuang').removeClass('size_hover');
  });
  $('.xiazhuang').on('click', function () {
    if ($(this).attr('class').indexOf('size_hover') > -1) return;
    var txt = $('.clothes_nav li[class="select"]').text();
    if (txt == "童装") return;
    if (txt == "男装") {
      var c = clothesDict['xiazhuang'][country]['man'];
      insertSize(c[0], c[1]);
      $('.cloth_icon').attr('class', '').addClass('cloth_icon manxiazhuang');
    }
    if (txt == "女装") {
      var c = clothesDict['xiazhuang'][country]['woman'];
      insertSize(c[0], c[1]);
      $('.cloth_icon').attr('class', '').addClass('cloth_icon womanxiazhuang');
    }
    $(this).addClass('size_hover');
    $('.shangyi').removeClass('size_hover');
  });
  $('.tongzhuang0').on('click', function () {
    var c = getClothes('童装', country);
    insertSize(c[0], c[1]);
    $(this).addClass('size_hover');
    $('.tongzhuang4').removeClass('size_hover');
    $('.cloth_icon').attr('class', '').addClass('cloth_icon kid0');
  });
  $('.tongzhuang4').on('click', function () {
    var c = getClothes('童装', country);
    insertSize(c[0], c[2]);
    $(this).addClass('size_hover');
    $('.tongzhuang0').removeClass('size_hover');
    $('.cloth_icon').attr('class', '').addClass('cloth_icon kid4');
  });
  $('.tongxie0').on('click', function () {
    var c = getClothes('童鞋', country);
    insertSize(c[0], c[1]);
    $(this).addClass('size_hover');
    $('.tongxie4').removeClass('size_hover');
  });
  $('.tongxie4').on('click', function () {
    var c = getClothes('童鞋', country);
    insertSize(c[0], c[2]);
    $(this).addClass('size_hover');
    $('.tongxie0').removeClass('size_hover');
  });
}
let reqCollect = (url, callback) => {
  request.get(url).done(data => {
    callback(data);
  }).fail(() => {
    $('#ht_addcollect').text('添加失败');
    $('#ht_addcollect').removeClass('c_adding');
    $('#ht_addcollect').addClass('c_added');
  });
};
const check_favor = () => {
  let id = userData.get('other_info').now.dp_id;
  if (!G.email || !id) return;
  let url = `${G.c_server}/brwext/check_collected?email=${G.email}&dp_id=${id}`;
  request.get(url).done(data => {
    if (data && data.msg === true) {
      $('#ht_addcollect').text('已添加');
      $('#ht_addcollect').addClass('c_added');
    }
  });
};
function addCollect() {
  let pagedp = G.dp;
  let oinfo = userData.get('other_info');
  let dp = oinfo.now;
  if (!dp.dp_id) {
    $('#ht_addcollect').text('暂不支持');
    $('#ht_addcollect').unbind('click');
    return;
  }
  $('#ht_addcollect').text('正在添加');
  $('#ht_addcollect').addClass('c_adding');
  dp.price = pagedp.oldPrice || oinfo['code-server'] && oinfo['code-server'].price;
  dp.title = pagedp.name || $('title').html();
  dp.url = dp.url || location.href;
  dp.img = dp.img || pagedp.img;
  let url = `${G.c_server}/collect/aj_add?dp_id= ${dp.dp_id}&url=${encodeURIComponent(dp.url || G.dp.url)}&img=${encodeURIComponent(dp.img || G.dp.img)}&title=${encodeURIComponent(dp.title)}&price=${dp.price}&site_id=${dp.site_id}&cat_id=${G.dp.cat_id}`;
  reqCollect(url, data => {
    if (data.code == 100 || data.code <= 0) {
      var href = window.location.href.toString();
      //这里进行特殊处理，标记来源的url，在页面返回的时候，自动收藏商品
      if (href.indexOf('?') > -1) {
        href += '&gwd_add_favor_unique=true';
      } else {
        href += "?gwd_add_favor_unique=true";
      }
      window.location.href = G.c_server + "/user/login?from_url=" + encodeURIComponent(href);
    } else if (data.code == 1) {
      $('#ht_addcollect').text('已添加');
      $('#ht_addcollect').removeClass('c_adding');
      $('#ht_addcollect').addClass('c_added');
      $("#ht_addcollect").unbind('click');
    } else if (data.code == 2) {
      $('#ht_addcollect').text('添加过了');
      $('#ht_addcollect').removeClass('c_adding');
      $('#ht_addcollect').addClass('c_added');
      $("#ht_addcollect").unbind('click');
    }
  });
}
function contentEvent() {
  /*主窗口事件*/

  $('.ht_head .ht_getprice').on('mouseenter', () => {
    let dom = $('#ht_content_info');
    if (!dom.is(':visible')) {
      $('.content_default').hide();
      dom.show();
    }
  });
  /*关闭弹窗框*/
  $('.closebar').on('click', function () {
    $(this).parent().hide();
  });

  /*添加划词翻译直邮第三方信息提示*/
  $('.content_default_left .ht_tariff .del_line').on('mouseenter', () => {
    $('.tariff_remind_detail').show();
  });
  $('.content_default_left .ht_tariff .del_line').on('mouseleave', () => {
    $('.tariff_remind_detail').hide();
  });
  $('.ht_translate').on('mouseenter', () => {
    $('.translate_detail').show();
  });
  $('.ht_translate').on('mouseleave', () => {
    $('.translate_detail').hide();
  });
  $('.pro_type').on('mouseenter', () => {
    $('.pro_type_detail').show();
  }).on('mouseleave', () => {
    $('.pro_type_detail').hide();
  });
  $('.mail_type').on('mouseenter', () => {
    $('.mail_type_detail').show();
  }).on('mouseleave', () => {
    $('.mail_type_detail').hide();
  });
  $('.ht_transport_btn, .size_help, .ht_tariff_btn, #ht_addcollect').on('mouseenter', function () {
    $(this).find('.div_detail').show();
  }).on('mouseleave', function () {
    $(this).find('.div_detail').hide();
  });
  $('.weight_type').on('mouseenter', function () {
    $('.weight_type_detail').show();
  }).on('mouseleave', function () {
    $('.weight_type_detail').hide();
  });

  // 添加降价提醒
  $('#ht_addcollect').on('click', function (event) {
    let dom = $('#altImages li img').eq(0);
    if (dom) G.collectInfo.img = dom.attr('src');
    event.preventDefault();
    addCollect();
  });

  // 重量单位选择
  $('.ht_weight .weight_type').on('click', function () {
    var t = $(this).text();
    if (t === 'LB') {
      weight = $('.ht_weight_num').val();
      $(this).text('KG');
      $('.ht_weight_num').val(Math.round(Number(weight) * 0.4535924 * 100) / 100);
    } else {
      $(this).text('LB');
      if (weight) $('.ht_weight_num').val(weight);
    }
  });
  // 是否选取关税 
  $('.del_line').on('click', function () {
    if ($(this).attr('data-del') === '1') {
      $(this).find('.ht_tariff_num').css('text-decoration', 'none');
      $(this).attr('data-del', '0');
      $(this).find('span').attr('data-price', $(this).find('span').text());
      changePrice();
    } else {
      $(this).find('.ht_tariff_num').css('text-decoration', 'line-through');
      $(this).attr('data-del', '1');
      $(this).find('span').attr('data-price', 0);
      changePrice();
    }
  });

  // 转运中国弹窗框
  $('.ht_transport_btn').on('click', function () {
    $('#transport_detail').show();
    log('click:haitao:transport');
    cnzz.log('海淘转运商家点击情况');
  });

  /*尺寸转换*/
  $('.size_help').on('click', function () {
    $('#size_detail').show();
    log('click:haitao:size_help');
    cnzz.log('点击尺码帮助');
  });
  $('.size_xiala').on('mouseenter', function () {
    $(this).next('.size_xialabox').show();
    $(this).addClass('msHover');
  });
  $('.size_xiala').on('mouseleave', function () {
    var that = this;
    timer = setTimeout(function () {
      $(that).next('.size_xialabox').hide();
      $(that).removeClass('msHover');
    }, 100);
  });
  $('.size_xialabox').on('mouseenter', function () {
    clearTimeout(timer);
  });
  $('.size_xialabox').on('mouseleave', function () {
    $(this).hide();
  });
  $('.size_xialabox a').on('click', function () {
    var txt = $(this).text();
    var c = $(this).parent().attr('data-size');
    $('.' + c).val(txt);
    $(this).parent().hide();
    conversionSize();
  });
  $('#first_size').on('keyup', function () {
    conversionSize();
  });
}

// function otherPageEvent() {
//   let arr = ['#variation_size_name', '#variation_configuration', '#variation_color_name', '#variation_style_name']
//   let dom = '';
//   for (let i=0; i<arr.length; i++ ) {
//     if ( $(arr[i]).length >0 && $(arr[i]).find('li').length > 0)
//       dom = arr[i]
//   }
//   $(dom).find('li').each(function() {
//     $(this).on('click', function() {
//       let txt = $(this).find('.a-size-mini').eq(0).text()
//       if (txt == '' || !txt) return;
//       let price = parseprice(txt)
//       $('.ht_content .price_num').text('¥' + price)
//       $('.ht_getprice_num').text('¥' + calPrice(price));
//     })
//   })
// }

function addEvent() {
  contentEvent();
  cateEvent();
  addShopEvent();
  // otherPageEvent()
}
function insertCate(c) {
  /*插入二级分类*/
  var html = '{{each data}}<a href="javascript:void(0);" title="{{$value[1]}}" tariff="{{$value[0]}}">{{$value[1]}}</a>{{/each}}';
  $('#cate_small').next('.xialabox').empty().append(template.compile(html)({
    data: c
  }));
  /*插入数据之后修改input框样式*/
  $('#cate_small').removeClass('sel_info');
  addSmallCateEvent();
}
function addSmallCateEvent() {
  /*添加二级分类事件*/
  $('#small_xiala a').on('click', function () {
    var txt = $(this).text();
    $('#cate_small').val(txt);
    $('.ht_tariff_cate').text(txt);
    $('.ht_tariff .ht_tariff_num em').text($(this).attr('tariff'));
    $('#tariff_detail .ht_tariff_num').text($(this).attr('tariff'));
    $('.ht_tariff_btn span').text($(this).text().slice(0, 5));
    $('.ht_tariff_btn span').attr('title', $(this).text());
    $('#small_xiala').hide();
    replaceStr('#cate_small');
    replaceStr('.ht_tariff_cate', 'text', 4);
  });
  $('#select_btn').on('click', function () {
    changePrice();
    $('#tariff_detail').hide();
  });
}
function replaceStr(obj, type, num) {
  /*字符串很长的做一下替换*/
  num = num || 6;
  var txt;
  var l = 0;
  if (type == 'text') txt = $(obj).text();else txt = $(obj).val();
  for (var i = 0; i < txt.length; i++) {
    var t = new RegExp('[a-z0-9/]').test(txt[i]);
    if (t) l += 0.5;else l += 1;
    if (l > num) {
      txt = txt.slice(0, i) + '...';
      if (type == 'text') $(obj).text(txt);else $(obj).val(txt);
      return;
    }
  }
}
function cateEvent() {
  /*关税框弹出事件*/
  $('.ht_tariff_btn').on('click', function () {
    $('#tariff_detail').show();
    log('click:haitao:tariff');
    cnzz.log('海淘关税点击');
  });
  /*分类选择*/
  $('#cate_select_box input').on('mouseenter', function () {
    if ($(this).next('.xialabox').find('a').length > 0) {
      $(this).next('.xialabox').show();
      $(this).parent().addClass('select_hover');
      $(this).addClass('input_hover');
    }
  });
  $('#cate_select_box input').on('mouseleave', function () {
    var that = this;
    timer = setTimeout(function () {
      $(that).next('.xialabox').hide();
      $(that).parent().removeClass('select_hover');
      $(that).removeClass('input_hover');
    }, 100);
  });

  /*下拉列表*/
  $('.xialabox').on('mouseenter', function () {
    clearTimeout(timer);
  }).on('mouseleave', function () {
    $(this).hide();
    $(this).parent().removeClass('select_hover');
    $(this).parent().find('input').removeClass('input_hover');
  });

  /*二级分类事件*/
  addSmallCateEvent();
  /*一级分类选项点击事件*/
  $('#big_xiala a').on('click', function () {
    var txt = $(this).text();
    $('#cate_big').val(txt);
    $('.ht_tariff_cate').text(txt);
    var cate = $(this).attr('cate');
    insertCate(cateDict[cate]);
    $('#big_xiala').hide();
    replaceStr('#cate_big');
    replaceStr('.ht_tariff_cate', 'text', 4);
  });
}
function baidufanyi(t, callback) {
  /*百度翻译接口*/
  var url = location.protocol + `//browser.${G.extName}.com/extension?ac=fanyi&string=` + t;
  request.get(url).done(function (data) {
    if (data.trans_result && !data.error_code) {
      var trans = [];
      for (var i = 0; i < data.trans_result.length; i++) {
        trans.push(data.trans_result[i].dst);
      }
      callback(trans);
    } else {
      callback([t]);
    }
  });
}
function requestFanyi(t, callback) {
  /*请求翻译接口*/
  baidufanyi(t, callback);
  log('request:haitao:fanyi');
  cnzz.log('请求划词翻译');
}

// function youdaofanyi(t, callback) {
//   /*有道翻译接口*/
//   let doctype = 'jsonp';
//   if (G.chrome_extension)
//     doctype = 'json'
//   var url = "https://fanyi.youdao.com/openapi.do?keyfrom=chrome&key=1361128838&type=data&doctype=" + doctype + "&version=1.1&q="+t;
//     request.getPure(url).done(function(data){
//       if (data.basic && data.basic.explains && data.basic.explains.length >0)
//         callback(data.basic.explains)
//       else if( data.translation)
//         callback(data.translation)
//       else
//         callback([t])
//     })
// }

function insertFanyi(data) {
  /*插入翻译内容*/
  data = data.join('');
  $('.ht_fanyi').remove();
  var html = '<div class="ht_fanyi" style="top:{{hty}};left:{{htx}}"><span id="ht_top"></span>{{data}}</div>';
  var t = template.compile(html)({
    data: data,
    'htx': calPosition() + 'px',
    'hty': htY + 'px'
  });
  $('body').append(t);
  addFanyiEvent();
}
function calPosition() {
  /*计算插入位置*/
  var pos = 0;
  if (htX > mouseDownX) pos = htX - (htX - mouseDownX) / 2 - 65;else pos = htX + (mouseDownX - htX) / 2 - 65;
  return pos;
}
function editTxt(t) {
  requestFanyi(t, insertFanyi);
}
function addFanyiEvent() {
  $('.ht_fanyi').siblings().on('click', function () {
    $('.ht_fanyi').remove();
  });
}
function getSelect() {
  $('body').on('mousedown', function (e) {
    clearTimeout(timer2);
    mouseDownX = e.pageX;
  });
  $('body').on('mouseup', function (e) {
    timer2 = setTimeout(function () {
      var txt = '';
      htX = e.pageX;
      htY = e.pageY + 20;
      if (window.getSelection) {
        txt = window.getSelection().toString();
      } else if (document.selection) {
        txt = document.selection.createRange().text;
      }
      if (txt == '') return;else editTxt(txt);
    }, 100);
  });
}
module.exports._init = function () {
  let permanent = userData.get('permanent');
  if (permanent && permanent.sethaitao === "0") return;
  init();
};
module.exports.isHaitao = isHaitaoPage;

/***/ }),

/***/ 49357:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ QrErrorvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ QrError)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/QrError.vue?vue&type=template&id=5351d26a&scoped=true
var QrErrorvue_type_template_id_5351d26a_scoped_true = __webpack_require__(12890);
;// ./src/common/components/QrError.vue?vue&type=template&id=5351d26a&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/QrError.vue?vue&type=script&lang=js
var QrErrorvue_type_script_lang_js = __webpack_require__(64187);
;// ./src/common/components/QrError.vue?vue&type=script&lang=js
 /* harmony default export */ const components_QrErrorvue_type_script_lang_js = (QrErrorvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/QrError.vue?vue&type=style&index=0&id=5351d26a&prod&scoped=true&lang=less
var QrErrorvue_type_style_index_0_id_5351d26a_prod_scoped_true_lang_less = __webpack_require__(25110);
;// ./src/common/components/QrError.vue?vue&type=style&index=0&id=5351d26a&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/QrError.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_QrErrorvue_type_script_lang_js,
  QrErrorvue_type_template_id_5351d26a_scoped_true/* render */.XX,
  QrErrorvue_type_template_id_5351d26a_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "5351d26a",
  null
  
)

/* harmony default export */ const QrError = (component.exports);

/***/ }),

/***/ 49388:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
__webpack_require__(12041);
var $ = __webpack_require__(10333);
let communicate = __webpack_require__(79560);
Promise.prototype.done = function (onFulfilled, onRejected) {
  return this.then(onFulfilled, onRejected).catch(function (error) {
    setTimeout(function () {
      throw error;
    }, 0);
  });
};
Promise.prototype.fail = function (onFulfilled, onRejected) {
  this.then(onFulfilled, onRejected).catch(function (error) {
    setTimeout(function () {
      throw error;
    }, 0);
  });
};
let wrap = url => {
  if (!url) throw new Error('url 不能为空');
  let start = '?';
  let callback = 'callback=?&';
  if (url.indexOf('?') > -1) {
    start = '&';
  }
  var extension_env;
  //format是历史接口兼容
  let format = 'format=jsonp&';
  if (G.chrome_extension || G.from_device === 'maxthon' || G.from_device === 'firefox' || G.from_device === 'chrome') {
    extension_env = true;
  }
  //extension_env = true
  if (G.allowBackgroundRequest) {
    extension_env = true;
  }
  if (extension_env) {
    callback = '';
    format = 'format=json&';
  }
  let fp = '';
  if (localStorage.getItem('gwdang-fp')) {
    fp = `fp=${localStorage.getItem('gwdang-fp')}&dfp=${localStorage.getItem('gwdang-dfp')}&`;
  }
  return `${url}${start}${callback}${format}${fp}`;
};
module.exports.getCouponFromUrl = (url, price = null) => {
  return new Promise((resolve, reject) => {
    module.exports.get(`${G.server}/extension/CouponHandler?op=get&rawApi=${encodeURIComponent(url)}` + (price ? '&price=' + price : '')).then(res => {
      const defRes = {
        "handle": {
          "self": ["\"coupon\":\"满(:<limit>\\d+)元减(:<coupon>\\d+)元\"[\\s\\S]*?\"link\":\"(:<link>.+?)\""]
        },
        "map": [{
          "api": {
            "raw": url,
            "uri": "https:\/\/u.gwdang.com\/gyp\/taobao\/coupon?dp_id=627231499289&format=json&aid=a1002&s=tao&pure=1&rebate=1&price=" + price,
            "tag": "self"
          },
          "is_api": 1
        }]
      };
      if (res.map && res.map.length > 0 && res.map[0].is_api && res.handle) {
        let trueUrl = res.map[0].api.uri;
        const tag = res.map[0].api.tag;
        const NamedRe = (__webpack_require__(14259)/* .named */ .K);
        escapeStringRegExp.matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
        function escapeStringRegExp(str) {
          return str.replace(escapeStringRegExp.matchOperatorsRe, '\\$&');
        }
        if (!res.handle[tag]) {
          if (url.indexOf('open.lesiclub.cn') > -1) {
            // module.exports.rawGet(url).then(res => {
            //     resolve(res)
            // })
            //  console.warn('bad lesiclub')
            resolve(false);
            // reject()
            return;
          } else {
            // module.exports.rawGet(url).then(res => {
            //     resolve(res)
            // })
            res.handle = {
              "sg.weitaoke": ["\"coupon_click_url\":\"(:<link>.+?)\"[\\s\\S]*?\"coupon_info\":\"\u6ee1(:<limit>\\d+)\u5143\u51cf(:<coupon>\\d+)\u5143\""],
              "weitaoke": ["\"coupon_click_url\":\"(:<link>.+?)\"[\\s\\S]*?\"coupon_info\":\"\u6ee1(:<limit>\\d+)\u5143\u51cf(:<coupon>\\d+)\u5143\""],
              "uc.weitaoke": ["\"coupon_click_url\":\"(:<link>.+?)\"[\\s\\S]*?\"coupon_info\":\"\u6ee1(:<limit>\\d+)\u5143\u51cf(:<coupon>\\d+)\u5143\""],
              "edge.weitaoke": ["\"coupon_click_url\":\"(:<link>.+?)\"[\\s\\S]*?\"coupon_info\":\"\u6ee1(:<limit>\\d+)\u5143\u51cf(:<coupon>\\d+)\u5143\""]
            };
          }
        }
        const re = NamedRe(new RegExp(res.handle[tag][0]));

        //trueUrl = trueUrl.replace('http://q.weitaoke.net', 'https://q.apptimes.cn')

        let r;
        if (trueUrl.indexOf('open.lesiclub.cn') > -1) {
          if (G.from_device === 'bijiago' || G.from_device === 'biyibi') {
            let runned = false;
            r = new Promise(resolve => {
              $.get(url).done(res => {
                runned = true;
                resolve(res);
              });
              setTimeout(() => {
                if (!runned) {
                  resolve(null);
                }
              }, 4000);
            });
          } else {
            r = module.exports.rawGet(trueUrl);
          }
        } else {
          r = module.exports.rawGet(trueUrl);
        }
        r.then(data => {
          if (!data || !data.data) {
            (__webpack_require__(7129).log)('u.gwdang.com no data', data);
            resolve(null);
            return;
          }
          try {
            let cap = re.exec(JSON.stringify(data));
            if (!cap) {
              if (data && data.data.rebate) {
                resolve(data);
              } else {
                resolve(null);
              }
              return;
            }
            let result = cap.captures;
            resolve({
              code: 200,
              data: {
                click_url: result.link[0],
                tkl: result.tkl ? result.tkl[0] : '',
                coupon: {
                  coupon_money: result.coupon[0],
                  coupon_limit: result.limit[0]
                }
              }
            });
          } catch (e) {
            console.error(e);
            if (data && data.data.rebate) {
              resolve(data);
            } else {
              resolve(null);
            }
          }
        }).catch(err => {
          console.error(err);
          resolve(null);
        });
      } else {
        console.warn('resolve 142');
        resolve(null);
      }
    }).catch(e => {
      console.error(e);
      resolve(null);
    });
  });
};
module.exports.raw = function (url, isarg) {
  if (isarg) {
    url = `${url}&union=${G.union}&version=${G.version}&from_device=${G.from_device}`;
  }
  var done;
  if (G.allowBackgroundRequest) {
    return new Promise(resolve => {
      communicate.trigger({
        type: 'proxyRequest',
        url: url
      });
      communicate.on(info => {
        if (info.type === 'proxyRequest' && info.id === url) {
          resolve(JSON.stringify(info.value));
        }
      });
    });
  } else {
    var r = {
      done: function (cb) {
        done = cb;
      }
    };
    var xhr = new XMLHttpRequest();
    xhr.addEventListener('load', function () {
      if (done) done(xhr.responseText);
    });
    xhr.addEventListener('error', function () {
      if (done) done(xhr.responseText);
    });
    xhr.open("GET", url, true);
    xhr.send();
    return r;
  }
};

/**
 * 普通GET请求，不会加上多余的参数
 * @param urls
 * @returns {Promise<unknown>|*}
 */
module.exports.rawGet = (url, allowCredentials = false, timeout = 3000) => {
  if (url.includes('/helper/qrcode?')) {
    url = (__webpack_require__(12826).appendTbInfoForUrl)(url);
  }
  if (G.allowBackgroundRequest) {
    return new Promise((resolve, reject) => {
      let resolved = false;
      communicate.trigger({
        type: 'proxyRequest',
        url: url,
        referer: location.href
      });
      communicate.on(info => {
        if (info.type === 'proxyRequest' && info.id === url) {
          resolved = true;
          resolve(info.value);
        }
      });
      setTimeout(() => {
        if (!resolved) {
          (__webpack_require__(7129).warn)('请求超时', url);
          reject('timeout');
        }
      }, timeout);
    });
  } else {
    if (allowCredentials) {
      return module.exports.requestXHR(url, {});
    }
    return new Promise((resolve, reject) => {
      $.get(url).then(res => resolve(res)).fail(err => reject(err));
    });
    // return $.get(url)
  }
};

// function request(url, callback, referer) {
//     var xmlhttp = new XMLHttpRequest();
//     xmlhttp.addEventListener('load', function() {
//         callback(xmlhttp.responseText)
//     })
//     xmlhttp.withCredentials = true
//     xmlhttp.open("GET", url, true);
//     // if (referer) {
//     //     xmlhttp.setRequestHeader('x-referer', referer)
//     // }
//     xmlhttp.send();
// };

/** 请求自己接口 */
module.exports.get = function (url) {
  let instanceId = G.instanceId;
  let from_type = "";
  if (G.from_type) {
    from_type = `&from_type=${G.from_type}`;
  }
  url = `${wrap(url)}version=${G.version}&from_device=${G.from_device}${from_type}`;
  if (!url.includes('union=')) {
    url += '&union=' + G.union;
  }
  if (G.crc64) url += "&crc64=1";
  if (!Promise.prototype.done) {
    Promise.prototype.done = Promise.prototype.then;
    Promise.prototype.fail = Promise.prototype.catch;
  }
  if (G.allowBackgroundRequest) {
    return new Promise(resolve => {
      communicate.trigger({
        type: 'proxyRequest',
        url: url,
        referer: location.href
      });
      communicate.on(info => {
        if (instanceId && instanceId !== G.instanceId && !location.href.startsWith('https://s.taobao.com')) {
          // debugger
          // require('common/extConsole').warn('instanceId不一致，不处理', instanceId, G.instanceId)
          resolve(null);
          return;
        }
        if (info.type === 'proxyRequest' && info.id === url) {
          resolve(info.value);
        }
      });
    });
  } else {
    return new Promise((resolve, reject) => {
      // request(url, function(res) {
      //     try {
      //         resolve(JSON.parse(res))
      //     } catch (e) {
      //         resolve(res)
      //     }
      // }, location.href)
      window.ts = $;
      $.ajax({
        beforeSend: function (request) {
          if (G.requestNeedToken) {
            //request.setRequestHeader("x-bjg-token", G.requestNeedToken);
          }
        },
        dataType: "json",
        url: url,
        success: function (data) {
          if (instanceId && instanceId !== G.instanceId) {
            resolve(null);
            return;
          }
          resolve(data);
        }
      });

      // $.getJSON(url).then(res => resolve(res))
      // console.log(url)
      // $.ajax(url, {
      //     xhrFields: {
      //         withCredentials: true
      //     },
      //     jsonp: false,
      //     jsonpCallback: ''
      // }).then(res => {
      //     resolve(res)
      // })
    });
  }
};
const requesting = {};
module.exports.getOnce = function (url) {
  let key = 'getOnce-' + url;
  return new Promise((resolve, reject) => {
    if (requesting[url]) {
      (__webpack_require__(41761).met)(key).then(res => {
        resolve(res);
      });
      return;
    } else {
      requesting[url] = true;
      module.exports.get(url).then(res => {
        resolve(res);
        (__webpack_require__(41761).setMet)(key, res);
      });
    }
  });
};
let postingId = 0;
module.exports.urlContentToDataUri = url => {
  return fetch(url).then(response => response.blob()).then(blob => new Promise(callback => {
    let reader = new FileReader();
    reader.onload = function () {
      callback(this.result);
    };
    reader.readAsDataURL(blob);
  }));
};
module.exports.imgUrlToDataUri = (imgUrl, widthLimit = 250) => {
  return new Promise((resolve, reject) => {
    let img = new Image();
    img.crossOrigin = 'Anonymous';
    img.onload = function () {
      let canvas = document.createElement('CANVAS');
      let ctx = canvas.getContext('2d');
      let dataURL;
      // canvas.height = this.naturalHeight;
      // canvas.width = this.naturalWidth;
      // ctx.drawImage(this, 0, 0);
      const naturalWidth = this.naturalWidth,
        naturalHeight = this.naturalHeight;
      if (naturalWidth > widthLimit) {
        const r = naturalWidth / widthLimit;
        canvas.width = widthLimit;
        canvas.height = naturalHeight / r;
      } else {
        canvas.width = naturalWidth;
        canvas.height = naturalHeight;
      }
      ctx.drawImage(this, 0, 0, canvas.width, canvas.height);
      dataURL = canvas.toDataURL('image/jpeg');
      resolve(dataURL);
    };
    img.src = imgUrl;
  });
};
module.exports.makeUrl = (host, path, query, noEncode = false) => {
  let url = host + path;
  if (query) {
    url += '?';
    for (let key in query) {
      url += `${key}=${noEncode ? query[key] : encodeURIComponent(query[key])}&`;
    }
    url = url.substring(0, url.length - 1);
  }
  return url;
};
module.exports.post = (url, data, useForm = false, withCredentials = true) => {
  let reqId = postingId;
  postingId++;
  if (G.allowBackgroundRequest) {
    return new Promise(resolve => {
      communicate.trigger({
        type: useForm ? useForm === 'www' ? 'proxyRequestPostWWWForm' : 'proxyRequestPostForm' : 'proxyRequestPost',
        url: url,
        payload: data,
        reqId: reqId,
        referer: location.href
      });
      communicate.on(info => {
        if (info.type.indexOf('proxyRequestPost') > -1 && info.id === reqId) {
          resolve(info.value);
        }
      });
    });
  } else {
    return module.exports.requestXHRPost(url, data, useForm, withCredentials);
  }
};

/** 请求别人接口，隐藏痕迹 */
const getPure = function (url) {
  //console.log('getPure ' + url)
  // 曾用于获取商品信息，现在不需要了
  if (url.indexOf('https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0') > -1) {
    //console.warn('interupt ' + url)
    return {
      done: function (cb) {
        cb({
          intercepted: true,
          msg: 'view request.js'
        });
      },
      then: function (cb) {
        cb({
          intercepted: true,
          msg: 'view request.js'
        });
      }
    };
  }
  url = wrap(url);
  return $.ajax({
    beforeSend: function (request) {
      if (G.requestNeedToken) {
        //request.setRequestHeader("x-bjg-token", G.requestNeedToken);
      }
    },
    dataType: "json",
    url: url
  });
};
module.exports.getPure = getPure;
module.exports.requestXHR = function requestXHR(url, withCredentials = true, customHeaders = null) {
  if (G.serviceWorker) {
    return fetch(url, {
      "credentials": withCredentials ? "include" : ''
    }).then(r => r.text());
  }
  return new Promise(resolve => {
    var xmlhttp = new XMLHttpRequest();
    xmlhttp.addEventListener('load', function () {
      try {
        let res = JSON.parse(xmlhttp.responseText);
        resolve(res);
      } catch (e) {
        resolve(xmlhttp.responseText);
      }
    });
    xmlhttp.withCredentials = withCredentials;
    xmlhttp.open("GET", url, true);
    if (customHeaders) {
      Object.keys(customHeaders).forEach(key => {
        xmlhttp.setRequestHeader(key, customHeaders[key]);
      });
    }
    xmlhttp.send();
  });
};
module.exports.requestXHRPost = function requestXHR(url, data, form = true, withCredentials = true) {
  return new Promise(resolve => {
    let xmlhttp = new XMLHttpRequest();
    xmlhttp.addEventListener('load', function () {
      try {
        let res = JSON.parse(xmlhttp.responseText);
        resolve(res);
      } catch (e) {
        resolve(xmlhttp.responseText);
      }
    });
    xmlhttp.withCredentials = withCredentials;
    xmlhttp.open("POST", url, true);
    if (G.requestNeedToken) {
      //xmlhttp.setRequestHeader('x-bjg-token', G.requestNeedToken)
    }
    if (form) {
      let formData = new FormData();
      Object.keys(data).forEach(item => {
        formData.append(item, data[item]);
      });
      xmlhttp.send(formData);
    } else {
      xmlhttp.setRequestHeader('Content-Type', 'text/plain');
      xmlhttp.send(data);
    }
  });
};
const log360 = G.from_device === '360server' ? console.log : () => {};
module.exports.jdRequest = async id => {
  log360('staring jdRequest for', id);
  const gwdConfig = await (__webpack_require__(41761).met)('GwdConfig');
  if (!gwdConfig.allowJdRequest || location.hostname.includes('.jd.hk')) {
    log360('jdRequest not allowed', id);
    return;
  }
  const cat = pageConfig.product.cat.join(','),
    t = Date.now(),
    shopId = pageConfig.product.shopId,
    vendorId = pageConfig.product.venderId;
  await (__webpack_require__(30888).waitForConditionFn)(() => $('.ui-area-text').length);
  log360('jdRequest got area', id);
  const area = $('.ui-area-text').attr('data-id').replaceAll('-', '_');
  const params = {
    skuId: id,
    cat: cat,
    area: area,
    shopId: shopId,
    venderId: vendorId,
    paramJson: pageConfig.product.paramJson,
    num: pageConfig.product.countNum || '1'
  };
  const payload = {
    appid: 'pc-item-soa',
    functionId: 'pc_detailpage_wareBusiness',
    client: 'pc',
    clientVersion: '1.0.0',
    t: t,
    body: JSON.stringify(params)
  };
  const payloadCopy = Object.assign({}, payload);
  payloadCopy.body = SHA256(JSON.stringify(params)).toString();
  let sign = await window.PSign.sign(payloadCopy);
  payload.h5st = encodeURI(sign.h5st);
  if (window.jdtRiskContext && window.jdtRiskContext.deviceInfo) {
    log360('jdRequest get jsToken from jdtRiskContext', id);
    payload['x-api-eid-token'] = jdtRiskContext.deviceInfo.jsToken;
  }
  if (window.getJsToken) {
    log360('jdRequest get jsToken from getJsToken', id);
    payload['x-api-eid-token'] = await new Promise(resolve => {
      getJsToken(res => {
        resolve(res.jsToken);
      });
    });
  }
  log360('jdRequest request ready', id);
  payload.loginType = '3';
  payload.uuid = window.getCookie('__jda');
  const host = location.hostname.includes('.jkcsjd.com') ? 'https://color.jkcsjd.com' : 'https://api.m.jd.com';
  return module.exports.requestXHR(`${host}/?` + Object.keys(payload).map(key => `${key}=${encodeURIComponent(payload[key])}`).join('&'), true, {
    'x-referer-page': `https://${location.hostname}/` + id + '.html',
    'x-rp-client': 'h5_1.0.0'
  });
};
G.jdRequest = module.exports.jdRequest;
module.exports.buildUrl = (url, payload) => {
  return url + '?' + Object.keys(payload).map(key => `${key}=${encodeURIComponent(payload[key])}`).join('&');
};

/***/ }),

/***/ 49852:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _Index = _interopRequireDefault(__webpack_require__(27334));
const arrowImg = __webpack_require__(95604);
var _default = exports.A = {
  props: ['img', 'site', 'price'],
  data() {
    return {
      arrow: arrowImg
    };
  },
  methods: {
    transText: __webpack_require__(54600),
    openApp() {
      if (!window.gwdImgApp) {
        const el = document.createElement('div');
        document.body.appendChild(el);
        window.gwdImgApp = new Vue({
          el,
          render: h => h(_Index.default, {
            props: {
              img: this.img,
              price: this.price
            },
            ref: 'index'
          })
        });
      }
      window.gwdImgApp.$refs.index.open();
    }
  }
};

/***/ }),

/***/ 49906:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(43623);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("23dca33e", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 49917:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


const template = __webpack_require__(26133);
const getPromoInfo = __webpack_require__(41718);
const cnzz = __webpack_require__(5300);
const log = __webpack_require__(35743);
const request = __webpack_require__(49388);
let now_dp_id;
let posPattern = {
  '360buy': ['#notice-downp', '.J-notify-sale', '.summary-price .dd .p-price+em', '#summary-wrap .dd .p-price', '.summary-price .dd>:last-child'],
  'suning': ['#mainPrice dd #PriceNotice1', '#mainPrice dd .btn-price-notice', '#mainPrice dd .btn-price-business', '#mainPrice dd .mainprice'],
  'taobao': [],
  'tmall': [],
  'dangdang': []
};
const getJdPromotion = info => {
  if (G.site !== '360buy') return;
  let dp = G.dp;
  let skuId = dp.itemId.replace('-3', '');
  if (!dp.cat_id) return;
  let catarr = dp.cat_id.split('-');
  catarr = catarr.slice(0, 3);
  let cat = encodeURIComponent(catarr.join(','));
  let price = dp.price.toFixed(2);
  let area = $('.ui-area-text').attr('data-id').replace(/-/g, '_') + '_0';
  let timeStr = new Date().getTime();
  let url = `https://cd.jd.com/promotion/v2?skuId=${skuId}&area=${area}&shopId=${dp.shopId}&venderId=${dp.venderId}&cat=${cat}&isCanUseDQ=isCanUseDQ-1&isCanUseJQ=isCanUseJQ-1&platform=0&orgType=2&jdPrice=${price}&appid=1&_=${timeStr}`;
  // request.get(url).done((data) => {
  //   callback(info, data)
  // })
};
const getProMidPage = (id, callback) => {
  let url = `https://browser.gwdang.com/extension?ac=promoUrl&promo_id=${id}`;
  request.get(url).done(data => {
    callback(data);
  });
};
const renderServerOnHandPriceResult = resp => {
  let html = __webpack_require__(62528);
  let dom = $('#coupon_box');
  if (G.from_device.indexOf('bijiago') > -1 || G.from_device.indexOf('biyibi') > -1) {
    dom = $('#coupon_box_bjg');
    html = __webpack_require__(70629);
  } else {
    $('.gwd-minibar-bg > .dsj-content').remove();
  }
  if (dom.length === 0) {
    if (G.from_device.indexOf('bijiago') > -1 || G.from_device.indexOf('biyibi') > -1) {
      dom = $('.promo-box');
      html = __webpack_require__(70629);
    } else {
      dom = $('#gwd_minibar');
    }
  }
  if (G.from_device.indexOf('bijiago') > -1 || G.from_device.indexOf('biyibi') > -1) {
    $('#bjg-dsj-placeholder').replaceWith(template.compile(html)({
      tle: '',
      desc: resp.promo_list.map(item => {
        if (item.id) {
          let trueUrl = item.id.indexOf('http') === 0 ? item.id : `https:${item.id}`;
          trueUrl = encodeURIComponent(trueUrl);
          let url = item.url_format.replace('$URL', trueUrl);
          return `<a href="${url.replace('ext_promo_calc', 'promo_calc')}" target="_blank" style="text-decoration: underline">${item.text}</a>`;
        }
        return item.text;
      }).join(';'),
      pri: parseFloat(resp.current_price).toFixed(2),
      lang: G.lang
    }));
    if ($('.promo-box').css('display') !== 'none') {
      setTimeout(() => {
        $('.promo-box').prev().css('border-bottom', '1px solid #e6e9eb');
        $('.promo-box').prev().css('width', '100%');
      }, 0);
    }
  } else if (resp && resp.promo_list) {
    let promo2 = {
      tle: '',
      desc: resp.promo_list.map(item => {
        if (item.id) {
          let trueUrl = item.id.indexOf('http') === 0 ? item.id : `https:${item.id}`;
          trueUrl = encodeURIComponent(trueUrl);
          let url = item.url_format.replace('$URL', trueUrl);
          //
          // if (item.tag === 'promo') {
          //   globalPromoLink.push({
          //     text: item.text,
          //     url: url.replace('ext_promo_calc', 'promo_calc')
          //   })
          // }
          // if (item.tag === 'coupon') {
          //   globalCouponLink.push({
          //     text: item.text,
          //     url: url.replace('ext_promo_calc', 'promo_calc')
          //   })
          // }
          return `<a href="${url.replace('ext_promo_calc', 'promo_calc')}" target="_blank" style="text-decoration: underline">${item.text}</a>`;
        }
        return item.text;
      }).join(';'),
      pri: parseFloat(resp.current_price).toFixed(2)
    };
    $('#gwd-dsj-placeholder').replaceWith(template.compile(html)(promo2));
  }
  (__webpack_require__(53203).init)();
  var img = new Image();
  let promotle = encodeURIComponent(resp.promo_text);
  img.src = `${G.tj_server}/visit/?action=dspricelog&pagePri=${G.dp.price}&dsprice=${resp.current_price}&dp_id=${now_dp_id}&promo=${promotle}`;
  cnzz.log('track:dspriceAll');
  log('track:dspriceAll');
  // 获取促销活动对应的网站页面
  getJdPromotion(resp);
  calwidth();
};
const calwidth = () => {
  // let logoW = $('.dsj-content>em').outerWidth() + 22;
  // let priW = $('.dsj-pri-info').outerWidth() + 10;
  // let remindW = $('.dsj-remind-icon').outerWidth() + 12;
  // let freeW = 460 - (logoW + priW + remindW) - 10;
  // $('.dsj-promo-link').width(freeW);
};
module.exports.init = dp_id => {
  now_dp_id = dp_id;
  if (!posPattern[G.site]) return;
  getPromoInfo.getPrice(renderServerOnHandPriceResult);
  // getPromoInfo.getPrice(render)
};

/***/ }),

/***/ 49938:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-rndbtn[data-v-7b48957e] {\n  width: 94px;\n  height: 32px;\n  border-radius: 29px 29px 29px 29px;\n  border: 1px solid #404547;\n  background: transparent;\n  font-size: 14px;\n  color: #3c4c54;\n  cursor: pointer;\n}\n.gwd-rndbtn.gwd-imp[data-v-7b48957e] {\n  color: #ff4449;\n  border-color: #ff4449;\n}\n.gwd-popup-bg[data-v-7b48957e] {\n  position: fixed;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background: rgba(0, 0, 0, 0.5);\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  z-index: 999999;\n  font-family: PingFangSC-Regular, Microsoft YaHei, sans-serif;\n}\n.gwd-popup-bg .gwd-popup-window[data-v-7b48957e] {\n  width: 1448px;\n  padding: 24px 32px;\n  background: linear-gradient(180deg, #EAF7FF 0%, #FFFFFF 195px);\n  border-radius: 20px;\n  position: relative;\n  height: calc(100% - 150px);\n}\n.gwd-popup-bg .gwd-popup-window h3[data-v-7b48957e],\n.gwd-popup-bg .gwd-popup-window h4[data-v-7b48957e] {\n  margin-top: 0;\n  margin-bottom: 0;\n  font-size: 24px;\n  font-weight: bold;\n  color: #111;\n}\n.gwd-popup-bg .gwd-popup-window h3[data-v-7b48957e] {\n  line-height: 34px;\n}\n.gwd-popup-bg .gwd-popup-window h4[data-v-7b48957e] {\n  font-size: 20px;\n}\n.gwd-popup-bg .gwd-popup-window .gwd-statistics[data-v-7b48957e] {\n  padding: 20px 24px;\n  background: #fafafa;\n  border-radius: 16px;\n}\n.gwd-popup-bg .gwd-popup-window .gwd-content[data-v-7b48957e] {\n  overflow-y: auto;\n  scrollbar-width: none;\n  /* Firefox */\n  -ms-overflow-style: none;\n  /* IE and Edge */\n}\n.gwd-popup-bg .gwd-popup-window .gwd-content[data-v-7b48957e]::-webkit-scrollbar {\n  display: none;\n  /* Chrome, Safari, Opera */\n}\n.gwd-popup-bg .gwd-uitem[data-v-7b48957e] {\n  margin-right: 68px;\n  margin-top: 25px;\n  margin-bottom: 7px;\n}\n.gwd-popup-bg .gwd-pitem[data-v-7b48957e] {\n  margin-bottom: 18px;\n  height: 24px;\n  line-height: 24px;\n}\n@media screen and (max-width: 1499px) {\n.gwd-popup-window[data-v-7b48957e] {\n    transform: scale(0.8);\n    transform-origin: center center;\n}\n}\n", ""]);

// exports


/***/ }),

/***/ 49953:
/***/ ((__unused_webpack_module, exports) => {

exports.L = { bit: 1 }
exports.M = { bit: 0 }
exports.Q = { bit: 3 }
exports.H = { bit: 2 }

function fromString (string) {
  if (typeof string !== 'string') {
    throw new Error('Param is not a string')
  }

  const lcStr = string.toLowerCase()

  switch (lcStr) {
    case 'l':
    case 'low':
      return exports.L

    case 'm':
    case 'medium':
      return exports.M

    case 'q':
    case 'quartile':
      return exports.Q

    case 'h':
    case 'high':
      return exports.H

    default:
      throw new Error('Unknown EC Level: ' + string)
  }
}

exports.isValid = function isValid (level) {
  return level && typeof level.bit !== 'undefined' &&
    level.bit >= 0 && level.bit < 4
}

exports.from = function from (value, defaultValue) {
  if (exports.isValid(value)) {
    return value
  }

  try {
    return fromString(value)
  } catch (e) {
    return defaultValue
  }
}


/***/ }),

/***/ 49994:
/***/ ((module) => {

"use strict";


module.exports = isbn => {
  /*isbn 十位转 13位    odd jishu  even 偶数*/
  var odd = 0,
    even = 0,
    newNum;
  isbn = isbn.toString();
  if (isbn.length > 10) return isbn;
  var str = isbn.slice(0, 9);
  str = '978' + str;
  for (var i = 0; i < str.length; i++) {
    /*因为从零开始的 所以奇偶交换*/
    if (i % 2 === 0) {
      odd += Number(str[i]);
    } else {
      even += Number(str[i]);
    }
    newNum = 10 - (odd + even * 3) % 10;
  }
  str += newNum.toString();
  return str;
};

/***/ }),

/***/ 50283:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var uncurryThis = __webpack_require__(79504);
var fails = __webpack_require__(79039);
var isCallable = __webpack_require__(94901);
var hasOwn = __webpack_require__(39297);
var DESCRIPTORS = __webpack_require__(43724);
var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(10350).CONFIGURABLE);
var inspectSource = __webpack_require__(33706);
var InternalStateModule = __webpack_require__(91181);

var enforceInternalState = InternalStateModule.enforce;
var getInternalState = InternalStateModule.get;
var $String = String;
// eslint-disable-next-line es/no-object-defineproperty -- safe
var defineProperty = Object.defineProperty;
var stringSlice = uncurryThis(''.slice);
var replace = uncurryThis(''.replace);
var join = uncurryThis([].join);

var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
  return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
});

var TEMPLATE = String(String).split('String');

var makeBuiltIn = module.exports = function (value, name, options) {
  if (stringSlice($String(name), 0, 7) === 'Symbol(') {
    name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  }
  if (options && options.getter) name = 'get ' + name;
  if (options && options.setter) name = 'set ' + name;
  if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
    if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
    else value.name = name;
  }
  if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
    defineProperty(value, 'length', { value: options.arity });
  }
  try {
    if (options && hasOwn(options, 'constructor') && options.constructor) {
      if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
    // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
    } else if (value.prototype) value.prototype = undefined;
  } catch (error) { /* empty */ }
  var state = enforceInternalState(value);
  if (!hasOwn(state, 'source')) {
    state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  } return value;
};

// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
// eslint-disable-next-line no-extend-native -- required
Function.prototype.toString = makeBuiltIn(function toString() {
  return isCallable(this) && getInternalState(this).source || inspectSource(this);
}, 'toString');


/***/ }),

/***/ 50383:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


var mdurl = __webpack_require__(5778);
var ucmicro = __webpack_require__(73492);
var entities = __webpack_require__(72730);
var LinkifyIt = __webpack_require__(42814);
var punycode = __webpack_require__(27444);

function _interopNamespaceDefault(e) {
  var n = Object.create(null);
  if (e) {
    Object.keys(e).forEach(function (k) {
      if (k !== 'default') {
        var d = Object.getOwnPropertyDescriptor(e, k);
        Object.defineProperty(n, k, d.get ? d : {
          enumerable: true,
          get: function () { return e[k]; }
        });
      }
    });
  }
  n.default = e;
  return Object.freeze(n);
}

var mdurl__namespace = /*#__PURE__*/_interopNamespaceDefault(mdurl);
var ucmicro__namespace = /*#__PURE__*/_interopNamespaceDefault(ucmicro);

// Utilities
//

function _class(obj) {
  return Object.prototype.toString.call(obj);
}
function isString(obj) {
  return _class(obj) === '[object String]';
}
const _hasOwnProperty = Object.prototype.hasOwnProperty;
function has(object, key) {
  return _hasOwnProperty.call(object, key);
}

// Merge objects
//
function assign(obj /* from1, from2, from3, ... */) {
  const sources = Array.prototype.slice.call(arguments, 1);
  sources.forEach(function (source) {
    if (!source) {
      return;
    }
    if (typeof source !== 'object') {
      throw new TypeError(source + 'must be object');
    }
    Object.keys(source).forEach(function (key) {
      obj[key] = source[key];
    });
  });
  return obj;
}

// Remove element from array and put another array at those position.
// Useful for some operations with tokens
function arrayReplaceAt(src, pos, newElements) {
  return [].concat(src.slice(0, pos), newElements, src.slice(pos + 1));
}
function isValidEntityCode(c) {
  /* eslint no-bitwise:0 */
  // broken sequence
  if (c >= 0xD800 && c <= 0xDFFF) {
    return false;
  }
  // never used
  if (c >= 0xFDD0 && c <= 0xFDEF) {
    return false;
  }
  if ((c & 0xFFFF) === 0xFFFF || (c & 0xFFFF) === 0xFFFE) {
    return false;
  }
  // control codes
  if (c >= 0x00 && c <= 0x08) {
    return false;
  }
  if (c === 0x0B) {
    return false;
  }
  if (c >= 0x0E && c <= 0x1F) {
    return false;
  }
  if (c >= 0x7F && c <= 0x9F) {
    return false;
  }
  // out of range
  if (c > 0x10FFFF) {
    return false;
  }
  return true;
}
function fromCodePoint(c) {
  /* eslint no-bitwise:0 */
  if (c > 0xffff) {
    c -= 0x10000;
    const surrogate1 = 0xd800 + (c >> 10);
    const surrogate2 = 0xdc00 + (c & 0x3ff);
    return String.fromCharCode(surrogate1, surrogate2);
  }
  return String.fromCharCode(c);
}
const UNESCAPE_MD_RE = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g;
const ENTITY_RE = /&([a-z#][a-z0-9]{1,31});/gi;
const UNESCAPE_ALL_RE = new RegExp(UNESCAPE_MD_RE.source + '|' + ENTITY_RE.source, 'gi');
const DIGITAL_ENTITY_TEST_RE = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
function replaceEntityPattern(match, name) {
  if (name.charCodeAt(0) === 0x23 /* # */ && DIGITAL_ENTITY_TEST_RE.test(name)) {
    const code = name[1].toLowerCase() === 'x' ? parseInt(name.slice(2), 16) : parseInt(name.slice(1), 10);
    if (isValidEntityCode(code)) {
      return fromCodePoint(code);
    }
    return match;
  }
  const decoded = entities.decodeHTML(match);
  if (decoded !== match) {
    return decoded;
  }
  return match;
}

/* function replaceEntities(str) {
  if (str.indexOf('&') < 0) { return str; }

  return str.replace(ENTITY_RE, replaceEntityPattern);
} */

function unescapeMd(str) {
  if (str.indexOf('\\') < 0) {
    return str;
  }
  return str.replace(UNESCAPE_MD_RE, '$1');
}
function unescapeAll(str) {
  if (str.indexOf('\\') < 0 && str.indexOf('&') < 0) {
    return str;
  }
  return str.replace(UNESCAPE_ALL_RE, function (match, escaped, entity) {
    if (escaped) {
      return escaped;
    }
    return replaceEntityPattern(match, entity);
  });
}
const HTML_ESCAPE_TEST_RE = /[&<>"]/;
const HTML_ESCAPE_REPLACE_RE = /[&<>"]/g;
const HTML_REPLACEMENTS = {
  '&': '&amp;',
  '<': '&lt;',
  '>': '&gt;',
  '"': '&quot;'
};
function replaceUnsafeChar(ch) {
  return HTML_REPLACEMENTS[ch];
}
function escapeHtml(str) {
  if (HTML_ESCAPE_TEST_RE.test(str)) {
    return str.replace(HTML_ESCAPE_REPLACE_RE, replaceUnsafeChar);
  }
  return str;
}
const REGEXP_ESCAPE_RE = /[.?*+^$[\]\\(){}|-]/g;
function escapeRE(str) {
  return str.replace(REGEXP_ESCAPE_RE, '\\$&');
}
function isSpace(code) {
  switch (code) {
    case 0x09:
    case 0x20:
      return true;
  }
  return false;
}

// Zs (unicode class) || [\t\f\v\r\n]
function isWhiteSpace(code) {
  if (code >= 0x2000 && code <= 0x200A) {
    return true;
  }
  switch (code) {
    case 0x09: // \t
    case 0x0A: // \n
    case 0x0B: // \v
    case 0x0C: // \f
    case 0x0D: // \r
    case 0x20:
    case 0xA0:
    case 0x1680:
    case 0x202F:
    case 0x205F:
    case 0x3000:
      return true;
  }
  return false;
}

/* eslint-disable max-len */

// Currently without astral characters support.
function isPunctChar(ch) {
  return ucmicro__namespace.P.test(ch) || ucmicro__namespace.S.test(ch);
}

// Markdown ASCII punctuation characters.
//
// !, ", #, $, %, &, ', (, ), *, +, ,, -, ., /, :, ;, <, =, >, ?, @, [, \, ], ^, _, `, {, |, }, or ~
// http://spec.commonmark.org/0.15/#ascii-punctuation-character
//
// Don't confuse with unicode punctuation !!! It lacks some chars in ascii range.
//
function isMdAsciiPunct(ch) {
  switch (ch) {
    case 0x21 /* ! */:
    case 0x22 /* " */:
    case 0x23 /* # */:
    case 0x24 /* $ */:
    case 0x25 /* % */:
    case 0x26 /* & */:
    case 0x27 /* ' */:
    case 0x28 /* ( */:
    case 0x29 /* ) */:
    case 0x2A /* * */:
    case 0x2B /* + */:
    case 0x2C /* , */:
    case 0x2D /* - */:
    case 0x2E /* . */:
    case 0x2F /* / */:
    case 0x3A /* : */:
    case 0x3B /* ; */:
    case 0x3C /* < */:
    case 0x3D /* = */:
    case 0x3E /* > */:
    case 0x3F /* ? */:
    case 0x40 /* @ */:
    case 0x5B /* [ */:
    case 0x5C /* \ */:
    case 0x5D /* ] */:
    case 0x5E /* ^ */:
    case 0x5F /* _ */:
    case 0x60 /* ` */:
    case 0x7B /* { */:
    case 0x7C /* | */:
    case 0x7D /* } */:
    case 0x7E /* ~ */:
      return true;
    default:
      return false;
  }
}

// Hepler to unify [reference labels].
//
function normalizeReference(str) {
  // Trim and collapse whitespace
  //
  str = str.trim().replace(/\s+/g, ' ');

  // In node v10 'ẞ'.toLowerCase() === 'Ṿ', which is presumed to be a bug
  // fixed in v12 (couldn't find any details).
  //
  // So treat this one as a special case
  // (remove this when node v10 is no longer supported).
  //
  if ('ẞ'.toLowerCase() === 'Ṿ') {
    str = str.replace(/ẞ/g, 'ß');
  }

  // .toLowerCase().toUpperCase() should get rid of all differences
  // between letter variants.
  //
  // Simple .toLowerCase() doesn't normalize 125 code points correctly,
  // and .toUpperCase doesn't normalize 6 of them (list of exceptions:
  // İ, ϴ, ẞ, Ω, K, Å - those are already uppercased, but have differently
  // uppercased versions).
  //
  // Here's an example showing how it happens. Lets take greek letter omega:
  // uppercase U+0398 (Θ), U+03f4 (ϴ) and lowercase U+03b8 (θ), U+03d1 (ϑ)
  //
  // Unicode entries:
  // 0398;GREEK CAPITAL LETTER THETA;Lu;0;L;;;;;N;;;;03B8;
  // 03B8;GREEK SMALL LETTER THETA;Ll;0;L;;;;;N;;;0398;;0398
  // 03D1;GREEK THETA SYMBOL;Ll;0;L;<compat> 03B8;;;;N;GREEK SMALL LETTER SCRIPT THETA;;0398;;0398
  // 03F4;GREEK CAPITAL THETA SYMBOL;Lu;0;L;<compat> 0398;;;;N;;;;03B8;
  //
  // Case-insensitive comparison should treat all of them as equivalent.
  //
  // But .toLowerCase() doesn't change ϑ (it's already lowercase),
  // and .toUpperCase() doesn't change ϴ (already uppercase).
  //
  // Applying first lower then upper case normalizes any character:
  // '\u0398\u03f4\u03b8\u03d1'.toLowerCase().toUpperCase() === '\u0398\u0398\u0398\u0398'
  //
  // Note: this is equivalent to unicode case folding; unicode normalization
  // is a different step that is not required here.
  //
  // Final result should be uppercased, because it's later stored in an object
  // (this avoid a conflict with Object.prototype members,
  // most notably, `__proto__`)
  //
  return str.toLowerCase().toUpperCase();
}

// Re-export libraries commonly used in both markdown-it and its plugins,
// so plugins won't have to depend on them explicitly, which reduces their
// bundled size (e.g. a browser build).
//
const lib = {
  mdurl: mdurl__namespace,
  ucmicro: ucmicro__namespace
};

var utils = /*#__PURE__*/Object.freeze({
  __proto__: null,
  arrayReplaceAt: arrayReplaceAt,
  assign: assign,
  escapeHtml: escapeHtml,
  escapeRE: escapeRE,
  fromCodePoint: fromCodePoint,
  has: has,
  isMdAsciiPunct: isMdAsciiPunct,
  isPunctChar: isPunctChar,
  isSpace: isSpace,
  isString: isString,
  isValidEntityCode: isValidEntityCode,
  isWhiteSpace: isWhiteSpace,
  lib: lib,
  normalizeReference: normalizeReference,
  unescapeAll: unescapeAll,
  unescapeMd: unescapeMd
});

// Parse link label
//
// this function assumes that first character ("[") already matches;
// returns the end of the label
//

function parseLinkLabel(state, start, disableNested) {
  let level, found, marker, prevPos;
  const max = state.posMax;
  const oldPos = state.pos;
  state.pos = start + 1;
  level = 1;
  while (state.pos < max) {
    marker = state.src.charCodeAt(state.pos);
    if (marker === 0x5D /* ] */) {
      level--;
      if (level === 0) {
        found = true;
        break;
      }
    }
    prevPos = state.pos;
    state.md.inline.skipToken(state);
    if (marker === 0x5B /* [ */) {
      if (prevPos === state.pos - 1) {
        // increase level if we find text `[`, which is not a part of any token
        level++;
      } else if (disableNested) {
        state.pos = oldPos;
        return -1;
      }
    }
  }
  let labelEnd = -1;
  if (found) {
    labelEnd = state.pos;
  }

  // restore old state
  state.pos = oldPos;
  return labelEnd;
}

// Parse link destination
//

function parseLinkDestination(str, start, max) {
  let code;
  let pos = start;
  const result = {
    ok: false,
    pos: 0,
    str: ''
  };
  if (str.charCodeAt(pos) === 0x3C /* < */) {
    pos++;
    while (pos < max) {
      code = str.charCodeAt(pos);
      if (code === 0x0A /* \n */) {
        return result;
      }
      if (code === 0x3C /* < */) {
        return result;
      }
      if (code === 0x3E /* > */) {
        result.pos = pos + 1;
        result.str = unescapeAll(str.slice(start + 1, pos));
        result.ok = true;
        return result;
      }
      if (code === 0x5C /* \ */ && pos + 1 < max) {
        pos += 2;
        continue;
      }
      pos++;
    }

    // no closing '>'
    return result;
  }

  // this should be ... } else { ... branch

  let level = 0;
  while (pos < max) {
    code = str.charCodeAt(pos);
    if (code === 0x20) {
      break;
    }

    // ascii control characters
    if (code < 0x20 || code === 0x7F) {
      break;
    }
    if (code === 0x5C /* \ */ && pos + 1 < max) {
      if (str.charCodeAt(pos + 1) === 0x20) {
        break;
      }
      pos += 2;
      continue;
    }
    if (code === 0x28 /* ( */) {
      level++;
      if (level > 32) {
        return result;
      }
    }
    if (code === 0x29 /* ) */) {
      if (level === 0) {
        break;
      }
      level--;
    }
    pos++;
  }
  if (start === pos) {
    return result;
  }
  if (level !== 0) {
    return result;
  }
  result.str = unescapeAll(str.slice(start, pos));
  result.pos = pos;
  result.ok = true;
  return result;
}

// Parse link title
//


// Parse link title within `str` in [start, max] range,
// or continue previous parsing if `prev_state` is defined (equal to result of last execution).
//
function parseLinkTitle(str, start, max, prev_state) {
  let code;
  let pos = start;
  const state = {
    // if `true`, this is a valid link title
    ok: false,
    // if `true`, this link can be continued on the next line
    can_continue: false,
    // if `ok`, it's the position of the first character after the closing marker
    pos: 0,
    // if `ok`, it's the unescaped title
    str: '',
    // expected closing marker character code
    marker: 0
  };
  if (prev_state) {
    // this is a continuation of a previous parseLinkTitle call on the next line,
    // used in reference links only
    state.str = prev_state.str;
    state.marker = prev_state.marker;
  } else {
    if (pos >= max) {
      return state;
    }
    let marker = str.charCodeAt(pos);
    if (marker !== 0x22 /* " */ && marker !== 0x27 /* ' */ && marker !== 0x28 /* ( */) {
      return state;
    }
    start++;
    pos++;

    // if opening marker is "(", switch it to closing marker ")"
    if (marker === 0x28) {
      marker = 0x29;
    }
    state.marker = marker;
  }
  while (pos < max) {
    code = str.charCodeAt(pos);
    if (code === state.marker) {
      state.pos = pos + 1;
      state.str += unescapeAll(str.slice(start, pos));
      state.ok = true;
      return state;
    } else if (code === 0x28 /* ( */ && state.marker === 0x29 /* ) */) {
      return state;
    } else if (code === 0x5C /* \ */ && pos + 1 < max) {
      pos++;
    }
    pos++;
  }

  // no closing marker found, but this link title may continue on the next line (for references)
  state.can_continue = true;
  state.str += unescapeAll(str.slice(start, pos));
  return state;
}

// Just a shortcut for bulk export

var helpers = /*#__PURE__*/Object.freeze({
  __proto__: null,
  parseLinkDestination: parseLinkDestination,
  parseLinkLabel: parseLinkLabel,
  parseLinkTitle: parseLinkTitle
});

/**
 * class Renderer
 *
 * Generates HTML from parsed token stream. Each instance has independent
 * copy of rules. Those can be rewritten with ease. Also, you can add new
 * rules if you create plugin and adds new token types.
 **/

const default_rules = {};
default_rules.code_inline = function (tokens, idx, options, env, slf) {
  const token = tokens[idx];
  return '<code' + slf.renderAttrs(token) + '>' + escapeHtml(token.content) + '</code>';
};
default_rules.code_block = function (tokens, idx, options, env, slf) {
  const token = tokens[idx];
  return '<pre' + slf.renderAttrs(token) + '><code>' + escapeHtml(tokens[idx].content) + '</code></pre>\n';
};
default_rules.fence = function (tokens, idx, options, env, slf) {
  const token = tokens[idx];
  const info = token.info ? unescapeAll(token.info).trim() : '';
  let langName = '';
  let langAttrs = '';
  if (info) {
    const arr = info.split(/(\s+)/g);
    langName = arr[0];
    langAttrs = arr.slice(2).join('');
  }
  let highlighted;
  if (options.highlight) {
    highlighted = options.highlight(token.content, langName, langAttrs) || escapeHtml(token.content);
  } else {
    highlighted = escapeHtml(token.content);
  }
  if (highlighted.indexOf('<pre') === 0) {
    return highlighted + '\n';
  }

  // If language exists, inject class gently, without modifying original token.
  // May be, one day we will add .deepClone() for token and simplify this part, but
  // now we prefer to keep things local.
  if (info) {
    const i = token.attrIndex('class');
    const tmpAttrs = token.attrs ? token.attrs.slice() : [];
    if (i < 0) {
      tmpAttrs.push(['class', options.langPrefix + langName]);
    } else {
      tmpAttrs[i] = tmpAttrs[i].slice();
      tmpAttrs[i][1] += ' ' + options.langPrefix + langName;
    }

    // Fake token just to render attributes
    const tmpToken = {
      attrs: tmpAttrs
    };
    return `<pre><code${slf.renderAttrs(tmpToken)}>${highlighted}</code></pre>\n`;
  }
  return `<pre><code${slf.renderAttrs(token)}>${highlighted}</code></pre>\n`;
};
default_rules.image = function (tokens, idx, options, env, slf) {
  const token = tokens[idx];

  // "alt" attr MUST be set, even if empty. Because it's mandatory and
  // should be placed on proper position for tests.
  //
  // Replace content with actual value

  token.attrs[token.attrIndex('alt')][1] = slf.renderInlineAsText(token.children, options, env);
  return slf.renderToken(tokens, idx, options);
};
default_rules.hardbreak = function (tokens, idx, options /*, env */) {
  return options.xhtmlOut ? '<br />\n' : '<br>\n';
};
default_rules.softbreak = function (tokens, idx, options /*, env */) {
  return options.breaks ? options.xhtmlOut ? '<br />\n' : '<br>\n' : '\n';
};
default_rules.text = function (tokens, idx /*, options, env */) {
  return escapeHtml(tokens[idx].content);
};
default_rules.html_block = function (tokens, idx /*, options, env */) {
  return tokens[idx].content;
};
default_rules.html_inline = function (tokens, idx /*, options, env */) {
  return tokens[idx].content;
};

/**
 * new Renderer()
 *
 * Creates new [[Renderer]] instance and fill [[Renderer#rules]] with defaults.
 **/
function Renderer() {
  /**
   * Renderer#rules -> Object
   *
   * Contains render rules for tokens. Can be updated and extended.
   *
   * ##### Example
   *
   * ```javascript
   * var md = require('markdown-it')();
   *
   * md.renderer.rules.strong_open  = function () { return '<b>'; };
   * md.renderer.rules.strong_close = function () { return '</b>'; };
   *
   * var result = md.renderInline(...);
   * ```
   *
   * Each rule is called as independent static function with fixed signature:
   *
   * ```javascript
   * function my_token_render(tokens, idx, options, env, renderer) {
   *   // ...
   *   return renderedHTML;
   * }
   * ```
   *
   * See [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.mjs)
   * for more details and examples.
   **/
  this.rules = assign({}, default_rules);
}

/**
 * Renderer.renderAttrs(token) -> String
 *
 * Render token attributes to string.
 **/
Renderer.prototype.renderAttrs = function renderAttrs(token) {
  let i, l, result;
  if (!token.attrs) {
    return '';
  }
  result = '';
  for (i = 0, l = token.attrs.length; i < l; i++) {
    result += ' ' + escapeHtml(token.attrs[i][0]) + '="' + escapeHtml(token.attrs[i][1]) + '"';
  }
  return result;
};

/**
 * Renderer.renderToken(tokens, idx, options) -> String
 * - tokens (Array): list of tokens
 * - idx (Numbed): token index to render
 * - options (Object): params of parser instance
 *
 * Default token renderer. Can be overriden by custom function
 * in [[Renderer#rules]].
 **/
Renderer.prototype.renderToken = function renderToken(tokens, idx, options) {
  const token = tokens[idx];
  let result = '';

  // Tight list paragraphs
  if (token.hidden) {
    return '';
  }

  // Insert a newline between hidden paragraph and subsequent opening
  // block-level tag.
  //
  // For example, here we should insert a newline before blockquote:
  //  - a
  //    >
  //
  if (token.block && token.nesting !== -1 && idx && tokens[idx - 1].hidden) {
    result += '\n';
  }

  // Add token name, e.g. `<img`
  result += (token.nesting === -1 ? '</' : '<') + token.tag;

  // Encode attributes, e.g. `<img src="foo"`
  result += this.renderAttrs(token);

  // Add a slash for self-closing tags, e.g. `<img src="foo" /`
  if (token.nesting === 0 && options.xhtmlOut) {
    result += ' /';
  }

  // Check if we need to add a newline after this tag
  let needLf = false;
  if (token.block) {
    needLf = true;
    if (token.nesting === 1) {
      if (idx + 1 < tokens.length) {
        const nextToken = tokens[idx + 1];
        if (nextToken.type === 'inline' || nextToken.hidden) {
          // Block-level tag containing an inline tag.
          //
          needLf = false;
        } else if (nextToken.nesting === -1 && nextToken.tag === token.tag) {
          // Opening tag + closing tag of the same type. E.g. `<li></li>`.
          //
          needLf = false;
        }
      }
    }
  }
  result += needLf ? '>\n' : '>';
  return result;
};

/**
 * Renderer.renderInline(tokens, options, env) -> String
 * - tokens (Array): list on block tokens to render
 * - options (Object): params of parser instance
 * - env (Object): additional data from parsed input (references, for example)
 *
 * The same as [[Renderer.render]], but for single token of `inline` type.
 **/
Renderer.prototype.renderInline = function (tokens, options, env) {
  let result = '';
  const rules = this.rules;
  for (let i = 0, len = tokens.length; i < len; i++) {
    const type = tokens[i].type;
    if (typeof rules[type] !== 'undefined') {
      result += rules[type](tokens, i, options, env, this);
    } else {
      result += this.renderToken(tokens, i, options);
    }
  }
  return result;
};

/** internal
 * Renderer.renderInlineAsText(tokens, options, env) -> String
 * - tokens (Array): list on block tokens to render
 * - options (Object): params of parser instance
 * - env (Object): additional data from parsed input (references, for example)
 *
 * Special kludge for image `alt` attributes to conform CommonMark spec.
 * Don't try to use it! Spec requires to show `alt` content with stripped markup,
 * instead of simple escaping.
 **/
Renderer.prototype.renderInlineAsText = function (tokens, options, env) {
  let result = '';
  for (let i = 0, len = tokens.length; i < len; i++) {
    switch (tokens[i].type) {
      case 'text':
        result += tokens[i].content;
        break;
      case 'image':
        result += this.renderInlineAsText(tokens[i].children, options, env);
        break;
      case 'html_inline':
      case 'html_block':
        result += tokens[i].content;
        break;
      case 'softbreak':
      case 'hardbreak':
        result += '\n';
        break;
      // all other tokens are skipped
    }
  }
  return result;
};

/**
 * Renderer.render(tokens, options, env) -> String
 * - tokens (Array): list on block tokens to render
 * - options (Object): params of parser instance
 * - env (Object): additional data from parsed input (references, for example)
 *
 * Takes token stream and generates HTML. Probably, you will never need to call
 * this method directly.
 **/
Renderer.prototype.render = function (tokens, options, env) {
  let result = '';
  const rules = this.rules;
  for (let i = 0, len = tokens.length; i < len; i++) {
    const type = tokens[i].type;
    if (type === 'inline') {
      result += this.renderInline(tokens[i].children, options, env);
    } else if (typeof rules[type] !== 'undefined') {
      result += rules[type](tokens, i, options, env, this);
    } else {
      result += this.renderToken(tokens, i, options, env);
    }
  }
  return result;
};

/**
 * class Ruler
 *
 * Helper class, used by [[MarkdownIt#core]], [[MarkdownIt#block]] and
 * [[MarkdownIt#inline]] to manage sequences of functions (rules):
 *
 * - keep rules in defined order
 * - assign the name to each rule
 * - enable/disable rules
 * - add/replace rules
 * - allow assign rules to additional named chains (in the same)
 * - cacheing lists of active rules
 *
 * You will not need use this class directly until write plugins. For simple
 * rules control use [[MarkdownIt.disable]], [[MarkdownIt.enable]] and
 * [[MarkdownIt.use]].
 **/

/**
 * new Ruler()
 **/
function Ruler() {
  // List of added rules. Each element is:
  //
  // {
  //   name: XXX,
  //   enabled: Boolean,
  //   fn: Function(),
  //   alt: [ name2, name3 ]
  // }
  //
  this.__rules__ = [];

  // Cached rule chains.
  //
  // First level - chain name, '' for default.
  // Second level - diginal anchor for fast filtering by charcodes.
  //
  this.__cache__ = null;
}

// Helper methods, should not be used directly

// Find rule index by name
//
Ruler.prototype.__find__ = function (name) {
  for (let i = 0; i < this.__rules__.length; i++) {
    if (this.__rules__[i].name === name) {
      return i;
    }
  }
  return -1;
};

// Build rules lookup cache
//
Ruler.prototype.__compile__ = function () {
  const self = this;
  const chains = [''];

  // collect unique names
  self.__rules__.forEach(function (rule) {
    if (!rule.enabled) {
      return;
    }
    rule.alt.forEach(function (altName) {
      if (chains.indexOf(altName) < 0) {
        chains.push(altName);
      }
    });
  });
  self.__cache__ = {};
  chains.forEach(function (chain) {
    self.__cache__[chain] = [];
    self.__rules__.forEach(function (rule) {
      if (!rule.enabled) {
        return;
      }
      if (chain && rule.alt.indexOf(chain) < 0) {
        return;
      }
      self.__cache__[chain].push(rule.fn);
    });
  });
};

/**
 * Ruler.at(name, fn [, options])
 * - name (String): rule name to replace.
 * - fn (Function): new rule function.
 * - options (Object): new rule options (not mandatory).
 *
 * Replace rule by name with new function & options. Throws error if name not
 * found.
 *
 * ##### Options:
 *
 * - __alt__ - array with names of "alternate" chains.
 *
 * ##### Example
 *
 * Replace existing typographer replacement rule with new one:
 *
 * ```javascript
 * var md = require('markdown-it')();
 *
 * md.core.ruler.at('replacements', function replace(state) {
 *   //...
 * });
 * ```
 **/
Ruler.prototype.at = function (name, fn, options) {
  const index = this.__find__(name);
  const opt = options || {};
  if (index === -1) {
    throw new Error('Parser rule not found: ' + name);
  }
  this.__rules__[index].fn = fn;
  this.__rules__[index].alt = opt.alt || [];
  this.__cache__ = null;
};

/**
 * Ruler.before(beforeName, ruleName, fn [, options])
 * - beforeName (String): new rule will be added before this one.
 * - ruleName (String): name of added rule.
 * - fn (Function): rule function.
 * - options (Object): rule options (not mandatory).
 *
 * Add new rule to chain before one with given name. See also
 * [[Ruler.after]], [[Ruler.push]].
 *
 * ##### Options:
 *
 * - __alt__ - array with names of "alternate" chains.
 *
 * ##### Example
 *
 * ```javascript
 * var md = require('markdown-it')();
 *
 * md.block.ruler.before('paragraph', 'my_rule', function replace(state) {
 *   //...
 * });
 * ```
 **/
Ruler.prototype.before = function (beforeName, ruleName, fn, options) {
  const index = this.__find__(beforeName);
  const opt = options || {};
  if (index === -1) {
    throw new Error('Parser rule not found: ' + beforeName);
  }
  this.__rules__.splice(index, 0, {
    name: ruleName,
    enabled: true,
    fn,
    alt: opt.alt || []
  });
  this.__cache__ = null;
};

/**
 * Ruler.after(afterName, ruleName, fn [, options])
 * - afterName (String): new rule will be added after this one.
 * - ruleName (String): name of added rule.
 * - fn (Function): rule function.
 * - options (Object): rule options (not mandatory).
 *
 * Add new rule to chain after one with given name. See also
 * [[Ruler.before]], [[Ruler.push]].
 *
 * ##### Options:
 *
 * - __alt__ - array with names of "alternate" chains.
 *
 * ##### Example
 *
 * ```javascript
 * var md = require('markdown-it')();
 *
 * md.inline.ruler.after('text', 'my_rule', function replace(state) {
 *   //...
 * });
 * ```
 **/
Ruler.prototype.after = function (afterName, ruleName, fn, options) {
  const index = this.__find__(afterName);
  const opt = options || {};
  if (index === -1) {
    throw new Error('Parser rule not found: ' + afterName);
  }
  this.__rules__.splice(index + 1, 0, {
    name: ruleName,
    enabled: true,
    fn,
    alt: opt.alt || []
  });
  this.__cache__ = null;
};

/**
 * Ruler.push(ruleName, fn [, options])
 * - ruleName (String): name of added rule.
 * - fn (Function): rule function.
 * - options (Object): rule options (not mandatory).
 *
 * Push new rule to the end of chain. See also
 * [[Ruler.before]], [[Ruler.after]].
 *
 * ##### Options:
 *
 * - __alt__ - array with names of "alternate" chains.
 *
 * ##### Example
 *
 * ```javascript
 * var md = require('markdown-it')();
 *
 * md.core.ruler.push('my_rule', function replace(state) {
 *   //...
 * });
 * ```
 **/
Ruler.prototype.push = function (ruleName, fn, options) {
  const opt = options || {};
  this.__rules__.push({
    name: ruleName,
    enabled: true,
    fn,
    alt: opt.alt || []
  });
  this.__cache__ = null;
};

/**
 * Ruler.enable(list [, ignoreInvalid]) -> Array
 * - list (String|Array): list of rule names to enable.
 * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
 *
 * Enable rules with given names. If any rule name not found - throw Error.
 * Errors can be disabled by second param.
 *
 * Returns list of found rule names (if no exception happened).
 *
 * See also [[Ruler.disable]], [[Ruler.enableOnly]].
 **/
Ruler.prototype.enable = function (list, ignoreInvalid) {
  if (!Array.isArray(list)) {
    list = [list];
  }
  const result = [];

  // Search by name and enable
  list.forEach(function (name) {
    const idx = this.__find__(name);
    if (idx < 0) {
      if (ignoreInvalid) {
        return;
      }
      throw new Error('Rules manager: invalid rule name ' + name);
    }
    this.__rules__[idx].enabled = true;
    result.push(name);
  }, this);
  this.__cache__ = null;
  return result;
};

/**
 * Ruler.enableOnly(list [, ignoreInvalid])
 * - list (String|Array): list of rule names to enable (whitelist).
 * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
 *
 * Enable rules with given names, and disable everything else. If any rule name
 * not found - throw Error. Errors can be disabled by second param.
 *
 * See also [[Ruler.disable]], [[Ruler.enable]].
 **/
Ruler.prototype.enableOnly = function (list, ignoreInvalid) {
  if (!Array.isArray(list)) {
    list = [list];
  }
  this.__rules__.forEach(function (rule) {
    rule.enabled = false;
  });
  this.enable(list, ignoreInvalid);
};

/**
 * Ruler.disable(list [, ignoreInvalid]) -> Array
 * - list (String|Array): list of rule names to disable.
 * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
 *
 * Disable rules with given names. If any rule name not found - throw Error.
 * Errors can be disabled by second param.
 *
 * Returns list of found rule names (if no exception happened).
 *
 * See also [[Ruler.enable]], [[Ruler.enableOnly]].
 **/
Ruler.prototype.disable = function (list, ignoreInvalid) {
  if (!Array.isArray(list)) {
    list = [list];
  }
  const result = [];

  // Search by name and disable
  list.forEach(function (name) {
    const idx = this.__find__(name);
    if (idx < 0) {
      if (ignoreInvalid) {
        return;
      }
      throw new Error('Rules manager: invalid rule name ' + name);
    }
    this.__rules__[idx].enabled = false;
    result.push(name);
  }, this);
  this.__cache__ = null;
  return result;
};

/**
 * Ruler.getRules(chainName) -> Array
 *
 * Return array of active functions (rules) for given chain name. It analyzes
 * rules configuration, compiles caches if not exists and returns result.
 *
 * Default chain name is `''` (empty string). It can't be skipped. That's
 * done intentionally, to keep signature monomorphic for high speed.
 **/
Ruler.prototype.getRules = function (chainName) {
  if (this.__cache__ === null) {
    this.__compile__();
  }

  // Chain can be empty, if rules disabled. But we still have to return Array.
  return this.__cache__[chainName] || [];
};

// Token class

/**
 * class Token
 **/

/**
 * new Token(type, tag, nesting)
 *
 * Create new token and fill passed properties.
 **/
function Token(type, tag, nesting) {
  /**
   * Token#type -> String
   *
   * Type of the token (string, e.g. "paragraph_open")
   **/
  this.type = type;

  /**
   * Token#tag -> String
   *
   * html tag name, e.g. "p"
   **/
  this.tag = tag;

  /**
   * Token#attrs -> Array
   *
   * Html attributes. Format: `[ [ name1, value1 ], [ name2, value2 ] ]`
   **/
  this.attrs = null;

  /**
   * Token#map -> Array
   *
   * Source map info. Format: `[ line_begin, line_end ]`
   **/
  this.map = null;

  /**
   * Token#nesting -> Number
   *
   * Level change (number in {-1, 0, 1} set), where:
   *
   * -  `1` means the tag is opening
   * -  `0` means the tag is self-closing
   * - `-1` means the tag is closing
   **/
  this.nesting = nesting;

  /**
   * Token#level -> Number
   *
   * nesting level, the same as `state.level`
   **/
  this.level = 0;

  /**
   * Token#children -> Array
   *
   * An array of child nodes (inline and img tokens)
   **/
  this.children = null;

  /**
   * Token#content -> String
   *
   * In a case of self-closing tag (code, html, fence, etc.),
   * it has contents of this tag.
   **/
  this.content = '';

  /**
   * Token#markup -> String
   *
   * '*' or '_' for emphasis, fence string for fence, etc.
   **/
  this.markup = '';

  /**
   * Token#info -> String
   *
   * Additional information:
   *
   * - Info string for "fence" tokens
   * - The value "auto" for autolink "link_open" and "link_close" tokens
   * - The string value of the item marker for ordered-list "list_item_open" tokens
   **/
  this.info = '';

  /**
   * Token#meta -> Object
   *
   * A place for plugins to store an arbitrary data
   **/
  this.meta = null;

  /**
   * Token#block -> Boolean
   *
   * True for block-level tokens, false for inline tokens.
   * Used in renderer to calculate line breaks
   **/
  this.block = false;

  /**
   * Token#hidden -> Boolean
   *
   * If it's true, ignore this element when rendering. Used for tight lists
   * to hide paragraphs.
   **/
  this.hidden = false;
}

/**
 * Token.attrIndex(name) -> Number
 *
 * Search attribute index by name.
 **/
Token.prototype.attrIndex = function attrIndex(name) {
  if (!this.attrs) {
    return -1;
  }
  const attrs = this.attrs;
  for (let i = 0, len = attrs.length; i < len; i++) {
    if (attrs[i][0] === name) {
      return i;
    }
  }
  return -1;
};

/**
 * Token.attrPush(attrData)
 *
 * Add `[ name, value ]` attribute to list. Init attrs if necessary
 **/
Token.prototype.attrPush = function attrPush(attrData) {
  if (this.attrs) {
    this.attrs.push(attrData);
  } else {
    this.attrs = [attrData];
  }
};

/**
 * Token.attrSet(name, value)
 *
 * Set `name` attribute to `value`. Override old value if exists.
 **/
Token.prototype.attrSet = function attrSet(name, value) {
  const idx = this.attrIndex(name);
  const attrData = [name, value];
  if (idx < 0) {
    this.attrPush(attrData);
  } else {
    this.attrs[idx] = attrData;
  }
};

/**
 * Token.attrGet(name)
 *
 * Get the value of attribute `name`, or null if it does not exist.
 **/
Token.prototype.attrGet = function attrGet(name) {
  const idx = this.attrIndex(name);
  let value = null;
  if (idx >= 0) {
    value = this.attrs[idx][1];
  }
  return value;
};

/**
 * Token.attrJoin(name, value)
 *
 * Join value to existing attribute via space. Or create new attribute if not
 * exists. Useful to operate with token classes.
 **/
Token.prototype.attrJoin = function attrJoin(name, value) {
  const idx = this.attrIndex(name);
  if (idx < 0) {
    this.attrPush([name, value]);
  } else {
    this.attrs[idx][1] = this.attrs[idx][1] + ' ' + value;
  }
};

// Core state object
//

function StateCore(src, md, env) {
  this.src = src;
  this.env = env;
  this.tokens = [];
  this.inlineMode = false;
  this.md = md; // link to parser instance
}

// re-export Token class to use in core rules
StateCore.prototype.Token = Token;

// Normalize input string

// https://spec.commonmark.org/0.29/#line-ending
const NEWLINES_RE = /\r\n?|\n/g;
const NULL_RE = /\0/g;
function normalize(state) {
  let str;

  // Normalize newlines
  str = state.src.replace(NEWLINES_RE, '\n');

  // Replace NULL characters
  str = str.replace(NULL_RE, '\uFFFD');
  state.src = str;
}

function block(state) {
  let token;
  if (state.inlineMode) {
    token = new state.Token('inline', '', 0);
    token.content = state.src;
    token.map = [0, 1];
    token.children = [];
    state.tokens.push(token);
  } else {
    state.md.block.parse(state.src, state.md, state.env, state.tokens);
  }
}

function inline(state) {
  const tokens = state.tokens;

  // Parse inlines
  for (let i = 0, l = tokens.length; i < l; i++) {
    const tok = tokens[i];
    if (tok.type === 'inline') {
      state.md.inline.parse(tok.content, state.md, state.env, tok.children);
    }
  }
}

// Replace link-like texts with link nodes.
//
// Currently restricted by `md.validateLink()` to http/https/ftp
//

function isLinkOpen$1(str) {
  return /^<a[>\s]/i.test(str);
}
function isLinkClose$1(str) {
  return /^<\/a\s*>/i.test(str);
}
function linkify$1(state) {
  const blockTokens = state.tokens;
  if (!state.md.options.linkify) {
    return;
  }
  for (let j = 0, l = blockTokens.length; j < l; j++) {
    if (blockTokens[j].type !== 'inline' || !state.md.linkify.pretest(blockTokens[j].content)) {
      continue;
    }
    let tokens = blockTokens[j].children;
    let htmlLinkLevel = 0;

    // We scan from the end, to keep position when new tags added.
    // Use reversed logic in links start/end match
    for (let i = tokens.length - 1; i >= 0; i--) {
      const currentToken = tokens[i];

      // Skip content of markdown links
      if (currentToken.type === 'link_close') {
        i--;
        while (tokens[i].level !== currentToken.level && tokens[i].type !== 'link_open') {
          i--;
        }
        continue;
      }

      // Skip content of html tag links
      if (currentToken.type === 'html_inline') {
        if (isLinkOpen$1(currentToken.content) && htmlLinkLevel > 0) {
          htmlLinkLevel--;
        }
        if (isLinkClose$1(currentToken.content)) {
          htmlLinkLevel++;
        }
      }
      if (htmlLinkLevel > 0) {
        continue;
      }
      if (currentToken.type === 'text' && state.md.linkify.test(currentToken.content)) {
        const text = currentToken.content;
        let links = state.md.linkify.match(text);

        // Now split string to nodes
        const nodes = [];
        let level = currentToken.level;
        let lastPos = 0;

        // forbid escape sequence at the start of the string,
        // this avoids http\://example.com/ from being linkified as
        // http:<a href="//example.com/">//example.com/</a>
        if (links.length > 0 && links[0].index === 0 && i > 0 && tokens[i - 1].type === 'text_special') {
          links = links.slice(1);
        }
        for (let ln = 0; ln < links.length; ln++) {
          const url = links[ln].url;
          const fullUrl = state.md.normalizeLink(url);
          if (!state.md.validateLink(fullUrl)) {
            continue;
          }
          let urlText = links[ln].text;

          // Linkifier might send raw hostnames like "example.com", where url
          // starts with domain name. So we prepend http:// in those cases,
          // and remove it afterwards.
          //
          if (!links[ln].schema) {
            urlText = state.md.normalizeLinkText('http://' + urlText).replace(/^http:\/\//, '');
          } else if (links[ln].schema === 'mailto:' && !/^mailto:/i.test(urlText)) {
            urlText = state.md.normalizeLinkText('mailto:' + urlText).replace(/^mailto:/, '');
          } else {
            urlText = state.md.normalizeLinkText(urlText);
          }
          const pos = links[ln].index;
          if (pos > lastPos) {
            const token = new state.Token('text', '', 0);
            token.content = text.slice(lastPos, pos);
            token.level = level;
            nodes.push(token);
          }
          const token_o = new state.Token('link_open', 'a', 1);
          token_o.attrs = [['href', fullUrl]];
          token_o.level = level++;
          token_o.markup = 'linkify';
          token_o.info = 'auto';
          nodes.push(token_o);
          const token_t = new state.Token('text', '', 0);
          token_t.content = urlText;
          token_t.level = level;
          nodes.push(token_t);
          const token_c = new state.Token('link_close', 'a', -1);
          token_c.level = --level;
          token_c.markup = 'linkify';
          token_c.info = 'auto';
          nodes.push(token_c);
          lastPos = links[ln].lastIndex;
        }
        if (lastPos < text.length) {
          const token = new state.Token('text', '', 0);
          token.content = text.slice(lastPos);
          token.level = level;
          nodes.push(token);
        }

        // replace current node
        blockTokens[j].children = tokens = arrayReplaceAt(tokens, i, nodes);
      }
    }
  }
}

// Simple typographic replacements
//
// (c) (C) → ©
// (tm) (TM) → ™
// (r) (R) → ®
// +- → ±
// ... → … (also ?.... → ?.., !.... → !..)
// ???????? → ???, !!!!! → !!!, `,,` → `,`
// -- → &ndash;, --- → &mdash;
//

// TODO:
// - fractionals 1/2, 1/4, 3/4 -> ½, ¼, ¾
// - multiplications 2 x 4 -> 2 × 4

const RARE_RE = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/;

// Workaround for phantomjs - need regex without /g flag,
// or root check will fail every second time
const SCOPED_ABBR_TEST_RE = /\((c|tm|r)\)/i;
const SCOPED_ABBR_RE = /\((c|tm|r)\)/ig;
const SCOPED_ABBR = {
  c: '©',
  r: '®',
  tm: '™'
};
function replaceFn(match, name) {
  return SCOPED_ABBR[name.toLowerCase()];
}
function replace_scoped(inlineTokens) {
  let inside_autolink = 0;
  for (let i = inlineTokens.length - 1; i >= 0; i--) {
    const token = inlineTokens[i];
    if (token.type === 'text' && !inside_autolink) {
      token.content = token.content.replace(SCOPED_ABBR_RE, replaceFn);
    }
    if (token.type === 'link_open' && token.info === 'auto') {
      inside_autolink--;
    }
    if (token.type === 'link_close' && token.info === 'auto') {
      inside_autolink++;
    }
  }
}
function replace_rare(inlineTokens) {
  let inside_autolink = 0;
  for (let i = inlineTokens.length - 1; i >= 0; i--) {
    const token = inlineTokens[i];
    if (token.type === 'text' && !inside_autolink) {
      if (RARE_RE.test(token.content)) {
        token.content = token.content.replace(/\+-/g, '±')
        // .., ..., ....... -> …
        // but ?..... & !..... -> ?.. & !..
        .replace(/\.{2,}/g, '…').replace(/([?!])…/g, '$1..').replace(/([?!]){4,}/g, '$1$1$1').replace(/,{2,}/g, ',')
        // em-dash
        .replace(/(^|[^-])---(?=[^-]|$)/mg, '$1\u2014')
        // en-dash
        .replace(/(^|\s)--(?=\s|$)/mg, '$1\u2013').replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, '$1\u2013');
      }
    }
    if (token.type === 'link_open' && token.info === 'auto') {
      inside_autolink--;
    }
    if (token.type === 'link_close' && token.info === 'auto') {
      inside_autolink++;
    }
  }
}
function replace(state) {
  let blkIdx;
  if (!state.md.options.typographer) {
    return;
  }
  for (blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {
    if (state.tokens[blkIdx].type !== 'inline') {
      continue;
    }
    if (SCOPED_ABBR_TEST_RE.test(state.tokens[blkIdx].content)) {
      replace_scoped(state.tokens[blkIdx].children);
    }
    if (RARE_RE.test(state.tokens[blkIdx].content)) {
      replace_rare(state.tokens[blkIdx].children);
    }
  }
}

// Convert straight quotation marks to typographic ones
//

const QUOTE_TEST_RE = /['"]/;
const QUOTE_RE = /['"]/g;
const APOSTROPHE = '\u2019'; /* ’ */

function replaceAt(str, index, ch) {
  return str.slice(0, index) + ch + str.slice(index + 1);
}
function process_inlines(tokens, state) {
  let j;
  const stack = [];
  for (let i = 0; i < tokens.length; i++) {
    const token = tokens[i];
    const thisLevel = tokens[i].level;
    for (j = stack.length - 1; j >= 0; j--) {
      if (stack[j].level <= thisLevel) {
        break;
      }
    }
    stack.length = j + 1;
    if (token.type !== 'text') {
      continue;
    }
    let text = token.content;
    let pos = 0;
    let max = text.length;

    /* eslint no-labels:0,block-scoped-var:0 */
    OUTER: while (pos < max) {
      QUOTE_RE.lastIndex = pos;
      const t = QUOTE_RE.exec(text);
      if (!t) {
        break;
      }
      let canOpen = true;
      let canClose = true;
      pos = t.index + 1;
      const isSingle = t[0] === "'";

      // Find previous character,
      // default to space if it's the beginning of the line
      //
      let lastChar = 0x20;
      if (t.index - 1 >= 0) {
        lastChar = text.charCodeAt(t.index - 1);
      } else {
        for (j = i - 1; j >= 0; j--) {
          if (tokens[j].type === 'softbreak' || tokens[j].type === 'hardbreak') break; // lastChar defaults to 0x20
          if (!tokens[j].content) continue; // should skip all tokens except 'text', 'html_inline' or 'code_inline'

          lastChar = tokens[j].content.charCodeAt(tokens[j].content.length - 1);
          break;
        }
      }

      // Find next character,
      // default to space if it's the end of the line
      //
      let nextChar = 0x20;
      if (pos < max) {
        nextChar = text.charCodeAt(pos);
      } else {
        for (j = i + 1; j < tokens.length; j++) {
          if (tokens[j].type === 'softbreak' || tokens[j].type === 'hardbreak') break; // nextChar defaults to 0x20
          if (!tokens[j].content) continue; // should skip all tokens except 'text', 'html_inline' or 'code_inline'

          nextChar = tokens[j].content.charCodeAt(0);
          break;
        }
      }
      const isLastPunctChar = isMdAsciiPunct(lastChar) || isPunctChar(String.fromCharCode(lastChar));
      const isNextPunctChar = isMdAsciiPunct(nextChar) || isPunctChar(String.fromCharCode(nextChar));
      const isLastWhiteSpace = isWhiteSpace(lastChar);
      const isNextWhiteSpace = isWhiteSpace(nextChar);
      if (isNextWhiteSpace) {
        canOpen = false;
      } else if (isNextPunctChar) {
        if (!(isLastWhiteSpace || isLastPunctChar)) {
          canOpen = false;
        }
      }
      if (isLastWhiteSpace) {
        canClose = false;
      } else if (isLastPunctChar) {
        if (!(isNextWhiteSpace || isNextPunctChar)) {
          canClose = false;
        }
      }
      if (nextChar === 0x22 /* " */ && t[0] === '"') {
        if (lastChar >= 0x30 /* 0 */ && lastChar <= 0x39 /* 9 */) {
          // special case: 1"" - count first quote as an inch
          canClose = canOpen = false;
        }
      }
      if (canOpen && canClose) {
        // Replace quotes in the middle of punctuation sequence, but not
        // in the middle of the words, i.e.:
        //
        // 1. foo " bar " baz - not replaced
        // 2. foo-"-bar-"-baz - replaced
        // 3. foo"bar"baz     - not replaced
        //
        canOpen = isLastPunctChar;
        canClose = isNextPunctChar;
      }
      if (!canOpen && !canClose) {
        // middle of word
        if (isSingle) {
          token.content = replaceAt(token.content, t.index, APOSTROPHE);
        }
        continue;
      }
      if (canClose) {
        // this could be a closing quote, rewind the stack to get a match
        for (j = stack.length - 1; j >= 0; j--) {
          let item = stack[j];
          if (stack[j].level < thisLevel) {
            break;
          }
          if (item.single === isSingle && stack[j].level === thisLevel) {
            item = stack[j];
            let openQuote;
            let closeQuote;
            if (isSingle) {
              openQuote = state.md.options.quotes[2];
              closeQuote = state.md.options.quotes[3];
            } else {
              openQuote = state.md.options.quotes[0];
              closeQuote = state.md.options.quotes[1];
            }

            // replace token.content *before* tokens[item.token].content,
            // because, if they are pointing at the same token, replaceAt
            // could mess up indices when quote length != 1
            token.content = replaceAt(token.content, t.index, closeQuote);
            tokens[item.token].content = replaceAt(tokens[item.token].content, item.pos, openQuote);
            pos += closeQuote.length - 1;
            if (item.token === i) {
              pos += openQuote.length - 1;
            }
            text = token.content;
            max = text.length;
            stack.length = j;
            continue OUTER;
          }
        }
      }
      if (canOpen) {
        stack.push({
          token: i,
          pos: t.index,
          single: isSingle,
          level: thisLevel
        });
      } else if (canClose && isSingle) {
        token.content = replaceAt(token.content, t.index, APOSTROPHE);
      }
    }
  }
}
function smartquotes(state) {
  /* eslint max-depth:0 */
  if (!state.md.options.typographer) {
    return;
  }
  for (let blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {
    if (state.tokens[blkIdx].type !== 'inline' || !QUOTE_TEST_RE.test(state.tokens[blkIdx].content)) {
      continue;
    }
    process_inlines(state.tokens[blkIdx].children, state);
  }
}

// Join raw text tokens with the rest of the text
//
// This is set as a separate rule to provide an opportunity for plugins
// to run text replacements after text join, but before escape join.
//
// For example, `\:)` shouldn't be replaced with an emoji.
//

function text_join(state) {
  let curr, last;
  const blockTokens = state.tokens;
  const l = blockTokens.length;
  for (let j = 0; j < l; j++) {
    if (blockTokens[j].type !== 'inline') continue;
    const tokens = blockTokens[j].children;
    const max = tokens.length;
    for (curr = 0; curr < max; curr++) {
      if (tokens[curr].type === 'text_special') {
        tokens[curr].type = 'text';
      }
    }
    for (curr = last = 0; curr < max; curr++) {
      if (tokens[curr].type === 'text' && curr + 1 < max && tokens[curr + 1].type === 'text') {
        // collapse two adjacent text nodes
        tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
      } else {
        if (curr !== last) {
          tokens[last] = tokens[curr];
        }
        last++;
      }
    }
    if (curr !== last) {
      tokens.length = last;
    }
  }
}

/** internal
 * class Core
 *
 * Top-level rules executor. Glues block/inline parsers and does intermediate
 * transformations.
 **/

const _rules$2 = [['normalize', normalize], ['block', block], ['inline', inline], ['linkify', linkify$1], ['replacements', replace], ['smartquotes', smartquotes],
// `text_join` finds `text_special` tokens (for escape sequences)
// and joins them with the rest of the text
['text_join', text_join]];

/**
 * new Core()
 **/
function Core() {
  /**
   * Core#ruler -> Ruler
   *
   * [[Ruler]] instance. Keep configuration of core rules.
   **/
  this.ruler = new Ruler();
  for (let i = 0; i < _rules$2.length; i++) {
    this.ruler.push(_rules$2[i][0], _rules$2[i][1]);
  }
}

/**
 * Core.process(state)
 *
 * Executes core chain rules.
 **/
Core.prototype.process = function (state) {
  const rules = this.ruler.getRules('');
  for (let i = 0, l = rules.length; i < l; i++) {
    rules[i](state);
  }
};
Core.prototype.State = StateCore;

// Parser state class

function StateBlock(src, md, env, tokens) {
  this.src = src;

  // link to parser instance
  this.md = md;
  this.env = env;

  //
  // Internal state vartiables
  //

  this.tokens = tokens;
  this.bMarks = []; // line begin offsets for fast jumps
  this.eMarks = []; // line end offsets for fast jumps
  this.tShift = []; // offsets of the first non-space characters (tabs not expanded)
  this.sCount = []; // indents for each line (tabs expanded)

  // An amount of virtual spaces (tabs expanded) between beginning
  // of each line (bMarks) and real beginning of that line.
  //
  // It exists only as a hack because blockquotes override bMarks
  // losing information in the process.
  //
  // It's used only when expanding tabs, you can think about it as
  // an initial tab length, e.g. bsCount=21 applied to string `\t123`
  // means first tab should be expanded to 4-21%4 === 3 spaces.
  //
  this.bsCount = [];

  // block parser variables

  // required block content indent (for example, if we are
  // inside a list, it would be positioned after list marker)
  this.blkIndent = 0;
  this.line = 0; // line index in src
  this.lineMax = 0; // lines count
  this.tight = false; // loose/tight mode for lists
  this.ddIndent = -1; // indent of the current dd block (-1 if there isn't any)
  this.listIndent = -1; // indent of the current list block (-1 if there isn't any)

  // can be 'blockquote', 'list', 'root', 'paragraph' or 'reference'
  // used in lists to determine if they interrupt a paragraph
  this.parentType = 'root';
  this.level = 0;

  // Create caches
  // Generate markers.
  const s = this.src;
  for (let start = 0, pos = 0, indent = 0, offset = 0, len = s.length, indent_found = false; pos < len; pos++) {
    const ch = s.charCodeAt(pos);
    if (!indent_found) {
      if (isSpace(ch)) {
        indent++;
        if (ch === 0x09) {
          offset += 4 - offset % 4;
        } else {
          offset++;
        }
        continue;
      } else {
        indent_found = true;
      }
    }
    if (ch === 0x0A || pos === len - 1) {
      if (ch !== 0x0A) {
        pos++;
      }
      this.bMarks.push(start);
      this.eMarks.push(pos);
      this.tShift.push(indent);
      this.sCount.push(offset);
      this.bsCount.push(0);
      indent_found = false;
      indent = 0;
      offset = 0;
      start = pos + 1;
    }
  }

  // Push fake entry to simplify cache bounds checks
  this.bMarks.push(s.length);
  this.eMarks.push(s.length);
  this.tShift.push(0);
  this.sCount.push(0);
  this.bsCount.push(0);
  this.lineMax = this.bMarks.length - 1; // don't count last fake line
}

// Push new token to "stream".
//
StateBlock.prototype.push = function (type, tag, nesting) {
  const token = new Token(type, tag, nesting);
  token.block = true;
  if (nesting < 0) this.level--; // closing tag
  token.level = this.level;
  if (nesting > 0) this.level++; // opening tag

  this.tokens.push(token);
  return token;
};
StateBlock.prototype.isEmpty = function isEmpty(line) {
  return this.bMarks[line] + this.tShift[line] >= this.eMarks[line];
};
StateBlock.prototype.skipEmptyLines = function skipEmptyLines(from) {
  for (let max = this.lineMax; from < max; from++) {
    if (this.bMarks[from] + this.tShift[from] < this.eMarks[from]) {
      break;
    }
  }
  return from;
};

// Skip spaces from given position.
StateBlock.prototype.skipSpaces = function skipSpaces(pos) {
  for (let max = this.src.length; pos < max; pos++) {
    const ch = this.src.charCodeAt(pos);
    if (!isSpace(ch)) {
      break;
    }
  }
  return pos;
};

// Skip spaces from given position in reverse.
StateBlock.prototype.skipSpacesBack = function skipSpacesBack(pos, min) {
  if (pos <= min) {
    return pos;
  }
  while (pos > min) {
    if (!isSpace(this.src.charCodeAt(--pos))) {
      return pos + 1;
    }
  }
  return pos;
};

// Skip char codes from given position
StateBlock.prototype.skipChars = function skipChars(pos, code) {
  for (let max = this.src.length; pos < max; pos++) {
    if (this.src.charCodeAt(pos) !== code) {
      break;
    }
  }
  return pos;
};

// Skip char codes reverse from given position - 1
StateBlock.prototype.skipCharsBack = function skipCharsBack(pos, code, min) {
  if (pos <= min) {
    return pos;
  }
  while (pos > min) {
    if (code !== this.src.charCodeAt(--pos)) {
      return pos + 1;
    }
  }
  return pos;
};

// cut lines range from source.
StateBlock.prototype.getLines = function getLines(begin, end, indent, keepLastLF) {
  if (begin >= end) {
    return '';
  }
  const queue = new Array(end - begin);
  for (let i = 0, line = begin; line < end; line++, i++) {
    let lineIndent = 0;
    const lineStart = this.bMarks[line];
    let first = lineStart;
    let last;
    if (line + 1 < end || keepLastLF) {
      // No need for bounds check because we have fake entry on tail.
      last = this.eMarks[line] + 1;
    } else {
      last = this.eMarks[line];
    }
    while (first < last && lineIndent < indent) {
      const ch = this.src.charCodeAt(first);
      if (isSpace(ch)) {
        if (ch === 0x09) {
          lineIndent += 4 - (lineIndent + this.bsCount[line]) % 4;
        } else {
          lineIndent++;
        }
      } else if (first - lineStart < this.tShift[line]) {
        // patched tShift masked characters to look like spaces (blockquotes, list markers)
        lineIndent++;
      } else {
        break;
      }
      first++;
    }
    if (lineIndent > indent) {
      // partially expanding tabs in code blocks, e.g '\t\tfoobar'
      // with indent=2 becomes '  \tfoobar'
      queue[i] = new Array(lineIndent - indent + 1).join(' ') + this.src.slice(first, last);
    } else {
      queue[i] = this.src.slice(first, last);
    }
  }
  return queue.join('');
};

// re-export Token class to use in block rules
StateBlock.prototype.Token = Token;

// GFM table, https://github.github.com/gfm/#tables-extension-


// Limit the amount of empty autocompleted cells in a table,
// see https://github.com/markdown-it/markdown-it/issues/1000,
//
// Both pulldown-cmark and commonmark-hs limit the number of cells this way to ~200k.
// We set it to 65k, which can expand user input by a factor of x370
// (256x256 square is 1.8kB expanded into 650kB).
const MAX_AUTOCOMPLETED_CELLS = 0x10000;
function getLine(state, line) {
  const pos = state.bMarks[line] + state.tShift[line];
  const max = state.eMarks[line];
  return state.src.slice(pos, max);
}
function escapedSplit(str) {
  const result = [];
  const max = str.length;
  let pos = 0;
  let ch = str.charCodeAt(pos);
  let isEscaped = false;
  let lastPos = 0;
  let current = '';
  while (pos < max) {
    if (ch === 0x7c /* | */) {
      if (!isEscaped) {
        // pipe separating cells, '|'
        result.push(current + str.substring(lastPos, pos));
        current = '';
        lastPos = pos + 1;
      } else {
        // escaped pipe, '\|'
        current += str.substring(lastPos, pos - 1);
        lastPos = pos;
      }
    }
    isEscaped = ch === 0x5c /* \ */;
    pos++;
    ch = str.charCodeAt(pos);
  }
  result.push(current + str.substring(lastPos));
  return result;
}
function table(state, startLine, endLine, silent) {
  // should have at least two lines
  if (startLine + 2 > endLine) {
    return false;
  }
  let nextLine = startLine + 1;
  if (state.sCount[nextLine] < state.blkIndent) {
    return false;
  }

  // if it's indented more than 3 spaces, it should be a code block
  if (state.sCount[nextLine] - state.blkIndent >= 4) {
    return false;
  }

  // first character of the second line should be '|', '-', ':',
  // and no other characters are allowed but spaces;
  // basically, this is the equivalent of /^[-:|][-:|\s]*$/ regexp

  let pos = state.bMarks[nextLine] + state.tShift[nextLine];
  if (pos >= state.eMarks[nextLine]) {
    return false;
  }
  const firstCh = state.src.charCodeAt(pos++);
  if (firstCh !== 0x7C /* | */ && firstCh !== 0x2D /* - */ && firstCh !== 0x3A /* : */) {
    return false;
  }
  if (pos >= state.eMarks[nextLine]) {
    return false;
  }
  const secondCh = state.src.charCodeAt(pos++);
  if (secondCh !== 0x7C /* | */ && secondCh !== 0x2D /* - */ && secondCh !== 0x3A /* : */ && !isSpace(secondCh)) {
    return false;
  }

  // if first character is '-', then second character must not be a space
  // (due to parsing ambiguity with list)
  if (firstCh === 0x2D /* - */ && isSpace(secondCh)) {
    return false;
  }
  while (pos < state.eMarks[nextLine]) {
    const ch = state.src.charCodeAt(pos);
    if (ch !== 0x7C /* | */ && ch !== 0x2D /* - */ && ch !== 0x3A /* : */ && !isSpace(ch)) {
      return false;
    }
    pos++;
  }
  let lineText = getLine(state, startLine + 1);
  let columns = lineText.split('|');
  const aligns = [];
  for (let i = 0; i < columns.length; i++) {
    const t = columns[i].trim();
    if (!t) {
      // allow empty columns before and after table, but not in between columns;
      // e.g. allow ` |---| `, disallow ` ---||--- `
      if (i === 0 || i === columns.length - 1) {
        continue;
      } else {
        return false;
      }
    }
    if (!/^:?-+:?$/.test(t)) {
      return false;
    }
    if (t.charCodeAt(t.length - 1) === 0x3A /* : */) {
      aligns.push(t.charCodeAt(0) === 0x3A /* : */ ? 'center' : 'right');
    } else if (t.charCodeAt(0) === 0x3A /* : */) {
      aligns.push('left');
    } else {
      aligns.push('');
    }
  }
  lineText = getLine(state, startLine).trim();
  if (lineText.indexOf('|') === -1) {
    return false;
  }
  if (state.sCount[startLine] - state.blkIndent >= 4) {
    return false;
  }
  columns = escapedSplit(lineText);
  if (columns.length && columns[0] === '') columns.shift();
  if (columns.length && columns[columns.length - 1] === '') columns.pop();

  // header row will define an amount of columns in the entire table,
  // and align row should be exactly the same (the rest of the rows can differ)
  const columnCount = columns.length;
  if (columnCount === 0 || columnCount !== aligns.length) {
    return false;
  }
  if (silent) {
    return true;
  }
  const oldParentType = state.parentType;
  state.parentType = 'table';

  // use 'blockquote' lists for termination because it's
  // the most similar to tables
  const terminatorRules = state.md.block.ruler.getRules('blockquote');
  const token_to = state.push('table_open', 'table', 1);
  const tableLines = [startLine, 0];
  token_to.map = tableLines;
  const token_tho = state.push('thead_open', 'thead', 1);
  token_tho.map = [startLine, startLine + 1];
  const token_htro = state.push('tr_open', 'tr', 1);
  token_htro.map = [startLine, startLine + 1];
  for (let i = 0; i < columns.length; i++) {
    const token_ho = state.push('th_open', 'th', 1);
    if (aligns[i]) {
      token_ho.attrs = [['style', 'text-align:' + aligns[i]]];
    }
    const token_il = state.push('inline', '', 0);
    token_il.content = columns[i].trim();
    token_il.children = [];
    state.push('th_close', 'th', -1);
  }
  state.push('tr_close', 'tr', -1);
  state.push('thead_close', 'thead', -1);
  let tbodyLines;
  let autocompletedCells = 0;
  for (nextLine = startLine + 2; nextLine < endLine; nextLine++) {
    if (state.sCount[nextLine] < state.blkIndent) {
      break;
    }
    let terminate = false;
    for (let i = 0, l = terminatorRules.length; i < l; i++) {
      if (terminatorRules[i](state, nextLine, endLine, true)) {
        terminate = true;
        break;
      }
    }
    if (terminate) {
      break;
    }
    lineText = getLine(state, nextLine).trim();
    if (!lineText) {
      break;
    }
    if (state.sCount[nextLine] - state.blkIndent >= 4) {
      break;
    }
    columns = escapedSplit(lineText);
    if (columns.length && columns[0] === '') columns.shift();
    if (columns.length && columns[columns.length - 1] === '') columns.pop();

    // note: autocomplete count can be negative if user specifies more columns than header,
    // but that does not affect intended use (which is limiting expansion)
    autocompletedCells += columnCount - columns.length;
    if (autocompletedCells > MAX_AUTOCOMPLETED_CELLS) {
      break;
    }
    if (nextLine === startLine + 2) {
      const token_tbo = state.push('tbody_open', 'tbody', 1);
      token_tbo.map = tbodyLines = [startLine + 2, 0];
    }
    const token_tro = state.push('tr_open', 'tr', 1);
    token_tro.map = [nextLine, nextLine + 1];
    for (let i = 0; i < columnCount; i++) {
      const token_tdo = state.push('td_open', 'td', 1);
      if (aligns[i]) {
        token_tdo.attrs = [['style', 'text-align:' + aligns[i]]];
      }
      const token_il = state.push('inline', '', 0);
      token_il.content = columns[i] ? columns[i].trim() : '';
      token_il.children = [];
      state.push('td_close', 'td', -1);
    }
    state.push('tr_close', 'tr', -1);
  }
  if (tbodyLines) {
    state.push('tbody_close', 'tbody', -1);
    tbodyLines[1] = nextLine;
  }
  state.push('table_close', 'table', -1);
  tableLines[1] = nextLine;
  state.parentType = oldParentType;
  state.line = nextLine;
  return true;
}

// Code block (4 spaces padded)

function code(state, startLine, endLine /*, silent */) {
  if (state.sCount[startLine] - state.blkIndent < 4) {
    return false;
  }
  let nextLine = startLine + 1;
  let last = nextLine;
  while (nextLine < endLine) {
    if (state.isEmpty(nextLine)) {
      nextLine++;
      continue;
    }
    if (state.sCount[nextLine] - state.blkIndent >= 4) {
      nextLine++;
      last = nextLine;
      continue;
    }
    break;
  }
  state.line = last;
  const token = state.push('code_block', 'code', 0);
  token.content = state.getLines(startLine, last, 4 + state.blkIndent, false) + '\n';
  token.map = [startLine, state.line];
  return true;
}

// fences (``` lang, ~~~ lang)

function fence(state, startLine, endLine, silent) {
  let pos = state.bMarks[startLine] + state.tShift[startLine];
  let max = state.eMarks[startLine];

  // if it's indented more than 3 spaces, it should be a code block
  if (state.sCount[startLine] - state.blkIndent >= 4) {
    return false;
  }
  if (pos + 3 > max) {
    return false;
  }
  const marker = state.src.charCodeAt(pos);
  if (marker !== 0x7E /* ~ */ && marker !== 0x60 /* ` */) {
    return false;
  }

  // scan marker length
  let mem = pos;
  pos = state.skipChars(pos, marker);
  let len = pos - mem;
  if (len < 3) {
    return false;
  }
  const markup = state.src.slice(mem, pos);
  const params = state.src.slice(pos, max);
  if (marker === 0x60 /* ` */) {
    if (params.indexOf(String.fromCharCode(marker)) >= 0) {
      return false;
    }
  }

  // Since start is found, we can report success here in validation mode
  if (silent) {
    return true;
  }

  // search end of block
  let nextLine = startLine;
  let haveEndMarker = false;
  for (;;) {
    nextLine++;
    if (nextLine >= endLine) {
      // unclosed block should be autoclosed by end of document.
      // also block seems to be autoclosed by end of parent
      break;
    }
    pos = mem = state.bMarks[nextLine] + state.tShift[nextLine];
    max = state.eMarks[nextLine];
    if (pos < max && state.sCount[nextLine] < state.blkIndent) {
      // non-empty line with negative indent should stop the list:
      // - ```
      //  test
      break;
    }
    if (state.src.charCodeAt(pos) !== marker) {
      continue;
    }
    if (state.sCount[nextLine] - state.blkIndent >= 4) {
      // closing fence should be indented less than 4 spaces
      continue;
    }
    pos = state.skipChars(pos, marker);

    // closing code fence must be at least as long as the opening one
    if (pos - mem < len) {
      continue;
    }

    // make sure tail has spaces only
    pos = state.skipSpaces(pos);
    if (pos < max) {
      continue;
    }
    haveEndMarker = true;
    // found!
    break;
  }

  // If a fence has heading spaces, they should be removed from its inner block
  len = state.sCount[startLine];
  state.line = nextLine + (haveEndMarker ? 1 : 0);
  const token = state.push('fence', 'code', 0);
  token.info = params;
  token.content = state.getLines(startLine + 1, nextLine, len, true);
  token.markup = markup;
  token.map = [startLine, state.line];
  return true;
}

// Block quotes

function blockquote(state, startLine, endLine, silent) {
  let pos = state.bMarks[startLine] + state.tShift[startLine];
  let max = state.eMarks[startLine];
  const oldLineMax = state.lineMax;

  // if it's indented more than 3 spaces, it should be a code block
  if (state.sCount[startLine] - state.blkIndent >= 4) {
    return false;
  }

  // check the block quote marker
  if (state.src.charCodeAt(pos) !== 0x3E /* > */) {
    return false;
  }

  // we know that it's going to be a valid blockquote,
  // so no point trying to find the end of it in silent mode
  if (silent) {
    return true;
  }
  const oldBMarks = [];
  const oldBSCount = [];
  const oldSCount = [];
  const oldTShift = [];
  const terminatorRules = state.md.block.ruler.getRules('blockquote');
  const oldParentType = state.parentType;
  state.parentType = 'blockquote';
  let lastLineEmpty = false;
  let nextLine;

  // Search the end of the block
  //
  // Block ends with either:
  //  1. an empty line outside:
  //     ```
  //     > test
  //
  //     ```
  //  2. an empty line inside:
  //     ```
  //     >
  //     test
  //     ```
  //  3. another tag:
  //     ```
  //     > test
  //      - - -
  //     ```
  for (nextLine = startLine; nextLine < endLine; nextLine++) {
    // check if it's outdented, i.e. it's inside list item and indented
    // less than said list item:
    //
    // ```
    // 1. anything
    //    > current blockquote
    // 2. checking this line
    // ```
    const isOutdented = state.sCount[nextLine] < state.blkIndent;
    pos = state.bMarks[nextLine] + state.tShift[nextLine];
    max = state.eMarks[nextLine];
    if (pos >= max) {
      // Case 1: line is not inside the blockquote, and this line is empty.
      break;
    }
    if (state.src.charCodeAt(pos++) === 0x3E /* > */ && !isOutdented) {
      // This line is inside the blockquote.

      // set offset past spaces and ">"
      let initial = state.sCount[nextLine] + 1;
      let spaceAfterMarker;
      let adjustTab;

      // skip one optional space after '>'
      if (state.src.charCodeAt(pos) === 0x20 /* space */) {
        // ' >   test '
        //     ^ -- position start of line here:
        pos++;
        initial++;
        adjustTab = false;
        spaceAfterMarker = true;
      } else if (state.src.charCodeAt(pos) === 0x09 /* tab */) {
        spaceAfterMarker = true;
        if ((state.bsCount[nextLine] + initial) % 4 === 3) {
          // '  >\t  test '
          //       ^ -- position start of line here (tab has width===1)
          pos++;
          initial++;
          adjustTab = false;
        } else {
          // ' >\t  test '
          //    ^ -- position start of line here + shift bsCount slightly
          //         to make extra space appear
          adjustTab = true;
        }
      } else {
        spaceAfterMarker = false;
      }
      let offset = initial;
      oldBMarks.push(state.bMarks[nextLine]);
      state.bMarks[nextLine] = pos;
      while (pos < max) {
        const ch = state.src.charCodeAt(pos);
        if (isSpace(ch)) {
          if (ch === 0x09) {
            offset += 4 - (offset + state.bsCount[nextLine] + (adjustTab ? 1 : 0)) % 4;
          } else {
            offset++;
          }
        } else {
          break;
        }
        pos++;
      }
      lastLineEmpty = pos >= max;
      oldBSCount.push(state.bsCount[nextLine]);
      state.bsCount[nextLine] = state.sCount[nextLine] + 1 + (spaceAfterMarker ? 1 : 0);
      oldSCount.push(state.sCount[nextLine]);
      state.sCount[nextLine] = offset - initial;
      oldTShift.push(state.tShift[nextLine]);
      state.tShift[nextLine] = pos - state.bMarks[nextLine];
      continue;
    }

    // Case 2: line is not inside the blockquote, and the last line was empty.
    if (lastLineEmpty) {
      break;
    }

    // Case 3: another tag found.
    let terminate = false;
    for (let i = 0, l = terminatorRules.length; i < l; i++) {
      if (terminatorRules[i](state, nextLine, endLine, true)) {
        terminate = true;
        break;
      }
    }
    if (terminate) {
      // Quirk to enforce "hard termination mode" for paragraphs;
      // normally if you call `tokenize(state, startLine, nextLine)`,
      // paragraphs will look below nextLine for paragraph continuation,
      // but if blockquote is terminated by another tag, they shouldn't
      state.lineMax = nextLine;
      if (state.blkIndent !== 0) {
        // state.blkIndent was non-zero, we now set it to zero,
        // so we need to re-calculate all offsets to appear as
        // if indent wasn't changed
        oldBMarks.push(state.bMarks[nextLine]);
        oldBSCount.push(state.bsCount[nextLine]);
        oldTShift.push(state.tShift[nextLine]);
        oldSCount.push(state.sCount[nextLine]);
        state.sCount[nextLine] -= state.blkIndent;
      }
      break;
    }
    oldBMarks.push(state.bMarks[nextLine]);
    oldBSCount.push(state.bsCount[nextLine]);
    oldTShift.push(state.tShift[nextLine]);
    oldSCount.push(state.sCount[nextLine]);

    // A negative indentation means that this is a paragraph continuation
    //
    state.sCount[nextLine] = -1;
  }
  const oldIndent = state.blkIndent;
  state.blkIndent = 0;
  const token_o = state.push('blockquote_open', 'blockquote', 1);
  token_o.markup = '>';
  const lines = [startLine, 0];
  token_o.map = lines;
  state.md.block.tokenize(state, startLine, nextLine);
  const token_c = state.push('blockquote_close', 'blockquote', -1);
  token_c.markup = '>';
  state.lineMax = oldLineMax;
  state.parentType = oldParentType;
  lines[1] = state.line;

  // Restore original tShift; this might not be necessary since the parser
  // has already been here, but just to make sure we can do that.
  for (let i = 0; i < oldTShift.length; i++) {
    state.bMarks[i + startLine] = oldBMarks[i];
    state.tShift[i + startLine] = oldTShift[i];
    state.sCount[i + startLine] = oldSCount[i];
    state.bsCount[i + startLine] = oldBSCount[i];
  }
  state.blkIndent = oldIndent;
  return true;
}

// Horizontal rule

function hr(state, startLine, endLine, silent) {
  const max = state.eMarks[startLine];
  // if it's indented more than 3 spaces, it should be a code block
  if (state.sCount[startLine] - state.blkIndent >= 4) {
    return false;
  }
  let pos = state.bMarks[startLine] + state.tShift[startLine];
  const marker = state.src.charCodeAt(pos++);

  // Check hr marker
  if (marker !== 0x2A /* * */ && marker !== 0x2D /* - */ && marker !== 0x5F /* _ */) {
    return false;
  }

  // markers can be mixed with spaces, but there should be at least 3 of them

  let cnt = 1;
  while (pos < max) {
    const ch = state.src.charCodeAt(pos++);
    if (ch !== marker && !isSpace(ch)) {
      return false;
    }
    if (ch === marker) {
      cnt++;
    }
  }
  if (cnt < 3) {
    return false;
  }
  if (silent) {
    return true;
  }
  state.line = startLine + 1;
  const token = state.push('hr', 'hr', 0);
  token.map = [startLine, state.line];
  token.markup = Array(cnt + 1).join(String.fromCharCode(marker));
  return true;
}

// Lists


// Search `[-+*][\n ]`, returns next pos after marker on success
// or -1 on fail.
function skipBulletListMarker(state, startLine) {
  const max = state.eMarks[startLine];
  let pos = state.bMarks[startLine] + state.tShift[startLine];
  const marker = state.src.charCodeAt(pos++);
  // Check bullet
  if (marker !== 0x2A /* * */ && marker !== 0x2D /* - */ && marker !== 0x2B /* + */) {
    return -1;
  }
  if (pos < max) {
    const ch = state.src.charCodeAt(pos);
    if (!isSpace(ch)) {
      // " -test " - is not a list item
      return -1;
    }
  }
  return pos;
}

// Search `\d+[.)][\n ]`, returns next pos after marker on success
// or -1 on fail.
function skipOrderedListMarker(state, startLine) {
  const start = state.bMarks[startLine] + state.tShift[startLine];
  const max = state.eMarks[startLine];
  let pos = start;

  // List marker should have at least 2 chars (digit + dot)
  if (pos + 1 >= max) {
    return -1;
  }
  let ch = state.src.charCodeAt(pos++);
  if (ch < 0x30 /* 0 */ || ch > 0x39 /* 9 */) {
    return -1;
  }
  for (;;) {
    // EOL -> fail
    if (pos >= max) {
      return -1;
    }
    ch = state.src.charCodeAt(pos++);
    if (ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */) {
      // List marker should have no more than 9 digits
      // (prevents integer overflow in browsers)
      if (pos - start >= 10) {
        return -1;
      }
      continue;
    }

    // found valid marker
    if (ch === 0x29 /* ) */ || ch === 0x2e /* . */) {
      break;
    }
    return -1;
  }
  if (pos < max) {
    ch = state.src.charCodeAt(pos);
    if (!isSpace(ch)) {
      // " 1.test " - is not a list item
      return -1;
    }
  }
  return pos;
}
function markTightParagraphs(state, idx) {
  const level = state.level + 2;
  for (let i = idx + 2, l = state.tokens.length - 2; i < l; i++) {
    if (state.tokens[i].level === level && state.tokens[i].type === 'paragraph_open') {
      state.tokens[i + 2].hidden = true;
      state.tokens[i].hidden = true;
      i += 2;
    }
  }
}
function list(state, startLine, endLine, silent) {
  let max, pos, start, token;
  let nextLine = startLine;
  let tight = true;

  // if it's indented more than 3 spaces, it should be a code block
  if (state.sCount[nextLine] - state.blkIndent >= 4) {
    return false;
  }

  // Special case:
  //  - item 1
  //   - item 2
  //    - item 3
  //     - item 4
  //      - this one is a paragraph continuation
  if (state.listIndent >= 0 && state.sCount[nextLine] - state.listIndent >= 4 && state.sCount[nextLine] < state.blkIndent) {
    return false;
  }
  let isTerminatingParagraph = false;

  // limit conditions when list can interrupt
  // a paragraph (validation mode only)
  if (silent && state.parentType === 'paragraph') {
    // Next list item should still terminate previous list item;
    //
    // This code can fail if plugins use blkIndent as well as lists,
    // but I hope the spec gets fixed long before that happens.
    //
    if (state.sCount[nextLine] >= state.blkIndent) {
      isTerminatingParagraph = true;
    }
  }

  // Detect list type and position after marker
  let isOrdered;
  let markerValue;
  let posAfterMarker;
  if ((posAfterMarker = skipOrderedListMarker(state, nextLine)) >= 0) {
    isOrdered = true;
    start = state.bMarks[nextLine] + state.tShift[nextLine];
    markerValue = Number(state.src.slice(start, posAfterMarker - 1));

    // If we're starting a new ordered list right after
    // a paragraph, it should start with 1.
    if (isTerminatingParagraph && markerValue !== 1) return false;
  } else if ((posAfterMarker = skipBulletListMarker(state, nextLine)) >= 0) {
    isOrdered = false;
  } else {
    return false;
  }

  // If we're starting a new unordered list right after
  // a paragraph, first line should not be empty.
  if (isTerminatingParagraph) {
    if (state.skipSpaces(posAfterMarker) >= state.eMarks[nextLine]) return false;
  }

  // For validation mode we can terminate immediately
  if (silent) {
    return true;
  }

  // We should terminate list on style change. Remember first one to compare.
  const markerCharCode = state.src.charCodeAt(posAfterMarker - 1);

  // Start list
  const listTokIdx = state.tokens.length;
  if (isOrdered) {
    token = state.push('ordered_list_open', 'ol', 1);
    if (markerValue !== 1) {
      token.attrs = [['start', markerValue]];
    }
  } else {
    token = state.push('bullet_list_open', 'ul', 1);
  }
  const listLines = [nextLine, 0];
  token.map = listLines;
  token.markup = String.fromCharCode(markerCharCode);

  //
  // Iterate list items
  //

  let prevEmptyEnd = false;
  const terminatorRules = state.md.block.ruler.getRules('list');
  const oldParentType = state.parentType;
  state.parentType = 'list';
  while (nextLine < endLine) {
    pos = posAfterMarker;
    max = state.eMarks[nextLine];
    const initial = state.sCount[nextLine] + posAfterMarker - (state.bMarks[nextLine] + state.tShift[nextLine]);
    let offset = initial;
    while (pos < max) {
      const ch = state.src.charCodeAt(pos);
      if (ch === 0x09) {
        offset += 4 - (offset + state.bsCount[nextLine]) % 4;
      } else if (ch === 0x20) {
        offset++;
      } else {
        break;
      }
      pos++;
    }
    const contentStart = pos;
    let indentAfterMarker;
    if (contentStart >= max) {
      // trimming space in "-    \n  3" case, indent is 1 here
      indentAfterMarker = 1;
    } else {
      indentAfterMarker = offset - initial;
    }

    // If we have more than 4 spaces, the indent is 1
    // (the rest is just indented code block)
    if (indentAfterMarker > 4) {
      indentAfterMarker = 1;
    }

    // "  -  test"
    //  ^^^^^ - calculating total length of this thing
    const indent = initial + indentAfterMarker;

    // Run subparser & write tokens
    token = state.push('list_item_open', 'li', 1);
    token.markup = String.fromCharCode(markerCharCode);
    const itemLines = [nextLine, 0];
    token.map = itemLines;
    if (isOrdered) {
      token.info = state.src.slice(start, posAfterMarker - 1);
    }

    // change current state, then restore it after parser subcall
    const oldTight = state.tight;
    const oldTShift = state.tShift[nextLine];
    const oldSCount = state.sCount[nextLine];

    //  - example list
    // ^ listIndent position will be here
    //   ^ blkIndent position will be here
    //
    const oldListIndent = state.listIndent;
    state.listIndent = state.blkIndent;
    state.blkIndent = indent;
    state.tight = true;
    state.tShift[nextLine] = contentStart - state.bMarks[nextLine];
    state.sCount[nextLine] = offset;
    if (contentStart >= max && state.isEmpty(nextLine + 1)) {
      // workaround for this case
      // (list item is empty, list terminates before "foo"):
      // ~~~~~~~~
      //   -
      //
      //     foo
      // ~~~~~~~~
      state.line = Math.min(state.line + 2, endLine);
    } else {
      state.md.block.tokenize(state, nextLine, endLine, true);
    }

    // If any of list item is tight, mark list as tight
    if (!state.tight || prevEmptyEnd) {
      tight = false;
    }
    // Item become loose if finish with empty line,
    // but we should filter last element, because it means list finish
    prevEmptyEnd = state.line - nextLine > 1 && state.isEmpty(state.line - 1);
    state.blkIndent = state.listIndent;
    state.listIndent = oldListIndent;
    state.tShift[nextLine] = oldTShift;
    state.sCount[nextLine] = oldSCount;
    state.tight = oldTight;
    token = state.push('list_item_close', 'li', -1);
    token.markup = String.fromCharCode(markerCharCode);
    nextLine = state.line;
    itemLines[1] = nextLine;
    if (nextLine >= endLine) {
      break;
    }

    //
    // Try to check if list is terminated or continued.
    //
    if (state.sCount[nextLine] < state.blkIndent) {
      break;
    }

    // if it's indented more than 3 spaces, it should be a code block
    if (state.sCount[nextLine] - state.blkIndent >= 4) {
      break;
    }

    // fail if terminating block found
    let terminate = false;
    for (let i = 0, l = terminatorRules.length; i < l; i++) {
      if (terminatorRules[i](state, nextLine, endLine, true)) {
        terminate = true;
        break;
      }
    }
    if (terminate) {
      break;
    }

    // fail if list has another type
    if (isOrdered) {
      posAfterMarker = skipOrderedListMarker(state, nextLine);
      if (posAfterMarker < 0) {
        break;
      }
      start = state.bMarks[nextLine] + state.tShift[nextLine];
    } else {
      posAfterMarker = skipBulletListMarker(state, nextLine);
      if (posAfterMarker < 0) {
        break;
      }
    }
    if (markerCharCode !== state.src.charCodeAt(posAfterMarker - 1)) {
      break;
    }
  }

  // Finalize list
  if (isOrdered) {
    token = state.push('ordered_list_close', 'ol', -1);
  } else {
    token = state.push('bullet_list_close', 'ul', -1);
  }
  token.markup = String.fromCharCode(markerCharCode);
  listLines[1] = nextLine;
  state.line = nextLine;
  state.parentType = oldParentType;

  // mark paragraphs tight if needed
  if (tight) {
    markTightParagraphs(state, listTokIdx);
  }
  return true;
}

function reference(state, startLine, _endLine, silent) {
  let pos = state.bMarks[startLine] + state.tShift[startLine];
  let max = state.eMarks[startLine];
  let nextLine = startLine + 1;

  // if it's indented more than 3 spaces, it should be a code block
  if (state.sCount[startLine] - state.blkIndent >= 4) {
    return false;
  }
  if (state.src.charCodeAt(pos) !== 0x5B /* [ */) {
    return false;
  }
  function getNextLine(nextLine) {
    const endLine = state.lineMax;
    if (nextLine >= endLine || state.isEmpty(nextLine)) {
      // empty line or end of input
      return null;
    }
    let isContinuation = false;

    // this would be a code block normally, but after paragraph
    // it's considered a lazy continuation regardless of what's there
    if (state.sCount[nextLine] - state.blkIndent > 3) {
      isContinuation = true;
    }

    // quirk for blockquotes, this line should already be checked by that rule
    if (state.sCount[nextLine] < 0) {
      isContinuation = true;
    }
    if (!isContinuation) {
      const terminatorRules = state.md.block.ruler.getRules('reference');
      const oldParentType = state.parentType;
      state.parentType = 'reference';

      // Some tags can terminate paragraph without empty line.
      let terminate = false;
      for (let i = 0, l = terminatorRules.length; i < l; i++) {
        if (terminatorRules[i](state, nextLine, endLine, true)) {
          terminate = true;
          break;
        }
      }
      state.parentType = oldParentType;
      if (terminate) {
        // terminated by another block
        return null;
      }
    }
    const pos = state.bMarks[nextLine] + state.tShift[nextLine];
    const max = state.eMarks[nextLine];

    // max + 1 explicitly includes the newline
    return state.src.slice(pos, max + 1);
  }
  let str = state.src.slice(pos, max + 1);
  max = str.length;
  let labelEnd = -1;
  for (pos = 1; pos < max; pos++) {
    const ch = str.charCodeAt(pos);
    if (ch === 0x5B /* [ */) {
      return false;
    } else if (ch === 0x5D /* ] */) {
      labelEnd = pos;
      break;
    } else if (ch === 0x0A /* \n */) {
      const lineContent = getNextLine(nextLine);
      if (lineContent !== null) {
        str += lineContent;
        max = str.length;
        nextLine++;
      }
    } else if (ch === 0x5C /* \ */) {
      pos++;
      if (pos < max && str.charCodeAt(pos) === 0x0A) {
        const lineContent = getNextLine(nextLine);
        if (lineContent !== null) {
          str += lineContent;
          max = str.length;
          nextLine++;
        }
      }
    }
  }
  if (labelEnd < 0 || str.charCodeAt(labelEnd + 1) !== 0x3A /* : */) {
    return false;
  }

  // [label]:   destination   'title'
  //         ^^^ skip optional whitespace here
  for (pos = labelEnd + 2; pos < max; pos++) {
    const ch = str.charCodeAt(pos);
    if (ch === 0x0A) {
      const lineContent = getNextLine(nextLine);
      if (lineContent !== null) {
        str += lineContent;
        max = str.length;
        nextLine++;
      }
    } else if (isSpace(ch)) ; else {
      break;
    }
  }

  // [label]:   destination   'title'
  //            ^^^^^^^^^^^ parse this
  const destRes = state.md.helpers.parseLinkDestination(str, pos, max);
  if (!destRes.ok) {
    return false;
  }
  const href = state.md.normalizeLink(destRes.str);
  if (!state.md.validateLink(href)) {
    return false;
  }
  pos = destRes.pos;

  // save cursor state, we could require to rollback later
  const destEndPos = pos;
  const destEndLineNo = nextLine;

  // [label]:   destination   'title'
  //                       ^^^ skipping those spaces
  const start = pos;
  for (; pos < max; pos++) {
    const ch = str.charCodeAt(pos);
    if (ch === 0x0A) {
      const lineContent = getNextLine(nextLine);
      if (lineContent !== null) {
        str += lineContent;
        max = str.length;
        nextLine++;
      }
    } else if (isSpace(ch)) ; else {
      break;
    }
  }

  // [label]:   destination   'title'
  //                          ^^^^^^^ parse this
  let titleRes = state.md.helpers.parseLinkTitle(str, pos, max);
  while (titleRes.can_continue) {
    const lineContent = getNextLine(nextLine);
    if (lineContent === null) break;
    str += lineContent;
    pos = max;
    max = str.length;
    nextLine++;
    titleRes = state.md.helpers.parseLinkTitle(str, pos, max, titleRes);
  }
  let title;
  if (pos < max && start !== pos && titleRes.ok) {
    title = titleRes.str;
    pos = titleRes.pos;
  } else {
    title = '';
    pos = destEndPos;
    nextLine = destEndLineNo;
  }

  // skip trailing spaces until the rest of the line
  while (pos < max) {
    const ch = str.charCodeAt(pos);
    if (!isSpace(ch)) {
      break;
    }
    pos++;
  }
  if (pos < max && str.charCodeAt(pos) !== 0x0A) {
    if (title) {
      // garbage at the end of the line after title,
      // but it could still be a valid reference if we roll back
      title = '';
      pos = destEndPos;
      nextLine = destEndLineNo;
      while (pos < max) {
        const ch = str.charCodeAt(pos);
        if (!isSpace(ch)) {
          break;
        }
        pos++;
      }
    }
  }
  if (pos < max && str.charCodeAt(pos) !== 0x0A) {
    // garbage at the end of the line
    return false;
  }
  const label = normalizeReference(str.slice(1, labelEnd));
  if (!label) {
    // CommonMark 0.20 disallows empty labels
    return false;
  }

  // Reference can not terminate anything. This check is for safety only.
  /* istanbul ignore if */
  if (silent) {
    return true;
  }
  if (typeof state.env.references === 'undefined') {
    state.env.references = {};
  }
  if (typeof state.env.references[label] === 'undefined') {
    state.env.references[label] = {
      title,
      href
    };
  }
  state.line = nextLine;
  return true;
}

// List of valid html blocks names, according to commonmark spec
// https://spec.commonmark.org/0.30/#html-blocks

var block_names = ['address', 'article', 'aside', 'base', 'basefont', 'blockquote', 'body', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dialog', 'dir', 'div', 'dl', 'dt', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hr', 'html', 'iframe', 'legend', 'li', 'link', 'main', 'menu', 'menuitem', 'nav', 'noframes', 'ol', 'optgroup', 'option', 'p', 'param', 'search', 'section', 'summary', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul'];

// Regexps to match html elements

const attr_name = '[a-zA-Z_:][a-zA-Z0-9:._-]*';
const unquoted = '[^"\'=<>`\\x00-\\x20]+';
const single_quoted = "'[^']*'";
const double_quoted = '"[^"]*"';
const attr_value = '(?:' + unquoted + '|' + single_quoted + '|' + double_quoted + ')';
const attribute = '(?:\\s+' + attr_name + '(?:\\s*=\\s*' + attr_value + ')?)';
const open_tag = '<[A-Za-z][A-Za-z0-9\\-]*' + attribute + '*\\s*\\/?>';
const close_tag = '<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>';
const comment = '<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->';
const processing = '<[?][\\s\\S]*?[?]>';
const declaration = '<![A-Za-z][^>]*>';
const cdata = '<!\\[CDATA\\[[\\s\\S]*?\\]\\]>';
const HTML_TAG_RE = new RegExp('^(?:' + open_tag + '|' + close_tag + '|' + comment + '|' + processing + '|' + declaration + '|' + cdata + ')');
const HTML_OPEN_CLOSE_TAG_RE = new RegExp('^(?:' + open_tag + '|' + close_tag + ')');

// HTML block


// An array of opening and corresponding closing sequences for html tags,
// last argument defines whether it can terminate a paragraph or not
//
const HTML_SEQUENCES = [[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, true], [/^<!--/, /-->/, true], [/^<\?/, /\?>/, true], [/^<![A-Z]/, />/, true], [/^<!\[CDATA\[/, /\]\]>/, true], [new RegExp('^</?(' + block_names.join('|') + ')(?=(\\s|/?>|$))', 'i'), /^$/, true], [new RegExp(HTML_OPEN_CLOSE_TAG_RE.source + '\\s*$'), /^$/, false]];
function html_block(state, startLine, endLine, silent) {
  let pos = state.bMarks[startLine] + state.tShift[startLine];
  let max = state.eMarks[startLine];

  // if it's indented more than 3 spaces, it should be a code block
  if (state.sCount[startLine] - state.blkIndent >= 4) {
    return false;
  }
  if (!state.md.options.html) {
    return false;
  }
  if (state.src.charCodeAt(pos) !== 0x3C /* < */) {
    return false;
  }
  let lineText = state.src.slice(pos, max);
  let i = 0;
  for (; i < HTML_SEQUENCES.length; i++) {
    if (HTML_SEQUENCES[i][0].test(lineText)) {
      break;
    }
  }
  if (i === HTML_SEQUENCES.length) {
    return false;
  }
  if (silent) {
    // true if this sequence can be a terminator, false otherwise
    return HTML_SEQUENCES[i][2];
  }
  let nextLine = startLine + 1;

  // If we are here - we detected HTML block.
  // Let's roll down till block end.
  if (!HTML_SEQUENCES[i][1].test(lineText)) {
    for (; nextLine < endLine; nextLine++) {
      if (state.sCount[nextLine] < state.blkIndent) {
        break;
      }
      pos = state.bMarks[nextLine] + state.tShift[nextLine];
      max = state.eMarks[nextLine];
      lineText = state.src.slice(pos, max);
      if (HTML_SEQUENCES[i][1].test(lineText)) {
        if (lineText.length !== 0) {
          nextLine++;
        }
        break;
      }
    }
  }
  state.line = nextLine;
  const token = state.push('html_block', '', 0);
  token.map = [startLine, nextLine];
  token.content = state.getLines(startLine, nextLine, state.blkIndent, true);
  return true;
}

// heading (#, ##, ...)

function heading(state, startLine, endLine, silent) {
  let pos = state.bMarks[startLine] + state.tShift[startLine];
  let max = state.eMarks[startLine];

  // if it's indented more than 3 spaces, it should be a code block
  if (state.sCount[startLine] - state.blkIndent >= 4) {
    return false;
  }
  let ch = state.src.charCodeAt(pos);
  if (ch !== 0x23 /* # */ || pos >= max) {
    return false;
  }

  // count heading level
  let level = 1;
  ch = state.src.charCodeAt(++pos);
  while (ch === 0x23 /* # */ && pos < max && level <= 6) {
    level++;
    ch = state.src.charCodeAt(++pos);
  }
  if (level > 6 || pos < max && !isSpace(ch)) {
    return false;
  }
  if (silent) {
    return true;
  }

  // Let's cut tails like '    ###  ' from the end of string

  max = state.skipSpacesBack(max, pos);
  const tmp = state.skipCharsBack(max, 0x23, pos); // #
  if (tmp > pos && isSpace(state.src.charCodeAt(tmp - 1))) {
    max = tmp;
  }
  state.line = startLine + 1;
  const token_o = state.push('heading_open', 'h' + String(level), 1);
  token_o.markup = '########'.slice(0, level);
  token_o.map = [startLine, state.line];
  const token_i = state.push('inline', '', 0);
  token_i.content = state.src.slice(pos, max).trim();
  token_i.map = [startLine, state.line];
  token_i.children = [];
  const token_c = state.push('heading_close', 'h' + String(level), -1);
  token_c.markup = '########'.slice(0, level);
  return true;
}

// lheading (---, ===)

function lheading(state, startLine, endLine /*, silent */) {
  const terminatorRules = state.md.block.ruler.getRules('paragraph');

  // if it's indented more than 3 spaces, it should be a code block
  if (state.sCount[startLine] - state.blkIndent >= 4) {
    return false;
  }
  const oldParentType = state.parentType;
  state.parentType = 'paragraph'; // use paragraph to match terminatorRules

  // jump line-by-line until empty one or EOF
  let level = 0;
  let marker;
  let nextLine = startLine + 1;
  for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {
    // this would be a code block normally, but after paragraph
    // it's considered a lazy continuation regardless of what's there
    if (state.sCount[nextLine] - state.blkIndent > 3) {
      continue;
    }

    //
    // Check for underline in setext header
    //
    if (state.sCount[nextLine] >= state.blkIndent) {
      let pos = state.bMarks[nextLine] + state.tShift[nextLine];
      const max = state.eMarks[nextLine];
      if (pos < max) {
        marker = state.src.charCodeAt(pos);
        if (marker === 0x2D /* - */ || marker === 0x3D /* = */) {
          pos = state.skipChars(pos, marker);
          pos = state.skipSpaces(pos);
          if (pos >= max) {
            level = marker === 0x3D /* = */ ? 1 : 2;
            break;
          }
        }
      }
    }

    // quirk for blockquotes, this line should already be checked by that rule
    if (state.sCount[nextLine] < 0) {
      continue;
    }

    // Some tags can terminate paragraph without empty line.
    let terminate = false;
    for (let i = 0, l = terminatorRules.length; i < l; i++) {
      if (terminatorRules[i](state, nextLine, endLine, true)) {
        terminate = true;
        break;
      }
    }
    if (terminate) {
      break;
    }
  }
  if (!level) {
    // Didn't find valid underline
    return false;
  }
  const content = state.getLines(startLine, nextLine, state.blkIndent, false).trim();
  state.line = nextLine + 1;
  const token_o = state.push('heading_open', 'h' + String(level), 1);
  token_o.markup = String.fromCharCode(marker);
  token_o.map = [startLine, state.line];
  const token_i = state.push('inline', '', 0);
  token_i.content = content;
  token_i.map = [startLine, state.line - 1];
  token_i.children = [];
  const token_c = state.push('heading_close', 'h' + String(level), -1);
  token_c.markup = String.fromCharCode(marker);
  state.parentType = oldParentType;
  return true;
}

// Paragraph

function paragraph(state, startLine, endLine) {
  const terminatorRules = state.md.block.ruler.getRules('paragraph');
  const oldParentType = state.parentType;
  let nextLine = startLine + 1;
  state.parentType = 'paragraph';

  // jump line-by-line until empty one or EOF
  for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {
    // this would be a code block normally, but after paragraph
    // it's considered a lazy continuation regardless of what's there
    if (state.sCount[nextLine] - state.blkIndent > 3) {
      continue;
    }

    // quirk for blockquotes, this line should already be checked by that rule
    if (state.sCount[nextLine] < 0) {
      continue;
    }

    // Some tags can terminate paragraph without empty line.
    let terminate = false;
    for (let i = 0, l = terminatorRules.length; i < l; i++) {
      if (terminatorRules[i](state, nextLine, endLine, true)) {
        terminate = true;
        break;
      }
    }
    if (terminate) {
      break;
    }
  }
  const content = state.getLines(startLine, nextLine, state.blkIndent, false).trim();
  state.line = nextLine;
  const token_o = state.push('paragraph_open', 'p', 1);
  token_o.map = [startLine, state.line];
  const token_i = state.push('inline', '', 0);
  token_i.content = content;
  token_i.map = [startLine, state.line];
  token_i.children = [];
  state.push('paragraph_close', 'p', -1);
  state.parentType = oldParentType;
  return true;
}

/** internal
 * class ParserBlock
 *
 * Block-level tokenizer.
 **/

const _rules$1 = [
// First 2 params - rule name & source. Secondary array - list of rules,
// which can be terminated by this one.
['table', table, ['paragraph', 'reference']], ['code', code], ['fence', fence, ['paragraph', 'reference', 'blockquote', 'list']], ['blockquote', blockquote, ['paragraph', 'reference', 'blockquote', 'list']], ['hr', hr, ['paragraph', 'reference', 'blockquote', 'list']], ['list', list, ['paragraph', 'reference', 'blockquote']], ['reference', reference], ['html_block', html_block, ['paragraph', 'reference', 'blockquote']], ['heading', heading, ['paragraph', 'reference', 'blockquote']], ['lheading', lheading], ['paragraph', paragraph]];

/**
 * new ParserBlock()
 **/
function ParserBlock() {
  /**
   * ParserBlock#ruler -> Ruler
   *
   * [[Ruler]] instance. Keep configuration of block rules.
   **/
  this.ruler = new Ruler();
  for (let i = 0; i < _rules$1.length; i++) {
    this.ruler.push(_rules$1[i][0], _rules$1[i][1], {
      alt: (_rules$1[i][2] || []).slice()
    });
  }
}

// Generate tokens for input range
//
ParserBlock.prototype.tokenize = function (state, startLine, endLine) {
  const rules = this.ruler.getRules('');
  const len = rules.length;
  const maxNesting = state.md.options.maxNesting;
  let line = startLine;
  let hasEmptyLines = false;
  while (line < endLine) {
    state.line = line = state.skipEmptyLines(line);
    if (line >= endLine) {
      break;
    }

    // Termination condition for nested calls.
    // Nested calls currently used for blockquotes & lists
    if (state.sCount[line] < state.blkIndent) {
      break;
    }

    // If nesting level exceeded - skip tail to the end. That's not ordinary
    // situation and we should not care about content.
    if (state.level >= maxNesting) {
      state.line = endLine;
      break;
    }

    // Try all possible rules.
    // On success, rule should:
    //
    // - update `state.line`
    // - update `state.tokens`
    // - return true
    const prevLine = state.line;
    let ok = false;
    for (let i = 0; i < len; i++) {
      ok = rules[i](state, line, endLine, false);
      if (ok) {
        if (prevLine >= state.line) {
          throw new Error("block rule didn't increment state.line");
        }
        break;
      }
    }

    // this can only happen if user disables paragraph rule
    if (!ok) throw new Error('none of the block rules matched');

    // set state.tight if we had an empty line before current tag
    // i.e. latest empty line should not count
    state.tight = !hasEmptyLines;

    // paragraph might "eat" one newline after it in nested lists
    if (state.isEmpty(state.line - 1)) {
      hasEmptyLines = true;
    }
    line = state.line;
    if (line < endLine && state.isEmpty(line)) {
      hasEmptyLines = true;
      line++;
      state.line = line;
    }
  }
};

/**
 * ParserBlock.parse(str, md, env, outTokens)
 *
 * Process input string and push block tokens into `outTokens`
 **/
ParserBlock.prototype.parse = function (src, md, env, outTokens) {
  if (!src) {
    return;
  }
  const state = new this.State(src, md, env, outTokens);
  this.tokenize(state, state.line, state.lineMax);
};
ParserBlock.prototype.State = StateBlock;

// Inline parser state

function StateInline(src, md, env, outTokens) {
  this.src = src;
  this.env = env;
  this.md = md;
  this.tokens = outTokens;
  this.tokens_meta = Array(outTokens.length);
  this.pos = 0;
  this.posMax = this.src.length;
  this.level = 0;
  this.pending = '';
  this.pendingLevel = 0;

  // Stores { start: end } pairs. Useful for backtrack
  // optimization of pairs parse (emphasis, strikes).
  this.cache = {};

  // List of emphasis-like delimiters for current tag
  this.delimiters = [];

  // Stack of delimiter lists for upper level tags
  this._prev_delimiters = [];

  // backtick length => last seen position
  this.backticks = {};
  this.backticksScanned = false;

  // Counter used to disable inline linkify-it execution
  // inside <a> and markdown links
  this.linkLevel = 0;
}

// Flush pending text
//
StateInline.prototype.pushPending = function () {
  const token = new Token('text', '', 0);
  token.content = this.pending;
  token.level = this.pendingLevel;
  this.tokens.push(token);
  this.pending = '';
  return token;
};

// Push new token to "stream".
// If pending text exists - flush it as text token
//
StateInline.prototype.push = function (type, tag, nesting) {
  if (this.pending) {
    this.pushPending();
  }
  const token = new Token(type, tag, nesting);
  let token_meta = null;
  if (nesting < 0) {
    // closing tag
    this.level--;
    this.delimiters = this._prev_delimiters.pop();
  }
  token.level = this.level;
  if (nesting > 0) {
    // opening tag
    this.level++;
    this._prev_delimiters.push(this.delimiters);
    this.delimiters = [];
    token_meta = {
      delimiters: this.delimiters
    };
  }
  this.pendingLevel = this.level;
  this.tokens.push(token);
  this.tokens_meta.push(token_meta);
  return token;
};

// Scan a sequence of emphasis-like markers, and determine whether
// it can start an emphasis sequence or end an emphasis sequence.
//
//  - start - position to scan from (it should point at a valid marker);
//  - canSplitWord - determine if these markers can be found inside a word
//
StateInline.prototype.scanDelims = function (start, canSplitWord) {
  const max = this.posMax;
  const marker = this.src.charCodeAt(start);

  // treat beginning of the line as a whitespace
  const lastChar = start > 0 ? this.src.charCodeAt(start - 1) : 0x20;
  let pos = start;
  while (pos < max && this.src.charCodeAt(pos) === marker) {
    pos++;
  }
  const count = pos - start;

  // treat end of the line as a whitespace
  const nextChar = pos < max ? this.src.charCodeAt(pos) : 0x20;
  const isLastPunctChar = isMdAsciiPunct(lastChar) || isPunctChar(String.fromCharCode(lastChar));
  const isNextPunctChar = isMdAsciiPunct(nextChar) || isPunctChar(String.fromCharCode(nextChar));
  const isLastWhiteSpace = isWhiteSpace(lastChar);
  const isNextWhiteSpace = isWhiteSpace(nextChar);
  const left_flanking = !isNextWhiteSpace && (!isNextPunctChar || isLastWhiteSpace || isLastPunctChar);
  const right_flanking = !isLastWhiteSpace && (!isLastPunctChar || isNextWhiteSpace || isNextPunctChar);
  const can_open = left_flanking && (canSplitWord || !right_flanking || isLastPunctChar);
  const can_close = right_flanking && (canSplitWord || !left_flanking || isNextPunctChar);
  return {
    can_open,
    can_close,
    length: count
  };
};

// re-export Token class to use in block rules
StateInline.prototype.Token = Token;

// Skip text characters for text token, place those to pending buffer
// and increment current pos

// Rule to skip pure text
// '{}$%@~+=:' reserved for extentions

// !, ", #, $, %, &, ', (, ), *, +, ,, -, ., /, :, ;, <, =, >, ?, @, [, \, ], ^, _, `, {, |, }, or ~

// !!!! Don't confuse with "Markdown ASCII Punctuation" chars
// http://spec.commonmark.org/0.15/#ascii-punctuation-character
function isTerminatorChar(ch) {
  switch (ch) {
    case 0x0A /* \n */:
    case 0x21 /* ! */:
    case 0x23 /* # */:
    case 0x24 /* $ */:
    case 0x25 /* % */:
    case 0x26 /* & */:
    case 0x2A /* * */:
    case 0x2B /* + */:
    case 0x2D /* - */:
    case 0x3A /* : */:
    case 0x3C /* < */:
    case 0x3D /* = */:
    case 0x3E /* > */:
    case 0x40 /* @ */:
    case 0x5B /* [ */:
    case 0x5C /* \ */:
    case 0x5D /* ] */:
    case 0x5E /* ^ */:
    case 0x5F /* _ */:
    case 0x60 /* ` */:
    case 0x7B /* { */:
    case 0x7D /* } */:
    case 0x7E /* ~ */:
      return true;
    default:
      return false;
  }
}
function text(state, silent) {
  let pos = state.pos;
  while (pos < state.posMax && !isTerminatorChar(state.src.charCodeAt(pos))) {
    pos++;
  }
  if (pos === state.pos) {
    return false;
  }
  if (!silent) {
    state.pending += state.src.slice(state.pos, pos);
  }
  state.pos = pos;
  return true;
}

// Alternative implementation, for memory.
//
// It costs 10% of performance, but allows extend terminators list, if place it
// to `ParserInline` property. Probably, will switch to it sometime, such
// flexibility required.

/*
var TERMINATOR_RE = /[\n!#$%&*+\-:<=>@[\\\]^_`{}~]/;

module.exports = function text(state, silent) {
  var pos = state.pos,
      idx = state.src.slice(pos).search(TERMINATOR_RE);

  // first char is terminator -> empty text
  if (idx === 0) { return false; }

  // no terminator -> text till end of string
  if (idx < 0) {
    if (!silent) { state.pending += state.src.slice(pos); }
    state.pos = state.src.length;
    return true;
  }

  if (!silent) { state.pending += state.src.slice(pos, pos + idx); }

  state.pos += idx;

  return true;
}; */

// Process links like https://example.org/

// RFC3986: scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
const SCHEME_RE = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
function linkify(state, silent) {
  if (!state.md.options.linkify) return false;
  if (state.linkLevel > 0) return false;
  const pos = state.pos;
  const max = state.posMax;
  if (pos + 3 > max) return false;
  if (state.src.charCodeAt(pos) !== 0x3A /* : */) return false;
  if (state.src.charCodeAt(pos + 1) !== 0x2F /* / */) return false;
  if (state.src.charCodeAt(pos + 2) !== 0x2F /* / */) return false;
  const match = state.pending.match(SCHEME_RE);
  if (!match) return false;
  const proto = match[1];
  const link = state.md.linkify.matchAtStart(state.src.slice(pos - proto.length));
  if (!link) return false;
  let url = link.url;

  // invalid link, but still detected by linkify somehow;
  // need to check to prevent infinite loop below
  if (url.length <= proto.length) return false;

  // disallow '*' at the end of the link (conflicts with emphasis)
  url = url.replace(/\*+$/, '');
  const fullUrl = state.md.normalizeLink(url);
  if (!state.md.validateLink(fullUrl)) return false;
  if (!silent) {
    state.pending = state.pending.slice(0, -proto.length);
    const token_o = state.push('link_open', 'a', 1);
    token_o.attrs = [['href', fullUrl]];
    token_o.markup = 'linkify';
    token_o.info = 'auto';
    const token_t = state.push('text', '', 0);
    token_t.content = state.md.normalizeLinkText(url);
    const token_c = state.push('link_close', 'a', -1);
    token_c.markup = 'linkify';
    token_c.info = 'auto';
  }
  state.pos += url.length - proto.length;
  return true;
}

// Proceess '\n'

function newline(state, silent) {
  let pos = state.pos;
  if (state.src.charCodeAt(pos) !== 0x0A /* \n */) {
    return false;
  }
  const pmax = state.pending.length - 1;
  const max = state.posMax;

  // '  \n' -> hardbreak
  // Lookup in pending chars is bad practice! Don't copy to other rules!
  // Pending string is stored in concat mode, indexed lookups will cause
  // convertion to flat mode.
  if (!silent) {
    if (pmax >= 0 && state.pending.charCodeAt(pmax) === 0x20) {
      if (pmax >= 1 && state.pending.charCodeAt(pmax - 1) === 0x20) {
        // Find whitespaces tail of pending chars.
        let ws = pmax - 1;
        while (ws >= 1 && state.pending.charCodeAt(ws - 1) === 0x20) ws--;
        state.pending = state.pending.slice(0, ws);
        state.push('hardbreak', 'br', 0);
      } else {
        state.pending = state.pending.slice(0, -1);
        state.push('softbreak', 'br', 0);
      }
    } else {
      state.push('softbreak', 'br', 0);
    }
  }
  pos++;

  // skip heading spaces for next line
  while (pos < max && isSpace(state.src.charCodeAt(pos))) {
    pos++;
  }
  state.pos = pos;
  return true;
}

// Process escaped chars and hardbreaks

const ESCAPED = [];
for (let i = 0; i < 256; i++) {
  ESCAPED.push(0);
}
'\\!"#$%&\'()*+,./:;<=>?@[]^_`{|}~-'.split('').forEach(function (ch) {
  ESCAPED[ch.charCodeAt(0)] = 1;
});
function escape(state, silent) {
  let pos = state.pos;
  const max = state.posMax;
  if (state.src.charCodeAt(pos) !== 0x5C /* \ */) return false;
  pos++;

  // '\' at the end of the inline block
  if (pos >= max) return false;
  let ch1 = state.src.charCodeAt(pos);
  if (ch1 === 0x0A) {
    if (!silent) {
      state.push('hardbreak', 'br', 0);
    }
    pos++;
    // skip leading whitespaces from next line
    while (pos < max) {
      ch1 = state.src.charCodeAt(pos);
      if (!isSpace(ch1)) break;
      pos++;
    }
    state.pos = pos;
    return true;
  }
  let escapedStr = state.src[pos];
  if (ch1 >= 0xD800 && ch1 <= 0xDBFF && pos + 1 < max) {
    const ch2 = state.src.charCodeAt(pos + 1);
    if (ch2 >= 0xDC00 && ch2 <= 0xDFFF) {
      escapedStr += state.src[pos + 1];
      pos++;
    }
  }
  const origStr = '\\' + escapedStr;
  if (!silent) {
    const token = state.push('text_special', '', 0);
    if (ch1 < 256 && ESCAPED[ch1] !== 0) {
      token.content = escapedStr;
    } else {
      token.content = origStr;
    }
    token.markup = origStr;
    token.info = 'escape';
  }
  state.pos = pos + 1;
  return true;
}

// Parse backticks

function backtick(state, silent) {
  let pos = state.pos;
  const ch = state.src.charCodeAt(pos);
  if (ch !== 0x60 /* ` */) {
    return false;
  }
  const start = pos;
  pos++;
  const max = state.posMax;

  // scan marker length
  while (pos < max && state.src.charCodeAt(pos) === 0x60 /* ` */) {
    pos++;
  }
  const marker = state.src.slice(start, pos);
  const openerLength = marker.length;
  if (state.backticksScanned && (state.backticks[openerLength] || 0) <= start) {
    if (!silent) state.pending += marker;
    state.pos += openerLength;
    return true;
  }
  let matchEnd = pos;
  let matchStart;

  // Nothing found in the cache, scan until the end of the line (or until marker is found)
  while ((matchStart = state.src.indexOf('`', matchEnd)) !== -1) {
    matchEnd = matchStart + 1;

    // scan marker length
    while (matchEnd < max && state.src.charCodeAt(matchEnd) === 0x60 /* ` */) {
      matchEnd++;
    }
    const closerLength = matchEnd - matchStart;
    if (closerLength === openerLength) {
      // Found matching closer length.
      if (!silent) {
        const token = state.push('code_inline', 'code', 0);
        token.markup = marker;
        token.content = state.src.slice(pos, matchStart).replace(/\n/g, ' ').replace(/^ (.+) $/, '$1');
      }
      state.pos = matchEnd;
      return true;
    }

    // Some different length found, put it in cache as upper limit of where closer can be found
    state.backticks[closerLength] = matchStart;
  }

  // Scanned through the end, didn't find anything
  state.backticksScanned = true;
  if (!silent) state.pending += marker;
  state.pos += openerLength;
  return true;
}

// ~~strike through~~
//

// Insert each marker as a separate text token, and add it to delimiter list
//
function strikethrough_tokenize(state, silent) {
  const start = state.pos;
  const marker = state.src.charCodeAt(start);
  if (silent) {
    return false;
  }
  if (marker !== 0x7E /* ~ */) {
    return false;
  }
  const scanned = state.scanDelims(state.pos, true);
  let len = scanned.length;
  const ch = String.fromCharCode(marker);
  if (len < 2) {
    return false;
  }
  let token;
  if (len % 2) {
    token = state.push('text', '', 0);
    token.content = ch;
    len--;
  }
  for (let i = 0; i < len; i += 2) {
    token = state.push('text', '', 0);
    token.content = ch + ch;
    state.delimiters.push({
      marker,
      length: 0,
      // disable "rule of 3" length checks meant for emphasis
      token: state.tokens.length - 1,
      end: -1,
      open: scanned.can_open,
      close: scanned.can_close
    });
  }
  state.pos += scanned.length;
  return true;
}
function postProcess$1(state, delimiters) {
  let token;
  const loneMarkers = [];
  const max = delimiters.length;
  for (let i = 0; i < max; i++) {
    const startDelim = delimiters[i];
    if (startDelim.marker !== 0x7E /* ~ */) {
      continue;
    }
    if (startDelim.end === -1) {
      continue;
    }
    const endDelim = delimiters[startDelim.end];
    token = state.tokens[startDelim.token];
    token.type = 's_open';
    token.tag = 's';
    token.nesting = 1;
    token.markup = '~~';
    token.content = '';
    token = state.tokens[endDelim.token];
    token.type = 's_close';
    token.tag = 's';
    token.nesting = -1;
    token.markup = '~~';
    token.content = '';
    if (state.tokens[endDelim.token - 1].type === 'text' && state.tokens[endDelim.token - 1].content === '~') {
      loneMarkers.push(endDelim.token - 1);
    }
  }

  // If a marker sequence has an odd number of characters, it's splitted
  // like this: `~~~~~` -> `~` + `~~` + `~~`, leaving one marker at the
  // start of the sequence.
  //
  // So, we have to move all those markers after subsequent s_close tags.
  //
  while (loneMarkers.length) {
    const i = loneMarkers.pop();
    let j = i + 1;
    while (j < state.tokens.length && state.tokens[j].type === 's_close') {
      j++;
    }
    j--;
    if (i !== j) {
      token = state.tokens[j];
      state.tokens[j] = state.tokens[i];
      state.tokens[i] = token;
    }
  }
}

// Walk through delimiter list and replace text tokens with tags
//
function strikethrough_postProcess(state) {
  const tokens_meta = state.tokens_meta;
  const max = state.tokens_meta.length;
  postProcess$1(state, state.delimiters);
  for (let curr = 0; curr < max; curr++) {
    if (tokens_meta[curr] && tokens_meta[curr].delimiters) {
      postProcess$1(state, tokens_meta[curr].delimiters);
    }
  }
}
var r_strikethrough = {
  tokenize: strikethrough_tokenize,
  postProcess: strikethrough_postProcess
};

// Process *this* and _that_
//

// Insert each marker as a separate text token, and add it to delimiter list
//
function emphasis_tokenize(state, silent) {
  const start = state.pos;
  const marker = state.src.charCodeAt(start);
  if (silent) {
    return false;
  }
  if (marker !== 0x5F /* _ */ && marker !== 0x2A /* * */) {
    return false;
  }
  const scanned = state.scanDelims(state.pos, marker === 0x2A);
  for (let i = 0; i < scanned.length; i++) {
    const token = state.push('text', '', 0);
    token.content = String.fromCharCode(marker);
    state.delimiters.push({
      // Char code of the starting marker (number).
      //
      marker,
      // Total length of these series of delimiters.
      //
      length: scanned.length,
      // A position of the token this delimiter corresponds to.
      //
      token: state.tokens.length - 1,
      // If this delimiter is matched as a valid opener, `end` will be
      // equal to its position, otherwise it's `-1`.
      //
      end: -1,
      // Boolean flags that determine if this delimiter could open or close
      // an emphasis.
      //
      open: scanned.can_open,
      close: scanned.can_close
    });
  }
  state.pos += scanned.length;
  return true;
}
function postProcess(state, delimiters) {
  const max = delimiters.length;
  for (let i = max - 1; i >= 0; i--) {
    const startDelim = delimiters[i];
    if (startDelim.marker !== 0x5F /* _ */ && startDelim.marker !== 0x2A /* * */) {
      continue;
    }

    // Process only opening markers
    if (startDelim.end === -1) {
      continue;
    }
    const endDelim = delimiters[startDelim.end];

    // If the previous delimiter has the same marker and is adjacent to this one,
    // merge those into one strong delimiter.
    //
    // `<em><em>whatever</em></em>` -> `<strong>whatever</strong>`
    //
    const isStrong = i > 0 && delimiters[i - 1].end === startDelim.end + 1 &&
    // check that first two markers match and adjacent
    delimiters[i - 1].marker === startDelim.marker && delimiters[i - 1].token === startDelim.token - 1 &&
    // check that last two markers are adjacent (we can safely assume they match)
    delimiters[startDelim.end + 1].token === endDelim.token + 1;
    const ch = String.fromCharCode(startDelim.marker);
    const token_o = state.tokens[startDelim.token];
    token_o.type = isStrong ? 'strong_open' : 'em_open';
    token_o.tag = isStrong ? 'strong' : 'em';
    token_o.nesting = 1;
    token_o.markup = isStrong ? ch + ch : ch;
    token_o.content = '';
    const token_c = state.tokens[endDelim.token];
    token_c.type = isStrong ? 'strong_close' : 'em_close';
    token_c.tag = isStrong ? 'strong' : 'em';
    token_c.nesting = -1;
    token_c.markup = isStrong ? ch + ch : ch;
    token_c.content = '';
    if (isStrong) {
      state.tokens[delimiters[i - 1].token].content = '';
      state.tokens[delimiters[startDelim.end + 1].token].content = '';
      i--;
    }
  }
}

// Walk through delimiter list and replace text tokens with tags
//
function emphasis_post_process(state) {
  const tokens_meta = state.tokens_meta;
  const max = state.tokens_meta.length;
  postProcess(state, state.delimiters);
  for (let curr = 0; curr < max; curr++) {
    if (tokens_meta[curr] && tokens_meta[curr].delimiters) {
      postProcess(state, tokens_meta[curr].delimiters);
    }
  }
}
var r_emphasis = {
  tokenize: emphasis_tokenize,
  postProcess: emphasis_post_process
};

// Process [link](<to> "stuff")

function link(state, silent) {
  let code, label, res, ref;
  let href = '';
  let title = '';
  let start = state.pos;
  let parseReference = true;
  if (state.src.charCodeAt(state.pos) !== 0x5B /* [ */) {
    return false;
  }
  const oldPos = state.pos;
  const max = state.posMax;
  const labelStart = state.pos + 1;
  const labelEnd = state.md.helpers.parseLinkLabel(state, state.pos, true);

  // parser failed to find ']', so it's not a valid link
  if (labelEnd < 0) {
    return false;
  }
  let pos = labelEnd + 1;
  if (pos < max && state.src.charCodeAt(pos) === 0x28 /* ( */) {
    //
    // Inline link
    //

    // might have found a valid shortcut link, disable reference parsing
    parseReference = false;

    // [link](  <href>  "title"  )
    //        ^^ skipping these spaces
    pos++;
    for (; pos < max; pos++) {
      code = state.src.charCodeAt(pos);
      if (!isSpace(code) && code !== 0x0A) {
        break;
      }
    }
    if (pos >= max) {
      return false;
    }

    // [link](  <href>  "title"  )
    //          ^^^^^^ parsing link destination
    start = pos;
    res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax);
    if (res.ok) {
      href = state.md.normalizeLink(res.str);
      if (state.md.validateLink(href)) {
        pos = res.pos;
      } else {
        href = '';
      }

      // [link](  <href>  "title"  )
      //                ^^ skipping these spaces
      start = pos;
      for (; pos < max; pos++) {
        code = state.src.charCodeAt(pos);
        if (!isSpace(code) && code !== 0x0A) {
          break;
        }
      }

      // [link](  <href>  "title"  )
      //                  ^^^^^^^ parsing link title
      res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax);
      if (pos < max && start !== pos && res.ok) {
        title = res.str;
        pos = res.pos;

        // [link](  <href>  "title"  )
        //                         ^^ skipping these spaces
        for (; pos < max; pos++) {
          code = state.src.charCodeAt(pos);
          if (!isSpace(code) && code !== 0x0A) {
            break;
          }
        }
      }
    }
    if (pos >= max || state.src.charCodeAt(pos) !== 0x29 /* ) */) {
      // parsing a valid shortcut link failed, fallback to reference
      parseReference = true;
    }
    pos++;
  }
  if (parseReference) {
    //
    // Link reference
    //
    if (typeof state.env.references === 'undefined') {
      return false;
    }
    if (pos < max && state.src.charCodeAt(pos) === 0x5B /* [ */) {
      start = pos + 1;
      pos = state.md.helpers.parseLinkLabel(state, pos);
      if (pos >= 0) {
        label = state.src.slice(start, pos++);
      } else {
        pos = labelEnd + 1;
      }
    } else {
      pos = labelEnd + 1;
    }

    // covers label === '' and label === undefined
    // (collapsed reference link and shortcut reference link respectively)
    if (!label) {
      label = state.src.slice(labelStart, labelEnd);
    }
    ref = state.env.references[normalizeReference(label)];
    if (!ref) {
      state.pos = oldPos;
      return false;
    }
    href = ref.href;
    title = ref.title;
  }

  //
  // We found the end of the link, and know for a fact it's a valid link;
  // so all that's left to do is to call tokenizer.
  //
  if (!silent) {
    state.pos = labelStart;
    state.posMax = labelEnd;
    const token_o = state.push('link_open', 'a', 1);
    const attrs = [['href', href]];
    token_o.attrs = attrs;
    if (title) {
      attrs.push(['title', title]);
    }
    state.linkLevel++;
    state.md.inline.tokenize(state);
    state.linkLevel--;
    state.push('link_close', 'a', -1);
  }
  state.pos = pos;
  state.posMax = max;
  return true;
}

// Process ![image](<src> "title")

function image(state, silent) {
  let code, content, label, pos, ref, res, title, start;
  let href = '';
  const oldPos = state.pos;
  const max = state.posMax;
  if (state.src.charCodeAt(state.pos) !== 0x21 /* ! */) {
    return false;
  }
  if (state.src.charCodeAt(state.pos + 1) !== 0x5B /* [ */) {
    return false;
  }
  const labelStart = state.pos + 2;
  const labelEnd = state.md.helpers.parseLinkLabel(state, state.pos + 1, false);

  // parser failed to find ']', so it's not a valid link
  if (labelEnd < 0) {
    return false;
  }
  pos = labelEnd + 1;
  if (pos < max && state.src.charCodeAt(pos) === 0x28 /* ( */) {
    //
    // Inline link
    //

    // [link](  <href>  "title"  )
    //        ^^ skipping these spaces
    pos++;
    for (; pos < max; pos++) {
      code = state.src.charCodeAt(pos);
      if (!isSpace(code) && code !== 0x0A) {
        break;
      }
    }
    if (pos >= max) {
      return false;
    }

    // [link](  <href>  "title"  )
    //          ^^^^^^ parsing link destination
    start = pos;
    res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax);
    if (res.ok) {
      href = state.md.normalizeLink(res.str);
      if (state.md.validateLink(href)) {
        pos = res.pos;
      } else {
        href = '';
      }
    }

    // [link](  <href>  "title"  )
    //                ^^ skipping these spaces
    start = pos;
    for (; pos < max; pos++) {
      code = state.src.charCodeAt(pos);
      if (!isSpace(code) && code !== 0x0A) {
        break;
      }
    }

    // [link](  <href>  "title"  )
    //                  ^^^^^^^ parsing link title
    res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax);
    if (pos < max && start !== pos && res.ok) {
      title = res.str;
      pos = res.pos;

      // [link](  <href>  "title"  )
      //                         ^^ skipping these spaces
      for (; pos < max; pos++) {
        code = state.src.charCodeAt(pos);
        if (!isSpace(code) && code !== 0x0A) {
          break;
        }
      }
    } else {
      title = '';
    }
    if (pos >= max || state.src.charCodeAt(pos) !== 0x29 /* ) */) {
      state.pos = oldPos;
      return false;
    }
    pos++;
  } else {
    //
    // Link reference
    //
    if (typeof state.env.references === 'undefined') {
      return false;
    }
    if (pos < max && state.src.charCodeAt(pos) === 0x5B /* [ */) {
      start = pos + 1;
      pos = state.md.helpers.parseLinkLabel(state, pos);
      if (pos >= 0) {
        label = state.src.slice(start, pos++);
      } else {
        pos = labelEnd + 1;
      }
    } else {
      pos = labelEnd + 1;
    }

    // covers label === '' and label === undefined
    // (collapsed reference link and shortcut reference link respectively)
    if (!label) {
      label = state.src.slice(labelStart, labelEnd);
    }
    ref = state.env.references[normalizeReference(label)];
    if (!ref) {
      state.pos = oldPos;
      return false;
    }
    href = ref.href;
    title = ref.title;
  }

  //
  // We found the end of the link, and know for a fact it's a valid link;
  // so all that's left to do is to call tokenizer.
  //
  if (!silent) {
    content = state.src.slice(labelStart, labelEnd);
    const tokens = [];
    state.md.inline.parse(content, state.md, state.env, tokens);
    const token = state.push('image', 'img', 0);
    const attrs = [['src', href], ['alt', '']];
    token.attrs = attrs;
    token.children = tokens;
    token.content = content;
    if (title) {
      attrs.push(['title', title]);
    }
  }
  state.pos = pos;
  state.posMax = max;
  return true;
}

// Process autolinks '<protocol:...>'

/* eslint max-len:0 */
const EMAIL_RE = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/;
/* eslint-disable-next-line no-control-regex */
const AUTOLINK_RE = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
function autolink(state, silent) {
  let pos = state.pos;
  if (state.src.charCodeAt(pos) !== 0x3C /* < */) {
    return false;
  }
  const start = state.pos;
  const max = state.posMax;
  for (;;) {
    if (++pos >= max) return false;
    const ch = state.src.charCodeAt(pos);
    if (ch === 0x3C /* < */) return false;
    if (ch === 0x3E /* > */) break;
  }
  const url = state.src.slice(start + 1, pos);
  if (AUTOLINK_RE.test(url)) {
    const fullUrl = state.md.normalizeLink(url);
    if (!state.md.validateLink(fullUrl)) {
      return false;
    }
    if (!silent) {
      const token_o = state.push('link_open', 'a', 1);
      token_o.attrs = [['href', fullUrl]];
      token_o.markup = 'autolink';
      token_o.info = 'auto';
      const token_t = state.push('text', '', 0);
      token_t.content = state.md.normalizeLinkText(url);
      const token_c = state.push('link_close', 'a', -1);
      token_c.markup = 'autolink';
      token_c.info = 'auto';
    }
    state.pos += url.length + 2;
    return true;
  }
  if (EMAIL_RE.test(url)) {
    const fullUrl = state.md.normalizeLink('mailto:' + url);
    if (!state.md.validateLink(fullUrl)) {
      return false;
    }
    if (!silent) {
      const token_o = state.push('link_open', 'a', 1);
      token_o.attrs = [['href', fullUrl]];
      token_o.markup = 'autolink';
      token_o.info = 'auto';
      const token_t = state.push('text', '', 0);
      token_t.content = state.md.normalizeLinkText(url);
      const token_c = state.push('link_close', 'a', -1);
      token_c.markup = 'autolink';
      token_c.info = 'auto';
    }
    state.pos += url.length + 2;
    return true;
  }
  return false;
}

// Process html tags

function isLinkOpen(str) {
  return /^<a[>\s]/i.test(str);
}
function isLinkClose(str) {
  return /^<\/a\s*>/i.test(str);
}
function isLetter(ch) {
  /* eslint no-bitwise:0 */
  const lc = ch | 0x20; // to lower case
  return lc >= 0x61 /* a */ && lc <= 0x7a /* z */;
}
function html_inline(state, silent) {
  if (!state.md.options.html) {
    return false;
  }

  // Check start
  const max = state.posMax;
  const pos = state.pos;
  if (state.src.charCodeAt(pos) !== 0x3C /* < */ || pos + 2 >= max) {
    return false;
  }

  // Quick fail on second char
  const ch = state.src.charCodeAt(pos + 1);
  if (ch !== 0x21 /* ! */ && ch !== 0x3F /* ? */ && ch !== 0x2F /* / */ && !isLetter(ch)) {
    return false;
  }
  const match = state.src.slice(pos).match(HTML_TAG_RE);
  if (!match) {
    return false;
  }
  if (!silent) {
    const token = state.push('html_inline', '', 0);
    token.content = match[0];
    if (isLinkOpen(token.content)) state.linkLevel++;
    if (isLinkClose(token.content)) state.linkLevel--;
  }
  state.pos += match[0].length;
  return true;
}

// Process html entity - &#123;, &#xAF;, &quot;, ...

const DIGITAL_RE = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i;
const NAMED_RE = /^&([a-z][a-z0-9]{1,31});/i;
function entity(state, silent) {
  const pos = state.pos;
  const max = state.posMax;
  if (state.src.charCodeAt(pos) !== 0x26 /* & */) return false;
  if (pos + 1 >= max) return false;
  const ch = state.src.charCodeAt(pos + 1);
  if (ch === 0x23 /* # */) {
    const match = state.src.slice(pos).match(DIGITAL_RE);
    if (match) {
      if (!silent) {
        const code = match[1][0].toLowerCase() === 'x' ? parseInt(match[1].slice(1), 16) : parseInt(match[1], 10);
        const token = state.push('text_special', '', 0);
        token.content = isValidEntityCode(code) ? fromCodePoint(code) : fromCodePoint(0xFFFD);
        token.markup = match[0];
        token.info = 'entity';
      }
      state.pos += match[0].length;
      return true;
    }
  } else {
    const match = state.src.slice(pos).match(NAMED_RE);
    if (match) {
      const decoded = entities.decodeHTML(match[0]);
      if (decoded !== match[0]) {
        if (!silent) {
          const token = state.push('text_special', '', 0);
          token.content = decoded;
          token.markup = match[0];
          token.info = 'entity';
        }
        state.pos += match[0].length;
        return true;
      }
    }
  }
  return false;
}

// For each opening emphasis-like marker find a matching closing one
//

function processDelimiters(delimiters) {
  const openersBottom = {};
  const max = delimiters.length;
  if (!max) return;

  // headerIdx is the first delimiter of the current (where closer is) delimiter run
  let headerIdx = 0;
  let lastTokenIdx = -2; // needs any value lower than -1
  const jumps = [];
  for (let closerIdx = 0; closerIdx < max; closerIdx++) {
    const closer = delimiters[closerIdx];
    jumps.push(0);

    // markers belong to same delimiter run if:
    //  - they have adjacent tokens
    //  - AND markers are the same
    //
    if (delimiters[headerIdx].marker !== closer.marker || lastTokenIdx !== closer.token - 1) {
      headerIdx = closerIdx;
    }
    lastTokenIdx = closer.token;

    // Length is only used for emphasis-specific "rule of 3",
    // if it's not defined (in strikethrough or 3rd party plugins),
    // we can default it to 0 to disable those checks.
    //
    closer.length = closer.length || 0;
    if (!closer.close) continue;

    // Previously calculated lower bounds (previous fails)
    // for each marker, each delimiter length modulo 3,
    // and for whether this closer can be an opener;
    // https://github.com/commonmark/cmark/commit/34250e12ccebdc6372b8b49c44fab57c72443460
    /* eslint-disable-next-line no-prototype-builtins */
    if (!openersBottom.hasOwnProperty(closer.marker)) {
      openersBottom[closer.marker] = [-1, -1, -1, -1, -1, -1];
    }
    const minOpenerIdx = openersBottom[closer.marker][(closer.open ? 3 : 0) + closer.length % 3];
    let openerIdx = headerIdx - jumps[headerIdx] - 1;
    let newMinOpenerIdx = openerIdx;
    for (; openerIdx > minOpenerIdx; openerIdx -= jumps[openerIdx] + 1) {
      const opener = delimiters[openerIdx];
      if (opener.marker !== closer.marker) continue;
      if (opener.open && opener.end < 0) {
        let isOddMatch = false;

        // from spec:
        //
        // If one of the delimiters can both open and close emphasis, then the
        // sum of the lengths of the delimiter runs containing the opening and
        // closing delimiters must not be a multiple of 3 unless both lengths
        // are multiples of 3.
        //
        if (opener.close || closer.open) {
          if ((opener.length + closer.length) % 3 === 0) {
            if (opener.length % 3 !== 0 || closer.length % 3 !== 0) {
              isOddMatch = true;
            }
          }
        }
        if (!isOddMatch) {
          // If previous delimiter cannot be an opener, we can safely skip
          // the entire sequence in future checks. This is required to make
          // sure algorithm has linear complexity (see *_*_*_*_*_... case).
          //
          const lastJump = openerIdx > 0 && !delimiters[openerIdx - 1].open ? jumps[openerIdx - 1] + 1 : 0;
          jumps[closerIdx] = closerIdx - openerIdx + lastJump;
          jumps[openerIdx] = lastJump;
          closer.open = false;
          opener.end = closerIdx;
          opener.close = false;
          newMinOpenerIdx = -1;
          // treat next token as start of run,
          // it optimizes skips in **<...>**a**<...>** pathological case
          lastTokenIdx = -2;
          break;
        }
      }
    }
    if (newMinOpenerIdx !== -1) {
      // If match for this delimiter run failed, we want to set lower bound for
      // future lookups. This is required to make sure algorithm has linear
      // complexity.
      //
      // See details here:
      // https://github.com/commonmark/cmark/issues/178#issuecomment-270417442
      //
      openersBottom[closer.marker][(closer.open ? 3 : 0) + (closer.length || 0) % 3] = newMinOpenerIdx;
    }
  }
}
function link_pairs(state) {
  const tokens_meta = state.tokens_meta;
  const max = state.tokens_meta.length;
  processDelimiters(state.delimiters);
  for (let curr = 0; curr < max; curr++) {
    if (tokens_meta[curr] && tokens_meta[curr].delimiters) {
      processDelimiters(tokens_meta[curr].delimiters);
    }
  }
}

// Clean up tokens after emphasis and strikethrough postprocessing:
// merge adjacent text nodes into one and re-calculate all token levels
//
// This is necessary because initially emphasis delimiter markers (*, _, ~)
// are treated as their own separate text tokens. Then emphasis rule either
// leaves them as text (needed to merge with adjacent text) or turns them
// into opening/closing tags (which messes up levels inside).
//

function fragments_join(state) {
  let curr, last;
  let level = 0;
  const tokens = state.tokens;
  const max = state.tokens.length;
  for (curr = last = 0; curr < max; curr++) {
    // re-calculate levels after emphasis/strikethrough turns some text nodes
    // into opening/closing tags
    if (tokens[curr].nesting < 0) level--; // closing tag
    tokens[curr].level = level;
    if (tokens[curr].nesting > 0) level++; // opening tag

    if (tokens[curr].type === 'text' && curr + 1 < max && tokens[curr + 1].type === 'text') {
      // collapse two adjacent text nodes
      tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
    } else {
      if (curr !== last) {
        tokens[last] = tokens[curr];
      }
      last++;
    }
  }
  if (curr !== last) {
    tokens.length = last;
  }
}

/** internal
 * class ParserInline
 *
 * Tokenizes paragraph content.
 **/


// Parser rules

const _rules = [['text', text], ['linkify', linkify], ['newline', newline], ['escape', escape], ['backticks', backtick], ['strikethrough', r_strikethrough.tokenize], ['emphasis', r_emphasis.tokenize], ['link', link], ['image', image], ['autolink', autolink], ['html_inline', html_inline], ['entity', entity]];

// `rule2` ruleset was created specifically for emphasis/strikethrough
// post-processing and may be changed in the future.
//
// Don't use this for anything except pairs (plugins working with `balance_pairs`).
//
const _rules2 = [['balance_pairs', link_pairs], ['strikethrough', r_strikethrough.postProcess], ['emphasis', r_emphasis.postProcess],
// rules for pairs separate '**' into its own text tokens, which may be left unused,
// rule below merges unused segments back with the rest of the text
['fragments_join', fragments_join]];

/**
 * new ParserInline()
 **/
function ParserInline() {
  /**
   * ParserInline#ruler -> Ruler
   *
   * [[Ruler]] instance. Keep configuration of inline rules.
   **/
  this.ruler = new Ruler();
  for (let i = 0; i < _rules.length; i++) {
    this.ruler.push(_rules[i][0], _rules[i][1]);
  }

  /**
   * ParserInline#ruler2 -> Ruler
   *
   * [[Ruler]] instance. Second ruler used for post-processing
   * (e.g. in emphasis-like rules).
   **/
  this.ruler2 = new Ruler();
  for (let i = 0; i < _rules2.length; i++) {
    this.ruler2.push(_rules2[i][0], _rules2[i][1]);
  }
}

// Skip single token by running all rules in validation mode;
// returns `true` if any rule reported success
//
ParserInline.prototype.skipToken = function (state) {
  const pos = state.pos;
  const rules = this.ruler.getRules('');
  const len = rules.length;
  const maxNesting = state.md.options.maxNesting;
  const cache = state.cache;
  if (typeof cache[pos] !== 'undefined') {
    state.pos = cache[pos];
    return;
  }
  let ok = false;
  if (state.level < maxNesting) {
    for (let i = 0; i < len; i++) {
      // Increment state.level and decrement it later to limit recursion.
      // It's harmless to do here, because no tokens are created. But ideally,
      // we'd need a separate private state variable for this purpose.
      //
      state.level++;
      ok = rules[i](state, true);
      state.level--;
      if (ok) {
        if (pos >= state.pos) {
          throw new Error("inline rule didn't increment state.pos");
        }
        break;
      }
    }
  } else {
    // Too much nesting, just skip until the end of the paragraph.
    //
    // NOTE: this will cause links to behave incorrectly in the following case,
    //       when an amount of `[` is exactly equal to `maxNesting + 1`:
    //
    //       [[[[[[[[[[[[[[[[[[[[[foo]()
    //
    // TODO: remove this workaround when CM standard will allow nested links
    //       (we can replace it by preventing links from being parsed in
    //       validation mode)
    //
    state.pos = state.posMax;
  }
  if (!ok) {
    state.pos++;
  }
  cache[pos] = state.pos;
};

// Generate tokens for input range
//
ParserInline.prototype.tokenize = function (state) {
  const rules = this.ruler.getRules('');
  const len = rules.length;
  const end = state.posMax;
  const maxNesting = state.md.options.maxNesting;
  while (state.pos < end) {
    // Try all possible rules.
    // On success, rule should:
    //
    // - update `state.pos`
    // - update `state.tokens`
    // - return true
    const prevPos = state.pos;
    let ok = false;
    if (state.level < maxNesting) {
      for (let i = 0; i < len; i++) {
        ok = rules[i](state, false);
        if (ok) {
          if (prevPos >= state.pos) {
            throw new Error("inline rule didn't increment state.pos");
          }
          break;
        }
      }
    }
    if (ok) {
      if (state.pos >= end) {
        break;
      }
      continue;
    }
    state.pending += state.src[state.pos++];
  }
  if (state.pending) {
    state.pushPending();
  }
};

/**
 * ParserInline.parse(str, md, env, outTokens)
 *
 * Process input string and push inline tokens into `outTokens`
 **/
ParserInline.prototype.parse = function (str, md, env, outTokens) {
  const state = new this.State(str, md, env, outTokens);
  this.tokenize(state);
  const rules = this.ruler2.getRules('');
  const len = rules.length;
  for (let i = 0; i < len; i++) {
    rules[i](state);
  }
};
ParserInline.prototype.State = StateInline;

// markdown-it default options

var cfg_default = {
  options: {
    // Enable HTML tags in source
    html: false,
    // Use '/' to close single tags (<br />)
    xhtmlOut: false,
    // Convert '\n' in paragraphs into <br>
    breaks: false,
    // CSS language prefix for fenced blocks
    langPrefix: 'language-',
    // autoconvert URL-like texts to links
    linkify: false,
    // Enable some language-neutral replacements + quotes beautification
    typographer: false,
    // Double + single quotes replacement pairs, when typographer enabled,
    // and smartquotes on. Could be either a String or an Array.
    //
    // For example, you can use '«»„“' for Russian, '„“‚‘' for German,
    // and ['«\xA0', '\xA0»', '‹\xA0', '\xA0›'] for French (including nbsp).
    quotes: '\u201c\u201d\u2018\u2019',
    /* “”‘’ */

    // Highlighter function. Should return escaped HTML,
    // or '' if the source string is not changed and should be escaped externaly.
    // If result starts with <pre... internal wrapper is skipped.
    //
    // function (/*str, lang*/) { return ''; }
    //
    highlight: null,
    // Internal protection, recursion limit
    maxNesting: 100
  },
  components: {
    core: {},
    block: {},
    inline: {}
  }
};

// "Zero" preset, with nothing enabled. Useful for manual configuring of simple
// modes. For example, to parse bold/italic only.

var cfg_zero = {
  options: {
    // Enable HTML tags in source
    html: false,
    // Use '/' to close single tags (<br />)
    xhtmlOut: false,
    // Convert '\n' in paragraphs into <br>
    breaks: false,
    // CSS language prefix for fenced blocks
    langPrefix: 'language-',
    // autoconvert URL-like texts to links
    linkify: false,
    // Enable some language-neutral replacements + quotes beautification
    typographer: false,
    // Double + single quotes replacement pairs, when typographer enabled,
    // and smartquotes on. Could be either a String or an Array.
    //
    // For example, you can use '«»„“' for Russian, '„“‚‘' for German,
    // and ['«\xA0', '\xA0»', '‹\xA0', '\xA0›'] for French (including nbsp).
    quotes: '\u201c\u201d\u2018\u2019',
    /* “”‘’ */

    // Highlighter function. Should return escaped HTML,
    // or '' if the source string is not changed and should be escaped externaly.
    // If result starts with <pre... internal wrapper is skipped.
    //
    // function (/*str, lang*/) { return ''; }
    //
    highlight: null,
    // Internal protection, recursion limit
    maxNesting: 20
  },
  components: {
    core: {
      rules: ['normalize', 'block', 'inline', 'text_join']
    },
    block: {
      rules: ['paragraph']
    },
    inline: {
      rules: ['text'],
      rules2: ['balance_pairs', 'fragments_join']
    }
  }
};

// Commonmark default options

var cfg_commonmark = {
  options: {
    // Enable HTML tags in source
    html: true,
    // Use '/' to close single tags (<br />)
    xhtmlOut: true,
    // Convert '\n' in paragraphs into <br>
    breaks: false,
    // CSS language prefix for fenced blocks
    langPrefix: 'language-',
    // autoconvert URL-like texts to links
    linkify: false,
    // Enable some language-neutral replacements + quotes beautification
    typographer: false,
    // Double + single quotes replacement pairs, when typographer enabled,
    // and smartquotes on. Could be either a String or an Array.
    //
    // For example, you can use '«»„“' for Russian, '„“‚‘' for German,
    // and ['«\xA0', '\xA0»', '‹\xA0', '\xA0›'] for French (including nbsp).
    quotes: '\u201c\u201d\u2018\u2019',
    /* “”‘’ */

    // Highlighter function. Should return escaped HTML,
    // or '' if the source string is not changed and should be escaped externaly.
    // If result starts with <pre... internal wrapper is skipped.
    //
    // function (/*str, lang*/) { return ''; }
    //
    highlight: null,
    // Internal protection, recursion limit
    maxNesting: 20
  },
  components: {
    core: {
      rules: ['normalize', 'block', 'inline', 'text_join']
    },
    block: {
      rules: ['blockquote', 'code', 'fence', 'heading', 'hr', 'html_block', 'lheading', 'list', 'reference', 'paragraph']
    },
    inline: {
      rules: ['autolink', 'backticks', 'emphasis', 'entity', 'escape', 'html_inline', 'image', 'link', 'newline', 'text'],
      rules2: ['balance_pairs', 'emphasis', 'fragments_join']
    }
  }
};

// Main parser class

const config = {
  default: cfg_default,
  zero: cfg_zero,
  commonmark: cfg_commonmark
};

//
// This validator can prohibit more than really needed to prevent XSS. It's a
// tradeoff to keep code simple and to be secure by default.
//
// If you need different setup - override validator method as you wish. Or
// replace it with dummy function and use external sanitizer.
//

const BAD_PROTO_RE = /^(vbscript|javascript|file|data):/;
const GOOD_DATA_RE = /^data:image\/(gif|png|jpeg|webp);/;
function validateLink(url) {
  // url should be normalized at this point, and existing entities are decoded
  const str = url.trim().toLowerCase();
  return BAD_PROTO_RE.test(str) ? GOOD_DATA_RE.test(str) : true;
}
const RECODE_HOSTNAME_FOR = ['http:', 'https:', 'mailto:'];
function normalizeLink(url) {
  const parsed = mdurl__namespace.parse(url, true);
  if (parsed.hostname) {
    // Encode hostnames in urls like:
    // `http://host/`, `https://host/`, `mailto:user@host`, `//host/`
    //
    // We don't encode unknown schemas, because it's likely that we encode
    // something we shouldn't (e.g. `skype:name` treated as `skype:host`)
    //
    if (!parsed.protocol || RECODE_HOSTNAME_FOR.indexOf(parsed.protocol) >= 0) {
      try {
        parsed.hostname = punycode.toASCII(parsed.hostname);
      } catch (er) {/**/}
    }
  }
  return mdurl__namespace.encode(mdurl__namespace.format(parsed));
}
function normalizeLinkText(url) {
  const parsed = mdurl__namespace.parse(url, true);
  if (parsed.hostname) {
    // Encode hostnames in urls like:
    // `http://host/`, `https://host/`, `mailto:user@host`, `//host/`
    //
    // We don't encode unknown schemas, because it's likely that we encode
    // something we shouldn't (e.g. `skype:name` treated as `skype:host`)
    //
    if (!parsed.protocol || RECODE_HOSTNAME_FOR.indexOf(parsed.protocol) >= 0) {
      try {
        parsed.hostname = punycode.toUnicode(parsed.hostname);
      } catch (er) {/**/}
    }
  }

  // add '%' to exclude list because of https://github.com/markdown-it/markdown-it/issues/720
  return mdurl__namespace.decode(mdurl__namespace.format(parsed), mdurl__namespace.decode.defaultChars + '%');
}

/**
 * class MarkdownIt
 *
 * Main parser/renderer class.
 *
 * ##### Usage
 *
 * ```javascript
 * // node.js, "classic" way:
 * var MarkdownIt = require('markdown-it'),
 *     md = new MarkdownIt();
 * var result = md.render('# markdown-it rulezz!');
 *
 * // node.js, the same, but with sugar:
 * var md = require('markdown-it')();
 * var result = md.render('# markdown-it rulezz!');
 *
 * // browser without AMD, added to "window" on script load
 * // Note, there are no dash.
 * var md = window.markdownit();
 * var result = md.render('# markdown-it rulezz!');
 * ```
 *
 * Single line rendering, without paragraph wrap:
 *
 * ```javascript
 * var md = require('markdown-it')();
 * var result = md.renderInline('__markdown-it__ rulezz!');
 * ```
 **/

/**
 * new MarkdownIt([presetName, options])
 * - presetName (String): optional, `commonmark` / `zero`
 * - options (Object)
 *
 * Creates parser instanse with given config. Can be called without `new`.
 *
 * ##### presetName
 *
 * MarkdownIt provides named presets as a convenience to quickly
 * enable/disable active syntax rules and options for common use cases.
 *
 * - ["commonmark"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/commonmark.mjs) -
 *   configures parser to strict [CommonMark](http://commonmark.org/) mode.
 * - [default](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/default.mjs) -
 *   similar to GFM, used when no preset name given. Enables all available rules,
 *   but still without html, typographer & autolinker.
 * - ["zero"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/zero.mjs) -
 *   all rules disabled. Useful to quickly setup your config via `.enable()`.
 *   For example, when you need only `bold` and `italic` markup and nothing else.
 *
 * ##### options:
 *
 * - __html__ - `false`. Set `true` to enable HTML tags in source. Be careful!
 *   That's not safe! You may need external sanitizer to protect output from XSS.
 *   It's better to extend features via plugins, instead of enabling HTML.
 * - __xhtmlOut__ - `false`. Set `true` to add '/' when closing single tags
 *   (`<br />`). This is needed only for full CommonMark compatibility. In real
 *   world you will need HTML output.
 * - __breaks__ - `false`. Set `true` to convert `\n` in paragraphs into `<br>`.
 * - __langPrefix__ - `language-`. CSS language class prefix for fenced blocks.
 *   Can be useful for external highlighters.
 * - __linkify__ - `false`. Set `true` to autoconvert URL-like text to links.
 * - __typographer__  - `false`. Set `true` to enable [some language-neutral
 *   replacement](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/replacements.mjs) +
 *   quotes beautification (smartquotes).
 * - __quotes__ - `“”‘’`, String or Array. Double + single quotes replacement
 *   pairs, when typographer enabled and smartquotes on. For example, you can
 *   use `'«»„“'` for Russian, `'„“‚‘'` for German, and
 *   `['«\xA0', '\xA0»', '‹\xA0', '\xA0›']` for French (including nbsp).
 * - __highlight__ - `null`. Highlighter function for fenced code blocks.
 *   Highlighter `function (str, lang)` should return escaped HTML. It can also
 *   return empty string if the source was not changed and should be escaped
 *   externaly. If result starts with <pre... internal wrapper is skipped.
 *
 * ##### Example
 *
 * ```javascript
 * // commonmark mode
 * var md = require('markdown-it')('commonmark');
 *
 * // default mode
 * var md = require('markdown-it')();
 *
 * // enable everything
 * var md = require('markdown-it')({
 *   html: true,
 *   linkify: true,
 *   typographer: true
 * });
 * ```
 *
 * ##### Syntax highlighting
 *
 * ```js
 * var hljs = require('highlight.js') // https://highlightjs.org/
 *
 * var md = require('markdown-it')({
 *   highlight: function (str, lang) {
 *     if (lang && hljs.getLanguage(lang)) {
 *       try {
 *         return hljs.highlight(str, { language: lang, ignoreIllegals: true }).value;
 *       } catch (__) {}
 *     }
 *
 *     return ''; // use external default escaping
 *   }
 * });
 * ```
 *
 * Or with full wrapper override (if you need assign class to `<pre>` or `<code>`):
 *
 * ```javascript
 * var hljs = require('highlight.js') // https://highlightjs.org/
 *
 * // Actual default values
 * var md = require('markdown-it')({
 *   highlight: function (str, lang) {
 *     if (lang && hljs.getLanguage(lang)) {
 *       try {
 *         return '<pre><code class="hljs">' +
 *                hljs.highlight(str, { language: lang, ignoreIllegals: true }).value +
 *                '</code></pre>';
 *       } catch (__) {}
 *     }
 *
 *     return '<pre><code class="hljs">' + md.utils.escapeHtml(str) + '</code></pre>';
 *   }
 * });
 * ```
 *
 **/
function MarkdownIt(presetName, options) {
  if (!(this instanceof MarkdownIt)) {
    return new MarkdownIt(presetName, options);
  }
  if (!options) {
    if (!isString(presetName)) {
      options = presetName || {};
      presetName = 'default';
    }
  }

  /**
   * MarkdownIt#inline -> ParserInline
   *
   * Instance of [[ParserInline]]. You may need it to add new rules when
   * writing plugins. For simple rules control use [[MarkdownIt.disable]] and
   * [[MarkdownIt.enable]].
   **/
  this.inline = new ParserInline();

  /**
   * MarkdownIt#block -> ParserBlock
   *
   * Instance of [[ParserBlock]]. You may need it to add new rules when
   * writing plugins. For simple rules control use [[MarkdownIt.disable]] and
   * [[MarkdownIt.enable]].
   **/
  this.block = new ParserBlock();

  /**
   * MarkdownIt#core -> Core
   *
   * Instance of [[Core]] chain executor. You may need it to add new rules when
   * writing plugins. For simple rules control use [[MarkdownIt.disable]] and
   * [[MarkdownIt.enable]].
   **/
  this.core = new Core();

  /**
   * MarkdownIt#renderer -> Renderer
   *
   * Instance of [[Renderer]]. Use it to modify output look. Or to add rendering
   * rules for new token types, generated by plugins.
   *
   * ##### Example
   *
   * ```javascript
   * var md = require('markdown-it')();
   *
   * function myToken(tokens, idx, options, env, self) {
   *   //...
   *   return result;
   * };
   *
   * md.renderer.rules['my_token'] = myToken
   * ```
   *
   * See [[Renderer]] docs and [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.mjs).
   **/
  this.renderer = new Renderer();

  /**
   * MarkdownIt#linkify -> LinkifyIt
   *
   * [linkify-it](https://github.com/markdown-it/linkify-it) instance.
   * Used by [linkify](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/linkify.mjs)
   * rule.
   **/
  this.linkify = new LinkifyIt();

  /**
   * MarkdownIt#validateLink(url) -> Boolean
   *
   * Link validation function. CommonMark allows too much in links. By default
   * we disable `javascript:`, `vbscript:`, `file:` schemas, and almost all `data:...` schemas
   * except some embedded image types.
   *
   * You can change this behaviour:
   *
   * ```javascript
   * var md = require('markdown-it')();
   * // enable everything
   * md.validateLink = function () { return true; }
   * ```
   **/
  this.validateLink = validateLink;

  /**
   * MarkdownIt#normalizeLink(url) -> String
   *
   * Function used to encode link url to a machine-readable format,
   * which includes url-encoding, punycode, etc.
   **/
  this.normalizeLink = normalizeLink;

  /**
   * MarkdownIt#normalizeLinkText(url) -> String
   *
   * Function used to decode link url to a human-readable format`
   **/
  this.normalizeLinkText = normalizeLinkText;

  // Expose utils & helpers for easy acces from plugins

  /**
   * MarkdownIt#utils -> utils
   *
   * Assorted utility functions, useful to write plugins. See details
   * [here](https://github.com/markdown-it/markdown-it/blob/master/lib/common/utils.mjs).
   **/
  this.utils = utils;

  /**
   * MarkdownIt#helpers -> helpers
   *
   * Link components parser functions, useful to write plugins. See details
   * [here](https://github.com/markdown-it/markdown-it/blob/master/lib/helpers).
   **/
  this.helpers = assign({}, helpers);
  this.options = {};
  this.configure(presetName);
  if (options) {
    this.set(options);
  }
}

/** chainable
 * MarkdownIt.set(options)
 *
 * Set parser options (in the same format as in constructor). Probably, you
 * will never need it, but you can change options after constructor call.
 *
 * ##### Example
 *
 * ```javascript
 * var md = require('markdown-it')()
 *             .set({ html: true, breaks: true })
 *             .set({ typographer, true });
 * ```
 *
 * __Note:__ To achieve the best possible performance, don't modify a
 * `markdown-it` instance options on the fly. If you need multiple configurations
 * it's best to create multiple instances and initialize each with separate
 * config.
 **/
MarkdownIt.prototype.set = function (options) {
  assign(this.options, options);
  return this;
};

/** chainable, internal
 * MarkdownIt.configure(presets)
 *
 * Batch load of all options and compenent settings. This is internal method,
 * and you probably will not need it. But if you will - see available presets
 * and data structure [here](https://github.com/markdown-it/markdown-it/tree/master/lib/presets)
 *
 * We strongly recommend to use presets instead of direct config loads. That
 * will give better compatibility with next versions.
 **/
MarkdownIt.prototype.configure = function (presets) {
  const self = this;
  if (isString(presets)) {
    const presetName = presets;
    presets = config[presetName];
    if (!presets) {
      throw new Error('Wrong `markdown-it` preset "' + presetName + '", check name');
    }
  }
  if (!presets) {
    throw new Error('Wrong `markdown-it` preset, can\'t be empty');
  }
  if (presets.options) {
    self.set(presets.options);
  }
  if (presets.components) {
    Object.keys(presets.components).forEach(function (name) {
      if (presets.components[name].rules) {
        self[name].ruler.enableOnly(presets.components[name].rules);
      }
      if (presets.components[name].rules2) {
        self[name].ruler2.enableOnly(presets.components[name].rules2);
      }
    });
  }
  return this;
};

/** chainable
 * MarkdownIt.enable(list, ignoreInvalid)
 * - list (String|Array): rule name or list of rule names to enable
 * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
 *
 * Enable list or rules. It will automatically find appropriate components,
 * containing rules with given names. If rule not found, and `ignoreInvalid`
 * not set - throws exception.
 *
 * ##### Example
 *
 * ```javascript
 * var md = require('markdown-it')()
 *             .enable(['sub', 'sup'])
 *             .disable('smartquotes');
 * ```
 **/
MarkdownIt.prototype.enable = function (list, ignoreInvalid) {
  let result = [];
  if (!Array.isArray(list)) {
    list = [list];
  }
  ['core', 'block', 'inline'].forEach(function (chain) {
    result = result.concat(this[chain].ruler.enable(list, true));
  }, this);
  result = result.concat(this.inline.ruler2.enable(list, true));
  const missed = list.filter(function (name) {
    return result.indexOf(name) < 0;
  });
  if (missed.length && !ignoreInvalid) {
    throw new Error('MarkdownIt. Failed to enable unknown rule(s): ' + missed);
  }
  return this;
};

/** chainable
 * MarkdownIt.disable(list, ignoreInvalid)
 * - list (String|Array): rule name or list of rule names to disable.
 * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.
 *
 * The same as [[MarkdownIt.enable]], but turn specified rules off.
 **/
MarkdownIt.prototype.disable = function (list, ignoreInvalid) {
  let result = [];
  if (!Array.isArray(list)) {
    list = [list];
  }
  ['core', 'block', 'inline'].forEach(function (chain) {
    result = result.concat(this[chain].ruler.disable(list, true));
  }, this);
  result = result.concat(this.inline.ruler2.disable(list, true));
  const missed = list.filter(function (name) {
    return result.indexOf(name) < 0;
  });
  if (missed.length && !ignoreInvalid) {
    throw new Error('MarkdownIt. Failed to disable unknown rule(s): ' + missed);
  }
  return this;
};

/** chainable
 * MarkdownIt.use(plugin, params)
 *
 * Load specified plugin with given params into current parser instance.
 * It's just a sugar to call `plugin(md, params)` with curring.
 *
 * ##### Example
 *
 * ```javascript
 * var iterator = require('markdown-it-for-inline');
 * var md = require('markdown-it')()
 *             .use(iterator, 'foo_replace', 'text', function (tokens, idx) {
 *               tokens[idx].content = tokens[idx].content.replace(/foo/g, 'bar');
 *             });
 * ```
 **/
MarkdownIt.prototype.use = function (plugin /*, params, ... */) {
  const args = [this].concat(Array.prototype.slice.call(arguments, 1));
  plugin.apply(plugin, args);
  return this;
};

/** internal
 * MarkdownIt.parse(src, env) -> Array
 * - src (String): source string
 * - env (Object): environment sandbox
 *
 * Parse input string and return list of block tokens (special token type
 * "inline" will contain list of inline tokens). You should not call this
 * method directly, until you write custom renderer (for example, to produce
 * AST).
 *
 * `env` is used to pass data between "distributed" rules and return additional
 * metadata like reference info, needed for the renderer. It also can be used to
 * inject data in specific cases. Usually, you will be ok to pass `{}`,
 * and then pass updated object to renderer.
 **/
MarkdownIt.prototype.parse = function (src, env) {
  if (typeof src !== 'string') {
    throw new Error('Input data should be a String');
  }
  const state = new this.core.State(src, this, env);
  this.core.process(state);
  return state.tokens;
};

/**
 * MarkdownIt.render(src [, env]) -> String
 * - src (String): source string
 * - env (Object): environment sandbox
 *
 * Render markdown string into html. It does all magic for you :).
 *
 * `env` can be used to inject additional metadata (`{}` by default).
 * But you will not need it with high probability. See also comment
 * in [[MarkdownIt.parse]].
 **/
MarkdownIt.prototype.render = function (src, env) {
  env = env || {};
  return this.renderer.render(this.parse(src, env), this.options, env);
};

/** internal
 * MarkdownIt.parseInline(src, env) -> Array
 * - src (String): source string
 * - env (Object): environment sandbox
 *
 * The same as [[MarkdownIt.parse]] but skip all block rules. It returns the
 * block tokens list with the single `inline` element, containing parsed inline
 * tokens in `children` property. Also updates `env` object.
 **/
MarkdownIt.prototype.parseInline = function (src, env) {
  const state = new this.core.State(src, this, env);
  state.inlineMode = true;
  this.core.process(state);
  return state.tokens;
};

/**
 * MarkdownIt.renderInline(src [, env]) -> String
 * - src (String): source string
 * - env (Object): environment sandbox
 *
 * Similar to [[MarkdownIt.render]] but for single paragraph content. Result
 * will NOT be wrapped into `<p>` tags.
 **/
MarkdownIt.prototype.renderInline = function (src, env) {
  env = env || {};
  return this.renderer.render(this.parseInline(src, env), this.options, env);
};

module.exports = MarkdownIt;


/***/ }),

/***/ 50412:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(22365);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("16e33528", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 50481:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-row[data-v-a3d40d2c] {\n  display: flex;\n  flex-direction: row;\n}\n.gwd-inline-row[data-v-a3d40d2c] {\n  display: inline-flex;\n  flex-direction: row;\n}\n.gwd-column[data-v-a3d40d2c] {\n  display: flex;\n  flex-direction: column;\n}\n.gwd-inline-column[data-v-a3d40d2c] {\n  display: inline-flex;\n  flex-direction: column;\n}\n.gwd-align[data-v-a3d40d2c] {\n  align-content: center;\n  align-items: center;\n}\n.gwd-jcc[data-v-a3d40d2c] {\n  justify-content: center;\n}\n.gwd-jic[data-v-a3d40d2c] {\n  justify-items: center;\n}\n.gwd-button[data-v-a3d40d2c] {\n  outline: none;\n  border: none;\n}\n.bjg-bar-button[data-v-a3d40d2c] {\n  font-size: 0;\n}\n.bjg-hover-bg[data-v-a3d40d2c] {\n  background: #fffbef;\n}\n.bjg-bar-button[data-v-a3d40d2c]:hover {\n  background: #fffbef;\n  cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window[data-v-a3d40d2c] {\n  display: block;\n}\n.mainbar-fold .bjg-bar-button[data-v-a3d40d2c],\n.mainbar-fold #top_coupon_btn[data-v-a3d40d2c],\n.mainbar-fold .rinfo-btn[data-v-a3d40d2c],\n.mainbar-fold .gwd-bottom-tmall[data-v-a3d40d2c] {\n  display: none!important;\n}\n.gwd-font12[data-v-a3d40d2c] {\n  font-size: 12px;\n}\n.gwd-font14[data-v-a3d40d2c] {\n  font-size: 14px;\n}\n.gwd-red[data-v-a3d40d2c] {\n  color: #ff3532;\n}\n.gwd-red-bg[data-v-a3d40d2c] {\n  background: #ff3532;\n}\n.gwd-hui333[data-v-a3d40d2c] {\n  color: #333333;\n}\n.gwd-hui999[data-v-a3d40d2c] {\n  color: #999999;\n}\n.gwd-font10[data-v-a3d40d2c] {\n  font-size: 12px;\n  transform: scale(0.8333);\n  transform-origin: bottom center;\n}\n.gwd-font11[data-v-a3d40d2c] {\n  font-size: 12px;\n  transform: scale(0.91666);\n  transform-origin: bottom center;\n}\n.gwd-font9[data-v-a3d40d2c] {\n  font-size: 12px;\n  transform: scale(0.75);\n  transform-origin: bottom center;\n}\n.gwd-hoverable[data-v-a3d40d2c]:hover {\n  background: #edf1f2;\n}\n.right-info > *[data-v-a3d40d2c] {\n  border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit[data-v-a3d40d2c]:hover {\n  color: #e03024 !important;\n}\n.gwd-button[data-v-a3d40d2c]:hover {\n  filter: brightness(1.1);\n}\n.gwd-button[data-v-a3d40d2c] {\n  padding-top: 1px;\n  padding-bottom: 1px;\n}\n.gwd-button[data-v-a3d40d2c]:active {\n  filter: brightness(0.9);\n}\n.gwd-fadeout-5s[data-v-a3d40d2c] {\n  opacity: 0;\n  transition: opacity 5s;\n}\n.gwd-scrollbar[data-v-a3d40d2c]::-webkit-scrollbar {\n  width: 6px;\n  border-radius: 17px;\n}\n.gwd-scrollbar[data-v-a3d40d2c]::-webkit-scrollbar-thumb {\n  border-radius: 17px;\n  background: #999;\n}\n#gwdang_main[data-v-a3d40d2c],\n.gwdang-main[data-v-a3d40d2c],\n.bjgext-detail[data-v-a3d40d2c] {\n  font-size: 12px;\n}\n#gwdang_main button[data-v-a3d40d2c],\n.gwdang-main button[data-v-a3d40d2c],\n.bjgext-detail button[data-v-a3d40d2c] {\n  text-align: center;\n}\n.gwd-width-100[data-v-a3d40d2c] {\n  width: 100%;\n}\n.gwd-overlay[data-v-a3d40d2c] {\n  font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n  font-size: 0;\n  position: fixed;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  background: rgba(0, 0, 0, 0.35);\n  z-index: 999999999;\n}\n.gwd-font-pfm[data-v-a3d40d2c] {\n  font-family: 'PingFangSC-Medium';\n  font-weight: normal!important;\n}\n@font-face {\n  font-family: 'PingFangSC-Medium';\n  src: local('PingFangSC-Medium');\n}\n.gwd-font-pfm[data-v-a3d40d2c] {\n  font-family: local('PingFangSC-Medium'), system-ui;\n  font-weight: bold;\n}\n#gwd_minibar svg[data-v-a3d40d2c],\n.gwdang-main svg[data-v-a3d40d2c],\n#bjgext_mb_bg svg[data-v-a3d40d2c],\n#bjgext_mainbar svg[data-v-a3d40d2c] {\n  fill: transparent;\n}\n.gwd-common-font[data-v-a3d40d2c] {\n  font-family: 'PingFang SC', 'Microsoft YaHei', '\\5FAE\\8F6F\\96C5\\9ED1', 'Hiragino Sans GB', 'WenQuanYi Micro Hei';\n}\n.gwd-protect-hint[data-v-a3d40d2c] {\n  color: #005aa0;\n  font-size: 12px;\n  position: relative;\n  font-family: 'Microsoft YaHei', 'Arial', 'SimSun', serif;\n  display: inline-block;\n  min-width: 72px;\n  text-align: center;\n}\n.gwd-taobao.gwd-protect-hint[data-v-a3d40d2c],\n.gwd-tmall.gwd-protect-hint[data-v-a3d40d2c],\n.gwd-360buyv2.gwd-protect-hint[data-v-a3d40d2c] {\n  font-size: 14px;\n  color: #11192d;\n  top: -2px;\n  margin-left: 16px;\n  min-width: 96px;\n}\n.gwd-taobao.gwd-protect-hint[data-v-a3d40d2c]::before,\n.gwd-tmall.gwd-protect-hint[data-v-a3d40d2c]::before,\n.gwd-360buyv2.gwd-protect-hint[data-v-a3d40d2c]::before {\n  content: '';\n  position: absolute;\n  left: -10px;\n  top: 2px;\n  width: 1px;\n  height: 18px;\n  background-color: #e2e4e6;\n}\n.gwd-360buyv2.gwd-protect-hint[data-v-a3d40d2c] {\n  font-size: 14px!important;\n  top: 0;\n}\n.gwd-tmcs.gwd-protect-hint[data-v-a3d40d2c] {\n  font-size: 14px;\n  color: #11192d;\n  top: 0px;\n  margin-left: 16px;\n  z-index: 9;\n  min-width: 96px;\n}\n.gwd-tmcs.gwd-protect-hint[data-v-a3d40d2c]::before {\n  content: '';\n  position: absolute;\n  left: -10px;\n  top: 1px;\n  width: 1px;\n  height: 18px;\n  background-color: #e2e4e6;\n}\n.gwd-360buy.gwd-protect-hint[data-v-a3d40d2c] {\n  font-size: 12px;\n  color: #005aa0;\n  margin-left: 16px;\n}\n.gwd-360buy.gwd-protect-hint[data-v-a3d40d2c]::before {\n  content: '';\n  position: absolute;\n  left: -10px;\n  top: 0px;\n  width: 1px;\n  height: 18px;\n  background-color: #e2e4e6;\n}\n.gwd-360buy.gwd-protect-hint .gwd-title-inner[data-v-a3d40d2c] {\n  font-size: 12px !important;\n  color: #005aa0 !important;\n}\n.gwd-360buy.gwd-protect-hint .gwd-protect-bar[data-v-a3d40d2c] {\n  left: 50%;\n}\n.gwd-vipshop.gwd-protect-hint[data-v-a3d40d2c] {\n  font-size: 12px;\n  color: #333;\n  top: 15px;\n  margin-left: 20px;\n}\n.gwd-vipshop.gwd-protect-hint .gwd-title-inner[data-v-a3d40d2c] {\n  font-size: 12px !important;\n  color: #005aa0 !important;\n}\n.gwd-vipshop.gwd-protect-hint .gwd-protect-bar[data-v-a3d40d2c] {\n  left: 50%;\n}\n.gwd-protect-bar[data-v-a3d40d2c] {\n  z-index: 999;\n  top: 50%;\n  left: calc(50% + 2px);\n  transform: translate(-50%, -50%);\n  display: none;\n  align-items: center;\n  justify-content: center;\n  width: 108px;\n  height: 31px;\n  box-sizing: border-box;\n  position: absolute;\n  background: white;\n  border: 1px solid #e6e9eb;\n  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1);\n}\n.gwd-protect-bar .gwd-protect-window[data-v-a3d40d2c] {\n  text-align: left;\n  width: 406px;\n  height: 260px;\n  background: white;\n  border: 1px solid #e6e9eb;\n  position: absolute;\n  top: 30px;\n  left: 50%;\n  margin-left: -203px;\n  z-index: 99;\n  display: flex;\n  box-sizing: border-box;\n  padding: 16px;\n  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1);\n}\n.gwd-protect-bar .gwd-protect-window[data-v-a3d40d2c]::before {\n  content: '';\n  position: absolute;\n  top: -9px;\n  left: 50%;\n  transform: translateX(-50%);\n  width: 106px;\n  height: 11px;\n  background: white;\n  z-index: 1000;\n}\n.gwd-protect-hint-hover .gwd-protect-bar[data-v-a3d40d2c] {\n  display: flex;\n}\n.gwd-taobao .gwd-protect-bar[data-v-a3d40d2c],\n.gwd-tmall .gwd-protect-bar[data-v-a3d40d2c],\n.gwd-tmcs .gwd-protect-bar[data-v-a3d40d2c] {\n  left: calc(50%);\n}\n.gwd-vline[data-v-a3d40d2c] {\n  border-right: 1px dashed #e6e9eb;\n  margin-left: 20px;\n  margin-right: 14px;\n}\n.gwd-submit-item[data-v-a3d40d2c] {\n  display: flex;\n  align-items: center;\n  height: 40px;\n}\n.gwd-submit-item span[data-v-a3d40d2c] {\n  font-size: 13px;\n  color: #999;\n}\n.gwd-submit-item .gwd-input[data-v-a3d40d2c] {\n  flex: 1;\n  height: 30px;\n  border-bottom: 1px solid #e6e9eb;\n  align-items: center;\n  font-size: 13px;\n  color: #404547;\n  margin-left: 10px;\n}\n.gwd-button[data-v-a3d40d2c] {\n  background: #48befe;\n  color: white;\n  font-size: 14px;\n  margin-left: 86px;\n  margin-top: 12px;\n  width: 128px;\n  height: 32px;\n  border-radius: 4px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  cursor: pointer;\n}\n.gwd-error-msg[data-v-a3d40d2c] {\n  color: red;\n  font-size: 12px;\n  text-align: center;\n  position: absolute;\n  bottom: 32px;\n  width: 100%;\n  transition: opacity 0.5s;\n  pointer-events: none;\n}\n.gwd-error-msg-fading[data-v-a3d40d2c] {\n  opacity: 0;\n}\n", ""]);

// exports


/***/ }),

/***/ 50575:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64, ";

/***/ }),

/***/ 50627:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "\n#gwd_mini_compare_detail[data-v-5aa6bd38] {\n  position: absolute;\n  margin: 0px 0 12px 0px;\n  height: auto;\n  width: 278px;\n  top: 36px;\n  left: 50%;\n  margin-left: -139px;\n  background-color: #fff;\n  display: none;\n  z-index: 9999999;\n  border: 1px solid #edf1f2;\n  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.11);\n  /* z-index: 999; */\n}\n#gwd_mini_compare_detail li[data-v-5aa6bd38]:hover {\n  background-color: #edf1f1;\n}\n#gwd_mini_compare_detail li[data-v-5aa6bd38] {\n  height: 40px;\n}\n#gwd_mini_compare_detail li *[data-v-5aa6bd38] {\n  float: left;\n}\n#gwd_mini_compare_detail li a[data-v-5aa6bd38] {\n  display: inline-block;\n  height: 39px;\n  width: 248px;\n  border-bottom: 1px solid #edf1f1;\n  margin-left: 15px;\n}\n#gwd_mini_compare_detail li img[data-v-5aa6bd38] {\n  width: 16px;\n  margin-top: 12px;\n  margin-right: 14px;\n}\n#gwd_mini_compare_detail li .m-item-sitename[data-v-5aa6bd38] {\n  width: 113px;\n  margin-right: 6px;\n  line-height: 40px;\n  height: 40px;\n  font-size: 14px;\n  color: #404547;\n  text-align: left;\n  overflow: hidden;\n}\n#gwd_mini_compare_detail li .m-item-price[data-v-5aa6bd38] {\n  color: #E4393C;\n  font-size: 14px;\n  float: right;\n  line-height: 40px;\n  font-weight: bold;\n}\n#gwd_mini_compare_detail .m-all-link[data-v-5aa6bd38] {\n  color: #969899;\n  text-decoration: none!important;\n  float: right;\n  height: 12px;\n  line-height: 12px;\n  margin-right: 15px;\n  margin-top: 15px;\n  margin-bottom: 15px;\n  font-size: 12px;\n}\n#gwd_mini_compare_detail .m-all-link[data-v-5aa6bd38]:hover {\n  color: #48beff!important;\n}\n.bjg-hover-bg[data-v-5aa6bd38] {\n  background: #fffbef;\n}\n", ""]);

// exports


/***/ }),

/***/ 50851:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var classof = __webpack_require__(36955);
var getMethod = __webpack_require__(55966);
var isNullOrUndefined = __webpack_require__(64117);
var Iterators = __webpack_require__(26269);
var wellKnownSymbol = __webpack_require__(78227);

var ITERATOR = wellKnownSymbol('iterator');

module.exports = function (it) {
  if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
    || getMethod(it, '@@iterator')
    || Iterators[classof(it)];
};


/***/ }),

/***/ 50883:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ MiniProgramQRTip)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/bjgou/components/MiniProgramQRTip.vue?vue&type=template&id=59b6b710&scoped=true
var MiniProgramQRTipvue_type_template_id_59b6b710_scoped_true = __webpack_require__(98503);
;// ./src/bjgou/components/MiniProgramQRTip.vue?vue&type=template&id=59b6b710&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/bjgou/components/MiniProgramQRTip.vue?vue&type=script&lang=js
var MiniProgramQRTipvue_type_script_lang_js = __webpack_require__(59389);
;// ./src/bjgou/components/MiniProgramQRTip.vue?vue&type=script&lang=js
 /* harmony default export */ const components_MiniProgramQRTipvue_type_script_lang_js = (MiniProgramQRTipvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/bjgou/components/MiniProgramQRTip.vue?vue&type=style&index=0&id=59b6b710&prod&scoped=true&lang=less
var MiniProgramQRTipvue_type_style_index_0_id_59b6b710_prod_scoped_true_lang_less = __webpack_require__(37757);
;// ./src/bjgou/components/MiniProgramQRTip.vue?vue&type=style&index=0&id=59b6b710&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/bjgou/components/MiniProgramQRTip.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_MiniProgramQRTipvue_type_script_lang_js,
  MiniProgramQRTipvue_type_template_id_59b6b710_scoped_true/* render */.XX,
  MiniProgramQRTipvue_type_template_id_59b6b710_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "59b6b710",
  null
  
)

/* harmony default export */ const MiniProgramQRTip = (component.exports);

/***/ }),

/***/ 50921:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(39102);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("24592db5", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 51088:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var $ = __webpack_require__(46518);
var call = __webpack_require__(69565);
var IS_PURE = __webpack_require__(96395);
var FunctionName = __webpack_require__(10350);
var isCallable = __webpack_require__(94901);
var createIteratorConstructor = __webpack_require__(33994);
var getPrototypeOf = __webpack_require__(42787);
var setPrototypeOf = __webpack_require__(52967);
var setToStringTag = __webpack_require__(10687);
var createNonEnumerableProperty = __webpack_require__(66699);
var defineBuiltIn = __webpack_require__(36840);
var wellKnownSymbol = __webpack_require__(78227);
var Iterators = __webpack_require__(26269);
var IteratorsCore = __webpack_require__(57657);

var PROPER_FUNCTION_NAME = FunctionName.PROPER;
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
var IteratorPrototype = IteratorsCore.IteratorPrototype;
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
var ITERATOR = wellKnownSymbol('iterator');
var KEYS = 'keys';
var VALUES = 'values';
var ENTRIES = 'entries';

var returnThis = function () { return this; };

module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
  createIteratorConstructor(IteratorConstructor, NAME, next);

  var getIterationMethod = function (KIND) {
    if (KIND === DEFAULT && defaultIterator) return defaultIterator;
    if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];

    switch (KIND) {
      case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
      case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
      case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
    }

    return function () { return new IteratorConstructor(this); };
  };

  var TO_STRING_TAG = NAME + ' Iterator';
  var INCORRECT_VALUES_NAME = false;
  var IterablePrototype = Iterable.prototype;
  var nativeIterator = IterablePrototype[ITERATOR]
    || IterablePrototype['@@iterator']
    || DEFAULT && IterablePrototype[DEFAULT];
  var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
  var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
  var CurrentIteratorPrototype, methods, KEY;

  // fix native
  if (anyNativeIterator) {
    CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
    if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
      if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
        if (setPrototypeOf) {
          setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
        } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {
          defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);
        }
      }
      // Set @@toStringTag to native iterators
      setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
      if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
    }
  }

  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
  if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
    if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {
      createNonEnumerableProperty(IterablePrototype, 'name', VALUES);
    } else {
      INCORRECT_VALUES_NAME = true;
      defaultIterator = function values() { return call(nativeIterator, this); };
    }
  }

  // export additional methods
  if (DEFAULT) {
    methods = {
      values: getIterationMethod(VALUES),
      keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
      entries: getIterationMethod(ENTRIES)
    };
    if (FORCED) for (KEY in methods) {
      if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
        defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
      }
    } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
  }

  // define iterator
  if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
    defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });
  }
  Iterators[NAME] = defaultIterator;

  return methods;
};


/***/ }),

/***/ 51131:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


const request = __webpack_require__(49388);
let hasRequest,
  globalRes,
  hasResponse,
  callbacks = (/* unused pure expression or super */ null && ([]));
const getAd = (obj, callback) => {
  obj = obj || {};
  let keyword = obj.keyword || '';
  let class_id = obj.class_id || '';
  let url = `${location.protocol}//a.${G.extName}.com/cgi/get?category=${class_id}&keyword=${encodeURIComponent(keyword)}&locate=${encodeURIComponent(location.href)}`;
  request.get(url).done(data => {
    if (data && (data.ad.length > 0 || data.promo.length > 0)) {
      data = editdata(data);
      callback(data);
      globalRes = data;
      if (callbacks.length > 0) {
        for (let i = 0; i < callbacks.length; i++) {
          callbacks[i](data);
        }
      }
      hasResponse = true;
    }
  });
  hasRequest = true;
};
const editdata = data => {
  if (data.ad.length > 0) {
    for (let i = 0; i < data.ad.length; i++) {
      if (data.ad[i].freight == '1') data.ad[i].freighttle = "包邮";
      if (data.ad[i].discount == '0') data.ad[i].discount = (data.ad[i].dp_price / data.ad[i].ori_price * 10).toFixed(1);
      data.ad[i].dp_price = (Number(data.ad[i].dp_price) / 100).toFixed(2);
      data.ad[i].ori_price = (Number(data.ad[i].ori_price) / 100).toFixed(2);
    }
  }
  return data;
};
module.exports.init = (obj, callback) => {
  if (!callback) return;else callback();
};

/***/ }),

/***/ 51228:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, c_server = $data.c_server, s_server = $data.s_server;
    $$out += '<div class="gwd_continue1 bjd_btn_box">\n  <a href="';
    $$out += $escape(c_server);
    $$out += '" target="_blank" title="购物党"></a>\n  <span class="bjd_addcart">点此进入下一步</span>\n  <span class="bjd_close"></span>\n</div>\n<style type="text/css">\n  .gwd_continue1 {\n    width: 210px;\n    height: 36px;\n    background-color: #fff;\n    color: #494b4d;\n    position: absolute;\n    left: -253px;\n    top: -4px;\n    text-align: center;\n    line-height: 35px;\n    border-bottom-left-radius: 28px;\n    border-top-left-radius: 28px;\n    font-size: 14px;\n    border: 1px solid #47befe;\n    font-family: \'Microsoft Yahei\';\n  }\n  .gwd_continue1 a, .gwd_continue1 span {\n    float: left;\n    margin-left: 19px;\n  }\n  .gwd_continue1 .bjd_addcart {\n    cursor: text;\n  }\n  .gwd_continue1 a {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_siteicon.png\') 0px 6px no-repeat;\n    background-size: 24px 22px;\n    height: 35px;\n    width: 26px;\n  }\n  .bjd_close {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_closeicon.png\') 0px 0px no-repeat;\n    width: 20px;\n    height: 20px;\n    margin-top: 12px;\n    background-size: 12px 12px;\n  }\n  .gwd_continue1:before{\n    border: 18px solid transparent;\n    border-left-color: #47befe;\n    content: "";\n    position: absolute;\n    left: 208px;\n    width: 0px;\n    height: 0px;\n    top: -1px;\n  }\n  .gwd_continue1:after{\n    border: 17px solid transparent;\n    border-left-color: #fff;\n    content: "";\n    position: absolute;\n    left: 208px;\n    width: 0px;\n    height: 0px;\n    top: 0px;\n  }\n  #shippingOptionFormId .a-box-inner span.a-button-inner, #shippingOptionFormId .a-box-inner .continue-button{\n    overflow: visible;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 51332:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(3362);
const template = __webpack_require__(26133);
const userData = __webpack_require__(74222);
let sitePattern = {
  '京东': {
    site_id: 3,
    pattern: "http://search.jd.com/Search?enc=utf-8&keyword="
  },
  '亚马逊': {
    site_id: 1,
    pattern: "http://www.amazon.cn/s?field-keywords="
  },
  '当当': {
    site_id: 2,
    pattern: "http://search.dangdang.com/?key="
  },
  '苏宁': {
    site_id: 25,
    pattern: "http://search.suning.com/emall/search.do?keyword="
  },
  '淘宝': {
    site_id: 83,
    pattern: "http://s.taobao.com/search?q="
  },
  '国美': {
    site_id: 28,
    pattern: "http://www.gome.com.cn/search?question="
  },
  '一号店': {
    site_id: 31,
    pattern: "http://search.yhd.com/s2/c0-0/k"
  },
  '唯品会': {
    site_id: 129,
    pattern: `https://category.vip.com/suggest.php?keyword=`
  },
  '购物党': {
    'pattern': `https://www.${G.extName}.com/search?from=ext&s_product=`,
    'site_id': 0
  }
};
const replaceUrl = name => {
  let url = '';
  let searchApi = sitePattern[name].pattern;
  let site_id = sitePattern[name].site_id;
  let inputtxt = $('.search-input.blkcolor3').val();
  if (name === '购物党' || name === '唯品会' || name === '苏宁') {
    url = searchApi + encodeURIComponent(inputtxt);
  } else if (name === '当当') {
    url = searchApi + encodeURIComponent(inputtxt) + '&act=input';
  } else {
    url = `${G.u_server2}/union/go/?s_product=${encodeURIComponent(inputtxt)}&target_url=${encodeURIComponent(searchApi + encodeURI(inputtxt))}&site_id=${site_id}`;
  }
  window.open(url);
  //$('.search-submit').attr('href', url)
  //return url;
};
const addEvent = () => {
  let time, show;
  $('.search-tle').on('click', function () {
    if (show) {
      $('.bjd-search-list').hide();
      $('.search-tle em').removeClass('emup');
      $('.search-tle').removeClass('search-select');
      show = false;
    } else {
      show = true;
      $('.bjd-search-list').show();
      $('.search-tle').addClass('search-select');
      $('.search-tle em').addClass('emup');
    }
  });
  $('.bjd-search-list').on('click', function (e) {
    if (e.target.nodeName === 'SPAN') {
      let txt = $(e.target).text();
      let dom = $('.search-tle span');
      let txtold = dom.text();
      dom.text(txt);
      $('.bjd-search-list').hide().append($(`<span>${txtold}</span>`));
      $('.search-tle').removeClass('search-select');
      $('.search-tle em').removeClass('emup');
      show = false;
      $(e.target).remove();
    }
  });
  $('.search-tle, .bjd-search-list').on('mouseenter', function () {
    clearTimeout(time);
  }).on('mouseleave', function () {
    time = setTimeout(function () {
      show = false;
      $('.bjd-search-list').hide();
      $('.search-tle em').removeClass('emup');
      $('.search-tle').removeClass('search-select');
    }, 300);
  });
  $('.search-submit').on('click', function (e) {
    let txt = $('.search-tle span').text();
    replaceUrl(txt);
    e.preventDefault();
    // setTimeout(function() {
    //   $('.search-submit').attr('href', null)
    // }, 200)
  });
  $('.search-tle').on('mouseenter', function () {
    clearTimeout(time);
  });
};
const renderBottom = data => {
  let style = userData.get('permanent').style;
  let keyword = data.exact_arr.keywords.replace(/,/g, ' ');
  if (data.exact_arr.brand && data['code-server'].code) keyword = data.exact_arr.brand + ' ' + data['code-server'].code + ' ' + (data['code-server'].spec || '');
  if (data.exact_arr.isbn) keyword = data.exact_arr.isbn;
  let site_k = '淘宝',
    site_k2 = '唯品会';
  // if (G.site === 'vipshop') {
  //   keyword = data.now.coreword;
  //   site_k = '唯品会'
  //   site_k2 = '淘宝';
  // }

  let html = __webpack_require__(78686);
  if (style === 'top') html = __webpack_require__(45046);
  $('.search-mod').append(template.compile(html)({
    keyword: keyword,
    site_k: site_k,
    site_k2: site_k2
  })).addClass('hasSearch');
  addEvent();
  if (style === 'top') {
    (__webpack_require__(7053).autoFixWidth)();
  }
  function appendCss(cssStr) {
    let s2 = document.createElement('STYLE');
    s2.innerHTML = cssStr;
    document.body.appendChild(s2);
  }
  if (location.href.indexOf('taobao.com') > -1 || location.href.indexOf('tmall.') > -1) {
    $('.bjd-search-list span').toArray().forEach(item => {
      if (item.innerHTML.indexOf('购物党') > -1) {
        $(item).remove();
      }
    });
    appendCss('.bjd-search-list { height: 140px }');
  }
};
module.exports.init = data => {
  // if ($(window).width() < 1150) {
  //   $('.search-mod').hide()
  //   return;
  // }
  renderBottom(data);
};

/***/ }),

/***/ 51366:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".bjg-mini-program-qr[data-v-59b6b710] {\n  width: 136px;\n  height: 100%;\n  position: absolute;\n  right: 0;\n  top: 0;\n  border-left: 1px solid #f3f6f8;\n}\n.bjg-mini-program-qr .bjg-line[data-v-59b6b710] {\n  width: 10px;\n  height: 1px;\n  background: #fcda57;\n  margin-left: 4px;\n  margin-right: 4px;\n}\n", ""]);

// exports


/***/ }),

/***/ 51373:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(20228);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("d67349ea", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 51377:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "gwd-row gwd-align gwd-img-same",
    class: `gwd-${_vm.site}`,
    attrs: {
      role: "button",
      title: "点击查看结果"
    },
    on: {
      click: function ($event) {
        $event.preventDefault();
        return _vm.openApp.apply(null, arguments);
      }
    }
  }, [_c("img", {
    staticStyle: {
      width: "16px"
    },
    attrs: {
      src: __webpack_require__(61224),
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "margin-left": "7px",
      color: "#ff4000",
      "font-size": "14px"
    }
  }, [_vm._v("根据图片找同款")])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 51390:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ TbScrollLink)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/TbScrollLink.vue?vue&type=template&id=50ed28b8&scoped=true
var TbScrollLinkvue_type_template_id_50ed28b8_scoped_true = __webpack_require__(79902);
;// ./src/standard/module/components/TbScrollLink.vue?vue&type=template&id=50ed28b8&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/TbScrollLink.vue?vue&type=script&lang=js
var TbScrollLinkvue_type_script_lang_js = __webpack_require__(98356);
;// ./src/standard/module/components/TbScrollLink.vue?vue&type=script&lang=js
 /* harmony default export */ const components_TbScrollLinkvue_type_script_lang_js = (TbScrollLinkvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/TbScrollLink.vue?vue&type=style&index=0&id=50ed28b8&prod&scoped=true&lang=less
var TbScrollLinkvue_type_style_index_0_id_50ed28b8_prod_scoped_true_lang_less = __webpack_require__(7384);
;// ./src/standard/module/components/TbScrollLink.vue?vue&type=style&index=0&id=50ed28b8&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/TbScrollLink.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_TbScrollLinkvue_type_script_lang_js,
  TbScrollLinkvue_type_template_id_50ed28b8_scoped_true/* render */.XX,
  TbScrollLinkvue_type_template_id_50ed28b8_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "50ed28b8",
  null
  
)

/* harmony default export */ const TbScrollLink = (component.exports);

/***/ }),

/***/ 51481:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var $ = __webpack_require__(46518);
var newPromiseCapabilityModule = __webpack_require__(36043);
var FORCED_PROMISE_CONSTRUCTOR = (__webpack_require__(10916).CONSTRUCTOR);

// `Promise.reject` method
// https://tc39.es/ecma262/#sec-promise.reject
$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
  reject: function reject(r) {
    var capability = newPromiseCapabilityModule.f(this);
    var capabilityReject = capability.reject;
    capabilityReject(r);
    return capability.promise;
  }
});


/***/ }),

/***/ 51668:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
// Top level file is just a mixin of submodules & constants


var assign    = (__webpack_require__(9805).assign);

var deflate   = __webpack_require__(63303);
var inflate   = __webpack_require__(87083);
var constants = __webpack_require__(19681);

var pako = {};

assign(pako, deflate, inflate, constants);

module.exports = pako;


/***/ }),

/***/ 51683:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(3362);
const globalCondition = __webpack_require__(41761);
const request = __webpack_require__(49388);
let activity = null;
const getActivity = async () => {
  if (activity !== null) {
    return activity;
  }
  const config = await request.get('https://cdn.gwdang.com/js/configs/activity.json');
  const now = new Date();
  const siteConfig = G.aliSite ? config.aliActivity : config.jdActivity;
  if (siteConfig && siteConfig.start && siteConfig.end) {
    if (now >= new Date(siteConfig.start) && now <= new Date(siteConfig.end)) {
      activity = {
        start: siteConfig.start,
        end: siteConfig.end,
        link: siteConfig.link ? siteConfig.link : siteConfig.top.link,
        text: siteConfig.middle ? siteConfig.middle.text : siteConfig.center.textlong
      };
      return activity;
    }
  }
  activity = false;
  return null;
};
const couponHtml = value => `<span style="font-size: 12px; color: #fd0937;">当前商品领券立减<span style="font-size: 16px">${value}</span>元</span>`;
const redpackHtml = value => `<span style="font-size: 12px; color: #fd0937;">当前商品领红包立减<span style="font-size: 16px">${value}</span>元</span>`;
const firstGiftMoneyHtml = value => `<span style="font-size: 12px; color: #fd0937;">当前商品领取礼金立减<span style="font-size: 16px">${value}</span>元</span>`;
module.exports = async function (dpId) {
  if (!(G.aliSite || G.site === '360buy')) {
    return;
  }
  const id = dpId.split('-')[0];
  $('.gwd-coupon-line').empty();
  if (!globalCondition.hasMet(`gwd-pricetip-data-${id}`)) {
    request.get(`https://browser.gwdang.com/extension/Coupon?dp_id=${dpId}&from=ext_tip`).then(data => {
      if (data.coupon) {
        globalCondition.setMet(`gwd-pricetip-data-${id}`, {
          type: 'coupon',
          coupon: data.coupon
        });
      } else {
        globalCondition.setMet(`gwd-pricetip-data-${id}`, {
          type: 'none'
        });
      }
    });
  }
  const data = await globalCondition.met(`gwd-pricetip-data-${id}`);
  const icon = 'https://cdn.gwdang.com/images/extensions/activity/giftMoneyV3@2x.png';
  if (data.type === 'coupon') {
    $('.gwd-coupon-line').html(`
      <a target="_blank" href="https://tb.gwdang.com/extension/qrpage?tag=qr-ext_search_coupon&dp_id=${dpId}&discount=${data.coupon}">
        <img src="${icon}" alt="" />
        ${couponHtml(data.coupon)}
      </a>
    `);
  } else if (data.type === 'rebate') {
    $('.gwd-coupon-line').html(`
      <a target="_blank" href="https://tb.gwdang.com/extension/qrpage?tag=qr-ext_search_redpack&dp_id=${dpId}&rebate=1&discount=${data.rebate}">
        <img src="${icon}" alt="" />
        ${redpackHtml(data.rebate)}
      </a>
    `);
  } else if (data.type === 'firstGiftMoney') {
    $('.gwd-coupon-line').html(`
      <a target="_blank" href="${data.link}">
        <img src="${icon}" alt="" />
        ${firstGiftMoneyHtml(data.coupon)}
      </a>
    `);
  } else {
    const activity = await getActivity();
    if (activity) {
      $('.gwd-coupon-line').html(`
        <a target="_blank" href="${activity.link}">
          <img src="${icon}" alt="" />
          <span style="font-size: 12px; color: #fd0937;">${activity.text}</span>
        </a>
      `);
    } else {
      $('.gwd-coupon-line').html(`
        <a target="_blank" href="https://tb.gwdang.com/extension/qrpage?tag=qr-ext_search_link&dp_id=${dpId}&extLink=1">
          <img src="${icon}" alt="" />
          <span style="font-size: 12px; color: #fd0937;">${G.aliSite ? '手淘' : '京东'}APP扫码领优惠</span>
        </a>
      `);
    }
  }
};

/***/ }),

/***/ 52186:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ TopMainBar)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/TopMainBar.vue?vue&type=template&id=2a2aef67
var TopMainBarvue_type_template_id_2a2aef67 = __webpack_require__(79129);
;// ./src/standard/module/components/TopMainBar.vue?vue&type=template&id=2a2aef67

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/TopMainBar.vue?vue&type=script&lang=js
var TopMainBarvue_type_script_lang_js = __webpack_require__(70972);
;// ./src/standard/module/components/TopMainBar.vue?vue&type=script&lang=js
 /* harmony default export */ const components_TopMainBarvue_type_script_lang_js = (TopMainBarvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/TopMainBar.vue?vue&type=style&index=0&id=2a2aef67&prod&lang=less
var TopMainBarvue_type_style_index_0_id_2a2aef67_prod_lang_less = __webpack_require__(44679);
;// ./src/standard/module/components/TopMainBar.vue?vue&type=style&index=0&id=2a2aef67&prod&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/TopMainBar.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_TopMainBarvue_type_script_lang_js,
  TopMainBarvue_type_template_id_2a2aef67/* render */.XX,
  TopMainBarvue_type_template_id_2a2aef67/* staticRenderFns */.Yp,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ const TopMainBar = (component.exports);

/***/ }),

/***/ 52267:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-img-same[data-v-47682f16]:hover {\n  text-decoration: none!important;\n}\n.gwd-img-same[data-v-47682f16] {\n  width: 108px;\n  height: 46px;\n  position: absolute;\n  border: 1px solid #eaeaea;\n  justify-content: center;\n  font-size: 0;\n  cursor: pointer;\n  background: #fff;\n}\n.gwd-img-same span[data-v-47682f16] {\n  color: #333333;\n  font-size: 12px;\n}\n.gwd-img-same .gwd-img-same-img[data-v-47682f16] {\n  margin-left: 8px;\n  width: 32px;\n  height: 32px;\n  border-radius: 2px;\n}\n.gwd-img-same .gwd-right-arrow[data-v-47682f16] {\n  margin-left: 8px;\n  height: 18px;\n}\n.gwd-360buy[data-v-47682f16] {\n  left: -130px;\n  top: 5px;\n}\n.gwd-tmall[data-v-47682f16],\n.gwd-taobao[data-v-47682f16],\n.gwd-amazon[data-v-47682f16] {\n  left: 0px!important;\n  top: 215px;\n  position: fixed;\n  z-index: 999;\n  box-shadow: 2px 2px 30px 0px rgba(97, 105, 119, 0.18);\n  border-top-right-radius: 8px;\n  border-bottom-right-radius: 8px;\n  border: none;\n}\n.gwd-vipshop[data-v-47682f16] {\n  left: -130px;\n  top: 195px;\n}\n.gwd-1688[data-v-47682f16] {\n  position: absolute;\n  left: -130px;\n  top: 540px;\n}\n.gwd-tb-v3[data-v-47682f16] {\n  top: 95px;\n  left: -125px !important;\n}\n@media screen and (max-width: 1800px) {\n.s1680 .gwd-tb-v3[data-v-47682f16] {\n    display: none;\n}\n}\n@media screen and (max-width: 1540px) {\n.s1400 .gwd-tb-v3[data-v-47682f16] {\n    display: none;\n}\n}\n@media screen and (max-width: 1290px) {\n.s1240 .gwd-tb-v3[data-v-47682f16] {\n    display: none;\n}\n}\n@media screen and (max-width: 1030px) {\n.s1024 .gwd-tb-v3[data-v-47682f16] {\n    display: none;\n}\n}\n", ""]);

// exports


/***/ }),

/***/ 52272:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(90145);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("e2011ece", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 52361:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', pages = $data.pages, $escape = $imports.$escape, detailW = $data.detailW, showpages = $data.showpages, turnpW = $data.turnpW, prowidth = $data.prowidth, $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, sale_tle = $data.sale_tle, link = $data.link;
    $$out += '<div class="btcom-detail ';
    if (pages > 1) {
        $$out += ' hasmorepage ';
    }
    $$out += '" style="width:';
    $$out += $escape(detailW);
    $$out += 'px;';
    if (showpages) {
        $$out += 'left:0px;';
    }
    $$out += '">\n  ';
    if (showpages) {
        $$out += '\n  <div class="turnpage-div turnpage-left" style="width:';
        $$out += $escape(turnpW);
        $$out += 'px;height: 100%;">\n    <span class="gwd_bg turnleft"></span>\n  </div>\n  ';
    }
    $$out += '\n  <div class="all-products" style="';
    if (showpages) {
        $$out += ' width:';
        $$out += $escape(prowidth);
        $$out += 'px; ';
    }
    $$out += '">\n    <ul class="btcom-list">\n      ';
    $each(data, function ($value, $index) {
        $$out += '\n        <li class="dp-index-';
        $$out += $escape($index);
        $$out += '">\n          <a href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank" class="com-item-img">\n            <img ';
        $$out += 'src="https://cdn.gwdang.com/images/extensions/newbar/120.gif"';
        $$out += ' data-src="';
        $$out += $escape($value.img_url);
        $$out += '">\n            ';
        if ($value.tspan) {
            $$out += '\n                ';
            $$out += $value.tspan;
            $$out += '\n            ';
        }
        $$out += '\n          </a>\n          <a href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank" class="com-item-otinfo">\n            ';
        if ($value.ta) {
            $$out += '\n              ';
            $$out += $value.ta;
            $$out += '\n            ';
        } else {
            $$out += '\n              <div class="priceinfo-box">\n                <div class="center-box">\n                  <span class="com-price prifontf">\xA5';
            $$out += $escape($value.price);
            $$out += '</span>\n                  ';
            if ($value.promo2) {
                $$out += '\n                  <span class="dp-promotion gwd_bg">\n                    <div class="dp-promotion-detail">\n                      ';
                $each($value.promo2, function ($value, $index) {
                    $$out += '\n                        <span class="dp-pro-item">';
                    $$out += $escape($value);
                    $$out += '</span>\n                      ';
                });
                $$out += '\n                    </div>\n                  </span>\n                  ';
            }
            $$out += '\n                  ';
            if ($value.coupon2) {
                $$out += '\n                  <span class="dp-coupon gwd_bg">\n                    <div class="dp-coupon-detail">\n                      ';
                $each($value.coupon2, function ($value, $index) {
                    $$out += '\n                        <span class="dp-coupon-item">';
                    $$out += $escape($value);
                    $$out += '</span>\n                      ';
                });
                $$out += '\n                    </div>\n                  </span>\n                  ';
            }
            $$out += '\n                  ';
            if ($value.yushou2) {
                $$out += '\n                  <span class="dp-yushou gwd_bg">\n                    <div class="dp-yushou-detail">\n                      ';
                $each($value.yushou2, function ($value, $index) {
                    $$out += '\n                        <span class="dp-pro-item">';
                    $$out += $escape($value);
                    $$out += '</span>\n                      ';
                });
                $$out += '\n                    </div>\n                  </span>\n                  ';
            }
            $$out += '\n                </div>\n              </div>\n              \n            ';
        }
        $$out += '\n            <span class="com-store blkcolor1">';
        $$out += $escape($value.site_name);
        $$out += '</span>\n            ';
        if ($value.comment_num) {
            $$out += '\n            <span class="com-fee blkcolor4">';
            $$out += $escape($value.comment_num ? '评论数:' + $value.comment_num : $value.fee);
            $$out += '</span>\n            ';
        } else if (sale_tle) {
            $$out += '\n              <span class="com-fee blkcolor4">';
            $$out += $escape(sale_tle);
            $$out += $escape($value.volume);
            $$out += '件</span>\n            ';
        } else {
            $$out += '\n              <span class="com-fee blkcolor4">';
            $$out += $escape($value.fee);
            $$out += '</span>\n            ';
        }
        $$out += '\n            <p class="com-tle" title="';
        $$out += $escape($value.title);
        $$out += '">\n              ';
        $$out += $escape($value.title);
        $$out += '\n            </p>\n          </a>\n        </li>\n      ';
    });
    $$out += '\n    </ul>\n  </div>\n  ';
    if (showpages) {
        $$out += '\n    ';
        if (link && sale_tle) {
            $$out += '\n    <a href="';
            $$out += $escape(link);
            $$out += '" target="_blank" class="tb-morelink blkcolor4">查看全部结果<em class="see_all_icon">></em></a>\n    ';
        }
        $$out += '\n  <div class="turnpage-div turnpage-right" style="width:';
        $$out += $escape(turnpW);
        $$out += 'px;height: 100%;">\n    <span class="gwd_bg turnright"></span>\n  </div>\n  <div class="bjd-pages blkcolor4">\n      第&nbsp;\n      <span class="current-page">1</span>\n      &nbsp;页\uFF0C共\n      <span class="page-num blkcolor4">';
        $$out += $escape(pages);
        $$out += '</span>\n      &nbsp;页\n  </div>\n  ';
    }
    $$out += '\n</div>';
    return $$out;
};

/***/ }),

/***/ 52415:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(44772);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("b6404df6", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 52611:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAA0CAYAAACHO2h8AAAAAXNSR0IArs4c6QAAAYtJREFUSEvtl79Kw2AUxX+BuCiULroVstfBVadIOwgd3NqxOOii4GAfwDoLdqpjcVdfwKF7HZydHH0JIXJvk+pHWujNH6nQC9mSk/Pde849iUdB5QlO1CTKi1cS0ONnZmIuo/oBnA9gp2YGTB9tqwL9Jwh2TWAKpA0PCdjgmoguwkzADDUDisGq+HwAVYYT0xEdoFgKYyBURsJsyZoH9Abs5QKKGlziMWC7BveTJblMb5tOrcEIj0CPJCUSOOxkAEosslmBTg9apyaQH0YJ0MM7iI4ylCvIwixiHPlv4mmLSH9ObsyHS4DEGgEex6rq9hW0eyYw1yJNHf9YGz58NTV+sbJvX0wboByvRUcEfCFey+Z+3UW+WuRODRt24GJgb7aTImJY0ZNx3bo6krG3zkzTSmiXZJHCvLaOo3kCK8cica6tYhzJhjQmSXrVZtiO/yGOjJ8yfxJHXX1L1qklFKN1HC10v8aRZJnPSOOovg/951WIIzGqXMZMS3utsBQxdcW9udj/tRxEZo9+AyVqv4MZSS3ZAAAAAElFTkSuQmCC";

/***/ }),

/***/ 52967:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

/* eslint-disable no-proto -- safe */
var uncurryThisAccessor = __webpack_require__(46706);
var isObject = __webpack_require__(20034);
var requireObjectCoercible = __webpack_require__(67750);
var aPossiblePrototype = __webpack_require__(73506);

// `Object.setPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.setprototypeof
// Works with __proto__ only. Old v8 can't work with null proto objects.
// eslint-disable-next-line es/no-object-setprototypeof -- safe
module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
  var CORRECT_SETTER = false;
  var test = {};
  var setter;
  try {
    setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
    setter(test, []);
    CORRECT_SETTER = test instanceof Array;
  } catch (error) { /* empty */ }
  return function setPrototypeOf(O, proto) {
    requireObjectCoercible(O);
    aPossiblePrototype(proto);
    if (!isObject(O)) return O;
    if (CORRECT_SETTER) setter(O, proto);
    else O.__proto__ = proto;
    return O;
  };
}() : undefined);


/***/ }),

/***/ 53095:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


module.exports = __webpack_require__(28189);

/***/ }),

/***/ 53203:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(3362);
const request = __webpack_require__(49388);
const globalCondition = __webpack_require__(41761);
const PromotionPlan = (__webpack_require__(78070)/* ["default"] */ .A);
let load = async (dpId, skuId = null) => {
  let promo = await globalCondition.met('promoGot');
  let promoString = promo && promo.origin_promo ? '&origin_promo=' + encodeURIComponent(promo.origin_promo) : '';
  let text = promo && promo.promo_text ? '&promo_text=' + promo.promo_text : '&promo_text=None';
  //let text = '&promo_text=none'
  let price = (__webpack_require__(12826).productPattern)[G.site]().price;
  let data = await request.get(G.server + `/extension/PromotionPlan?price=${price}&dp_id=${dpId}${skuId ? '&sku_id=' + skuId : ''}${promoString}${text}`);
  let res = data.data;
  let el = '#gwd-pp';
  if (G.from_device === 'bijiago' || G.from_device.indexOf('biyibi') > -1) {
    el = '#bjg-pp';
  }
  const plan = new Vue({
    el: el,
    render: h => h(PromotionPlan, {
      ref: 'plan',
      props: {
        data: res,
        tag: G.from_device === 'bijiago' ? 10 : 3
      }
    })
  });
  if (res.length) {
    const single = res.find(item => item.plan.buy_count === 1 && item.plan.remain === 0);
    const multi = res.find(item => item.plan.buy_count > 1);
    const mul100 = x => parseInt(parseFloat(x) * 100);
    G._pp = `${single ? mul100(single.current_price) : ''},${multi ? mul100(multi.current_price) : ''}`;
    if (single) {
      globalCondition.setMet('SinglePrice', single.current_price);
    }
  }
  $('.dsj-promo-link').hover(() => {
    plan.$refs.plan.over();
  });
};
module.exports = {
  async init() {
    let dp_id = await globalCondition.met('GwdDpIdGot');
    load(dp_id, (__webpack_require__(60340).getParameterByName)('skuId'));
    if (!G.on) return;
    G.on('skuChange', function (skuId) {
      load(dp_id, skuId);
    });
  }
};

/***/ }),

/***/ 53269:
/***/ ((module) => {

"use strict";


// Note: adler32 takes 12% for level 0 and 2% for level 6.
// It isn't worth it to make additional optimizations as in original.
// Small size is preferable.

// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.

function adler32(adler, buf, len, pos) {
  var s1 = (adler & 0xffff) |0,
      s2 = ((adler >>> 16) & 0xffff) |0,
      n = 0;

  while (len !== 0) {
    // Set limit ~ twice less than 5552, to keep
    // s2 in 31-bits, because we force signed ints.
    // in other case %= will fail.
    n = len > 2000 ? 2000 : len;
    len -= n;

    do {
      s1 = (s1 + buf[pos++]) |0;
      s2 = (s2 + s1) |0;
    } while (--n);

    s1 %= 65521;
    s2 %= 65521;
  }

  return (s1 | (s2 << 16)) |0;
}


module.exports = adler32;


/***/ }),

/***/ 53558:
/***/ ((module) => {

"use strict";


// 保存原始值到私有变量
let _userLogin = false;
module.exports = {
  modules: {},
  version: 1766718492516,
  mv3: true,
  sideBarAvailable: true,
  browser: {},
  // debug: /gwdebug/.test(window ? window.location.href: ''),
  extend: function (obj) {
    for (var i in obj) {
      if (i === 'userLogin') {
        // 对 userLogin 使用 setter
        this.userLogin = obj[i];
      } else {
        this[i] = obj[i];
      }
    }
  },
  // 为 userLogin 定义 getter 和 setter
  get userLogin() {
    return _userLogin;
  },
  set userLogin(value) {
    // console.log('拦截到对 userLogin 的修改:', value);
    // 这里可以添加其他逻辑
    _userLogin = value;
  }
};

/***/ }),

/***/ 53979:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', coupon = $data.coupon, showPinPrice = $data.showPinPrice, $escape = $imports.$escape, s_server = $data.s_server, qrcode = $data.qrcode;
    $$out += '<div class="gwd-qrcode ';
    if (coupon) {
        $$out += ' gwd-coupon-code ';
    }
    $$out += '">\n    ';
    if (showPinPrice) {
        $$out += '\n    <div class="gwd-pinPrice">\n        <img src="';
        $$out += $escape(s_server);
        $$out += '/images/extensions/pindanjia.svg" alt="">\n    </div>\n    ';
    }
    $$out += '\n    ';
    if (coupon) {
        $$out += '\n    <div class="top-coupon">\n        <span style="font-size: 13px; color: white; font-family: Microsoft Yahei">';
        $$out += $escape(coupon);
        $$out += '</span>\n    </div>\n    ';
    }
    $$out += '\n    <img src="';
    $$out += $escape(qrcode);
    $$out += '" alt="" style="width: 130px; height: 130px; margin-top: ';
    if (coupon) {
        $$out += '40';
    } else {
        $$out += '10';
    }
    $$out += 'px">\n    <span><span style="color: #14a723; font-weight: bold; font-size: 14px;">微信扫码</span> 购买</span>\n</div>\n<style lang="less">\n    .gwd-qrcode {\n        position: fixed;\n        bottom: 9px;\n        width: 160px;\n        height: 173px;\n        left: 50%;\n        margin-left: 410px;\n        box-sizing: border-box;\n        border: 1px solid #e02d24;\n        background: #fff7f6;\n        display: flex;\n        flex-direction: column;\n        align-items: center;\n    }\n\n    .gwd-pinPrice {\n        position: absolute;\n        top: -61px;\n        width: 185px;\n        height: 41px;\n        left: -9px;\n        animation: go 1s infinite;\n    }\n\n    @keyframes go {\n        0% {\n            top: -61px;\n        }\n        50% {\n            top: -52px;\n        }\n        100% {\n            top: -61px;\n        }\n    }\n\n    .gwd-coupon-code {\n        width: 160px;\n        height: 203px;\n        background: url(';
    $$out += $escape(s_server);
    $$out += '/images/extensions/newcouponbg.svg);\n        border: none;\n    }\n\n    .gwd-qrcode .top-coupon {\n        width: 160px;\n        height: 28px;\n        text-align: center;\n        line-height: 28px;\n\n        position: absolute;\n        top: 0px;\n        left: 0px;\n    }\n\n    .gwd-qrcode span {\n        text-align: center;\n        font-size: 12px;\n        font-family: "Microsoft YaHei", "Arial", "SimSun";\n        color: #333333;\n        margin-top: 4px;\n        margin-bottom: 10px;\n    }\n</style>';
    return $$out;
};

/***/ }),

/***/ 54208:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-login-box[data-v-40244662] {\n  width: 453px;\n  height: 390px;\n  border-radius: 16px 16px 16px 16px;\n  border: 1px solid #E6E9EB;\n  margin-top: 64px;\n  margin-bottom: 120px;\n}\n.gwd-login-box .gwd-login-btn[data-v-40244662] {\n  width: 365px;\n  height: 42px;\n  background: #FF4449;\n  border-radius: 8px 8px 8px 8px;\n  cursor: pointer;\n  margin-top: 22px;\n  color: #fff;\n  font-size: 14px;\n  border: none;\n}\n", ""]);

// exports


/***/ }),

/***/ 54240:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, c_server = $data.c_server, s_server = $data.s_server;
    $$out += '<div class="gwd_finished bjd_btn_box">\n  <a href="';
    $$out += $escape(c_server);
    $$out += '" target="_blank" title="购物党"></a>\n  <span class="bjd_addcart">点此完成订单</span>\n  <span class="bjd_close"></span>\n</div>\n<style type="text/css">\n  .gwd_finished {\n    width: 190px;\n    height: 36px;\n    background-color: #fff;\n    color: #494b4d;\n    position: absolute;\n    left: -228px;\n    top: -32px;\n    text-align: center;\n    line-height: 35px;\n    border-bottom-left-radius: 28px;\n    border-top-left-radius: 28px;\n    font-size: 14px;\n    border: 1px solid #47befe;\n    font-family: \'Microsoft Yahei\';\n  }\n  .gwd_finished a, .gwd_finished span {\n    float: left;\n    margin-left: 19px;\n  }\n  .gwd_finished .bjd_addcart {\n    cursor: text;\n  }\n  .gwd_finished a {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_siteicon.png\') 0px 6px no-repeat;\n    background-size: 24px 22px;\n    height: 35px;\n    width: 26px;\n  }\n  .bjd_close {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_closeicon.png\') 0px 0px no-repeat;\n    width: 20px;\n    height: 20px;\n    margin-top: 12px;\n    cursor: pointer;\n    background-size: 12px 12px;\n  }\n  .gwd_finished:before{\n    border: 18px solid transparent;\n    border-left-color: #47befe;\n    content: "";\n    position: absolute;\n    left: 188px;\n    width: 0px;\n    height: 0px;\n    top: -1px;\n  }\n  .gwd_finished:after{\n    border: 17px solid transparent;\n    border-left-color: #fff;\n    content: "";\n    position: absolute;\n    left: 188px;\n    width: 0px;\n    height: 0px;\n    top: 0px;\n  }\n  #order-summary-box{\n    overflow: visible;\n  }\n  </style>';
    return $$out;
};

/***/ }),

/***/ 54287:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '';
    $$out += '<div class="gwd-qr-warn" style="background: white; width: 118px!important; height: 118px!important;">\n  <img ';
    $$out += 'src="https://cdn.gwdang.com/images/extensions/warn@2x.png"';
    $$out += ' alt="" style="margin-right: 0!important; width: 34px!important; height: 34px!important; margin-top: 21px!important; margin-left: 0!important">\n  <span class="warn-text">当前网络异常</span>\n  <span class="warn-text">点此<span class="gwd-qr-reload">刷新</span></span>\n</div>\n<style>\n  .gwd-qr-warn {\n    position: absolute;\n    top: 8px;\n    left: 50%;\n    margin-left: -59px;\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    white-space: nowrap;\n  }\n\n  .gwd-qr-warn img {\n    margin: 0;\n  }\n\n  .gwd-qr-warn span.warn-text {\n    color: #999999!important;\n    font-size: 12px!important;\n    transform: scale(0.8333);\n    transform-origin: top center;\n    line-height: 19px;\n    white-space: nowrap;\n    width: 100%;\n    text-align: center;\n    display: inline-block;\n    vertical-align: middle;\n    font-weight: normal!important;\n  }\n\n  .gwd-qr-warn span.warn-text .gwd-qr-reload {\n    color: #fe4866!important;\n    font-size: 12px!important;\n    cursor: pointer;\n    text-decoration: underline;\n    float: none!important;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 54455:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _MemberCouponMixin = _interopRequireDefault(__webpack_require__(81507));
var _MemberCouponQr = _interopRequireDefault(__webpack_require__(46419));
var _default = exports.A = {
  mixins: [_MemberCouponMixin.default],
  components: {
    MemberCouponQr: _MemberCouponQr.default
  },
  data() {
    return {
      G: G
    };
  }
};

/***/ }),

/***/ 54600:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


const missingText = {};
const trMap = {
  "淘宝": "淘寶",
  "京东": "京東",
  "相似度": "相似度",
  "价格从低到高": "價格從低到高",
  "销量从高到低": "銷量從高到低",
  "点击查看结果": "點擊查看結果",
  "图片": "圖片",
  "找同款": "找同款",
  "排序": "排序",
  "评论数从高到低": "評論數從高到低",
  "评论": "評論",
  "已售": "已售",
  "自营": "自營",
  "一键分享到微信/QQ": "一鍵分享到微信/QQ",
  "复制成功": "複製成功",
  "点击复制": "點擊複製",
  "淘口令": "淘口令",
  "第一次使用时需要先同意授权": "第一次使用時需要先同意授權",
  "请先访问": "請先訪問",
  "首页": "首頁",
  "，重新": "，重新",
  "登录帐号": "登錄帳號",
  "登录": "登錄",
  "帐号": "帳號",
  "，然后回来重试。": "，然後回來重試。",
  "请先去【": "請先去【",
  "这里": "這裡",
  "】进行滑块验证后再回来重试。": "】進行滑塊驗證後再回來重試。",
  "加载失败，请先访问【": "加載失敗，請先訪問【",
  "】，再回来重试": "】，再回來重試",
  "加载失败，": "加載失敗，",
  "接口故障，请稍后再试": "接口故障，請稍後再試",
  "，请重试一次": "，請重試一次",
  "去登录": "去登錄",
  "再试一次": "再試一次",
  "暂无同款": "暫無同款",
  "加载失败": "加載失敗"
};
G.missingText = missingText;
module.exports = function (text) {
  if (G.lang === 'zh-tr' && trMap[text]) {
    return trMap[text];
  }
  if (G.lang === 'zh-tr' && !trMap[text]) {
    missingText[text] = '';
  }
  return text;
};

/***/ }),

/***/ 54608:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', isShowPic = $data.isShowPic, $escape = $imports.$escape, url = $data.url, price = $data.price, picUrl = $data.picUrl, useTaobao = $data.useTaobao, isBottom = $data.isBottom;
    $$out += '<span class="coupon-marleft"></span>\n<a id="top_coupon_btn" title="点击领取" ';
    if (!isShowPic) {
        $$out += ' href="';
        $$out += $escape(url);
        $$out += '" target="_blank" style="cursor:pointer" ';
    }
    $$out += '>\n<span class="top-coupon-tle">当前商品领券立减</span>\n<span class="price-num"><span class="price-sm">\xA5</span><span>';
    $$out += $escape(price);
    $$out += '</span></span>\n<em class="link_hand"></em>\n';
    if (picUrl && isShowPic) {
        $$out += '\n<div class="coupon_detail">\n    <img src="';
        $$out += $escape(picUrl);
        $$out += '">\n\n    <span>';
        $$out += $escape(useTaobao ? '淘宝' : '微信');
        $$out += '扫码领券</span>\n</div>\n';
    }
    $$out += '\n<style>\n    #top_coupon_btn {\n        background: url(https://cdn.gwdang.com/images/extensions/coupon@3x.png) 0 0 no-repeat;\n        display: inline-flex;\n        height: 28px;\n        width: 149px;\n        white-space: nowrap;\n        position: relative;\n        z-index: 999999999999;\n        padding: 0 !important;\n        margin: 3px 40px 4px 0!important;\n        border: none !important;\n        background-size: cover;\n        align-items: center;\n        text-decoration: none!important;\n    }\n</style>\n';
    if (isShowPic) {
        $$out += '\n<style>\n    #top_coupon_btn * {\n        cursor: default;\n    }\n</style>\n';
    } else {
        $$out += '\n<style>\n    #top_coupon_btn * {\n        cursor: pointer;\n    }\n</style>\n';
    }
    $$out += '\n';
    if (isBottom) {
        $$out += '\n<style>\n    .coupon_detail {\n        bottom: 28px;\n    }\n</style>\n';
    } else {
        $$out += '\n<style>\n    .coupon_detail {\n        top: 28px;\n    }\n</style>\n';
    }
    $$out += '\n<style>\n\n</style>\n<style type="text/css">\n\n    .coupon_detail {\n        position: absolute;\n        right: 1px;\n        height: 156px;\n        width: 146px;\n        z-index: 99999999999;\n        background: #FFF6F4;\n        border: 1px solid #FF6132;\n        display: none;\n    }\n\n    #top_coupon_btn:hover .coupon_detail {\n        display: block;\n    }\n\n    #top_coupon_btn:hover .gwd-qrcode-container {\n        display: flex;\n    }\n\n    .coupon_detail img {\n        width: 118px;\n        height: 118px;\n        float: left;\n        margin-left: 14px;\n        margin-top: 8px;\n    }\n\n    .coupon_detail span {\n        font-size: 14px;\n        color: #FF4335 !important;\n        letter-spacing: 0.22px;\n        font-weight: bold;\n        float: left;\n        height: 14px;\n        line-height: 14px;\n        width: 100%;\n        margin-top: 6px;\n        text-align: center;\n    }\n\n    .coupon-marleft {\n        height: 100%;\n        width: 10px;\n        border-left: 1px solid #edf1f2;\n    }\n\n    .link_hand {\n        display: inline-block;\n        height: 30px;\n        width: 38px;\n        position: absolute;\n        right: -38px;\n        top: -2px;\n        background: url(https://cdn.gwdang.com/images/extensions/newbar/hand.gif) 0px 0px no-repeat;\n    }\n\n    #top_coupon_btn * {\n        color: #fff;\n        /*float: left;*/\n        font-family: "microsoft yahei";\n    }\n\n    #top_coupon_btn .top-coupon-tle {\n        height: 12px;\n        text-align: center;\n        line-height: 12px;\n        margin-left: 4px;\n        font-size: 12px !important;\n        font-weight: normal !important;\n    }\n\n    #top_coupon_btn .price-num {\n        font-size: 14px;\n        color: #FFFFFF;\n        font-weight: bold;\n        width: 46px;\n        height: 22px;\n        text-align: center;\n        margin-left: 3px;\n        line-height: 22px !important;\n        padding: 0px !important;\n        vertical-align: middle;\n    }\n\n    #top_coupon_btn .price-num span {\n        display: inline;\n    }\n\n    #top_coupon_btn .price-sm {\n        font-size: 12px;\n        transform: scale(0.8333);\n        transform-origin: bottom right;\n    }\n\n    #bjgext_mainbar .coupon_detail {\n        top: initial!important;\n    }\n</style>\n';
    if (useTaobao) {
        $$out += '\n<style>\n    .coupon_detail, .minicoupon_detail {\n        transform: scale(1.3);\n        transform-origin: top center;\n    }\n</style>\n';
    }
    $$out += '\n</a>';
    return $$out;
};

/***/ }),

/***/ 54674:
/***/ ((module) => {

"use strict";


// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.

module.exports = {
  2:      'need dictionary',     /* Z_NEED_DICT       2  */
  1:      'stream end',          /* Z_STREAM_END      1  */
  0:      '',                    /* Z_OK              0  */
  '-1':   'file error',          /* Z_ERRNO         (-1) */
  '-2':   'stream error',        /* Z_STREAM_ERROR  (-2) */
  '-3':   'data error',          /* Z_DATA_ERROR    (-3) */
  '-4':   'insufficient memory', /* Z_MEM_ERROR     (-4) */
  '-5':   'buffer error',        /* Z_BUF_ERROR     (-5) */
  '-6':   'incompatible version' /* Z_VERSION_ERROR (-6) */
};


/***/ }),

/***/ 54765:
/***/ ((module) => {

/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
module.exports = function() {
	var list = [];

	// return the list of modules as css string
	list.toString = function toString() {
		var result = [];
		for(var i = 0; i < this.length; i++) {
			var item = this[i];
			if(item[2]) {
				result.push("@media " + item[2] + "{" + item[1] + "}");
			} else {
				result.push(item[1]);
			}
		}
		return result.join("");
	};

	// import a list of modules into the list
	list.i = function(modules, mediaQuery) {
		if(typeof modules === "string")
			modules = [[null, modules, ""]];
		var alreadyImportedModules = {};
		for(var i = 0; i < this.length; i++) {
			var id = this[i][0];
			if(typeof id === "number")
				alreadyImportedModules[id] = true;
		}
		for(i = 0; i < modules.length; i++) {
			var item = modules[i];
			// skip already imported module
			// this implementation is not 100% perfect for weird media query combinations
			//  when a module is imported multiple times with different media queries.
			//  I hope this will never occur (Hey this way we have smaller bundles)
			if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
				if(mediaQuery && !item[2]) {
					item[2] = mediaQuery;
				} else if(mediaQuery) {
					item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
				}
				list.push(item);
			}
		}
	};
	return list;
};


/***/ }),

/***/ 55056:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


/* istanbul ignore next  */
function setAttributesWithoutAttributes(styleElement) {
  var nonce =  true ? __webpack_require__.nc : 0;
  if (nonce) {
    styleElement.setAttribute("nonce", nonce);
  }
}
module.exports = setAttributesWithoutAttributes;

/***/ }),

/***/ 55081:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var $ = __webpack_require__(46518);
var globalThis = __webpack_require__(44576);

// `globalThis` object
// https://tc39.es/ecma262/#sec-globalthis
$({ global: true, forced: globalThis.globalThis !== globalThis }, {
  globalThis: globalThis
});


/***/ }),

/***/ 55096:
/***/ ((__unused_webpack_module, exports) => {

"use strict";

// Adapted from https://github.com/mathiasbynens/he/blob/36afe179392226cf1b6ccdb16ebbb7a5a844d93a/src/he.js#L106-L134
var _a;
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.replaceCodePoint = exports.fromCodePoint = void 0;
var decodeMap = new Map([
    [0, 65533],
    // C1 Unicode control character reference replacements
    [128, 8364],
    [130, 8218],
    [131, 402],
    [132, 8222],
    [133, 8230],
    [134, 8224],
    [135, 8225],
    [136, 710],
    [137, 8240],
    [138, 352],
    [139, 8249],
    [140, 338],
    [142, 381],
    [145, 8216],
    [146, 8217],
    [147, 8220],
    [148, 8221],
    [149, 8226],
    [150, 8211],
    [151, 8212],
    [152, 732],
    [153, 8482],
    [154, 353],
    [155, 8250],
    [156, 339],
    [158, 382],
    [159, 376],
]);
/**
 * Polyfill for `String.fromCodePoint`. It is used to create a string from a Unicode code point.
 */
exports.fromCodePoint = 
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
(_a = String.fromCodePoint) !== null && _a !== void 0 ? _a : function (codePoint) {
    var output = "";
    if (codePoint > 0xffff) {
        codePoint -= 0x10000;
        output += String.fromCharCode(((codePoint >>> 10) & 0x3ff) | 0xd800);
        codePoint = 0xdc00 | (codePoint & 0x3ff);
    }
    output += String.fromCharCode(codePoint);
    return output;
};
/**
 * Replace the given code point with a replacement character if it is a
 * surrogate or is outside the valid range. Otherwise return the code
 * point unchanged.
 */
function replaceCodePoint(codePoint) {
    var _a;
    if ((codePoint >= 0xd800 && codePoint <= 0xdfff) || codePoint > 0x10ffff) {
        return 0xfffd;
    }
    return (_a = decodeMap.get(codePoint)) !== null && _a !== void 0 ? _a : codePoint;
}
exports.replaceCodePoint = replaceCodePoint;
/**
 * Replace the code point if relevant, then convert it to a string.
 *
 * @deprecated Use `fromCodePoint(replaceCodePoint(codePoint))` instead.
 * @param codePoint The code point to decode.
 * @returns The decoded code point.
 */
function decodeCodePoint(codePoint) {
    return (0, exports.fromCodePoint)(replaceCodePoint(codePoint));
}
exports["default"] = decodeCodePoint;
//# sourceMappingURL=decode_codepoint.js.map

/***/ }),

/***/ 55157:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-install-complete gwd-column gwd-align",
    class: {
      "common-modal": !_vm.installComplete
    }
  }, [_vm.installComplete ? _c("img", {
    staticStyle: {
      "margin-top": "106px"
    },
    attrs: {
      src: "https://www.gwdang.com/template/aug/images/help/top.png",
      alt: ""
    }
  }) : _vm._e(), _vm._v(" "), _vm.showPrivacyDialog ? _c("PrivacyDialog", {
    attrs: {
      mini: _vm.secondConfirm
    },
    on: {
      close: _vm.dialogClose
    }
  }) : _vm._e(), _vm._v(" "), !_vm.showPrivacyDialog && _vm.installComplete ? _c("a", {
    staticStyle: {
      "margin-top": "50px"
    },
    attrs: {
      href: "https://item.jd.com/100018511254.html"
    }
  }, [_c("img", {
    attrs: {
      src: "https://www.gwdang.com/template/aug/images/help/center.png",
      alt: ""
    }
  })]) : _vm._e(), _vm._v(" "), _vm.installComplete ? _c("div", {
    staticClass: "bottom-banner"
  }, [_vm._m(0), _vm._v(" "), _vm._m(1)]) : _vm._e()], 1);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "item",
    attrs: {
      href: "https://bj.lianjia.com/ershoufang/101102791708.html",
      target: "_blank"
    }
  }, [_c("img", {
    staticStyle: {
      "margin-left": "-185px"
    },
    attrs: {
      src: "https://www.gwdang.com/template/aug/images/help/bottom.png",
      alt: ""
    }
  })]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "item steam",
    staticStyle: {
      width: "571px"
    },
    attrs: {
      href: "https://store.steampowered.com/app/292030/_3/",
      target: "_blank"
    }
  }, [_c("img", {
    attrs: {
      src: "https://www.gwdang.com/template/aug/images/help/steam.png",
      alt: ""
    }
  })]);
}];
render._withStripped = true;

/***/ }),

/***/ 55182:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', choosed = $data.choosed, $escape = $imports.$escape, money = $data.money, lastprice = $data.lastprice, price_range = $data.price_range, notify_site = $data.notify_site, islogin = $data.islogin, allprice = $data.allprice, riyuan = $data.riyuan, nowprice = $data.nowprice, imgHost = $data.imgHost;
    $$out += '<div id="favor_box" ';
    if (choosed) {
        $$out += 'class="favor_choosed" ';
    }
    $$out += '>\n<div class="login-content " style="padding-top: 50px;">\n  <div id="gwd-login-remind"></div>\n</div>\n<div class="bar-jiangjia-re">\n  <div class="price-head">\n    <div class="head-item now-pri-div">\n      <span class="re-strong blkcolor1">当前价格\uFF1A</span>\n      <span class="re-price prifontf">';
    $$out += $escape(money);
    $$out += $escape(lastprice);
    $$out += '</span>\n    </div>\n    <div class="head-item his-pri-div">\n      <span class="re-strong blkcolor1">历史价格\uFF1A</span>\n      <span class="re-price-num blkcolor1 prifontf">';
    $$out += $escape(money);
    $$out += $escape(price_range);
    $$out += '</span>\n    </div>\n  </div>\n  <div class="jj-remind" data-notify-type="';
    $$out += $escape(notify_site);
    $$out += '">\n    <p class="blkcolor1">降价提醒</p>\n    <div class="remind-item remind-item-fst ';
    if (notify_site == '0' && islogin) {
        $$out += 'current-selected';
    }
    $$out += '"\n         style="margin-top: ';
    if (islogin) {
        $$out += '18';
    } else {
        $$out += '9';
    }
    $$out += 'px">\n      <span class="select-item gwd_bg ';
    if (notify_site == '0') {
        $$out += 'selected current-selected';
    }
    $$out += '" data-type="0"></span>\n      <span class="blkcolor3">全网商家低于';
    $$out += $escape(money);
    $$out += '</span>\n      <input type="text" value="';
    $$out += $escape(allprice);
    $$out += '" class="prifontf">\n      <span class="blkcolor3">';
    $$out += $escape(riyuan);
    $$out += '时提醒</span>\n    </div>\n    <div class="remind-item remind-item-snd ';
    if (notify_site == '1' && islogin) {
        $$out += 'current-selected';
    }
    $$out += '"\n         style="margin-top: ';
    if (islogin) {
        $$out += '18';
    } else {
        $$out += '9';
    }
    $$out += 'px">\n      <span class="select-item gwd_bg ';
    if (notify_site == '1') {
        $$out += 'selected current-selected';
    }
    $$out += '" data-type="1"></span>\n      <span class="blkcolor3">当前商家低于';
    $$out += $escape(money);
    $$out += '</span>\n      <input type="text" value="';
    $$out += $escape(nowprice);
    $$out += '" class="prifontf">\n      <span class="blkcolor3">';
    $$out += $escape(riyuan);
    $$out += '时提醒</span>\n    </div>\n  </div>\n  ';
    if (islogin) {
        $$out += '<span class="remindHint" style="position: relative; left: -60px;">提交成功</span>';
    }
    $$out += '\n  ';
    if (islogin) {
        $$out += '<span id="bar_subbtn" class="subbtn" style="margin-top: 31px">提交</span>';
    }
    $$out += '\n  <div id="login-remind" class="';
    if (islogin) {
        $$out += ' logined ';
    }
    $$out += '" data-login="';
    $$out += $escape(islogin);
    $$out += '">\n    <span class="go_login_btn">去登录</span>\n    <p class="blkcolor4">登录账户\uFF0C及时获取商品降价信息提醒</p>\n  </div>\n  <span class="error_remind">请输入正确格式商品价格</span>\n  ';
    if (islogin) {
        $$out += '\n  <div style="clear: both; text-align: center; top: 10px; position: relative">\n    <span class="';
        if (islogin) {
            $$out += ' logined ';
        }
        $$out += ' blkcolor4">为了更好接收降价提醒\uFF0C请您及时<span id="remind_qrcode" style="color: #48befe">扫码绑定微信</span></span>\n    <div id="remind_qrcode_img">\n      <img alt="二维码">\n      <p>购物党比价</p>\n    </div>\n  </div>\n  ';
    }
    $$out += '\n</div>\n<style>\n  .price-trend-btn .remindHint {\n    left: -98px!important;\n  }\n\n  .remind-item {\n    position: relative;\n  }\n\n  .remind-item.current-selected::after{\n    content: \'当前设置\';\n    background: #4fc266;\n    width: 59px;\n    height: 17px;\n    color: white;\n    font-size: 12px;\n    border-radius: 8.5px 8.5px 8.5px 0;\n    position: relative;\n    top: -10px;\n    left: 5px;\n    text-align: center;\n    display: inline-block;\n  }\n\n  #bjd_minifavor_content .remind-item.current-selected::after {\n    left: 0;\n  }\n\n  #favor_box .error_remind {\n    position: absolute;\n    bottom: 108px;\n    font-size: 12px!important;\n    color: #e4393c!important;\n    display: none;\n    width: 100%;\n    float: left;\n    left: 0px;\n    height: 12px;\n    text-align: center;\n    line-height: 12px;\n  }\n  #favor_box.favor_choosed .error_remind {\n    bottom: 77px;\n  }\n  #favor_box .forgetpsd:hover {\n    color: #48befe;\n    text-decoration: none!important;\n  }\n  #favor_box {\n    display: inline-block;\n    /*float: right;*/\n    width: 320px;\n    border-left: 1px solid #edf1f2;\n    height: 100%;\n    position: relative;\n  }\n  .login-content {\n    display: none;\n    height: 268px;\n    width: 320px;\n    border: 1px solid #edf1f2;\n    border-top: none;\n    position: absolute;\n    top: 0px;\n    right: -292px;\n    z-index: 999;\n    background-color: #fff;\n  }\n  .login-content .gwd-login-right {\n    width: 86px;\n    height: 250px;\n  }\n  .login-content .other-login-style {\n    width: 40px;\n    padding: 34px 0;\n    margin-left: 18px;\n  }\n  .login-content .login-left {\n    width: 226px;\n    height: 250px;\n  }\n  .login-content .other-login-style a {\n    margin: 10px 0px;\n  }\n  .login-content .login-input input {\n    width: 148px;\n    margin-left: 23px;\n    margin-top: 22px;\n  }\n  #bjd-notifier .price-trend div.chart {\n    border-right: none!important;\n  }\n  #favor_box .price-head {\n    margin-top: 14px;\n  }\n  #favor_box .head-item {\n    line-height: 14px;\n    height: 14px;\n    width: 100%;\n  }\n  #favor_box .head-item span {\n    float: left;\n  }\n  #favor_box .head-item:after {\n    display: block;\n    content: "";\n    clear: both;\n  }\n  #favor_box .his-pri-div {\n    margin-top: 9px;\n  }\n  #favor_box .login-input div a {\n    font-size: 12px;\n  }\n  #favor_box .login-input div {\n    padding-top: 3px;\n    padding-right: 27px;\n    float: none;\n  }\n  #favor_box a.quick-reg {\n    color: #48befe;\n    font-size: 12px;\n    float: left;\n    margin-top: 8px;\n    margin-left: 90px!important;\n    text-decoration: none!important;\n  }\n  #log_back_btn {\n    position: absolute;\n    top: 10px;\n    left: 10px;\n    display: inline-block;\n    height: 18px;\n    width: 18px;\n    background: url(\'';
    $$out += $escape(imgHost);
    $$out += 'extensions/newbar/login-delete.png\') no-repeat 0px 0px;\n    cursor: pointer;\n  }\n  #loginClickBtnBar {\n    display: block;\n    height: 28px;\n    width: 86px;\n    line-height: 28px;\n    text-align: center;\n    background-color: #48BEFE;\n    color: #fff;\n    border-radius: 15px;\n    margin-left: 72px;\n    cursor: pointer;\n    font-size: 14px;\n    margin-top: 23px;\n  }\n  #loginClickBtnBar:hover {\n    background-color: #18ACFC;\n  }\n  #favor_box .login-input {\n    margin-top: 17px;\n    float: none;\n  }\n\n  #favor_box span.re-strong {\n    font-size: 14px;\n    font-weight: bold;\n    margin-left: 13px;\n  }\n  #favor_box .re-price-num {\n    font-weight: bold;\n    font-size: 14px;\n  }\n  #favor_box span.re-price {\n    font-size: 14px;\n    color: #E4393C;\n    font-weight: bold;\n  }\n  #favor_box .select-item {\n    float: left;\n    height: 16px;\n    width: 16px;\n    background-position: -10px -64px;\n    cursor: pointer;\n    margin-left: 12px;\n    margin-right: 12px;\n    padding: 0;\n  }\n  #favor_box .select-item.selected {\n    background-position: -30px -64px;\n  }\n  #favor_box .jj-remind>p, #favor_box .jj-style>p {\n    margin-left: 13px;\n  }\n  #favor_box .jj-style>p {\n    margin-bottom: 13px;\n    visibility: hidden;\n  }\n  #favor_box .jj-style>p.logined {\n    visibility: visible;\n  }\n  .jj-style .remind-item-snd {\n    margin-top: 11px;\n  }\n  .favor_choosed  .jj-remind {\n    margin-top: 20px;\n    height: 102px;\n  }\n  .favor_choosed .remind-item-fst {\n    margin-top: 30px;\n    margin-bottom: 22px;\n  }\n  #favor_box .remind-item {\n    height: 16px;\n    line-height: 16px;\n  }\n  #favor_box .remind-item *{\n    float: left;\n  }\n  .remind-item-snd {\n    margin-top: 11px;\n  }\n  #favor_box.favor_choosed .jj-remind .jj-remind-logo {\n    top: 16px;\n  }\n  #favor_box.favor_choosed .jj-remind .jj-remind-logo2 {\n    top: 12px;\n  }\n  .favor_choosed span.subbtn {\n    margin-top: 26px;\n    margin-left: 125px;\n  }\n  .jj-style {\n    height: 73px;\n  }\n  .favor_choosed .jj-style {\n    display: none;\n  }\n  #favor_box .jj-remind .jj-remind-logo {\n    top: -4px;\n    width: 125px;\n    left: 113px;\n  }\n  #favor_box .jj-remind .jj-remind-logo2 {\n    position: absolute;\n    display: inline-block;\n    height: 25px;\n    width: 110px;\n    color: #5FC676;\n    line-height: 23px;\n    text-align: center;\n    background-position: -9px -82px;\n    left: 116px;\n    top: -4px;\n    font-size: 12px;\n  }\n  #favor_box .jj-remind .jj-remind-logo2:hover {\n    background-position: -9px -189px;\n    color: #fff;\n  }\n  .remind-item-fst {\n    margin-top: 14px;\n  }\n  #login-remind {\n    position: absolute;\n    background-color: #fff;\n    border: 1px solid #edf1f2;\n    border-bottom: none;\n    height: 104px;\n    width: 319px;\n    bottom: 0px;\n    right: 0px;\n  }\n  #login-remind.logined {\n    display: none;\n  }\n  #login-remind .go_login_btn {\n    width: 74px;\n    height: 26px;\n    line-height: 26px;\n    text-align: center;\n    background-color: #48beff;\n    font-size: 14px;\n    float: left;\n    color: #fff;\n    margin: 18px 0px 0px 124px;\n    border-radius: 100px;\n    cursor: pointer;\n  }\n  #login-remind .go_login_btn:hover {\n    background-color: #18ACFC;\n  }\n  #login-remind p {\n    font-size: 14px;\n    float: left;\n    text-align: center;\n    width: 320px;\n    margin-top: 13px;\n    font-weight: normal;\n  }\n  .login-content .sp-border {\n    background-position: -230px 7px;\n    width: 20px;\n  }\n  /*#edit_remind_style, #remind_qrcode{*/\n  /*  display: none;*/\n  /*}*/\n  .favor_choosed #edit_remind_style {\n    display: inline-block;\n  }\n  #remind_qrcode.logined{\n    display: inline-block;\n  }\n  #edit_remind_style {\n    position: absolute;\n    bottom: 14px;\n    left: 14px;\n    font-size: 12px;\n    cursor: pointer;\n  }\n  #favor_box #edit_remind_style:hover, #favor_box #remind_qrcode:hover {\n    color: #48beff;\n  }\n  #remind_qrcode {\n    /*position: absolute;*/\n    /*bottom: 14px;*/\n    /*right: 14px;*/\n    font-size: 12px;\n    cursor: pointer;\n    -moz-user-select: -moz-none;\n    -khtml-user-select: none;\n    -webkit-user-select: none;\n    -ms-user-select: none;\n    user-select: none;\n  }\n  .favor_choosed #remind_qrcode {\n    bottom: 14px;\n    right: 14px;\n    z-index: 99999999;\n  }\n  #remind_qrcode_img {\n    position: absolute;\n    right: 3px;\n    height: 134px;\n    width: 120px;\n    bottom: 29px;\n    display: none;\n    border: 1px solid #e1e1e1;\n    background-color: #fff;\n    box-shadow: 0px 5px 15px 0 rgba(23,25,27,0.15);\n  }\n  #remind_qrcode_img img {\n    width: 100%;\n  }\n  #remind_qrcode_img:before {\n    display: block;\n    content: "";\n    height: 0px;\n    width: 0px;\n    border: 8px solid transparent;\n    border-top-color: #999;\n    border-right-width: 7px;\n    border-left-width: 7px;\n    top: 135px;\n    right: 52px;\n    position: absolute;\n  }\n  #remind_qrcode_img:after {\n    display: block;\n    content: "";\n    height: 0px;\n    width: 0px;\n    border: 8px solid transparent;\n    border-top-color: #fff;\n    border-right-width: 8px;\n    border-left-width: 8px;\n    top: 134px;\n    right: 51px;\n    position: absolute;\n  }\n  #remind_qrcode_img p {\n    text-align: justify;\n    margin: 0px;\n    padding: 0px 6px;\n    height: 20px;\n    font-size: 12px;\n    color: #8d8d8d;\n    position: relative;\n    top: -8px;\n  }\n  #remind_qrcode_img p:after{\n    content:".";\n    display: inline-block;\n    width:100%;\n    overflow:hidden;\n    height:0;\n  }\n\n  .remind-item .select-item {\n    background: white!important;\n    border-radius: 16px;\n    border: 2px solid #939597;\n    box-sizing: border-box!important;\n    background-image: none!important;\n  }\n\n  .remind-item .select-item:hover {\n    border: 4px solid #4ebffb;\n    background-image: none!important;\n    box-sizing: border-box;\n  }\n\n  .remind-item .select-item.selected {\n    border: 4px solid #4ebffb;\n    background-image: none!important;\n    box-sizing: border-box;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 55326:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const template = __webpack_require__(26133);
let log = __webpack_require__(35743);
let cnzz = __webpack_require__(5300);
const globalCondition = __webpack_require__(41761);
const request = __webpack_require__(49388);
module.exports.init = () => {
  render();
};
let link = "";
let dpId = '';
const getLink = () => {
  let payload = {
    dp_id: dpId
  };
  if (G.dp.price) {
    payload.price = G.dp.price;
  }
  $.post(`${G.server}/extension/ShareUrl`, payload).then(res => {
    res = JSON.parse(res);
    if (res.code) {
      link = res.link;
      $('.shareExt').remove();
      render();
    }
  });
};
const render = async () => {
  let priceInfo = '',
    priceInfoCopy = '';
  await globalCondition.met('GwdPriceTrendLoaded');
  dpId = await globalCondition.met(`GwdDpIdGot`);
  if (G.dp.storeInfo && G.dp.storeInfo.length) {
    let store = G.dp.storeInfo[0];
    let current = parseFloat(store.all_line[store.all_line.length - 1]);
    if (!current) {
      current = parseFloat(store.current_price);
    }
    let p = store.all_line.filter(x => x !== current);
    let last = current;
    if (p.length) {
      last = p[p.length - 1];
    }
    //let last = store.last_price / 100;
    let priceTrend = '价格平稳';
    if (current < last) {
      priceTrend = '价格下降';
      if (current === store.lowest) {
        priceTrend = '历史最低';
      }
    } else if (current > last) {
      priceTrend = '价格上涨';
    }
    if (last === current) {
      last = 0;
    }
    let lowestStr = store.lowest ? `，历史最低价￥${store.lowest}` : '';
    let oriStr = last ? ` 原价￥${last}` : '';
    priceInfo = `${priceTrend}${oriStr}，现价￥${parseFloat(current)}${lowestStr}`;
    priceInfoCopy = `${priceTrend}${oriStr}，现价￥${parseFloat(current)}${lowestStr}`;
  }
  const Share = (__webpack_require__(3912)/* ["default"] */ .A);
  const opt = {
    title: G.dp.name.replace(/ /g, '').replace(/\n/g, ''),
    priceInfo: priceInfo,
    priceInfoCopy: priceInfoCopy,
    link: link
  };
  const el = document.createElement('DIV');
  $(el).insertBefore('.gwd-topbar-right .top-bar-setting');
  new Vue({
    el: el,
    render: h => h(Share, {
      props: opt
    })
  });
  addEvent();
};
const addEvent = () => {
  let isshow;
  $('.shareExt').on('mouseenter', () => {
    if (!isshow) {
      isshow = true;
      log("share-ext-show");
      cnzz.log("share-ext-show");
    }
    if (link === '') {
      getLink();
    }
  });
  $('.shareExt').on('mouseleave', () => {
    $('#copy-btn').removeClass('copyss').text('复制去分享');
  });
  $('#copy-btn').on('click', function () {
    var element = $('#copy-input')[0];
    element.select();
    element.setSelectionRange(0, element.value.length);
    window.selectedText = element.value;
    var t = window.document.execCommand("copy");
    if (t) {
      $('#copy-btn').addClass('copyss').text("复制成功！");
      log("share-ext-copy");
      cnzz.log("share-ext-copy");
    }
  });
};

/***/ }),

/***/ 55379:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ Normalvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ Normal)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/PromoHistory/Normal.vue?vue&type=template&id=5cc5ff78&scoped=true
var Normalvue_type_template_id_5cc5ff78_scoped_true = __webpack_require__(68686);
;// ./src/common/components/PromoHistory/Normal.vue?vue&type=template&id=5cc5ff78&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/PromoHistory/Normal.vue?vue&type=script&lang=js
var Normalvue_type_script_lang_js = __webpack_require__(60265);
;// ./src/common/components/PromoHistory/Normal.vue?vue&type=script&lang=js
 /* harmony default export */ const PromoHistory_Normalvue_type_script_lang_js = (Normalvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/PromoHistory/Normal.vue?vue&type=style&index=0&id=5cc5ff78&prod&scoped=true&lang=less
var Normalvue_type_style_index_0_id_5cc5ff78_prod_scoped_true_lang_less = __webpack_require__(74882);
;// ./src/common/components/PromoHistory/Normal.vue?vue&type=style&index=0&id=5cc5ff78&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/PromoHistory/Normal.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  PromoHistory_Normalvue_type_script_lang_js,
  Normalvue_type_template_id_5cc5ff78_scoped_true/* render */.XX,
  Normalvue_type_template_id_5cc5ff78_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "5cc5ff78",
  null
  
)

/* harmony default export */ const Normal = (component.exports);

/***/ }),

/***/ 55391:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ Couponvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ Coupon)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/cart/Coupon.vue?vue&type=template&id=07d1070f&scoped=true
var Couponvue_type_template_id_07d1070f_scoped_true = __webpack_require__(29416);
;// ./src/common/components/cart/Coupon.vue?vue&type=template&id=07d1070f&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/cart/Coupon.vue?vue&type=script&lang=js
var Couponvue_type_script_lang_js = __webpack_require__(30353);
;// ./src/common/components/cart/Coupon.vue?vue&type=script&lang=js
 /* harmony default export */ const cart_Couponvue_type_script_lang_js = (Couponvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/cart/Coupon.vue?vue&type=style&index=0&id=07d1070f&prod&scoped=true&lang=less
var Couponvue_type_style_index_0_id_07d1070f_prod_scoped_true_lang_less = __webpack_require__(31900);
;// ./src/common/components/cart/Coupon.vue?vue&type=style&index=0&id=07d1070f&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/cart/Coupon.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  cart_Couponvue_type_script_lang_js,
  Couponvue_type_template_id_07d1070f_scoped_true/* render */.XX,
  Couponvue_type_template_id_07d1070f_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "07d1070f",
  null
  
)

/* harmony default export */ const Coupon = (component.exports);

/***/ }),

/***/ 55494:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
__webpack_require__(3362);
var _fillPriceAndPromo = _interopRequireDefault(__webpack_require__(26431));
const request = __webpack_require__(49388);
const bgClient = __webpack_require__(40076);
const md5 = __webpack_require__(83386);
var _default = exports.A = {
  async get(imgBase64, source) {
    const appKey = '12574478';
    let _m_h5_tk = await bgClient.get('/getCookie', {
      url: 'https://www.taobao.com',
      name: '_m_h5_tk'
    });
    const cna = await bgClient.get('/getCookie', {
      url: 'https://www.taobao.com',
      name: 'cna'
    });
    if (!_m_h5_tk) {
      const localTkResult = await bgClient.get('/getStorage', {
        key: 'taobaoTk'
      });
      if (localTkResult && localTkResult.tk && Date.now() - localTkResult.time < 3600000) {
        _m_h5_tk = {
          value: localTkResult.tk
        };
      }
    }
    if (!_m_h5_tk) {
      await (__webpack_require__(60340).sleep)(1000);
      return 'needLogin';
    }
    const bgVer = await bgClient.get('/bgVer');
    if (parseFloat(bgVer) >= 1.3) {
      bgClient.get('/copyCookie', {
        url: 'https://www.taobao.com',
        name: '_m_h5_tk',
        fromPartition: 'https://taobao.com'
      });
      bgClient.get('/copyCookie', {
        url: 'https://www.taobao.com',
        name: '_m_h5_tk_enc',
        fromPartition: 'https://taobao.com'
      });
      bgClient.get('/copyCookie', {
        url: 'https://www.taobao.com',
        name: 'cna',
        fromPartition: 'https://taobao.com'
      });
      await (__webpack_require__(60340).sleep)(100);
    }
    const token = _m_h5_tk.value.split('_')[0];
    const pcsignResult = await (__webpack_require__(61802).securitySDK).sign({
      pageFrom: 'a21bo.jianhua/a.201856.dimagesearch',
      imgFrom: 'upload'
    });
    let time = parseInt(pcsignResult.timestamp);
    let data = JSON.stringify({
      appId: '46006',
      params: JSON.stringify({
        "m": "pc_picture_search",
        "device": "HMA-AL00",
        "isBeta": "false",
        "grayHair": "false",
        "from": "nt_history",
        "brand": "HUAWEI",
        "info": "wifi",
        "index": "4",
        "rainbow": "",
        "schemaType": "auction",
        "elderHome": "false",
        "isEnterSrpSearch": "true",
        "newSearch": "false",
        "network": "wifi",
        "subtype": "",
        "hasPreposeFilter": "false",
        "prepositionVersion": "v2",
        "client_os": "Android",
        "gpsEnabled": "false",
        "searchDoorFrom": "srp",
        "debug_rerankNewOpenCard": "false",
        "homePageVersion": "v7",
        "searchElderHomeOpen": "false",
        "search_action": "initiative",
        "sugg": "_4_1",
        "sversion": "13.6",
        "style": "list",
        "ttid": "1@tbwang_mac_1.0.0#pc",
        "needTabs": "true",
        "areaCode": "CN",
        "vm": "nw",
        "countryNum": "156",
        "page": 1,
        "n": 48,
        "q": "",
        "qSource": "manual",
        "pageSource": "a21bo.jianhua/a.201856.dimagesearch",
        myCNA: cna.value,
        "tab": "all",
        "sort": "_coefp",
        "filterTag": "",
        "service": "",
        "prop": "",
        "loc": "",
        "start_price": null,
        "end_price": null,
        "startPrice": null,
        "endPrice": null,
        "categoryp": "",
        "pageSize": 60,
        strimg: imgBase64.split('base64,')[1],
        imgFrom: 'upload',
        pageFrom: 'a21bo.jianhua/a.201856.dimagesearch',
        pcSign: pcsignResult.pcSign,
        random: pcsignResult.random,
        timestamp: time.toString()
      })
    });
    let sign = md5(`${token}&${time}&${appKey}&${data}`);
    const url = request.makeUrl('https://h5api.m.taobao.com', '/h5/mtop.relationrecommend.wirelessrecommend.recommend/2.0/', {
      jsv: '2.7.4',
      appKey: appKey,
      t: time,
      sign: sign,
      api: 'mtop.relationrecommend.WirelessRecommend.recommend',
      v: '2.0',
      timeout: 10000,
      type: 'originaljson',
      dataType: 'jsonp'
    });
    const apiResult = await request.post(url, {
      data: data
    }, 'www');
    if (apiResult.data && apiResult.data.loginUnsafe) {
      return 'needLogin';
    }
    if (apiResult.data && apiResult.data.itemsArray) {
      const resList = apiResult.data.itemsArray.map(item => {
        try {
          const isTmall = item.auctionURL.includes('tmall');
          // extract number from item.purchaseInfo
          // let salesAmount = item.purchaseInfo.match(/\d+/g)
          // if (item.purchaseInfo.includes('万') && salesAmount) {
          //   salesAmount *= 10000
          // }
          const salesAmount = item.realSales.replace('已售', '');
          return {
            title: item.title,
            price: item.priceWap,
            img: item.pic_path.replace('_60x60.jpg', ''),
            dpId: item.item_id + (isTmall ? '-83' : '-123'),
            salesAmount: salesAmount,
            shopName: item.shopInfo ? item.shopInfo.title : isTmall ? '天猫' : '淘宝',
            isTmall: isTmall
          };
        } catch (e) {
          console.error(e);
          debugger;
        }
      });
      const dpIdList = [];
      const resList2 = [];
      resList.forEach(item => {
        if (!dpIdList.includes(item.dpId)) {
          dpIdList.push(item.dpId);
          resList2.push(item);
        }
      });
      if (resList.length !== resList2.length) {
        console.warn('去重前后数量不一致');
      }
      return await (0, _fillPriceAndPromo.default)(resList2);
    } else if (apiResult.ret[0] !== 'SUCCESS::调用成功') {
      // 滑动解锁
      return 'fail-' + apiResult.ret[0];
    }
    return 'fail';
  }
};

/***/ }),

/***/ 55535:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97825);
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41113);
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _node_modules_css_loader_index_js_mini_ht_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38332);
/* harmony import */ var _node_modules_css_loader_index_js_mini_ht_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_index_js_mini_ht_css__WEBPACK_IMPORTED_MODULE_6__);
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_index_js_mini_ht_css__WEBPACK_IMPORTED_MODULE_6__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_index_js_mini_ht_css__WEBPACK_IMPORTED_MODULE_6__[__WEBPACK_IMPORT_KEY__]
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());

      options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
    
options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());

var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_index_js_mini_ht_css__WEBPACK_IMPORTED_MODULE_6___default()), options);




       /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_index_js_mini_ht_css__WEBPACK_IMPORTED_MODULE_6___default()) && (_node_modules_css_loader_index_js_mini_ht_css__WEBPACK_IMPORTED_MODULE_6___default().locals) ? (_node_modules_css_loader_index_js_mini_ht_css__WEBPACK_IMPORTED_MODULE_6___default().locals) : undefined);


/***/ }),

/***/ 55658:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(62953);
const request = __webpack_require__(49388);
const extConsole = __webpack_require__(7129);
var _default = exports.A = {
  data: () => ({
    site: G.site,
    promotions: [],
    scene: ['www.jd.com', 'www.taobao.com', 'www.tmall.com'].includes(location.host) ? 'home' : 'list',
    searchWord: '',
    status: 'init'
  }),
  methods: {
    async load(canRetry = true) {
      extConsole.log('promotion load start', canRetry);
      const currentSearchWord = this.searchWord;
      if (location.hostname === 'search.jd.com') {
        this.searchWord = (__webpack_require__(60340).getParameterByName)('keyword');
      }
      if (location.hostname === 's.taobao.com') {
        this.searchWord = (__webpack_require__(60340).getParameterByName)('q');
      }
      if (location.hostname === 'list.jd.com') {
        this.searchWord = $('#search-2014 input').val();
      }
      if (this.searchWord !== currentSearchWord && this.status !== 'loading' && canRetry) {
        this.status = 'init';
        this.scene = 'list';
        this.promotions = [];
      }
      if (this.status !== 'init') {
        return;
      }
      this.status = 'loading';
      const res = await request.get(`${G.server}/extension/ZdmPromo?scene=${this.scene}&site=${G.site}&w=${encodeURIComponent(this.searchWord)}&page=${encodeURIComponent(location.href)}&t=${Date.now()}`);
      extConsole.log('promotion load', res);
      if (res && res.list && res.list.length) {
        this.promotions = res.list;
        this.status = 'loaded';
      } else if (canRetry) {
        this.status = 'init';
        this.scene = 'home';
        this.searchWord = '';
        this.load(false);
      } else {
        this.status = 'loaded';
      }
    },
    openSetting() {
      (__webpack_require__(30888).openTab)();
    },
    getUrl(promotion) {
      if (promotion.type === 'item') {
        const r = JSON.stringify(promotion);
        const uint8Array = new TextEncoder().encode(r);
        const promotionBase64 = btoa(String.fromCharCode(...uint8Array));
        return `https://tb.gwdang.com/static_page/ext_promotion?promotion=${encodeURIComponent(promotionBase64)}`;
      } else {
        return `${G.u_server}/union/go?site_id=${promotion.site_id}&union=${G.union}&target_url=${encodeURIComponent(promotion.url.replace('pro.m.jd.com', 'pro.jd.com').replace('prodev.m.jd.com', 'prodev.jd.com'))}&column=ext_promotion_list`;
      }
    },
    displayTime(timeStr) {
      // timeStr格式为2020-06-01 00:00:00
      // 如果是今天的，返回时:分，否则返回月-日
      const time = new Date(timeStr.replace(' ', 'T'));
      const now = new Date();
      if (time.getFullYear() === now.getFullYear() && time.getMonth() === now.getMonth() && time.getDate() === now.getDate()) {
        return timeStr.split(' ')[1].split(':').slice(0, 2).join(':');
      }
      const addZero = num => num < 10 ? '0' + num : num;
      return `${addZero(time.getMonth() + 1)}-${addZero(time.getDate())}`;
    }
  },
  mounted() {
    // this.load()
  }
};

/***/ }),

/***/ 55718:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(28483);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("378c1fd7", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 55934:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(80755);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("4b71b502", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 55966:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var aCallable = __webpack_require__(79306);
var isNullOrUndefined = __webpack_require__(64117);

// `GetMethod` abstract operation
// https://tc39.es/ecma262/#sec-getmethod
module.exports = function (V, P) {
  var func = V[P];
  return isNullOrUndefined(func) ? undefined : aCallable(func);
};


/***/ }),

/***/ 55997:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97825);
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41113);
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _node_modules_css_loader_index_js_haitao_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(6864);
/* harmony import */ var _node_modules_css_loader_index_js_haitao_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_index_js_haitao_css__WEBPACK_IMPORTED_MODULE_6__);
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_index_js_haitao_css__WEBPACK_IMPORTED_MODULE_6__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_index_js_haitao_css__WEBPACK_IMPORTED_MODULE_6__[__WEBPACK_IMPORT_KEY__]
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());

      options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
    
options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());

var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_index_js_haitao_css__WEBPACK_IMPORTED_MODULE_6___default()), options);




       /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_index_js_haitao_css__WEBPACK_IMPORTED_MODULE_6___default()) && (_node_modules_css_loader_index_js_haitao_css__WEBPACK_IMPORTED_MODULE_6___default().locals) ? (_node_modules_css_loader_index_js_haitao_css__WEBPACK_IMPORTED_MODULE_6___default().locals) : undefined);


/***/ }),

/***/ 56004:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-epic-bar-container[data-v-acea5bbc] {\n  position: relative;\n  z-index: 2;\n  margin-top: -10px;\n  height: 45px;\n  justify-content: flex-end;\n}\n.gwd-epic-bar-container .gwd-epic-price[data-v-acea5bbc] {\n  width: 262px;\n  height: 32px;\n  background: #007feb;\n  border-radius: 3px;\n  color: white;\n  justify-content: center;\n  margin-right: 32px;\n  position: relative;\n  font-size: 12px;\n  cursor: pointer;\n}\n.gwd-epic-bar-container .gwd-epic-price .gwd-price-trend-panel[data-v-acea5bbc] {\n  position: absolute;\n  width: 400px;\n  height: 260px;\n  background: #1E1E1E;\n  box-shadow: 0px 4px 9px 0px #030303;\n  border-radius: 2px 0px 0px 2px;\n  overflow: hidden;\n  top: 32px;\n  right: 0;\n  z-index: 3;\n  display: none;\n}\n.gwd-epic-bar-container .gwd-epic-price[data-v-acea5bbc]:hover {\n  background: #1e94f8;\n}\n.gwd-epic-bar-container .gwd-epic-price:hover .gwd-price-trend-panel[data-v-acea5bbc] {\n  z-index: 3;\n  display: block;\n}\n.gwd-epic-bar-container .gwd-top-price[data-v-acea5bbc] {\n  margin-top: 18px;\n  justify-content: center;\n  position: relative;\n  z-index: 3;\n}\n.gwd-epic-bar-container .gwd-top-price .gwd-price-text[data-v-acea5bbc] {\n  display: inline-block;\n  min-width: 88px;\n  height: 26px;\n  margin-left: 18px;\n  margin-right: 18px;\n  text-align: center;\n  border-width: 1px;\n  border-style: solid;\n  line-height: 24px;\n}\n.ttip-discount[data-v-acea5bbc] {\n  background: #000000;\n  color: #aaaaaa;\n  width: 110px;\n  height: 52px;\n}\n", ""]);

// exports


/***/ }),

/***/ 56113:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, s_server = $data.s_server, extBrand = $data.extBrand;
    $$out += '<style type="text/css">\n  .house_centanet2 .house-item {\n    position: relative;\n    overflow: visible;\n  }\n  .house_5i5j #bdext_mb_bg.dppage, .house_centanet2 #bdext_mb_bg.dppage {\n    position: relative;\n  }\n  #bdext_mb_bg.dppage {\n    height: 40px;\n  }\n  .house-trend-bg {\n      background: url("';
    $$out += $escape(s_server);
    $$out += '/images/extensions/xbt/house-trend-icon3.png") no-repeat;\n    }\n    .house-trend-box {\n      position: absolute;\n      right: 0px;\n      bottom: 50px;\n      width: 282px;\n      height: 32px;\n      border: 1px solid #eee;\n      border-radius: 5px;\n      background: #fff;\n      display: block!important;\n      box-sizing: content-box;\n      font-family: "Microsoft Yahei","微软雅黑"\n    }\n    #bdext_mb_bg #bdext_minibar {\n      position: absolute;\n      right: 0px;\n      bottom: 56px;\n      display: block;\n    }\n    .house_centanet2 #bdext_mb_bg #bdext_minibar {\n      right: 6px;\n      bottom: 29px;\n    }\n    .house_centanet2 #bdext_mb_bg.dppage #bdext_minibar {\n      right: -32px;\n    }\n    .house_centanet #bdext_mb_bg.dppage #bdext_minibar {\n      right: -18px;\n    }\n    .house_5i5j #bdext_mb_bg #bdext_minibar {\n      bottom: 30px;\n    }\n    .house_centanet #bdext_mb_bg #bdext_minibar {\n      bottom: 20px;\n    }\n    #bdext_mb_bg.dppage #bdext_minibar {\n      bottom: -8px;\n      position: relative;\n      display: block;\n    }\n    .house-trend-box * {\n      box-sizing: content-box;\n    }\n    .house-trend-box.trend-box-1 .ht-trend-desc {\n      background-color: #f0f0f0;\n    }\n    .house_lianjia2 .house-trend-box {\n      bottom: 32px;\n    }\n    .house_centanet .house-trend-box {\n      right: 40px;\n      bottom: 22px;\n    }\n    .house_centanet2 .house-trend-box {\n      right: 52px;\n      bottom: 32px;\n    }\n    .house_centanet .house-trend-box.dppage {\n      right: -16px;\n      bottom: 0px;\n    }\n    .house_centanet2 .house-trend-box.dppage {\n      right: -38px;\n      bottom: -15px;\n    }\n    .';
    $$out += $escape(extBrand);
    $$out += '_5i5j .house-trend-box {\n      bottom: 29px;\n    }\n    .house-trend-box.dppage, .gwd_lianjia .house-trend-box.dppage {\n      position: relative;\n      bottom: 0px;\n    }\n    .house_lianjia2 .house-trend-box.dppage {\n      bottom: 1px;\n    }\n    .houset-btn {\n      width: 100%;\n      height: 100%;\n    }\n    .houset-btn:after {\n      content: "";\n      display: block;\n      clear: both;\n    }\n    .houset-detail {\n      position: absolute;\n      top: 32px;\n      right: 0px;\n      height: 285px;\n      width: 580px;\n      z-index: 999999999;\n      border: 1px solid #eee;\n      background-color: #fff;\n      box-sizing: content-box;\n      box-shadow: 0px 5px 15px 0 rgba(23,25,27,0.15);\n      display: none;\n    }\n    #bdext_mb_bg .houset-detail {\n      top: 188px;\n      right: 0px;\n    }\n    .house_centanet2 #bdext_mb_bg .houset-detail {\n      top: 196px;\n      right: 5px;\n    }\n    .house_5i5j #bdext_mb_bg .houset-detail {\n      top: 133px;\n    }\n    .house_centanet #bdext_mb_bg .houset-detail {\n      top: 230px;\n    }\n    #bdext_mb_bg.dppage .houset-detail {\n      top: 97px;\n      right: 149px;\n    }\n    .house_centanet2 #bdext_mb_bg.dppage .houset-detail {\n      top: 48px;\n      right: 235px;\n    }\n    .house_centanet #bdext_mb_bg.dppage .houset-detail {\n      top: 152px;\n      right: 51px;\n    }\n    .house_5i5j #bdext_mb_bg.dppage .houset-detail {\n      top: 46px;\n      right: 78px;\n    }\n    .house-trend-img {\n      float: left;\n      width: 452px;\n      height: 217px;\n      margin-top: 28px;\n    }\n    .houset-detail .house-trend-img img {\n      width: 100%;\n      height: 100%;\n    }\n    .houset-btn a {\n      float: left;\n      width: 32px;\n      height: 32px;\n      background-position: -6px -48px;\n      border-top-left-radius: 5px;\n      border-bottom-left-radius: 5px;\n    }\n    .ht-trend-desc {\n      float: left;\n      height: 32px;\n      width: 124px;\n      cursor: pointer;\n    }\n    .ht-price-remind {\n      float: left;\n      width: 124px;\n      height: 32px;\n      border-left: 1px solid #e6e6e6;\n      cursor: pointer;\n    }\n    .ht-price-remind:hover {\n      background-color: #f1f5f6;\n    }\n    .ht-price-remind span {\n      color: #f7705b;\n      font-size: 14px;\n      float: right;\n      height: 32px;\n      width: auto;\n      line-height: 32px;\n      margin-right: 6px;\n    }\n    .ht-price-remind em {\n      background-position: -30px -22px;\n      height: 16px;\n      width: 16px;\n      float: right;\n      margin-right: 22px;\n      margin-top: 8px;\n    }\n    .ht-price-remind.hasremind span {\n      color: #333;\n    }\n    .ht-price-remind.hasremind em {\n      background-position: -57px -22px;\n      margin-right: 16px;\n    }\n    .bdext-mini-trend.mshover{\n      border: 1px solid #425766;\n      z-index: 2;\n    }\n    .ht-trend-desc.mshover {\n      background-color: #f1f5f6;\n    }\n    .ht-trend-desc span {\n      line-height: 32px;\n      font-size: 14px;\n      float: left;\n      cursor: pointer;\n      margin-left: 22px;\n    }\n    .ht-trend-desc span.h-color0 {\n      color: #f7a82b;\n    }\n    .ht-trend-desc span.h-color1 {\n      color: #ff1e1e;\n    }\n    .ht-trend-desc span.h-color2, .ht-trend-desc span.h-color3 {\n      color: #0baa74;\n    }\n    .ht-trend-desc span.h-color3 {\n      margin-left: 10px;\n    }\n    .ht-trend-desc span.h-color-1 {\n      color: #888;\n    }\n    .ht-trend-desc em {\n      float: left;\n      height: 20px;\n      width: 26px;\n      margin-top: 6px;\n      margin-left: 8px;\n    }\n    .ht-trend-desc .trend-icon0 {\n        background-position: -32px -2px;\n    }\n    .ht-trend-desc .trend-icon1 {\n        background-position: -66px -2px;\n    }\n    .ht-trend-desc .trend-icon2 {\n        background-position: -5px -2px;\n    }\n    .ht-trend-desc .trend-icon3 {\n        background-position: -4px -20px;\n    }\n    .ht-trend-desc .trend-icon-1 {\n      display: none;\n    }\n    #bdext_mb_bg .trend-icon2, #bdext_mb_bg .trend-icon3 {\n      background-position: 0px -109px;\n    }\n    #bdext_mb_bg .trend-icon0 {\n      background-position: 0px -84px;\n    }\n    #bdext_mb_bg .trend-icon1 {\n      background-position: 0px -57px;\n    }\n    #bdext_mb_bg .trend-icon-1 {\n      display: none;\n    }\n    .price-range {\n      position: absolute;\n      top: 8px;\n      right: 129px;\n      width: auto;\n      text-align: right;\n    }\n    .price-range span {\n      line-height: 20px;\n      font-size: 14px;\n      color: #505050;\n    }\n    .price-range .toppri {\n      color: #e64340;\n    }\n    .price-range .lowpri {\n      color: #0baa74;\n      margin-left: 14px;\n    }\n    .house-price-qrcode {\n      float: right;\n      height: 100%;\n      width: 123px;\n      text-align: center;\n      border-left: 1px solid #f0f0f0;\n    }\n    .house-price-qrcode span {\n      font-size: 14px;\n      float: left;\n      width: 100%;\n      height: 14px;\n      margin-bottom: 8px;\n      line-height: 14px!important;\n      text-align: center;\n      color: #353535;\n    }\n    .house-price-qrcode .mgtop {\n      margin-top: 51px;\n      margin-bottom: 10px;\n    }\n    .house-price-qrcode img {\n      display: inline-block!important;\n      width: 100px!important;\n      height: auto!important;\n      float: left;\n      margin-left: 11px;\n    }\n    .house-price-qrcode p {\n      font-size: 12px;\n      line-height: 12px;\n      margin-top: 5px;\n      float: left;\n      margin-left: 20px;\n    }\n    .house-price-qrcode p.house-p-p2{\n      margin-left: 32px;\n      margin-top: 8px;\n    }\n    #exchangeList .list-body>li {\n      overflow: visible;\n      height: 166px;\n    }\n    .house-basic-main {\n      overflow: visible;\n      height: 378px;\n    }\n    .';
    $$out += $escape(extBrand);
    $$out += '_lianjia .content  {\n      padding-bottom: 70px;\n    }\n    .house_lianjia2 .m-list li {\n      height: 214px;\n      overflow: visible;\n      position: relative;\n    }\n    .ht-wxqrcode {\n      position: absolute;\n      top: 32px;\n      right: 0px;\n      width: 124px;\n      height: 176px;\n      border: 1px solid #dadee1;\n      background-color: #fff;\n      z-index: 999999999999;\n      box-shadow: 0px 5px 15px 0 rgba(23,25,27,0.15);\n      display: none;\n    }\n    .ht-wxqrcode * {\n      float: left;\n    }\n    .ht-wxqrcode span {\n      width: 100%;\n      height: 14px;\n      line-height: 14px;\n      font-size: 14px;\n      text-align: center;\n    }\n    .ht-wxqrcode img {\n      width: 100px!important;\n      height: 100px!important;\n      margin-top: 4px;\n      margin-left: 11px;\n    }\n    .ht-wx-sp1 {\n      margin-top: 10px;\n      color: #585858;\n    }\n    .ht-wx-sp2 {\n      margin-top: 8px;\n      color: #eb6862;\n    }\n    .ht-wx-sp3 {\n      color: #b2b2b2;\n      text-decoration: underline!important;\n      font-size: 12px!important;\n      cursor: pointer;\n    }\n\n    .community-price {\n      position: absolute;\n      height: 247px;\n      width: 452px;\n      top: 0px;\n      display: none;\n      background: #fff;\n    }\n    .change_trend_btn {\n      text-align: center;\n      position: absolute;\n      bottom: 16px;\n      width: 462px;\n      z-index: 99;\n    }\n    .change_trend_btn div {\n      margin: 0 auto;\n      display: inline-block;\n      width: auto;\n      height: 22px;\n    }\n    .change_trend_btn span {\n      float: left;\n      cursor: pointer;\n      height: 22px;\n      width: 80px;\n      font-size: 12px;\n      border: 1px solid #3ebdef;\n      border-radius: 20px;\n      color: #3ebdef;\n      margin-left: 70px;\n      line-height: 22px;\n      text-align: center;\n    }\n    .change_trend_btn span.trend-choose {\n      background-color: #3ebdef;\n      color: #fff;\n    }\n    .change_trend_btn .house-trend-b {\n      margin-left: 0px;\n    }\n    .pList li {\n      position: relative;\n      height: 195px;\n      overflow: visible!important;\n    }\n    .gwd_maitian .list_wrap ul li {\n      overflow: visible!important;\n    }\n    .gwd_maitian .house-trend-box {\n      float: left;\n    }\n    .gwd_lianjia .house-trend-box {\n      bottom: 37px;\n    }\n    .houset-detail .community-price table {\n      width: auto!important;\n    }\n</style>';
    return $$out;
};

/***/ }),

/***/ 56279:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var defineBuiltIn = __webpack_require__(36840);

module.exports = function (target, src, options) {
  for (var key in src) defineBuiltIn(target, key, src[key], options);
  return target;
};


/***/ }),

/***/ 56283:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ ShaiDanPicvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ ShaiDanPic)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/ShaiDanPic.vue?vue&type=template&id=ef176d54&scoped=true
var ShaiDanPicvue_type_template_id_ef176d54_scoped_true = __webpack_require__(42670);
;// ./src/standard/module/trend/ShaiDanPic.vue?vue&type=template&id=ef176d54&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/ShaiDanPic.vue?vue&type=script&lang=js
var ShaiDanPicvue_type_script_lang_js = __webpack_require__(44900);
;// ./src/standard/module/trend/ShaiDanPic.vue?vue&type=script&lang=js
 /* harmony default export */ const trend_ShaiDanPicvue_type_script_lang_js = (ShaiDanPicvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/ShaiDanPic.vue?vue&type=style&index=0&id=ef176d54&prod&scoped=true&lang=less
var ShaiDanPicvue_type_style_index_0_id_ef176d54_prod_scoped_true_lang_less = __webpack_require__(32546);
;// ./src/standard/module/trend/ShaiDanPic.vue?vue&type=style&index=0&id=ef176d54&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/trend/ShaiDanPic.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  trend_ShaiDanPicvue_type_script_lang_js,
  ShaiDanPicvue_type_template_id_ef176d54_scoped_true/* render */.XX,
  ShaiDanPicvue_type_template_id_ef176d54_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "ef176d54",
  null
  
)

/* harmony default export */ const ShaiDanPic = (component.exports);

/***/ }),

/***/ 56678:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const extConsole = __webpack_require__(7129);
const prefix = G.aliPrefix;
let isTb2025 = $('[class^=Item2025--]').length;
const getRateCountText = async () => {
  if (G.aliSite) {
    let selector = `.${prefix}--tagItem--_52372dc`;
    if ($(`.tabDetailItemTitle--bJtPXTNu`).length) {
      isTb2025 = true;
      selector = `.tabDetailItemTitle--bJtPXTNu`;
      if (G.GwdConfig.aiReview) {
        selector = G.GwdConfig.aiReview.tbReviewTextSelector;
      }
    }
    await (__webpack_require__(30888).waitForConditionFn)(() => {
      return $(`${selector}`).length && $(`${selector}:eq(0)`).text();
    });
    extConsole.log('text', $(`${selector}:eq(0)`).text());
    return $(`${selector}:eq(0)`).text();
  } else {
    if ((__webpack_require__(60340).isNewJd)()) {
      await (__webpack_require__(30888).waitForConditionFn)(() => {
        return $('#comment .comment-title').length && $('#comment .comment-title').text().includes('评价(');
      });
      return $('#comment .comment-title').text();
    }
    await (__webpack_require__(30888).waitForConditionFn)(() => {
      return $('li[data-anchor=#comment]').length && $('li[data-anchor=#comment]').text().includes('评价');
    });
    return $('li[data-anchor=#comment]').text();
  }
};
const allowAIReview = async () => {
  const globalConfig = await (__webpack_require__(41761).met)('GwdConfig');
  if (!globalConfig.aiReview) {
    return false;
  }
  if ($('.Tabs--title--1Ov7S5f').length) {
    return true;
  }
  const rateCountText = await getRateCountText();
  if (rateCountText.includes('万')) {
    return true;
  }
  try {
    const count = parseInt(rateCountText.match(/\d+/)[0]);
    return count >= 100;
  } catch (e) {
    extConsole.error('获取评价数失败', e);
    extConsole.log('评价数文本', rateCountText);
    return false;
  }
};
const addLoopButton = async () => {
  while (true) {
    extConsole.log('loop start');
    const tb2025Selector = G.GwdConfig.aiReview ? G.GwdConfig.aiReview.tbLoopButtonMountPoint : '.Drawer--nzZd5HyY .tabDetailItemTitle--bJtPXTNu';
    const aliSelector = isTb2025 ? tb2025Selector : `.${G.aliPrefix}--leftDrawer--_7efaeec .${G.aliPrefix}--tabDetailItemTitle--_66fb07e`;
    let searchFor = G.aliSite ? aliSelector : '[class^=index-module__titleName--]';
    await (__webpack_require__(30888).waitForConditionFn)(() => {
      return $(searchFor).length;
    });
    extConsole.log('loop button found');
    await (__webpack_require__(60340).sleep)(500);
    const button = document.createElement('button');
    const btnImg = 'tbBadReview';
    const btnImgStyle = 'width: 126px; height: 36px';
    button.innerHTML = `<img src="https://cdn.gwdang.com/images/extensions/ai/${btnImg}@2x.png" style="${btnImgStyle}" />`;
    button.style.marginLeft = '40px';
    button.style.background = 'none';
    button.style.border = 'none';
    button.style.cursor = 'pointer';
    if (G.site === '360buy') {
      button.style.position = 'relative';
      button.style.top = '-4px';
    }
    $(searchFor).append(button);
    button.onclick = () => {
      window.gwdAIReview.$refs.popup.open();
    };
    await (__webpack_require__(30888).waitForConditionFn)(() => {
      return !$(searchFor).length;
    });
  }
};
module.exports = {
  async init() {
    if (!(G.aliSite || G.site === '360buy')) {
      return;
    }
    if (window.gwd_ai_review) {
      return;
    }
    window.gwd_ai_review = true;
    if (!(await allowAIReview())) {
      extConsole.log('不满足AI评测条件');
      return;
    }
    const isNewJd = (__webpack_require__(60340).isNewJd)();
    const button = document.createElement('button');
    const btnImg = G.aliSite || isNewJd ? 'tbBadReview' : 'jdBadReview';
    const btnImgStyle = G.aliSite || isNewJd ? 'width: 126px; height: 36px' : 'width: 90px; height: 26px';
    button.innerHTML = `<img src="https://cdn.gwdang.com/images/extensions/ai/${btnImg}@2x.png" style="${btnImgStyle}" />`;
    button.style.marginLeft = G.aliSite || isNewJd ? '40px' : '10px';
    button.style.background = 'none';
    button.style.border = 'none';
    button.style.cursor = 'pointer';
    if (G.aliSite) {
      button.style.position = 'relative';
      button.style.top = '-2px';
    }
    const el = document.createElement('DIV');
    document.body.appendChild(el);
    window.gwdAIReview = new Vue({
      el: el,
      render: h => h((__webpack_require__(31645)/* ["default"] */ .A), {
        ref: 'popup'
      })
    });
    addLoopButton();
    if (G.aliSite) {
      (__webpack_require__(30888).waitForConditionFn)(() => {
        return $(`.Tabs--header--1TOUJlh`).length;
      }).then(() => {
        $(`.Tabs--header--1TOUJlh`).append(button);
      });
      const tbButtonMountPointSelectot = G.GwdConfig.aiReview ? G.GwdConfig.aiReview.tbButtonMountPoint : '.tabDetailItemTitle--bJtPXTNu';
      const tabDetailItemTitleSelector = isTb2025 ? tbButtonMountPointSelectot : `.${prefix}--tabDetailWrap--_3622a08 .${prefix}--tabDetailItemTitle--_66fb07e`;
      (__webpack_require__(30888).waitForConditionFn)(() => {
        return $(tabDetailItemTitleSelector).length;
      }).then(() => {
        $(tabDetailItemTitleSelector).append(button);
      });
      // $('#titleTabs').append(buttonSame)
    } else {
      (__webpack_require__(30888).waitForConditionFn)(() => {
        return $('.summary .summary-info').length;
      }).then(() => {
        $('.summary .summary-info').append(`
          <button id="gwd-alter-aireview" class="gwd-row gwd-align gwd-jcc" style="position: absolute; left: 50%; margin-left: -25px; top: 50px; width: 51px; height: 18px; background: none; border: none;">
            <img style="width: 51px; height: 18px;" src="https://cdn.gwdang.com/images/extensions/ai/jdBadReviewText@2x.png" alt="" />
          </button>
        `);
        $('#gwd-alter-aireview').click(() => {
          window.gwdAIReview.$refs.popup.open();
        });
      });
      const listSelector = '#comment .comment-percent';
      (__webpack_require__(30888).waitForConditionFn)(() => {
        return $('#comment .mt').length && !$('#comment').hasClass('ELazy-loading') && $(listSelector).length || $('.comment-title').length;
      }).then(() => {
        button.style.position = 'relative';
        button.style.top = '1px';
        button.style.right = '27px';
        if ($('.comment-title').length) {
          $('.comment-title').append(button);
        } else {
          $(listSelector).append(button);
          setInterval(() => {
            if ($('#comment .mt').length && !$('#comment').hasClass('ELazy-loading') && !$('#comment .comment-percent').find('button').length) {
              $(listSelector).append(button);
            }
          }, 300);
        }
      });
      // $('#detail .tab-main ul').append(buttonSame)

      if ((__webpack_require__(60340).isNewJd)()) {
        (__webpack_require__(30888).waitForConditionFn)(() => {
          return $('#comment .comment-title').length;
        }).then(() => {
          button.style.position = 'relative';
          button.style.top = '0px';
          button.style.right = '0px';
          $('#comment .comment-title').append(button);
        });
      }
    }
    button.addEventListener('click', () => {
      window.gwdAIReview.$refs.popup.open();
    });

    // const elSame = document.createElement('DIV')
    // document.body.appendChild(elSame)
    // window.gwdAISame = new Vue({
    //   el: elSame,
    //   render: h => h(require('standard/module/components/AI/ProductComparePopup.vue').default, {
    //     ref: 'popup'
    //   })
    // })

    // buttonSame.addEventListener('click', () => {
    //   window.gwdAISame.$refs.popup.open(G.dp.name ? G.dp.name : document.title)
    // })
  }
};

// gwdAIReview.$refs.popup.status = 'failed';gwdAIReview.$refs.popup.userRanks = []; gwdAIReview.$refs.popup.buyItems = []
// gwdAIReview.$refs.popup.markdownText = 'Limited';gwdAIReview.$refs.popup.result = {}

/***/ }),

/***/ 56756:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

const Utils = __webpack_require__(92726)

function getColorAttrib (color, attrib) {
  const alpha = color.a / 255
  const str = attrib + '="' + color.hex + '"'

  return alpha < 1
    ? str + ' ' + attrib + '-opacity="' + alpha.toFixed(2).slice(1) + '"'
    : str
}

function svgCmd (cmd, x, y) {
  let str = cmd + x
  if (typeof y !== 'undefined') str += ' ' + y

  return str
}

function qrToPath (data, size, margin) {
  let path = ''
  let moveBy = 0
  let newRow = false
  let lineLength = 0

  for (let i = 0; i < data.length; i++) {
    const col = Math.floor(i % size)
    const row = Math.floor(i / size)

    if (!col && !newRow) newRow = true

    if (data[i]) {
      lineLength++

      if (!(i > 0 && col > 0 && data[i - 1])) {
        path += newRow
          ? svgCmd('M', col + margin, 0.5 + row + margin)
          : svgCmd('m', moveBy, 0)

        moveBy = 0
        newRow = false
      }

      if (!(col + 1 < size && data[i + 1])) {
        path += svgCmd('h', lineLength)
        lineLength = 0
      }
    } else {
      moveBy++
    }
  }

  return path
}

exports.render = function render (qrData, options, cb) {
  const opts = Utils.getOptions(options)
  const size = qrData.modules.size
  const data = qrData.modules.data
  const qrcodesize = size + opts.margin * 2

  const bg = !opts.color.light.a
    ? ''
    : '<path ' + getColorAttrib(opts.color.light, 'fill') +
      ' d="M0 0h' + qrcodesize + 'v' + qrcodesize + 'H0z"/>'

  const path =
    '<path ' + getColorAttrib(opts.color.dark, 'stroke') +
    ' d="' + qrToPath(data, size, opts.margin) + '"/>'

  const viewBox = 'viewBox="' + '0 0 ' + qrcodesize + ' ' + qrcodesize + '"'

  const width = !opts.width ? '' : 'width="' + opts.width + '" height="' + opts.width + '" '

  const svgTag = '<svg xmlns="http://www.w3.org/2000/svg" ' + width + viewBox + ' shape-rendering="crispEdges">' + bg + path + '</svg>\n'

  if (typeof cb === 'function') {
    cb(null, svgTag)
  }

  return svgTag
}


/***/ }),

/***/ 56815:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(26418);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("50626acc", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 56857:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _CouponLinkMixin = _interopRequireDefault(__webpack_require__(10276));
var _default = exports.A = {
  mixins: [_CouponLinkMixin.default]
};

/***/ }),

/***/ 56865:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, $escape = $imports.$escape, imgLoad = $data.imgLoad, s_server = $data.s_server;
    $each(data, function ($value, $index) {
        $$out += '\n  <li >\n    <a class="item_img" href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank" title="';
        $$out += $escape($value.title);
        $$out += '">\n      <img id="dp_';
        $$out += $escape($value.dp_id);
        $$out += '" src="';
        $$out += $escape(imgLoad);
        $$out += '" data-original="';
        $$out += $escape($value.img);
        $$out += '">\n    </a>\n    <div class="item_desc">\n      <a class="item_title blkcolor3" href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank" title="';
        $$out += $escape($value.title);
        $$out += '">';
        $$out += $escape($value.title);
        $$out += '</a>\n      <span class="other_desc">\n        <span class="site_icon" ><img src="';
        $$out += $escape(s_server);
        $$out += '/images/favicon/';
        $$out += $escape($value.site_id);
        $$out += '.ico"></span>\n        <span class="item_price prifontf">';
        $$out += $escape($value.newPrice);
        $$out += '</span>\n        <span class="item_close_btn blkcolor4" data-id="';
        $$out += $escape($value.id);
        $$out += '">删除</span>\n      </span>\n    </div>\n  </li>\n';
    });
    $$out += '\n<style>\n  .item_img {\n    text-decoration: none!important;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 56886:
/***/ ((__unused_webpack_module, exports) => {

let toSJISFunction
const CODEWORDS_COUNT = [
  0, // Not used
  26, 44, 70, 100, 134, 172, 196, 242, 292, 346,
  404, 466, 532, 581, 655, 733, 815, 901, 991, 1085,
  1156, 1258, 1364, 1474, 1588, 1706, 1828, 1921, 2051, 2185,
  2323, 2465, 2611, 2761, 2876, 3034, 3196, 3362, 3532, 3706
]

/**
 * Returns the QR Code size for the specified version
 *
 * @param  {Number} version QR Code version
 * @return {Number}         size of QR code
 */
exports.getSymbolSize = function getSymbolSize (version) {
  if (!version) throw new Error('"version" cannot be null or undefined')
  if (version < 1 || version > 40) throw new Error('"version" should be in range from 1 to 40')
  return version * 4 + 17
}

/**
 * Returns the total number of codewords used to store data and EC information.
 *
 * @param  {Number} version QR Code version
 * @return {Number}         Data length in bits
 */
exports.getSymbolTotalCodewords = function getSymbolTotalCodewords (version) {
  return CODEWORDS_COUNT[version]
}

/**
 * Encode data with Bose-Chaudhuri-Hocquenghem
 *
 * @param  {Number} data Value to encode
 * @return {Number}      Encoded value
 */
exports.getBCHDigit = function (data) {
  let digit = 0

  while (data !== 0) {
    digit++
    data >>>= 1
  }

  return digit
}

exports.setToSJISFunction = function setToSJISFunction (f) {
  if (typeof f !== 'function') {
    throw new Error('"toSJISFunc" is not a valid function.')
  }

  toSJISFunction = f
}

exports.isKanjiModeEnabled = function () {
  return typeof toSJISFunction !== 'undefined'
}

exports.toSJIS = function toSJIS (kanji) {
  return toSJISFunction(kanji)
}


/***/ }),

/***/ 56969:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var toPrimitive = __webpack_require__(72777);
var isSymbol = __webpack_require__(10757);

// `ToPropertyKey` abstract operation
// https://tc39.es/ecma262/#sec-topropertykey
module.exports = function (argument) {
  var key = toPrimitive(argument, 'string');
  return isSymbol(key) ? key : key + '';
};


/***/ }),

/***/ 57031:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const html = __webpack_require__(55182);
const template = __webpack_require__(26133);
const miniFavor = __webpack_require__(23107);
const request = __webpack_require__(49388);
const userData = __webpack_require__(74222);
const globalCondition = __webpack_require__(41761);
let globalFavor = {};
let isRender, firstRender;
let QRrendered;
const addLoginBeforeEvent = () => {
  $('#login-remind p').css('color', '#E4393C');
};
const settingRemind = (type, email) => {
  let setting_type = type;
  let setting_email = email || '';
  let url = `${G.c_server}/api/remind_setting?action=set&email=${G.email}&setting_type=${setting_type}&remind_email=${setting_email}`;
  request.get(url);
};
const addRemindEvent = () => {
  let qrcodeShow;
  // $('#favor_box .bar-jiangjia-re .select-item').off('click', addLoginBeforeEvent)
  $('.remindHint').hide();
  $('#favor_box .bar-jiangjia-re .select-item').on('click', function () {
    $(this).parent().parent().find('.select-item').removeClass('selected');
    $(this).addClass('selected');
    if ($(this).hasClass('qrcode-item')) {
      $('#remind_qrcode_img').show();
    } else if ($(this).hasClass('email-item')) {
      $('#remind_qrcode_img').hide();
    }
  });
  $('#bar_subbtn').on('click', function () {
    let ischoosed = $('#favor_box').hasClass('favor_choosed');
    let dom = $('#favor_box .jj-remind .select-item.selected');
    let notify_site = dom.attr('data-type');
    let price = dom.parent().find('input').val();
    const hasDot = price.split('.').length > 1;
    if (!/^[\d\.]+$/.test(price) || price < 0 || hasDot && price.split('.')[1].length > 2 || isNaN(parseFloat(price))) {
      $('.error_remind').text('请输入正确格式的价格').show().fadeOut(2000);
      return;
    }
    if (price > allowedMinPrice) {
      $('.error_remind').text('价格不能高于当前商品价格').show().fadeOut(2000);
      return;
    }
    if (!price || price === '0' || price.match(/[a-zA-Z]/)) {
      $('.error_remind').text('请输入商品期望价格').show().fadeOut(2000);
      return;
    }
    if (!ischoosed) {
      let remind_email;
      let remind_type = $('#favor_box .jj-style .select-item.selected').attr('data-type');
      if (remind_type === '1') {
        remind_email = $('#favor_box .jj-style .re-mail').val();
      }
      settingRemind(remind_type, remind_email);
      $('#favor_box').addClass('favor_choosed');
      $('#edit_remind_style, #remind_qrcode').show();
    }

    /*notify_site => 0 全网 1 当前网站*/
    // $(`#${G.extName}-trend-detail`).hide()
    $('#remind_qrcode_img').hide();
    qrcodeShow = false;
    miniFavor.add_favor(notify_site, price);
  });
  $('#remind_qrcode').on('click', () => {
    QRrendered = $('#remind_qrcode_img img').attr('src');
    if (!qrcodeShow) {
      if (!QRrendered) {
        getQRcode(() => {
          $('#remind_qrcode_img').show();
          qrcodeShow = true;
        });
      } else {
        $('#remind_qrcode_img').show();
        qrcodeShow = true;
      }
    } else {
      $('#remind_qrcode_img').hide();
      qrcodeShow = false;
    }
  });
  $('#edit_remind_style').on('click', () => {
    $('#favor_box').removeClass('favor_choosed');
    $('#edit_remind_style').hide();
  });
};
module.exports.loginRenderTop = () => {
  $('#login-remind').hide();
  addRemindEvent();
};
const addEvent = () => {
  $('#login-remind .go_login_btn').on('click', () => {
    // $('#login-remind p').css('color', '#9b9b9b')
    // $('#login-remind').hide()
    // $('.login-content').show().animate({
    //   right: '0px'
    // }, 500)
    let url = encodeURIComponent(location.href);
    location.href = `https://www.gwdang.com/user/login?ext=1&from_url=${url}`;
  });
  $('body').on('gwd-login-complete', e => {
    G.userLogin = true;
    addRemindEvent();
  });
  $('#loginClickBtnBar').on('click', () => {
    let userN = $('#barusername').val();
    let psd = $('#barpassword').val();
    if (userN && psd) {
      miniFavor.userLogin(userN, psd, function () {
        addRemindEvent();
      });
    } else {
      $('#login_remind_tle, #login_remind_tle_bar').css('display', 'block').fadeOut(5000);
    }
  });
  $('#favor_box').on('mouseenter', function () {
    getQRcode();
  });
  $('#log_back_btn').on('click', function () {
    $('#login-remind').show();
    $('.login-content').animate({
      right: '-292px'
    }, 500, function () {
      $('.login-content').hide();
    });
  });
};
const getQRcode = async (callback, force = false) => {
  await globalCondition.met('userLoginChecked');
  if (QRrendered) {
    $('#remind_qrcode_img img').attr('src', QRrendered);
    $('.qrcode-jj img').attr('src', QRrendered);
    $('.sk-qrcode img').attr('src', QRrendered);
  }
  if ((QRrendered || !G.userLogin) && !force) return;
  let url = `https://www.gwdang.com/collect/get_qrcode/`;
  if (G.qrApi && G.qrApi !== 'default') {
    url = G.qrApi;
  }
  request.rawGet(url, true).then(function (data) {
    QRrendered = data.img_url;
    $('#remind_qrcode_img img').attr('src', data.img_url);
    $('.qrcode-jj img').attr('src', data.img_url);
    $('.sk-qrcode img').attr('src', data.img_url);
    if (callback) {
      callback();
    }
    $('#remind_qrcode').show();
  });
};
module.exports.getQRcode = getQRcode;
let allowedMinPrice = 0;

// 渲染登录下的降价提醒
const renderTop2 = msg => {
  let oinfo = userData.get('other_info');
  if (!oinfo) return;
  let dp_query = userData.get('dp_query');
  let choosed, remind_type, lowestUrl;
  let now = oinfo.now;
  if (!now.dp_id && now.url_crc && now.site_id) {
    now.dp_id = now.url_crc + '-' + now.site_id;
  }
  if (!now.dp_id) return;
  let url = encodeURIComponent(location.href);
  let nowprice = oinfo['code-server'] && oinfo['code-server'].price || G.dp.price;
  allowedMinPrice = nowprice;
  if (G.aliSite) nowprice = G.dp.price;
  if (!allowedMinPrice) {
    allowedMinPrice = globalFavor['nowprice'];
  }
  let allprice = dp_query && dp_query.b2c.min_price || nowprice;
  nowprice = Number(nowprice.toString().replace(',', ''));
  allprice = Number(allprice.toString().replace(',', ''));
  if (dp_query && dp_query.b2c.product && dp_query.b2c.product.length !== 0) {
    lowestUrl = dp_query.b2c.product[0].url;
  }
  if (G.aliSite) {
    lowestUrl = 'javascript:';
  }
  if (msg.has_remind_type) {
    choosed = true;
  }
  if (msg.is_collected) {
    globalFavor.is_collected = msg.is_collected;
    if (parseInt(msg.notify_site) === 1) nowprice = msg.remind_price;else allprice = msg.remind_price;
  }
  nowprice = nowprice || globalFavor['nowprice'];
  allprice = allprice || nowprice;
  globalFavor.notify_site = msg.notify_site;
  remind_type = msg.remind_type || '0';
  let imgHost = G.imgHost;
  if (G.from_device === 'firefox') {
    imgHost = G.localImg;
  }
  let riyuan = "";
  if (location.host === 'www.amazon.co.jp') {
    riyuan = "日元";
  }
  let views = template.compile(html)({
    choosed: choosed,
    islogin: true,
    email: '',
    emailvalue: '',
    url: url,
    aliSite: G.aliSite,
    imgHost: imgHost,
    lowestUrl: lowestUrl,
    notify_site: globalFavor.notify_site,
    nowprice: nowprice,
    allprice: allprice,
    remind_type: remind_type,
    extName: G.extName,
    money: globalFavor['money'],
    riyuan: riyuan,
    lastprice: Number(globalFavor['nowprice']).toFixed(2),
    price_range: globalFavor['price_range']
  });
  if (globalFavor.notify_site === undefined) {
    setTimeout(() => {
      $('.remind-item-snd .select-item').addClass('selected');
    }, 1000);
  }
  $('#favor_box').remove();
  $(globalFavor['dom']).append(views);
  addRemindEvent();
};

// 未登录
const renderTop = async (dom, money) => {
  (__webpack_require__(7129).log)('login remind render top');
  await (__webpack_require__(41761).met)('dp_query_set');
  $('#favor_box').remove();
  let lowestUrl;
  let dp_query = userData.get('dp_query');
  if (dp_query && dp_query.b2c.product) {
    lowestUrl = dp_query.b2c.product[0].url;
  }
  let allprice = dp_query && dp_query.b2c.min_price;
  if (!allprice && dp_query && dp_query.b2c && dp_query.b2c.store) {
    allprice = Math.min.apply(null, dp_query.b2c.store.map(store => {
      return Math.min.apply(null, store.product.map(x => parseFloat(x.price)));
    }));
  }
  let nowprice = await (__webpack_require__(41761).met)('NowPrice');
  if (!allprice) {
    allprice = nowprice;
  }
  allprice = parseFloat(allprice);
  let imgHost = G.imgHost;
  if (G.from_device === 'firefox') {
    imgHost = G.localImg;
  }
  let riyuan = "";
  if (location.host === 'www.amazon.co.jp') {
    riyuan = "日元";
  }
  let url = encodeURIComponent(location.href);
  let view = template.compile(html)({
    email: G.email,
    emailvalue: '',
    lowestUrl: lowestUrl,
    notify_site: '0',
    nowprice: globalFavor['nowprice'],
    allprice: allprice,
    remind_type: '0',
    url: url,
    imgHost: imgHost,
    extName: G.extName,
    money: money,
    riyuan: riyuan,
    aliSite: G.aliSite,
    lastprice: Number(globalFavor['nowprice']).toFixed(2),
    price_range: globalFavor['price_range']
  });
  $(dom).append(view);
  const CommonLogin = (__webpack_require__(36664)["default"]);
  new Vue({
    el: '#gwd-login-remind',
    render: h => h(CommonLogin, {
      props: {
        position: 'gwd-remind',
        showAlterLogin: true,
        alterLoginPosition: 'row'
      }
    })
  });
  addEvent();
  $('#favor_box .bar-jiangjia-re .select-item').on('click', addLoginBeforeEvent);
};
const renderAgain = () => {
  if (!firstRender) return;
  //if (isRender) return;
  isRender = true;
  $('#favor_box').remove();
  // 加载之前需要获取到提醒方式
  (__webpack_require__(23107).getRemindStyle)(renderTop2);
};
module.exports.init = (dom, money, info) => {
  firstRender = true;
  if (!info.store) {
    return;
  }
  globalFavor['nowprice'] = Number(info['store'][0].current_price);
  let price_ranges = info['store'][0].price_range.split('-');
  globalFavor['price_range'] = Number(price_ranges[0]).toFixed(2) + ' ~ ' + Number(price_ranges[1]).toFixed(2);
  globalFavor['dom'] = dom;
  globalFavor['money'] = money;
  if (G.userLogin) {
    // 如果已经登录，让用户触发加载，因为需要请求网站接口
    $(document).on('renderAgain', function () {
      renderAgain();
    });
  } else {
    // if ($('#favor_box').length) {
    //   renderAgain()
    // } else {
    //   renderTop(dom, money)
    // }
    renderTop(dom, money);
  }
};
module.exports.renderAgain = renderAgain;

/***/ }),

/***/ 57422:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(24403);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("302a2324", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 57478:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-stamp-bg[data-v-2701b8ba] {\n  background: url(https://cdn.gwdang.com/images/extensions/middle-stamp@2x.png) no-repeat;\n  background-size: contain;\n  width: 112px;\n  height: 38px;\n  justify-content: center;\n}\n.gwd-stamp-bg .gwd-text[data-v-2701b8ba] {\n  font-size: 12px;\n  color: #f53867;\n  line-height: 14px;\n  transform: rotate(-17deg);\n  text-align: center;\n}\n", ""]);

// exports


/***/ }),

/***/ 57652:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.mW = exports.Ts = void 0;
__webpack_require__(3362);
var _CollectionSettingTop = _interopRequireDefault(__webpack_require__(9765));
const MiniBarCollectionButton = (__webpack_require__(43642)["default"]);
const CollectionSettingMini = (__webpack_require__(45077)/* ["default"] */ .A);
const init = async () => {
  const store = (__webpack_require__(92771).getStore)();
  // new Vue({
  //   el: '#gwd_mini_remind .minibar-btn-box',
  //   store,
  //   render: h => h(MiniBarCollectionButton)
  // })

  const instanceId = G.instanceId;
  (__webpack_require__(7129).log)('collection setting start with instance id', instanceId);
  (__webpack_require__(30888).waitForConditionFn)(() => $('.gwd-collection-mini-content').length && G.instanceId === instanceId).then(() => {
    (__webpack_require__(7129).log)('collection setting mini render', instanceId);
    new Vue({
      el: '.gwd-collection-mini-content',
      store,
      render: h => h(CollectionSettingMini, {
        props: {
          haitao: (__webpack_require__(49339).isHaitao)()
        }
      })
    });
  });
  (__webpack_require__(30888).waitForConditionFn)(() => $('.gwd-collection-trend-content').length && G.instanceId === instanceId).then(() => {
    (__webpack_require__(7129).log)('collection setting top render', instanceId);
    new Vue({
      el: '.gwd-collection-trend-content',
      store,
      render: h => h(_CollectionSettingTop.default, {
        props: {
          haitao: (__webpack_require__(49339).isHaitao)()
        }
      })
    });
    store.dispatch('priceRemind/init');
    $('#gwdang-trend').hover(() => {
      store.dispatch('priceRemind/hover');
    });
    (__webpack_require__(30888).waitForConditionFn)(() => $('#gwd_mini_remind').length).then(() => {
      $('#gwd_mini_remind').hover(() => {
        store.dispatch('priceRemind/hover');
      });
    });
  });
};
exports.Ts = init;
const setPriceData = (money, data) => {
  const store = (__webpack_require__(92771).getStore)();
  let price_ranges = data['store'][0].price_range.split('-');
  store.commit('priceTrend/setState', {
    money: money,
    nowPrice: Number(data['store'][0].current_price),
    priceRange: Number(price_ranges[0]).toFixed(2) + ' ~ ' + Number(price_ranges[1]).toFixed(2)
  });
};
exports.mW = setPriceData;

/***/ }),

/***/ 57657:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var fails = __webpack_require__(79039);
var isCallable = __webpack_require__(94901);
var isObject = __webpack_require__(20034);
var create = __webpack_require__(2360);
var getPrototypeOf = __webpack_require__(42787);
var defineBuiltIn = __webpack_require__(36840);
var wellKnownSymbol = __webpack_require__(78227);
var IS_PURE = __webpack_require__(96395);

var ITERATOR = wellKnownSymbol('iterator');
var BUGGY_SAFARI_ITERATORS = false;

// `%IteratorPrototype%` object
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;

/* eslint-disable es/no-array-prototype-keys -- safe */
if ([].keys) {
  arrayIterator = [].keys();
  // Safari 8 has buggy iterators w/o `next`
  if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
  else {
    PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
    if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
  }
}

var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {
  var test = {};
  // FF44- legacy iterators case
  return IteratorPrototype[ITERATOR].call(test) !== test;
});

if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
else if (IS_PURE) IteratorPrototype = create(IteratorPrototype);

// `%IteratorPrototype%[@@iterator]()` method
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
if (!isCallable(IteratorPrototype[ITERATOR])) {
  defineBuiltIn(IteratorPrototype, ITERATOR, function () {
    return this;
  });
}

module.exports = {
  IteratorPrototype: IteratorPrototype,
  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
};


/***/ }),

/***/ 57984:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".mx-icon-left:before,.mx-icon-right:before,.mx-icon-double-left:before,.mx-icon-double-right:before,.mx-icon-double-left:after,.mx-icon-double-right:after{content:\"\";position:relative;top:-1px;display:inline-block;width:10px;height:10px;vertical-align:middle;border-style:solid;border-color:currentColor;border-width:2px 0 0 2px;border-radius:1px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate(-45deg) scale(0.7);transform:rotate(-45deg) scale(0.7)}.mx-icon-double-left:after{left:-4px}.mx-icon-double-right:before{left:4px}.mx-icon-right:before,.mx-icon-double-right:before,.mx-icon-double-right:after{-webkit-transform:rotate(135deg) scale(0.7);transform:rotate(135deg) scale(0.7)}.mx-btn{-webkit-box-sizing:border-box;box-sizing:border-box;line-height:1;font-size:14px;font-weight:500;padding:7px 15px;margin:0;cursor:pointer;background-color:transparent;outline:none;border:1px solid rgba(0,0,0,.1);border-radius:4px;color:#73879c;white-space:nowrap}.mx-btn:hover{border-color:#1284e7;color:#1284e7}.mx-btn:disabled,.mx-btn.disabled{color:#ccc;cursor:not-allowed}.mx-btn-text{border:0;padding:0 4px;text-align:left;line-height:inherit}.mx-scrollbar{height:100%}.mx-scrollbar:hover .mx-scrollbar-track{opacity:1}.mx-scrollbar-wrap{height:100%;overflow-x:hidden;overflow-y:auto}.mx-scrollbar-track{position:absolute;top:2px;right:2px;bottom:2px;width:6px;z-index:1;border-radius:4px;opacity:0;-webkit-transition:opacity .24s ease-out;transition:opacity .24s ease-out}.mx-scrollbar-track .mx-scrollbar-thumb{position:absolute;width:100%;height:0;cursor:pointer;border-radius:inherit;background-color:rgba(144,147,153,.3);-webkit-transition:background-color .3s;transition:background-color .3s}.mx-zoom-in-down-enter-active,.mx-zoom-in-down-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(0.23, 1, 0.32, 1),-webkit-transform .3s cubic-bezier(0.23, 1, 0.32, 1);transition:opacity .3s cubic-bezier(0.23, 1, 0.32, 1),-webkit-transform .3s cubic-bezier(0.23, 1, 0.32, 1);transition:transform .3s cubic-bezier(0.23, 1, 0.32, 1),opacity .3s cubic-bezier(0.23, 1, 0.32, 1);transition:transform .3s cubic-bezier(0.23, 1, 0.32, 1),opacity .3s cubic-bezier(0.23, 1, 0.32, 1),-webkit-transform .3s cubic-bezier(0.23, 1, 0.32, 1);-webkit-transform-origin:center top;transform-origin:center top}.mx-zoom-in-down-enter,.mx-zoom-in-down-enter-from,.mx-zoom-in-down-leave-to{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.mx-datepicker{position:relative;display:inline-block;width:210px}.mx-datepicker svg{width:1em;height:1em;vertical-align:-0.15em;fill:currentColor;overflow:hidden}.mx-datepicker-range{width:320px}.mx-datepicker-inline{width:auto}.mx-input-wrapper{position:relative}.mx-input{display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:34px;padding:6px 30px;padding-left:10px;font-size:14px;line-height:1.4;color:#555;background-color:#fff;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.mx-input:hover,.mx-input:focus{border-color:#409aff}.mx-input:disabled,.mx-input.disabled{color:#ccc;background-color:#f3f3f3;border-color:#ccc;cursor:not-allowed}.mx-input:focus{outline:none}.mx-input::-ms-clear{display:none}.mx-icon-calendar,.mx-icon-clear{position:absolute;top:50%;right:8px;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:16px;line-height:1;color:rgba(0,0,0,.5);vertical-align:middle}.mx-icon-clear{cursor:pointer}.mx-icon-clear:hover{color:rgba(0,0,0,.8)}.mx-datepicker-main{font:14px/1.5 \"Helvetica Neue\",Helvetica,Arial,\"Microsoft Yahei\",sans-serif;color:#73879c;background-color:#fff;border:1px solid #e8e8e8}.mx-datepicker-popup{position:absolute;margin-top:1px;margin-bottom:1px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);z-index:2001}.mx-datepicker-sidebar{float:left;-webkit-box-sizing:border-box;box-sizing:border-box;width:100px;padding:6px;overflow:auto}.mx-datepicker-sidebar+.mx-datepicker-content{margin-left:100px;border-left:1px solid #e8e8e8}.mx-datepicker-body{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mx-btn-shortcut{display:block;padding:0 6px;line-height:24px}.mx-range-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}@media(max-width: 750px){.mx-range-wrapper{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.mx-datepicker-header{padding:6px 8px;border-bottom:1px solid #e8e8e8}.mx-datepicker-footer{padding:6px 8px;text-align:right;border-top:1px solid #e8e8e8}.mx-calendar{-webkit-box-sizing:border-box;box-sizing:border-box;width:248px;padding:6px 12px}.mx-calendar+.mx-calendar{border-left:1px solid #e8e8e8}.mx-calendar-header,.mx-time-header{-webkit-box-sizing:border-box;box-sizing:border-box;height:34px;line-height:34px;text-align:center;overflow:hidden}.mx-btn-icon-left,.mx-btn-icon-double-left{float:left}.mx-btn-icon-right,.mx-btn-icon-double-right{float:right}.mx-calendar-header-label{font-size:14px}.mx-calendar-decade-separator{margin:0 2px}.mx-calendar-decade-separator:after{content:\"~\"}.mx-calendar-content{position:relative;height:224px;-webkit-box-sizing:border-box;box-sizing:border-box}.mx-calendar-content .cell{cursor:pointer}.mx-calendar-content .cell:hover{color:#73879c;background-color:#f3f9fe}.mx-calendar-content .cell.active{color:#fff;background-color:#1284e7}.mx-calendar-content .cell.in-range,.mx-calendar-content .cell.hover-in-range{color:#73879c;background-color:#dbedfb}.mx-calendar-content .cell.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-calendar-week-mode .mx-date-row{cursor:pointer}.mx-calendar-week-mode .mx-date-row:hover{background-color:#f3f9fe}.mx-calendar-week-mode .mx-date-row.mx-active-week{background-color:#dbedfb}.mx-calendar-week-mode .mx-date-row .cell:hover{color:inherit;background-color:transparent}.mx-calendar-week-mode .mx-date-row .cell.active{color:inherit;background-color:transparent}.mx-week-number{opacity:.5}.mx-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center}.mx-table th{padding:0;font-weight:500;vertical-align:middle}.mx-table td{padding:0;vertical-align:middle}.mx-table-date td,.mx-table-date th{height:32px;font-size:12px}.mx-table-date .today{color:#2a90e9}.mx-table-date .cell.not-current-month{color:#ccc;background:none}.mx-time{-webkit-box-flex:1;-ms-flex:1;flex:1;width:224px;background:#fff}.mx-time+.mx-time{border-left:1px solid #e8e8e8}.mx-calendar-time{position:absolute;top:0;left:0;width:100%;height:100%}.mx-time-header{border-bottom:1px solid #e8e8e8}.mx-time-content{height:224px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.mx-time-columns{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%;overflow:hidden}.mx-time-column{-webkit-box-flex:1;-ms-flex:1;flex:1;position:relative;border-left:1px solid #e8e8e8;text-align:center}.mx-time-column:first-child{border-left:0}.mx-time-column .mx-time-list{margin:0;padding:0;list-style:none}.mx-time-column .mx-time-list::after{content:\"\";display:block;height:192px}.mx-time-column .mx-time-item{cursor:pointer;font-size:12px;height:32px;line-height:32px}.mx-time-column .mx-time-item:hover{color:#73879c;background-color:#f3f9fe}.mx-time-column .mx-time-item.active{color:#1284e7;background-color:transparent;font-weight:700}.mx-time-column .mx-time-item.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-time-option{cursor:pointer;padding:8px 10px;font-size:14px;line-height:20px}.mx-time-option:hover{color:#73879c;background-color:#f3f9fe}.mx-time-option.active{color:#1284e7;background-color:transparent;font-weight:700}.mx-time-option.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}\n", ""]);

// exports


/***/ }),

/***/ 58174:
/***/ ((module, exports, __webpack_require__) => {

var __WEBPACK_AMD_DEFINE_RESULT__;// ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS

/**
 * @license Highcharts JS v4.0.4 (2014-09-02)
 *
 * (c) 2009-2014 Torstein Honsi
 *
 * License: www.highcharts.com/license
 */

// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout, location, jQuery, $, console, each, grep */
/*jslint ass: true, sloppy: true, forin: true, plusplus: true, nomen: true, vars: true, regexp: true, newcap: true, browser: true, continue: true, white: true */
;(function () {
var jQuery = __webpack_require__(10333);
// encapsulated variables
var UNDEFINED,
	doc = document,
	win = window,
	math = Math,
	mathRound = math.round,
	mathFloor = math.floor,
	mathCeil = math.ceil,
	mathMax = math.max,
	mathMin = math.min,
	mathAbs = math.abs,
	mathCos = math.cos,
	mathSin = math.sin,
	mathPI = math.PI,
	deg2rad = mathPI * 2 / 360,


	// some variables
	userAgent = navigator.userAgent,
	isOpera = win.opera,
	isIE = /msie/i.test(userAgent) && !isOpera,
	docMode8 = doc.documentMode === 8,
	isWebKit = /AppleWebKit/.test(userAgent),
	isFirefox = /Firefox/.test(userAgent),
	isTouchDevice = /(Mobile|Android|Windows Phone)/.test(userAgent),
	SVG_NS = 'http://www.w3.org/2000/svg',
	hasSVG = !!doc.createElementNS && !!doc.createElementNS(SVG_NS, 'svg').createSVGRect,
	hasBidiBug = isFirefox && parseInt(userAgent.split('Firefox/')[1], 10) < 4, // issue #38
	useCanVG = !hasSVG && !isIE && !!doc.createElement('canvas').getContext,
	Renderer,
	hasTouch,
	symbolSizes = {},
	idCounter = 0,
	garbageBin,
	defaultOptions,
	dateFormat, // function
	globalAnimation,
	pathAnim,
	timeUnits,
	error,
	noop = function () { return UNDEFINED; },
	charts = [],
	chartCount = 0,
	PRODUCT = 'Highcharts',
	VERSION = '4.0.4',

	// some constants for frequently used strings
	DIV = 'div',
	ABSOLUTE = 'absolute',
	RELATIVE = 'relative',
	HIDDEN = 'hidden',
	PREFIX = 'highcharts-',
	VISIBLE = 'visible',
	PX = 'px',
	NONE = 'none',
	M = 'M',
	L = 'L',
	numRegex = /^[0-9]+$/,
	NORMAL_STATE = '',
	HOVER_STATE = 'hover',
	SELECT_STATE = 'select',

	// Object for extending Axis
	AxisPlotLineOrBandExtension,

	// constants for attributes
	STROKE_WIDTH = 'stroke-width',

	// time methods, changed based on whether or not UTC is used
	Date,  // Allow using a different Date class
	makeTime,
	timezoneOffset,
	getMinutes,
	getHours,
	getDay,
	getDate,
	getMonth,
	getFullYear,
	setMinutes,
	setHours,
	setDate,
	setMonth,
	setFullYear,


	// lookup over the types and the associated classes
	seriesTypes = {},
	Highcharts= {};

!(__WEBPACK_AMD_DEFINE_RESULT__ = (function(){
	return Highcharts;
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))

/**
 * Extend an object with the members of another
 * @param {Object} a The object to be extended
 * @param {Object} b The object to add to the first one
 */
function extend(a, b) {
	var n;
	if (!a) {
		a = {};
	}
	for (n in b) {
		a[n] = b[n];
	}
	return a;
}

/**
 * Deep merge two or more objects and return a third object. If the first argument is
 * true, the contents of the second object is copied into the first object.
 * Previously this function redirected to jQuery.extend(true), but this had two limitations.
 * First, it deep merged arrays, which lead to workarounds in Highcharts. Second,
 * it copied properties from extended prototypes.
 */
function merge() {
	var i,
		args = arguments,
		len,
		ret = {},
		doCopy = function (copy, original) {
			var value, key;

			// An object is replacing a primitive
			if (typeof copy !== 'object') {
				copy = {};
			}

			for (key in original) {
				if (original.hasOwnProperty(key)) {
					value = original[key];

					// Copy the contents of objects, but not arrays or DOM nodes
					if (value && typeof value === 'object' && Object.prototype.toString.call(value) !== '[object Array]'
							&& key !== 'renderTo' && typeof value.nodeType !== 'number') {
						copy[key] = doCopy(copy[key] || {}, value);

					// Primitives and arrays are copied over directly
					} else {
						copy[key] = original[key];
					}
				}
			}
			return copy;
		};

	// If first argument is true, copy into the existing object. Used in setOptions.
	if (args[0] === true) {
		ret = args[1];
		args = Array.prototype.slice.call(args, 2);
	}

	// For each argument, extend the return
	len = args.length;
	for (i = 0; i < len; i++) {
		ret = doCopy(ret, args[i]);
	}

	return ret;
}

/**
 * Shortcut for parseInt
 * @param {Object} s
 * @param {Number} mag Magnitude
 */
function pInt(s, mag) {
	return parseInt(s, mag || 10);
}

/**
 * Check for string
 * @param {Object} s
 */
function isString(s) {
	return typeof s === 'string';
}

/**
 * Check for object
 * @param {Object} obj
 */
function isObject(obj) {
	return obj && typeof obj === 'object';
}

/**
 * Check for array
 * @param {Object} obj
 */
function isArray(obj) {
	return Object.prototype.toString.call(obj) === '[object Array]';
}

/**
 * Check for number
 * @param {Object} n
 */
function isNumber(n) {
	return typeof n === 'number';
}

function log2lin(num) {
	return math.log(num) / math.LN10;
}
function lin2log(num) {
	return math.pow(10, num);
}

/**
 * Remove last occurence of an item from an array
 * @param {Array} arr
 * @param {Mixed} item
 */
function erase(arr, item) {
	var i = arr.length;
	while (i--) {
		if (arr[i] === item) {
			arr.splice(i, 1);
			break;
		}
	}
	//return arr;
}

/**
 * Returns true if the object is not null or undefined. Like MooTools' $.defined.
 * @param {Object} obj
 */
function defined(obj) {
	return obj !== UNDEFINED && obj !== null;
}

/**
 * Set or get an attribute or an object of attributes. Can't use jQuery attr because
 * it attempts to set expando properties on the SVG element, which is not allowed.
 *
 * @param {Object} elem The DOM element to receive the attribute(s)
 * @param {String|Object} prop The property or an abject of key-value pairs
 * @param {String} value The value if a single property is set
 */
function attr(elem, prop, value) {
	var key,
		ret;

	// if the prop is a string
	if (isString(prop)) {
		// set the value
		if (defined(value)) {
			elem.setAttribute(prop, value);

		// get the value
		} else if (elem && elem.getAttribute) { // elem not defined when printing pie demo...
			ret = elem.getAttribute(prop);
		}

	// else if prop is defined, it is a hash of key/value pairs
	} else if (defined(prop) && isObject(prop)) {
		for (key in prop) {
			elem.setAttribute(key, prop[key]);
		}
	}
	return ret;
}
/**
 * Check if an element is an array, and if not, make it into an array. Like
 * MooTools' $.splat.
 */
function splat(obj) {
	return isArray(obj) ? obj : [obj];
}


/**
 * Return the first value that is defined. Like MooTools' $.pick.
 */
function pick() {
	var args = arguments,
		i,
		arg,
		length = args.length;
	for (i = 0; i < length; i++) {
		arg = args[i];
		if (arg !== UNDEFINED && arg !== null) {
			return arg;
		}
	}
}

/**
 * Set CSS on a given element
 * @param {Object} el
 * @param {Object} styles Style object with camel case property names
 */
function css(el, styles) {
	if (isIE && !hasSVG) { // #2686
		if (styles && styles.opacity !== UNDEFINED) {
			styles.filter = 'alpha(opacity=' + (styles.opacity * 100) + ')';
		}
	}
	extend(el.style, styles);
}

/**
 * Utility function to create element with attributes and styles
 * @param {Object} tag
 * @param {Object} attribs
 * @param {Object} styles
 * @param {Object} parent
 * @param {Object} nopad
 */
function createElement(tag, attribs, styles, parent, nopad) {
	var el = doc.createElement(tag);
	if (attribs) {
		extend(el, attribs);
	}
	if (nopad) {
		css(el, {padding: 0, border: NONE, margin: 0});
	}
	if (styles) {
		css(el, styles);
	}
	if (parent) {
		parent.appendChild(el);
	}
	return el;
}

/**
 * Extend a prototyped class by new members
 * @param {Object} parent
 * @param {Object} members
 */
function extendClass(parent, members) {
	var object = function () { return UNDEFINED; };
	object.prototype = new parent();
	extend(object.prototype, members);
	return object;
}

/**
 * Format a number and return a string based on input settings
 * @param {Number} number The input number to format
 * @param {Number} decimals The amount of decimals
 * @param {String} decPoint The decimal point, defaults to the one given in the lang options
 * @param {String} thousandsSep The thousands separator, defaults to the one given in the lang options
 */
function numberFormat(number, decimals, decPoint, thousandsSep) {
	var externalFn = Highcharts.numberFormat,
		lang = defaultOptions.lang,
		// http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_number_format/
		n = +number || 0,
		c = decimals === -1 ?
			(n.toString().split('.')[1] || '').length : // preserve decimals
			(isNaN(decimals = mathAbs(decimals)) ? 2 : decimals),
		d = decPoint === undefined ? lang.decimalPoint : decPoint,
		t = thousandsSep === undefined ? lang.thousandsSep : thousandsSep,
		s = n < 0 ? "-" : "",
		i = String(pInt(n = mathAbs(n).toFixed(c))),
		j = i.length > 3 ? i.length % 3 : 0;

	return externalFn !== numberFormat ?
		externalFn(number, decimals, decPoint, thousandsSep) :
		(s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) +
			(c ? d + mathAbs(n - i).toFixed(c).slice(2) : ""));
}

/**
 * Pad a string to a given length by adding 0 to the beginning
 * @param {Number} number
 * @param {Number} length
 */
function pad(number, length) {
	// Create an array of the remaining length +1 and join it with 0's
	return new Array((length || 2) + 1 - String(number).length).join(0) + number;
}

/**
 * Wrap a method with extended functionality, preserving the original function
 * @param {Object} obj The context object that the method belongs to
 * @param {String} method The name of the method to extend
 * @param {Function} func A wrapper function callback. This function is called with the same arguments
 * as the original function, except that the original function is unshifted and passed as the first
 * argument.
 */
function wrap(obj, method, func) {
	var proceed = obj[method];
	obj[method] = function () {
		var args = Array.prototype.slice.call(arguments);
		args.unshift(proceed);
		return func.apply(this, args);
	};
}

/**
 * Based on http://www.php.net/manual/en/function.strftime.php
 * @param {String} format
 * @param {Number} timestamp
 * @param {Boolean} capitalize
 */
dateFormat = function (format, timestamp, capitalize) {
	if (!defined(timestamp) || isNaN(timestamp)) {
		return 'Invalid date';
	}
	format = pick(format, '%Y-%m-%d %H:%M:%S');

	var date = new Date(timestamp - timezoneOffset),
		key, // used in for constuct below
		// get the basic time values
		hours = date[getHours](),
		day = date[getDay](),
		dayOfMonth = date[getDate](),
		month = date[getMonth](),
		fullYear = date[getFullYear](),
		lang = defaultOptions.lang,
		langWeekdays = lang.weekdays,

		// List all format keys. Custom formats can be added from the outside.
		replacements = extend({

			// Day
			'a': langWeekdays[day].substr(0, 3), // Short weekday, like 'Mon'
			'A': langWeekdays[day], // Long weekday, like 'Monday'
			'd': pad(dayOfMonth), // Two digit day of the month, 01 to 31
			'e': dayOfMonth, // Day of the month, 1 through 31

			// Week (none implemented)
			//'W': weekNumber(),

			// Month
			'b': lang.shortMonths[month], // Short month, like 'Jan'
			'B': lang.months[month], // Long month, like 'January'
			'm': pad(month + 1), // Two digit month number, 01 through 12

			// Year
			'y': fullYear.toString().substr(2, 2), // Two digits year, like 09 for 2009
			'Y': fullYear, // Four digits year, like 2009

			// Time
			'H': pad(hours), // Two digits hours in 24h format, 00 through 23
			'I': pad((hours % 12) || 12), // Two digits hours in 12h format, 00 through 11
			'l': (hours % 12) || 12, // Hours in 12h format, 1 through 12
			'M': pad(date[getMinutes]()), // Two digits minutes, 00 through 59
			'p': hours < 12 ? 'AM' : 'PM', // Upper case AM or PM
			'P': hours < 12 ? 'am' : 'pm', // Lower case AM or PM
			'S': pad(date.getSeconds()), // Two digits seconds, 00 through  59
			'L': pad(mathRound(timestamp % 1000), 3) // Milliseconds (naming from Ruby)
		}, Highcharts.dateFormats);


	// do the replaces
	for (key in replacements) {
		while (format.indexOf('%' + key) !== -1) { // regex would do it in one line, but this is faster
			format = format.replace('%' + key, typeof replacements[key] === 'function' ? replacements[key](timestamp) : replacements[key]);
		}
	}

	// Optionally capitalize the string and return
	return capitalize ? format.substr(0, 1).toUpperCase() + format.substr(1) : format;
};

/**
 * Format a single variable. Similar to sprintf, without the % prefix.
 */
function formatSingle(format, val) {
	var floatRegex = /f$/,
		decRegex = /\.([0-9])/,
		lang = defaultOptions.lang,
		decimals;

	if (floatRegex.test(format)) { // float
		decimals = format.match(decRegex);
		decimals = decimals ? decimals[1] : -1;
		if (val !== null) {
			val = numberFormat(
				val,
				decimals,
				lang.decimalPoint,
				format.indexOf(',') > -1 ? lang.thousandsSep : ''
			);
		}
	} else {
		val = dateFormat(format, val);
	}
	return val;
}

/**
 * Format a string according to a subset of the rules of Python's String.format method.
 */
function format(str, ctx) {
	var splitter = '{',
		isInside = false,
		segment,
		valueAndFormat,
		path,
		i,
		len,
		ret = [],
		val,
		index;

	while ((index = str.indexOf(splitter)) !== -1) {

		segment = str.slice(0, index);
		if (isInside) { // we're on the closing bracket looking back

			valueAndFormat = segment.split(':');
			path = valueAndFormat.shift().split('.'); // get first and leave format
			len = path.length;
			val = ctx;

			// Assign deeper paths
			for (i = 0; i < len; i++) {
				val = val[path[i]];
			}

			// Format the replacement
			if (valueAndFormat.length) {
				val = formatSingle(valueAndFormat.join(':'), val);
			}

			// Push the result and advance the cursor
			ret.push(val);

		} else {
			ret.push(segment);

		}
		str = str.slice(index + 1); // the rest
		isInside = !isInside; // toggle
		splitter = isInside ? '}' : '{'; // now look for next matching bracket
	}
	ret.push(str);
	return ret.join('');
}

/**
 * Get the magnitude of a number
 */
function getMagnitude(num) {
	return math.pow(10, mathFloor(math.log(num) / math.LN10));
}

/**
 * Take an interval and normalize it to multiples of 1, 2, 2.5 and 5
 * @param {Number} interval
 * @param {Array} multiples
 * @param {Number} magnitude
 * @param {Object} options
 */
function normalizeTickInterval(interval, multiples, magnitude, allowDecimals) {
	var normalized, i;

	// round to a tenfold of 1, 2, 2.5 or 5
	magnitude = pick(magnitude, 1);
	normalized = interval / magnitude;

	// multiples for a linear scale
	if (!multiples) {
		multiples = [1, 2, 2.5, 5, 10];

		// the allowDecimals option
		if (allowDecimals === false) {
			if (magnitude === 1) {
				multiples = [1, 2, 5, 10];
			} else if (magnitude <= 0.1) {
				multiples = [1 / magnitude];
			}
		}
	}

	// normalize the interval to the nearest multiple
	for (i = 0; i < multiples.length; i++) {
		interval = multiples[i];
		if (normalized <= (multiples[i] + (multiples[i + 1] || multiples[i])) / 2) {
			break;
		}
	}

	// multiply back to the correct magnitude
	interval *= magnitude;

	return interval;
}


/**
 * Utility method that sorts an object array and keeping the order of equal items.
 * ECMA script standard does not specify the behaviour when items are equal.
 */
function stableSort(arr, sortFunction) {
	var length = arr.length,
		sortValue,
		i;

	// Add index to each item
	for (i = 0; i < length; i++) {
		arr[i].ss_i = i; // stable sort index
	}

	arr.sort(function (a, b) {
		sortValue = sortFunction(a, b);
		return sortValue === 0 ? a.ss_i - b.ss_i : sortValue;
	});

	// Remove index from items
	for (i = 0; i < length; i++) {
		delete arr[i].ss_i; // stable sort index
	}
}

/**
 * Non-recursive method to find the lowest member of an array. Math.min raises a maximum
 * call stack size exceeded error in Chrome when trying to apply more than 150.000 points. This
 * method is slightly slower, but safe.
 */
function arrayMin(data) {
	var i = data.length,
		min = data[0];

	while (i--) {
		if (data[i] < min) {
			min = data[i];
		}
	}
	return min;
}

/**
 * Non-recursive method to find the lowest member of an array. Math.min raises a maximum
 * call stack size exceeded error in Chrome when trying to apply more than 150.000 points. This
 * method is slightly slower, but safe.
 */
function arrayMax(data) {
	var i = data.length,
		max = data[0];

	while (i--) {
		if (data[i] > max) {
			max = data[i];
		}
	}
	return max;
}

/**
 * Utility method that destroys any SVGElement or VMLElement that are properties on the given object.
 * It loops all properties and invokes destroy if there is a destroy method. The property is
 * then delete'ed.
 * @param {Object} The object to destroy properties on
 * @param {Object} Exception, do not destroy this property, only delete it.
 */
function destroyObjectProperties(obj, except) {
	var n;
	for (n in obj) {
		// If the object is non-null and destroy is defined
		if (obj[n] && obj[n] !== except && obj[n].destroy) {
			// Invoke the destroy
			obj[n].destroy();
		}

		// Delete the property from the object.
		delete obj[n];
	}
}


/**
 * Discard an element by moving it to the bin and delete
 * @param {Object} The HTML node to discard
 */
function discardElement(element) {
	// create a garbage bin element, not part of the DOM
	if (!garbageBin) {
		garbageBin = createElement(DIV);
	}

	// move the node and empty bin
	if (element) {
		garbageBin.appendChild(element);
	}
	garbageBin.innerHTML = '';
}

/**
 * Provide error messages for debugging, with links to online explanation
 */
error = function (code, stop) {
	var msg = 'Highcharts error #' + code + ': www.highcharts.com/errors/' + code;
	if (stop) {
		throw msg;
	}
	// else ...
	if (win.console) {
		console.log(msg);
	}
};

/**
 * Fix JS round off float errors
 * @param {Number} num
 */
function correctFloat(num) {
	return parseFloat(
		num.toPrecision(14)
	);
}

/**
 * Set the global animation to either a given value, or fall back to the
 * given chart's animation option
 * @param {Object} animation
 * @param {Object} chart
 */
function setAnimation(animation, chart) {
	globalAnimation = pick(animation, chart.animation);
}

/**
 * The time unit lookup
 */
timeUnits = {
	millisecond: 1,
	second: 1000,
	minute: 60000,
	hour: 3600000,
	day: 24 * 3600000,
	week: 7 * 24 * 3600000,
	month: 31 * 24 * 3600000,
	year: 31556952000
};
/**
 * Path interpolation algorithm used across adapters
 */
pathAnim = {
	/**
	 * Prepare start and end values so that the path can be animated one to one
	 */
	init: function (elem, fromD, toD) {
		fromD = fromD || '';
		var shift = elem.shift,
			bezier = fromD.indexOf('C') > -1,
			numParams = bezier ? 7 : 3,
			endLength,
			slice,
			i,
			start = fromD.split(' '),
			end = [].concat(toD), // copy
			startBaseLine,
			endBaseLine,
			sixify = function (arr) { // in splines make move points have six parameters like bezier curves
				i = arr.length;
				while (i--) {
					if (arr[i] === M) {
						arr.splice(i + 1, 0, arr[i + 1], arr[i + 2], arr[i + 1], arr[i + 2]);
					}
				}
			};

		if (bezier) {
			sixify(start);
			sixify(end);
		}

		// pull out the base lines before padding
		if (elem.isArea) {
			startBaseLine = start.splice(start.length - 6, 6);
			endBaseLine = end.splice(end.length - 6, 6);
		}

		// if shifting points, prepend a dummy point to the end path
		if (shift <= end.length / numParams && start.length === end.length) {
			while (shift--) {
				end = [].concat(end).splice(0, numParams).concat(end);
			}
		}
		elem.shift = 0; // reset for following animations

		// copy and append last point until the length matches the end length
		if (start.length) {
			endLength = end.length;
			while (start.length < endLength) {

				//bezier && sixify(start);
				slice = [].concat(start).splice(start.length - numParams, numParams);
				if (bezier) { // disable first control point
					slice[numParams - 6] = slice[numParams - 2];
					slice[numParams - 5] = slice[numParams - 1];
				}
				start = start.concat(slice);
			}
		}

		if (startBaseLine) { // append the base lines for areas
			start = start.concat(startBaseLine);
			end = end.concat(endBaseLine);
		}
		return [start, end];
	},

	/**
	 * Interpolate each value of the path and return the array
	 */
	step: function (start, end, pos, complete) {
		var ret = [],
			i = start.length,
			startVal;

		if (pos === 1) { // land on the final path without adjustment points appended in the ends
			ret = complete;

		} else if (i === end.length && pos < 1) {
			while (i--) {
				startVal = parseFloat(start[i]);
				ret[i] =
					isNaN(startVal) ? // a letter instruction like M or L
						start[i] :
						pos * (parseFloat(end[i] - startVal)) + startVal;

			}
		} else { // if animation is finished or length not matching, land on right value
			ret = end;
		}
		return ret;
	}
};

(function ($) {
	/**
	 * The default HighchartsAdapter for jQuery
	 */
	win.HighchartsAdapter = win.HighchartsAdapter || ($ && {

		/**
		 * Initialize the adapter by applying some extensions to jQuery
		 */
		init: function (pathAnim) {

			// extend the animate function to allow SVG animations
			var Fx = $.fx;

			/*jslint unparam: true*//* allow unused param x in this function */
			$.extend($.easing, {
				easeOutQuad: function (x, t, b, c, d) {
					return -c * (t /= d) * (t - 2) + b;
				}
			});
			/*jslint unparam: false*/

			// extend some methods to check for elem.attr, which means it is a Highcharts SVG object
			$.each(['cur', '_default', 'width', 'height', 'opacity'], function (i, fn) {
				var obj = Fx.step,
					base;

				// Handle different parent objects
				if (fn === 'cur') {
					obj = Fx.prototype; // 'cur', the getter, relates to Fx.prototype

				} else if (fn === '_default' && $.Tween) { // jQuery 1.8 model
					obj = $.Tween.propHooks[fn];
					fn = 'set';
				}

				// Overwrite the method
				base = obj[fn];
				if (base) { // step.width and step.height don't exist in jQuery < 1.7

					// create the extended function replacement
					obj[fn] = function (fx) {

						var elem;

						// Fx.prototype.cur does not use fx argument
						fx = i ? fx : this;

						// Don't run animations on textual properties like align (#1821)
						if (fx.prop === 'align') {
							return;
						}

						// shortcut
						elem = fx.elem;

						// Fx.prototype.cur returns the current value. The other ones are setters
						// and returning a value has no effect.
						return elem.attr ? // is SVG element wrapper
							elem.attr(fx.prop, fn === 'cur' ? UNDEFINED : fx.now) : // apply the SVG wrapper's method
							base.apply(this, arguments); // use jQuery's built-in method
					};
				}
			});

			// Extend the opacity getter, needed for fading opacity with IE9 and jQuery 1.10+
			wrap($.cssHooks.opacity, 'get', function (proceed, elem, computed) {
				return elem.attr ? (elem.opacity || 0) : proceed.call(this, elem, computed);
			});

			// Define the setter function for d (path definitions)
			this.addAnimSetter('d', function (fx) {
				var elem = fx.elem,
					ends;

				// Normally start and end should be set in state == 0, but sometimes,
				// for reasons unknown, this doesn't happen. Perhaps state == 0 is skipped
				// in these cases
				if (!fx.started) {
					ends = pathAnim.init(elem, elem.d, elem.toD);
					fx.start = ends[0];
					fx.end = ends[1];
					fx.started = true;
				}

				// Interpolate each value of the path
				elem.attr('d', pathAnim.step(fx.start, fx.end, fx.pos, elem.toD));
			});

			/**
			 * Utility for iterating over an array. Parameters are reversed compared to jQuery.
			 * @param {Array} arr
			 * @param {Function} fn
			 */
			this.each = Array.prototype.forEach ?
				function (arr, fn) { // modern browsers
					return Array.prototype.forEach.call(arr, fn);

				} :
				function (arr, fn) { // legacy
					var i,
						len = arr.length;
					for (i = 0; i < len; i++) {
						if (fn.call(arr[i], arr[i], i, arr) === false) {
							return i;
						}
					}
				};

			/**
			 * Register Highcharts as a plugin in the respective framework
			 */
			$.fn.highcharts = function () {
				var constr = 'Chart', // default constructor
					args = arguments,
					options,
					ret,
					chart;

				if (this[0]) {

					if (isString(args[0])) {
						constr = args[0];
						args = Array.prototype.slice.call(args, 1);
					}
					options = args[0];

					// Create the chart
					if (options !== UNDEFINED) {
						/*jslint unused:false*/
						options.chart = options.chart || {};
						options.chart.renderTo = this[0];
						chart = new Highcharts[constr](options, args[1]);
						ret = this;
						/*jslint unused:true*/
					}

					// When called without parameters or with the return argument, get a predefined chart
					if (options === UNDEFINED) {
						ret = charts[attr(this[0], 'data-highcharts-chart')];
					}
				}

				return ret;
			};

		},

		/**
		 * Add an animation setter for a specific property
		 */
		addAnimSetter: function (prop, setter) {
			// jQuery 1.8 style
			if ($.Tween) {
				$.Tween.propHooks[prop] = {
					set: setter
				};
			// pre 1.8
			} else {
				$.fx.step[prop] = setter;
			}
		},

		/**
		 * Downloads a script and executes a callback when done.
		 * @param {String} scriptLocation
		 * @param {Function} callback
		 */
		getScript: $.getScript,

		/**
		 * Return the index of an item in an array, or -1 if not found
		 */
		inArray: $.inArray,

		/**
		 * A direct link to jQuery methods. MooTools and Prototype adapters must be implemented for each case of method.
		 * @param {Object} elem The HTML element
		 * @param {String} method Which method to run on the wrapped element
		 */
		adapterRun: function (elem, method) {
			return $(elem)[method]();
		},

		/**
		 * Filter an array
		 */
		grep: $.grep,

		/**
		 * Map an array
		 * @param {Array} arr
		 * @param {Function} fn
		 */
		map: function (arr, fn) {
			//return jQuery.map(arr, fn);
			var results = [],
				i = 0,
				len = arr.length;
			for (; i < len; i++) {
				results[i] = fn.call(arr[i], arr[i], i, arr);
			}
			return results;

		},

		/**
		 * Get the position of an element relative to the top left of the page
		 */
		offset: function (el) {
			return $(el).offset();
		},

		/**
		 * Add an event listener
		 * @param {Object} el A HTML element or custom object
		 * @param {String} event The event type
		 * @param {Function} fn The event handler
		 */
		addEvent: function (el, event, fn) {
			$(el).bind(event, fn);
		},

		/**
		 * Remove event added with addEvent
		 * @param {Object} el The object
		 * @param {String} eventType The event type. Leave blank to remove all events.
		 * @param {Function} handler The function to remove
		 */
		removeEvent: function (el, eventType, handler) {
			// workaround for jQuery issue with unbinding custom events:
			// http://forum.jQuery.com/topic/javascript-error-when-unbinding-a-custom-event-using-jQuery-1-4-2
			var func = doc.removeEventListener ? 'removeEventListener' : 'detachEvent';
			if (doc[func] && el && !el[func]) {
				el[func] = function () {};
			}

			$(el).unbind(eventType, handler);
		},

		/**
		 * Fire an event on a custom object
		 * @param {Object} el
		 * @param {String} type
		 * @param {Object} eventArguments
		 * @param {Function} defaultFunction
		 */
		fireEvent: function (el, type, eventArguments, defaultFunction) {
			var event = $.Event(type),
				detachedType = 'detached' + type,
				defaultPrevented;

			// Remove warnings in Chrome when accessing returnValue (#2790), layerX and layerY. Although Highcharts
			// never uses these properties, Chrome includes them in the default click event and
			// raises the warning when they are copied over in the extend statement below.
			//
			// To avoid problems in IE (see #1010) where we cannot delete the properties and avoid
			// testing if they are there (warning in chrome) the only option is to test if running IE.
			if (!isIE && eventArguments) {
				delete eventArguments.layerX;
				delete eventArguments.layerY;
				delete eventArguments.returnValue;
			}

			extend(event, eventArguments);

			// Prevent jQuery from triggering the object method that is named the
			// same as the event. For example, if the event is 'select', jQuery
			// attempts calling el.select and it goes into a loop.
			if (el[type]) {
				el[detachedType] = el[type];
				el[type] = null;
			}

			// Wrap preventDefault and stopPropagation in try/catch blocks in
			// order to prevent JS errors when cancelling events on non-DOM
			// objects. #615.
			/*jslint unparam: true*/
			$.each(['preventDefault', 'stopPropagation'], function (i, fn) {
				var base = event[fn];
				event[fn] = function () {
					try {
						base.call(event);
					} catch (e) {
						if (fn === 'preventDefault') {
							defaultPrevented = true;
						}
					}
				};
			});
			/*jslint unparam: false*/

			// trigger it
			$(el).trigger(event);

			// attach the method
			if (el[detachedType]) {
				el[type] = el[detachedType];
				el[detachedType] = null;
			}

			if (defaultFunction && !event.isDefaultPrevented() && !defaultPrevented) {
				defaultFunction(event);
			}
		},

		/**
		 * Extension method needed for MooTools
		 */
		washMouseEvent: function (e) {
			var ret = e.originalEvent || e;

			// computed by jQuery, needed by IE8
			if (ret.pageX === UNDEFINED) { // #1236
				ret.pageX = e.pageX;
				ret.pageY = e.pageY;
			}

			return ret;
		},

		/**
		 * Animate a HTML element or SVG element wrapper
		 * @param {Object} el
		 * @param {Object} params
		 * @param {Object} options jQuery-like animation options: duration, easing, callback
		 */
		animate: function (el, params, options) {
			var $el = $(el);
			if (!el.style) {
				el.style = {}; // #1881
			}
			if (params.d) {
				el.toD = params.d; // keep the array form for paths, used in $.fx.step.d
				params.d = 1; // because in jQuery, animating to an array has a different meaning
			}

			$el.stop();
			if (params.opacity !== UNDEFINED && el.attr) {
				params.opacity += 'px'; // force jQuery to use same logic as width and height (#2161)
			}
			el.hasAnim = 1; // #3342
			$el.animate(params, options);

		},
		/**
		 * Stop running animation
		 */
		stop: function (el) {
			if (el.hasAnim) { // #3342, memory leak on calling $(el) from destroy
				$(el).stop();
			}
		}
	});
}(jQuery));


// check for a custom HighchartsAdapter defined prior to this file
var globalAdapter = win.HighchartsAdapter,
	adapter = globalAdapter || {};

// Initialize the adapter
if (globalAdapter) {
	globalAdapter.init.call(globalAdapter, pathAnim);
}


// Utility functions. If the HighchartsAdapter is not defined, adapter is an empty object
// and all the utility functions will be null. In that case they are populated by the
// default adapters below.
var adapterRun = adapter.adapterRun,
	getScript = adapter.getScript,
	inArray = adapter.inArray,
	each = adapter.each,
	grep = adapter.grep,
	offset = adapter.offset,
	map = adapter.map,
	addEvent = adapter.addEvent,
	removeEvent = adapter.removeEvent,
	fireEvent = adapter.fireEvent,
	washMouseEvent = adapter.washMouseEvent,
	animate = adapter.animate,
	stop = adapter.stop;



/* ****************************************************************************
 * Handle the options                                                         *
 *****************************************************************************/
var

defaultLabelOptions = {
	enabled: true,
	// rotation: 0,
	// align: 'center',
	x: 0,
	y: 15,
	/*formatter: function () {
		return this.value;
	},*/
	style: {
		color: '#606060',
		cursor: 'default',
		fontSize: '11px'
	}
};

defaultOptions = {
	colors: ['#7cb5ec', '#434348', '#90ed7d', '#f7a35c',
		    '#8085e9', '#f15c80', '#e4d354', '#8085e8', '#8d4653', '#91e8e1'],
	symbols: ['circle', 'diamond', 'square', 'triangle', 'triangle-down'],
	lang: {
		loading: 'Loading...',
		months: ['January', 'February', 'March', 'April', 'May', 'June', 'July',
				'August', 'September', 'October', 'November', 'December'],
		shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
		weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
		decimalPoint: '.',
		numericSymbols: ['k', 'M', 'G', 'T', 'P', 'E'], // SI prefixes used in axis labels
		resetZoom: 'Reset zoom',
		resetZoomTitle: 'Reset zoom level 1:1',
		thousandsSep: ','
	},
	global: {
		useUTC: true,
		//timezoneOffset: 0,
		VMLRadialGradientURL: 'http://code.highcharts.com/4.0.4/gfx/vml-radial-gradient.png'
	},
	chart: {
		//animation: true,
		//alignTicks: false,
		//reflow: true,
		//className: null,
		//events: { load, selection },
		//margin: [null],
		//marginTop: null,
		//marginRight: null,
		//marginBottom: null,
		//marginLeft: null,
		borderColor: '#4572A7',
		//borderWidth: 0,
		borderRadius: 0,
		defaultSeriesType: 'line',
		ignoreHiddenSeries: true,
		//inverted: false,
		//shadow: false,
		spacing: [10, 10, 15, 10],
		//spacingTop: 10,
		//spacingRight: 10,
		//spacingBottom: 15,
		//spacingLeft: 10,
		//style: {
		//	fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif', // default font
		//	fontSize: '12px'
		//},
		backgroundColor: '#FFFFFF',
		//plotBackgroundColor: null,
		plotBorderColor: '#C0C0C0',
		//plotBorderWidth: 0,
		//plotShadow: false,
		//zoomType: ''
		resetZoomButton: {
			theme: {
				zIndex: 20
			},
			position: {
				align: 'right',
				x: -10,
				//verticalAlign: 'top',
				y: 10
			}
			// relativeTo: 'plot'
		}
	},
	title: {
		text: 'Chart title',
		align: 'center',
		// floating: false,
		margin: 15,
		// x: 0,
		// verticalAlign: 'top',
		// y: null,
		style: {
			color: '#333333',
			fontSize: '18px'
		}

	},
	subtitle: {
		text: '',
		align: 'center',
		// floating: false
		// x: 0,
		// verticalAlign: 'top',
		// y: null,
		style: {
			color: '#555555'
		}
	},

	plotOptions: {
		line: { // base series options
			allowPointSelect: false,
			showCheckbox: false,
			animation: {
				duration: 1000
			},
			//connectNulls: false,
			//cursor: 'default',
			//clip: true,
			//dashStyle: null,
			//enableMouseTracking: true,
			events: {},
			//legendIndex: 0,
			//linecap: 'round',
			lineWidth: 2,
			//shadow: false,
			// stacking: null,
			marker: {
				//enabled: true,
				//symbol: null,
				lineWidth: 0,
				radius: 4,
				lineColor: '#FFFFFF',
				//fillColor: null,
				states: { // states for a single point
					hover: {
						enabled: true,
						lineWidthPlus: 1,
						radiusPlus: 2
					},
					select: {
						fillColor: '#FFFFFF',
						lineColor: '#000000',
						lineWidth: 2
					}
				}
			},
			point: {
				events: {}
			},
			dataLabels: merge(defaultLabelOptions, {
				align: 'center',
				//defer: true,
				enabled: false,
				formatter: function () {
					return this.y === null ? '' : numberFormat(this.y, -1);
				},
				verticalAlign: 'bottom', // above singular point
				y: 0
				// backgroundColor: undefined,
				// borderColor: undefined,
				// borderRadius: undefined,
				// borderWidth: undefined,
				// padding: 3,
				// shadow: false
			}),
			cropThreshold: 300, // draw points outside the plot area when the number of points is less than this
			pointRange: 0,
			//pointStart: 0,
			//pointInterval: 1,
			//showInLegend: null, // auto: true for standalone series, false for linked series
			states: { // states for the entire series
				hover: {
					//enabled: false,
					lineWidthPlus: 1,
					marker: {
						// lineWidth: base + 1,
						// radius: base + 1
					},
					halo: {
						size: 10,
						opacity: 0.25
					}
				},
				select: {
					marker: {}
				}
			},
			stickyTracking: true,
			//tooltip: {
				//pointFormat: '<span style="color:{series.color}">\u25CF</span> {series.name}: <b>{point.y}</b>'
				//valueDecimals: null,
				//xDateFormat: '%A, %b %e, %Y',
				//valuePrefix: '',
				//ySuffix: ''
			//}
			turboThreshold: 1000
			// zIndex: null
		}
	},
	labels: {
		//items: [],
		style: {
			//font: defaultFont,
			position: ABSOLUTE,
			color: '#3E576F'
		}
	},
	legend: {
		enabled: true,
		align: 'center',
		//floating: false,
		layout: 'horizontal',
		labelFormatter: function () {
			return this.name;
		},
		//borderWidth: 0,
		borderColor: '#909090',
		borderRadius: 0,
		navigation: {
			// animation: true,
			activeColor: '#274b6d',
			// arrowSize: 12
			inactiveColor: '#CCC'
			// style: {} // text styles
		},
		// margin: 20,
		// reversed: false,
		shadow: false,
		// backgroundColor: null,
		/*style: {
			padding: '5px'
		},*/
		itemStyle: {
			color: '#333333',
			fontSize: '12px',
			fontWeight: 'bold'
		},
		itemHoverStyle: {
			//cursor: 'pointer', removed as of #601
			color: '#000'
		},
		itemHiddenStyle: {
			color: '#CCC'
		},
		itemCheckboxStyle: {
			position: ABSOLUTE,
			width: '13px', // for IE precision
			height: '13px'
		},
		// itemWidth: undefined,
		// symbolRadius: 0,
		// symbolWidth: 16,
		symbolPadding: 5,
		verticalAlign: 'bottom',
		// width: undefined,
		x: 0,
		y: 0,
		title: {
			//text: null,
			style: {
				fontWeight: 'bold'
			}
		}
	},

	loading: {
		// hideDuration: 100,
		labelStyle: {
			fontWeight: 'bold',
			position: RELATIVE,
			top: '45%'
		},
		// showDuration: 0,
		style: {
			position: ABSOLUTE,
			backgroundColor: 'white',
			opacity: 0.5,
			textAlign: 'center'
		}
	},

	tooltip: {
		enabled: true,
		animation: hasSVG,
		//crosshairs: null,
		backgroundColor: 'rgba(249, 249, 249, .85)',
		borderWidth: 1,
		borderRadius: 3,
		dateTimeLabelFormats: {
			millisecond: '%A, %b %e, %H:%M:%S.%L',
			second: '%A, %b %e, %H:%M:%S',
			minute: '%A, %b %e, %H:%M',
			hour: '%A, %b %e, %H:%M',
			day: '%A, %b %e, %Y',
			week: 'Week from %A, %b %e, %Y',
			month: '%B %Y',
			year: '%Y'
		},
		//formatter: defaultFormatter,
		headerFormat: '<span style="font-size: 10px">{point.key}</span><br/>',
		pointFormat: '<span style="color:{series.color}">\u25CF</span> {series.name}: <b>{point.y}</b><br/>',
		shadow: true,
		//shape: 'callout',
		//shared: false,
		snap: isTouchDevice ? 25 : 10,
		style: {
			color: '#333333',
			cursor: 'default',
			fontSize: '12px',
			padding: '8px',
			whiteSpace: 'nowrap'
		}
		//xDateFormat: '%A, %b %e, %Y',
		//valueDecimals: null,
		//valuePrefix: '',
		//valueSuffix: ''
	},

	credits: {
		enabled: true,
		text: 'Highcharts.com',
		href: 'http://www.highcharts.com',
		position: {
			align: 'right',
			x: -10,
			verticalAlign: 'bottom',
			y: -5
		},
		style: {
			cursor: 'pointer',
			color: '#909090',
			fontSize: '9px'
		}
	}
};




// Series defaults
var defaultPlotOptions = defaultOptions.plotOptions,
	defaultSeriesOptions = defaultPlotOptions.line;

// set the default time methods
setTimeMethods();



/**
 * Set the time methods globally based on the useUTC option. Time method can be either
 * local time or UTC (default).
 */
function setTimeMethods() {
	var useUTC = defaultOptions.global.useUTC,
		GET = useUTC ? 'getUTC' : 'get',
		SET = useUTC ? 'setUTC' : 'set';


	Date = defaultOptions.global.Date || window.Date;
	timezoneOffset = ((useUTC && defaultOptions.global.timezoneOffset) || 0) * 60000;
	makeTime = useUTC ? Date.UTC : function (year, month, date, hours, minutes, seconds) {
		return new Date(
			year,
			month,
			pick(date, 1),
			pick(hours, 0),
			pick(minutes, 0),
			pick(seconds, 0)
		).getTime();
	};
	getMinutes =  GET + 'Minutes';
	getHours =    GET + 'Hours';
	getDay =      GET + 'Day';
	getDate =     GET + 'Date';
	getMonth =    GET + 'Month';
	getFullYear = GET + 'FullYear';
	setMinutes =  SET + 'Minutes';
	setHours =    SET + 'Hours';
	setDate =     SET + 'Date';
	setMonth =    SET + 'Month';
	setFullYear = SET + 'FullYear';

}

/**
 * Merge the default options with custom options and return the new options structure
 * @param {Object} options The new custom options
 */
function setOptions(options) {

	// Copy in the default options
	defaultOptions = merge(true, defaultOptions, options);

	// Apply UTC
	setTimeMethods();

	return defaultOptions;
}

/**
 * Get the updated default options. Until 3.0.7, merely exposing defaultOptions for outside modules
 * wasn't enough because the setOptions method created a new object.
 */
function getOptions() {
	return defaultOptions;
}


/**
 * Handle color operations. The object methods are chainable.
 * @param {String} input The input color in either rbga or hex format
 */
var rgbaRegEx = /rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,
	hexRegEx = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,
	rgbRegEx = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/;

var Color = function (input) {
	// declare variables
	var rgba = [], result, stops;

	/**
	 * Parse the input color to rgba array
	 * @param {String} input
	 */
	function init(input) {

		// Gradients
		if (input && input.stops) {
			stops = map(input.stops, function (stop) {
				return Color(stop[1]);
			});

		// Solid colors
		} else {
			// rgba
			result = rgbaRegEx.exec(input);
			if (result) {
				rgba = [pInt(result[1]), pInt(result[2]), pInt(result[3]), parseFloat(result[4], 10)];
			} else {
				// hex
				result = hexRegEx.exec(input);
				if (result) {
					rgba = [pInt(result[1], 16), pInt(result[2], 16), pInt(result[3], 16), 1];
				} else {
					// rgb
					result = rgbRegEx.exec(input);
					if (result) {
						rgba = [pInt(result[1]), pInt(result[2]), pInt(result[3]), 1];
					}
				}
			}
		}

	}
	/**
	 * Return the color a specified format
	 * @param {String} format
	 */
	function get(format) {
		var ret;

		if (stops) {
			ret = merge(input);
			ret.stops = [].concat(ret.stops);
			each(stops, function (stop, i) {
				ret.stops[i] = [ret.stops[i][0], stop.get(format)];
			});

		// it's NaN if gradient colors on a column chart
		} else if (rgba && !isNaN(rgba[0])) {
			if (format === 'rgb') {
				ret = 'rgb(' + rgba[0] + ',' + rgba[1] + ',' + rgba[2] + ')';
			} else if (format === 'a') {
				ret = rgba[3];
			} else {
				ret = 'rgba(' + rgba.join(',') + ')';
			}
		} else {
			ret = input;
		}
		return ret;
	}

	/**
	 * Brighten the color
	 * @param {Number} alpha
	 */
	function brighten(alpha) {
		if (stops) {
			each(stops, function (stop) {
				stop.brighten(alpha);
			});

		} else if (isNumber(alpha) && alpha !== 0) {
			var i;
			for (i = 0; i < 3; i++) {
				rgba[i] += pInt(alpha * 255);

				if (rgba[i] < 0) {
					rgba[i] = 0;
				}
				if (rgba[i] > 255) {
					rgba[i] = 255;
				}
			}
		}
		return this;
	}
	/**
	 * Set the color's opacity to a given alpha value
	 * @param {Number} alpha
	 */
	function setOpacity(alpha) {
		rgba[3] = alpha;
		return this;
	}

	// initialize: parse the input
	init(input);

	// public methods
	return {
		get: get,
		brighten: brighten,
		rgba: rgba,
		setOpacity: setOpacity
	};
};


/**
 * A wrapper object for SVG elements
 */
function SVGElement() {}

SVGElement.prototype = {

	// Default base for animation
	opacity: 1,
	// For labels, these CSS properties are applied to the <text> node directly
	textProps: ['fontSize', 'fontWeight', 'fontFamily', 'color',
		'lineHeight', 'width', 'textDecoration', 'textShadow', 'HcTextStroke'],

	/**
	 * Initialize the SVG renderer
	 * @param {Object} renderer
	 * @param {String} nodeName
	 */
	init: function (renderer, nodeName) {
		var wrapper = this;
		wrapper.element = nodeName === 'span' ?
			createElement(nodeName) :
			doc.createElementNS(SVG_NS, nodeName);
		wrapper.renderer = renderer;
	},

	/**
	 * Animate a given attribute
	 * @param {Object} params
	 * @param {Number} options The same options as in jQuery animation
	 * @param {Function} complete Function to perform at the end of animation
	 */
	animate: function (params, options, complete) {
		var animOptions = pick(options, globalAnimation, true);
		stop(this); // stop regardless of animation actually running, or reverting to .attr (#607)
		if (animOptions) {
			animOptions = merge(animOptions, {}); //#2625
			if (complete) { // allows using a callback with the global animation without overwriting it
				animOptions.complete = complete;
			}
			animate(this, params, animOptions);
		} else {
			this.attr(params);
			if (complete) {
				complete();
			}
		}
		return this;
	},

	/**
	 * Build an SVG gradient out of a common JavaScript configuration object
	 */
	colorGradient: function (color, prop, elem) {
		var renderer = this.renderer,
			colorObject,
			gradName,
			gradAttr,
			gradients,
			gradientObject,
			stops,
			stopColor,
			stopOpacity,
			radialReference,
			n,
			id,
			key = [];

		// Apply linear or radial gradients
		if (color.linearGradient) {
			gradName = 'linearGradient';
		} else if (color.radialGradient) {
			gradName = 'radialGradient';
		}

		if (gradName) {
			gradAttr = color[gradName];
			gradients = renderer.gradients;
			stops = color.stops;
			radialReference = elem.radialReference;

			// Keep < 2.2 kompatibility
			if (isArray(gradAttr)) {
				color[gradName] = gradAttr = {
					x1: gradAttr[0],
					y1: gradAttr[1],
					x2: gradAttr[2],
					y2: gradAttr[3],
					gradientUnits: 'userSpaceOnUse'
				};
			}

			// Correct the radial gradient for the radial reference system
			if (gradName === 'radialGradient' && radialReference && !defined(gradAttr.gradientUnits)) {
				gradAttr = merge(gradAttr, {
					cx: (radialReference[0] - radialReference[2] / 2) + gradAttr.cx * radialReference[2],
					cy: (radialReference[1] - radialReference[2] / 2) + gradAttr.cy * radialReference[2],
					r: gradAttr.r * radialReference[2],
					gradientUnits: 'userSpaceOnUse'
				});
			}

			// Build the unique key to detect whether we need to create a new element (#1282)
			for (n in gradAttr) {
				if (n !== 'id') {
					key.push(n, gradAttr[n]);
				}
			}
			for (n in stops) {
				key.push(stops[n]);
			}
			key = key.join(',');

			// Check if a gradient object with the same config object is created within this renderer
			if (gradients[key]) {
				id = gradients[key].attr('id');

			} else {

				// Set the id and create the element
				gradAttr.id = id = PREFIX + idCounter++;
				gradients[key] = gradientObject = renderer.createElement(gradName)
					.attr(gradAttr)
					.add(renderer.defs);


				// The gradient needs to keep a list of stops to be able to destroy them
				gradientObject.stops = [];
				each(stops, function (stop) {
					var stopObject;
					if (stop[1].indexOf('rgba') === 0) {
						colorObject = Color(stop[1]);
						stopColor = colorObject.get('rgb');
						stopOpacity = colorObject.get('a');
					} else {
						stopColor = stop[1];
						stopOpacity = 1;
					}
					stopObject = renderer.createElement('stop').attr({
						offset: stop[0],
						'stop-color': stopColor,
						'stop-opacity': stopOpacity
					}).add(gradientObject);

					// Add the stop element to the gradient
					gradientObject.stops.push(stopObject);
				});
			}

			// Set the reference to the gradient object
			elem.setAttribute(prop, 'url(' + renderer.url + '#' + id + ')');
		}
	},

	/**
	 * Set or get a given attribute
	 * @param {Object|String} hash
	 * @param {Mixed|Undefined} val
	 */
	attr: function (hash, val) {
		var key,
			value,
			element = this.element,
			hasSetSymbolSize,
			ret = this,
			skipAttr;

		// single key-value pair
		if (typeof hash === 'string' && val !== UNDEFINED) {
			key = hash;
			hash = {};
			hash[key] = val;
		}

		// used as a getter: first argument is a string, second is undefined
		if (typeof hash === 'string') {
			ret = (this[hash + 'Getter'] || this._defaultGetter).call(this, hash, element);

		// setter
		} else {

			for (key in hash) {
				value = hash[key];
				skipAttr = false;



				if (this.symbolName && /^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(key)) {
					if (!hasSetSymbolSize) {
						this.symbolAttr(hash);
						hasSetSymbolSize = true;
					}
					skipAttr = true;
				}

				if (this.rotation && (key === 'x' || key === 'y')) {
					this.doTransform = true;
				}

				if (!skipAttr) {
					(this[key + 'Setter'] || this._defaultSetter).call(this, value, key, element);
				}

				// Let the shadow follow the main element
				if (this.shadows && /^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(key)) {
					this.updateShadows(key, value);
				}
			}

			// Update transform. Do this outside the loop to prevent redundant updating for batch setting
			// of attributes.
			if (this.doTransform) {
				this.updateTransform();
				this.doTransform = false;
			}

		}

		return ret;
	},

	updateShadows: function (key, value) {
		var shadows = this.shadows,
			i = shadows.length;
		while (i--) {
			shadows[i].setAttribute(
				key,
				key === 'height' ?
					mathMax(value - (shadows[i].cutHeight || 0), 0) :
					key === 'd' ? this.d : value
			);
		}
	},

	/**
	 * Add a class name to an element
	 */
	addClass: function (className) {
		var element = this.element,
			currentClassName = attr(element, 'class') || '';

		if (currentClassName.indexOf(className) === -1) {
			attr(element, 'class', currentClassName + ' ' + className);
		}
		return this;
	},
	/* hasClass and removeClass are not (yet) needed
	hasClass: function (className) {
		return attr(this.element, 'class').indexOf(className) !== -1;
	},
	removeClass: function (className) {
		attr(this.element, 'class', attr(this.element, 'class').replace(className, ''));
		return this;
	},
	*/

	/**
	 * If one of the symbol size affecting parameters are changed,
	 * check all the others only once for each call to an element's
	 * .attr() method
	 * @param {Object} hash
	 */
	symbolAttr: function (hash) {
		var wrapper = this;

		each(['x', 'y', 'r', 'start', 'end', 'width', 'height', 'innerR', 'anchorX', 'anchorY'], function (key) {
			wrapper[key] = pick(hash[key], wrapper[key]);
		});

		wrapper.attr({
			d: wrapper.renderer.symbols[wrapper.symbolName](
				wrapper.x,
				wrapper.y,
				wrapper.width,
				wrapper.height,
				wrapper
			)
		});
	},

	/**
	 * Apply a clipping path to this object
	 * @param {String} id
	 */
	clip: function (clipRect) {
		return this.attr('clip-path', clipRect ? 'url(' + this.renderer.url + '#' + clipRect.id + ')' : NONE);
	},

	/**
	 * Calculate the coordinates needed for drawing a rectangle crisply and return the
	 * calculated attributes
	 * @param {Number} strokeWidth
	 * @param {Number} x
	 * @param {Number} y
	 * @param {Number} width
	 * @param {Number} height
	 */
	crisp: function (rect) {

		var wrapper = this,
			key,
			attribs = {},
			normalizer,
			strokeWidth = rect.strokeWidth || wrapper.strokeWidth || 0;

		normalizer = mathRound(strokeWidth) % 2 / 2; // mathRound because strokeWidth can sometimes have roundoff errors

		// normalize for crisp edges
		rect.x = mathFloor(rect.x || wrapper.x || 0) + normalizer;
		rect.y = mathFloor(rect.y || wrapper.y || 0) + normalizer;
		rect.width = mathFloor((rect.width || wrapper.width || 0) - 2 * normalizer);
		rect.height = mathFloor((rect.height || wrapper.height || 0) - 2 * normalizer);
		rect.strokeWidth = strokeWidth;

		for (key in rect) {
			if (wrapper[key] !== rect[key]) { // only set attribute if changed
				wrapper[key] = attribs[key] = rect[key];
			}
		}

		return attribs;
	},

	/**
	 * Set styles for the element
	 * @param {Object} styles
	 */
	css: function (styles) {
		var elemWrapper = this,
			oldStyles = elemWrapper.styles,
			newStyles = {},
			elem = elemWrapper.element,
			textWidth,
			n,
			serializedCss = '',
			hyphenate,
			hasNew = !oldStyles;

		// convert legacy
		if (styles && styles.color) {
			styles.fill = styles.color;
		}

		// Filter out existing styles to increase performance (#2640)
		if (oldStyles) {
			for (n in styles) {
				if (styles[n] !== oldStyles[n]) {
					newStyles[n] = styles[n];
					hasNew = true;
				}
			}
		}
		if (hasNew) {
			textWidth = elemWrapper.textWidth = styles && styles.width && elem.nodeName.toLowerCase() === 'text' && pInt(styles.width);

			// Merge the new styles with the old ones
			if (oldStyles) {
				styles = extend(
					oldStyles,
					newStyles
				);
			}

			// store object
			elemWrapper.styles = styles;

			if (textWidth && (useCanVG || (!hasSVG && elemWrapper.renderer.forExport))) {
				delete styles.width;
			}

			// serialize and set style attribute
			if (isIE && !hasSVG) {
				css(elemWrapper.element, styles);
			} else {
				/*jslint unparam: true*/
				hyphenate = function (a, b) { return '-' + b.toLowerCase(); };
				/*jslint unparam: false*/
				for (n in styles) {
					serializedCss += n.replace(/([A-Z])/g, hyphenate) + ':' + styles[n] + ';';
				}
				attr(elem, 'style', serializedCss); // #1881
			}


			// re-build text
			if (textWidth && elemWrapper.added) {
				elemWrapper.renderer.buildText(elemWrapper);
			}
		}

		return elemWrapper;
	},

	/**
	 * Add an event listener
	 * @param {String} eventType
	 * @param {Function} handler
	 */
	on: function (eventType, handler) {
		var svgElement = this,
			element = svgElement.element;

		// touch
		if (hasTouch && eventType === 'click') {
			element.ontouchstart = function (e) {
				svgElement.touchEventFired = Date.now();
				e.preventDefault();
				handler.call(element, e);
			};
			element.onclick = function (e) {
				if (userAgent.indexOf('Android') === -1 || Date.now() - (svgElement.touchEventFired || 0) > 1100) { // #2269
					handler.call(element, e);
				}
			};
		} else {
			// simplest possible event model for internal use
			element['on' + eventType] = handler;
		}
		return this;
	},

	/**
	 * Set the coordinates needed to draw a consistent radial gradient across
	 * pie slices regardless of positioning inside the chart. The format is
	 * [centerX, centerY, diameter] in pixels.
	 */
	setRadialReference: function (coordinates) {
		this.element.radialReference = coordinates;
		return this;
	},

	/**
	 * Move an object and its children by x and y values
	 * @param {Number} x
	 * @param {Number} y
	 */
	translate: function (x, y) {
		return this.attr({
			translateX: x,
			translateY: y
		});
	},

	/**
	 * Invert a group, rotate and flip
	 */
	invert: function () {
		var wrapper = this;
		wrapper.inverted = true;
		wrapper.updateTransform();
		return wrapper;
	},

	/**
	 * Private method to update the transform attribute based on internal
	 * properties
	 */
	updateTransform: function () {
		var wrapper = this,
			translateX = wrapper.translateX || 0,
			translateY = wrapper.translateY || 0,
			scaleX = wrapper.scaleX,
			scaleY = wrapper.scaleY,
			inverted = wrapper.inverted,
			rotation = wrapper.rotation,
			element = wrapper.element,
			transform;

		// flipping affects translate as adjustment for flipping around the group's axis
		if (inverted) {
			translateX += wrapper.attr('width');
			translateY += wrapper.attr('height');
		}

		// Apply translate. Nearly all transformed elements have translation, so instead
		// of checking for translate = 0, do it always (#1767, #1846).
		transform = ['translate(' + translateX + ',' + translateY + ')'];

		// apply rotation
		if (inverted) {
			transform.push('rotate(90) scale(-1,1)');
		} else if (rotation) { // text rotation
			transform.push('rotate(' + rotation + ' ' + (element.getAttribute('x') || 0) + ' ' + (element.getAttribute('y') || 0) + ')');
		}

		// apply scale
		if (defined(scaleX) || defined(scaleY)) {
			transform.push('scale(' + pick(scaleX, 1) + ' ' + pick(scaleY, 1) + ')');
		}

		if (transform.length) {
			element.setAttribute('transform', transform.join(' '));
		}
	},
	/**
	 * Bring the element to the front
	 */
	toFront: function () {
		var element = this.element;
		element.parentNode.appendChild(element);
		return this;
	},


	/**
	 * Break down alignment options like align, verticalAlign, x and y
	 * to x and y relative to the chart.
	 *
	 * @param {Object} alignOptions
	 * @param {Boolean} alignByTranslate
	 * @param {String[Object} box The box to align to, needs a width and height. When the
	 *        box is a string, it refers to an object in the Renderer. For example, when
	 *        box is 'spacingBox', it refers to Renderer.spacingBox which holds width, height
	 *        x and y properties.
	 *
	 */
	align: function (alignOptions, alignByTranslate, box) {
		var align,
			vAlign,
			x,
			y,
			attribs = {},
			alignTo,
			renderer = this.renderer,
			alignedObjects = renderer.alignedObjects;

		// First call on instanciate
		if (alignOptions) {
			this.alignOptions = alignOptions;
			this.alignByTranslate = alignByTranslate;
			if (!box || isString(box)) { // boxes other than renderer handle this internally
				this.alignTo = alignTo = box || 'renderer';
				erase(alignedObjects, this); // prevent duplicates, like legendGroup after resize
				alignedObjects.push(this);
				box = null; // reassign it below
			}

		// When called on resize, no arguments are supplied
		} else {
			alignOptions = this.alignOptions;
			alignByTranslate = this.alignByTranslate;
			alignTo = this.alignTo;
		}

		box = pick(box, renderer[alignTo], renderer);

		// Assign variables
		align = alignOptions.align;
		vAlign = alignOptions.verticalAlign;
		x = (box.x || 0) + (alignOptions.x || 0); // default: left align
		y = (box.y || 0) + (alignOptions.y || 0); // default: top align

		// Align
		if (align === 'right' || align === 'center') {
			x += (box.width - (alignOptions.width || 0)) /
					{ right: 1, center: 2 }[align];
		}
		attribs[alignByTranslate ? 'translateX' : 'x'] = mathRound(x);


		// Vertical align
		if (vAlign === 'bottom' || vAlign === 'middle') {
			y += (box.height - (alignOptions.height || 0)) /
					({ bottom: 1, middle: 2 }[vAlign] || 1);

		}
		attribs[alignByTranslate ? 'translateY' : 'y'] = mathRound(y);

		// Animate only if already placed
		this[this.placed ? 'animate' : 'attr'](attribs);
		this.placed = true;
		this.alignAttr = attribs;

		return this;
	},

	/**
	 * Get the bounding box (width, height, x and y) for the element
	 */
	getBBox: function () {
		var wrapper = this,
			bBox = wrapper.bBox,
			renderer = wrapper.renderer,
			width,
			height,
			rotation = wrapper.rotation,
			element = wrapper.element,
			styles = wrapper.styles,
			rad = rotation * deg2rad,
			textStr = wrapper.textStr,
			cacheKey;

		// Since numbers are monospaced, and numerical labels appear a lot in a chart,
		// we assume that a label of n characters has the same bounding box as others
		// of the same length.
		if (textStr === '' || numRegex.test(textStr)) {
			cacheKey = 'num.' + textStr.toString().length + (styles ? ('|' + styles.fontSize + '|' + styles.fontFamily) : '');

		} //else { // This code block made demo/waterfall fail, related to buildText
			// Caching all strings reduces rendering time by 4-5%.
			// TODO: Check how this affects places where bBox is found on the element
			//cacheKey = textStr + (styles ? ('|' + styles.fontSize + '|' + styles.fontFamily) : '');
		//}
		if (cacheKey) {
			bBox = renderer.cache[cacheKey];
		}

		// No cache found
		if (!bBox) {

			// SVG elements
			if (element.namespaceURI === SVG_NS || renderer.forExport) {
				try { // Fails in Firefox if the container has display: none.

					bBox = element.getBBox ?
						// SVG: use extend because IE9 is not allowed to change width and height in case
						// of rotation (below)
						extend({}, element.getBBox()) :
						// Canvas renderer and legacy IE in export mode
						{
							width: element.offsetWidth,
							height: element.offsetHeight
						};
				} catch (e) {}

				// If the bBox is not set, the try-catch block above failed. The other condition
				// is for Opera that returns a width of -Infinity on hidden elements.
				if (!bBox || bBox.width < 0) {
					bBox = { width: 0, height: 0 };
				}


			// VML Renderer or useHTML within SVG
			} else {

				bBox = wrapper.htmlGetBBox();

			}

			// True SVG elements as well as HTML elements in modern browsers using the .useHTML option
			// need to compensated for rotation
			if (renderer.isSVG) {
				width = bBox.width;
				height = bBox.height;

				// Workaround for wrong bounding box in IE9 and IE10 (#1101, #1505, #1669, #2568)
				if (isIE && styles && styles.fontSize === '11px' && height.toPrecision(3) === '16.9') {
					bBox.height = height = 14;
				}

				// Adjust for rotated text
				if (rotation) {
					bBox.width = mathAbs(height * mathSin(rad)) + mathAbs(width * mathCos(rad));
					bBox.height = mathAbs(height * mathCos(rad)) + mathAbs(width * mathSin(rad));
				}
			}

			// Cache it
			wrapper.bBox = bBox;
			if (cacheKey) {
				renderer.cache[cacheKey] = bBox;
			}
		}
		return bBox;
	},

	/**
	 * Show the element
	 */
	show: function (inherit) {
		// IE9-11 doesn't handle visibilty:inherit well, so we remove the attribute instead (#2881)
		if (inherit && this.element.namespaceURI === SVG_NS) {
			this.element.removeAttribute('visibility');
		} else {
			this.attr({ visibility: inherit ? 'inherit' : VISIBLE });
		}
		return this;
	},

	/**
	 * Hide the element
	 */
	hide: function () {
		return this.attr({ visibility: HIDDEN });
	},

	fadeOut: function (duration) {
		var elemWrapper = this;
		elemWrapper.animate({
			opacity: 0
		}, {
			duration: duration || 150,
			complete: function () {
				elemWrapper.attr({ y: -9999 }); // #3088, assuming we're only using this for tooltips
			}
		});
	},

	/**
	 * Add the element
	 * @param {Object|Undefined} parent Can be an element, an element wrapper or undefined
	 *    to append the element to the renderer.box.
	 */
	add: function (parent) {

		var renderer = this.renderer,
			parentWrapper = parent || renderer,
			parentNode = parentWrapper.element || renderer.box,
			childNodes,
			element = this.element,
			zIndex = this.zIndex,
			otherElement,
			otherZIndex,
			i,
			inserted;

		if (parent) {
			this.parentGroup = parent;
		}

		// mark as inverted
		this.parentInverted = parent && parent.inverted;

		// build formatted text
		if (this.textStr !== undefined) {
			renderer.buildText(this);
		}

		// mark the container as having z indexed children
		if (zIndex) {
			parentWrapper.handleZ = true;
			zIndex = pInt(zIndex);
		}

		// insert according to this and other elements' zIndex
		if (parentWrapper.handleZ) { // this element or any of its siblings has a z index
			childNodes = parentNode.childNodes;
			for (i = 0; i < childNodes.length; i++) {
				otherElement = childNodes[i];
				otherZIndex = attr(otherElement, 'zIndex');
				if (otherElement !== element && (
						// insert before the first element with a higher zIndex
						pInt(otherZIndex) > zIndex ||
						// if no zIndex given, insert before the first element with a zIndex
						(!defined(zIndex) && defined(otherZIndex))

						)) {
					parentNode.insertBefore(element, otherElement);
					inserted = true;
					break;
				}
			}
		}

		// default: append at the end
		if (!inserted) {
			parentNode.appendChild(element);
		}

		// mark as added
		this.added = true;

		// fire an event for internal hooks
		if (this.onAdd) {
			this.onAdd();
		}

		return this;
	},

	/**
	 * Removes a child either by removeChild or move to garbageBin.
	 * Issue 490; in VML removeChild results in Orphaned nodes according to sIEve, discardElement does not.
	 */
	safeRemoveChild: function (element) {
		var parentNode = element.parentNode;
		if (parentNode) {
			parentNode.removeChild(element);
		}
	},

	/**
	 * Destroy the element and element wrapper
	 */
	destroy: function () {
		var wrapper = this,
			element = wrapper.element || {},
			shadows = wrapper.shadows,
			parentToClean = wrapper.renderer.isSVG && element.nodeName === 'SPAN' && wrapper.parentGroup,
			grandParent,
			key,
			i;

		// remove events
		element.onclick = element.onmouseout = element.onmouseover = element.onmousemove = element.point = null;
		stop(wrapper); // stop running animations

		if (wrapper.clipPath) {
			wrapper.clipPath = wrapper.clipPath.destroy();
		}

		// Destroy stops in case this is a gradient object
		if (wrapper.stops) {
			for (i = 0; i < wrapper.stops.length; i++) {
				wrapper.stops[i] = wrapper.stops[i].destroy();
			}
			wrapper.stops = null;
		}

		// remove element
		wrapper.safeRemoveChild(element);

		// destroy shadows
		if (shadows) {
			each(shadows, function (shadow) {
				wrapper.safeRemoveChild(shadow);
			});
		}

		// In case of useHTML, clean up empty containers emulating SVG groups (#1960, #2393, #2697).
		while (parentToClean && parentToClean.div && parentToClean.div.childNodes.length === 0) {
			grandParent = parentToClean.parentGroup;
			wrapper.safeRemoveChild(parentToClean.div);
			delete parentToClean.div;
			parentToClean = grandParent;
		}

		// remove from alignObjects
		if (wrapper.alignTo) {
			erase(wrapper.renderer.alignedObjects, wrapper);
		}

		for (key in wrapper) {
			delete wrapper[key];
		}

		return null;
	},

	/**
	 * Add a shadow to the element. Must be done after the element is added to the DOM
	 * @param {Boolean|Object} shadowOptions
	 */
	shadow: function (shadowOptions, group, cutOff) {
		var shadows = [],
			i,
			shadow,
			element = this.element,
			strokeWidth,
			shadowWidth,
			shadowElementOpacity,

			// compensate for inverted plot area
			transform;


		if (shadowOptions) {
			shadowWidth = pick(shadowOptions.width, 3);
			shadowElementOpacity = (shadowOptions.opacity || 0.15) / shadowWidth;
			transform = this.parentInverted ?
				'(-1,-1)' :
				'(' + pick(shadowOptions.offsetX, 1) + ', ' + pick(shadowOptions.offsetY, 1) + ')';
			for (i = 1; i <= shadowWidth; i++) {
				shadow = element.cloneNode(0);
				strokeWidth = (shadowWidth * 2) + 1 - (2 * i);
				attr(shadow, {
					'isShadow': 'true',
					'stroke': shadowOptions.color || 'black',
					'stroke-opacity': shadowElementOpacity * i,
					'stroke-width': strokeWidth,
					'transform': 'translate' + transform,
					'fill': NONE
				});
				if (cutOff) {
					attr(shadow, 'height', mathMax(attr(shadow, 'height') - strokeWidth, 0));
					shadow.cutHeight = strokeWidth;
				}

				if (group) {
					group.element.appendChild(shadow);
				} else {
					element.parentNode.insertBefore(shadow, element);
				}

				shadows.push(shadow);
			}

			this.shadows = shadows;
		}
		return this;

	},

	xGetter: function (key) {
		if (this.element.nodeName === 'circle') {
			key = { x: 'cx', y: 'cy' }[key] || key;
		}
		return this._defaultGetter(key);
	},

	/**
	 * Get the current value of an attribute or pseudo attribute, used mainly
	 * for animation.
	 */
	_defaultGetter: function (key) {
		var ret = pick(this[key], this.element ? this.element.getAttribute(key) : null, 0);

		if (/^[\-0-9\.]+$/.test(ret)) { // is numerical
			ret = parseFloat(ret);
		}
		return ret;
	},


	dSetter: function (value, key, element) {
		if (value && value.join) { // join path
			value = value.join(' ');
		}
		if (/(NaN| {2}|^$)/.test(value)) {
			value = 'M 0 0';
		}
		element.setAttribute(key, value);

		this[key] = value;
	},
	dashstyleSetter: function (value) {
		var i;
		value = value && value.toLowerCase();
		if (value) {
			value = value
				.replace('shortdashdotdot', '3,1,1,1,1,1,')
				.replace('shortdashdot', '3,1,1,1')
				.replace('shortdot', '1,1,')
				.replace('shortdash', '3,1,')
				.replace('longdash', '8,3,')
				.replace(/dot/g, '1,3,')
				.replace('dash', '4,3,')
				.replace(/,$/, '')
				.split(','); // ending comma

			i = value.length;
			while (i--) {
				value[i] = pInt(value[i]) * this['stroke-width'];
			}
			value = value.join(',')
				.replace('NaN', 'none'); // #3226
			this.element.setAttribute('stroke-dasharray', value);
		}
	},
	alignSetter: function (value) {
		this.element.setAttribute('text-anchor', { left: 'start', center: 'middle', right: 'end' }[value]);
	},
	opacitySetter: function (value, key, element) {
		this[key] = value;
		element.setAttribute(key, value);
	},
	titleSetter: function (value) {
		var titleNode = this.element.getElementsByTagName('title')[0];
		if (!titleNode) {
			titleNode = doc.createElementNS(SVG_NS, 'title');
			this.element.appendChild(titleNode);
		}
		titleNode.textContent = pick(value, '').replace(/<[^>]*>/g, ''); // #3276
	},
	textSetter: function (value) {
		if (value !== this.textStr) {
			// Delete bBox memo when the text changes
			delete this.bBox;

			this.textStr = value;
			if (this.added) {
				this.renderer.buildText(this);
			}
		}
	},
	fillSetter: function (value, key, element) {
		if (typeof value === 'string') {
			element.setAttribute(key, value);
		} else if (value) {
			this.colorGradient(value, key, element);
		}
	},
	zIndexSetter: function (value, key, element) {
		element.setAttribute(key, value);
		this[key] = value;
	},
	_defaultSetter: function (value, key, element) {
		element.setAttribute(key, value);
	}
};

// Some shared setters and getters
SVGElement.prototype.yGetter = SVGElement.prototype.xGetter;
SVGElement.prototype.translateXSetter = SVGElement.prototype.translateYSetter =
		SVGElement.prototype.rotationSetter = SVGElement.prototype.verticalAlignSetter =
		SVGElement.prototype.scaleXSetter = SVGElement.prototype.scaleYSetter = function (value, key) {
	this[key] = value;
	this.doTransform = true;
};

// WebKit and Batik have problems with a stroke-width of zero, so in this case we remove the
// stroke attribute altogether. #1270, #1369, #3065, #3072.
SVGElement.prototype['stroke-widthSetter'] = SVGElement.prototype.strokeSetter = function (value, key, element) {
	this[key] = value;
	// Only apply the stroke attribute if the stroke width is defined and larger than 0
	if (this.stroke && this['stroke-width']) {
		this.strokeWidth = this['stroke-width'];
		SVGElement.prototype.fillSetter.call(this, this.stroke, 'stroke', element); // use prototype as instance may be overridden
		element.setAttribute('stroke-width', this['stroke-width']);
		this.hasStroke = true;
	} else if (key === 'stroke-width' && value === 0 && this.hasStroke) {
		element.removeAttribute('stroke');
		this.hasStroke = false;
	}
};


/**
 * The default SVG renderer
 */
var SVGRenderer = function () {
	this.init.apply(this, arguments);
};
SVGRenderer.prototype = {
	Element: SVGElement,

	/**
	 * Initialize the SVGRenderer
	 * @param {Object} container
	 * @param {Number} width
	 * @param {Number} height
	 * @param {Boolean} forExport
	 */
	init: function (container, width, height, style, forExport) {
		var renderer = this,
			loc = location,
			boxWrapper,
			element,
			desc;

		boxWrapper = renderer.createElement('svg')
			.attr({
				version: '1.1'
			})
			.css(this.getStyle(style));
		element = boxWrapper.element;
		container.appendChild(element);

		// For browsers other than IE, add the namespace attribute (#1978)
		if (container.innerHTML.indexOf('xmlns') === -1) {
			attr(element, 'xmlns', SVG_NS);
		}

		// object properties
		renderer.isSVG = true;
		renderer.box = element;
		renderer.boxWrapper = boxWrapper;
		renderer.alignedObjects = [];

		// Page url used for internal references. #24, #672, #1070
		renderer.url = (isFirefox || isWebKit) && doc.getElementsByTagName('base').length ?
			loc.href
				.replace(/#.*?$/, '') // remove the hash
				.replace(/([\('\)])/g, '\\$1') // escape parantheses and quotes
				.replace(/ /g, '%20') : // replace spaces (needed for Safari only)
			'';

		// Add description
		desc = this.createElement('desc').add();
		desc.element.appendChild(doc.createTextNode('Created with ' + PRODUCT + ' ' + VERSION));


		renderer.defs = this.createElement('defs').add();
		renderer.forExport = forExport;
		renderer.gradients = {}; // Object where gradient SvgElements are stored
		renderer.cache = {}; // Cache for numerical bounding boxes

		renderer.setSize(width, height, false);



		// Issue 110 workaround:
		// In Firefox, if a div is positioned by percentage, its pixel position may land
		// between pixels. The container itself doesn't display this, but an SVG element
		// inside this container will be drawn at subpixel precision. In order to draw
		// sharp lines, this must be compensated for. This doesn't seem to work inside
		// iframes though (like in jsFiddle).
		var subPixelFix, rect;
		if (isFirefox && container.getBoundingClientRect) {
			renderer.subPixelFix = subPixelFix = function () {
				css(container, { left: 0, top: 0 });
				rect = container.getBoundingClientRect();
				css(container, {
					left: (mathCeil(rect.left) - rect.left) + PX,
					top: (mathCeil(rect.top) - rect.top) + PX
				});
			};

			// run the fix now
			subPixelFix();

			// run it on resize
			addEvent(win, 'resize', subPixelFix);
		}
	},

	getStyle: function (style) {
		return (this.style = extend({
			fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif', // default font
			fontSize: '12px'
		}, style));
	},

	/**
	 * Detect whether the renderer is hidden. This happens when one of the parent elements
	 * has display: none. #608.
	 */
	isHidden: function () {
		return !this.boxWrapper.getBBox().width;
	},

	/**
	 * Destroys the renderer and its allocated members.
	 */
	destroy: function () {
		var renderer = this,
			rendererDefs = renderer.defs;
		renderer.box = null;
		renderer.boxWrapper = renderer.boxWrapper.destroy();

		// Call destroy on all gradient elements
		destroyObjectProperties(renderer.gradients || {});
		renderer.gradients = null;

		// Defs are null in VMLRenderer
		// Otherwise, destroy them here.
		if (rendererDefs) {
			renderer.defs = rendererDefs.destroy();
		}

		// Remove sub pixel fix handler
		// We need to check that there is a handler, otherwise all functions that are registered for event 'resize' are removed
		// See issue #982
		if (renderer.subPixelFix) {
			removeEvent(win, 'resize', renderer.subPixelFix);
		}

		renderer.alignedObjects = null;

		return null;
	},

	/**
	 * Create a wrapper for an SVG element
	 * @param {Object} nodeName
	 */
	createElement: function (nodeName) {
		var wrapper = new this.Element();
		wrapper.init(this, nodeName);
		return wrapper;
	},

	/**
	 * Dummy function for use in canvas renderer
	 */
	draw: function () {},

	/**
	 * Parse a simple HTML string into SVG tspans
	 *
	 * @param {Object} textNode The parent text SVG node
	 */
	buildText: function (wrapper) {
		var textNode = wrapper.element,
			renderer = this,
			forExport = renderer.forExport,
			textStr = pick(wrapper.textStr, '').toString(),
			hasMarkup = textStr.indexOf('<') !== -1,
			lines,
			childNodes = textNode.childNodes,
			styleRegex,
			hrefRegex,
			parentX = attr(textNode, 'x'),
			textStyles = wrapper.styles,
			width = wrapper.textWidth,
			textLineHeight = textStyles && textStyles.lineHeight,
			textStroke = textStyles && textStyles.HcTextStroke,
			i = childNodes.length,
			getLineHeight = function (tspan) {
				return textLineHeight ?
					pInt(textLineHeight) :
					renderer.fontMetrics(
						/(px|em)$/.test(tspan && tspan.style.fontSize) ?
							tspan.style.fontSize :
							((textStyles && textStyles.fontSize) || renderer.style.fontSize || 12),
						tspan
					).h;
			};

		/// remove old text
		while (i--) {
			textNode.removeChild(childNodes[i]);
		}

		// Skip tspans, add text directly to text node. The forceTSpan is a hook
		// used in text outline hack.
		if (!hasMarkup && !textStroke && textStr.indexOf(' ') === -1) {
			textNode.appendChild(doc.createTextNode(textStr));
			return;

		// Complex strings, add more logic
		} else {

			styleRegex = /<.*style="([^"]+)".*>/;
			hrefRegex = /<.*href="(http[^"]+)".*>/;

			if (width && !wrapper.added) {
				this.box.appendChild(textNode); // attach it to the DOM to read offset width
			}

			if (hasMarkup) {
				lines = textStr
					.replace(/<(b|strong)>/g, '<span style="font-weight:bold">')
					.replace(/<(i|em)>/g, '<span style="font-style:italic">')
					.replace(/<a/g, '<span')
					.replace(/<\/(b|strong|i|em|a)>/g, '</span>')
					.split(/<br.*?>/g);

			} else {
				lines = [textStr];
			}


			// remove empty line at end
			if (lines[lines.length - 1] === '') {
				lines.pop();
			}


			// build the lines
			each(lines, function (line, lineNo) {
				var spans, spanNo = 0;

				line = line.replace(/<span/g, '|||<span').replace(/<\/span>/g, '</span>|||');
				spans = line.split('|||');

				each(spans, function (span) {
					if (span !== '' || spans.length === 1) {
						var attributes = {},
							tspan = doc.createElementNS(SVG_NS, 'tspan'),
							spanStyle; // #390
						if (styleRegex.test(span)) {
							spanStyle = span.match(styleRegex)[1].replace(/(;| |^)color([ :])/, '$1fill$2');
							attr(tspan, 'style', spanStyle);
						}
						if (hrefRegex.test(span) && !forExport) { // Not for export - #1529
							attr(tspan, 'onclick', 'location.href=\"' + span.match(hrefRegex)[1] + '\"');
							css(tspan, { cursor: 'pointer' });
						}

						span = (span.replace(/<(.|\n)*?>/g, '') || ' ')
							.replace(/&lt;/g, '<')
							.replace(/&gt;/g, '>');

						// Nested tags aren't supported, and cause crash in Safari (#1596)
						if (span !== ' ') {

							// add the text node
							tspan.appendChild(doc.createTextNode(span));

							if (!spanNo) { // first span in a line, align it to the left
								if (lineNo && parentX !== null) {
									attributes.x = parentX;
								}
							} else {
								attributes.dx = 0; // #16
							}

							// add attributes
							attr(tspan, attributes);

							// Append it
							textNode.appendChild(tspan);

							// first span on subsequent line, add the line height
							if (!spanNo && lineNo) {

								// allow getting the right offset height in exporting in IE
								if (!hasSVG && forExport) {
									css(tspan, { display: 'block' });
								}

								// Set the line height based on the font size of either
								// the text element or the tspan element
								attr(
									tspan,
									'dy',
									getLineHeight(tspan)
								);
							}

							// check width and apply soft breaks
							if (width) {
								var words = span.replace(/([^\^])-/g, '$1- ').split(' '), // #1273
									hasWhiteSpace = spans.length > 1 || (words.length > 1 && textStyles.whiteSpace !== 'nowrap'),
									tooLong,
									actualWidth,
									hcHeight = textStyles.HcHeight,
									rest = [],
									dy = getLineHeight(tspan),
									softLineNo = 1,
									bBox;

								while (hasWhiteSpace && (words.length || rest.length)) {
									delete wrapper.bBox; // delete cache
									bBox = wrapper.getBBox();
									actualWidth = bBox.width;

									// Old IE cannot measure the actualWidth for SVG elements (#2314)
									if (!hasSVG && renderer.forExport) {
										actualWidth = renderer.measureSpanWidth(tspan.firstChild.data, wrapper.styles);
									}

									tooLong = actualWidth > width;
									if (!tooLong || words.length === 1) { // new line needed
										words = rest;
										rest = [];
										if (words.length) {
											softLineNo++;
											if (hcHeight && softLineNo * dy > hcHeight) {
												words = ['...'];
												wrapper.attr('title', wrapper.textStr);
											} else {

												tspan = doc.createElementNS(SVG_NS, 'tspan');
												attr(tspan, {
													dy: dy,
													x: parentX
												});
												if (spanStyle) { // #390
													attr(tspan, 'style', spanStyle);
												}
												textNode.appendChild(tspan);
											}
										}
										if (actualWidth > width) { // a single word is pressing it out
											width = actualWidth;
										}
									} else { // append to existing line tspan
										tspan.removeChild(tspan.firstChild);
										rest.unshift(words.pop());
									}
									if (words.length) {
										tspan.appendChild(doc.createTextNode(words.join(' ').replace(/- /g, '-')));
									}
								}
							}

							spanNo++;
						}
					}
				});
			});
		}
	},

	/**
	 * Create a button with preset states
	 * @param {String} text
	 * @param {Number} x
	 * @param {Number} y
	 * @param {Function} callback
	 * @param {Object} normalState
	 * @param {Object} hoverState
	 * @param {Object} pressedState
	 */
	button: function (text, x, y, callback, normalState, hoverState, pressedState, disabledState, shape) {
		var label = this.label(text, x, y, shape, null, null, null, null, 'button'),
			curState = 0,
			stateOptions,
			stateStyle,
			normalStyle,
			hoverStyle,
			pressedStyle,
			disabledStyle,
			verticalGradient = { x1: 0, y1: 0, x2: 0, y2: 1 };

		// Normal state - prepare the attributes
		normalState = merge({
			'stroke-width': 1,
			stroke: '#CCCCCC',
			fill: {
				linearGradient: verticalGradient,
				stops: [
					[0, '#FEFEFE'],
					[1, '#F6F6F6']
				]
			},
			r: 2,
			padding: 5,
			style: {
				color: 'black'
			}
		}, normalState);
		normalStyle = normalState.style;
		delete normalState.style;

		// Hover state
		hoverState = merge(normalState, {
			stroke: '#68A',
			fill: {
				linearGradient: verticalGradient,
				stops: [
					[0, '#FFF'],
					[1, '#ACF']
				]
			}
		}, hoverState);
		hoverStyle = hoverState.style;
		delete hoverState.style;

		// Pressed state
		pressedState = merge(normalState, {
			stroke: '#68A',
			fill: {
				linearGradient: verticalGradient,
				stops: [
					[0, '#9BD'],
					[1, '#CDF']
				]
			}
		}, pressedState);
		pressedStyle = pressedState.style;
		delete pressedState.style;

		// Disabled state
		disabledState = merge(normalState, {
			style: {
				color: '#CCC'
			}
		}, disabledState);
		disabledStyle = disabledState.style;
		delete disabledState.style;

		// Add the events. IE9 and IE10 need mouseover and mouseout to funciton (#667).
		addEvent(label.element, isIE ? 'mouseover' : 'mouseenter', function () {
			if (curState !== 3) {
				label.attr(hoverState)
					.css(hoverStyle);
			}
		});
		addEvent(label.element, isIE ? 'mouseout' : 'mouseleave', function () {
			if (curState !== 3) {
				stateOptions = [normalState, hoverState, pressedState][curState];
				stateStyle = [normalStyle, hoverStyle, pressedStyle][curState];
				label.attr(stateOptions)
					.css(stateStyle);
			}
		});

		label.setState = function (state) {
			label.state = curState = state;
			if (!state) {
				label.attr(normalState)
					.css(normalStyle);
			} else if (state === 2) {
				label.attr(pressedState)
					.css(pressedStyle);
			} else if (state === 3) {
				label.attr(disabledState)
					.css(disabledStyle);
			}
		};

		return label
			.on('click', function () {
				if (curState !== 3) {
					callback.call(label);
				}
			})
			.attr(normalState)
			.css(extend({ cursor: 'default' }, normalStyle));
	},

	/**
	 * Make a straight line crisper by not spilling out to neighbour pixels
	 * @param {Array} points
	 * @param {Number} width
	 */
	crispLine: function (points, width) {
		// points format: [M, 0, 0, L, 100, 0]
		// normalize to a crisp line
		if (points[1] === points[4]) {
			// Substract due to #1129. Now bottom and left axis gridlines behave the same.
			points[1] = points[4] = mathRound(points[1]) - (width % 2 / 2);
		}
		if (points[2] === points[5]) {
			points[2] = points[5] = mathRound(points[2]) + (width % 2 / 2);
		}
		return points;
	},


	/**
	 * Draw a path
	 * @param {Array} path An SVG path in array form
	 */
	path: function (path) {
		var attr = {
			fill: NONE
		};
		if (isArray(path)) {
			attr.d = path;
		} else if (isObject(path)) { // attributes
			extend(attr, path);
		}
		return this.createElement('path').attr(attr);
	},

	/**
	 * Draw and return an SVG circle
	 * @param {Number} x The x position
	 * @param {Number} y The y position
	 * @param {Number} r The radius
	 */
	circle: function (x, y, r) {
		var attr = isObject(x) ?
			x :
			{
				x: x,
				y: y,
				r: r
			},
			wrapper = this.createElement('circle');

		wrapper.xSetter = function (value) {
			this.element.setAttribute('cx', value);
		};
		wrapper.ySetter = function (value) {
			this.element.setAttribute('cy', value);
		};
		return wrapper.attr(attr);
	},

	/**
	 * Draw and return an arc
	 * @param {Number} x X position
	 * @param {Number} y Y position
	 * @param {Number} r Radius
	 * @param {Number} innerR Inner radius like used in donut charts
	 * @param {Number} start Starting angle
	 * @param {Number} end Ending angle
	 */
	arc: function (x, y, r, innerR, start, end) {
		var arc;

		if (isObject(x)) {
			y = x.y;
			r = x.r;
			innerR = x.innerR;
			start = x.start;
			end = x.end;
			x = x.x;
		}

		// Arcs are defined as symbols for the ability to set
		// attributes in attr and animate
		arc = this.symbol('arc', x || 0, y || 0, r || 0, r || 0, {
			innerR: innerR || 0,
			start: start || 0,
			end: end || 0
		});
		arc.r = r; // #959
		return arc;
	},

	/**
	 * Draw and return a rectangle
	 * @param {Number} x Left position
	 * @param {Number} y Top position
	 * @param {Number} width
	 * @param {Number} height
	 * @param {Number} r Border corner radius
	 * @param {Number} strokeWidth A stroke width can be supplied to allow crisp drawing
	 */
	rect: function (x, y, width, height, r, strokeWidth) {

		r = isObject(x) ? x.r : r;

		var wrapper = this.createElement('rect'),
			attribs = isObject(x) ? x : x === UNDEFINED ? {} : {
				x: x,
				y: y,
				width: mathMax(width, 0),
				height: mathMax(height, 0)
			};

		if (strokeWidth !== UNDEFINED) {
			attribs.strokeWidth = strokeWidth;
			attribs = wrapper.crisp(attribs);
		}

		if (r) {
			attribs.r = r;
		}

		wrapper.rSetter = function (value) {
			attr(this.element, {
				rx: value,
				ry: value
			});
		};

		return wrapper.attr(attribs);
	},

	/**
	 * Resize the box and re-align all aligned elements
	 * @param {Object} width
	 * @param {Object} height
	 * @param {Boolean} animate
	 *
	 */
	setSize: function (width, height, animate) {
		var renderer = this,
			alignedObjects = renderer.alignedObjects,
			i = alignedObjects.length;

		renderer.width = width;
		renderer.height = height;

		renderer.boxWrapper[pick(animate, true) ? 'animate' : 'attr']({
			width: width,
			height: height
		});

		while (i--) {
			alignedObjects[i].align();
		}
	},

	/**
	 * Create a group
	 * @param {String} name The group will be given a class name of 'highcharts-{name}'.
	 *     This can be used for styling and scripting.
	 */
	g: function (name) {
		var elem = this.createElement('g');
		return defined(name) ? elem.attr({ 'class': PREFIX + name }) : elem;
	},

	/**
	 * Display an image
	 * @param {String} src
	 * @param {Number} x
	 * @param {Number} y
	 * @param {Number} width
	 * @param {Number} height
	 */
	image: function (src, x, y, width, height) {
		var attribs = {
				preserveAspectRatio: NONE
			},
			elemWrapper;

		// optional properties
		if (arguments.length > 1) {
			extend(attribs, {
				x: x,
				y: y,
				width: width,
				height: height
			});
		}

		elemWrapper = this.createElement('image').attr(attribs);

		// set the href in the xlink namespace
		if (elemWrapper.element.setAttributeNS) {
			elemWrapper.element.setAttributeNS('http://www.w3.org/1999/xlink',
				'href', src);
		} else {
			// could be exporting in IE
			// using href throws "not supported" in ie7 and under, requries regex shim to fix later
			elemWrapper.element.setAttribute('hc-svg-href', src);
		}
		return elemWrapper;
	},

	/**
	 * Draw a symbol out of pre-defined shape paths from the namespace 'symbol' object.
	 *
	 * @param {Object} symbol
	 * @param {Object} x
	 * @param {Object} y
	 * @param {Object} radius
	 * @param {Object} options
	 */
	symbol: function (symbol, x, y, width, height, options) {

		var obj,

			// get the symbol definition function
			symbolFn = this.symbols[symbol],

			// check if there's a path defined for this symbol
			path = symbolFn && symbolFn(
				mathRound(x),
				mathRound(y),
				width,
				height,
				options
			),

			imageElement,
			imageRegex = /^url\((.*?)\)$/,
			imageSrc,
			imageSize,
			centerImage;

		if (path) {

			obj = this.path(path);
			// expando properties for use in animate and attr
			extend(obj, {
				symbolName: symbol,
				x: x,
				y: y,
				width: width,
				height: height
			});
			if (options) {
				extend(obj, options);
			}


		// image symbols
		} else if (imageRegex.test(symbol)) {

			// On image load, set the size and position
			centerImage = function (img, size) {
				if (img.element) { // it may be destroyed in the meantime (#1390)
					img.attr({
						width: size[0],
						height: size[1]
					});

					if (!img.alignByTranslate) { // #185
						img.translate(
							mathRound((width - size[0]) / 2), // #1378
							mathRound((height - size[1]) / 2)
						);
					}
				}
			};

			imageSrc = symbol.match(imageRegex)[1];
			imageSize = symbolSizes[imageSrc] || (options && options.width && options.height && [options.width, options.height]);

			// Ireate the image synchronously, add attribs async
			obj = this.image(imageSrc)
				.attr({
					x: x,
					y: y
				});
			obj.isImg = true;

			if (imageSize) {
				centerImage(obj, imageSize);
			} else {
				// Initialize image to be 0 size so export will still function if there's no cached sizes.
				obj.attr({ width: 0, height: 0 });

				// Create a dummy JavaScript image to get the width and height. Due to a bug in IE < 8,
				// the created element must be assigned to a variable in order to load (#292).
				imageElement = createElement('img', {
					onload: function () {
						centerImage(obj, symbolSizes[imageSrc] = [this.width, this.height]);
					},
					src: imageSrc
				});
			}
		}

		return obj;
	},

	/**
	 * An extendable collection of functions for defining symbol paths.
	 */
	symbols: {
		'circle': function (x, y, w, h) {
			var cpw = 0.166 * w;
			return [
				M, x + w / 2, y,
				'C', x + w + cpw, y, x + w + cpw, y + h, x + w / 2, y + h,
				'C', x - cpw, y + h, x - cpw, y, x + w / 2, y,
				'Z'
			];
		},

		'square': function (x, y, w, h) {
			return [
				M, x, y,
				L, x + w, y,
				x + w, y + h,
				x, y + h,
				'Z'
			];
		},

		'triangle': function (x, y, w, h) {
			return [
				M, x + w / 2, y,
				L, x + w, y + h,
				x, y + h,
				'Z'
			];
		},

		'triangle-down': function (x, y, w, h) {
			return [
				M, x, y,
				L, x + w, y,
				x + w / 2, y + h,
				'Z'
			];
		},
		'diamond': function (x, y, w, h) {
			return [
				M, x + w / 2, y,
				L, x + w, y + h / 2,
				x + w / 2, y + h,
				x, y + h / 2,
				'Z'
			];
		},
		'arc': function (x, y, w, h, options) {
			var start = options.start,
				radius = options.r || w || h,
				end = options.end - 0.001, // to prevent cos and sin of start and end from becoming equal on 360 arcs (related: #1561)
				innerRadius = options.innerR,
				open = options.open,
				cosStart = mathCos(start),
				sinStart = mathSin(start),
				cosEnd = mathCos(end),
				sinEnd = mathSin(end),
				longArc = options.end - start < mathPI ? 0 : 1;

			return [
				M,
				x + radius * cosStart,
				y + radius * sinStart,
				'A', // arcTo
				radius, // x radius
				radius, // y radius
				0, // slanting
				longArc, // long or short arc
				1, // clockwise
				x + radius * cosEnd,
				y + radius * sinEnd,
				open ? M : L,
				x + innerRadius * cosEnd,
				y + innerRadius * sinEnd,
				'A', // arcTo
				innerRadius, // x radius
				innerRadius, // y radius
				0, // slanting
				longArc, // long or short arc
				0, // clockwise
				x + innerRadius * cosStart,
				y + innerRadius * sinStart,

				open ? '' : 'Z' // close
			];
		},

		/**
		 * Callout shape used for default tooltips, also used for rounded rectangles in VML
		 */
		callout: function (x, y, w, h, options) {
			var arrowLength = 6,
				halfDistance = 6,
				r = mathMin((options && options.r) || 0, w, h),
				safeDistance = r + halfDistance,
				anchorX = options && options.anchorX,
				anchorY = options && options.anchorY,
				path,
				normalizer = mathRound(options.strokeWidth || 0) % 2 / 2; // mathRound because strokeWidth can sometimes have roundoff errors;

			x += normalizer;
			y += normalizer;
			path = [
				'M', x + r, y,
				'L', x + w - r, y, // top side
				'C', x + w, y, x + w, y, x + w, y + r, // top-right corner
				'L', x + w, y + h - r, // right side
				'C', x + w, y + h, x + w, y + h, x + w - r, y + h, // bottom-right corner
				'L', x + r, y + h, // bottom side
				'C', x, y + h, x, y + h, x, y + h - r, // bottom-left corner
				'L', x, y + r, // left side
				'C', x, y, x, y, x + r, y // top-right corner
			];

			if (anchorX && anchorX > w && anchorY > y + safeDistance && anchorY < y + h - safeDistance) { // replace right side
				path.splice(13, 3,
					'L', x + w, anchorY - halfDistance,
					x + w + arrowLength, anchorY,
					x + w, anchorY + halfDistance,
					x + w, y + h - r
				);
			} else if (anchorX && anchorX < 0 && anchorY > y + safeDistance && anchorY < y + h - safeDistance) { // replace left side
				path.splice(33, 3,
					'L', x, anchorY + halfDistance,
					x - arrowLength, anchorY,
					x, anchorY - halfDistance,
					x, y + r
				);
			} else if (anchorY && anchorY > h && anchorX > x + safeDistance && anchorX < x + w - safeDistance) { // replace bottom
				path.splice(23, 3,
					'L', anchorX + halfDistance, y + h,
					anchorX, y + h + arrowLength,
					anchorX - halfDistance, y + h,
					x + r, y + h
				);
			} else if (anchorY && anchorY < 0 && anchorX > x + safeDistance && anchorX < x + w - safeDistance) { // replace top
				path.splice(3, 3,
					'L', anchorX - halfDistance, y,
					anchorX, y - arrowLength,
					anchorX + halfDistance, y,
					w - r, y
				);
			}
			return path;
		}
	},

	/**
	 * Define a clipping rectangle
	 * @param {String} id
	 * @param {Number} x
	 * @param {Number} y
	 * @param {Number} width
	 * @param {Number} height
	 */
	clipRect: function (x, y, width, height) {
		var wrapper,
			id = PREFIX + idCounter++,

			clipPath = this.createElement('clipPath').attr({
				id: id
			}).add(this.defs);

		wrapper = this.rect(x, y, width, height, 0).add(clipPath);
		wrapper.id = id;
		wrapper.clipPath = clipPath;

		return wrapper;
	},





	/**
	 * Add text to the SVG object
	 * @param {String} str
	 * @param {Number} x Left position
	 * @param {Number} y Top position
	 * @param {Boolean} useHTML Use HTML to render the text
	 */
	text: function (str, x, y, useHTML) {

		// declare variables
		var renderer = this,
			fakeSVG = useCanVG || (!hasSVG && renderer.forExport),
			wrapper,
			attr = {};

		if (useHTML && !renderer.forExport) {
			return renderer.html(str, x, y);
		}

		attr.x = Math.round(x || 0); // X is always needed for line-wrap logic
		if (y) {
			attr.y = Math.round(y);
		}
		if (str || str === 0) {
			attr.text = str;
		}

		wrapper = renderer.createElement('text')
			.attr(attr);

		// Prevent wrapping from creating false offsetWidths in export in legacy IE (#1079, #1063)
		if (fakeSVG) {
			wrapper.css({
				position: ABSOLUTE
			});
		}

		if (!useHTML) {
			wrapper.xSetter = function (value, key, element) {
				var tspans = element.getElementsByTagName('tspan'),
					tspan,
					parentVal = element.getAttribute(key),
					i;
				for (i = 0; i < tspans.length; i++) {
					tspan = tspans[i];
					// If the x values are equal, the tspan represents a linebreak
					if (tspan.getAttribute(key) === parentVal) {
						tspan.setAttribute(key, value);
					}
				}
				element.setAttribute(key, value);
			};
		}

		return wrapper;
	},

	/**
	 * Utility to return the baseline offset and total line height from the font size
	 */
	fontMetrics: function (fontSize, elem) {
		fontSize = fontSize || this.style.fontSize;
		if (elem && win.getComputedStyle) {
			elem = elem.element || elem; // SVGElement
			fontSize = win.getComputedStyle(elem, "").fontSize;
		}
		fontSize = /px/.test(fontSize) ? pInt(fontSize) : /em/.test(fontSize) ? parseFloat(fontSize) * 12 : 12;

		// Empirical values found by comparing font size and bounding box height.
		// Applies to the default font family. http://jsfiddle.net/highcharts/7xvn7/
		var lineHeight = fontSize < 24 ? fontSize + 4 : mathRound(fontSize * 1.2),
			baseline = mathRound(lineHeight * 0.8);

		return {
			h: lineHeight,
			b: baseline,
			f: fontSize
		};
	},

	/**
	 * Add a label, a text item that can hold a colored or gradient background
	 * as well as a border and shadow.
	 * @param {string} str
	 * @param {Number} x
	 * @param {Number} y
	 * @param {String} shape
	 * @param {Number} anchorX In case the shape has a pointer, like a flag, this is the
	 *    coordinates it should be pinned to
	 * @param {Number} anchorY
	 * @param {Boolean} baseline Whether to position the label relative to the text baseline,
	 *    like renderer.text, or to the upper border of the rectangle.
	 * @param {String} className Class name for the group
	 */
	label: function (str, x, y, shape, anchorX, anchorY, useHTML, baseline, className) {

		var renderer = this,
			wrapper = renderer.g(className),
			text = renderer.text('', 0, 0, useHTML)
				.attr({
					zIndex: 1
				}),
				//.add(wrapper),
			box,
			bBox,
			alignFactor = 0,
			padding = 3,
			paddingLeft = 0,
			width,
			height,
			wrapperX,
			wrapperY,
			crispAdjust = 0,
			deferredAttr = {},
			baselineOffset,
			needsBox;

		/**
		 * This function runs after the label is added to the DOM (when the bounding box is
		 * available), and after the text of the label is updated to detect the new bounding
		 * box and reflect it in the border box.
		 */
		function updateBoxSize() {
			var boxX,
				boxY,
				style = text.element.style;

			bBox = (width === undefined || height === undefined || wrapper.styles.textAlign) && text.textStr &&
				text.getBBox();
			wrapper.width = (width || bBox.width || 0) + 2 * padding + paddingLeft;
			wrapper.height = (height || bBox.height || 0) + 2 * padding;

			// update the label-scoped y offset
			baselineOffset = padding + renderer.fontMetrics(style && style.fontSize, text).b;


			if (needsBox) {

				// create the border box if it is not already present
				if (!box) {
					boxX = mathRound(-alignFactor * padding);
					boxY = baseline ? -baselineOffset : 0;

					wrapper.box = box = shape ?
						renderer.symbol(shape, boxX, boxY, wrapper.width, wrapper.height, deferredAttr) :
						renderer.rect(boxX, boxY, wrapper.width, wrapper.height, 0, deferredAttr[STROKE_WIDTH]);
					box.attr('fill', NONE).add(wrapper);
				}

				// apply the box attributes
				if (!box.isImg) { // #1630
					box.attr(extend({
						width: mathRound(wrapper.width),
						height: mathRound(wrapper.height)
					}, deferredAttr));
				}
				deferredAttr = null;
			}
		}

		/**
		 * This function runs after setting text or padding, but only if padding is changed
		 */
		function updateTextPadding() {
			var styles = wrapper.styles,
				textAlign = styles && styles.textAlign,
				x = paddingLeft + padding * (1 - alignFactor),
				y;

			// determin y based on the baseline
			y = baseline ? 0 : baselineOffset;

			// compensate for alignment
			if (defined(width) && bBox && (textAlign === 'center' || textAlign === 'right')) {
				x += { center: 0.5, right: 1 }[textAlign] * (width - bBox.width);
			}

			// update if anything changed
			if (x !== text.x || y !== text.y) {
				text.attr('x', x);
				if (y !== UNDEFINED) {
					text.attr('y', y);
				}
			}

			// record current values
			text.x = x;
			text.y = y;
		}

		/**
		 * Set a box attribute, or defer it if the box is not yet created
		 * @param {Object} key
		 * @param {Object} value
		 */
		function boxAttr(key, value) {
			if (box) {
				box.attr(key, value);
			} else {
				deferredAttr[key] = value;
			}
		}

		/**
		 * After the text element is added, get the desired size of the border box
		 * and add it before the text in the DOM.
		 */
		wrapper.onAdd = function () {
			text.add(wrapper);
			wrapper.attr({
				text: (str || str === 0) ? str : '', // alignment is available now // #3295: 0 not rendered if given as a value
				x: x,
				y: y
			});

			if (box && defined(anchorX)) {
				wrapper.attr({
					anchorX: anchorX,
					anchorY: anchorY
				});
			}
		};

		/*
		 * Add specific attribute setters.
		 */

		// only change local variables
		wrapper.widthSetter = function (value) {
			width = value;
		};
		wrapper.heightSetter = function (value) {
			height = value;
		};
		wrapper.paddingSetter =  function (value) {
			if (defined(value) && value !== padding) {
				padding = value;
				updateTextPadding();
			}
		};
		wrapper.paddingLeftSetter =  function (value) {
			if (defined(value) && value !== paddingLeft) {
				paddingLeft = value;
				updateTextPadding();
			}
		};


		// change local variable and prevent setting attribute on the group
		wrapper.alignSetter = function (value) {
			alignFactor = { left: 0, center: 0.5, right: 1 }[value];
		};

		// apply these to the box and the text alike
		wrapper.textSetter = function (value) {
			if (value !== UNDEFINED) {
				text.textSetter(value);
			}
			updateBoxSize();
			updateTextPadding();
		};

		// apply these to the box but not to the text
		wrapper['stroke-widthSetter'] = function (value, key) {
			if (value) {
				needsBox = true;
			}
			crispAdjust = value % 2 / 2;
			boxAttr(key, value);
		};
		wrapper.strokeSetter = wrapper.fillSetter = wrapper.rSetter = function (value, key) {
			if (key === 'fill' && value) {
				needsBox = true;
			}
			boxAttr(key, value);
		};
		wrapper.anchorXSetter = function (value, key) {
			anchorX = value;
			boxAttr(key, value + crispAdjust - wrapperX);
		};
		wrapper.anchorYSetter = function (value, key) {
			anchorY = value;
			boxAttr(key, value - wrapperY);
		};

		// rename attributes
		wrapper.xSetter = function (value) {
			wrapper.x = value; // for animation getter
			if (alignFactor) {
				value -= alignFactor * ((width || bBox.width) + padding);
			}
			wrapperX = mathRound(value);
			wrapper.attr('translateX', wrapperX);
		};
		wrapper.ySetter = function (value) {
			wrapperY = wrapper.y = mathRound(value);
			wrapper.attr('translateY', wrapperY);
		};

		// Redirect certain methods to either the box or the text
		var baseCss = wrapper.css;
		return extend(wrapper, {
			/**
			 * Pick up some properties and apply them to the text instead of the wrapper
			 */
			css: function (styles) {
				if (styles) {
					var textStyles = {};
					styles = merge(styles); // create a copy to avoid altering the original object (#537)
					each(wrapper.textProps, function (prop) {
						if (styles[prop] !== UNDEFINED) {
							textStyles[prop] = styles[prop];
							delete styles[prop];
						}
					});
					text.css(textStyles);
				}
				return baseCss.call(wrapper, styles);
			},
			/**
			 * Return the bounding box of the box, not the group
			 */
			getBBox: function () {
				return {
					width: bBox.width + 2 * padding,
					height: bBox.height + 2 * padding,
					x: bBox.x - padding,
					y: bBox.y - padding
				};
			},
			/**
			 * Apply the shadow to the box
			 */
			shadow: function (b) {
				if (box) {
					box.shadow(b);
				}
				return wrapper;
			},
			/**
			 * Destroy and release memory.
			 */
			destroy: function () {

				// Added by button implementation
				removeEvent(wrapper.element, 'mouseenter');
				removeEvent(wrapper.element, 'mouseleave');

				if (text) {
					text = text.destroy();
				}
				if (box) {
					box = box.destroy();
				}
				// Call base implementation to destroy the rest
				SVGElement.prototype.destroy.call(wrapper);

				// Release local pointers (#1298)
				wrapper = renderer = updateBoxSize = updateTextPadding = boxAttr = null;
			}
		});
	}
}; // end SVGRenderer


// general renderer
Renderer = SVGRenderer;
// extend SvgElement for useHTML option
extend(SVGElement.prototype, {
	/**
	 * Apply CSS to HTML elements. This is used in text within SVG rendering and
	 * by the VML renderer
	 */
	htmlCss: function (styles) {
		var wrapper = this,
			element = wrapper.element,
			textWidth = styles && element.tagName === 'SPAN' && styles.width;

		if (textWidth) {
			delete styles.width;
			wrapper.textWidth = textWidth;
			wrapper.updateTransform();
		}

		wrapper.styles = extend(wrapper.styles, styles);
		css(wrapper.element, styles);

		return wrapper;
	},

	/**
	 * VML and useHTML method for calculating the bounding box based on offsets
	 * @param {Boolean} refresh Whether to force a fresh value from the DOM or to
	 * use the cached value
	 *
	 * @return {Object} A hash containing values for x, y, width and height
	 */

	htmlGetBBox: function () {
		var wrapper = this,
			element = wrapper.element,
			bBox = wrapper.bBox;

		// faking getBBox in exported SVG in legacy IE
		if (!bBox) {
			// faking getBBox in exported SVG in legacy IE (is this a duplicate of the fix for #1079?)
			if (element.nodeName === 'text') {
				element.style.position = ABSOLUTE;
			}

			bBox = wrapper.bBox = {
				x: element.offsetLeft,
				y: element.offsetTop,
				width: element.offsetWidth,
				height: element.offsetHeight
			};
		}

		return bBox;
	},

	/**
	 * VML override private method to update elements based on internal
	 * properties based on SVG transform
	 */
	htmlUpdateTransform: function () {
		// aligning non added elements is expensive
		if (!this.added) {
			this.alignOnAdd = true;
			return;
		}

		var wrapper = this,
			renderer = wrapper.renderer,
			elem = wrapper.element,
			translateX = wrapper.translateX || 0,
			translateY = wrapper.translateY || 0,
			x = wrapper.x || 0,
			y = wrapper.y || 0,
			align = wrapper.textAlign || 'left',
			alignCorrection = { left: 0, center: 0.5, right: 1 }[align],
			shadows = wrapper.shadows;

		// apply translate
		css(elem, {
			marginLeft: translateX,
			marginTop: translateY
		});
		if (shadows) { // used in labels/tooltip
			each(shadows, function (shadow) {
				css(shadow, {
					marginLeft: translateX + 1,
					marginTop: translateY + 1
				});
			});
		}

		// apply inversion
		if (wrapper.inverted) { // wrapper is a group
			each(elem.childNodes, function (child) {
				renderer.invertChild(child, elem);
			});
		}

		if (elem.tagName === 'SPAN') {

			var width,
				rotation = wrapper.rotation,
				baseline,
				textWidth = pInt(wrapper.textWidth),
				currentTextTransform = [rotation, align, elem.innerHTML, wrapper.textWidth].join(',');

			if (currentTextTransform !== wrapper.cTT) { // do the calculations and DOM access only if properties changed


				baseline = renderer.fontMetrics(elem.style.fontSize).b;

				// Renderer specific handling of span rotation
				if (defined(rotation)) {
					wrapper.setSpanRotation(rotation, alignCorrection, baseline);
				}

				width = pick(wrapper.elemWidth, elem.offsetWidth);

				// Update textWidth
				if (width > textWidth && /[ \-]/.test(elem.textContent || elem.innerText)) { // #983, #1254
					css(elem, {
						width: textWidth + PX,
						display: 'block',
						whiteSpace: 'normal'
					});
					width = textWidth;
				}

				wrapper.getSpanCorrection(width, baseline, alignCorrection, rotation, align);
			}

			// apply position with correction
			css(elem, {
				left: (x + (wrapper.xCorr || 0)) + PX,
				top: (y + (wrapper.yCorr || 0)) + PX
			});

			// force reflow in webkit to apply the left and top on useHTML element (#1249)
			if (isWebKit) {
				baseline = elem.offsetHeight; // assigned to baseline for JSLint purpose
			}

			// record current text transform
			wrapper.cTT = currentTextTransform;
		}
	},

	/**
	 * Set the rotation of an individual HTML span
	 */
	setSpanRotation: function (rotation, alignCorrection, baseline) {
		var rotationStyle = {},
			cssTransformKey = isIE ? '-ms-transform' : isWebKit ? '-webkit-transform' : isFirefox ? 'MozTransform' : isOpera ? '-o-transform' : '';

		rotationStyle[cssTransformKey] = rotationStyle.transform = 'rotate(' + rotation + 'deg)';
		rotationStyle[cssTransformKey + (isFirefox ? 'Origin' : '-origin')] = rotationStyle.transformOrigin = (alignCorrection * 100) + '% ' + baseline + 'px';
		css(this.element, rotationStyle);
	},

	/**
	 * Get the correction in X and Y positioning as the element is rotated.
	 */
	getSpanCorrection: function (width, baseline, alignCorrection) {
		this.xCorr = -width * alignCorrection;
		this.yCorr = -baseline;
	}
});

// Extend SvgRenderer for useHTML option.
extend(SVGRenderer.prototype, {
	/**
	 * Create HTML text node. This is used by the VML renderer as well as the SVG
	 * renderer through the useHTML option.
	 *
	 * @param {String} str
	 * @param {Number} x
	 * @param {Number} y
	 */
	html: function (str, x, y) {
		var wrapper = this.createElement('span'),
			element = wrapper.element,
			renderer = wrapper.renderer;

		// Text setter
		wrapper.textSetter = function (value) {
			if (value !== element.innerHTML) {
				delete this.bBox;
			}
			element.innerHTML = this.textStr = value;
		};

		// Various setters which rely on update transform
		wrapper.xSetter = wrapper.ySetter = wrapper.alignSetter = wrapper.rotationSetter = function (value, key) {
			if (key === 'align') {
				key = 'textAlign'; // Do not overwrite the SVGElement.align method. Same as VML.
			}
			wrapper[key] = value;
			wrapper.htmlUpdateTransform();
		};

		// Set the default attributes
		wrapper.attr({
				text: str,
				x: mathRound(x),
				y: mathRound(y)
			})
			.css({
				position: ABSOLUTE,
				whiteSpace: 'nowrap',
				fontFamily: this.style.fontFamily,
				fontSize: this.style.fontSize
			});

		// Use the HTML specific .css method
		wrapper.css = wrapper.htmlCss;

		// This is specific for HTML within SVG
		if (renderer.isSVG) {
			wrapper.add = function (svgGroupWrapper) {

				var htmlGroup,
					container = renderer.box.parentNode,
					parentGroup,
					parents = [];

				this.parentGroup = svgGroupWrapper;

				// Create a mock group to hold the HTML elements
				if (svgGroupWrapper) {
					htmlGroup = svgGroupWrapper.div;
					if (!htmlGroup) {

						// Read the parent chain into an array and read from top down
						parentGroup = svgGroupWrapper;
						while (parentGroup) {

							parents.push(parentGroup);

							// Move up to the next parent group
							parentGroup = parentGroup.parentGroup;
						}

						// Ensure dynamically updating position when any parent is translated
						each(parents.reverse(), function (parentGroup) {
							var htmlGroupStyle;

							// Create a HTML div and append it to the parent div to emulate
							// the SVG group structure
							htmlGroup = parentGroup.div = parentGroup.div || createElement(DIV, {
								className: attr(parentGroup.element, 'class')
							}, {
								position: ABSOLUTE,
								left: (parentGroup.translateX || 0) + PX,
								top: (parentGroup.translateY || 0) + PX
							}, htmlGroup || container); // the top group is appended to container

							// Shortcut
							htmlGroupStyle = htmlGroup.style;

							// Set listeners to update the HTML div's position whenever the SVG group
							// position is changed
							extend(parentGroup, {
								translateXSetter: function (value, key) {
									htmlGroupStyle.left = value + PX;
									parentGroup[key] = value;
									parentGroup.doTransform = true;
								},
								translateYSetter: function (value, key) {
									htmlGroupStyle.top = value + PX;
									parentGroup[key] = value;
									parentGroup.doTransform = true;
								},
								visibilitySetter: function (value, key) {
									htmlGroupStyle[key] = value;
								}
							});
						});

					}
				} else {
					htmlGroup = container;
				}

				htmlGroup.appendChild(element);

				// Shared with VML:
				wrapper.added = true;
				if (wrapper.alignOnAdd) {
					wrapper.htmlUpdateTransform();
				}

				return wrapper;
			};
		}
		return wrapper;
	}
});

/* ****************************************************************************
 *                                                                            *
 * START OF INTERNET EXPLORER <= 8 SPECIFIC CODE                              *
 *                                                                            *
 * For applications and websites that don't need IE support, like platform    *
 * targeted mobile apps and web apps, this code can be removed.               *
 *                                                                            *
 *****************************************************************************/

/**
 * @constructor
 */
var VMLRenderer, VMLElement;
if (!hasSVG && !useCanVG) {

/**
 * The VML element wrapper.
 */
VMLElement = {

	/**
	 * Initialize a new VML element wrapper. It builds the markup as a string
	 * to minimize DOM traffic.
	 * @param {Object} renderer
	 * @param {Object} nodeName
	 */
	init: function (renderer, nodeName) {
		var wrapper = this,
			markup =  ['<', nodeName, ' filled="f" stroked="f"'],
			style = ['position: ', ABSOLUTE, ';'],
			isDiv = nodeName === DIV;

		// divs and shapes need size
		if (nodeName === 'shape' || isDiv) {
			style.push('left:0;top:0;width:1px;height:1px;');
		}
		style.push('visibility: ', isDiv ? HIDDEN : VISIBLE);

		markup.push(' style="', style.join(''), '"/>');

		// create element with default attributes and style
		if (nodeName) {
			markup = isDiv || nodeName === 'span' || nodeName === 'img' ?
				markup.join('')
				: renderer.prepVML(markup);
			wrapper.element = createElement(markup);
		}

		wrapper.renderer = renderer;
	},

	/**
	 * Add the node to the given parent
	 * @param {Object} parent
	 */
	add: function (parent) {
		var wrapper = this,
			renderer = wrapper.renderer,
			element = wrapper.element,
			box = renderer.box,
			inverted = parent && parent.inverted,

			// get the parent node
			parentNode = parent ?
				parent.element || parent :
				box;


		// if the parent group is inverted, apply inversion on all children
		if (inverted) { // only on groups
			renderer.invertChild(element, parentNode);
		}

		// append it
		parentNode.appendChild(element);

		// align text after adding to be able to read offset
		wrapper.added = true;
		if (wrapper.alignOnAdd && !wrapper.deferUpdateTransform) {
			wrapper.updateTransform();
		}

		// fire an event for internal hooks
		if (wrapper.onAdd) {
			wrapper.onAdd();
		}

		return wrapper;
	},

	/**
	 * VML always uses htmlUpdateTransform
	 */
	updateTransform: SVGElement.prototype.htmlUpdateTransform,

	/**
	 * Set the rotation of a span with oldIE's filter
	 */
	setSpanRotation: function () {
		// Adjust for alignment and rotation. Rotation of useHTML content is not yet implemented
		// but it can probably be implemented for Firefox 3.5+ on user request. FF3.5+
		// has support for CSS3 transform. The getBBox method also needs to be updated
		// to compensate for the rotation, like it currently does for SVG.
		// Test case: http://jsfiddle.net/highcharts/Ybt44/

		var rotation = this.rotation,
			costheta = mathCos(rotation * deg2rad),
			sintheta = mathSin(rotation * deg2rad);

		css(this.element, {
			filter: rotation ? ['progid:DXImageTransform.Microsoft.Matrix(M11=', costheta,
				', M12=', -sintheta, ', M21=', sintheta, ', M22=', costheta,
				', sizingMethod=\'auto expand\')'].join('') : NONE
		});
	},

	/**
	 * Get the positioning correction for the span after rotating.
	 */
	getSpanCorrection: function (width, baseline, alignCorrection, rotation, align) {

		var costheta = rotation ? mathCos(rotation * deg2rad) : 1,
			sintheta = rotation ? mathSin(rotation * deg2rad) : 0,
			height = pick(this.elemHeight, this.element.offsetHeight),
			quad,
			nonLeft = align && align !== 'left';

		// correct x and y
		this.xCorr = costheta < 0 && -width;
		this.yCorr = sintheta < 0 && -height;

		// correct for baseline and corners spilling out after rotation
		quad = costheta * sintheta < 0;
		this.xCorr += sintheta * baseline * (quad ? 1 - alignCorrection : alignCorrection);
		this.yCorr -= costheta * baseline * (rotation ? (quad ? alignCorrection : 1 - alignCorrection) : 1);
		// correct for the length/height of the text
		if (nonLeft) {
			this.xCorr -= width * alignCorrection * (costheta < 0 ? -1 : 1);
			if (rotation) {
				this.yCorr -= height * alignCorrection * (sintheta < 0 ? -1 : 1);
			}
			css(this.element, {
				textAlign: align
			});
		}
	},

	/**
	 * Converts a subset of an SVG path definition to its VML counterpart. Takes an array
	 * as the parameter and returns a string.
	 */
	pathToVML: function (value) {
		// convert paths
		var i = value.length,
			path = [];

		while (i--) {

			// Multiply by 10 to allow subpixel precision.
			// Substracting half a pixel seems to make the coordinates
			// align with SVG, but this hasn't been tested thoroughly
			if (isNumber(value[i])) {
				path[i] = mathRound(value[i] * 10) - 5;
			} else if (value[i] === 'Z') { // close the path
				path[i] = 'x';
			} else {
				path[i] = value[i];

				// When the start X and end X coordinates of an arc are too close,
				// they are rounded to the same value above. In this case, substract or
				// add 1 from the end X and Y positions. #186, #760, #1371, #1410.
				if (value.isArc && (value[i] === 'wa' || value[i] === 'at')) {
					// Start and end X
					if (path[i + 5] === path[i + 7]) {
						path[i + 7] += value[i + 7] > value[i + 5] ? 1 : -1;
					}
					// Start and end Y
					if (path[i + 6] === path[i + 8]) {
						path[i + 8] += value[i + 8] > value[i + 6] ? 1 : -1;
					}
				}
			}
		}


		// Loop up again to handle path shortcuts (#2132)
		/*while (i++ < path.length) {
			if (path[i] === 'H') { // horizontal line to
				path[i] = 'L';
				path.splice(i + 2, 0, path[i - 1]);
			} else if (path[i] === 'V') { // vertical line to
				path[i] = 'L';
				path.splice(i + 1, 0, path[i - 2]);
			}
		}*/
		return path.join(' ') || 'x';
	},

	/**
	 * Set the element's clipping to a predefined rectangle
	 *
	 * @param {String} id The id of the clip rectangle
	 */
	clip: function (clipRect) {
		var wrapper = this,
			clipMembers,
			cssRet;

		if (clipRect) {
			clipMembers = clipRect.members;
			erase(clipMembers, wrapper); // Ensure unique list of elements (#1258)
			clipMembers.push(wrapper);
			wrapper.destroyClip = function () {
				erase(clipMembers, wrapper);
			};
			cssRet = clipRect.getCSS(wrapper);

		} else {
			if (wrapper.destroyClip) {
				wrapper.destroyClip();
			}
			cssRet = { clip: docMode8 ? 'inherit' : 'rect(auto)' }; // #1214
		}

		return wrapper.css(cssRet);

	},

	/**
	 * Set styles for the element
	 * @param {Object} styles
	 */
	css: SVGElement.prototype.htmlCss,

	/**
	 * Removes a child either by removeChild or move to garbageBin.
	 * Issue 490; in VML removeChild results in Orphaned nodes according to sIEve, discardElement does not.
	 */
	safeRemoveChild: function (element) {
		// discardElement will detach the node from its parent before attaching it
		// to the garbage bin. Therefore it is important that the node is attached and have parent.
		if (element.parentNode) {
			discardElement(element);
		}
	},

	/**
	 * Extend element.destroy by removing it from the clip members array
	 */
	destroy: function () {
		if (this.destroyClip) {
			this.destroyClip();
		}

		return SVGElement.prototype.destroy.apply(this);
	},

	/**
	 * Add an event listener. VML override for normalizing event parameters.
	 * @param {String} eventType
	 * @param {Function} handler
	 */
	on: function (eventType, handler) {
		// simplest possible event model for internal use
		this.element['on' + eventType] = function () {
			var evt = win.event;
			evt.target = evt.srcElement;
			handler(evt);
		};
		return this;
	},

	/**
	 * In stacked columns, cut off the shadows so that they don't overlap
	 */
	cutOffPath: function (path, length) {

		var len;

		path = path.split(/[ ,]/);
		len = path.length;

		if (len === 9 || len === 11) {
			path[len - 4] = path[len - 2] = pInt(path[len - 2]) - 10 * length;
		}
		return path.join(' ');
	},

	/**
	 * Apply a drop shadow by copying elements and giving them different strokes
	 * @param {Boolean|Object} shadowOptions
	 */
	shadow: function (shadowOptions, group, cutOff) {
		var shadows = [],
			i,
			element = this.element,
			renderer = this.renderer,
			shadow,
			elemStyle = element.style,
			markup,
			path = element.path,
			strokeWidth,
			modifiedPath,
			shadowWidth,
			shadowElementOpacity;

		// some times empty paths are not strings
		if (path && typeof path.value !== 'string') {
			path = 'x';
		}
		modifiedPath = path;

		if (shadowOptions) {
			shadowWidth = pick(shadowOptions.width, 3);
			shadowElementOpacity = (shadowOptions.opacity || 0.15) / shadowWidth;
			for (i = 1; i <= 3; i++) {

				strokeWidth = (shadowWidth * 2) + 1 - (2 * i);

				// Cut off shadows for stacked column items
				if (cutOff) {
					modifiedPath = this.cutOffPath(path.value, strokeWidth + 0.5);
				}

				markup = ['<shape isShadow="true" strokeweight="', strokeWidth,
					'" filled="false" path="', modifiedPath,
					'" coordsize="10 10" style="', element.style.cssText, '" />'];

				shadow = createElement(renderer.prepVML(markup),
					null, {
						left: pInt(elemStyle.left) + pick(shadowOptions.offsetX, 1),
						top: pInt(elemStyle.top) + pick(shadowOptions.offsetY, 1)
					}
				);
				if (cutOff) {
					shadow.cutOff = strokeWidth + 1;
				}

				// apply the opacity
				markup = ['<stroke color="', shadowOptions.color || 'black', '" opacity="', shadowElementOpacity * i, '"/>'];
				createElement(renderer.prepVML(markup), null, null, shadow);


				// insert it
				if (group) {
					group.element.appendChild(shadow);
				} else {
					element.parentNode.insertBefore(shadow, element);
				}

				// record it
				shadows.push(shadow);

			}

			this.shadows = shadows;
		}
		return this;
	},
	updateShadows: noop, // Used in SVG only

	setAttr: function (key, value) {
		if (docMode8) { // IE8 setAttribute bug
			this.element[key] = value;
		} else {
			this.element.setAttribute(key, value);
		}
	},
	classSetter: function (value) {
		// IE8 Standards mode has problems retrieving the className unless set like this
		this.element.className = value;
	},
	dashstyleSetter: function (value, key, element) {
		var strokeElem = element.getElementsByTagName('stroke')[0] ||
			createElement(this.renderer.prepVML(['<stroke/>']), null, null, element);
		strokeElem[key] = value || 'solid';
		this[key] = value; /* because changing stroke-width will change the dash length
			and cause an epileptic effect */
	},
	dSetter: function (value, key, element) {
		var i,
			shadows = this.shadows;
		value = value || [];
		this.d = value.join && value.join(' '); // used in getter for animation

		element.path = value = this.pathToVML(value);

		// update shadows
		if (shadows) {
			i = shadows.length;
			while (i--) {
				shadows[i].path = shadows[i].cutOff ? this.cutOffPath(value, shadows[i].cutOff) : value;
			}
		}
		this.setAttr(key, value);
	},
	fillSetter: function (value, key, element) {
		var nodeName = element.nodeName;
		if (nodeName === 'SPAN') { // text color
			element.style.color = value;
		} else if (nodeName !== 'IMG') { // #1336
			element.filled = value !== NONE;
			this.setAttr('fillcolor', this.renderer.color(value, element, key, this));
		}
	},
	opacitySetter: noop, // Don't bother - animation is too slow and filters introduce artifacts
	rotationSetter: function (value, key, element) {
		var style = element.style;
		this[key] = style[key] = value; // style is for #1873

		// Correction for the 1x1 size of the shape container. Used in gauge needles.
		style.left = -mathRound(mathSin(value * deg2rad) + 1) + PX;
		style.top = mathRound(mathCos(value * deg2rad)) + PX;
	},
	strokeSetter: function (value, key, element) {
		this.setAttr('strokecolor', this.renderer.color(value, element, key));
	},
	'stroke-widthSetter': function (value, key, element) {
		element.stroked = !!value; // VML "stroked" attribute
		this[key] = value; // used in getter, issue #113
		if (isNumber(value)) {
			value += PX;
		}
		this.setAttr('strokeweight', value);
	},
	titleSetter: function (value, key) {
		this.setAttr(key, value);
	},
	visibilitySetter: function (value, key, element) {

		// Handle inherited visibility
		if (value === 'inherit') {
			value = VISIBLE;
		}

		// Let the shadow follow the main element
		if (this.shadows) {
			each(this.shadows, function (shadow) {
				shadow.style[key] = value;
			});
		}

		// Instead of toggling the visibility CSS property, move the div out of the viewport.
		// This works around #61 and #586
		if (element.nodeName === 'DIV') {
			value = value === HIDDEN ? '-999em' : 0;

			// In order to redraw, IE7 needs the div to be visible when tucked away
			// outside the viewport. So the visibility is actually opposite of
			// the expected value. This applies to the tooltip only.
			if (!docMode8) {
				element.style[key] = value ? VISIBLE : HIDDEN;
			}
			key = 'top';
		}
		element.style[key] = value;
	},
	xSetter: function (value, key, element) {
		this[key] = value; // used in getter

		if (key === 'x') {
			key = 'left';
		} else if (key === 'y') {
			key = 'top';
		}/* else {
			value = mathMax(0, value); // don't set width or height below zero (#311)
		}*/

		// clipping rectangle special
		if (this.updateClipping) {
			this[key] = value; // the key is now 'left' or 'top' for 'x' and 'y'
			this.updateClipping();
		} else {
			// normal
			element.style[key] = value;
		}
	},
	zIndexSetter: function (value, key, element) {
		element.style[key] = value;
	}
};
Highcharts.VMLElement = VMLElement = extendClass(SVGElement, VMLElement);

// Some shared setters
VMLElement.prototype.ySetter =
	VMLElement.prototype.widthSetter =
	VMLElement.prototype.heightSetter =
	VMLElement.prototype.xSetter;


/**
 * The VML renderer
 */
var VMLRendererExtension = { // inherit SVGRenderer

	Element: VMLElement,
	isIE8: userAgent.indexOf('MSIE 8.0') > -1,


	/**
	 * Initialize the VMLRenderer
	 * @param {Object} container
	 * @param {Number} width
	 * @param {Number} height
	 */
	init: function (container, width, height, style) {
		var renderer = this,
			boxWrapper,
			box,
			css;

		renderer.alignedObjects = [];

		boxWrapper = renderer.createElement(DIV)
			.css(extend(this.getStyle(style), { position: RELATIVE}));
		box = boxWrapper.element;
		container.appendChild(boxWrapper.element);


		// generate the containing box
		renderer.isVML = true;
		renderer.box = box;
		renderer.boxWrapper = boxWrapper;
		renderer.cache = {};


		renderer.setSize(width, height, false);

		// The only way to make IE6 and IE7 print is to use a global namespace. However,
		// with IE8 the only way to make the dynamic shapes visible in screen and print mode
		// seems to be to add the xmlns attribute and the behaviour style inline.
		if (!doc.namespaces.hcv) {

			doc.namespaces.add('hcv', 'urn:schemas-microsoft-com:vml');

			// Setup default CSS (#2153, #2368, #2384)
			css = 'hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke' +
				'{ behavior:url(#default#VML); display: inline-block; } ';
			try {
				doc.createStyleSheet().cssText = css;
			} catch (e) {
				doc.styleSheets[0].cssText += css;
			}

		}
	},


	/**
	 * Detect whether the renderer is hidden. This happens when one of the parent elements
	 * has display: none
	 */
	isHidden: function () {
		return !this.box.offsetWidth;
	},

	/**
	 * Define a clipping rectangle. In VML it is accomplished by storing the values
	 * for setting the CSS style to all associated members.
	 *
	 * @param {Number} x
	 * @param {Number} y
	 * @param {Number} width
	 * @param {Number} height
	 */
	clipRect: function (x, y, width, height) {

		// create a dummy element
		var clipRect = this.createElement(),
			isObj = isObject(x);

		// mimic a rectangle with its style object for automatic updating in attr
		return extend(clipRect, {
			members: [],
			left: (isObj ? x.x : x) + 1,
			top: (isObj ? x.y : y) + 1,
			width: (isObj ? x.width : width) - 1,
			height: (isObj ? x.height : height) - 1,
			getCSS: function (wrapper) {
				var element = wrapper.element,
					nodeName = element.nodeName,
					isShape = nodeName === 'shape',
					inverted = wrapper.inverted,
					rect = this,
					top = rect.top - (isShape ? element.offsetTop : 0),
					left = rect.left,
					right = left + rect.width,
					bottom = top + rect.height,
					ret = {
						clip: 'rect(' +
							mathRound(inverted ? left : top) + 'px,' +
							mathRound(inverted ? bottom : right) + 'px,' +
							mathRound(inverted ? right : bottom) + 'px,' +
							mathRound(inverted ? top : left) + 'px)'
					};

				// issue 74 workaround
				if (!inverted && docMode8 && nodeName === 'DIV') {
					extend(ret, {
						width: right + PX,
						height: bottom + PX
					});
				}
				return ret;
			},

			// used in attr and animation to update the clipping of all members
			updateClipping: function () {
				each(clipRect.members, function (member) {
					if (member.element) { // Deleted series, like in stock/members/series-remove demo. Should be removed from members, but this will do.
						member.css(clipRect.getCSS(member));
					}
				});
			}
		});

	},


	/**
	 * Take a color and return it if it's a string, make it a gradient if it's a
	 * gradient configuration object, and apply opacity.
	 *
	 * @param {Object} color The color or config object
	 */
	color: function (color, elem, prop, wrapper) {
		var renderer = this,
			colorObject,
			regexRgba = /^rgba/,
			markup,
			fillType,
			ret = NONE;

		// Check for linear or radial gradient
		if (color && color.linearGradient) {
			fillType = 'gradient';
		} else if (color && color.radialGradient) {
			fillType = 'pattern';
		}


		if (fillType) {

			var stopColor,
				stopOpacity,
				gradient = color.linearGradient || color.radialGradient,
				x1,
				y1,
				x2,
				y2,
				opacity1,
				opacity2,
				color1,
				color2,
				fillAttr = '',
				stops = color.stops,
				firstStop,
				lastStop,
				colors = [],
				addFillNode = function () {
					// Add the fill subnode. When colors attribute is used, the meanings of opacity and o:opacity2
					// are reversed.
					markup = ['<fill colors="' + colors.join(',') + '" opacity="', opacity2, '" o:opacity2="', opacity1,
						'" type="', fillType, '" ', fillAttr, 'focus="100%" method="any" />'];
					createElement(renderer.prepVML(markup), null, null, elem);
				};

			// Extend from 0 to 1
			firstStop = stops[0];
			lastStop = stops[stops.length - 1];
			if (firstStop[0] > 0) {
				stops.unshift([
					0,
					firstStop[1]
				]);
			}
			if (lastStop[0] < 1) {
				stops.push([
					1,
					lastStop[1]
				]);
			}

			// Compute the stops
			each(stops, function (stop, i) {
				if (regexRgba.test(stop[1])) {
					colorObject = Color(stop[1]);
					stopColor = colorObject.get('rgb');
					stopOpacity = colorObject.get('a');
				} else {
					stopColor = stop[1];
					stopOpacity = 1;
				}

				// Build the color attribute
				colors.push((stop[0] * 100) + '% ' + stopColor);

				// Only start and end opacities are allowed, so we use the first and the last
				if (!i) {
					opacity1 = stopOpacity;
					color2 = stopColor;
				} else {
					opacity2 = stopOpacity;
					color1 = stopColor;
				}
			});

			// Apply the gradient to fills only.
			if (prop === 'fill') {

				// Handle linear gradient angle
				if (fillType === 'gradient') {
					x1 = gradient.x1 || gradient[0] || 0;
					y1 = gradient.y1 || gradient[1] || 0;
					x2 = gradient.x2 || gradient[2] || 0;
					y2 = gradient.y2 || gradient[3] || 0;
					fillAttr = 'angle="' + (90  - math.atan(
						(y2 - y1) / // y vector
						(x2 - x1) // x vector
						) * 180 / mathPI) + '"';

					addFillNode();

				// Radial (circular) gradient
				} else {

					var r = gradient.r,
						sizex = r * 2,
						sizey = r * 2,
						cx = gradient.cx,
						cy = gradient.cy,
						radialReference = elem.radialReference,
						bBox,
						applyRadialGradient = function () {
							if (radialReference) {
								bBox = wrapper.getBBox();
								cx += (radialReference[0] - bBox.x) / bBox.width - 0.5;
								cy += (radialReference[1] - bBox.y) / bBox.height - 0.5;
								sizex *= radialReference[2] / bBox.width;
								sizey *= radialReference[2] / bBox.height;
							}
							fillAttr = 'src="' + defaultOptions.global.VMLRadialGradientURL + '" ' +
								'size="' + sizex + ',' + sizey + '" ' +
								'origin="0.5,0.5" ' +
								'position="' + cx + ',' + cy + '" ' +
								'color2="' + color2 + '" ';

							addFillNode();
						};

					// Apply radial gradient
					if (wrapper.added) {
						applyRadialGradient();
					} else {
						// We need to know the bounding box to get the size and position right
						wrapper.onAdd = applyRadialGradient;
					}

					// The fill element's color attribute is broken in IE8 standards mode, so we
					// need to set the parent shape's fillcolor attribute instead.
					ret = color1;
				}

			// Gradients are not supported for VML stroke, return the first color. #722.
			} else {
				ret = stopColor;
			}

		// if the color is an rgba color, split it and add a fill node
		// to hold the opacity component
		} else if (regexRgba.test(color) && elem.tagName !== 'IMG') {

			colorObject = Color(color);

			markup = ['<', prop, ' opacity="', colorObject.get('a'), '"/>'];
			createElement(this.prepVML(markup), null, null, elem);

			ret = colorObject.get('rgb');


		} else {
			var propNodes = elem.getElementsByTagName(prop); // 'stroke' or 'fill' node
			if (propNodes.length) {
				propNodes[0].opacity = 1;
				propNodes[0].type = 'solid';
			}
			ret = color;
		}

		return ret;
	},

	/**
	 * Take a VML string and prepare it for either IE8 or IE6/IE7.
	 * @param {Array} markup A string array of the VML markup to prepare
	 */
	prepVML: function (markup) {
		var vmlStyle = 'display:inline-block;behavior:url(#default#VML);',
			isIE8 = this.isIE8;

		markup = markup.join('');

		if (isIE8) { // add xmlns and style inline
			markup = markup.replace('/>', ' xmlns="urn:schemas-microsoft-com:vml" />');
			if (markup.indexOf('style="') === -1) {
				markup = markup.replace('/>', ' style="' + vmlStyle + '" />');
			} else {
				markup = markup.replace('style="', 'style="' + vmlStyle);
			}

		} else { // add namespace
			markup = markup.replace('<', '<hcv:');
		}

		return markup;
	},

	/**
	 * Create rotated and aligned text
	 * @param {String} str
	 * @param {Number} x
	 * @param {Number} y
	 */
	text: SVGRenderer.prototype.html,

	/**
	 * Create and return a path element
	 * @param {Array} path
	 */
	path: function (path) {
		var attr = {
			// subpixel precision down to 0.1 (width and height = 1px)
			coordsize: '10 10'
		};
		if (isArray(path)) {
			attr.d = path;
		} else if (isObject(path)) { // attributes
			extend(attr, path);
		}
		// create the shape
		return this.createElement('shape').attr(attr);
	},

	/**
	 * Create and return a circle element. In VML circles are implemented as
	 * shapes, which is faster than v:oval
	 * @param {Number} x
	 * @param {Number} y
	 * @param {Number} r
	 */
	circle: function (x, y, r) {
		var circle = this.symbol('circle');
		if (isObject(x)) {
			r = x.r;
			y = x.y;
			x = x.x;
		}
		circle.isCircle = true; // Causes x and y to mean center (#1682)
		circle.r = r;
		return circle.attr({ x: x, y: y });
	},

	/**
	 * Create a group using an outer div and an inner v:group to allow rotating
	 * and flipping. A simple v:group would have problems with positioning
	 * child HTML elements and CSS clip.
	 *
	 * @param {String} name The name of the group
	 */
	g: function (name) {
		var wrapper,
			attribs;

		// set the class name
		if (name) {
			attribs = { 'className': PREFIX + name, 'class': PREFIX + name };
		}

		// the div to hold HTML and clipping
		wrapper = this.createElement(DIV).attr(attribs);

		return wrapper;
	},

	/**
	 * VML override to create a regular HTML image
	 * @param {String} src
	 * @param {Number} x
	 * @param {Number} y
	 * @param {Number} width
	 * @param {Number} height
	 */
	image: function (src, x, y, width, height) {
		var obj = this.createElement('img')
			.attr({ src: src });

		if (arguments.length > 1) {
			obj.attr({
				x: x,
				y: y,
				width: width,
				height: height
			});
		}
		return obj;
	},

	/**
	 * For rectangles, VML uses a shape for rect to overcome bugs and rotation problems
	 */
	createElement: function (nodeName) {
		return nodeName === 'rect' ? this.symbol(nodeName) : SVGRenderer.prototype.createElement.call(this, nodeName);
	},

	/**
	 * In the VML renderer, each child of an inverted div (group) is inverted
	 * @param {Object} element
	 * @param {Object} parentNode
	 */
	invertChild: function (element, parentNode) {
		var ren = this,
			parentStyle = parentNode.style,
			imgStyle = element.tagName === 'IMG' && element.style; // #1111

		css(element, {
			flip: 'x',
			left: pInt(parentStyle.width) - (imgStyle ? pInt(imgStyle.top) : 1),
			top: pInt(parentStyle.height) - (imgStyle ? pInt(imgStyle.left) : 1),
			rotation: -90
		});

		// Recursively invert child elements, needed for nested composite shapes like box plots and error bars. #1680, #1806.
		each(element.childNodes, function (child) {
			ren.invertChild(child, element);
		});
	},

	/**
	 * Symbol definitions that override the parent SVG renderer's symbols
	 *
	 */
	symbols: {
		// VML specific arc function
		arc: function (x, y, w, h, options) {
			var start = options.start,
				end = options.end,
				radius = options.r || w || h,
				innerRadius = options.innerR,
				cosStart = mathCos(start),
				sinStart = mathSin(start),
				cosEnd = mathCos(end),
				sinEnd = mathSin(end),
				ret;

			if (end - start === 0) { // no angle, don't show it.
				return ['x'];
			}

			ret = [
				'wa', // clockwise arc to
				x - radius, // left
				y - radius, // top
				x + radius, // right
				y + radius, // bottom
				x + radius * cosStart, // start x
				y + radius * sinStart, // start y
				x + radius * cosEnd, // end x
				y + radius * sinEnd  // end y
			];

			if (options.open && !innerRadius) {
				ret.push(
					'e',
					M,
					x,// - innerRadius,
					y// - innerRadius
				);
			}

			ret.push(
				'at', // anti clockwise arc to
				x - innerRadius, // left
				y - innerRadius, // top
				x + innerRadius, // right
				y + innerRadius, // bottom
				x + innerRadius * cosEnd, // start x
				y + innerRadius * sinEnd, // start y
				x + innerRadius * cosStart, // end x
				y + innerRadius * sinStart, // end y
				'x', // finish path
				'e' // close
			);

			ret.isArc = true;
			return ret;

		},
		// Add circle symbol path. This performs significantly faster than v:oval.
		circle: function (x, y, w, h, wrapper) {

			if (wrapper) {
				w = h = 2 * wrapper.r;
			}

			// Center correction, #1682
			if (wrapper && wrapper.isCircle) {
				x -= w / 2;
				y -= h / 2;
			}

			// Return the path
			return [
				'wa', // clockwisearcto
				x, // left
				y, // top
				x + w, // right
				y + h, // bottom
				x + w, // start x
				y + h / 2,     // start y
				x + w, // end x
				y + h / 2,     // end y
				//'x', // finish path
				'e' // close
			];
		},
		/**
		 * Add rectangle symbol path which eases rotation and omits arcsize problems
		 * compared to the built-in VML roundrect shape. When borders are not rounded,
		 * use the simpler square path, else use the callout path without the arrow.
		 */
		rect: function (x, y, w, h, options) {
			return SVGRenderer.prototype.symbols[
				!defined(options) || !options.r ? 'square' : 'callout'
			].call(0, x, y, w, h, options);
		}
	}
};
Highcharts.VMLRenderer = VMLRenderer = function () {
	this.init.apply(this, arguments);
};
VMLRenderer.prototype = merge(SVGRenderer.prototype, VMLRendererExtension);

	// general renderer
	Renderer = VMLRenderer;
}

// This method is used with exporting in old IE, when emulating SVG (see #2314)
SVGRenderer.prototype.measureSpanWidth = function (text, styles) {
	var measuringSpan = doc.createElement('span'),
		offsetWidth,
	textNode = doc.createTextNode(text);

	measuringSpan.appendChild(textNode);
	css(measuringSpan, styles);
	this.box.appendChild(measuringSpan);
	offsetWidth = measuringSpan.offsetWidth;
	discardElement(measuringSpan); // #2463
	return offsetWidth;
};


/* ****************************************************************************
 *                                                                            *
 * END OF INTERNET EXPLORER <= 8 SPECIFIC CODE                                *
 *                                                                            *
 *****************************************************************************/
/* ****************************************************************************
 *                                                                            *
 * START OF ANDROID < 3 SPECIFIC CODE. THIS CAN BE REMOVED IF YOU'RE NOT      *
 * TARGETING THAT SYSTEM.                                                     *
 *                                                                            *
 *****************************************************************************/
var CanVGRenderer,
	CanVGController;

if (useCanVG) {
	/**
	 * The CanVGRenderer is empty from start to keep the source footprint small.
	 * When requested, the CanVGController downloads the rest of the source packaged
	 * together with the canvg library.
	 */
	Highcharts.CanVGRenderer = CanVGRenderer = function () {
		// Override the global SVG namespace to fake SVG/HTML that accepts CSS
		SVG_NS = 'http://www.w3.org/1999/xhtml';
	};

	/**
	 * Start with an empty symbols object. This is needed when exporting is used (exporting.src.js will add a few symbols), but
	 * the implementation from SvgRenderer will not be merged in until first render.
	 */
	CanVGRenderer.prototype.symbols = {};

	/**
	 * Handles on demand download of canvg rendering support.
	 */
	CanVGController = (function () {
		// List of renderering calls
		var deferredRenderCalls = [];

		/**
		 * When downloaded, we are ready to draw deferred charts.
		 */
		function drawDeferred() {
			var callLength = deferredRenderCalls.length,
				callIndex;

			// Draw all pending render calls
			for (callIndex = 0; callIndex < callLength; callIndex++) {
				deferredRenderCalls[callIndex]();
			}
			// Clear the list
			deferredRenderCalls = [];
		}

		return {
			push: function (func, scriptLocation) {
				// Only get the script once
				if (deferredRenderCalls.length === 0) {
					getScript(scriptLocation, drawDeferred);
				}
				// Register render call
				deferredRenderCalls.push(func);
			}
		};
	}());

	Renderer = CanVGRenderer;
} // end CanVGRenderer

/* ****************************************************************************
 *                                                                            *
 * END OF ANDROID < 3 SPECIFIC CODE                                           *
 *                                                                            *
 *****************************************************************************/

/**
 * The Tick class
 */
function Tick(axis, pos, type, noLabel) {
	this.axis = axis;
	this.pos = pos;
	this.type = type || '';
	this.isNew = true;

	if (!type && !noLabel) {
		this.addLabel();
	}
}

Tick.prototype = {
	/**
	 * Write the tick label
	 */
	addLabel: function () {
		var tick = this,
			axis = tick.axis,
			options = axis.options,
			chart = axis.chart,
			horiz = axis.horiz,
			categories = axis.categories,
			names = axis.names,
			pos = tick.pos,
			labelOptions = options.labels,
			rotation = labelOptions.rotation,
			str,
			tickPositions = axis.tickPositions,
			width = (horiz && categories &&
				!labelOptions.step && !labelOptions.staggerLines &&
				!labelOptions.rotation &&
				chart.plotWidth / tickPositions.length) ||
				(!horiz && (chart.margin[3] || chart.chartWidth * 0.33)), // #1580, #1931
			isFirst = pos === tickPositions[0],
			isLast = pos === tickPositions[tickPositions.length - 1],
			css,
			attr,
			value = categories ?
				pick(categories[pos], names[pos], pos) :
				pos,
			label = tick.label,
			tickPositionInfo = tickPositions.info,
			dateTimeLabelFormat;

		// Set the datetime label format. If a higher rank is set for this position, use that. If not,
		// use the general format.
		if (axis.isDatetimeAxis && tickPositionInfo) {
			dateTimeLabelFormat = options.dateTimeLabelFormats[tickPositionInfo.higherRanks[pos] || tickPositionInfo.unitName];
		}
		// set properties for access in render method
		tick.isFirst = isFirst;
		tick.isLast = isLast;

		// get the string
		str = axis.labelFormatter.call({
			axis: axis,
			chart: chart,
			isFirst: isFirst,
			isLast: isLast,
			dateTimeLabelFormat: dateTimeLabelFormat,
			value: axis.isLog ? correctFloat(lin2log(value)) : value
		});

		// prepare CSS
		css = width && { width: mathMax(1, mathRound(width - 2 * (labelOptions.padding || 10))) + PX };

		// first call
		if (!defined(label)) {
			attr = {
				align: axis.labelAlign
			};
			if (isNumber(rotation)) {
				attr.rotation = rotation;
			}
			if (width && labelOptions.ellipsis) {
				css.HcHeight = axis.len / tickPositions.length;
			}

			tick.label = label =
				defined(str) && labelOptions.enabled ?
					chart.renderer.text(
							str,
							0,
							0,
							labelOptions.useHTML
						)
						.attr(attr)
						// without position absolute, IE export sometimes is wrong
						.css(extend(css, labelOptions.style))
						.add(axis.labelGroup) :
					null;

			// Set the tick baseline and correct for rotation (#1764)
			axis.tickBaseline = chart.renderer.fontMetrics(labelOptions.style.fontSize, label).b;
			if (rotation && axis.side === 2) {
				axis.tickBaseline *= mathCos(rotation * deg2rad);
			}


		// update
		} else if (label) {
			label.attr({
					text: str
				})
				.css(css);
		}
		tick.yOffset = label ? pick(labelOptions.y, axis.tickBaseline + (axis.side === 2 ? 8 : -(label.getBBox().height / 2))) : 0;
	},

	/**
	 * Get the offset height or width of the label
	 */
	getLabelSize: function () {
		var label = this.label,
			axis = this.axis;
		return label ?
			label.getBBox()[axis.horiz ? 'height' : 'width'] :
			0;
	},

	/**
	 * Find how far the labels extend to the right and left of the tick's x position. Used for anti-collision
	 * detection with overflow logic.
	 */
	getLabelSides: function () {
		var bBox = this.label.getBBox(),
			axis = this.axis,
			horiz = axis.horiz,
			options = axis.options,
			labelOptions = options.labels,
			size = horiz ? bBox.width : bBox.height,
			leftSide = horiz ?
				labelOptions.x - size * { left: 0, center: 0.5, right: 1 }[axis.labelAlign] :
				0,
			rightSide = horiz ?
				size + leftSide :
				size;

		return [leftSide, rightSide];
	},

	/**
	 * Handle the label overflow by adjusting the labels to the left and right edge, or
	 * hide them if they collide into the neighbour label.
	 */
	handleOverflow: function (index, xy) {
		var show = true,
			axis = this.axis,
			isFirst = this.isFirst,
			isLast = this.isLast,
			horiz = axis.horiz,
			pxPos = horiz ? xy.x : xy.y,
			reversed = axis.reversed,
			tickPositions = axis.tickPositions,
			sides = this.getLabelSides(),
			leftSide = sides[0],
			rightSide = sides[1],
			axisLeft,
			axisRight,
			neighbour,
			neighbourEdge,
			line = this.label.line,
			lineIndex = line || 0,
			labelEdge = axis.labelEdge,
			justifyLabel = axis.justifyLabels && (isFirst || isLast),
			justifyToPlot;

		// Hide it if it now overlaps the neighbour label
		if (labelEdge[lineIndex] === UNDEFINED || pxPos + leftSide > labelEdge[lineIndex]) {
			labelEdge[lineIndex] = pxPos + rightSide;

		} else if (!justifyLabel) {
			show = false;
		}

		if (justifyLabel) {
			justifyToPlot = axis.justifyToPlot;
			axisLeft = justifyToPlot ? axis.pos : 0;
			axisRight = justifyToPlot ? axisLeft + axis.len : axis.chart.chartWidth;

			// Find the firsth neighbour on the same line
			do {
				index += (isFirst ? 1 : -1);
				neighbour = axis.ticks[tickPositions[index]];
			} while (tickPositions[index] && (!neighbour || !neighbour.label || neighbour.label.line !== line)); // #3044

			neighbourEdge = neighbour && neighbour.label.xy && neighbour.label.xy.x + neighbour.getLabelSides()[isFirst ? 0 : 1];

			if ((isFirst && !reversed) || (isLast && reversed)) {
				// Is the label spilling out to the left of the plot area?
				if (pxPos + leftSide < axisLeft) {

					// Align it to plot left
					pxPos = axisLeft - leftSide;

					// Hide it if it now overlaps the neighbour label
					if (neighbour && pxPos + rightSide > neighbourEdge) {
						show = false;
					}
				}

			} else {
				// Is the label spilling out to the right of the plot area?
				if (pxPos + rightSide > axisRight) {

					// Align it to plot right
					pxPos = axisRight - rightSide;

					// Hide it if it now overlaps the neighbour label
					if (neighbour && pxPos + leftSide < neighbourEdge) {
						show = false;
					}

				}
			}

			// Set the modified x position of the label
			xy.x = pxPos;
		}
		return show;
	},

	/**
	 * Get the x and y position for ticks and labels
	 */
	getPosition: function (horiz, pos, tickmarkOffset, old) {
		var axis = this.axis,
			chart = axis.chart,
			cHeight = (old && chart.oldChartHeight) || chart.chartHeight;

		return {
			x: horiz ?
				axis.translate(pos + tickmarkOffset, null, null, old) + axis.transB :
				axis.left + axis.offset + (axis.opposite ? ((old && chart.oldChartWidth) || chart.chartWidth) - axis.right - axis.left : 0),

			y: horiz ?
				cHeight - axis.bottom + axis.offset - (axis.opposite ? axis.height : 0) :
				cHeight - axis.translate(pos + tickmarkOffset, null, null, old) - axis.transB
		};

	},

	/**
	 * Get the x, y position of the tick label
	 */
	getLabelPosition: function (x, y, label, horiz, labelOptions, tickmarkOffset, index, step) {
		var axis = this.axis,
			transA = axis.transA,
			reversed = axis.reversed,
			staggerLines = axis.staggerLines;

		x = x + labelOptions.x - (tickmarkOffset && horiz ?
			tickmarkOffset * transA * (reversed ? -1 : 1) : 0);
		y = y + this.yOffset - (tickmarkOffset && !horiz ?
			tickmarkOffset * transA * (reversed ? 1 : -1) : 0);

		// Correct for staggered labels
		if (staggerLines) {
			label.line = (index / (step || 1) % staggerLines);
			y += label.line * (axis.labelOffset / staggerLines);
		}

		return {
			x: x,
			y: y
		};
	},

	/**
	 * Extendible method to return the path of the marker
	 */
	getMarkPath: function (x, y, tickLength, tickWidth, horiz, renderer) {
		return renderer.crispLine([
				M,
				x,
				y,
				L,
				x + (horiz ? 0 : -tickLength),
				y + (horiz ? tickLength : 0)
			], tickWidth);
	},

	/**
	 * Put everything in place
	 *
	 * @param index {Number}
	 * @param old {Boolean} Use old coordinates to prepare an animation into new position
	 */
	render: function (index, old, opacity) {
		var tick = this,
			axis = tick.axis,
			options = axis.options,
			chart = axis.chart,
			renderer = chart.renderer,
			horiz = axis.horiz,
			type = tick.type,
			label = tick.label,
			pos = tick.pos,
			labelOptions = options.labels,
			gridLine = tick.gridLine,
			gridPrefix = type ? type + 'Grid' : 'grid',
			tickPrefix = type ? type + 'Tick' : 'tick',
			gridLineWidth = options[gridPrefix + 'LineWidth'],
			gridLineColor = options[gridPrefix + 'LineColor'],
			dashStyle = options[gridPrefix + 'LineDashStyle'],
			tickLength = options[tickPrefix + 'Length'],
			tickWidth = options[tickPrefix + 'Width'] || 0,
			tickColor = options[tickPrefix + 'Color'],
			tickPosition = options[tickPrefix + 'Position'],
			gridLinePath,
			mark = tick.mark,
			markPath,
			step = labelOptions.step,
			attribs,
			show = true,
			tickmarkOffset = axis.tickmarkOffset,
			xy = tick.getPosition(horiz, pos, tickmarkOffset, old),
			x = xy.x,
			y = xy.y,
			reverseCrisp = ((horiz && x === axis.pos + axis.len) || (!horiz && y === axis.pos)) ? -1 : 1; // #1480, #1687

		opacity = pick(opacity, 1);
		this.isActive = true;

		// create the grid line
		if (gridLineWidth) {
			gridLinePath = axis.getPlotLinePath(pos + tickmarkOffset, gridLineWidth * reverseCrisp, old, true);

			if (gridLine === UNDEFINED) {
				attribs = {
					stroke: gridLineColor,
					'stroke-width': gridLineWidth
				};
				if (dashStyle) {
					attribs.dashstyle = dashStyle;
				}
				if (!type) {
					attribs.zIndex = 1;
				}
				if (old) {
					attribs.opacity = 0;
				}
				tick.gridLine = gridLine =
					gridLineWidth ?
						renderer.path(gridLinePath)
							.attr(attribs).add(axis.gridGroup) :
						null;
			}

			// If the parameter 'old' is set, the current call will be followed
			// by another call, therefore do not do any animations this time
			if (!old && gridLine && gridLinePath) {
				gridLine[tick.isNew ? 'attr' : 'animate']({
					d: gridLinePath,
					opacity: opacity
				});
			}
		}

		// create the tick mark
		if (tickWidth && tickLength) {

			// negate the length
			if (tickPosition === 'inside') {
				tickLength = -tickLength;
			}
			if (axis.opposite) {
				tickLength = -tickLength;
			}

			markPath = tick.getMarkPath(x, y, tickLength, tickWidth * reverseCrisp, horiz, renderer);
			if (mark) { // updating
				mark.animate({
					d: markPath,
					opacity: opacity
				});
			} else { // first time
				tick.mark = renderer.path(
					markPath
				).attr({
					stroke: tickColor,
					'stroke-width': tickWidth,
					opacity: opacity
				}).add(axis.axisGroup);
			}
		}

		// the label is created on init - now move it into place
		if (label && !isNaN(x)) {
			label.xy = xy = tick.getLabelPosition(x, y, label, horiz, labelOptions, tickmarkOffset, index, step);

			// Apply show first and show last. If the tick is both first and last, it is
			// a single centered tick, in which case we show the label anyway (#2100).
			if ((tick.isFirst && !tick.isLast && !pick(options.showFirstLabel, 1)) ||
					(tick.isLast && !tick.isFirst && !pick(options.showLastLabel, 1))) {
				show = false;

			// Handle label overflow and show or hide accordingly
			} else if (!axis.isRadial && !labelOptions.step && !labelOptions.rotation && !old && opacity !== 0) {
				show = tick.handleOverflow(index, xy);
			}

			// apply step
			if (step && index % step) {
				// show those indices dividable by step
				show = false;
			}

			// Set the new position, and show or hide
			if (show && !isNaN(xy.y)) {
				xy.opacity = opacity;
				label[tick.isNew ? 'attr' : 'animate'](xy);
				tick.isNew = false;
			} else {
				label.attr('y', -9999); // #1338
			}
		}
	},

	/**
	 * Destructor for the tick prototype
	 */
	destroy: function () {
		destroyObjectProperties(this, this.axis);
	}
};

/**
 * The object wrapper for plot lines and plot bands
 * @param {Object} options
 */
Highcharts.PlotLineOrBand = function (axis, options) {
	this.axis = axis;

	if (options) {
		this.options = options;
		this.id = options.id;
	}
};

Highcharts.PlotLineOrBand.prototype = {

	/**
	 * Render the plot line or plot band. If it is already existing,
	 * move it.
	 */
	render: function () {
		var plotLine = this,
			axis = plotLine.axis,
			horiz = axis.horiz,
			halfPointRange = (axis.pointRange || 0) / 2,
			options = plotLine.options,
			optionsLabel = options.label,
			label = plotLine.label,
			width = options.width,
			to = options.to,
			from = options.from,
			isBand = defined(from) && defined(to),
			value = options.value,
			dashStyle = options.dashStyle,
			svgElem = plotLine.svgElem,
			path = [],
			addEvent,
			eventType,
			xs,
			ys,
			x,
			y,
			color = options.color,
			zIndex = options.zIndex,
			events = options.events,
			attribs = {},
			renderer = axis.chart.renderer;

		// logarithmic conversion
		if (axis.isLog) {
			from = log2lin(from);
			to = log2lin(to);
			value = log2lin(value);
		}

		// plot line
		if (width) {
			path = axis.getPlotLinePath(value, width);
			attribs = {
				stroke: color,
				'stroke-width': width
			};
			if (dashStyle) {
				attribs.dashstyle = dashStyle;
			}
		} else if (isBand) { // plot band

			// keep within plot area
			from = mathMax(from, axis.min - halfPointRange);
			to = mathMin(to, axis.max + halfPointRange);

			path = axis.getPlotBandPath(from, to, options);
			if (color) {
				attribs.fill = color;
			}
			if (options.borderWidth) {
				attribs.stroke = options.borderColor;
				attribs['stroke-width'] = options.borderWidth;
			}
		} else {
			return;
		}
		// zIndex
		if (defined(zIndex)) {
			attribs.zIndex = zIndex;
		}

		// common for lines and bands
		if (svgElem) {
			if (path) {
				svgElem.animate({
					d: path
				}, null, svgElem.onGetPath);
			} else {
				svgElem.hide();
				svgElem.onGetPath = function () {
					svgElem.show();
				};
				if (label) {
					plotLine.label = label = label.destroy();
				}
			}
		} else if (path && path.length) {
			plotLine.svgElem = svgElem = renderer.path(path)
				.attr(attribs).add();

			// events
			if (events) {
				addEvent = function (eventType) {
					svgElem.on(eventType, function (e) {
						events[eventType].apply(plotLine, [e]);
					});
				};
				for (eventType in events) {
					addEvent(eventType);
				}
			}
		}

		// the plot band/line label
		if (optionsLabel && defined(optionsLabel.text) && path && path.length && axis.width > 0 && axis.height > 0) {
			// apply defaults
			optionsLabel = merge({
				align: horiz && isBand && 'center',
				x: horiz ? !isBand && 4 : 10,
				verticalAlign : !horiz && isBand && 'middle',
				y: horiz ? isBand ? 16 : 10 : isBand ? 6 : -4,
				rotation: horiz && !isBand && 90
			}, optionsLabel);

			// add the SVG element
			if (!label) {
				attribs = {
					align: optionsLabel.textAlign || optionsLabel.align,
					rotation: optionsLabel.rotation
				};
				if (defined(zIndex)) {
					attribs.zIndex = zIndex;
				}
				plotLine.label = label = renderer.text(
						optionsLabel.text,
						0,
						0,
						optionsLabel.useHTML
					)
					.attr(attribs)
					.css(optionsLabel.style)
					.add();
			}

			// get the bounding box and align the label
			// #3000 changed to better handle choice between plotband or plotline
			xs = [path[1], path[4], (isBand ? path[6] : path[1])];
			ys = [path[2], path[5], (isBand ? path[7] : path[2])];
			x = arrayMin(xs);
			y = arrayMin(ys);

			label.align(optionsLabel, false, {
				x: x,
				y: y,
				width: arrayMax(xs) - x,
				height: arrayMax(ys) - y
			});
			label.show();

		} else if (label) { // move out of sight
			label.hide();
		}

		// chainable
		return plotLine;
	},

	/**
	 * Remove the plot line or band
	 */
	destroy: function () {
		// remove it from the lookup
		erase(this.axis.plotLinesAndBands, this);

		delete this.axis;
		destroyObjectProperties(this);
	}
};

/**
 * Object with members for extending the Axis prototype
 */

AxisPlotLineOrBandExtension = {

	/**
	 * Create the path for a plot band
	 */
	getPlotBandPath: function (from, to) {
		var toPath = this.getPlotLinePath(to),
			path = this.getPlotLinePath(from);

		if (path && toPath) {
			path.push(
				toPath[4],
				toPath[5],
				toPath[1],
				toPath[2]
			);
		} else { // outside the axis area
			path = null;
		}

		return path;
	},

	addPlotBand: function (options) {
		return this.addPlotBandOrLine(options, 'plotBands');
	},

	addPlotLine: function (options) {
		return this.addPlotBandOrLine(options, 'plotLines');
	},

	/**
	 * Add a plot band or plot line after render time
	 *
	 * @param options {Object} The plotBand or plotLine configuration object
	 */
	addPlotBandOrLine: function (options, coll) {
		var obj = new Highcharts.PlotLineOrBand(this, options).render(),
			userOptions = this.userOptions;

		if (obj) { // #2189
			// Add it to the user options for exporting and Axis.update
			if (coll) {
				userOptions[coll] = userOptions[coll] || [];
				userOptions[coll].push(options);
			}
			this.plotLinesAndBands.push(obj);
		}

		return obj;
	},

	/**
	 * Remove a plot band or plot line from the chart by id
	 * @param {Object} id
	 */
	removePlotBandOrLine: function (id) {
		var plotLinesAndBands = this.plotLinesAndBands,
			options = this.options,
			userOptions = this.userOptions,
			i = plotLinesAndBands.length;
		while (i--) {
			if (plotLinesAndBands[i].id === id) {
				plotLinesAndBands[i].destroy();
			}
		}
		each([options.plotLines || [], userOptions.plotLines || [], options.plotBands || [], userOptions.plotBands || []], function (arr) {
			i = arr.length;
			while (i--) {
				if (arr[i].id === id) {
					erase(arr, arr[i]);
				}
			}
		});
	}
};

/**
 * Create a new axis object
 * @param {Object} chart
 * @param {Object} options
 */
function Axis() {
	this.init.apply(this, arguments);
}

Axis.prototype = {

	/**
	 * Default options for the X axis - the Y axis has extended defaults
	 */
	defaultOptions: {
		// allowDecimals: null,
		// alternateGridColor: null,
		// categories: [],
		dateTimeLabelFormats: {
			millisecond: '%H:%M:%S.%L',
			second: '%H:%M:%S',
			minute: '%H:%M',
			hour: '%H:%M',
			day: '%e. %b',
			week: '%e. %b',
			month: '%b \'%y',
			year: '%Y'
		},
		endOnTick: false,
		gridLineColor: '#C0C0C0',
		// gridLineDashStyle: 'solid',
		// gridLineWidth: 0,
		// reversed: false,

		labels: defaultLabelOptions,
			// { step: null },
		lineColor: '#C0D0E0',
		lineWidth: 1,
		//linkedTo: null,
		//max: undefined,
		//min: undefined,
		minPadding: 0.01,
		maxPadding: 0.01,
		//minRange: null,
		minorGridLineColor: '#E0E0E0',
		// minorGridLineDashStyle: null,
		minorGridLineWidth: 1,
		minorTickColor: '#A0A0A0',
		//minorTickInterval: null,
		minorTickLength: 2,
		minorTickPosition: 'outside', // inside or outside
		//minorTickWidth: 0,
		//opposite: false,
		//offset: 0,
		//plotBands: [{
		//	events: {},
		//	zIndex: 1,
		//	labels: { align, x, verticalAlign, y, style, rotation, textAlign }
		//}],
		//plotLines: [{
		//	events: {}
		//  dashStyle: {}
		//	zIndex:
		//	labels: { align, x, verticalAlign, y, style, rotation, textAlign }
		//}],
		//reversed: false,
		// showFirstLabel: true,
		// showLastLabel: true,
		startOfWeek: 1,
		startOnTick: false,
		tickColor: '#C0D0E0',
		//tickInterval: null,
		tickLength: 10,
		tickmarkPlacement: 'between', // on or between
		tickPixelInterval: 100,
		tickPosition: 'outside',
		tickWidth: 1,
		title: {
			//text: null,
			align: 'middle', // low, middle or high
			//margin: 0 for horizontal, 10 for vertical axes,
			//rotation: 0,
			//side: 'outside',
			style: {
				color: '#707070'
			}
			//x: 0,
			//y: 0
		},
		type: 'linear' // linear, logarithmic or datetime
	},

	/**
	 * This options set extends the defaultOptions for Y axes
	 */
	defaultYAxisOptions: {
		endOnTick: true,
		gridLineWidth: 1,
		tickPixelInterval: 72,
		showLastLabel: true,
		labels: {
			x: -8,
			y: 3
		},
		lineWidth: 0,
		maxPadding: 0.05,
		minPadding: 0.05,
		startOnTick: true,
		tickWidth: 0,
		title: {
			rotation: 270,
			text: 'Values'
		},
		stackLabels: {
			enabled: false,
			//align: dynamic,
			//y: dynamic,
			//x: dynamic,
			//verticalAlign: dynamic,
			//textAlign: dynamic,
			//rotation: 0,
			formatter: function () {
				return numberFormat(this.total, -1);
			},
			style: defaultLabelOptions.style
		}
	},

	/**
	 * These options extend the defaultOptions for left axes
	 */
	defaultLeftAxisOptions: {
		labels: {
			x: -15,
			y: null
		},
		title: {
			rotation: 270
		}
	},

	/**
	 * These options extend the defaultOptions for right axes
	 */
	defaultRightAxisOptions: {
		labels: {
			x: 15,
			y: null
		},
		title: {
			rotation: 90
		}
	},

	/**
	 * These options extend the defaultOptions for bottom axes
	 */
	defaultBottomAxisOptions: {
		labels: {
			x: 0,
			y: null // based on font size
			// overflow: undefined,
			// staggerLines: null
		},
		title: {
			rotation: 0
		}
	},
	/**
	 * These options extend the defaultOptions for left axes
	 */
	defaultTopAxisOptions: {
		labels: {
			x: 0,
			y: -15
			// overflow: undefined
			// staggerLines: null
		},
		title: {
			rotation: 0
		}
	},

	/**
	 * Initialize the axis
	 */
	init: function (chart, userOptions) {


		var isXAxis = userOptions.isX,
			axis = this;

		// Flag, is the axis horizontal
		axis.horiz = chart.inverted ? !isXAxis : isXAxis;

		// Flag, isXAxis
		axis.isXAxis = isXAxis;
		axis.coll = isXAxis ? 'xAxis' : 'yAxis';

		axis.opposite = userOptions.opposite; // needed in setOptions
		axis.side = userOptions.side || (axis.horiz ?
				(axis.opposite ? 0 : 2) : // top : bottom
				(axis.opposite ? 1 : 3));  // right : left

		axis.setOptions(userOptions);


		var options = this.options,
			type = options.type,
			isDatetimeAxis = type === 'datetime';

		axis.labelFormatter = options.labels.formatter || axis.defaultLabelFormatter; // can be overwritten by dynamic format


		// Flag, stagger lines or not
		axis.userOptions = userOptions;

		//axis.axisTitleMargin = UNDEFINED,// = options.title.margin,
		axis.minPixelPadding = 0;
		//axis.ignoreMinPadding = UNDEFINED; // can be set to true by a column or bar series
		//axis.ignoreMaxPadding = UNDEFINED;

		axis.chart = chart;
		axis.reversed = options.reversed;
		axis.zoomEnabled = options.zoomEnabled !== false;

		// Initial categories
		axis.categories = options.categories || type === 'category';
		axis.names = [];

		// Elements
		//axis.axisGroup = UNDEFINED;
		//axis.gridGroup = UNDEFINED;
		//axis.axisTitle = UNDEFINED;
		//axis.axisLine = UNDEFINED;

		// Shorthand types
		axis.isLog = type === 'logarithmic';
		axis.isDatetimeAxis = isDatetimeAxis;

		// Flag, if axis is linked to another axis
		axis.isLinked = defined(options.linkedTo);
		// Linked axis.
		//axis.linkedParent = UNDEFINED;

		// Tick positions
		//axis.tickPositions = UNDEFINED; // array containing predefined positions
		// Tick intervals
		//axis.tickInterval = UNDEFINED;
		//axis.minorTickInterval = UNDEFINED;

		axis.tickmarkOffset = (axis.categories && options.tickmarkPlacement === 'between' &&
			pick(options.tickInterval, 1) === 1) ? 0.5 : 0; // #3202

		// Major ticks
		axis.ticks = {};
		axis.labelEdge = [];
		// Minor ticks
		axis.minorTicks = {};
		//axis.tickAmount = UNDEFINED;

		// List of plotLines/Bands
		axis.plotLinesAndBands = [];

		// Alternate bands
		axis.alternateBands = {};

		// Axis metrics
		//axis.left = UNDEFINED;
		//axis.top = UNDEFINED;
		//axis.width = UNDEFINED;
		//axis.height = UNDEFINED;
		//axis.bottom = UNDEFINED;
		//axis.right = UNDEFINED;
		//axis.transA = UNDEFINED;
		//axis.transB = UNDEFINED;
		//axis.oldTransA = UNDEFINED;
		axis.len = 0;
		//axis.oldMin = UNDEFINED;
		//axis.oldMax = UNDEFINED;
		//axis.oldUserMin = UNDEFINED;
		//axis.oldUserMax = UNDEFINED;
		//axis.oldAxisLength = UNDEFINED;
		axis.minRange = axis.userMinRange = options.minRange || options.maxZoom;
		axis.range = options.range;
		axis.offset = options.offset || 0;


		// Dictionary for stacks
		axis.stacks = {};
		axis.oldStacks = {};

		// Min and max in the data
		//axis.dataMin = UNDEFINED,
		//axis.dataMax = UNDEFINED,

		// The axis range
		axis.max = null;
		axis.min = null;

		// User set min and max
		//axis.userMin = UNDEFINED,
		//axis.userMax = UNDEFINED,

		// Crosshair options
		axis.crosshair = pick(options.crosshair, splat(chart.options.tooltip.crosshairs)[isXAxis ? 0 : 1], false);
		// Run Axis

		var eventType,
			events = axis.options.events;

		// Register
		if (inArray(axis, chart.axes) === -1) { // don't add it again on Axis.update()
			if (isXAxis && !this.isColorAxis) { // #2713
				chart.axes.splice(chart.xAxis.length, 0, axis);
			} else {
				chart.axes.push(axis);
			}

			chart[axis.coll].push(axis);
		}

		axis.series = axis.series || []; // populated by Series

		// inverted charts have reversed xAxes as default
		if (chart.inverted && isXAxis && axis.reversed === UNDEFINED) {
			axis.reversed = true;
		}

		axis.removePlotBand = axis.removePlotBandOrLine;
		axis.removePlotLine = axis.removePlotBandOrLine;


		// register event listeners
		for (eventType in events) {
			addEvent(axis, eventType, events[eventType]);
		}

		// extend logarithmic axis
		if (axis.isLog) {
			axis.val2lin = log2lin;
			axis.lin2val = lin2log;
		}
	},

	/**
	 * Merge and set options
	 */
	setOptions: function (userOptions) {
		this.options = merge(
			this.defaultOptions,
			this.isXAxis ? {} : this.defaultYAxisOptions,
			[this.defaultTopAxisOptions, this.defaultRightAxisOptions,
				this.defaultBottomAxisOptions, this.defaultLeftAxisOptions][this.side],
			merge(
				defaultOptions[this.coll], // if set in setOptions (#1053)
				userOptions
			)
		);
	},

	/**
	 * The default label formatter. The context is a special config object for the label.
	 */
	defaultLabelFormatter: function () {
		var axis = this.axis,
			value = this.value,
			categories = axis.categories,
			dateTimeLabelFormat = this.dateTimeLabelFormat,
			numericSymbols = defaultOptions.lang.numericSymbols,
			i = numericSymbols && numericSymbols.length,
			multi,
			ret,
			formatOption = axis.options.labels.format,

			// make sure the same symbol is added for all labels on a linear axis
			numericSymbolDetector = axis.isLog ? value : axis.tickInterval;

		if (formatOption) {
			ret = format(formatOption, this);

		} else if (categories) {
			ret = value;

		} else if (dateTimeLabelFormat) { // datetime axis
			ret = dateFormat(dateTimeLabelFormat, value);

		} else if (i && numericSymbolDetector >= 1000) {
			// Decide whether we should add a numeric symbol like k (thousands) or M (millions).
			// If we are to enable this in tooltip or other places as well, we can move this
			// logic to the numberFormatter and enable it by a parameter.
			while (i-- && ret === UNDEFINED) {
				multi = Math.pow(1000, i + 1);
				if (numericSymbolDetector >= multi && numericSymbols[i] !== null) {
					ret = numberFormat(value / multi, -1) + numericSymbols[i];
				}
			}
		}

		if (ret === UNDEFINED) {
			if (mathAbs(value) >= 10000) { // add thousands separators
				ret = numberFormat(value, 0);

			} else { // small numbers
				ret = numberFormat(value, -1, UNDEFINED, ''); // #2466
			}
		}

		return ret;
	},

	/**
	 * Get the minimum and maximum for the series of each axis
	 */
	getSeriesExtremes: function () {
		var axis = this,
			chart = axis.chart;

		axis.hasVisibleSeries = false;

		// Reset properties in case we're redrawing (#3353)
		axis.dataMin = axis.dataMax = axis.ignoreMinPadding = axis.ignoreMaxPadding = null;

		if (axis.buildStacks) {
			axis.buildStacks();
		}

		// loop through this axis' series
		each(axis.series, function (series) {

			if (series.visible || !chart.options.chart.ignoreHiddenSeries) {

				var seriesOptions = series.options,
					xData,
					threshold = seriesOptions.threshold,
					seriesDataMin,
					seriesDataMax;

				axis.hasVisibleSeries = true;

				// Validate threshold in logarithmic axes
				if (axis.isLog && threshold <= 0) {
					threshold = null;
				}

				// Get dataMin and dataMax for X axes
				if (axis.isXAxis) {
					xData = series.xData;
					if (xData.length) {
						axis.dataMin = mathMin(pick(axis.dataMin, xData[0]), arrayMin(xData));
						axis.dataMax = mathMax(pick(axis.dataMax, xData[0]), arrayMax(xData));
					}

				// Get dataMin and dataMax for Y axes, as well as handle stacking and processed data
				} else {

					// Get this particular series extremes
					series.getExtremes();
					seriesDataMax = series.dataMax;
					seriesDataMin = series.dataMin;

					// Get the dataMin and dataMax so far. If percentage is used, the min and max are
					// always 0 and 100. If seriesDataMin and seriesDataMax is null, then series
					// doesn't have active y data, we continue with nulls
					if (defined(seriesDataMin) && defined(seriesDataMax)) {
						axis.dataMin = mathMin(pick(axis.dataMin, seriesDataMin), seriesDataMin);
						axis.dataMax = mathMax(pick(axis.dataMax, seriesDataMax), seriesDataMax);
					}

					// Adjust to threshold
					if (defined(threshold)) {
						if (axis.dataMin >= threshold) {
							axis.dataMin = threshold;
							axis.ignoreMinPadding = true;
						} else if (axis.dataMax < threshold) {
							axis.dataMax = threshold;
							axis.ignoreMaxPadding = true;
						}
					}
				}
			}
		});
	},

	/**
	 * Translate from axis value to pixel position on the chart, or back
	 *
	 */
	translate: function (val, backwards, cvsCoord, old, handleLog, pointPlacement) {
		var axis = this,
			sign = 1,
			cvsOffset = 0,
			localA = old ? axis.oldTransA : axis.transA,
			localMin = old ? axis.oldMin : axis.min,
			returnValue,
			minPixelPadding = axis.minPixelPadding,
			postTranslate = (axis.options.ordinal || (axis.isLog && handleLog)) && axis.lin2val;

		if (!localA) {
			localA = axis.transA;
		}

		// In vertical axes, the canvas coordinates start from 0 at the top like in
		// SVG.
		if (cvsCoord) {
			sign *= -1; // canvas coordinates inverts the value
			cvsOffset = axis.len;
		}

		// Handle reversed axis
		if (axis.reversed) {
			sign *= -1;
			cvsOffset -= sign * (axis.sector || axis.len);
		}

		// From pixels to value
		if (backwards) { // reverse translation

			val = val * sign + cvsOffset;
			val -= minPixelPadding;
			returnValue = val / localA + localMin; // from chart pixel to value
			if (postTranslate) { // log and ordinal axes
				returnValue = axis.lin2val(returnValue);
			}

		// From value to pixels
		} else {
			if (postTranslate) { // log and ordinal axes
				val = axis.val2lin(val);
			}
			if (pointPlacement === 'between') {
				pointPlacement = 0.5;
			}
			returnValue = sign * (val - localMin) * localA + cvsOffset + (sign * minPixelPadding) +
				(isNumber(pointPlacement) ? localA * pointPlacement * axis.pointRange : 0);
		}

		return returnValue;
	},

	/**
	 * Utility method to translate an axis value to pixel position.
	 * @param {Number} value A value in terms of axis units
	 * @param {Boolean} paneCoordinates Whether to return the pixel coordinate relative to the chart
	 *        or just the axis/pane itself.
	 */
	toPixels: function (value, paneCoordinates) {
		return this.translate(value, false, !this.horiz, null, true) + (paneCoordinates ? 0 : this.pos);
	},

	/*
	 * Utility method to translate a pixel position in to an axis value
	 * @param {Number} pixel The pixel value coordinate
	 * @param {Boolean} paneCoordiantes Whether the input pixel is relative to the chart or just the
	 *        axis/pane itself.
	 */
	toValue: function (pixel, paneCoordinates) {
		return this.translate(pixel - (paneCoordinates ? 0 : this.pos), true, !this.horiz, null, true);
	},

	/**
	 * Create the path for a plot line that goes from the given value on
	 * this axis, across the plot to the opposite side
	 * @param {Number} value
	 * @param {Number} lineWidth Used for calculation crisp line
	 * @param {Number] old Use old coordinates (for resizing and rescaling)
	 */
	getPlotLinePath: function (value, lineWidth, old, force, translatedValue) {
		var axis = this,
			chart = axis.chart,
			axisLeft = axis.left,
			axisTop = axis.top,
			x1,
			y1,
			x2,
			y2,
			cHeight = (old && chart.oldChartHeight) || chart.chartHeight,
			cWidth = (old && chart.oldChartWidth) || chart.chartWidth,
			skip,
			transB = axis.transB;

		translatedValue = pick(translatedValue, axis.translate(value, null, null, old));
		x1 = x2 = mathRound(translatedValue + transB);
		y1 = y2 = mathRound(cHeight - translatedValue - transB);

		if (isNaN(translatedValue)) { // no min or max
			skip = true;

		} else if (axis.horiz) {
			y1 = axisTop;
			y2 = cHeight - axis.bottom;
			if (x1 < axisLeft || x1 > axisLeft + axis.width) {
				skip = true;
			}
		} else {
			x1 = axisLeft;
			x2 = cWidth - axis.right;

			if (y1 < axisTop || y1 > axisTop + axis.height) {
				skip = true;
			}
		}
		return skip && !force ?
			null :
			chart.renderer.crispLine([M, x1, y1, L, x2, y2], lineWidth || 1);
	},

	/**
	 * Set the tick positions of a linear axis to round values like whole tens or every five.
	 */
	getLinearTickPositions: function (tickInterval, min, max) {
		var pos,
			lastPos,
			roundedMin = correctFloat(mathFloor(min / tickInterval) * tickInterval),
			roundedMax = correctFloat(mathCeil(max / tickInterval) * tickInterval),
			tickPositions = [];

		// For single points, add a tick regardless of the relative position (#2662)
		if (min === max && isNumber(min)) {
			return [min];
		}

		// Populate the intermediate values
		pos = roundedMin;
		while (pos <= roundedMax) {

			// Place the tick on the rounded value
			tickPositions.push(pos);

			// Always add the raw tickInterval, not the corrected one.
			pos = correctFloat(pos + tickInterval);

			// If the interval is not big enough in the current min - max range to actually increase
			// the loop variable, we need to break out to prevent endless loop. Issue #619
			if (pos === lastPos) {
				break;
			}

			// Record the last value
			lastPos = pos;
		}
		return tickPositions;
	},

	/**
	 * Return the minor tick positions. For logarithmic axes, reuse the same logic
	 * as for major ticks.
	 */
	getMinorTickPositions: function () {
		var axis = this,
			options = axis.options,
			tickPositions = axis.tickPositions,
			minorTickInterval = axis.minorTickInterval,
			minorTickPositions = [],
			pos,
			i,
			len;

		if (axis.isLog) {
			len = tickPositions.length;
			for (i = 1; i < len; i++) {
				minorTickPositions = minorTickPositions.concat(
					axis.getLogTickPositions(minorTickInterval, tickPositions[i - 1], tickPositions[i], true)
				);
			}
		} else if (axis.isDatetimeAxis && options.minorTickInterval === 'auto') { // #1314
			minorTickPositions = minorTickPositions.concat(
				axis.getTimeTicks(
					axis.normalizeTimeTickInterval(minorTickInterval),
					axis.min,
					axis.max,
					options.startOfWeek
				)
			);
			if (minorTickPositions[0] < axis.min) {
				minorTickPositions.shift();
			}
		} else {
			for (pos = axis.min + (tickPositions[0] - axis.min) % minorTickInterval; pos <= axis.max; pos += minorTickInterval) {
				minorTickPositions.push(pos);
			}
		}
		return minorTickPositions;
	},

	/**
	 * Adjust the min and max for the minimum range. Keep in mind that the series data is
	 * not yet processed, so we don't have information on data cropping and grouping, or
	 * updated axis.pointRange or series.pointRange. The data can't be processed until
	 * we have finally established min and max.
	 */
	adjustForMinRange: function () {
		var axis = this,
			options = axis.options,
			min = axis.min,
			max = axis.max,
			zoomOffset,
			spaceAvailable = axis.dataMax - axis.dataMin >= axis.minRange,
			closestDataRange,
			i,
			distance,
			xData,
			loopLength,
			minArgs,
			maxArgs;

		// Set the automatic minimum range based on the closest point distance
		if (axis.isXAxis && axis.minRange === UNDEFINED && !axis.isLog) {

			if (defined(options.min) || defined(options.max)) {
				axis.minRange = null; // don't do this again

			} else {

				// Find the closest distance between raw data points, as opposed to
				// closestPointRange that applies to processed points (cropped and grouped)
				each(axis.series, function (series) {
					xData = series.xData;
					loopLength = series.xIncrement ? 1 : xData.length - 1;
					for (i = loopLength; i > 0; i--) {
						distance = xData[i] - xData[i - 1];
						if (closestDataRange === UNDEFINED || distance < closestDataRange) {
							closestDataRange = distance;
						}
					}
				});
				axis.minRange = mathMin(closestDataRange * 5, axis.dataMax - axis.dataMin);
			}
		}

		// if minRange is exceeded, adjust
		if (max - min < axis.minRange) {
			var minRange = axis.minRange;
			zoomOffset = (minRange - max + min) / 2;

			// if min and max options have been set, don't go beyond it
			minArgs = [min - zoomOffset, pick(options.min, min - zoomOffset)];
			if (spaceAvailable) { // if space is available, stay within the data range
				minArgs[2] = axis.dataMin;
			}
			min = arrayMax(minArgs);

			maxArgs = [min + minRange, pick(options.max, min + minRange)];
			if (spaceAvailable) { // if space is availabe, stay within the data range
				maxArgs[2] = axis.dataMax;
			}

			max = arrayMin(maxArgs);

			// now if the max is adjusted, adjust the min back
			if (max - min < minRange) {
				minArgs[0] = max - minRange;
				minArgs[1] = pick(options.min, max - minRange);
				min = arrayMax(minArgs);
			}
		}

		// Record modified extremes
		axis.min = min;
		axis.max = max;
	},

	/**
	 * Update translation information
	 */
	setAxisTranslation: function (saveOld) {
		var axis = this,
			range = axis.max - axis.min,
			pointRange = axis.axisPointRange || 0,
			closestPointRange,
			minPointOffset = 0,
			pointRangePadding = 0,
			linkedParent = axis.linkedParent,
			ordinalCorrection,
			hasCategories = !!axis.categories,
			transA = axis.transA;

		// Adjust translation for padding. Y axis with categories need to go through the same (#1784).
		if (axis.isXAxis || hasCategories || pointRange) {
			if (linkedParent) {
				minPointOffset = linkedParent.minPointOffset;
				pointRangePadding = linkedParent.pointRangePadding;

			} else {
				each(axis.series, function (series) {
					var seriesPointRange = hasCategories ? 1 : (axis.isXAxis ? series.pointRange : (axis.axisPointRange || 0)), // #2806
						pointPlacement = series.options.pointPlacement,
						seriesClosestPointRange = series.closestPointRange;

					if (seriesPointRange > range) { // #1446
						seriesPointRange = 0;
					}
					pointRange = mathMax(pointRange, seriesPointRange);

					// minPointOffset is the value padding to the left of the axis in order to make
					// room for points with a pointRange, typically columns. When the pointPlacement option
					// is 'between' or 'on', this padding does not apply.
					minPointOffset = mathMax(
						minPointOffset,
						isString(pointPlacement) ? 0 : seriesPointRange / 2
					);

					// Determine the total padding needed to the length of the axis to make room for the
					// pointRange. If the series' pointPlacement is 'on', no padding is added.
					pointRangePadding = mathMax(
						pointRangePadding,
						pointPlacement === 'on' ? 0 : seriesPointRange
					);

					// Set the closestPointRange
					if (!series.noSharedTooltip && defined(seriesClosestPointRange)) {
						closestPointRange = defined(closestPointRange) ?
							mathMin(closestPointRange, seriesClosestPointRange) :
							seriesClosestPointRange;
					}
				});
			}

			// Record minPointOffset and pointRangePadding
			ordinalCorrection = axis.ordinalSlope && closestPointRange ? axis.ordinalSlope / closestPointRange : 1; // #988, #1853
			axis.minPointOffset = minPointOffset = minPointOffset * ordinalCorrection;
			axis.pointRangePadding = pointRangePadding = pointRangePadding * ordinalCorrection;

			// pointRange means the width reserved for each point, like in a column chart
			axis.pointRange = mathMin(pointRange, range);

			// closestPointRange means the closest distance between points. In columns
			// it is mostly equal to pointRange, but in lines pointRange is 0 while closestPointRange
			// is some other value
			axis.closestPointRange = closestPointRange;
		}

		// Secondary values
		if (saveOld) {
			axis.oldTransA = transA;
		}
		axis.translationSlope = axis.transA = transA = axis.len / ((range + pointRangePadding) || 1);
		axis.transB = axis.horiz ? axis.left : axis.bottom; // translation addend
		axis.minPixelPadding = transA * minPointOffset;
	},

	/**
	 * Set the tick positions to round values and optionally extend the extremes
	 * to the nearest tick
	 */
	setTickPositions: function (secondPass) {
		var axis = this,
			chart = axis.chart,
			options = axis.options,
			startOnTick = options.startOnTick,
			endOnTick = options.endOnTick,
			isLog = axis.isLog,
			isDatetimeAxis = axis.isDatetimeAxis,
			isXAxis = axis.isXAxis,
			isLinked = axis.isLinked,
			tickPositioner = axis.options.tickPositioner,
			maxPadding = options.maxPadding,
			minPadding = options.minPadding,
			length,
			linkedParentExtremes,
			tickIntervalOption = options.tickInterval,
			minTickIntervalOption = options.minTickInterval,
			tickPixelIntervalOption = options.tickPixelInterval,
			tickPositions,
			keepTwoTicksOnly,
			categories = axis.categories;

		// linked axis gets the extremes from the parent axis
		if (isLinked) {
			axis.linkedParent = chart[axis.coll][options.linkedTo];
			linkedParentExtremes = axis.linkedParent.getExtremes();
			axis.min = pick(linkedParentExtremes.min, linkedParentExtremes.dataMin);
			axis.max = pick(linkedParentExtremes.max, linkedParentExtremes.dataMax);
			if (options.type !== axis.linkedParent.options.type) {
				error(11, 1); // Can't link axes of different type
			}
		} else { // initial min and max from the extreme data values
			axis.min = pick(axis.userMin, options.min, axis.dataMin);
			axis.max = pick(axis.userMax, options.max, axis.dataMax);
		}

		if (isLog) {
			if (!secondPass && mathMin(axis.min, pick(axis.dataMin, axis.min)) <= 0) { // #978
				error(10, 1); // Can't plot negative values on log axis
			}
			axis.min = correctFloat(log2lin(axis.min)); // correctFloat cures #934
			axis.max = correctFloat(log2lin(axis.max));
		}

		// handle zoomed range
		if (axis.range && defined(axis.max)) {
			axis.userMin = axis.min = mathMax(axis.min, axis.max - axis.range); // #618
			axis.userMax = axis.max;

			axis.range = null;  // don't use it when running setExtremes
		}

		// Hook for adjusting this.min and this.max. Used by bubble series.
		if (axis.beforePadding) {
			axis.beforePadding();
		}

		// adjust min and max for the minimum range
		axis.adjustForMinRange();

		// Pad the values to get clear of the chart's edges. To avoid tickInterval taking the padding
		// into account, we do this after computing tick interval (#1337).
		if (!categories && !axis.axisPointRange && !axis.usePercentage && !isLinked && defined(axis.min) && defined(axis.max)) {
			length = axis.max - axis.min;
			if (length) {
				if (!defined(options.min) && !defined(axis.userMin) && minPadding && (axis.dataMin < 0 || !axis.ignoreMinPadding)) {
					axis.min -= length * minPadding;
				}
				if (!defined(options.max) && !defined(axis.userMax)  && maxPadding && (axis.dataMax > 0 || !axis.ignoreMaxPadding)) {
					axis.max += length * maxPadding;
				}
			}
		}

		// Stay within floor and ceiling
		if (isNumber(options.floor)) {
			axis.min = mathMax(axis.min, options.floor);
		}
		if (isNumber(options.ceiling)) {
			axis.max = mathMin(axis.max, options.ceiling);
		}

		// get tickInterval
		if (axis.min === axis.max || axis.min === undefined || axis.max === undefined) {
			axis.tickInterval = 1;
		} else if (isLinked && !tickIntervalOption &&
				tickPixelIntervalOption === axis.linkedParent.options.tickPixelInterval) {
			axis.tickInterval = axis.linkedParent.tickInterval;
		} else {
			axis.tickInterval = pick(
				tickIntervalOption,
				categories ? // for categoried axis, 1 is default, for linear axis use tickPix
					1 :
					// don't let it be more than the data range
					(axis.max - axis.min) * tickPixelIntervalOption / mathMax(axis.len, tickPixelIntervalOption)
			);
			// For squished axes, set only two ticks
			if (!defined(tickIntervalOption) && axis.len < tickPixelIntervalOption && !this.isRadial &&
					!this.isLog && !categories && startOnTick && endOnTick) {
				keepTwoTicksOnly = true;
				axis.tickInterval /= 4; // tick extremes closer to the real values
			}
		}

		// Now we're finished detecting min and max, crop and group series data. This
		// is in turn needed in order to find tick positions in ordinal axes.
		if (isXAxis && !secondPass) {
			each(axis.series, function (series) {
				series.processData(axis.min !== axis.oldMin || axis.max !== axis.oldMax);
			});
		}

		// set the translation factor used in translate function
		axis.setAxisTranslation(true);

		// hook for ordinal axes and radial axes
		if (axis.beforeSetTickPositions) {
			axis.beforeSetTickPositions();
		}

		// hook for extensions, used in Highstock ordinal axes
		if (axis.postProcessTickInterval) {
			axis.tickInterval = axis.postProcessTickInterval(axis.tickInterval);
		}

		// In column-like charts, don't cramp in more ticks than there are points (#1943)
		if (axis.pointRange) {
			axis.tickInterval = mathMax(axis.pointRange, axis.tickInterval);
		}

		// Before normalizing the tick interval, handle minimum tick interval. This applies only if tickInterval is not defined.
		if (!tickIntervalOption && axis.tickInterval < minTickIntervalOption) {
			axis.tickInterval = minTickIntervalOption;
		}

		// for linear axes, get magnitude and normalize the interval
		if (!isDatetimeAxis && !isLog) { // linear
			if (!tickIntervalOption) {
				axis.tickInterval = normalizeTickInterval(
					axis.tickInterval,
					null,
					getMagnitude(axis.tickInterval),
					// If the tick interval is between 1 and 5 and the axis max is in the order of
					// thousands, chances are we are dealing with years. Don't allow decimals. #3363.
					pick(options.allowDecimals, !(axis.tickInterval > 1 && axis.tickInterval < 5 && axis.max > 1000 && axis.max < 9999))
				);
			}
		}

		// get minorTickInterval
		axis.minorTickInterval = options.minorTickInterval === 'auto' && axis.tickInterval ?
				axis.tickInterval / 5 : options.minorTickInterval;

		// find the tick positions
		axis.tickPositions = tickPositions = options.tickPositions ?
			[].concat(options.tickPositions) : // Work on a copy (#1565)
			(tickPositioner && tickPositioner.apply(axis, [axis.min, axis.max]));
		if (!tickPositions) {

			// Too many ticks
			if (!axis.ordinalPositions && (axis.max - axis.min) / axis.tickInterval > mathMax(2 * axis.len, 200)) {
				error(19, true);
			}

			if (isDatetimeAxis) {
				tickPositions = axis.getTimeTicks(
					axis.normalizeTimeTickInterval(axis.tickInterval, options.units),
					axis.min,
					axis.max,
					options.startOfWeek,
					axis.ordinalPositions,
					axis.closestPointRange,
					true
				);
			} else if (isLog) {
				tickPositions = axis.getLogTickPositions(axis.tickInterval, axis.min, axis.max);
			} else {
				tickPositions = axis.getLinearTickPositions(axis.tickInterval, axis.min, axis.max);
			}

			if (keepTwoTicksOnly) {
				tickPositions.splice(1, tickPositions.length - 2);
			}

			axis.tickPositions = tickPositions;
		}

		if (!isLinked) {

			// reset min/max or remove extremes based on start/end on tick
			var roundedMin = tickPositions[0],
				roundedMax = tickPositions[tickPositions.length - 1],
				minPointOffset = axis.minPointOffset || 0,
				singlePad;

			if (startOnTick) {
				axis.min = roundedMin;
			} else if (axis.min - minPointOffset > roundedMin) {
				tickPositions.shift();
			}

			if (endOnTick) {
				axis.max = roundedMax;
			} else if (axis.max + minPointOffset < roundedMax) {
				tickPositions.pop();
			}

			// If no tick are left, set one tick in the middle (#3195)
			if (tickPositions.length === 0 && defined(roundedMin)) {
				tickPositions.push((roundedMax + roundedMin) / 2);
			}

			// When there is only one point, or all points have the same value on this axis, then min
			// and max are equal and tickPositions.length is 0 or 1. In this case, add some padding
			// in order to center the point, but leave it with one tick. #1337.
			if (tickPositions.length === 1) {
				singlePad = mathAbs(axis.max) > 10e12 ? 1 : 0.001; // The lowest possible number to avoid extra padding on columns (#2619, #2846)
				axis.min -= singlePad;
				axis.max += singlePad;
			}
		}
	},

	/**
	 * Set the max ticks of either the x and y axis collection
	 */
	setMaxTicks: function () {

		var chart = this.chart,
			maxTicks = chart.maxTicks || {},
			tickPositions = this.tickPositions,
			key = this._maxTicksKey = [this.coll, this.pos, this.len].join('-');

		if (!this.isLinked && !this.isDatetimeAxis && tickPositions && tickPositions.length > (maxTicks[key] || 0) && this.options.alignTicks !== false) {
			maxTicks[key] = tickPositions.length;
		}
		chart.maxTicks = maxTicks;
	},

	/**
	 * When using multiple axes, adjust the number of ticks to match the highest
	 * number of ticks in that group
	 */
	adjustTickAmount: function () {
		var axis = this,
			chart = axis.chart,
			key = axis._maxTicksKey,
			tickPositions = axis.tickPositions,
			maxTicks = chart.maxTicks;

		if (maxTicks && maxTicks[key] && !axis.isDatetimeAxis && !axis.categories && !axis.isLinked &&
				axis.options.alignTicks !== false && this.min !== UNDEFINED) {
			var oldTickAmount = axis.tickAmount,
				calculatedTickAmount = tickPositions.length,
				tickAmount;

			// set the axis-level tickAmount to use below
			axis.tickAmount = tickAmount = maxTicks[key];

			if (calculatedTickAmount < tickAmount) {
				while (tickPositions.length < tickAmount) {
					tickPositions.push(correctFloat(
						tickPositions[tickPositions.length - 1] + axis.tickInterval
					));
				}
				axis.transA *= (calculatedTickAmount - 1) / (tickAmount - 1);
				axis.max = tickPositions[tickPositions.length - 1];

			}
			if (defined(oldTickAmount) && tickAmount !== oldTickAmount) {
				axis.isDirty = true;
			}
		}
	},

	/**
	 * Set the scale based on data min and max, user set min and max or options
	 *
	 */
	setScale: function () {
		var axis = this,
			stacks = axis.stacks,
			type,
			i,
			isDirtyData,
			isDirtyAxisLength;

		axis.oldMin = axis.min;
		axis.oldMax = axis.max;
		axis.oldAxisLength = axis.len;

		// set the new axisLength
		axis.setAxisSize();
		//axisLength = horiz ? axisWidth : axisHeight;
		isDirtyAxisLength = axis.len !== axis.oldAxisLength;

		// is there new data?
		each(axis.series, function (series) {
			if (series.isDirtyData || series.isDirty ||
					series.xAxis.isDirty) { // when x axis is dirty, we need new data extremes for y as well
				isDirtyData = true;
			}
		});

		// do we really need to go through all this?
		if (isDirtyAxisLength || isDirtyData || axis.isLinked || axis.forceRedraw ||
			axis.userMin !== axis.oldUserMin || axis.userMax !== axis.oldUserMax) {

			// reset stacks
			if (!axis.isXAxis) {
				for (type in stacks) {
					for (i in stacks[type]) {
						stacks[type][i].total = null;
						stacks[type][i].cum = 0;
					}
				}
			}

			axis.forceRedraw = false;

			// get data extremes if needed
			axis.getSeriesExtremes();

			// get fixed positions based on tickInterval
			axis.setTickPositions();

			// record old values to decide whether a rescale is necessary later on (#540)
			axis.oldUserMin = axis.userMin;
			axis.oldUserMax = axis.userMax;

			// Mark as dirty if it is not already set to dirty and extremes have changed. #595.
			if (!axis.isDirty) {
				axis.isDirty = isDirtyAxisLength || axis.min !== axis.oldMin || axis.max !== axis.oldMax;
			}
		} else if (!axis.isXAxis) {
			if (axis.oldStacks) {
				stacks = axis.stacks = axis.oldStacks;
			}

			// reset stacks
			for (type in stacks) {
				for (i in stacks[type]) {
					stacks[type][i].cum = stacks[type][i].total;
				}
			}
		}

		// Set the maximum tick amount
		axis.setMaxTicks();
	},

	/**
	 * Set the extremes and optionally redraw
	 * @param {Number} newMin
	 * @param {Number} newMax
	 * @param {Boolean} redraw
	 * @param {Boolean|Object} animation Whether to apply animation, and optionally animation
	 *    configuration
	 * @param {Object} eventArguments
	 *
	 */
	setExtremes: function (newMin, newMax, redraw, animation, eventArguments) {
		var axis = this,
			chart = axis.chart;

		redraw = pick(redraw, true); // defaults to true

		// Extend the arguments with min and max
		eventArguments = extend(eventArguments, {
			min: newMin,
			max: newMax
		});

		// Fire the event
		fireEvent(axis, 'setExtremes', eventArguments, function () { // the default event handler

			axis.userMin = newMin;
			axis.userMax = newMax;
			axis.eventArgs = eventArguments;

			// Mark for running afterSetExtremes
			axis.isDirtyExtremes = true;

			// redraw
			if (redraw) {
				chart.redraw(animation);
			}
		});
	},

	/**
	 * Overridable method for zooming chart. Pulled out in a separate method to allow overriding
	 * in stock charts.
	 */
	zoom: function (newMin, newMax) {
		var dataMin = this.dataMin,
			dataMax = this.dataMax,
			options = this.options;

		// Prevent pinch zooming out of range. Check for defined is for #1946. #1734.
		if (!this.allowZoomOutside) {
			if (defined(dataMin) && newMin <= mathMin(dataMin, pick(options.min, dataMin))) {
				newMin = UNDEFINED;
			}
			if (defined(dataMax) && newMax >= mathMax(dataMax, pick(options.max, dataMax))) {
				newMax = UNDEFINED;
			}
		}

		// In full view, displaying the reset zoom button is not required
		this.displayBtn = newMin !== UNDEFINED || newMax !== UNDEFINED;

		// Do it
		this.setExtremes(
			newMin,
			newMax,
			false,
			UNDEFINED,
			{ trigger: 'zoom' }
		);
		return true;
	},

	/**
	 * Update the axis metrics
	 */
	setAxisSize: function () {
		var chart = this.chart,
			options = this.options,
			offsetLeft = options.offsetLeft || 0,
			offsetRight = options.offsetRight || 0,
			horiz = this.horiz,
			width = pick(options.width, chart.plotWidth - offsetLeft + offsetRight),
			height = pick(options.height, chart.plotHeight),
			top = pick(options.top, chart.plotTop),
			left = pick(options.left, chart.plotLeft + offsetLeft),
			percentRegex = /%$/;

		// Check for percentage based input values
		if (percentRegex.test(height)) {
			height = parseInt(height, 10) / 100 * chart.plotHeight;
		}
		if (percentRegex.test(top)) {
			top = parseInt(top, 10) / 100 * chart.plotHeight + chart.plotTop;
		}

		// Expose basic values to use in Series object and navigator
		this.left = left;
		this.top = top;
		this.width = width;
		this.height = height;
		this.bottom = chart.chartHeight - height - top;
		this.right = chart.chartWidth - width - left;

		// Direction agnostic properties
		this.len = mathMax(horiz ? width : height, 0); // mathMax fixes #905
		this.pos = horiz ? left : top; // distance from SVG origin
	},

	/**
	 * Get the actual axis extremes
	 */
	getExtremes: function () {
		var axis = this,
			isLog = axis.isLog;

		return {
			min: isLog ? correctFloat(lin2log(axis.min)) : axis.min,
			max: isLog ? correctFloat(lin2log(axis.max)) : axis.max,
			dataMin: axis.dataMin,
			dataMax: axis.dataMax,
			userMin: axis.userMin,
			userMax: axis.userMax
		};
	},

	/**
	 * Get the zero plane either based on zero or on the min or max value.
	 * Used in bar and area plots
	 */
	getThreshold: function (threshold) {
		var axis = this,
			isLog = axis.isLog;

		var realMin = isLog ? lin2log(axis.min) : axis.min,
			realMax = isLog ? lin2log(axis.max) : axis.max;

		if (realMin > threshold || threshold === null) {
			threshold = realMin;
		} else if (realMax < threshold) {
			threshold = realMax;
		}

		return axis.translate(threshold, 0, 1, 0, 1);
	},

	/**
	 * Compute auto alignment for the axis label based on which side the axis is on
	 * and the given rotation for the label
	 */
	autoLabelAlign: function (rotation) {
		var ret,
			angle = (pick(rotation, 0) - (this.side * 90) + 720) % 360;

		if (angle > 15 && angle < 165) {
			ret = 'right';
		} else if (angle > 195 && angle < 345) {
			ret = 'left';
		} else {
			ret = 'center';
		}
		return ret;
	},

	/**
	 * Render the tick labels to a preliminary position to get their sizes
	 */
	getOffset: function () {
		var axis = this,
			chart = axis.chart,
			renderer = chart.renderer,
			options = axis.options,
			tickPositions = axis.tickPositions,
			ticks = axis.ticks,
			horiz = axis.horiz,
			side = axis.side,
			invertedSide = chart.inverted ? [1, 0, 3, 2][side] : side,
			hasData,
			showAxis,
			titleOffset = 0,
			titleOffsetOption,
			titleMargin = 0,
			axisTitleOptions = options.title,
			labelOptions = options.labels,
			labelOffset = 0, // reset
			labelOffsetPadded,
			axisOffset = chart.axisOffset,
			clipOffset = chart.clipOffset,
			directionFactor = [-1, 1, 1, -1][side],
			n,
			i,
			autoStaggerLines = 1,
			maxStaggerLines = pick(labelOptions.maxStaggerLines, 5),
			sortedPositions,
			lastRight,
			overlap,
			pos,
			bBox,
			x,
			w,
			lineNo,
			lineHeightCorrection;

		// For reuse in Axis.render
		axis.hasData = hasData = (axis.hasVisibleSeries || (defined(axis.min) && defined(axis.max) && !!tickPositions));
		axis.showAxis = showAxis = hasData || pick(options.showEmpty, true);

		// Set/reset staggerLines
		axis.staggerLines = axis.horiz && labelOptions.staggerLines;

		// Create the axisGroup and gridGroup elements on first iteration
		if (!axis.axisGroup) {
			axis.gridGroup = renderer.g('grid')
				.attr({ zIndex: options.gridZIndex || 1 })
				.add();
			axis.axisGroup = renderer.g('axis')
				.attr({ zIndex: options.zIndex || 2 })
				.add();
			axis.labelGroup = renderer.g('axis-labels')
				.attr({ zIndex: labelOptions.zIndex || 7 })
				.addClass(PREFIX + axis.coll.toLowerCase() + '-labels')
				.add();
		}

		if (hasData || axis.isLinked) {

			// Set the explicit or automatic label alignment
			axis.labelAlign = pick(labelOptions.align || axis.autoLabelAlign(labelOptions.rotation));

			// Generate ticks
			each(tickPositions, function (pos) {
				if (!ticks[pos]) {
					ticks[pos] = new Tick(axis, pos);
				} else {
					ticks[pos].addLabel(); // update labels depending on tick interval
				}
			});

			// Handle automatic stagger lines
			if (axis.horiz && !axis.staggerLines && maxStaggerLines && !labelOptions.rotation) {
				sortedPositions = axis.reversed ? [].concat(tickPositions).reverse() : tickPositions;
				while (autoStaggerLines < maxStaggerLines) {
					lastRight = [];
					overlap = false;

					for (i = 0; i < sortedPositions.length; i++) {
						pos = sortedPositions[i];
						bBox = ticks[pos].label && ticks[pos].label.getBBox();
						w = bBox ? bBox.width : 0;
						lineNo = i % autoStaggerLines;

						if (w) {
							x = axis.translate(pos); // don't handle log
							if (lastRight[lineNo] !== UNDEFINED && x < lastRight[lineNo]) {
								overlap = true;
							}
							lastRight[lineNo] = x + w;
						}
					}
					if (overlap) {
						autoStaggerLines++;
					} else {
						break;
					}
				}

				if (autoStaggerLines > 1) {
					axis.staggerLines = autoStaggerLines;
				}
			}


			each(tickPositions, function (pos) {
				// left side must be align: right and right side must have align: left for labels
				if (side === 0 || side === 2 || { 1: 'left', 3: 'right' }[side] === axis.labelAlign) {

					// get the highest offset
					labelOffset = mathMax(
						ticks[pos].getLabelSize(),
						labelOffset
					);
				}
			});

			if (axis.staggerLines) {
				labelOffset *= axis.staggerLines;
				axis.labelOffset = labelOffset;
			}


		} else { // doesn't have data
			for (n in ticks) {
				ticks[n].destroy();
				delete ticks[n];
			}
		}

		if (axisTitleOptions && axisTitleOptions.text && axisTitleOptions.enabled !== false) {
			if (!axis.axisTitle) {
				axis.axisTitle = renderer.text(
					axisTitleOptions.text,
					0,
					0,
					axisTitleOptions.useHTML
				)
				.attr({
					zIndex: 7,
					rotation: axisTitleOptions.rotation || 0,
					align:
						axisTitleOptions.textAlign ||
						{ low: 'left', middle: 'center', high: 'right' }[axisTitleOptions.align]
				})
				.addClass(PREFIX + this.coll.toLowerCase() + '-title')
				.css(axisTitleOptions.style)
				.add(axis.axisGroup);
				axis.axisTitle.isNew = true;
			}

			if (showAxis) {
				titleOffset = axis.axisTitle.getBBox()[horiz ? 'height' : 'width'];
				titleOffsetOption = axisTitleOptions.offset;
				titleMargin = defined(titleOffsetOption) ? 0 : pick(axisTitleOptions.margin, horiz ? 5 : 10);
			}

			// hide or show the title depending on whether showEmpty is set
			axis.axisTitle[showAxis ? 'show' : 'hide']();
		}

		// handle automatic or user set offset
		axis.offset = directionFactor * pick(options.offset, axisOffset[side]);

		lineHeightCorrection = side === 2 ? axis.tickBaseline : 0;
		labelOffsetPadded = labelOffset + titleMargin +
			(labelOffset && (directionFactor * (horiz ? pick(labelOptions.y, axis.tickBaseline + 8) : labelOptions.x) - lineHeightCorrection));
		axis.axisTitleMargin = pick(titleOffsetOption, labelOffsetPadded);

		axisOffset[side] = mathMax(
			axisOffset[side],
			axis.axisTitleMargin + titleOffset + directionFactor * axis.offset,
			labelOffsetPadded // #3027
		);
		clipOffset[invertedSide] = mathMax(clipOffset[invertedSide], mathFloor(options.lineWidth / 2) * 2);
	},

	/**
	 * Get the path for the axis line
	 */
	getLinePath: function (lineWidth) {
		var chart = this.chart,
			opposite = this.opposite,
			offset = this.offset,
			horiz = this.horiz,
			lineLeft = this.left + (opposite ? this.width : 0) + offset,
			lineTop = chart.chartHeight - this.bottom - (opposite ? this.height : 0) + offset;

		if (opposite) {
			lineWidth *= -1; // crispify the other way - #1480, #1687
		}

		return chart.renderer.crispLine([
				M,
				horiz ?
					this.left :
					lineLeft,
				horiz ?
					lineTop :
					this.top,
				L,
				horiz ?
					chart.chartWidth - this.right :
					lineLeft,
				horiz ?
					lineTop :
					chart.chartHeight - this.bottom
			], lineWidth);
	},

	/**
	 * Position the title
	 */
	getTitlePosition: function () {
		// compute anchor points for each of the title align options
		var horiz = this.horiz,
			axisLeft = this.left,
			axisTop = this.top,
			axisLength = this.len,
			axisTitleOptions = this.options.title,
			margin = horiz ? axisLeft : axisTop,
			opposite = this.opposite,
			offset = this.offset,
			fontSize = pInt(axisTitleOptions.style.fontSize || 12),

			// the position in the length direction of the axis
			alongAxis = {
				low: margin + (horiz ? 0 : axisLength),
				middle: margin + axisLength / 2,
				high: margin + (horiz ? axisLength : 0)
			}[axisTitleOptions.align],

			// the position in the perpendicular direction of the axis
			offAxis = (horiz ? axisTop + this.height : axisLeft) +
				(horiz ? 1 : -1) * // horizontal axis reverses the margin
				(opposite ? -1 : 1) * // so does opposite axes
				this.axisTitleMargin +
				(this.side === 2 ? fontSize : 0);

		return {
			x: horiz ?
				alongAxis :
				offAxis + (opposite ? this.width : 0) + offset +
					(axisTitleOptions.x || 0), // x
			y: horiz ?
				offAxis - (opposite ? this.height : 0) + offset :
				alongAxis + (axisTitleOptions.y || 0) // y
		};
	},

	/**
	 * Render the axis
	 */
	render: function () {
		var axis = this,
			horiz = axis.horiz,
			reversed = axis.reversed,
			chart = axis.chart,
			renderer = chart.renderer,
			options = axis.options,
			isLog = axis.isLog,
			isLinked = axis.isLinked,
			tickPositions = axis.tickPositions,
			sortedPositions,
			axisTitle = axis.axisTitle,
			ticks = axis.ticks,
			minorTicks = axis.minorTicks,
			alternateBands = axis.alternateBands,
			stackLabelOptions = options.stackLabels,
			alternateGridColor = options.alternateGridColor,
			tickmarkOffset = axis.tickmarkOffset,
			lineWidth = options.lineWidth,
			linePath,
			hasRendered = chart.hasRendered,
			slideInTicks = hasRendered && defined(axis.oldMin) && !isNaN(axis.oldMin),
			hasData = axis.hasData,
			showAxis = axis.showAxis,
			from,
			overflow = options.labels.overflow,
			justifyLabels = axis.justifyLabels = horiz && overflow !== false,
			to;

		// Reset
		axis.labelEdge.length = 0;
		axis.justifyToPlot = overflow === 'justify';

		// Mark all elements inActive before we go over and mark the active ones
		each([ticks, minorTicks, alternateBands], function (coll) {
			var pos;
			for (pos in coll) {
				coll[pos].isActive = false;
			}
		});

		// If the series has data draw the ticks. Else only the line and title
		if (hasData || isLinked) {

			// minor ticks
			if (axis.minorTickInterval && !axis.categories) {
				each(axis.getMinorTickPositions(), function (pos) {
					if (!minorTicks[pos]) {
						minorTicks[pos] = new Tick(axis, pos, 'minor');
					}

					// render new ticks in old position
					if (slideInTicks && minorTicks[pos].isNew) {
						minorTicks[pos].render(null, true);
					}

					minorTicks[pos].render(null, false, 1);
				});
			}

			// Major ticks. Pull out the first item and render it last so that
			// we can get the position of the neighbour label. #808.
			if (tickPositions.length) { // #1300
				sortedPositions = tickPositions.slice();
				if ((horiz && reversed) || (!horiz && !reversed)) {
					sortedPositions.reverse();
				}
				if (justifyLabels) {
					sortedPositions = sortedPositions.slice(1).concat([sortedPositions[0]]);
				}
				each(sortedPositions, function (pos, i) {

					// Reorganize the indices
					if (justifyLabels) {
						i = (i === sortedPositions.length - 1) ? 0 : i + 1;
					}

					// linked axes need an extra check to find out if
					if (!isLinked || (pos >= axis.min && pos <= axis.max)) {

						if (!ticks[pos]) {
							ticks[pos] = new Tick(axis, pos);
						}

						// render new ticks in old position
						if (slideInTicks && ticks[pos].isNew) {
							ticks[pos].render(i, true, 0.1);
						}

						ticks[pos].render(i);
					}

				});
				// In a categorized axis, the tick marks are displayed between labels. So
				// we need to add a tick mark and grid line at the left edge of the X axis.
				if (tickmarkOffset && axis.min === 0) {
					if (!ticks[-1]) {
						ticks[-1] = new Tick(axis, -1, null, true);
					}
					ticks[-1].render(-1);
				}

			}

			// alternate grid color
			if (alternateGridColor) {
				each(tickPositions, function (pos, i) {
					if (i % 2 === 0 && pos < axis.max) {
						if (!alternateBands[pos]) {
							alternateBands[pos] = new Highcharts.PlotLineOrBand(axis);
						}
						from = pos + tickmarkOffset; // #949
						to = tickPositions[i + 1] !== UNDEFINED ? tickPositions[i + 1] + tickmarkOffset : axis.max;
						alternateBands[pos].options = {
							from: isLog ? lin2log(from) : from,
							to: isLog ? lin2log(to) : to,
							color: alternateGridColor
						};
						alternateBands[pos].render();
						alternateBands[pos].isActive = true;
					}
				});
			}

			// custom plot lines and bands
			if (!axis._addedPlotLB) { // only first time
				each((options.plotLines || []).concat(options.plotBands || []), function (plotLineOptions) {
					axis.addPlotBandOrLine(plotLineOptions);
				});
				axis._addedPlotLB = true;
			}

		} // end if hasData

		// Remove inactive ticks
		each([ticks, minorTicks, alternateBands], function (coll) {
			var pos,
				i,
				forDestruction = [],
				delay = globalAnimation ? globalAnimation.duration || 500 : 0,
				destroyInactiveItems = function () {
					i = forDestruction.length;
					while (i--) {
						// When resizing rapidly, the same items may be destroyed in different timeouts,
						// or the may be reactivated
						if (coll[forDestruction[i]] && !coll[forDestruction[i]].isActive) {
							coll[forDestruction[i]].destroy();
							delete coll[forDestruction[i]];
						}
					}

				};

			for (pos in coll) {

				if (!coll[pos].isActive) {
					// Render to zero opacity
					coll[pos].render(pos, false, 0);
					coll[pos].isActive = false;
					forDestruction.push(pos);
				}
			}

			// When the objects are finished fading out, destroy them
			if (coll === alternateBands || !chart.hasRendered || !delay) {
				destroyInactiveItems();
			} else if (delay) {
				setTimeout(destroyInactiveItems, delay);
			}
		});

		// Static items. As the axis group is cleared on subsequent calls
		// to render, these items are added outside the group.
		// axis line
		if (lineWidth) {
			linePath = axis.getLinePath(lineWidth);
			if (!axis.axisLine) {
				axis.axisLine = renderer.path(linePath)
					.attr({
						stroke: options.lineColor,
						'stroke-width': lineWidth,
						zIndex: 7
					})
					.add(axis.axisGroup);
			} else {
				axis.axisLine.animate({ d: linePath });
			}

			// show or hide the line depending on options.showEmpty
			axis.axisLine[showAxis ? 'show' : 'hide']();
		}

		if (axisTitle && showAxis) {

			axisTitle[axisTitle.isNew ? 'attr' : 'animate'](
				axis.getTitlePosition()
			);
			axisTitle.isNew = false;
		}

		// Stacked totals:
		if (stackLabelOptions && stackLabelOptions.enabled) {
			axis.renderStackTotals();
		}
		// End stacked totals

		axis.isDirty = false;
	},

	/**
	 * Redraw the axis to reflect changes in the data or axis extremes
	 */
	redraw: function () {

		// render the axis
		this.render();

		// move plot lines and bands
		each(this.plotLinesAndBands, function (plotLine) {
			plotLine.render();
		});

		// mark associated series as dirty and ready for redraw
		each(this.series, function (series) {
			series.isDirty = true;
		});

	},

	/**
	 * Destroys an Axis instance.
	 */
	destroy: function (keepEvents) {
		var axis = this,
			stacks = axis.stacks,
			stackKey,
			plotLinesAndBands = axis.plotLinesAndBands,
			i;

		// Remove the events
		if (!keepEvents) {
			removeEvent(axis);
		}

		// Destroy each stack total
		for (stackKey in stacks) {
			destroyObjectProperties(stacks[stackKey]);

			stacks[stackKey] = null;
		}

		// Destroy collections
		each([axis.ticks, axis.minorTicks, axis.alternateBands], function (coll) {
			destroyObjectProperties(coll);
		});
		i = plotLinesAndBands.length;
		while (i--) { // #1975
			plotLinesAndBands[i].destroy();
		}

		// Destroy local variables
		each(['stackTotalGroup', 'axisLine', 'axisTitle', 'axisGroup', 'cross', 'gridGroup', 'labelGroup'], function (prop) {
			if (axis[prop]) {
				axis[prop] = axis[prop].destroy();
			}
		});

		// Destroy crosshair
		if (this.cross) {
			this.cross.destroy();
		}
	},

	/**
	 * Draw the crosshair
	 */
	drawCrosshair: function (e, point) {
		if (!this.crosshair) { return; }// Do not draw crosshairs if you don't have too.

		if ((defined(point) || !pick(this.crosshair.snap, true)) === false) {
			this.hideCrosshair();
			return;
		}

		var path,
			options = this.crosshair,
			animation = options.animation,
			pos;

		// Get the path
		if (!pick(options.snap, true)) {
			pos = (this.horiz ? e.chartX - this.pos : this.len - e.chartY + this.pos);
		} else if (defined(point)) {
			/*jslint eqeq: true*/
			pos = (this.chart.inverted != this.horiz) ? point.plotX : this.len - point.plotY;
			/*jslint eqeq: false*/
		}

		if (this.isRadial) {
			path = this.getPlotLinePath(this.isXAxis ? point.x : pick(point.stackY, point.y));
		} else {
			path = this.getPlotLinePath(null, null, null, null, pos);
		}

		if (path === null) {
			this.hideCrosshair();
			return;
		}

		// Draw the cross
		if (this.cross) {
			this.cross
				.attr({ visibility: VISIBLE })[animation ? 'animate' : 'attr']({ d: path }, animation);
		} else {
			var attribs = {
				'stroke-width': options.width || 1,
				stroke: options.color || '#C0C0C0',
				zIndex: options.zIndex || 2
			};
			if (options.dashStyle) {
				attribs.dashstyle = options.dashStyle;
			}
			this.cross = this.chart.renderer.path(path).attr(attribs).add();
		}
	},

	/**
	 *	Hide the crosshair.
	 */
	hideCrosshair: function () {
		if (this.cross) {
			this.cross.hide();
		}
	}
}; // end Axis

extend(Axis.prototype, AxisPlotLineOrBandExtension);

/**
 * Set the tick positions to a time unit that makes sense, for example
 * on the first of each month or on every Monday. Return an array
 * with the time positions. Used in datetime axes as well as for grouping
 * data on a datetime axis.
 *
 * @param {Object} normalizedInterval The interval in axis values (ms) and the count
 * @param {Number} min The minimum in axis values
 * @param {Number} max The maximum in axis values
 * @param {Number} startOfWeek
 */
Axis.prototype.getTimeTicks = function (normalizedInterval, min, max, startOfWeek) {
	var tickPositions = [],
		i,
		higherRanks = {},
		useUTC = defaultOptions.global.useUTC,
		minYear, // used in months and years as a basis for Date.UTC()
		minDate = new Date(min - timezoneOffset),
		interval = normalizedInterval.unitRange,
		count = normalizedInterval.count;

	if (defined(min)) { // #1300
		if (interval >= timeUnits.second) { // second
			minDate.setMilliseconds(0);
			minDate.setSeconds(interval >= timeUnits.minute ? 0 :
				count * mathFloor(minDate.getSeconds() / count));
		}

		if (interval >= timeUnits.minute) { // minute
			minDate[setMinutes](interval >= timeUnits.hour ? 0 :
				count * mathFloor(minDate[getMinutes]() / count));
		}

		if (interval >= timeUnits.hour) { // hour
			minDate[setHours](interval >= timeUnits.day ? 0 :
				count * mathFloor(minDate[getHours]() / count));
		}

		if (interval >= timeUnits.day) { // day
			minDate[setDate](interval >= timeUnits.month ? 1 :
				count * mathFloor(minDate[getDate]() / count));
		}

		if (interval >= timeUnits.month) { // month
			minDate[setMonth](interval >= timeUnits.year ? 0 :
				count * mathFloor(minDate[getMonth]() / count));
			minYear = minDate[getFullYear]();
		}

		if (interval >= timeUnits.year) { // year
			minYear -= minYear % count;
			minDate[setFullYear](minYear);
		}

		// week is a special case that runs outside the hierarchy
		if (interval === timeUnits.week) {
			// get start of current week, independent of count
			minDate[setDate](minDate[getDate]() - minDate[getDay]() +
				pick(startOfWeek, 1));
		}


		// get tick positions
		i = 1;
		if (timezoneOffset) {
			minDate = new Date(minDate.getTime() + timezoneOffset);
		}
		minYear = minDate[getFullYear]();
		var time = minDate.getTime(),
			minMonth = minDate[getMonth](),
			minDateDate = minDate[getDate](),
			localTimezoneOffset = (timeUnits.day +
					(useUTC ? timezoneOffset : minDate.getTimezoneOffset() * 60 * 1000)
				) % timeUnits.day; // #950, #3359

		// iterate and add tick positions at appropriate values
		while (time < max) {
			tickPositions.push(time);

			// if the interval is years, use Date.UTC to increase years
			if (interval === timeUnits.year) {
				time = makeTime(minYear + i * count, 0);

			// if the interval is months, use Date.UTC to increase months
			} else if (interval === timeUnits.month) {
				time = makeTime(minYear, minMonth + i * count);

			// if we're using global time, the interval is not fixed as it jumps
			// one hour at the DST crossover
			} else if (!useUTC && (interval === timeUnits.day || interval === timeUnits.week)) {
				time = makeTime(minYear, minMonth, minDateDate +
					i * count * (interval === timeUnits.day ? 1 : 7));

			// else, the interval is fixed and we use simple addition
			} else {
				time += interval * count;
			}

			i++;
		}

		// push the last time
		tickPositions.push(time);


		// mark new days if the time is dividible by day (#1649, #1760)
		each(grep(tickPositions, function (time) {
			return interval <= timeUnits.hour && time % timeUnits.day === localTimezoneOffset;
		}), function (time) {
			higherRanks[time] = 'day';
		});
	}


	// record information on the chosen unit - for dynamic label formatter
	tickPositions.info = extend(normalizedInterval, {
		higherRanks: higherRanks,
		totalRange: interval * count
	});

	return tickPositions;
};

/**
 * Get a normalized tick interval for dates. Returns a configuration object with
 * unit range (interval), count and name. Used to prepare data for getTimeTicks.
 * Previously this logic was part of getTimeTicks, but as getTimeTicks now runs
 * of segments in stock charts, the normalizing logic was extracted in order to
 * prevent it for running over again for each segment having the same interval.
 * #662, #697.
 */
Axis.prototype.normalizeTimeTickInterval = function (tickInterval, unitsOption) {
	var units = unitsOption || [[
				'millisecond', // unit name
				[1, 2, 5, 10, 20, 25, 50, 100, 200, 500] // allowed multiples
			], [
				'second',
				[1, 2, 5, 10, 15, 30]
			], [
				'minute',
				[1, 2, 5, 10, 15, 30]
			], [
				'hour',
				[1, 2, 3, 4, 6, 8, 12]
			], [
				'day',
				[1, 2]
			], [
				'week',
				[1, 2]
			], [
				'month',
				[1, 2, 3, 4, 6]
			], [
				'year',
				null
			]],
		unit = units[units.length - 1], // default unit is years
		interval = timeUnits[unit[0]],
		multiples = unit[1],
		count,
		i;

	// loop through the units to find the one that best fits the tickInterval
	for (i = 0; i < units.length; i++) {
		unit = units[i];
		interval = timeUnits[unit[0]];
		multiples = unit[1];


		if (units[i + 1]) {
			// lessThan is in the middle between the highest multiple and the next unit.
			var lessThan = (interval * multiples[multiples.length - 1] +
						timeUnits[units[i + 1][0]]) / 2;

			// break and keep the current unit
			if (tickInterval <= lessThan) {
				break;
			}
		}
	}

	// prevent 2.5 years intervals, though 25, 250 etc. are allowed
	if (interval === timeUnits.year && tickInterval < 5 * interval) {
		multiples = [1, 2, 5];
	}

	// get the count
	count = normalizeTickInterval(
		tickInterval / interval,
		multiples,
		unit[0] === 'year' ? mathMax(getMagnitude(tickInterval / interval), 1) : 1 // #1913, #2360
	);

	return {
		unitRange: interval,
		count: count,
		unitName: unit[0]
	};
};/**
 * Methods defined on the Axis prototype
 */

/**
 * Set the tick positions of a logarithmic axis
 */
Axis.prototype.getLogTickPositions = function (interval, min, max, minor) {
	var axis = this,
		options = axis.options,
		axisLength = axis.len,
		// Since we use this method for both major and minor ticks,
		// use a local variable and return the result
		positions = [];

	// Reset
	if (!minor) {
		axis._minorAutoInterval = null;
	}

	// First case: All ticks fall on whole logarithms: 1, 10, 100 etc.
	if (interval >= 0.5) {
		interval = mathRound(interval);
		positions = axis.getLinearTickPositions(interval, min, max);

	// Second case: We need intermediary ticks. For example
	// 1, 2, 4, 6, 8, 10, 20, 40 etc.
	} else if (interval >= 0.08) {
		var roundedMin = mathFloor(min),
			intermediate,
			i,
			j,
			len,
			pos,
			lastPos,
			break2;

		if (interval > 0.3) {
			intermediate = [1, 2, 4];
		} else if (interval > 0.15) { // 0.2 equals five minor ticks per 1, 10, 100 etc
			intermediate = [1, 2, 4, 6, 8];
		} else { // 0.1 equals ten minor ticks per 1, 10, 100 etc
			intermediate = [1, 2, 3, 4, 5, 6, 7, 8, 9];
		}

		for (i = roundedMin; i < max + 1 && !break2; i++) {
			len = intermediate.length;
			for (j = 0; j < len && !break2; j++) {
				pos = log2lin(lin2log(i) * intermediate[j]);
				if (pos > min && (!minor || lastPos <= max) && lastPos !== UNDEFINED) { // #1670, lastPos is #3113
					positions.push(lastPos);
				}

				if (lastPos > max) {
					break2 = true;
				}
				lastPos = pos;
			}
		}

	// Third case: We are so deep in between whole logarithmic values that
	// we might as well handle the tick positions like a linear axis. For
	// example 1.01, 1.02, 1.03, 1.04.
	} else {
		var realMin = lin2log(min),
			realMax = lin2log(max),
			tickIntervalOption = options[minor ? 'minorTickInterval' : 'tickInterval'],
			filteredTickIntervalOption = tickIntervalOption === 'auto' ? null : tickIntervalOption,
			tickPixelIntervalOption = options.tickPixelInterval / (minor ? 5 : 1),
			totalPixelLength = minor ? axisLength / axis.tickPositions.length : axisLength;

		interval = pick(
			filteredTickIntervalOption,
			axis._minorAutoInterval,
			(realMax - realMin) * tickPixelIntervalOption / (totalPixelLength || 1)
		);

		interval = normalizeTickInterval(
			interval,
			null,
			getMagnitude(interval)
		);

		positions = map(axis.getLinearTickPositions(
			interval,
			realMin,
			realMax
		), log2lin);

		if (!minor) {
			axis._minorAutoInterval = interval / 5;
		}
	}

	// Set the axis-level tickInterval variable
	if (!minor) {
		axis.tickInterval = interval;
	}
	return positions;
};/**
 * The tooltip object
 * @param {Object} chart The chart instance
 * @param {Object} options Tooltip options
 */
var Tooltip = Highcharts.Tooltip = function () {
	this.init.apply(this, arguments);
};

Tooltip.prototype = {

	init: function (chart, options) {

		var borderWidth = options.borderWidth,
			style = options.style,
			padding = pInt(style.padding);

		// Save the chart and options
		this.chart = chart;
		this.options = options;

		// Keep track of the current series
		//this.currentSeries = UNDEFINED;

		// List of crosshairs
		this.crosshairs = [];

		// Current values of x and y when animating
		this.now = { x: 0, y: 0 };

		// The tooltip is initially hidden
		this.isHidden = true;


		// create the label
		this.label = chart.renderer.label('', 0, 0, options.shape || 'callout', null, null, options.useHTML, null, 'tooltip')
			.attr({
				padding: padding,
				fill: options.backgroundColor,
				'stroke-width': borderWidth,
				r: options.borderRadius,
				zIndex: 8
			})
			.css(style)
			.css({ padding: 0 }) // Remove it from VML, the padding is applied as an attribute instead (#1117)
			.add()
			.attr({ y: -9999 }); // #2301, #2657

		// When using canVG the shadow shows up as a gray circle
		// even if the tooltip is hidden.
		if (!useCanVG) {
			this.label.shadow(options.shadow);
		}

		// Public property for getting the shared state.
		this.shared = options.shared;
	},

	/**
	 * Destroy the tooltip and its elements.
	 */
	destroy: function () {
		// Destroy and clear local variables
		if (this.label) {
			this.label = this.label.destroy();
		}
		clearTimeout(this.hideTimer);
		clearTimeout(this.tooltipTimeout);
	},

	/**
	 * Provide a soft movement for the tooltip
	 *
	 * @param {Number} x
	 * @param {Number} y
	 * @private
	 */
	move: function (x, y, anchorX, anchorY) {
		var tooltip = this,
			now = tooltip.now,
			animate = tooltip.options.animation !== false && !tooltip.isHidden &&
				// When we get close to the target position, abort animation and land on the right place (#3056)
				(mathAbs(x - now.x) > 1 || mathAbs(y - now.y) > 1),
			skipAnchor = tooltip.followPointer || tooltip.len > 1;

		// Get intermediate values for animation
		extend(now, {
			x: animate ? (2 * now.x + x) / 3 : x,
			y: animate ? (now.y + y) / 2 : y,
			anchorX: skipAnchor ? UNDEFINED : animate ? (2 * now.anchorX + anchorX) / 3 : anchorX,
			anchorY: skipAnchor ? UNDEFINED : animate ? (now.anchorY + anchorY) / 2 : anchorY
		});

		// Move to the intermediate value
		tooltip.label.attr(now);


		// Run on next tick of the mouse tracker
		if (animate) {

			// Never allow two timeouts
			clearTimeout(this.tooltipTimeout);

			// Set the fixed interval ticking for the smooth tooltip
			this.tooltipTimeout = setTimeout(function () {
				// The interval function may still be running during destroy, so check that the chart is really there before calling.
				if (tooltip) {
					tooltip.move(x, y, anchorX, anchorY);
				}
			}, 32);

		}
	},

	/**
	 * Hide the tooltip
	 */
	hide: function (delay) {
		var tooltip = this,
			hoverPoints;

		clearTimeout(this.hideTimer); // disallow duplicate timers (#1728, #1766)
		if (!this.isHidden) {
			hoverPoints = this.chart.hoverPoints;

			this.hideTimer = setTimeout(function () {
				tooltip.label.fadeOut();
				tooltip.isHidden = true;
			}, pick(delay, this.options.hideDelay, 500));

			// hide previous hoverPoints and set new
			if (hoverPoints) {
				each(hoverPoints, function (point) {
					point.setState();
				});
			}

			this.chart.hoverPoints = null;
		}
	},

	/**
	 * Extendable method to get the anchor position of the tooltip
	 * from a point or set of points
	 */
	getAnchor: function (points, mouseEvent) {
		var ret,
			chart = this.chart,
			inverted = chart.inverted,
			plotTop = chart.plotTop,
			plotX = 0,
			plotY = 0,
			yAxis;

		points = splat(points);

		// Pie uses a special tooltipPos
		ret = points[0].tooltipPos;

		// When tooltip follows mouse, relate the position to the mouse
		if (this.followPointer && mouseEvent) {
			if (mouseEvent.chartX === UNDEFINED) {
				mouseEvent = chart.pointer.normalize(mouseEvent);
			}
			ret = [
				mouseEvent.chartX - chart.plotLeft,
				mouseEvent.chartY - plotTop
			];
		}
		// When shared, use the average position
		if (!ret) {
			each(points, function (point) {
				yAxis = point.series.yAxis;
				plotX += point.plotX;
				plotY += (point.plotLow ? (point.plotLow + point.plotHigh) / 2 : point.plotY) +
					(!inverted && yAxis ? yAxis.top - plotTop : 0); // #1151
			});

			plotX /= points.length;
			plotY /= points.length;

			ret = [
				inverted ? chart.plotWidth - plotY : plotX,
				this.shared && !inverted && points.length > 1 && mouseEvent ?
					mouseEvent.chartY - plotTop : // place shared tooltip next to the mouse (#424)
					inverted ? chart.plotHeight - plotX : plotY
			];
		}

		return map(ret, mathRound);
	},

	/**
	 * Place the tooltip in a chart without spilling over
	 * and not covering the point it self.
	 */
	getPosition: function (boxWidth, boxHeight, point) {

		var chart = this.chart,
			distance = this.distance,
			ret = {},
			swapped,
			first = ['y', chart.chartHeight, boxHeight, point.plotY + chart.plotTop],
			second = ['x', chart.chartWidth, boxWidth, point.plotX + chart.plotLeft],
			// The far side is right or bottom
			preferFarSide = point.ttBelow || (chart.inverted && !point.negative) || (!chart.inverted && point.negative),
			/**
			 * Handle the preferred dimension. When the preferred dimension is tooltip
			 * on top or bottom of the point, it will look for space there.
			 */
			firstDimension = function (dim, outerSize, innerSize, point) {
				var roomLeft = innerSize < point - distance,
					roomRight = point + distance + innerSize < outerSize,
					alignedLeft = point - distance - innerSize,
					alignedRight = point + distance;

				if (preferFarSide && roomRight) {
					ret[dim] = alignedRight;
				} else if (!preferFarSide && roomLeft) {
					ret[dim] = alignedLeft;
				} else if (roomLeft) {
					ret[dim] = alignedLeft;
				} else if (roomRight) {
					ret[dim] = alignedRight;
				} else {
					return false;
				}
			},
			/**
			 * Handle the secondary dimension. If the preferred dimension is tooltip
			 * on top or bottom of the point, the second dimension is to align the tooltip
			 * above the point, trying to align center but allowing left or right
			 * align within the chart box.
			 */
			secondDimension = function (dim, outerSize, innerSize, point) {
				// Too close to the edge, return false and swap dimensions
				if (point < distance || point > outerSize - distance) {
					return false;

				// Align left/top
				} else if (point < innerSize / 2) {
					ret[dim] = 1;
				// Align right/bottom
				} else if (point > outerSize - innerSize / 2) {
					ret[dim] = outerSize - innerSize - 2;
				// Align center
				} else {
					ret[dim] = point - innerSize / 2;
				}
			},
			/**
			 * Swap the dimensions
			 */
			swap = function (count) {
				var temp = first;
				first = second;
				second = temp;
				swapped = count;
			},
			run = function () {
				if (firstDimension.apply(0, first) !== false) {
					if (secondDimension.apply(0, second) === false && !swapped) {
						swap(true);
						run();
					}
				} else if (!swapped) {
					swap(true);
					run();
				} else {
					ret.x = ret.y = 0;
				}
			};

		// Under these conditions, prefer the tooltip on the side of the point
		if (chart.inverted || this.len > 1) {
			swap();
		}
		run();

		return ret;

	},

	/**
	 * In case no user defined formatter is given, this will be used. Note that the context
	 * here is an object holding point, series, x, y etc.
	 */
	defaultFormatter: function (tooltip) {
		var items = this.points || splat(this),
			series = items[0].series,
			s;

		// build the header
		s = [tooltip.tooltipHeaderFormatter(items[0])];

		// build the values
		each(items, function (item) {
			series = item.series;
			s.push((series.tooltipFormatter && series.tooltipFormatter(item)) ||
				item.point.tooltipFormatter(series.tooltipOptions.pointFormat));
		});

		// footer
		s.push(tooltip.options.footerFormat || '');

		return s.join('');
	},

	/**
	 * Refresh the tooltip's text and position.
	 * @param {Object} point
	 */
	refresh: function (point, mouseEvent) {
		var tooltip = this,
			chart = tooltip.chart,
			label = tooltip.label,
			options = tooltip.options,
			x,
			y,
			anchor,
			textConfig = {},
			text,
			pointConfig = [],
			formatter = options.formatter || tooltip.defaultFormatter,
			hoverPoints = chart.hoverPoints,
			borderColor,
			shared = tooltip.shared,
			currentSeries;

		clearTimeout(this.hideTimer);

		// get the reference point coordinates (pie charts use tooltipPos)
		tooltip.followPointer = splat(point)[0].series.tooltipOptions.followPointer;
		anchor = tooltip.getAnchor(point, mouseEvent);
		x = anchor[0];
		y = anchor[1];

		// shared tooltip, array is sent over
		if (shared && !(point.series && point.series.noSharedTooltip)) {

			// hide previous hoverPoints and set new

			chart.hoverPoints = point;
			if (hoverPoints) {
				each(hoverPoints, function (point) {
					point.setState();
				});
			}

			each(point, function (item) {
				item.setState(HOVER_STATE);

				pointConfig.push(item.getLabelConfig());
			});

			textConfig = {
				x: point[0].category,
				y: point[0].y
			};
			textConfig.points = pointConfig;
			this.len = pointConfig.length;
			point = point[0];

		// single point tooltip
		} else {
			textConfig = point.getLabelConfig();
		}
		text = formatter.call(textConfig, tooltip);

		// register the current series
		currentSeries = point.series;
		this.distance = pick(currentSeries.tooltipOptions.distance, 16);

		// update the inner HTML
		if (text === false) {
			this.hide();
		} else {

			// show it
			if (tooltip.isHidden) {
				stop(label);
				label.attr('opacity', 1).show();
			}

			// update text
			label.attr({
				text: text
			});

			// set the stroke color of the box
			borderColor = options.borderColor || point.color || currentSeries.color || '#606060';
			label.attr({
				stroke: borderColor
			});

			tooltip.updatePosition({ plotX: x, plotY: y, negative: point.negative, ttBelow: point.ttBelow });

			this.isHidden = false;
		}
		fireEvent(chart, 'tooltipRefresh', {
				text: text,
				x: x + chart.plotLeft,
				y: y + chart.plotTop,
				borderColor: borderColor
			});
	},

	/**
	 * Find the new position and perform the move
	 */
	updatePosition: function (point) {
		var chart = this.chart,
			label = this.label,
			pos = (this.options.positioner || this.getPosition).call(
				this,
				label.width,
				label.height,
				point
			);

		// do the move
		this.move(
			mathRound(pos.x),
			mathRound(pos.y),
			point.plotX + chart.plotLeft,
			point.plotY + chart.plotTop
		);
	},


	/**
	 * Format the header of the tooltip
	 */
	tooltipHeaderFormatter: function (point) {
		var series = point.series,
			tooltipOptions = series.tooltipOptions,
			dateTimeLabelFormats = tooltipOptions.dateTimeLabelFormats,
			xDateFormat = tooltipOptions.xDateFormat,
			xAxis = series.xAxis,
			isDateTime = xAxis && xAxis.options.type === 'datetime' && isNumber(point.key),
			headerFormat = tooltipOptions.headerFormat,
			closestPointRange = xAxis && xAxis.closestPointRange,
			n;

		// Guess the best date format based on the closest point distance (#568)
		if (isDateTime && !xDateFormat) {
			if (closestPointRange) {
				for (n in timeUnits) {
					if (timeUnits[n] >= closestPointRange ||
							// If the point is placed every day at 23:59, we need to show
							// the minutes as well. This logic only works for time units less than
							// a day, since all higher time units are dividable by those. #2637.
							(timeUnits[n] <= timeUnits.day && point.key % timeUnits[n] > 0)) {
						xDateFormat = dateTimeLabelFormats[n];
						break;
					}
				}
			} else {
				xDateFormat = dateTimeLabelFormats.day;
			}

			xDateFormat = xDateFormat || dateTimeLabelFormats.year; // #2546, 2581

		}

		// Insert the header date format if any
		if (isDateTime && xDateFormat) {
			headerFormat = headerFormat.replace('{point.key}', '{point.key:' + xDateFormat + '}');
		}

		return format(headerFormat, {
			point: point,
			series: series
		});
	}
};

var hoverChartIndex;

// Global flag for touch support
hasTouch = doc.documentElement.ontouchstart !== UNDEFINED;

/**
 * The mouse tracker object. All methods starting with "on" are primary DOM event handlers.
 * Subsequent methods should be named differently from what they are doing.
 * @param {Object} chart The Chart instance
 * @param {Object} options The root options object
 */
var Pointer = Highcharts.Pointer = function (chart, options) {
	this.init(chart, options);
};

Pointer.prototype = {
	/**
	 * Initialize Pointer
	 */
	init: function (chart, options) {

		var chartOptions = options.chart,
			chartEvents = chartOptions.events,
			zoomType = useCanVG ? '' : chartOptions.zoomType,
			inverted = chart.inverted,
			zoomX,
			zoomY;

		// Store references
		this.options = options;
		this.chart = chart;

		// Zoom status
		this.zoomX = zoomX = /x/.test(zoomType);
		this.zoomY = zoomY = /y/.test(zoomType);
		this.zoomHor = (zoomX && !inverted) || (zoomY && inverted);
		this.zoomVert = (zoomY && !inverted) || (zoomX && inverted);
		this.hasZoom = zoomX || zoomY;

		// Do we need to handle click on a touch device?
		this.runChartClick = chartEvents && !!chartEvents.click;

		this.pinchDown = [];
		this.lastValidTouch = {};

		if (Highcharts.Tooltip && options.tooltip.enabled) {
			chart.tooltip = new Tooltip(chart, options.tooltip);
			this.followTouchMove = options.tooltip.followTouchMove;
		}

		this.setDOMEvents();
	},

	/**
	 * Add crossbrowser support for chartX and chartY
	 * @param {Object} e The event object in standard browsers
	 */
	normalize: function (e, chartPosition) {
		var chartX,
			chartY,
			ePos;

		// common IE normalizing
		e = e || window.event;

		// Framework specific normalizing (#1165)
		e = washMouseEvent(e);

		// More IE normalizing, needs to go after washMouseEvent
		if (!e.target) {
			e.target = e.srcElement;
		}

		// iOS (#2757)
		ePos = e.touches ?  (e.touches.length ? e.touches.item(0) : e.changedTouches[0]) : e;

		// Get mouse position
		if (!chartPosition) {
			this.chartPosition = chartPosition = offset(this.chart.container);
		}

		// chartX and chartY
		if (ePos.pageX === UNDEFINED) { // IE < 9. #886.
			chartX = mathMax(e.x, e.clientX - chartPosition.left); // #2005, #2129: the second case is
				// for IE10 quirks mode within framesets
			chartY = e.y;
		} else {
			chartX = ePos.pageX - chartPosition.left;
			chartY = ePos.pageY - chartPosition.top;
		}

		return extend(e, {
			chartX: mathRound(chartX),
			chartY: mathRound(chartY)
		});
	},

	/**
	 * Get the click position in terms of axis values.
	 *
	 * @param {Object} e A pointer event
	 */
	getCoordinates: function (e) {
		var coordinates = {
				xAxis: [],
				yAxis: []
			};

		each(this.chart.axes, function (axis) {
			coordinates[axis.isXAxis ? 'xAxis' : 'yAxis'].push({
				axis: axis,
				value: axis.toValue(e[axis.horiz ? 'chartX' : 'chartY'])
			});
		});
		return coordinates;
	},

	/**
	 * Return the index in the tooltipPoints array, corresponding to pixel position in
	 * the plot area.
	 */
	getIndex: function (e) {
		var chart = this.chart;
		return chart.inverted ?
			chart.plotHeight + chart.plotTop - e.chartY :
			e.chartX - chart.plotLeft;
	},

	/**
	 * With line type charts with a single tracker, get the point closest to the mouse.
	 * Run Point.onMouseOver and display tooltip for the point or points.
	 */
	runPointActions: function (e) {
		var pointer = this,
			chart = pointer.chart,
			series = chart.series,
			tooltip = chart.tooltip,
			followPointer,
			point,
			points,
			hoverPoint = chart.hoverPoint,
			hoverSeries = chart.hoverSeries,
			i,
			j,
			distance = chart.chartWidth,
			index = pointer.getIndex(e),
			anchor;

		// shared tooltip
		if (tooltip && pointer.options.tooltip.shared && !(hoverSeries && hoverSeries.noSharedTooltip)) {
			points = [];

			// loop over all series and find the ones with points closest to the mouse
			i = series.length;
			for (j = 0; j < i; j++) {
				if (series[j].visible &&
						series[j].options.enableMouseTracking !== false &&
						!series[j].noSharedTooltip && series[j].singularTooltips !== true && series[j].tooltipPoints.length) {
					point = series[j].tooltipPoints[index];
					if (point && point.series) { // not a dummy point, #1544
						point._dist = mathAbs(index - point.clientX);
						distance = mathMin(distance, point._dist);
						points.push(point);
					}
				}
			}
			// remove furthest points
			i = points.length;
			while (i--) {
				if (points[i]._dist > distance) {
					points.splice(i, 1);
				}
			}
			// refresh the tooltip if necessary
			if (points.length && (points[0].clientX !== pointer.hoverX)) {
				tooltip.refresh(points, e);
				pointer.hoverX = points[0].clientX;
			}
		}

		// Separate tooltip and general mouse events
		followPointer = hoverSeries && hoverSeries.tooltipOptions.followPointer;
		if (hoverSeries && hoverSeries.tracker && !followPointer) { // #2584, #2830

			// get the point
			point = hoverSeries.tooltipPoints[index];

			// a new point is hovered, refresh the tooltip
			if (point && point !== hoverPoint) {

				// trigger the events
				point.onMouseOver(e);

			}

		} else if (tooltip && followPointer && !tooltip.isHidden) {
			anchor = tooltip.getAnchor([{}], e);
			tooltip.updatePosition({ plotX: anchor[0], plotY: anchor[1] });
		}

		// Start the event listener to pick up the tooltip
		if (tooltip && !pointer._onDocumentMouseMove) {
			pointer._onDocumentMouseMove = function (e) {
				if (charts[hoverChartIndex]) {
					charts[hoverChartIndex].pointer.onDocumentMouseMove(e);
				}
			};
			addEvent(doc, 'mousemove', pointer._onDocumentMouseMove);
		}

		// Draw independent crosshairs
		each(chart.axes, function (axis) {
			axis.drawCrosshair(e, pick(point, hoverPoint));
		});
	},



	/**
	 * Reset the tracking by hiding the tooltip, the hover series state and the hover point
	 *
	 * @param allowMove {Boolean} Instead of destroying the tooltip altogether, allow moving it if possible
	 */
	reset: function (allowMove, delay) {
		var pointer = this,
			chart = pointer.chart,
			hoverSeries = chart.hoverSeries,
			hoverPoint = chart.hoverPoint,
			tooltip = chart.tooltip,
			tooltipPoints = tooltip && tooltip.shared ? chart.hoverPoints : hoverPoint;

		// Narrow in allowMove
		allowMove = allowMove && tooltip && tooltipPoints;

		// Check if the points have moved outside the plot area, #1003
		if (allowMove && splat(tooltipPoints)[0].plotX === UNDEFINED) {
			allowMove = false;
		}

		// Just move the tooltip, #349
		if (allowMove) {
			tooltip.refresh(tooltipPoints);
			if (hoverPoint) { // #2500
				hoverPoint.setState(hoverPoint.state, true);
			}

		// Full reset
		} else {

			if (hoverPoint) {
				hoverPoint.onMouseOut();
			}

			if (hoverSeries) {
				hoverSeries.onMouseOut();
			}

			if (tooltip) {
				tooltip.hide(delay);
			}

			if (pointer._onDocumentMouseMove) {
				removeEvent(doc, 'mousemove', pointer._onDocumentMouseMove);
				pointer._onDocumentMouseMove = null;
			}

			// Remove crosshairs
			each(chart.axes, function (axis) {
				axis.hideCrosshair();
			});

			pointer.hoverX = null;

		}
	},

	/**
	 * Scale series groups to a certain scale and translation
	 */
	scaleGroups: function (attribs, clip) {

		var chart = this.chart,
			seriesAttribs;

		// Scale each series
		each(chart.series, function (series) {
			seriesAttribs = attribs || series.getPlotBox(); // #1701
			if (series.xAxis && series.xAxis.zoomEnabled) {
				series.group.attr(seriesAttribs);
				if (series.markerGroup) {
					series.markerGroup.attr(seriesAttribs);
					series.markerGroup.clip(clip ? chart.clipRect : null);
				}
				if (series.dataLabelsGroup) {
					series.dataLabelsGroup.attr(seriesAttribs);
				}
			}
		});

		// Clip
		chart.clipRect.attr(clip || chart.clipBox);
	},

	/**
	 * Start a drag operation
	 */
	dragStart: function (e) {
		var chart = this.chart;

		// Record the start position
		chart.mouseIsDown = e.type;
		chart.cancelClick = false;
		chart.mouseDownX = this.mouseDownX = e.chartX;
		chart.mouseDownY = this.mouseDownY = e.chartY;
	},

	/**
	 * Perform a drag operation in response to a mousemove event while the mouse is down
	 */
	drag: function (e) {

		var chart = this.chart,
			chartOptions = chart.options.chart,
			chartX = e.chartX,
			chartY = e.chartY,
			zoomHor = this.zoomHor,
			zoomVert = this.zoomVert,
			plotLeft = chart.plotLeft,
			plotTop = chart.plotTop,
			plotWidth = chart.plotWidth,
			plotHeight = chart.plotHeight,
			clickedInside,
			size,
			mouseDownX = this.mouseDownX,
			mouseDownY = this.mouseDownY,
			panKey = chartOptions.panKey && e[chartOptions.panKey + 'Key'];

		// If the mouse is outside the plot area, adjust to cooordinates
		// inside to prevent the selection marker from going outside
		if (chartX < plotLeft) {
			chartX = plotLeft;
		} else if (chartX > plotLeft + plotWidth) {
			chartX = plotLeft + plotWidth;
		}

		if (chartY < plotTop) {
			chartY = plotTop;
		} else if (chartY > plotTop + plotHeight) {
			chartY = plotTop + plotHeight;
		}

		// determine if the mouse has moved more than 10px
		this.hasDragged = Math.sqrt(
			Math.pow(mouseDownX - chartX, 2) +
			Math.pow(mouseDownY - chartY, 2)
		);

		if (this.hasDragged > 10) {
			clickedInside = chart.isInsidePlot(mouseDownX - plotLeft, mouseDownY - plotTop);

			// make a selection
			if (chart.hasCartesianSeries && (this.zoomX || this.zoomY) && clickedInside && !panKey) {
				if (!this.selectionMarker) {
					this.selectionMarker = chart.renderer.rect(
						plotLeft,
						plotTop,
						zoomHor ? 1 : plotWidth,
						zoomVert ? 1 : plotHeight,
						0
					)
					.attr({
						fill: chartOptions.selectionMarkerFill || 'rgba(69,114,167,0.25)',
						zIndex: 7
					})
					.add();
				}
			}

			// adjust the width of the selection marker
			if (this.selectionMarker && zoomHor) {
				size = chartX - mouseDownX;
				this.selectionMarker.attr({
					width: mathAbs(size),
					x: (size > 0 ? 0 : size) + mouseDownX
				});
			}
			// adjust the height of the selection marker
			if (this.selectionMarker && zoomVert) {
				size = chartY - mouseDownY;
				this.selectionMarker.attr({
					height: mathAbs(size),
					y: (size > 0 ? 0 : size) + mouseDownY
				});
			}

			// panning
			if (clickedInside && !this.selectionMarker && chartOptions.panning) {
				chart.pan(e, chartOptions.panning);
			}
		}
	},

	/**
	 * On mouse up or touch end across the entire document, drop the selection.
	 */
	drop: function (e) {
		var chart = this.chart,
			hasPinched = this.hasPinched;

		if (this.selectionMarker) {
			var selectionData = {
					xAxis: [],
					yAxis: [],
					originalEvent: e.originalEvent || e
				},
				selectionBox = this.selectionMarker,
				selectionLeft = selectionBox.attr ? selectionBox.attr('x') : selectionBox.x,
				selectionTop = selectionBox.attr ? selectionBox.attr('y') : selectionBox.y,
				selectionWidth = selectionBox.attr ? selectionBox.attr('width') : selectionBox.width,
				selectionHeight = selectionBox.attr ? selectionBox.attr('height') : selectionBox.height,
				runZoom;

			// a selection has been made
			if (this.hasDragged || hasPinched) {

				// record each axis' min and max
				each(chart.axes, function (axis) {
					if (axis.zoomEnabled) {
						var horiz = axis.horiz,
							minPixelPadding = e.type === 'touchend' ? axis.minPixelPadding: 0, // #1207, #3075
							selectionMin = axis.toValue((horiz ? selectionLeft : selectionTop) + minPixelPadding),
							selectionMax = axis.toValue((horiz ? selectionLeft + selectionWidth : selectionTop + selectionHeight) - minPixelPadding);

						if (!isNaN(selectionMin) && !isNaN(selectionMax)) { // #859
							selectionData[axis.coll].push({
								axis: axis,
								min: mathMin(selectionMin, selectionMax), // for reversed axes,
								max: mathMax(selectionMin, selectionMax)
							});
							runZoom = true;
						}
					}
				});
				if (runZoom) {
					fireEvent(chart, 'selection', selectionData, function (args) {
						chart.zoom(extend(args, hasPinched ? { animation: false } : null));
					});
				}

			}
			this.selectionMarker = this.selectionMarker.destroy();

			// Reset scaling preview
			if (hasPinched) {
				this.scaleGroups();
			}
		}

		// Reset all
		if (chart) { // it may be destroyed on mouse up - #877
			css(chart.container, { cursor: chart._cursor });
			chart.cancelClick = this.hasDragged > 10; // #370
			chart.mouseIsDown = this.hasDragged = this.hasPinched = false;
			this.pinchDown = [];
		}
	},

	onContainerMouseDown: function (e) {

		e = this.normalize(e);

		// issue #295, dragging not always working in Firefox
		if (e.preventDefault) {
			e.preventDefault();
		}

		this.dragStart(e);
	},



	onDocumentMouseUp: function (e) {
		if (charts[hoverChartIndex]) {
			charts[hoverChartIndex].pointer.drop(e);
		}
	},

	/**
	 * Special handler for mouse move that will hide the tooltip when the mouse leaves the plotarea.
	 * Issue #149 workaround. The mouseleave event does not always fire.
	 */
	onDocumentMouseMove: function (e) {
		var chart = this.chart,
			chartPosition = this.chartPosition,
			hoverSeries = chart.hoverSeries;

		e = this.normalize(e, chartPosition);

		// If we're outside, hide the tooltip
		if (chartPosition && hoverSeries && !this.inClass(e.target, 'highcharts-tracker') &&
				!chart.isInsidePlot(e.chartX - chart.plotLeft, e.chartY - chart.plotTop)) {
			this.reset();
		}
	},

	/**
	 * When mouse leaves the container, hide the tooltip.
	 */
	onContainerMouseLeave: function () {
		var chart = charts[hoverChartIndex];
		if (chart) {
			chart.pointer.reset();
			chart.pointer.chartPosition = null; // also reset the chart position, used in #149 fix
		}
	},

	// The mousemove, touchmove and touchstart event handler
	onContainerMouseMove: function (e) {

		var chart = this.chart;

		hoverChartIndex = chart.index;

		e = this.normalize(e);
		e.returnValue = false; // #2251, #3224

		if (chart.mouseIsDown === 'mousedown') {
			this.drag(e);
		}

		// Show the tooltip and run mouse over events (#977)
		if ((this.inClass(e.target, 'highcharts-tracker') ||
				chart.isInsidePlot(e.chartX - chart.plotLeft, e.chartY - chart.plotTop)) && !chart.openMenu) {
			this.runPointActions(e);
		}
	},

	/**
	 * Utility to detect whether an element has, or has a parent with, a specific
	 * class name. Used on detection of tracker objects and on deciding whether
	 * hovering the tooltip should cause the active series to mouse out.
	 */
	inClass: function (element, className) {
		var elemClassName;
		while (element) {
			elemClassName = attr(element, 'class');
			if (elemClassName) {
				if (elemClassName.indexOf(className) !== -1) {
					return true;
				} else if (elemClassName.indexOf(PREFIX + 'container') !== -1) {
					return false;
				}
			}
			element = element.parentNode;
		}
	},

	onTrackerMouseOut: function (e) {
		var series = this.chart.hoverSeries,
			relatedTarget = e.relatedTarget || e.toElement,
			relatedSeries = relatedTarget && relatedTarget.point && relatedTarget.point.series; // #2499

		if (series && !series.options.stickyTracking && !this.inClass(relatedTarget, PREFIX + 'tooltip') &&
				relatedSeries !== series) {
			series.onMouseOut();
		}
	},

	onContainerClick: function (e) {
		var chart = this.chart,
			hoverPoint = chart.hoverPoint,
			plotLeft = chart.plotLeft,
			plotTop = chart.plotTop;

		e = this.normalize(e);
		e.cancelBubble = true; // IE specific

		if (!chart.cancelClick) {

			// On tracker click, fire the series and point events. #783, #1583
			if (hoverPoint && this.inClass(e.target, PREFIX + 'tracker')) {

				// the series click event
				fireEvent(hoverPoint.series, 'click', extend(e, {
					point: hoverPoint
				}));

				// the point click event
				if (chart.hoverPoint) { // it may be destroyed (#1844)
					hoverPoint.firePointEvent('click', e);
				}

			// When clicking outside a tracker, fire a chart event
			} else {
				extend(e, this.getCoordinates(e));

				// fire a click event in the chart
				if (chart.isInsidePlot(e.chartX - plotLeft, e.chartY - plotTop)) {
					fireEvent(chart, 'click', e);
				}
			}


		}
	},

	/**
	 * Set the JS DOM events on the container and document. This method should contain
	 * a one-to-one assignment between methods and their handlers. Any advanced logic should
	 * be moved to the handler reflecting the event's name.
	 */
	setDOMEvents: function () {

		var pointer = this,
			container = pointer.chart.container;

		container.onmousedown = function (e) {
			pointer.onContainerMouseDown(e);
		};
		container.onmousemove = function (e) {
			pointer.onContainerMouseMove(e);
		};
		container.onclick = function (e) {
			pointer.onContainerClick(e);
		};
		addEvent(container, 'mouseleave', pointer.onContainerMouseLeave);
		if (chartCount === 1) {
			addEvent(doc, 'mouseup', pointer.onDocumentMouseUp);
		}
		if (hasTouch) {
			container.ontouchstart = function (e) {
				pointer.onContainerTouchStart(e);
			};
			container.ontouchmove = function (e) {
				pointer.onContainerTouchMove(e);
			};
			if (chartCount === 1) {
				addEvent(doc, 'touchend', pointer.onDocumentTouchEnd);
			}
		}

	},

	/**
	 * Destroys the Pointer object and disconnects DOM events.
	 */
	destroy: function () {
		var prop;

		removeEvent(this.chart.container, 'mouseleave', this.onContainerMouseLeave);
		if (!chartCount) {
			removeEvent(doc, 'mouseup', this.onDocumentMouseUp);
			removeEvent(doc, 'touchend', this.onDocumentTouchEnd);
		}

		// memory and CPU leak
		clearInterval(this.tooltipTimeout);

		for (prop in this) {
			this[prop] = null;
		}
	}
};


/* Support for touch devices */
extend(Highcharts.Pointer.prototype, {

	/**
	 * Run translation operations
	 */
	pinchTranslate: function (pinchDown, touches, transform, selectionMarker, clip, lastValidTouch) {
		if (this.zoomHor || this.pinchHor) {
			this.pinchTranslateDirection(true, pinchDown, touches, transform, selectionMarker, clip, lastValidTouch);
		}
		if (this.zoomVert || this.pinchVert) {
			this.pinchTranslateDirection(false, pinchDown, touches, transform, selectionMarker, clip, lastValidTouch);
		}
	},

	/**
	 * Run translation operations for each direction (horizontal and vertical) independently
	 */
	pinchTranslateDirection: function (horiz, pinchDown, touches, transform, selectionMarker, clip, lastValidTouch, forcedScale) {
		var chart = this.chart,
			xy = horiz ? 'x' : 'y',
			XY = horiz ? 'X' : 'Y',
			sChartXY = 'chart' + XY,
			wh = horiz ? 'width' : 'height',
			plotLeftTop = chart['plot' + (horiz ? 'Left' : 'Top')],
			selectionWH,
			selectionXY,
			clipXY,
			scale = forcedScale || 1,
			inverted = chart.inverted,
			bounds = chart.bounds[horiz ? 'h' : 'v'],
			singleTouch = pinchDown.length === 1,
			touch0Start = pinchDown[0][sChartXY],
			touch0Now = touches[0][sChartXY],
			touch1Start = !singleTouch && pinchDown[1][sChartXY],
			touch1Now = !singleTouch && touches[1][sChartXY],
			outOfBounds,
			transformScale,
			scaleKey,
			setScale = function () {
				if (!singleTouch && mathAbs(touch0Start - touch1Start) > 20) { // Don't zoom if fingers are too close on this axis
					scale = forcedScale || mathAbs(touch0Now - touch1Now) / mathAbs(touch0Start - touch1Start);
				}

				clipXY = ((plotLeftTop - touch0Now) / scale) + touch0Start;
				selectionWH = chart['plot' + (horiz ? 'Width' : 'Height')] / scale;
			};

		// Set the scale, first pass
		setScale();

		selectionXY = clipXY; // the clip position (x or y) is altered if out of bounds, the selection position is not

		// Out of bounds
		if (selectionXY < bounds.min) {
			selectionXY = bounds.min;
			outOfBounds = true;
		} else if (selectionXY + selectionWH > bounds.max) {
			selectionXY = bounds.max - selectionWH;
			outOfBounds = true;
		}

		// Is the chart dragged off its bounds, determined by dataMin and dataMax?
		if (outOfBounds) {

			// Modify the touchNow position in order to create an elastic drag movement. This indicates
			// to the user that the chart is responsive but can't be dragged further.
			touch0Now -= 0.8 * (touch0Now - lastValidTouch[xy][0]);
			if (!singleTouch) {
				touch1Now -= 0.8 * (touch1Now - lastValidTouch[xy][1]);
			}

			// Set the scale, second pass to adapt to the modified touchNow positions
			setScale();

		} else {
			lastValidTouch[xy] = [touch0Now, touch1Now];
		}

		// Set geometry for clipping, selection and transformation
		if (!inverted) { // TODO: implement clipping for inverted charts
			clip[xy] = clipXY - plotLeftTop;
			clip[wh] = selectionWH;
		}
		scaleKey = inverted ? (horiz ? 'scaleY' : 'scaleX') : 'scale' + XY;
		transformScale = inverted ? 1 / scale : scale;

		selectionMarker[wh] = selectionWH;
		selectionMarker[xy] = selectionXY;
		transform[scaleKey] = scale;
		transform['translate' + XY] = (transformScale * plotLeftTop) + (touch0Now - (transformScale * touch0Start));
	},

	/**
	 * Handle touch events with two touches
	 */
	pinch: function (e) {

		var self = this,
			chart = self.chart,
			pinchDown = self.pinchDown,
			followTouchMove = self.followTouchMove,
			touches = e.touches,
			touchesLength = touches.length,
			lastValidTouch = self.lastValidTouch,
			hasZoom = self.hasZoom,
			selectionMarker = self.selectionMarker,
			transform = {},
			fireClickEvent = touchesLength === 1 && ((self.inClass(e.target, PREFIX + 'tracker') &&
				chart.runTrackerClick) || self.runChartClick),
			clip = {};

		// On touch devices, only proceed to trigger click if a handler is defined
		if ((hasZoom || followTouchMove) && !fireClickEvent) {
			e.preventDefault();
		}

		// Normalize each touch
		map(touches, function (e) {
			return self.normalize(e);
		});

		// Register the touch start position
		if (e.type === 'touchstart') {
			each(touches, function (e, i) {
				pinchDown[i] = { chartX: e.chartX, chartY: e.chartY };
			});
			lastValidTouch.x = [pinchDown[0].chartX, pinchDown[1] && pinchDown[1].chartX];
			lastValidTouch.y = [pinchDown[0].chartY, pinchDown[1] && pinchDown[1].chartY];

			// Identify the data bounds in pixels
			each(chart.axes, function (axis) {
				if (axis.zoomEnabled) {
					var bounds = chart.bounds[axis.horiz ? 'h' : 'v'],
						minPixelPadding = axis.minPixelPadding,
						min = axis.toPixels(pick(axis.options.min, axis.dataMin)),
						max = axis.toPixels(pick(axis.options.max, axis.dataMax)),
						absMin = mathMin(min, max),
						absMax = mathMax(min, max);

					// Store the bounds for use in the touchmove handler
					bounds.min = mathMin(axis.pos, absMin - minPixelPadding);
					bounds.max = mathMax(axis.pos + axis.len, absMax + minPixelPadding);
				}
			});
			self.res = true; // reset on next move

		// Event type is touchmove, handle panning and pinching
		} else if (pinchDown.length) { // can be 0 when releasing, if touchend fires first


			// Set the marker
			if (!selectionMarker) {
				self.selectionMarker = selectionMarker = extend({
					destroy: noop
				}, chart.plotBox);
			}

			self.pinchTranslate(pinchDown, touches, transform, selectionMarker, clip, lastValidTouch);

			self.hasPinched = hasZoom;

			// Scale and translate the groups to provide visual feedback during pinching
			self.scaleGroups(transform, clip);

			// Optionally move the tooltip on touchmove
			if (!hasZoom && followTouchMove && touchesLength === 1) {
				this.runPointActions(self.normalize(e));
			} else if (self.res) {
				self.res = false;
				this.reset(false, 0);
			}
		}
	},

	onContainerTouchStart: function (e) {
		var chart = this.chart;

		hoverChartIndex = chart.index;

		if (e.touches.length === 1) {

			e = this.normalize(e);

			if (chart.isInsidePlot(e.chartX - chart.plotLeft, e.chartY - chart.plotTop)) {

				// Run mouse events and display tooltip etc
				this.runPointActions(e);

				this.pinch(e);

			} else {
				// Hide the tooltip on touching outside the plot area (#1203)
				this.reset();
			}

		} else if (e.touches.length === 2) {
			this.pinch(e);
		}
	},

	onContainerTouchMove: function (e) {
		if (e.touches.length === 1 || e.touches.length === 2) {
			this.pinch(e);
		}
	},

	onDocumentTouchEnd: function (e) {
		if (charts[hoverChartIndex]) {
			charts[hoverChartIndex].pointer.drop(e);
		}
	}

});
if (win.PointerEvent || win.MSPointerEvent) {

	// The touches object keeps track of the points being touched at all times
	var touches = {},
		hasPointerEvent = !!win.PointerEvent,
		getWebkitTouches = function () {
			var key, fake = [];
			fake.item = function (i) { return this[i]; };
			for (key in touches) {
				if (touches.hasOwnProperty(key)) {
					fake.push({
						pageX: touches[key].pageX,
						pageY: touches[key].pageY,
						target: touches[key].target
					});
				}
			}
			return fake;
		},
		translateMSPointer = function (e, method, wktype, callback) {
			var p;
			e = e.originalEvent || e;
			if ((e.pointerType === 'touch' || e.pointerType === e.MSPOINTER_TYPE_TOUCH) && charts[hoverChartIndex]) {
				callback(e);
				p = charts[hoverChartIndex].pointer;
				p[method]({
					type: wktype,
					target: e.currentTarget,
					preventDefault: noop,
					touches: getWebkitTouches()
				});
			}
		};

	/**
	 * Extend the Pointer prototype with methods for each event handler and more
	 */
	extend(Pointer.prototype, {
		onContainerPointerDown: function (e) {
			translateMSPointer(e, 'onContainerTouchStart', 'touchstart', function (e) {
				touches[e.pointerId] = { pageX: e.pageX, pageY: e.pageY, target: e.currentTarget };
			});
		},
		onContainerPointerMove: function (e) {
			translateMSPointer(e, 'onContainerTouchMove', 'touchmove', function (e) {
				touches[e.pointerId] = { pageX: e.pageX, pageY: e.pageY };
				if (!touches[e.pointerId].target) {
					touches[e.pointerId].target = e.currentTarget;
				}
			});
		},
		onDocumentPointerUp: function (e) {
			translateMSPointer(e, 'onContainerTouchEnd', 'touchend', function (e) {
				delete touches[e.pointerId];
			});
		},

		/**
		 * Add or remove the MS Pointer specific events
		 */
		batchMSEvents: function (fn) {
			fn(this.chart.container, hasPointerEvent ? 'pointerdown' : 'MSPointerDown', this.onContainerPointerDown);
			fn(this.chart.container, hasPointerEvent ? 'pointermove' : 'MSPointerMove', this.onContainerPointerMove);
			fn(doc, hasPointerEvent ? 'pointerup' : 'MSPointerUp', this.onDocumentPointerUp);
		}
	});

	// Disable default IE actions for pinch and such on chart element
	wrap(Pointer.prototype, 'init', function (proceed, chart, options) {
		proceed.call(this, chart, options);
		if (this.hasZoom || this.followTouchMove) {
			css(chart.container, {
				'-ms-touch-action': NONE,
				'touch-action': NONE
			});
		}
	});

	// Add IE specific touch events to chart
	wrap(Pointer.prototype, 'setDOMEvents', function (proceed) {
		proceed.apply(this);
		if (this.hasZoom || this.followTouchMove) {
			this.batchMSEvents(addEvent);
		}
	});
	// Destroy MS events also
	wrap(Pointer.prototype, 'destroy', function (proceed) {
		this.batchMSEvents(removeEvent);
		proceed.call(this);
	});
}
/**
 * The overview of the chart's series
 */
var Legend = Highcharts.Legend = function (chart, options) {
	this.init(chart, options);
};

Legend.prototype = {

	/**
	 * Initialize the legend
	 */
	init: function (chart, options) {

		var legend = this,
			itemStyle = options.itemStyle,
			padding = pick(options.padding, 8),
			itemMarginTop = options.itemMarginTop || 0;

		this.options = options;

		if (!options.enabled) {
			return;
		}

		legend.itemStyle = itemStyle;
		legend.itemHiddenStyle = merge(itemStyle, options.itemHiddenStyle);
		legend.itemMarginTop = itemMarginTop;
		legend.padding = padding;
		legend.initialItemX = padding;
		legend.initialItemY = padding - 5; // 5 is the number of pixels above the text
		legend.maxItemWidth = 0;
		legend.chart = chart;
		legend.itemHeight = 0;
		legend.lastLineHeight = 0;
		legend.symbolWidth = pick(options.symbolWidth, 16);
		legend.pages = [];


		// Render it
		legend.render();

		// move checkboxes
		addEvent(legend.chart, 'endResize', function () {
			legend.positionCheckboxes();
		});

	},

	/**
	 * Set the colors for the legend item
	 * @param {Object} item A Series or Point instance
	 * @param {Object} visible Dimmed or colored
	 */
	colorizeItem: function (item, visible) {
		var legend = this,
			options = legend.options,
			legendItem = item.legendItem,
			legendLine = item.legendLine,
			legendSymbol = item.legendSymbol,
			hiddenColor = legend.itemHiddenStyle.color,
			textColor = visible ? options.itemStyle.color : hiddenColor,
			symbolColor = visible ? (item.legendColor || item.color || '#CCC') : hiddenColor,
			markerOptions = item.options && item.options.marker,
			symbolAttr = { fill: symbolColor },
			key,
			val;

		if (legendItem) {
			legendItem.css({ fill: textColor, color: textColor }); // color for #1553, oldIE
		}
		if (legendLine) {
			legendLine.attr({ stroke: symbolColor });
		}

		if (legendSymbol) {

			// Apply marker options
			if (markerOptions && legendSymbol.isMarker) { // #585
				symbolAttr.stroke = symbolColor;
				markerOptions = item.convertAttribs(markerOptions);
				for (key in markerOptions) {
					val = markerOptions[key];
					if (val !== UNDEFINED) {
						symbolAttr[key] = val;
					}
				}
			}

			legendSymbol.attr(symbolAttr);
		}
	},

	/**
	 * Position the legend item
	 * @param {Object} item A Series or Point instance
	 */
	positionItem: function (item) {
		var legend = this,
			options = legend.options,
			symbolPadding = options.symbolPadding,
			ltr = !options.rtl,
			legendItemPos = item._legendItemPos,
			itemX = legendItemPos[0],
			itemY = legendItemPos[1],
			checkbox = item.checkbox;

		if (item.legendGroup) {
			item.legendGroup.translate(
				ltr ? itemX : legend.legendWidth - itemX - 2 * symbolPadding - 4,
				itemY
			);
		}

		if (checkbox) {
			checkbox.x = itemX;
			checkbox.y = itemY;
		}
	},

	/**
	 * Destroy a single legend item
	 * @param {Object} item The series or point
	 */
	destroyItem: function (item) {
		var checkbox = item.checkbox;

		// destroy SVG elements
		each(['legendItem', 'legendLine', 'legendSymbol', 'legendGroup'], function (key) {
			if (item[key]) {
				item[key] = item[key].destroy();
			}
		});

		if (checkbox) {
			discardElement(item.checkbox);
		}
	},

	/**
	 * Destroys the legend.
	 */
	destroy: function () {
		var legend = this,
			legendGroup = legend.group,
			box = legend.box;

		if (box) {
			legend.box = box.destroy();
		}

		if (legendGroup) {
			legend.group = legendGroup.destroy();
		}
	},

	/**
	 * Position the checkboxes after the width is determined
	 */
	positionCheckboxes: function (scrollOffset) {
		var alignAttr = this.group.alignAttr,
			translateY,
			clipHeight = this.clipHeight || this.legendHeight;

		if (alignAttr) {
			translateY = alignAttr.translateY;
			each(this.allItems, function (item) {
				var checkbox = item.checkbox,
					top;

				if (checkbox) {
					top = (translateY + checkbox.y + (scrollOffset || 0) + 3);
					css(checkbox, {
						left: (alignAttr.translateX + item.checkboxOffset + checkbox.x - 20) + PX,
						top: top + PX,
						display: top > translateY - 6 && top < translateY + clipHeight - 6 ? '' : NONE
					});
				}
			});
		}
	},

	/**
	 * Render the legend title on top of the legend
	 */
	renderTitle: function () {
		var options = this.options,
			padding = this.padding,
			titleOptions = options.title,
			titleHeight = 0,
			bBox;

		if (titleOptions.text) {
			if (!this.title) {
				this.title = this.chart.renderer.label(titleOptions.text, padding - 3, padding - 4, null, null, null, null, null, 'legend-title')
					.attr({ zIndex: 1 })
					.css(titleOptions.style)
					.add(this.group);
			}
			bBox = this.title.getBBox();
			titleHeight = bBox.height;
			this.offsetWidth = bBox.width; // #1717
			this.contentGroup.attr({ translateY: titleHeight });
		}
		this.titleHeight = titleHeight;
	},

	/**
	 * Render a single specific legend item
	 * @param {Object} item A series or point
	 */
	renderItem: function (item) {
		var legend = this,
			chart = legend.chart,
			renderer = chart.renderer,
			options = legend.options,
			horizontal = options.layout === 'horizontal',
			symbolWidth = legend.symbolWidth,
			symbolPadding = options.symbolPadding,
			itemStyle = legend.itemStyle,
			itemHiddenStyle = legend.itemHiddenStyle,
			padding = legend.padding,
			itemDistance = horizontal ? pick(options.itemDistance, 20) : 0,
			ltr = !options.rtl,
			itemHeight,
			widthOption = options.width,
			itemMarginBottom = options.itemMarginBottom || 0,
			itemMarginTop = legend.itemMarginTop,
			initialItemX = legend.initialItemX,
			bBox,
			itemWidth,
			li = item.legendItem,
			series = item.series && item.series.drawLegendSymbol ? item.series : item,
			seriesOptions = series.options,
			showCheckbox = legend.createCheckboxForItem && seriesOptions && seriesOptions.showCheckbox,
			useHTML = options.useHTML;

		if (!li) { // generate it once, later move it

			// Generate the group box
			// A group to hold the symbol and text. Text is to be appended in Legend class.
			item.legendGroup = renderer.g('legend-item')
				.attr({ zIndex: 1 })
				.add(legend.scrollGroup);

			// Generate the list item text and add it to the group
			item.legendItem = li = renderer.text(
					options.labelFormat ? format(options.labelFormat, item) : options.labelFormatter.call(item),
					ltr ? symbolWidth + symbolPadding : -symbolPadding,
					legend.baseline || 0,
					useHTML
				)
				.css(merge(item.visible ? itemStyle : itemHiddenStyle)) // merge to prevent modifying original (#1021)
				.attr({
					align: ltr ? 'left' : 'right',
					zIndex: 2
				})
				.add(item.legendGroup);

			// Get the baseline for the first item - the font size is equal for all
			if (!legend.baseline) {
				legend.baseline = renderer.fontMetrics(itemStyle.fontSize, li).f + 3 + itemMarginTop;
				li.attr('y', legend.baseline);
			}

			// Draw the legend symbol inside the group box
			series.drawLegendSymbol(legend, item);

			if (legend.setItemEvents) {
				legend.setItemEvents(item, li, useHTML, itemStyle, itemHiddenStyle);
			}

			// Colorize the items
			legend.colorizeItem(item, item.visible);

			// add the HTML checkbox on top
			if (showCheckbox) {
				legend.createCheckboxForItem(item);
			}
		}

		// calculate the positions for the next line
		bBox = li.getBBox();

		itemWidth = item.checkboxOffset =
			options.itemWidth ||
			item.legendItemWidth ||
			symbolWidth + symbolPadding + bBox.width + itemDistance + (showCheckbox ? 20 : 0);
		legend.itemHeight = itemHeight = mathRound(item.legendItemHeight || bBox.height);

		// if the item exceeds the width, start a new line
		if (horizontal && legend.itemX - initialItemX + itemWidth >
				(widthOption || (chart.chartWidth - 2 * padding - initialItemX - options.x))) {
			legend.itemX = initialItemX;
			legend.itemY += itemMarginTop + legend.lastLineHeight + itemMarginBottom;
			legend.lastLineHeight = 0; // reset for next line
		}

		// If the item exceeds the height, start a new column
		/*if (!horizontal && legend.itemY + options.y + itemHeight > chart.chartHeight - spacingTop - spacingBottom) {
			legend.itemY = legend.initialItemY;
			legend.itemX += legend.maxItemWidth;
			legend.maxItemWidth = 0;
		}*/

		// Set the edge positions
		legend.maxItemWidth = mathMax(legend.maxItemWidth, itemWidth);
		legend.lastItemY = itemMarginTop + legend.itemY + itemMarginBottom;
		legend.lastLineHeight = mathMax(itemHeight, legend.lastLineHeight); // #915

		// cache the position of the newly generated or reordered items
		item._legendItemPos = [legend.itemX, legend.itemY];

		// advance
		if (horizontal) {
			legend.itemX += itemWidth;

		} else {
			legend.itemY += itemMarginTop + itemHeight + itemMarginBottom;
			legend.lastLineHeight = itemHeight;
		}

		// the width of the widest item
		legend.offsetWidth = widthOption || mathMax(
			(horizontal ? legend.itemX - initialItemX - itemDistance : itemWidth) + padding,
			legend.offsetWidth
		);
	},

	/**
	 * Get all items, which is one item per series for normal series and one item per point
	 * for pie series.
	 */
	getAllItems: function () {
		var allItems = [];
		each(this.chart.series, function (series) {
			var seriesOptions = series.options;

			// Handle showInLegend. If the series is linked to another series, defaults to false.
			if (!pick(seriesOptions.showInLegend, !defined(seriesOptions.linkedTo) ? UNDEFINED : false, true)) {
				return;
			}

			// use points or series for the legend item depending on legendType
			allItems = allItems.concat(
					series.legendItems ||
					(seriesOptions.legendType === 'point' ?
							series.data :
							series)
			);
		});
		return allItems;
	},

	/**
	 * Render the legend. This method can be called both before and after
	 * chart.render. If called after, it will only rearrange items instead
	 * of creating new ones.
	 */
	render: function () {
		var legend = this,
			chart = legend.chart,
			renderer = chart.renderer,
			legendGroup = legend.group,
			allItems,
			display,
			legendWidth,
			legendHeight,
			box = legend.box,
			options = legend.options,
			padding = legend.padding,
			legendBorderWidth = options.borderWidth,
			legendBackgroundColor = options.backgroundColor;

		legend.itemX = legend.initialItemX;
		legend.itemY = legend.initialItemY;
		legend.offsetWidth = 0;
		legend.lastItemY = 0;

		if (!legendGroup) {
			legend.group = legendGroup = renderer.g('legend')
				.attr({ zIndex: 7 })
				.add();
			legend.contentGroup = renderer.g()
				.attr({ zIndex: 1 }) // above background
				.add(legendGroup);
			legend.scrollGroup = renderer.g()
				.add(legend.contentGroup);
		}

		legend.renderTitle();

		// add each series or point
		allItems = legend.getAllItems();

		// sort by legendIndex
		stableSort(allItems, function (a, b) {
			return ((a.options && a.options.legendIndex) || 0) - ((b.options && b.options.legendIndex) || 0);
		});

		// reversed legend
		if (options.reversed) {
			allItems.reverse();
		}

		legend.allItems = allItems;
		legend.display = display = !!allItems.length;

		// render the items
		each(allItems, function (item) {
			legend.renderItem(item);
		});

		// Draw the border
		legendWidth = options.width || legend.offsetWidth;
		legendHeight = legend.lastItemY + legend.lastLineHeight + legend.titleHeight;


		legendHeight = legend.handleOverflow(legendHeight);

		if (legendBorderWidth || legendBackgroundColor) {
			legendWidth += padding;
			legendHeight += padding;

			if (!box) {
				legend.box = box = renderer.rect(
					0,
					0,
					legendWidth,
					legendHeight,
					options.borderRadius,
					legendBorderWidth || 0
				).attr({
					stroke: options.borderColor,
					'stroke-width': legendBorderWidth || 0,
					fill: legendBackgroundColor || NONE
				})
				.add(legendGroup)
				.shadow(options.shadow);
				box.isNew = true;

			} else if (legendWidth > 0 && legendHeight > 0) {
				box[box.isNew ? 'attr' : 'animate'](
					box.crisp({ width: legendWidth, height: legendHeight })
				);
				box.isNew = false;
			}

			// hide the border if no items
			box[display ? 'show' : 'hide']();
		}

		legend.legendWidth = legendWidth;
		legend.legendHeight = legendHeight;

		// Now that the legend width and height are established, put the items in the
		// final position
		each(allItems, function (item) {
			legend.positionItem(item);
		});

		// 1.x compatibility: positioning based on style
		/*var props = ['left', 'right', 'top', 'bottom'],
			prop,
			i = 4;
		while (i--) {
			prop = props[i];
			if (options.style[prop] && options.style[prop] !== 'auto') {
				options[i < 2 ? 'align' : 'verticalAlign'] = prop;
				options[i < 2 ? 'x' : 'y'] = pInt(options.style[prop]) * (i % 2 ? -1 : 1);
			}
		}*/

		if (display) {
			legendGroup.align(extend({
				width: legendWidth,
				height: legendHeight
			}, options), true, 'spacingBox');
		}

		if (!chart.isResizing) {
			this.positionCheckboxes();
		}
	},

	/**
	 * Set up the overflow handling by adding navigation with up and down arrows below the
	 * legend.
	 */
	handleOverflow: function (legendHeight) {
		var legend = this,
			chart = this.chart,
			renderer = chart.renderer,
			options = this.options,
			optionsY = options.y,
			alignTop = options.verticalAlign === 'top',
			spaceHeight = chart.spacingBox.height + (alignTop ? -optionsY : optionsY) - this.padding,
			maxHeight = options.maxHeight,
			clipHeight,
			clipRect = this.clipRect,
			navOptions = options.navigation,
			animation = pick(navOptions.animation, true),
			arrowSize = navOptions.arrowSize || 12,
			nav = this.nav,
			pages = this.pages,
			lastY,
			allItems = this.allItems;

		// Adjust the height
		if (options.layout === 'horizontal') {
			spaceHeight /= 2;
		}
		if (maxHeight) {
			spaceHeight = mathMin(spaceHeight, maxHeight);
		}

		// Reset the legend height and adjust the clipping rectangle
		pages.length = 0;
		if (legendHeight > spaceHeight && !options.useHTML) {

			this.clipHeight = clipHeight = mathMax(spaceHeight - 20 - this.titleHeight - this.padding, 0);
			this.currentPage = pick(this.currentPage, 1);
			this.fullHeight = legendHeight;

			// Fill pages with Y positions so that the top of each a legend item defines
			// the scroll top for each page (#2098)
			each(allItems, function (item, i) {
				var y = item._legendItemPos[1],
					h = mathRound(item.legendItem.getBBox().height),
					len = pages.length;

				if (!len || (y - pages[len - 1] > clipHeight && (lastY || y) !== pages[len - 1])) {
					pages.push(lastY || y);
					len++;
				}

				if (i === allItems.length - 1 && y + h - pages[len - 1] > clipHeight) {
					pages.push(y);
				}
				if (y !== lastY) {
					lastY = y;
				}
			});

			// Only apply clipping if needed. Clipping causes blurred legend in PDF export (#1787)
			if (!clipRect) {
				clipRect = legend.clipRect = renderer.clipRect(0, this.padding, 9999, 0);
				legend.contentGroup.clip(clipRect);
			}
			clipRect.attr({
				height: clipHeight
			});

			// Add navigation elements
			if (!nav) {
				this.nav = nav = renderer.g().attr({ zIndex: 1 }).add(this.group);
				this.up = renderer.symbol('triangle', 0, 0, arrowSize, arrowSize)
					.on('click', function () {
						legend.scroll(-1, animation);
					})
					.add(nav);
				this.pager = renderer.text('', 15, 10)
					.css(navOptions.style)
					.add(nav);
				this.down = renderer.symbol('triangle-down', 0, 0, arrowSize, arrowSize)
					.on('click', function () {
						legend.scroll(1, animation);
					})
					.add(nav);
			}

			// Set initial position
			legend.scroll(0);

			legendHeight = spaceHeight;

		} else if (nav) {
			clipRect.attr({
				height: chart.chartHeight
			});
			nav.hide();
			this.scrollGroup.attr({
				translateY: 1
			});
			this.clipHeight = 0; // #1379
		}

		return legendHeight;
	},

	/**
	 * Scroll the legend by a number of pages
	 * @param {Object} scrollBy
	 * @param {Object} animation
	 */
	scroll: function (scrollBy, animation) {
		var pages = this.pages,
			pageCount = pages.length,
			currentPage = this.currentPage + scrollBy,
			clipHeight = this.clipHeight,
			navOptions = this.options.navigation,
			activeColor = navOptions.activeColor,
			inactiveColor = navOptions.inactiveColor,
			pager = this.pager,
			padding = this.padding,
			scrollOffset;

		// When resizing while looking at the last page
		if (currentPage > pageCount) {
			currentPage = pageCount;
		}

		if (currentPage > 0) {

			if (animation !== UNDEFINED) {
				setAnimation(animation, this.chart);
			}

			this.nav.attr({
				translateX: padding,
				translateY: clipHeight + this.padding + 7 + this.titleHeight,
				visibility: VISIBLE
			});
			this.up.attr({
					fill: currentPage === 1 ? inactiveColor : activeColor
				})
				.css({
					cursor: currentPage === 1 ? 'default' : 'pointer'
				});
			pager.attr({
				text: currentPage + '/' + pageCount
			});
			this.down.attr({
					x: 18 + this.pager.getBBox().width, // adjust to text width
					fill: currentPage === pageCount ? inactiveColor : activeColor
				})
				.css({
					cursor: currentPage === pageCount ? 'default' : 'pointer'
				});

			scrollOffset = -pages[currentPage - 1] + this.initialItemY;

			this.scrollGroup.animate({
				translateY: scrollOffset
			});

			this.currentPage = currentPage;
			this.positionCheckboxes(scrollOffset);
		}

	}

};

/*
 * LegendSymbolMixin
 */

var LegendSymbolMixin = Highcharts.LegendSymbolMixin = {

	/**
	 * Get the series' symbol in the legend
	 *
	 * @param {Object} legend The legend object
	 * @param {Object} item The series (this) or point
	 */
	drawRectangle: function (legend, item) {
		var symbolHeight = legend.options.symbolHeight || 12;

		item.legendSymbol = this.chart.renderer.rect(
			0,
			legend.baseline - 5 - (symbolHeight / 2),
			legend.symbolWidth,
			symbolHeight,
			legend.options.symbolRadius || 0
		).attr({
			zIndex: 3
		}).add(item.legendGroup);

	},

	/**
	 * Get the series' symbol in the legend. This method should be overridable to create custom
	 * symbols through Highcharts.seriesTypes[type].prototype.drawLegendSymbols.
	 *
	 * @param {Object} legend The legend object
	 */
	drawLineMarker: function (legend) {

		var options = this.options,
			markerOptions = options.marker,
			radius,
			legendOptions = legend.options,
			legendSymbol,
			symbolWidth = legend.symbolWidth,
			renderer = this.chart.renderer,
			legendItemGroup = this.legendGroup,
			verticalCenter = legend.baseline - mathRound(renderer.fontMetrics(legendOptions.itemStyle.fontSize, this.legendItem).b * 0.3),
			attr;

		// Draw the line
		if (options.lineWidth) {
			attr = {
				'stroke-width': options.lineWidth
			};
			if (options.dashStyle) {
				attr.dashstyle = options.dashStyle;
			}
			this.legendLine = renderer.path([
				M,
				0,
				verticalCenter,
				L,
				symbolWidth,
				verticalCenter
			])
			.attr(attr)
			.add(legendItemGroup);
		}

		// Draw the marker
		if (markerOptions && markerOptions.enabled !== false) {
			radius = markerOptions.radius;
			this.legendSymbol = legendSymbol = renderer.symbol(
				this.symbol,
				(symbolWidth / 2) - radius,
				verticalCenter - radius,
				2 * radius,
				2 * radius
			)
			.add(legendItemGroup);
			legendSymbol.isMarker = true;
		}
	}
};

// Workaround for #2030, horizontal legend items not displaying in IE11 Preview,
// and for #2580, a similar drawing flaw in Firefox 26.
// TODO: Explore if there's a general cause for this. The problem may be related
// to nested group elements, as the legend item texts are within 4 group elements.
if (/Trident\/7\.0/.test(userAgent) || isFirefox) {
	wrap(Legend.prototype, 'positionItem', function (proceed, item) {
		var legend = this,
			runPositionItem = function () { // If chart destroyed in sync, this is undefined (#2030)
				if (item._legendItemPos) {
					proceed.call(legend, item);
				}
			};

		// Do it now, for export and to get checkbox placement
		runPositionItem();

		// Do it after to work around the core issue
		setTimeout(runPositionItem);
	});
}
/**
 * The chart class
 * @param {Object} options
 * @param {Function} callback Function to run when the chart has loaded
 */
function Chart() {
	this.init.apply(this, arguments);
}

Chart.prototype = {

	/**
	 * Initialize the chart
	 */
	init: function (userOptions, callback) {

		// Handle regular options
		var options,
			seriesOptions = userOptions.series; // skip merging data points to increase performance

		userOptions.series = null;
		options = merge(defaultOptions, userOptions); // do the merge
		options.series = userOptions.series = seriesOptions; // set back the series data
		this.userOptions = userOptions;

		var optionsChart = options.chart;

		// Create margin & spacing array
		this.margin = this.splashArray('margin', optionsChart);
		this.spacing = this.splashArray('spacing', optionsChart);

		var chartEvents = optionsChart.events;

		//this.runChartClick = chartEvents && !!chartEvents.click;
		this.bounds = { h: {}, v: {} }; // Pixel data bounds for touch zoom

		this.callback = callback;
		this.isResizing = 0;
		this.options = options;
		//chartTitleOptions = UNDEFINED;
		//chartSubtitleOptions = UNDEFINED;

		this.axes = [];
		this.series = [];
		this.hasCartesianSeries = optionsChart.showAxes;
		//this.axisOffset = UNDEFINED;
		//this.maxTicks = UNDEFINED; // handle the greatest amount of ticks on grouped axes
		//this.inverted = UNDEFINED;
		//this.loadingShown = UNDEFINED;
		//this.container = UNDEFINED;
		//this.chartWidth = UNDEFINED;
		//this.chartHeight = UNDEFINED;
		//this.marginRight = UNDEFINED;
		//this.marginBottom = UNDEFINED;
		//this.containerWidth = UNDEFINED;
		//this.containerHeight = UNDEFINED;
		//this.oldChartWidth = UNDEFINED;
		//this.oldChartHeight = UNDEFINED;

		//this.renderTo = UNDEFINED;
		//this.renderToClone = UNDEFINED;

		//this.spacingBox = UNDEFINED

		//this.legend = UNDEFINED;

		// Elements
		//this.chartBackground = UNDEFINED;
		//this.plotBackground = UNDEFINED;
		//this.plotBGImage = UNDEFINED;
		//this.plotBorder = UNDEFINED;
		//this.loadingDiv = UNDEFINED;
		//this.loadingSpan = UNDEFINED;

		var chart = this,
			eventType;

		// Add the chart to the global lookup
		chart.index = charts.length;
		charts.push(chart);
		chartCount++;

		// Set up auto resize
		if (optionsChart.reflow !== false) {
			addEvent(chart, 'load', function () {
				chart.initReflow();
			});
		}

		// Chart event handlers
		if (chartEvents) {
			for (eventType in chartEvents) {
				addEvent(chart, eventType, chartEvents[eventType]);
			}
		}

		chart.xAxis = [];
		chart.yAxis = [];

		// Expose methods and variables
		chart.animation = useCanVG ? false : pick(optionsChart.animation, true);
		chart.pointCount = chart.colorCounter = chart.symbolCounter = 0;

		chart.firstRender();
	},

	/**
	 * Initialize an individual series, called internally before render time
	 */
	initSeries: function (options) {
		var chart = this,
			optionsChart = chart.options.chart,
			type = options.type || optionsChart.type || optionsChart.defaultSeriesType,
			series,
			constr = seriesTypes[type];

		// No such series type
		if (!constr) {
			error(17, true);
		}

		series = new constr();
		series.init(this, options);
		return series;
	},

	/**
	 * Check whether a given point is within the plot area
	 *
	 * @param {Number} plotX Pixel x relative to the plot area
	 * @param {Number} plotY Pixel y relative to the plot area
	 * @param {Boolean} inverted Whether the chart is inverted
	 */
	isInsidePlot: function (plotX, plotY, inverted) {
		var x = inverted ? plotY : plotX,
			y = inverted ? plotX : plotY;

		return x >= 0 &&
			x <= this.plotWidth &&
			y >= 0 &&
			y <= this.plotHeight;
	},

	/**
	 * Adjust all axes tick amounts
	 */
	adjustTickAmounts: function () {
		if (this.options.chart.alignTicks !== false) {
			each(this.axes, function (axis) {
				axis.adjustTickAmount();
			});
		}
		this.maxTicks = null;
	},

	/**
	 * Redraw legend, axes or series based on updated data
	 *
	 * @param {Boolean|Object} animation Whether to apply animation, and optionally animation
	 *    configuration
	 */
	redraw: function (animation) {
		var chart = this,
			axes = chart.axes,
			series = chart.series,
			pointer = chart.pointer,
			legend = chart.legend,
			redrawLegend = chart.isDirtyLegend,
			hasStackedSeries,
			hasDirtyStacks,
			hasCartesianSeries = chart.hasCartesianSeries,
			isDirtyBox = chart.isDirtyBox, // todo: check if it has actually changed?
			seriesLength = series.length,
			i = seriesLength,
			serie,
			renderer = chart.renderer,
			isHiddenChart = renderer.isHidden(),
			afterRedraw = [];

		setAnimation(animation, chart);

		if (isHiddenChart) {
			chart.cloneRenderTo();
		}

		// Adjust title layout (reflow multiline text)
		chart.layOutTitles();

		// link stacked series
		while (i--) {
			serie = series[i];

			if (serie.options.stacking) {
				hasStackedSeries = true;

				if (serie.isDirty) {
					hasDirtyStacks = true;
					break;
				}
			}
		}
		if (hasDirtyStacks) { // mark others as dirty
			i = seriesLength;
			while (i--) {
				serie = series[i];
				if (serie.options.stacking) {
					serie.isDirty = true;
				}
			}
		}

		// handle updated data in the series
		each(series, function (serie) {
			if (serie.isDirty) { // prepare the data so axis can read it
				if (serie.options.legendType === 'point') {
					redrawLegend = true;
				}
			}
		});

		// handle added or removed series
		if (redrawLegend && legend.options.enabled) { // series or pie points are added or removed
			// draw legend graphics
			legend.render();

			chart.isDirtyLegend = false;
		}

		// reset stacks
		if (hasStackedSeries) {
			chart.getStacks();
		}


		if (hasCartesianSeries) {
			if (!chart.isResizing) {

				// reset maxTicks
				chart.maxTicks = null;

				// set axes scales
				each(axes, function (axis) {
					axis.setScale();
				});
			}

			chart.adjustTickAmounts();
		}

		chart.getMargins(); // #3098

		if (hasCartesianSeries) {
			// If one axis is dirty, all axes must be redrawn (#792, #2169)
			each(axes, function (axis) {
				if (axis.isDirty) {
					isDirtyBox = true;
				}
			});

			// redraw axes
			each(axes, function (axis) {

				// Fire 'afterSetExtremes' only if extremes are set
				if (axis.isDirtyExtremes) { // #821
					axis.isDirtyExtremes = false;
					afterRedraw.push(function () { // prevent a recursive call to chart.redraw() (#1119)
						fireEvent(axis, 'afterSetExtremes', extend(axis.eventArgs, axis.getExtremes())); // #747, #751
						delete axis.eventArgs;
					});
				}

				if (isDirtyBox || hasStackedSeries) {
					axis.redraw();
				}
			});
		}

		// the plot areas size has changed
		if (isDirtyBox) {
			chart.drawChartBox();
		}


		// redraw affected series
		each(series, function (serie) {
			if (serie.isDirty && serie.visible &&
					(!serie.isCartesian || serie.xAxis)) { // issue #153
				serie.redraw();
			}
		});

		// move tooltip or reset
		if (pointer) {
			pointer.reset(true);
		}

		// redraw if canvas
		renderer.draw();

		// fire the event
		fireEvent(chart, 'redraw'); // jQuery breaks this when calling it from addEvent. Overwrites chart.redraw

		if (isHiddenChart) {
			chart.cloneRenderTo(true);
		}

		// Fire callbacks that are put on hold until after the redraw
		each(afterRedraw, function (callback) {
			callback.call();
		});
	},

	/**
	 * Get an axis, series or point object by id.
	 * @param id {String} The id as given in the configuration options
	 */
	get: function (id) {
		var chart = this,
			axes = chart.axes,
			series = chart.series;

		var i,
			j,
			points;

		// search axes
		for (i = 0; i < axes.length; i++) {
			if (axes[i].options.id === id) {
				return axes[i];
			}
		}

		// search series
		for (i = 0; i < series.length; i++) {
			if (series[i].options.id === id) {
				return series[i];
			}
		}

		// search points
		for (i = 0; i < series.length; i++) {
			points = series[i].points || [];
			for (j = 0; j < points.length; j++) {
				if (points[j].id === id) {
					return points[j];
				}
			}
		}
		return null;
	},

	/**
	 * Create the Axis instances based on the config options
	 */
	getAxes: function () {
		var chart = this,
			options = this.options,
			xAxisOptions = options.xAxis = splat(options.xAxis || {}),
			yAxisOptions = options.yAxis = splat(options.yAxis || {}),
			optionsArray,
			axis;

		// make sure the options are arrays and add some members
		each(xAxisOptions, function (axis, i) {
			axis.index = i;
			axis.isX = true;
		});

		each(yAxisOptions, function (axis, i) {
			axis.index = i;
		});

		// concatenate all axis options into one array
		optionsArray = xAxisOptions.concat(yAxisOptions);

		each(optionsArray, function (axisOptions) {
			axis = new Axis(chart, axisOptions);
		});

		chart.adjustTickAmounts();
	},


	/**
	 * Get the currently selected points from all series
	 */
	getSelectedPoints: function () {
		var points = [];
		each(this.series, function (serie) {
			points = points.concat(grep(serie.points || [], function (point) {
				return point.selected;
			}));
		});
		return points;
	},

	/**
	 * Get the currently selected series
	 */
	getSelectedSeries: function () {
		return grep(this.series, function (serie) {
			return serie.selected;
		});
	},

	/**
	 * Generate stacks for each series and calculate stacks total values
	 */
	getStacks: function () {
		var chart = this;

		// reset stacks for each yAxis
		each(chart.yAxis, function (axis) {
			if (axis.stacks && axis.hasVisibleSeries) {
				axis.oldStacks = axis.stacks;
			}
		});

		each(chart.series, function (series) {
			if (series.options.stacking && (series.visible === true || chart.options.chart.ignoreHiddenSeries === false)) {
				series.stackKey = series.type + pick(series.options.stack, '');
			}
		});
	},

	/**
	 * Show the title and subtitle of the chart
	 *
	 * @param titleOptions {Object} New title options
	 * @param subtitleOptions {Object} New subtitle options
	 *
	 */
	setTitle: function (titleOptions, subtitleOptions, redraw) {
		var chart = this,
			options = chart.options,
			chartTitleOptions,
			chartSubtitleOptions;

		chartTitleOptions = options.title = merge(options.title, titleOptions);
		chartSubtitleOptions = options.subtitle = merge(options.subtitle, subtitleOptions);

		// add title and subtitle
		each([
			['title', titleOptions, chartTitleOptions],
			['subtitle', subtitleOptions, chartSubtitleOptions]
		], function (arr) {
			var name = arr[0],
				title = chart[name],
				titleOptions = arr[1],
				chartTitleOptions = arr[2];

			if (title && titleOptions) {
				chart[name] = title = title.destroy(); // remove old
			}

			if (chartTitleOptions && chartTitleOptions.text && !title) {
				chart[name] = chart.renderer.text(
					chartTitleOptions.text,
					0,
					0,
					chartTitleOptions.useHTML
				)
				.attr({
					align: chartTitleOptions.align,
					'class': PREFIX + name,
					zIndex: chartTitleOptions.zIndex || 4
				})
				.css(chartTitleOptions.style)
				.add();
			}
		});
		chart.layOutTitles(redraw);
	},

	/**
	 * Lay out the chart titles and cache the full offset height for use in getMargins
	 */
	layOutTitles: function (redraw) {
		var titleOffset = 0,
			title = this.title,
			subtitle = this.subtitle,
			options = this.options,
			titleOptions = options.title,
			subtitleOptions = options.subtitle,
			requiresDirtyBox,
			renderer = this.renderer,
			autoWidth = this.spacingBox.width - 44; // 44 makes room for default context button

		if (title) {
			title
				.css({ width: (titleOptions.width || autoWidth) + PX })
				.align(extend({
					y: renderer.fontMetrics(titleOptions.style.fontSize, title).b - 3
				}, titleOptions), false, 'spacingBox');

			if (!titleOptions.floating && !titleOptions.verticalAlign) {
				titleOffset = title.getBBox().height;
			}
		}
		if (subtitle) {
			subtitle
				.css({ width: (subtitleOptions.width || autoWidth) + PX })
				.align(extend({
					y: titleOffset + (titleOptions.margin - 13) + renderer.fontMetrics(titleOptions.style.fontSize, subtitle).b
				}, subtitleOptions), false, 'spacingBox');

			if (!subtitleOptions.floating && !subtitleOptions.verticalAlign) {
				titleOffset = mathCeil(titleOffset + subtitle.getBBox().height);
			}
		}

		requiresDirtyBox = this.titleOffset !== titleOffset;
		this.titleOffset = titleOffset; // used in getMargins

		if (!this.isDirtyBox && requiresDirtyBox) {
			this.isDirtyBox = requiresDirtyBox;
			// Redraw if necessary (#2719, #2744)
			if (this.hasRendered && pick(redraw, true) && this.isDirtyBox) {
				this.redraw();
			}
		}
	},

	/**
	 * Get chart width and height according to options and container size
	 */
	getChartSize: function () {
		var chart = this,
			optionsChart = chart.options.chart,
			widthOption = optionsChart.width,
			heightOption = optionsChart.height,
			renderTo = chart.renderToClone || chart.renderTo;

		// get inner width and height from jQuery (#824)
		if (!defined(widthOption)) {
			chart.containerWidth = adapterRun(renderTo, 'width');
		}
		if (!defined(heightOption)) {
			chart.containerHeight = adapterRun(renderTo, 'height');
		}

		chart.chartWidth = mathMax(0, widthOption || chart.containerWidth || 600); // #1393, 1460
		chart.chartHeight = mathMax(0, pick(heightOption,
			// the offsetHeight of an empty container is 0 in standard browsers, but 19 in IE7:
			chart.containerHeight > 19 ? chart.containerHeight : 400));
	},

	/**
	 * Create a clone of the chart's renderTo div and place it outside the viewport to allow
	 * size computation on chart.render and chart.redraw
	 */
	cloneRenderTo: function (revert) {
		var clone = this.renderToClone,
			container = this.container;

		// Destroy the clone and bring the container back to the real renderTo div
		if (revert) {
			if (clone) {
				this.renderTo.appendChild(container);
				discardElement(clone);
				delete this.renderToClone;
			}

		// Set up the clone
		} else {
			if (container && container.parentNode === this.renderTo) {
				this.renderTo.removeChild(container); // do not clone this
			}
			this.renderToClone = clone = this.renderTo.cloneNode(0);
			css(clone, {
				position: ABSOLUTE,
				top: '-9999px',
				display: 'block' // #833
			});
			if (clone.style.setProperty) { // #2631
				clone.style.setProperty('display', 'block', 'important');
			}
			doc.body.appendChild(clone);
			if (container) {
				clone.appendChild(container);
			}
		}
	},

	/**
	 * Get the containing element, determine the size and create the inner container
	 * div to hold the chart
	 */
	getContainer: function () {
		var chart = this,
			container,
			optionsChart = chart.options.chart,
			chartWidth,
			chartHeight,
			renderTo,
			indexAttrName = 'data-highcharts-chart',
			oldChartIndex,
			containerId;

		chart.renderTo = renderTo = optionsChart.renderTo;
		containerId = PREFIX + idCounter++;

		if (isString(renderTo)) {
			chart.renderTo = renderTo = doc.getElementById(renderTo);
		}

		// Display an error if the renderTo is wrong
		if (!renderTo) {
			error(13, true);
		}

		// If the container already holds a chart, destroy it. The check for hasRendered is there
		// because web pages that are saved to disk from the browser, will preserve the data-highcharts-chart
		// attribute and the SVG contents, but not an interactive chart. So in this case,
		// charts[oldChartIndex] will point to the wrong chart if any (#2609).
		oldChartIndex = pInt(attr(renderTo, indexAttrName));
		if (!isNaN(oldChartIndex) && charts[oldChartIndex] && charts[oldChartIndex].hasRendered) {
			charts[oldChartIndex].destroy();
		}

		// Make a reference to the chart from the div
		attr(renderTo, indexAttrName, chart.index);

		// remove previous chart
		renderTo.innerHTML = '';

		// If the container doesn't have an offsetWidth, it has or is a child of a node
		// that has display:none. We need to temporarily move it out to a visible
		// state to determine the size, else the legend and tooltips won't render
		// properly. The allowClone option is used in sparklines as a micro optimization,
		// saving about 1-2 ms each chart.
		if (!optionsChart.skipClone && !renderTo.offsetWidth) {
			chart.cloneRenderTo();
		}

		// get the width and height
		chart.getChartSize();
		chartWidth = chart.chartWidth;
		chartHeight = chart.chartHeight;

		// create the inner container
		chart.container = container = createElement(DIV, {
				className: PREFIX + 'container' +
					(optionsChart.className ? ' ' + optionsChart.className : ''),
				id: containerId
			}, extend({
				position: RELATIVE,
				overflow: HIDDEN, // needed for context menu (avoid scrollbars) and
					// content overflow in IE
				width: chartWidth + PX,
				height: chartHeight + PX,
				textAlign: 'left',
				lineHeight: 'normal', // #427
				zIndex: 0, // #1072
				'-webkit-tap-highlight-color': 'rgba(0,0,0,0)'
			}, optionsChart.style),
			chart.renderToClone || renderTo
		);

		// cache the cursor (#1650)
		chart._cursor = container.style.cursor;

		// Initialize the renderer
		chart.renderer =
			optionsChart.forExport ? // force SVG, used for SVG export
				new SVGRenderer(container, chartWidth, chartHeight, optionsChart.style, true) :
				new Renderer(container, chartWidth, chartHeight, optionsChart.style);

		if (useCanVG) {
			// If we need canvg library, extend and configure the renderer
			// to get the tracker for translating mouse events
			chart.renderer.create(chart, container, chartWidth, chartHeight);
		}
	},

	/**
	 * Calculate margins by rendering axis labels in a preliminary position. Title,
	 * subtitle and legend have already been rendered at this stage, but will be
	 * moved into their final positions
	 */
	getMargins: function () {
		var chart = this,
			spacing = chart.spacing,
			axisOffset,
			legend = chart.legend,
			margin = chart.margin,
			legendOptions = chart.options.legend,
			legendMargin = pick(legendOptions.margin, 20),
			legendX = legendOptions.x,
			legendY = legendOptions.y,
			align = legendOptions.align,
			verticalAlign = legendOptions.verticalAlign,
			titleOffset = chart.titleOffset;

		chart.resetMargins();
		axisOffset = chart.axisOffset;

		// Adjust for title and subtitle
		if (titleOffset && !defined(margin[0])) {
			chart.plotTop = mathMax(chart.plotTop, titleOffset + chart.options.title.margin + spacing[0]);
		}

		// Adjust for legend
		if (legend.display && !legendOptions.floating) {
			if (align === 'right') { // horizontal alignment handled first
				if (!defined(margin[1])) {
					chart.marginRight = mathMax(
						chart.marginRight,
						legend.legendWidth - legendX + legendMargin + spacing[1]
					);
				}
			} else if (align === 'left') {
				if (!defined(margin[3])) {
					chart.plotLeft = mathMax(
						chart.plotLeft,
						legend.legendWidth + legendX + legendMargin + spacing[3]
					);
				}

			} else if (verticalAlign === 'top') {
				if (!defined(margin[0])) {
					chart.plotTop = mathMax(
						chart.plotTop,
						legend.legendHeight + legendY + legendMargin + spacing[0]
					);
				}

			} else if (verticalAlign === 'bottom') {
				if (!defined(margin[2])) {
					chart.marginBottom = mathMax(
						chart.marginBottom,
						legend.legendHeight - legendY + legendMargin + spacing[2]
					);
				}
			}
		}

		// adjust for scroller
		if (chart.extraBottomMargin) {
			chart.marginBottom += chart.extraBottomMargin;
		}
		if (chart.extraTopMargin) {
			chart.plotTop += chart.extraTopMargin;
		}

		// pre-render axes to get labels offset width
		if (chart.hasCartesianSeries) {
			each(chart.axes, function (axis) {
				axis.getOffset();
			});
		}

		if (!defined(margin[3])) {
			chart.plotLeft += axisOffset[3];
		}
		if (!defined(margin[0])) {
			chart.plotTop += axisOffset[0];
		}
		if (!defined(margin[2])) {
			chart.marginBottom += axisOffset[2];
		}
		if (!defined(margin[1])) {
			chart.marginRight += axisOffset[1];
		}

		chart.setChartSize();

	},

	/**
	 * Resize the chart to its container if size is not explicitly set
	 */
	reflow: function (e) {
		var chart = this,
			optionsChart = chart.options.chart,
			renderTo = chart.renderTo,
			width = optionsChart.width || adapterRun(renderTo, 'width'),
			height = optionsChart.height || adapterRun(renderTo, 'height'),
			target = e ? e.target : win, // #805 - MooTools doesn't supply e
			doReflow = function () {
				if (chart.container) { // It may have been destroyed in the meantime (#1257)
					chart.setSize(width, height, false);
					chart.hasUserSize = null;
				}
			};

		// Width and height checks for display:none. Target is doc in IE8 and Opera,
		// win in Firefox, Chrome and IE9.
		if (!chart.hasUserSize && width && height && (target === win || target === doc)) {
			if (width !== chart.containerWidth || height !== chart.containerHeight) {
				clearTimeout(chart.reflowTimeout);
				if (e) { // Called from window.resize
					chart.reflowTimeout = setTimeout(doReflow, 100);
				} else { // Called directly (#2224)
					doReflow();
				}
			}
			chart.containerWidth = width;
			chart.containerHeight = height;
		}
	},

	/**
	 * Add the event handlers necessary for auto resizing
	 */
	initReflow: function () {
		var chart = this,
			reflow = function (e) {
				chart.reflow(e);
			};


		addEvent(win, 'resize', reflow);
		addEvent(chart, 'destroy', function () {
			removeEvent(win, 'resize', reflow);
		});
	},

	/**
	 * Resize the chart to a given width and height
	 * @param {Number} width
	 * @param {Number} height
	 * @param {Object|Boolean} animation
	 */
	setSize: function (width, height, animation) {
		var chart = this,
			chartWidth,
			chartHeight,
			fireEndResize;

		// Handle the isResizing counter
		chart.isResizing += 1;
		fireEndResize = function () {
			if (chart) {
				fireEvent(chart, 'endResize', null, function () {
					chart.isResizing -= 1;
				});
			}
		};

		// set the animation for the current process
		setAnimation(animation, chart);

		chart.oldChartHeight = chart.chartHeight;
		chart.oldChartWidth = chart.chartWidth;
		if (defined(width)) {
			chart.chartWidth = chartWidth = mathMax(0, mathRound(width));
			chart.hasUserSize = !!chartWidth;
		}
		if (defined(height)) {
			chart.chartHeight = chartHeight = mathMax(0, mathRound(height));
		}

		// Resize the container with the global animation applied if enabled (#2503)
		(globalAnimation ? animate : css)(chart.container, {
			width: chartWidth + PX,
			height: chartHeight + PX
		}, globalAnimation);

		chart.setChartSize(true);
		chart.renderer.setSize(chartWidth, chartHeight, animation);

		// handle axes
		chart.maxTicks = null;
		each(chart.axes, function (axis) {
			axis.isDirty = true;
			axis.setScale();
		});

		// make sure non-cartesian series are also handled
		each(chart.series, function (serie) {
			serie.isDirty = true;
		});

		chart.isDirtyLegend = true; // force legend redraw
		chart.isDirtyBox = true; // force redraw of plot and chart border

		chart.layOutTitles(); // #2857
		chart.getMargins();

		chart.redraw(animation);


		chart.oldChartHeight = null;
		fireEvent(chart, 'resize');

		// fire endResize and set isResizing back
		// If animation is disabled, fire without delay
		if (globalAnimation === false) {
			fireEndResize();
		} else { // else set a timeout with the animation duration
			setTimeout(fireEndResize, (globalAnimation && globalAnimation.duration) || 500);
		}
	},

	/**
	 * Set the public chart properties. This is done before and after the pre-render
	 * to determine margin sizes
	 */
	setChartSize: function (skipAxes) {
		var chart = this,
			inverted = chart.inverted,
			renderer = chart.renderer,
			chartWidth = chart.chartWidth,
			chartHeight = chart.chartHeight,
			optionsChart = chart.options.chart,
			spacing = chart.spacing,
			clipOffset = chart.clipOffset,
			clipX,
			clipY,
			plotLeft,
			plotTop,
			plotWidth,
			plotHeight,
			plotBorderWidth;

		chart.plotLeft = plotLeft = mathRound(chart.plotLeft);
		chart.plotTop = plotTop = mathRound(chart.plotTop);
		chart.plotWidth = plotWidth = mathMax(0, mathRound(chartWidth - plotLeft - chart.marginRight));
		chart.plotHeight = plotHeight = mathMax(0, mathRound(chartHeight - plotTop - chart.marginBottom));

		chart.plotSizeX = inverted ? plotHeight : plotWidth;
		chart.plotSizeY = inverted ? plotWidth : plotHeight;

		chart.plotBorderWidth = optionsChart.plotBorderWidth || 0;

		// Set boxes used for alignment
		chart.spacingBox = renderer.spacingBox = {
			x: spacing[3],
			y: spacing[0],
			width: chartWidth - spacing[3] - spacing[1],
			height: chartHeight - spacing[0] - spacing[2]
		};
		chart.plotBox = renderer.plotBox = {
			x: plotLeft,
			y: plotTop,
			width: plotWidth,
			height: plotHeight
		};

		plotBorderWidth = 2 * mathFloor(chart.plotBorderWidth / 2);
		clipX = mathCeil(mathMax(plotBorderWidth, clipOffset[3]) / 2);
		clipY = mathCeil(mathMax(plotBorderWidth, clipOffset[0]) / 2);
		chart.clipBox = {
			x: clipX,
			y: clipY,
			width: mathFloor(chart.plotSizeX - mathMax(plotBorderWidth, clipOffset[1]) / 2 - clipX),
			height: mathMax(0, mathFloor(chart.plotSizeY - mathMax(plotBorderWidth, clipOffset[2]) / 2 - clipY))
		};

		if (!skipAxes) {
			each(chart.axes, function (axis) {
				axis.setAxisSize();
				axis.setAxisTranslation();
			});
		}
	},

	/**
	 * Initial margins before auto size margins are applied
	 */
	resetMargins: function () {
		var chart = this,
			spacing = chart.spacing,
			margin = chart.margin;

		chart.plotTop = pick(margin[0], spacing[0]);
		chart.marginRight = pick(margin[1], spacing[1]);
		chart.marginBottom = pick(margin[2], spacing[2]);
		chart.plotLeft = pick(margin[3], spacing[3]);
		chart.axisOffset = [0, 0, 0, 0]; // top, right, bottom, left
		chart.clipOffset = [0, 0, 0, 0];
	},

	/**
	 * Draw the borders and backgrounds for chart and plot area
	 */
	drawChartBox: function () {
		var chart = this,
			optionsChart = chart.options.chart,
			renderer = chart.renderer,
			chartWidth = chart.chartWidth,
			chartHeight = chart.chartHeight,
			chartBackground = chart.chartBackground,
			plotBackground = chart.plotBackground,
			plotBorder = chart.plotBorder,
			plotBGImage = chart.plotBGImage,
			chartBorderWidth = optionsChart.borderWidth || 0,
			chartBackgroundColor = optionsChart.backgroundColor,
			plotBackgroundColor = optionsChart.plotBackgroundColor,
			plotBackgroundImage = optionsChart.plotBackgroundImage,
			plotBorderWidth = optionsChart.plotBorderWidth || 0,
			mgn,
			bgAttr,
			plotLeft = chart.plotLeft,
			plotTop = chart.plotTop,
			plotWidth = chart.plotWidth,
			plotHeight = chart.plotHeight,
			plotBox = chart.plotBox,
			clipRect = chart.clipRect,
			clipBox = chart.clipBox;

		// Chart area
		mgn = chartBorderWidth + (optionsChart.shadow ? 8 : 0);

		if (chartBorderWidth || chartBackgroundColor) {
			if (!chartBackground) {

				bgAttr = {
					fill: chartBackgroundColor || NONE
				};
				if (chartBorderWidth) { // #980
					bgAttr.stroke = optionsChart.borderColor;
					bgAttr['stroke-width'] = chartBorderWidth;
				}
				chart.chartBackground = renderer.rect(mgn / 2, mgn / 2, chartWidth - mgn, chartHeight - mgn,
						optionsChart.borderRadius, chartBorderWidth)
					.attr(bgAttr)
					.addClass(PREFIX + 'background')
					.add()
					.shadow(optionsChart.shadow);

			} else { // resize
				chartBackground.animate(
					chartBackground.crisp({ width: chartWidth - mgn, height: chartHeight - mgn })
				);
			}
		}


		// Plot background
		if (plotBackgroundColor) {
			if (!plotBackground) {
				chart.plotBackground = renderer.rect(plotLeft, plotTop, plotWidth, plotHeight, 0)
					.attr({
						fill: plotBackgroundColor
					})
					.add()
					.shadow(optionsChart.plotShadow);
			} else {
				plotBackground.animate(plotBox);
			}
		}
		if (plotBackgroundImage) {
			if (!plotBGImage) {
				chart.plotBGImage = renderer.image(plotBackgroundImage, plotLeft, plotTop, plotWidth, plotHeight)
					.add();
			} else {
				plotBGImage.animate(plotBox);
			}
		}

		// Plot clip
		if (!clipRect) {
			chart.clipRect = renderer.clipRect(clipBox);
		} else {
			clipRect.animate({
				width: clipBox.width,
				height: clipBox.height
			});
		}

		// Plot area border
		if (plotBorderWidth) {
			if (!plotBorder) {
				chart.plotBorder = renderer.rect(plotLeft, plotTop, plotWidth, plotHeight, 0, -plotBorderWidth)
					.attr({
						stroke: optionsChart.plotBorderColor,
						'stroke-width': plotBorderWidth,
						fill: NONE,
						zIndex: 1
					})
					.add();
			} else {
				plotBorder.animate(
					plotBorder.crisp({ x: plotLeft, y: plotTop, width: plotWidth, height: plotHeight, strokeWidth: -plotBorderWidth }) //#3282 plotBorder should be negative
				);
			}
		}

		// reset
		chart.isDirtyBox = false;
	},

	/**
	 * Detect whether a certain chart property is needed based on inspecting its options
	 * and series. This mainly applies to the chart.invert property, and in extensions to
	 * the chart.angular and chart.polar properties.
	 */
	propFromSeries: function () {
		var chart = this,
			optionsChart = chart.options.chart,
			klass,
			seriesOptions = chart.options.series,
			i,
			value;


		each(['inverted', 'angular', 'polar'], function (key) {

			// The default series type's class
			klass = seriesTypes[optionsChart.type || optionsChart.defaultSeriesType];

			// Get the value from available chart-wide properties
			value = (
				chart[key] || // 1. it is set before
				optionsChart[key] || // 2. it is set in the options
				(klass && klass.prototype[key]) // 3. it's default series class requires it
			);

			// 4. Check if any the chart's series require it
			i = seriesOptions && seriesOptions.length;
			while (!value && i--) {
				klass = seriesTypes[seriesOptions[i].type];
				if (klass && klass.prototype[key]) {
					value = true;
				}
			}

			// Set the chart property
			chart[key] = value;
		});

	},

	/**
	 * Link two or more series together. This is done initially from Chart.render,
	 * and after Chart.addSeries and Series.remove.
	 */
	linkSeries: function () {
		var chart = this,
			chartSeries = chart.series;

		// Reset links
		each(chartSeries, function (series) {
			series.linkedSeries.length = 0;
		});

		// Apply new links
		each(chartSeries, function (series) {
			var linkedTo = series.options.linkedTo;
			if (isString(linkedTo)) {
				if (linkedTo === ':previous') {
					linkedTo = chart.series[series.index - 1];
				} else {
					linkedTo = chart.get(linkedTo);
				}
				if (linkedTo) {
					linkedTo.linkedSeries.push(series);
					series.linkedParent = linkedTo;
				}
			}
		});
	},

	/**
	 * Render series for the chart
	 */
	renderSeries: function () {
		each(this.series, function (serie) {
			serie.translate();
			if (serie.setTooltipPoints) {
				serie.setTooltipPoints();
			}
			serie.render();
		});
	},

	/**
	 * Render labels for the chart
	 */
	renderLabels: function () {
		var chart = this,
			labels = chart.options.labels;
		if (labels.items) {
			each(labels.items, function (label) {
				var style = extend(labels.style, label.style),
					x = pInt(style.left) + chart.plotLeft,
					y = pInt(style.top) + chart.plotTop + 12;

				// delete to prevent rewriting in IE
				delete style.left;
				delete style.top;

				chart.renderer.text(
					label.html,
					x,
					y
				)
				.attr({ zIndex: 2 })
				.css(style)
				.add();

			});
		}
	},

	/**
	 * Render all graphics for the chart
	 */
	render: function () {
		var chart = this,
			axes = chart.axes,
			renderer = chart.renderer,
			options = chart.options;

		// Title
		chart.setTitle();


		// Legend
		chart.legend = new Legend(chart, options.legend);

		chart.getStacks(); // render stacks

		// Get margins by pre-rendering axes
		// set axes scales
		each(axes, function (axis) {
			axis.setScale();
		});

		chart.getMargins();

		chart.maxTicks = null; // reset for second pass
		each(axes, function (axis) {
			axis.setTickPositions(true); // update to reflect the new margins
			axis.setMaxTicks();
		});
		chart.adjustTickAmounts();
		chart.getMargins(); // second pass to check for new labels


		// Draw the borders and backgrounds
		chart.drawChartBox();


		// Axes
		if (chart.hasCartesianSeries) {
			each(axes, function (axis) {
				axis.render();
			});
		}

		// The series
		if (!chart.seriesGroup) {
			chart.seriesGroup = renderer.g('series-group')
				.attr({ zIndex: 3 })
				.add();
		}
		chart.renderSeries();

		// Labels
		chart.renderLabels();

		// Credits
		chart.showCredits(options.credits);

		// Set flag
		chart.hasRendered = true;

	},

	/**
	 * Show chart credits based on config options
	 */
	showCredits: function (credits) {
		if (credits.enabled && !this.credits) {
			this.credits = this.renderer.text(
				credits.text,
				0,
				0
			)
			.on('click', function () {
				if (credits.href) {
					location.href = credits.href;
				}
			})
			.attr({
				align: credits.position.align,
				zIndex: 8
			})
			.css(credits.style)
			.add()
			.align(credits.position);
		}
	},

	/**
	 * Clean up memory usage
	 */
	destroy: function () {
		var chart = this,
			axes = chart.axes,
			series = chart.series,
			container = chart.container,
			i,
			parentNode = container && container.parentNode;

		// fire the chart.destoy event
		fireEvent(chart, 'destroy');

		// Delete the chart from charts lookup array
		charts[chart.index] = UNDEFINED;
		chartCount--;
		chart.renderTo.removeAttribute('data-highcharts-chart');

		// remove events
		removeEvent(chart);

		// ==== Destroy collections:
		// Destroy axes
		i = axes.length;
		while (i--) {
			axes[i] = axes[i].destroy();
		}

		// Destroy each series
		i = series.length;
		while (i--) {
			series[i] = series[i].destroy();
		}

		// ==== Destroy chart properties:
		each(['title', 'subtitle', 'chartBackground', 'plotBackground', 'plotBGImage',
				'plotBorder', 'seriesGroup', 'clipRect', 'credits', 'pointer', 'scroller',
				'rangeSelector', 'legend', 'resetZoomButton', 'tooltip', 'renderer'], function (name) {
			var prop = chart[name];

			if (prop && prop.destroy) {
				chart[name] = prop.destroy();
			}
		});

		// remove container and all SVG
		if (container) { // can break in IE when destroyed before finished loading
			container.innerHTML = '';
			removeEvent(container);
			if (parentNode) {
				discardElement(container);
			}

		}

		// clean it all up
		for (i in chart) {
			delete chart[i];
		}

	},


	/**
	 * VML namespaces can't be added until after complete. Listening
	 * for Perini's doScroll hack is not enough.
	 */
	isReadyToRender: function () {
		var chart = this;

		// Note: in spite of JSLint's complaints, win == win.top is required
		/*jslint eqeq: true*/
		if ((!hasSVG && (win == win.top && doc.readyState !== 'complete')) || (useCanVG && !win.canvg)) {
		/*jslint eqeq: false*/
			if (useCanVG) {
				// Delay rendering until canvg library is downloaded and ready
				CanVGController.push(function () { chart.firstRender(); }, chart.options.global.canvasToolsURL);
			} else {
				doc.attachEvent('onreadystatechange', function () {
					doc.detachEvent('onreadystatechange', chart.firstRender);
					if (doc.readyState === 'complete') {
						chart.firstRender();
					}
				});
			}
			return false;
		}
		return true;
	},

	/**
	 * Prepare for first rendering after all data are loaded
	 */
	firstRender: function () {
		var chart = this,
			options = chart.options,
			callback = chart.callback;

		// Check whether the chart is ready to render
		if (!chart.isReadyToRender()) {
			return;
		}

		// Create the container
		chart.getContainer();

		// Run an early event after the container and renderer are established
		fireEvent(chart, 'init');


		chart.resetMargins();
		chart.setChartSize();

		// Set the common chart properties (mainly invert) from the given series
		chart.propFromSeries();

		// get axes
		chart.getAxes();

		// Initialize the series
		each(options.series || [], function (serieOptions) {
			chart.initSeries(serieOptions);
		});

		chart.linkSeries();

		// Run an event after axes and series are initialized, but before render. At this stage,
		// the series data is indexed and cached in the xData and yData arrays, so we can access
		// those before rendering. Used in Highstock.
		fireEvent(chart, 'beforeRender');

		// depends on inverted and on margins being set
		if (Highcharts.Pointer) {
			chart.pointer = new Pointer(chart, options);
		}

		chart.render();

		// add canvas
		chart.renderer.draw();
		// run callbacks
		if (callback) {
			callback.apply(chart, [chart]);
		}
		each(chart.callbacks, function (fn) {
			fn.apply(chart, [chart]);
		});


		// If the chart was rendered outside the top container, put it back in
		chart.cloneRenderTo(true);

		fireEvent(chart, 'load');

	},

	/**
	* Creates arrays for spacing and margin from given options.
	*/
	splashArray: function (target, options) {
		var oVar = options[target],
			tArray = isObject(oVar) ? oVar : [oVar, oVar, oVar, oVar];

		return [pick(options[target + 'Top'], tArray[0]),
				pick(options[target + 'Right'], tArray[1]),
				pick(options[target + 'Bottom'], tArray[2]),
				pick(options[target + 'Left'], tArray[3])];
	}
}; // end Chart

// Hook for exporting module
Chart.prototype.callbacks = [];

var CenteredSeriesMixin = Highcharts.CenteredSeriesMixin = {
	/**
	 * Get the center of the pie based on the size and center options relative to the
	 * plot area. Borrowed by the polar and gauge series types.
	 */
	getCenter: function () {

		var options = this.options,
			chart = this.chart,
			slicingRoom = 2 * (options.slicedOffset || 0),
			handleSlicingRoom,
			plotWidth = chart.plotWidth - 2 * slicingRoom,
			plotHeight = chart.plotHeight - 2 * slicingRoom,
			centerOption = options.center,
			positions = [pick(centerOption[0], '50%'), pick(centerOption[1], '50%'), options.size || '100%', options.innerSize || 0],
			smallestSize = mathMin(plotWidth, plotHeight),
			isPercent;

		return map(positions, function (length, i) {
			isPercent = /%$/.test(length);
			handleSlicingRoom = i < 2 || (i === 2 && isPercent);
			return (isPercent ?
				// i == 0: centerX, relative to width
				// i == 1: centerY, relative to height
				// i == 2: size, relative to smallestSize
				// i == 4: innerSize, relative to smallestSize
				[plotWidth, plotHeight, smallestSize, smallestSize][i] *
					pInt(length) / 100 :
				length) + (handleSlicingRoom ? slicingRoom : 0);
		});
	}
};

/**
 * The Point object and prototype. Inheritable and used as base for PiePoint
 */
var Point = function () {};
Point.prototype = {

	/**
	 * Initialize the point
	 * @param {Object} series The series object containing this point
	 * @param {Object} options The data in either number, array or object format
	 */
	init: function (series, options, x) {

		var point = this,
			colors;
		point.series = series;
		point.applyOptions(options, x);
		point.pointAttr = {};

		if (series.options.colorByPoint) {
			colors = series.options.colors || series.chart.options.colors;
			point.color = point.color || colors[series.colorCounter++];
			// loop back to zero
			if (series.colorCounter === colors.length) {
				series.colorCounter = 0;
			}
		}

		series.chart.pointCount++;
		return point;
	},
	/**
	 * Apply the options containing the x and y data and possible some extra properties.
	 * This is called on point init or from point.update.
	 *
	 * @param {Object} options
	 */
	applyOptions: function (options, x) {
		var point = this,
			series = point.series,
			pointValKey = series.options.pointValKey || series.pointValKey;

		options = Point.prototype.optionsToObject.call(this, options);

		// copy options directly to point
		extend(point, options);
		point.options = point.options ? extend(point.options, options) : options;

		// For higher dimension series types. For instance, for ranges, point.y is mapped to point.low.
		if (pointValKey) {
			point.y = point[pointValKey];
		}

		// If no x is set by now, get auto incremented value. All points must have an
		// x value, however the y value can be null to create a gap in the series
		if (point.x === UNDEFINED && series) {
			point.x = x === UNDEFINED ? series.autoIncrement() : x;
		}

		return point;
	},

	/**
	 * Transform number or array configs into objects
	 */
	optionsToObject: function (options) {
		var ret = {},
			series = this.series,
			pointArrayMap = series.pointArrayMap || ['y'],
			valueCount = pointArrayMap.length,
			firstItemType,
			i = 0,
			j = 0;

		if (typeof options === 'number' || options === null) {
			ret[pointArrayMap[0]] = options;

		} else if (isArray(options)) {
			// with leading x value
			if (options.length > valueCount) {
				firstItemType = typeof options[0];
				if (firstItemType === 'string') {
					ret.name = options[0];
				} else if (firstItemType === 'number') {
					ret.x = options[0];
				}
				i++;
			}
			while (j < valueCount) {
				ret[pointArrayMap[j++]] = options[i++];
			}
		} else if (typeof options === 'object') {
			ret = options;

			// This is the fastest way to detect if there are individual point dataLabels that need
			// to be considered in drawDataLabels. These can only occur in object configs.
			if (options.dataLabels) {
				series._hasPointLabels = true;
			}

			// Same approach as above for markers
			if (options.marker) {
				series._hasPointMarkers = true;
			}
		}
		return ret;
	},

	/**
	 * Destroy a point to clear memory. Its reference still stays in series.data.
	 */
	destroy: function () {
		var point = this,
			series = point.series,
			chart = series.chart,
			hoverPoints = chart.hoverPoints,
			prop;

		chart.pointCount--;

		if (hoverPoints) {
			point.setState();
			erase(hoverPoints, point);
			if (!hoverPoints.length) {
				chart.hoverPoints = null;
			}

		}
		if (point === chart.hoverPoint) {
			point.onMouseOut();
		}

		// remove all events
		if (point.graphic || point.dataLabel) { // removeEvent and destroyElements are performance expensive
			removeEvent(point);
			point.destroyElements();
		}

		if (point.legendItem) { // pies have legend items
			chart.legend.destroyItem(point);
		}

		for (prop in point) {
			point[prop] = null;
		}


	},

	/**
	 * Destroy SVG elements associated with the point
	 */
	destroyElements: function () {
		var point = this,
			props = ['graphic', 'dataLabel', 'dataLabelUpper', 'group', 'connector', 'shadowGroup'],
			prop,
			i = 6;
		while (i--) {
			prop = props[i];
			if (point[prop]) {
				point[prop] = point[prop].destroy();
			}
		}
	},

	/**
	 * Return the configuration hash needed for the data label and tooltip formatters
	 */
	getLabelConfig: function () {
		var point = this;
		return {
			x: point.category,
			y: point.y,
			key: point.name || point.category,
			series: point.series,
			point: point,
			percentage: point.percentage,
			total: point.total || point.stackTotal
		};
	},

	/**
	 * Extendable method for formatting each point's tooltip line
	 *
	 * @return {String} A string to be concatenated in to the common tooltip text
	 */
	tooltipFormatter: function (pointFormat) {

		// Insert options for valueDecimals, valuePrefix, and valueSuffix
		var series = this.series,
			seriesTooltipOptions = series.tooltipOptions,
			valueDecimals = pick(seriesTooltipOptions.valueDecimals, ''),
			valuePrefix = seriesTooltipOptions.valuePrefix || '',
			valueSuffix = seriesTooltipOptions.valueSuffix || '';

		// Loop over the point array map and replace unformatted values with sprintf formatting markup
		each(series.pointArrayMap || ['y'], function (key) {
			key = '{point.' + key; // without the closing bracket
			if (valuePrefix || valueSuffix) {
				pointFormat = pointFormat.replace(key + '}', valuePrefix + key + '}' + valueSuffix);
			}
			pointFormat = pointFormat.replace(key + '}', key + ':,.' + valueDecimals + 'f}');
		});

		return format(pointFormat, {
			point: this,
			series: this.series
		});
	},

	/**
	 * Fire an event on the Point object. Must not be renamed to fireEvent, as this
	 * causes a name clash in MooTools
	 * @param {String} eventType
	 * @param {Object} eventArgs Additional event arguments
	 * @param {Function} defaultFunction Default event handler
	 */
	firePointEvent: function (eventType, eventArgs, defaultFunction) {
		var point = this,
			series = this.series,
			seriesOptions = series.options;

		// load event handlers on demand to save time on mouseover/out
		if (seriesOptions.point.events[eventType] || (point.options && point.options.events && point.options.events[eventType])) {
			this.importEvents();
		}

		// add default handler if in selection mode
		if (eventType === 'click' && seriesOptions.allowPointSelect) {
			defaultFunction = function (event) {
				// Control key is for Windows, meta (= Cmd key) for Mac, Shift for Opera
				point.select(null, event.ctrlKey || event.metaKey || event.shiftKey);
			};
		}

		fireEvent(this, eventType, eventArgs, defaultFunction);
	}
};/**
 * @classDescription The base function which all other series types inherit from. The data in the series is stored
 * in various arrays.
 *
 * - First, series.options.data contains all the original config options for
 * each point whether added by options or methods like series.addPoint.
 * - Next, series.data contains those values converted to points, but in case the series data length
 * exceeds the cropThreshold, or if the data is grouped, series.data doesn't contain all the points. It
 * only contains the points that have been created on demand.
 * - Then there's series.points that contains all currently visible point objects. In case of cropping,
 * the cropped-away points are not part of this array. The series.points array starts at series.cropStart
 * compared to series.data and series.options.data. If however the series data is grouped, these can't
 * be correlated one to one.
 * - series.xData and series.processedXData contain clean x values, equivalent to series.data and series.points.
 * - series.yData and series.processedYData contain clean x values, equivalent to series.data and series.points.
 *
 * @param {Object} chart
 * @param {Object} options
 */
var Series = function () {};

Series.prototype = {

	isCartesian: true,
	type: 'line',
	pointClass: Point,
	sorted: true, // requires the data to be sorted
	requireSorting: true,
	pointAttrToOptions: { // mapping between SVG attributes and the corresponding options
		stroke: 'lineColor',
		'stroke-width': 'lineWidth',
		fill: 'fillColor',
		r: 'radius'
	},
	axisTypes: ['xAxis', 'yAxis'],
	colorCounter: 0,
	parallelArrays: ['x', 'y'], // each point's x and y values are stored in this.xData and this.yData
	init: function (chart, options) {
		var series = this,
			eventType,
			events,
			chartSeries = chart.series,
			sortByIndex = function (a, b) {
				return pick(a.options.index, a._i) - pick(b.options.index, b._i);
			};

		series.chart = chart;
		series.options = options = series.setOptions(options); // merge with plotOptions
		series.linkedSeries = [];

		// bind the axes
		series.bindAxes();

		// set some variables
		extend(series, {
			name: options.name,
			state: NORMAL_STATE,
			pointAttr: {},
			visible: options.visible !== false, // true by default
			selected: options.selected === true // false by default
		});

		// special
		if (useCanVG) {
			options.animation = false;
		}

		// register event listeners
		events = options.events;
		for (eventType in events) {
			addEvent(series, eventType, events[eventType]);
		}
		if (
			(events && events.click) ||
			(options.point && options.point.events && options.point.events.click) ||
			options.allowPointSelect
		) {
			chart.runTrackerClick = true;
		}

		series.getColor();
		series.getSymbol();

		// Set the data
		each(series.parallelArrays, function (key) {
			series[key + 'Data'] = [];
		});
		series.setData(options.data, false);

		// Mark cartesian
		if (series.isCartesian) {
			chart.hasCartesianSeries = true;
		}

		// Register it in the chart
		chartSeries.push(series);
		series._i = chartSeries.length - 1;

		// Sort series according to index option (#248, #1123, #2456)
		stableSort(chartSeries, sortByIndex);
		if (this.yAxis) {
			stableSort(this.yAxis.series, sortByIndex);
		}

		each(chartSeries, function (series, i) {
			series.index = i;
			series.name = series.name || 'Series ' + (i + 1);
		});

	},

	/**
	 * Set the xAxis and yAxis properties of cartesian series, and register the series
	 * in the axis.series array
	 */
	bindAxes: function () {
		var series = this,
			seriesOptions = series.options,
			chart = series.chart,
			axisOptions;

		each(series.axisTypes || [], function (AXIS) { // repeat for xAxis and yAxis

			each(chart[AXIS], function (axis) { // loop through the chart's axis objects
				axisOptions = axis.options;

				// apply if the series xAxis or yAxis option mathches the number of the
				// axis, or if undefined, use the first axis
				if ((seriesOptions[AXIS] === axisOptions.index) ||
						(seriesOptions[AXIS] !== UNDEFINED && seriesOptions[AXIS] === axisOptions.id) ||
						(seriesOptions[AXIS] === UNDEFINED && axisOptions.index === 0)) {

					// register this series in the axis.series lookup
					axis.series.push(series);

					// set this series.xAxis or series.yAxis reference
					series[AXIS] = axis;

					// mark dirty for redraw
					axis.isDirty = true;
				}
			});

			// The series needs an X and an Y axis
			if (!series[AXIS] && series.optionalAxis !== AXIS) {
				error(18, true);
			}

		});
	},

	/**
	 * For simple series types like line and column, the data values are held in arrays like
	 * xData and yData for quick lookup to find extremes and more. For multidimensional series
	 * like bubble and map, this can be extended with arrays like zData and valueData by
	 * adding to the series.parallelArrays array.
	 */
	updateParallelArrays: function (point, i) {
		var series = point.series,
			args = arguments,
			fn = typeof i === 'number' ?
				 // Insert the value in the given position
				function (key) {
					var val = key === 'y' && series.toYData ? series.toYData(point) : point[key];
					series[key + 'Data'][i] = val;
				} :
				// Apply the method specified in i with the following arguments as arguments
				function (key) {
					Array.prototype[i].apply(series[key + 'Data'], Array.prototype.slice.call(args, 2));
				};

		each(series.parallelArrays, fn);
	},

	/**
	 * Return an auto incremented x value based on the pointStart and pointInterval options.
	 * This is only used if an x value is not given for the point that calls autoIncrement.
	 */
	autoIncrement: function () {
		var series = this,
			options = series.options,
			xIncrement = series.xIncrement;

		xIncrement = pick(xIncrement, options.pointStart, 0);

		series.pointInterval = pick(series.pointInterval, options.pointInterval, 1);

		series.xIncrement = xIncrement + series.pointInterval;
		return xIncrement;
	},

	/**
	 * Divide the series data into segments divided by null values.
	 */
	getSegments: function () {
		var series = this,
			lastNull = -1,
			segments = [],
			i,
			points = series.points,
			pointsLength = points.length;

		if (pointsLength) { // no action required for []

			// if connect nulls, just remove null points
			if (series.options.connectNulls) {
				i = pointsLength;
				while (i--) {
					if (points[i].y === null) {
						points.splice(i, 1);
					}
				}
				if (points.length) {
					segments = [points];
				}

			// else, split on null points
			} else {
				each(points, function (point, i) {
					if (point.y === null) {
						if (i > lastNull + 1) {
							segments.push(points.slice(lastNull + 1, i));
						}
						lastNull = i;
					} else if (i === pointsLength - 1) { // last value
						segments.push(points.slice(lastNull + 1, i + 1));
					}
				});
			}
		}

		// register it
		series.segments = segments;
	},

	/**
	 * Set the series options by merging from the options tree
	 * @param {Object} itemOptions
	 */
	setOptions: function (itemOptions) {
		var chart = this.chart,
			chartOptions = chart.options,
			plotOptions = chartOptions.plotOptions,
			userOptions = chart.userOptions || {},
			userPlotOptions = userOptions.plotOptions || {},
			typeOptions = plotOptions[this.type],
			options;

		this.userOptions = itemOptions;

		options = merge(
			typeOptions,
			plotOptions.series,
			itemOptions
		);

		// The tooltip options are merged between global and series specific options
		this.tooltipOptions = merge(
			defaultOptions.tooltip,
			defaultOptions.plotOptions[this.type].tooltip,
			userOptions.tooltip,
			userPlotOptions.series && userPlotOptions.series.tooltip,
			userPlotOptions[this.type] && userPlotOptions[this.type].tooltip,
			itemOptions.tooltip
		);

		// Delete marker object if not allowed (#1125)
		if (typeOptions.marker === null) {
			delete options.marker;
		}

		return options;

	},

	getCyclic: function (prop, value, defaults) {
		var i,
			userOptions = this.userOptions,
			indexName = '_' + prop + 'Index',
			counterName = prop + 'Counter';

		if (!value) {
			if (defined(userOptions[indexName])) { // after Series.update()
				i = userOptions[indexName];
			} else {
				userOptions[indexName] = i = this.chart[counterName] % defaults.length;
				this.chart[counterName] += 1;
			}
			value = defaults[i];
		}
		this[prop] = value;
	},

	/**
	 * Get the series' color
	 */
	getColor: function () {
		if (!this.options.colorByPoint) {
			this.getCyclic('color', this.options.color || defaultPlotOptions[this.type].color, this.chart.options.colors);
		}
	},
	/**
	 * Get the series' symbol
	 */
	getSymbol: function () {
		var seriesMarkerOption = this.options.marker;

		this.getCyclic('symbol', seriesMarkerOption.symbol, this.chart.options.symbols);

		// don't substract radius in image symbols (#604)
		if (/^url/.test(this.symbol)) {
			seriesMarkerOption.radius = 0;
		}
	},

	drawLegendSymbol: LegendSymbolMixin.drawLineMarker,

	/**
	 * Replace the series data with a new set of data
	 * @param {Object} data
	 * @param {Object} redraw
	 */
	setData: function (data, redraw, animation, updatePoints) {
		var series = this,
			oldData = series.points,
			oldDataLength = (oldData && oldData.length) || 0,
			dataLength,
			options = series.options,
			chart = series.chart,
			firstPoint = null,
			xAxis = series.xAxis,
			hasCategories = xAxis && !!xAxis.categories,
			tooltipPoints = series.tooltipPoints,
			i,
			turboThreshold = options.turboThreshold,
			pt,
			xData = this.xData,
			yData = this.yData,
			pointArrayMap = series.pointArrayMap,
			valueCount = pointArrayMap && pointArrayMap.length;

		data = data || [];
		dataLength = data.length;
		redraw = pick(redraw, true);

		// If the point count is the same as is was, just run Point.update which is
		// cheaper, allows animation, and keeps references to points.
		if (updatePoints !== false && dataLength && oldDataLength === dataLength && !series.cropped && !series.hasGroupedData) {
			each(data, function (point, i) {
				oldData[i].update(point, false, null, false);
			});

		} else {

			// Reset properties
			series.xIncrement = null;
			series.pointRange = hasCategories ? 1 : options.pointRange;

			series.colorCounter = 0; // for series with colorByPoint (#1547)

			// Update parallel arrays
			each(this.parallelArrays, function (key) {
				series[key + 'Data'].length = 0;
			});

			// In turbo mode, only one- or twodimensional arrays of numbers are allowed. The
			// first value is tested, and we assume that all the rest are defined the same
			// way. Although the 'for' loops are similar, they are repeated inside each
			// if-else conditional for max performance.
			if (turboThreshold && dataLength > turboThreshold) {

				// find the first non-null point
				i = 0;
				while (firstPoint === null && i < dataLength) {
					firstPoint = data[i];
					i++;
				}


				if (isNumber(firstPoint)) { // assume all points are numbers
					var x = pick(options.pointStart, 0),
						pointInterval = pick(options.pointInterval, 1);

					for (i = 0; i < dataLength; i++) {
						xData[i] = x;
						yData[i] = data[i];
						x += pointInterval;
					}
					series.xIncrement = x;
				} else if (isArray(firstPoint)) { // assume all points are arrays
					if (valueCount) { // [x, low, high] or [x, o, h, l, c]
						for (i = 0; i < dataLength; i++) {
							pt = data[i];
							xData[i] = pt[0];
							yData[i] = pt.slice(1, valueCount + 1);
						}
					} else { // [x, y]
						for (i = 0; i < dataLength; i++) {
							pt = data[i];
							xData[i] = pt[0];
							yData[i] = pt[1];
						}
					}
				} else {
					error(12); // Highcharts expects configs to be numbers or arrays in turbo mode
				}
			} else {
				for (i = 0; i < dataLength; i++) {
					if (data[i] !== UNDEFINED) { // stray commas in oldIE
						pt = { series: series };
						series.pointClass.prototype.applyOptions.apply(pt, [data[i]]);
						series.updateParallelArrays(pt, i);
						if (hasCategories && pt.name) {
							xAxis.names[pt.x] = pt.name; // #2046
						}
					}
				}
			}

			// Forgetting to cast strings to numbers is a common caveat when handling CSV or JSON
			if (isString(yData[0])) {
				error(14, true);
			}

			series.data = [];
			series.options.data = data;
			//series.zData = zData;

			// destroy old points
			i = oldDataLength;
			while (i--) {
				if (oldData[i] && oldData[i].destroy) {
					oldData[i].destroy();
				}
			}
			if (tooltipPoints) { // #2594
				tooltipPoints.length = 0;
			}

			// reset minRange (#878)
			if (xAxis) {
				xAxis.minRange = xAxis.userMinRange;
			}

			// redraw
			series.isDirty = series.isDirtyData = chart.isDirtyBox = true;
			animation = false;
		}

		if (redraw) {
			chart.redraw(animation);
		}
	},

	/**
	 * Process the data by cropping away unused data points if the series is longer
	 * than the crop threshold. This saves computing time for lage series.
	 */
	processData: function (force) {
		var series = this,
			processedXData = series.xData, // copied during slice operation below
			processedYData = series.yData,
			dataLength = processedXData.length,
			croppedData,
			cropStart = 0,
			cropped,
			distance,
			closestPointRange,
			xAxis = series.xAxis,
			i, // loop variable
			options = series.options,
			cropThreshold = options.cropThreshold,
			activePointCount = 0,
			isCartesian = series.isCartesian,
			xExtremes,
			min,
			max;

		// If the series data or axes haven't changed, don't go through this. Return false to pass
		// the message on to override methods like in data grouping.
		if (isCartesian && !series.isDirty && !xAxis.isDirty && !series.yAxis.isDirty && !force) {
			return false;
		}

		if (xAxis) {
			xExtremes = xAxis.getExtremes(); // corrected for log axis (#3053)
			min = xExtremes.min;
			max = xExtremes.max;
		}

		// optionally filter out points outside the plot area
		if (isCartesian && series.sorted && (!cropThreshold || dataLength > cropThreshold || series.forceCrop)) {

			// it's outside current extremes
			if (processedXData[dataLength - 1] < min || processedXData[0] > max) {
				processedXData = [];
				processedYData = [];

			// only crop if it's actually spilling out
			} else if (processedXData[0] < min || processedXData[dataLength - 1] > max) {
				croppedData = this.cropData(series.xData, series.yData, min, max);
				processedXData = croppedData.xData;
				processedYData = croppedData.yData;
				cropStart = croppedData.start;
				cropped = true;
				activePointCount = processedXData.length;
			}
		}


		// Find the closest distance between processed points
		for (i = processedXData.length - 1; i >= 0; i--) {
			distance = processedXData[i] - processedXData[i - 1];

			if (!cropped && processedXData[i] > min && processedXData[i] < max) {
				activePointCount++;
			}

			if (distance > 0 && (closestPointRange === UNDEFINED || distance < closestPointRange)) {
				closestPointRange = distance;

			// Unsorted data is not supported by the line tooltip, as well as data grouping and
			// navigation in Stock charts (#725) and width calculation of columns (#1900)
			} else if (distance < 0 && series.requireSorting) {
				error(15);
			}
		}

		// Record the properties
		series.cropped = cropped; // undefined or true
		series.cropStart = cropStart;
		series.processedXData = processedXData;
		series.processedYData = processedYData;
		series.activePointCount = activePointCount;

		if (options.pointRange === null) { // null means auto, as for columns, candlesticks and OHLC
			series.pointRange = closestPointRange || 1;
		}
		series.closestPointRange = closestPointRange;

	},

	/**
	 * Iterate over xData and crop values between min and max. Returns object containing crop start/end
	 * cropped xData with corresponding part of yData, dataMin and dataMax within the cropped range
	 */
	cropData: function (xData, yData, min, max) {
		var dataLength = xData.length,
			cropStart = 0,
			cropEnd = dataLength,
			cropShoulder = pick(this.cropShoulder, 1), // line-type series need one point outside
			i;

		// iterate up to find slice start
		for (i = 0; i < dataLength; i++) {
			if (xData[i] >= min) {
				cropStart = mathMax(0, i - cropShoulder);
				break;
			}
		}

		// proceed to find slice end
		for (; i < dataLength; i++) {
			if (xData[i] > max) {
				cropEnd = i + cropShoulder;
				break;
			}
		}

		return {
			xData: xData.slice(cropStart, cropEnd),
			yData: yData.slice(cropStart, cropEnd),
			start: cropStart,
			end: cropEnd
		};
	},


	/**
	 * Generate the data point after the data has been processed by cropping away
	 * unused points and optionally grouped in Highcharts Stock.
	 */
	generatePoints: function () {
		var series = this,
			options = series.options,
			dataOptions = options.data,
			data = series.data,
			dataLength,
			processedXData = series.processedXData,
			processedYData = series.processedYData,
			pointClass = series.pointClass,
			processedDataLength = processedXData.length,
			cropStart = series.cropStart || 0,
			cursor,
			hasGroupedData = series.hasGroupedData,
			point,
			points = [],
			i;

		if (!data && !hasGroupedData) {
			var arr = [];
			arr.length = dataOptions.length;
			data = series.data = arr;
		}

		for (i = 0; i < processedDataLength; i++) {
			cursor = cropStart + i;
			if (!hasGroupedData) {
				if (data[cursor]) {
					point = data[cursor];
				} else if (dataOptions[cursor] !== UNDEFINED) { // #970
					data[cursor] = point = (new pointClass()).init(series, dataOptions[cursor], processedXData[i]);
				}
				points[i] = point;
			} else {
				// splat the y data in case of ohlc data array
				points[i] = (new pointClass()).init(series, [processedXData[i]].concat(splat(processedYData[i])));
			}
			points[i].index = cursor; // For faster access in Point.update
		}

		// Hide cropped-away points - this only runs when the number of points is above cropThreshold, or when
		// swithching view from non-grouped data to grouped data (#637)
		if (data && (processedDataLength !== (dataLength = data.length) || hasGroupedData)) {
			for (i = 0; i < dataLength; i++) {
				if (i === cropStart && !hasGroupedData) { // when has grouped data, clear all points
					i += processedDataLength;
				}
				if (data[i]) {
					data[i].destroyElements();
					data[i].plotX = UNDEFINED; // #1003
				}
			}
		}

		series.data = data;
		series.points = points;
	},

	/**
	 * Calculate Y extremes for visible data
	 */
	getExtremes: function (yData) {
		var xAxis = this.xAxis,
			yAxis = this.yAxis,
			xData = this.processedXData,
			yDataLength,
			activeYData = [],
			activeCounter = 0,
			xExtremes = xAxis.getExtremes(), // #2117, need to compensate for log X axis
			xMin = xExtremes.min,
			xMax = xExtremes.max,
			validValue,
			withinRange,
			dataMin,
			dataMax,
			x,
			y,
			i,
			j;

		yData = yData || this.stackedYData || this.processedYData;
		yDataLength = yData.length;

		for (i = 0; i < yDataLength; i++) {

			x = xData[i];
			y = yData[i];

			// For points within the visible range, including the first point outside the
			// visible range, consider y extremes
			validValue = y !== null && y !== UNDEFINED && (!yAxis.isLog || (y.length || y > 0));
			withinRange = this.getExtremesFromAll || this.cropped || ((xData[i + 1] || x) >= xMin &&
				(xData[i - 1] || x) <= xMax);

			if (validValue && withinRange) {

				j = y.length;
				if (j) { // array, like ohlc or range data
					while (j--) {
						if (y[j] !== null) {
							activeYData[activeCounter++] = y[j];
						}
					}
				} else {
					activeYData[activeCounter++] = y;
				}
			}
		}
		this.dataMin = pick(dataMin, arrayMin(activeYData));
		this.dataMax = pick(dataMax, arrayMax(activeYData));
	},

	/**
	 * Translate data points from raw data values to chart specific positioning data
	 * needed later in drawPoints, drawGraph and drawTracker.
	 */
	translate: function () {
		if (!this.processedXData) { // hidden series
			this.processData();
		}
		this.generatePoints();
		var series = this,
			options = series.options,
			stacking = options.stacking,
			xAxis = series.xAxis,
			categories = xAxis.categories,
			yAxis = series.yAxis,
			points = series.points,
			dataLength = points.length,
			hasModifyValue = !!series.modifyValue,
			i,
			pointPlacement = options.pointPlacement,
			dynamicallyPlaced = pointPlacement === 'between' || isNumber(pointPlacement),
			threshold = options.threshold;

		// Translate each point
		for (i = 0; i < dataLength; i++) {
			var point = points[i],
				xValue = point.x,
				yValue = point.y,
				yBottom = point.low,
				stack = stacking && yAxis.stacks[(series.negStacks && yValue < threshold ? '-' : '') + series.stackKey],
				pointStack,
				stackValues;

			// Discard disallowed y values for log axes
			if (yAxis.isLog && yValue <= 0) {
				point.y = yValue = null;
				error(10);
			}

			// Get the plotX translation
			point.plotX = xAxis.translate(xValue, 0, 0, 0, 1, pointPlacement, this.type === 'flags'); // Math.round fixes #591


			// Calculate the bottom y value for stacked series
			if (stacking && series.visible && stack && stack[xValue]) {

				pointStack = stack[xValue];
				stackValues = pointStack.points[series.index + ',' + i];
				yBottom = stackValues[0];
				yValue = stackValues[1];

				if (yBottom === 0) {
					yBottom = pick(threshold, yAxis.min);
				}
				if (yAxis.isLog && yBottom <= 0) { // #1200, #1232
					yBottom = null;
				}

				point.total = point.stackTotal = pointStack.total;
				point.percentage = pointStack.total && (point.y / pointStack.total * 100);
				point.stackY = yValue;

				// Place the stack label
				pointStack.setOffset(series.pointXOffset || 0, series.barW || 0);

			}

			// Set translated yBottom or remove it
			point.yBottom = defined(yBottom) ?
				yAxis.translate(yBottom, 0, 1, 0, 1) :
				null;

			// general hook, used for Highstock compare mode
			if (hasModifyValue) {
				yValue = series.modifyValue(yValue, point);
			}

			// Set the the plotY value, reset it for redraws
			point.plotY = (typeof yValue === 'number' && yValue !== Infinity) ?
				//mathRound(yAxis.translate(yValue, 0, 1, 0, 1) * 10) / 10 : // Math.round fixes #591
				yAxis.translate(yValue, 0, 1, 0, 1) :
				UNDEFINED;

			// Set client related positions for mouse tracking
			point.clientX = dynamicallyPlaced ? xAxis.translate(xValue, 0, 0, 0, 1) : point.plotX; // #1514

			point.negative = point.y < (threshold || 0);

			// some API data
			point.category = categories && categories[point.x] !== UNDEFINED ?
				categories[point.x] : point.x;

		}

		// now that we have the cropped data, build the segments
		series.getSegments();
	},

	/**
	 * Animate in the series
	 */
	animate: function (init) {
		var series = this,
			chart = series.chart,
			renderer = chart.renderer,
			clipRect,
			markerClipRect,
			animation = series.options.animation,
			clipBox = series.clipBox || chart.clipBox,
			inverted = chart.inverted,
			sharedClipKey;

		// Animation option is set to true
		if (animation && !isObject(animation)) {
			animation = defaultPlotOptions[series.type].animation;
		}
		sharedClipKey = ['_sharedClip', animation.duration, animation.easing, clipBox.height].join(',');

		// Initialize the animation. Set up the clipping rectangle.
		if (init) {

			// If a clipping rectangle with the same properties is currently present in the chart, use that.
			clipRect = chart[sharedClipKey];
			markerClipRect = chart[sharedClipKey + 'm'];
			if (!clipRect) {
				chart[sharedClipKey] = clipRect = renderer.clipRect(
					extend(clipBox, { width: 0 })
				);

				chart[sharedClipKey + 'm'] = markerClipRect = renderer.clipRect(
					-99, // include the width of the first marker
					inverted ? -chart.plotLeft : -chart.plotTop,
					99,
					inverted ? chart.chartWidth : chart.chartHeight
				);
			}
			series.group.clip(clipRect);
			series.markerGroup.clip(markerClipRect);
			series.sharedClipKey = sharedClipKey;

		// Run the animation
		} else {
			clipRect = chart[sharedClipKey];
			if (clipRect) {
				clipRect.animate({
					width: chart.plotSizeX
				}, animation);
			}
			if (chart[sharedClipKey + 'm']) {
				chart[sharedClipKey + 'm'].animate({
					width: chart.plotSizeX + 99
				}, animation);
			}

			// Delete this function to allow it only once
			series.animate = null;

		}
	},

	/**
	 * This runs after animation to land on the final plot clipping
	 */
	afterAnimate: function () {
		var chart = this.chart,
			sharedClipKey = this.sharedClipKey,
			group = this.group,
			clipBox = this.clipBox;

		if (group && this.options.clip !== false) {
			if (!sharedClipKey || !clipBox) {
				group.clip(clipBox ? chart.renderer.clipRect(clipBox) : chart.clipRect);
			}
			this.markerGroup.clip(); // no clip
		}

		fireEvent(this, 'afterAnimate');

		// Remove the shared clipping rectancgle when all series are shown
		setTimeout(function () {
			if (sharedClipKey && chart[sharedClipKey]) {
				if (!clipBox) {
					chart[sharedClipKey] = chart[sharedClipKey].destroy();
				}
				if (chart[sharedClipKey + 'm']) {
					chart[sharedClipKey + 'm'] = chart[sharedClipKey + 'm'].destroy();
				}
			}
		}, 100);
	},

	/**
	 * Draw the markers
	 */
	drawPoints: function () {
		var series = this,
			pointAttr,
			points = series.points,
			chart = series.chart,
			plotX,
			plotY,
			i,
			point,
			radius,
			symbol,
			isImage,
			graphic,
			options = series.options,
			seriesMarkerOptions = options.marker,
			seriesPointAttr = series.pointAttr[''],
			pointMarkerOptions,
			hasPointMarker,
			enabled,
			isInside,
			markerGroup = series.markerGroup,
			globallyEnabled = pick(
				seriesMarkerOptions.enabled,
				!series.requireSorting || series.activePointCount < (0.5 * series.xAxis.len / seriesMarkerOptions.radius)
			);

		if (seriesMarkerOptions.enabled !== false || series._hasPointMarkers) {

			i = points.length;
			while (i--) {
				point = points[i];
				plotX = mathFloor(point.plotX); // #1843
				plotY = point.plotY;
				graphic = point.graphic;
				pointMarkerOptions = point.marker || {};
				hasPointMarker = !!point.marker;
				enabled = (globallyEnabled && pointMarkerOptions.enabled === UNDEFINED) || pointMarkerOptions.enabled;
				isInside = chart.isInsidePlot(mathRound(plotX), plotY, chart.inverted); // #1858

				// only draw the point if y is defined
				if (enabled && plotY !== UNDEFINED && !isNaN(plotY) && point.y !== null) {

					// shortcuts
					pointAttr = point.pointAttr[point.selected ? SELECT_STATE : NORMAL_STATE] || seriesPointAttr;
					radius = pointAttr.r;
					symbol = pick(pointMarkerOptions.symbol, series.symbol);
					isImage = symbol.indexOf('url') === 0;

					if (graphic) { // update
						graphic[isInside ? 'show' : 'hide'](true) // Since the marker group isn't clipped, each individual marker must be toggled
							.animate(extend({
								x: plotX - radius,
								y: plotY - radius
							}, graphic.symbolName ? { // don't apply to image symbols #507
								width: 2 * radius,
								height: 2 * radius
							} : {}));
					} else if (isInside && (radius > 0 || isImage)) {
						point.graphic = graphic = chart.renderer.symbol(
							symbol,
							plotX - radius,
							plotY - radius,
							2 * radius,
							2 * radius,
							hasPointMarker ? pointMarkerOptions : seriesMarkerOptions
						)
						.attr(pointAttr)
						.add(markerGroup);
					}

				} else if (graphic) {
					point.graphic = graphic.destroy(); // #1269
				}
			}
		}

	},

	/**
	 * Convert state properties from API naming conventions to SVG attributes
	 *
	 * @param {Object} options API options object
	 * @param {Object} base1 SVG attribute object to inherit from
	 * @param {Object} base2 Second level SVG attribute object to inherit from
	 */
	convertAttribs: function (options, base1, base2, base3) {
		var conversion = this.pointAttrToOptions,
			attr,
			option,
			obj = {};

		options = options || {};
		base1 = base1 || {};
		base2 = base2 || {};
		base3 = base3 || {};

		for (attr in conversion) {
			option = conversion[attr];
			obj[attr] = pick(options[option], base1[attr], base2[attr], base3[attr]);
		}
		return obj;
	},

	/**
	 * Get the state attributes. Each series type has its own set of attributes
	 * that are allowed to change on a point's state change. Series wide attributes are stored for
	 * all series, and additionally point specific attributes are stored for all
	 * points with individual marker options. If such options are not defined for the point,
	 * a reference to the series wide attributes is stored in point.pointAttr.
	 */
	getAttribs: function () {
		var series = this,
			seriesOptions = series.options,
			normalOptions = defaultPlotOptions[series.type].marker ? seriesOptions.marker : seriesOptions,
			stateOptions = normalOptions.states,
			stateOptionsHover = stateOptions[HOVER_STATE],
			pointStateOptionsHover,
			seriesColor = series.color,
			normalDefaults = {
				stroke: seriesColor,
				fill: seriesColor
			},
			points = series.points || [], // #927
			i,
			point,
			seriesPointAttr = [],
			pointAttr,
			pointAttrToOptions = series.pointAttrToOptions,
			hasPointSpecificOptions = series.hasPointSpecificOptions,
			negativeColor = seriesOptions.negativeColor,
			defaultLineColor = normalOptions.lineColor,
			defaultFillColor = normalOptions.fillColor,
			turboThreshold = seriesOptions.turboThreshold,
			attr,
			key;

		// series type specific modifications
		if (seriesOptions.marker) { // line, spline, area, areaspline, scatter

			// if no hover radius is given, default to normal radius + 2
			stateOptionsHover.radius = stateOptionsHover.radius || normalOptions.radius + stateOptionsHover.radiusPlus;
			stateOptionsHover.lineWidth = stateOptionsHover.lineWidth || normalOptions.lineWidth + stateOptionsHover.lineWidthPlus;

		} else { // column, bar, pie

			// if no hover color is given, brighten the normal color
			stateOptionsHover.color = stateOptionsHover.color ||
				Color(stateOptionsHover.color || seriesColor)
					.brighten(stateOptionsHover.brightness).get();
		}

		// general point attributes for the series normal state
		seriesPointAttr[NORMAL_STATE] = series.convertAttribs(normalOptions, normalDefaults);

		// HOVER_STATE and SELECT_STATE states inherit from normal state except the default radius
		each([HOVER_STATE, SELECT_STATE], function (state) {
			seriesPointAttr[state] =
					series.convertAttribs(stateOptions[state], seriesPointAttr[NORMAL_STATE]);
		});

		// set it
		series.pointAttr = seriesPointAttr;


		// Generate the point-specific attribute collections if specific point
		// options are given. If not, create a referance to the series wide point
		// attributes
		i = points.length;
		if (!turboThreshold || i < turboThreshold || hasPointSpecificOptions) {
			while (i--) {
				point = points[i];
				normalOptions = (point.options && point.options.marker) || point.options;
				if (normalOptions && normalOptions.enabled === false) {
					normalOptions.radius = 0;
				}

				if (point.negative && negativeColor) {
					point.color = point.fillColor = negativeColor;
				}

				hasPointSpecificOptions = seriesOptions.colorByPoint || point.color; // #868

				// check if the point has specific visual options
				if (point.options) {
					for (key in pointAttrToOptions) {
						if (defined(normalOptions[pointAttrToOptions[key]])) {
							hasPointSpecificOptions = true;
						}
					}
				}

				// a specific marker config object is defined for the individual point:
				// create it's own attribute collection
				if (hasPointSpecificOptions) {
					normalOptions = normalOptions || {};
					pointAttr = [];
					stateOptions = normalOptions.states || {}; // reassign for individual point
					pointStateOptionsHover = stateOptions[HOVER_STATE] = stateOptions[HOVER_STATE] || {};

					// Handle colors for column and pies
					if (!seriesOptions.marker) { // column, bar, point
						// If no hover color is given, brighten the normal color. #1619, #2579
						pointStateOptionsHover.color = pointStateOptionsHover.color || (!point.options.color && stateOptionsHover.color) ||
							Color(point.color)
								.brighten(pointStateOptionsHover.brightness || stateOptionsHover.brightness)
								.get();
					}

					// normal point state inherits series wide normal state
					attr = { color: point.color }; // #868
					if (!defaultFillColor) { // Individual point color or negative color markers (#2219)
						attr.fillColor = point.color;
					}
					if (!defaultLineColor) {
						attr.lineColor = point.color; // Bubbles take point color, line markers use white
					}
					pointAttr[NORMAL_STATE] = series.convertAttribs(extend(attr, normalOptions), seriesPointAttr[NORMAL_STATE]);

					// inherit from point normal and series hover
					pointAttr[HOVER_STATE] = series.convertAttribs(
						stateOptions[HOVER_STATE],
						seriesPointAttr[HOVER_STATE],
						pointAttr[NORMAL_STATE]
					);

					// inherit from point normal and series hover
					pointAttr[SELECT_STATE] = series.convertAttribs(
						stateOptions[SELECT_STATE],
						seriesPointAttr[SELECT_STATE],
						pointAttr[NORMAL_STATE]
					);


				// no marker config object is created: copy a reference to the series-wide
				// attribute collection
				} else {
					pointAttr = seriesPointAttr;
				}

				point.pointAttr = pointAttr;
			}
		}
	},

	/**
	 * Clear DOM objects and free up memory
	 */
	destroy: function () {
		var series = this,
			chart = series.chart,
			issue134 = /AppleWebKit\/533/.test(userAgent),
			destroy,
			i,
			data = series.data || [],
			point,
			prop,
			axis;

		// add event hook
		fireEvent(series, 'destroy');

		// remove all events
		removeEvent(series);

		// erase from axes
		each(series.axisTypes || [], function (AXIS) {
			axis = series[AXIS];
			if (axis) {
				erase(axis.series, series);
				axis.isDirty = axis.forceRedraw = true;
			}
		});

		// remove legend items
		if (series.legendItem) {
			series.chart.legend.destroyItem(series);
		}

		// destroy all points with their elements
		i = data.length;
		while (i--) {
			point = data[i];
			if (point && point.destroy) {
				point.destroy();
			}
		}
		series.points = null;

		// Clear the animation timeout if we are destroying the series during initial animation
		clearTimeout(series.animationTimeout);

		// destroy all SVGElements associated to the series
		each(['area', 'graph', 'dataLabelsGroup', 'group', 'markerGroup', 'tracker',
				'graphNeg', 'areaNeg', 'posClip', 'negClip'], function (prop) {
			if (series[prop]) {

				// issue 134 workaround
				destroy = issue134 && prop === 'group' ?
					'hide' :
					'destroy';

				series[prop][destroy]();
			}
		});

		// remove from hoverSeries
		if (chart.hoverSeries === series) {
			chart.hoverSeries = null;
		}
		erase(chart.series, series);

		// clear all members
		for (prop in series) {
			delete series[prop];
		}
	},

	/**
	 * Return the graph path of a segment
	 */
	getSegmentPath: function (segment) {
		var series = this,
			segmentPath = [],
			step = series.options.step;

		// build the segment line
		each(segment, function (point, i) {

			var plotX = point.plotX,
				plotY = point.plotY,
				lastPoint;

			if (series.getPointSpline) { // generate the spline as defined in the SplineSeries object
				segmentPath.push.apply(segmentPath, series.getPointSpline(segment, point, i));

			} else {

				// moveTo or lineTo
				segmentPath.push(i ? L : M);

				// step line?
				if (step && i) {
					lastPoint = segment[i - 1];
					if (step === 'right') {
						segmentPath.push(
							lastPoint.plotX,
							plotY
						);

					} else if (step === 'center') {
						segmentPath.push(
							(lastPoint.plotX + plotX) / 2,
							lastPoint.plotY,
							(lastPoint.plotX + plotX) / 2,
							plotY
						);

					} else {
						segmentPath.push(
							plotX,
							lastPoint.plotY
						);
					}
				}

				// normal line to next point
				segmentPath.push(
					point.plotX,
					point.plotY
				);
			}
		});

		return segmentPath;
	},

	/**
	 * Get the graph path
	 */
	getGraphPath: function () {
		var series = this,
			graphPath = [],
			segmentPath,
			singlePoints = []; // used in drawTracker

		// Divide into segments and build graph and area paths
		each(series.segments, function (segment) {

			segmentPath = series.getSegmentPath(segment);

			// add the segment to the graph, or a single point for tracking
			if (segment.length > 1) {
				graphPath = graphPath.concat(segmentPath);
			} else {
				singlePoints.push(segment[0]);
			}
		});

		// Record it for use in drawGraph and drawTracker, and return graphPath
		series.singlePoints = singlePoints;
		series.graphPath = graphPath;

		return graphPath;

	},

	/**
	 * Draw the actual graph
	 */
	drawGraph: function () {
		var series = this,
			options = this.options,
			props = [['graph', options.lineColor || this.color]],
			lineWidth = options.lineWidth,
			dashStyle =  options.dashStyle,
			roundCap = options.linecap !== 'square',
			graphPath = this.getGraphPath(),
			negativeColor = options.negativeColor;

		if (negativeColor) {
			props.push(['graphNeg', negativeColor]);
		}

		// draw the graph
		each(props, function (prop, i) {
			var graphKey = prop[0],
				graph = series[graphKey],
				attribs;

			if (graph) {
				stop(graph); // cancel running animations, #459
				graph.animate({ d: graphPath });

			} else if (lineWidth && graphPath.length) { // #1487
				attribs = {
					stroke: prop[1],
					'stroke-width': lineWidth,
					fill: NONE,
					zIndex: 1 // #1069
				};
				if (dashStyle) {
					attribs.dashstyle = dashStyle;
				} else if (roundCap) {
					attribs['stroke-linecap'] = attribs['stroke-linejoin'] = 'round';
				}

				series[graphKey] = series.chart.renderer.path(graphPath)
					.attr(attribs)
					.add(series.group)
					.shadow(!i && options.shadow);
			}
		});
	},

	/**
	 * Clip the graphs into the positive and negative coloured graphs
	 */
	clipNeg: function () {
		var options = this.options,
			chart = this.chart,
			renderer = chart.renderer,
			negativeColor = options.negativeColor || options.negativeFillColor,
			translatedThreshold,
			posAttr,
			negAttr,
			graph = this.graph,
			area = this.area,
			posClip = this.posClip,
			negClip = this.negClip,
			chartWidth = chart.chartWidth,
			chartHeight = chart.chartHeight,
			chartSizeMax = mathMax(chartWidth, chartHeight),
			yAxis = this.yAxis,
			above,
			below;

		if (negativeColor && (graph || area)) {
			translatedThreshold = mathRound(yAxis.toPixels(options.threshold || 0, true));
			if (translatedThreshold < 0) {
				chartSizeMax -= translatedThreshold; // #2534
			}
			above = {
				x: 0,
				y: 0,
				width: chartSizeMax,
				height: translatedThreshold
			};
			below = {
				x: 0,
				y: translatedThreshold,
				width: chartSizeMax,
				height: chartSizeMax
			};

			if (chart.inverted) {

				above.height = below.y = chart.plotWidth - translatedThreshold;
				if (renderer.isVML) {
					above = {
						x: chart.plotWidth - translatedThreshold - chart.plotLeft,
						y: 0,
						width: chartWidth,
						height: chartHeight
					};
					below = {
						x: translatedThreshold + chart.plotLeft - chartWidth,
						y: 0,
						width: chart.plotLeft + translatedThreshold,
						height: chartWidth
					};
				}
			}

			if (yAxis.reversed) {
				posAttr = below;
				negAttr = above;
			} else {
				posAttr = above;
				negAttr = below;
			}

			if (posClip) { // update
				posClip.animate(posAttr);
				negClip.animate(negAttr);
			} else {

				this.posClip = posClip = renderer.clipRect(posAttr);
				this.negClip = negClip = renderer.clipRect(negAttr);

				if (graph && this.graphNeg) {
					graph.clip(posClip);
					this.graphNeg.clip(negClip);
				}

				if (area) {
					area.clip(posClip);
					this.areaNeg.clip(negClip);
				}
			}
		}
	},

	/**
	 * Initialize and perform group inversion on series.group and series.markerGroup
	 */
	invertGroups: function () {
		var series = this,
			chart = series.chart;

		// Pie, go away (#1736)
		if (!series.xAxis) {
			return;
		}

		// A fixed size is needed for inversion to work
		function setInvert() {
			var size = {
				width: series.yAxis.len,
				height: series.xAxis.len
			};

			each(['group', 'markerGroup'], function (groupName) {
				if (series[groupName]) {
					series[groupName].attr(size).invert();
				}
			});
		}

		addEvent(chart, 'resize', setInvert); // do it on resize
		addEvent(series, 'destroy', function () {
			removeEvent(chart, 'resize', setInvert);
		});

		// Do it now
		setInvert(); // do it now

		// On subsequent render and redraw, just do setInvert without setting up events again
		series.invertGroups = setInvert;
	},

	/**
	 * General abstraction for creating plot groups like series.group, series.dataLabelsGroup and
	 * series.markerGroup. On subsequent calls, the group will only be adjusted to the updated plot size.
	 */
	plotGroup: function (prop, name, visibility, zIndex, parent) {
		var group = this[prop],
			isNew = !group;

		// Generate it on first call
		if (isNew) {
			this[prop] = group = this.chart.renderer.g(name)
				.attr({
					visibility: visibility,
					zIndex: zIndex || 0.1 // IE8 needs this
				})
				.add(parent);
		}
		// Place it on first and subsequent (redraw) calls
		group[isNew ? 'attr' : 'animate'](this.getPlotBox());
		return group;
	},

	/**
	 * Get the translation and scale for the plot area of this series
	 */
	getPlotBox: function () {
		var chart = this.chart,
			xAxis = this.xAxis,
			yAxis = this.yAxis;

		// Swap axes for inverted (#2339)
		if (chart.inverted) {
			xAxis = yAxis;
			yAxis = this.xAxis;
		}
		return {
			translateX: xAxis ? xAxis.left : chart.plotLeft,
			translateY: yAxis ? yAxis.top : chart.plotTop,
			scaleX: 1, // #1623
			scaleY: 1
		};
	},

	/**
	 * Render the graph and markers
	 */
	render: function () {
		var series = this,
			chart = series.chart,
			group,
			options = series.options,
			animation = options.animation,
			// Animation doesn't work in IE8 quirks when the group div is hidden,
			// and looks bad in other oldIE
			animDuration = (animation && !!series.animate && chart.renderer.isSVG && pick(animation.duration, 500)) || 0,
			visibility = series.visible ? VISIBLE : HIDDEN,
			zIndex = options.zIndex,
			hasRendered = series.hasRendered,
			chartSeriesGroup = chart.seriesGroup;

		// the group
		group = series.plotGroup(
			'group',
			'series',
			visibility,
			zIndex,
			chartSeriesGroup
		);

		series.markerGroup = series.plotGroup(
			'markerGroup',
			'markers',
			visibility,
			zIndex,
			chartSeriesGroup
		);

		// initiate the animation
		if (animDuration) {
			series.animate(true);
		}

		// cache attributes for shapes
		series.getAttribs();

		// SVGRenderer needs to know this before drawing elements (#1089, #1795)
		group.inverted = series.isCartesian ? chart.inverted : false;

		// draw the graph if any
		if (series.drawGraph) {
			series.drawGraph();
			series.clipNeg();
		}

		each(series.points, function (point) {
			if (point.redraw) {
				point.redraw();
			}
		});

		// draw the data labels (inn pies they go before the points)
		if (series.drawDataLabels) {
			series.drawDataLabels();
		}

		// draw the points
		if (series.visible) {
			series.drawPoints();
		}


		// draw the mouse tracking area
		if (series.drawTracker && series.options.enableMouseTracking !== false) {
			series.drawTracker();
		}

		// Handle inverted series and tracker groups
		if (chart.inverted) {
			series.invertGroups();
		}

		// Initial clipping, must be defined after inverting groups for VML
		if (options.clip !== false && !series.sharedClipKey && !hasRendered) {
			group.clip(chart.clipRect);
		}

		// Run the animation
		if (animDuration) {
			series.animate();
		}

		// Call the afterAnimate function on animation complete (but don't overwrite the animation.complete option
		// which should be available to the user).
		if (!hasRendered) {
			if (animDuration) {
				series.animationTimeout = setTimeout(function () {
					series.afterAnimate();
				}, animDuration);
			} else {
				series.afterAnimate();
			}
		}

		series.isDirty = series.isDirtyData = false; // means data is in accordance with what you see
		// (See #322) series.isDirty = series.isDirtyData = false; // means data is in accordance with what you see
		series.hasRendered = true;
	},

	/**
	 * Redraw the series after an update in the axes.
	 */
	redraw: function () {
		var series = this,
			chart = series.chart,
			wasDirtyData = series.isDirtyData, // cache it here as it is set to false in render, but used after
			group = series.group,
			xAxis = series.xAxis,
			yAxis = series.yAxis;

		// reposition on resize
		if (group) {
			if (chart.inverted) {
				group.attr({
					width: chart.plotWidth,
					height: chart.plotHeight
				});
			}

			group.animate({
				translateX: pick(xAxis && xAxis.left, chart.plotLeft),
				translateY: pick(yAxis && yAxis.top, chart.plotTop)
			});
		}

		series.translate();
		if (series.setTooltipPoints) {
			series.setTooltipPoints(true);
		}
		series.render();

		if (wasDirtyData) {
			fireEvent(series, 'updatedData');
		}
	}
}; // end Series prototype

/**
 * The class for stack items
 */
function StackItem(axis, options, isNegative, x, stackOption) {

	var inverted = axis.chart.inverted;

	this.axis = axis;

	// Tells if the stack is negative
	this.isNegative = isNegative;

	// Save the options to be able to style the label
	this.options = options;

	// Save the x value to be able to position the label later
	this.x = x;

	// Initialize total value
	this.total = null;

	// This will keep each points' extremes stored by series.index and point index
	this.points = {};

	// Save the stack option on the series configuration object, and whether to treat it as percent
	this.stack = stackOption;

	// The align options and text align varies on whether the stack is negative and
	// if the chart is inverted or not.
	// First test the user supplied value, then use the dynamic.
	this.alignOptions = {
		align: options.align || (inverted ? (isNegative ? 'left' : 'right') : 'center'),
		verticalAlign: options.verticalAlign || (inverted ? 'middle' : (isNegative ? 'bottom' : 'top')),
		y: pick(options.y, inverted ? 4 : (isNegative ? 14 : -6)),
		x: pick(options.x, inverted ? (isNegative ? -6 : 6) : 0)
	};

	this.textAlign = options.textAlign || (inverted ? (isNegative ? 'right' : 'left') : 'center');
}

StackItem.prototype = {
	destroy: function () {
		destroyObjectProperties(this, this.axis);
	},

	/**
	 * Renders the stack total label and adds it to the stack label group.
	 */
	render: function (group) {
		var options = this.options,
			formatOption = options.format,
			str = formatOption ?
				format(formatOption, this) :
				options.formatter.call(this);  // format the text in the label

		// Change the text to reflect the new total and set visibility to hidden in case the serie is hidden
		if (this.label) {
			this.label.attr({text: str, visibility: HIDDEN});
		// Create new label
		} else {
			this.label =
				this.axis.chart.renderer.text(str, null, null, options.useHTML)		// dummy positions, actual position updated with setOffset method in columnseries
					.css(options.style)				// apply style
					.attr({
						align: this.textAlign,				// fix the text-anchor
						rotation: options.rotation,	// rotation
						visibility: HIDDEN					// hidden until setOffset is called
					})
					.add(group);							// add to the labels-group
		}
	},

	/**
	 * Sets the offset that the stack has from the x value and repositions the label.
	 */
	setOffset: function (xOffset, xWidth) {
		var stackItem = this,
			axis = stackItem.axis,
			chart = axis.chart,
			inverted = chart.inverted,
			neg = this.isNegative,							// special treatment is needed for negative stacks
			y = axis.translate(axis.usePercentage ? 100 : this.total, 0, 0, 0, 1), // stack value translated mapped to chart coordinates
			yZero = axis.translate(0),						// stack origin
			h = mathAbs(y - yZero),							// stack height
			x = chart.xAxis[0].translate(this.x) + xOffset,	// stack x position
			plotHeight = chart.plotHeight,
			stackBox = {	// this is the box for the complete stack
				x: inverted ? (neg ? y : y - h) : x,
				y: inverted ? plotHeight - x - xWidth : (neg ? (plotHeight - y - h) : plotHeight - y),
				width: inverted ? h : xWidth,
				height: inverted ? xWidth : h
			},
			label = this.label,
			alignAttr;

		if (label) {
			label.align(this.alignOptions, null, stackBox);	// align the label to the box

			// Set visibility (#678)
			alignAttr = label.alignAttr;
			label[this.options.crop === false || chart.isInsidePlot(alignAttr.x, alignAttr.y) ? 'show' : 'hide'](true);
		}
	}
};


// Stacking methods defined on the Axis prototype

/**
 * Build the stacks from top down
 */
Axis.prototype.buildStacks = function () {
	var series = this.series,
		reversedStacks = pick(this.options.reversedStacks, true),
		i = series.length;
	if (!this.isXAxis) {
		this.usePercentage = false;
		while (i--) {
			series[reversedStacks ? i : series.length - i - 1].setStackedPoints();
		}
		// Loop up again to compute percent stack
		if (this.usePercentage) {
			for (i = 0; i < series.length; i++) {
				series[i].setPercentStacks();
			}
		}
	}
};

Axis.prototype.renderStackTotals = function () {
	var axis = this,
		chart = axis.chart,
		renderer = chart.renderer,
		stacks = axis.stacks,
		stackKey,
		oneStack,
		stackCategory,
		stackTotalGroup = axis.stackTotalGroup;

	// Create a separate group for the stack total labels
	if (!stackTotalGroup) {
		axis.stackTotalGroup = stackTotalGroup =
			renderer.g('stack-labels')
				.attr({
					visibility: VISIBLE,
					zIndex: 6
				})
				.add();
	}

	// plotLeft/Top will change when y axis gets wider so we need to translate the
	// stackTotalGroup at every render call. See bug #506 and #516
	stackTotalGroup.translate(chart.plotLeft, chart.plotTop);

	// Render each stack total
	for (stackKey in stacks) {
		oneStack = stacks[stackKey];
		for (stackCategory in oneStack) {
			oneStack[stackCategory].render(stackTotalGroup);
		}
	}
};


// Stacking methods defnied for Series prototype

/**
 * Adds series' points value to corresponding stack
 */
Series.prototype.setStackedPoints = function () {
	if (!this.options.stacking || (this.visible !== true && this.chart.options.chart.ignoreHiddenSeries !== false)) {
		return;
	}

	var series = this,
		xData = series.processedXData,
		yData = series.processedYData,
		stackedYData = [],
		yDataLength = yData.length,
		seriesOptions = series.options,
		threshold = seriesOptions.threshold,
		stackOption = seriesOptions.stack,
		stacking = seriesOptions.stacking,
		stackKey = series.stackKey,
		negKey = '-' + stackKey,
		negStacks = series.negStacks,
		yAxis = series.yAxis,
		stacks = yAxis.stacks,
		oldStacks = yAxis.oldStacks,
		isNegative,
		stack,
		other,
		key,
		pointKey,
		i,
		x,
		y;

	// loop over the non-null y values and read them into a local array
	for (i = 0; i < yDataLength; i++) {
		x = xData[i];
		y = yData[i];
		pointKey = series.index + ',' + i;

		// Read stacked values into a stack based on the x value,
		// the sign of y and the stack key. Stacking is also handled for null values (#739)
		isNegative = negStacks && y < threshold;
		key = isNegative ? negKey : stackKey;

		// Create empty object for this stack if it doesn't exist yet
		if (!stacks[key]) {
			stacks[key] = {};
		}

		// Initialize StackItem for this x
		if (!stacks[key][x]) {
			if (oldStacks[key] && oldStacks[key][x]) {
				stacks[key][x] = oldStacks[key][x];
				stacks[key][x].total = null;
			} else {
				stacks[key][x] = new StackItem(yAxis, yAxis.options.stackLabels, isNegative, x, stackOption);
			}
		}

		// If the StackItem doesn't exist, create it first
		stack = stacks[key][x];
		stack.points[pointKey] = [stack.cum || 0];

		// Add value to the stack total
		if (stacking === 'percent') {

			// Percent stacked column, totals are the same for the positive and negative stacks
			other = isNegative ? stackKey : negKey;
			if (negStacks && stacks[other] && stacks[other][x]) {
				other = stacks[other][x];
				stack.total = other.total = mathMax(other.total, stack.total) + mathAbs(y) || 0;

			// Percent stacked areas
			} else {
				stack.total = correctFloat(stack.total + (mathAbs(y) || 0));
			}
		} else {
			stack.total = correctFloat(stack.total + (y || 0));
		}

		stack.cum = (stack.cum || 0) + (y || 0);

		stack.points[pointKey].push(stack.cum);
		stackedYData[i] = stack.cum;

	}

	if (stacking === 'percent') {
		yAxis.usePercentage = true;
	}

	this.stackedYData = stackedYData; // To be used in getExtremes

	// Reset old stacks
	yAxis.oldStacks = {};
};

/**
 * Iterate over all stacks and compute the absolute values to percent
 */
Series.prototype.setPercentStacks = function () {
	var series = this,
		stackKey = series.stackKey,
		stacks = series.yAxis.stacks,
		processedXData = series.processedXData;

	each([stackKey, '-' + stackKey], function (key) {
		var i = processedXData.length,
			x,
			stack,
			pointExtremes,
			totalFactor;

		while (i--) {
			x = processedXData[i];
			stack = stacks[key] && stacks[key][x];
			pointExtremes = stack && stack.points[series.index + ',' + i];
			if (pointExtremes) {
				totalFactor = stack.total ? 100 / stack.total : 0;
				pointExtremes[0] = correctFloat(pointExtremes[0] * totalFactor); // Y bottom value
				pointExtremes[1] = correctFloat(pointExtremes[1] * totalFactor); // Y value
				series.stackedYData[i] = pointExtremes[1];
			}
		}
	});
};

// Extend the Chart prototype for dynamic methods
extend(Chart.prototype, {

	/**
	 * Add a series dynamically after  time
	 *
	 * @param {Object} options The config options
	 * @param {Boolean} redraw Whether to redraw the chart after adding. Defaults to true.
	 * @param {Boolean|Object} animation Whether to apply animation, and optionally animation
	 *    configuration
	 *
	 * @return {Object} series The newly created series object
	 */
	addSeries: function (options, redraw, animation) {
		var series,
			chart = this;

		if (options) {
			redraw = pick(redraw, true); // defaults to true

			fireEvent(chart, 'addSeries', { options: options }, function () {
				series = chart.initSeries(options);

				chart.isDirtyLegend = true; // the series array is out of sync with the display
				chart.linkSeries();
				if (redraw) {
					chart.redraw(animation);
				}
			});
		}

		return series;
	},

	/**
     * Add an axis to the chart
     * @param {Object} options The axis option
     * @param {Boolean} isX Whether it is an X axis or a value axis
     */
	addAxis: function (options, isX, redraw, animation) {
		var key = isX ? 'xAxis' : 'yAxis',
			chartOptions = this.options,
			axis;

		/*jslint unused: false*/
		axis = new Axis(this, merge(options, {
			index: this[key].length,
			isX: isX
		}));
		/*jslint unused: true*/

		// Push the new axis options to the chart options
		chartOptions[key] = splat(chartOptions[key] || {});
		chartOptions[key].push(options);

		if (pick(redraw, true)) {
			this.redraw(animation);
		}
	},

	/**
	 * Dim the chart and show a loading text or symbol
	 * @param {String} str An optional text to show in the loading label instead of the default one
	 */
	showLoading: function (str) {
		var chart = this,
			options = chart.options,
			loadingDiv = chart.loadingDiv,
			loadingOptions = options.loading,
			setLoadingSize = function () {
				if (loadingDiv) {
					css(loadingDiv, {
						left: chart.plotLeft + PX,
						top: chart.plotTop + PX,
						width: chart.plotWidth + PX,
						height: chart.plotHeight + PX
					});
				}
			};

		// create the layer at the first call
		if (!loadingDiv) {
			chart.loadingDiv = loadingDiv = createElement(DIV, {
				className: PREFIX + 'loading'
			}, extend(loadingOptions.style, {
				zIndex: 10,
				display: NONE
			}), chart.container);

			chart.loadingSpan = createElement(
				'span',
				null,
				loadingOptions.labelStyle,
				loadingDiv
			);
			addEvent(chart, 'redraw', setLoadingSize); // #1080
		}

		// update text
		chart.loadingSpan.innerHTML = str || options.lang.loading;

		// show it
		if (!chart.loadingShown) {
			css(loadingDiv, {
				opacity: 0,
				display: ''
			});
			animate(loadingDiv, {
				opacity: loadingOptions.style.opacity
			}, {
				duration: loadingOptions.showDuration || 0
			});
			chart.loadingShown = true;
		}
		setLoadingSize();
	},

	/**
	 * Hide the loading layer
	 */
	hideLoading: function () {
		var options = this.options,
			loadingDiv = this.loadingDiv;

		if (loadingDiv) {
			animate(loadingDiv, {
				opacity: 0
			}, {
				duration: options.loading.hideDuration || 100,
				complete: function () {
					css(loadingDiv, { display: NONE });
				}
			});
		}
		this.loadingShown = false;
	}
});

// extend the Point prototype for dynamic methods
extend(Point.prototype, {
	/**
	 * Update the point with new options (typically x/y data) and optionally redraw the series.
	 *
	 * @param {Object} options Point options as defined in the series.data array
	 * @param {Boolean} redraw Whether to redraw the chart or wait for an explicit call
	 * @param {Boolean|Object} animation Whether to apply animation, and optionally animation
	 *    configuration
	 *
	 */
	update: function (options, redraw, animation, runEvent) {
		var point = this,
			series = point.series,
			graphic = point.graphic,
			i,
			chart = series.chart,
			seriesOptions = series.options;

		redraw = pick(redraw, true);

		function update() {

			point.applyOptions(options);

			// Update visuals
			if (isObject(options) && !isArray(options)) {
				// Defer the actual redraw until getAttribs has been called (#3260)
				point.redraw = function () {
					if (graphic) {
						if (options && options.marker && options.marker.symbol) {
							point.graphic = graphic.destroy();
						} else {
							graphic.attr(point.pointAttr[point.state || '']);
						}
					}
					if (options && options.dataLabels && point.dataLabel) { // #2468
						point.dataLabel = point.dataLabel.destroy();
					}
					point.redraw = null;
				};
			}

			// record changes in the parallel arrays
			i = point.index;
			series.updateParallelArrays(point, i);

			seriesOptions.data[i] = point.options;

			// redraw
			series.isDirty = series.isDirtyData = true;
			if (!series.fixedBox && series.hasCartesianSeries) { // #1906, #2320
				chart.isDirtyBox = true;
			}

			if (seriesOptions.legendType === 'point') { // #1831, #1885
				chart.legend.destroyItem(point);
			}
			if (redraw) {
				chart.redraw(animation);
			}
		}

		// Fire the event with a default handler of doing the update
		if (runEvent === false) { // When called from setData
			update();
		} else {
			point.firePointEvent('update', { options: options }, update);
		}
	},

	/**
	 * Remove a point and optionally redraw the series and if necessary the axes
	 * @param {Boolean} redraw Whether to redraw the chart or wait for an explicit call
	 * @param {Boolean|Object} animation Whether to apply animation, and optionally animation
	 *    configuration
	 */
	remove: function (redraw, animation) {
		var point = this,
			series = point.series,
			points = series.points,
			chart = series.chart,
			i,
			data = series.data;

		setAnimation(animation, chart);
		redraw = pick(redraw, true);

		// fire the event with a default handler of removing the point
		point.firePointEvent('remove', null, function () {

			// splice all the parallel arrays
			i = inArray(point, data);
			if (data.length === points.length) {
				points.splice(i, 1);
			}
			data.splice(i, 1);
			series.options.data.splice(i, 1);
			series.updateParallelArrays(point, 'splice', i, 1);

			point.destroy();

			// redraw
			series.isDirty = true;
			series.isDirtyData = true;
			if (redraw) {
				chart.redraw();
			}
		});
	}
});

// Extend the series prototype for dynamic methods
extend(Series.prototype, {
	/**
	 * Add a point dynamically after chart load time
	 * @param {Object} options Point options as given in series.data
	 * @param {Boolean} redraw Whether to redraw the chart or wait for an explicit call
	 * @param {Boolean} shift If shift is true, a point is shifted off the start
	 *    of the series as one is appended to the end.
	 * @param {Boolean|Object} animation Whether to apply animation, and optionally animation
	 *    configuration
	 */
	addPoint: function (options, redraw, shift, animation) {
		var series = this,
			seriesOptions = series.options,
			data = series.data,
			graph = series.graph,
			area = series.area,
			chart = series.chart,
			names = series.xAxis && series.xAxis.names,
			currentShift = (graph && graph.shift) || 0,
			dataOptions = seriesOptions.data,
			point,
			isInTheMiddle,
			xData = series.xData,
			x,
			i;

		setAnimation(animation, chart);

		// Make graph animate sideways
		if (shift) {
			each([graph, area, series.graphNeg, series.areaNeg], function (shape) {
				if (shape) {
					shape.shift = currentShift + 1;
				}
			});
		}
		if (area) {
			area.isArea = true; // needed in animation, both with and without shift
		}

		// Optional redraw, defaults to true
		redraw = pick(redraw, true);

		// Get options and push the point to xData, yData and series.options. In series.generatePoints
		// the Point instance will be created on demand and pushed to the series.data array.
		point = { series: series };
		series.pointClass.prototype.applyOptions.apply(point, [options]);
		x = point.x;

		// Get the insertion point
		i = xData.length;
		if (series.requireSorting && x < xData[i - 1]) {
			isInTheMiddle = true;
			while (i && xData[i - 1] > x) {
				i--;
			}
		}

		series.updateParallelArrays(point, 'splice', i, 0, 0); // insert undefined item
		series.updateParallelArrays(point, i); // update it

		if (names && point.name) {
			names[x] = point.name;
		}
		dataOptions.splice(i, 0, options);

		if (isInTheMiddle) {
			series.data.splice(i, 0, null);
			series.processData();
		}

		// Generate points to be added to the legend (#1329)
		if (seriesOptions.legendType === 'point') {
			series.generatePoints();
		}

		// Shift the first point off the parallel arrays
		// todo: consider series.removePoint(i) method
		if (shift) {
			if (data[0] && data[0].remove) {
				data[0].remove(false);
			} else {
				data.shift();
				series.updateParallelArrays(point, 'shift');

				dataOptions.shift();
			}
		}

		// redraw
		series.isDirty = true;
		series.isDirtyData = true;
		if (redraw) {
			series.getAttribs(); // #1937
			chart.redraw();
		}
	},

	/**
	 * Remove a series and optionally redraw the chart
	 *
	 * @param {Boolean} redraw Whether to redraw the chart or wait for an explicit call
	 * @param {Boolean|Object} animation Whether to apply animation, and optionally animation
	 *    configuration
	 */

	remove: function (redraw, animation) {
		var series = this,
			chart = series.chart;
		redraw = pick(redraw, true);

		if (!series.isRemoving) {  /* prevent triggering native event in jQuery
				(calling the remove function from the remove event) */
			series.isRemoving = true;

			// fire the event with a default handler of removing the point
			fireEvent(series, 'remove', null, function () {


				// destroy elements
				series.destroy();


				// redraw
				chart.isDirtyLegend = chart.isDirtyBox = true;
				chart.linkSeries();

				if (redraw) {
					chart.redraw(animation);
				}
			});

		}
		series.isRemoving = false;
	},

	/**
	 * Update the series with a new set of options
	 */
	update: function (newOptions, redraw) {
		var series = this,
			chart = this.chart,
			// must use user options when changing type because this.options is merged
			// in with type specific plotOptions
			oldOptions = this.userOptions,
			oldType = this.type,
			proto = seriesTypes[oldType].prototype,
			preserve = ['group', 'markerGroup', 'dataLabelsGroup'],
			n;

		// Make sure groups are not destroyed (#3094)
		each(preserve, function (prop) {
			preserve[prop] = series[prop];
			delete series[prop];
		});

		// Do the merge, with some forced options
		newOptions = merge(oldOptions, {
			animation: false,
			index: this.index,
			pointStart: this.xData[0] // when updating after addPoint
		}, { data: this.options.data }, newOptions);

		// Destroy the series and reinsert methods from the type prototype
		this.remove(false);
		for (n in proto) { // Overwrite series-type specific methods (#2270)
			if (proto.hasOwnProperty(n)) {
				this[n] = UNDEFINED;
			}
		}
		extend(this, seriesTypes[newOptions.type || oldType].prototype);

		// Re-register groups (#3094)
		each(preserve, function (prop) {
			series[prop] = preserve[prop];
		});


		this.init(chart, newOptions);
		chart.linkSeries(); // Links are lost in this.remove (#3028)
		if (pick(redraw, true)) {
			chart.redraw(false);
		}
	}
});

// Extend the Axis.prototype for dynamic methods
extend(Axis.prototype, {

	/**
	 * Update the axis with a new options structure
	 */
	update: function (newOptions, redraw) {
		var chart = this.chart;

		newOptions = chart.options[this.coll][this.options.index] = merge(this.userOptions, newOptions);

		this.destroy(true);
		this._addedPlotLB = UNDEFINED; // #1611, #2887

		this.init(chart, extend(newOptions, { events: UNDEFINED }));

		chart.isDirtyBox = true;
		if (pick(redraw, true)) {
			chart.redraw();
		}
	},

	/**
     * Remove the axis from the chart
     */
	remove: function (redraw) {
		var chart = this.chart,
			key = this.coll, // xAxis or yAxis
			axisSeries = this.series,
			i = axisSeries.length;

		// Remove associated series (#2687)
		while (i--) {
			if (axisSeries[i]) {
				axisSeries[i].remove(false);
			}
		}

		// Remove the axis
		erase(chart.axes, this);
		erase(chart[key], this);
		chart.options[key].splice(this.options.index, 1);
		each(chart[key], function (axis, i) { // Re-index, #1706
			axis.options.index = i;
		});
		this.destroy();
		chart.isDirtyBox = true;

		if (pick(redraw, true)) {
			chart.redraw();
		}
	},

	/**
	 * Update the axis title by options
	 */
	setTitle: function (newTitleOptions, redraw) {
		this.update({ title: newTitleOptions }, redraw);
	},

	/**
	 * Set new axis categories and optionally redraw
	 * @param {Array} categories
	 * @param {Boolean} redraw
	 */
	setCategories: function (categories, redraw) {
		this.update({ categories: categories }, redraw);
	}

});


/**
 * LineSeries object
 */
var LineSeries = extendClass(Series);
seriesTypes.line = LineSeries;

/**
 * Set the default options for area
 */
defaultPlotOptions.area = merge(defaultSeriesOptions, {
	threshold: 0
	// trackByArea: false,
	// lineColor: null, // overrides color, but lets fillColor be unaltered
	// fillOpacity: 0.75,
	// fillColor: null
});

/**
 * AreaSeries object
 */
var AreaSeries = extendClass(Series, {
	type: 'area',
	/**
	 * For stacks, don't split segments on null values. Instead, draw null values with
	 * no marker. Also insert dummy points for any X position that exists in other series
	 * in the stack.
	 */
	getSegments: function () {
		var series = this,
			segments = [],
			segment = [],
			keys = [],
			xAxis = this.xAxis,
			yAxis = this.yAxis,
			stack = yAxis.stacks[this.stackKey],
			pointMap = {},
			plotX,
			plotY,
			points = this.points,
			connectNulls = this.options.connectNulls,
			i,
			x;

		if (this.options.stacking && !this.cropped) { // cropped causes artefacts in Stock, and perf issue
			// Create a map where we can quickly look up the points by their X value.
			for (i = 0; i < points.length; i++) {
				pointMap[points[i].x] = points[i];
			}

			// Sort the keys (#1651)
			for (x in stack) {
				if (stack[x].total !== null) { // nulled after switching between grouping and not (#1651, #2336)
					keys.push(+x);
				}
			}
			keys.sort(function (a, b) {
				return a - b;
			});

			each(keys, function (x) {
				var y = 0,
					stackPoint;

				if (connectNulls && (!pointMap[x] || pointMap[x].y === null)) { // #1836
					return;

				// The point exists, push it to the segment
				} else if (pointMap[x]) {
					segment.push(pointMap[x]);

				// There is no point for this X value in this series, so we
				// insert a dummy point in order for the areas to be drawn
				// correctly.
				} else {

					// Loop down the stack to find the series below this one that has
					// a value (#1991)
					for (i = series.index; i <= yAxis.series.length; i++) {
						stackPoint = stack[x].points[i + ',' + x];
						if (stackPoint) {
							y = stackPoint[1];
							break;
						}
					}

					plotX = xAxis.translate(x);
					plotY = yAxis.toPixels(y, true);
					segment.push({
						y: null,
						plotX: plotX,
						clientX: plotX,
						plotY: plotY,
						yBottom: plotY,
						onMouseOver: noop
					});
				}
			});

			if (segment.length) {
				segments.push(segment);
			}

		} else {
			Series.prototype.getSegments.call(this);
			segments = this.segments;
		}

		this.segments = segments;
	},

	/**
	 * Extend the base Series getSegmentPath method by adding the path for the area.
	 * This path is pushed to the series.areaPath property.
	 */
	getSegmentPath: function (segment) {

		var segmentPath = Series.prototype.getSegmentPath.call(this, segment), // call base method
			areaSegmentPath = [].concat(segmentPath), // work on a copy for the area path
			i,
			options = this.options,
			segLength = segmentPath.length,
			translatedThreshold = this.yAxis.getThreshold(options.threshold), // #2181
			yBottom;

		if (segLength === 3) { // for animation from 1 to two points
			areaSegmentPath.push(L, segmentPath[1], segmentPath[2]);
		}
		if (options.stacking && !this.closedStacks) {

			// Follow stack back. Todo: implement areaspline. A general solution could be to
			// reverse the entire graphPath of the previous series, though may be hard with
			// splines and with series with different extremes
			for (i = segment.length - 1; i >= 0; i--) {

				yBottom = pick(segment[i].yBottom, translatedThreshold);

				// step line?
				if (i < segment.length - 1 && options.step) {
					areaSegmentPath.push(segment[i + 1].plotX, yBottom);
				}

				areaSegmentPath.push(segment[i].plotX, yBottom);
			}

		} else { // follow zero line back
			this.closeSegment(areaSegmentPath, segment, translatedThreshold);
		}
		this.areaPath = this.areaPath.concat(areaSegmentPath);
		return segmentPath;
	},

	/**
	 * Extendable method to close the segment path of an area. This is overridden in polar
	 * charts.
	 */
	closeSegment: function (path, segment, translatedThreshold) {
		path.push(
			L,
			segment[segment.length - 1].plotX,
			translatedThreshold,
			L,
			segment[0].plotX,
			translatedThreshold
		);
	},

	/**
	 * Draw the graph and the underlying area. This method calls the Series base
	 * function and adds the area. The areaPath is calculated in the getSegmentPath
	 * method called from Series.prototype.drawGraph.
	 */
	drawGraph: function () {

		// Define or reset areaPath
		this.areaPath = [];

		// Call the base method
		Series.prototype.drawGraph.apply(this);

		// Define local variables
		var series = this,
			areaPath = this.areaPath,
			options = this.options,
			negativeColor = options.negativeColor,
			negativeFillColor = options.negativeFillColor,
			props = [['area', this.color, options.fillColor]]; // area name, main color, fill color

		if (negativeColor || negativeFillColor) {
			props.push(['areaNeg', negativeColor, negativeFillColor]);
		}

		each(props, function (prop) {
			var areaKey = prop[0],
				area = series[areaKey];

			// Create or update the area
			if (area) { // update
				area.animate({ d: areaPath });

			} else { // create
				series[areaKey] = series.chart.renderer.path(areaPath)
					.attr({
						fill: pick(
							prop[2],
							Color(prop[1]).setOpacity(pick(options.fillOpacity, 0.75)).get()
						),
						zIndex: 0 // #1069
					}).add(series.group);
			}
		});
	},

	drawLegendSymbol: LegendSymbolMixin.drawRectangle
});

seriesTypes.area = AreaSeries;
/**
 * Set the default options for spline
 */
defaultPlotOptions.spline = merge(defaultSeriesOptions);

/**
 * SplineSeries object
 */
var SplineSeries = extendClass(Series, {
	type: 'spline',

	/**
	 * Get the spline segment from a given point's previous neighbour to the given point
	 */
	getPointSpline: function (segment, point, i) {
		var smoothing = 1.5, // 1 means control points midway between points, 2 means 1/3 from the point, 3 is 1/4 etc
			denom = smoothing + 1,
			plotX = point.plotX,
			plotY = point.plotY,
			lastPoint = segment[i - 1],
			nextPoint = segment[i + 1],
			leftContX,
			leftContY,
			rightContX,
			rightContY,
			ret;

		// find control points
		if (lastPoint && nextPoint) {

			var lastX = lastPoint.plotX,
				lastY = lastPoint.plotY,
				nextX = nextPoint.plotX,
				nextY = nextPoint.plotY,
				correction;

			leftContX = (smoothing * plotX + lastX) / denom;
			leftContY = (smoothing * plotY + lastY) / denom;
			rightContX = (smoothing * plotX + nextX) / denom;
			rightContY = (smoothing * plotY + nextY) / denom;

			// have the two control points make a straight line through main point
			correction = ((rightContY - leftContY) * (rightContX - plotX)) /
				(rightContX - leftContX) + plotY - rightContY;

			leftContY += correction;
			rightContY += correction;

			// to prevent false extremes, check that control points are between
			// neighbouring points' y values
			if (leftContY > lastY && leftContY > plotY) {
				leftContY = mathMax(lastY, plotY);
				rightContY = 2 * plotY - leftContY; // mirror of left control point
			} else if (leftContY < lastY && leftContY < plotY) {
				leftContY = mathMin(lastY, plotY);
				rightContY = 2 * plotY - leftContY;
			}
			if (rightContY > nextY && rightContY > plotY) {
				rightContY = mathMax(nextY, plotY);
				leftContY = 2 * plotY - rightContY;
			} else if (rightContY < nextY && rightContY < plotY) {
				rightContY = mathMin(nextY, plotY);
				leftContY = 2 * plotY - rightContY;
			}

			// record for drawing in next point
			point.rightContX = rightContX;
			point.rightContY = rightContY;

		}

		// Visualize control points for debugging
		/*
		if (leftContX) {
			this.chart.renderer.circle(leftContX + this.chart.plotLeft, leftContY + this.chart.plotTop, 2)
				.attr({
					stroke: 'red',
					'stroke-width': 1,
					fill: 'none'
				})
				.add();
			this.chart.renderer.path(['M', leftContX + this.chart.plotLeft, leftContY + this.chart.plotTop,
				'L', plotX + this.chart.plotLeft, plotY + this.chart.plotTop])
				.attr({
					stroke: 'red',
					'stroke-width': 1
				})
				.add();
			this.chart.renderer.circle(rightContX + this.chart.plotLeft, rightContY + this.chart.plotTop, 2)
				.attr({
					stroke: 'green',
					'stroke-width': 1,
					fill: 'none'
				})
				.add();
			this.chart.renderer.path(['M', rightContX + this.chart.plotLeft, rightContY + this.chart.plotTop,
				'L', plotX + this.chart.plotLeft, plotY + this.chart.plotTop])
				.attr({
					stroke: 'green',
					'stroke-width': 1
				})
				.add();
		}
		*/

		// moveTo or lineTo
		if (!i) {
			ret = [M, plotX, plotY];
		} else { // curve from last point to this
			ret = [
				'C',
				lastPoint.rightContX || lastPoint.plotX,
				lastPoint.rightContY || lastPoint.plotY,
				leftContX || plotX,
				leftContY || plotY,
				plotX,
				plotY
			];
			lastPoint.rightContX = lastPoint.rightContY = null; // reset for updating series later
		}
		return ret;
	}
});
seriesTypes.spline = SplineSeries;

/**
 * Set the default options for areaspline
 */
defaultPlotOptions.areaspline = merge(defaultPlotOptions.area);

/**
 * AreaSplineSeries object
 */
var areaProto = AreaSeries.prototype,
	AreaSplineSeries = extendClass(SplineSeries, {
		type: 'areaspline',
		closedStacks: true, // instead of following the previous graph back, follow the threshold back

		// Mix in methods from the area series
		getSegmentPath: areaProto.getSegmentPath,
		closeSegment: areaProto.closeSegment,
		drawGraph: areaProto.drawGraph,
		drawLegendSymbol: LegendSymbolMixin.drawRectangle
	});

seriesTypes.areaspline = AreaSplineSeries;

/**
 * Set the default options for column
 */
defaultPlotOptions.column = merge(defaultSeriesOptions, {
	borderColor: '#FFFFFF',
	//borderWidth: 1,
	borderRadius: 0,
	//colorByPoint: undefined,
	groupPadding: 0.2,
	//grouping: true,
	marker: null, // point options are specified in the base options
	pointPadding: 0.1,
	//pointWidth: null,
	minPointLength: 0,
	cropThreshold: 50, // when there are more points, they will not animate out of the chart on xAxis.setExtremes
	pointRange: null, // null means auto, meaning 1 in a categorized axis and least distance between points if not categories
	states: {
		hover: {
			brightness: 0.1,
			shadow: false,
			halo: false
		},
		select: {
			color: '#C0C0C0',
			borderColor: '#000000',
			shadow: false
		}
	},
	dataLabels: {
		align: null, // auto
		verticalAlign: null, // auto
		y: null
	},
	stickyTracking: false,
	tooltip: {
		distance: 6
	},
	threshold: 0
});

/**
 * ColumnSeries object
 */
var ColumnSeries = extendClass(Series, {
	type: 'column',
	pointAttrToOptions: { // mapping between SVG attributes and the corresponding options
		stroke: 'borderColor',
		fill: 'color',
		r: 'borderRadius'
	},
	cropShoulder: 0,
	trackerGroups: ['group', 'dataLabelsGroup'],
	negStacks: true, // use separate negative stacks, unlike area stacks where a negative
		// point is substracted from previous (#1910)

	/**
	 * Initialize the series
	 */
	init: function () {
		Series.prototype.init.apply(this, arguments);

		var series = this,
			chart = series.chart;

		// if the series is added dynamically, force redraw of other
		// series affected by a new column
		if (chart.hasRendered) {
			each(chart.series, function (otherSeries) {
				if (otherSeries.type === series.type) {
					otherSeries.isDirty = true;
				}
			});
		}
	},

	/**
	 * Return the width and x offset of the columns adjusted for grouping, groupPadding, pointPadding,
	 * pointWidth etc.
	 */
	getColumnMetrics: function () {

		var series = this,
			options = series.options,
			xAxis = series.xAxis,
			yAxis = series.yAxis,
			reversedXAxis = xAxis.reversed,
			stackKey,
			stackGroups = {},
			columnIndex,
			columnCount = 0;

		// Get the total number of column type series.
		// This is called on every series. Consider moving this logic to a
		// chart.orderStacks() function and call it on init, addSeries and removeSeries
		if (options.grouping === false) {
			columnCount = 1;
		} else {
			each(series.chart.series, function (otherSeries) {
				var otherOptions = otherSeries.options,
					otherYAxis = otherSeries.yAxis;
				if (otherSeries.type === series.type && otherSeries.visible &&
						yAxis.len === otherYAxis.len && yAxis.pos === otherYAxis.pos) {  // #642, #2086
					if (otherOptions.stacking) {
						stackKey = otherSeries.stackKey;
						if (stackGroups[stackKey] === UNDEFINED) {
							stackGroups[stackKey] = columnCount++;
						}
						columnIndex = stackGroups[stackKey];
					} else if (otherOptions.grouping !== false) { // #1162
						columnIndex = columnCount++;
					}
					otherSeries.columnIndex = columnIndex;
				}
			});
		}

		var categoryWidth = mathMin(
				mathAbs(xAxis.transA) * (xAxis.ordinalSlope || options.pointRange || xAxis.closestPointRange || xAxis.tickInterval || 1), // #2610
				xAxis.len // #1535
			),
			groupPadding = categoryWidth * options.groupPadding,
			groupWidth = categoryWidth - 2 * groupPadding,
			pointOffsetWidth = groupWidth / columnCount,
			optionPointWidth = options.pointWidth,
			pointPadding = defined(optionPointWidth) ? (pointOffsetWidth - optionPointWidth) / 2 :
				pointOffsetWidth * options.pointPadding,
			pointWidth = pick(optionPointWidth, pointOffsetWidth - 2 * pointPadding), // exact point width, used in polar charts
			colIndex = (reversedXAxis ?
				columnCount - (series.columnIndex || 0) : // #1251
				series.columnIndex) || 0,
			pointXOffset = pointPadding + (groupPadding + colIndex *
				pointOffsetWidth - (categoryWidth / 2)) *
				(reversedXAxis ? -1 : 1);

		// Save it for reading in linked series (Error bars particularly)
		return (series.columnMetrics = {
			width: pointWidth,
			offset: pointXOffset
		});

	},

	/**
	 * Translate each point to the plot area coordinate system and find shape positions
	 */
	translate: function () {
		var series = this,
			chart = series.chart,
			options = series.options,
			borderWidth = series.borderWidth = pick(
				options.borderWidth,
				series.activePointCount > 0.5 * series.xAxis.len ? 0 : 1
			),
			yAxis = series.yAxis,
			threshold = options.threshold,
			translatedThreshold = series.translatedThreshold = yAxis.getThreshold(threshold),
			minPointLength = pick(options.minPointLength, 5),
			metrics = series.getColumnMetrics(),
			pointWidth = metrics.width,
			seriesBarW = series.barW = mathMax(pointWidth, 1 + 2 * borderWidth), // postprocessed for border width
			pointXOffset = series.pointXOffset = metrics.offset,
			xCrisp = -(borderWidth % 2 ? 0.5 : 0),
			yCrisp = borderWidth % 2 ? 0.5 : 1;

		if (chart.renderer.isVML && chart.inverted) {
			yCrisp += 1;
		}

		// When the pointPadding is 0, we want the columns to be packed tightly, so we allow individual
		// columns to have individual sizes. When pointPadding is greater, we strive for equal-width
		// columns (#2694).
		if (options.pointPadding) {
			seriesBarW = mathCeil(seriesBarW);
		}

		Series.prototype.translate.apply(series);

		// Record the new values
		each(series.points, function (point) {
			var yBottom = pick(point.yBottom, translatedThreshold),
				plotY = mathMin(mathMax(-999 - yBottom, point.plotY), yAxis.len + 999 + yBottom), // Don't draw too far outside plot area (#1303, #2241)
				barX = point.plotX + pointXOffset,
				barW = seriesBarW,
				barY = mathMin(plotY, yBottom),
				right,
				bottom,
				fromTop,
				barH = mathMax(plotY, yBottom) - barY;

			// Handle options.minPointLength
			if (mathAbs(barH) < minPointLength) {
				if (minPointLength) {
					barH = minPointLength;
					barY =
						mathRound(mathAbs(barY - translatedThreshold) > minPointLength ? // stacked
							yBottom - minPointLength : // keep position
							translatedThreshold - (yAxis.translate(point.y, 0, 1, 0, 1) <= translatedThreshold ? minPointLength : 0)); // use exact yAxis.translation (#1485)
				}
			}

			// Cache for access in polar
			point.barX = barX;
			point.pointWidth = pointWidth;

			// Fix the tooltip on center of grouped columns (#1216, #424)
			point.tooltipPos = chart.inverted ?
				[yAxis.len - plotY, series.xAxis.len - barX - barW / 2] :
				[barX + barW / 2, plotY + yAxis.pos - chart.plotTop];

			// Round off to obtain crisp edges and avoid overlapping with neighbours (#2694)
			right = mathRound(barX + barW) + xCrisp;
			barX = mathRound(barX) + xCrisp;
			barW = right - barX;

			fromTop = mathAbs(barY) < 0.5;
			bottom = mathRound(barY + barH) + yCrisp;
			barY = mathRound(barY) + yCrisp;
			barH = bottom - barY;

			// Top edges are exceptions
			if (fromTop) {
				barY -= 1;
				barH += 1;
			}

			// Register shape type and arguments to be used in drawPoints
			point.shapeType = 'rect';
			point.shapeArgs = {
				x: barX,
				y: barY,
				width: barW,
				height: barH
			};

		});

	},

	getSymbol: noop,

	/**
	 * Use a solid rectangle like the area series types
	 */
	drawLegendSymbol: LegendSymbolMixin.drawRectangle,


	/**
	 * Columns have no graph
	 */
	drawGraph: noop,

	/**
	 * Draw the columns. For bars, the series.group is rotated, so the same coordinates
	 * apply for columns and bars. This method is inherited by scatter series.
	 *
	 */
	drawPoints: function () {
		var series = this,
			chart = this.chart,
			options = series.options,
			renderer = chart.renderer,
			animationLimit = options.animationLimit || 250,
			shapeArgs,
			pointAttr;

		// draw the columns
		each(series.points, function (point) {
			var plotY = point.plotY,
				graphic = point.graphic,
				borderAttr;

			if (plotY !== UNDEFINED && !isNaN(plotY) && point.y !== null) {
				shapeArgs = point.shapeArgs;

				borderAttr = defined(series.borderWidth) ? {
					'stroke-width': series.borderWidth
				} : {};

				pointAttr = point.pointAttr[point.selected ? SELECT_STATE : NORMAL_STATE] || series.pointAttr[NORMAL_STATE];

				if (graphic) { // update
					stop(graphic);
					graphic.attr(borderAttr)[chart.pointCount < animationLimit ? 'animate' : 'attr'](merge(shapeArgs));

				} else {
					point.graphic = graphic = renderer[point.shapeType](shapeArgs)
						.attr(pointAttr)
						.attr(borderAttr)
						.add(series.group)
						.shadow(options.shadow, null, options.stacking && !options.borderRadius);
				}

			} else if (graphic) {
				point.graphic = graphic.destroy(); // #1269
			}
		});
	},

	/**
	 * Animate the column heights one by one from zero
	 * @param {Boolean} init Whether to initialize the animation or run it
	 */
	animate: function (init) {
		var series = this,
			yAxis = this.yAxis,
			options = series.options,
			inverted = this.chart.inverted,
			attr = {},
			translatedThreshold;

		if (hasSVG) { // VML is too slow anyway
			if (init) {
				attr.scaleY = 0.001;
				translatedThreshold = mathMin(yAxis.pos + yAxis.len, mathMax(yAxis.pos, yAxis.toPixels(options.threshold)));
				if (inverted) {
					attr.translateX = translatedThreshold - yAxis.len;
				} else {
					attr.translateY = translatedThreshold;
				}
				series.group.attr(attr);

			} else { // run the animation

				attr.scaleY = 1;
				attr[inverted ? 'translateX' : 'translateY'] = yAxis.pos;
				series.group.animate(attr, series.options.animation);

				// delete this function to allow it only once
				series.animate = null;
			}
		}
	},

	/**
	 * Remove this series from the chart
	 */
	remove: function () {
		var series = this,
			chart = series.chart;

		// column and bar series affects other series of the same type
		// as they are either stacked or grouped
		if (chart.hasRendered) {
			each(chart.series, function (otherSeries) {
				if (otherSeries.type === series.type) {
					otherSeries.isDirty = true;
				}
			});
		}

		Series.prototype.remove.apply(series, arguments);
	}
});
seriesTypes.column = ColumnSeries;
/**
 * Set the default options for bar
 */
defaultPlotOptions.bar = merge(defaultPlotOptions.column);
/**
 * The Bar series class
 */
var BarSeries = extendClass(ColumnSeries, {
	type: 'bar',
	inverted: true
});
seriesTypes.bar = BarSeries;

/**
 * Set the default options for scatter
 */
defaultPlotOptions.scatter = merge(defaultSeriesOptions, {
	lineWidth: 0,
	tooltip: {
		headerFormat: '<span style="color:{series.color}">\u25CF</span> <span style="font-size: 10px;"> {series.name}</span><br/>',
		pointFormat: 'x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>'
	},
	stickyTracking: false
});

/**
 * The scatter series class
 */
var ScatterSeries = extendClass(Series, {
	type: 'scatter',
	sorted: false,
	requireSorting: false,
	noSharedTooltip: true,
	trackerGroups: ['markerGroup', 'dataLabelsGroup'],
	takeOrdinalPosition: false, // #2342
	singularTooltips: true,
	drawGraph: function () {
		if (this.options.lineWidth) {
			Series.prototype.drawGraph.call(this);
		}
	}
});

seriesTypes.scatter = ScatterSeries;

/**
 * Set the default options for pie
 */
defaultPlotOptions.pie = merge(defaultSeriesOptions, {
	borderColor: '#FFFFFF',
	borderWidth: 1,
	center: [null, null],
	clip: false,
	colorByPoint: true, // always true for pies
	dataLabels: {
		// align: null,
		// connectorWidth: 1,
		// connectorColor: point.color,
		// connectorPadding: 5,
		distance: 30,
		enabled: true,
		formatter: function () { // #2945
			return this.point.name;
		}
		// softConnector: true,
		//y: 0
	},
	ignoreHiddenPoint: true,
	//innerSize: 0,
	legendType: 'point',
	marker: null, // point options are specified in the base options
	size: null,
	showInLegend: false,
	slicedOffset: 10,
	states: {
		hover: {
			brightness: 0.1,
			shadow: false
		}
	},
	stickyTracking: false,
	tooltip: {
		followPointer: true
	}
});

/**
 * Extended point object for pies
 */
var PiePoint = extendClass(Point, {
	/**
	 * Initiate the pie slice
	 */
	init: function () {

		Point.prototype.init.apply(this, arguments);

		var point = this,
			toggleSlice;

		// Disallow negative values (#1530)
		if (point.y < 0) {
			point.y = null;
		}

		//visible: options.visible !== false,
		extend(point, {
			visible: point.visible !== false,
			name: pick(point.name, 'Slice')
		});

		// add event listener for select
		toggleSlice = function (e) {
			point.slice(e.type === 'select');
		};
		addEvent(point, 'select', toggleSlice);
		addEvent(point, 'unselect', toggleSlice);

		return point;
	},

	/**
	 * Toggle the visibility of the pie slice
	 * @param {Boolean} vis Whether to show the slice or not. If undefined, the
	 *    visibility is toggled
	 */
	setVisible: function (vis) {
		var point = this,
			series = point.series,
			chart = series.chart;

		// if called without an argument, toggle visibility
		point.visible = point.options.visible = vis = vis === UNDEFINED ? !point.visible : vis;
		series.options.data[inArray(point, series.data)] = point.options; // update userOptions.data

		// Show and hide associated elements
		each(['graphic', 'dataLabel', 'connector', 'shadowGroup'], function (key) {
			if (point[key]) {
				point[key][vis ? 'show' : 'hide'](true);
			}
		});

		if (point.legendItem) {
			chart.legend.colorizeItem(point, vis);
		}

		// Handle ignore hidden slices
		if (!series.isDirty && series.options.ignoreHiddenPoint) {
			series.isDirty = true;
			chart.redraw();
		}
	},

	/**
	 * Set or toggle whether the slice is cut out from the pie
	 * @param {Boolean} sliced When undefined, the slice state is toggled
	 * @param {Boolean} redraw Whether to redraw the chart. True by default.
	 */
	slice: function (sliced, redraw, animation) {
		var point = this,
			series = point.series,
			chart = series.chart,
			translation;

		setAnimation(animation, chart);

		// redraw is true by default
		redraw = pick(redraw, true);

		// if called without an argument, toggle
		point.sliced = point.options.sliced = sliced = defined(sliced) ? sliced : !point.sliced;
		series.options.data[inArray(point, series.data)] = point.options; // update userOptions.data

		translation = sliced ? point.slicedTranslation : {
			translateX: 0,
			translateY: 0
		};

		point.graphic.animate(translation);

		if (point.shadowGroup) {
			point.shadowGroup.animate(translation);
		}

	},

	haloPath: function (size) {
		var shapeArgs = this.shapeArgs,
			chart = this.series.chart;

		return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(chart.plotLeft + shapeArgs.x, chart.plotTop + shapeArgs.y, shapeArgs.r + size, shapeArgs.r + size, {
			innerR: this.shapeArgs.r,
			start: shapeArgs.start,
			end: shapeArgs.end
		});
	}
});

/**
 * The Pie series class
 */
var PieSeries = {
	type: 'pie',
	isCartesian: false,
	pointClass: PiePoint,
	requireSorting: false,
	noSharedTooltip: true,
	trackerGroups: ['group', 'dataLabelsGroup'],
	axisTypes: [],
	pointAttrToOptions: { // mapping between SVG attributes and the corresponding options
		stroke: 'borderColor',
		'stroke-width': 'borderWidth',
		fill: 'color'
	},
	singularTooltips: true,

	/**
	 * Pies have one color each point
	 */
	getColor: noop,

	/**
	 * Animate the pies in
	 */
	animate: function (init) {
		var series = this,
			points = series.points,
			startAngleRad = series.startAngleRad;

		if (!init) {
			each(points, function (point) {
				var graphic = point.graphic,
					args = point.shapeArgs;

				if (graphic) {
					// start values
					graphic.attr({
						r: series.center[3] / 2, // animate from inner radius (#779)
						start: startAngleRad,
						end: startAngleRad
					});

					// animate
					graphic.animate({
						r: args.r,
						start: args.start,
						end: args.end
					}, series.options.animation);
				}
			});

			// delete this function to allow it only once
			series.animate = null;
		}
	},

	/**
	 * Extend the basic setData method by running processData and generatePoints immediately,
	 * in order to access the points from the legend.
	 */
	setData: function (data, redraw, animation, updatePoints) {
		Series.prototype.setData.call(this, data, false, animation, updatePoints);
		this.processData();
		this.generatePoints();
		if (pick(redraw, true)) {
			this.chart.redraw(animation);
		}
	},

	/**
	 * Extend the generatePoints method by adding total and percentage properties to each point
	 */
	generatePoints: function () {
		var i,
			total = 0,
			points,
			len,
			point,
			ignoreHiddenPoint = this.options.ignoreHiddenPoint;

		Series.prototype.generatePoints.call(this);

		// Populate local vars
		points = this.points;
		len = points.length;

		// Get the total sum
		for (i = 0; i < len; i++) {
			point = points[i];
			total += (ignoreHiddenPoint && !point.visible) ? 0 : point.y;
		}
		this.total = total;

		// Set each point's properties
		for (i = 0; i < len; i++) {
			point = points[i];
			point.percentage = total > 0 ? (point.y / total) * 100 : 0;
			point.total = total;
		}

	},

	/**
	 * Do translation for pie slices
	 */
	translate: function (positions) {
		this.generatePoints();

		var series = this,
			cumulative = 0,
			precision = 1000, // issue #172
			options = series.options,
			slicedOffset = options.slicedOffset,
			connectorOffset = slicedOffset + options.borderWidth,
			start,
			end,
			angle,
			startAngle = options.startAngle || 0,
			startAngleRad = series.startAngleRad = mathPI / 180 * (startAngle - 90),
			endAngleRad = series.endAngleRad = mathPI / 180 * ((pick(options.endAngle, startAngle + 360)) - 90),
			circ = endAngleRad - startAngleRad, //2 * mathPI,
			points = series.points,
			radiusX, // the x component of the radius vector for a given point
			radiusY,
			labelDistance = options.dataLabels.distance,
			ignoreHiddenPoint = options.ignoreHiddenPoint,
			i,
			len = points.length,
			point;

		// Get positions - either an integer or a percentage string must be given.
		// If positions are passed as a parameter, we're in a recursive loop for adjusting
		// space for data labels.
		if (!positions) {
			series.center = positions = series.getCenter();
		}

		// utility for getting the x value from a given y, used for anticollision logic in data labels
		series.getX = function (y, left) {

			angle = math.asin(mathMin((y - positions[1]) / (positions[2] / 2 + labelDistance), 1));

			return positions[0] +
				(left ? -1 : 1) *
				(mathCos(angle) * (positions[2] / 2 + labelDistance));
		};

		// Calculate the geometry for each point
		for (i = 0; i < len; i++) {

			point = points[i];

			// set start and end angle
			start = startAngleRad + (cumulative * circ);
			if (!ignoreHiddenPoint || point.visible) {
				cumulative += point.percentage / 100;
			}
			end = startAngleRad + (cumulative * circ);

			// set the shape
			point.shapeType = 'arc';
			point.shapeArgs = {
				x: positions[0],
				y: positions[1],
				r: positions[2] / 2,
				innerR: positions[3] / 2,
				start: mathRound(start * precision) / precision,
				end: mathRound(end * precision) / precision
			};

			// The angle must stay within -90 and 270 (#2645)
			angle = (end + start) / 2;
			if (angle > 1.5 * mathPI) {
				angle -= 2 * mathPI;
			} else if (angle < -mathPI / 2) {
				angle += 2 * mathPI;
			}

			// Center for the sliced out slice
			point.slicedTranslation = {
				translateX: mathRound(mathCos(angle) * slicedOffset),
				translateY: mathRound(mathSin(angle) * slicedOffset)
			};

			// set the anchor point for tooltips
			radiusX = mathCos(angle) * positions[2] / 2;
			radiusY = mathSin(angle) * positions[2] / 2;
			point.tooltipPos = [
				positions[0] + radiusX * 0.7,
				positions[1] + radiusY * 0.7
			];

			point.half = angle < -mathPI / 2 || angle > mathPI / 2 ? 1 : 0;
			point.angle = angle;

			// set the anchor point for data labels
			connectorOffset = mathMin(connectorOffset, labelDistance / 2); // #1678
			point.labelPos = [
				positions[0] + radiusX + mathCos(angle) * labelDistance, // first break of connector
				positions[1] + radiusY + mathSin(angle) * labelDistance, // a/a
				positions[0] + radiusX + mathCos(angle) * connectorOffset, // second break, right outside pie
				positions[1] + radiusY + mathSin(angle) * connectorOffset, // a/a
				positions[0] + radiusX, // landing point for connector
				positions[1] + radiusY, // a/a
				labelDistance < 0 ? // alignment
					'center' :
					point.half ? 'right' : 'left', // alignment
				angle // center angle
			];

		}
	},

	drawGraph: null,

	/**
	 * Draw the data points
	 */
	drawPoints: function () {
		var series = this,
			chart = series.chart,
			renderer = chart.renderer,
			groupTranslation,
			//center,
			graphic,
			//group,
			shadow = series.options.shadow,
			shadowGroup,
			shapeArgs;

		if (shadow && !series.shadowGroup) {
			series.shadowGroup = renderer.g('shadow')
				.add(series.group);
		}

		// draw the slices
		each(series.points, function (point) {
			graphic = point.graphic;
			shapeArgs = point.shapeArgs;
			shadowGroup = point.shadowGroup;

			// put the shadow behind all points
			if (shadow && !shadowGroup) {
				shadowGroup = point.shadowGroup = renderer.g('shadow')
					.add(series.shadowGroup);
			}

			// if the point is sliced, use special translation, else use plot area traslation
			groupTranslation = point.sliced ? point.slicedTranslation : {
				translateX: 0,
				translateY: 0
			};

			//group.translate(groupTranslation[0], groupTranslation[1]);
			if (shadowGroup) {
				shadowGroup.attr(groupTranslation);
			}

			// draw the slice
			if (graphic) {
				graphic.animate(extend(shapeArgs, groupTranslation));
			} else {
				point.graphic = graphic = renderer[point.shapeType](shapeArgs)
					.setRadialReference(series.center)
					.attr(
						point.pointAttr[point.selected ? SELECT_STATE : NORMAL_STATE]
					)
					.attr({
						'stroke-linejoin': 'round'
						//zIndex: 1 // #2722 (reversed)
					})
					.attr(groupTranslation)
					.add(series.group)
					.shadow(shadow, shadowGroup);
			}

			// detect point specific visibility (#2430)
			if (point.visible !== undefined) {
				point.setVisible(point.visible);
			}

		});

	},

	/**
	 * Utility for sorting data labels
	 */
	sortByAngle: function (points, sign) {
		points.sort(function (a, b) {
			return a.angle !== undefined && (b.angle - a.angle) * sign;
		});
	},

	/**
	 * Use a simple symbol from LegendSymbolMixin
	 */
	drawLegendSymbol: LegendSymbolMixin.drawRectangle,

	/**
	 * Use the getCenter method from drawLegendSymbol
	 */
	getCenter: CenteredSeriesMixin.getCenter,

	/**
	 * Pies don't have point marker symbols
	 */
	getSymbol: noop

};
PieSeries = extendClass(Series, PieSeries);
seriesTypes.pie = PieSeries;

/**
 * Draw the data labels
 */
Series.prototype.drawDataLabels = function () {

	var series = this,
		seriesOptions = series.options,
		cursor = seriesOptions.cursor,
		options = seriesOptions.dataLabels,
		points = series.points,
		pointOptions,
		generalOptions,
		hasRendered = series.hasRendered || 0,
		str,
		dataLabelsGroup;

	if (options.enabled || series._hasPointLabels) {

		// Process default alignment of data labels for columns
		if (series.dlProcessOptions) {
			series.dlProcessOptions(options);
		}

		// Create a separate group for the data labels to avoid rotation
		dataLabelsGroup = series.plotGroup(
			'dataLabelsGroup',
			'data-labels',
			options.defer ? HIDDEN : VISIBLE,
			options.zIndex || 6
		);

		if (pick(options.defer, true)) {
			dataLabelsGroup.attr({ opacity: +hasRendered }); // #3300
			if (!hasRendered) {
				addEvent(series, 'afterAnimate', function () {
					if (series.visible) { // #3023, #3024
						dataLabelsGroup.show();
					}
					dataLabelsGroup[seriesOptions.animation ? 'animate' : 'attr']({ opacity: 1 }, { duration: 200 });
				});
			}
		}

		// Make the labels for each point
		generalOptions = options;
		each(points, function (point) {

			var enabled,
				dataLabel = point.dataLabel,
				labelConfig,
				attr,
				name,
				rotation,
				connector = point.connector,
				isNew = true;

			// Determine if each data label is enabled
			pointOptions = point.options && point.options.dataLabels;
			enabled = pick(pointOptions && pointOptions.enabled, generalOptions.enabled); // #2282


			// If the point is outside the plot area, destroy it. #678, #820
			if (dataLabel && !enabled) {
				point.dataLabel = dataLabel.destroy();

			// Individual labels are disabled if the are explicitly disabled
			// in the point options, or if they fall outside the plot area.
			} else if (enabled) {

				// Create individual options structure that can be extended without
				// affecting others
				options = merge(generalOptions, pointOptions);

				rotation = options.rotation;

				// Get the string
				labelConfig = point.getLabelConfig();
				str = options.format ?
					format(options.format, labelConfig) :
					options.formatter.call(labelConfig, options);

				// Determine the color
				options.style.color = pick(options.color, options.style.color, series.color, 'black');


				// update existing label
				if (dataLabel) {

					if (defined(str)) {
						dataLabel
							.attr({
								text: str
							});
						isNew = false;

					} else { // #1437 - the label is shown conditionally
						point.dataLabel = dataLabel = dataLabel.destroy();
						if (connector) {
							point.connector = connector.destroy();
						}
					}

				// create new label
				} else if (defined(str)) {
					attr = {
						//align: align,
						fill: options.backgroundColor,
						stroke: options.borderColor,
						'stroke-width': options.borderWidth,
						r: options.borderRadius || 0,
						rotation: rotation,
						padding: options.padding,
						zIndex: 1
					};
					// Remove unused attributes (#947)
					for (name in attr) {
						if (attr[name] === UNDEFINED) {
							delete attr[name];
						}
					}

					dataLabel = point.dataLabel = series.chart.renderer[rotation ? 'text' : 'label']( // labels don't support rotation
						str,
						0,
						-999,
						null,
						null,
						null,
						options.useHTML
					)
					.attr(attr)
					.css(extend(options.style, cursor && { cursor: cursor }))
					.add(dataLabelsGroup)
					.shadow(options.shadow);

				}

				if (dataLabel) {
					// Now the data label is created and placed at 0,0, so we need to align it
					series.alignDataLabel(point, dataLabel, options, null, isNew);
				}
			}
		});
	}
};

/**
 * Align each individual data label
 */
Series.prototype.alignDataLabel = function (point, dataLabel, options, alignTo, isNew) {
	var chart = this.chart,
		inverted = chart.inverted,
		plotX = pick(point.plotX, -999),
		plotY = pick(point.plotY, -999),
		bBox = dataLabel.getBBox(),
		// Math.round for rounding errors (#2683), alignTo to allow column labels (#2700)
		visible = this.visible && (point.series.forceDL || chart.isInsidePlot(plotX, mathRound(plotY), inverted) ||
			(alignTo && chart.isInsidePlot(plotX, inverted ? alignTo.x + 1 : alignTo.y + alignTo.height - 1, inverted))),
		alignAttr; // the final position;

	if (visible) {

		// The alignment box is a singular point
		alignTo = extend({
			x: inverted ? chart.plotWidth - plotY : plotX,
			y: mathRound(inverted ? chart.plotHeight - plotX : plotY),
			width: 0,
			height: 0
		}, alignTo);

		// Add the text size for alignment calculation
		extend(options, {
			width: bBox.width,
			height: bBox.height
		});

		// Allow a hook for changing alignment in the last moment, then do the alignment
		if (options.rotation) { // Fancy box alignment isn't supported for rotated text
			dataLabel[isNew ? 'attr' : 'animate']({
					x: alignTo.x + options.x + alignTo.width / 2,
					y: alignTo.y + options.y + alignTo.height / 2
				})
				.attr({ // #3003
					align: options.align
				});
		} else {
			dataLabel.align(options, null, alignTo);
			alignAttr = dataLabel.alignAttr;

			// Handle justify or crop
			if (pick(options.overflow, 'justify') === 'justify') {
				this.justifyDataLabel(dataLabel, options, alignAttr, bBox, alignTo, isNew);

			} else if (pick(options.crop, true)) {
				// Now check that the data label is within the plot area
				visible = chart.isInsidePlot(alignAttr.x, alignAttr.y) && chart.isInsidePlot(alignAttr.x + bBox.width, alignAttr.y + bBox.height);

			}
		}
	}

	// Show or hide based on the final aligned position
	if (!visible) {
		dataLabel.attr({ y: -999 });
		dataLabel.placed = false; // don't animate back in
	}

};

/**
 * If data labels fall partly outside the plot area, align them back in, in a way that
 * doesn't hide the point.
 */
Series.prototype.justifyDataLabel = function (dataLabel, options, alignAttr, bBox, alignTo, isNew) {
	var chart = this.chart,
		align = options.align,
		verticalAlign = options.verticalAlign,
		off,
		justified;

	// Off left
	off = alignAttr.x;
	if (off < 0) {
		if (align === 'right') {
			options.align = 'left';
		} else {
			options.x = -off;
		}
		justified = true;
	}

	// Off right
	off = alignAttr.x + bBox.width;
	if (off > chart.plotWidth) {
		if (align === 'left') {
			options.align = 'right';
		} else {
			options.x = chart.plotWidth - off;
		}
		justified = true;
	}

	// Off top
	off = alignAttr.y;
	if (off < 0) {
		if (verticalAlign === 'bottom') {
			options.verticalAlign = 'top';
		} else {
			options.y = -off;
		}
		justified = true;
	}

	// Off bottom
	off = alignAttr.y + bBox.height;
	if (off > chart.plotHeight) {
		if (verticalAlign === 'top') {
			options.verticalAlign = 'bottom';
		} else {
			options.y = chart.plotHeight - off;
		}
		justified = true;
	}

	if (justified) {
		dataLabel.placed = !isNew;
		dataLabel.align(options, null, alignTo);
	}
};

/**
 * Override the base drawDataLabels method by pie specific functionality
 */
if (seriesTypes.pie) {
	seriesTypes.pie.prototype.drawDataLabels = function () {
		var series = this,
			data = series.data,
			point,
			chart = series.chart,
			options = series.options.dataLabels,
			connectorPadding = pick(options.connectorPadding, 10),
			connectorWidth = pick(options.connectorWidth, 1),
			plotWidth = chart.plotWidth,
			plotHeight = chart.plotHeight,
			connector,
			connectorPath,
			softConnector = pick(options.softConnector, true),
			distanceOption = options.distance,
			seriesCenter = series.center,
			radius = seriesCenter[2] / 2,
			centerY = seriesCenter[1],
			outside = distanceOption > 0,
			dataLabel,
			dataLabelWidth,
			labelPos,
			labelHeight,
			halves = [// divide the points into right and left halves for anti collision
				[], // right
				[]  // left
			],
			x,
			y,
			visibility,
			rankArr,
			i,
			j,
			overflow = [0, 0, 0, 0], // top, right, bottom, left
			sort = function (a, b) {
				return b.y - a.y;
			};

		// get out if not enabled
		if (!series.visible || (!options.enabled && !series._hasPointLabels)) {
			return;
		}

		// run parent method
		Series.prototype.drawDataLabels.apply(series);

		// arrange points for detection collision
		each(data, function (point) {
			if (point.dataLabel && point.visible) { // #407, #2510
				halves[point.half].push(point);
			}
		});

		/* Loop over the points in each half, starting from the top and bottom
		 * of the pie to detect overlapping labels.
		 */
		i = 2;
		while (i--) {

			var slots = [],
				slotsLength,
				usedSlots = [],
				points = halves[i],
				pos,
				bottom,
				length = points.length,
				slotIndex;

			if (!length) {
				continue;
			}

			// Sort by angle
			series.sortByAngle(points, i - 0.5);

			// Assume equal label heights on either hemisphere (#2630)
			j = labelHeight = 0;
			while (!labelHeight && points[j]) { // #1569
				labelHeight = points[j] && points[j].dataLabel && (points[j].dataLabel.getBBox().height || 21); // 21 is for #968
				j++;
			}

			// Only do anti-collision when we are outside the pie and have connectors (#856)
			if (distanceOption > 0) {

				// Build the slots
				bottom = mathMin(centerY + radius + distanceOption, chart.plotHeight);
				for (pos = mathMax(0, centerY - radius - distanceOption); pos <= bottom; pos += labelHeight) {
					slots.push(pos);
				}
				slotsLength = slots.length;


				/* Visualize the slots
				if (!series.slotElements) {
					series.slotElements = [];
				}
				if (i === 1) {
					series.slotElements.forEach(function (elem) {
						elem.destroy();
					});
					series.slotElements.length = 0;
				}

				slots.forEach(function (pos, no) {
					var slotX = series.getX(pos, i) + chart.plotLeft - (i ? 100 : 0),
						slotY = pos + chart.plotTop;

					if (!isNaN(slotX)) {
						series.slotElements.push(chart.renderer.rect(slotX, slotY - 7, 100, labelHeight, 1)
							.attr({
								'stroke-width': 1,
								stroke: 'silver',
								fill: 'rgba(0,0,255,0.1)'
							})
							.add());
						series.slotElements.push(chart.renderer.text('Slot '+ no, slotX, slotY + 4)
							.attr({
								fill: 'silver'
							}).add());
					}
				});
				// */

				// if there are more values than available slots, remove lowest values
				if (length > slotsLength) {
					// create an array for sorting and ranking the points within each quarter
					rankArr = [].concat(points);
					rankArr.sort(sort);
					j = length;
					while (j--) {
						rankArr[j].rank = j;
					}
					j = length;
					while (j--) {
						if (points[j].rank >= slotsLength) {
							points.splice(j, 1);
						}
					}
					length = points.length;
				}

				// The label goes to the nearest open slot, but not closer to the edge than
				// the label's index.
				for (j = 0; j < length; j++) {

					point = points[j];
					labelPos = point.labelPos;

					var closest = 9999,
						distance,
						slotI;

					// find the closest slot index
					for (slotI = 0; slotI < slotsLength; slotI++) {
						distance = mathAbs(slots[slotI] - labelPos[1]);
						if (distance < closest) {
							closest = distance;
							slotIndex = slotI;
						}
					}

					// if that slot index is closer to the edges of the slots, move it
					// to the closest appropriate slot
					if (slotIndex < j && slots[j] !== null) { // cluster at the top
						slotIndex = j;
					} else if (slotsLength  < length - j + slotIndex && slots[j] !== null) { // cluster at the bottom
						slotIndex = slotsLength - length + j;
						while (slots[slotIndex] === null) { // make sure it is not taken
							slotIndex++;
						}
					} else {
						// Slot is taken, find next free slot below. In the next run, the next slice will find the
						// slot above these, because it is the closest one
						while (slots[slotIndex] === null) { // make sure it is not taken
							slotIndex++;
						}
					}

					usedSlots.push({ i: slotIndex, y: slots[slotIndex] });
					slots[slotIndex] = null; // mark as taken
				}
				// sort them in order to fill in from the top
				usedSlots.sort(sort);
			}

			// now the used slots are sorted, fill them up sequentially
			for (j = 0; j < length; j++) {

				var slot, naturalY;

				point = points[j];
				labelPos = point.labelPos;
				dataLabel = point.dataLabel;
				visibility = point.visible === false ? HIDDEN : VISIBLE;
				naturalY = labelPos[1];

				if (distanceOption > 0) {
					slot = usedSlots.pop();
					slotIndex = slot.i;

					// if the slot next to currrent slot is free, the y value is allowed
					// to fall back to the natural position
					y = slot.y;
					if ((naturalY > y && slots[slotIndex + 1] !== null) ||
							(naturalY < y &&  slots[slotIndex - 1] !== null)) {
						y = mathMin(mathMax(0, naturalY), chart.plotHeight);
					}

				} else {
					y = naturalY;
				}

				// get the x - use the natural x position for first and last slot, to prevent the top
				// and botton slice connectors from touching each other on either side
				x = options.justify ?
					seriesCenter[0] + (i ? -1 : 1) * (radius + distanceOption) :
					series.getX(y === centerY - radius - distanceOption || y === centerY + radius + distanceOption ? naturalY : y, i);


				// Record the placement and visibility
				dataLabel._attr = {
					visibility: visibility,
					align: labelPos[6]
				};
				dataLabel._pos = {
					x: x + options.x +
						({ left: connectorPadding, right: -connectorPadding }[labelPos[6]] || 0),
					y: y + options.y - 10 // 10 is for the baseline (label vs text)
				};
				dataLabel.connX = x;
				dataLabel.connY = y;


				// Detect overflowing data labels
				if (this.options.size === null) {
					dataLabelWidth = dataLabel.width;
					// Overflow left
					if (x - dataLabelWidth < connectorPadding) {
						overflow[3] = mathMax(mathRound(dataLabelWidth - x + connectorPadding), overflow[3]);

					// Overflow right
					} else if (x + dataLabelWidth > plotWidth - connectorPadding) {
						overflow[1] = mathMax(mathRound(x + dataLabelWidth - plotWidth + connectorPadding), overflow[1]);
					}

					// Overflow top
					if (y - labelHeight / 2 < 0) {
						overflow[0] = mathMax(mathRound(-y + labelHeight / 2), overflow[0]);

					// Overflow left
					} else if (y + labelHeight / 2 > plotHeight) {
						overflow[2] = mathMax(mathRound(y + labelHeight / 2 - plotHeight), overflow[2]);
					}
				}
			} // for each point
		} // for each half

		// Do not apply the final placement and draw the connectors until we have verified
		// that labels are not spilling over.
		if (arrayMax(overflow) === 0 || this.verifyDataLabelOverflow(overflow)) {

			// Place the labels in the final position
			this.placeDataLabels();

			// Draw the connectors
			if (outside && connectorWidth) {
				each(this.points, function (point) {
					connector = point.connector;
					labelPos = point.labelPos;
					dataLabel = point.dataLabel;

					if (dataLabel && dataLabel._pos) {
						visibility = dataLabel._attr.visibility;
						x = dataLabel.connX;
						y = dataLabel.connY;
						connectorPath = softConnector ? [
							M,
							x + (labelPos[6] === 'left' ? 5 : -5), y, // end of the string at the label
							'C',
							x, y, // first break, next to the label
							2 * labelPos[2] - labelPos[4], 2 * labelPos[3] - labelPos[5],
							labelPos[2], labelPos[3], // second break
							L,
							labelPos[4], labelPos[5] // base
						] : [
							M,
							x + (labelPos[6] === 'left' ? 5 : -5), y, // end of the string at the label
							L,
							labelPos[2], labelPos[3], // second break
							L,
							labelPos[4], labelPos[5] // base
						];

						if (connector) {
							connector.animate({ d: connectorPath });
							connector.attr('visibility', visibility);

						} else {
							point.connector = connector = series.chart.renderer.path(connectorPath).attr({
								'stroke-width': connectorWidth,
								stroke: options.connectorColor || point.color || '#606060',
								visibility: visibility
								//zIndex: 0 // #2722 (reversed)
							})
							.add(series.dataLabelsGroup);
						}
					} else if (connector) {
						point.connector = connector.destroy();
					}
				});
			}
		}
	};
	/**
	 * Perform the final placement of the data labels after we have verified that they
	 * fall within the plot area.
	 */
	seriesTypes.pie.prototype.placeDataLabels = function () {
		each(this.points, function (point) {
			var dataLabel = point.dataLabel,
				_pos;

			if (dataLabel) {
				_pos = dataLabel._pos;
				if (_pos) {
					dataLabel.attr(dataLabel._attr);
					dataLabel[dataLabel.moved ? 'animate' : 'attr'](_pos);
					dataLabel.moved = true;
				} else if (dataLabel) {
					dataLabel.attr({ y: -999 });
				}
			}
		});
	};

	seriesTypes.pie.prototype.alignDataLabel =  noop;

	/**
	 * Verify whether the data labels are allowed to draw, or we should run more translation and data
	 * label positioning to keep them inside the plot area. Returns true when data labels are ready
	 * to draw.
	 */
	seriesTypes.pie.prototype.verifyDataLabelOverflow = function (overflow) {

		var center = this.center,
			options = this.options,
			centerOption = options.center,
			minSize = options.minSize || 80,
			newSize = minSize,
			ret;

		// Handle horizontal size and center
		if (centerOption[0] !== null) { // Fixed center
			newSize = mathMax(center[2] - mathMax(overflow[1], overflow[3]), minSize);

		} else { // Auto center
			newSize = mathMax(
				center[2] - overflow[1] - overflow[3], // horizontal overflow
				minSize
			);
			center[0] += (overflow[3] - overflow[1]) / 2; // horizontal center
		}

		// Handle vertical size and center
		if (centerOption[1] !== null) { // Fixed center
			newSize = mathMax(mathMin(newSize, center[2] - mathMax(overflow[0], overflow[2])), minSize);

		} else { // Auto center
			newSize = mathMax(
				mathMin(
					newSize,
					center[2] - overflow[0] - overflow[2] // vertical overflow
				),
				minSize
			);
			center[1] += (overflow[0] - overflow[2]) / 2; // vertical center
		}

		// If the size must be decreased, we need to run translate and drawDataLabels again
		if (newSize < center[2]) {
			center[2] = newSize;
			this.translate(center);
			each(this.points, function (point) {
				if (point.dataLabel) {
					point.dataLabel._pos = null; // reset
				}
			});

			if (this.drawDataLabels) {
				this.drawDataLabels();
			}
		// Else, return true to indicate that the pie and its labels is within the plot area
		} else {
			ret = true;
		}
		return ret;
	};
}

if (seriesTypes.column) {

	/**
	 * Override the basic data label alignment by adjusting for the position of the column
	 */
	seriesTypes.column.prototype.alignDataLabel = function (point, dataLabel, options,  alignTo, isNew) {
		var chart = this.chart,
			inverted = chart.inverted,
			dlBox = point.dlBox || point.shapeArgs, // data label box for alignment
			below = point.below || (point.plotY > pick(this.translatedThreshold, chart.plotSizeY)),
			inside = pick(options.inside, !!this.options.stacking); // draw it inside the box?

		// Align to the column itself, or the top of it
		if (dlBox) { // Area range uses this method but not alignTo
			alignTo = merge(dlBox);

			if (inverted) {
				alignTo = {
					x: chart.plotWidth - alignTo.y - alignTo.height,
					y: chart.plotHeight - alignTo.x - alignTo.width,
					width: alignTo.height,
					height: alignTo.width
				};
			}

			// Compute the alignment box
			if (!inside) {
				if (inverted) {
					alignTo.x += below ? 0 : alignTo.width;
					alignTo.width = 0;
				} else {
					alignTo.y += below ? alignTo.height : 0;
					alignTo.height = 0;
				}
			}
		}


		// When alignment is undefined (typically columns and bars), display the individual
		// point below or above the point depending on the threshold
		options.align = pick(
			options.align,
			!inverted || inside ? 'center' : below ? 'right' : 'left'
		);
		options.verticalAlign = pick(
			options.verticalAlign,
			inverted || inside ? 'middle' : below ? 'top' : 'bottom'
		);

		// Call the parent method
		Series.prototype.alignDataLabel.call(this, point, dataLabel, options, alignTo, isNew);
	};
}



/**
 * TrackerMixin for points and graphs
 */

var TrackerMixin = Highcharts.TrackerMixin = {

	drawTrackerPoint: function () {
		var series = this,
			chart = series.chart,
			pointer = chart.pointer,
			cursor = series.options.cursor,
			css = cursor && { cursor: cursor },
			onMouseOver = function (e) {
				var target = e.target,
				point;

				if (chart.hoverSeries !== series) {
					series.onMouseOver();
				}

				while (target && !point) {
					point = target.point;
					target = target.parentNode;
				}

				if (point !== UNDEFINED && point !== chart.hoverPoint) { // undefined on graph in scatterchart
					point.onMouseOver(e);
				}
			};

		// Add reference to the point
		each(series.points, function (point) {
			if (point.graphic) {
				point.graphic.element.point = point;
			}
			if (point.dataLabel) {
				point.dataLabel.element.point = point;
			}
		});

		// Add the event listeners, we need to do this only once
		if (!series._hasTracking) {
			each(series.trackerGroups, function (key) {
				if (series[key]) { // we don't always have dataLabelsGroup
					series[key]
						.addClass(PREFIX + 'tracker')
						.on('mouseover', onMouseOver)
						.on('mouseout', function (e) { pointer.onTrackerMouseOut(e); })
						.css(css);
					if (hasTouch) {
						series[key].on('touchstart', onMouseOver);
					}
				}
			});
			series._hasTracking = true;
		}
	},

	/**
	 * Draw the tracker object that sits above all data labels and markers to
	 * track mouse events on the graph or points. For the line type charts
	 * the tracker uses the same graphPath, but with a greater stroke width
	 * for better control.
	 */
	drawTrackerGraph: function () {
		var series = this,
			options = series.options,
			trackByArea = options.trackByArea,
			trackerPath = [].concat(trackByArea ? series.areaPath : series.graphPath),
			trackerPathLength = trackerPath.length,
			chart = series.chart,
			pointer = chart.pointer,
			renderer = chart.renderer,
			snap = chart.options.tooltip.snap,
			tracker = series.tracker,
			cursor = options.cursor,
			css = cursor && { cursor: cursor },
			singlePoints = series.singlePoints,
			singlePoint,
			i,
			onMouseOver = function () {
				if (chart.hoverSeries !== series) {
					series.onMouseOver();
				}
			},
			/*
			 * Empirical lowest possible opacities for TRACKER_FILL for an element to stay invisible but clickable
			 * IE6: 0.002
			 * IE7: 0.002
			 * IE8: 0.002
			 * IE9: 0.00000000001 (unlimited)
			 * IE10: 0.0001 (exporting only)
			 * FF: 0.00000000001 (unlimited)
			 * Chrome: 0.000001
			 * Safari: 0.000001
			 * Opera: 0.00000000001 (unlimited)
			 */
			TRACKER_FILL = 'rgba(192,192,192,' + (hasSVG ? 0.0001 : 0.002) + ')';

		// Extend end points. A better way would be to use round linecaps,
		// but those are not clickable in VML.
		if (trackerPathLength && !trackByArea) {
			i = trackerPathLength + 1;
			while (i--) {
				if (trackerPath[i] === M) { // extend left side
					trackerPath.splice(i + 1, 0, trackerPath[i + 1] - snap, trackerPath[i + 2], L);
				}
				if ((i && trackerPath[i] === M) || i === trackerPathLength) { // extend right side
					trackerPath.splice(i, 0, L, trackerPath[i - 2] + snap, trackerPath[i - 1]);
				}
			}
		}

		// handle single points
		for (i = 0; i < singlePoints.length; i++) {
			singlePoint = singlePoints[i];
			trackerPath.push(M, singlePoint.plotX - snap, singlePoint.plotY,
			L, singlePoint.plotX + snap, singlePoint.plotY);
		}

		// draw the tracker
		if (tracker) {
			tracker.attr({ d: trackerPath });
		} else { // create

			series.tracker = renderer.path(trackerPath)
			.attr({
				'stroke-linejoin': 'round', // #1225
				visibility: series.visible ? VISIBLE : HIDDEN,
				stroke: TRACKER_FILL,
				fill: trackByArea ? TRACKER_FILL : NONE,
				'stroke-width' : options.lineWidth + (trackByArea ? 0 : 2 * snap),
				zIndex: 2
			})
			.add(series.group);

			// The tracker is added to the series group, which is clipped, but is covered
			// by the marker group. So the marker group also needs to capture events.
			each([series.tracker, series.markerGroup], function (tracker) {
				tracker.addClass(PREFIX + 'tracker')
					.on('mouseover', onMouseOver)
					.on('mouseout', function (e) { pointer.onTrackerMouseOut(e); })
					.css(css);

				if (hasTouch) {
					tracker.on('touchstart', onMouseOver);
				}
			});
		}
	}
};
/* End TrackerMixin */


/**
 * Add tracking event listener to the series group, so the point graphics
 * themselves act as trackers
 */

if (seriesTypes.column) {
	ColumnSeries.prototype.drawTracker = TrackerMixin.drawTrackerPoint;
}

if (seriesTypes.pie) {
	seriesTypes.pie.prototype.drawTracker = TrackerMixin.drawTrackerPoint;
}

if (seriesTypes.scatter) {
	ScatterSeries.prototype.drawTracker = TrackerMixin.drawTrackerPoint;
}

/*
 * Extend Legend for item events
 */
extend(Legend.prototype, {

	setItemEvents: function (item, legendItem, useHTML, itemStyle, itemHiddenStyle) {
	var legend = this;
	// Set the events on the item group, or in case of useHTML, the item itself (#1249)
	(useHTML ? legendItem : item.legendGroup).on('mouseover', function () {
			item.setState(HOVER_STATE);
			legendItem.css(legend.options.itemHoverStyle);
		})
		.on('mouseout', function () {
			legendItem.css(item.visible ? itemStyle : itemHiddenStyle);
			item.setState();
		})
		.on('click', function (event) {
			var strLegendItemClick = 'legendItemClick',
				fnLegendItemClick = function () {
					item.setVisible();
				};

			// Pass over the click/touch event. #4.
			event = {
				browserEvent: event
			};

			// click the name or symbol
			if (item.firePointEvent) { // point
				item.firePointEvent(strLegendItemClick, event, fnLegendItemClick);
			} else {
				fireEvent(item, strLegendItemClick, event, fnLegendItemClick);
			}
		});
	},

	createCheckboxForItem: function (item) {
		var legend = this;

		item.checkbox = createElement('input', {
			type: 'checkbox',
			checked: item.selected,
			defaultChecked: item.selected // required by IE7
		}, legend.options.itemCheckboxStyle, legend.chart.container);

		addEvent(item.checkbox, 'click', function (event) {
			var target = event.target;
			fireEvent(item, 'checkboxClick', {
					checked: target.checked
				},
				function () {
					item.select();
				}
			);
		});
	}
});

/*
 * Add pointer cursor to legend itemstyle in defaultOptions
 */
defaultOptions.legend.itemStyle.cursor = 'pointer';


/*
 * Extend the Chart object with interaction
 */

extend(Chart.prototype, {
	/**
	 * Display the zoom button
	 */
	showResetZoom: function () {
		var chart = this,
			lang = defaultOptions.lang,
			btnOptions = chart.options.chart.resetZoomButton,
			theme = btnOptions.theme,
			states = theme.states,
			alignTo = btnOptions.relativeTo === 'chart' ? null : 'plotBox';

		this.resetZoomButton = chart.renderer.button(lang.resetZoom, null, null, function () { chart.zoomOut(); }, theme, states && states.hover)
			.attr({
				align: btnOptions.position.align,
				title: lang.resetZoomTitle
			})
			.add()
			.align(btnOptions.position, false, alignTo);

	},

	/**
	 * Zoom out to 1:1
	 */
	zoomOut: function () {
		var chart = this;
		fireEvent(chart, 'selection', { resetSelection: true }, function () {
			chart.zoom();
		});
	},

	/**
	 * Zoom into a given portion of the chart given by axis coordinates
	 * @param {Object} event
	 */
	zoom: function (event) {
		var chart = this,
			hasZoomed,
			pointer = chart.pointer,
			displayButton = false,
			resetZoomButton;

		// If zoom is called with no arguments, reset the axes
		if (!event || event.resetSelection) {
			each(chart.axes, function (axis) {
				hasZoomed = axis.zoom();
			});
		} else { // else, zoom in on all axes
			each(event.xAxis.concat(event.yAxis), function (axisData) {
				var axis = axisData.axis,
					isXAxis = axis.isXAxis;

				// don't zoom more than minRange
				if (pointer[isXAxis ? 'zoomX' : 'zoomY'] || pointer[isXAxis ? 'pinchX' : 'pinchY']) {
					hasZoomed = axis.zoom(axisData.min, axisData.max);
					if (axis.displayBtn) {
						displayButton = true;
					}
				}
			});
		}

		// Show or hide the Reset zoom button
		resetZoomButton = chart.resetZoomButton;
		if (displayButton && !resetZoomButton) {
			chart.showResetZoom();
		} else if (!displayButton && isObject(resetZoomButton)) {
			chart.resetZoomButton = resetZoomButton.destroy();
		}


		// Redraw
		if (hasZoomed) {
			chart.redraw(
				pick(chart.options.chart.animation, event && event.animation, chart.pointCount < 100) // animation
			);
		}
	},

	/**
	 * Pan the chart by dragging the mouse across the pane. This function is called
	 * on mouse move, and the distance to pan is computed from chartX compared to
	 * the first chartX position in the dragging operation.
	 */
	pan: function (e, panning) {

		var chart = this,
			hoverPoints = chart.hoverPoints,
			doRedraw;

		// remove active points for shared tooltip
		if (hoverPoints) {
			each(hoverPoints, function (point) {
				point.setState();
			});
		}

		each(panning === 'xy' ? [1, 0] : [1], function (isX) { // xy is used in maps
			var mousePos = e[isX ? 'chartX' : 'chartY'],
				axis = chart[isX ? 'xAxis' : 'yAxis'][0],
				startPos = chart[isX ? 'mouseDownX' : 'mouseDownY'],
				halfPointRange = (axis.pointRange || 0) / 2,
				extremes = axis.getExtremes(),
				newMin = axis.toValue(startPos - mousePos, true) + halfPointRange,
				newMax = axis.toValue(startPos + chart[isX ? 'plotWidth' : 'plotHeight'] - mousePos, true) - halfPointRange;

			if (axis.series.length && newMin > mathMin(extremes.dataMin, extremes.min) && newMax < mathMax(extremes.dataMax, extremes.max)) {
				axis.setExtremes(newMin, newMax, false, false, { trigger: 'pan' });
				doRedraw = true;
			}

			chart[isX ? 'mouseDownX' : 'mouseDownY'] = mousePos; // set new reference for next run
		});

		if (doRedraw) {
			chart.redraw(false);
		}
		css(chart.container, { cursor: 'move' });
	}
});

/*
 * Extend the Point object with interaction
 */
extend(Point.prototype, {
	/**
	 * Toggle the selection status of a point
	 * @param {Boolean} selected Whether to select or unselect the point.
	 * @param {Boolean} accumulate Whether to add to the previous selection. By default,
	 *		 this happens if the control key (Cmd on Mac) was pressed during clicking.
	 */
	select: function (selected, accumulate) {
		var point = this,
			series = point.series,
			chart = series.chart;

		selected = pick(selected, !point.selected);

		// fire the event with the defalut handler
		point.firePointEvent(selected ? 'select' : 'unselect', { accumulate: accumulate }, function () {
			point.selected = point.options.selected = selected;
			series.options.data[inArray(point, series.data)] = point.options;

			point.setState(selected && SELECT_STATE);

			// unselect all other points unless Ctrl or Cmd + click
			if (!accumulate) {
				each(chart.getSelectedPoints(), function (loopPoint) {
					if (loopPoint.selected && loopPoint !== point) {
						loopPoint.selected = loopPoint.options.selected = false;
						series.options.data[inArray(loopPoint, series.data)] = loopPoint.options;
						loopPoint.setState(NORMAL_STATE);
							loopPoint.firePointEvent('unselect');
					}
				});
			}
		});
	},

	/**
	 * Runs on mouse over the point
	 */
	onMouseOver: function (e) {
		var point = this,
			series = point.series,
			chart = series.chart,
			tooltip = chart.tooltip,
			hoverPoint = chart.hoverPoint;

		// set normal state to previous series
		if (hoverPoint && hoverPoint !== point) {
			hoverPoint.onMouseOut();
		}

		// trigger the event
		point.firePointEvent('mouseOver');

		// update the tooltip
		if (tooltip && (!tooltip.shared || series.noSharedTooltip)) {
			tooltip.refresh(point, e);
		}

		// hover this
		point.setState(HOVER_STATE);
		chart.hoverPoint = point;
	},

	/**
	 * Runs on mouse out from the point
	 */
	onMouseOut: function () {
		var chart = this.series.chart,
			hoverPoints = chart.hoverPoints;

		this.firePointEvent('mouseOut');

		if (!hoverPoints || inArray(this, hoverPoints) === -1) { // #887, #2240
			this.setState();
			chart.hoverPoint = null;
		}
	},

	/**
	 * Import events from the series' and point's options. Only do it on
	 * demand, to save processing time on hovering.
	 */
	importEvents: function () {
		if (!this.hasImportedEvents) {
			var point = this,
				options = merge(point.series.options.point, point.options),
				events = options.events,
				eventType;

			point.events = events;

			for (eventType in events) {
				addEvent(point, eventType, events[eventType]);
			}
			this.hasImportedEvents = true;

		}
	},

	/**
	 * Set the point's state
	 * @param {String} state
	 */
	setState: function (state, move) {
		var point = this,
			plotX = point.plotX,
			plotY = point.plotY,
			series = point.series,
			stateOptions = series.options.states,
			markerOptions = defaultPlotOptions[series.type].marker && series.options.marker,
			normalDisabled = markerOptions && !markerOptions.enabled,
			markerStateOptions = markerOptions && markerOptions.states[state],
			stateDisabled = markerStateOptions && markerStateOptions.enabled === false,
			stateMarkerGraphic = series.stateMarkerGraphic,
			pointMarker = point.marker || {},
			chart = series.chart,
			radius,
			halo = series.halo,
			haloOptions,
			newSymbol,
			pointAttr;

		state = state || NORMAL_STATE; // empty string
		pointAttr = point.pointAttr[state] || series.pointAttr[state];

		if (pointAttr.fill) {
			pointAttr.style = `fill: ${pointAttr.fill};`;
		}

		if (
				// already has this state
				(state === point.state && !move) ||
				// selected points don't respond to hover
				(point.selected && state !== SELECT_STATE) ||
				// series' state options is disabled
				(stateOptions[state] && stateOptions[state].enabled === false) ||
				// general point marker's state options is disabled
				(state && (stateDisabled || (normalDisabled && markerStateOptions.enabled === false))) ||
				// individual point marker's state options is disabled
				(state && pointMarker.states && pointMarker.states[state] && pointMarker.states[state].enabled === false) // #1610

			) {
			return;
		}

		// apply hover styles to the existing point
		if (point.graphic) {
			radius = markerOptions && point.graphic.symbolName && pointAttr.r;
			point.graphic.attr(merge(
				pointAttr,
				radius ? { // new symbol attributes (#507, #612)
					x: plotX - radius,
					y: plotY - radius,
					width: 2 * radius,
					height: 2 * radius
				} : {}
			));

			// Zooming in from a range with no markers to a range with markers
			if (stateMarkerGraphic) {
				stateMarkerGraphic.hide();
			}
		} else {
			// if a graphic is not applied to each point in the normal state, create a shared
			// graphic for the hover state
			if (state && markerStateOptions) {
				radius = markerStateOptions.radius;
				newSymbol = pointMarker.symbol || series.symbol;

				// If the point has another symbol than the previous one, throw away the
				// state marker graphic and force a new one (#1459)
				if (stateMarkerGraphic && stateMarkerGraphic.currentSymbol !== newSymbol) {
					stateMarkerGraphic = stateMarkerGraphic.destroy();
				}

				// Add a new state marker graphic
				if (!stateMarkerGraphic) {
					if (newSymbol) {
						series.stateMarkerGraphic = stateMarkerGraphic = chart.renderer.symbol(
							newSymbol,
							plotX - radius,
							plotY - radius,
							2 * radius,
							2 * radius
						)
						.attr(pointAttr)
						.add(series.markerGroup);
						stateMarkerGraphic.currentSymbol = newSymbol;
					}

				// Move the existing graphic
				} else {
					stateMarkerGraphic[move ? 'animate' : 'attr']({ // #1054
						x: plotX - radius,
						y: plotY - radius
					});
				}
			}

			if (stateMarkerGraphic) {
				stateMarkerGraphic[state && chart.isInsidePlot(plotX, plotY, chart.inverted) ? 'show' : 'hide'](); // #2450
			}
		}

		// Show me your halo
		haloOptions = stateOptions[state] && stateOptions[state].halo;
		if (haloOptions && haloOptions.size) {
			if (!halo) {
				series.halo = halo = chart.renderer.path()
					.add(series.seriesGroup);
			}
			const fillColor = Color(point.color || series.color).setOpacity(haloOptions.opacity).get()
			halo.attr(extend({
				fill: fillColor,
				style: `fill: ${fillColor};`
			}, haloOptions.attributes))[move ? 'animate' : 'attr']({
				d: point.haloPath(haloOptions.size)
			});
		} else if (halo) {
			halo.attr({ d: [] });
		}

		point.state = state;
	},

	haloPath: function (size) {
		var series = this.series,
			chart = series.chart,
			plotBox = series.getPlotBox(),
			inverted = chart.inverted;

		return chart.renderer.symbols.circle(
			plotBox.translateX + (inverted ? series.yAxis.len - this.plotY : this.plotX) - size,
			plotBox.translateY + (inverted ? series.xAxis.len - this.plotX : this.plotY) - size,
			size * 2,
			size * 2
		);
	}
});

/*
 * Extend the Series object with interaction
 */

extend(Series.prototype, {
	/**
	 * Series mouse over handler
	 */
	onMouseOver: function () {
		var series = this,
			chart = series.chart,
			hoverSeries = chart.hoverSeries;

		// set normal state to previous series
		if (hoverSeries && hoverSeries !== series) {
			hoverSeries.onMouseOut();
		}

		// trigger the event, but to save processing time,
		// only if defined
		if (series.options.events.mouseOver) {
			fireEvent(series, 'mouseOver');
		}

		// hover this
		series.setState(HOVER_STATE);
		chart.hoverSeries = series;
	},

	/**
	 * Series mouse out handler
	 */
	onMouseOut: function () {
		// trigger the event only if listeners exist
		var series = this,
			options = series.options,
			chart = series.chart,
			tooltip = chart.tooltip,
			hoverPoint = chart.hoverPoint;

		// trigger mouse out on the point, which must be in this series
		if (hoverPoint) {
			hoverPoint.onMouseOut();
		}

		// fire the mouse out event
		if (series && options.events.mouseOut) {
			fireEvent(series, 'mouseOut');
		}


		// hide the tooltip
		if (tooltip && !options.stickyTracking && (!tooltip.shared || series.noSharedTooltip)) {
			tooltip.hide();
		}

		// set normal state
		series.setState();
		chart.hoverSeries = null;
	},

	/**
	 * Set the state of the graph
	 */
	setState: function (state) {
		var series = this,
			options = series.options,
			graph = series.graph,
			graphNeg = series.graphNeg,
			stateOptions = options.states,
			lineWidth = options.lineWidth,
			attribs;

		state = state || NORMAL_STATE;

		if (series.state !== state) {
			series.state = state;

			if (stateOptions[state] && stateOptions[state].enabled === false) {
				return;
			}

			if (state) {
				lineWidth = stateOptions[state].lineWidth || lineWidth + (stateOptions[state].lineWidthPlus || 0);
			}

			if (graph && !graph.dashstyle) { // hover is turned off for dashed lines in VML
				attribs = {
					'stroke-width': lineWidth
				};
				// use attr because animate will cause any other animation on the graph to stop
				graph.attr(attribs);
				if (graphNeg) {
					graphNeg.attr(attribs);
				}
			}
		}
	},

	/**
	 * Set the visibility of the graph
	 *
	 * @param vis {Boolean} True to show the series, false to hide. If UNDEFINED,
	 *				the visibility is toggled.
	 */
	setVisible: function (vis, redraw) {
		var series = this,
			chart = series.chart,
			legendItem = series.legendItem,
			showOrHide,
			ignoreHiddenSeries = chart.options.chart.ignoreHiddenSeries,
			oldVisibility = series.visible;

		// if called without an argument, toggle visibility
		series.visible = vis = series.userOptions.visible = vis === UNDEFINED ? !oldVisibility : vis;
		showOrHide = vis ? 'show' : 'hide';

		// show or hide elements
		each(['group', 'dataLabelsGroup', 'markerGroup', 'tracker'], function (key) {
			if (series[key]) {
				series[key][showOrHide]();
			}
		});


		// hide tooltip (#1361)
		if (chart.hoverSeries === series) {
			series.onMouseOut();
		}


		if (legendItem) {
			chart.legend.colorizeItem(series, vis);
		}


		// rescale or adapt to resized chart
		series.isDirty = true;
		// in a stack, all other series are affected
		if (series.options.stacking) {
			each(chart.series, function (otherSeries) {
				if (otherSeries.options.stacking && otherSeries.visible) {
					otherSeries.isDirty = true;
				}
			});
		}

		// show or hide linked series
		each(series.linkedSeries, function (otherSeries) {
			otherSeries.setVisible(vis, false);
		});

		if (ignoreHiddenSeries) {
			chart.isDirtyBox = true;
		}
		if (redraw !== false) {
			chart.redraw();
		}

		fireEvent(series, showOrHide);
	},

	/**
	 * Memorize tooltip texts and positions
	 */
	setTooltipPoints: function (renew) {
		var series = this,
			points = [],
			pointsLength,
			low,
			high,
			xAxis = series.xAxis,
			xExtremes = xAxis && xAxis.getExtremes(),
			axisLength = xAxis ? (xAxis.tooltipLen || xAxis.len) : series.chart.plotSizeX, // tooltipLen and tooltipPosName used in polar
			point,
			pointX,
			nextPoint,
			i,
			tooltipPoints = []; // a lookup array for each pixel in the x dimension

		// don't waste resources if tracker is disabled
		if (series.options.enableMouseTracking === false || series.singularTooltips) {
			return;
		}

		// renew
		if (renew) {
			series.tooltipPoints = null;
		}

		// concat segments to overcome null values
		each(series.segments || series.points, function (segment) {
			points = points.concat(segment);
		});

		// Reverse the points in case the X axis is reversed
		if (xAxis && xAxis.reversed) {
			points = points.reverse();
		}

		// Polar needs additional shaping
		if (series.orderTooltipPoints) {
			series.orderTooltipPoints(points);
		}

		// Assign each pixel position to the nearest point
		pointsLength = points.length;
		for (i = 0; i < pointsLength; i++) {
			point = points[i];
			pointX = point.x;
			if (pointX >= xExtremes.min && pointX <= xExtremes.max) { // #1149
				nextPoint = points[i + 1];

				// Set this range's low to the last range's high plus one
				low = high === UNDEFINED ? 0 : high + 1;
				// Now find the new high
				high = points[i + 1] ?
					mathMin(mathMax(0, mathFloor( // #2070
						(point.clientX + (nextPoint ? (nextPoint.wrappedClientX || nextPoint.clientX) : axisLength)) / 2
					)), axisLength) :
					axisLength;

				while (low >= 0 && low <= high) {
					tooltipPoints[low++] = point;
				}
			}
		}
		series.tooltipPoints = tooltipPoints;
	},

	/**
	 * Show the graph
	 */
	show: function () {
		this.setVisible(true);
	},

	/**
	 * Hide the graph
	 */
	hide: function () {
		this.setVisible(false);
	},


	/**
	 * Set the selected state of the graph
	 *
	 * @param selected {Boolean} True to select the series, false to unselect. If
	 *				UNDEFINED, the selection state is toggled.
	 */
	select: function (selected) {
		var series = this;
		// if called without an argument, toggle
		series.selected = selected = (selected === UNDEFINED) ? !series.selected : selected;

		if (series.checkbox) {
			series.checkbox.checked = selected;
		}

		fireEvent(series, selected ? 'select' : 'unselect');
	},

	drawTracker: TrackerMixin.drawTrackerGraph
});
// global variables
extend(Highcharts, {

	// Constructors
	Axis: Axis,
	Chart: Chart,
	Color: Color,
	Point: Point,
	Tick: Tick,
	Renderer: Renderer,
	Series: Series,
	SVGElement: SVGElement,
	SVGRenderer: SVGRenderer,

	// Various
	arrayMin: arrayMin,
	arrayMax: arrayMax,
	charts: charts,
	dateFormat: dateFormat,
	format: format,
	pathAnim: pathAnim,
	getOptions: getOptions,
	hasBidiBug: hasBidiBug,
	isTouchDevice: isTouchDevice,
	numberFormat: numberFormat,
	seriesTypes: seriesTypes,
	setOptions: setOptions,
	addEvent: addEvent,
	removeEvent: removeEvent,
	createElement: createElement,
	discardElement: discardElement,
	css: css,
	each: each,
	extend: extend,
	map: map,
	merge: merge,
	pick: pick,
	splat: splat,
	extendClass: extendClass,
	pInt: pInt,
	wrap: wrap,
	svg: hasSVG,
	canvas: useCanVG,
	vml: !hasSVG && !useCanVG,
	product: PRODUCT,
	version: VERSION
});

}());


/***/ }),

/***/ 58223:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAAAsCAYAAAD1nyNHAAAAAXNSR0IArs4c6QAAAR9JREFUeF7tnbENgFAQhbz9t9NdTGzUFX73Q8DagncQW+fo6QKAC8xzXh+AM0T5BQpVHgBl/rz33ReVYkvMWahi+aTphUqyJWYtVLF80vRCJdkSsxaqWD5peqGSbIlZC1UsnzS9UEm2xKyFKpZPml6oJFti1kIVyydNL1SSLTFroYrlk6YXKsmWmLVQxfJJ0wuVZEvMWqhi+aTphUqyJWYtVLF80vRCJdkSsxaqWD5peqGSbIlZC1UsnzS9UEm2xKyFKpZPml6oJFti1kIVyydNL1SSLTFroYrlk6YXKsmWmLVQxfJJ0wuVZEvMWqhi+aTphUqyJWYtVLF80vRCJdkSsxaqWD5per/vIdkSsxbqfvn9PmnBwSy80ytdYPsFfqOApDYolPr+AAAAAElFTkSuQmCC";

/***/ }),

/***/ 58229:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var toPositiveInteger = __webpack_require__(99590);

var $RangeError = RangeError;

module.exports = function (it, BYTES) {
  var offset = toPositiveInteger(it);
  if (offset % BYTES) throw new $RangeError('Wrong offset');
  return offset;
};


/***/ }),

/***/ 58255:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-label",
    class: _vm.className
  }, [_vm._v("\n  " + _vm._s(_vm.num) + "\n")]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 58411:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.

var utils   = __webpack_require__(9805);
var trees   = __webpack_require__(23665);
var adler32 = __webpack_require__(53269);
var crc32   = __webpack_require__(14823);
var msg     = __webpack_require__(54674);

/* Public constants ==========================================================*/
/* ===========================================================================*/


/* Allowed flush values; see deflate() and inflate() below for details */
var Z_NO_FLUSH      = 0;
var Z_PARTIAL_FLUSH = 1;
//var Z_SYNC_FLUSH    = 2;
var Z_FULL_FLUSH    = 3;
var Z_FINISH        = 4;
var Z_BLOCK         = 5;
//var Z_TREES         = 6;


/* Return codes for the compression/decompression functions. Negative values
 * are errors, positive values are used for special but normal events.
 */
var Z_OK            = 0;
var Z_STREAM_END    = 1;
//var Z_NEED_DICT     = 2;
//var Z_ERRNO         = -1;
var Z_STREAM_ERROR  = -2;
var Z_DATA_ERROR    = -3;
//var Z_MEM_ERROR     = -4;
var Z_BUF_ERROR     = -5;
//var Z_VERSION_ERROR = -6;


/* compression levels */
//var Z_NO_COMPRESSION      = 0;
//var Z_BEST_SPEED          = 1;
//var Z_BEST_COMPRESSION    = 9;
var Z_DEFAULT_COMPRESSION = -1;


var Z_FILTERED            = 1;
var Z_HUFFMAN_ONLY        = 2;
var Z_RLE                 = 3;
var Z_FIXED               = 4;
var Z_DEFAULT_STRATEGY    = 0;

/* Possible values of the data_type field (though see inflate()) */
//var Z_BINARY              = 0;
//var Z_TEXT                = 1;
//var Z_ASCII               = 1; // = Z_TEXT
var Z_UNKNOWN             = 2;


/* The deflate compression method */
var Z_DEFLATED  = 8;

/*============================================================================*/


var MAX_MEM_LEVEL = 9;
/* Maximum value for memLevel in deflateInit2 */
var MAX_WBITS = 15;
/* 32K LZ77 window */
var DEF_MEM_LEVEL = 8;


var LENGTH_CODES  = 29;
/* number of length codes, not counting the special END_BLOCK code */
var LITERALS      = 256;
/* number of literal bytes 0..255 */
var L_CODES       = LITERALS + 1 + LENGTH_CODES;
/* number of Literal or Length codes, including the END_BLOCK code */
var D_CODES       = 30;
/* number of distance codes */
var BL_CODES      = 19;
/* number of codes used to transfer the bit lengths */
var HEAP_SIZE     = 2 * L_CODES + 1;
/* maximum heap size */
var MAX_BITS  = 15;
/* All codes must not exceed MAX_BITS bits */

var MIN_MATCH = 3;
var MAX_MATCH = 258;
var MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1);

var PRESET_DICT = 0x20;

var INIT_STATE = 42;
var EXTRA_STATE = 69;
var NAME_STATE = 73;
var COMMENT_STATE = 91;
var HCRC_STATE = 103;
var BUSY_STATE = 113;
var FINISH_STATE = 666;

var BS_NEED_MORE      = 1; /* block not completed, need more input or more output */
var BS_BLOCK_DONE     = 2; /* block flush performed */
var BS_FINISH_STARTED = 3; /* finish started, need only more output at next deflate */
var BS_FINISH_DONE    = 4; /* finish done, accept no more input or output */

var OS_CODE = 0x03; // Unix :) . Don't detect, use this default.

function err(strm, errorCode) {
  strm.msg = msg[errorCode];
  return errorCode;
}

function rank(f) {
  return ((f) << 1) - ((f) > 4 ? 9 : 0);
}

function zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }


/* =========================================================================
 * Flush as much pending output as possible. All deflate() output goes
 * through this function so some applications may wish to modify it
 * to avoid allocating a large strm->output buffer and copying into it.
 * (See also read_buf()).
 */
function flush_pending(strm) {
  var s = strm.state;

  //_tr_flush_bits(s);
  var len = s.pending;
  if (len > strm.avail_out) {
    len = strm.avail_out;
  }
  if (len === 0) { return; }

  utils.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out);
  strm.next_out += len;
  s.pending_out += len;
  strm.total_out += len;
  strm.avail_out -= len;
  s.pending -= len;
  if (s.pending === 0) {
    s.pending_out = 0;
  }
}


function flush_block_only(s, last) {
  trees._tr_flush_block(s, (s.block_start >= 0 ? s.block_start : -1), s.strstart - s.block_start, last);
  s.block_start = s.strstart;
  flush_pending(s.strm);
}


function put_byte(s, b) {
  s.pending_buf[s.pending++] = b;
}


/* =========================================================================
 * Put a short in the pending buffer. The 16-bit value is put in MSB order.
 * IN assertion: the stream state is correct and there is enough room in
 * pending_buf.
 */
function putShortMSB(s, b) {
//  put_byte(s, (Byte)(b >> 8));
//  put_byte(s, (Byte)(b & 0xff));
  s.pending_buf[s.pending++] = (b >>> 8) & 0xff;
  s.pending_buf[s.pending++] = b & 0xff;
}


/* ===========================================================================
 * Read a new buffer from the current input stream, update the adler32
 * and total number of bytes read.  All deflate() input goes through
 * this function so some applications may wish to modify it to avoid
 * allocating a large strm->input buffer and copying from it.
 * (See also flush_pending()).
 */
function read_buf(strm, buf, start, size) {
  var len = strm.avail_in;

  if (len > size) { len = size; }
  if (len === 0) { return 0; }

  strm.avail_in -= len;

  // zmemcpy(buf, strm->next_in, len);
  utils.arraySet(buf, strm.input, strm.next_in, len, start);
  if (strm.state.wrap === 1) {
    strm.adler = adler32(strm.adler, buf, len, start);
  }

  else if (strm.state.wrap === 2) {
    strm.adler = crc32(strm.adler, buf, len, start);
  }

  strm.next_in += len;
  strm.total_in += len;

  return len;
}


/* ===========================================================================
 * Set match_start to the longest match starting at the given string and
 * return its length. Matches shorter or equal to prev_length are discarded,
 * in which case the result is equal to prev_length and match_start is
 * garbage.
 * IN assertions: cur_match is the head of the hash chain for the current
 *   string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1
 * OUT assertion: the match length is not greater than s->lookahead.
 */
function longest_match(s, cur_match) {
  var chain_length = s.max_chain_length;      /* max hash chain length */
  var scan = s.strstart; /* current string */
  var match;                       /* matched string */
  var len;                           /* length of current match */
  var best_len = s.prev_length;              /* best match length so far */
  var nice_match = s.nice_match;             /* stop if match long enough */
  var limit = (s.strstart > (s.w_size - MIN_LOOKAHEAD)) ?
      s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0/*NIL*/;

  var _win = s.window; // shortcut

  var wmask = s.w_mask;
  var prev  = s.prev;

  /* Stop when cur_match becomes <= limit. To simplify the code,
   * we prevent matches with the string of window index 0.
   */

  var strend = s.strstart + MAX_MATCH;
  var scan_end1  = _win[scan + best_len - 1];
  var scan_end   = _win[scan + best_len];

  /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
   * It is easy to get rid of this optimization if necessary.
   */
  // Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");

  /* Do not waste too much time if we already have a good match: */
  if (s.prev_length >= s.good_match) {
    chain_length >>= 2;
  }
  /* Do not look for matches beyond the end of the input. This is necessary
   * to make deflate deterministic.
   */
  if (nice_match > s.lookahead) { nice_match = s.lookahead; }

  // Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");

  do {
    // Assert(cur_match < s->strstart, "no future");
    match = cur_match;

    /* Skip to next match if the match length cannot increase
     * or if the match length is less than 2.  Note that the checks below
     * for insufficient lookahead only occur occasionally for performance
     * reasons.  Therefore uninitialized memory will be accessed, and
     * conditional jumps will be made that depend on those values.
     * However the length of the match is limited to the lookahead, so
     * the output of deflate is not affected by the uninitialized values.
     */

    if (_win[match + best_len]     !== scan_end  ||
        _win[match + best_len - 1] !== scan_end1 ||
        _win[match]                !== _win[scan] ||
        _win[++match]              !== _win[scan + 1]) {
      continue;
    }

    /* The check at best_len-1 can be removed because it will be made
     * again later. (This heuristic is not always a win.)
     * It is not necessary to compare scan[2] and match[2] since they
     * are always equal when the other bytes match, given that
     * the hash keys are equal and that HASH_BITS >= 8.
     */
    scan += 2;
    match++;
    // Assert(*scan == *match, "match[2]?");

    /* We check for insufficient lookahead only every 8th comparison;
     * the 256th check will be made at strstart+258.
     */
    do {
      /*jshint noempty:false*/
    } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
             _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
             _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
             _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
             scan < strend);

    // Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");

    len = MAX_MATCH - (strend - scan);
    scan = strend - MAX_MATCH;

    if (len > best_len) {
      s.match_start = cur_match;
      best_len = len;
      if (len >= nice_match) {
        break;
      }
      scan_end1  = _win[scan + best_len - 1];
      scan_end   = _win[scan + best_len];
    }
  } while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0);

  if (best_len <= s.lookahead) {
    return best_len;
  }
  return s.lookahead;
}


/* ===========================================================================
 * Fill the window when the lookahead becomes insufficient.
 * Updates strstart and lookahead.
 *
 * IN assertion: lookahead < MIN_LOOKAHEAD
 * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD
 *    At least one byte has been read, or avail_in == 0; reads are
 *    performed for at least two bytes (required for the zip translate_eol
 *    option -- not supported here).
 */
function fill_window(s) {
  var _w_size = s.w_size;
  var p, n, m, more, str;

  //Assert(s->lookahead < MIN_LOOKAHEAD, "already enough lookahead");

  do {
    more = s.window_size - s.lookahead - s.strstart;

    // JS ints have 32 bit, block below not needed
    /* Deal with !@#$% 64K limit: */
    //if (sizeof(int) <= 2) {
    //    if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
    //        more = wsize;
    //
    //  } else if (more == (unsigned)(-1)) {
    //        /* Very unlikely, but possible on 16 bit machine if
    //         * strstart == 0 && lookahead == 1 (input done a byte at time)
    //         */
    //        more--;
    //    }
    //}


    /* If the window is almost full and there is insufficient lookahead,
     * move the upper half to the lower one to make room in the upper half.
     */
    if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) {

      utils.arraySet(s.window, s.window, _w_size, _w_size, 0);
      s.match_start -= _w_size;
      s.strstart -= _w_size;
      /* we now have strstart >= MAX_DIST */
      s.block_start -= _w_size;

      /* Slide the hash table (could be avoided with 32 bit values
       at the expense of memory usage). We slide even when level == 0
       to keep the hash table consistent if we switch back to level > 0
       later. (Using level 0 permanently is not an optimal usage of
       zlib, so we don't care about this pathological case.)
       */

      n = s.hash_size;
      p = n;
      do {
        m = s.head[--p];
        s.head[p] = (m >= _w_size ? m - _w_size : 0);
      } while (--n);

      n = _w_size;
      p = n;
      do {
        m = s.prev[--p];
        s.prev[p] = (m >= _w_size ? m - _w_size : 0);
        /* If n is not on any hash chain, prev[n] is garbage but
         * its value will never be used.
         */
      } while (--n);

      more += _w_size;
    }
    if (s.strm.avail_in === 0) {
      break;
    }

    /* If there was no sliding:
     *    strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&
     *    more == window_size - lookahead - strstart
     * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)
     * => more >= window_size - 2*WSIZE + 2
     * In the BIG_MEM or MMAP case (not yet supported),
     *   window_size == input_size + MIN_LOOKAHEAD  &&
     *   strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.
     * Otherwise, window_size == 2*WSIZE so more >= 2.
     * If there was sliding, more >= WSIZE. So in all cases, more >= 2.
     */
    //Assert(more >= 2, "more < 2");
    n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more);
    s.lookahead += n;

    /* Initialize the hash value now that we have some input: */
    if (s.lookahead + s.insert >= MIN_MATCH) {
      str = s.strstart - s.insert;
      s.ins_h = s.window[str];

      /* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */
      s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + 1]) & s.hash_mask;
//#if MIN_MATCH != 3
//        Call update_hash() MIN_MATCH-3 more times
//#endif
      while (s.insert) {
        /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
        s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask;

        s.prev[str & s.w_mask] = s.head[s.ins_h];
        s.head[s.ins_h] = str;
        str++;
        s.insert--;
        if (s.lookahead + s.insert < MIN_MATCH) {
          break;
        }
      }
    }
    /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,
     * but this is not important since only literal bytes will be emitted.
     */

  } while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0);

  /* If the WIN_INIT bytes after the end of the current data have never been
   * written, then zero those bytes in order to avoid memory check reports of
   * the use of uninitialized (or uninitialised as Julian writes) bytes by
   * the longest match routines.  Update the high water mark for the next
   * time through here.  WIN_INIT is set to MAX_MATCH since the longest match
   * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.
   */
//  if (s.high_water < s.window_size) {
//    var curr = s.strstart + s.lookahead;
//    var init = 0;
//
//    if (s.high_water < curr) {
//      /* Previous high water mark below current data -- zero WIN_INIT
//       * bytes or up to end of window, whichever is less.
//       */
//      init = s.window_size - curr;
//      if (init > WIN_INIT)
//        init = WIN_INIT;
//      zmemzero(s->window + curr, (unsigned)init);
//      s->high_water = curr + init;
//    }
//    else if (s->high_water < (ulg)curr + WIN_INIT) {
//      /* High water mark at or above current data, but below current data
//       * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up
//       * to end of window, whichever is less.
//       */
//      init = (ulg)curr + WIN_INIT - s->high_water;
//      if (init > s->window_size - s->high_water)
//        init = s->window_size - s->high_water;
//      zmemzero(s->window + s->high_water, (unsigned)init);
//      s->high_water += init;
//    }
//  }
//
//  Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,
//    "not enough room for search");
}

/* ===========================================================================
 * Copy without compression as much as possible from the input stream, return
 * the current block state.
 * This function does not insert new strings in the dictionary since
 * uncompressible data is probably not useful. This function is used
 * only for the level=0 compression option.
 * NOTE: this function should be optimized to avoid extra copying from
 * window to pending_buf.
 */
function deflate_stored(s, flush) {
  /* Stored blocks are limited to 0xffff bytes, pending_buf is limited
   * to pending_buf_size, and each stored block has a 5 byte header:
   */
  var max_block_size = 0xffff;

  if (max_block_size > s.pending_buf_size - 5) {
    max_block_size = s.pending_buf_size - 5;
  }

  /* Copy as much as possible from input to output: */
  for (;;) {
    /* Fill the window as much as possible: */
    if (s.lookahead <= 1) {

      //Assert(s->strstart < s->w_size+MAX_DIST(s) ||
      //  s->block_start >= (long)s->w_size, "slide too late");
//      if (!(s.strstart < s.w_size + (s.w_size - MIN_LOOKAHEAD) ||
//        s.block_start >= s.w_size)) {
//        throw  new Error("slide too late");
//      }

      fill_window(s);
      if (s.lookahead === 0 && flush === Z_NO_FLUSH) {
        return BS_NEED_MORE;
      }

      if (s.lookahead === 0) {
        break;
      }
      /* flush the current block */
    }
    //Assert(s->block_start >= 0L, "block gone");
//    if (s.block_start < 0) throw new Error("block gone");

    s.strstart += s.lookahead;
    s.lookahead = 0;

    /* Emit a stored block if pending_buf will be full: */
    var max_start = s.block_start + max_block_size;

    if (s.strstart === 0 || s.strstart >= max_start) {
      /* strstart == 0 is possible when wraparound on 16-bit machine */
      s.lookahead = s.strstart - max_start;
      s.strstart = max_start;
      /*** FLUSH_BLOCK(s, 0); ***/
      flush_block_only(s, false);
      if (s.strm.avail_out === 0) {
        return BS_NEED_MORE;
      }
      /***/


    }
    /* Flush if we may have to slide, otherwise block_start may become
     * negative and the data will be gone:
     */
    if (s.strstart - s.block_start >= (s.w_size - MIN_LOOKAHEAD)) {
      /*** FLUSH_BLOCK(s, 0); ***/
      flush_block_only(s, false);
      if (s.strm.avail_out === 0) {
        return BS_NEED_MORE;
      }
      /***/
    }
  }

  s.insert = 0;

  if (flush === Z_FINISH) {
    /*** FLUSH_BLOCK(s, 1); ***/
    flush_block_only(s, true);
    if (s.strm.avail_out === 0) {
      return BS_FINISH_STARTED;
    }
    /***/
    return BS_FINISH_DONE;
  }

  if (s.strstart > s.block_start) {
    /*** FLUSH_BLOCK(s, 0); ***/
    flush_block_only(s, false);
    if (s.strm.avail_out === 0) {
      return BS_NEED_MORE;
    }
    /***/
  }

  return BS_NEED_MORE;
}

/* ===========================================================================
 * Compress as much as possible from the input stream, return the current
 * block state.
 * This function does not perform lazy evaluation of matches and inserts
 * new strings in the dictionary only for unmatched strings or for short
 * matches. It is used only for the fast compression options.
 */
function deflate_fast(s, flush) {
  var hash_head;        /* head of the hash chain */
  var bflush;           /* set if current block must be flushed */

  for (;;) {
    /* Make sure that we always have enough lookahead, except
     * at the end of the input file. We need MAX_MATCH bytes
     * for the next match, plus MIN_MATCH bytes to insert the
     * string following the next match.
     */
    if (s.lookahead < MIN_LOOKAHEAD) {
      fill_window(s);
      if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {
        return BS_NEED_MORE;
      }
      if (s.lookahead === 0) {
        break; /* flush the current block */
      }
    }

    /* Insert the string window[strstart .. strstart+2] in the
     * dictionary, and set hash_head to the head of the hash chain:
     */
    hash_head = 0/*NIL*/;
    if (s.lookahead >= MIN_MATCH) {
      /*** INSERT_STRING(s, s.strstart, hash_head); ***/
      s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;
      hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
      s.head[s.ins_h] = s.strstart;
      /***/
    }

    /* Find the longest match, discarding those <= prev_length.
     * At this point we have always match_length < MIN_MATCH
     */
    if (hash_head !== 0/*NIL*/ && ((s.strstart - hash_head) <= (s.w_size - MIN_LOOKAHEAD))) {
      /* To simplify the code, we prevent matches with the string
       * of window index 0 (in particular we have to avoid a match
       * of the string with itself at the start of the input file).
       */
      s.match_length = longest_match(s, hash_head);
      /* longest_match() sets match_start */
    }
    if (s.match_length >= MIN_MATCH) {
      // check_match(s, s.strstart, s.match_start, s.match_length); // for debug only

      /*** _tr_tally_dist(s, s.strstart - s.match_start,
                     s.match_length - MIN_MATCH, bflush); ***/
      bflush = trees._tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH);

      s.lookahead -= s.match_length;

      /* Insert new strings in the hash table only if the match length
       * is not too large. This saves time but degrades compression.
       */
      if (s.match_length <= s.max_lazy_match/*max_insert_length*/ && s.lookahead >= MIN_MATCH) {
        s.match_length--; /* string at strstart already in table */
        do {
          s.strstart++;
          /*** INSERT_STRING(s, s.strstart, hash_head); ***/
          s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;
          hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
          s.head[s.ins_h] = s.strstart;
          /***/
          /* strstart never exceeds WSIZE-MAX_MATCH, so there are
           * always MIN_MATCH bytes ahead.
           */
        } while (--s.match_length !== 0);
        s.strstart++;
      } else
      {
        s.strstart += s.match_length;
        s.match_length = 0;
        s.ins_h = s.window[s.strstart];
        /* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */
        s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + 1]) & s.hash_mask;

//#if MIN_MATCH != 3
//                Call UPDATE_HASH() MIN_MATCH-3 more times
//#endif
        /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not
         * matter since it will be recomputed at next deflate call.
         */
      }
    } else {
      /* No match, output a literal byte */
      //Tracevv((stderr,"%c", s.window[s.strstart]));
      /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
      bflush = trees._tr_tally(s, 0, s.window[s.strstart]);

      s.lookahead--;
      s.strstart++;
    }
    if (bflush) {
      /*** FLUSH_BLOCK(s, 0); ***/
      flush_block_only(s, false);
      if (s.strm.avail_out === 0) {
        return BS_NEED_MORE;
      }
      /***/
    }
  }
  s.insert = ((s.strstart < (MIN_MATCH - 1)) ? s.strstart : MIN_MATCH - 1);
  if (flush === Z_FINISH) {
    /*** FLUSH_BLOCK(s, 1); ***/
    flush_block_only(s, true);
    if (s.strm.avail_out === 0) {
      return BS_FINISH_STARTED;
    }
    /***/
    return BS_FINISH_DONE;
  }
  if (s.last_lit) {
    /*** FLUSH_BLOCK(s, 0); ***/
    flush_block_only(s, false);
    if (s.strm.avail_out === 0) {
      return BS_NEED_MORE;
    }
    /***/
  }
  return BS_BLOCK_DONE;
}

/* ===========================================================================
 * Same as above, but achieves better compression. We use a lazy
 * evaluation for matches: a match is finally adopted only if there is
 * no better match at the next window position.
 */
function deflate_slow(s, flush) {
  var hash_head;          /* head of hash chain */
  var bflush;              /* set if current block must be flushed */

  var max_insert;

  /* Process the input block. */
  for (;;) {
    /* Make sure that we always have enough lookahead, except
     * at the end of the input file. We need MAX_MATCH bytes
     * for the next match, plus MIN_MATCH bytes to insert the
     * string following the next match.
     */
    if (s.lookahead < MIN_LOOKAHEAD) {
      fill_window(s);
      if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {
        return BS_NEED_MORE;
      }
      if (s.lookahead === 0) { break; } /* flush the current block */
    }

    /* Insert the string window[strstart .. strstart+2] in the
     * dictionary, and set hash_head to the head of the hash chain:
     */
    hash_head = 0/*NIL*/;
    if (s.lookahead >= MIN_MATCH) {
      /*** INSERT_STRING(s, s.strstart, hash_head); ***/
      s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;
      hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
      s.head[s.ins_h] = s.strstart;
      /***/
    }

    /* Find the longest match, discarding those <= prev_length.
     */
    s.prev_length = s.match_length;
    s.prev_match = s.match_start;
    s.match_length = MIN_MATCH - 1;

    if (hash_head !== 0/*NIL*/ && s.prev_length < s.max_lazy_match &&
        s.strstart - hash_head <= (s.w_size - MIN_LOOKAHEAD)/*MAX_DIST(s)*/) {
      /* To simplify the code, we prevent matches with the string
       * of window index 0 (in particular we have to avoid a match
       * of the string with itself at the start of the input file).
       */
      s.match_length = longest_match(s, hash_head);
      /* longest_match() sets match_start */

      if (s.match_length <= 5 &&
         (s.strategy === Z_FILTERED || (s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096/*TOO_FAR*/))) {

        /* If prev_match is also MIN_MATCH, match_start is garbage
         * but we will ignore the current match anyway.
         */
        s.match_length = MIN_MATCH - 1;
      }
    }
    /* If there was a match at the previous step and the current
     * match is not better, output the previous match:
     */
    if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) {
      max_insert = s.strstart + s.lookahead - MIN_MATCH;
      /* Do not insert strings in hash table beyond this. */

      //check_match(s, s.strstart-1, s.prev_match, s.prev_length);

      /***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,
                     s.prev_length - MIN_MATCH, bflush);***/
      bflush = trees._tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH);
      /* Insert in hash table all strings up to the end of the match.
       * strstart-1 and strstart are already inserted. If there is not
       * enough lookahead, the last two strings are not inserted in
       * the hash table.
       */
      s.lookahead -= s.prev_length - 1;
      s.prev_length -= 2;
      do {
        if (++s.strstart <= max_insert) {
          /*** INSERT_STRING(s, s.strstart, hash_head); ***/
          s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;
          hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
          s.head[s.ins_h] = s.strstart;
          /***/
        }
      } while (--s.prev_length !== 0);
      s.match_available = 0;
      s.match_length = MIN_MATCH - 1;
      s.strstart++;

      if (bflush) {
        /*** FLUSH_BLOCK(s, 0); ***/
        flush_block_only(s, false);
        if (s.strm.avail_out === 0) {
          return BS_NEED_MORE;
        }
        /***/
      }

    } else if (s.match_available) {
      /* If there was no match at the previous position, output a
       * single literal. If there was a match but the current match
       * is longer, truncate the previous match to a single literal.
       */
      //Tracevv((stderr,"%c", s->window[s->strstart-1]));
      /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
      bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]);

      if (bflush) {
        /*** FLUSH_BLOCK_ONLY(s, 0) ***/
        flush_block_only(s, false);
        /***/
      }
      s.strstart++;
      s.lookahead--;
      if (s.strm.avail_out === 0) {
        return BS_NEED_MORE;
      }
    } else {
      /* There is no previous match to compare with, wait for
       * the next step to decide.
       */
      s.match_available = 1;
      s.strstart++;
      s.lookahead--;
    }
  }
  //Assert (flush != Z_NO_FLUSH, "no flush?");
  if (s.match_available) {
    //Tracevv((stderr,"%c", s->window[s->strstart-1]));
    /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
    bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]);

    s.match_available = 0;
  }
  s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1;
  if (flush === Z_FINISH) {
    /*** FLUSH_BLOCK(s, 1); ***/
    flush_block_only(s, true);
    if (s.strm.avail_out === 0) {
      return BS_FINISH_STARTED;
    }
    /***/
    return BS_FINISH_DONE;
  }
  if (s.last_lit) {
    /*** FLUSH_BLOCK(s, 0); ***/
    flush_block_only(s, false);
    if (s.strm.avail_out === 0) {
      return BS_NEED_MORE;
    }
    /***/
  }

  return BS_BLOCK_DONE;
}


/* ===========================================================================
 * For Z_RLE, simply look for runs of bytes, generate matches only of distance
 * one.  Do not maintain a hash table.  (It will be regenerated if this run of
 * deflate switches away from Z_RLE.)
 */
function deflate_rle(s, flush) {
  var bflush;            /* set if current block must be flushed */
  var prev;              /* byte at distance one to match */
  var scan, strend;      /* scan goes up to strend for length of run */

  var _win = s.window;

  for (;;) {
    /* Make sure that we always have enough lookahead, except
     * at the end of the input file. We need MAX_MATCH bytes
     * for the longest run, plus one for the unrolled loop.
     */
    if (s.lookahead <= MAX_MATCH) {
      fill_window(s);
      if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH) {
        return BS_NEED_MORE;
      }
      if (s.lookahead === 0) { break; } /* flush the current block */
    }

    /* See how many times the previous byte repeats */
    s.match_length = 0;
    if (s.lookahead >= MIN_MATCH && s.strstart > 0) {
      scan = s.strstart - 1;
      prev = _win[scan];
      if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
        strend = s.strstart + MAX_MATCH;
        do {
          /*jshint noempty:false*/
        } while (prev === _win[++scan] && prev === _win[++scan] &&
                 prev === _win[++scan] && prev === _win[++scan] &&
                 prev === _win[++scan] && prev === _win[++scan] &&
                 prev === _win[++scan] && prev === _win[++scan] &&
                 scan < strend);
        s.match_length = MAX_MATCH - (strend - scan);
        if (s.match_length > s.lookahead) {
          s.match_length = s.lookahead;
        }
      }
      //Assert(scan <= s->window+(uInt)(s->window_size-1), "wild scan");
    }

    /* Emit match if have run of MIN_MATCH or longer, else emit literal */
    if (s.match_length >= MIN_MATCH) {
      //check_match(s, s.strstart, s.strstart - 1, s.match_length);

      /*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/
      bflush = trees._tr_tally(s, 1, s.match_length - MIN_MATCH);

      s.lookahead -= s.match_length;
      s.strstart += s.match_length;
      s.match_length = 0;
    } else {
      /* No match, output a literal byte */
      //Tracevv((stderr,"%c", s->window[s->strstart]));
      /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
      bflush = trees._tr_tally(s, 0, s.window[s.strstart]);

      s.lookahead--;
      s.strstart++;
    }
    if (bflush) {
      /*** FLUSH_BLOCK(s, 0); ***/
      flush_block_only(s, false);
      if (s.strm.avail_out === 0) {
        return BS_NEED_MORE;
      }
      /***/
    }
  }
  s.insert = 0;
  if (flush === Z_FINISH) {
    /*** FLUSH_BLOCK(s, 1); ***/
    flush_block_only(s, true);
    if (s.strm.avail_out === 0) {
      return BS_FINISH_STARTED;
    }
    /***/
    return BS_FINISH_DONE;
  }
  if (s.last_lit) {
    /*** FLUSH_BLOCK(s, 0); ***/
    flush_block_only(s, false);
    if (s.strm.avail_out === 0) {
      return BS_NEED_MORE;
    }
    /***/
  }
  return BS_BLOCK_DONE;
}

/* ===========================================================================
 * For Z_HUFFMAN_ONLY, do not look for matches.  Do not maintain a hash table.
 * (It will be regenerated if this run of deflate switches away from Huffman.)
 */
function deflate_huff(s, flush) {
  var bflush;             /* set if current block must be flushed */

  for (;;) {
    /* Make sure that we have a literal to write. */
    if (s.lookahead === 0) {
      fill_window(s);
      if (s.lookahead === 0) {
        if (flush === Z_NO_FLUSH) {
          return BS_NEED_MORE;
        }
        break;      /* flush the current block */
      }
    }

    /* Output a literal byte */
    s.match_length = 0;
    //Tracevv((stderr,"%c", s->window[s->strstart]));
    /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
    bflush = trees._tr_tally(s, 0, s.window[s.strstart]);
    s.lookahead--;
    s.strstart++;
    if (bflush) {
      /*** FLUSH_BLOCK(s, 0); ***/
      flush_block_only(s, false);
      if (s.strm.avail_out === 0) {
        return BS_NEED_MORE;
      }
      /***/
    }
  }
  s.insert = 0;
  if (flush === Z_FINISH) {
    /*** FLUSH_BLOCK(s, 1); ***/
    flush_block_only(s, true);
    if (s.strm.avail_out === 0) {
      return BS_FINISH_STARTED;
    }
    /***/
    return BS_FINISH_DONE;
  }
  if (s.last_lit) {
    /*** FLUSH_BLOCK(s, 0); ***/
    flush_block_only(s, false);
    if (s.strm.avail_out === 0) {
      return BS_NEED_MORE;
    }
    /***/
  }
  return BS_BLOCK_DONE;
}

/* Values for max_lazy_match, good_match and max_chain_length, depending on
 * the desired pack level (0..9). The values given below have been tuned to
 * exclude worst case performance for pathological files. Better values may be
 * found for specific files.
 */
function Config(good_length, max_lazy, nice_length, max_chain, func) {
  this.good_length = good_length;
  this.max_lazy = max_lazy;
  this.nice_length = nice_length;
  this.max_chain = max_chain;
  this.func = func;
}

var configuration_table;

configuration_table = [
  /*      good lazy nice chain */
  new Config(0, 0, 0, 0, deflate_stored),          /* 0 store only */
  new Config(4, 4, 8, 4, deflate_fast),            /* 1 max speed, no lazy matches */
  new Config(4, 5, 16, 8, deflate_fast),           /* 2 */
  new Config(4, 6, 32, 32, deflate_fast),          /* 3 */

  new Config(4, 4, 16, 16, deflate_slow),          /* 4 lazy matches */
  new Config(8, 16, 32, 32, deflate_slow),         /* 5 */
  new Config(8, 16, 128, 128, deflate_slow),       /* 6 */
  new Config(8, 32, 128, 256, deflate_slow),       /* 7 */
  new Config(32, 128, 258, 1024, deflate_slow),    /* 8 */
  new Config(32, 258, 258, 4096, deflate_slow)     /* 9 max compression */
];


/* ===========================================================================
 * Initialize the "longest match" routines for a new zlib stream
 */
function lm_init(s) {
  s.window_size = 2 * s.w_size;

  /*** CLEAR_HASH(s); ***/
  zero(s.head); // Fill with NIL (= 0);

  /* Set the default configuration parameters:
   */
  s.max_lazy_match = configuration_table[s.level].max_lazy;
  s.good_match = configuration_table[s.level].good_length;
  s.nice_match = configuration_table[s.level].nice_length;
  s.max_chain_length = configuration_table[s.level].max_chain;

  s.strstart = 0;
  s.block_start = 0;
  s.lookahead = 0;
  s.insert = 0;
  s.match_length = s.prev_length = MIN_MATCH - 1;
  s.match_available = 0;
  s.ins_h = 0;
}


function DeflateState() {
  this.strm = null;            /* pointer back to this zlib stream */
  this.status = 0;            /* as the name implies */
  this.pending_buf = null;      /* output still pending */
  this.pending_buf_size = 0;  /* size of pending_buf */
  this.pending_out = 0;       /* next pending byte to output to the stream */
  this.pending = 0;           /* nb of bytes in the pending buffer */
  this.wrap = 0;              /* bit 0 true for zlib, bit 1 true for gzip */
  this.gzhead = null;         /* gzip header information to write */
  this.gzindex = 0;           /* where in extra, name, or comment */
  this.method = Z_DEFLATED; /* can only be DEFLATED */
  this.last_flush = -1;   /* value of flush param for previous deflate call */

  this.w_size = 0;  /* LZ77 window size (32K by default) */
  this.w_bits = 0;  /* log2(w_size)  (8..16) */
  this.w_mask = 0;  /* w_size - 1 */

  this.window = null;
  /* Sliding window. Input bytes are read into the second half of the window,
   * and move to the first half later to keep a dictionary of at least wSize
   * bytes. With this organization, matches are limited to a distance of
   * wSize-MAX_MATCH bytes, but this ensures that IO is always
   * performed with a length multiple of the block size.
   */

  this.window_size = 0;
  /* Actual size of window: 2*wSize, except when the user input buffer
   * is directly used as sliding window.
   */

  this.prev = null;
  /* Link to older string with same hash index. To limit the size of this
   * array to 64K, this link is maintained only for the last 32K strings.
   * An index in this array is thus a window index modulo 32K.
   */

  this.head = null;   /* Heads of the hash chains or NIL. */

  this.ins_h = 0;       /* hash index of string to be inserted */
  this.hash_size = 0;   /* number of elements in hash table */
  this.hash_bits = 0;   /* log2(hash_size) */
  this.hash_mask = 0;   /* hash_size-1 */

  this.hash_shift = 0;
  /* Number of bits by which ins_h must be shifted at each input
   * step. It must be such that after MIN_MATCH steps, the oldest
   * byte no longer takes part in the hash key, that is:
   *   hash_shift * MIN_MATCH >= hash_bits
   */

  this.block_start = 0;
  /* Window position at the beginning of the current output block. Gets
   * negative when the window is moved backwards.
   */

  this.match_length = 0;      /* length of best match */
  this.prev_match = 0;        /* previous match */
  this.match_available = 0;   /* set if previous match exists */
  this.strstart = 0;          /* start of string to insert */
  this.match_start = 0;       /* start of matching string */
  this.lookahead = 0;         /* number of valid bytes ahead in window */

  this.prev_length = 0;
  /* Length of the best match at previous step. Matches not greater than this
   * are discarded. This is used in the lazy match evaluation.
   */

  this.max_chain_length = 0;
  /* To speed up deflation, hash chains are never searched beyond this
   * length.  A higher limit improves compression ratio but degrades the
   * speed.
   */

  this.max_lazy_match = 0;
  /* Attempt to find a better match only when the current match is strictly
   * smaller than this value. This mechanism is used only for compression
   * levels >= 4.
   */
  // That's alias to max_lazy_match, don't use directly
  //this.max_insert_length = 0;
  /* Insert new strings in the hash table only if the match length is not
   * greater than this length. This saves time but degrades compression.
   * max_insert_length is used only for compression levels <= 3.
   */

  this.level = 0;     /* compression level (1..9) */
  this.strategy = 0;  /* favor or force Huffman coding*/

  this.good_match = 0;
  /* Use a faster search when the previous match is longer than this */

  this.nice_match = 0; /* Stop searching when current match exceeds this */

              /* used by trees.c: */

  /* Didn't use ct_data typedef below to suppress compiler warning */

  // struct ct_data_s dyn_ltree[HEAP_SIZE];   /* literal and length tree */
  // struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */
  // struct ct_data_s bl_tree[2*BL_CODES+1];  /* Huffman tree for bit lengths */

  // Use flat array of DOUBLE size, with interleaved fata,
  // because JS does not support effective
  this.dyn_ltree  = new utils.Buf16(HEAP_SIZE * 2);
  this.dyn_dtree  = new utils.Buf16((2 * D_CODES + 1) * 2);
  this.bl_tree    = new utils.Buf16((2 * BL_CODES + 1) * 2);
  zero(this.dyn_ltree);
  zero(this.dyn_dtree);
  zero(this.bl_tree);

  this.l_desc   = null;         /* desc. for literal tree */
  this.d_desc   = null;         /* desc. for distance tree */
  this.bl_desc  = null;         /* desc. for bit length tree */

  //ush bl_count[MAX_BITS+1];
  this.bl_count = new utils.Buf16(MAX_BITS + 1);
  /* number of codes at each bit length for an optimal tree */

  //int heap[2*L_CODES+1];      /* heap used to build the Huffman trees */
  this.heap = new utils.Buf16(2 * L_CODES + 1);  /* heap used to build the Huffman trees */
  zero(this.heap);

  this.heap_len = 0;               /* number of elements in the heap */
  this.heap_max = 0;               /* element of largest frequency */
  /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.
   * The same heap array is used to build all trees.
   */

  this.depth = new utils.Buf16(2 * L_CODES + 1); //uch depth[2*L_CODES+1];
  zero(this.depth);
  /* Depth of each subtree used as tie breaker for trees of equal frequency
   */

  this.l_buf = 0;          /* buffer index for literals or lengths */

  this.lit_bufsize = 0;
  /* Size of match buffer for literals/lengths.  There are 4 reasons for
   * limiting lit_bufsize to 64K:
   *   - frequencies can be kept in 16 bit counters
   *   - if compression is not successful for the first block, all input
   *     data is still in the window so we can still emit a stored block even
   *     when input comes from standard input.  (This can also be done for
   *     all blocks if lit_bufsize is not greater than 32K.)
   *   - if compression is not successful for a file smaller than 64K, we can
   *     even emit a stored file instead of a stored block (saving 5 bytes).
   *     This is applicable only for zip (not gzip or zlib).
   *   - creating new Huffman trees less frequently may not provide fast
   *     adaptation to changes in the input data statistics. (Take for
   *     example a binary file with poorly compressible code followed by
   *     a highly compressible string table.) Smaller buffer sizes give
   *     fast adaptation but have of course the overhead of transmitting
   *     trees more frequently.
   *   - I can't count above 4
   */

  this.last_lit = 0;      /* running index in l_buf */

  this.d_buf = 0;
  /* Buffer index for distances. To simplify the code, d_buf and l_buf have
   * the same number of elements. To use different lengths, an extra flag
   * array would be necessary.
   */

  this.opt_len = 0;       /* bit length of current block with optimal trees */
  this.static_len = 0;    /* bit length of current block with static trees */
  this.matches = 0;       /* number of string matches in current block */
  this.insert = 0;        /* bytes at end of window left to insert */


  this.bi_buf = 0;
  /* Output buffer. bits are inserted starting at the bottom (least
   * significant bits).
   */
  this.bi_valid = 0;
  /* Number of valid bits in bi_buf.  All bits above the last valid bit
   * are always zero.
   */

  // Used for window memory init. We safely ignore it for JS. That makes
  // sense only for pointers and memory check tools.
  //this.high_water = 0;
  /* High water mark offset in window for initialized bytes -- bytes above
   * this are set to zero in order to avoid memory check warnings when
   * longest match routines access bytes past the input.  This is then
   * updated to the new high water mark.
   */
}


function deflateResetKeep(strm) {
  var s;

  if (!strm || !strm.state) {
    return err(strm, Z_STREAM_ERROR);
  }

  strm.total_in = strm.total_out = 0;
  strm.data_type = Z_UNKNOWN;

  s = strm.state;
  s.pending = 0;
  s.pending_out = 0;

  if (s.wrap < 0) {
    s.wrap = -s.wrap;
    /* was made negative by deflate(..., Z_FINISH); */
  }
  s.status = (s.wrap ? INIT_STATE : BUSY_STATE);
  strm.adler = (s.wrap === 2) ?
    0  // crc32(0, Z_NULL, 0)
  :
    1; // adler32(0, Z_NULL, 0)
  s.last_flush = Z_NO_FLUSH;
  trees._tr_init(s);
  return Z_OK;
}


function deflateReset(strm) {
  var ret = deflateResetKeep(strm);
  if (ret === Z_OK) {
    lm_init(strm.state);
  }
  return ret;
}


function deflateSetHeader(strm, head) {
  if (!strm || !strm.state) { return Z_STREAM_ERROR; }
  if (strm.state.wrap !== 2) { return Z_STREAM_ERROR; }
  strm.state.gzhead = head;
  return Z_OK;
}


function deflateInit2(strm, level, method, windowBits, memLevel, strategy) {
  if (!strm) { // === Z_NULL
    return Z_STREAM_ERROR;
  }
  var wrap = 1;

  if (level === Z_DEFAULT_COMPRESSION) {
    level = 6;
  }

  if (windowBits < 0) { /* suppress zlib wrapper */
    wrap = 0;
    windowBits = -windowBits;
  }

  else if (windowBits > 15) {
    wrap = 2;           /* write gzip wrapper instead */
    windowBits -= 16;
  }


  if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED ||
    windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
    strategy < 0 || strategy > Z_FIXED) {
    return err(strm, Z_STREAM_ERROR);
  }


  if (windowBits === 8) {
    windowBits = 9;
  }
  /* until 256-byte window bug fixed */

  var s = new DeflateState();

  strm.state = s;
  s.strm = strm;

  s.wrap = wrap;
  s.gzhead = null;
  s.w_bits = windowBits;
  s.w_size = 1 << s.w_bits;
  s.w_mask = s.w_size - 1;

  s.hash_bits = memLevel + 7;
  s.hash_size = 1 << s.hash_bits;
  s.hash_mask = s.hash_size - 1;
  s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH);

  s.window = new utils.Buf8(s.w_size * 2);
  s.head = new utils.Buf16(s.hash_size);
  s.prev = new utils.Buf16(s.w_size);

  // Don't need mem init magic for JS.
  //s.high_water = 0;  /* nothing written to s->window yet */

  s.lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */

  s.pending_buf_size = s.lit_bufsize * 4;

  //overlay = (ushf *) ZALLOC(strm, s->lit_bufsize, sizeof(ush)+2);
  //s->pending_buf = (uchf *) overlay;
  s.pending_buf = new utils.Buf8(s.pending_buf_size);

  // It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`)
  //s->d_buf = overlay + s->lit_bufsize/sizeof(ush);
  s.d_buf = 1 * s.lit_bufsize;

  //s->l_buf = s->pending_buf + (1+sizeof(ush))*s->lit_bufsize;
  s.l_buf = (1 + 2) * s.lit_bufsize;

  s.level = level;
  s.strategy = strategy;
  s.method = method;

  return deflateReset(strm);
}

function deflateInit(strm, level) {
  return deflateInit2(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);
}


function deflate(strm, flush) {
  var old_flush, s;
  var beg, val; // for gzip header write only

  if (!strm || !strm.state ||
    flush > Z_BLOCK || flush < 0) {
    return strm ? err(strm, Z_STREAM_ERROR) : Z_STREAM_ERROR;
  }

  s = strm.state;

  if (!strm.output ||
      (!strm.input && strm.avail_in !== 0) ||
      (s.status === FINISH_STATE && flush !== Z_FINISH)) {
    return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR : Z_STREAM_ERROR);
  }

  s.strm = strm; /* just in case */
  old_flush = s.last_flush;
  s.last_flush = flush;

  /* Write the header */
  if (s.status === INIT_STATE) {

    if (s.wrap === 2) { // GZIP header
      strm.adler = 0;  //crc32(0L, Z_NULL, 0);
      put_byte(s, 31);
      put_byte(s, 139);
      put_byte(s, 8);
      if (!s.gzhead) { // s->gzhead == Z_NULL
        put_byte(s, 0);
        put_byte(s, 0);
        put_byte(s, 0);
        put_byte(s, 0);
        put_byte(s, 0);
        put_byte(s, s.level === 9 ? 2 :
                    (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?
                     4 : 0));
        put_byte(s, OS_CODE);
        s.status = BUSY_STATE;
      }
      else {
        put_byte(s, (s.gzhead.text ? 1 : 0) +
                    (s.gzhead.hcrc ? 2 : 0) +
                    (!s.gzhead.extra ? 0 : 4) +
                    (!s.gzhead.name ? 0 : 8) +
                    (!s.gzhead.comment ? 0 : 16)
        );
        put_byte(s, s.gzhead.time & 0xff);
        put_byte(s, (s.gzhead.time >> 8) & 0xff);
        put_byte(s, (s.gzhead.time >> 16) & 0xff);
        put_byte(s, (s.gzhead.time >> 24) & 0xff);
        put_byte(s, s.level === 9 ? 2 :
                    (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?
                     4 : 0));
        put_byte(s, s.gzhead.os & 0xff);
        if (s.gzhead.extra && s.gzhead.extra.length) {
          put_byte(s, s.gzhead.extra.length & 0xff);
          put_byte(s, (s.gzhead.extra.length >> 8) & 0xff);
        }
        if (s.gzhead.hcrc) {
          strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);
        }
        s.gzindex = 0;
        s.status = EXTRA_STATE;
      }
    }
    else // DEFLATE header
    {
      var header = (Z_DEFLATED + ((s.w_bits - 8) << 4)) << 8;
      var level_flags = -1;

      if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) {
        level_flags = 0;
      } else if (s.level < 6) {
        level_flags = 1;
      } else if (s.level === 6) {
        level_flags = 2;
      } else {
        level_flags = 3;
      }
      header |= (level_flags << 6);
      if (s.strstart !== 0) { header |= PRESET_DICT; }
      header += 31 - (header % 31);

      s.status = BUSY_STATE;
      putShortMSB(s, header);

      /* Save the adler32 of the preset dictionary: */
      if (s.strstart !== 0) {
        putShortMSB(s, strm.adler >>> 16);
        putShortMSB(s, strm.adler & 0xffff);
      }
      strm.adler = 1; // adler32(0L, Z_NULL, 0);
    }
  }

//#ifdef GZIP
  if (s.status === EXTRA_STATE) {
    if (s.gzhead.extra/* != Z_NULL*/) {
      beg = s.pending;  /* start of bytes to update crc */

      while (s.gzindex < (s.gzhead.extra.length & 0xffff)) {
        if (s.pending === s.pending_buf_size) {
          if (s.gzhead.hcrc && s.pending > beg) {
            strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
          }
          flush_pending(strm);
          beg = s.pending;
          if (s.pending === s.pending_buf_size) {
            break;
          }
        }
        put_byte(s, s.gzhead.extra[s.gzindex] & 0xff);
        s.gzindex++;
      }
      if (s.gzhead.hcrc && s.pending > beg) {
        strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
      }
      if (s.gzindex === s.gzhead.extra.length) {
        s.gzindex = 0;
        s.status = NAME_STATE;
      }
    }
    else {
      s.status = NAME_STATE;
    }
  }
  if (s.status === NAME_STATE) {
    if (s.gzhead.name/* != Z_NULL*/) {
      beg = s.pending;  /* start of bytes to update crc */
      //int val;

      do {
        if (s.pending === s.pending_buf_size) {
          if (s.gzhead.hcrc && s.pending > beg) {
            strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
          }
          flush_pending(strm);
          beg = s.pending;
          if (s.pending === s.pending_buf_size) {
            val = 1;
            break;
          }
        }
        // JS specific: little magic to add zero terminator to end of string
        if (s.gzindex < s.gzhead.name.length) {
          val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff;
        } else {
          val = 0;
        }
        put_byte(s, val);
      } while (val !== 0);

      if (s.gzhead.hcrc && s.pending > beg) {
        strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
      }
      if (val === 0) {
        s.gzindex = 0;
        s.status = COMMENT_STATE;
      }
    }
    else {
      s.status = COMMENT_STATE;
    }
  }
  if (s.status === COMMENT_STATE) {
    if (s.gzhead.comment/* != Z_NULL*/) {
      beg = s.pending;  /* start of bytes to update crc */
      //int val;

      do {
        if (s.pending === s.pending_buf_size) {
          if (s.gzhead.hcrc && s.pending > beg) {
            strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
          }
          flush_pending(strm);
          beg = s.pending;
          if (s.pending === s.pending_buf_size) {
            val = 1;
            break;
          }
        }
        // JS specific: little magic to add zero terminator to end of string
        if (s.gzindex < s.gzhead.comment.length) {
          val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff;
        } else {
          val = 0;
        }
        put_byte(s, val);
      } while (val !== 0);

      if (s.gzhead.hcrc && s.pending > beg) {
        strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
      }
      if (val === 0) {
        s.status = HCRC_STATE;
      }
    }
    else {
      s.status = HCRC_STATE;
    }
  }
  if (s.status === HCRC_STATE) {
    if (s.gzhead.hcrc) {
      if (s.pending + 2 > s.pending_buf_size) {
        flush_pending(strm);
      }
      if (s.pending + 2 <= s.pending_buf_size) {
        put_byte(s, strm.adler & 0xff);
        put_byte(s, (strm.adler >> 8) & 0xff);
        strm.adler = 0; //crc32(0L, Z_NULL, 0);
        s.status = BUSY_STATE;
      }
    }
    else {
      s.status = BUSY_STATE;
    }
  }
//#endif

  /* Flush as much pending output as possible */
  if (s.pending !== 0) {
    flush_pending(strm);
    if (strm.avail_out === 0) {
      /* Since avail_out is 0, deflate will be called again with
       * more output space, but possibly with both pending and
       * avail_in equal to zero. There won't be anything to do,
       * but this is not an error situation so make sure we
       * return OK instead of BUF_ERROR at next call of deflate:
       */
      s.last_flush = -1;
      return Z_OK;
    }

    /* Make sure there is something to do and avoid duplicate consecutive
     * flushes. For repeated and useless calls with Z_FINISH, we keep
     * returning Z_STREAM_END instead of Z_BUF_ERROR.
     */
  } else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) &&
    flush !== Z_FINISH) {
    return err(strm, Z_BUF_ERROR);
  }

  /* User must not provide more input after the first FINISH: */
  if (s.status === FINISH_STATE && strm.avail_in !== 0) {
    return err(strm, Z_BUF_ERROR);
  }

  /* Start a new block or continue the current one.
   */
  if (strm.avail_in !== 0 || s.lookahead !== 0 ||
    (flush !== Z_NO_FLUSH && s.status !== FINISH_STATE)) {
    var bstate = (s.strategy === Z_HUFFMAN_ONLY) ? deflate_huff(s, flush) :
      (s.strategy === Z_RLE ? deflate_rle(s, flush) :
        configuration_table[s.level].func(s, flush));

    if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) {
      s.status = FINISH_STATE;
    }
    if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) {
      if (strm.avail_out === 0) {
        s.last_flush = -1;
        /* avoid BUF_ERROR next call, see above */
      }
      return Z_OK;
      /* If flush != Z_NO_FLUSH && avail_out == 0, the next call
       * of deflate should use the same flush parameter to make sure
       * that the flush is complete. So we don't have to output an
       * empty block here, this will be done at next call. This also
       * ensures that for a very small output buffer, we emit at most
       * one empty block.
       */
    }
    if (bstate === BS_BLOCK_DONE) {
      if (flush === Z_PARTIAL_FLUSH) {
        trees._tr_align(s);
      }
      else if (flush !== Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */

        trees._tr_stored_block(s, 0, 0, false);
        /* For a full flush, this empty block will be recognized
         * as a special marker by inflate_sync().
         */
        if (flush === Z_FULL_FLUSH) {
          /*** CLEAR_HASH(s); ***/             /* forget history */
          zero(s.head); // Fill with NIL (= 0);

          if (s.lookahead === 0) {
            s.strstart = 0;
            s.block_start = 0;
            s.insert = 0;
          }
        }
      }
      flush_pending(strm);
      if (strm.avail_out === 0) {
        s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */
        return Z_OK;
      }
    }
  }
  //Assert(strm->avail_out > 0, "bug2");
  //if (strm.avail_out <= 0) { throw new Error("bug2");}

  if (flush !== Z_FINISH) { return Z_OK; }
  if (s.wrap <= 0) { return Z_STREAM_END; }

  /* Write the trailer */
  if (s.wrap === 2) {
    put_byte(s, strm.adler & 0xff);
    put_byte(s, (strm.adler >> 8) & 0xff);
    put_byte(s, (strm.adler >> 16) & 0xff);
    put_byte(s, (strm.adler >> 24) & 0xff);
    put_byte(s, strm.total_in & 0xff);
    put_byte(s, (strm.total_in >> 8) & 0xff);
    put_byte(s, (strm.total_in >> 16) & 0xff);
    put_byte(s, (strm.total_in >> 24) & 0xff);
  }
  else
  {
    putShortMSB(s, strm.adler >>> 16);
    putShortMSB(s, strm.adler & 0xffff);
  }

  flush_pending(strm);
  /* If avail_out is zero, the application will call deflate again
   * to flush the rest.
   */
  if (s.wrap > 0) { s.wrap = -s.wrap; }
  /* write the trailer only once! */
  return s.pending !== 0 ? Z_OK : Z_STREAM_END;
}

function deflateEnd(strm) {
  var status;

  if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {
    return Z_STREAM_ERROR;
  }

  status = strm.state.status;
  if (status !== INIT_STATE &&
    status !== EXTRA_STATE &&
    status !== NAME_STATE &&
    status !== COMMENT_STATE &&
    status !== HCRC_STATE &&
    status !== BUSY_STATE &&
    status !== FINISH_STATE
  ) {
    return err(strm, Z_STREAM_ERROR);
  }

  strm.state = null;

  return status === BUSY_STATE ? err(strm, Z_DATA_ERROR) : Z_OK;
}


/* =========================================================================
 * Initializes the compression dictionary from the given byte
 * sequence without producing any compressed output.
 */
function deflateSetDictionary(strm, dictionary) {
  var dictLength = dictionary.length;

  var s;
  var str, n;
  var wrap;
  var avail;
  var next;
  var input;
  var tmpDict;

  if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {
    return Z_STREAM_ERROR;
  }

  s = strm.state;
  wrap = s.wrap;

  if (wrap === 2 || (wrap === 1 && s.status !== INIT_STATE) || s.lookahead) {
    return Z_STREAM_ERROR;
  }

  /* when using zlib wrappers, compute Adler-32 for provided dictionary */
  if (wrap === 1) {
    /* adler32(strm->adler, dictionary, dictLength); */
    strm.adler = adler32(strm.adler, dictionary, dictLength, 0);
  }

  s.wrap = 0;   /* avoid computing Adler-32 in read_buf */

  /* if dictionary would fill window, just replace the history */
  if (dictLength >= s.w_size) {
    if (wrap === 0) {            /* already empty otherwise */
      /*** CLEAR_HASH(s); ***/
      zero(s.head); // Fill with NIL (= 0);
      s.strstart = 0;
      s.block_start = 0;
      s.insert = 0;
    }
    /* use the tail */
    // dictionary = dictionary.slice(dictLength - s.w_size);
    tmpDict = new utils.Buf8(s.w_size);
    utils.arraySet(tmpDict, dictionary, dictLength - s.w_size, s.w_size, 0);
    dictionary = tmpDict;
    dictLength = s.w_size;
  }
  /* insert dictionary into window and hash */
  avail = strm.avail_in;
  next = strm.next_in;
  input = strm.input;
  strm.avail_in = dictLength;
  strm.next_in = 0;
  strm.input = dictionary;
  fill_window(s);
  while (s.lookahead >= MIN_MATCH) {
    str = s.strstart;
    n = s.lookahead - (MIN_MATCH - 1);
    do {
      /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
      s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask;

      s.prev[str & s.w_mask] = s.head[s.ins_h];

      s.head[s.ins_h] = str;
      str++;
    } while (--n);
    s.strstart = str;
    s.lookahead = MIN_MATCH - 1;
    fill_window(s);
  }
  s.strstart += s.lookahead;
  s.block_start = s.strstart;
  s.insert = s.lookahead;
  s.lookahead = 0;
  s.match_length = s.prev_length = MIN_MATCH - 1;
  s.match_available = 0;
  strm.next_in = next;
  strm.input = input;
  strm.avail_in = avail;
  s.wrap = wrap;
  return Z_OK;
}


exports.deflateInit = deflateInit;
exports.deflateInit2 = deflateInit2;
exports.deflateReset = deflateReset;
exports.deflateResetKeep = deflateResetKeep;
exports.deflateSetHeader = deflateSetHeader;
exports.deflate = deflate;
exports.deflateEnd = deflateEnd;
exports.deflateSetDictionary = deflateSetDictionary;
exports.deflateInfo = 'pako deflate (from Nodeca project)';

/* Not implemented
exports.deflateBound = deflateBound;
exports.deflateCopy = deflateCopy;
exports.deflateParams = deflateParams;
exports.deflatePending = deflatePending;
exports.deflatePrime = deflatePrime;
exports.deflateTune = deflateTune;
*/


/***/ }),

/***/ 58531:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(46570);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("e1eb2e7a", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 58602:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-install-complete[data-v-660deef5] {\n  position: fixed;\n  top: 0;\n  left: 0;\n  z-index: 999;\n  width: 100%;\n  height: 100%;\n  background-color: #244660;\n}\n.common-modal[data-v-660deef5] {\n  background: rgba(0, 0, 0, 0.7);\n}\n.bottom-banner[data-v-660deef5] {\n  width: 100%;\n  height: 90px;\n  background: #2A3445;\n  display: flex;\n  position: absolute;\n  bottom: 0;\n  z-index: 3;\n  justify-content: center;\n}\n.bottom-banner .item[data-v-660deef5] {\n  display: inline-block;\n  position: relative;\n  width: 571px;\n  height: 99px;\n  overflow: hidden;\n  margin-top: -6px;\n}\n.bottom-banner .item img[data-v-660deef5] {\n  width: 960px;\n}\n", ""]);

// exports


/***/ }),

/***/ 58622:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);
var isCallable = __webpack_require__(94901);

var WeakMap = globalThis.WeakMap;

module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));


/***/ }),

/***/ 58998:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(71401);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("1af64a78", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 59225:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);
var apply = __webpack_require__(18745);
var bind = __webpack_require__(76080);
var isCallable = __webpack_require__(94901);
var hasOwn = __webpack_require__(39297);
var fails = __webpack_require__(79039);
var html = __webpack_require__(20397);
var arraySlice = __webpack_require__(67680);
var createElement = __webpack_require__(4055);
var validateArgumentsLength = __webpack_require__(22812);
var IS_IOS = __webpack_require__(89544);
var IS_NODE = __webpack_require__(16193);

var set = globalThis.setImmediate;
var clear = globalThis.clearImmediate;
var process = globalThis.process;
var Dispatch = globalThis.Dispatch;
var Function = globalThis.Function;
var MessageChannel = globalThis.MessageChannel;
var String = globalThis.String;
var counter = 0;
var queue = {};
var ONREADYSTATECHANGE = 'onreadystatechange';
var $location, defer, channel, port;

fails(function () {
  // Deno throws a ReferenceError on `location` access without `--location` flag
  $location = globalThis.location;
});

var run = function (id) {
  if (hasOwn(queue, id)) {
    var fn = queue[id];
    delete queue[id];
    fn();
  }
};

var runner = function (id) {
  return function () {
    run(id);
  };
};

var eventListener = function (event) {
  run(event.data);
};

var globalPostMessageDefer = function (id) {
  // old engines have not location.origin
  globalThis.postMessage(String(id), $location.protocol + '//' + $location.host);
};

// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
if (!set || !clear) {
  set = function setImmediate(handler) {
    validateArgumentsLength(arguments.length, 1);
    var fn = isCallable(handler) ? handler : Function(handler);
    var args = arraySlice(arguments, 1);
    queue[++counter] = function () {
      apply(fn, undefined, args);
    };
    defer(counter);
    return counter;
  };
  clear = function clearImmediate(id) {
    delete queue[id];
  };
  // Node.js 0.8-
  if (IS_NODE) {
    defer = function (id) {
      process.nextTick(runner(id));
    };
  // Sphere (JS game engine) Dispatch API
  } else if (Dispatch && Dispatch.now) {
    defer = function (id) {
      Dispatch.now(runner(id));
    };
  // Browsers with MessageChannel, includes WebWorkers
  // except iOS - https://github.com/zloirock/core-js/issues/624
  } else if (MessageChannel && !IS_IOS) {
    channel = new MessageChannel();
    port = channel.port2;
    channel.port1.onmessage = eventListener;
    defer = bind(port.postMessage, port);
  // Browsers with postMessage, skip WebWorkers
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
  } else if (
    globalThis.addEventListener &&
    isCallable(globalThis.postMessage) &&
    !globalThis.importScripts &&
    $location && $location.protocol !== 'file:' &&
    !fails(globalPostMessageDefer)
  ) {
    defer = globalPostMessageDefer;
    globalThis.addEventListener('message', eventListener, false);
  // IE8-
  } else if (ONREADYSTATECHANGE in createElement('script')) {
    defer = function (id) {
      html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
        html.removeChild(this);
        run(id);
      };
    };
  // Rest old browsers
  } else {
    defer = function (id) {
      setTimeout(runner(id), 0);
    };
  }
}

module.exports = {
  set: set,
  clear: clear
};


/***/ }),

/***/ 59235:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(82082);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("7f83bb1a", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 59286:
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_style_index_0_id_40244662_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(35203);
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_style_index_0_id_40244662_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_viewerWindow_vue_vue_type_style_index_0_id_40244662_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0__);


/***/ }),

/***/ 59321:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".mx-calendar-panel-date {\n  min-height: 270px;\n}\n.gwd-tab-hover-p .gwd-taobao.gwd-protect-hint,\n.gwd-tab-hover-p .gwd-tmall.gwd-protect-hint {\n  z-index: -1;\n}\n", ""]);

// exports


/***/ }),

/***/ 59389:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _default = exports.A = {};

/***/ }),

/***/ 59614:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _MemberCouponMixin = _interopRequireDefault(__webpack_require__(81507));
var _qrTb2x = _interopRequireDefault(__webpack_require__(66988));
var _qrJd2x = _interopRequireDefault(__webpack_require__(500));
var _default = exports.A = {
  mixins: [_MemberCouponMixin.default],
  props: ['newTime', 'aliSite'],
  data() {
    return {
      dpId: gwd_G.dp.dpId,
      site: gwd_G.aliSite ? 'tb' : gwd_G.site,
      url: location.href,
      qrIcon: gwd_G.aliSite ? _qrTb2x.default : _qrJd2x.default
    };
  },
  methods: {}
};

/***/ }),

/***/ 59641:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, pos = $data.pos;
    $$out += '<div id="size_detail" class="ht_size_detail gwd_haitao" style="top: ';
    $$out += $escape(pos.posy);
    $$out += 'px;left: ';
    $$out += $escape(pos.posx);
    $$out += 'px;">\n    <span class="closebar closebg" title="关闭"></span>\n    \n    <div class="size_head">\n        <div class="clothes_nav">\n          <ul>\n            <li class="select">男装</li>\n            <li>女装</li>\n            <li>童装</li>\n            <li>男鞋</li>\n            <li>女鞋</li>\n            <li>童鞋</li>\n          </ul>\n        </div>\n        <div class="unit_desc unit_cm">单位\uFF1A厘米(CM)</div>\n        <div class="unit_desc unit_mm">单位\uFF1A毫米(MM)</div>\n    </div>\n    <div class="size_content">\n      <div class="detail_left">\n        <span class="shangyi size_hover">上装</span>\n        <span class="xiazhuang">下装</span>\n        <span class="tongzhuang tongzhuang0">0 ~ 4岁</span>\n        <span class="tongzhuang tongzhuang4">4 ~ 12岁</span>\n        <span class="shoes">鞋子</span>\n        <span class="tongxie tongxie0">0 ~ 4岁</span>\n        <span class="tongxie tongxie4">4 ~ 12岁</span>\n        <span class="cloth_icon ht_shangyi manshangzhuang"></span>\n      </div>\n      <div class="detail_right">\n        <div class="content_center">\n          <div class="size_s">\n          </div>\n          <div id="size_item">\n            <a class="size_item_img"></a>\n          </div>\n          \n        </div>\n        <div class="size_desc">\n          <span class="red"></span>\n          <span >此尺码为一般尺码\uFF0C不同品牌可能会存在相应不同</span>\n        </div>\n      </div>\n    </div>\n    <div class="size_foot">\n        <div class="size_con">在线尺寸转换工具</div>\n        <div class="size_op">\n          <input id="first_size" type="text">\n          <input class="size_xiala first_xiala" value="厘米" readonly>\n          <div class="size_xialabox" data-size="first_xiala">\n            <a href="javascript:void(0);"></a>\n            <a href="javascript:void(0);">米</a>\n            <a href="javascript:void(0);">厘米</a>\n            <a href="javascript:void(0);">毫米</a>\n            <a href="javascript:void(0);">英尺</a>\n            <a href="javascript:void(0);">英寸</a>\n            <a href="javascript:void(0);">码</a>\n            <a href="javascript:void(0);">尺</a>\n            <a href="javascript:void(0);">寸</a>\n            <a href="javascript:void(0);">分</a>\n            <a href="javascript:void(0);">厘</a>\n          </div>\n          <span class="conversion">转换为</span>\n          <input id="second_size">\n          <input class="size_xiala second_xiala" value="英寸" readonly>\n          <div class="size_xialabox" data-size="second_xiala">\n            <a href="javascript:void(0);"></a>\n            <a href="javascript:void(0);">米</a>\n            <a href="javascript:void(0);">厘米</a>\n            <a href="javascript:void(0);">毫米</a>\n            <a href="javascript:void(0);">英尺</a>\n            <a href="javascript:void(0);">英寸</a>\n            <a href="javascript:void(0);">码</a>\n            <a href="javascript:void(0);">尺</a>\n            <a href="javascript:void(0);">寸</a>\n            <a href="javascript:void(0);">分</a>\n            <a href="javascript:void(0);">厘</a>\n          </div>\n        </div>\n    </div>\n      </div>';
    return $$out;
};

/***/ }),

/***/ 60103:
/***/ ((module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
var __WEBPACK_AMD_DEFINE_RESULT__;

/*
 * 从底部版移植过来的底部版的天猫淘宝,原来的chrome_old没有独立的顶部版的天猫淘宝模块
 */
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  var $ = __webpack_require__(10333);
  let request = __webpack_require__(49388);
  var specialFilter = __webpack_require__(22480);
  let showTaobaoProducts = __webpack_require__(20879);
  return {
    /**
     * taobao 比价模块
     * 目前仅包括底部版样式
     * @author:mllong(mllong0925@gmail.com)
     * @since:2013-10-22
     * @version:1.0.0
     */
    //初始化，根据数据的类型确定展示什么样式
    init: function (data, style) {
      if (G.saveTbResData != null) {
        this.renderTaobaoUI(G.saveTbResData);
        return;
      }
      var code_server = '1';
      var code = data['code-server'];
      var msg = data.exact_arr;
      var price = data.now.price * 100;
      if (!price) {
        price = G.dp.price * 100;
      }
      if (!code) {
        code = {};
        code_server = '0';
      }
      var sitearr = ['amazon', '6pm', 'ebay'];
      if (sitearr.indexOf(G.site) > -1) {
        price = G.dp.price * 100;
      }
      /*日亚 美亚 德亚 在没有品牌的情况下  不请求淘宝客*/
      if (G.site == 'amazon' && !msg.brand && data.now.site_id !== '1') return;
      var url = `${G.server}/brwext/tbres?union=${G.union}&url=${encodeURIComponent(msg.url)}&site=${msg.site}&isbn=${msg.isbn}&keywords=${encodeURIComponent(msg.keywords)}&brand=${encodeURIComponent(msg.brand)}&type=${encodeURIComponent(msg.type)}&price=${price}&class_id=${msg.class_id}&name=${encodeURIComponent(G.dp.name)}&code_brand_id=${code.brand_id}&code_clean_title=${encodeURIComponent(code.clean_title)}&code_code=${code.code}&code_display_brand=${encodeURIComponent(code.display_brand)}&code_brand=${encodeURIComponent(code.brand)}&code_class_id=${encodeURIComponent(code.class_id)}&code_price=${encodeURIComponent(code.price)}&code_spec=${encodeURIComponent(code.spec)}&code-server=${code_server}`;
      request.get(url).done(mm => {
        if (G.site == 'taobao' || G.site == 'tmall') {
          showTaobaoProducts.getUniqPid(mm, mm => {
            G.saveTbResData = mm;
            // $this.renderTaobaoUI(mm);
            (__webpack_require__(35161).renderBt)(mm);
          });
        } else {
          showTaobaoProducts.getImgSearch(mm, mm => {
            G.saveTbResData = mm;
            // $this.renderTaobaoUI(mm);
            (__webpack_require__(35161).renderBt)(mm);
          });
        }
      });
    },
    //渲染请求淘宝接口后的界面
    renderTaobaoUI: function (mm) {
      var $this = this;
      var perPageMaxNumber = G.getFixedShowProductNum();
      $this.showBottomView("tmall", mm);
      $this.showBottomView("taobao", mm);
      G.setPageArgs(`${G.extBrand}-compare-tmall`, perPageMaxNumber);
      G.setPageArgs(`${G.extBrand}-compare-taobao`, perPageMaxNumber);
      $this.setBottomViewOffset();
      //重新适应宽度
      G.autoFixWidth();
      if (mm.search.keywords == '' && G.dp.isbn != '') {
        $(`.${G.extBrand}-search-input`).val(G.dp.isbn);
      }
      if (mm.search.keywords != ``) {
        $(`.${G.extBrand}-search-input`).val(mm.search.keywords);
      }
      if (G.site === 'vipshop') {
        $(`.${G.extBrand}-search-input`).val(G.dp.cat_name);
      }
      $(window).bind("reDrawTaobaoBanner", function () {
        var perPageMaxNumber = G.getFixedShowProductNum();
        $this.showBottomView("tmall", mm);
        $this.showBottomView("taobao", mm);
        G.setPageArgs(`${G.extBrand}-compare-tmall`, perPageMaxNumber);
        G.setPageArgs(`${G.extBrand}-compare-taobao`, perPageMaxNumber);
        $this.setBottomViewOffset();
      });

      //淘宝天猫异步加载太慢，有可能还没加载出来，所以再这里再屏蔽一次
      if (G.p_fold == 1) {
        $(`.${G.extBrand}-close-module`).hide();
      }
    },
    showBottomView: function (subsite, data) {
      var perPageMaxNumber = G.getFixedShowProductNum();
      var site_name = "";
      if (subsite == 'tmall') {
        site_name = '天猫商城';
      } else if (subsite == 'taobao') {
        site_name = '淘宝网';
      }
      if (data.site) {
        site_name = "同类热卖";
      }
      if (data[subsite] && data[subsite].min_price) {
        if (data[subsite].product.length > 0) {
          var store = specialFilter.tb(data[subsite]);
          if (store instanceof Array) return;
          if (store.product.length === 0) return;
          var dp = store.product[0];
          var len = parseInt(store.product.length);
          var pages = len % perPageMaxNumber == 0 ? parseInt(len / perPageMaxNumber) : parseInt(len / perPageMaxNumber) + 1;
          var li = $('<li>');
          li.append($('<span>', {
            'class': `${G.extBrand}-compare-item`,
            'href': dp.url,
            'target': "_blank"
          }).append($('<p>', {
            'style': "height:10px;display:none;",
            'class': `${G.extBrand}-iszwf`
          }).html('&nbsp')).append($('<p>', {
            'class': `${G.extBrand}-price`
          }).html("&yen;" + store.min_price + (store.max_price != store.min_price ? "~" + store.max_price : ""))).append($('<p>', {
            'class': `${G.extBrand}-store`
          }).text(site_name)).append($('<p>', {
            'style': "height:10px;display:none;",
            'class': `${G.extBrand}-iszwf`
          }).html('&nbsp')));
          var detail = $('<div>', {
            'class': `${G.extBrand}-compare-item-detail re-${G.extBrand}-compare-item-detail ${G.extBrand}-compare-item-detail-fixed`,
            'style': 'display:none;'
          });
          detail.append($('<p>', {
            'class': `${G.extBrand}-compare-item-detail-title ${G.extBrand}-height-auto ${G.extBrand}-compare-item-detail-title-fixed`
          }).append($('<span>', {
            'class': `${G.extBrand}-compare-item-detail-title-desc`
          }).text(site_name + '：不同卖家运费不同')));
          var itemList = $('<ul>', {
            'class': `${G.extBrand}-item-list`
          });
          for (var k = 0; k < len; k++) {
            var item = store.product[k];
            itemList.append($('<li>', {
              'class': `${G.extBrand}-list-item ` + (k % perPageMaxNumber == perPageMaxNumber - 1 || k == len - 1 ? `${G.extBrand}-last` : ""),
              'style': "display: " + (k >= perPageMaxNumber ? "none" : "block")
            }).append($('<a>', {
              'class': `${G.extBrand}-pic`,
              'href': item.url,
              'target': "_blank"
            }).append($('<img>', {
              'src': G.s_server + "/images/dp_default.jpg",
              'data-original': item.pic_url,
              'title': item.title
            }))).append($('<a>', {
              'class': `${G.extBrand}-product-title`,
              'href': item.url,
              'target': "_blank",
              'title': item.title
            }).text(item.title)).append($('<a>', {
              'class': `${G.extBrand}-price`,
              'href': item.url,
              'target': "_blank"
            }).html('&yen;' + item.price)));
          }
          var tb_tm_PageView = $('<div>', {
            'class': `${G.extBrand}-tb-tm-PageView ${G.extBrand}-b2c-PageView-fixed`
          });
          tb_tm_PageView.append($('<p>', {
            'class': `${G.extBrand}-compare-item-detail-title`,
            'style': 'height:auto;'
          }).append($('<span>', {
            'style': 'float:none;padding-left:10px;',
            'class': `${G.extBrand}-compare-item-detail-pages`
          }).append($('<em>', {
            'id': 'page-now-' + subsite,
            'class': 'page-now'
          }).text('1')).append('/').append($('<em>', {
            'id': 'page-total-' + subsite,
            'class': 'page-total'
          }).text('1'))));
          detail.append($("<div>", {
            'class': `${G.extBrand}-compare-prev-page ${G.extBrand}-left`
          }).append($('<div>', {
            'class': `${G.extBrand}-bg page-arrow`
          }))).append(itemList).append($("<div>", {
            'class': `${G.extBrand}-compare-next-page ${G.extBrand}-right`
          }).append($('<div>', {
            'class': `${G.extBrand}-bg page-arrow`
          }))).append(tb_tm_PageView);
          li.append(detail);
          $(`#${G.extBrand}-compare-` + subsite).html("").append(li);
          if (pages == 1) {
            li.find(`.${G.extBrand}-compare-prev-page`).hide();
            li.find(`.${G.extBrand}-compare-next-page`).hide();
            li.find(`.${G.extBrand}-b2c-PageView-fixed`).hide();
            li.attr("pages", 1);
            li.attr("len", len);
            var bannerWidth = len * 200;
            li.children(`div.${G.extBrand}-compare-item-detail-fixed`).css(`width`, bannerWidth + 2);
          } else {
            //contains border
            li.children(`div.${G.extBrand}-compare-item-detail-fixed`).css(`width`, G.width - 2);
          }
          $(`#page-total-` + subsite).text(pages);
        }
        $(`#${G.extBrand}-compare-` + subsite).css("display", "block");
      }

      //添加 noreferrer
      $(`#${G.extBrand}-compare-tmall,#${G.extBrand}-compare-taobao`).each(function () {
        $(this).find(`a.${G.extBrand}-compare-item,a.${G.extBrand}-pic,a.${G.extBrand}-product-title,a.${G.extBrand}-price`).each(function () {
          $(this).attr('rel', 'noreferrer').attr('href', $(this).attr('href') + G.ut);
        });
      });
    },
    setBottomViewOffset: function () {
      $(`#${G.extBrand}-compare-tmall li,#${G.extBrand}-compare-taobao li`).each(function () {
        var menu_li = $(this);
        if (menu_li.attr("pages") == '1') {
          //尽量根据菜单的位置居中，实在不能居中的，就靠右
          var menu_li_left = menu_li.offset().left;
          var menu_li_width = menu_li.width();
          var bannerWidth = parseInt(menu_li.attr("len")) * 200;
          var target_left = menu_li_left - (bannerWidth / 2 - menu_li_width / 2);
          if (target_left < 0) {
            target_left = 0;
          }
          var remainWidth = G.width - target_left;
          if (G.IE6) {
            target_left = menu_li_width / 2 - bannerWidth / 2;
            if (target_left + menu_li_left < 0) {
              target_left = -menu_li_left;
            }
            menu_li.children(`div.${G.extBrand}-compare-item-detail-fixed`).css(`position`, `absolute`).css('left', target_left);
            menu_li.find(`.${G.extBrand}-compare-item-detail-title-fixed`).css('left', 0);
          } else {
            if (bannerWidth < remainWidth) {
              menu_li.children(`div.${G.extBrand}-compare-item-detail-fixed`).css('left', target_left);
              menu_li.find(`.${G.extBrand}-compare-item-detail-title-fixed`).css('left', target_left);
            } else {
              menu_li.children(`div.${G.extBrand}-compare-item-detail-fixed`).css('left', G.width - bannerWidth);
              menu_li.find(`.${G.extBrand}-compare-item-detail-title-fixed`).css('left', G.width - bannerWidth);
            }
          }
        } else {
          //非ie版本的压根不需要调整，这里的ie6版本需要进行调整。
          if (G.IE6) {
            var menu_li_left = menu_li.offset().left;
            var target_left = 0 - menu_li_left;
            menu_li.children(`div.${G.extBrand}-compare-item-detail-fixed`).css(`position`, `absolute`).css('left', target_left);
            menu_li.find(`.${G.extBrand}-compare-item-detail-title-fixed`).css('left', 0);
          }
        }
      });
    }
  };
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

/***/ }),

/***/ 60265:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['date', 'badge', 'type', 'price']
};

/***/ }),

/***/ 60340:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(23792);
__webpack_require__(72712);
__webpack_require__(3362);
__webpack_require__(62953);
__webpack_require__(3296);
__webpack_require__(27208);
__webpack_require__(48408);
module.exports.checkimg = (url, imgObj, size, callback) => {
  var sz = typeof size == 'undefined' || size == "" || size == null ? 90 : size;
  var val = url;
  var img = new Image();
  if (G.browser.msie && G.browser.version < 11) {
    img.onreadystatechange = function () {
      if (img.readyState == "complete" || img.readyState == "loaded") {
        if (img.width > 0 && img.height > 0) {
          var rate = sz / img.width < sz / img.height ? sz / img.width : sz / img.height;
          if (rate <= 1) {
            imgObj.css('width', img.width * rate);
            imgObj.css('height', img.height * rate);
          } else {
            imgObj.css('width', img.width);
            imgObj.css('height', img.height);
          }
        }
        imgObj.attr('src', url);
      }
    };
  } else {
    img.onload = function () {
      if (img.complete == true) {
        if (img.width > 0 && img.height > 0) {
          var rate = sz / img.width < sz / img.height ? sz / img.width : sz / img.height;
          if (rate <= 1) {
            imgObj.css('width', img.width * rate);
            imgObj.css('height', img.height * rate);
          } else {
            imgObj.css('width', img.width);
            imgObj.css('height', img.height);
          }
        }
        imgObj.attr('src', url);
        if (callback) {
          callback();
        }
      }
    };
  }
  img.onerror = function () {
    imgObj.attr('src', G.s_server + "/images/extensions/default_load_image.png").css('width', 90);
    imgObj.attr('data-original', G.s_server + "/images/extensions/default_load_image.png");
  };
  img.src = val;
};
module.exports.getParameterByName = function (name, url) {
  if (!url) {
    url = window.location.href;
  }
  if (URL) {
    const params = new URL(url).searchParams;
    return params.get(name);
  }
  name = name.replace(/[\[\]]/g, "\\$&");
  var regex = new RegExp("[?#&]" + name + "(=([^&#]*)|&|#|$)"),
    results = regex.exec(url);
  if (!results) return null;
  if (!results[2]) return '';
  return decodeURIComponent(results[2].replace(/\+/g, " "));
};
module.exports.sleep = function (time) {
  return new Promise(resolve => {
    setTimeout(() => resolve(), time);
  });
};
module.exports.asyncForEach = async function (array, callback) {
  for (let index = 0; index < array.length; index++) {
    await callback(array[index], index, array);
  }
};
module.exports.getPageCookie = () => {
  return document.cookie.split('; ').reduce((prev, current) => {
    const [name, ...value] = current.split('=');
    prev[name] = value.join('=');
    return prev;
  }, {});
};

// 通用数组去重
module.exports.arrayUnique = (arr, valueFn) => {
  let list = [];
  return arr.filter(x => {
    let val = valueFn(x);
    if (list.indexOf(val) === -1) {
      list.push(val);
      return true;
    }
    return false;
  });
};
module.exports.appendCss = cssText => {
  let s = document.createElement('STYLE');
  s.innerHTML = cssText;
  document.body.appendChild(s);
};
module.exports.debounce = (func, timeout = 300) => {
  let timer;
  return (...args) => {
    clearTimeout(timer);
    timer = setTimeout(() => {
      func.apply(void 0, args);
    }, timeout);
  };
};
module.exports.throttle = (func, timeout = 300) => {
  let timer;
  return (...args) => {
    if (!timer) {
      timer = setTimeout(() => {
        timer = null;
        func.apply(void 0, args);
      }, timeout);
    }
  };
};
module.exports.limit = (func, timeout = 300) => {
  let lastExecTime = 0;
  return (...args) => {
    let now = Date.now();
    if (now - lastExecTime > timeout) {
      lastExecTime = now;
      func.apply(void 0, args);
    }
  };
};
module.exports.arrayToObj = (array, key) => {
  if (!Array.isArray(array) || !key) {
    return {};
  }
  let obj = {};
  array.forEach(item => {
    obj[item[key]] = item;
  });
  return obj;
};
module.exports.getBodyOffset = el => {
  if (typeof el === 'string') {
    el = document.querySelector(el);
  }
  if (!el) {
    return;
  }
  // el.style.display = 'block'
  const rect = el.getBoundingClientRect();
  return {
    left: rect.left + window.scrollX,
    top: rect.top + window.scrollY,
    width: el.clientWidth,
    height: rect.height
  };
};
module.exports.findStringFromSelectors = selectors => {
  for (let i = 0; i < selectors.length; i++) {
    if (document.querySelector(selectors[i])) {
      return document.querySelector(selectors[i]).innerText;
    }
  }
};
module.exports.checkButie = title => {
  if (title.includes('国补')) {
    return true;
  }
  if (!title.includes('补贴')) {
    return false;
  }
  if (title.includes('修')) {
    return false;
  }
  return true;
};
module.exports.urlFix = url => {
  if (url.includes('?')) {
    return url;
  }
  return url + '?';
};
module.exports.isNewJd = () => {
  if (G.site !== '360buy') {
    return false;
  }
  return $('.information-wrap').length > 0;
};
module.exports.createShadowElement = srcElement => {
  // 创建一个新的元素,直接append到body上，同时，新元素应当和原有元素始终保持相同的大小和位置
  const shadowElement = document.createElement('div');

  // Get position and dimensions of the source element
  const rect = srcElement.getBoundingClientRect();

  // Style the shadow element to match the source element's position
  shadowElement.style.position = 'absolute';
  shadowElement.style.left = rect.left + window.scrollX + 'px';
  shadowElement.style.top = rect.top + window.scrollY + 'px';
  shadowElement.style.width = rect.width + 'px';
  shadowElement.style.height = rect.height + 'px';
  shadowElement.style.zIndex = '1000'; // Set a high z-index to ensure it's on top

  // Append to body
  document.body.appendChild(shadowElement);
  return shadowElement;
};
module.exports.convertToFixed = el => {
  const convertToFixed = el => {
    // If el is a string selector, get the actual DOM element
    if (typeof el === 'string') {
      el = document.querySelector(el);
    }
    if (!el) {
      return;
    }
    const parent = el.parentNode;

    // Get the current position
    const rect = el.getBoundingClientRect();
    const parentRect = parent.getBoundingClientRect();

    // Save the original styles
    const originalPosition = getComputedStyle(el).position;
    const originalTop = getComputedStyle(el).top;
    const originalLeft = getComputedStyle(el).left;

    // Set the position to fixed and maintain the visual position
    el.style.position = 'fixed';
    // el.style.top = rect.top + 'px';
    // el.style.left = rect.left + 'px';
    el.style.width = rect.width + 'px'; // Maintain the width
    el.style.height = rect.height + 'px'; // Maintain the height
    el.style.top = '0';
    el.style.left = '0';
    const topOffset = rect.top - parentRect.top;
    const leftOffset = rect.left - parentRect.left;
    const fakeEl = document.createElement('DIV');
    parent.replaceChild(fakeEl, el);
    fakeEl.classList.add('gwd-fake-el');
    fakeEl.classList.add('gwd-new-jd');
    fakeEl.style.width = rect.width + 'px';
    fakeEl.style.height = rect.height + 'px';
    fakeEl.style.marginBottom = '12px';
    let ticking = false;
    const reAdjustPosition = () => {
      const fakeElRect = fakeEl.getBoundingClientRect();
      fakeEl.style.width = rect.width + 'px';
      fakeEl.style.height = rect.height + 'px';
      if (!ticking) {
        requestAnimationFrame(() => {
          // el.style.width = fakeElRect.width + 'px';
          // el.style.height = fakeElRect.height + 'px';
          // el.style.top = fakeElRect.top + 'px';
          // el.style.left = fakeElRect.left + 'px';
          el.style.transform = `translate(${fakeElRect.left}px, ${fakeElRect.top}px)`;
          ticking = false;
        });
        ticking = true;
      }
    };

    // listen for scroll events to adjust position
    window.addEventListener('scroll', reAdjustPosition);
    if (G.site === '360buy') {
      $('.information-wrap')[0].addEventListener('scroll', reAdjustPosition);

      // fakeEl.style.position = 'absolute'
      // fakeEl.style.top = rect.top + 'px'
      // fakeEl.style.left = rect.left + 'px'

      // Insert fakeEl at the position where el was

      document.body.appendChild(el);
      setTimeout(() => {
        reAdjustPosition();
      }, 0);
    }

    // Return a function to restore the original position if needed
    return reAdjustPosition;
  };
  return convertToFixed(el);
};
module.exports.extractNumberFromText = text => {
  if (!text) {
    return 0;
  }
  const match = text.match(/(\d+(\.\d+)?)/);
  if (match) {
    return parseFloat(match[0]);
  }
  return 0;
};
module.exports.createFixSwitcher = el => {
  const parent = el.parentNode;
  const fakeEl = document.createElement('DIV');
  fakeEl.classList.add('gwd-fake-el');
  fakeEl.classList.add('gwd-new-jd');
  if (G.aliSite) {
    (__webpack_require__(30888).waitForConditionFn)(() => $('.block2--MLcO9YdF').length).then(() => {
      const rect = $('.block2--MLcO9YdF')[0].getBoundingClientRect();
      $('.block2--MLcO9YdF').css('height', Math.round(rect.height) + 'px');
    });
  }
  const parentRect = parent.getBoundingClientRect();
  const reAdjustPosition = () => {
    const rect = el.getBoundingClientRect();
    const fakeElRect = fakeEl.getBoundingClientRect();
    if (rect.width) {
      fakeEl.style.width = Math.round(rect.width) + 'px';
      fakeEl.style.height = rect.height + 'px';
    }
    const fakeLeft = fakeElRect.left;
    const fakeTop = fakeElRect.top;
    const fakeLeftRounded = Math.round(fakeLeft);
    const fakeTopRounded = Math.round(fakeTop);
    (__webpack_require__(7129).log)(`fakeLeft ${fakeLeft} ${fakeLeftRounded} fakeTop ${fakeTop} ${fakeTopRounded}`);
    // setTimeout(() => {
    el.style.transform = `translate(${fakeLeftRounded}px, ${fakeTopRounded}px)`;
    // }, 0)
  };
  let oriPosition = el.style.position;
  let oriTop = el.style.top;
  let oriLeft = el.style.left;
  let mode = 'normal';
  const replaceToFixed = () => {
    if (mode === 'fixed') {
      return;
    }
    mode = 'fixed';
    // console.log('replaceToFixed')
    oriPosition = el.style.position;
    oriTop = el.style.top;
    oriLeft = el.style.left;
    const rect = el.getBoundingClientRect();
    fakeEl.style.width = rect.width + 'px';
    fakeEl.style.height = rect.height + 'px';
    fakeEl.style.marginBottom = '12px';
    fakeEl.style.position = 'sticky';
    fakeEl.style.top = oriTop;
    fakeEl.style.left = oriLeft;
    parent.replaceChild(fakeEl, el);
    el.style.position = 'fixed';
    el.style.width = Math.round(rect.width) + 'px'; // Maintain the width
    // el.style.height = rect.height + 'px'; // Maintain the height
    el.style.top = '0';
    el.style.left = '0';
    reAdjustPosition();
    document.body.appendChild(el);
    window.addEventListener('scroll', reAdjustPosition);
    if (G.site === '360buy') {
      $('.information-wrap')[0].addEventListener('scroll', reAdjustPosition);
    }
  };
  const restorePosition = () => {
    if (mode === 'normal') {
      return;
    }
    mode = 'normal';
    // console.log('restorePosition')
    el.style.position = oriPosition;
    el.style.top = oriTop;
    el.style.left = oriLeft;
    el.style.transform = '';
    parent.replaceChild(el, fakeEl);
    window.removeEventListener('scroll', reAdjustPosition);
    if (G.site === '360buy') {
      $('.information-wrap')[0].removeEventListener('scroll', reAdjustPosition);
    }
  };
  return {
    replaceToFixed,
    restorePosition
  };
};

/***/ }),

/***/ 60510:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ DateInputvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ DateInput)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Controls/DateInput.vue?vue&type=template&id=5d8ea5dc&scoped=true
var DateInputvue_type_template_id_5d8ea5dc_scoped_true = __webpack_require__(12311);
;// ./src/standard/module/components/Controls/DateInput.vue?vue&type=template&id=5d8ea5dc&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Controls/DateInput.vue?vue&type=script&lang=js
var DateInputvue_type_script_lang_js = __webpack_require__(17162);
;// ./src/standard/module/components/Controls/DateInput.vue?vue&type=script&lang=js
 /* harmony default export */ const Controls_DateInputvue_type_script_lang_js = (DateInputvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Controls/DateInput.vue?vue&type=style&index=0&id=5d8ea5dc&prod&scoped=true&lang=less
var DateInputvue_type_style_index_0_id_5d8ea5dc_prod_scoped_true_lang_less = __webpack_require__(89287);
;// ./src/standard/module/components/Controls/DateInput.vue?vue&type=style&index=0&id=5d8ea5dc&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/Controls/DateInput.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  Controls_DateInputvue_type_script_lang_js,
  DateInputvue_type_template_id_5d8ea5dc_scoped_true/* render */.XX,
  DateInputvue_type_template_id_5d8ea5dc_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "5d8ea5dc",
  null
  
)

/* harmony default export */ const DateInput = (component.exports);

/***/ }),

/***/ 60721:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _viewerWindow_vue_vue_type_template_id_40244662_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22932);
/* harmony import */ var _viewerWindow_vue_vue_type_script_lang_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1365);
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _viewerWindow_vue_vue_type_script_lang_ts__WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _viewerWindow_vue_vue_type_script_lang_ts__WEBPACK_IMPORTED_MODULE_1__[__WEBPACK_IMPORT_KEY__]
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
/* harmony import */ var _viewerWindow_vue_vue_type_style_index_0_id_40244662_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(59286);
/* harmony import */ var _viewerWindow_vue_vue_type_style_index_1_id_40244662_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37953);
/* harmony import */ var _viewerWindow_vue_vue_type_style_index_2_id_40244662_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20408);
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(14486);



;




/* normalize component */

var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(
  _viewerWindow_vue_vue_type_script_lang_ts__WEBPACK_IMPORTED_MODULE_1__["default"],
  _viewerWindow_vue_vue_type_template_id_40244662_scoped_true__WEBPACK_IMPORTED_MODULE_0__/* .render */ .XX,
  _viewerWindow_vue_vue_type_template_id_40244662_scoped_true__WEBPACK_IMPORTED_MODULE_0__/* .staticRenderFns */ .Yp,
  false,
  null,
  "40244662",
  null
  
)

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports);

/***/ }),

/***/ 60727:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-member-qr[data-v-6a1278a7] {\n  width: 148px;\n  height: 156px;\n  background: #FFF7F7;\n  border: 1px solid #FF3D5D;\n}\n.gwd-member-qr span[data-v-6a1278a7] {\n  display: inline-block;\n}\n.gwd-member-qr img[data-v-6a1278a7] {\n  margin-top: 7px;\n  width: 120px;\n  height: 120px;\n}\n.gwd-member-qr .gwd-bigger[data-v-6a1278a7] {\n  color: #FF3D5D;\n  font-size: 13px;\n}\n.gwd-member-qr .gwd-font11[data-v-6a1278a7] {\n  font-size: 12px;\n  transform: scale(0.8333);\n  transform-origin: bottom center;\n}\n.gwd-member-qr .gwd-bottom-desc[data-v-6a1278a7] {\n  line-height: 12px;\n  font-size: 12px;\n  transform: scale(0.833);\n  transform-origin: top center;\n  color: #999999;\n}\n", ""]);

// exports


/***/ }),

/***/ 60788:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var isObject = __webpack_require__(20034);
var classof = __webpack_require__(22195);
var wellKnownSymbol = __webpack_require__(78227);

var MATCH = wellKnownSymbol('match');

// `IsRegExp` abstract operation
// https://tc39.es/ecma262/#sec-isregexp
module.exports = function (it) {
  var isRegExp;
  return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
};


/***/ }),

/***/ 60877:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-row[data-v-549382c4] {\n  display: flex;\n  flex-direction: row;\n}\n.gwd-inline-row[data-v-549382c4] {\n  display: inline-flex;\n  flex-direction: row;\n}\n.gwd-column[data-v-549382c4] {\n  display: flex;\n  flex-direction: column;\n}\n.gwd-inline-column[data-v-549382c4] {\n  display: inline-flex;\n  flex-direction: column;\n}\n.gwd-align[data-v-549382c4] {\n  align-content: center;\n  align-items: center;\n}\n.gwd-jcc[data-v-549382c4] {\n  justify-content: center;\n}\n.gwd-jic[data-v-549382c4] {\n  justify-items: center;\n}\n.gwd-button[data-v-549382c4] {\n  outline: none;\n  border: none;\n}\n.bjg-bar-button[data-v-549382c4] {\n  font-size: 0;\n}\n.bjg-hover-bg[data-v-549382c4] {\n  background: #fffbef;\n}\n.bjg-bar-button[data-v-549382c4]:hover {\n  background: #fffbef;\n  cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window[data-v-549382c4] {\n  display: block;\n}\n.mainbar-fold .bjg-bar-button[data-v-549382c4],\n.mainbar-fold #top_coupon_btn[data-v-549382c4],\n.mainbar-fold .rinfo-btn[data-v-549382c4],\n.mainbar-fold .gwd-bottom-tmall[data-v-549382c4] {\n  display: none!important;\n}\n.gwd-font12[data-v-549382c4] {\n  font-size: 12px;\n}\n.gwd-font14[data-v-549382c4] {\n  font-size: 14px;\n}\n.gwd-red[data-v-549382c4] {\n  color: #ff3532;\n}\n.gwd-red-bg[data-v-549382c4] {\n  background: #ff3532;\n}\n.gwd-hui333[data-v-549382c4] {\n  color: #333333;\n}\n.gwd-hui999[data-v-549382c4] {\n  color: #999999;\n}\n.gwd-font10[data-v-549382c4] {\n  font-size: 12px;\n  transform: scale(0.8333);\n  transform-origin: bottom center;\n}\n.gwd-font11[data-v-549382c4] {\n  font-size: 12px;\n  transform: scale(0.91666);\n  transform-origin: bottom center;\n}\n.gwd-font9[data-v-549382c4] {\n  font-size: 12px;\n  transform: scale(0.75);\n  transform-origin: bottom center;\n}\n.gwd-hoverable[data-v-549382c4]:hover {\n  background: #edf1f2;\n}\n.right-info > *[data-v-549382c4] {\n  border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit[data-v-549382c4]:hover {\n  color: #e03024 !important;\n}\n.gwd-button[data-v-549382c4]:hover {\n  filter: brightness(1.1);\n}\n.gwd-button[data-v-549382c4] {\n  padding-top: 1px;\n  padding-bottom: 1px;\n}\n.gwd-button[data-v-549382c4]:active {\n  filter: brightness(0.9);\n}\n.gwd-fadeout-5s[data-v-549382c4] {\n  opacity: 0;\n  transition: opacity 5s;\n}\n.gwd-scrollbar[data-v-549382c4]::-webkit-scrollbar {\n  width: 6px;\n  border-radius: 17px;\n}\n.gwd-scrollbar[data-v-549382c4]::-webkit-scrollbar-thumb {\n  border-radius: 17px;\n  background: #999;\n}\n#gwdang_main[data-v-549382c4],\n.gwdang-main[data-v-549382c4],\n.bjgext-detail[data-v-549382c4] {\n  font-size: 12px;\n}\n#gwdang_main button[data-v-549382c4],\n.gwdang-main button[data-v-549382c4],\n.bjgext-detail button[data-v-549382c4] {\n  text-align: center;\n}\n.gwd-width-100[data-v-549382c4] {\n  width: 100%;\n}\n.gwd-overlay[data-v-549382c4] {\n  font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n  font-size: 0;\n  position: fixed;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  background: rgba(0, 0, 0, 0.35);\n  z-index: 999999999;\n}\n.gwd-font-pfm[data-v-549382c4] {\n  font-family: 'PingFangSC-Medium';\n  font-weight: normal!important;\n}\n@font-face {\n  font-family: 'PingFangSC-Medium';\n  src: local('PingFangSC-Medium');\n}\n.gwd-font-pfm[data-v-549382c4] {\n  font-family: local('PingFangSC-Medium'), system-ui;\n  font-weight: bold;\n}\n#gwd_minibar svg[data-v-549382c4],\n.gwdang-main svg[data-v-549382c4],\n#bjgext_mb_bg svg[data-v-549382c4],\n#bjgext_mainbar svg[data-v-549382c4] {\n  fill: transparent;\n}\n.gwd-common-font[data-v-549382c4] {\n  font-family: 'PingFang SC', 'Microsoft YaHei', '\\5FAE\\8F6F\\96C5\\9ED1', 'Hiragino Sans GB', 'WenQuanYi Micro Hei';\n}\n.gwd-btn-submit[data-v-549382c4] {\n  border: none;\n  outline: none;\n  background: #48befe;\n  width: 128px;\n  height: 32px;\n  font-size: 14px;\n  color: white;\n  border-radius: 4px;\n  cursor: pointer;\n}\n.gwd-btn-del[data-v-549382c4] {\n  width: 60px;\n  height: 20px;\n  border-radius: 2px 2px 2px 2px;\n  opacity: 1;\n  border: 1px solid #E6E9EB;\n  color: #404547;\n  background: white;\n  position: relative;\n  box-sizing: border-box;\n}\n.gwd-btn-del[data-v-549382c4]:hover {\n  filter: brightness(1.05);\n  cursor: pointer;\n}\n.gwd-btn-del[data-v-549382c4]::before {\n  content: '';\n  position: absolute;\n  top: -1px;\n  left: -1px;\n  right: -1px;\n  bottom: -1px;\n  z-index: -1;\n  background: #e6e9eb;\n}\n.gwd-collection-detail[data-v-549382c4] {\n  font-family: 'Microsoft Yahei', tahoma, arial, 'Hiragino Sans GB', sans-serif;\n}\n.gwd-collection-detail .gwd-vline[data-v-549382c4] {\n  width: 0;\n  height: 197px;\n  border-right: 1px dashed #e6e9eb;\n  margin-left: 13px;\n  margin-right: 15px;\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option[data-v-549382c4] {\n  height: 24px;\n  white-space: nowrap;\n  position: relative;\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option span[data-v-549382c4] {\n  color: #404547;\n  font-size: 13px;\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option span.gwd-currency[data-v-549382c4] {\n  color: #48befe;\n  font-size: 16px;\n  position: absolute;\n  left: 82px;\n  top: 13px;\n  transform: translateY(-50%);\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option .gwd-remind-current[data-v-549382c4] {\n  margin-left: 8px;\n  width: 57px;\n}\n.gwd-remind-error-text[data-v-549382c4] {\n  color: #d80001;\n  position: absolute;\n  bottom: 61px;\n  left: 0;\n  right: 0;\n  text-align: center;\n}\n.gwd-remind-hint-text[data-v-549382c4] {\n  color: #48befe;\n  position: absolute;\n  bottom: 61px;\n  left: 0;\n  right: 0;\n  text-align: center;\n}\n.gwd-red-price[data-v-549382c4] {\n  color: #d80001;\n}\n.gwd-collection-comp[data-v-549382c4] {\n  border-left: 1px solid #e6e9eb;\n}\n.gwd-collection-detail[data-v-549382c4] {\n  width: 300px;\n  position: relative;\n}\n.gwd-collection-detail .gwd-container[data-v-549382c4] {\n  border-radius: 4px;\n  background: #f8fcfe;\n  padding: 8px;\n  box-sizing: border-box;\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option span.gwd-currency[data-v-549382c4] {\n  left: 82px;\n}\n.gwd-collection-detail.gwd-ht[data-v-549382c4] {\n  width: 335px;\n}\n", ""]);

// exports


/***/ }),

/***/ 61034:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var call = __webpack_require__(69565);
var hasOwn = __webpack_require__(39297);
var isPrototypeOf = __webpack_require__(1625);
var regExpFlags = __webpack_require__(67979);

var RegExpPrototype = RegExp.prototype;

module.exports = function (R) {
  var flags = R.flags;
  return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)
    ? call(regExpFlags, R) : flags;
};


/***/ }),

/***/ 61154:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(77707);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("a34428ba", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 61224:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABcBJREFUWEelV01MVUcU/s59VI3Y+EzA7uDpqmmr4LJJQWisSEqFxBqMxpQmXTQ0KaILC0J4bSPYdOEjqdRSjdggxlItTau2m0KNcdNFkbjojp+t/FyaosYQppw5M3PnPh7UxJeYe7nO3POd7/vOmXMJz/BTFUhiQ14pCHUAdoOQAigJIoCWQiAxCuA+SI3Qz0+HnuGVbgmttVgHXhc0gegYiJJ6LUGBiCA7+Z6fkbnygollgH0ALtPQk4n/A7MqAFUVNC0H6AAFWwClJDgH0/9IP7PBGUgQ2GcCjhiIStP1J5fXApETgNobnAV01pydzdS+2D6Tq11jr4rBeAwpdNONx82rgVgBQFUFl6CoIXqxl7nyso6kEElEDrkGBrZlDOijwYX3c4GIAdCZs94+3aJ7pL37v5gX4mzwBsccoBkBZejavyuYcADUW4kGEC6BSBlqrdHiwVlqXxabuYAUSfQzbUzLCkCKmWmmgYVunwlZvQ8pLCWGEVDKZa+p1GaTl+45qrC1mPB7P/BwMnoxA/JBRAx5XjGgiUI8SmyjoTC0IGT33oDdns5RYsJC7cfAB1/Kngd3gPYqP9usewNIfOAxYEo2oM+o/590HMC+xDhAKc94XHZCIf+aLxDePCp7xu8DJ16Xe21Eu05BStHKYJhzTNq1mENeYjv1CQukqhK1CGjIaGdo05SJBAxh+06gdRDI3wxcOw388hUbKwLBm105Oh/ES9SZmVWlSuoPRwRAdV4GoCbjdGsiu9lmKMHyk8DjeRPYmZHXRusYV2oncPQM8EoZsDAPTE8BU2PA3avA33c5bDd9F+pqYwDDIKqQ+jVtVcpI6NdGjDl8JThbFbzu1XLC8QEBm+vHAPqOj9IXf+4SAG+/MOf1+WwGomxdg7GONqgCE0VnXgK03RKpfu0BbnSJCZmRssPAy28ABUW8ISSiLQbAOlP3vnZePedkYEW9A4VFQNc9CX6jC/jxTMSi9cfGzUBVI6H2JOPSvJGqYQC6YqJTbrUzwDnftl6WKCCdVfstAfFbD9DfYpjMfqcxbt1JUO0nBsA7LEHAglkAXpOxIpLp7z793vque4TiHcDkGNBWZjI3B5LrjLEyDenirJFg//q/AJS49vtSsRhoYsxKI1Gl5s1R7Lme3V7dyN0R6KxRmJmy64VV1xssYM32CF2cqxQJ9q8/C8IxvFYOHGqDvvJvuB/4/rTSJRQbONzZD1R/JOW2EErm01PmKI5JamYJfktg23OGLszqg4lU254K1LcPu8D8Mq7drcUCZLATuH1O4dG8NBspTXFz9wP5+0oLa5/ddqP1tkytoRNUR9/M/CQAlGL9x7EQJnHzHHCzR5xcf0ph9xHZyvT+0AXcuSIZbE0Bp25GpmMAWh6uSWO8eAs20jF4TFDv7DbnLr5RVz9P41ZPBx6F8fZZWKTQcZtQaNhgANe7FA60EMqPAA+ngBM7/BkxOo5d+WZPVSpNvbOfxgHUJZPIezoOQNqXO2LNsMkmO9AqzLA8fGVvdNYAM9ojUcPKHtFMvzKlPoFgqZLOh25YjQaSg/lNgMpEg6fX4filBUUK77ZyR5M93zYCdwdM9nJ4yl57r3tEdGjpxFQDfT0TG1IdAC3FwU0ZBKrJlF3U8yULOZ4ZAAfSwf1xPEf3TNg+bZJRSFPvtKPfkmPl0FdVn89jGY9n3rngzX+usbjJN/KNjGJiOF5nj2w/QhaIGAN2nTq8SY7oSD+vCQlOc0rG58doHjQgcubIux0TOQHoCIdfbFgWtAOBKtaSuFnfzXfGeM60nhH1bShjntoChY4YzZKCBrEqAL3mUDKFvKX3EFADgGJT6+YLKPZRYiZoDY5ruRsbFzOUkbFLfViQzgmCULkmgJh0DUn+MK0AoQSgUgTuW3EOwCQIfyARDGHD4qgNHNufC4TC2gysoO05H6xgYol2PTMDzxnbbVeNyVIs5tUhwAidnx75Dyb3yo0IA62zAAAAAElFTkSuQmCC";

/***/ }),

/***/ 61350:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);

Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getCurrentProduct = getCurrentProduct;
var skuUtil_1 = __webpack_require__(90827);
var extractAliDetails = function (skuInfo) {
    var _a;
    if (!((_a = skuInfo === null || skuInfo === void 0 ? void 0 : skuInfo.componentsVO) === null || _a === void 0 ? void 0 : _a.extensionInfoVO)) {
        return '';
    }
    var infos = skuInfo.componentsVO.extensionInfoVO.infos;
    var info = infos.find(function (info) { return info.type === 'BASE_PROPS'; });
    if (!info) {
        return '';
    }
    var items = info.items;
    var details = items.map(function (item) {
        if (!item.text)
            return '';
        var title = item.title;
        var text = item.text.join(',');
        return "".concat(title, ":").concat(text);
    });
    return details.join('; ');
};
var extractJdDetails = function () {
    if ($('.goods-base').length) {
        return $('.goods-base .item').toArray().map(function (x) {
            var title = $(x).find('.name').text().trim();
            var text = $(x).find('.text').text().trim();
            return "".concat(title, ":").concat(text);
        }).join('; ');
    }
    if ($('#product-attribute .item').length) {
        return $('#product-attribute .item').toArray().map(function (x) {
            var title = $(x).find('.label').text().trim();
            var text = $(x).find('.value').text().trim();
            return "".concat(title, ":").concat(text);
        }).join('; ');
    }
    return $('.Ptable-item dl.clearfix').toArray().map(function (x) {
        var title = $(x).find('dt').text().trim();
        var text = $(x).find('dd').text().trim();
        return "".concat(title, ":").concat(text);
    }).join('; ');
};
var extractVipDetails = function () {
    return $('.J_dc_table tr').toArray().map(function (x) {
        var ths = $(x).find('.dc-table-tit');
        var pairs = [];
        ths.each(function () {
            var title = $(this).text().trim();
            var text = $(this).next('td').text().trim();
            pairs.push("".concat(title, ":").concat(text));
        });
        return pairs.join('; ');
    }).join('; ');
};
function getCurrentProduct() {
    var _a, _b, _c, _d, _e;
    var product = {
        title: G.dp.title,
        price: G.dp.price,
        img: G.dp.img,
        dpId: G.dp.dpId,
        url: location.href,
    };
    if (G.aliSite && ((_b = (_a = G.aliSkuInfo) === null || _a === void 0 ? void 0 : _a.componentsVO) === null || _b === void 0 ? void 0 : _b.extensionInfoVO)) {
        var details = extractAliDetails(G.aliSkuInfo);
        product.details = details;
        var skuPrices = (0, skuUtil_1.extractAliProductPrice)(G.aliSkuInfo);
        var skuId_1 = (__webpack_require__(60340).getParameterByName)('skuId', location.href);
        var theProduct = skuPrices.find(function (x) { return x.skuId === skuId_1; });
        if (theProduct) {
            product.price = theProduct.price;
        }
        if ((_d = (_c = G.aliSkuInfo) === null || _c === void 0 ? void 0 : _c.seller) === null || _d === void 0 ? void 0 : _d.shopName) {
            product.shopName = G.aliSkuInfo.seller.shopName;
        }
        product.title = G.aliSkuInfo.item.title;
    }
    if (G.site === '360buy') {
        var details = extractJdDetails();
        product.details = details;
        if (pageConfig.product.fPrice) {
            product.price = parseFloat(pageConfig.product.fPrice);
        }
        else if (pageConfig.product.jp) {
            product.price = parseFloat(pageConfig.product.jp);
        }
        else if ((_e = pageConfig.product.pinGouInfo) === null || _e === void 0 ? void 0 : _e.bp) {
            product.price = parseFloat(pageConfig.product.pinGouInfo.bp);
        }
        product.shopName = $('.top-name').text().trim();
        if (!product.shopName) {
            product.shopName = $('.J-hove-wrap .name a').text();
        }
    }
    if (G.site === 'vipshop') {
        var details = extractVipDetails();
        product.details = details;
    }
    if (!product.shopName) {
        product.shopName = {
            '360buy': '京东',
            'tmall': '天猫',
            'taobao': '淘宝',
        }[G.site];
    }
    return product;
}


/***/ }),

/***/ 61494:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, pagetype = $data.pagetype, data = $data.data, housecode = $data.housecode, server = $data.server, s_server = $data.s_server;
    $$out += '<div class="house-trend-box ';
    $$out += $escape(pagetype);
    $$out += ' trend-box';
    $$out += $escape(data.trend);
    $$out += '">\n  <div class="houset-btn">\n    <a class="house-trend-bg" title="撸房价"></a>\n    <div class="ht-trend-desc">\n      <span class="h-color';
    $$out += $escape(data.trend);
    $$out += '">';
    $$out += $escape(data.trendMsg);
    $$out += '</span>\n      <em class="trend-icon';
    $$out += $escape(data.trend);
    $$out += ' house-trend-bg"></em>\n    </div>\n    <div class="ht-price-remind" data-id="';
    $$out += $escape(housecode);
    $$out += '">\n      <em class="house-trend-bg"></em>\n      <span>降价提醒</span>  \n    </div>\n  </div>\n  <div class="houset-detail">\n    <div class="house-trend-img" id="house-trend-';
    $$out += $escape(housecode);
    $$out += '" >\n       <img data-src="';
    $$out += $escape(server);
    $$out += $escape(data.trendImg);
    $$out += '&width=460&height=210&plotFontSize=10">\n    </div>\n    <div class="house-price-qrcode">\n      <span class="mgtop">每日成交行情</span>\n      <span class="red-pri">最新降价房源</span>\n      <img src="';
    $$out += $escape(s_server);
    $$out += '/images/extensions/newbar/housepri-qrcode2.png">\n      <p>扫码关注撸房价</p>\n      <p class="house-p-p2">降价提醒你</p>\n    </div>\n    <div class="price-range">\n      ';
    if (data.maxPrice == data.minPrice) {
        $$out += '\n        <span >现价\uFF1A';
        $$out += $escape(data.maxPrice);
        $$out += '万</span>\n      ';
    } else {
        $$out += '\n        <span class="toppri">最高价:';
        $$out += $escape(data.maxPrice);
        $$out += '万</span>\n        <span class="lowpri">最低价:';
        $$out += $escape(data.minPrice);
        $$out += '万</span>\n      ';
    }
    $$out += '\n    </div>\n    <div class="change_trend_btn">\n      <div>\n        <span class="house-trend-b trend-choose">房源行情</span>\n        <span class="community-trend-b">小区行情</span>\n      </div>\n      \n    </div>\n    <div class="community-price" id="community-';
    $$out += $escape(housecode);
    $$out += '" data-u="';
    $$out += $escape(server);
    $$out += $escape(data.communityPrice);
    $$out += '" data-c="';
    $$out += $escape(data.community);
    $$out += '"></div>\n  </div>\n  <div class="ht-wxqrcode">\n    <span class="ht-wx-sp1">关注公众号</span>\n    <span class="ht-wx-sp2">房源降价实时提醒</span>\n    <img src="';
    $$out += $escape(s_server);
    $$out += '/images/extensions/newbar/housepri-qrcode2.png">\n    <span class="ht-wx-sp3">不再提示</span>\n  </div>\n\n</div>';
    return $$out;
};

/***/ }),

/***/ 61517:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', isAliSite = $data.isAliSite, nostore = $data.nostore, $escape = $imports.$escape, data = $data.data, lowestTime = $data.lowestTime, $each = $imports.$each, $value = $data.$value, $index = $data.$index, isGwd = $data.isGwd;
    $$out += '<div class="price_tip_detail ';
    if (isAliSite) {
        $$out += ' alitip';
    }
    $$out += ' ';
    if (nostore) {
        $$out += ' nostoretip ';
    }
    $$out += '">\n  <div class="tip-box-left">\n    <div class="tip-title">最近180天价格历史</div>\n    <div class="tip-price-status status';
    $$out += $escape(data.trend.store[0].price_status);
    $$out += '">\n      <em class="tip-bg"></em>\n      <span>';
    $$out += $escape(data.trend.store[0].status_tle);
    $$out += '</span>\n    </div>\n    <div class="highest-lowest-box">\n      ';
    if (data.trend.store[0].nowprice) {
        $$out += '\n        <span class="tip-now-btn" style="color: #3fc0f0">现价:<span class="fontSizec" style="color: #3fc0f0">';
        $$out += $escape(data.trend.store[0].nowprice);
        $$out += '</span></span>\n      ';
    } else {
        $$out += '\n      <span class="tip-highest-btn">最高:<span class="fontSizec">';
        $$out += $escape(data.trend.store[0].max_price);
        $$out += '</span></span>\n      <span class="tip-lowest-btn">最低:<span class="fontSizec">';
        $$out += $escape(data.trend.store[0].min_price);
        $$out += '</span></span>\n      ';
    }
    $$out += '\n      <span class="tip-lowest-time fontSizec">';
    $$out += $escape(lowestTime);
    $$out += '</span>\n    </div>\n    <div class="tip-chart" id="gwd_price_tip_trend"></div>\n    <div class="gwd-coupon-line gwd-row gwd-align gwd-jcc"></div>\n  </div>\n  ';
    if (!isAliSite && !nostore) {
        $$out += '\n  <div class="tip-box-right">\n    <p>商城比价</p>\n    <ul>\n      ';
        $each(data.store, function ($value, $index) {
            $$out += '\n      <li>\n        <a href="';
            $$out += $escape($value.url);
            $$out += '" class="tip-com-item" target="_blank">\n          <img src="';
            $$out += $escape($value.icon_url);
            $$out += '" alt="';
            $$out += $escape($value.site_name);
            $$out += '" title="';
            $$out += $escape($value.site_name);
            $$out += '">\n          <span class="fontSizec">';
            $$out += $escape($value.price);
            $$out += '</span>\n        </a>\n      </li>\n      ';
        });
        $$out += '\n    </ul>\n    ';
        if (isGwd) {
            $$out += '\n    <a class="tip-com-all" href="';
            $$out += $escape(data.more_link);
            $$out += '" target="_blank">';
            $$out += $escape(data.more_tle);
            $$out += '</a>\n    ';
        }
        $$out += '\n  </div>\n  ';
    }
    $$out += '\n  <style type="text/css">\n    .gwd-coupon-line {\n      font-size: 0;\n      float: left;\n      width: 100%;\n      height: 46px;\n    }\n\n    .price_tip_detail svg path {\n      fill: #5acffb;\n    }\n\n    .gwd-coupon-line img {\n      width: 20px;\n      height: 20px;\n      margin-right: 4px;\n    }\n\n    .gwd-coupon-line a {\n      display: inline-flex;\n      align-items: center;\n    }\n\n    .gwd-coupon-line a:hover span {\n      text-decoration: underline;\n    }\n\n    .tip-bg {\n      background: url("https://cdn.gwdang.com/images/extensions/xbt/mini-icon.png") 0px 0px no-repeat;\n    }\n    .price_tip_detail {\n      height: 238px;\n    }\n    .price_tip_detail.alitip {\n      height: 218px;\n    }\n    #gwd_price_tip_detail, #gwd_price_tip_detail * {\n      font-family: "Microsoft YaHei";\n      box-sizing: content-box;\n    }\n    #bjgou_price_tip_detail, #bjgou_price_tip_detail * {\n        font-family: "Microsoft YaHei";\n        box-sizing: content-box;\n    }\n    .tip-box-left {\n      float: left;\n      width: 336px;\n      /* height: 100%; */\n      margin-left: 6px;\n      margin-right: 5px;\n      position: relative;\n    }\n    .nostoretip .tip-box-left{\n      margin-left: 17px;\n      margin-right: 17px;\n    }\n    #gwd_price_tip_detail .fontSizec {\n      font-family: Helvetica;\n    }\n    #bjgou_price_tip_detail .fontSizec {\n        font-family: Helvetica;\n    }\n    .tip-title {\n      height: 15px;\n      line-height: 15px;\n      margin-top: 14px;\n      margin-bottom: 13px;\n      text-align: center;\n      width: 100%;\n      font-weight: bold;\n      float: left;\n      font-size: 12px;\n      color: #5E707C;\n    }\n    .tip-price-status {\n      float: left;\n      width: 70px;\n      height: 16px;\n      margin-left: 8px;\n      white-space: nowrap;\n    }\n    .tip-price-status em {\n      width: 16px;\n      height: 10px;\n      float: left;\n      margin-top: 3px;\n    }\n    .tip-price-status span {\n      float: left;\n      margin-left: 5px;\n      width: 48px;\n      height: 16px;\n      color: #5E707C;\n      font-size: 12px;\n      line-height: 16px;\n    }\n    .tip-highest-btn, .tip-now-btn {\n      color: #E4393C;\n      font-weight: bold;\n      margin-left: 14px;\n      margin-right: 10px;\n    }\n    .highest-lowest-box .tip-now-btn {\n      color: #3FC0F0;\n      margin-right: 0px;\n    }\n    .tip-lowest-btn {\n      color: #35bd67;\n      font-weight: bold;\n    }\n    .tip-lowest-time {\n      font-size: 12px;\n      color: #9D9D9D;\n      float: left;\n      line-height: 18px!important;\n      margin-left: 2px;\n    }\n    .highest-lowest-box {\n      float: left;\n      height: 16px;\n      line-height: 16px;\n      width: 254px;\n    }\n    .highest-lowest-box>span {\n      float: left;\n      line-height: 16px;\n      font-size: 12px;\n    }\n    .tip-info-btm {\n      font-size: 12px;\n      float: left;\n      height: 16px;\n      width: 324px;\n      line-height: 16px;\n      margin-top: 10px;\n    }\n    .tip-info-btm a {\n      float: left;\n    }\n    .tip-info-btm span {\n      float: left;\n    }\n    .tip-info-store {\n      cursor: default!important;\n    }\n    .tip-info-store em {\n      width: 10px;\n      height: 10px;\n      float: left;\n      margin-left: 31px;\n      margin-right: 5px;\n      margin-top: 5px!important;\n      background-position: -39px -23px;\n    }\n    a.tip-info-store span{\n      color: #5E707C;\n    }\n    .tip-info-promo em {\n      width: 12px;\n      height: 12px;\n      float: left;\n      margin-left: 24px;\n      margin-right: 5px;\n      background-position: -25px -22px;\n    }\n    .tip-info-promo span{\n      color: #48BEFE;\n    }\n    .tip-info-promo span:hover {\n      text-decoration: underline;\n    }\n    .tip-info-btm em {\n      margin-top: 3px;\n    }\n    .tip-box-right {\n      float: left;\n      width: 111px;\n      height: 100%;\n      border-left: 1px solid #F4F7F9;\n    }\n    .tip-box-right ul {\n      float: left;\n      margin: 0px;\n      margin-top: 12px;\n      padding: 0px;\n    }\n    .tip-box-right ul li {\n      height: 30px;\n      width: 113px;\n      float: left;\n      line-height: 30px;\n      list-style: none;\n      margin-top: 1px;\n    }\n    .tip-box-right ul li:first-child {\n      margin-top: 0px;\n    }\n    .tip-box-right ul li:hover {\n      background: #EDF5F8;\n    }\n    #gwd_price_tip_detail .tip-com-all, #bjgou_price_tip_detail .tip-com-all {\n      float: left;\n      margin-left: 15px;\n      margin-top: 16px;\n      color: #6B8393;\n      line-height: 13px;\n      height: 13px;\n      font-size: 12px;\n    }\n    #gwd_price_tip_detail .tip-com-all:hover, #bjgou_price_tip_detail .tip-com-all:hover{\n      color: #48BEFE;\n    }\n    .tip-box-right p{\n      font-size: 12px;\n      color: #5E707C;\n      font-weight: bold;\n      height: 15px;\n      width: 100%;\n      text-align: center;\n      line-height: 15px;\n      margin: 0px;\n      margin-top: 14px;\n    }\n    .tip-com-item {\n      float: left;\n      height: 30px;\n      width: 100%;\n      line-height: 30px;\n    }\n    .tip-com-item img {\n      height: 16px;\n      width: 16px;\n      float: left;\n      margin-left: 15px;\n      margin-right: 7px;\n      margin-top: 7px;\n    }\n    .tip-com-item span{\n      font-size: 12px;\n      color: #6B8393;\n    }\n    .tip-com-item, .tip-com-item span, .tip-com-all {\n      text-decoration: none!important;\n    }\n    .tip-chart {\n      width: 336px;\n      height: 126px;\n      margin-top: 6px;\n    }\n    .tip-chart svg .highcharts-series path {\n        fill: none;\n    }\n    .tip-chart .highcharts-tooltip path {\n        fill: white;\n    }\n  </style>\n  ';
    if (!isGwd) {
        $$out += '\n  <style>\n    .price_tip_detail {\n        height: 220px;\n    }\n\n    .tip-price-status em {\n        background-size: contain!important;\n        background-repeat: no-repeat!important;\n    }\n\n    .tip-price-status.status-1 em {\n        background: url(https://cdn.bijiago.com/images/extensions/bijiago/trend_down@2x.png);\n    }\n    .tip-price-status.status-2 em {\n        background: url(https://cdn.bijiago.com/images/extensions/bijiago/trend_lowest@2x.png);\n    }\n    .tip-price-status.status0 em {\n        background: url(https://cdn.bijiago.com/images/extensions/bijiago/trend_stable@2x.png);\n    }\n    .tip-price-status.status1 em {\n        background: url(https://cdn.bijiago.com/images/extensions/bijiago/trend_up@2x.png);\n    }\n  </style>\n  ';
    } else {
        $$out += '\n  <style>\n      .tip-price-status.status-1 em {\n          background-position: -5px -5px;\n      }\n      .tip-price-status.status-2 em {\n          background-position: -71px -5px;\n      }\n      .tip-price-status.status0 em {\n          background-position: -49px -5px;\n      }\n      .tip-price-status.status1 em {\n          background-position: -26px -5px;\n      }\n  </style>\n  ';
    }
    $$out += '\n</div>\n';
    return $$out;
};

/***/ }),

/***/ 61749:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
module.exports = __webpack_require__.p + "images/extensions/build/91b1f04fe4992298e04b.png";

/***/ }),

/***/ 61765:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-shaidan[data-v-1ba131f5] {\n  border-radius: 4px 4px 4px 4px;\n  border: 1px solid #E6E9EB;\n  margin-top: 6px;\n  margin-bottom: 6px;\n}\n.gwd-shaidan .gwd-header[data-v-1ba131f5] {\n  height: 38px;\n  background: linear-gradient(to top, #FFFFFF 0%, #F9F9F9 100%);\n  border-bottom: 1px solid #E6E9EB;\n}\n.gwd-shaidan .gwd-sd-list[data-v-1ba131f5] {\n  overflow-y: auto;\n}\n.gwd-shaidan.gwd-has-top[data-v-1ba131f5] {\n  margin-top: 58px;\n}\n", ""]);

// exports


/***/ }),

/***/ 61802:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


__webpack_require__(89463);
__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(28845);
__webpack_require__(373);
__webpack_require__(62480);
// window.securitySDK.sign({
//   pageFrom: 'https://detail.tmall.com',
//   imgFrom: 'plugin'
// }).then(console.log)
const extConsole = __webpack_require__(7129);
let securitySDK = {};
(function () {
  var _gwd_modules = {
    '_crypto': function (_exports, _module, _require) {
      'use strict';

      Object.defineProperty(_module, "__esModule", {
        value: true
      });
      _module.ICrypto = undefined;
      _module.ICrypto = {
        instance: window.crypto || window.msCrypto,
        subtle: {
          instance: (window.crypto || window.msCrypto || {}).subtle,
          digest: function (a, b) {
            if (this.instance) {
              if (typeof this.instance.digest != "function") {
                return null;
              } else {
                return this.instance.digest(a, b);
              }
            } else {
              return null;
            }
          }
        },
        getSubtle: function () {
          if (this.instance) {
            if (this.instance.subtle) {
              return this.subtle;
            } else {
              return null;
            }
          } else {
            return null;
          }
        },
        getRandomValues: function (_randomConfig) {
          if (this.instance) {
            if (typeof this.instance.getRandomValues != "function") {
              return null;
            } else {
              return this.instance.getRandomValues(_randomConfig);
            }
          } else {
            return null;
          }
        }
      };
    },
    635: function (_exports, _module, _require) {
      'use strict';

      Object.defineProperty(_module, "__esModule", {
        value: true
      });
      _module.getRandom = function () {
        let _rnd = new Uint8Array(32);
        _crypto.ICrypto.getRandomValues(_rnd);
        return (0, _utf8Util.arrayBufferToBase64)(_rnd.buffer);
      };
      const _crypto = _require('_crypto');
      const _utf8Util = _require('_utf8Util');
    },
    544: function (_exports, _module) {
      'use strict';

      Object.defineProperty(_module, "__esModule", {
        value: true
      });
      _module.getSalt = function () {
        return "6dbd0668a0634ae9badd25d3da236f47";
      };
    },
    283: function (_exports, _module, _require) {
      'use strict';

      Object.defineProperty(_module, "__esModule", {
        value: true
      });
      _module.cryptoAlg1 = function (_string) {
        return (0, _utf8Util.stringToUtf8Array)(`${_string}`).then(function (_res) {
          var _digProcess;
          if ((_digProcess = function (_a, _b) {
            try {
              const _subTle = _crypto.ICrypto.getSubtle();
              if (!_subTle) {
                return;
              }
              const _sha256Res = _subTle.digest("SHA-256", new Uint8Array());
              if (Promise && (_sha256Res2 = _sha256Res, (_promise = Promise) != null && typeof Symbol != "undefined" && _promise[Symbol.hasInstance] ? _promise[Symbol.hasInstance](_sha256Res2) : _sha256Res2 instanceof _promise)) {
                return _subTle.digest(_a, _b);
              } else if (Promise) {
                return new Promise(function (resolve, reject) {
                  const _subTleDig = _subTle.digest(_a, _b);
                  if (!_subTleDig) {
                    reject("no digest");
                  }
                  _subTleDig.oncomplete = function (digResult) {
                    var _digResTgt;
                    if (digResult != null && (_digResTgt = digResult.target) !== null && _digResTgt !== undefined && _digResTgt.result) {
                      resolve(_digResTgt.result);
                    } else {
                      reject("no digest res");
                    }
                  };
                  _subTleDig.onerror = function (err) {
                    reject(err);
                  };
                });
              } else {
                return null;
              }
            } catch (err) {}
            var _sha256Res2;
            var _promise;
          }("SHA-256", _res)) === null || _digProcess === undefined) {
            return undefined;
          } else {
            return _digProcess.then(function (result) {
              return (0, _utf8Util.arrayBufferToBase64)(result);
            });
          }
        }).catch(function (err) {});
      };
      const _crypto = _require('_crypto');
      const _utf8Util = _require('_utf8Util');
    },
    '_utf8Util': function (_exports, _module, _require) {
      'use strict';

      Object.defineProperty(_module, "__esModule", {
        value: true
      });
      _module.stringToUtf8Array = function (_string) {
        try {
          if (typeof TextEncoder == "function") {
            const _res = new TextEncoder().encode(_string);
            return Promise.resolve(_res);
          }
          if (typeof FileReader == "function") {
            const _blob = new Blob([_string], {
              type: "text/plain;charset=utf-8"
            });
            const _reader = new FileReader();
            _reader.readAsArrayBuffer(_blob);
            return new Promise(function (resolve, reject) {
              _reader.onload = function (data) {
                var _res;
                if (data == null || (_res = data.target) === null || _res === undefined || !_res.result) {
                  reject("stringToUtf8Array FileReader failed");
                  return;
                }
                const _result = new Uint8Array(data.target.result);
                resolve(_result);
              };
              _reader.onerror = function (err) {
                reject(err);
              };
            });
          }
          return Promise.resolve(new Uint8Array());
        } catch (err) {
          return Promise.resolve(new Uint8Array());
        }
      };
      _module.arrayBufferToBase64 = function (_arrayBuffer) {
        try {
          let _data = "";
          const _arr = new Uint8Array(_arrayBuffer);
          for (let i = 0; i < _arr.byteLength; i++) {
            _data += String.fromCharCode(_arr[i]);
          }
          return btoa(_data);
        } catch (err) {
          extConsole.warn(err);
          return "";
        }
      };
    },
    860: function (_exports, _module) {
      'use strict';

      Object.defineProperty(_module, "__esModule", {
        value: true
      });
      _module.simpleStringify = function () {
        let _arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
        return Object.keys(_arg).map(function (_argKey) {
          const _argValue = _arg == null ? undefined : _arg[_argKey];
          return `${encodeURIComponent(_argKey)}=${encodeURIComponent(JSON.stringify(_argValue))}`;
        }).join("&");
      };
    },
    429: function (_exports, _module, _require) {
      'use strict';

      function getAllEnumerable(obj, onlyEnumerable) {
        var _keys = Object.keys(obj);
        if (Object.getOwnPropertySymbols) {
          var symbols = Object.getOwnPropertySymbols(obj);
          if (onlyEnumerable) {
            symbols = symbols.filter(function (_symbol) {
              return Object.getOwnPropertyDescriptor(obj, _symbol).enumerable;
            });
          }
          _keys.push.apply(_keys, symbols);
        }
        return _keys;
      }
      function mergeInto(_target) {
        for (var _i = 1; _i < arguments.length; _i++) {
          var _arg = arguments[_i] != null ? arguments[_i] : {};
          if (_i % 2) {
            getAllEnumerable(Object(_arg), true).forEach(function (_enumerable) {
              modifyObject(_target, _enumerable, _arg[_enumerable]);
            });
          } else if (Object.getOwnPropertyDescriptors) {
            Object.defineProperties(_target, Object.getOwnPropertyDescriptors(_arg));
          } else {
            getAllEnumerable(Object(_arg)).forEach(function (_enumerable) {
              Object.defineProperty(_target, _enumerable, Object.getOwnPropertyDescriptor(_arg, _enumerable));
            });
          }
        }
        return _target;
      }
      function modifyObject(_targetObj, _key, _value) {
        if ((_key = function (_obj) {
          var _result = function (_toCheck, _type) {
            if (typeof _toCheck != "object" || !_toCheck) {
              return _toCheck;
            }
            var _toPrimitive = _toCheck[Symbol.toPrimitive];
            if (_toPrimitive !== undefined) {
              var _checkResult = _toPrimitive.call(_toCheck, _type || "default");
              if (typeof _checkResult != "object") {
                return _checkResult;
              }
              throw new TypeError("@@toPrimitive must return a primitive value.");
            }
            return (_type === "string" ? String : Number)(_toCheck);
          }(_obj, "string");
          if (typeof _result == "symbol") {
            return _result;
          } else {
            return _result + "";
          }
        }(_key)) in _targetObj) {
          Object.defineProperty(_targetObj, _key, {
            value: _value,
            enumerable: true,
            configurable: true,
            writable: true
          });
        } else {
          _targetObj[_key] = _value;
        }
        return _targetObj;
      }
      Object.defineProperty(_module, "__esModule", {
        value: true
      });
      _module.sign = function () {
        let _arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
        try {
          var _signProcess;
          if (!_crypto.ICrypto.instance) {
            return Promise.resolve({});
          }
          const _randomValue = (0, _randomGenerator.getRandom)();
          const _timestamp = `${Date.now()}`;
          let _object = _arg;
          if (typeof _arg != "object") {
            _object = {};
          }
          const _objToSign = mergeInto(mergeInto({}, _object), {}, {
            random: _randomValue,
            timestamp: _timestamp
          });
          const _stringToSign = JSON.stringify(_objToSign) + (0, _salt.getSalt)();
          return ((_signProcess = (0, _cryptoLib.cryptoAlg1)(_stringToSign)) === null || _signProcess === undefined ? undefined : _signProcess.then(function (_pcSignResult) {
            return {
              pcSign: _pcSignResult || "",
              random: _randomValue,
              timestamp: _timestamp
            };
          })) || Promise.resolve({});
        } catch (err) {
          return Promise.resolve({});
        }
      };
      const _crypto = _require('_crypto');
      const _randomGenerator = _require(635);
      const _salt = _require(544);
      const _cryptoLib = _require(283);
    }
  };
  var _gwd_installed_modules = {};
  window._gwd_modules = _gwd_installed_modules;
  function _gwd_import(_gwd_module) {
    var installed = _gwd_installed_modules[_gwd_module];
    if (installed !== undefined) {
      return installed.exports;
    }
    var module = _gwd_installed_modules[_gwd_module] = {
      exports: {}
    };
    _gwd_modules[_gwd_module].call(module.exports, module, module.exports, _gwd_import);
    return module.exports;
  }
  _gwd_import.g = function () {
    if (typeof globalThis == "object") {
      return globalThis;
    }
    try {
      return this || new Function("return this")();
    } catch (error) {
      if (typeof window == "object") {
        return window;
      }
    }
  }();
  var gwd_sec_sdk = {};
  (function () {
    'use strict';

    var _gwdSecSDK = gwd_sec_sdk;
    function _gwdCopy(a, b) {
      if (b == null || b > a.length) {
        b = a.length;
      }
      for (var i = 0, _new = Array(b); i < b; i++) {
        _new[i] = a[i];
      }
      return _new;
    }
    Object.defineProperty(_gwdSecSDK, "__esModule", {
      value: true
    });
    _gwdSecSDK.sign = _gwdSecSDK.BizCode = _gwdSecSDK.PiskMode = undefined;
    _gwdSecSDK.default = _gwdDefaultSecSDK;
    _gwdSecSDK.securitySDK = _gwdDefaultSecSDK;
    _gwdSecSDK.default = _gwdDefaultSecSDK;
    _gwdSecSDK.securitySDK = _gwdDefaultSecSDK;
    const _GWD_SignModule = _gwd_import(429);
    var GWD_PiskMode;
    var _BizCode;
    function _gwdDefaultSecSDK() {}
    Object.defineProperty(_gwdSecSDK, "sign", {
      enumerable: true,
      get: function () {
        return _GWD_SignModule.sign;
      }
    });
    (function (_piskMode) {
      _piskMode[_piskMode.DocListen = 1] = "DocListen";
      _piskMode[_piskMode.WindowOpen = 2] = "WindowOpen";
      _piskMode[_piskMode.DomHook = 4] = "DomHook";
      _piskMode[_piskMode.ALL = 3] = "ALL";
    })(GWD_PiskMode || (_gwdSecSDK.PiskMode = GWD_PiskMode = {}));
    (function (bizCode) {
      bizCode.Home = "home";
      bizCode.HomeTmall = "home_tmall";
      bizCode.HomeEnterprise = "home_enterprise";
      bizCode.HomeWorld = "home_world";
      bizCode.My = "my";
      bizCode.Cart = "cart";
      bizCode.Venue = "venue";
      bizCode.Detail = "detail";
      bizCode.Shop = "shop";
      bizCode.Bought = "bought";
      bizCode.Search = "search";
      bizCode.BusinessIndustry = "businessIndustry";
    })(_BizCode || (_gwdSecSDK.BizCode = _BizCode = {}));
  })();
  securitySDK = gwd_sec_sdk;
})();
module.exports = {
  securitySDK: securitySDK
};

/***/ }),

/***/ 61828:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var uncurryThis = __webpack_require__(79504);
var hasOwn = __webpack_require__(39297);
var toIndexedObject = __webpack_require__(25397);
var indexOf = (__webpack_require__(19617).indexOf);
var hiddenKeys = __webpack_require__(30421);

var push = uncurryThis([].push);

module.exports = function (object, names) {
  var O = toIndexedObject(object);
  var i = 0;
  var result = [];
  var key;
  for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
  // Don't enum bug & hidden keys
  while (names.length > i) if (hasOwn(O, key = names[i++])) {
    ~indexOf(result, key) || push(result, key);
  }
  return result;
};


/***/ }),

/***/ 61915:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ GiftMoneyTop)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/GiftMoneyTop.vue?vue&type=template&id=7b63187c&scoped=true
var GiftMoneyTopvue_type_template_id_7b63187c_scoped_true = __webpack_require__(97398);
;// ./src/common/components/GiftMoneyTop.vue?vue&type=template&id=7b63187c&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/GiftMoneyTop.vue?vue&type=script&lang=js
var GiftMoneyTopvue_type_script_lang_js = __webpack_require__(3403);
;// ./src/common/components/GiftMoneyTop.vue?vue&type=script&lang=js
 /* harmony default export */ const components_GiftMoneyTopvue_type_script_lang_js = (GiftMoneyTopvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/GiftMoneyTop.vue?vue&type=style&index=0&id=7b63187c&prod&scoped=true&lang=less
var GiftMoneyTopvue_type_style_index_0_id_7b63187c_prod_scoped_true_lang_less = __webpack_require__(88980);
;// ./src/common/components/GiftMoneyTop.vue?vue&type=style&index=0&id=7b63187c&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/GiftMoneyTop.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_GiftMoneyTopvue_type_script_lang_js,
  GiftMoneyTopvue_type_template_id_7b63187c_scoped_true/* render */.XX,
  GiftMoneyTopvue_type_template_id_7b63187c_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "7b63187c",
  null
  
)

/* harmony default export */ const GiftMoneyTop = (component.exports);

/***/ }),

/***/ 62106:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var makeBuiltIn = __webpack_require__(50283);
var defineProperty = __webpack_require__(24913);

module.exports = function (target, name, descriptor) {
  if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
  if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
  return defineProperty.f(target, name, descriptor);
};


/***/ }),

/***/ 62480:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

// TODO: Remove from `core-js@4`
__webpack_require__(55081);


/***/ }),

/***/ 62528:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, pri = $data.pri, tle = $data.tle, desc = $data.desc;
    $$out += '<div class="dsj-content" style="display: flex; flex-direction: row; position: relative">\n  <em class="setting-bg"></em>\n  <span class="dsj-promo-link" >\n    <span class="dsj-pri-info">\n      <span class="dsj-sp1">到手价:</span>\n      <span class="dsj-sp2">\xA5';
    $$out += $escape(pri);
    $$out += '</span>\n      ';
    if (tle) {
        $$out += '\n      <span class="dsj-sp3">(';
        $$out += $escape(tle);
        $$out += ')</span>\n      ';
    }
    $$out += '\n    </span>\n    <span class="dsj-text">';
    $$out += desc;
    $$out += '</span><img class="gwd-arrow" ';
    $$out += 'src="https://cdn.gwdang.com/images/extensions/DsjDownArrow@2x.png"';
    $$out += ' alt="" style="margin-left: 6px; width: 9px; height: 6px;">\n    <div id="gwd-pp" style="position: absolute"></div>\n    <div id="gwd-pp-hoverhelper"></div>\n  </span>\n  <span class="dsj-remind-icon setting-bg"></span>\n  <div class="dsj-content-detail">到手价指促销活动完美凑单和使用优惠券后的理论到手价\uFF0C不代表您的实际支付价格\u3002</div>\n  <style type="text/css">\n    #gwd-pp-hoverhelper {\n      position: absolute;\n      top: 34px;\n      bottom: -6px;\n      left: 0;\n      right: 0;\n    }\n\n    .dsj-content>em {\n      float: left;\n      width:16px;\n      height:16px;\n      margin: 9px 10px 9px 12px;\n      background-position: -251px -111px;\n    }\n    .dsj-text {\n      max-width: 240px;\n      display: inline-block;\n      overflow: hidden;\n      white-space: nowrap;\n      text-overflow: ellipsis;\n    }\n    .dsj-content {\n      width:460px;\n      height:34px;\n      position: relative;\n      line-height: 34px;\n      background-color: #fff;\n      border: 1px solid #e6e9eb;\n      border-top: none;\n    }\n    .dsj-pri-info {\n      margin-right: 10px;\n    }\n    .dsj-content * {\n      font-family: \'Microsoft YaHei\';\n    }\n    .dsj-pri-info span {\n      line-height: 34px;\n      height: 34px;\n    }\n    .dsj-sp1, .dsj-sp2 {\n      color: #E4393C;\n      font-size: 13px;\n      height: 17px;\n      width: auto;\n      font-weight: bold;\n    }\n    .dsj-sp2 {\n      margin-right: 10px;\n      margin-left: 3px;\n    }\n    .dsj-sp3, .dsj-promo-link {\n      font-size: 12px;\n      color: #7D7E80;\n    }\n    .dsj-promo-link {\n      /*width: 210px;*/\n      flex: 1;\n      height: 34px;\n      line-height: 34px;\n      overflow: hidden;\n      text-decoration: none!important;\n      text-overflow: ellipsis;\n      white-space: nowrap;\n      display: flex;\n      align-items: center;\n    }\n    .dsj-promo-link:hover {\n      cursor: text;\n    }\n    .dsj-promo-link.islink:hover {\n      cursor: pointer;\n      color: #f30213;\n    }\n    .dsj-content .dsj-remind-icon {\n      width:14px;\n      height:14px;\n      float: right;\n      margin-right: 12px;\n      margin-top: 10px;\n      background-position: -272px -112px;\n    }\n    .dsj-content .dsj-content-detail {\n      position: absolute;\n      height: 73px;\n      width: 132px;\n      line-height: 18px;\n      padding: 10px;\n      text-align: left;\n      color: #999;\n      top: 31px;\n      right: 3px;\n      background: rgba(254,255,247,1);\n      border: 1px solid #e5e5e5;\n      z-index: 9999999;\n      display: none;\n      font-size: 12px;\n    }\n    .dsj-content .dsj-remind-icon:hover+.dsj-content-detail {\n      display: block;\n    }\n    .dsj-content .dsj-content-detail:before {\n      display: block;\n      content: "";\n      width: 0;\n      height: 0;\n      border-width: 0px 5px 5px;\n      border-style: solid;\n      border-color: transparent transparent #b4b4b4;\n      position: absolute;\n      top: -5px;\n      left: 142px;\n      margin-left: -10px;\n    }\n    .dsj-content .dsj-content-detail:after {\n      display: block;\n      content: "";\n      width: 0;\n      height: 0;\n      border-width: 0 5px 5px;\n      border-style: solid;\n      border-color: transparent transparent #fff;\n      position: absolute;\n      top: -4px;\n      left: 132px;\n    }\n    .dsj-promo-link:hover .gwd-promo-plan {\n      display: block;\n    }\n\n    .dsj-promo-link:hover .gwd-arrow {\n      transform: rotate(180deg);\n    }\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 62529:
/***/ ((module) => {

"use strict";

// `CreateIterResultObject` abstract operation
// https://tc39.es/ecma262/#sec-createiterresultobject
module.exports = function (value, done) {
  return { value: value, done: done };
};


/***/ }),

/***/ 62794:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "gwd-row gwd-align gwd-img-same",
    class: `gwd-${_vm.site}`,
    attrs: {
      role: "button",
      title: _vm.transText("点击查看结果")
    },
    on: {
      click: function ($event) {
        $event.preventDefault();
        return _vm.openApp.apply(null, arguments);
      }
    }
  }, [_c("span", {
    staticStyle: {
      "text-align": "center",
      "margin-left": "1px"
    }
  }, [_vm._v(_vm._s(_vm.transText("图片"))), _c("br"), _vm._v(_vm._s(_vm.transText("找同款")))]), _vm._v(" "), _c("img", {
    staticClass: "gwd-img-same-img",
    attrs: {
      src: _vm.img,
      alt: ""
    }
  }), _vm._v(" "), _c("img", {
    staticClass: "gwd-right-arrow",
    attrs: {
      src: _vm.arrow,
      alt: ""
    }
  })]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 62801:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
const pidConfig = __webpack_require__(68906);
const request = __webpack_require__(49388);
module.exports.init = (id, style, callback) => {
  let pidInfo = pidConfig.init(id, style);
  let dp_id = G.dp.itemId;
  if (!dp_id) {
    if (G.site === 'taobao-ju') {
      dp_id = location.href.match(/item_id=(\d+)/)[1];
    }
  }
  getInfo(dp_id, pidInfo, callback);
};
module.exports.initWithDp = (dpId, id, style, callback) => {
  let pidInfo = pidConfig.init(id, style);
  getInfo(dpId, pidInfo, callback);
};
module.exports.initWithDpAsync = (dpId, id, style) => {
  let pidInfo = pidConfig.init(id, style);
  return new Promise(resolve => {
    getInfo(dpId, pidInfo, resolve);
  });
};
const getInfo = (dpId, pidInfo, callback) => {
  let dp_id = dpId;
  if (!dp_id) return;
  dp_id = `${dp_id}`;
  dp_id = dp_id.replace('-83', '');
  if (!pidInfo) pidInfo = {
    token: 'visit',
    pid: 'show'
  };
  let url = `https://q.apptimes.cn/union/coupon/${pidInfo.token}?pid=${pidInfo.pid}&good_id=${dp_id}`;
  request.getCouponFromUrl(url).then(res => {
    let data = res;
    //console.log(res)
    if (data && data.data) {
      data.data.reqid = dp_id;
      data.data.click_url2 = `${G.u_server}/?url=${encodeURIComponent(data.data.click_url)}&union=${G.union}`;
      if (G.from_device === 'bijiago' && G.aliSite) {
        data.data.click_url2 = `https://tb.${G.ss_name === 'priceDog' ? 'pricedog' : 'bijiago'}.com/extension/qrpage?union=${G.union}&dp_id=${dpId}&tag=9_chrome&discount=${data.data.coupon.coupon_money}`;
      }
      if (G.from_device === 'biyibi' && G.aliSite) {
        data.data.click_url2 = `https://tb.biyibi123.com/extension/qrpage?union=${G.union}&dp_id=${dpId}&tag=9_chrome&discount=${data.data.coupon.coupon_money}`;
      }
    }
    callback(res);
  });
};

/***/ }),

/***/ 62853:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', his_size = $data.his_size, $escape = $imports.$escape, $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, s_server = $data.s_server;
    $$out += '<div id="history_detail" class="history_detail">\n  <div class="history_head">\n    <span class="history_head_tle blkcolor1">浏览历史</span>\n    ';
    if (his_size != 0) {
        $$out += '\n    <span class="clear_his blkcolor4">清空历史</span>\n    ';
    }
    $$out += '\n  </div>\n  <div class="history_content his_size_';
    $$out += $escape(his_size);
    $$out += '">\n    <ul>\n      ';
    $each(data, function ($value, $index) {
        $$out += '\n      <li >\n        <a class="item_img" href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank" title="';
        $$out += $escape($value.title);
        $$out += '"><img ';
        $$out += 'src="https://cdn.gwdang.com/images/extensions/newbar/120.gif"';
        $$out += ' data-original="';
        $$out += $escape($value.img_url);
        $$out += '"></a>\n        <div class="item_desc">\n          <a class="item_title blkcolor3" href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank" title="';
        $$out += $escape($value.title);
        $$out += '">';
        $$out += $escape($value.title);
        $$out += '</a>\n          <a class="other_desc">\n            <span class="site_icon" title="';
        $$out += $escape($value.site_name);
        $$out += '"><img src="';
        $$out += $escape(s_server);
        $$out += '/images/favicon/';
        $$out += $escape($value.site_id);
        $$out += '.ico"></span>\n            <span class="item_price prifontf">';
        $$out += $escape($value.currency);
        $$out += $escape($value.price);
        $$out += '</span>\n            <span class="item_close_btn blkcolor4" data-id="';
        $$out += $escape($value.dp_id);
        $$out += '">删除</span>\n          </a>\n        </div>\n      </li>\n      ';
    });
    $$out += '\n    </ul>\n    <div class="no-history">暂无浏览历史</div>\n  </div>\n  <style type="text/css">\n    #history_detail {\n      width: 288px;\n      min-height: 140px;\n      max-height: 405px;\n      overflow-y: auto;\n      background-color: #fff;\n      position: absolute;\n      display: none;\n      box-shadow: 0 5px 10px 0 rgba(22,24,26,0.15);\n      border: 1px solid #edf1f2;\n    }\n    .history_head {\n      height: 45px;\n      width: 100%;\n      position: relative;\n    }\n    .no-history {\n      width: 100%;\n      height: 70px;\n      line-height: 70px;\n      color: #323333;\n      font-size: 14px;\n      text-align: center;\n      display: none;\n    }\n    .history_head span {\n      display: inline-block;\n      position: absolute;\n    }\n    #history_detail .history_head_tle {\n      font-size: 14px;\n      font-weight: bold;\n      top: 14px;\n      left: 14px;\n      line-height: 14px;\n    }\n    #history_detail .clear_his {\n      font-size: 12px;\n      top: 14px;\n      right: 19px;\n      line-height: 12px;\n      cursor: pointer;\n    }\n    #history_detail .clear_his:hover {\n      color: #48befe;\n    }\n    #history_detail .history_content {\n      margin: 0px 0px 17px 0;\n      width: 272px;\n      margin-left: 16px;\n      height: 341px;\n      overflow-y: scroll;\n    }\n    #history_detail .history_content.his_size_0, #history_detail .history_content.his_size_1 {\n      height: 76px;\n    }\n    #history_detail .history_content.his_size_0, #history_detail .history_content.no-his-content {\n      overflow: hidden;\n    }\n    #history_detail .history_content.his_size_2 {\n      height: 165px;\n    }\n    #history_detail .history_content.his_size_3 {\n      height: 254px;\n    }\n    #history_detail .history_content.his_size_0 .no-history, #history_detail .history_content.no-his-content .no-history {\n      display: block;\n    }\n    #history_detail ul {\n      margin: 0px;\n      padding: 0px;\n    }\n    #history_detail ul li{\n      list-style: none;\n      height: 72px;\n      margin-top: 17px;\n      overflow: hidden;\n      float: none;\n    }\n    #history_detail ul li:first-child{\n      margin-top: 0px;\n    }\n    #history_detail .item_img {\n      height: 70px;\n      width: 70px;\n      float: left;\n      border: 1px solid #edf1f2;\n      text-align: center;\n    }\n    #history_detail .item_img:after {\n      content:\'\';\n      width:0;\n      height:100%;\n      display:inline-block;\n      vertical-align:middle;\n    }\n    #history_detail .item_desc {\n      display: inline-block;\n      margin-left: 14px;\n      float: left;\n      -margin-left: 10px;\n      width: 167px;\n    }\n    #history_detail a.item_title, #history_detail a.other_desc {\n      height: 16px;\n      width: 159px;\n      line-height: 16px;\n      float: left;\n      text-align: left;\n      overflow: hidden;\n    }\n    #history_detail a.other_desc {\n      margin-top: 24px;\n      width: 167px;\n    }\n    #history_detail a.item_title{\n      font-size: 12px;\n      line-height: 16px;\n      height: 32px;\n      width: 159px;\n      text-decoration: none;\n    }\n    #history_detail a.item_title:hover{\n      text-decoration: none;\n      color: #48befe;\n    }\n    .other_desc:after {\n      content: "";\n      display: block;\n      clear: both;\n    }\n    .other_desc span {\n      float: left;\n      display: inline-block;\n    }\n    span.item_price {\n      margin-left: 8px;\n      margin-top: 2px;\n      color: #E4393C;\n      cursor: text;\n      display: inline-block;\n      height: 14px;\n      line-height: 14px;\n      font-size: 14px;\n      font-weight: bold;\n    }\n    #history_detail span.item_price:hover {\n      color: #E4393C;\n      cursor: text;\n    }\n    #history_detail .item_img img {\n      max-height: 70px;\n      max-width: 70px;\n      display: inline-block;\n      margin: 0 auto;\n      vertical-align: middle;\n    }\n    #history_detail span.site_icon {\n      height: 16px;\n      line-height: 16px;\n      cursor: text;\n    }\n\n    span.item_close_btn {\n      font-size: 12px;\n      height: 12px;\n      width: 25px;\n      float: right;\n      text-align: center;\n      line-height: 17px;\n      cursor: pointer;\n    }\n    span.item_close_btn:hover {\n      color: #48befe!important;\n    }\n\n\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 62941:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(26910);
const template = __webpack_require__(26133);
const userData = __webpack_require__(74222);
const request = __webpack_require__(49388);
const detect = __webpack_require__(3494);
const priceParser = __webpack_require__(5286);
let nowpage = 0;
let globalPage;
let time = 0;
let globalDom;
module.exports.init = (data, dom) => {
  if (G.forbidCoupon) return;
  if (G.aliSite) return;
  globalDom = dom;
  let tbData = userData.get('tbData');
  time++;
  if (tbData.ss === time) {
    if (data.tmall.length === 0 && data.taobao.length === 0) {
      getHymInfo(render2);
    } else {
      var siteName = G.site;
      let siteId = detect.getSiteId(siteName);
      priceParser.init(siteId, function (price) {
        if (price && price > 0) {
          G.dp.oldPrice = price;
          G.dp.price = price;
        }
        render(data, tbData);
      });
    }
  }
};
const getHymInfo = callback => {
  if (true) return;
  let info = userData.get('other_info');
  let url = `${G.server}/extension/getCouponTao?keyword=${encodeURIComponent(info.now.coreword)}&class_id=${info['code-server'].class_id}&brand=${encodeURIComponent(info.exact_arr.sbrand)}&sige_id=${info.now.site_id}`;
  request.get(url).done(data => {
    if (data && data.data && data.data.length > 0) {
      callback(data.data);
    }
  });
};
const render2 = data => {
  for (let i = 0; i < data.length; i++) {
    data[i].click_url = data[i].url;
    data[i].promoPri = data[i].currentPrice;
    data[i].price = data[i].originPrice;
    data[i].coupon_money = data[i].couponInfo;
  }
  renderBar(data);
};
const render = (data, tbData) => {
  let comarr = [];
  if (tbData.tmm && data.tmall.length > 0) {
    for (let i = 0; i < tbData.tmall.product.length; i++) {
      let itemi = tbData.tmall.product[i];
      for (let j = 0; j < data.tmall.length; j++) {
        let itemj = data.tmall[j];
        if (itemi.num_iid === itemj.reqid) {
          itemi.click_url = itemj.click_url;
          itemi.click_url2 = itemj.click_url2;
          itemi.coupon_money = itemj.coupon.coupon_money;
          itemi.sicon = "https://cdn.gwdang.com/images/favicon/83.ico";
          itemi.promoPri = (Number(itemi.price) - itemj.coupon.coupon_money).toFixed(2);
          if (Number(itemi.promoPri) > G.dp.price) continue;
          comarr.push(itemi);
        }
      }
    }
  }
  if (tbData.tbb && data.taobao.length > 0) {
    for (let i = 0; i < tbData.taobao.product.length; i++) {
      let itemi = tbData.taobao.product[i];
      for (let j = 0; j < data.taobao.length; j++) {
        let itemj = data.taobao[j];
        if (itemi.num_iid === itemj.reqid) {
          itemi.click_url = itemj.click_url;
          itemi.click_url2 = itemj.click_url2;
          itemi.coupon_money = itemj.coupon.coupon_money;
          itemi.sicon = "https://cdn.gwdang.com/images/favicon/123.ico";
          itemi.promoPri = (Number(itemi.price) - itemj.coupon.coupon_money).toFixed(2);
          if (Number(itemi.promoPri) > G.dp.price) continue;
          comarr.push(itemi);
        }
      }
    }
  }
  renderBar(comarr);
};
const lunbo = () => {
  try {
    let dom = $('#miniCouponCom ul');
    let top = Number(dom.css('top').replace('px', ''));
    top = top - 62;
    nowpage++;
    if (nowpage === globalPage) {
      dom.css('top', '0px');
      nowpage = 0;
      return;
    }
    dom.animate({
      'top': top + 'px'
    }, 600);
  } catch (e) {}
};
const renderBar = data => {
  data = data.sort(function (v1, v2) {
    if (Number(v1.promoPri) > Number(v2.promoPri)) return 1;else if (Number(v1.promoPri) === Number(v2.promoPri)) return 0;else return -1;
  });
  globalPage = data.length;
  if (globalPage === 0) return;
  let html = __webpack_require__(32273);
  if (location.host.indexOf('detail.ju.taobao') > -1 && G.ss_name === 'priceDog') {
    $('.pricedog-bar').before(template.compile(html)({
      data: data,
      fmdv: G.from_device,
      lang: G.lang
    }));
    $('.botbar').css('margin-top', '150px');
  } else {
    $(globalDom).append(template.compile(html)({
      data: data,
      fmdv: G.from_device,
      lang: G.lang
    }));
  }
  setInterval(lunbo, 5000);
};

/***/ }),

/***/ 62953:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);
var DOMIterables = __webpack_require__(67400);
var DOMTokenListPrototype = __webpack_require__(79296);
var ArrayIteratorMethods = __webpack_require__(23792);
var createNonEnumerableProperty = __webpack_require__(66699);
var setToStringTag = __webpack_require__(10687);
var wellKnownSymbol = __webpack_require__(78227);

var ITERATOR = wellKnownSymbol('iterator');
var ArrayValues = ArrayIteratorMethods.values;

var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
  if (CollectionPrototype) {
    // some Chrome versions have non-configurable methods on DOMTokenList
    if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
      createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
    } catch (error) {
      CollectionPrototype[ITERATOR] = ArrayValues;
    }
    setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
    if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
      // some Chrome versions have non-configurable methods on DOMTokenList
      if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
        createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
      } catch (error) {
        CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
      }
    }
  }
};

for (var COLLECTION_NAME in DOMIterables) {
  handlePrototype(globalThis[COLLECTION_NAME] && globalThis[COLLECTION_NAME].prototype, COLLECTION_NAME);
}

handlePrototype(DOMTokenListPrototype, 'DOMTokenList');


/***/ }),

/***/ 63252:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(62953);
const request = __webpack_require__(49388);
const gzip = __webpack_require__(95450);
const getPddDetail = async key => {
  const id = key.split('-')[1];
  const res = await request.rawGet(`https://mobile.yangkeduo.com/goods.html?goods_id=${id}`);
  return {
    key: key,
    res: res
  };
};
module.exports = {
  async init() {
    const res = await request.get(`${G.server}/extension/PluginHelper?op=pinDetail&t=${Date.now()}`);
    const ids = res.ids;
    const results = await Promise.all(ids.map(x => getPddDetail(x)));
    const toUpload = {};
    results.forEach(x => {
      toUpload[x.key] = x.res;
    });
    let payload = String.fromCharCode.apply(null, gzip.gZip(toUpload));
    request.post(G.server + '/extension/PluginHelper?op=pinDetailData&t=' + Date.now(), btoa(payload));
  }
};

/***/ }),

/***/ 63303:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";



var zlib_deflate = __webpack_require__(58411);
var utils        = __webpack_require__(9805);
var strings      = __webpack_require__(41996);
var msg          = __webpack_require__(54674);
var ZStream      = __webpack_require__(44442);

var toString = Object.prototype.toString;

/* Public constants ==========================================================*/
/* ===========================================================================*/

var Z_NO_FLUSH      = 0;
var Z_FINISH        = 4;

var Z_OK            = 0;
var Z_STREAM_END    = 1;
var Z_SYNC_FLUSH    = 2;

var Z_DEFAULT_COMPRESSION = -1;

var Z_DEFAULT_STRATEGY    = 0;

var Z_DEFLATED  = 8;

/* ===========================================================================*/


/**
 * class Deflate
 *
 * Generic JS-style wrapper for zlib calls. If you don't need
 * streaming behaviour - use more simple functions: [[deflate]],
 * [[deflateRaw]] and [[gzip]].
 **/

/* internal
 * Deflate.chunks -> Array
 *
 * Chunks of output data, if [[Deflate#onData]] not overridden.
 **/

/**
 * Deflate.result -> Uint8Array|Array
 *
 * Compressed result, generated by default [[Deflate#onData]]
 * and [[Deflate#onEnd]] handlers. Filled after you push last chunk
 * (call [[Deflate#push]] with `Z_FINISH` / `true` param)  or if you
 * push a chunk with explicit flush (call [[Deflate#push]] with
 * `Z_SYNC_FLUSH` param).
 **/

/**
 * Deflate.err -> Number
 *
 * Error code after deflate finished. 0 (Z_OK) on success.
 * You will not need it in real life, because deflate errors
 * are possible only on wrong options or bad `onData` / `onEnd`
 * custom handlers.
 **/

/**
 * Deflate.msg -> String
 *
 * Error message, if [[Deflate.err]] != 0
 **/


/**
 * new Deflate(options)
 * - options (Object): zlib deflate options.
 *
 * Creates new deflator instance with specified params. Throws exception
 * on bad params. Supported options:
 *
 * - `level`
 * - `windowBits`
 * - `memLevel`
 * - `strategy`
 * - `dictionary`
 *
 * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)
 * for more information on these.
 *
 * Additional options, for internal needs:
 *
 * - `chunkSize` - size of generated data chunks (16K by default)
 * - `raw` (Boolean) - do raw deflate
 * - `gzip` (Boolean) - create gzip wrapper
 * - `to` (String) - if equal to 'string', then result will be "binary string"
 *    (each char code [0..255])
 * - `header` (Object) - custom header for gzip
 *   - `text` (Boolean) - true if compressed data believed to be text
 *   - `time` (Number) - modification time, unix timestamp
 *   - `os` (Number) - operation system code
 *   - `extra` (Array) - array of bytes with extra data (max 65536)
 *   - `name` (String) - file name (binary string)
 *   - `comment` (String) - comment (binary string)
 *   - `hcrc` (Boolean) - true if header crc should be added
 *
 * ##### Example:
 *
 * ```javascript
 * var pako = require('pako')
 *   , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])
 *   , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);
 *
 * var deflate = new pako.Deflate({ level: 3});
 *
 * deflate.push(chunk1, false);
 * deflate.push(chunk2, true);  // true -> last chunk
 *
 * if (deflate.err) { throw new Error(deflate.err); }
 *
 * console.log(deflate.result);
 * ```
 **/
function Deflate(options) {
  if (!(this instanceof Deflate)) return new Deflate(options);

  this.options = utils.assign({
    level: Z_DEFAULT_COMPRESSION,
    method: Z_DEFLATED,
    chunkSize: 16384,
    windowBits: 15,
    memLevel: 8,
    strategy: Z_DEFAULT_STRATEGY,
    to: ''
  }, options || {});

  var opt = this.options;

  if (opt.raw && (opt.windowBits > 0)) {
    opt.windowBits = -opt.windowBits;
  }

  else if (opt.gzip && (opt.windowBits > 0) && (opt.windowBits < 16)) {
    opt.windowBits += 16;
  }

  this.err    = 0;      // error code, if happens (0 = Z_OK)
  this.msg    = '';     // error message
  this.ended  = false;  // used to avoid multiple onEnd() calls
  this.chunks = [];     // chunks of compressed data

  this.strm = new ZStream();
  this.strm.avail_out = 0;

  var status = zlib_deflate.deflateInit2(
    this.strm,
    opt.level,
    opt.method,
    opt.windowBits,
    opt.memLevel,
    opt.strategy
  );

  if (status !== Z_OK) {
    throw new Error(msg[status]);
  }

  if (opt.header) {
    zlib_deflate.deflateSetHeader(this.strm, opt.header);
  }

  if (opt.dictionary) {
    var dict;
    // Convert data if needed
    if (typeof opt.dictionary === 'string') {
      // If we need to compress text, change encoding to utf8.
      dict = strings.string2buf(opt.dictionary);
    } else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') {
      dict = new Uint8Array(opt.dictionary);
    } else {
      dict = opt.dictionary;
    }

    status = zlib_deflate.deflateSetDictionary(this.strm, dict);

    if (status !== Z_OK) {
      throw new Error(msg[status]);
    }

    this._dict_set = true;
  }
}

/**
 * Deflate#push(data[, mode]) -> Boolean
 * - data (Uint8Array|Array|ArrayBuffer|String): input data. Strings will be
 *   converted to utf8 byte sequence.
 * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.
 *   See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH.
 *
 * Sends input data to deflate pipe, generating [[Deflate#onData]] calls with
 * new compressed chunks. Returns `true` on success. The last data block must have
 * mode Z_FINISH (or `true`). That will flush internal pending buffers and call
 * [[Deflate#onEnd]]. For interim explicit flushes (without ending the stream) you
 * can use mode Z_SYNC_FLUSH, keeping the compression context.
 *
 * On fail call [[Deflate#onEnd]] with error code and return false.
 *
 * We strongly recommend to use `Uint8Array` on input for best speed (output
 * array format is detected automatically). Also, don't skip last param and always
 * use the same type in your code (boolean or number). That will improve JS speed.
 *
 * For regular `Array`-s make sure all elements are [0..255].
 *
 * ##### Example
 *
 * ```javascript
 * push(chunk, false); // push one of data chunks
 * ...
 * push(chunk, true);  // push last chunk
 * ```
 **/
Deflate.prototype.push = function (data, mode) {
  var strm = this.strm;
  var chunkSize = this.options.chunkSize;
  var status, _mode;

  if (this.ended) { return false; }

  _mode = (mode === ~~mode) ? mode : ((mode === true) ? Z_FINISH : Z_NO_FLUSH);

  // Convert data if needed
  if (typeof data === 'string') {
    // If we need to compress text, change encoding to utf8.
    strm.input = strings.string2buf(data);
  } else if (toString.call(data) === '[object ArrayBuffer]') {
    strm.input = new Uint8Array(data);
  } else {
    strm.input = data;
  }

  strm.next_in = 0;
  strm.avail_in = strm.input.length;

  do {
    if (strm.avail_out === 0) {
      strm.output = new utils.Buf8(chunkSize);
      strm.next_out = 0;
      strm.avail_out = chunkSize;
    }
    status = zlib_deflate.deflate(strm, _mode);    /* no bad return value */

    if (status !== Z_STREAM_END && status !== Z_OK) {
      this.onEnd(status);
      this.ended = true;
      return false;
    }
    if (strm.avail_out === 0 || (strm.avail_in === 0 && (_mode === Z_FINISH || _mode === Z_SYNC_FLUSH))) {
      if (this.options.to === 'string') {
        this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output, strm.next_out)));
      } else {
        this.onData(utils.shrinkBuf(strm.output, strm.next_out));
      }
    }
  } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== Z_STREAM_END);

  // Finalize on the last chunk.
  if (_mode === Z_FINISH) {
    status = zlib_deflate.deflateEnd(this.strm);
    this.onEnd(status);
    this.ended = true;
    return status === Z_OK;
  }

  // callback interim results if Z_SYNC_FLUSH.
  if (_mode === Z_SYNC_FLUSH) {
    this.onEnd(Z_OK);
    strm.avail_out = 0;
    return true;
  }

  return true;
};


/**
 * Deflate#onData(chunk) -> Void
 * - chunk (Uint8Array|Array|String): output data. Type of array depends
 *   on js engine support. When string output requested, each chunk
 *   will be string.
 *
 * By default, stores data blocks in `chunks[]` property and glue
 * those in `onEnd`. Override this handler, if you need another behaviour.
 **/
Deflate.prototype.onData = function (chunk) {
  this.chunks.push(chunk);
};


/**
 * Deflate#onEnd(status) -> Void
 * - status (Number): deflate status. 0 (Z_OK) on success,
 *   other if not.
 *
 * Called once after you tell deflate that the input stream is
 * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)
 * or if an error happened. By default - join collected chunks,
 * free memory and fill `results` / `err` properties.
 **/
Deflate.prototype.onEnd = function (status) {
  // On success - join
  if (status === Z_OK) {
    if (this.options.to === 'string') {
      this.result = this.chunks.join('');
    } else {
      this.result = utils.flattenChunks(this.chunks);
    }
  }
  this.chunks = [];
  this.err = status;
  this.msg = this.strm.msg;
};


/**
 * deflate(data[, options]) -> Uint8Array|Array|String
 * - data (Uint8Array|Array|String): input data to compress.
 * - options (Object): zlib deflate options.
 *
 * Compress `data` with deflate algorithm and `options`.
 *
 * Supported options are:
 *
 * - level
 * - windowBits
 * - memLevel
 * - strategy
 * - dictionary
 *
 * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)
 * for more information on these.
 *
 * Sugar (options):
 *
 * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify
 *   negative windowBits implicitly.
 * - `to` (String) - if equal to 'string', then result will be "binary string"
 *    (each char code [0..255])
 *
 * ##### Example:
 *
 * ```javascript
 * var pako = require('pako')
 *   , data = Uint8Array([1,2,3,4,5,6,7,8,9]);
 *
 * console.log(pako.deflate(data));
 * ```
 **/
function deflate(input, options) {
  var deflator = new Deflate(options);

  deflator.push(input, true);

  // That will never happens, if you don't cheat with options :)
  if (deflator.err) { throw deflator.msg || msg[deflator.err]; }

  return deflator.result;
}


/**
 * deflateRaw(data[, options]) -> Uint8Array|Array|String
 * - data (Uint8Array|Array|String): input data to compress.
 * - options (Object): zlib deflate options.
 *
 * The same as [[deflate]], but creates raw data, without wrapper
 * (header and adler32 crc).
 **/
function deflateRaw(input, options) {
  options = options || {};
  options.raw = true;
  return deflate(input, options);
}


/**
 * gzip(data[, options]) -> Uint8Array|Array|String
 * - data (Uint8Array|Array|String): input data to compress.
 * - options (Object): zlib deflate options.
 *
 * The same as [[deflate]], but create gzip wrapper instead of
 * deflate one.
 **/
function gzip(input, options) {
  options = options || {};
  options.gzip = true;
  return deflate(input, options);
}


exports.Deflate = Deflate;
exports.deflate = deflate;
exports.deflateRaw = deflateRaw;
exports.gzip = gzip;


/***/ }),

/***/ 63357:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['value', 'currency'],
  methods: {
    numberInputHandler(e) {
      if (!e.key.match(/[\d.]/)) {
        e.preventDefault();
        return;
      }
      let start = e.target.selectionStart,
        end = e.target.selectionEnd;
      (__webpack_require__(7129).log)(e.target.selectionStart);
      let num = e.target.value.toString();
      if (num.indexOf('.') > -1) {
        let after = num.split('.')[1];
        let before = num.split('.')[0];
        (__webpack_require__(7129).log)(e.target.selectionText);
        if (e.key === '.' || after.length >= 2 && start >= before.length + 1 && end === start) {
          e.preventDefault();
        }
      }
    }
  }
};

/***/ }),

/***/ 63368:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(62953);
const template = __webpack_require__(26133);
const userData = __webpack_require__(74222);
const golbal2 = __webpack_require__(7053);
const calWidth = __webpack_require__(42869);
var fuzzyPage;

// let rateSite = {
//   '228': 'USD',
//   '229': 'JPY',
//   '238': 'USD',
//   '246': 'EUR'
// }
// let priceSite = {
//   '228': '$',
//   '238': '$',
//   '229': '日元',
//   '246': 'EUR'
// }
let globalInfo = {};

// const fixedPrice = (price) => {
//   if (!price) return price;
//   try {
//     let priarr = price.split('.');
//     price = priarr[0].replace(',', '');
//     if (Number(price) > 99999) {
//       price = priarr[0];
//     } else {
//       price = priarr[0] + '.' + priarr[1];
//     }
//   } catch (e) {
//     require('common/log')('b2cCompare:fixedPrice:error')
//     return price;
//   }

//   return price;
// }
// const transRate = (dp) => {
//   if (dp.price_rmb) return dp;
//   let parseprice = require('parseprice');
//   if (!dp.dp_id) return dp;
//   let site_id = dp.dp_id.split('-')[1];
//   let type = site_id && rateSite[site_id];
//   if (!type) return dp;
//   let price2 = parseprice(dp.price, type)
//   let price3 = fixedPrice(dp.price);
//   if (site_id == '229') {
//     dp.price_rmb = price2 + `(${price3}${priceSite[site_id]})`;
//   } else {
//     dp.price_rmb = price2 + `(${priceSite[site_id]}${price3})`;
//   }
//   dp.price = price2;
//   return dp;
// }
// const editData = (data) => {
//   var len = data.store && data.store.length;
//   if (len && len > 0) {
//     for (let i = 0; i < len; i++) {
//       data.store[i].price = (Number(data.store[i].price) / 100).toFixed(2)
//     }
//   }
//   let len2 = data.product.length;
//   if (len)
//     data.store2 = data.store.slice(0, 6);
//   else
//     len = len2;
//   return len;
// }
const renderBtnTop = (price, isFuzzy) => {
  let t = '商城';
  if (isFuzzy) {
    t = '商城相似款';
  }
  let html = __webpack_require__(18112);
  $('#b2c_compare').append(html({
    store_tle: t,
    min_price: price
  })).css("display", "block");
};
const renderTopDetail = async () => {
  let widthObj = calWidth.init();
  let showListNum = widthObj.b2cShowListNum;
  let turnpW = widthObj.b2cTurnpW;
  let productW = widthObj.b2cProductW;
  let dp_query = userData.get('dp_query');
  let html = __webpack_require__(72328);
  if (fuzzyPage) {
    html = __webpack_require__(20028);
    showListNum = widthObj.showListNum;
    turnpW = widthObj.turnpW;
    productW = widthObj.allProductW;
  }
  if (G.site && G.site.indexOf('amazon') > -1) turnpW = turnpW - 1;
  let len = globalInfo['b2c_compare'].product.length;
  let storeLen = globalInfo['b2c_compare'].store && globalInfo['b2c_compare'].store.length;
  let pages = Math.ceil(len / showListNum);
  if (len) {
    await Promise.all(globalInfo['b2c_compare'].product.map(x => new Promise(resolve => {
      if (['8', '83', '123'].indexOf(x.site_id) > -1) {
        (__webpack_require__(80791).init)(x.url_crc, '30001', function (data) {
          console.log('coupon data', data);
          if (data && data.data) {
            let couponVal = data.data.coupon.coupon_money;
            x.promotions = [{
              type: 'coupon',
              text: couponVal + '元券'
            }];
            x.coupon2 = [couponVal + '元券'];
          }
          resolve();
        });
      } else {
        resolve();
      }
    })));
  }
  globalInfo['b2c_compare'].product = globalInfo['b2c_compare'].product.map(item => {
    let s = (__webpack_require__(22209).getMoneyInfo)(item.site_id);
    if (s) {
      item.unit = s[0];
    }
    return item;
  });
  // $('#b2c_compare').append(html({
  //   data: globalInfo['b2c_compare'],
  //   storeLen: storeLen,
  //   pages: pages,
  //   now_dp_id: dp_query.dp.dp_id,
  //   width: turnpW,
  //   imgLoad: G.imgLoad,
  //   productW: productW
  // }))
  const div = document.createElement('div');
  $('#b2c_compare').append(div);
  const TmCompare = (__webpack_require__(83754)/* ["default"] */ .A);
  new Vue({
    el: div,
    mounted() {
      this.$refs.b2c_compare.show = true;
    },
    render: h => h(TmCompare, {
      ref: 'b2c_compare',
      props: {
        data: globalInfo['b2c_compare'].product,
        stores: globalInfo['b2c_compare'].store
      }
    })
  });
  golbal2.loadImg(0, showListNum, $('#b2c-item-list li .small-img img'));
  //$('#b2c_compare').find('.top-bar-detail').show()

  if (G.site === 'suning') {
    $('#b2c_compare').on('click', 'a', function (e) {
      let url = $(this).attr('href');
      if ($(this).find('.coupon_span')) return;
      if (url && url.indexOf('http') > -1) {
        window.open($(this).attr('href'));
        e.preventDefault();
      }
    });
  }
};
const renderTop = data => {
  if (data && data.b2c && !(data.b2c instanceof Array)) {
    globalInfo['b2c_compare'] = data.b2c;
    if (Number(data.b2c.min_price) && data.b2c.store.length > 0 && data.b2c.product.length > 0) renderBtnTop(data.b2c.min_price);
  } else if (data && data.b2c_fuzzy && !(data.b2c_fuzzy instanceof Array) && data.b2c_fuzzy.product.length > 0) {
    globalInfo['b2c_compare'] = data.b2c_fuzzy;
    fuzzyPage = true;
    if (Number(data.b2c_fuzzy.min_price)) renderBtnTop(data.b2c_fuzzy.min_price, true);
  }
};
const renderBottom = data => {
  (__webpack_require__(35161).init)(data);
};
module.exports.init = (style, data) => {
  if (G.aliSite) return;
  // 根据style决定加载顶部还是底部
  if (style === 'top') {
    renderTop(data);
  } else {
    renderBottom(data);
  }
};
module.exports.renderTopDetail = renderTopDetail;

/***/ }),

/***/ 63372:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ MemberCouponBottomBjgvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ MemberCouponBottomBjg)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/bjgou/components/MemberCouponBottomBjg.vue?vue&type=template&id=295049ea&scoped=true
var MemberCouponBottomBjgvue_type_template_id_295049ea_scoped_true = __webpack_require__(23807);
;// ./src/bjgou/components/MemberCouponBottomBjg.vue?vue&type=template&id=295049ea&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/bjgou/components/MemberCouponBottomBjg.vue?vue&type=script&lang=js
var MemberCouponBottomBjgvue_type_script_lang_js = __webpack_require__(45634);
;// ./src/bjgou/components/MemberCouponBottomBjg.vue?vue&type=script&lang=js
 /* harmony default export */ const components_MemberCouponBottomBjgvue_type_script_lang_js = (MemberCouponBottomBjgvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/bjgou/components/MemberCouponBottomBjg.vue?vue&type=style&index=0&id=295049ea&prod&scoped=true&lang=less
var MemberCouponBottomBjgvue_type_style_index_0_id_295049ea_prod_scoped_true_lang_less = __webpack_require__(28461);
;// ./src/bjgou/components/MemberCouponBottomBjg.vue?vue&type=style&index=0&id=295049ea&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/bjgou/components/MemberCouponBottomBjg.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_MemberCouponBottomBjgvue_type_script_lang_js,
  MemberCouponBottomBjgvue_type_template_id_295049ea_scoped_true/* render */.XX,
  MemberCouponBottomBjgvue_type_template_id_295049ea_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "295049ea",
  null
  
)

/* harmony default export */ const MemberCouponBottomBjg = (component.exports);

/***/ }),

/***/ 63381:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _vuex = __webpack_require__(95353);
var _NumberInput = _interopRequireDefault(__webpack_require__(39313));
var _DateInput = _interopRequireDefault(__webpack_require__(60510));
var _CommonLogin = _interopRequireDefault(__webpack_require__(36664));
var _default = exports.A = {
  props: ['defaultDays', 'login', 'nowPrice', 'offset'],
  components: {
    NumberInput: _NumberInput.default,
    DateInput: _DateInput.default,
    CommonLogin: _CommonLogin.default
  },
  computed: {
    ...(0, _vuex.mapState)({
      user: state => state.user
    }),
    hintText() {
      return this.showAddedOnce ? '已添加价保' : '加入价保监控';
    },
    offsetStyle() {
      if (this.offset && this.offset.top) {
        return {
          top: this.offset.top + 'px',
          left: this.offset.left + 'px',
          position: 'absolute'
        };
      }
      return {};
    }
  },
  data() {
    return {
      errmsg: '',
      show: false,
      days: this.defaultDays,
      singlePrice: this.nowPrice,
      amount: 1,
      errFading: false,
      date: new Date().toISOString().split('T')[0],
      added: false,
      site: location.hostname.includes('chaoshi.detail.tmall.com') || location.hostname.includes('detail.tmall.hk') ? 'tmcs' : G.site,
      timeout: null,
      mouseLeaveDisabled: false,
      showAddedOnce: false
    };
  },
  watch: {
    errmsg(newVal) {
      if (!newVal) return;
    }
  },
  methods: {
    pickerClose() {
      this.mouseLeaveDisabled = true;
      setTimeout(() => {
        this.mouseLeaveDisabled = false;
      }, 400);
    },
    mouseleave() {
      this.added = false;
      if (this.mouseLeaveDisabled) {
        // console.warn('mouseleave disabled')
        return;
      }
      this.show = false;
    },
    over() {
      // this.added = false
      this.show = true;
      this.$store.dispatch('priceRemind/hover');
    },
    showErrorMessage(msg) {
      this.errmsg = msg;
      this.errFading = false;
      if (this.timeout) clearTimeout(this.timeout);
      this.timeout = setTimeout(() => {
        this.errFading = true;
      }, 1000);
    },
    submit() {
      if (this.amount < 1) {
        this.showErrorMessage('购买数量不能小于1');
        return;
      }
      if (this.singlePrice <= 0) {
        this.showErrorMessage('实付单价不能小于0');
        return;
      }
      if (this.days < 1) {
        this.showErrorMessage('价保周期不能小于1');
        return;
      }
      if (this.days > 30) {
        this.showErrorMessage('价保周期不能大于30');
        return;
      }
      if (new Date(this.date).getTime() > new Date().getTime()) {
        this.showErrorMessage('下单时间不能大于当前时间');
        return;
      }
      if (new Date(this.date).getTime() + this.days * 24 * 3600 * 1000 < new Date().getTime()) {
        this.showErrorMessage('下单时间加价保周期不能小于当前时间');
        return;
      }
      (__webpack_require__(76904).reportMonitorEvent)(G.dp.dpId, G.dp.name, (G.dp.img.startsWith('http') ? G.dp.img : 'https:' + G.dp.img).replace('.jpg.avif', '.jpg'), location.href, this.singlePrice * 100 * this.amount, this.amount, new Date(this.date).toISOString().split('T')[0], this.days).then(res => {
        if (res.code === -1) {
          this.showErrorMessage(res.msg);
        } else {
          if (res.msg.includes('重复')) {
            this.showErrorMessage(res.msg);
            return;
          }
          this.added = true;
          this.showAddedOnce = true;
        }
      });
    }
  },
  mounted() {
    if (G.site === '360buy' && $('.information-wrap').length) {
      this.site = '360buyv2';
    }
  }
};

/***/ }),

/***/ 63459:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-popup-bg[data-v-40244662] {\n  position: fixed;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background-color: rgba(0, 0, 0, 0.5);\n  z-index: 9999;\n  font-family: PingFangSC-Regular, Microsoft YaHei, sans-serif;\n}\n.gwd-popup[data-v-40244662] {\n  position: fixed;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  min-width: 712px;\n  max-width: 1206px;\n  max-height: min(800px, calc(100vh - 100px));\n  background-color: #fff;\n  border-radius: 20px;\n  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);\n  z-index: 10000;\n}\n.gwd-popup a[data-v-40244662] {\n  text-decoration: none;\n}\n.gwd-popup a[data-v-40244662]:hover {\n  text-decoration: none;\n}\n", ""]);

// exports


/***/ }),

/***/ 63478:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(42965);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("671740e3", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 63775:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);


module.exports = {
  addSiteActivity: (link, value) => {
    $('body').append(`
      <a href="${link}" target="_blank" class="gwd-column gwd-align gwd-side-activity">
        <img src="https://cdn.gwdang.com/images/extensions/activity/jdSideActivity.png" style="width: 62px; height: 56px; margin-top: 6px;">
        <span style="margin-top: 2px; height: 17px; font-size: 12px; color: #ff0f23;">超级红包</span>
        <span class="gwd-text" style="">${value}<span style="font-size: 12px; transform: scale(0.55); transform-origin: left bottom; display: inline-block; position: relative; top: -3px">元</span></span>
      </a>
      <style>
        .gwd-side-activity {
          position: fixed;
          top: 47px;
          right: 0;
          width: 64px;
          height: 91px;
          box-shadow: 2px 2px 30px 0px rgba(97,105,119,0.18);
          border-top-left-radius: 18px;
          border-bottom-left-radius: 18px;
          background: #fff;
          z-index: 9999;
          font-family: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'sans-serif';
        }
  
        .gwd-side-activity .gwd-text {
          position: absolute; 
          font-size: 13px; 
          color: #e8250a; 
          font-weight: bold; 
          top: 17px; 
          left: calc(50% + 2px); 
          transform: translateX(-50%) rotate(-5.24deg); 
          display: inline-block;
          white-space: nowrap;
          font-family: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'sans-serif';
        }
      </style>
    `);
  }
};

/***/ }),

/***/ 63779:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(48836);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("324a2b04", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 63784:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-single-coupon {\n  display: inline-block;\n}\n.gwd-single-coupon a {\n  display: inline-block;\n  width: 143px;\n  height: 20px;\n  line-height: 20px;\n  text-align: center;\n  font-size: 12px;\n  color: #ee2f36;\n  text-decoration: underline;\n  white-space: nowrap;\n}\n.gwd-single-coupon a img {\n  display: none;\n}\n.gwd-jd-promo-coupons-wrapper {\n  display: inline-block;\n  position: relative;\n  height: 22px;\n  margin-left: 5px;\n  margin-top: -2px;\n}\n.gwd-jd-promo-coupons {\n  display: inline-block;\n  position: absolute;\n  top: 0;\n  left: 0;\n  height: 20px;\n  overflow: hidden;\n  border-bottom: 1px solid transparent;\n  border-top: 1px solid transparent;\n}\n.gwd-jd-promo-coupons a {\n  display: block;\n  width: 150px;\n  height: 20px;\n  line-height: 20px;\n  text-align: center;\n  font-size: 12px;\n  color: #999999;\n  border-bottom: 1px solid transparent;\n  border-left: 1px solid transparent;\n  border-right: 1px solid transparent;\n  text-decoration: underline;\n  white-space: nowrap;\n}\n.gwd-jd-promo-coupons a:hover {\n  background: #ededed;\n  color: #ee2f36;\n}\n.gwd-jd-promo-coupons a:first-of-type {\n  color: #ee2f36;\n}\n.gwd-jd-promo-coupons a:first-of-type img {\n  transform: rotate(90deg);\n  margin-top: -3px;\n  margin-left: 2px;\n}\n.gwd-jd-promo-coupons:hover {\n  height: unset;\n  z-index: 9;\n  border-bottom: 1px solid #e3e3e3;\n  border-top: 1px solid #e3e3e3;\n  background: #ffffff;\n}\n.gwd-jd-promo-coupons:hover a {\n  border-bottom: 1px solid #e3e3e3;\n  border-left: 1px solid #e3e3e3;\n  border-right: 1px solid #e3e3e3;\n  text-decoration: none;\n}\n.gwd-jd-promo-coupons:hover a img {\n  transform: rotate(-90deg);\n  margin-top: 0px;\n}\n", ""]);

// exports


/***/ }),

/***/ 63860:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, $escape = $imports.$escape;
    $each(data, function ($value, $index) {
        $$out += '\n  <li class="index_';
        $$out += $escape($index);
        $$out += '" data-id="';
        $$out += $escape($value.dp_id);
        $$out += '">\n    <div class="item-box-dev">\n      <span class="com-item-pri prifontf">\xA5';
        $$out += $escape($value.price);
        $$out += '</span>\n      <span class="com-item-store blkcolor1">';
        $$out += $escape($value.site_name2 || $value.site_name);
        $$out += '</span>\n    </div>\n  </li>\n';
    });
    return $$out;
};

/***/ }),

/***/ 64042:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  "default": () => (/* binding */ index_esm)
});

;// ./node_modules/date-format-parse/es/util.js
function isDate(value) {
  return value instanceof Date || Object.prototype.toString.call(value) === '[object Date]';
}
function toDate(value) {
  if (isDate(value)) {
    return new Date(value.getTime());
  }

  if (value == null) {
    return new Date(NaN);
  }

  return new Date(value);
}
function isValidDate(value) {
  return isDate(value) && !isNaN(value.getTime());
}
function startOfWeek(value) {
  var firstDayOfWeek = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;

  if (!(firstDayOfWeek >= 0 && firstDayOfWeek <= 6)) {
    throw new RangeError('weekStartsOn must be between 0 and 6');
  }

  var date = toDate(value);
  var day = date.getDay();
  var diff = (day + 7 - firstDayOfWeek) % 7;
  date.setDate(date.getDate() - diff);
  date.setHours(0, 0, 0, 0);
  return date;
}
function startOfWeekYear(value) {
  var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
      _ref$firstDayOfWeek = _ref.firstDayOfWeek,
      firstDayOfWeek = _ref$firstDayOfWeek === void 0 ? 0 : _ref$firstDayOfWeek,
      _ref$firstWeekContain = _ref.firstWeekContainsDate,
      firstWeekContainsDate = _ref$firstWeekContain === void 0 ? 1 : _ref$firstWeekContain;

  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
    throw new RangeError('firstWeekContainsDate must be between 1 and 7');
  }

  var date = toDate(value);
  var year = date.getFullYear();
  var firstDateOfFirstWeek = new Date(0);

  for (var i = year + 1; i >= year - 1; i--) {
    firstDateOfFirstWeek.setFullYear(i, 0, firstWeekContainsDate);
    firstDateOfFirstWeek.setHours(0, 0, 0, 0);
    firstDateOfFirstWeek = startOfWeek(firstDateOfFirstWeek, firstDayOfWeek);

    if (date.getTime() >= firstDateOfFirstWeek.getTime()) {
      break;
    }
  }

  return firstDateOfFirstWeek;
}
function getWeek(value) {
  var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
      _ref2$firstDayOfWeek = _ref2.firstDayOfWeek,
      firstDayOfWeek = _ref2$firstDayOfWeek === void 0 ? 0 : _ref2$firstDayOfWeek,
      _ref2$firstWeekContai = _ref2.firstWeekContainsDate,
      firstWeekContainsDate = _ref2$firstWeekContai === void 0 ? 1 : _ref2$firstWeekContai;

  var date = toDate(value);
  var firstDateOfThisWeek = startOfWeek(date, firstDayOfWeek);
  var firstDateOfFirstWeek = startOfWeekYear(date, {
    firstDayOfWeek: firstDayOfWeek,
    firstWeekContainsDate: firstWeekContainsDate
  });
  var diff = firstDateOfThisWeek.getTime() - firstDateOfFirstWeek.getTime();
  return Math.round(diff / (7 * 24 * 3600 * 1000)) + 1;
}
;// ./node_modules/date-format-parse/es/locale/en.js
var locale = {
  months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
  monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
  weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
  weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
  weekdaysMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
  firstDayOfWeek: 0,
  firstWeekContainsDate: 1
};
/* harmony default export */ const en = (locale);
;// ./node_modules/date-format-parse/es/format.js


var REGEX_FORMAT = /\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;

function pad(val) {
  var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
  var output = "".concat(Math.abs(val));
  var sign = val < 0 ? '-' : '';

  while (output.length < len) {
    output = "0".concat(output);
  }

  return sign + output;
}

function getOffset(date) {
  return Math.round(date.getTimezoneOffset() / 15) * 15;
}

function formatTimezone(offset) {
  var delimeter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  var sign = offset > 0 ? '-' : '+';
  var absOffset = Math.abs(offset);
  var hours = Math.floor(absOffset / 60);
  var minutes = absOffset % 60;
  return sign + pad(hours, 2) + delimeter + pad(minutes, 2);
}

var meridiem = function meridiem(h, _, isLowercase) {
  var word = h < 12 ? 'AM' : 'PM';
  return isLowercase ? word.toLocaleLowerCase() : word;
};

var formatFlags = {
  Y: function Y(date) {
    var y = date.getFullYear();
    return y <= 9999 ? "".concat(y) : "+".concat(y);
  },
  // Year: 00, 01, ..., 99
  YY: function YY(date) {
    return pad(date.getFullYear(), 4).substr(2);
  },
  // Year: 1900, 1901, ..., 2099
  YYYY: function YYYY(date) {
    return pad(date.getFullYear(), 4);
  },
  // Month: 1, 2, ..., 12
  M: function M(date) {
    return date.getMonth() + 1;
  },
  // Month: 01, 02, ..., 12
  MM: function MM(date) {
    return pad(date.getMonth() + 1, 2);
  },
  MMM: function MMM(date, locale) {
    return locale.monthsShort[date.getMonth()];
  },
  MMMM: function MMMM(date, locale) {
    return locale.months[date.getMonth()];
  },
  // Day of month: 1, 2, ..., 31
  D: function D(date) {
    return date.getDate();
  },
  // Day of month: 01, 02, ..., 31
  DD: function DD(date) {
    return pad(date.getDate(), 2);
  },
  // Hour: 0, 1, ... 23
  H: function H(date) {
    return date.getHours();
  },
  // Hour: 00, 01, ..., 23
  HH: function HH(date) {
    return pad(date.getHours(), 2);
  },
  // Hour: 1, 2, ..., 12
  h: function h(date) {
    var hours = date.getHours();

    if (hours === 0) {
      return 12;
    }

    if (hours > 12) {
      return hours % 12;
    }

    return hours;
  },
  // Hour: 01, 02, ..., 12
  hh: function hh() {
    var hours = formatFlags.h.apply(formatFlags, arguments);
    return pad(hours, 2);
  },
  // Minute: 0, 1, ..., 59
  m: function m(date) {
    return date.getMinutes();
  },
  // Minute: 00, 01, ..., 59
  mm: function mm(date) {
    return pad(date.getMinutes(), 2);
  },
  // Second: 0, 1, ..., 59
  s: function s(date) {
    return date.getSeconds();
  },
  // Second: 00, 01, ..., 59
  ss: function ss(date) {
    return pad(date.getSeconds(), 2);
  },
  // 1/10 of second: 0, 1, ..., 9
  S: function S(date) {
    return Math.floor(date.getMilliseconds() / 100);
  },
  // 1/100 of second: 00, 01, ..., 99
  SS: function SS(date) {
    return pad(Math.floor(date.getMilliseconds() / 10), 2);
  },
  // Millisecond: 000, 001, ..., 999
  SSS: function SSS(date) {
    return pad(date.getMilliseconds(), 3);
  },
  // Day of week: 0, 1, ..., 6
  d: function d(date) {
    return date.getDay();
  },
  // Day of week: 'Su', 'Mo', ..., 'Sa'
  dd: function dd(date, locale) {
    return locale.weekdaysMin[date.getDay()];
  },
  // Day of week: 'Sun', 'Mon',..., 'Sat'
  ddd: function ddd(date, locale) {
    return locale.weekdaysShort[date.getDay()];
  },
  // Day of week: 'Sunday', 'Monday', ...,'Saturday'
  dddd: function dddd(date, locale) {
    return locale.weekdays[date.getDay()];
  },
  // AM, PM
  A: function A(date, locale) {
    var meridiemFunc = locale.meridiem || meridiem;
    return meridiemFunc(date.getHours(), date.getMinutes(), false);
  },
  // am, pm
  a: function a(date, locale) {
    var meridiemFunc = locale.meridiem || meridiem;
    return meridiemFunc(date.getHours(), date.getMinutes(), true);
  },
  // Timezone: -01:00, +00:00, ... +12:00
  Z: function Z(date) {
    return formatTimezone(getOffset(date), ':');
  },
  // Timezone: -0100, +0000, ... +1200
  ZZ: function ZZ(date) {
    return formatTimezone(getOffset(date));
  },
  // Seconds timestamp: 512969520
  X: function X(date) {
    return Math.floor(date.getTime() / 1000);
  },
  // Milliseconds timestamp: 512969520900
  x: function x(date) {
    return date.getTime();
  },
  w: function w(date, locale) {
    return getWeek(date, {
      firstDayOfWeek: locale.firstDayOfWeek,
      firstWeekContainsDate: locale.firstWeekContainsDate
    });
  },
  ww: function ww(date, locale) {
    return pad(formatFlags.w(date, locale), 2);
  }
};
function format(val, str) {
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  var formatStr = str ? String(str) : 'YYYY-MM-DDTHH:mm:ss.SSSZ';
  var date = toDate(val);

  if (!isValidDate(date)) {
    return 'Invalid Date';
  }

  var locale = options.locale || en;
  return formatStr.replace(REGEX_FORMAT, function (match, p1) {
    if (p1) {
      return p1;
    }

    if (typeof formatFlags[match] === 'function') {
      return "".concat(formatFlags[match](date, locale));
    }

    return match;
  });
}
;// ./node_modules/date-format-parse/es/parse.js
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }

function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }



var formattingTokens = /(\[[^\[]*\])|(MM?M?M?|Do|DD?|ddd?d?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|S{1,3}|x|X|ZZ?|.)/g;
var match1 = /\d/; // 0 - 9

var match2 = /\d\d/; // 00 - 99

var match3 = /\d{3}/; // 000 - 999

var match4 = /\d{4}/; // 0000 - 9999

var match1to2 = /\d\d?/; // 0 - 99

var matchShortOffset = /[+-]\d\d:?\d\d/; // +00:00 -00:00 +0000 or -0000

var matchSigned = /[+-]?\d+/; // -inf - inf

var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
// const matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i; // Word

var YEAR = 'year';
var MONTH = 'month';
var DAY = 'day';
var HOUR = 'hour';
var MINUTE = 'minute';
var SECOND = 'second';
var MILLISECOND = 'millisecond';
var parseFlags = {};

var addParseFlag = function addParseFlag(token, regex, callback) {
  var tokens = Array.isArray(token) ? token : [token];
  var func;

  if (typeof callback === 'string') {
    func = function func(input) {
      var value = parseInt(input, 10);
      return _defineProperty({}, callback, value);
    };
  } else {
    func = callback;
  }

  tokens.forEach(function (key) {
    parseFlags[key] = [regex, func];
  });
};

var escapeStringRegExp = function escapeStringRegExp(str) {
  return str.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
};

var matchWordRegExp = function matchWordRegExp(localeKey) {
  return function (locale) {
    var array = locale[localeKey];

    if (!Array.isArray(array)) {
      throw new Error("Locale[".concat(localeKey, "] need an array"));
    }

    return new RegExp(array.map(escapeStringRegExp).join('|'));
  };
};

var matchWordCallback = function matchWordCallback(localeKey, key) {
  return function (input, locale) {
    var array = locale[localeKey];

    if (!Array.isArray(array)) {
      throw new Error("Locale[".concat(localeKey, "] need an array"));
    }

    var index = array.indexOf(input);

    if (index < 0) {
      throw new Error('Invalid Word');
    }

    return _defineProperty({}, key, index);
  };
};

addParseFlag('Y', matchSigned, YEAR);
addParseFlag('YY', match2, function (input) {
  var year = new Date().getFullYear();
  var cent = Math.floor(year / 100);
  var value = parseInt(input, 10);
  value = (value > 68 ? cent - 1 : cent) * 100 + value;
  return _defineProperty({}, YEAR, value);
});
addParseFlag('YYYY', match4, YEAR);
addParseFlag('M', match1to2, function (input) {
  return _defineProperty({}, MONTH, parseInt(input, 10) - 1);
});
addParseFlag('MM', match2, function (input) {
  return _defineProperty({}, MONTH, parseInt(input, 10) - 1);
});
addParseFlag('MMM', matchWordRegExp('monthsShort'), matchWordCallback('monthsShort', MONTH));
addParseFlag('MMMM', matchWordRegExp('months'), matchWordCallback('months', MONTH));
addParseFlag('D', match1to2, DAY);
addParseFlag('DD', match2, DAY);
addParseFlag(['H', 'h'], match1to2, HOUR);
addParseFlag(['HH', 'hh'], match2, HOUR);
addParseFlag('m', match1to2, MINUTE);
addParseFlag('mm', match2, MINUTE);
addParseFlag('s', match1to2, SECOND);
addParseFlag('ss', match2, SECOND);
addParseFlag('S', match1, function (input) {
  return _defineProperty({}, MILLISECOND, parseInt(input, 10) * 100);
});
addParseFlag('SS', match2, function (input) {
  return _defineProperty({}, MILLISECOND, parseInt(input, 10) * 10);
});
addParseFlag('SSS', match3, MILLISECOND);

function matchMeridiem(locale) {
  return locale.meridiemParse || /[ap]\.?m?\.?/i;
}

function defaultIsPM(input) {
  return "".concat(input).toLowerCase().charAt(0) === 'p';
}

addParseFlag(['A', 'a'], matchMeridiem, function (input, locale) {
  var isPM = typeof locale.isPM === 'function' ? locale.isPM(input) : defaultIsPM(input);
  return {
    isPM: isPM
  };
});

function offsetFromString(str) {
  var _ref8 = str.match(/([+-]|\d\d)/g) || ['-', '0', '0'],
      _ref9 = _slicedToArray(_ref8, 3),
      symbol = _ref9[0],
      hour = _ref9[1],
      minute = _ref9[2];

  var minutes = parseInt(hour, 10) * 60 + parseInt(minute, 10);

  if (minutes === 0) {
    return 0;
  }

  return symbol === '+' ? -minutes : +minutes;
}

addParseFlag(['Z', 'ZZ'], matchShortOffset, function (input) {
  return {
    offset: offsetFromString(input)
  };
});
addParseFlag('x', matchSigned, function (input) {
  return {
    date: new Date(parseInt(input, 10))
  };
});
addParseFlag('X', matchTimestamp, function (input) {
  return {
    date: new Date(parseFloat(input) * 1000)
  };
});
addParseFlag('d', match1, 'weekday');
addParseFlag('dd', matchWordRegExp('weekdaysMin'), matchWordCallback('weekdaysMin', 'weekday'));
addParseFlag('ddd', matchWordRegExp('weekdaysShort'), matchWordCallback('weekdaysShort', 'weekday'));
addParseFlag('dddd', matchWordRegExp('weekdays'), matchWordCallback('weekdays', 'weekday'));
addParseFlag('w', match1to2, 'week');
addParseFlag('ww', match2, 'week');

function to24hour(hour, isPM) {
  if (hour !== undefined && isPM !== undefined) {
    if (isPM) {
      if (hour < 12) {
        return hour + 12;
      }
    } else if (hour === 12) {
      return 0;
    }
  }

  return hour;
}

function getFullInputArray(input) {
  var backupDate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Date();
  var result = [0, 0, 1, 0, 0, 0, 0];
  var backupArr = [backupDate.getFullYear(), backupDate.getMonth(), backupDate.getDate(), backupDate.getHours(), backupDate.getMinutes(), backupDate.getSeconds(), backupDate.getMilliseconds()];
  var useBackup = true;

  for (var i = 0; i < 7; i++) {
    if (input[i] === undefined) {
      result[i] = useBackup ? backupArr[i] : result[i];
    } else {
      result[i] = input[i];
      useBackup = false;
    }
  }

  return result;
}

function createDate(y, m, d, h, M, s, ms) {
  var date;

  if (y < 100 && y >= 0) {
    date = new Date(y + 400, m, d, h, M, s, ms);

    if (isFinite(date.getFullYear())) {
      date.setFullYear(y);
    }
  } else {
    date = new Date(y, m, d, h, M, s, ms);
  }

  return date;
}

function createUTCDate() {
  var date;

  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
    args[_key] = arguments[_key];
  }

  var y = args[0];

  if (y < 100 && y >= 0) {
    args[0] += 400;
    date = new Date(Date.UTC.apply(Date, args)); // eslint-disable-next-line no-restricted-globals

    if (isFinite(date.getUTCFullYear())) {
      date.setUTCFullYear(y);
    }
  } else {
    date = new Date(Date.UTC.apply(Date, args));
  }

  return date;
}

function makeParser(dateString, format, locale) {
  var tokens = format.match(formattingTokens);

  if (!tokens) {
    throw new Error();
  }

  var length = tokens.length;
  var mark = {};

  for (var i = 0; i < length; i += 1) {
    var token = tokens[i];
    var parseTo = parseFlags[token];

    if (!parseTo) {
      var word = token.replace(/^\[|\]$/g, '');

      if (dateString.indexOf(word) === 0) {
        dateString = dateString.substr(word.length);
      } else {
        throw new Error('not match');
      }
    } else {
      var regex = typeof parseTo[0] === 'function' ? parseTo[0](locale) : parseTo[0];
      var parser = parseTo[1];
      var value = (regex.exec(dateString) || [])[0];
      var obj = parser(value, locale);
      mark = _objectSpread({}, mark, {}, obj);
      dateString = dateString.replace(value, '');
    }
  }

  return mark;
}

function parse(str, format) {
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

  try {
    var _options$locale = options.locale,
        _locale = _options$locale === void 0 ? en : _options$locale,
        _options$backupDate = options.backupDate,
        backupDate = _options$backupDate === void 0 ? new Date() : _options$backupDate;

    var parseResult = makeParser(str, format, _locale);
    var year = parseResult.year,
        month = parseResult.month,
        day = parseResult.day,
        hour = parseResult.hour,
        minute = parseResult.minute,
        second = parseResult.second,
        millisecond = parseResult.millisecond,
        isPM = parseResult.isPM,
        date = parseResult.date,
        offset = parseResult.offset,
        weekday = parseResult.weekday,
        week = parseResult.week;

    if (date) {
      return date;
    }

    var inputArray = [year, month, day, hour, minute, second, millisecond];
    inputArray[3] = to24hour(inputArray[3], isPM); // check week

    if (week !== undefined && month === undefined && day === undefined) {
      // new Date(year, 3) make sure in current year
      var firstDate = startOfWeekYear(year === undefined ? backupDate : new Date(year, 3), {
        firstDayOfWeek: _locale.firstDayOfWeek,
        firstWeekContainsDate: _locale.firstWeekContainsDate
      });
      return new Date(firstDate.getTime() + (week - 1) * 7 * 24 * 3600 * 1000);
    }

    var parsedDate;
    var result = getFullInputArray(inputArray, backupDate);

    if (offset !== undefined) {
      result[6] += offset * 60 * 1000;
      parsedDate = createUTCDate.apply(void 0, _toConsumableArray(result));
    } else {
      parsedDate = createDate.apply(void 0, _toConsumableArray(result));
    } // check weekday


    if (weekday !== undefined && parsedDate.getDay() !== weekday) {
      return new Date(NaN);
    }

    return parsedDate;
  } catch (e) {
    return new Date(NaN);
  }
}
;// ./node_modules/date-format-parse/es/index.js



;// ./node_modules/vue2-datepicker/index.esm.js


function _typeof(obj) {
  "@babel/helpers - typeof";

  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
    _typeof = function (obj) {
      return typeof obj;
    };
  } else {
    _typeof = function (obj) {
      return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
    };
  }

  return _typeof(obj);
}

function index_esm_defineProperty(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }

  return obj;
}

function _extends() {
  _extends = Object.assign || function (target) {
    for (var i = 1; i < arguments.length; i++) {
      var source = arguments[i];

      for (var key in source) {
        if (Object.prototype.hasOwnProperty.call(source, key)) {
          target[key] = source[key];
        }
      }
    }

    return target;
  };

  return _extends.apply(this, arguments);
}

function index_esm_ownKeys(object, enumerableOnly) {
  var keys = Object.keys(object);

  if (Object.getOwnPropertySymbols) {
    var symbols = Object.getOwnPropertySymbols(object);
    if (enumerableOnly) symbols = symbols.filter(function (sym) {
      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
    });
    keys.push.apply(keys, symbols);
  }

  return keys;
}

function _objectSpread2(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = arguments[i] != null ? arguments[i] : {};

    if (i % 2) {
      index_esm_ownKeys(Object(source), true).forEach(function (key) {
        index_esm_defineProperty(target, key, source[key]);
      });
    } else if (Object.getOwnPropertyDescriptors) {
      Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
    } else {
      index_esm_ownKeys(Object(source)).forEach(function (key) {
        Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
      });
    }
  }

  return target;
}

function _objectWithoutPropertiesLoose(source, excluded) {
  if (source == null) return {};
  var target = {};
  var sourceKeys = Object.keys(source);
  var key, i;

  for (i = 0; i < sourceKeys.length; i++) {
    key = sourceKeys[i];
    if (excluded.indexOf(key) >= 0) continue;
    target[key] = source[key];
  }

  return target;
}

function _objectWithoutProperties(source, excluded) {
  if (source == null) return {};

  var target = _objectWithoutPropertiesLoose(source, excluded);

  var key, i;

  if (Object.getOwnPropertySymbols) {
    var sourceSymbolKeys = Object.getOwnPropertySymbols(source);

    for (i = 0; i < sourceSymbolKeys.length; i++) {
      key = sourceSymbolKeys[i];
      if (excluded.indexOf(key) >= 0) continue;
      if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
      target[key] = source[key];
    }
  }

  return target;
}

function index_esm_slicedToArray(arr, i) {
  return index_esm_arrayWithHoles(arr) || index_esm_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || index_esm_nonIterableRest();
}

function index_esm_arrayWithHoles(arr) {
  if (Array.isArray(arr)) return arr;
}

function index_esm_iterableToArrayLimit(arr, i) {
  if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
  var _arr = [];
  var _n = true;
  var _d = false;
  var _e = undefined;

  try {
    for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
      _arr.push(_s.value);

      if (i && _arr.length === i) break;
    }
  } catch (err) {
    _d = true;
    _e = err;
  } finally {
    try {
      if (!_n && _i["return"] != null) _i["return"]();
    } finally {
      if (_d) throw _e;
    }
  }

  return _arr;
}

function _unsupportedIterableToArray(o, minLen) {
  if (!o) return;
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
  var n = Object.prototype.toString.call(o).slice(8, -1);
  if (n === "Object" && o.constructor) n = o.constructor.name;
  if (n === "Map" || n === "Set") return Array.from(n);
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}

function _arrayLikeToArray(arr, len) {
  if (len == null || len > arr.length) len = arr.length;

  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];

  return arr2;
}

function index_esm_nonIterableRest() {
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

function _extends$1() {
  return _extends$1 = Object.assign || function (a) {
    for (var b, c = 1; c < arguments.length; c++) {
      for (var d in b = arguments[c], b) {
        Object.prototype.hasOwnProperty.call(b, d) && (a[d] = b[d]);
      }
    }

    return a;
  }, _extends$1.apply(this, arguments);
}

var normalMerge = ["attrs", "props", "domProps"],
    toArrayMerge = ["class", "style", "directives"],
    functionalMerge = ["on", "nativeOn"],
    mergeJsxProps = function mergeJsxProps(a) {
  return a.reduce(function (c, a) {
    for (var b in a) {
      if (!c[b]) c[b] = a[b];else if (-1 !== normalMerge.indexOf(b)) c[b] = _extends$1({}, c[b], a[b]);else if (-1 !== toArrayMerge.indexOf(b)) {
        var d = c[b] instanceof Array ? c[b] : [c[b]],
            e = a[b] instanceof Array ? a[b] : [a[b]];
        c[b] = d.concat(e);
      } else if (-1 !== functionalMerge.indexOf(b)) {
        for (var f in a[b]) {
          if (c[b][f]) {
            var g = c[b][f] instanceof Array ? c[b][f] : [c[b][f]],
                h = a[b][f] instanceof Array ? a[b][f] : [a[b][f]];
            c[b][f] = g.concat(h);
          } else c[b][f] = a[b][f];
        }
      } else if ("hook" == b) for (var i in a[b]) {
        c[b][i] = c[b][i] ? mergeFn(c[b][i], a[b][i]) : a[b][i];
      } else c[b] = a[b];
    }

    return c;
  }, {});
},
    mergeFn = function mergeFn(a, b) {
  return function () {
    a && a.apply(this, arguments), b && b.apply(this, arguments);
  };
};

var helper = mergeJsxProps;

// new Date(10, 0, 1) The year from 0 to 99 will be incremented by 1900 automatically.
function index_esm_createDate(y) {
  var M = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  var d = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
  var h = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
  var m = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
  var s = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
  var ms = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : 0;
  var date = new Date(y, M, d, h, m, s, ms);

  if (y < 100 && y >= 0) {
    date.setFullYear(y);
  }

  return date;
}
function index_esm_isValidDate(date) {
  return date instanceof Date && !isNaN(date);
}
function isValidRangeDate(date) {
  return Array.isArray(date) && date.length === 2 && date.every(index_esm_isValidDate) && date[0] <= date[1];
}
function isValidDates(dates) {
  return Array.isArray(dates) && dates.every(index_esm_isValidDate);
}
function getValidDate(value) {
  var date = new Date(value);

  if (index_esm_isValidDate(date)) {
    return date;
  }

  for (var _len = arguments.length, backup = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    backup[_key - 1] = arguments[_key];
  }

  if (backup.length) {
    return getValidDate.apply(void 0, backup);
  }

  return new Date();
}
function startOfYear(value) {
  var date = new Date(value);
  date.setMonth(0, 1);
  date.setHours(0, 0, 0, 0);
  return date;
}
function startOfMonth(value) {
  var date = new Date(value);
  date.setDate(1);
  date.setHours(0, 0, 0, 0);
  return date;
}
function startOfDay(value) {
  var date = new Date(value);
  date.setHours(0, 0, 0, 0);
  return date;
}
function getCalendar(_ref) {
  var firstDayOfWeek = _ref.firstDayOfWeek,
      year = _ref.year,
      month = _ref.month;
  var arr = []; // change to the last day of the last month

  var calendar = index_esm_createDate(year, month, 0);
  var lastDayInLastMonth = calendar.getDate(); // getDay() 0 is Sunday, 1 is Monday

  var firstDayInLastMonth = lastDayInLastMonth - (calendar.getDay() + 7 - firstDayOfWeek) % 7;

  for (var i = firstDayInLastMonth; i <= lastDayInLastMonth; i++) {
    arr.push(index_esm_createDate(year, month, i - lastDayInLastMonth));
  } // change to the last day of the current month


  calendar.setMonth(month + 1, 0);
  var lastDayInCurrentMonth = calendar.getDate();

  for (var _i = 1; _i <= lastDayInCurrentMonth; _i++) {
    arr.push(index_esm_createDate(year, month, _i));
  }

  var lastMonthLength = lastDayInLastMonth - firstDayInLastMonth + 1;
  var nextMonthLength = 6 * 7 - lastMonthLength - lastDayInCurrentMonth;

  for (var _i2 = 1; _i2 <= nextMonthLength; _i2++) {
    arr.push(index_esm_createDate(year, month, lastDayInCurrentMonth + _i2));
  }

  return arr;
}
function setMonth(dirtyDate, dirtyMonth) {
  var date = new Date(dirtyDate);
  var month = typeof dirtyMonth === 'function' ? dirtyMonth(date.getMonth()) : Number(dirtyMonth);
  var year = date.getFullYear();
  var daysInMonth = index_esm_createDate(year, month + 1, 0).getDate();
  var day = date.getDate();
  date.setMonth(month, Math.min(day, daysInMonth));
  return date;
}
function setYear(dirtyDate, dirtyYear) {
  var date = new Date(dirtyDate);
  var year = typeof dirtyYear === 'function' ? dirtyYear(date.getFullYear()) : dirtyYear;
  date.setFullYear(year);
  return date;
}
function assignTime(target, source) {
  var date = new Date(target);
  var time = new Date(source);
  date.setHours(time.getHours(), time.getMinutes(), time.getSeconds());
  return date;
}

/**
 * chunk the array
 * @param {Array} arr
 * @param {Number} size
 */
function chunk(arr, size) {
  if (!Array.isArray(arr)) {
    return [];
  }

  var result = [];
  var len = arr.length;
  var i = 0;
  size = size || len;

  while (i < len) {
    result.push(arr.slice(i, i += size));
  }

  return result;
}
/**
 * isObject
 * @param {*} obj
 * @returns {Boolean}
 */

function isObject(obj) {
  return Object.prototype.toString.call(obj) === '[object Object]';
}
/**
 * pick object
 * @param {Object} obj
 * @param {Array|String} props
 */

function pick(obj, props) {
  if (!isObject(obj)) return {};

  if (!Array.isArray(props)) {
    props = [props];
  }

  var res = {};
  props.forEach(function (prop) {
    if (prop in obj) {
      res[prop] = obj[prop];
    }
  });
  return res;
}
/**
 * deep merge two object without merging array
 * @param {object} target
 * @param {object} source
 */

function mergeDeep(target, source) {
  if (!isObject(target)) {
    return {};
  }

  var result = target;

  if (isObject(source)) {
    Object.keys(source).forEach(function (key) {
      var value = source[key];

      if (isObject(value) && isObject(target[key])) {
        value = mergeDeep(target[key], value);
      }

      result = _objectSpread2({}, result, index_esm_defineProperty({}, key, value));
    });
  }

  return result;
}

function unwrapExports (x) {
	return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
}

function createCommonjsModule(fn, module) {
	return module = { exports: {} }, fn(module, module.exports), module.exports;
}

var index_esm_en = createCommonjsModule(function (module, exports) {

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var locale = {
  months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
  monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
  weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
  weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
  weekdaysMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
  firstDayOfWeek: 0,
  firstWeekContainsDate: 1
};
var _default = locale;
exports["default"] = _default;
module.exports = exports.default;
});

var en$1 = unwrapExports(index_esm_en);

var lang = {
  formatLocale: en$1,
  yearFormat: 'YYYY',
  monthFormat: 'MMM',
  monthBeforeYear: true
};

var defaultLocale = 'en';
var locales = {};
locales[defaultLocale] = lang;
function index_esm_locale(name, object, isLocal) {
  if (typeof name !== 'string') return locales[defaultLocale];
  var l = defaultLocale;

  if (locales[name]) {
    l = name;
  }

  if (object) {
    locales[name] = object;
    l = name;
  }

  if (!isLocal) {
    defaultLocale = l;
  }

  return locales[name] || locales[defaultLocale];
}
/**
 * get locale object
 * @param {string} name lang
 */

function getLocale(name) {
  return index_esm_locale(name, null, true);
}

/* istanbul ignore file */
function rafThrottle(fn) {
  var isRunning = false;
  return function fnBinfRaf() {
    var _this = this;

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    if (isRunning) return;
    isRunning = true;
    requestAnimationFrame(function () {
      isRunning = false;
      fn.apply(_this, args);
    });
  };
}

/**
 * get the hidden element width, height
 * @param {HTMLElement} element dom
 */
function getPopupElementSize(element) {
  var originalDisplay = element.style.display;
  var originalVisibility = element.style.visibility;
  element.style.display = 'block';
  element.style.visibility = 'hidden';
  var styles = window.getComputedStyle(element);
  var width = element.offsetWidth + parseInt(styles.marginLeft, 10) + parseInt(styles.marginRight, 10);
  var height = element.offsetHeight + parseInt(styles.marginTop, 10) + parseInt(styles.marginBottom, 10);
  element.style.display = originalDisplay;
  element.style.visibility = originalVisibility;
  return {
    width: width,
    height: height
  };
}
/**
 * get the popup position
 * @param {HTMLElement} el relative element
 * @param {Number} targetWidth target element's width
 * @param {Number} targetHeight target element's height
 * @param {Boolean} fixed
 */

function getRelativePosition(el, targetWidth, targetHeight, fixed) {
  var left = 0;
  var top = 0;
  var offsetX = 0;
  var offsetY = 0;
  var relativeRect = el.getBoundingClientRect();
  var dw = document.documentElement.clientWidth;
  var dh = document.documentElement.clientHeight;

  if (fixed) {
    offsetX = window.pageXOffset + relativeRect.left;
    offsetY = window.pageYOffset + relativeRect.top;
  }

  if (dw - relativeRect.left < targetWidth && relativeRect.right < targetWidth) {
    left = offsetX - relativeRect.left + 1;
  } else if (relativeRect.left + relativeRect.width / 2 <= dw / 2) {
    left = offsetX;
  } else {
    left = offsetX + relativeRect.width - targetWidth;
  }

  if (relativeRect.top <= targetHeight && dh - relativeRect.bottom <= targetHeight) {
    top = offsetY + dh - relativeRect.top - targetHeight;
  } else if (relativeRect.top + relativeRect.height / 2 <= dh / 2) {
    top = offsetY + relativeRect.height;
  } else {
    top = offsetY - targetHeight;
  }

  return {
    left: "".concat(left, "px"),
    top: "".concat(top, "px")
  };
}
function getScrollParent(node) {
  var until = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document.body;

  if (!node || node === until) {
    return null;
  }

  var style = function style(value, prop) {
    return getComputedStyle(value, null).getPropertyValue(prop);
  };

  var regex = /(auto|scroll)/;
  var scroll = regex.test(style(node, 'overflow') + style(node, 'overflow-y') + style(node, 'overflow-x'));
  return scroll ? node : getScrollParent(node.parentNode, until);
}

//
var script = {
  name: 'Popup',
  inject: {
    prefixClass: {
      default: 'mx'
    }
  },
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    appendToBody: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    return {
      top: '',
      left: ''
    };
  },
  watch: {
    visible: {
      immediate: true,
      handler: function handler(val) {
        var _this = this;

        this.$nextTick(function () {
          if (val) {
            _this.displayPopup();
          }
        });
      }
    }
  },
  mounted: function mounted() {
    var _this2 = this;

    if (this.appendToBody) {
      document.body.appendChild(this.$el);
    }

    this._clickoutEvent = 'ontouchend' in document ? 'touchstart' : 'mousedown';
    document.addEventListener(this._clickoutEvent, this.handleClickOutside); // change the popup position when resize or scroll

    var relativeElement = this.$parent.$el;
    this._displayPopup = rafThrottle(function () {
      return _this2.displayPopup();
    });
    this._scrollParent = getScrollParent(relativeElement) || window;

    this._scrollParent.addEventListener('scroll', this._displayPopup);

    window.addEventListener('resize', this._displayPopup);
  },
  beforeDestroy: function beforeDestroy() {
    if (this.appendToBody && this.$el.parentNode) {
      this.$el.parentNode.removeChild(this.$el);
    }

    document.removeEventListener(this._clickoutEvent, this.handleClickOutside);

    this._scrollParent.removeEventListener('scroll', this._displayPopup);

    window.removeEventListener('resize', this._displayPopup);
  },
  methods: {
    handleClickOutside: function handleClickOutside(evt) {
      if (!this.visible) return;
      var target = evt.target;
      var el = this.$el;

      if (el && !el.contains(target)) {
        this.$emit('clickoutside', evt);
      }
    },
    displayPopup: function displayPopup() {
      if (!this.visible) return;
      var popup = this.$el;
      var relativeElement = this.$parent.$el;
      var appendToBody = this.appendToBody;

      if (!this._popupRect) {
        this._popupRect = getPopupElementSize(popup);
      }

      var _this$_popupRect = this._popupRect,
          width = _this$_popupRect.width,
          height = _this$_popupRect.height;

      var _getRelativePosition = getRelativePosition(relativeElement, width, height, appendToBody),
          left = _getRelativePosition.left,
          top = _getRelativePosition.top;

      this.left = left;
      this.top = top;
    }
  }
};

function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
/* server only */
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
  if (typeof shadowMode !== 'boolean') {
    createInjectorSSR = createInjector;
    createInjector = shadowMode;
    shadowMode = false;
  } // Vue.extend constructor export interop.


  var options = typeof script === 'function' ? script.options : script; // render functions

  if (template && template.render) {
    options.render = template.render;
    options.staticRenderFns = template.staticRenderFns;
    options._compiled = true; // functional template

    if (isFunctionalTemplate) {
      options.functional = true;
    }
  } // scopedId


  if (scopeId) {
    options._scopeId = scopeId;
  }

  var hook;

  if (moduleIdentifier) {
    // server build
    hook = function hook(context) {
      // 2.3 injection
      context = context || // cached call
      this.$vnode && this.$vnode.ssrContext || // stateful
      this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
      // 2.2 with runInNewContext: true

      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
        context = __VUE_SSR_CONTEXT__;
      } // inject component styles


      if (style) {
        style.call(this, createInjectorSSR(context));
      } // register component module identifier for async chunk inference


      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier);
      }
    }; // used by ssr in case component is cached and beforeCreate
    // never gets called


    options._ssrRegister = hook;
  } else if (style) {
    hook = shadowMode ? function (context) {
      style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
    } : function (context) {
      style.call(this, createInjector(context));
    };
  }

  if (hook) {
    if (options.functional) {
      // register for functional component in vue file
      var originalRender = options.render;

      options.render = function renderWithStyleInjection(h, context) {
        hook.call(context);
        return originalRender(h, context);
      };
    } else {
      // inject component registration as beforeCreate hook
      var existing = options.beforeCreate;
      options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
    }
  }

  return script;
}

/* script */
var __vue_script__ = script;
/* template */

var __vue_render__ = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c('transition', {
    attrs: {
      "name": _vm.prefixClass + "-zoom-in-down"
    }
  }, [_vm.visible ? _c('div', {
    class: _vm.prefixClass + "-datepicker-main " + _vm.prefixClass + "-datepicker-popup",
    style: {
      top: _vm.top,
      left: _vm.left,
      position: 'absolute'
    }
  }, [_vm._t("default")], 2) : _vm._e()]);
};

var __vue_staticRenderFns__ = [];
/* style */

var __vue_inject_styles__ = undefined;
/* scoped */

var __vue_scope_id__ = undefined;
/* module identifier */

var __vue_module_identifier__ = undefined;
/* functional template */

var __vue_is_functional_template__ = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__ = normalizeComponent({
  render: __vue_render__,
  staticRenderFns: __vue_staticRenderFns__
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);

/* script */

/* template */
var __vue_render__$1 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c('svg', {
    attrs: {
      "xmlns": "http://www.w3.org/2000/svg",
      "viewBox": "0 0 1024 1024",
      "width": "1em",
      "height": "1em"
    }
  }, [_c('path', {
    attrs: {
      "d": "M940.218182 107.054545h-209.454546V46.545455h-65.163636v60.50909H363.054545V46.545455H297.890909v60.50909H83.781818c-18.618182 0-32.581818 13.963636-32.581818 32.581819v805.236363c0 18.618182 13.963636 32.581818 32.581818 32.581818h861.090909c18.618182 0 32.581818-13.963636 32.581818-32.581818V139.636364c-4.654545-18.618182-18.618182-32.581818-37.236363-32.581819zM297.890909 172.218182V232.727273h65.163636V172.218182h307.2V232.727273h65.163637V172.218182h176.872727v204.8H116.363636V172.218182h181.527273zM116.363636 912.290909V442.181818h795.927273v470.109091H116.363636z"
    }
  })]);
};

var __vue_staticRenderFns__$1 = [];
/* style */

var __vue_inject_styles__$1 = undefined;
/* scoped */

var __vue_scope_id__$1 = undefined;
/* module identifier */

var __vue_module_identifier__$1 = undefined;
/* functional template */

var __vue_is_functional_template__$1 = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$1 = normalizeComponent({
  render: __vue_render__$1,
  staticRenderFns: __vue_staticRenderFns__$1
}, __vue_inject_styles__$1, {}, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);

/* script */

/* template */
var __vue_render__$2 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c('svg', {
    attrs: {
      "xmlns": "http://www.w3.org/2000/svg",
      "viewBox": "0 0 24 24",
      "width": "1em",
      "height": "1em"
    }
  }, [_c('path', {
    attrs: {
      "d": "M0 0h24v24H0z",
      "fill": "none"
    }
  }), _vm._v(" "), _c('path', {
    attrs: {
      "d": "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
    }
  }), _vm._v(" "), _c('path', {
    attrs: {
      "d": "M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"
    }
  })]);
};

var __vue_staticRenderFns__$2 = [];
/* style */

var __vue_inject_styles__$2 = undefined;
/* scoped */

var __vue_scope_id__$2 = undefined;
/* module identifier */

var __vue_module_identifier__$2 = undefined;
/* functional template */

var __vue_is_functional_template__$2 = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$2 = normalizeComponent({
  render: __vue_render__$2,
  staticRenderFns: __vue_staticRenderFns__$2
}, __vue_inject_styles__$2, {}, __vue_scope_id__$2, __vue_is_functional_template__$2, __vue_module_identifier__$2, false, undefined, undefined, undefined);

/* script */

/* template */
var __vue_render__$3 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c('svg', {
    attrs: {
      "xmlns": "http://www.w3.org/2000/svg",
      "viewBox": "0 0 1024 1024",
      "width": "1em",
      "height": "1em"
    }
  }, [_c('path', {
    attrs: {
      "d": "M810.005333 274.005333l-237.994667 237.994667 237.994667 237.994667-60.010667 60.010667-237.994667-237.994667-237.994667 237.994667-60.010667-60.010667 237.994667-237.994667-237.994667-237.994667 60.010667-60.010667 237.994667 237.994667 237.994667-237.994667z"
    }
  })]);
};

var __vue_staticRenderFns__$3 = [];
/* style */

var __vue_inject_styles__$3 = undefined;
/* scoped */

var __vue_scope_id__$3 = undefined;
/* module identifier */

var __vue_module_identifier__$3 = undefined;
/* functional template */

var __vue_is_functional_template__$3 = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$3 = normalizeComponent({
  render: __vue_render__$3,
  staticRenderFns: __vue_staticRenderFns__$3
}, __vue_inject_styles__$3, {}, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, undefined, undefined, undefined);

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var script$1 = {
  props: {
    type: String,
    disabled: Boolean
  },
  inject: {
    prefixClass: {
      default: 'mx'
    }
  }
};

/* script */
var __vue_script__$1 = script$1;
/* template */

var __vue_render__$4 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c('button', _vm._g({
    class: [_vm.prefixClass + "-btn " + _vm.prefixClass + "-btn-text " + _vm.prefixClass + "-btn-icon-" + _vm.type, {
      disabled: _vm.disabled
    }],
    attrs: {
      "type": "button",
      "disabled": _vm.disabled
    }
  }, _vm.$listeners), [_c('i', {
    class: _vm.prefixClass + "-icon-" + _vm.type
  })]);
};

var __vue_staticRenderFns__$4 = [];
/* style */

var __vue_inject_styles__$4 = undefined;
/* scoped */

var __vue_scope_id__$4 = undefined;
/* module identifier */

var __vue_module_identifier__$4 = undefined;
/* functional template */

var __vue_is_functional_template__$4 = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$4 = normalizeComponent({
  render: __vue_render__$4,
  staticRenderFns: __vue_staticRenderFns__$4
}, __vue_inject_styles__$4, __vue_script__$1, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, undefined, undefined, undefined);

var script$2 = {
  name: 'TableDate',
  components: {
    IconButton: __vue_component__$4
  },
  inject: {
    getLocale: {
      default: function _default() {
        return getLocale;
      }
    },
    getWeek: {
      default: function _default() {
        return getWeek;
      }
    },
    prefixClass: {
      default: 'mx'
    },
    onDateMouseEnter: {
      default: undefined
    },
    onDateMouseLeave: {
      default: undefined
    }
  },
  props: {
    disabledCalendarChanger: {
      type: Function,
      default: function _default() {
        return false;
      }
    },
    calendar: {
      type: Date,
      default: function _default() {
        return new Date();
      }
    },
    showWeekNumber: {
      type: Boolean,
      default: false
    },
    titleFormat: {
      type: String,
      default: 'YYYY-MM-DD'
    },
    getRowClasses: {
      type: Function,
      default: function _default() {
        return [];
      }
    },
    getCellClasses: {
      type: Function,
      default: function _default() {
        return [];
      }
    }
  },
  computed: {
    firstDayOfWeek: function firstDayOfWeek() {
      return this.getLocale().formatLocale.firstDayOfWeek || 0;
    },
    yearMonth: function yearMonth() {
      var _this$getLocale = this.getLocale(),
          yearFormat = _this$getLocale.yearFormat,
          monthBeforeYear = _this$getLocale.monthBeforeYear,
          _this$getLocale$month = _this$getLocale.monthFormat,
          monthFormat = _this$getLocale$month === void 0 ? 'MMM' : _this$getLocale$month;

      var yearLabel = {
        panel: 'year',
        label: this.formatDate(this.calendar, yearFormat)
      };
      var monthLabel = {
        panel: 'month',
        label: this.formatDate(this.calendar, monthFormat)
      };
      return monthBeforeYear ? [monthLabel, yearLabel] : [yearLabel, monthLabel];
    },
    days: function days() {
      var locale = this.getLocale();
      var days = locale.days || locale.formatLocale.weekdaysMin;
      return days.concat(days).slice(this.firstDayOfWeek, this.firstDayOfWeek + 7);
    },
    dates: function dates() {
      var year = this.calendar.getFullYear();
      var month = this.calendar.getMonth();
      var arr = getCalendar({
        firstDayOfWeek: this.firstDayOfWeek,
        year: year,
        month: month
      });
      return chunk(arr, 7);
    }
  },
  methods: {
    isDisabledArrows: function isDisabledArrows(type) {
      var date = new Date(this.calendar);

      switch (type) {
        case 'last-year':
          date.setFullYear(date.getFullYear() - 1, date.getMonth() + 1, 0);
          date.setHours(23, 59, 59, 999);
          break;

        case 'next-year':
          date.setFullYear(date.getFullYear() + 1);
          break;

        case 'last-month':
          date.setMonth(date.getMonth(), 0);
          date.setHours(23, 59, 59, 999);
          break;

        case 'next-month':
          date.setMonth(date.getMonth() + 1);
          break;
      }

      return this.disabledCalendarChanger(date, type);
    },
    handleIconLeftClick: function handleIconLeftClick() {
      this.$emit('changecalendar', setMonth(this.calendar, function (v) {
        return v - 1;
      }), 'last-month');
    },
    handleIconRightClick: function handleIconRightClick() {
      this.$emit('changecalendar', setMonth(this.calendar, function (v) {
        return v + 1;
      }), 'next-month');
    },
    handleIconDoubleLeftClick: function handleIconDoubleLeftClick() {
      this.$emit('changecalendar', setYear(this.calendar, function (v) {
        return v - 1;
      }), 'last-year');
    },
    handleIconDoubleRightClick: function handleIconDoubleRightClick() {
      this.$emit('changecalendar', setYear(this.calendar, function (v) {
        return v + 1;
      }), 'next-year');
    },
    handlePanelChange: function handlePanelChange(panel) {
      this.$emit('changepanel', panel);
    },
    handleMouseEnter: function handleMouseEnter(cell) {
      if (typeof this.onDateMouseEnter === 'function') {
        this.onDateMouseEnter(cell);
      }
    },
    handleMouseLeave: function handleMouseLeave(cell) {
      if (typeof this.onDateMouseLeave === 'function') {
        this.onDateMouseLeave(cell);
      }
    },
    handleCellClick: function handleCellClick(evt) {
      var target = evt.target;

      if (target.tagName.toUpperCase() === 'DIV') {
        target = target.parentNode;
      }

      var index = target.getAttribute('data-row-col');

      if (index) {
        var _index$split$map = index.split(',').map(function (v) {
          return parseInt(v, 10);
        }),
            _index$split$map2 = index_esm_slicedToArray(_index$split$map, 2),
            row = _index$split$map2[0],
            col = _index$split$map2[1];

        var date = this.dates[row][col];
        this.$emit('select', new Date(date));
      }
    },
    formatDate: function formatDate(date, fmt) {
      return format(date, fmt, {
        locale: this.getLocale().formatLocale
      });
    },
    getCellTitle: function getCellTitle(date) {
      var fmt = this.titleFormat;
      return this.formatDate(date, fmt);
    },
    getWeekNumber: function getWeekNumber(date) {
      return this.getWeek(date, this.getLocale().formatLocale);
    }
  }
};

/* script */
var __vue_script__$2 = script$2;
/* template */

var __vue_render__$5 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c('div', {
    class: _vm.prefixClass + "-calendar " + _vm.prefixClass + "-calendar-panel-date"
  }, [_c('div', {
    class: _vm.prefixClass + "-calendar-header"
  }, [_c('icon-button', {
    attrs: {
      "type": "double-left",
      "disabled": _vm.isDisabledArrows('last-year')
    },
    on: {
      "click": _vm.handleIconDoubleLeftClick
    }
  }), _vm._v(" "), _c('icon-button', {
    attrs: {
      "type": "left",
      "disabled": _vm.isDisabledArrows('last-month')
    },
    on: {
      "click": _vm.handleIconLeftClick
    }
  }), _vm._v(" "), _c('icon-button', {
    attrs: {
      "type": "double-right",
      "disabled": _vm.isDisabledArrows('next-year')
    },
    on: {
      "click": _vm.handleIconDoubleRightClick
    }
  }), _vm._v(" "), _c('icon-button', {
    attrs: {
      "type": "right",
      "disabled": _vm.isDisabledArrows('next-month')
    },
    on: {
      "click": _vm.handleIconRightClick
    }
  }), _vm._v(" "), _c('span', {
    class: _vm.prefixClass + "-calendar-header-label"
  }, _vm._l(_vm.yearMonth, function (item) {
    return _c('button', {
      key: item.panel,
      class: _vm.prefixClass + "-btn " + _vm.prefixClass + "-btn-text " + _vm.prefixClass + "-btn-current-" + item.panel,
      attrs: {
        "type": "button"
      },
      on: {
        "click": function click($event) {
          return _vm.handlePanelChange(item.panel);
        }
      }
    }, [_vm._v("\n        " + _vm._s(item.label) + "\n      ")]);
  }), 0)], 1), _vm._v(" "), _c('div', {
    class: _vm.prefixClass + "-calendar-content"
  }, [_c('table', {
    class: _vm.prefixClass + "-table " + _vm.prefixClass + "-table-date"
  }, [_c('thead', [_c('tr', [_vm.showWeekNumber ? _c('th', {
    class: _vm.prefixClass + "-week-number-header"
  }) : _vm._e(), _vm._v(" "), _vm._l(_vm.days, function (day) {
    return _c('th', {
      key: day
    }, [_vm._v(_vm._s(day))]);
  })], 2)]), _vm._v(" "), _c('tbody', {
    on: {
      "click": _vm.handleCellClick
    }
  }, _vm._l(_vm.dates, function (row, i) {
    return _c('tr', {
      key: i,
      class: [_vm.prefixClass + "-date-row", _vm.getRowClasses(row)]
    }, [_vm.showWeekNumber ? _c('td', {
      class: _vm.prefixClass + "-week-number",
      attrs: {
        "data-row-col": i + ",0"
      }
    }, [_vm._v("\n            " + _vm._s(_vm.getWeekNumber(row[0])) + "\n          ")]) : _vm._e(), _vm._v(" "), _vm._l(row, function (cell, j) {
      return _c('td', {
        key: j,
        staticClass: "cell",
        class: _vm.getCellClasses(cell),
        attrs: {
          "data-row-col": i + "," + j,
          "title": _vm.getCellTitle(cell)
        },
        on: {
          "mouseenter": function mouseenter($event) {
            return _vm.handleMouseEnter(cell);
          },
          "mouseleave": function mouseleave($event) {
            return _vm.handleMouseLeave(cell);
          }
        }
      }, [_c('div', [_vm._v(_vm._s(cell.getDate()))])]);
    })], 2);
  }), 0)])])]);
};

var __vue_staticRenderFns__$5 = [];
/* style */

var __vue_inject_styles__$5 = undefined;
/* scoped */

var __vue_scope_id__$5 = undefined;
/* module identifier */

var __vue_module_identifier__$5 = undefined;
/* functional template */

var __vue_is_functional_template__$5 = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$5 = normalizeComponent({
  render: __vue_render__$5,
  staticRenderFns: __vue_staticRenderFns__$5
}, __vue_inject_styles__$5, __vue_script__$2, __vue_scope_id__$5, __vue_is_functional_template__$5, __vue_module_identifier__$5, false, undefined, undefined, undefined);

//
var script$3 = {
  name: 'TableMonth',
  components: {
    IconButton: __vue_component__$4
  },
  inject: {
    getLocale: {
      default: function _default() {
        return getLocale;
      }
    },
    prefixClass: {
      default: 'mx'
    }
  },
  props: {
    disabledCalendarChanger: {
      type: Function,
      default: function _default() {
        return false;
      }
    },
    calendar: {
      type: Date,
      default: function _default() {
        return new Date();
      }
    },
    getCellClasses: {
      type: Function,
      default: function _default() {
        return [];
      }
    }
  },
  computed: {
    calendarYear: function calendarYear() {
      return this.calendar.getFullYear();
    },
    months: function months() {
      var locale = this.getLocale();
      var monthsLocale = locale.months || locale.formatLocale.monthsShort;
      var months = monthsLocale.map(function (text, month) {
        return {
          text: text,
          month: month
        };
      });
      return chunk(months, 3);
    }
  },
  methods: {
    isDisabledArrows: function isDisabledArrows(type) {
      var date = new Date(this.calendar);

      switch (type) {
        case 'last-year':
          date.setFullYear(date.getFullYear() - 1, 11, 31);
          date.setHours(23, 59, 59, 999);
          break;

        case 'next-year':
          date.setFullYear(date.getFullYear() + 1, 0, 1);
          break;
      }

      return this.disabledCalendarChanger(date, type);
    },
    handleIconDoubleLeftClick: function handleIconDoubleLeftClick() {
      this.$emit('changecalendar', setYear(this.calendar, function (v) {
        return v - 1;
      }), 'last-year');
    },
    handleIconDoubleRightClick: function handleIconDoubleRightClick() {
      this.$emit('changecalendar', setYear(this.calendar, function (v) {
        return v + 1;
      }), 'next-year');
    },
    handlePanelChange: function handlePanelChange() {
      this.$emit('changepanel', 'year');
    },
    handleClick: function handleClick(evt) {
      var target = evt.target;

      if (target.tagName.toUpperCase() === 'DIV') {
        target = target.parentNode;
      }

      var month = target.getAttribute('data-month');

      if (month && !target.classList.contains('disabled')) {
        this.$emit('select', parseInt(month, 10));
      }
    }
  }
};

/* script */
var __vue_script__$3 = script$3;
/* template */

var __vue_render__$6 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c('div', {
    class: _vm.prefixClass + "-calendar " + _vm.prefixClass + "-calendar-panel-month"
  }, [_c('div', {
    class: _vm.prefixClass + "-calendar-header"
  }, [_c('icon-button', {
    attrs: {
      "type": "double-left",
      "disabled": _vm.isDisabledArrows('last-year')
    },
    on: {
      "click": _vm.handleIconDoubleLeftClick
    }
  }), _vm._v(" "), _c('icon-button', {
    attrs: {
      "type": "double-right",
      "disabled": _vm.isDisabledArrows('next-year')
    },
    on: {
      "click": _vm.handleIconDoubleRightClick
    }
  }), _vm._v(" "), _c('span', {
    class: _vm.prefixClass + "-calendar-header-label"
  }, [_c('button', {
    class: _vm.prefixClass + "-btn " + _vm.prefixClass + "-btn-text",
    attrs: {
      "type": "button"
    },
    on: {
      "click": _vm.handlePanelChange
    }
  }, [_vm._v("\n        " + _vm._s(_vm.calendarYear) + "\n      ")])])], 1), _vm._v(" "), _c('div', {
    class: _vm.prefixClass + "-calendar-content"
  }, [_c('table', {
    class: _vm.prefixClass + "-table " + _vm.prefixClass + "-table-month",
    on: {
      "click": _vm.handleClick
    }
  }, _vm._l(_vm.months, function (row, i) {
    return _c('tr', {
      key: i
    }, _vm._l(row, function (cell, j) {
      return _c('td', {
        key: j,
        staticClass: "cell",
        class: _vm.getCellClasses(cell.month),
        attrs: {
          "data-month": cell.month
        }
      }, [_c('div', [_vm._v(_vm._s(cell.text))])]);
    }), 0);
  }), 0)])]);
};

var __vue_staticRenderFns__$6 = [];
/* style */

var __vue_inject_styles__$6 = undefined;
/* scoped */

var __vue_scope_id__$6 = undefined;
/* module identifier */

var __vue_module_identifier__$6 = undefined;
/* functional template */

var __vue_is_functional_template__$6 = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$6 = normalizeComponent({
  render: __vue_render__$6,
  staticRenderFns: __vue_staticRenderFns__$6
}, __vue_inject_styles__$6, __vue_script__$3, __vue_scope_id__$6, __vue_is_functional_template__$6, __vue_module_identifier__$6, false, undefined, undefined, undefined);

//
var script$4 = {
  name: 'TableYear',
  components: {
    IconButton: __vue_component__$4
  },
  inject: {
    prefixClass: {
      default: 'mx'
    }
  },
  props: {
    disabledCalendarChanger: {
      type: Function,
      default: function _default() {
        return false;
      }
    },
    calendar: {
      type: Date,
      default: function _default() {
        return new Date();
      }
    },
    getCellClasses: {
      type: Function,
      default: function _default() {
        return [];
      }
    },
    getYearPanel: {
      type: Function
    }
  },
  computed: {
    years: function years() {
      var calendar = new Date(this.calendar);

      if (typeof this.getYearPanel === 'function') {
        return this.getYearPanel(calendar);
      }

      return this.getYears(calendar);
    },
    firstYear: function firstYear() {
      return this.years[0][0];
    },
    lastYear: function lastYear() {
      var last = function last(arr) {
        return arr[arr.length - 1];
      };

      return last(last(this.years));
    }
  },
  methods: {
    isDisabledArrows: function isDisabledArrows(type) {
      var date = new Date(this.calendar);

      switch (type) {
        case 'last-decade':
          date.setFullYear(this.firstYear - 1, 11, 31);
          date.setHours(23, 59, 59, 999);
          break;

        case 'next-decade':
          date.setFullYear(this.lastYear + 1, 0, 1);
          break;
      }

      return this.disabledCalendarChanger(date, type);
    },
    getYears: function getYears(calendar) {
      var firstYear = Math.floor(calendar.getFullYear() / 10) * 10;
      var years = [];

      for (var i = 0; i < 10; i++) {
        years.push(firstYear + i);
      }

      return chunk(years, 2);
    },
    handleIconDoubleLeftClick: function handleIconDoubleLeftClick() {
      this.$emit('changecalendar', setYear(this.calendar, function (v) {
        return v - 10;
      }), 'last-decade');
    },
    handleIconDoubleRightClick: function handleIconDoubleRightClick() {
      this.$emit('changecalendar', setYear(this.calendar, function (v) {
        return v + 10;
      }), 'next-decade');
    },
    handleClick: function handleClick(evt) {
      var target = evt.target;

      if (target.tagName.toUpperCase() === 'DIV') {
        target = target.parentNode;
      }

      var year = target.getAttribute('data-year');

      if (year && !target.classList.contains('disabled')) {
        this.$emit('select', parseInt(year, 10));
      }
    }
  }
};

/* script */
var __vue_script__$4 = script$4;
/* template */

var __vue_render__$7 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c('div', {
    class: _vm.prefixClass + "-calendar " + _vm.prefixClass + "-calendar-panel-year"
  }, [_c('div', {
    class: _vm.prefixClass + "-calendar-header"
  }, [_c('icon-button', {
    attrs: {
      "type": "double-left",
      "disabled": _vm.isDisabledArrows('last-decade')
    },
    on: {
      "click": _vm.handleIconDoubleLeftClick
    }
  }), _vm._v(" "), _c('icon-button', {
    attrs: {
      "type": "double-right",
      "disabled": _vm.isDisabledArrows('next-decade')
    },
    on: {
      "click": _vm.handleIconDoubleRightClick
    }
  }), _vm._v(" "), _c('span', {
    class: _vm.prefixClass + "-calendar-header-label"
  }, [_c('span', [_vm._v(_vm._s(_vm.firstYear))]), _vm._v(" "), _c('span', {
    class: _vm.prefixClass + "-calendar-decade-separator"
  }), _vm._v(" "), _c('span', [_vm._v(_vm._s(_vm.lastYear))])])], 1), _vm._v(" "), _c('div', {
    class: _vm.prefixClass + "-calendar-content"
  }, [_c('table', {
    class: _vm.prefixClass + "-table " + _vm.prefixClass + "-table-year",
    on: {
      "click": _vm.handleClick
    }
  }, _vm._l(_vm.years, function (row, i) {
    return _c('tr', {
      key: i
    }, _vm._l(row, function (cell, j) {
      return _c('td', {
        key: j,
        staticClass: "cell",
        class: _vm.getCellClasses(cell),
        attrs: {
          "data-year": cell
        }
      }, [_c('div', [_vm._v(_vm._s(cell))])]);
    }), 0);
  }), 0)])]);
};

var __vue_staticRenderFns__$7 = [];
/* style */

var __vue_inject_styles__$7 = undefined;
/* scoped */

var __vue_scope_id__$7 = undefined;
/* module identifier */

var __vue_module_identifier__$7 = undefined;
/* functional template */

var __vue_is_functional_template__$7 = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$7 = normalizeComponent({
  render: __vue_render__$7,
  staticRenderFns: __vue_staticRenderFns__$7
}, __vue_inject_styles__$7, __vue_script__$4, __vue_scope_id__$7, __vue_is_functional_template__$7, __vue_module_identifier__$7, false, undefined, undefined, undefined);

var CalendarPanel = {
  name: 'CalendarPanel',
  inject: {
    prefixClass: {
      default: 'mx'
    },
    dispatchDatePicker: {
      default: function _default() {
        return function () {};
      }
    }
  },
  props: {
    value: {},
    defaultValue: {
      default: function _default() {
        var date = new Date();
        date.setHours(0, 0, 0, 0);
        return date;
      }
    },
    defaultPanel: {
      type: String
    },
    disabledCalendarChanger: {
      type: Function,
      default: function _default() {
        return false;
      }
    },
    disabledDate: {
      type: Function,
      default: function _default() {
        return false;
      }
    },
    type: {
      type: String,
      default: 'date'
    },
    getClasses: {
      type: Function,
      default: function _default() {
        return [];
      }
    },
    showWeekNumber: {
      type: Boolean,
      default: undefined
    },
    getYearPanel: {
      type: Function
    },
    titleFormat: {
      type: String,
      default: 'YYYY-MM-DD'
    },
    calendar: Date,
    // update date when select year or month
    partialUpdate: {
      type: Boolean,
      default: false
    }
  },
  data: function data() {
    var panels = ['date', 'month', 'year'];
    var index = Math.max(panels.indexOf(this.type), panels.indexOf(this.defaultPanel));
    var panel = index !== -1 ? panels[index] : 'date';
    return {
      panel: panel,
      innerCalendar: new Date()
    };
  },
  computed: {
    innerValue: function innerValue() {
      var value = Array.isArray(this.value) ? this.value : [this.value];
      var map = {
        year: startOfYear,
        month: startOfMonth,
        date: startOfDay
      };
      var start = map[this.type] || map.date;
      return value.filter(index_esm_isValidDate).map(function (v) {
        return start(v);
      });
    },
    calendarYear: function calendarYear() {
      return this.innerCalendar.getFullYear();
    },
    calendarMonth: function calendarMonth() {
      return this.innerCalendar.getMonth();
    }
  },
  watch: {
    value: {
      immediate: true,
      handler: 'initCalendar'
    },
    calendar: {
      handler: 'initCalendar'
    },
    defaultValue: {
      handler: 'initCalendar'
    }
  },
  methods: {
    initCalendar: function initCalendar() {
      var calendarDate = this.calendar;

      if (!index_esm_isValidDate(calendarDate)) {
        var length = this.innerValue.length;
        calendarDate = getValidDate(length > 0 ? this.innerValue[length - 1] : this.defaultValue);
      }

      this.innerCalendar = startOfMonth(calendarDate);
    },
    isDisabled: function isDisabled(date) {
      return this.disabledDate(new Date(date), this.innerValue);
    },
    emitDate: function emitDate(date, type) {
      if (!this.isDisabled(date)) {
        this.$emit('select', date, type, this.innerValue); // someone need get the first selected date to set range value. (#429)

        this.dispatchDatePicker('pick', date, type);
      }
    },
    handleCalendarChange: function handleCalendarChange(calendar, type) {
      var oldCalendar = new Date(this.innerCalendar);
      this.innerCalendar = calendar;
      this.$emit('update:calendar', calendar);
      this.dispatchDatePicker('calendar-change', calendar, oldCalendar, type);
    },
    handelPanelChange: function handelPanelChange(panel) {
      var oldPanel = this.panel;
      this.panel = panel;
      this.dispatchDatePicker('panel-change', panel, oldPanel);
    },
    handleSelectYear: function handleSelectYear(year) {
      if (this.type === 'year') {
        var date = this.getYearCellDate(year);
        this.emitDate(date, 'year');
      } else {
        this.handleCalendarChange(index_esm_createDate(year, this.calendarMonth), 'year');
        this.handelPanelChange('month');

        if (this.partialUpdate && this.innerValue.length === 1) {
          var _date = new Date(this.innerValue[0]);

          _date.setFullYear(year);

          this.emitDate(_date, 'year');
        }
      }
    },
    handleSelectMonth: function handleSelectMonth(month) {
      if (this.type === 'month') {
        var date = this.getMonthCellDate(month);
        this.emitDate(date, 'month');
      } else {
        this.handleCalendarChange(index_esm_createDate(this.calendarYear, month), 'month');
        this.handelPanelChange('date');

        if (this.partialUpdate && this.innerValue.length === 1) {
          var _date2 = new Date(this.innerValue[0]);

          _date2.setFullYear(this.calendarYear);

          this.emitDate(setMonth(_date2, month), 'month');
        }
      }
    },
    handleSelectDate: function handleSelectDate(date) {
      this.emitDate(date, this.type === 'week' ? 'week' : 'date');
    },
    getMonthCellDate: function getMonthCellDate(month) {
      return index_esm_createDate(this.calendarYear, month);
    },
    getYearCellDate: function getYearCellDate(year) {
      return index_esm_createDate(year, 0);
    },
    getDateClasses: function getDateClasses(cellDate) {
      var notCurrentMonth = cellDate.getMonth() !== this.calendarMonth;
      var classes = [];

      if (cellDate.getTime() === new Date().setHours(0, 0, 0, 0)) {
        classes.push('today');
      }

      if (notCurrentMonth) {
        classes.push('not-current-month');
      }

      var state = this.getStateClass(cellDate);

      if (!(state === 'active' && notCurrentMonth)) {
        classes.push(state);
      }

      return classes.concat(this.getClasses(cellDate, this.innerValue, classes.join(' ')));
    },
    getMonthClasses: function getMonthClasses(month) {
      var classes = [];

      if (this.type !== 'month') {
        if (this.calendarMonth === month) {
          classes.push('active');
        }

        var _cellDate = this.getMonthCellDate(month);

        if (this.disabledCalendarChanger(_cellDate, 'month')) {
          classes.push('disabled');
        }

        return classes;
      }

      var cellDate = this.getMonthCellDate(month);
      classes.push(this.getStateClass(cellDate));
      return classes.concat(this.getClasses(cellDate, this.innerValue, classes.join(' ')));
    },
    getYearClasses: function getYearClasses(year) {
      var classes = [];

      if (this.type !== 'year') {
        if (this.calendarYear === year) {
          classes.push('active');
        }

        var _cellDate2 = this.getYearCellDate(year);

        if (this.disabledCalendarChanger(_cellDate2, 'year')) {
          classes.push('disabled');
        }

        return classes;
      }

      var cellDate = this.getYearCellDate(year);
      classes.push(this.getStateClass(cellDate));
      return classes.concat(this.getClasses(cellDate, this.innerValue, classes.join(' ')));
    },
    getStateClass: function getStateClass(cellDate) {
      if (this.isDisabled(cellDate)) {
        return 'disabled';
      }

      if (this.innerValue.some(function (v) {
        return v.getTime() === cellDate.getTime();
      })) {
        return 'active';
      }

      return '';
    },
    getWeekState: function getWeekState(row) {
      if (this.type !== 'week') return '';
      var start = row[0].getTime();
      var end = row[6].getTime();
      var active = this.innerValue.some(function (v) {
        var time = v.getTime();
        return time >= start && time <= end;
      });
      return active ? "".concat(this.prefixClass, "-active-week") : '';
    }
  },
  render: function render() {
    var h = arguments[0];
    var panel = this.panel,
        innerCalendar = this.innerCalendar;

    if (panel === 'year') {
      return h(__vue_component__$7, {
        "attrs": {
          "disabledCalendarChanger": this.disabledCalendarChanger,
          "calendar": innerCalendar,
          "getCellClasses": this.getYearClasses,
          "getYearPanel": this.getYearPanel
        },
        "on": {
          "select": this.handleSelectYear,
          "changecalendar": this.handleCalendarChange
        }
      });
    }

    if (panel === 'month') {
      return h(__vue_component__$6, {
        "attrs": {
          "disabledCalendarChanger": this.disabledCalendarChanger,
          "calendar": innerCalendar,
          "getCellClasses": this.getMonthClasses
        },
        "on": {
          "select": this.handleSelectMonth,
          "changepanel": this.handelPanelChange,
          "changecalendar": this.handleCalendarChange
        }
      });
    }

    return h(__vue_component__$5, {
      "attrs": {
        "disabledCalendarChanger": this.disabledCalendarChanger,
        "calendar": innerCalendar,
        "getCellClasses": this.getDateClasses,
        "getRowClasses": this.getWeekState,
        "titleFormat": this.titleFormat,
        "showWeekNumber": typeof this.showWeekNumber === 'boolean' ? this.showWeekNumber : this.type === 'week'
      },
      "class": index_esm_defineProperty({}, "".concat(this.prefixClass, "-calendar-week-mode"), this.type === 'week'),
      "on": {
        "select": this.handleSelectDate,
        "changepanel": this.handelPanelChange,
        "changecalendar": this.handleCalendarChange
      }
    });
  }
};

var CalendarRange = {
  name: 'CalendarRange',
  components: {
    CalendarPanel: CalendarPanel
  },
  provide: function provide() {
    return {
      onDateMouseEnter: this.onDateMouseEnter,
      onDateMouseLeave: this.onDateMouseLeave
    };
  },
  inject: {
    prefixClass: {
      default: 'mx'
    }
  },
  props: _objectSpread2({}, CalendarPanel.props),
  data: function data() {
    return {
      innerValue: [],
      calendars: [],
      hoveredValue: null
    };
  },
  computed: {
    // Minimum difference between start and end calendars
    calendarMinDiff: function calendarMinDiff() {
      var map = {
        date: 1,
        // type:date  min 1 month
        month: 1 * 12,
        // type:month min 1 year
        year: 10 * 12 // type:year  min 10 year

      };
      return map[this.type] || map.date;
    },
    calendarMaxDiff: function calendarMaxDiff() {
      return Infinity;
    },
    defaultValues: function defaultValues() {
      return Array.isArray(this.defaultValue) ? this.defaultValue : [this.defaultValue, this.defaultValue];
    }
  },
  watch: {
    value: {
      immediate: true,
      handler: function handler() {
        var _this = this;

        this.innerValue = isValidRangeDate(this.value) ? this.value : [new Date(NaN), new Date(NaN)];
        var calendars = this.innerValue.map(function (v, i) {
          return startOfMonth(getValidDate(v, _this.defaultValues[i]));
        });
        this.updateCalendars(calendars);
      }
    }
  },
  methods: {
    handleSelect: function handleSelect(date, type) {
      var _this$innerValue = index_esm_slicedToArray(this.innerValue, 2),
          startValue = _this$innerValue[0],
          endValue = _this$innerValue[1];

      if (index_esm_isValidDate(startValue) && !index_esm_isValidDate(endValue)) {
        if (startValue.getTime() > date.getTime()) {
          this.innerValue = [date, startValue];
        } else {
          this.innerValue = [startValue, date];
        }

        this.emitDate(this.innerValue, type);
      } else {
        this.innerValue = [date, new Date(NaN)];
      }
    },
    onDateMouseEnter: function onDateMouseEnter(cell) {
      this.hoveredValue = cell;
    },
    onDateMouseLeave: function onDateMouseLeave() {
      this.hoveredValue = null;
    },
    emitDate: function emitDate(dates, type) {
      this.$emit('select', dates, type);
    },
    updateStartCalendar: function updateStartCalendar(value) {
      this.updateCalendars([value, this.calendars[1]], 1);
    },
    updateEndCalendar: function updateEndCalendar(value) {
      this.updateCalendars([this.calendars[0], value], 0);
    },
    updateCalendars: function updateCalendars(calendars) {
      var adjustIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
      var gap = this.getCalendarGap(calendars);

      if (gap) {
        var calendar = new Date(calendars[adjustIndex]);
        calendar.setMonth(calendar.getMonth() + (adjustIndex === 0 ? -gap : gap));
        calendars[adjustIndex] = calendar;
      }

      this.calendars = calendars;
    },
    getCalendarGap: function getCalendarGap(calendars) {
      var _calendars = index_esm_slicedToArray(calendars, 2),
          calendarLeft = _calendars[0],
          calendarRight = _calendars[1];

      var yearDiff = calendarRight.getFullYear() - calendarLeft.getFullYear();
      var monthDiff = calendarRight.getMonth() - calendarLeft.getMonth();
      var diff = yearDiff * 12 + monthDiff;
      var min = this.calendarMinDiff;
      var max = this.calendarMaxDiff;

      if (diff < min) {
        return min - diff;
      }

      if (diff > max) {
        return max - diff;
      }

      return 0;
    },
    getRangeClasses: function getRangeClasses(cellDate, currentDates, classnames) {
      var classes = [].concat(this.getClasses(cellDate, currentDates, classnames));
      if (/disabled|active/.test(classnames)) return classes;

      var inRange = function inRange(data, range) {
        var fn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function (v) {
          return v.getTime();
        };
        var value = fn(data);

        var _range$map = range.map(fn),
            _range$map2 = index_esm_slicedToArray(_range$map, 2),
            min = _range$map2[0],
            max = _range$map2[1];

        if (min > max) {
          var _ref = [max, min];
          min = _ref[0];
          max = _ref[1];
        }

        return value > min && value < max;
      };

      if (currentDates.length === 2 && inRange(cellDate, currentDates)) {
        return classes.concat('in-range');
      }

      if (currentDates.length === 1 && this.hoveredValue && inRange(cellDate, [currentDates[0], this.hoveredValue])) {
        return classes.concat('hover-in-range');
      }

      return classes;
    }
  },
  render: function render() {
    var _this2 = this;

    var h = arguments[0];
    var calendarRange = this.calendars.map(function (calendar, index) {
      var props = _objectSpread2({}, _this2.$props, {
        calendar: calendar,
        value: _this2.innerValue,
        defaultValue: _this2.defaultValues[index],
        getClasses: _this2.getRangeClasses,
        // don't update when range is true
        partialUpdate: false
      });

      var on = {
        select: _this2.handleSelect,
        'update:calendar': index === 0 ? _this2.updateStartCalendar : _this2.updateEndCalendar
      };
      return h("calendar-panel", {
        "props": _objectSpread2({}, props),
        "on": _objectSpread2({}, on)
      });
    });
    var prefixClass = this.prefixClass;
    return h("div", {
      "class": "".concat(prefixClass, "-range-wrapper")
    }, [calendarRange]);
  }
};

var scrollBarWidth;
function getScrollbarWidth () {
  if (typeof window === 'undefined') return 0;
  if (scrollBarWidth !== undefined) return scrollBarWidth;
  var outer = document.createElement('div');
  outer.style.visibility = 'hidden';
  outer.style.overflow = 'scroll';
  outer.style.width = '100px';
  outer.style.position = 'absolute';
  outer.style.top = '-9999px';
  document.body.appendChild(outer);
  var inner = document.createElement('div');
  inner.style.width = '100%';
  outer.appendChild(inner);
  scrollBarWidth = outer.offsetWidth - inner.offsetWidth;
  outer.parentNode.removeChild(outer);
  return scrollBarWidth;
}

//
var script$5 = {
  inject: {
    prefixClass: {
      default: 'mx'
    }
  },
  data: function data() {
    return {
      scrollbarWidth: 0,
      thumbTop: '',
      thumbHeight: ''
    };
  },
  created: function created() {
    this.scrollbarWidth = getScrollbarWidth();
    document.addEventListener('mouseup', this.handleDragend);
  },
  beforeDestroy: function beforeDestroy() {
    document.addEventListener('mouseup', this.handleDragend);
  },
  mounted: function mounted() {
    this.$nextTick(this.getThumbSize);
  },
  methods: {
    getThumbSize: function getThumbSize() {
      var wrap = this.$refs.wrap;
      if (!wrap) return;
      var heightPercentage = wrap.clientHeight * 100 / wrap.scrollHeight;
      this.thumbHeight = heightPercentage < 100 ? "".concat(heightPercentage, "%") : '';
    },
    handleScroll: function handleScroll(evt) {
      var el = evt.currentTarget;
      var scrollHeight = el.scrollHeight,
          scrollTop = el.scrollTop;
      this.thumbTop = "".concat(scrollTop * 100 / scrollHeight, "%");
    },
    handleDragstart: function handleDragstart(evt) {
      evt.stopImmediatePropagation();
      this._draggable = true;
      var offsetTop = this.$refs.thumb.offsetTop;
      this._prevY = evt.clientY - offsetTop;
      document.addEventListener('mousemove', this.handleDraging);
    },
    handleDraging: function handleDraging(evt) {
      if (!this._draggable) return;
      var clientY = evt.clientY;
      var wrap = this.$refs.wrap;
      var scrollHeight = wrap.scrollHeight,
          clientHeight = wrap.clientHeight;
      var offsetY = clientY - this._prevY;
      var top = offsetY * scrollHeight / clientHeight;
      wrap.scrollTop = top;
    },
    handleDragend: function handleDragend() {
      if (this._draggable) {
        this._draggable = false;
        document.removeEventListener('mousemove', this.handleDraging);
      }
    }
  }
};

/* script */
var __vue_script__$5 = script$5;
/* template */

var __vue_render__$8 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c('div', {
    class: _vm.prefixClass + "-scrollbar",
    style: {
      position: 'relative',
      overflow: 'hidden'
    }
  }, [_c('div', {
    ref: "wrap",
    class: _vm.prefixClass + "-scrollbar-wrap",
    style: {
      marginRight: "-" + _vm.scrollbarWidth + "px"
    },
    on: {
      "scroll": _vm.handleScroll
    }
  }, [_vm._t("default")], 2), _vm._v(" "), _c('div', {
    class: _vm.prefixClass + "-scrollbar-track"
  }, [_c('div', {
    ref: "thumb",
    class: _vm.prefixClass + "-scrollbar-thumb",
    style: {
      height: _vm.thumbHeight,
      top: _vm.thumbTop
    },
    on: {
      "mousedown": _vm.handleDragstart
    }
  })])]);
};

var __vue_staticRenderFns__$8 = [];
/* style */

var __vue_inject_styles__$8 = undefined;
/* scoped */

var __vue_scope_id__$8 = undefined;
/* module identifier */

var __vue_module_identifier__$8 = undefined;
/* functional template */

var __vue_is_functional_template__$8 = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$8 = normalizeComponent({
  render: __vue_render__$8,
  staticRenderFns: __vue_staticRenderFns__$8
}, __vue_inject_styles__$8, __vue_script__$5, __vue_scope_id__$8, __vue_is_functional_template__$8, __vue_module_identifier__$8, false, undefined, undefined, undefined);

//

var padNumber = function padNumber(value) {
  value = parseInt(value, 10);
  return value < 10 ? "0".concat(value) : "".concat(value);
};

var generateOptions = function generateOptions(length, step, options) {
  if (Array.isArray(options)) {
    return options.filter(function (v) {
      return v >= 0 && v < length;
    });
  }

  if (step <= 0) {
    step = 1;
  }

  var arr = [];

  for (var i = 0; i < length; i += step) {
    arr.push(i);
  }

  return arr;
};

var scrollTo = function scrollTo(element, to) {
  var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;

  // jump to target if duration zero
  if (duration <= 0) {
    requestAnimationFrame(function () {
      element.scrollTop = to;
    });
    return;
  }

  var difference = to - element.scrollTop;
  var tick = difference / duration * 10;
  requestAnimationFrame(function () {
    var scrollTop = element.scrollTop + tick;

    if (scrollTop >= to) {
      element.scrollTop = to;
      return;
    }

    element.scrollTop = scrollTop;
    scrollTo(element, to, duration - 10);
  });
};

var script$6 = {
  name: 'ListColumns',
  components: {
    ScrollbarVertical: __vue_component__$8
  },
  inject: {
    prefixClass: {
      default: 'mx'
    }
  },
  props: {
    date: Date,
    scrollDuration: {
      type: Number,
      default: 100
    },
    getClasses: {
      type: Function,
      default: function _default() {
        return [];
      }
    },
    hourOptions: Array,
    minuteOptions: Array,
    secondOptions: Array,
    showHour: {
      type: Boolean,
      default: true
    },
    showMinute: {
      type: Boolean,
      default: true
    },
    showSecond: {
      type: Boolean,
      default: true
    },
    hourStep: {
      type: Number,
      default: 1
    },
    minuteStep: {
      type: Number,
      default: 1
    },
    secondStep: {
      type: Number,
      default: 1
    },
    use12h: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    columns: function columns() {
      var cols = [];
      if (this.showHour) cols.push({
        type: 'hour',
        list: this.getHoursList()
      });
      if (this.showMinute) cols.push({
        type: 'minute',
        list: this.getMinutesList()
      });
      if (this.showSecond) cols.push({
        type: 'second',
        list: this.getSecondsList()
      });
      if (this.use12h) cols.push({
        type: 'ampm',
        list: this.getAMPMList()
      });
      return cols.filter(function (v) {
        return v.list.length > 0;
      });
    }
  },
  watch: {
    date: {
      handler: function handler() {
        var _this = this;

        this.$nextTick(function () {
          _this.scrollToSelected(_this.scrollDuration);
        });
      }
    }
  },
  mounted: function mounted() {
    this.scrollToSelected(0);
  },
  methods: {
    getHoursList: function getHoursList() {
      var _this2 = this;

      return generateOptions(this.use12h ? 12 : 24, this.hourStep, this.hourOptions).map(function (num) {
        var date = new Date(_this2.date);
        var text = padNumber(num);

        if (_this2.use12h) {
          if (num === 0) {
            text = '12';
          }

          if (date.getHours() >= 12) {
            num += 12;
          }
        }

        var value = date.setHours(num);
        return {
          value: value,
          text: text
        };
      });
    },
    getMinutesList: function getMinutesList() {
      var _this3 = this;

      return generateOptions(60, this.minuteStep, this.minuteOptions).map(function (num) {
        var value = new Date(_this3.date).setMinutes(num);
        return {
          value: value,
          text: padNumber(num)
        };
      });
    },
    getSecondsList: function getSecondsList() {
      var _this4 = this;

      return generateOptions(60, this.secondStep, this.secondOptions).map(function (num) {
        var value = new Date(_this4.date).setSeconds(num);
        return {
          value: value,
          text: padNumber(num)
        };
      });
    },
    getAMPMList: function getAMPMList() {
      var _this5 = this;

      return ['AM', 'PM'].map(function (text, i) {
        var date = new Date(_this5.date);
        var value = date.setHours(date.getHours() % 12 + i * 12);
        return {
          text: text,
          value: value
        };
      });
    },
    scrollToSelected: function scrollToSelected(duration) {
      var elements = this.$el.querySelectorAll('.active');

      for (var i = 0; i < elements.length; i++) {
        var element = elements[i];
        var scrollElement = getScrollParent(element, this.$el);

        if (scrollElement) {
          var to = element.offsetTop;
          scrollTo(scrollElement, to, duration);
        }
      }
    },
    handleSelect: function handleSelect(evt) {
      var target = evt.target,
          currentTarget = evt.currentTarget;
      if (target.tagName.toUpperCase() !== 'LI') return;
      var type = currentTarget.getAttribute('data-type');
      var colIndex = parseInt(currentTarget.getAttribute('data-index'), 10);
      var cellIndex = parseInt(target.getAttribute('data-index'), 10);
      var value = this.columns[colIndex].list[cellIndex].value;
      this.$emit('select', value, type);
    }
  }
};

/* script */
var __vue_script__$6 = script$6;
/* template */

var __vue_render__$9 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c('div', {
    class: _vm.prefixClass + "-time-columns"
  }, _vm._l(_vm.columns, function (col, i) {
    return _c('scrollbar-vertical', {
      key: i,
      class: _vm.prefixClass + "-time-column"
    }, [_c('ul', {
      class: _vm.prefixClass + "-time-list",
      attrs: {
        "data-type": col.type,
        "data-index": i
      },
      on: {
        "click": _vm.handleSelect
      }
    }, _vm._l(col.list, function (item, j) {
      return _c('li', {
        key: item.value,
        class: [_vm.prefixClass + "-time-item", _vm.getClasses(item.value, col.type)],
        attrs: {
          "data-index": j
        }
      }, [_vm._v("\n        " + _vm._s(item.text) + "\n      ")]);
    }), 0)]);
  }), 1);
};

var __vue_staticRenderFns__$9 = [];
/* style */

var __vue_inject_styles__$9 = undefined;
/* scoped */

var __vue_scope_id__$9 = undefined;
/* module identifier */

var __vue_module_identifier__$9 = undefined;
/* functional template */

var __vue_is_functional_template__$9 = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$9 = normalizeComponent({
  render: __vue_render__$9,
  staticRenderFns: __vue_staticRenderFns__$9
}, __vue_inject_styles__$9, __vue_script__$6, __vue_scope_id__$9, __vue_is_functional_template__$9, __vue_module_identifier__$9, false, undefined, undefined, undefined);

//

function parseOption() {
  var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  var values = time.split(':');

  if (values.length >= 2) {
    var hours = parseInt(values[0], 10);
    var minutes = parseInt(values[1], 10);
    return {
      hours: hours,
      minutes: minutes
    };
  }

  return null;
}

var scrollTo$1 = function scrollTo(element, to) {
  if (element) {
    element.scrollTop = to;
  }
};

var script$7 = {
  name: 'ListOptions',
  components: {
    ScrollbarVertical: __vue_component__$8
  },
  inject: {
    getLocale: {
      default: function _default() {
        return getLocale;
      }
    },
    prefixClass: {
      default: 'mx'
    }
  },
  props: {
    date: Date,
    options: {
      type: [Object, Function],
      default: function _default() {
        return [];
      }
    },
    format: {
      type: String,
      default: 'HH:mm:ss'
    },
    getClasses: {
      type: Function,
      default: function _default() {
        return [];
      }
    }
  },
  computed: {
    list: function list() {
      var result = [];
      var options = this.options;

      if (typeof options === 'function') {
        return options() || [];
      }

      var start = parseOption(options.start);
      var end = parseOption(options.end);
      var step = parseOption(options.step);
      var fmt = options.format || this.format;

      if (start && end && step) {
        var startMinutes = start.minutes + start.hours * 60;
        var endMinutes = end.minutes + end.hours * 60;
        var stepMinutes = step.minutes + step.hours * 60;
        var len = Math.floor((endMinutes - startMinutes) / stepMinutes);

        for (var i = 0; i <= len; i++) {
          var timeMinutes = startMinutes + i * stepMinutes;
          var hours = Math.floor(timeMinutes / 60);
          var minutes = timeMinutes % 60;
          var value = new Date(this.date).setHours(hours, minutes, 0);
          result.push({
            value: value,
            text: this.formatDate(value, fmt)
          });
        }
      }

      return result;
    }
  },
  mounted: function mounted() {
    this.scrollToSelected();
  },
  methods: {
    formatDate: function formatDate(date, fmt) {
      return format(date, fmt, {
        locale: this.getLocale().formatLocale
      });
    },
    scrollToSelected: function scrollToSelected() {
      var element = this.$el.querySelector('.active');
      if (!element) return;
      var scrollElement = getScrollParent(element, this.$el);
      if (!scrollElement) return;
      var to = element.offsetTop;
      scrollTo$1(scrollElement, to);
    },
    handleSelect: function handleSelect(value) {
      this.$emit('select', value, 'time');
    }
  }
};

/* script */
var __vue_script__$7 = script$7;
/* template */

var __vue_render__$a = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c('scrollbar-vertical', _vm._l(_vm.list, function (item) {
    return _c('div', {
      key: item.value,
      class: [_vm.prefixClass + "-time-option", _vm.getClasses(item.value)],
      on: {
        "click": function click($event) {
          return _vm.handleSelect(item.value);
        }
      }
    }, [_vm._v("\n    " + _vm._s(item.text) + "\n  ")]);
  }), 0);
};

var __vue_staticRenderFns__$a = [];
/* style */

var __vue_inject_styles__$a = undefined;
/* scoped */

var __vue_scope_id__$a = undefined;
/* module identifier */

var __vue_module_identifier__$a = undefined;
/* functional template */

var __vue_is_functional_template__$a = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$a = normalizeComponent({
  render: __vue_render__$a,
  staticRenderFns: __vue_staticRenderFns__$a
}, __vue_inject_styles__$a, __vue_script__$7, __vue_scope_id__$a, __vue_is_functional_template__$a, __vue_module_identifier__$a, false, undefined, undefined, undefined);

//
var script$8 = {
  name: 'TimePanel',
  components: {
    ListColumns: __vue_component__$9,
    ListOptions: __vue_component__$a
  },
  inject: {
    getLocale: {
      default: function _default() {
        return getLocale;
      }
    },
    prefixClass: {
      default: 'mx'
    }
  },
  props: {
    value: {},
    defaultValue: {
      default: function _default() {
        var date = new Date();
        date.setHours(0, 0, 0, 0);
        return date;
      }
    },
    format: {
      default: 'HH:mm:ss'
    },
    timeTitleFormat: {
      type: String,
      default: 'YYYY-MM-DD'
    },
    showTimeHeader: {
      type: Boolean,
      default: false
    },
    disabledTime: {
      type: Function,
      default: function _default() {
        return false;
      }
    },
    timePickerOptions: {
      type: [Object, Function],
      default: function _default() {
        return null;
      }
    },
    hourOptions: Array,
    minuteOptions: Array,
    secondOptions: Array,
    hourStep: {
      type: Number,
      default: 1
    },
    minuteStep: {
      type: Number,
      default: 1
    },
    secondStep: {
      type: Number,
      default: 1
    },
    showHour: {
      type: Boolean,
      default: undefined
    },
    showMinute: {
      type: Boolean,
      default: undefined
    },
    showSecond: {
      type: Boolean,
      default: undefined
    },
    use12h: {
      type: Boolean,
      default: undefined
    },
    scrollDuration: {
      type: Number,
      default: 100
    }
  },
  data: function data() {
    return {
      innerValue: getValidDate(this.value, this.defaultValue)
    };
  },
  computed: {
    title: function title() {
      var titleFormat = this.timeTitleFormat;
      var date = new Date(this.innerValue);
      return this.formatDate(date, titleFormat);
    },
    innerForamt: function innerForamt() {
      return typeof this.format === 'string' ? this.format : 'HH:mm:ss';
    },
    ShowHourMinuteSecondAMPM: function ShowHourMinuteSecondAMPM() {
      var _this = this;

      var fmt = this.innerForamt;
      var defaultProps = {
        showHour: /[HhKk]/.test(fmt),
        showMinute: /m/.test(fmt),
        showSecond: /s/.test(fmt),
        use12h: /a/i.test(fmt)
      };
      var obj = {};
      Object.keys(defaultProps).forEach(function (key) {
        obj[key] = typeof _this[key] === 'boolean' ? _this[key] : defaultProps[key];
      });
      return obj;
    }
  },
  watch: {
    value: {
      immediate: true,
      handler: function handler() {
        this.innerValue = getValidDate(this.value, this.defaultValue);
      }
    }
  },
  methods: {
    formatDate: function formatDate(date, fmt) {
      return format(date, fmt, {
        locale: this.getLocale().formatLocale
      });
    },
    isDisabledTime: function isDisabledTime(value) {
      return this.disabledTime(new Date(value));
    },
    isDisabledHour: function isDisabledHour(date) {
      var value = new Date(date);
      return this.isDisabledTime(value) && this.isDisabledTime(value.setMinutes(0, 0, 0)) && this.isDisabledTime(value.setMinutes(59, 59, 999));
    },
    isDisabledMinute: function isDisabledMinute(date) {
      var value = new Date(date);
      return this.isDisabledTime(value) && this.isDisabledTime(value.setSeconds(0, 0)) && this.isDisabledTime(value.setSeconds(59, 999));
    },
    isDisabledAMPM: function isDisabledAMPM(date) {
      var value = new Date(date);
      var minHour = value.getHours() < 12 ? 0 : 12;
      var maxHour = minHour + 11;
      return this.isDisabledTime(value) && this.isDisabledTime(value.setHours(minHour, 0, 0, 0)) && this.isDisabledTime(value.setHours(maxHour, 59, 59, 999));
    },
    isDisabled: function isDisabled(date, type) {
      if (type === 'hour') {
        return this.isDisabledHour(date);
      }

      if (type === 'minute') {
        return this.isDisabledMinute(date);
      }

      if (type === 'ampm') {
        return this.isDisabledAMPM(date);
      }

      return this.isDisabledTime(date);
    },
    handleSelect: function handleSelect(value, type) {
      var date = new Date(value);

      if (!this.isDisabled(value, type)) {
        this.innerValue = date;

        if (!this.isDisabledTime(date)) {
          this.$emit('select', date, type);
        }
      }
    },
    handleClickTitle: function handleClickTitle() {
      this.$emit('clicktitle');
    },
    getClasses: function getClasses(value, type) {
      var cellDate = new Date(value);

      if (this.isDisabled(value, type)) {
        return 'disabled';
      }

      if (cellDate.getTime() === this.innerValue.getTime()) {
        return 'active';
      }

      return '';
    }
  }
};

/* script */
var __vue_script__$8 = script$8;
/* template */

var __vue_render__$b = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c('div', {
    class: _vm.prefixClass + "-time"
  }, [_vm.showTimeHeader ? _c('div', {
    class: _vm.prefixClass + "-time-header"
  }, [_c('button', {
    class: _vm.prefixClass + "-btn " + _vm.prefixClass + "-btn-text " + _vm.prefixClass + "-time-header-title",
    attrs: {
      "type": "button"
    },
    on: {
      "click": _vm.handleClickTitle
    }
  }, [_vm._v("\n      " + _vm._s(_vm.title) + "\n    ")])]) : _vm._e(), _vm._v(" "), _c('div', {
    class: _vm.prefixClass + "-time-content"
  }, [_vm.timePickerOptions ? _c('list-options', {
    attrs: {
      "date": _vm.innerValue,
      "get-classes": _vm.getClasses,
      "options": _vm.timePickerOptions,
      "format": _vm.innerForamt
    },
    on: {
      "select": _vm.handleSelect
    }
  }) : _c('list-columns', _vm._b({
    attrs: {
      "date": _vm.innerValue,
      "get-classes": _vm.getClasses,
      "hour-options": _vm.hourOptions,
      "minute-options": _vm.minuteOptions,
      "second-options": _vm.secondOptions,
      "hour-step": _vm.hourStep,
      "minute-step": _vm.minuteStep,
      "second-step": _vm.secondStep,
      "scroll-duration": _vm.scrollDuration
    },
    on: {
      "select": _vm.handleSelect
    }
  }, 'list-columns', _vm.ShowHourMinuteSecondAMPM, false))], 1)]);
};

var __vue_staticRenderFns__$b = [];
/* style */

var __vue_inject_styles__$b = undefined;
/* scoped */

var __vue_scope_id__$b = undefined;
/* module identifier */

var __vue_module_identifier__$b = undefined;
/* functional template */

var __vue_is_functional_template__$b = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$b = normalizeComponent({
  render: __vue_render__$b,
  staticRenderFns: __vue_staticRenderFns__$b
}, __vue_inject_styles__$b, __vue_script__$8, __vue_scope_id__$b, __vue_is_functional_template__$b, __vue_module_identifier__$b, false, undefined, undefined, undefined);

var TimeRange = {
  name: 'TimeRange',
  inject: {
    prefixClass: {
      default: 'mx'
    }
  },
  props: _objectSpread2({}, __vue_component__$b.props),
  data: function data() {
    return {
      startValue: new Date(NaN),
      endValue: new Date(NaN)
    };
  },
  watch: {
    value: {
      immediate: true,
      handler: function handler() {
        if (isValidRangeDate(this.value)) {
          var _this$value = index_esm_slicedToArray(this.value, 2),
              startValue = _this$value[0],
              endValue = _this$value[1];

          this.startValue = startValue;
          this.endValue = endValue;
        } else {
          this.startValue = new Date(NaN);
          this.endValue = new Date(NaN);
        }
      }
    }
  },
  methods: {
    emitChange: function emitChange(type, index) {
      var date = [this.startValue, this.endValue];
      this.$emit('select', date, type === 'time' ? 'time-range' : type, index);
    },
    handleSelectStart: function handleSelectStart(date, type) {
      this.startValue = date; // check the NaN

      if (!(this.endValue.getTime() >= date.getTime())) {
        this.endValue = date;
      }

      this.emitChange(type, 0);
    },
    handleSelectEnd: function handleSelectEnd(date, type) {
      // check the NaN
      this.endValue = date;

      if (!(this.startValue.getTime() <= date.getTime())) {
        this.startValue = date;
      }

      this.emitChange(type, 1);
    },
    disabledStartTime: function disabledStartTime(date) {
      return this.disabledTime(date, 0);
    },
    disabledEndTime: function disabledEndTime(date) {
      return date.getTime() < this.startValue.getTime() || this.disabledTime(date, 1);
    }
  },
  render: function render() {
    var h = arguments[0];
    var defaultValues = Array.isArray(this.defaultValue) ? this.defaultValue : [this.defaultValue, this.defaultValue];
    var prefixClass = this.prefixClass;
    return h("div", {
      "class": "".concat(prefixClass, "-range-wrapper")
    }, [h(__vue_component__$b, {
      "props": _objectSpread2({}, _objectSpread2({}, this.$props, {
        value: this.startValue,
        defaultValue: defaultValues[0],
        disabledTime: this.disabledStartTime
      })),
      "on": _objectSpread2({}, _objectSpread2({}, this.$listeners, {
        select: this.handleSelectStart
      }))
    }), h(__vue_component__$b, {
      "props": _objectSpread2({}, _objectSpread2({}, this.$props, {
        value: this.endValue,
        defaultValue: defaultValues[1],
        disabledTime: this.disabledEndTime
      })),
      "on": _objectSpread2({}, _objectSpread2({}, this.$listeners, {
        select: this.handleSelectEnd
      }))
    })]);
  }
};

var DatetimePanel = {
  name: 'DatetimePanel',
  inject: {
    prefixClass: {
      default: 'mx'
    }
  },
  emits: ['select', 'update:show-time-panel'],
  props: _objectSpread2({}, CalendarPanel.props, {}, __vue_component__$b.props, {
    showTimePanel: {
      type: Boolean,
      default: undefined
    }
  }),
  data: function data() {
    return {
      defaultTimeVisible: false,
      currentValue: this.value
    };
  },
  computed: {
    timeVisible: function timeVisible() {
      return typeof this.showTimePanel === 'boolean' ? this.showTimePanel : this.defaultTimeVisible;
    }
  },
  watch: {
    value: function value(val) {
      this.currentValue = val;
    }
  },
  methods: {
    closeTimePanel: function closeTimePanel() {
      this.defaultTimeVisible = false;
      this.$emit('update:show-time-panel', false);
    },
    openTimePanel: function openTimePanel() {
      this.defaultTimeVisible = true;
      this.$emit('update:show-time-panel', true);
    },
    emitDate: function emitDate(date, type) {
      this.$emit('select', date, type);
    },
    handleSelect: function handleSelect(date, type) {
      if (type === 'date') {
        this.openTimePanel();
      }

      var datetime = assignTime(date, getValidDate(this.value, this.defaultValue));

      if (this.disabledTime(new Date(datetime))) {
        // set the time of defalutValue;
        datetime = assignTime(date, this.defaultValue);

        if (this.disabledTime(new Date(datetime))) {
          // if disabled don't emit date
          this.currentValue = datetime;
          return;
        }
      }

      this.emitDate(datetime, type);
    }
  },
  render: function render() {
    var h = arguments[0];
    var calendarProps = {
      props: _objectSpread2({}, pick(this.$props, Object.keys(CalendarPanel.props)), {
        type: 'date',
        value: this.currentValue
      }),
      on: {
        select: this.handleSelect
      }
    };
    var timeProps = {
      props: _objectSpread2({}, pick(this.$props, Object.keys(__vue_component__$b.props)), {
        showTimeHeader: true,
        value: this.currentValue
      }),
      on: {
        select: this.emitDate,
        clicktitle: this.closeTimePanel
      }
    };
    var prefixClass = this.prefixClass;
    return h("div", [h(CalendarPanel, helper([{}, calendarProps])), this.timeVisible && h(__vue_component__$b, helper([{
      "class": "".concat(prefixClass, "-calendar-time")
    }, timeProps]))]);
  }
};

var DatetimeRange = {
  name: 'DatetimeRange',
  inject: {
    prefixClass: {
      default: 'mx'
    }
  },
  emits: ['select', 'update:show-time-panel'],
  props: _objectSpread2({}, CalendarRange.props, {}, TimeRange.props, {
    showTimePanel: {
      type: Boolean,
      default: undefined
    }
  }),
  data: function data() {
    return {
      defaultTimeVisible: false,
      currentValue: this.value
    };
  },
  computed: {
    timeVisible: function timeVisible() {
      return typeof this.showTimePanel === 'boolean' ? this.showTimePanel : this.defaultTimeVisible;
    }
  },
  watch: {
    value: function value(val) {
      this.currentValue = val;
    }
  },
  methods: {
    closeTimePanel: function closeTimePanel() {
      this.defaultTimeVisible = false;
      this.$emit('update:show-time-panel', false);
    },
    openTimePanel: function openTimePanel() {
      this.defaultTimeVisible = true;
      this.$emit('update:show-time-panel', true);
    },
    emitDate: function emitDate(dates, type) {
      this.$emit('select', dates, type);
    },
    handleSelect: function handleSelect(dates, type) {
      var _this = this;

      if (type === 'date') {
        this.openTimePanel();
      }

      var defaultValues = Array.isArray(this.defaultValue) ? this.defaultValue : [this.defaultValue, this.defaultValue];
      var datetimes = dates.map(function (date, i) {
        var time = isValidRangeDate(_this.value) ? _this.value[i] : defaultValues[i];
        return assignTime(date, time);
      });

      if (datetimes[1].getTime() < datetimes[0].getTime()) {
        datetimes = [datetimes[0], datetimes[0]];
      }

      if (datetimes.some(this.disabledTime)) {
        datetimes = dates.map(function (date, i) {
          return assignTime(date, defaultValues[i]);
        });

        if (datetimes.some(this.disabledTime)) {
          this.currentValue = datetimes;
          return;
        }
      }

      this.emitDate(datetimes, type);
    }
  },
  render: function render() {
    var h = arguments[0];
    var calendarProps = {
      props: _objectSpread2({}, pick(this.$props, Object.keys(CalendarRange.props)), {
        type: 'date',
        value: this.currentValue
      }),
      on: {
        select: this.handleSelect
      }
    };
    var timeProps = {
      props: _objectSpread2({}, pick(this.$props, Object.keys(TimeRange.props)), {
        value: this.currentValue,
        showTimeHeader: true
      }),
      on: {
        select: this.emitDate,
        clicktitle: this.closeTimePanel
      }
    };
    var prefixClass = this.prefixClass;
    return h("div", [h(CalendarRange, helper([{}, calendarProps])), this.timeVisible && h(TimeRange, helper([{
      "class": "".concat(prefixClass, "-calendar-time")
    }, timeProps]))]);
  }
};

var componentMap = {
  default: CalendarPanel,
  time: __vue_component__$b,
  datetime: DatetimePanel
};
var componentRangeMap = {
  default: CalendarRange,
  time: TimeRange,
  datetime: DatetimeRange
};
var DatePicker = {
  name: 'DatePicker',
  provide: function provide() {
    var _this = this;

    return {
      // make locale reactive
      getLocale: function getLocale() {
        return _this.locale;
      },
      getWeek: this.getWeek,
      prefixClass: this.prefixClass,
      dispatchDatePicker: this.$emit.bind(this)
    };
  },
  props: _objectSpread2({}, DatetimePanel.props, {
    value: {},
    valueType: {
      type: String,
      default: 'date' // date, format, timestamp, or token like 'YYYY-MM-DD'

    },
    type: {
      type: String,
      // ['date', 'datetime', 'time', 'year', 'month', 'week']
      default: 'date'
    },
    format: {
      type: String
    },
    formatter: {
      type: Object
    },
    range: {
      type: Boolean,
      default: false
    },
    multiple: {
      type: Boolean,
      default: false
    },
    rangeSeparator: {
      type: String
    },
    lang: {
      type: [String, Object]
    },
    placeholder: {
      type: String,
      default: ''
    },
    editable: {
      type: Boolean,
      default: true
    },
    disabled: {
      type: Boolean,
      default: false
    },
    clearable: {
      type: Boolean,
      default: true
    },
    prefixClass: {
      type: String,
      default: 'mx'
    },
    inputClass: {},
    inputAttr: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    appendToBody: {
      type: Boolean,
      default: true
    },
    open: {
      type: Boolean,
      default: undefined
    },
    popupClass: {},
    popupStyle: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    inline: {
      type: Boolean,
      default: false
    },
    confirm: {
      type: Boolean,
      default: false
    },
    confirmText: {
      type: String,
      default: 'OK'
    },
    renderInputText: {
      type: Function
    },
    shortcuts: {
      type: Array,
      validator: function validator(value) {
        return Array.isArray(value) && value.every(function (v) {
          return isObject(v) && typeof v.text === 'string' && typeof v.onClick === 'function';
        });
      },
      default: function _default() {
        return [];
      }
    }
  }),
  data: function data() {
    return {
      // cache the innervalue, wait to confirm
      currentValue: null,
      userInput: null,
      defaultOpen: false,
      mouseInInput: false
    };
  },
  computed: {
    popupVisible: function popupVisible() {
      return !this.disabled && (typeof this.open === 'boolean' ? this.open : this.defaultOpen);
    },
    innerRangeSeparator: function innerRangeSeparator() {
      return this.rangeSeparator || (this.multiple ? ',' : ' ~ ');
    },
    innerFormat: function innerFormat() {
      var map = {
        date: 'YYYY-MM-DD',
        datetime: 'YYYY-MM-DD HH:mm:ss',
        year: 'YYYY',
        month: 'YYYY-MM',
        time: 'HH:mm:ss',
        week: 'w'
      };
      return this.format || map[this.type] || map.date;
    },
    innerValue: function innerValue() {
      var value = this.value;

      if (this.validMultipleType) {
        value = Array.isArray(value) ? value : [];
        return value.map(this.value2date);
      }

      if (this.range) {
        value = Array.isArray(value) ? value.slice(0, 2) : [null, null];
        return value.map(this.value2date);
      }

      return this.value2date(value);
    },
    text: function text() {
      var _this2 = this;

      if (this.userInput !== null) {
        return this.userInput;
      }

      if (typeof this.renderInputText === 'function') {
        return this.renderInputText(this.innerValue);
      }

      if (!this.isValidValue(this.innerValue)) {
        return '';
      }

      if (Array.isArray(this.innerValue)) {
        return this.innerValue.map(function (v) {
          return _this2.formatDate(v);
        }).join(this.innerRangeSeparator);
      }

      return this.formatDate(this.innerValue);
    },
    showClearIcon: function showClearIcon() {
      return !this.disabled && this.clearable && this.text && this.mouseInInput;
    },
    locale: function locale() {
      if (isObject(this.lang)) {
        return mergeDeep(getLocale(), this.lang);
      }

      return getLocale(this.lang);
    },
    validMultipleType: function validMultipleType() {
      var types = ['date', 'month', 'year'];
      return this.multiple && !this.range && types.indexOf(this.type) !== -1;
    }
  },
  watch: {
    innerValue: {
      immediate: true,
      handler: function handler(val) {
        this.currentValue = val;
      }
    },
    popupVisible: {
      handler: function handler(val) {
        if (val) {
          this.currentValue = this.innerValue;
        }
      }
    }
  },
  created: function created() {
    if (_typeof(this.format) === 'object') {
      console.warn("[vue2-datepicker]: The prop `format` don't support Object any more. You can use the new prop `formatter` to replace it");
    }
  },
  methods: {
    handleMouseEnter: function handleMouseEnter() {
      this.mouseInInput = true;
    },
    handleMouseLeave: function handleMouseLeave() {
      this.mouseInInput = false;
    },
    handleClickOutSide: function handleClickOutSide(evt) {
      var target = evt.target;

      if (!this.$el.contains(target)) {
        this.closePopup();
      }
    },
    getFormatter: function getFormatter(key) {
      return isObject(this.formatter) && this.formatter[key] || isObject(this.format) && this.format[key];
    },
    getWeek: function getWeek$1(date, options) {
      if (typeof this.getFormatter('getWeek') === 'function') {
        return this.getFormatter('getWeek')(date, options);
      }

      return getWeek(date, options);
    },
    parseDate: function parseDate(value, fmt) {
      fmt = fmt || this.innerFormat;

      if (typeof this.getFormatter('parse') === 'function') {
        return this.getFormatter('parse')(value, fmt);
      }

      var backupDate = new Date();
      return parse(value, fmt, {
        locale: this.locale.formatLocale,
        backupDate: backupDate
      });
    },
    formatDate: function formatDate(date, fmt) {
      fmt = fmt || this.innerFormat;

      if (typeof this.getFormatter('stringify') === 'function') {
        return this.getFormatter('stringify')(date, fmt);
      }

      return format(date, fmt, {
        locale: this.locale.formatLocale
      });
    },
    // transform the outer value to inner date
    value2date: function value2date(value) {
      switch (this.valueType) {
        case 'date':
          return value instanceof Date ? new Date(value.getTime()) : new Date(NaN);

        case 'timestamp':
          return typeof value === 'number' ? new Date(value) : new Date(NaN);

        case 'format':
          return typeof value === 'string' ? this.parseDate(value) : new Date(NaN);

        default:
          return typeof value === 'string' ? this.parseDate(value, this.valueType) : new Date(NaN);
      }
    },
    // transform the inner date to outer value
    date2value: function date2value(date) {
      if (!index_esm_isValidDate(date)) return null;

      switch (this.valueType) {
        case 'date':
          return date;

        case 'timestamp':
          return date.getTime();

        case 'format':
          return this.formatDate(date);

        default:
          return this.formatDate(date, this.valueType);
      }
    },
    emitValue: function emitValue(date, type) {
      var close = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
      // fix IE11/10 trigger input event when input is focused. (placeholder !== '')
      this.userInput = null;
      var value = Array.isArray(date) ? date.map(this.date2value) : this.date2value(date);
      this.$emit('input', value);
      this.$emit('change', value, type);

      if (close) {
        this.closePopup();
      }

      return value;
    },
    isValidValue: function isValidValue(value) {
      if (this.validMultipleType) {
        return isValidDates(value);
      }

      if (this.range) {
        return isValidRangeDate(value);
      }

      return index_esm_isValidDate(value);
    },
    isValidValueAndNotDisabled: function isValidValueAndNotDisabled(value) {
      if (!this.isValidValue(value)) {
        return false;
      }

      var disabledDate = typeof this.disabledDate === 'function' ? this.disabledDate : function () {
        return false;
      };
      var disabledTime = typeof this.disabledTime === 'function' ? this.disabledTime : function () {
        return false;
      };

      if (!Array.isArray(value)) {
        value = [value];
      }

      return value.every(function (v) {
        return !disabledDate(v) && !disabledTime(v);
      });
    },
    handleMultipleDates: function handleMultipleDates(date, dates) {
      if (this.validMultipleType && dates) {
        var nextDates = dates.filter(function (v) {
          return v.getTime() !== date.getTime();
        });

        if (nextDates.length === dates.length) {
          nextDates.push(date);
        }

        return nextDates;
      }

      return date;
    },
    handleSelectDate: function handleSelectDate(val, type, dates) {
      val = this.handleMultipleDates(val, dates);

      if (this.confirm) {
        this.currentValue = val;
      } else {
        this.emitValue(val, type, // this.type === 'datetime', click the time should close popup
        !this.validMultipleType && (type === this.type || type === 'time'));
      }
    },
    clear: function clear() {
      this.emitValue(this.range ? [null, null] : null);
      this.$emit('clear');
    },
    handleClear: function handleClear(evt) {
      evt.stopPropagation();
      this.clear();
    },
    handleConfirmDate: function handleConfirmDate() {
      var value = this.emitValue(this.currentValue);
      this.$emit('confirm', value);
    },
    handleSelectShortcut: function handleSelectShortcut(evt) {
      var index = evt.currentTarget.getAttribute('data-index');
      var item = this.shortcuts[parseInt(index, 10)];

      if (isObject(item) && typeof item.onClick === 'function') {
        var date = item.onClick(this);

        if (date) {
          this.emitValue(date);
        }
      }
    },
    openPopup: function openPopup(evt) {
      if (this.popupVisible || this.disabled) return;
      this.defaultOpen = true;
      this.$emit('open', evt);
      this.$emit('update:open', true);
    },
    closePopup: function closePopup() {
      if (!this.popupVisible) return;
      this.defaultOpen = false;
      this.$emit('close');
      this.$emit('update:open', false);
    },
    blur: function blur() {
      // when use slot input
      if (this.$refs.input) {
        this.$refs.input.blur();
      }
    },
    focus: function focus() {
      if (this.$refs.input) {
        this.$refs.input.focus();
      }
    },
    handleInputChange: function handleInputChange() {
      var _this3 = this;

      if (!this.editable || this.userInput === null) return;
      var text = this.userInput.trim();
      this.userInput = null;

      if (text === '') {
        this.clear();
        return;
      }

      var date;

      if (this.validMultipleType) {
        date = text.split(this.innerRangeSeparator).map(function (v) {
          return _this3.parseDate(v.trim());
        });
      } else if (this.range) {
        var arr = text.split(this.innerRangeSeparator);

        if (arr.length !== 2) {
          // Maybe the separator during the day is the same as the separator for the date
          // eg: 2019-10-09-2020-01-02
          arr = text.split(this.innerRangeSeparator.trim());
        }

        date = arr.map(function (v) {
          return _this3.parseDate(v.trim());
        });
      } else {
        date = this.parseDate(text);
      }

      if (this.isValidValueAndNotDisabled(date)) {
        this.emitValue(date);
        this.blur();
      } else {
        this.$emit('input-error', text);
      }
    },
    handleInputInput: function handleInputInput(evt) {
      // slot input v-model
      this.userInput = typeof evt === 'string' ? evt : evt.target.value;
    },
    handleInputKeydown: function handleInputKeydown(evt) {
      var keyCode = evt.keyCode; // Tab 9 or Enter 13

      if (keyCode === 9) {
        this.closePopup();
      } else if (keyCode === 13) {
        this.handleInputChange();
      }
    },
    handleInputBlur: function handleInputBlur(evt) {
      // tab close
      this.$emit('blur', evt);
    },
    handleInputFocus: function handleInputFocus(evt) {
      this.openPopup(evt);
      this.$emit('focus', evt);
    },
    hasSlot: function hasSlot(name) {
      return !!(this.$slots[name] || this.$scopedSlots[name]);
    },
    renderSlot: function renderSlot(name, fallback, props) {
      var slotFn = this.$scopedSlots[name];

      if (slotFn) {
        return slotFn(props) || fallback;
      }

      return this.$slots[name] || fallback;
    },
    renderInput: function renderInput() {
      var h = this.$createElement;
      var prefixClass = this.prefixClass;

      var props = _objectSpread2({
        name: 'date',
        type: 'text',
        autocomplete: 'off',
        value: this.text,
        class: this.inputClass || "".concat(this.prefixClass, "-input"),
        readonly: !this.editable,
        disabled: this.disabled,
        placeholder: this.placeholder
      }, this.inputAttr);

      var value = props.value,
          className = props.class,
          attrs = _objectWithoutProperties(props, ["value", "class"]);

      var events = {
        keydown: this.handleInputKeydown,
        focus: this.handleInputFocus,
        blur: this.handleInputBlur,
        input: this.handleInputInput,
        change: this.handleInputChange
      };
      var input = this.renderSlot('input', h("input", {
        "domProps": {
          "value": value
        },
        "class": className,
        "attrs": _objectSpread2({}, attrs),
        "on": _objectSpread2({}, events),
        "ref": "input"
      }), {
        props: props,
        events: events
      });
      var calendarIcon = this.type === 'time' ? h(__vue_component__$2) : h(__vue_component__$1); // remove touchstart event to avoid opens the popup while scrolling in mobile #469

      return h("div", {
        "class": "".concat(prefixClass, "-input-wrapper"),
        "on": {
          "mouseenter": this.handleMouseEnter,
          "mouseleave": this.handleMouseLeave,
          "click": this.openPopup
        },
        "ref": "inputWrapper"
      }, [input, this.showClearIcon ? h("i", {
        "class": "".concat(prefixClass, "-icon-clear"),
        "on": {
          "click": this.handleClear
        }
      }, [this.renderSlot('icon-clear', h(__vue_component__$3))]) : h("i", {
        "class": "".concat(prefixClass, "-icon-calendar")
      }, [this.renderSlot('icon-calendar', calendarIcon)])]);
    },
    renderContent: function renderContent() {
      var h = this.$createElement;
      var map = this.range ? componentRangeMap : componentMap;
      var Component = map[this.type] || map.default;

      var props = _objectSpread2({}, pick(this.$props, Object.keys(Component.props)), {
        value: this.currentValue
      });

      var on = _objectSpread2({}, pick(this.$listeners, Component.emits || []), {
        select: this.handleSelectDate
      });

      var content = h(Component, helper([{}, {
        props: props,
        on: on,
        ref: 'picker'
      }]));
      return h("div", {
        "class": "".concat(this.prefixClass, "-datepicker-body")
      }, [this.renderSlot('content', content, {
        value: this.currentValue,
        emit: this.handleSelectDate
      })]);
    },
    renderSidebar: function renderSidebar() {
      var _this4 = this;

      var h = this.$createElement;
      var prefixClass = this.prefixClass;
      return h("div", {
        "class": "".concat(prefixClass, "-datepicker-sidebar")
      }, [this.renderSlot('sidebar', null, {
        value: this.currentValue,
        emit: this.handleSelectDate
      }), this.shortcuts.map(function (v, i) {
        return h("button", {
          "key": i,
          "attrs": {
            "data-index": i,
            "type": "button"
          },
          "class": "".concat(prefixClass, "-btn ").concat(prefixClass, "-btn-text ").concat(prefixClass, "-btn-shortcut"),
          "on": {
            "click": _this4.handleSelectShortcut
          }
        }, [v.text]);
      })]);
    },
    renderHeader: function renderHeader() {
      var h = this.$createElement;
      return h("div", {
        "class": "".concat(this.prefixClass, "-datepicker-header")
      }, [this.renderSlot('header', null, {
        value: this.currentValue,
        emit: this.handleSelectDate
      })]);
    },
    renderFooter: function renderFooter() {
      var h = this.$createElement;
      var prefixClass = this.prefixClass;
      return h("div", {
        "class": "".concat(prefixClass, "-datepicker-footer")
      }, [this.renderSlot('footer', null, {
        value: this.currentValue,
        emit: this.handleSelectDate
      }), this.confirm ? h("button", {
        "attrs": {
          "type": "button"
        },
        "class": "".concat(prefixClass, "-btn ").concat(prefixClass, "-datepicker-btn-confirm"),
        "on": {
          "click": this.handleConfirmDate
        }
      }, [this.confirmText]) : null]);
    }
  },
  render: function render() {
    var _class;

    var h = arguments[0];
    var prefixClass = this.prefixClass,
        inline = this.inline,
        disabled = this.disabled;
    var sidedar = this.hasSlot('sidebar') || this.shortcuts.length ? this.renderSidebar() : null;
    var content = h("div", {
      "class": "".concat(prefixClass, "-datepicker-content")
    }, [this.hasSlot('header') ? this.renderHeader() : null, this.renderContent(), this.hasSlot('footer') || this.confirm ? this.renderFooter() : null]);
    return h("div", {
      "class": (_class = {}, index_esm_defineProperty(_class, "".concat(prefixClass, "-datepicker"), true), index_esm_defineProperty(_class, "".concat(prefixClass, "-datepicker-range"), this.range), index_esm_defineProperty(_class, "".concat(prefixClass, "-datepicker-inline"), inline), index_esm_defineProperty(_class, "disabled", disabled), _class)
    }, [!inline ? this.renderInput() : null, !inline ? h(__vue_component__, {
      "ref": "popup",
      "class": this.popupClass,
      "style": this.popupStyle,
      "attrs": {
        "visible": this.popupVisible,
        "appendToBody": this.appendToBody
      },
      "on": {
        "clickoutside": this.handleClickOutSide
      }
    }, [sidedar, content]) : h("div", {
      "class": "".concat(prefixClass, "-datepicker-main")
    }, [sidedar, content])]);
  }
};

DatePicker.locale = index_esm_locale;

DatePicker.install = function install(Vue) {
  Vue.component(DatePicker.name, DatePicker);
};

if (typeof window !== 'undefined' && window.Vue) {
  DatePicker.install(window.Vue);
}

_extends(DatePicker, {
  CalendarPanel: CalendarPanel,
  CalendarRange: CalendarRange,
  TimePanel: __vue_component__$b,
  TimeRange: TimeRange,
  DatetimePanel: DatetimePanel,
  DatetimeRange: DatetimeRange
});

/* harmony default export */ const index_esm = (DatePicker);


/***/ }),

/***/ 64117:
/***/ ((module) => {

"use strict";

// we can't use just `it == null` since of `document.all` special case
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
module.exports = function (it) {
  return it === null || it === undefined;
};


/***/ }),

/***/ 64133:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Highcharts = __webpack_require__(58174);


module.exports = data => {
  let highest = parseInt(data.msg.highest);
  let yAxisTitlex = 10;
  if (highest > 99) yAxisTitlex = 24;
  var obj = {
    chart: {
      renderTo: data.el,
      marginTop: 24,
      marginLeft: 78,
      marginRight: 24,
      backgroundColor: data.bg ? data.bg : "#394653",
      type: 'line',
      events: {
        load: function () {
          this.yAxis[0].update({
            tickInterval: parseInt((this.yAxis[0].dataMax - this.yAxis[0].dataMin) / 4) || 1
          });
          if (data.waterMark) {
            const waterMarkSrc = 'https://cdn.gwdang.com/images/extensions/logoMarkBigCenter@2x.png';
            const img = this.renderer.image(waterMarkSrc, this.chartWidth / 2 - 105, this.chartHeight / 2 - 32, 210, 54);
            img.add();
            img.css({
              opacity: 0.2
            });
          }
          let xinterval = (this.xAxis[0].dataMax - this.xAxis[0].dataMin) / 86400000;
          xinterval = xinterval / 3;
          let tickIntervals;
          if (xinterval > 30) {
            xinterval = parseInt(xinterval / 30) + 1;
            tickIntervals = xinterval * 30 * 86400000;
          } else {
            tickIntervals = xinterval * 86400000;
          }
          if (!data.shortTime) this.xAxis[0].update({
            tickInterval: tickIntervals
          });
        }
      }
    },
    credits: {
      enabled: false
    },
    colors: ['#1e94f8'],
    title: {
      text: data.title || '',
      y: -20,
      style: {
        color: '#92ABC2'
      }
    },
    xAxis: {
      type: 'datetime',
      labels: {
        style: {
          color: "#5f7183"
        }
      },
      dateTimeLabelFormats: {
        day: '%m-%e',
        week: '%m-%e',
        month: '%y/%m',
        year: '%y/%m'
      },
      tickLength: 0,
      lineColor: "#5f7183",
      gridLineWidth: 1,
      gridLineColor: '#516171'
    },
    yAxis: {
      title: {
        text: data.unit ? data.unit : '价格(元)',
        rotation: 0,
        margin: 0,
        y: -72,
        x: yAxisTitlex,
        style: {
          color: "#5f7183"
        }
      },
      labels: {
        style: {
          color: "#5f7183"
        },
        formatter: function () {
          return this.value.toFixed(2);
        }
      },
      plotLines: [{
        value: 0,
        width: 1,
        color: '#808080'
      }],
      gridLineColor: '#5f7183',
      tickPixelInterval: 50
    },
    tooltip: {
      xDateFormat: '%Y-%m-%d',
      shared: true,
      shape: 'square',
      useHTML: true,
      followPointer: false,
      width: 110,
      height: 52,
      borderWidth: G.site === 'epic' ? 0 : 1,
      style: {
        padding: 0
      },
      formatter: function () {
        let x = new Date(this.x);
        let year = x.getFullYear();
        let month = x.getMonth() + 1;
        let day = x.getDate();
        if (month < 10) month = '0' + month.toString();
        if (day < 10) day = '0' + day.toString();
        let datestr = `${year}.${month}.${day}`;
        // let format = data.msg.formatted[this.x.toString()];
        // let disc = format.discount
        // if (disc !== 0)
        //   disc = '-' + disc.toString() + '%';
        let price;
        if (this.y !== 0) price = this.y.toFixed(2);else price = '0';
        let dom = `<div class="ttip-discount">
              <span class="ttip-sp1">${datestr}</span>
              <span class="ttip-sp2">价格: ￥${price}</span>
        </div>`;
        if (G.site === 'epic') {
          dom = `
            <div class="ttip-discount" style="width: 110px; height: 52px; padding-top: 8px; padding-left: 10px;">
              <span class="ttip-sp1" style="display: inline-block; color: #aaaaaa">${datestr}</span><br>
              <span class="ttip-sp2" style="display: inline-block; color: #aaaaaa; margin-top: 4px">价格: $${price}</span>
            </div>
          `;
        }
        return dom;
      },
      backgroundColor: G.site === 'epic' ? '#000000' : 'rgba(20,37,55,0.94)'
    },
    plotOptions: {
      series: {
        marker: {
          radius: 1,
          'stroke-width': 0,
          stroke: '#1e94f8',
          lineColor: null
        },
        shadow: false,
        states: {
          hover: {
            marker: {
              radius: 3,
              'stroke-width': 0,
              stroke: '#1e94f8',
              lineColor: null
            },
            halo: {
              size: 5
            }
          }
        }
      }
    },
    legend: {
      enabled: false,
      borderWidth: 0
    },
    series: []
  };
  if (data.title === undefined) obj.title.style.display = 'none';
  var store = data.msg;
  try {
    obj.series[0] = {
      visible: true,
      name: store.name,
      color: "#61BBEF",
      lineWidth: 2,
      data: []
    };
    obj.series[0].visible = true;
    obj.series[0].pointStart = store.all_line_begin_time + 8 * 3600000;
    obj.series[0].pointInterval = store.all_equal_short ? 3600000 : 3600000 * 24;
    obj.series[0].data = store.all_line;
    // obj.xAxis.floor = store.all_line_begin_time;
    // obj.xAxis.max = store.all_line_begin_time + (obj.series[0].data.length - 1) * 3600000 * 24
    if (obj.series[0].data.length === 1) {
      let k = obj.series[0].data[0];
      //obj.series[0].data.unshift()
    }
    window.chart = new Highcharts.Chart(obj);
  } catch (e) {}
};

/***/ }),

/***/ 64149:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyMSAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IiYjMjI5OyYjMTU1OyYjMTkwOyYjMjMwOyYjMTYwOyYjMTM1Oy8mIzIyOTsmIzE1NTsmIzE5MDsmIzIzMTsmIzEzNzsmIzEzNTsmIzIzMDsmIzEzNzsmIzE5MDsmIzIyOTsmIzE0NDsmIzE0MDsmIzIzMDsmIzE3MjsmIzE5MDsiPgo8ZyBpZD0iR3JvdXAgMTU0MjciPgo8Y2lyY2xlIGlkPSJFbGxpcHNlIDI4NSIgY3g9IjkuMDIzNDEiIGN5PSIxMS44ODE2IiByPSI2LjkiIHRyYW5zZm9ybT0icm90YXRlKC0xMC4xOTU1IDkuMDIzNDEgMTEuODgxNikiIHN0cm9rZT0iIzQ4QkVGMyIgc3Ryb2tlLXdpZHRoPSIxLjciLz4KPHBhdGggaWQ9IlZlY3RvciAzMyIgZD0iTTMuNTE3OTcgMTYuNjc1NUMzLjk2MTc3IDE2LjMxMDUgNS4yNDI3NiAxNC40MzI5IDUuOTc2MDggMTQuMTg3NEM2LjQ2NDk5IDE0LjI0MiA5LjA4NTI4IDE0Ljk4NjUgOS4zOTAxNSAxNS4wOTFDOS45ODc3IDE0LjM1MTIgMTEuNDMzMiAxMC42MzIxIDEyLjIyNjQgMTAuNTA4MkMxNC41NzMyIDExLjAxMSAxNS45MDY5IDEyLjQwMjUgMTUuOTEzMyAxMi43NDciIHN0cm9rZT0iIzQ4QkVGMyIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggaWQ9IlVuaW9uIiBkPSJNMTIuODI4IDE4LjQ3NjVDMTIuNTEwNSAxOC4xMDQgMTIuNTU1IDE3LjU0NDUgMTIuOTI3NiAxNy4yMjdDMTMuMzAwMSAxNi45MDk0IDEzLjg1OTUgMTYuOTU0IDE0LjE3NzEgMTcuMzI2NUwxNS41ODM3IDE4Ljk3NjVDMTUuOTAxMyAxOS4zNDkxIDE1Ljg1NjcgMTkuOTA4NSAxNS40ODQyIDIwLjIyNjFDMTUuMTExNyAyMC41NDM2IDE0LjU1MjIgMjAuNDk5MSAxNC4yMzQ3IDIwLjEyNjZMMTIuODI4IDE4LjQ3NjVaIiBmaWxsPSIjNDhCRUYzIi8+CjxjaXJjbGUgaWQ9IkVsbGlwc2UgMjgyIiBjeD0iNi41NTE4NCIgY3k9IjEwLjE5NTkiIHI9IjEiIHRyYW5zZm9ybT0icm90YXRlKC0xMC4xOTU1IDYuNTUxODQgMTAuMTk1OSkiIGZpbGw9IiM0OEJFRjMiLz4KPC9nPgo8L2c+Cjwvc3ZnPgo=";

/***/ }),

/***/ 64187:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  methods: {
    click() {
      this.$emit('refresh');
    }
  }
};

/***/ }),

/***/ 64229:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-shaidan-item gwd-column"
  }, [_c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      "margin-top": "12px",
      height: "16px"
    }
  }, [_c("img", {
    staticClass: "gwd-avatar",
    attrs: {
      src: _vm.item.avatar,
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticClass: "gwd-font11 gwd-nick",
    staticStyle: {
      "margin-left": "4px"
    }
  }, [_vm._v(_vm._s(_vm.item.snick))]), _vm._v(" "), _c("div", {
    staticStyle: {
      flex: "1"
    }
  }), _vm._v(" "), _c("span", {
    staticClass: "gwd-skuinfo gwd-font11",
    attrs: {
      title: _vm.item.sku
    }
  }, [_vm._v(_vm._s(_vm.item.sku))])]), _vm._v(" "), _c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      "margin-top": "10px",
      height: "14px",
      "margin-bottom": "12px"
    }
  }, [_c("span", {
    staticClass: "gwd-price gwd-font10",
    staticStyle: {
      "margin-top": "2px"
    }
  }, [_vm._v("¥")]), _vm._v(" "), _c("span", {
    staticClass: "gwd-price",
    staticStyle: {
      "margin-left": "-2px"
    }
  }, [_vm._v(_vm._s(_vm.displayPrice))]), _vm._v(" "), _c("div", {
    staticStyle: {
      flex: "1"
    }
  }), _vm._v(" "), _c("ShaiDanPic", {
    staticStyle: {
      "margin-right": "20px"
    },
    attrs: {
      img: _vm.item.pic
    }
  }), _vm._v(" "), _c("span", {
    staticClass: "gwd-date gwd-font10"
  }, [_vm._v(_vm._s(_vm.displayDate))])], 1)]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 64523:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, pos = $data.pos, ht_weight = $data.ht_weight, c_server = $data.c_server;
    $$out += '<div id="transport_detail" class="ht_trans_detail gwd_haitao" style="top: ';
    $$out += $escape(pos.posy);
    $$out += 'px;left: ';
    $$out += $escape(pos.posx);
    $$out += 'px;">\n        <div class="trans_head">\n          <div class="trans_nav">\n            <span class="span_0">转运商家</span>\n            <span class="span_1">商家仓库</span>\n            <span class="span_2">转运费</span>\n            <span class="span_3">购物党独家优惠</span>\n            <span class="trans_w">\n              <input type="text" value="';
    $$out += $escape(ht_weight);
    $$out += '" class="ht_weight_num">\n              <span class="weight_type">KG</span>\n            </span>\n          </div>\n        </div>\n        <div class="trans_content">\n          <ul id="trans_list">\n          </ul>\n        </div>\n        <div class="trans_foot">\n          <a href="';
    $$out += $escape(c_server);
    $$out += '/app/haitao_intr" class="trans_help" title="海淘转运攻略" target="_blank">海淘转运攻略</a>\n          <span class="red"></span>\n          <span >具体转运优惠政策和费用以您选择的转运公司为准</span>\n        </div>\n        <span class="closebar closebg" title="关闭"></span>\n        \n</div>';
    return $$out;
};

/***/ }),

/***/ 64713:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

const GF = __webpack_require__(2731)

/**
 * Multiplies two polynomials inside Galois Field
 *
 * @param  {Uint8Array} p1 Polynomial
 * @param  {Uint8Array} p2 Polynomial
 * @return {Uint8Array}    Product of p1 and p2
 */
exports.mul = function mul (p1, p2) {
  const coeff = new Uint8Array(p1.length + p2.length - 1)

  for (let i = 0; i < p1.length; i++) {
    for (let j = 0; j < p2.length; j++) {
      coeff[i + j] ^= GF.mul(p1[i], p2[j])
    }
  }

  return coeff
}

/**
 * Calculate the remainder of polynomials division
 *
 * @param  {Uint8Array} divident Polynomial
 * @param  {Uint8Array} divisor  Polynomial
 * @return {Uint8Array}          Remainder
 */
exports.mod = function mod (divident, divisor) {
  let result = new Uint8Array(divident)

  while ((result.length - divisor.length) >= 0) {
    const coeff = result[0]

    for (let i = 0; i < divisor.length; i++) {
      result[i] ^= GF.mul(divisor[i], coeff)
    }

    // remove all zeros from buffer head
    let offset = 0
    while (offset < result.length && result[offset] === 0) offset++
    result = result.slice(offset)
  }

  return result
}

/**
 * Generate an irreducible generator polynomial of specified degree
 * (used by Reed-Solomon encoder)
 *
 * @param  {Number} degree Degree of the generator polynomial
 * @return {Uint8Array}    Buffer containing polynomial coefficients
 */
exports.generateECPolynomial = function generateECPolynomial (degree) {
  let poly = new Uint8Array([1])
  for (let i = 0; i < degree; i++) {
    poly = exports.mul(poly, new Uint8Array([1, GF.exp(i)]))
  }

  return poly
}


/***/ }),

/***/ 64737:
/***/ ((module, exports, __webpack_require__) => {

"use strict";
var __WEBPACK_AMD_DEFINE_RESULT__;

!(__WEBPACK_AMD_DEFINE_RESULT__ = (() => {
  return time => {
    let x = new Date(time);
    let p = new Date(x.getFullYear(), x.getMonth(), x.getDate());
    let midDate = p.getTime() + 19 * 3600000;
    return midDate;
  };
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

/***/ }),

/***/ 64823:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, str = $data.str, s_server = $data.s_server;
    $$out += '<div id="cptklbox" class="';
    $$out += $escape(str);
    $$out += '">\n  <div class="cptkl-btn">\n    <em></em>\n    <span>生成淘口令</span>\n  </div>\n  <span class="cptkl-tle">一鍵分享到微信或QQ</span>\n  <span class="cptkl-remind-err">抱歉\uFF0C當前商品暫時無法生成淘口令~</span>\n  <style type="text/css">\n    #cptklbox {\n      float: left;\n      width: 254px;\n      height: 52px;\n    }\n    #cptklbox.is_tm_site {\n      margin-left: 40px;\n    }\n    #cptklbox.is_tb_site {\n      margin-top: 15px;\n    }\n    #cptklbox * {\n      float: left;\n      font-family: "Microsoft YaHei";\n    }\n    .cptkl-btn {\n      width: 122px;\n      height: 26px;\n      border-radius: 2px;\n      border: 1px solid #ff9851;\n      background-color: #FFF3ED;\n      cursor: pointer;\n    }\n    .cptkl-remind-err {\n      color: #B66A6A;\n      font-size: 12px;\n      display: none;\n      line-height: 16px;\n      margin-top: 8px;\n    }\n    .cptkl-btn em {\n      width: 16px;\n      height: 16px;\n      background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/commonpng/cptkl.png\') 0px 0px no-repeat;\n      margin: 5px 6px 5px 20px;\n    }\n    .cptkl-btn.cpsuccess em {\n      margin-left: 27px;\n      margin-top: 6px;\n      background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/commonpng/cptkl-success.png\') 0px 0px no-repeat;\n    }\n    .cptkl-btn.cpready em {\n      margin-left: 9px;\n    }\n    .cptkl-btn span {\n      line-height: 26px;\n      font-size: 12px;\n      color: #EF6701;\n    }\n    .cptkl-tle {\n      margin-left: 10px;\n      font-size: 12px;\n      line-height: 26px;\n      color: #7d7e80;\n    }\n    .tb-gallery p.tm-action {\n      padding-bottom: 15px;\n    }\n\n    #tttgbgbs {\n      height: 1px;\n      width: 1px;\n      overflow: hidden;\n      float: left;\n      position: fixed;\n      bottom: -9px;\n      left: -9px;\n    }\n    #box_btn {\n      height: 1px;\n      width: 1px;\n      overflow: hidden;\n      float: left;\n      position: fixed;\n      bottom: 0px;\n    }\n    .gggbox-input {\n      height: 1px;\n      width: 1px;\n      overflow: hidden;\n      float: left;\n      position: fixed;\n      bottom: 0px;\n      left:-999px;\n    }\n  </style>\n</div>\n<div id="tttgbgbs">\n  <a id="box_btn" class="box-btn"  contenteditable="1">456</a>\n  <input type="" name="" value="456" class="gggbox-input">\n</div>\n';
    return $$out;
};

/***/ }),

/***/ 64930:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, data = $data.data, c_server = $data.c_server;
    $$out += '<div id="gwd_ht_main" class="gwd_haitao ';
    $$out += $escape(data.pageclass);
    $$out += '" >\n    <div  class="ht_head">\n      <a href="';
    $$out += $escape(c_server);
    $$out += '" class="gwd_site_icon" target="_blank" title="购物党"></a>\n      <a class="ht_getprice item_hover">到手价\uFF1A<span class="ht_getprice_num fontf_Arial">\xA5';
    $$out += $escape(data.getprice);
    $$out += '</span></a>\n    </div>\n    <div class="ht_content">\n      <div class="content_default" id="ht_content_info">\n        <div class="content_default_left">\n          <div class="unit_price">\n            <span class="price_tle">单价\uFF1A</span>\n            <span class="price_num fontf_Arial">\xA5';
    $$out += $escape(data.unit_price);
    $$out += '</span>\n            <a id="ht_addcollect" class="trend_wait" ><span>降价提醒</span>\n              <div class="collect_detail div_detail">\n                点击加入收藏夹\uFF0C商品降价有提醒\n              </div>\n            </a>\n          </div>\n          <div class="ht_weight">\n            <span class="weight_tle">重量\uFF1A</span>\n            <input type="text" value="';
    $$out += $escape(data.he_weight);
    $$out += '" class="ht_weight_num">\n            <span class="weight_type">KG</span>\n            <div class="weight_type_detail div_detail">\n                点击转换重量单位\n            </div>\n          </div>\n          <div class="ht_transport">\n            <span class="ht_freight">转运费\uFF1A<span class="ht_freight_num fontf_Arial">\xA50</span></span>\n            <a class="ht_transport_btn">\n              <span >转运商家</span>\n              <em class="point_icon"></em>\n              <div class="transport_remind_detail div_detail">\n                点击选择转运公司\n              </div>\n            </a>\n          </div>\n          <div class="ht_tariff">\n            <span class="del_line" data-del="1">行邮税\uFF1A<span class="ht_tariff_num fontf_Arial" data-price="0">&nbsp;<em>未知</em>&nbsp;</span>\n              <div class="tariff_remind_detail div_detail">\n                个人行李和邮递物品进口税\uFF08关税\u3001进口环节增值税及消费税三者合一税种\uFF09\n              </div>\n            </span>\n            <a class="ht_tariff_btn">\n              <span>选择分类</span>\n              <em class="point_icon"></em>\n              <div class="tariff_info_detail div_detail">\n                点击选择商品类别\n              </div>\n            </a>\n          </div>\n        </div>\n        <div class="content_default_right">\n          <a class="pro_type">\n            <em class="';
    $$out += $escape(data.protype);
    $$out += '"></em>\n            <span class="pro_t_tle" >';
    $$out += $escape(data.protype == 'ziying' ? '自营' : '第三方');
    $$out += '</span>\n            <div class="pro_type_detail div_detail">\n              ';
    $$out += $escape(data.protype == 'ziying' ? data.site + '直接销售' : data.site + '第三方商家销售');
    $$out += '\n            </div>\n          </a>\n          <a class="mail_type" >\n            <em class="';
    $$out += $escape(data.mailtype);
    $$out += '"></em>\n            <span >';
    $$out += $escape(data.mailtype == 'zhiyou' ? '可直邮' : '需转运');
    $$out += '</span>\n            <div class="mail_type_detail div_detail">\n              ';
    if (data.mailtype == 'zhiyou') {
        $$out += '\n                该商品直邮支持直邮中国\uFF0C到手时间约8~16天\n              ';
    } else if (data.hosts == 'www.amazon.com') {
        $$out += '\n                该商品不支持直邮中国\uFF0C需转运公司转运\uFF0C到手时间大约20~35天\n              ';
    } else if (data.hosts == 'www.amazon.co.jp') {
        $$out += '\n                该商品不支持直邮中国\uFF0C需转运公司转运\uFF0C到手时间大约7~30天\n              ';
    } else if (data.hosts == 'www.amazon.de') {
        $$out += '\n                该商品不支持直邮中国\uFF0C需转运公司转运\uFF0C到手时间大约25~40天\n              ';
    } else {
        $$out += '\n                该商品不支持直邮中国\uFF0C需转运公司转运\uFF0C到手时间大约20~35天\n              ';
    }
    $$out += '\n            </div>\n          </a>\n          <a class="ht_translate">\n            <em></em>\n            <span>翻译帮助</span>\n            <div class="translate_detail div_detail">\n              已为您开启划词翻译\uFF0C鼠标选中相关文字\uFF0C即可翻译\n            </div>\n          </a>\n          <a class="size_help">\n            <em></em>\n            <span>尺码帮助</span>\n            <div class="size_detail div_detail">\n              点击查看尺码帮助\n            </div>\n          </a>\n        </div>\n      </div>\n      <div style="clear:both"></div>\n      <div id="tariff_detail">\n        <span class="closebar closebg" title="关闭"></span>\n        <div class="tar_head">\n          <span>选择商品分类</span>\n        </div>\n        <div class="tar_desc">\n          <span class="del_line">商品\uFF1A<span class="ht_tariff_cate">请选择分类</span></span>\n          <span class="desc_t">单件行邮税\uFF1A<span class="ht_tariff_num">未知</span> </span>\n        </div>\n        <div id="cate_select_box">\n          <div class="cate_select_1">\n            <input type="text" value="请选择分类" id="cate_big" class="icon_down" readonly>\n            <div class="xialabox" id="big_xiala">\n              <a cate="cate1"  href="javascript:void(0);">食品</a>\n              <a cate="cate2"  href="javascript:void(0);">服饰</a>\n              <a cate="cate3"  href="javascript:void(0);">鞋\u3001箱包</a>\n              <a cate="cate4"  href="javascript:void(0);">手表</a>\n              <a cate="cate5"  href="javascript:void(0);">厨房\u3001餐厅</a>\n              <a cate="cate6"  href="javascript:void(0);">家电</a>\n              <a cate="cate7"  href="javascript:void(0);">个人护理</a>\n              <a cate="cate8"  href="javascript:void(0);">美容</a>\n              <a cate="cate9"  href="javascript:void(0);">手机及配件</a>\n              <a cate="cate10" href="javascript:void(0);">办公用品</a>\n              <a cate="cate11" href="javascript:void(0);">照相机\u3001摄像机</a>\n              <a cate="cate12" href="javascript:void(0);">电子数码</a>\n              <a cate="cate13" href="javascript:void(0);">游戏机/游戏碟</a>\n              <a cate="cate14" href="javascript:void(0);">音箱</a>\n              <a cate="cate15" href="javascript:void(0);">个人电脑</a>\n              <a cate="cate16" href="javascript:void(0);">电子书设备</a>\n              <a cate="cate17" href="javascript:void(0);">玩具</a>\n              <a cate="cate18" href="javascript:void(0);">婴儿用品</a>\n            </div>\n          </div>\n          <div class="cate_select_2">\n            <input type="text" value="请选择分类" id="cate_small" maxlength="5" class="icon_down sel_info" readonly>\n            <div class="xialabox" id="small_xiala"></div>\n          </div>\n          <div id="select_btn" data-tariff="-1">确认</div>\n        </div>\n      </div>\n      \n    </div>\n</div>\n';
    return $$out;
};

/***/ }),

/***/ 64943:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _Index = _interopRequireDefault(__webpack_require__(27334));
var _default = exports.A = {
  props: ['img', 'price'],
  methods: {
    open() {
      if (!window.gwdImgApp) {
        const el = document.createElement('div');
        document.body.appendChild(el);
        window.gwdImgApp = new Vue({
          el,
          render: h => h(_Index.default, {
            props: {
              img: this.img,
              price: this.price
            },
            ref: 'index'
          })
        });
      }
      window.gwdImgApp.$refs.index.open();
    }
  }
};

/***/ }),

/***/ 64966:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.imgWidth,
      expression: "imgWidth"
    }],
    staticClass: "gwd-sd-popup",
    class: `gwd-${_vm.mode} gwd-${_vm.tipmode}`,
    style: _vm.style,
    on: {
      mouseover: _vm.onMouseOver,
      mouseleave: _vm.onMouseLeave
    }
  }, [_c("img", {
    style: {
      "max-width": _vm.maxWidth + "px"
    },
    attrs: {
      src: _vm.img,
      alt: ""
    },
    on: {
      load: function ($event) {
        _vm.imgWidth = $event.target.width;
        _vm.imgHeight = $event.target.height;
      }
    }
  })]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 65151:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-qr-app[data-v-457b2972] {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  padding: 8px;\n  cursor: pointer;\n  position: relative;\n  width: 56px;\n  height: 68px;\n  border-radius: 8px;\n  box-sizing: border-box;\n}\n.gwd-qr-app:hover .gwd-qr-area[data-v-457b2972] {\n  display: flex;\n}\n.gwd-qr-app .gwd-qr-icon[data-v-457b2972] {\n  width: 32px;\n  height: 32px;\n  margin-bottom: 8px;\n}\n.gwd-qr-app .gwd-app-label[data-v-457b2972] {\n  font-size: 12px;\n  line-height: 12px;\n  color: #3c4c54;\n  text-align: center;\n  white-space: nowrap;\n}\n.gwd-qr-app .gwd-qr-area[data-v-457b2972] {\n  width: 108px;\n  height: 148px;\n  background: #FFFFFF;\n  box-shadow: 0px 2px 10px 2px rgba(0, 0, 0, 0.12);\n  border-radius: 8px;\n  position: absolute;\n  left: 65px;\n  top: 0;\n  display: none;\n  z-index: 10000;\n}\n.gwd-qr-app .gwd-qr-area span[data-v-457b2972] {\n  font-size: 12px;\n  margin-top: 4px;\n  color: #333;\n}\n", ""]);

// exports


/***/ }),

/***/ 65169:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-quest[data-v-1834bd8f] {\n  display: inline-block;\n  width: 24px;\n  height: 24px;\n  position: relative;\n  background: url(" + __webpack_require__(89330) + ");\n  background-size: contain;\n  cursor: pointer;\n  box-sizing: border-box;\n  white-space: normal;\n}\n.gwd-hint-text[data-v-1834bd8f] {\n  display: none;\n  position: absolute;\n  left: 50%;\n  margin-left: -97px;\n  bottom: 31px;\n  width: 194px;\n  height: 77px;\n  text-align: left;\n  box-sizing: border-box !important;\n  border-radius: 2px;\n  z-index: 9;\n  line-height: 16px;\n  color: white;\n  padding: 6px 9px;\n  background: rgba(0, 0, 0, 0.65);\n}\n.gwd-hint-text .gwd-hint-2x[data-v-1834bd8f] {\n  font-size: 22px;\n  width: 356px;\n  transform: scale(0.5);\n  transform-origin: top left;\n  line-height: 32px;\n  display: inline-block;\n}\n.gwd-hint-text[data-v-1834bd8f]::after {\n  content: '';\n  position: absolute;\n  top: 100%;\n  left: 55%;\n  margin-left: -84px;\n  width: 168px;\n  height: 7px;\n  background: url(" + __webpack_require__(87082) + ");\n  background-size: contain;\n}\n.gwd-quest:hover .gwd-hint-text[data-v-1834bd8f] {\n  display: block;\n}\n", ""]);

// exports


/***/ }),

/***/ 65275:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


__webpack_require__(3362);
const request = __webpack_require__(49388);
module.exports = {
  async get(img) {
    try {
      const shopTheLookPage = await request.rawGet('https://www.amazon.com/shopthelook');
      const shopTheLookPageDom = new DOMParser().parseFromString(shopTheLookPage, 'text/html');
      const stylesnap = shopTheLookPageDom.querySelector('input[name=stylesnap]').getAttribute('value');
      if (!stylesnap) {
        return 'fail-noStylesnap';
      }
      const option = {
        useForm: true
      };
      const res = await request.post(`https://www.amazon.com/stylesnap/upload?stylesnapToken=${encodeURIComponent(stylesnap)}`, {
        'explore-looks.png': img,
        GWD_FORCE_FILE: ['explore-looks.png']
      }, true);
      if (!res.searchResults.length) {
        return [];
      }
      const amazonProducts = res.searchResults[0].bbxAsinMetadataList.map(item => ({
        img: item.imageUrl,
        asin: item.asin,
        price: item.price,
        title: item.title,
        shopName: item.byLine,
        salesAmount: item.totalReviewCount || 0,
        url: `https://www.amazon.com/dp/${item.asin}`
      }));
      return amazonProducts.map(item => {
        item.dpId = item.asin + '-228';
        // extract number from price string
        if (item.price) {
          item.price = item.price.replace(/[^0-9.]/g, '');
        } else {
          item.price = 0;
        }
        return item;
      });
    } catch (e) {
      return 'fail=' + e.message;
    }
  }
};

/***/ }),

/***/ 65417:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "shareExt gwdang-tab"
  }, [_vm._m(0), _vm._v(" "), _c("div", {
    staticClass: "share-detail bjd-product-detail topdetail"
  }, [_c("span", {
    staticClass: "share-sp2 gwd-share-title"
  }, [_vm._v(_vm._s(_vm.title))]), _vm._v(" "), _c("div", {
    staticClass: "share-sp2"
  }, [_vm._v("\n      " + _vm._s(_vm.priceInfo) + "\n    ")]), _vm._v(" "), _c("span", {
    staticClass: "share-sp2"
  }, [_vm._v("\n      点击链接查看具体历史价格详情"), _c("a", {
    attrs: {
      href: _vm.link,
      target: "_blank"
    }
  }, [_vm._v(_vm._s(_vm.link))])]), _vm._v(" "), _vm._m(1), _vm._v(" "), _c("textarea", {
    attrs: {
      id: "copy-input",
      type: "",
      name: ""
    }
  }, [_vm._v(_vm._s(_vm.title) + "\n\n      " + _vm._s(_vm.priceInfoCopy) + "\n\n      点击链接查看具体历史价格详情" + _vm._s(_vm.link) + "\n    ")])])]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("span", {
    staticClass: "btn-tab-sp"
  }, [_c("em"), _vm._v(" "), _c("span", {
    staticClass: "tab-sp1 blkcolor1"
  }, [_vm._v("分享")])]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticStyle: {
      "text-align": "center"
    }
  }, [_c("span", {
    staticClass: "share-sp3 share-btn",
    staticStyle: {
      "margin-bottom": "20px"
    },
    attrs: {
      id: "copy-btn"
    }
  }, [_vm._v("复制去分享")])]);
}];
render._withStripped = true;

/***/ }),

/***/ 65791:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

(function (global, factory) {
	 true ? module.exports = factory(__webpack_require__(64042)) :
	0;
}(this, (function (DatePicker) { 'use strict';

	DatePicker = DatePicker && DatePicker.hasOwnProperty('default') ? DatePicker['default'] : DatePicker;

	function unwrapExports (x) {
		return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
	}

	function createCommonjsModule(fn, module) {
		return module = { exports: {} }, fn(module, module.exports), module.exports;
	}

	var zhCn = createCommonjsModule(function (module, exports) {

	Object.defineProperty(exports, "__esModule", {
	  value: true
	});
	exports["default"] = void 0;
	var locale = {
	  months: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
	  monthsShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
	  weekdays: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
	  weekdaysShort: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
	  weekdaysMin: ['日', '一', '二', '三', '四', '五', '六'],
	  firstDayOfWeek: 1,
	  firstWeekContainsDate: 4,
	  meridiemParse: /上午|下午/,
	  meridiem: function meridiem(hour) {
	    if (hour < 12) {
	      return '上午';
	    }

	    return '下午';
	  },
	  isPM: function isPM(input) {
	    return input === '下午';
	  }
	};
	var _default = locale;
	exports["default"] = _default;
	module.exports = exports.default;
	});

	var zhCN = unwrapExports(zhCn);

	var lang = {
	  formatLocale: zhCN,
	  yearFormat: 'YYYY年',
	  monthFormat: 'MMM',
	  monthBeforeYear: false
	};
	DatePicker.locale('zh-cn', lang);

	return lang;

})));


/***/ }),

/***/ 65845:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  name: 'teleport',
  props: {
    to: {
      type: String,
      required: true
    }
  },
  mounted() {
    const toEl = document.querySelector(this.to);
    if (toEl) {
      toEl.appendChild(this.$el);
    }
  },
  destroyed() {
    const toEl = document.querySelector(this.to);
    if (toEl) {
      toEl.removeChild(this.$el);
    }
  }
};

/***/ }),

/***/ 65904:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".mx-icon-calendar[data-v-5d8ea5dc] {\n  display: none;\n}\n.mx-datepicker[data-v-5d8ea5dc] {\n  width: 100%!important;\n}\n", ""]);

// exports


/***/ }),

/***/ 65952:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-favor-icon[data-v-d3ad16a8] {\n  display: inline-block;\n  width: 24px;\n  height: 24px;\n  background: url(" + __webpack_require__(11499) + ") no-repeat;\n}\n.gwd-favor-icon.gwd-favored[data-v-d3ad16a8] {\n  background: url(" + __webpack_require__(6879) + ") no-repeat;\n}\n.ms-tab-enter .gwd-favor-icon[data-v-d3ad16a8] {\n  background: url(" + __webpack_require__(6879) + ") no-repeat;\n}\n", ""]);

// exports


/***/ }),

/***/ 66119:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var shared = __webpack_require__(25745);
var uid = __webpack_require__(33392);

var keys = shared('keys');

module.exports = function (key) {
  return keys[key] || (keys[key] = uid(key));
};


/***/ }),

/***/ 66477:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _commonUtil = _interopRequireDefault(__webpack_require__(60340));
var _default = exports.A = {
  props: ['newTime', 'aliSite'],
  data() {
    return {
      site: G.site,
      isNewJd: _commonUtil.default.isNewJd(),
      top: 0,
      additionalClass: ''
    };
  },
  methods: {
    resetTop() {
      var _document$querySelect;
      const summaryQuanEl = (_document$querySelect = document.querySelector('.floor-discount')) !== null && _document$querySelect !== void 0 ? _document$querySelect : document.querySelector('#summary-quan');
      if (summaryQuanEl) {
        const rect = summaryQuanEl.getBoundingClientRect();
        const height = rect.height;
        const top = $(summaryQuanEl).css('top');
        // this.top = parseInt(top) + height
        if ($(this.$el).css('position') === 'fixed') {
          // this.top = parseInt(top) + height
        } else {
          this.top = parseInt(top) + height + 'px';
        }
        if ($('.gwd-fake-el')) {
          $('.gwd-fake-el').css('top', parseInt(top) + height + 'px');
        }
      }
    }
  },
  mounted() {
    if (location.href.includes('npcitem.jd.hk')) {
      this.additionalClass = 'gwd-npcitem-jdhk';
    }
    if (_commonUtil.default.isNewJd() || $('#tbpcDetail_SkuPanelRightWrap').length) {
      this.$nextTick(() => {
        this.resetTop();
        window.addEventListener('scroll', this.resetTop);
        window.addEventListener('resize', this.resetTop);
      });
      setTimeout(() => {
        // window.gwdTrendReAdjust = require('common/commonUtil').convertToFixed('.gwd-new-jd')
        window.gwdMiniFixSwitcher = (__webpack_require__(60340).createFixSwitcher)(this.$el);
        if (G.site === '360buy') {
          window.gwdMiniFixSwitcher.replaceToFixed();
          window.addEventListener('resize', () => {
            window.gwdMiniFixSwitcher.restorePosition();
            window.gwdMiniFixSwitcher.replaceToFixed();
          });
        }
      }, 1000);
    } else {
      this.top = 0;
    }
  }
};

/***/ }),

/***/ 66583:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAA0CAYAAAAjfRLqAAAAAXNSR0IArs4c6QAAAVNJREFUeF7tlMENgzAUxZLd2H+NXrvB7w6RQMU290D8bLFXTwuAFthzrQHxhCJfoKDlAdDw93w//aFpVsU8BS2WT0QvaKJVMVNBi+UT0QuaaFXMVNBi+UT0giZaFTMVtFg+Eb2giVbFTAUtlk9EL2iiVTFTQYvlE9ELmmhVzFTQYvlE9IImWhUzFbRYPhG9oIlWxUwFLZZPRC9oolUxU0GL5RPRC5poVcxU0GL5RPSCJloVMxW0WD4RvaCJVsVMBS2WT0QvaKJVMVNBi+UT0QuaaFXMVNBi+UT0giZaFTMVtFg+Eb2giVbFTAUtlk9EL2iiVTFTQYvlE9ELmmhVzFTQYvlE9IImWhUzFbRYPhG9oIlWxUwFLZZPRC9oolUxU0GL5RPRC5poVcxU0G+TP/O2Gz963z3XaqFHJ+9jdy5Q0Heue/7ufjKH2+3Dcx1rgb9c4AdcEryACPINxAAAAABJRU5ErkJggg==";

/***/ }),

/***/ 66614:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ TooltipViewBar)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceTrend/TooltipViewBar.vue?vue&type=template&id=7b887b5e&scoped=true
var TooltipViewBarvue_type_template_id_7b887b5e_scoped_true = __webpack_require__(30391);
;// ./src/standard/module/components/PriceTrend/TooltipViewBar.vue?vue&type=template&id=7b887b5e&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceTrend/TooltipViewBar.vue?vue&type=script&lang=js
var TooltipViewBarvue_type_script_lang_js = __webpack_require__(21323);
;// ./src/standard/module/components/PriceTrend/TooltipViewBar.vue?vue&type=script&lang=js
 /* harmony default export */ const PriceTrend_TooltipViewBarvue_type_script_lang_js = (TooltipViewBarvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(85072);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(97825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(77659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(55056);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(10540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(41113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceTrend/TooltipViewBar.vue?vue&type=style&index=0&id=7b887b5e&prod&scoped=true&lang=css
var TooltipViewBarvue_type_style_index_0_id_7b887b5e_prod_scoped_true_lang_css = __webpack_require__(42077);
var TooltipViewBarvue_type_style_index_0_id_7b887b5e_prod_scoped_true_lang_css_default = /*#__PURE__*/__webpack_require__.n(TooltipViewBarvue_type_style_index_0_id_7b887b5e_prod_scoped_true_lang_css);
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceTrend/TooltipViewBar.vue?vue&type=style&index=0&id=7b887b5e&prod&scoped=true&lang=css

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());

      options.insert = insertBySelector_default().bind(null, "head");
    
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()((TooltipViewBarvue_type_style_index_0_id_7b887b5e_prod_scoped_true_lang_css_default()), options);




       /* harmony default export */ const PriceTrend_TooltipViewBarvue_type_style_index_0_id_7b887b5e_prod_scoped_true_lang_css = ((TooltipViewBarvue_type_style_index_0_id_7b887b5e_prod_scoped_true_lang_css_default()) && (TooltipViewBarvue_type_style_index_0_id_7b887b5e_prod_scoped_true_lang_css_default()).locals ? (TooltipViewBarvue_type_style_index_0_id_7b887b5e_prod_scoped_true_lang_css_default()).locals : undefined);

;// ./src/standard/module/components/PriceTrend/TooltipViewBar.vue?vue&type=style&index=0&id=7b887b5e&prod&scoped=true&lang=css

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/PriceTrend/TooltipViewBar.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  PriceTrend_TooltipViewBarvue_type_script_lang_js,
  TooltipViewBarvue_type_template_id_7b887b5e_scoped_true/* render */.XX,
  TooltipViewBarvue_type_template_id_7b887b5e_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "7b887b5e",
  null
  
)

/* harmony default export */ const TooltipViewBar = (component.exports);

/***/ }),

/***/ 66699:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var DESCRIPTORS = __webpack_require__(43724);
var definePropertyModule = __webpack_require__(24913);
var createPropertyDescriptor = __webpack_require__(6980);

module.exports = DESCRIPTORS ? function (object, key, value) {
  return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
} : function (object, key, value) {
  object[key] = value;
  return object;
};


/***/ }),

/***/ 66716:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _vm.data.time ? _c("div", [_c("p", {
    staticClass: "prifontf",
    staticStyle: {
      "margin-left": "16px",
      "line-height": "14px",
      "margin-top": "10px",
      "text-align": "left",
      "font-size": "12px"
    }
  }, [_vm._v(_vm._s(_vm.data.time))]), _vm._v(" "), _vm.data.pagePrice && _vm.domclass === "" ? _c("div", {
    staticClass: "tip-item tip-pagepri tip-pagepri2"
  }, [_c("em"), _vm._v(" "), !_vm.aliSite ? [_c("span", {
    staticClass: "tip-item-sp1",
    staticStyle: {
      width: "120px"
    }
  }, [_vm._v("到手价(单件) / 页面价")]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp2"
  }, [_vm._v(":")])] : _vm._e(), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp3 prifontf"
  }, [_vm._v(_vm._s(_vm.data.pagePrice))])], 2) : _vm.data.pagePrice ? _c("div", {
    staticClass: "tip-item tip-pagepri"
  }, [_c("em"), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp1"
  }, [_vm._v("页面价")]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp2"
  }, [_vm._v(":")]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp3 prifontf"
  }, [_vm._v(_vm._s(_vm.data.pagePrice))])]) : _vm._e(), _vm._v(" "), _vm.data.directpro ? _c("div", {
    staticClass: "tip-item tip-directpro"
  }, [_c("em"), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp1"
  }, [_vm._v("到手价(单件)")]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp2"
  }, [_vm._v(":")]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp3 prifontf"
  }, [_vm._v("¥" + _vm._s(_vm.data.directpro))]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp4",
    domProps: {
      innerHTML: _vm._s(_vm.data.promo2)
    }
  })]) : _vm._e(), _vm._v(" "), _vm.data.addpro ? _c("div", {
    staticClass: "tip-item tip-addpro"
  }, [_c("em"), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp1"
  }, [_vm._v("到手价(多件)")]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp2"
  }, [_vm._v(":")]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp3 prifontf"
  }, [_vm._v("¥" + _vm._s(_vm.data.addpro))]), _vm._v(" "), _c("span", {
    staticClass: "tip-item-sp4",
    domProps: {
      innerHTML: _vm._s(_vm.data.promo1)
    }
  })]) : _vm._e()]) : _vm._e();
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 66738:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-row gwd-trend-info-list",
    class: _vm.classList
  }, [_vm._l(_vm.displayInfoList, function (item, idx) {
    return _c("div", {
      key: idx,
      staticClass: "gwd-column"
    }, [_c("span", {
      staticClass: "gwd-text",
      style: item.color ? `color: ${item.color}; font-weight: bold; font-size: 13px` : ""
    }, [_vm._v(_vm._s(item.text.replace(".00", "")))]), _vm._v(" "), item.date ? _c("span", {
      staticClass: "gwd-date"
    }, [_vm._v(_vm._s(item.date))]) : _vm._e()]);
  }), _vm._v(" "), _c("div", {
    staticClass: "gwd-placeholder"
  })], 2);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 66744:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports.jsonrepair = jsonrepair;
var _JSONRepairError = __webpack_require__(4525);
var _stringUtils = __webpack_require__(80092);
const controlCharacters = {
  '\b': '\\b',
  '\f': '\\f',
  '\n': '\\n',
  '\r': '\\r',
  '\t': '\\t'
};

// map with all escape characters
const escapeCharacters = {
  '"': '"',
  '\\': '\\',
  '/': '/',
  b: '\b',
  f: '\f',
  n: '\n',
  r: '\r',
  t: '\t'
  // note that \u is handled separately in parseString()
};

/**
 * Repair a string containing an invalid JSON document.
 * For example changes JavaScript notation into JSON notation.
 *
 * Example:
 *
 *     try {
 *       const json = "{name: 'John'}"
 *       const repaired = jsonrepair(json)
 *       console.log(repaired)
 *       // '{"name": "John"}'
 *     } catch (err) {
 *       console.error(err)
 *     }
 *
 */
function jsonrepair(text) {
  let i = 0; // current index in text
  let output = ''; // generated output

  parseMarkdownCodeBlock();
  const processed = parseValue();
  if (!processed) {
    throwUnexpectedEnd();
  }
  parseMarkdownCodeBlock();
  const processedComma = parseCharacter(',');
  if (processedComma) {
    parseWhitespaceAndSkipComments();
  }
  if ((0, _stringUtils.isStartOfValue)(text[i]) && (0, _stringUtils.endsWithCommaOrNewline)(output)) {
    // start of a new value after end of the root level object: looks like
    // newline delimited JSON -> turn into a root level array
    if (!processedComma) {
      // repair missing comma
      output = (0, _stringUtils.insertBeforeLastWhitespace)(output, ',');
    }
    parseNewlineDelimitedJSON();
  } else if (processedComma) {
    // repair: remove trailing comma
    output = (0, _stringUtils.stripLastOccurrence)(output, ',');
  }

  // repair redundant end quotes
  while (text[i] === '}' || text[i] === ']') {
    i++;
    parseWhitespaceAndSkipComments();
  }
  if (i >= text.length) {
    // reached the end of the document properly
    return output;
  }
  throwUnexpectedCharacter();
  function parseValue() {
    parseWhitespaceAndSkipComments();
    const processed = parseObject() || parseArray() || parseString() || parseNumber() || parseKeywords() || parseUnquotedString(false) || parseRegex();
    parseWhitespaceAndSkipComments();
    return processed;
  }
  function parseWhitespaceAndSkipComments() {
    let skipNewline = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
    const start = i;
    let changed = parseWhitespace(skipNewline);
    do {
      changed = parseComment();
      if (changed) {
        changed = parseWhitespace(skipNewline);
      }
    } while (changed);
    return i > start;
  }
  function parseWhitespace(skipNewline) {
    const _isWhiteSpace = skipNewline ? _stringUtils.isWhitespace : _stringUtils.isWhitespaceExceptNewline;
    let whitespace = '';
    while (true) {
      if (_isWhiteSpace(text, i)) {
        whitespace += text[i];
        i++;
      } else if ((0, _stringUtils.isSpecialWhitespace)(text, i)) {
        // repair special whitespace
        whitespace += ' ';
        i++;
      } else {
        break;
      }
    }
    if (whitespace.length > 0) {
      output += whitespace;
      return true;
    }
    return false;
  }
  function parseComment() {
    // find a block comment '/* ... */'
    if (text[i] === '/' && text[i + 1] === '*') {
      // repair block comment by skipping it
      while (i < text.length && !atEndOfBlockComment(text, i)) {
        i++;
      }
      i += 2;
      return true;
    }

    // find a line comment '// ...'
    if (text[i] === '/' && text[i + 1] === '/') {
      // repair line comment by skipping it
      while (i < text.length && text[i] !== '\n') {
        i++;
      }
      return true;
    }
    return false;
  }
  function parseMarkdownCodeBlock() {
    // find and skip over a Markdown fenced code block:
    //     ``` ... ```
    // or
    //     ```json ... ```
    if (text.slice(i, i + 3) === '```') {
      i += 3;
      if ((0, _stringUtils.isFunctionNameCharStart)(text[i])) {
        // strip the optional language specifier like "json"
        while (i < text.length && (0, _stringUtils.isFunctionNameChar)(text[i])) {
          i++;
        }
      }
      parseWhitespaceAndSkipComments();
      return true;
    }
    return false;
  }
  function parseCharacter(char) {
    if (text[i] === char) {
      output += text[i];
      i++;
      return true;
    }
    return false;
  }
  function skipCharacter(char) {
    if (text[i] === char) {
      i++;
      return true;
    }
    return false;
  }
  function skipEscapeCharacter() {
    return skipCharacter('\\');
  }

  /**
   * Skip ellipsis like "[1,2,3,...]" or "[1,2,3,...,9]" or "[...,7,8,9]"
   * or a similar construct in objects.
   */
  function skipEllipsis() {
    parseWhitespaceAndSkipComments();
    if (text[i] === '.' && text[i + 1] === '.' && text[i + 2] === '.') {
      // repair: remove the ellipsis (three dots) and optionally a comma
      i += 3;
      parseWhitespaceAndSkipComments();
      skipCharacter(',');
      return true;
    }
    return false;
  }

  /**
   * Parse an object like '{"key": "value"}'
   */
  function parseObject() {
    if (text[i] === '{') {
      output += '{';
      i++;
      parseWhitespaceAndSkipComments();

      // repair: skip leading comma like in {, message: "hi"}
      if (skipCharacter(',')) {
        parseWhitespaceAndSkipComments();
      }
      let initial = true;
      while (i < text.length && text[i] !== '}') {
        let processedComma;
        if (!initial) {
          processedComma = parseCharacter(',');
          if (!processedComma) {
            // repair missing comma
            output = (0, _stringUtils.insertBeforeLastWhitespace)(output, ',');
          }
          parseWhitespaceAndSkipComments();
        } else {
          processedComma = true;
          initial = false;
        }
        skipEllipsis();
        const processedKey = parseString() || parseUnquotedString(true);
        if (!processedKey) {
          if (text[i] === '}' || text[i] === '{' || text[i] === ']' || text[i] === '[' || text[i] === undefined) {
            // repair trailing comma
            output = (0, _stringUtils.stripLastOccurrence)(output, ',');
          } else {
            throwObjectKeyExpected();
          }
          break;
        }
        parseWhitespaceAndSkipComments();
        const processedColon = parseCharacter(':');
        const truncatedText = i >= text.length;
        if (!processedColon) {
          if ((0, _stringUtils.isStartOfValue)(text[i]) || truncatedText) {
            // repair missing colon
            output = (0, _stringUtils.insertBeforeLastWhitespace)(output, ':');
          } else {
            throwColonExpected();
          }
        }
        const processedValue = parseValue();
        if (!processedValue) {
          if (processedColon || truncatedText) {
            // repair missing object value
            output += 'null';
          } else {
            throwColonExpected();
          }
        }
      }
      if (text[i] === '}') {
        output += '}';
        i++;
      } else {
        // repair missing end bracket
        output = (0, _stringUtils.insertBeforeLastWhitespace)(output, '}');
      }
      return true;
    }
    return false;
  }

  /**
   * Parse an array like '["item1", "item2", ...]'
   */
  function parseArray() {
    if (text[i] === '[') {
      output += '[';
      i++;
      parseWhitespaceAndSkipComments();

      // repair: skip leading comma like in [,1,2,3]
      if (skipCharacter(',')) {
        parseWhitespaceAndSkipComments();
      }
      let initial = true;
      while (i < text.length && text[i] !== ']') {
        if (!initial) {
          const processedComma = parseCharacter(',');
          if (!processedComma) {
            // repair missing comma
            output = (0, _stringUtils.insertBeforeLastWhitespace)(output, ',');
          }
        } else {
          initial = false;
        }
        skipEllipsis();
        const processedValue = parseValue();
        if (!processedValue) {
          // repair trailing comma
          output = (0, _stringUtils.stripLastOccurrence)(output, ',');
          break;
        }
      }
      if (text[i] === ']') {
        output += ']';
        i++;
      } else {
        // repair missing closing array bracket
        output = (0, _stringUtils.insertBeforeLastWhitespace)(output, ']');
      }
      return true;
    }
    return false;
  }

  /**
   * Parse and repair Newline Delimited JSON (NDJSON):
   * multiple JSON objects separated by a newline character
   */
  function parseNewlineDelimitedJSON() {
    // repair NDJSON
    let initial = true;
    let processedValue = true;
    while (processedValue) {
      if (!initial) {
        // parse optional comma, insert when missing
        const processedComma = parseCharacter(',');
        if (!processedComma) {
          // repair: add missing comma
          output = (0, _stringUtils.insertBeforeLastWhitespace)(output, ',');
        }
      } else {
        initial = false;
      }
      processedValue = parseValue();
    }
    if (!processedValue) {
      // repair: remove trailing comma
      output = (0, _stringUtils.stripLastOccurrence)(output, ',');
    }

    // repair: wrap the output inside array brackets
    output = "[\n".concat(output, "\n]");
  }

  /**
   * Parse a string enclosed by double quotes "...". Can contain escaped quotes
   * Repair strings enclosed in single quotes or special quotes
   * Repair an escaped string
   *
   * The function can run in two stages:
   * - First, it assumes the string has a valid end quote
   * - If it turns out that the string does not have a valid end quote followed
   *   by a delimiter (which should be the case), the function runs again in a
   *   more conservative way, stopping the string at the first next delimiter
   *   and fixing the string by inserting a quote there, or stopping at a
   *   stop index detected in the first iteration.
   */
  function parseString() {
    let stopAtDelimiter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
    let stopAtIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;
    let skipEscapeChars = text[i] === '\\';
    if (skipEscapeChars) {
      // repair: remove the first escape character
      i++;
      skipEscapeChars = true;
    }
    if ((0, _stringUtils.isQuote)(text[i])) {
      // double quotes are correct JSON,
      // single quotes come from JavaScript for example, we assume it will have a correct single end quote too
      // otherwise, we will match any double-quote-like start with a double-quote-like end,
      // or any single-quote-like start with a single-quote-like end
      const isEndQuote = (0, _stringUtils.isDoubleQuote)(text[i]) ? _stringUtils.isDoubleQuote : (0, _stringUtils.isSingleQuote)(text[i]) ? _stringUtils.isSingleQuote : (0, _stringUtils.isSingleQuoteLike)(text[i]) ? _stringUtils.isSingleQuoteLike : _stringUtils.isDoubleQuoteLike;
      const iBefore = i;
      const oBefore = output.length;
      let str = '"';
      i++;
      while (true) {
        if (i >= text.length) {
          // end of text, we are missing an end quote

          const iPrev = prevNonWhitespaceIndex(i - 1);
          if (!stopAtDelimiter && (0, _stringUtils.isDelimiter)(text.charAt(iPrev))) {
            // if the text ends with a delimiter, like ["hello],
            // so the missing end quote should be inserted before this delimiter
            // retry parsing the string, stopping at the first next delimiter
            i = iBefore;
            output = output.substring(0, oBefore);
            return parseString(true);
          }

          // repair missing quote
          str = (0, _stringUtils.insertBeforeLastWhitespace)(str, '"');
          output += str;
          return true;
          // biome-ignore lint/style/noUselessElse: <explanation>
        } else if (i === stopAtIndex) {
          // use the stop index detected in the first iteration, and repair end quote
          str = (0, _stringUtils.insertBeforeLastWhitespace)(str, '"');
          output += str;
          return true;
          // biome-ignore lint/style/noUselessElse: <explanation>
        } else if (isEndQuote(text[i])) {
          // end quote
          // let us check what is before and after the quote to verify whether this is a legit end quote
          const iQuote = i;
          const oQuote = str.length;
          str += '"';
          i++;
          output += str;
          parseWhitespaceAndSkipComments(false);
          if (stopAtDelimiter || i >= text.length || (0, _stringUtils.isDelimiter)(text[i]) || (0, _stringUtils.isQuote)(text[i]) || (0, _stringUtils.isDigit)(text[i])) {
            // The quote is followed by the end of the text, a delimiter,
            // or a next value. So the quote is indeed the end of the string.
            parseConcatenatedString();
            return true;
          }
          const iPrevChar = prevNonWhitespaceIndex(iQuote - 1);
          const prevChar = text.charAt(iPrevChar);
          if (prevChar === ',') {
            // A comma followed by a quote, like '{"a":"b,c,"d":"e"}'.
            // We assume that the quote is a start quote, and that the end quote
            // should have been located right before the comma but is missing.
            i = iBefore;
            output = output.substring(0, oBefore);
            return parseString(false, iPrevChar);
          }
          if ((0, _stringUtils.isDelimiter)(prevChar)) {
            // This is not the right end quote: it is preceded by a delimiter,
            // and NOT followed by a delimiter. So, there is an end quote missing
            // parse the string again and then stop at the first next delimiter
            i = iBefore;
            output = output.substring(0, oBefore);
            return parseString(true);
          }

          // revert to right after the quote but before any whitespace, and continue parsing the string
          output = output.substring(0, oBefore);
          i = iQuote + 1;

          // repair unescaped quote
          str = "".concat(str.substring(0, oQuote), "\\").concat(str.substring(oQuote));
        } else if (stopAtDelimiter && (0, _stringUtils.isUnquotedStringDelimiter)(text[i])) {
          // we're in the mode to stop the string at the first delimiter
          // because there is an end quote missing

          // test start of an url like "https://..." (this would be parsed as a comment)
          if (text[i - 1] === ':' && _stringUtils.regexUrlStart.test(text.substring(iBefore + 1, i + 2))) {
            while (i < text.length && _stringUtils.regexUrlChar.test(text[i])) {
              str += text[i];
              i++;
            }
          }

          // repair missing quote
          str = (0, _stringUtils.insertBeforeLastWhitespace)(str, '"');
          output += str;
          parseConcatenatedString();
          return true;
        } else if (text[i] === '\\') {
          // handle escaped content like \n or \u2605
          const char = text.charAt(i + 1);
          const escapeChar = escapeCharacters[char];
          if (escapeChar !== undefined) {
            str += text.slice(i, i + 2);
            i += 2;
          } else if (char === 'u') {
            let j = 2;
            while (j < 6 && (0, _stringUtils.isHex)(text[i + j])) {
              j++;
            }
            if (j === 6) {
              str += text.slice(i, i + 6);
              i += 6;
            } else if (i + j >= text.length) {
              // repair invalid or truncated unicode char at the end of the text
              // by removing the unicode char and ending the string here
              i = text.length;
            } else {
              throwInvalidUnicodeCharacter();
            }
          } else {
            // repair invalid escape character: remove it
            str += char;
            i += 2;
          }
        } else {
          // handle regular characters
          const char = text.charAt(i);
          if (char === '"' && text[i - 1] !== '\\') {
            // repair unescaped double quote
            str += "\\".concat(char);
            i++;
          } else if ((0, _stringUtils.isControlCharacter)(char)) {
            // unescaped control character
            str += controlCharacters[char];
            i++;
          } else {
            if (!(0, _stringUtils.isValidStringCharacter)(char)) {
              throwInvalidCharacter(char);
            }
            str += char;
            i++;
          }
        }
        if (skipEscapeChars) {
          // repair: skipped escape character (nothing to do)
          skipEscapeCharacter();
        }
      }
    }
    return false;
  }

  /**
   * Repair concatenated strings like "hello" + "world", change this into "helloworld"
   */
  function parseConcatenatedString() {
    let processed = false;
    parseWhitespaceAndSkipComments();
    while (text[i] === '+') {
      processed = true;
      i++;
      parseWhitespaceAndSkipComments();

      // repair: remove the end quote of the first string
      output = (0, _stringUtils.stripLastOccurrence)(output, '"', true);
      const start = output.length;
      const parsedStr = parseString();
      if (parsedStr) {
        // repair: remove the start quote of the second string
        output = (0, _stringUtils.removeAtIndex)(output, start, 1);
      } else {
        // repair: remove the + because it is not followed by a string
        output = (0, _stringUtils.insertBeforeLastWhitespace)(output, '"');
      }
    }
    return processed;
  }

  /**
   * Parse a number like 2.4 or 2.4e6
   */
  function parseNumber() {
    const start = i;
    if (text[i] === '-') {
      i++;
      if (atEndOfNumber()) {
        repairNumberEndingWithNumericSymbol(start);
        return true;
      }
      if (!(0, _stringUtils.isDigit)(text[i])) {
        i = start;
        return false;
      }
    }

    // Note that in JSON leading zeros like "00789" are not allowed.
    // We will allow all leading zeros here though and at the end of parseNumber
    // check against trailing zeros and repair that if needed.
    // Leading zeros can have meaning, so we should not clear them.
    while ((0, _stringUtils.isDigit)(text[i])) {
      i++;
    }
    if (text[i] === '.') {
      i++;
      if (atEndOfNumber()) {
        repairNumberEndingWithNumericSymbol(start);
        return true;
      }
      if (!(0, _stringUtils.isDigit)(text[i])) {
        i = start;
        return false;
      }
      while ((0, _stringUtils.isDigit)(text[i])) {
        i++;
      }
    }
    if (text[i] === 'e' || text[i] === 'E') {
      i++;
      if (text[i] === '-' || text[i] === '+') {
        i++;
      }
      if (atEndOfNumber()) {
        repairNumberEndingWithNumericSymbol(start);
        return true;
      }
      if (!(0, _stringUtils.isDigit)(text[i])) {
        i = start;
        return false;
      }
      while ((0, _stringUtils.isDigit)(text[i])) {
        i++;
      }
    }

    // if we're not at the end of the number by this point, allow this to be parsed as another type
    if (!atEndOfNumber()) {
      i = start;
      return false;
    }
    if (i > start) {
      // repair a number with leading zeros like "00789"
      const num = text.slice(start, i);
      const hasInvalidLeadingZero = /^0\d/.test(num);
      output += hasInvalidLeadingZero ? "\"".concat(num, "\"") : num;
      return true;
    }
    return false;
  }

  /**
   * Parse keywords true, false, null
   * Repair Python keywords True, False, None
   */
  function parseKeywords() {
    return parseKeyword('true', 'true') || parseKeyword('false', 'false') || parseKeyword('null', 'null') ||
    // repair Python keywords True, False, None
    parseKeyword('True', 'true') || parseKeyword('False', 'false') || parseKeyword('None', 'null');
  }
  function parseKeyword(name, value) {
    if (text.slice(i, i + name.length) === name) {
      output += value;
      i += name.length;
      return true;
    }
    return false;
  }

  /**
   * Repair an unquoted string by adding quotes around it
   * Repair a MongoDB function call like NumberLong("2")
   * Repair a JSONP function call like callback({...});
   */
  function parseUnquotedString(isKey) {
    // note that the symbol can end with whitespaces: we stop at the next delimiter
    // also, note that we allow strings to contain a slash / in order to support repairing regular expressions
    const start = i;
    if ((0, _stringUtils.isFunctionNameCharStart)(text[i])) {
      while (i < text.length && (0, _stringUtils.isFunctionNameChar)(text[i])) {
        i++;
      }
      let j = i;
      while ((0, _stringUtils.isWhitespace)(text, j)) {
        j++;
      }
      if (text[j] === '(') {
        // repair a MongoDB function call like NumberLong("2")
        // repair a JSONP function call like callback({...});
        i = j + 1;
        parseValue();
        if (text[i] === ')') {
          // repair: skip close bracket of function call
          i++;
          if (text[i] === ';') {
            // repair: skip semicolon after JSONP call
            i++;
          }
        }
        return true;
      }
    }
    while (i < text.length && !(0, _stringUtils.isUnquotedStringDelimiter)(text[i]) && !(0, _stringUtils.isQuote)(text[i]) && (!isKey || text[i] !== ':')) {
      i++;
    }

    // test start of an url like "https://..." (this would be parsed as a comment)
    if (text[i - 1] === ':' && _stringUtils.regexUrlStart.test(text.substring(start, i + 2))) {
      while (i < text.length && _stringUtils.regexUrlChar.test(text[i])) {
        i++;
      }
    }
    if (i > start) {
      // repair unquoted string
      // also, repair undefined into null

      // first, go back to prevent getting trailing whitespaces in the string
      while ((0, _stringUtils.isWhitespace)(text, i - 1) && i > 0) {
        i--;
      }
      const symbol = text.slice(start, i);
      output += symbol === 'undefined' ? 'null' : JSON.stringify(symbol);
      if (text[i] === '"') {
        // we had a missing start quote, but now we encountered the end quote, so we can skip that one
        i++;
      }
      return true;
    }
  }
  function parseRegex() {
    if (text[i] === '/') {
      const start = i;
      i++;
      while (i < text.length && (text[i] !== '/' || text[i - 1] === '\\')) {
        i++;
      }
      i++;
      output += "\"".concat(text.substring(start, i), "\"");
      return true;
    }
  }
  function prevNonWhitespaceIndex(start) {
    let prev = start;
    while (prev > 0 && (0, _stringUtils.isWhitespace)(text, prev)) {
      prev--;
    }
    return prev;
  }
  function atEndOfNumber() {
    return i >= text.length || (0, _stringUtils.isDelimiter)(text[i]) || (0, _stringUtils.isWhitespace)(text, i);
  }
  function repairNumberEndingWithNumericSymbol(start) {
    // repair numbers cut off at the end
    // this will only be called when we end after a '.', '-', or 'e' and does not
    // change the number more than it needs to make it valid JSON
    output += "".concat(text.slice(start, i), "0");
  }
  function throwInvalidCharacter(char) {
    throw new _JSONRepairError.JSONRepairError("Invalid character ".concat(JSON.stringify(char)), i);
  }
  function throwUnexpectedCharacter() {
    throw new _JSONRepairError.JSONRepairError("Unexpected character ".concat(JSON.stringify(text[i])), i);
  }
  function throwUnexpectedEnd() {
    throw new _JSONRepairError.JSONRepairError('Unexpected end of json string', text.length);
  }
  function throwObjectKeyExpected() {
    throw new _JSONRepairError.JSONRepairError('Object key expected', i);
  }
  function throwColonExpected() {
    throw new _JSONRepairError.JSONRepairError('Colon expected', i);
  }
  function throwInvalidUnicodeCharacter() {
    const chars = text.slice(i, i + 6);
    throw new _JSONRepairError.JSONRepairError("Invalid unicode character \"".concat(chars, "\""), i);
  }
}
function atEndOfBlockComment(text, i) {
  return text[i] === '*' && text[i + 1] === '/';
}
//# sourceMappingURL=jsonrepair.js.map

/***/ }),

/***/ 66745:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(24290);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("dbad8a46", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 66988:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHG0lEQVR42u2bD0hVVxzHTSqMNihcfyaswNYkaYo+yaJtaNMaI0lEGq2yxHKg+AdjFOGa0+GMWtgwBltMX7Q2NFrohtXE596iMfdbYgwKgnjbWEox0td7j3f/cN7O79zn1fu693nfu8+8tnvhi++ee8/v3vM55/zOOb97jMvKysq32Wx1T0sZGRmb4jQOev1Vg/YL1ezSMiar3U/T8+KCP3qfljIzM3drAcDKMGj7uBZYtfux7BYAC4AFwAJQp2Esbf369SuilVZhogGAI4feZ9LydISKprdheUKVnZ29QhNAWlra8jgDhxb1aADgyxp5JkIIl8kCYAHQAQDPw+mZBxB0Jpoe2AIQAwD0mYvVvDumGwEwAUFldCg3FQCjRzgAEc8DLAAWAPMAwJkg5ptOkU7r5wwAvQWL6VpABcAxfICWIgEQCASSqGxUBVQ5wd/PmxqA0f64d+/eH7u6un5+/PhxP/E+AvLXEJAbHUCGvgNyxwGYRiF0UzUgoGcGQG5u7pXe3t7rrNA9DSA2pYNQHqcqvEZutAN56IKpIOYsgIqKij632/0budwAQvVSEA7M0y3ME2wRObMCACOsGDWNVg6HowZrUmzJBaF0XlQSj2Ww1tDa2vqtTs9+US36i34nOM1WiE2xZyIidPjw4X58caEuGfiSeYYk1CYDeeCC6urqyypTWUORoogcjF4VFhZeHR0d/ZU/kgH8u/HqKknQvqYioSkXu4MjdKSgzztuOgDo8MTOj4DfGS9LtNcC+ec2iJ3HpHMH9f73hkA8WyHfI5QmglCTQmt8HQi7FijyszzUJjpGUwPA2iejLuD2JIK/KF5WgBB8eSoC3L4XIDD2gJ2LfWeBOM9PDIFTREDstwNXvlq2wZUkAvGw+14xLQBW+30dwBXEK0R+vyoV+HoXiB1HFIUltxwgfFED/IGX2b18SRKI3aela7d/UdgRLrBWcCimAPTOs/WI9f3KTPC/Ha8Qt5O2iIPrwL9/DZB/7wPh/ECGHRKUWwNP3v/OMhkQR/PI6dQ2TeuZ+s1PLdobKlrJa+Jm+kAHFaBN1L81XiGuhHrxEdotylJBsLOxHYQzNUDu3pQAOC4Af7JMIbx3AgDfUKiwF+wGSXFmO3A+Lw4NgC93gUL86SqpMPTFudJ02q83An/ioNTE7w4DGXso/b5/D8jNASa+vmgSQEuZwh7mwWeZEUCO6LwMvtfmPyGuagstoIu1BDwXOttA6P4S/IUvAYE+qaCfVrFzlG/r0kkAp2sVtoQfOjC9wIwACoTv7eDbOF9V/trtrEC+N6k3/2MwxOsrxZ86NPn7zFGFHXGgG9NzzNkF7gyBz7ZAVdyhYgj4POAroN6+uQK4uiJao0uADErOkGssB/9bq2mTrwJf9uJJACfrFHYIOGPbBaiXfE8tYqq1GMKhR+3+vLw8O3GPgTd94RPybVnFuoDY3w3c0f2SIxwcYNfE69IQydWXAm8/JbWSN1ZOjgL1ZQpbZPwR4LPU3kHt3bXKF3FUWE9kaGRkZNBftAG8qQsVEpxXpMK8v4dqn+T0aEH8O9JlAMK1S3S26Ao2+0YZgP/gdtkO2sahdrpxf+q7h5vnRLUcDgegvb39J76tCTxrF8riOz6TCvy3i54ngCdrGSu83OeDs0RM41ob6N8xEJ1X5eu+HRtkW8IlO+Bky7QA6FT4GhbAm74cPMkJ4H19LY38SLXKnahnaVJ6CgVDR4Kuc7S2W8BfsQu82zLBuyUVfLu3sWtsjkDzTuRBIUR8hmkBTEyHuVNNML4qgcmziRa20w6ezSlympr4r9qUU+S7dyiQNPk62tRT+7MOAENgGAXyFufDeFKCbrmTl4C3KJ/Jk79BcQ3Pse/rqf1ZB4CqrKzsw6bvsaWAe3mCIaENtIVBFr2LshkFoLLQ+EAtf3Nzs4NByMmG8cRFUcm7YysrPLXVH8mqNGQYTFMLh00bEtMbFA1HuLGx8RtcvXEtH8P4kkW65V69EjAPdiVsTZEuyyMK6M4kAFyHUwAvUn1I/nQB//U5cG+mLeK5RarCa/5PmugC6RFzeOhPoolLmArAlKkyA4EtAgsoOJ3A9/QAf/48iMPDrNDo6PDjCX5EMRKYiQkAjKVrbIdZrBcAvXZGzQadMK0Mfg7LCX4esxUXF38+Tbhbd0Q4VgA6NPbs5RkNqamFqMKFt0I/qOL+vpgB0NqWovVCoQDCeNnjcwJAmA1LugAY9Q0WAAuACXyAmqfWC0Arv9YMMVYA9AZEwr0jG9G0akprh3boMBjNFnejAKJozflRbZc3YjxSAFqjUSQbJec0gJk8LACxABD8nz61yOrFWABApxnGsRWaAkAUC5OLGtvqymfCCaKvCFaUQvi8WQEQSVOPBYCYbpW1AFgALAD/DwBh/n1+jcr8O6J/Z49kCotDXTT/cm/kHXFD53/qTqBjwbHoXwAAAABJRU5ErkJggg==";

/***/ }),

/***/ 67044:
/***/ ((__unused_webpack_module, exports) => {

const numeric = '[0-9]+'
const alphanumeric = '[A-Z $%*+\\-./:]+'
let kanji = '(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|' +
  '[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|' +
  '[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|' +
  '[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+'
kanji = kanji.replace(/u/g, '\\u')

const byte = '(?:(?![A-Z0-9 $%*+\\-./:]|' + kanji + ')(?:.|[\r\n]))+'

exports.KANJI = new RegExp(kanji, 'g')
exports.BYTE_KANJI = new RegExp('[^A-Z0-9 $%*+\\-./:]+', 'g')
exports.BYTE = new RegExp(byte, 'g')
exports.NUMERIC = new RegExp(numeric, 'g')
exports.ALPHANUMERIC = new RegExp(alphanumeric, 'g')

const TEST_KANJI = new RegExp('^' + kanji + '$')
const TEST_NUMERIC = new RegExp('^' + numeric + '$')
const TEST_ALPHANUMERIC = new RegExp('^[A-Z0-9 $%*+\\-./:]+$')

exports.testKanji = function testKanji (str) {
  return TEST_KANJI.test(str)
}

exports.testNumeric = function testNumeric (str) {
  return TEST_NUMERIC.test(str)
}

exports.testAlphanumeric = function testAlphanumeric (str) {
  return TEST_ALPHANUMERIC.test(str)
}


/***/ }),

/***/ 67174:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-qr-app",
    on: {
      mouseenter: _vm.over
    }
  }, [_c("img", {
    staticClass: "gwd-qr-icon",
    attrs: {
      src: _vm.qrIcon,
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticClass: "gwd-app-label"
  }, [_vm._v("扫码领券")]), _vm._v(" "), _c("div", {
    staticClass: "gwd-qr-area gwd-column gwd-align gwd-jcc"
  }, [_c("img", {
    style: {
      visibility: _vm.qr ? "visible" : "hidden",
      width: "98px",
      height: "98px"
    },
    attrs: {
      src: _vm.qr,
      alt: ""
    }
  }), _vm._v(" "), _c("span", [_vm._v(_vm._s(_vm.site === "tb" ? "淘宝" : "京东") + "APP"), _c("br"), _vm._v("扫码领券")])])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 67242:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "\n.big_tooltip_box .tip-item[data-v-94eef1d2] {\n  display: flex;\n}\n.big_tooltip_box .tip-item-sp4[data-v-94eef1d2] {\n  flex: 1;\n}\n", ""]);

// exports


/***/ }),

/***/ 67298:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const request = __webpack_require__(49388);
module.exports.init = async () => {
  const cnzz = __webpack_require__(5300);
  if ($('.bjgou-subsidy-bar').length) {
    return false;
  }
  const request = __webpack_require__(49388);
  let dpId = (__webpack_require__(60340).getParameterByName)('id');
  if (location.hostname.indexOf('tmall') > -1) {
    dpId = dpId + '-83';
  } else {
    dpId = dpId + '-123';
  }
  let payload = {
    rebate: 1,
    dp_id: dpId,
    rate: 0.1
  };
  if (G.dp.price) {
    payload.price = G.dp.price;
  }
  let rebateValue = G.dp.rebate;
  if (!rebateValue) {
    let params = Object.keys(payload).map(k => `${k}=${encodeURIComponent(payload[k])}`).join('&');
    let res = await request.get(`https://browser.gwdang.com/extension/Coupon?${params}`);
    if (!res.rebate) return false;
    rebateValue = res.rebate;
  }
  const GiftMoney = (__webpack_require__(8585)/* ["default"] */ .A);
  $('#gwd-coupon-placeholder').replaceWith('<div id="gwd-giftmoney"></div>');
  if ($('.bjgou-subsidy-bar').length) {
    return false;
  }
  cnzz.logOnce('taobaoGiftMoney:show');
  cnzz.logOnce('taobaoGiftMoney:-show');
  (__webpack_require__(41761).setMet)('couponLink', {
    content: '发现' + rebateValue + '元红包，速领',
    url: (__webpack_require__(12826).appendTbInfoForUrl)(`https://tb.gwdang.com/extension/qrpage?tag=9_chrome&rebate=1&dp_id=${dpId}&discount=${rebateValue}`)
  });
  (__webpack_require__(92771).getStore)().commit('promos/setState', {
    rebate: {
      value: rebateValue,
      link: (__webpack_require__(12826).appendTbInfoForUrl)(`https://tb.gwdang.com/extension/qrpage?tag=9_chrome&rebate=1&dp_id=${dpId}&discount=${rebateValue}`)
    }
  });

  // require('common/sideCoupon').add('店铺红包', rebateValue, require('common/productInfo').appendTbInfoForUrl(`https://tb.gwdang.com/extension/qrpage?tag=9_chrome&rebate=1&dp_id=${dpId}&discount=${rebateValue}`))

  new Vue({
    el: '#gwd-giftmoney',
    render: h => h(GiftMoney, {
      props: {
        value: rebateValue,
        qr: false,
        url: (__webpack_require__(12826).appendTbInfoForUrl)(`https://tb.gwdang.com/extension/qrpage?tag=9_chrome&rebate=1&dp_id=${dpId}&discount=${rebateValue}`),
        id: dpId,
        name: '店铺',
        price: G.dp.price
      }
    })
  });
  const GiftMoneyTop = (__webpack_require__(61915)/* ["default"] */ .A);
  $('.gwd-topbar-left').append(`<div id="gwd-giftmoney-top"></div>`);
  new Vue({
    el: '#gwd-giftmoney-top',
    render: h => h(GiftMoneyTop, {
      props: {
        value: rebateValue,
        qr: false,
        url: (__webpack_require__(12826).appendTbInfoForUrl)(`https://tb.gwdang.com/extension/qrpage?tag=9_chrome&rebate=1&dp_id=${dpId}&discount=${rebateValue}`),
        id: dpId,
        price: G.dp.price,
        name: '购物党'
      }
    })
  });
  if ($('[data-name="buyMobile"]').length) {
    if ($('.gwd-redpack-qr-link').length) {
      return true;
    }
    const link = (__webpack_require__(12826).appendTbInfoForUrl)(`https://tb.gwdang.com/extension/qrpage?tag=9_chrome&rebate=1&dp_id=${dpId}&discount=${rebateValue}`);
    $('.itemQR--L77_c29c').after(`
      <a class="gwd-redpack-qr-link" href="${link}" target="_blank">
        点击领取<img src="https://cdn.gwdang.com/images/extensions/activity/giftMoneyV3@2x.png" style="max-height: 15px">额外${rebateValue}元补贴红包
      </a>`);
  }
  return true;
};
module.exports.clear = () => {
  $('.gwd-redpack-qr-link').remove();
};

/***/ }),

/***/ 67400:
/***/ ((module) => {

"use strict";

// iterable DOM collections
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
module.exports = {
  CSSRuleList: 0,
  CSSStyleDeclaration: 0,
  CSSValueList: 0,
  ClientRectList: 0,
  DOMRectList: 0,
  DOMStringList: 0,
  DOMTokenList: 1,
  DataTransferItemList: 0,
  FileList: 0,
  HTMLAllCollection: 0,
  HTMLCollection: 0,
  HTMLFormElement: 0,
  HTMLSelectElement: 0,
  MediaList: 0,
  MimeTypeArray: 0,
  NamedNodeMap: 0,
  NodeList: 1,
  PaintRequestList: 0,
  Plugin: 0,
  PluginArray: 0,
  SVGLengthList: 0,
  SVGNumberList: 0,
  SVGPathSegList: 0,
  SVGPointList: 0,
  SVGStringList: 0,
  SVGTransformList: 0,
  SourceBufferList: 0,
  StyleSheetList: 0,
  TextTrackCueList: 0,
  TextTrackList: 0,
  TouchList: 0
};


/***/ }),

/***/ 67416:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var fails = __webpack_require__(79039);
var wellKnownSymbol = __webpack_require__(78227);
var DESCRIPTORS = __webpack_require__(43724);
var IS_PURE = __webpack_require__(96395);

var ITERATOR = wellKnownSymbol('iterator');

module.exports = !fails(function () {
  // eslint-disable-next-line unicorn/relative-url-style -- required for testing
  var url = new URL('b?a=1&b=2&c=3', 'https://a');
  var params = url.searchParams;
  var params2 = new URLSearchParams('a=1&a=2&b=3');
  var result = '';
  url.pathname = 'c%20d';
  params.forEach(function (value, key) {
    params['delete']('b');
    result += key + value;
  });
  params2['delete']('a', 2);
  // `undefined` case is a Chromium 117 bug
  // https://bugs.chromium.org/p/v8/issues/detail?id=14222
  params2['delete']('b', undefined);
  return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
    || (!params.size && (IS_PURE || !DESCRIPTORS))
    || !params.sort
    || url.href !== 'https://a/c%20d?a=1&c=3'
    || params.get('c') !== '3'
    || String(new URLSearchParams('?a=1')) !== 'a=1'
    || !params[ITERATOR]
    // throws in Edge
    || new URL('https://a@b').username !== 'a'
    || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
    // not punycoded in Edge
    || new URL('https://тест').host !== 'xn--e1aybc'
    // not escaped in Chrome 62-
    || new URL('https://a#б').hash !== '#%D0%B1'
    // fails in Chrome 66-
    || result !== 'a1c3'
    // throws in Safari
    || new URL('https://x', undefined).host !== 'x';
});


/***/ }),

/***/ 67625:
/***/ ((module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
var __WEBPACK_AMD_DEFINE_RESULT__;

/*
 * 豆瓣模块
 * @version:0.0.1
 * @author:CaoYuaYe(caoyuanye@139.com)
 * @since:2014-05-21
 *
 */
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  var $ = __webpack_require__(10333);
  var exports = {};
  var taobaoCompare = __webpack_require__(60103),
    b2cCompare = __webpack_require__(92704);
  function insertTop(data, isbn) {
    if (!data.rate) {
      return;
    }
    var average = data.rate;
    $(`.gwd-topbar-left`).append($("<a>", {
      'style': 'height:36px',
      'title': '豆瓣评分',
      'id': 'douban-top',
      'class': 'gwdang-tab',
      'target': '_blank',
      'href': `https://book.douban.com/subject/${data.id}/`
    }).append($("<span>", {
      'class': 'douban-icon'
    })).append($("<span>", {
      'style': 'color:#007610'
    }).append(average + "分")));
  }
  function insertBottom(data, isbn) {
    if (!data.rate) {
      return;
    }
    var average = data.rate;
    $(`.${G.extBrand}-favor-module`).eq(0).after($("<div>", {
      'id': `${G.extBrand}-douban`,
      'class': `${G.extBrand}-close-module ${G.extBrand}-desc re-${G.extBrand}-desc`
    }).append($("<a>", {
      'id': 'goto_douban',
      'title': "豆瓣评分",
      'href': 'javascript:'
    }).append($("<div>", {
      'class': `${G.extBrand}and_douban_icon_bottom`
    })).append($("<div>", {
      'class': `${G.extName}_douban_text_bottom`
    }).append(average + "分"))));
    //这两个模块的需要设置一下偏移位置，因为插入的豆瓣占据了一定的空间
    taobaoCompare.setBottomViewOffset();
    b2cCompare.setBottomViewOffset();
  }
  exports.show = function (isbn, type) {
    if (isbn == null || isbn == "") {
      return;
    }
    let request = __webpack_require__(49388);
    let url = `${G.server}/extension/BookRate?isbn=` + isbn;
    request.getPure(url).then(msg => {
      if (type == "top") {
        insertTop(msg, isbn);
      }
      if (type == "bottom") {
        insertBottom(msg, isbn);
      }
    });
  };
  return exports;
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

/***/ }),

/***/ 67680:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var uncurryThis = __webpack_require__(79504);

module.exports = uncurryThis([].slice);


/***/ }),

/***/ 67750:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var isNullOrUndefined = __webpack_require__(64117);

var $TypeError = TypeError;

// `RequireObjectCoercible` abstract operation
// https://tc39.es/ecma262/#sec-requireobjectcoercible
module.exports = function (it) {
  if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
  return it;
};


/***/ }),

/***/ 67979:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var anObject = __webpack_require__(28551);

// `RegExp.prototype.flags` getter implementation
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
module.exports = function () {
  var that = anObject(this);
  var result = '';
  if (that.hasIndices) result += 'd';
  if (that.global) result += 'g';
  if (that.ignoreCase) result += 'i';
  if (that.multiline) result += 'm';
  if (that.dotAll) result += 's';
  if (that.unicode) result += 'u';
  if (that.unicodeSets) result += 'v';
  if (that.sticky) result += 'y';
  return result;
};


/***/ }),

/***/ 68183:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var uncurryThis = __webpack_require__(79504);
var toIntegerOrInfinity = __webpack_require__(91291);
var toString = __webpack_require__(655);
var requireObjectCoercible = __webpack_require__(67750);

var charAt = uncurryThis(''.charAt);
var charCodeAt = uncurryThis(''.charCodeAt);
var stringSlice = uncurryThis(''.slice);

var createMethod = function (CONVERT_TO_STRING) {
  return function ($this, pos) {
    var S = toString(requireObjectCoercible($this));
    var position = toIntegerOrInfinity(pos);
    var size = S.length;
    var first, second;
    if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
    first = charCodeAt(S, position);
    return first < 0xD800 || first > 0xDBFF || position + 1 === size
      || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
        ? CONVERT_TO_STRING
          ? charAt(S, position)
          : first
        : CONVERT_TO_STRING
          ? stringSlice(S, position, position + 2)
          : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
  };
};

module.exports = {
  // `String.prototype.codePointAt` method
  // https://tc39.es/ecma262/#sec-string.prototype.codepointat
  codeAt: createMethod(false),
  // `String.prototype.at` method
  // https://github.com/mathiasbynens/String.prototype.at
  charAt: createMethod(true)
};


/***/ }),

/***/ 68267:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAsCAYAAABovuiKAAAAAXNSR0IArs4c6QAAAclJREFUSEvNlttNw0AQRe/MrgURChgThUeAmEcBKSEdQAl0AB2QDkIHlEIJlm3xTQl8BoyURePIkY3Fx6yDxPxFcq5m75x5EDYUJDqfWe666v2NkBmdgHs9r+RaGXEYwgwO1GKl0CJNZwDFDNyAKORoHyaKVGKlUBWLJJ+ywQtZCxuP/YXqFQyur/yFiiSZOGMTWIvAJ6NFlt0R0R45zAD4e1QHknrbsKOR6lnycaP8dnQC2gRHWoPraTcy4n4fwhAFQbenlW+1FtIqWrE1kIskiY2xzw6Yik/ilyYaZLskCQtj38GM4PJCo7OqWj0qFLTGN4S+8tfHpVvOfFgqhYosf3GgGHCx/DbHR+CdHf3T1mQzwwwG4N2+SqRFttaXX4G043M1P5VYe9RGEUy07/e0IsueZdQKjKXZw6Hap0b5P9L0gYjnncne2KiVfmNj37xbRAQAxMYGc+fcRMaJORyqDG+vbFlFvmOkIlvKTmEIYlZl83dk+/DzK9nluj4/g1ROE6sjQnY+XAjGHERx5yNivbL/zagt0vzeEZ5oawv27FRj0Wr4S/c7UAjgtlP3148IH6PbR8TlhRfVLSGVKT8+3uyd3SWT6r/fRdq0N2b1Td4AAAAASUVORK5CYII=";

/***/ }),

/***/ 68374:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64, ";

/***/ }),

/***/ 68459:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


let communicate = __webpack_require__(79560);
var browsertype = __webpack_require__(14055);
var minibrowser = browsertype.getBrowser();
let globalObj = {};
let haslog;
let renderInfo = info => {
  if (!info) return;
  if (!G.site) return;
  if (haslog) return;
  if (info.type === 'user_extension_id') {
    haslog = true;
    __webpack_require__(35743)('browser_user:' + G.logsite + ':extType:' + getExtType());
  }
};
const getExtType = () => {
  let type = '';
  if (G.from_device === 'default') type = minibrowser.utype;else type = G.from_device;
  return type;
};
module.exports.init = () => {
  if (G.userid) {
    renderInfo({
      type: 'user_extension_id'
    });
    return;
  }
  communicate.trigger({
    type: 'user_extension_id'
  });
  communicate.on(info => {
    try {
      if (info && info.type === 'browser_setinfo') {
        if (info.value && info.value instanceof Object) {
          for (let p in info.value) {
            globalObj[p] = info.value[p];
          }
        }
      } else if (info.type) {
        globalObj[info.type] = info.value;
        renderInfo(info);
      }
    } catch (e) {}
  });
};
module.exports.getInfo = type => {
  return globalObj[type];
};

/***/ }),

/***/ 68463:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("label", {
    staticClass: "gwd-switch",
    class: {
      "gwd-allow-animation": _vm.allowAnimation
    }
  }, [_c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.inputVal,
      expression: "inputVal"
    }],
    attrs: {
      type: "checkbox"
    },
    domProps: {
      checked: Array.isArray(_vm.inputVal) ? _vm._i(_vm.inputVal, null) > -1 : _vm.inputVal
    },
    on: {
      change: function ($event) {
        var $$a = _vm.inputVal,
          $$el = $event.target,
          $$c = $$el.checked ? true : false;
        if (Array.isArray($$a)) {
          var $$v = null,
            $$i = _vm._i($$a, $$v);
          if ($$el.checked) {
            $$i < 0 && (_vm.inputVal = $$a.concat([$$v]));
          } else {
            $$i > -1 && (_vm.inputVal = $$a.slice(0, $$i).concat($$a.slice($$i + 1)));
          }
        } else {
          _vm.inputVal = $$c;
        }
      }
    }
  }), _vm._v(" "), _c("span", {
    staticClass: "gwd-slider"
  })]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 68686:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-promo-normal"
  }, [_c("div", {
    staticClass: "gwd-tp-1"
  }, [_c("span", {
    staticClass: "gwd-date"
  }, [_vm._v(_vm._s(_vm.date))]), _vm._v(" "), _c("span", {
    staticClass: "gwd-priceType"
  }, [_vm._v(_vm._s(_vm.type) + ": "), _c("span", {
    staticClass: "gwd-price"
  }, [_vm._v("¥" + _vm._s(parseFloat(_vm.price).toFixed(2)))])]), _vm._v(" "), _vm.badge ? _c("div", {
    staticStyle: {
      width: "35px",
      overflow: "hidden"
    }
  }, [_vm.badge ? _c("span", {
    class: "gwd-badge" + (_vm.badge === "最低" ? " gwd-lowest" : "")
  }, [_vm._v(_vm._s(_vm.badge))]) : _vm._e()]) : _vm._e()]), _vm._v(" "), _c("div", {
    staticStyle: {
      "margin-top": "4px",
      color: "#5c6266",
      "font-size": "10px",
      "line-height": "18px"
    }
  }, [_vm._t("default")], 2)]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 68906:
/***/ ((module) => {

"use strict";


let pidmid1 = [{
  "token": "f9d03911-a442-43bd-af1a-ed5683cc12fe",
  "pid": ["mm_426650165_525500037_108931700165", "mm_426650165_525500037_108930000270", "mm_426650165_525500037_108932000092", "mm_426650165_525500037_108930250277", "mm_426650165_525500037_108931900125", "mm_426650165_525500037_108931350207", "mm_426650165_525500037_108929850311", "mm_426650165_525500037_108930250279", "mm_426650165_525500037_108931800131", "mm_426650165_525500037_108931300207", "mm_426650165_525250037_108931150245", "mm_426650165_525250037_108930500276", "mm_426650165_525250037_108930750263", "mm_426650165_525250037_108932100083", "mm_426650165_525250037_108931950119", "mm_426650165_525250037_108930950262", "mm_426650165_525250037_108930350261", "mm_426650165_525250037_108930250283", "mm_426650165_525250037_108930200282", "mm_426650165_525250037_108931250201", "mm_426650165_523350136_108931850127", "mm_426650165_523350136_108930650280", "mm_426650165_523350136_108930350264", "mm_426650165_523350136_108930950268", "mm_426650165_523350136_108930100317", "mm_426650165_523350136_108931850128", "mm_426650165_523350136_108929950293", "mm_426650165_523350136_108930200286", "mm_426650165_523350136_108930650283", "mm_426650165_523350136_108930500281", "mm_426650165_525850029_108930200296", "mm_426650165_525850029_108931500221", "mm_426650165_525850029_108930800276", "mm_426650165_525850029_108930100327", "mm_426650165_525850029_108930950280", "mm_426650165_525850029_108929900309", "mm_426650165_525850029_108929750355", "mm_426650165_525850029_108930800277", "mm_426650165_525850029_108931050272", "mm_426650165_525850029_108931100254", "mm_426650165_524650046_108931050276", "mm_426650165_524650046_108931300221", "mm_426650165_524650046_108930150290", "mm_426650165_524650046_108931700195", "mm_426650165_524650046_108930750296", "mm_426650165_524650046_108931200274", "mm_426650165_524650046_108931250221", "mm_426650165_524650046_108930200304", "mm_426650165_524650046_108930700319", "mm_426650165_524650046_108931050278"]
}, {
  "token": "7a538f42-b7d5-40fc-ab9f-d57fd8c64b36",
  "pid": ["mm_426760139_523800144_108930850330", "mm_426760139_523800144_108930000320", "mm_426760139_523800144_108932100150", "mm_426760139_523800144_108930850334", "mm_426760139_523800144_108930650350", "mm_426760139_523800144_108929800387", "mm_426760139_523800144_108930650351", "mm_426760139_523800144_108932000150", "mm_426760139_523800144_108931450292", "mm_426760139_523800144_108930300340", "mm_426760139_525850033_108931450296", "mm_426760139_525850033_108931150315", "mm_426760139_525850033_108931150316", "mm_426760139_525850033_108931900190", "mm_426760139_525850033_108930950330", "mm_426760139_525850033_108931450297", "mm_426760139_525850033_108931650225", "mm_426760139_525850033_108930900342", "mm_426760139_525850033_108931000359", "mm_426760139_525850033_108930000332", "mm_426760139_524350044_108930950334", "mm_426760139_524350044_108929800394", "mm_426760139_524350044_108930100388", "mm_426760139_524350044_108931250285", "mm_426760139_524350044_108930550360", "mm_426760139_524350044_108930500350", "mm_426760139_524350044_108930350341", "mm_426760139_524350044_108931350291", "mm_426760139_524350044_108931900199", "mm_426760139_524350044_108931150325", "mm_426760139_526050036_108929950378", "mm_426760139_526050036_108931350297", "mm_426760139_526050036_108931950197", "mm_426760139_526050036_108930250377", "mm_426760139_526050036_108929900387", "mm_426760139_526050036_108929800400", "mm_426760139_526050036_108930200364", "mm_426760139_526050036_108931900204", "mm_426760139_526050036_108930150355", "mm_426760139_526050036_108930500355", "mm_426760139_524750051_108930450351", "mm_426760139_524750051_108931050335", "mm_426760139_524750051_108930350352", "mm_426760139_524750051_108929850398", "mm_426760139_524750051_108930750363", "mm_426760139_524750051_108931550267", "mm_426760139_524750051_108931550269", "mm_426760139_524750051_108931450321", "mm_426760139_524750051_108930450353", "mm_426760139_524750051_108931000377"]
}];
let pidTop1 = [{
  "token": "7fe96ce2-ebbf-40f6-907e-40134566f3f6",
  "pid": ["mm_133413248_524550053_108930250422", "mm_133413248_524550053_108930650424", "mm_133413248_524550053_108930450404", "mm_133413248_524550053_108930050434", "mm_133413248_524550053_108930550425", "mm_133413248_524550053_108931900263", "mm_133413248_524550053_108930050436", "mm_133413248_524550053_108929900448", "mm_133413248_524550053_108931850274", "mm_133413248_524550053_108931200388", "mm_133413248_525150043_108930900405", "mm_133413248_525150043_108930750414", "mm_133413248_525150043_108931400338", "mm_133413248_525150043_108930200432", "mm_133413248_525150043_108932100233", "mm_133413248_525150043_108929750461", "mm_133413248_525150043_108931500336", "mm_133413248_525150043_108930100453", "mm_133413248_525150043_108931850277", "mm_133413248_525150043_108929750465", "mm_133413248_525350045_108932100242", "mm_133413248_525350045_108930550432", "mm_133413248_525350045_108931100386", "mm_133413248_525350045_108930500412", "mm_133413248_525350045_108930400403", "mm_133413248_525350045_108930350414", "mm_133413248_525350045_108930400404", "mm_133413248_525350045_108930750421", "mm_133413248_525350045_108931650312", "mm_133413248_525350045_108931950258"]
}];
let pidBtm1 = [{
  "token": "7fe96ce2-ebbf-40f6-907e-40134566f3f6",
  "pid": ["mm_133413248_526050048_108929950446", "mm_133413248_526050048_108929900455", "mm_133413248_526050048_108930850407", "mm_133413248_526050048_108931200400", "mm_133413248_526050048_108930500415", "mm_133413248_526050048_108930700435", "mm_133413248_526050048_108931250349", "mm_133413248_526050048_108930100461", "mm_133413248_526050048_108931800304", "mm_133413248_526050048_108931450393", "mm_133413248_524950051_108931200402", "mm_133413248_524950051_108930350419", "mm_133413248_524950051_108931950262", "mm_133413248_524950051_108930150419", "mm_133413248_524950051_108931200403", "mm_133413248_524950051_108930250435", "mm_133413248_524950051_108929850463", "mm_133413248_524950051_108930900414", "mm_133413248_524950051_108930700436", "mm_133413248_524950051_108931500348", "mm_133413248_524950051_108929950449"]
}];
let pidmid2 = [{
  "token": "93a5dde6-d424-4f2c-9041-f1b38a3929f4",
  "pid": ["mm_132165438_523450142_108931900339", "mm_132165438_523450142_108931450464", "mm_132165438_523450142_108932500014", "mm_132165438_523450142_108932700006", "mm_132165438_523450142_108930950466", "mm_132165438_523450142_108932250042", "mm_132165438_523450142_108930900479", "mm_132165438_523450142_108931900341", "mm_132165438_523450142_108931950352", "mm_132165438_523450142_108931600361"]
}];
let pidBtm2 = [{
  "token": "93a5dde6-d424-4f2c-9041-f1b38a3929f4",
  "pid": ["mm_132165438_525550053_108932050318", "mm_132165438_525550053_108930900480", "mm_132165438_525550053_108931900343", "mm_132165438_525550053_108931350424", "mm_132165438_525550053_108932800003"]
}];
let pidmid3 = [{
  "token": "93a5dde6-d424-4f2c-9041-f1b38a3929f4",
  "pid": ["mm_132165438_525550053_108931750377", "mm_132165438_525550053_108932500018", "mm_132165438_525550053_108930400476", "mm_132165438_525550053_108930900484", "mm_132165438_525550053_108931200474"]
}];
let pidBtm3 = [{
  "token": "93a5dde6-d424-4f2c-9041-f1b38a3929f4",
  "pid": ["mm_132165438_525550053_108930500500", "mm_132165438_525550053_108932300028", "mm_132165438_525550053_108931950357", "mm_132165438_525550053_108930400480", "mm_132165438_525550053_108932850003"]
}];
let pidmid4 = [{
  "token": "93a5dde6-d424-4f2c-9041-f1b38a3929f4",
  "pid": ["mm_132165438_525200048_108930300464", "mm_132165438_525200048_108930450468", "mm_132165438_525200048_108931150438", "mm_132165438_525200048_108930400439", "mm_132165438_525200048_108931850324", "mm_132165438_525200048_108931650353", "mm_132165438_525200048_108931850325", "mm_132165438_525200048_108932150015", "mm_132165438_525200048_108930300466", "mm_132165438_525200048_108930850465"]
}];
let pidmid5 = [{
  "token": "93a5dde6-d424-4f2c-9041-f1b38a3929f4",
  "pid": ["mm_132165438_523350143_108930500465", "mm_132165438_523350143_108931350393", "mm_132165438_523350143_108932000281", "mm_132165438_523350143_108931350393", "mm_132165438_523350143_108930900458", "mm_132165438_523350143_108929900491", "mm_132165438_523350143_108930250479", "mm_132165438_523350143_108931600334", "mm_132165438_523350143_108930250481", "mm_132165438_523350143_108932150018", "mm_132165438_523350143_108931350397", "mm_132165438_523350143_108930550484"]
}];
let pidmid6 = [{
  "token": "93a5dde6-d424-4f2c-9041-f1b38a3929f4",
  "pid": ["mm_132165438_524800058_108931150444", "mm_132165438_524800058_108930000457", "mm_132165438_524800058_108931800348", "mm_132165438_524800058_108930400446", "mm_132165438_524800058_108930400448", "mm_132165438_524800058_108931900316", "mm_132165438_524800058_108931550374", "mm_132165438_524800058_108929900495", "mm_132165438_524800058_108931200451", "mm_132165438_524800058_108930250485"]
}];

// pid-1 gwd  pid-2 bjg   pid-3 bjg-923253  pid-4 kuaik pid-5 east  pid-6 universal
let pidPattern = {
  "pid-1": {
    "mini": pidmid1,
    "top": pidTop1,
    "bottom": pidBtm1
  },
  "pid-2": {
    "mini": pidmid2,
    "bottom": pidBtm2
  },
  "pid-3": {
    "mini": pidmid3,
    "bottom": pidBtm3
  },
  "pid-4": {
    "mini": pidmid4,
    "bottom": pidmid4
  },
  "pid-5": {
    "mini": pidmid5,
    "bottom": pidmid5
  },
  "pid-6": {
    "mini": pidmid6,
    "bottom": pidmid6
  },
  "pid-ChenHong": {
    "mini": [{
      "token": "198d49fd-cdf1-414b-9ed3-bfd52052b07f",
      "pid": ["mm_556360192_1116550153_109805450078"]
    }]
  },
  "pid-firefox": {
    "top": [{
      "token": "873b666f-a598-4860-95ef-1844a9450574",
      "pid": ["mm_556360192_1246500082_109939250379", "mm_556360192_1246500082_109940900274", "mm_556360192_1246500082_109948350097", "mm_556360192_1246500082_109945700200", "mm_556360192_1246500082_109941150299"]
    }],
    "mini": [{
      "token": "873b666f-a598-4860-95ef-1844a9450574",
      "pid": ["mm_556360192_1246500082_109941750278", "mm_556360192_1246500082_109946850177", "mm_556360192_1246500082_110011050405", "mm_556360192_1246500082_109940200335", "mm_556360192_1246500082_109941100285"]
    }]
  },
  "pid-bjg-923253": {
    "mini": [{
      "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895",
      "pid": ["mm_890050030_1305700395_110035950035", "mm_890050030_1305700395_110035100074", "mm_890050030_1305700395_110033050148", "mm_890050030_1305700395_110030550187", "mm_890050030_1305700395_110028400296"]
    }],
    "bottom": [{
      "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895",
      "pid": ["mm_890050030_1305700395_110026800374", "mm_890050030_1305700395_110026900375", "mm_890050030_1305700395_110030600222", "mm_890050030_1305700395_110030350240", "mm_890050030_1305700395_110031350190"]
    }],
    "search": [{
      "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895",
      "pid": ["mm_890050030_1305700395_110036400016", "mm_890050030_1305700395_110027400349", "mm_890050030_1305700395_110027150373", "mm_890050030_1305700395_110035800045", "mm_890050030_1305700395_110032600159"]
    }],
    "compare": [{
      "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895",
      "pid": ["mm_890050030_1305700395_110036350026", "mm_890050030_1305700395_110035250074", "mm_890050030_1305700395_110031550184", "mm_890050030_1305700395_110031550183", "mm_890050030_1305700395_110027850312"]
    }]
  },
  "pid-bjg-union": {
    "mini": [{
      "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895",
      "pid": ["mm_890050030_1305700395_110033000160", "mm_890050030_1305700395_110033100166", "mm_890050030_1305700395_110034350087", "mm_890050030_1305700395_110034500107", "mm_890050030_1305700395_110034650096"]
    }],
    "bottom": [{
      "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895",
      "pid": ["mm_890050030_1305700395_110034700080", "mm_890050030_1305700395_110031850193", "mm_890050030_1305700395_110030450207", "mm_890050030_1305700395_110029050242", "mm_890050030_1305700395_110028800257"]
    }],
    "search": [{
      "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895",
      "pid": ["mm_890050030_1305700395_110027500316", "mm_890050030_1305700395_110026700416", "mm_890050030_1305700395_110025850493", "mm_890050030_1305700395_110029450239", "mm_890050030_1305700395_110034600075"]
    }],
    "compare": [{
      "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895",
      "pid": ["mm_890050030_1305700395_110035750063", "mm_890050030_1305700395_110033250122", "mm_890050030_1305700395_110032550136", "mm_890050030_1305700395_110027200337", "mm_890050030_1305700395_110026000397"]
    }]
  },
  "pid-bjg-union-uos": {
    "mini": [{
      "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895",
      "pid": ["mm_890050030_1305700395_110033000160", "mm_890050030_1305700395_110033100166", "mm_890050030_1305700395_110034350087", "mm_890050030_1305700395_110034500107", "mm_890050030_1305700395_110034650096"]
    }],
    "bottom": [{
      "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895",
      "pid": ["mm_890050030_1305700395_110034700080", "mm_890050030_1305700395_110031850193", "mm_890050030_1305700395_110030450207", "mm_890050030_1305700395_110029050242", "mm_890050030_1305700395_110028800257"]
    }],
    "search": [{
      "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895",
      "pid": ["mm_890050030_1305700395_110027500316", "mm_890050030_1305700395_110026700416", "mm_890050030_1305700395_110025850493", "mm_890050030_1305700395_110029450239", "mm_890050030_1305700395_110034600075"]
    }],
    "compare": [{
      "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895",
      "pid": ["mm_890050030_1305700395_110035750063", "mm_890050030_1305700395_110033250122", "mm_890050030_1305700395_110032550136", "mm_890050030_1305700395_110027200337", "mm_890050030_1305700395_110026000397"]
    }]
  },
  "pid-kuaik": {
    "default": [{
      "token": "f18dd54e-ad55-4726-8e7c-5d662cb7f59a",
      "pid": ["mm_890410049_1303100468_110036350166", "mm_890410049_1303100468_110034400195", "mm_890410049_1303100468_110031800316", "mm_890410049_1303100468_110031000338", "mm_890410049_1303100468_110029600371"]
    }]
  },
  'pid-east': {
    mini: [{
      token: "f18dd54e-ad55-4726-8e7c-5d662cb7f59a",
      pid: ["mm_890410049_1303100468_110036150169", "mm_890410049_1303100468_110031250275", "mm_890410049_1303100468_110031150310", "mm_890410049_1303100468_110027200475", "mm_890410049_1303100468_110027200474"]
    }],
    compare: [{
      token: "f18dd54e-ad55-4726-8e7c-5d662cb7f59a",
      pid: ["mm_890410049_1303100468_110035500181", "mm_890410049_1303100468_110033450257", "mm_890410049_1303100468_110031850331", "mm_890410049_1303100468_110030300359", "mm_890410049_1303100468_110029800314"]
    }]
  },
  'pid-universal': {
    mini: [{
      token: "f18dd54e-ad55-4726-8e7c-5d662cb7f59a",
      pid: ["mm_890410049_1303100468_110035150208", "mm_890410049_1303100468_110033150297", "mm_890410049_1303100468_110030900315", "mm_890410049_1303100468_110030200333", "mm_890410049_1303100468_110029600368"]
    }],
    compare: [{
      token: "f18dd54e-ad55-4726-8e7c-5d662cb7f59a",
      pid: ["mm_890410049_1303100468_110033650243", "mm_890410049_1303100468_110033100283", "mm_890410049_1303100468_110032900269", "mm_890410049_1303100468_110032600287", "mm_890410049_1303100468_110028700393"]
    }]
  },
  'pid-cchrome': {
    mini: [{
      token: "f18dd54e-ad55-4726-8e7c-5d662cb7f59a",
      pid: ["mm_890410049_1303100468_110036700108", "mm_890410049_1303100468_110034500228", "mm_890410049_1303100468_110031400306", "mm_890410049_1303100468_110029350360", "mm_890410049_1303100468_110028500408"]
    }],
    search: [{
      token: "f18dd54e-ad55-4726-8e7c-5d662cb7f59a",
      pid: ["mm_890410049_1303100468_110035750202", "mm_890410049_1303100468_110034300231", "mm_890410049_1303100468_110032950285", "mm_890410049_1303100468_110031750311", "mm_890410049_1303100468_110027300479"]
    }]
  }
};
module.exports.init = (id, style) => {
  style = style || "mini";
  if (!id) return;
  let pidItemObj = pidPattern[id];
  let pidItem = pidItemObj[style];
  if (pidItem.length === 1) {
    pidItem = pidItem[0];
  } else {
    pidItem = pidItem[parseInt(Math.random() * 2)];
  }
  let pids = pidItem.pid;
  let size = pids.length;
  let pid1 = pids[parseInt(Math.random() * size)];
  let pitem = {
    token: pidItem.token,
    pid: pid1
  };
  return pitem;
};

/***/ }),

/***/ 68953:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _vm.text ? _c("div", {
    staticClass: "gwd-row gwd-tip",
    style: _vm.max ? "width: 670px" : ""
  }, [_vm._v("\n  " + _vm._s(_vm.text) + "\n  "), _c("span", {
    staticStyle: {
      flex: "1"
    }
  })]) : _vm._e();
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 69565:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var NATIVE_BIND = __webpack_require__(40616);

var call = Function.prototype.call;
// eslint-disable-next-line es/no-function-prototype-bind -- safe
module.exports = NATIVE_BIND ? call.bind(call) : function () {
  return call.apply(call, arguments);
};


/***/ }),

/***/ 69759:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "gwd-row gwd-align gwd-jcc minibar-tab",
    staticStyle: {
      display: "flex",
      flex: "1",
      cursor: "pointer"
    },
    attrs: {
      title: "点击查看结果"
    },
    on: {
      click: _vm.open
    }
  }, [_c("img", {
    staticStyle: {
      width: "24px",
      height: "24px"
    },
    attrs: {
      src: __webpack_require__(64149),
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "font-size": "13px",
      color: "#404547"
    }
  }, [_vm._v("图片找同款")])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 69779:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ PriceTip)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/PriceTip.vue?vue&type=template&id=500de42c&scoped=true
var PriceTipvue_type_template_id_500de42c_scoped_true = __webpack_require__(68953);
;// ./src/standard/module/trend/PriceTip.vue?vue&type=template&id=500de42c&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/PriceTip.vue?vue&type=script&lang=js
var PriceTipvue_type_script_lang_js = __webpack_require__(31378);
;// ./src/standard/module/trend/PriceTip.vue?vue&type=script&lang=js
 /* harmony default export */ const trend_PriceTipvue_type_script_lang_js = (PriceTipvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/PriceTip.vue?vue&type=style&index=0&id=500de42c&prod&scoped=true&lang=less
var PriceTipvue_type_style_index_0_id_500de42c_prod_scoped_true_lang_less = __webpack_require__(59235);
;// ./src/standard/module/trend/PriceTip.vue?vue&type=style&index=0&id=500de42c&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/trend/PriceTip.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  trend_PriceTipvue_type_script_lang_js,
  PriceTipvue_type_template_id_500de42c_scoped_true/* render */.XX,
  PriceTipvue_type_template_id_500de42c_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "500de42c",
  null
  
)

/* harmony default export */ const PriceTip = (component.exports);

/***/ }),

/***/ 69793:
/***/ ((module) => {

"use strict";


module.exports = function (txt) {
  var m = '';
  for (var i = 0; i < txt.length; i++) m = m + "_" + txt.charCodeAt(i).toString(8);
  return m;
};

// let decode = function(txt) {
//     var m = '';
//     var s = txt.split("_");
//     for (var i = 1; i < s.length; i++)
//       m += String.fromCharCode(parseInt(s[i], 8));
//     return m;
//   }

/***/ }),

/***/ 70081:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var call = __webpack_require__(69565);
var aCallable = __webpack_require__(79306);
var anObject = __webpack_require__(28551);
var tryToString = __webpack_require__(16823);
var getIteratorMethod = __webpack_require__(50851);

var $TypeError = TypeError;

module.exports = function (argument, usingIterator) {
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
  if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));
  throw new $TypeError(tryToString(argument) + ' is not iterable');
};


/***/ }),

/***/ 70176:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _vm.loaded ? _c("div", {
    staticClass: "gwd-column gwd-shaidan",
    class: {
      "gwd-has-top": _vm.hasTop
    }
  }, [_c("div", {
    staticClass: "gwd-header gwd-row gwd-align"
  }, [_c("img", {
    staticStyle: {
      width: "47px",
      height: "15px",
      "margin-left": "8px"
    },
    attrs: {
      src: _vm.s_server + "cdj@2x.png",
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticClass: "gwd-font-pfm",
    staticStyle: {
      "margin-left": "8px",
      color: "111",
      "font-size": "14px"
    }
  }, [_vm._v(_vm._s(_vm.loaded && _vm.list.length ? "大家" : "你") + "是多少钱入手的？")])]), _vm._v(" "), _vm.loaded && !_vm.list.length ? _c("div", {
    staticClass: "gwd-column gwd-align",
    staticStyle: {
      flex: "1",
      "justify-content": "center"
    }
  }, [_c("img", {
    staticStyle: {
      width: "119px",
      height: "98px"
    },
    attrs: {
      src: _vm.s_server + "empty@2x.png"
    }
  }), _vm._v(" "), _c("span", {
    staticClass: "gwd-font11",
    staticStyle: {
      "line-height": "14px",
      color: "#404547"
    }
  }, [_vm._v("分享你的成交价，大家一起查底价")])]) : _vm._e(), _vm._v(" "), _vm.loaded && _vm.list.length ? _c("div", {
    staticClass: "gwd-scrollbar gwd-column gwd-sd-list gwd-align",
    staticStyle: {
      flex: "1"
    }
  }, _vm._l(_vm.list, function (item, idx) {
    return _c("ShaiDanItem", {
      key: idx + "-sd",
      attrs: {
        item: item
      }
    });
  }), 1) : _vm._e(), _vm._v(" "), _c("div", {
    staticClass: "gwd-column gwd-align",
    style: {
      "margin-bottom": _vm.list.length ? "2px" : "15px"
    }
  }, [_c("img", {
    staticStyle: {
      height: "43px",
      cursor: "pointer"
    },
    attrs: {
      src: _vm.s_server + "bigButton@2x.png",
      alt: ""
    },
    on: {
      click: _vm.open
    }
  }), _vm._v(" "), _c("form", {
    staticStyle: {
      display: "none"
    },
    attrs: {
      action: _vm.sdUrl,
      method: "post",
      target: "_blank",
      "accept-charset": "utf-8"
    }
  }, [_c("input", {
    attrs: {
      type: "hidden",
      name: "price"
    },
    domProps: {
      value: _vm.price
    }
  }), _vm._v(" "), _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.shop,
      expression: "shop"
    }],
    attrs: {
      type: "hidden",
      name: "shop"
    },
    domProps: {
      value: _vm.shop
    },
    on: {
      input: function ($event) {
        if ($event.target.composing) return;
        _vm.shop = $event.target.value;
      }
    }
  }), _vm._v(" "), _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.title,
      expression: "title"
    }],
    attrs: {
      type: "hidden",
      name: "title"
    },
    domProps: {
      value: _vm.title
    },
    on: {
      input: function ($event) {
        if ($event.target.composing) return;
        _vm.title = $event.target.value;
      }
    }
  }), _vm._v(" "), _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.img,
      expression: "img"
    }],
    attrs: {
      type: "hidden",
      name: "img"
    },
    domProps: {
      value: _vm.img
    },
    on: {
      input: function ($event) {
        if ($event.target.composing) return;
        _vm.img = $event.target.value;
      }
    }
  }), _vm._v(" "), _vm.skuId ? _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.skuId,
      expression: "skuId"
    }],
    attrs: {
      type: "hidden",
      name: "sku_id"
    },
    domProps: {
      value: _vm.skuId
    },
    on: {
      input: function ($event) {
        if ($event.target.composing) return;
        _vm.skuId = $event.target.value;
      }
    }
  }) : _vm._e(), _vm._v(" "), _c("input", {
    attrs: {
      type: "hidden",
      name: "sku_str"
    },
    domProps: {
      value: _vm.skuStr
    }
  }), _vm._v(" "), _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.skuOptions,
      expression: "skuOptions"
    }],
    attrs: {
      type: "hidden",
      name: "sku_options"
    },
    domProps: {
      value: _vm.skuOptions
    },
    on: {
      input: function ($event) {
        if ($event.target.composing) return;
        _vm.skuOptions = $event.target.value;
      }
    }
  }), _vm._v(" "), _c("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: _vm.skuMap,
      expression: "skuMap"
    }],
    attrs: {
      type: "hidden",
      name: "sku_map"
    },
    domProps: {
      value: _vm.skuMap
    },
    on: {
      input: function ($event) {
        if ($event.target.composing) return;
        _vm.skuMap = $event.target.value;
      }
    }
  }), _vm._v(" "), _c("input", {
    attrs: {
      type: "submit",
      id: "gwd-sd-submit"
    }
  })])])]) : _vm._e();
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 70534:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ addStylesClient)
});

;// ./node_modules/vue-style-loader/lib/listToStyles.js
/**
 * Translates the list format produced by css-loader into something
 * easier to manipulate.
 */
function listToStyles (parentId, list) {
  var styles = []
  var newStyles = {}
  for (var i = 0; i < list.length; i++) {
    var item = list[i]
    var id = item[0]
    var css = item[1]
    var media = item[2]
    var sourceMap = item[3]
    var part = {
      id: parentId + ':' + i,
      css: css,
      media: media,
      sourceMap: sourceMap
    }
    if (!newStyles[id]) {
      styles.push(newStyles[id] = { id: id, parts: [part] })
    } else {
      newStyles[id].parts.push(part)
    }
  }
  return styles
}

;// ./node_modules/vue-style-loader/lib/addStylesClient.js
/*
  MIT License http://www.opensource.org/licenses/mit-license.php
  Author Tobias Koppers @sokra
  Modified by Evan You @yyx990803
*/



var hasDocument = typeof document !== 'undefined'

if (typeof DEBUG !== 'undefined' && DEBUG) {
  if (!hasDocument) {
    throw new Error(
    'vue-style-loader cannot be used in a non-browser environment. ' +
    "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
  ) }
}

/*
type StyleObject = {
  id: number;
  parts: Array<StyleObjectPart>
}

type StyleObjectPart = {
  css: string;
  media: string;
  sourceMap: ?string
}
*/

var stylesInDom = {/*
  [id: number]: {
    id: number,
    refs: number,
    parts: Array<(obj?: StyleObjectPart) => void>
  }
*/}

var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
var singletonElement = null
var singletonCounter = 0
var isProduction = false
var noop = function () {}
var options = null
var ssrIdKey = 'data-vue-ssr-id'

// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
// tags it will allow on a page
var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())

function addStylesClient (parentId, list, _isProduction, _options) {
  isProduction = _isProduction

  options = _options || {}

  var styles = listToStyles(parentId, list)
  addStylesToDom(styles)

  return function update (newList) {
    var mayRemove = []
    for (var i = 0; i < styles.length; i++) {
      var item = styles[i]
      var domStyle = stylesInDom[item.id]
      domStyle.refs--
      mayRemove.push(domStyle)
    }
    if (newList) {
      styles = listToStyles(parentId, newList)
      addStylesToDom(styles)
    } else {
      styles = []
    }
    for (var i = 0; i < mayRemove.length; i++) {
      var domStyle = mayRemove[i]
      if (domStyle.refs === 0) {
        for (var j = 0; j < domStyle.parts.length; j++) {
          domStyle.parts[j]()
        }
        delete stylesInDom[domStyle.id]
      }
    }
  }
}

function addStylesToDom (styles /* Array<StyleObject> */) {
  for (var i = 0; i < styles.length; i++) {
    var item = styles[i]
    var domStyle = stylesInDom[item.id]
    if (domStyle) {
      domStyle.refs++
      for (var j = 0; j < domStyle.parts.length; j++) {
        domStyle.parts[j](item.parts[j])
      }
      for (; j < item.parts.length; j++) {
        domStyle.parts.push(addStyle(item.parts[j]))
      }
      if (domStyle.parts.length > item.parts.length) {
        domStyle.parts.length = item.parts.length
      }
    } else {
      var parts = []
      for (var j = 0; j < item.parts.length; j++) {
        parts.push(addStyle(item.parts[j]))
      }
      stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
    }
  }
}

function createStyleElement () {
  var styleElement = document.createElement('style')
  styleElement.type = 'text/css'
  head.appendChild(styleElement)
  return styleElement
}

function addStyle (obj /* StyleObjectPart */) {
  var update, remove
  var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')

  if (styleElement) {
    if (isProduction) {
      // has SSR styles and in production mode.
      // simply do nothing.
      return noop
    } else {
      // has SSR styles but in dev mode.
      // for some reason Chrome can't handle source map in server-rendered
      // style tags - source maps in <style> only works if the style tag is
      // created and inserted dynamically. So we remove the server rendered
      // styles and inject new ones.
      styleElement.parentNode.removeChild(styleElement)
    }
  }

  if (isOldIE) {
    // use singleton mode for IE9.
    var styleIndex = singletonCounter++
    styleElement = singletonElement || (singletonElement = createStyleElement())
    update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
    remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
  } else {
    // use multi-style-tag mode in all other cases
    styleElement = createStyleElement()
    update = applyToTag.bind(null, styleElement)
    remove = function () {
      styleElement.parentNode.removeChild(styleElement)
    }
  }

  update(obj)

  return function updateStyle (newObj /* StyleObjectPart */) {
    if (newObj) {
      if (newObj.css === obj.css &&
          newObj.media === obj.media &&
          newObj.sourceMap === obj.sourceMap) {
        return
      }
      update(obj = newObj)
    } else {
      remove()
    }
  }
}

var replaceText = (function () {
  var textStore = []

  return function (index, replacement) {
    textStore[index] = replacement
    return textStore.filter(Boolean).join('\n')
  }
})()

function applyToSingletonTag (styleElement, index, remove, obj) {
  var css = remove ? '' : obj.css

  if (styleElement.styleSheet) {
    styleElement.styleSheet.cssText = replaceText(index, css)
  } else {
    var cssNode = document.createTextNode(css)
    var childNodes = styleElement.childNodes
    if (childNodes[index]) styleElement.removeChild(childNodes[index])
    if (childNodes.length) {
      styleElement.insertBefore(cssNode, childNodes[index])
    } else {
      styleElement.appendChild(cssNode)
    }
  }
}

function applyToTag (styleElement, obj) {
  var css = obj.css
  var media = obj.media
  var sourceMap = obj.sourceMap

  if (media) {
    styleElement.setAttribute('media', media)
  }
  if (options.ssrId) {
    styleElement.setAttribute(ssrIdKey, obj.id)
  }

  if (sourceMap) {
    // https://developer.chrome.com/devtools/docs/javascript-debugging
    // this makes source maps inside style tags work properly in Chrome
    css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
    // http://stackoverflow.com/a/26603875
    css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
  }

  if (styleElement.styleSheet) {
    styleElement.styleSheet.cssText = css
  } else {
    while (styleElement.firstChild) {
      styleElement.removeChild(styleElement.firstChild)
    }
    styleElement.appendChild(document.createTextNode(css))
  }
}


/***/ }),

/***/ 70629:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', lang = $data.lang, $escape = $imports.$escape, pri = $data.pri, tle = $data.tle, desc = $data.desc;
    $$out += '<div class="bjgou-component dsj-content bjg-minibar-visible-component" style="display: flex; clear: both;">\n  <em class="setting-bg"></em>\n  <span class="dsj-pri-info">\n    <span class="dsj-sp1">\n      ';
    if (lang == 'zh-tr') {
        $$out += '到手價';
    } else {
        $$out += '到手价';
    }
    $$out += ':\n    </span>\n    <span class="dsj-sp2">\xA5';
    $$out += $escape(pri);
    $$out += '</span>\n    ';
    if (tle) {
        $$out += '\n    <span class="dsj-sp3">(';
        $$out += $escape(tle);
        $$out += ')</span>\n    ';
    }
    $$out += '\n  </span>\n  <span class="dsj-promo-link" style="flex: 1">\n    ';
    $$out += desc;
    $$out += '\n    <div id="bjg-pp" style="position: absolute"></div>\n    <div id="bjg-pp-hoverhelper"></div>\n  </span>\n  <span class="dsj-remind-icon setting-bg"></span>\n  <div class="dsj-content-detail" style="font-size: 12px;">\n    ';
    if (lang == 'zh-tr') {
        $$out += '到手價指促銷活動完美湊單和使用優惠券後的理論到手價\uFF0C不代表您的實際支付價格\u3002';
    } else {
        $$out += '到手价指促销活动完美凑单和使用优惠券后的理论到手价\uFF0C不代表您的实际支付价格\u3002';
    }
    $$out += '</div>\n  <style type="text/css">\n    #bjg-pp-hoverhelper {\n      position: absolute;\n      top: 34px;\n      bottom: -6px;\n      left: 0;\n      right: 0;\n    }\n\n    .bjgou-component.dsj-content {\n      border: 1px solid transparent;\n      margin-top: 2px;\n    }\n\n    .bjgou-component.dsj-content:hover {\n      border: 1px solid #e6e9eb;\n      background: white;\n    }\n\n    .dsj-content>em {\n      float: left;\n      width:16px;\n      height:16px;\n      margin: 9px 10px 9px 12px;\n      background-position: -251px -111px;\n    }\n    .dsj-content {\n      width:460px;\n      height:34px;\n      position: relative;\n      line-height: 34px;\n      border: 1px solid #e6e9eb;\n      border-top: none;\n      background: transparent;\n    }\n    .dsj-pri-info {\n      margin-right: 10px;\n    }\n    .dsj-content * {\n      font-family: \'Microsoft YaHei\';\n    }\n    .dsj-pri-info span {\n      line-height: 34px;\n      height: 34px;\n    }\n    .dsj-sp1, .dsj-sp2 {\n      color: #E4393C;\n      font-size: 13px;\n      height: 17px;\n      width: auto;\n      font-weight: bold;\n    }\n    .dsj-sp2 {\n      margin-right: 10px;\n      margin-left: 3px;\n    }\n    .dsj-sp3, .dsj-promo-link {\n      font-size: 12px;\n      color: #7D7E80;\n    }\n    .dsj-promo-link {\n      width: 210px;\n      height: 34px;\n      line-height: 34px;\n      overflow: hidden;\n      text-decoration: none!important;\n      text-overflow: ellipsis;\n      white-space: nowrap;\n    }\n    .dsj-promo-link:hover {\n      cursor: text;\n    }\n    .dsj-content:hover .gwd-promo-plan {\n      display: block;\n    }\n    .dsj-promo-link.islink:hover {\n      cursor: pointer;\n      color: #f30213;\n    }\n    .dsj-content .dsj-remind-icon {\n      width:14px;\n      height:14px;\n      float: right;\n      margin-right: 12px;\n      margin-top: 10px;\n      background-position: -272px -112px;\n    }\n    .dsj-content .dsj-content-detail {\n      position: absolute;\n      height: 73px;\n      width: 132px;\n      line-height: 18px;\n      padding: 10px;\n      text-align: left;\n      color: #999;\n      top: 31px;\n      right: 3px;\n      background: rgba(254,255,247,1);\n      border: 1px solid #e5e5e5;\n      z-index: 9999999;\n      display: none;\n    }\n    .dsj-content .dsj-remind-icon:hover+.dsj-content-detail {\n      display: block;\n    }\n    .dsj-content .dsj-content-detail:before {\n      display: block;\n      content: "";\n      width: 0;\n      height: 0;\n      border-width: 0px 5px 5px;\n      border-style: solid;\n      border-color: transparent transparent #b4b4b4;\n      position: absolute;\n      top: -5px;\n      left: 142px;\n      margin-left: -10px;\n    }\n    .dsj-content .dsj-content-detail:after {\n      display: block;\n      content: "";\n      width: 0;\n      height: 0;\n      border-width: 0 5px 5px;\n      border-style: solid;\n      border-color: transparent transparent #fff;\n      position: absolute;\n      top: -4px;\n      left: 132px;\n    }\n  </style>\n  <style>\n    .bjgou-component .setting-bg {\n      background: url("https://cdn.bijiago.com/images/extensions/bijiago/bell@2x.png");\n      background-size: contain;\n    }\n\n    .bjgou-component .dsj-sp1, .bjgou-component .dsj-sp2 {\n      color: #ff6132;\n      font-size: 13px;\n      font-weight: bold;\n    }\n\n    .bjgou-component .dsj-sp3\uFF0C .bjgou-component .dsj-promo-link {\n      color: #8c847b;\n      font-size: 12px;\n    }\n\n    .bjgou-component .dsj-remind-icon {\n      background: url("https://cdn.bijiago.com/images/extensions/bijiago/quest@2x.png");\n      background-size: contain;\n      background-position: initial!important;\n    }\n  </style>\n  ';
    if (lang == 'en') {
        $$out += '\n  <style>\n      .dsj-content .dsj-content-detail {\n          height: 113px;\n      }\n  </style>\n  ';
    }
    $$out += '\n</div>';
    return $$out;
};

/***/ }),

/***/ 70972:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _default = exports.A = {
  props: ['domName', 's_url', 'f_url', 'showAd', 'jdadUrl', 'noCoupon', 'showJHS', 'fold'],
  methods: {
    openTab() {
      (__webpack_require__(30888).openTab)();
    },
    openLink(url) {
      window.open(url);
    }
  }
};

/***/ }),

/***/ 71072:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var internalObjectKeys = __webpack_require__(61828);
var enumBugKeys = __webpack_require__(88727);

// `Object.keys` method
// https://tc39.es/ecma262/#sec-object.keys
// eslint-disable-next-line es/no-object-keys -- safe
module.exports = Object.keys || function keys(O) {
  return internalObjectKeys(O, enumBugKeys);
};


/***/ }),

/***/ 71159:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(62953);
const md5 = __webpack_require__(83386);
const sendData = data => {
  let toSend = (__webpack_require__(95450).gZip)(data);
  toSend = String.fromCharCode.apply(null, toSend);
  window.gwd_ext.post(`${gwd_G.server}/extension?ac=sendSkuInfo&from=externalJS`, btoa(toSend));
};
const getMdskip = () => {
  return new Promise(resolve => {
    window.TShop && window.TShop.onProduct(e => resolve(e.get('mdskip')));
  });
};
const getValItemInfo = () => {
  return new Promise(resolve => {
    setTimeout(() => {
      window.TShop && window.TShop.onProduct(e => resolve(e.get('config').valItemInfo));
    }, 2000);
  });
};
function extract_tmall_sku_map() {
  let attrs_list = [];
  let props = document.querySelectorAll(".tb-sku > .tm-sale-prop");
  for (let i of props) {
    let levelName = i.querySelector("dt").textContent;
    let level = {
      "name": levelName,
      "attrs": []
    };
    let attrs = i.querySelectorAll("ul > li");
    for (let attr of attrs) {
      let value = attr.getAttribute("data-value");
      let name = attr.querySelector("a > span").textContent;
      level.attrs.push({
        name: name,
        value: value
      });
    }
    attrs_list.push(level);
  }
  return attrs_list;
}
function extract_taobao_sku_map() {
  let attrs_list = [];
  let props = document.querySelectorAll(".tb-skin > .J_Prop");
  for (let i of props) {
    let levelName = i.querySelector("dt").textContent;
    let level = {
      "name": levelName,
      "attrs": []
    };
    let attrs = i.querySelectorAll("ul > li");
    for (let attr of attrs) {
      let value = attr.getAttribute("data-value");
      let name = attr.querySelector("a > span").textContent;
      level.attrs.push({
        name: name,
        value: value
      });
    }
    attrs_list.push(level);
  }
  return attrs_list;
}
async function ajaxGetRequest(u) {
  return new Promise((resolve, reject) => {
    let xhr = new XMLHttpRequest();
    xhr.onreadystatechange = function () {
      if (xhr.readyState == 4) {
        if (xhr.status == 200) {
          resolve(xhr.responseText);
          // console.log(xhr.responseText)
        } else {
          reject(xhr.status);
        }
      }
    };
    xhr.open("GET", u, true);
    xhr.withCredentials = true;
    xhr.send();
  });
}
async function tmallH5Detail(pid) {
  if (!pid) {
    return;
  }
  if (window.gwdDetailStorage && window.gwdDetailStorage[pid]) {
    return window.gwdDetailStorage[pid];
  }
  let spm = "";
  if (document.URL.match(/&spm=(.*?)(?:&|$)/)) {
    spm = document.URL.match(/&spm=(.*?)(?:&|$)/)[1];
  }
  let longText = `{"abbucket":"1","id":"${pid}","ns":"1","spm":"${spm}","sku_properties":"","detail_v":"3.5.0","appReqFrom":"detail","container_type":"xdetail","dinamic_v3":"true","supportV7":"true","ultron2":"true","itemNumId":"${pid}","pageCode":"miniAppDetail","_from_":"miniapp","openFrom":"pagedetail","pageSource":"1"}`;
  let r = {
    "id": pid,
    "detail_v": "3.5.0",
    "exParams": longText
  };
  let token = document.cookie.match(/_m_h5_tk=([^;]+)/)[1].split("_")[0];
  let jsonpTs = new Date().getTime();
  let jsonString = JSON.stringify(r);
  let appKey = "12574478";
  let text = `${token}&${jsonpTs}&${appKey}&${jsonString}`;
  let sign = md5(text);
  let jsv = "2.7.0";
  let t = jsonpTs;
  let api = "mtop.taobao.detail.data.get";
  let v = "1.0";
  let type = "jsonp";
  let dataType = "jsonp";
  let callback = "mtopjsonp1";
  let u = `https://h5api.m.tmall.com/h5/mtop.taobao.detail.data.get/1.0/?jsv=${jsv}&appKey=${appKey}&t=${t}&sign=${sign}&api=${api}&v=${v}&ttid=201200%40taobao_h5_10.2.10&isSec=0&ecode=0&AntiFlood=true&AntiCreep=true&H5Request=true&type=${type}&dataType=${dataType}&safariGoLogin=true&mainDomain=tmall.com&subDomain=m&prefix=h5api&getJSONP=true&token=${token}&callback=${callback}&data=${encodeURIComponent(jsonString)}`;
  let resText = await ajaxGetRequest(u);
  let json = resText.match(/mtopjsonp1\((.*)\)$/)[1];
  try {
    let data = JSON.parse(json).data;
    let result = JSON.parse(data.apiStack[0]["value"])["global"]["data"];
    result.seller = data.seller;
    result.pcdetail = false;
    window.gwdDetailStorage = window.gwdDetailStorage || {};
    window.gwdDetailStorage[pid] = result;
    return result;
  } catch (e) {
    return {};
  }
}

//仅限请求当前网址的pid
async function tmallDetail(pid, host = "tmall") {
  if (!pid) {
    return;
  }
  if (pid.toString() === (__webpack_require__(60340).getParameterByName)('id')) {
    return await (__webpack_require__(94968).getLocalSku)();
  }
  if (window.gwdDetailStorage && window.gwdDetailStorage[pid]) {
    return window.gwdDetailStorage[pid];
  }
  let spm = "";
  if (document.URL.match(/&spm=(.*?)(?:&|$)/)) {
    spm = document.URL.match(/&spm=(.*?)(?:&|$)/)[1];
  }
  let priceTId = "";
  if (document.URL.match(/&priceTId=(.*?)(?:&|$)/)) {
    priceTId = document.URL.match(/&priceTId=(.*?)(?:&|$)/)[1];
  }
  let queryParams = "";
  if (document.URL.match(/\?(.*?)(?:#|$)/)) {
    queryParams = document.URL.match(/\?(.*?)(?:#|$)/)[1];
  }
  let longText = `"{"abbucket":"3","id":"${pid}","ns":"1","priceTId":"${priceTId}","spm":"${spm}","queryParams":"${queryParams}","domain":"https://detail.tmall.com","path_name":"/item.htm"}`;
  let r = {
    "id": pid,
    "detail_v": "3.3.2",
    "exParams": longText
  };
  let token = document.cookie.match(/_m_h5_tk=([^;]+)/)[1].split("_")[0];
  let jsonpTs = new Date().getTime();
  let jsonString = JSON.stringify(r);
  let appKey = "12574478";
  let text = `${token}&${jsonpTs}&${appKey}&${jsonString}`;
  let sign = md5(text);
  let jsv = "2.6.1";
  let t = jsonpTs;
  let u = `https://h5api.m.${host}.${location.host.includes('hk') ? 'hk' : 'com'}/h5/mtop.taobao.pcdetail.data.get/1.0/?jsv=${jsv}&appKey=${appKey}&t=${t}&sign=${sign}&api=mtop.taobao.pcdetail.data.get&v=1.0&isSec=0&ecode=0&timeout=10000&ttid=2022%40taobao_litepc_9.17.0&AntiFlood=true&AntiCreep=true&preventFallback=true&type=jsonp&dataType=jsonp&callback=mtopjsonp1&data=${encodeURIComponent(jsonString)}`;
  let resText = await ajaxGetRequest(u);
  let json = resText.match(/mtopjsonp1\((.*)\)$/)[1];
  try {
    let result = JSON.parse(json).data;
    result.pcdetail = true;
    window.gwdDetailStorage = window.gwdDetailStorage || {};
    window.gwdDetailStorage[pid] = result;
    return result;
  } catch (e) {
    return {};
  }
}
async function taobaoH5Detail(pid) {
  if (!pid) {
    return;
  }
  if (window.gwdDetailStorage && window.gwdDetailStorage[pid]) {
    return window.gwdDetailStorage[pid];
  }
  let longText = `{"id":"${pid}","ali_refid":"","ali_trackid":"","spm":"","detail_v":"3.5.0","appReqFrom":"detail","container_type":"xdetail","dinamic_v3":"true","supportV7":"true","ultron2":"true","itemNumId":"${pid}","pageCode":"miniAppDetail","_from_":"miniapp","openFrom":"pagedetail","pageSource":"1"}`;
  let r = {
    "id": pid,
    "detail_v": "3.5.0",
    "exParams": longText
  };
  let token = document.cookie.match(/_m_h5_tk=([^;]+)/)[1].split("_")[0];
  let jsonpTs = new Date().getTime();
  let jsonString = JSON.stringify(r);
  let appKey = "12574478";
  let text = `${token}&${jsonpTs}&${appKey}&${jsonString}`;
  let sign = md5(text);
  let t = jsonpTs;
  let u = `https://h5api.m.taobao.com/h5/mtop.taobao.detail.data.get/1.0/?jsv=2.7.0&appKey=12574478&t=${t}&sign=${sign}&api=mtop.taobao.detail.data.get&v=1.0&ttid=201200%40taobao_h5_10.2.10&isSec=0&ecode=0&AntiFlood=true&AntiCreep=true&H5Request=true&type=jsonp&dataType=jsonp&safariGoLogin=true&mainDomain=taobao.com&subDomain=m&prefix=h5api&getJSONP=true&token=${token}&callback=mtopjsonp1&data=${encodeURIComponent(jsonString)}`;
  let resText = await ajaxGetRequest(u);
  let json = resText.match(/mtopjsonp1\((.*)\)$/)[1];
  try {
    const result = JSON.parse(JSON.parse(json).data.apiStack[0]["value"])["global"]["data"];
    window.gwdDetailStorage = window.gwdDetailStorage || {};
    window.gwdDetailStorage[pid] = result;
    return result;
  } catch (e) {
    return {};
  }
}
async function deleteFootprint(pid, timestamp, days = null) {
  // console.log('deleteing', pid, timestamp)
  const api = 'mtop.taobao.cmin.deletepath';
  const v = '1.0';
  const type = 'jsonp';
  const appKey = '12574478';
  const token = document.cookie.match(/_m_h5_tk=([^;]+)/)[1].split("_")[0];
  const jsonpTs = new Date().getTime();
  const jsonString = days ? JSON.stringify({
    ids: ``,
    days: days
  }) : JSON.stringify({
    ids: `${timestamp}_${pid}`,
    days: ''
  });
  const text = `${token}&${jsonpTs}&${appKey}&${jsonString}`;
  const sign = md5(text);
  let host = 'taobao';
  if (location.host.includes('tmall')) {
    host = 'tmall';
  }
  const url = `https://h5api.m.${host}.com/h5/${api}/${v}/?jsv=2.7.0&appKey=${appKey}&t=${jsonpTs}&sign=${sign}&api=${api}&v=${v}&preventFallback=true&type=${type}&dataType=jsonp&callback=mtopjsonp1&data=${encodeURIComponent(jsonString)}`;
  // console.log('delete request', url)
  const res = await ajaxGetRequest(url);
  if (res.includes('SUCCESS')) {
    (__webpack_require__(91223).remove)(`${timestamp}_${pid}`);
    return 'SUCCESS';
  } else {
    (__webpack_require__(91223).add)(`${timestamp}_${pid}`);
    if (res.includes('过期')) {
      return 'EXPIRED';
    }
    return 'FAIL';
  }
}
async function couponInfo(id, promotionFloatingData) {
  if (!promotionFloatingData || !id) {
    return;
  }
  if (location.hostname.includes('.tmall.com')) return;
  if (localStorage.getItem('gwd-coupon-info-last-error-time')) {
    let lastErrorTime = localStorage.getItem('gwd-coupon-info-last-error-time');
    if (new Date().getTime() - lastErrorTime < 1000 * 60 * 60 * 24 * 10) {
      return;
    }
  }
  if (window.gwdCouponInfo && window.gwdCouponInfo[id]) {
    return window.gwdCouponInfo[id];
  }
  let token = document.cookie.match(/_m_h5_tk=([^;]+)/)[1].split("_")[0];
  let jsonpTs = new Date().getTime();
  let appKey = "12574478";
  let jsonString = JSON.stringify({
    itemId: id,
    promotionFloatingData: JSON.stringify(promotionFloatingData)
  });
  let text = `${token}&${jsonpTs}&${appKey}&${jsonString}`;
  let sign = md5(text);
  let t = jsonpTs;
  let u = `https://h5api.m.taobao.com/h5/mtop.tmall.detail.couponpage.newcouponpage/1.0/?jsv=2.7.0&appKey=12574478&t=${t}&sign=${sign}&api=mtop.tmall.detail.couponpage.newcouponpage&v=1.0&ttid=201200%40taobao_h5_10.2.10&isSec=0&ecode=0&AntiFlood=true&AntiCreep=true&H5Request=true&type=jsonp&dataType=jsonp&safariGoLogin=true&mainDomain=taobao.com&subDomain=m&prefix=h5api&getJSONP=true&token=${token}&callback=mtopjsonp1&data=${encodeURIComponent(jsonString)}`;
  try {
    let resText = await ajaxGetRequest(u);
    let json = resText.match(/mtopjsonp1\((.*)\)$/)[1];
    const result = JSON.parse(json).data.couponFloatLayer2VO;
    window.gwdCouponInfo = window.gwdCouponInfo || {};
    window.gwdCouponInfo[id] = result;
    if (!result) {
      localStorage.setItem('gwd-coupon-info-last-error-time', Date.now());
    }
    return result;
  } catch (e) {
    localStorage.setItem('gwd-coupon-info-last-error-time', Date.now());
    return {};
  }
}
function isUserLogin() {
  if (document.querySelector("#login-info1") && document.querySelector("#login-info1").textContent.includes("请登录")) {
    return false;
  }
  if (document.querySelector("#J_SiteNavLogin") && document.querySelector("#J_SiteNavLogin").textContent.includes("请登录")) {
    return false;
  }
  return true;
}
function mountResult(id, result) {
  if (!window.gwd_G.aliSkuResults) {
    window.gwd_G.aliSkuResults = {};
  }
  window.gwd_G.aliSkuResults[id] = result;
}
const init = async () => {
  if (window.gwd_G.mtopRequested) {
    return;
  }
  let id;
  if (gwd_G.site === 'taobao') {
    id = document.URL.match(/(?:\?|&)id=(\d+)/)[1];
  } else {
    id = (__webpack_require__(60340).getParameterByName)('id');
  }
  window.gwd_G.mtopRequested = true;
  let s;
  if (gwd_G.site === "taobao") {
    s = await tmallDetail(id, "taobao");
  } else if (gwd_G.site === "tmall") {
    s = await tmallDetail(id, "tmall");
  } else {
    return;
  }
  let r = {
    skuBase: s.skuBase,
    skuCore: s.skuCore,
    item: s.item,
    props: s.props,
    rate: s.rate,
    componentsVO: s.componentsVO,
    seller: s.seller,
    priceSectionData: s.priceSectionData,
    version: "h5",
    pcdetail: s.pcdetail
  };
  window.gwd_G.aliSkuInfo = r;
  let data = {
    url: location.href,
    fp: localStorage.getItem('gwdang-fp'),
    dfp: localStorage.getItem('gwdang-dfp'),
    data: r,
    userLogin: isUserLogin()
  };
  sendData(data);
  const couponInfoData = await couponInfo(id, s.promotionFloatingData);
  if (couponInfoData && couponInfoData.commonPromotions) {
    mountResult(id, {
      couponInfo: {
        limit: couponInfoData.commonPromotions[0].titles[0].match(/满(\d+)使用/)[1],
        discount: couponInfoData.commonPromotions[0].priceText
      }
    });
  } else {
    mountResult(id, 'no-coupon');
  }
};
module.exports = {
  init: init,
  getValItemInfo: getValItemInfo,
  tmallDetail: tmallDetail,
  taobaoDetail: taobaoH5Detail,
  deleteFootprint: deleteFootprint,
  couponInfo: couponInfo
};

/***/ }),

/***/ 71196:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, ext_class = $data.ext_class, status_tle = $data.status_tle, status_str = $data.status_str, btnleft = $data.btnleft, imgurl = $data.imgurl;
    $$out += '<div id="steam_tremd_btn" class="';
    $$out += $escape(ext_class);
    $$out += '">\n  <span>';
    $$out += $escape(status_tle);
    $$out += '</span>\n  <em class="';
    $$out += $escape(status_str);
    $$out += '"></em>\n  <style type="text/css">\n    #steam_tremd_btn{\n      background-image: linear-gradient(-180deg, #2488B9 0%, #12425A 100%);\n      border: 2px solid #000000;\n      width: 104px;\n      float: left;\n      position: relative;\n      cursor: default;\n      color:  #BCE6FF;\n      margin-left: ';
    $$out += $escape(btnleft);
    $$out += 'px;\n      height: 32px;\n    }\n    #steam_tremd_btn.bjgou {\n        background-image: linear-gradient(180deg, #C2A27D 0%, #755A33 100%);\n        color: #f1d6aa;\n    }\n    #steam_tremd_btn._mshover {\n      background-image: linear-gradient(-180deg, #66C0F4 0%, #2F89BC 100%);\n    }\n    #steam_tremd_btn.bjgou._mshover {\n        background-image: linear-gradient(180deg, #E0B27D 0%, #AE813F 100%);\n    }\n    #steam_tremd_btn._mshover span {\n      color: #fff;\n    }\n    #steam_tremd_btn >* {\n      float: left;\n    }\n    #steam_tremd_btn span {\n      font-size: 15px;\n      margin-left: 12px;\n      line-height: 32px;\n      color: #BCE6FF\n      font-family: "microsoft yahei";\n    }\n    #steam_tremd_btn em {\n      width: 18px;\n      height: 20px;\n      margin-top: 7px;\n      margin-left: 4px;\n    }\n    #steam_tremd_btn em.pri-t1 {\n      background: url(\'';
    $$out += $escape(imgurl);
    $$out += '/rise.png\') 0px 0px no-repeat;\n    }\n    #steam_tremd_btn em.pri-t0 {\n      background: url(\'';
    $$out += $escape(imgurl);
    $$out += '/stable.png\') 0px 0px no-repeat;\n      margin-top: 10px;\n    }\n    #steam_tremd_btn em.pri-t-1 {\n      background: url(\'';
    $$out += $escape(imgurl);
    $$out += '/fall.png\') 0px 0px no-repeat;\n    }\n    #steam_tremd_btn em.pri-t-2{\n      background: url(\'';
    $$out += $escape(imgurl);
    $$out += '/minimum.png\') 0px 0px no-repeat;\n    }\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 71239:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
module.exports = __webpack_require__.p + "images/extensions/build/807816ce492cffb93b32.png";

/***/ }),

/***/ 71363:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


module.exports.init = function (obj) {
  let unionUrl = G.u_server;
  let ukey = 'u.' + G.u_key + '.com';
  if (obj.url.includes('.amazon.')) {
    unionUrl = 'https://u.smartlinkclick.com';
  }
  if (typeof obj != 'object') return;
  if (obj.url.indexOf(ukey) > -1) return obj.url;
  var ext = "";
  if (obj.ext) ext = "-" + obj.ext;
  if (obj.is_mobile) {
    if (obj.isbrowser) return obj.url;else return unionUrl + '/union/go/?site_id=' + obj.site_id + '&target_url=' + encodeURIComponent(obj.url) + '&union=' + obj.union + '&column=' + obj.mod + '-' + obj.dp_id + ext;
  } else {
    return unionUrl + '/union/go/?site_id=' + obj.site_id + '&target_url=' + encodeURIComponent(obj.url) + '&union=' + obj.union + '&column=' + obj.mod + '-' + obj.dp_id + ext;
  }
};

/***/ }),

/***/ 71401:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "a[data-v-6f5d34be] {\n  background: url(" + __webpack_require__(3316) + ");\n  width: 256px;\n  height: 30px;\n}\na span[data-v-6f5d34be] {\n  text-align: center;\n}\na .gwd-content[data-v-6f5d34be] {\n  color: white;\n  font-size: 12px;\n}\na .gwd-take[data-v-6f5d34be] {\n  display: inline-block;\n  font-size: 12px;\n  color: white;\n  width: 70px;\n}\na[data-v-6f5d34be]:hover {\n  text-decoration: none!important;\n}\n", ""]);

// exports


/***/ }),

/***/ 71447:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it
// freely, subject to the following restrictions:
//
// 1. The origin of this software must not be misrepresented; you must not
//   claim that you wrote the original software. If you use this software
//   in a product, an acknowledgment in the product documentation would be
//   appreciated but is not required.
// 2. Altered source versions must be plainly marked as such, and must not be
//   misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.

var utils         = __webpack_require__(9805);
var adler32       = __webpack_require__(53269);
var crc32         = __webpack_require__(14823);
var inflate_fast  = __webpack_require__(47293);
var inflate_table = __webpack_require__(21998);

var CODES = 0;
var LENS = 1;
var DISTS = 2;

/* Public constants ==========================================================*/
/* ===========================================================================*/


/* Allowed flush values; see deflate() and inflate() below for details */
//var Z_NO_FLUSH      = 0;
//var Z_PARTIAL_FLUSH = 1;
//var Z_SYNC_FLUSH    = 2;
//var Z_FULL_FLUSH    = 3;
var Z_FINISH        = 4;
var Z_BLOCK         = 5;
var Z_TREES         = 6;


/* Return codes for the compression/decompression functions. Negative values
 * are errors, positive values are used for special but normal events.
 */
var Z_OK            = 0;
var Z_STREAM_END    = 1;
var Z_NEED_DICT     = 2;
//var Z_ERRNO         = -1;
var Z_STREAM_ERROR  = -2;
var Z_DATA_ERROR    = -3;
var Z_MEM_ERROR     = -4;
var Z_BUF_ERROR     = -5;
//var Z_VERSION_ERROR = -6;

/* The deflate compression method */
var Z_DEFLATED  = 8;


/* STATES ====================================================================*/
/* ===========================================================================*/


var    HEAD = 1;       /* i: waiting for magic header */
var    FLAGS = 2;      /* i: waiting for method and flags (gzip) */
var    TIME = 3;       /* i: waiting for modification time (gzip) */
var    OS = 4;         /* i: waiting for extra flags and operating system (gzip) */
var    EXLEN = 5;      /* i: waiting for extra length (gzip) */
var    EXTRA = 6;      /* i: waiting for extra bytes (gzip) */
var    NAME = 7;       /* i: waiting for end of file name (gzip) */
var    COMMENT = 8;    /* i: waiting for end of comment (gzip) */
var    HCRC = 9;       /* i: waiting for header crc (gzip) */
var    DICTID = 10;    /* i: waiting for dictionary check value */
var    DICT = 11;      /* waiting for inflateSetDictionary() call */
var        TYPE = 12;      /* i: waiting for type bits, including last-flag bit */
var        TYPEDO = 13;    /* i: same, but skip check to exit inflate on new block */
var        STORED = 14;    /* i: waiting for stored size (length and complement) */
var        COPY_ = 15;     /* i/o: same as COPY below, but only first time in */
var        COPY = 16;      /* i/o: waiting for input or output to copy stored block */
var        TABLE = 17;     /* i: waiting for dynamic block table lengths */
var        LENLENS = 18;   /* i: waiting for code length code lengths */
var        CODELENS = 19;  /* i: waiting for length/lit and distance code lengths */
var            LEN_ = 20;      /* i: same as LEN below, but only first time in */
var            LEN = 21;       /* i: waiting for length/lit/eob code */
var            LENEXT = 22;    /* i: waiting for length extra bits */
var            DIST = 23;      /* i: waiting for distance code */
var            DISTEXT = 24;   /* i: waiting for distance extra bits */
var            MATCH = 25;     /* o: waiting for output space to copy string */
var            LIT = 26;       /* o: waiting for output space to write literal */
var    CHECK = 27;     /* i: waiting for 32-bit check value */
var    LENGTH = 28;    /* i: waiting for 32-bit length (gzip) */
var    DONE = 29;      /* finished check, done -- remain here until reset */
var    BAD = 30;       /* got a data error -- remain here until reset */
var    MEM = 31;       /* got an inflate() memory error -- remain here until reset */
var    SYNC = 32;      /* looking for synchronization bytes to restart inflate() */

/* ===========================================================================*/



var ENOUGH_LENS = 852;
var ENOUGH_DISTS = 592;
//var ENOUGH =  (ENOUGH_LENS+ENOUGH_DISTS);

var MAX_WBITS = 15;
/* 32K LZ77 window */
var DEF_WBITS = MAX_WBITS;


function zswap32(q) {
  return  (((q >>> 24) & 0xff) +
          ((q >>> 8) & 0xff00) +
          ((q & 0xff00) << 8) +
          ((q & 0xff) << 24));
}


function InflateState() {
  this.mode = 0;             /* current inflate mode */
  this.last = false;          /* true if processing last block */
  this.wrap = 0;              /* bit 0 true for zlib, bit 1 true for gzip */
  this.havedict = false;      /* true if dictionary provided */
  this.flags = 0;             /* gzip header method and flags (0 if zlib) */
  this.dmax = 0;              /* zlib header max distance (INFLATE_STRICT) */
  this.check = 0;             /* protected copy of check value */
  this.total = 0;             /* protected copy of output count */
  // TODO: may be {}
  this.head = null;           /* where to save gzip header information */

  /* sliding window */
  this.wbits = 0;             /* log base 2 of requested window size */
  this.wsize = 0;             /* window size or zero if not using window */
  this.whave = 0;             /* valid bytes in the window */
  this.wnext = 0;             /* window write index */
  this.window = null;         /* allocated sliding window, if needed */

  /* bit accumulator */
  this.hold = 0;              /* input bit accumulator */
  this.bits = 0;              /* number of bits in "in" */

  /* for string and stored block copying */
  this.length = 0;            /* literal or length of data to copy */
  this.offset = 0;            /* distance back to copy string from */

  /* for table and code decoding */
  this.extra = 0;             /* extra bits needed */

  /* fixed and dynamic code tables */
  this.lencode = null;          /* starting table for length/literal codes */
  this.distcode = null;         /* starting table for distance codes */
  this.lenbits = 0;           /* index bits for lencode */
  this.distbits = 0;          /* index bits for distcode */

  /* dynamic table building */
  this.ncode = 0;             /* number of code length code lengths */
  this.nlen = 0;              /* number of length code lengths */
  this.ndist = 0;             /* number of distance code lengths */
  this.have = 0;              /* number of code lengths in lens[] */
  this.next = null;              /* next available space in codes[] */

  this.lens = new utils.Buf16(320); /* temporary storage for code lengths */
  this.work = new utils.Buf16(288); /* work area for code table building */

  /*
   because we don't have pointers in js, we use lencode and distcode directly
   as buffers so we don't need codes
  */
  //this.codes = new utils.Buf32(ENOUGH);       /* space for code tables */
  this.lendyn = null;              /* dynamic table for length/literal codes (JS specific) */
  this.distdyn = null;             /* dynamic table for distance codes (JS specific) */
  this.sane = 0;                   /* if false, allow invalid distance too far */
  this.back = 0;                   /* bits back of last unprocessed length/lit */
  this.was = 0;                    /* initial length of match */
}

function inflateResetKeep(strm) {
  var state;

  if (!strm || !strm.state) { return Z_STREAM_ERROR; }
  state = strm.state;
  strm.total_in = strm.total_out = state.total = 0;
  strm.msg = ''; /*Z_NULL*/
  if (state.wrap) {       /* to support ill-conceived Java test suite */
    strm.adler = state.wrap & 1;
  }
  state.mode = HEAD;
  state.last = 0;
  state.havedict = 0;
  state.dmax = 32768;
  state.head = null/*Z_NULL*/;
  state.hold = 0;
  state.bits = 0;
  //state.lencode = state.distcode = state.next = state.codes;
  state.lencode = state.lendyn = new utils.Buf32(ENOUGH_LENS);
  state.distcode = state.distdyn = new utils.Buf32(ENOUGH_DISTS);

  state.sane = 1;
  state.back = -1;
  //Tracev((stderr, "inflate: reset\n"));
  return Z_OK;
}

function inflateReset(strm) {
  var state;

  if (!strm || !strm.state) { return Z_STREAM_ERROR; }
  state = strm.state;
  state.wsize = 0;
  state.whave = 0;
  state.wnext = 0;
  return inflateResetKeep(strm);

}

function inflateReset2(strm, windowBits) {
  var wrap;
  var state;

  /* get the state */
  if (!strm || !strm.state) { return Z_STREAM_ERROR; }
  state = strm.state;

  /* extract wrap request from windowBits parameter */
  if (windowBits < 0) {
    wrap = 0;
    windowBits = -windowBits;
  }
  else {
    wrap = (windowBits >> 4) + 1;
    if (windowBits < 48) {
      windowBits &= 15;
    }
  }

  /* set number of window bits, free window if different */
  if (windowBits && (windowBits < 8 || windowBits > 15)) {
    return Z_STREAM_ERROR;
  }
  if (state.window !== null && state.wbits !== windowBits) {
    state.window = null;
  }

  /* update state and reset the rest of it */
  state.wrap = wrap;
  state.wbits = windowBits;
  return inflateReset(strm);
}

function inflateInit2(strm, windowBits) {
  var ret;
  var state;

  if (!strm) { return Z_STREAM_ERROR; }
  //strm.msg = Z_NULL;                 /* in case we return an error */

  state = new InflateState();

  //if (state === Z_NULL) return Z_MEM_ERROR;
  //Tracev((stderr, "inflate: allocated\n"));
  strm.state = state;
  state.window = null/*Z_NULL*/;
  ret = inflateReset2(strm, windowBits);
  if (ret !== Z_OK) {
    strm.state = null/*Z_NULL*/;
  }
  return ret;
}

function inflateInit(strm) {
  return inflateInit2(strm, DEF_WBITS);
}


/*
 Return state with length and distance decoding tables and index sizes set to
 fixed code decoding.  Normally this returns fixed tables from inffixed.h.
 If BUILDFIXED is defined, then instead this routine builds the tables the
 first time it's called, and returns those tables the first time and
 thereafter.  This reduces the size of the code by about 2K bytes, in
 exchange for a little execution time.  However, BUILDFIXED should not be
 used for threaded applications, since the rewriting of the tables and virgin
 may not be thread-safe.
 */
var virgin = true;

var lenfix, distfix; // We have no pointers in JS, so keep tables separate

function fixedtables(state) {
  /* build fixed huffman tables if first call (may not be thread safe) */
  if (virgin) {
    var sym;

    lenfix = new utils.Buf32(512);
    distfix = new utils.Buf32(32);

    /* literal/length table */
    sym = 0;
    while (sym < 144) { state.lens[sym++] = 8; }
    while (sym < 256) { state.lens[sym++] = 9; }
    while (sym < 280) { state.lens[sym++] = 7; }
    while (sym < 288) { state.lens[sym++] = 8; }

    inflate_table(LENS,  state.lens, 0, 288, lenfix,   0, state.work, { bits: 9 });

    /* distance table */
    sym = 0;
    while (sym < 32) { state.lens[sym++] = 5; }

    inflate_table(DISTS, state.lens, 0, 32,   distfix, 0, state.work, { bits: 5 });

    /* do this just once */
    virgin = false;
  }

  state.lencode = lenfix;
  state.lenbits = 9;
  state.distcode = distfix;
  state.distbits = 5;
}


/*
 Update the window with the last wsize (normally 32K) bytes written before
 returning.  If window does not exist yet, create it.  This is only called
 when a window is already in use, or when output has been written during this
 inflate call, but the end of the deflate stream has not been reached yet.
 It is also called to create a window for dictionary data when a dictionary
 is loaded.

 Providing output buffers larger than 32K to inflate() should provide a speed
 advantage, since only the last 32K of output is copied to the sliding window
 upon return from inflate(), and since all distances after the first 32K of
 output will fall in the output data, making match copies simpler and faster.
 The advantage may be dependent on the size of the processor's data caches.
 */
function updatewindow(strm, src, end, copy) {
  var dist;
  var state = strm.state;

  /* if it hasn't been done already, allocate space for the window */
  if (state.window === null) {
    state.wsize = 1 << state.wbits;
    state.wnext = 0;
    state.whave = 0;

    state.window = new utils.Buf8(state.wsize);
  }

  /* copy state->wsize or less output bytes into the circular window */
  if (copy >= state.wsize) {
    utils.arraySet(state.window, src, end - state.wsize, state.wsize, 0);
    state.wnext = 0;
    state.whave = state.wsize;
  }
  else {
    dist = state.wsize - state.wnext;
    if (dist > copy) {
      dist = copy;
    }
    //zmemcpy(state->window + state->wnext, end - copy, dist);
    utils.arraySet(state.window, src, end - copy, dist, state.wnext);
    copy -= dist;
    if (copy) {
      //zmemcpy(state->window, end - copy, copy);
      utils.arraySet(state.window, src, end - copy, copy, 0);
      state.wnext = copy;
      state.whave = state.wsize;
    }
    else {
      state.wnext += dist;
      if (state.wnext === state.wsize) { state.wnext = 0; }
      if (state.whave < state.wsize) { state.whave += dist; }
    }
  }
  return 0;
}

function inflate(strm, flush) {
  var state;
  var input, output;          // input/output buffers
  var next;                   /* next input INDEX */
  var put;                    /* next output INDEX */
  var have, left;             /* available input and output */
  var hold;                   /* bit buffer */
  var bits;                   /* bits in bit buffer */
  var _in, _out;              /* save starting available input and output */
  var copy;                   /* number of stored or match bytes to copy */
  var from;                   /* where to copy match bytes from */
  var from_source;
  var here = 0;               /* current decoding table entry */
  var here_bits, here_op, here_val; // paked "here" denormalized (JS specific)
  //var last;                   /* parent table entry */
  var last_bits, last_op, last_val; // paked "last" denormalized (JS specific)
  var len;                    /* length to copy for repeats, bits to drop */
  var ret;                    /* return code */
  var hbuf = new utils.Buf8(4);    /* buffer for gzip header crc calculation */
  var opts;

  var n; // temporary var for NEED_BITS

  var order = /* permutation of code lengths */
    [ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ];


  if (!strm || !strm.state || !strm.output ||
      (!strm.input && strm.avail_in !== 0)) {
    return Z_STREAM_ERROR;
  }

  state = strm.state;
  if (state.mode === TYPE) { state.mode = TYPEDO; }    /* skip check */


  //--- LOAD() ---
  put = strm.next_out;
  output = strm.output;
  left = strm.avail_out;
  next = strm.next_in;
  input = strm.input;
  have = strm.avail_in;
  hold = state.hold;
  bits = state.bits;
  //---

  _in = have;
  _out = left;
  ret = Z_OK;

  inf_leave: // goto emulation
  for (;;) {
    switch (state.mode) {
      case HEAD:
        if (state.wrap === 0) {
          state.mode = TYPEDO;
          break;
        }
        //=== NEEDBITS(16);
        while (bits < 16) {
          if (have === 0) { break inf_leave; }
          have--;
          hold += input[next++] << bits;
          bits += 8;
        }
        //===//
        if ((state.wrap & 2) && hold === 0x8b1f) {  /* gzip header */
          state.check = 0/*crc32(0L, Z_NULL, 0)*/;
          //=== CRC2(state.check, hold);
          hbuf[0] = hold & 0xff;
          hbuf[1] = (hold >>> 8) & 0xff;
          state.check = crc32(state.check, hbuf, 2, 0);
          //===//

          //=== INITBITS();
          hold = 0;
          bits = 0;
          //===//
          state.mode = FLAGS;
          break;
        }
        state.flags = 0;           /* expect zlib header */
        if (state.head) {
          state.head.done = false;
        }
        if (!(state.wrap & 1) ||   /* check if zlib header allowed */
          (((hold & 0xff)/*BITS(8)*/ << 8) + (hold >> 8)) % 31) {
          strm.msg = 'incorrect header check';
          state.mode = BAD;
          break;
        }
        if ((hold & 0x0f)/*BITS(4)*/ !== Z_DEFLATED) {
          strm.msg = 'unknown compression method';
          state.mode = BAD;
          break;
        }
        //--- DROPBITS(4) ---//
        hold >>>= 4;
        bits -= 4;
        //---//
        len = (hold & 0x0f)/*BITS(4)*/ + 8;
        if (state.wbits === 0) {
          state.wbits = len;
        }
        else if (len > state.wbits) {
          strm.msg = 'invalid window size';
          state.mode = BAD;
          break;
        }
        state.dmax = 1 << len;
        //Tracev((stderr, "inflate:   zlib header ok\n"));
        strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;
        state.mode = hold & 0x200 ? DICTID : TYPE;
        //=== INITBITS();
        hold = 0;
        bits = 0;
        //===//
        break;
      case FLAGS:
        //=== NEEDBITS(16); */
        while (bits < 16) {
          if (have === 0) { break inf_leave; }
          have--;
          hold += input[next++] << bits;
          bits += 8;
        }
        //===//
        state.flags = hold;
        if ((state.flags & 0xff) !== Z_DEFLATED) {
          strm.msg = 'unknown compression method';
          state.mode = BAD;
          break;
        }
        if (state.flags & 0xe000) {
          strm.msg = 'unknown header flags set';
          state.mode = BAD;
          break;
        }
        if (state.head) {
          state.head.text = ((hold >> 8) & 1);
        }
        if (state.flags & 0x0200) {
          //=== CRC2(state.check, hold);
          hbuf[0] = hold & 0xff;
          hbuf[1] = (hold >>> 8) & 0xff;
          state.check = crc32(state.check, hbuf, 2, 0);
          //===//
        }
        //=== INITBITS();
        hold = 0;
        bits = 0;
        //===//
        state.mode = TIME;
        /* falls through */
      case TIME:
        //=== NEEDBITS(32); */
        while (bits < 32) {
          if (have === 0) { break inf_leave; }
          have--;
          hold += input[next++] << bits;
          bits += 8;
        }
        //===//
        if (state.head) {
          state.head.time = hold;
        }
        if (state.flags & 0x0200) {
          //=== CRC4(state.check, hold)
          hbuf[0] = hold & 0xff;
          hbuf[1] = (hold >>> 8) & 0xff;
          hbuf[2] = (hold >>> 16) & 0xff;
          hbuf[3] = (hold >>> 24) & 0xff;
          state.check = crc32(state.check, hbuf, 4, 0);
          //===
        }
        //=== INITBITS();
        hold = 0;
        bits = 0;
        //===//
        state.mode = OS;
        /* falls through */
      case OS:
        //=== NEEDBITS(16); */
        while (bits < 16) {
          if (have === 0) { break inf_leave; }
          have--;
          hold += input[next++] << bits;
          bits += 8;
        }
        //===//
        if (state.head) {
          state.head.xflags = (hold & 0xff);
          state.head.os = (hold >> 8);
        }
        if (state.flags & 0x0200) {
          //=== CRC2(state.check, hold);
          hbuf[0] = hold & 0xff;
          hbuf[1] = (hold >>> 8) & 0xff;
          state.check = crc32(state.check, hbuf, 2, 0);
          //===//
        }
        //=== INITBITS();
        hold = 0;
        bits = 0;
        //===//
        state.mode = EXLEN;
        /* falls through */
      case EXLEN:
        if (state.flags & 0x0400) {
          //=== NEEDBITS(16); */
          while (bits < 16) {
            if (have === 0) { break inf_leave; }
            have--;
            hold += input[next++] << bits;
            bits += 8;
          }
          //===//
          state.length = hold;
          if (state.head) {
            state.head.extra_len = hold;
          }
          if (state.flags & 0x0200) {
            //=== CRC2(state.check, hold);
            hbuf[0] = hold & 0xff;
            hbuf[1] = (hold >>> 8) & 0xff;
            state.check = crc32(state.check, hbuf, 2, 0);
            //===//
          }
          //=== INITBITS();
          hold = 0;
          bits = 0;
          //===//
        }
        else if (state.head) {
          state.head.extra = null/*Z_NULL*/;
        }
        state.mode = EXTRA;
        /* falls through */
      case EXTRA:
        if (state.flags & 0x0400) {
          copy = state.length;
          if (copy > have) { copy = have; }
          if (copy) {
            if (state.head) {
              len = state.head.extra_len - state.length;
              if (!state.head.extra) {
                // Use untyped array for more convenient processing later
                state.head.extra = new Array(state.head.extra_len);
              }
              utils.arraySet(
                state.head.extra,
                input,
                next,
                // extra field is limited to 65536 bytes
                // - no need for additional size check
                copy,
                /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
                len
              );
              //zmemcpy(state.head.extra + len, next,
              //        len + copy > state.head.extra_max ?
              //        state.head.extra_max - len : copy);
            }
            if (state.flags & 0x0200) {
              state.check = crc32(state.check, input, copy, next);
            }
            have -= copy;
            next += copy;
            state.length -= copy;
          }
          if (state.length) { break inf_leave; }
        }
        state.length = 0;
        state.mode = NAME;
        /* falls through */
      case NAME:
        if (state.flags & 0x0800) {
          if (have === 0) { break inf_leave; }
          copy = 0;
          do {
            // TODO: 2 or 1 bytes?
            len = input[next + copy++];
            /* use constant limit because in js we should not preallocate memory */
            if (state.head && len &&
                (state.length < 65536 /*state.head.name_max*/)) {
              state.head.name += String.fromCharCode(len);
            }
          } while (len && copy < have);

          if (state.flags & 0x0200) {
            state.check = crc32(state.check, input, copy, next);
          }
          have -= copy;
          next += copy;
          if (len) { break inf_leave; }
        }
        else if (state.head) {
          state.head.name = null;
        }
        state.length = 0;
        state.mode = COMMENT;
        /* falls through */
      case COMMENT:
        if (state.flags & 0x1000) {
          if (have === 0) { break inf_leave; }
          copy = 0;
          do {
            len = input[next + copy++];
            /* use constant limit because in js we should not preallocate memory */
            if (state.head && len &&
                (state.length < 65536 /*state.head.comm_max*/)) {
              state.head.comment += String.fromCharCode(len);
            }
          } while (len && copy < have);
          if (state.flags & 0x0200) {
            state.check = crc32(state.check, input, copy, next);
          }
          have -= copy;
          next += copy;
          if (len) { break inf_leave; }
        }
        else if (state.head) {
          state.head.comment = null;
        }
        state.mode = HCRC;
        /* falls through */
      case HCRC:
        if (state.flags & 0x0200) {
          //=== NEEDBITS(16); */
          while (bits < 16) {
            if (have === 0) { break inf_leave; }
            have--;
            hold += input[next++] << bits;
            bits += 8;
          }
          //===//
          if (hold !== (state.check & 0xffff)) {
            strm.msg = 'header crc mismatch';
            state.mode = BAD;
            break;
          }
          //=== INITBITS();
          hold = 0;
          bits = 0;
          //===//
        }
        if (state.head) {
          state.head.hcrc = ((state.flags >> 9) & 1);
          state.head.done = true;
        }
        strm.adler = state.check = 0;
        state.mode = TYPE;
        break;
      case DICTID:
        //=== NEEDBITS(32); */
        while (bits < 32) {
          if (have === 0) { break inf_leave; }
          have--;
          hold += input[next++] << bits;
          bits += 8;
        }
        //===//
        strm.adler = state.check = zswap32(hold);
        //=== INITBITS();
        hold = 0;
        bits = 0;
        //===//
        state.mode = DICT;
        /* falls through */
      case DICT:
        if (state.havedict === 0) {
          //--- RESTORE() ---
          strm.next_out = put;
          strm.avail_out = left;
          strm.next_in = next;
          strm.avail_in = have;
          state.hold = hold;
          state.bits = bits;
          //---
          return Z_NEED_DICT;
        }
        strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;
        state.mode = TYPE;
        /* falls through */
      case TYPE:
        if (flush === Z_BLOCK || flush === Z_TREES) { break inf_leave; }
        /* falls through */
      case TYPEDO:
        if (state.last) {
          //--- BYTEBITS() ---//
          hold >>>= bits & 7;
          bits -= bits & 7;
          //---//
          state.mode = CHECK;
          break;
        }
        //=== NEEDBITS(3); */
        while (bits < 3) {
          if (have === 0) { break inf_leave; }
          have--;
          hold += input[next++] << bits;
          bits += 8;
        }
        //===//
        state.last = (hold & 0x01)/*BITS(1)*/;
        //--- DROPBITS(1) ---//
        hold >>>= 1;
        bits -= 1;
        //---//

        switch ((hold & 0x03)/*BITS(2)*/) {
          case 0:                             /* stored block */
            //Tracev((stderr, "inflate:     stored block%s\n",
            //        state.last ? " (last)" : ""));
            state.mode = STORED;
            break;
          case 1:                             /* fixed block */
            fixedtables(state);
            //Tracev((stderr, "inflate:     fixed codes block%s\n",
            //        state.last ? " (last)" : ""));
            state.mode = LEN_;             /* decode codes */
            if (flush === Z_TREES) {
              //--- DROPBITS(2) ---//
              hold >>>= 2;
              bits -= 2;
              //---//
              break inf_leave;
            }
            break;
          case 2:                             /* dynamic block */
            //Tracev((stderr, "inflate:     dynamic codes block%s\n",
            //        state.last ? " (last)" : ""));
            state.mode = TABLE;
            break;
          case 3:
            strm.msg = 'invalid block type';
            state.mode = BAD;
        }
        //--- DROPBITS(2) ---//
        hold >>>= 2;
        bits -= 2;
        //---//
        break;
      case STORED:
        //--- BYTEBITS() ---// /* go to byte boundary */
        hold >>>= bits & 7;
        bits -= bits & 7;
        //---//
        //=== NEEDBITS(32); */
        while (bits < 32) {
          if (have === 0) { break inf_leave; }
          have--;
          hold += input[next++] << bits;
          bits += 8;
        }
        //===//
        if ((hold & 0xffff) !== ((hold >>> 16) ^ 0xffff)) {
          strm.msg = 'invalid stored block lengths';
          state.mode = BAD;
          break;
        }
        state.length = hold & 0xffff;
        //Tracev((stderr, "inflate:       stored length %u\n",
        //        state.length));
        //=== INITBITS();
        hold = 0;
        bits = 0;
        //===//
        state.mode = COPY_;
        if (flush === Z_TREES) { break inf_leave; }
        /* falls through */
      case COPY_:
        state.mode = COPY;
        /* falls through */
      case COPY:
        copy = state.length;
        if (copy) {
          if (copy > have) { copy = have; }
          if (copy > left) { copy = left; }
          if (copy === 0) { break inf_leave; }
          //--- zmemcpy(put, next, copy); ---
          utils.arraySet(output, input, next, copy, put);
          //---//
          have -= copy;
          next += copy;
          left -= copy;
          put += copy;
          state.length -= copy;
          break;
        }
        //Tracev((stderr, "inflate:       stored end\n"));
        state.mode = TYPE;
        break;
      case TABLE:
        //=== NEEDBITS(14); */
        while (bits < 14) {
          if (have === 0) { break inf_leave; }
          have--;
          hold += input[next++] << bits;
          bits += 8;
        }
        //===//
        state.nlen = (hold & 0x1f)/*BITS(5)*/ + 257;
        //--- DROPBITS(5) ---//
        hold >>>= 5;
        bits -= 5;
        //---//
        state.ndist = (hold & 0x1f)/*BITS(5)*/ + 1;
        //--- DROPBITS(5) ---//
        hold >>>= 5;
        bits -= 5;
        //---//
        state.ncode = (hold & 0x0f)/*BITS(4)*/ + 4;
        //--- DROPBITS(4) ---//
        hold >>>= 4;
        bits -= 4;
        //---//
//#ifndef PKZIP_BUG_WORKAROUND
        if (state.nlen > 286 || state.ndist > 30) {
          strm.msg = 'too many length or distance symbols';
          state.mode = BAD;
          break;
        }
//#endif
        //Tracev((stderr, "inflate:       table sizes ok\n"));
        state.have = 0;
        state.mode = LENLENS;
        /* falls through */
      case LENLENS:
        while (state.have < state.ncode) {
          //=== NEEDBITS(3);
          while (bits < 3) {
            if (have === 0) { break inf_leave; }
            have--;
            hold += input[next++] << bits;
            bits += 8;
          }
          //===//
          state.lens[order[state.have++]] = (hold & 0x07);//BITS(3);
          //--- DROPBITS(3) ---//
          hold >>>= 3;
          bits -= 3;
          //---//
        }
        while (state.have < 19) {
          state.lens[order[state.have++]] = 0;
        }
        // We have separate tables & no pointers. 2 commented lines below not needed.
        //state.next = state.codes;
        //state.lencode = state.next;
        // Switch to use dynamic table
        state.lencode = state.lendyn;
        state.lenbits = 7;

        opts = { bits: state.lenbits };
        ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts);
        state.lenbits = opts.bits;

        if (ret) {
          strm.msg = 'invalid code lengths set';
          state.mode = BAD;
          break;
        }
        //Tracev((stderr, "inflate:       code lengths ok\n"));
        state.have = 0;
        state.mode = CODELENS;
        /* falls through */
      case CODELENS:
        while (state.have < state.nlen + state.ndist) {
          for (;;) {
            here = state.lencode[hold & ((1 << state.lenbits) - 1)];/*BITS(state.lenbits)*/
            here_bits = here >>> 24;
            here_op = (here >>> 16) & 0xff;
            here_val = here & 0xffff;

            if ((here_bits) <= bits) { break; }
            //--- PULLBYTE() ---//
            if (have === 0) { break inf_leave; }
            have--;
            hold += input[next++] << bits;
            bits += 8;
            //---//
          }
          if (here_val < 16) {
            //--- DROPBITS(here.bits) ---//
            hold >>>= here_bits;
            bits -= here_bits;
            //---//
            state.lens[state.have++] = here_val;
          }
          else {
            if (here_val === 16) {
              //=== NEEDBITS(here.bits + 2);
              n = here_bits + 2;
              while (bits < n) {
                if (have === 0) { break inf_leave; }
                have--;
                hold += input[next++] << bits;
                bits += 8;
              }
              //===//
              //--- DROPBITS(here.bits) ---//
              hold >>>= here_bits;
              bits -= here_bits;
              //---//
              if (state.have === 0) {
                strm.msg = 'invalid bit length repeat';
                state.mode = BAD;
                break;
              }
              len = state.lens[state.have - 1];
              copy = 3 + (hold & 0x03);//BITS(2);
              //--- DROPBITS(2) ---//
              hold >>>= 2;
              bits -= 2;
              //---//
            }
            else if (here_val === 17) {
              //=== NEEDBITS(here.bits + 3);
              n = here_bits + 3;
              while (bits < n) {
                if (have === 0) { break inf_leave; }
                have--;
                hold += input[next++] << bits;
                bits += 8;
              }
              //===//
              //--- DROPBITS(here.bits) ---//
              hold >>>= here_bits;
              bits -= here_bits;
              //---//
              len = 0;
              copy = 3 + (hold & 0x07);//BITS(3);
              //--- DROPBITS(3) ---//
              hold >>>= 3;
              bits -= 3;
              //---//
            }
            else {
              //=== NEEDBITS(here.bits + 7);
              n = here_bits + 7;
              while (bits < n) {
                if (have === 0) { break inf_leave; }
                have--;
                hold += input[next++] << bits;
                bits += 8;
              }
              //===//
              //--- DROPBITS(here.bits) ---//
              hold >>>= here_bits;
              bits -= here_bits;
              //---//
              len = 0;
              copy = 11 + (hold & 0x7f);//BITS(7);
              //--- DROPBITS(7) ---//
              hold >>>= 7;
              bits -= 7;
              //---//
            }
            if (state.have + copy > state.nlen + state.ndist) {
              strm.msg = 'invalid bit length repeat';
              state.mode = BAD;
              break;
            }
            while (copy--) {
              state.lens[state.have++] = len;
            }
          }
        }

        /* handle error breaks in while */
        if (state.mode === BAD) { break; }

        /* check for end-of-block code (better have one) */
        if (state.lens[256] === 0) {
          strm.msg = 'invalid code -- missing end-of-block';
          state.mode = BAD;
          break;
        }

        /* build code tables -- note: do not change the lenbits or distbits
           values here (9 and 6) without reading the comments in inftrees.h
           concerning the ENOUGH constants, which depend on those values */
        state.lenbits = 9;

        opts = { bits: state.lenbits };
        ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts);
        // We have separate tables & no pointers. 2 commented lines below not needed.
        // state.next_index = opts.table_index;
        state.lenbits = opts.bits;
        // state.lencode = state.next;

        if (ret) {
          strm.msg = 'invalid literal/lengths set';
          state.mode = BAD;
          break;
        }

        state.distbits = 6;
        //state.distcode.copy(state.codes);
        // Switch to use dynamic table
        state.distcode = state.distdyn;
        opts = { bits: state.distbits };
        ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts);
        // We have separate tables & no pointers. 2 commented lines below not needed.
        // state.next_index = opts.table_index;
        state.distbits = opts.bits;
        // state.distcode = state.next;

        if (ret) {
          strm.msg = 'invalid distances set';
          state.mode = BAD;
          break;
        }
        //Tracev((stderr, 'inflate:       codes ok\n'));
        state.mode = LEN_;
        if (flush === Z_TREES) { break inf_leave; }
        /* falls through */
      case LEN_:
        state.mode = LEN;
        /* falls through */
      case LEN:
        if (have >= 6 && left >= 258) {
          //--- RESTORE() ---
          strm.next_out = put;
          strm.avail_out = left;
          strm.next_in = next;
          strm.avail_in = have;
          state.hold = hold;
          state.bits = bits;
          //---
          inflate_fast(strm, _out);
          //--- LOAD() ---
          put = strm.next_out;
          output = strm.output;
          left = strm.avail_out;
          next = strm.next_in;
          input = strm.input;
          have = strm.avail_in;
          hold = state.hold;
          bits = state.bits;
          //---

          if (state.mode === TYPE) {
            state.back = -1;
          }
          break;
        }
        state.back = 0;
        for (;;) {
          here = state.lencode[hold & ((1 << state.lenbits) - 1)];  /*BITS(state.lenbits)*/
          here_bits = here >>> 24;
          here_op = (here >>> 16) & 0xff;
          here_val = here & 0xffff;

          if (here_bits <= bits) { break; }
          //--- PULLBYTE() ---//
          if (have === 0) { break inf_leave; }
          have--;
          hold += input[next++] << bits;
          bits += 8;
          //---//
        }
        if (here_op && (here_op & 0xf0) === 0) {
          last_bits = here_bits;
          last_op = here_op;
          last_val = here_val;
          for (;;) {
            here = state.lencode[last_val +
                    ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];
            here_bits = here >>> 24;
            here_op = (here >>> 16) & 0xff;
            here_val = here & 0xffff;

            if ((last_bits + here_bits) <= bits) { break; }
            //--- PULLBYTE() ---//
            if (have === 0) { break inf_leave; }
            have--;
            hold += input[next++] << bits;
            bits += 8;
            //---//
          }
          //--- DROPBITS(last.bits) ---//
          hold >>>= last_bits;
          bits -= last_bits;
          //---//
          state.back += last_bits;
        }
        //--- DROPBITS(here.bits) ---//
        hold >>>= here_bits;
        bits -= here_bits;
        //---//
        state.back += here_bits;
        state.length = here_val;
        if (here_op === 0) {
          //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?
          //        "inflate:         literal '%c'\n" :
          //        "inflate:         literal 0x%02x\n", here.val));
          state.mode = LIT;
          break;
        }
        if (here_op & 32) {
          //Tracevv((stderr, "inflate:         end of block\n"));
          state.back = -1;
          state.mode = TYPE;
          break;
        }
        if (here_op & 64) {
          strm.msg = 'invalid literal/length code';
          state.mode = BAD;
          break;
        }
        state.extra = here_op & 15;
        state.mode = LENEXT;
        /* falls through */
      case LENEXT:
        if (state.extra) {
          //=== NEEDBITS(state.extra);
          n = state.extra;
          while (bits < n) {
            if (have === 0) { break inf_leave; }
            have--;
            hold += input[next++] << bits;
            bits += 8;
          }
          //===//
          state.length += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;
          //--- DROPBITS(state.extra) ---//
          hold >>>= state.extra;
          bits -= state.extra;
          //---//
          state.back += state.extra;
        }
        //Tracevv((stderr, "inflate:         length %u\n", state.length));
        state.was = state.length;
        state.mode = DIST;
        /* falls through */
      case DIST:
        for (;;) {
          here = state.distcode[hold & ((1 << state.distbits) - 1)];/*BITS(state.distbits)*/
          here_bits = here >>> 24;
          here_op = (here >>> 16) & 0xff;
          here_val = here & 0xffff;

          if ((here_bits) <= bits) { break; }
          //--- PULLBYTE() ---//
          if (have === 0) { break inf_leave; }
          have--;
          hold += input[next++] << bits;
          bits += 8;
          //---//
        }
        if ((here_op & 0xf0) === 0) {
          last_bits = here_bits;
          last_op = here_op;
          last_val = here_val;
          for (;;) {
            here = state.distcode[last_val +
                    ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];
            here_bits = here >>> 24;
            here_op = (here >>> 16) & 0xff;
            here_val = here & 0xffff;

            if ((last_bits + here_bits) <= bits) { break; }
            //--- PULLBYTE() ---//
            if (have === 0) { break inf_leave; }
            have--;
            hold += input[next++] << bits;
            bits += 8;
            //---//
          }
          //--- DROPBITS(last.bits) ---//
          hold >>>= last_bits;
          bits -= last_bits;
          //---//
          state.back += last_bits;
        }
        //--- DROPBITS(here.bits) ---//
        hold >>>= here_bits;
        bits -= here_bits;
        //---//
        state.back += here_bits;
        if (here_op & 64) {
          strm.msg = 'invalid distance code';
          state.mode = BAD;
          break;
        }
        state.offset = here_val;
        state.extra = (here_op) & 15;
        state.mode = DISTEXT;
        /* falls through */
      case DISTEXT:
        if (state.extra) {
          //=== NEEDBITS(state.extra);
          n = state.extra;
          while (bits < n) {
            if (have === 0) { break inf_leave; }
            have--;
            hold += input[next++] << bits;
            bits += 8;
          }
          //===//
          state.offset += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;
          //--- DROPBITS(state.extra) ---//
          hold >>>= state.extra;
          bits -= state.extra;
          //---//
          state.back += state.extra;
        }
//#ifdef INFLATE_STRICT
        if (state.offset > state.dmax) {
          strm.msg = 'invalid distance too far back';
          state.mode = BAD;
          break;
        }
//#endif
        //Tracevv((stderr, "inflate:         distance %u\n", state.offset));
        state.mode = MATCH;
        /* falls through */
      case MATCH:
        if (left === 0) { break inf_leave; }
        copy = _out - left;
        if (state.offset > copy) {         /* copy from window */
          copy = state.offset - copy;
          if (copy > state.whave) {
            if (state.sane) {
              strm.msg = 'invalid distance too far back';
              state.mode = BAD;
              break;
            }
// (!) This block is disabled in zlib defaults,
// don't enable it for binary compatibility
//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR
//          Trace((stderr, "inflate.c too far\n"));
//          copy -= state.whave;
//          if (copy > state.length) { copy = state.length; }
//          if (copy > left) { copy = left; }
//          left -= copy;
//          state.length -= copy;
//          do {
//            output[put++] = 0;
//          } while (--copy);
//          if (state.length === 0) { state.mode = LEN; }
//          break;
//#endif
          }
          if (copy > state.wnext) {
            copy -= state.wnext;
            from = state.wsize - copy;
          }
          else {
            from = state.wnext - copy;
          }
          if (copy > state.length) { copy = state.length; }
          from_source = state.window;
        }
        else {                              /* copy from output */
          from_source = output;
          from = put - state.offset;
          copy = state.length;
        }
        if (copy > left) { copy = left; }
        left -= copy;
        state.length -= copy;
        do {
          output[put++] = from_source[from++];
        } while (--copy);
        if (state.length === 0) { state.mode = LEN; }
        break;
      case LIT:
        if (left === 0) { break inf_leave; }
        output[put++] = state.length;
        left--;
        state.mode = LEN;
        break;
      case CHECK:
        if (state.wrap) {
          //=== NEEDBITS(32);
          while (bits < 32) {
            if (have === 0) { break inf_leave; }
            have--;
            // Use '|' instead of '+' to make sure that result is signed
            hold |= input[next++] << bits;
            bits += 8;
          }
          //===//
          _out -= left;
          strm.total_out += _out;
          state.total += _out;
          if (_out) {
            strm.adler = state.check =
                /*UPDATE(state.check, put - _out, _out);*/
                (state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out));

          }
          _out = left;
          // NB: crc32 stored as signed 32-bit int, zswap32 returns signed too
          if ((state.flags ? hold : zswap32(hold)) !== state.check) {
            strm.msg = 'incorrect data check';
            state.mode = BAD;
            break;
          }
          //=== INITBITS();
          hold = 0;
          bits = 0;
          //===//
          //Tracev((stderr, "inflate:   check matches trailer\n"));
        }
        state.mode = LENGTH;
        /* falls through */
      case LENGTH:
        if (state.wrap && state.flags) {
          //=== NEEDBITS(32);
          while (bits < 32) {
            if (have === 0) { break inf_leave; }
            have--;
            hold += input[next++] << bits;
            bits += 8;
          }
          //===//
          if (hold !== (state.total & 0xffffffff)) {
            strm.msg = 'incorrect length check';
            state.mode = BAD;
            break;
          }
          //=== INITBITS();
          hold = 0;
          bits = 0;
          //===//
          //Tracev((stderr, "inflate:   length matches trailer\n"));
        }
        state.mode = DONE;
        /* falls through */
      case DONE:
        ret = Z_STREAM_END;
        break inf_leave;
      case BAD:
        ret = Z_DATA_ERROR;
        break inf_leave;
      case MEM:
        return Z_MEM_ERROR;
      case SYNC:
        /* falls through */
      default:
        return Z_STREAM_ERROR;
    }
  }

  // inf_leave <- here is real place for "goto inf_leave", emulated via "break inf_leave"

  /*
     Return from inflate(), updating the total counts and the check value.
     If there was no progress during the inflate() call, return a buffer
     error.  Call updatewindow() to create and/or update the window state.
     Note: a memory error from inflate() is non-recoverable.
   */

  //--- RESTORE() ---
  strm.next_out = put;
  strm.avail_out = left;
  strm.next_in = next;
  strm.avail_in = have;
  state.hold = hold;
  state.bits = bits;
  //---

  if (state.wsize || (_out !== strm.avail_out && state.mode < BAD &&
                      (state.mode < CHECK || flush !== Z_FINISH))) {
    if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) {
      state.mode = MEM;
      return Z_MEM_ERROR;
    }
  }
  _in -= strm.avail_in;
  _out -= strm.avail_out;
  strm.total_in += _in;
  strm.total_out += _out;
  state.total += _out;
  if (state.wrap && _out) {
    strm.adler = state.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
      (state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out));
  }
  strm.data_type = state.bits + (state.last ? 64 : 0) +
                    (state.mode === TYPE ? 128 : 0) +
                    (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);
  if (((_in === 0 && _out === 0) || flush === Z_FINISH) && ret === Z_OK) {
    ret = Z_BUF_ERROR;
  }
  return ret;
}

function inflateEnd(strm) {

  if (!strm || !strm.state /*|| strm->zfree == (free_func)0*/) {
    return Z_STREAM_ERROR;
  }

  var state = strm.state;
  if (state.window) {
    state.window = null;
  }
  strm.state = null;
  return Z_OK;
}

function inflateGetHeader(strm, head) {
  var state;

  /* check state */
  if (!strm || !strm.state) { return Z_STREAM_ERROR; }
  state = strm.state;
  if ((state.wrap & 2) === 0) { return Z_STREAM_ERROR; }

  /* save header structure */
  state.head = head;
  head.done = false;
  return Z_OK;
}

function inflateSetDictionary(strm, dictionary) {
  var dictLength = dictionary.length;

  var state;
  var dictid;
  var ret;

  /* check state */
  if (!strm /* == Z_NULL */ || !strm.state /* == Z_NULL */) { return Z_STREAM_ERROR; }
  state = strm.state;

  if (state.wrap !== 0 && state.mode !== DICT) {
    return Z_STREAM_ERROR;
  }

  /* check for correct dictionary identifier */
  if (state.mode === DICT) {
    dictid = 1; /* adler32(0, null, 0)*/
    /* dictid = adler32(dictid, dictionary, dictLength); */
    dictid = adler32(dictid, dictionary, dictLength, 0);
    if (dictid !== state.check) {
      return Z_DATA_ERROR;
    }
  }
  /* copy dictionary to window using updatewindow(), which will amend the
   existing dictionary if appropriate */
  ret = updatewindow(strm, dictionary, dictLength, dictLength);
  if (ret) {
    state.mode = MEM;
    return Z_MEM_ERROR;
  }
  state.havedict = 1;
  // Tracev((stderr, "inflate:   dictionary set\n"));
  return Z_OK;
}

exports.inflateReset = inflateReset;
exports.inflateReset2 = inflateReset2;
exports.inflateResetKeep = inflateResetKeep;
exports.inflateInit = inflateInit;
exports.inflateInit2 = inflateInit2;
exports.inflate = inflate;
exports.inflateEnd = inflateEnd;
exports.inflateGetHeader = inflateGetHeader;
exports.inflateSetDictionary = inflateSetDictionary;
exports.inflateInfo = 'pako inflate (from Nodeca project)';

/* Not implemented
exports.inflateCopy = inflateCopy;
exports.inflateGetDictionary = inflateGetDictionary;
exports.inflateMark = inflateMark;
exports.inflatePrime = inflatePrime;
exports.inflateSync = inflateSync;
exports.inflateSyncPoint = inflateSyncPoint;
exports.inflateUndermine = inflateUndermine;
*/


/***/ }),

/***/ 71496:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '';
    $$out += '<div class="gwd_shipping_remind">\n  <p>该商品支持直邮中国</p>\n  <p>直邮\uFF0C请填写国内收货地址\uFF1B</p>\n  <p>转运\uFF0C请填写转运公司地址\u3002</p>\n</div>\n<style type="text/css">\n  .gwd_shipping_remind {\n    width: 172px;\n    height: 125px;\n    background-color: #1791de;\n    color: #fff;\n    position: absolute;\n    right: -195px;\n    top: 0px;\n    text-align: center;\n    line-height: 35px;\n    border-radius: 3px;\n    font-size: 14px;\n    font-weight: bold;\n    font-family: \'Microsoft Yahei\';\n  }\n  .gwd_shipping_remind:after{\n    border: 8px solid transparent;\n    border-right-color: #1791de;\n    content: "";\n    position: absolute;\n    left: -16px;\n    width: 0px;\n    height: 0px;\n    top: 10px;\n  }\n  #identity-add-new-address #enterAddressFullNameContainer{\n    position: relative;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 71617:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


//添加基本的参数配置和函数
var protocol = location.protocol === 'https:' ? 'https:' : 'http:';
G.extend({
  /** 接口请求的服务器端地址 */
  server: 'https://browser.gwdang.com',
  /** 购物党网站地址 */
  c_server: 'https://www.gwdang.com',
  /** 静态文件地址 */
  s_server: protocol + '//cdn.gwdang.com',
  v_server: 'http://v.gwdang.com',
  u_server: 'https://u.gwdang.com',
  u_server2: 'https://u.gwdang.com',
  //避免冲突
  tb_server: 'https://tb.gwdang.com',
  u_house: protocol + '//api.lufangjia.com',
  tj_server: protocol + '//v.gwdang.com',
  specialUnion: protocol + "//u.smartlinkclick.com/union/go/",
  img_server: 'http://f67dfe7ee7e63.cdn.sohucs.com',
  img64_server: 'http://645568b71d6b6.cdn.sohucs.com',
  product_keyword: protocol + '//keyword.gwdang.com',
  toMobileUrl: protocol + '//m.gwdang.com',
  imgHost: 'https://cdn.gwdang.com/images/',
  noImg: protocol + '//cdn.gwdang.com/images/extensions/gwd-noimg.png',
  imgLoad: protocol + '//cdn.gwdang.com/images/extensions/newbar/120.gif',
  u_key: 'gwdang',
  dval: '#tbsb-notifiers',
  mbar: 'gwdang-main',
  wishdom: 'bjd_plt_bg',
  wishdom2: 'gwd_wishlist_div',
  p_k: 'pingluntuan12345',
  domain: 'browser'
});
if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1 || location.host.indexOf('1688') > -1) {
  let str = 'abcdefghijklmnopqrstuvwxyz';
  let str2 = '#';
  for (let i = 0; i < 8; i++) {
    str2 += str[parseInt(Math.random() * 26)];
  }
  G.dval = str2;
  G.wishdom = str2.replace('#', '') + '_bg';
  let browserName = navigator.userAgent.toLowerCase();
  let safari = /webkit/i.test(browserName) && !(/chrome/i.test(browserName) && /webkit/i.test(browserName) && /mozilla/i.test(browserName));
  if (browserName.indexOf('maxthon') > -1 || browserName.indexOf('2345explorer') > -1 || safari) {
    G.wishdom2 = 'max_gwd_wishlist_div';
    G.mbar = 'max_gwdang-main';
  }
}

/***/ }),

/***/ 71750:
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
* Fingerprintjs2 2.1.4 - Modern & flexible browser fingerprint library v2
* https://github.com/fingerprintjs/fingerprintjs
* Copyright (c) 2020 Valentin Vasilyev (valentin@fingerprintjs.com)
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL VALENTIN VASILYEV BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* This software contains code from open-source projects:
* MurmurHash3 by Karan Lyons (https://github.com/karanlyons/murmurHash3.js)
*/

/* global define */
(function (name, context, definition) {
  'use strict'
  if (typeof window !== 'undefined' && "function" === 'function' && __webpack_require__.amdO) { !(__WEBPACK_AMD_DEFINE_FACTORY__ = (definition),
		__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
		(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
		__WEBPACK_AMD_DEFINE_FACTORY__),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) } else if ( true && module.exports) { module.exports = definition() } else if (context.exports) { context.exports = definition() } else { context[name] = definition() }
})('Fingerprint2', this, function () {
  'use strict'

  // detect if object is array
  // only implement if no native implementation is available
  if (typeof Array.isArray === 'undefined') {
    Array.isArray = function (obj) {
      return Object.prototype.toString.call(obj) === '[object Array]'
    }
  };

  /// MurmurHash3 related functions

  //
  // Given two 64bit ints (as an array of two 32bit ints) returns the two
  // added together as a 64bit int (as an array of two 32bit ints).
  //
  var x64Add = function (m, n) {
    m = [m[0] >>> 16, m[0] & 0xffff, m[1] >>> 16, m[1] & 0xffff]
    n = [n[0] >>> 16, n[0] & 0xffff, n[1] >>> 16, n[1] & 0xffff]
    var o = [0, 0, 0, 0]
    o[3] += m[3] + n[3]
    o[2] += o[3] >>> 16
    o[3] &= 0xffff
    o[2] += m[2] + n[2]
    o[1] += o[2] >>> 16
    o[2] &= 0xffff
    o[1] += m[1] + n[1]
    o[0] += o[1] >>> 16
    o[1] &= 0xffff
    o[0] += m[0] + n[0]
    o[0] &= 0xffff
    return [(o[0] << 16) | o[1], (o[2] << 16) | o[3]]
  }

  //
  // Given two 64bit ints (as an array of two 32bit ints) returns the two
  // multiplied together as a 64bit int (as an array of two 32bit ints).
  //
  var x64Multiply = function (m, n) {
    m = [m[0] >>> 16, m[0] & 0xffff, m[1] >>> 16, m[1] & 0xffff]
    n = [n[0] >>> 16, n[0] & 0xffff, n[1] >>> 16, n[1] & 0xffff]
    var o = [0, 0, 0, 0]
    o[3] += m[3] * n[3]
    o[2] += o[3] >>> 16
    o[3] &= 0xffff
    o[2] += m[2] * n[3]
    o[1] += o[2] >>> 16
    o[2] &= 0xffff
    o[2] += m[3] * n[2]
    o[1] += o[2] >>> 16
    o[2] &= 0xffff
    o[1] += m[1] * n[3]
    o[0] += o[1] >>> 16
    o[1] &= 0xffff
    o[1] += m[2] * n[2]
    o[0] += o[1] >>> 16
    o[1] &= 0xffff
    o[1] += m[3] * n[1]
    o[0] += o[1] >>> 16
    o[1] &= 0xffff
    o[0] += (m[0] * n[3]) + (m[1] * n[2]) + (m[2] * n[1]) + (m[3] * n[0])
    o[0] &= 0xffff
    return [(o[0] << 16) | o[1], (o[2] << 16) | o[3]]
  }
  //
  // Given a 64bit int (as an array of two 32bit ints) and an int
  // representing a number of bit positions, returns the 64bit int (as an
  // array of two 32bit ints) rotated left by that number of positions.
  //
  var x64Rotl = function (m, n) {
    n %= 64
    if (n === 32) {
      return [m[1], m[0]]
    } else if (n < 32) {
      return [(m[0] << n) | (m[1] >>> (32 - n)), (m[1] << n) | (m[0] >>> (32 - n))]
    } else {
      n -= 32
      return [(m[1] << n) | (m[0] >>> (32 - n)), (m[0] << n) | (m[1] >>> (32 - n))]
    }
  }
  //
  // Given a 64bit int (as an array of two 32bit ints) and an int
  // representing a number of bit positions, returns the 64bit int (as an
  // array of two 32bit ints) shifted left by that number of positions.
  //
  var x64LeftShift = function (m, n) {
    n %= 64
    if (n === 0) {
      return m
    } else if (n < 32) {
      return [(m[0] << n) | (m[1] >>> (32 - n)), m[1] << n]
    } else {
      return [m[1] << (n - 32), 0]
    }
  }
  //
  // Given two 64bit ints (as an array of two 32bit ints) returns the two
  // xored together as a 64bit int (as an array of two 32bit ints).
  //
  var x64Xor = function (m, n) {
    return [m[0] ^ n[0], m[1] ^ n[1]]
  }
  //
  // Given a block, returns murmurHash3's final x64 mix of that block.
  // (`[0, h[0] >>> 1]` is a 33 bit unsigned right shift. This is the
  // only place where we need to right shift 64bit ints.)
  //
  var x64Fmix = function (h) {
    h = x64Xor(h, [0, h[0] >>> 1])
    h = x64Multiply(h, [0xff51afd7, 0xed558ccd])
    h = x64Xor(h, [0, h[0] >>> 1])
    h = x64Multiply(h, [0xc4ceb9fe, 0x1a85ec53])
    h = x64Xor(h, [0, h[0] >>> 1])
    return h
  }

  //
  // Given a string and an optional seed as an int, returns a 128 bit
  // hash using the x64 flavor of MurmurHash3, as an unsigned hex.
  //
  var x64hash128 = function (key, seed) {
    key = key || ''
    seed = seed || 0
    var remainder = key.length % 16
    var bytes = key.length - remainder
    var h1 = [0, seed]
    var h2 = [0, seed]
    var k1 = [0, 0]
    var k2 = [0, 0]
    var c1 = [0x87c37b91, 0x114253d5]
    var c2 = [0x4cf5ad43, 0x2745937f]
    for (var i = 0; i < bytes; i = i + 16) {
      k1 = [((key.charCodeAt(i + 4) & 0xff)) | ((key.charCodeAt(i + 5) & 0xff) << 8) | ((key.charCodeAt(i + 6) & 0xff) << 16) | ((key.charCodeAt(i + 7) & 0xff) << 24), ((key.charCodeAt(i) & 0xff)) | ((key.charCodeAt(i + 1) & 0xff) << 8) | ((key.charCodeAt(i + 2) & 0xff) << 16) | ((key.charCodeAt(i + 3) & 0xff) << 24)]
      k2 = [((key.charCodeAt(i + 12) & 0xff)) | ((key.charCodeAt(i + 13) & 0xff) << 8) | ((key.charCodeAt(i + 14) & 0xff) << 16) | ((key.charCodeAt(i + 15) & 0xff) << 24), ((key.charCodeAt(i + 8) & 0xff)) | ((key.charCodeAt(i + 9) & 0xff) << 8) | ((key.charCodeAt(i + 10) & 0xff) << 16) | ((key.charCodeAt(i + 11) & 0xff) << 24)]
      k1 = x64Multiply(k1, c1)
      k1 = x64Rotl(k1, 31)
      k1 = x64Multiply(k1, c2)
      h1 = x64Xor(h1, k1)
      h1 = x64Rotl(h1, 27)
      h1 = x64Add(h1, h2)
      h1 = x64Add(x64Multiply(h1, [0, 5]), [0, 0x52dce729])
      k2 = x64Multiply(k2, c2)
      k2 = x64Rotl(k2, 33)
      k2 = x64Multiply(k2, c1)
      h2 = x64Xor(h2, k2)
      h2 = x64Rotl(h2, 31)
      h2 = x64Add(h2, h1)
      h2 = x64Add(x64Multiply(h2, [0, 5]), [0, 0x38495ab5])
    }
    k1 = [0, 0]
    k2 = [0, 0]
    switch (remainder) {
      case 15:
        k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 14)], 48))
      // fallthrough
      case 14:
        k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 13)], 40))
      // fallthrough
      case 13:
        k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 12)], 32))
      // fallthrough
      case 12:
        k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 11)], 24))
      // fallthrough
      case 11:
        k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 10)], 16))
      // fallthrough
      case 10:
        k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 9)], 8))
      // fallthrough
      case 9:
        k2 = x64Xor(k2, [0, key.charCodeAt(i + 8)])
        k2 = x64Multiply(k2, c2)
        k2 = x64Rotl(k2, 33)
        k2 = x64Multiply(k2, c1)
        h2 = x64Xor(h2, k2)
      // fallthrough
      case 8:
        k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 7)], 56))
      // fallthrough
      case 7:
        k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 6)], 48))
      // fallthrough
      case 6:
        k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 5)], 40))
      // fallthrough
      case 5:
        k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 4)], 32))
      // fallthrough
      case 4:
        k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 3)], 24))
      // fallthrough
      case 3:
        k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 2)], 16))
      // fallthrough
      case 2:
        k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 1)], 8))
      // fallthrough
      case 1:
        k1 = x64Xor(k1, [0, key.charCodeAt(i)])
        k1 = x64Multiply(k1, c1)
        k1 = x64Rotl(k1, 31)
        k1 = x64Multiply(k1, c2)
        h1 = x64Xor(h1, k1)
      // fallthrough
    }
    h1 = x64Xor(h1, [0, key.length])
    h2 = x64Xor(h2, [0, key.length])
    h1 = x64Add(h1, h2)
    h2 = x64Add(h2, h1)
    h1 = x64Fmix(h1)
    h2 = x64Fmix(h2)
    h1 = x64Add(h1, h2)
    h2 = x64Add(h2, h1)
    return ('00000000' + (h1[0] >>> 0).toString(16)).slice(-8) + ('00000000' + (h1[1] >>> 0).toString(16)).slice(-8) + ('00000000' + (h2[0] >>> 0).toString(16)).slice(-8) + ('00000000' + (h2[1] >>> 0).toString(16)).slice(-8)
  }

  var defaultOptions = {
    preprocessor: null,
    audio: {
      timeout: 1000,
      // On iOS 11, audio context can only be used in response to user interaction.
      // We require users to explicitly enable audio fingerprinting on iOS 11.
      // See https://stackoverflow.com/questions/46363048/onaudioprocess-not-called-on-ios11#46534088
      excludeIOS11: true
    },
    fonts: {
      swfContainerId: 'fingerprintjs2',
      swfPath: 'flash/compiled/FontList.swf',
      userDefinedFonts: [],
      extendedJsFonts: false
    },
    screen: {
      // To ensure consistent fingerprints when users rotate their mobile devices
      detectScreenOrientation: true
    },
    plugins: {
      sortPluginsFor: [/palemoon/i],
      excludeIE: false
    },
    extraComponents: [],
    excludes: {
      // Unreliable on Windows, see https://github.com/fingerprintjs/fingerprintjs/issues/375
      'enumerateDevices': true,
      // devicePixelRatio depends on browser zoom, and it's impossible to detect browser zoom
      'pixelRatio': true,
      // DNT depends on incognito mode for some browsers (Chrome) and it's impossible to detect incognito mode
      'doNotTrack': true,
      // uses js fonts already
      'fontsFlash': true,
      // Extensions (including AdBlock) are disabled by default in Incognito mod of Chrome and Firefox
      // See https://github.com/fingerprintjs/fingerprintjs/issues/405
      'adBlock': true
    },
    NOT_AVAILABLE: 'not available',
    ERROR: 'error',
    EXCLUDED: 'excluded'
  }

  var each = function (obj, iterator) {
    if (Array.prototype.forEach && obj.forEach === Array.prototype.forEach) {
      obj.forEach(iterator)
    } else if (obj.length === +obj.length) {
      for (var i = 0, l = obj.length; i < l; i++) {
        iterator(obj[i], i, obj)
      }
    } else {
      for (var key in obj) {
        if (obj.hasOwnProperty(key)) {
          iterator(obj[key], key, obj)
        }
      }
    }
  }

  var map = function (obj, iterator) {
    var results = []
    // Not using strict equality so that this acts as a
    // shortcut to checking for `null` and `undefined`.
    if (obj == null) {
      return results
    }
    if (Array.prototype.map && obj.map === Array.prototype.map) { return obj.map(iterator) }
    each(obj, function (value, index, list) {
      results.push(iterator(value, index, list))
    })
    return results
  }

  var extendSoft = function (target, source) {
    if (source == null) { return target }
    var value
    var key
    for (key in source) {
      value = source[key]
      if (value != null && !(Object.prototype.hasOwnProperty.call(target, key))) {
        target[key] = value
      }
    }
    return target
  }

  // https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices
  var enumerateDevicesKey = function (done, options) {
    if (!isEnumerateDevicesSupported()) {
      return done(options.NOT_AVAILABLE)
    }
    navigator.mediaDevices.enumerateDevices().then(function (devices) {
      done(devices.map(function (device) {
        return 'id=' + device.deviceId + ';gid=' + device.groupId + ';' + device.kind + ';' + device.label
      }))
    }).catch(function (error) {
      done(error)
    })
  }

  var isEnumerateDevicesSupported = function () {
    return (navigator.mediaDevices && navigator.mediaDevices.enumerateDevices)
  }
  // Inspired by and based on https://github.com/cozylife/audio-fingerprint
  var audioKey = function (done, options) {
    var audioOptions = options.audio
    if (audioOptions.excludeIOS11 && navigator.userAgent.match(/OS 11.+Version\/11.+Safari/)) {
      // See comment for excludeUserAgent and https://stackoverflow.com/questions/46363048/onaudioprocess-not-called-on-ios11#46534088
      return done(options.EXCLUDED)
    }

    var AudioContext = window.OfflineAudioContext || window.webkitOfflineAudioContext

    if (AudioContext == null) {
      return done(options.NOT_AVAILABLE)
    }

    var context = new AudioContext(1, 44100, 44100)

    var oscillator = context.createOscillator()
    oscillator.type = 'triangle'
    oscillator.frequency.setValueAtTime(10000, context.currentTime)

    var compressor = context.createDynamicsCompressor()
    each([
      ['threshold', -50],
      ['knee', 40],
      ['ratio', 12],
      ['reduction', -20],
      ['attack', 0],
      ['release', 0.25]
    ], function (item) {
      if (compressor[item[0]] !== undefined && typeof compressor[item[0]].setValueAtTime === 'function') {
        compressor[item[0]].setValueAtTime(item[1], context.currentTime)
      }
    })

    oscillator.connect(compressor)
    compressor.connect(context.destination)
    oscillator.start(0)
    context.startRendering()

    var audioTimeoutId = setTimeout(function () {
      console.warn('Audio fingerprint timed out. Please report bug at https://github.com/fingerprintjs/fingerprintjs with your user agent: "' + navigator.userAgent + '".')
      context.oncomplete = function () { }
      context = null
      return done('audioTimeout')
    }, audioOptions.timeout)

    context.oncomplete = function (event) {
      var fingerprint
      try {
        clearTimeout(audioTimeoutId)
        fingerprint = event.renderedBuffer.getChannelData(0)
          .slice(4500, 5000)
          .reduce(function (acc, val) { return acc + Math.abs(val) }, 0)
          .toString()
        oscillator.disconnect()
        compressor.disconnect()
      } catch (error) {
        done(error)
        return
      }
      done(fingerprint)
    }
  }
  var UserAgent = function (done) {
    done(navigator.userAgent)
  }
  var webdriver = function (done, options) {
    done(navigator.webdriver == null ? options.NOT_AVAILABLE : navigator.webdriver)
  }
  var languageKey = function (done, options) {
    done(navigator.language || navigator.userLanguage || navigator.browserLanguage || navigator.systemLanguage || options.NOT_AVAILABLE)
  }
  var colorDepthKey = function (done, options) {
    done(window.screen.colorDepth || options.NOT_AVAILABLE)
  }
  var deviceMemoryKey = function (done, options) {
    done(navigator.deviceMemory || options.NOT_AVAILABLE)
  }
  var pixelRatioKey = function (done, options) {
    done(window.devicePixelRatio || options.NOT_AVAILABLE)
  }
  var screenResolutionKey = function (done, options) {
    done(getScreenResolution(options))
  }
  var getScreenResolution = function (options) {
    var resolution = [window.screen.width, window.screen.height]
    if (options.screen.detectScreenOrientation) {
      resolution.sort().reverse()
    }
    return resolution
  }
  var availableScreenResolutionKey = function (done, options) {
    done(getAvailableScreenResolution(options))
  }
  var getAvailableScreenResolution = function (options) {
    if (window.screen.availWidth && window.screen.availHeight) {
      var available = [window.screen.availHeight, window.screen.availWidth]
      if (options.screen.detectScreenOrientation) {
        available.sort().reverse()
      }
      return available
    }
    // headless browsers
    return options.NOT_AVAILABLE
  }
  var timezoneOffset = function (done) {
    done(new Date().getTimezoneOffset())
  }
  var timezone = function (done, options) {
    if (window.Intl && window.Intl.DateTimeFormat) {
      done(new window.Intl.DateTimeFormat().resolvedOptions().timeZone || options.NOT_AVAILABLE)
      return
    }
    done(options.NOT_AVAILABLE)
  }
  var sessionStorageKey = function (done, options) {
    done(hasSessionStorage(options))
  }
  var localStorageKey = function (done, options) {
    done(hasLocalStorage(options))
  }
  var indexedDbKey = function (done, options) {
    done(hasIndexedDB(options))
  }
  var addBehaviorKey = function (done) {
    done(!!window.HTMLElement.prototype.addBehavior)
  }
  var openDatabaseKey = function (done) {
    done(!!window.openDatabase)
  }
  var cpuClassKey = function (done, options) {
    done(getNavigatorCpuClass(options))
  }
  var platformKey = function (done, options) {
    done(getNavigatorPlatform(options))
  }
  var doNotTrackKey = function (done, options) {
    done(getDoNotTrack(options))
  }
  var canvasKey = function (done, options) {
    if (isCanvasSupported()) {
      done(getCanvasFp(options))
      return
    }
    done(options.NOT_AVAILABLE)
  }
  var webglKey = function (done, options) {
    if (isWebGlSupported()) {
      done(getWebglFp())
      return
    }
    done(options.NOT_AVAILABLE)
  }
  var webglVendorAndRendererKey = function (done) {
    if (isWebGlSupported()) {
      done(getWebglVendorAndRenderer())
      return
    }
    done()
  }
  var adBlockKey = function (done) {
    done(getAdBlock())
  }
  var hasLiedLanguagesKey = function (done) {
    done(getHasLiedLanguages())
  }
  var hasLiedResolutionKey = function (done) {
    done(getHasLiedResolution())
  }
  var hasLiedOsKey = function (done) {
    done(getHasLiedOs())
  }
  var hasLiedBrowserKey = function (done) {
    done(getHasLiedBrowser())
  }
  // flash fonts (will increase fingerprinting time 20X to ~ 130-150ms)
  var flashFontsKey = function (done, options) {
    // we do flash if swfobject is loaded
    if (!hasSwfObjectLoaded()) {
      return done('swf object not loaded')
    }
    if (!hasMinFlashInstalled()) {
      return done('flash not installed')
    }
    if (!options.fonts.swfPath) {
      return done('missing options.fonts.swfPath')
    }
    loadSwfAndDetectFonts(function (fonts) {
      done(fonts)
    }, options)
  }
  // kudos to http://www.lalit.org/lab/javascript-css-font-detect/
  var jsFontsKey = function (done, options) {
    // a font will be compared against all the three default fonts.
    // and if it doesn't match all 3 then that font is not available.
    var baseFonts = ['monospace', 'sans-serif', 'serif']

    var fontList = [
      'Andale Mono', 'Arial', 'Arial Black', 'Arial Hebrew', 'Arial MT', 'Arial Narrow', 'Arial Rounded MT Bold', 'Arial Unicode MS',
      'Bitstream Vera Sans Mono', 'Book Antiqua', 'Bookman Old Style',
      'Calibri', 'Cambria', 'Cambria Math', 'Century', 'Century Gothic', 'Century Schoolbook', 'Comic Sans', 'Comic Sans MS', 'Consolas', 'Courier', 'Courier New',
      'Geneva', 'Georgia',
      'Helvetica', 'Helvetica Neue',
      'Impact',
      'Lucida Bright', 'Lucida Calligraphy', 'Lucida Console', 'Lucida Fax', 'LUCIDA GRANDE', 'Lucida Handwriting', 'Lucida Sans', 'Lucida Sans Typewriter', 'Lucida Sans Unicode',
      'Microsoft Sans Serif', 'Monaco', 'Monotype Corsiva', 'MS Gothic', 'MS Outlook', 'MS PGothic', 'MS Reference Sans Serif', 'MS Sans Serif', 'MS Serif', 'MYRIAD', 'MYRIAD PRO',
      'Palatino', 'Palatino Linotype',
      'Segoe Print', 'Segoe Script', 'Segoe UI', 'Segoe UI Light', 'Segoe UI Semibold', 'Segoe UI Symbol',
      'Tahoma', 'Times', 'Times New Roman', 'Times New Roman PS', 'Trebuchet MS',
      'Verdana', 'Wingdings', 'Wingdings 2', 'Wingdings 3'
    ]

    if (options.fonts.extendedJsFonts) {
      var extendedFontList = [
        'Abadi MT Condensed Light', 'Academy Engraved LET', 'ADOBE CASLON PRO', 'Adobe Garamond', 'ADOBE GARAMOND PRO', 'Agency FB', 'Aharoni', 'Albertus Extra Bold', 'Albertus Medium', 'Algerian', 'Amazone BT', 'American Typewriter',
        'American Typewriter Condensed', 'AmerType Md BT', 'Andalus', 'Angsana New', 'AngsanaUPC', 'Antique Olive', 'Aparajita', 'Apple Chancery', 'Apple Color Emoji', 'Apple SD Gothic Neo', 'Arabic Typesetting', 'ARCHER',
        'ARNO PRO', 'Arrus BT', 'Aurora Cn BT', 'AvantGarde Bk BT', 'AvantGarde Md BT', 'AVENIR', 'Ayuthaya', 'Bandy', 'Bangla Sangam MN', 'Bank Gothic', 'BankGothic Md BT', 'Baskerville',
        'Baskerville Old Face', 'Batang', 'BatangChe', 'Bauer Bodoni', 'Bauhaus 93', 'Bazooka', 'Bell MT', 'Bembo', 'Benguiat Bk BT', 'Berlin Sans FB', 'Berlin Sans FB Demi', 'Bernard MT Condensed', 'BernhardFashion BT', 'BernhardMod BT', 'Big Caslon', 'BinnerD',
        'Blackadder ITC', 'BlairMdITC TT', 'Bodoni 72', 'Bodoni 72 Oldstyle', 'Bodoni 72 Smallcaps', 'Bodoni MT', 'Bodoni MT Black', 'Bodoni MT Condensed', 'Bodoni MT Poster Compressed',
        'Bookshelf Symbol 7', 'Boulder', 'Bradley Hand', 'Bradley Hand ITC', 'Bremen Bd BT', 'Britannic Bold', 'Broadway', 'Browallia New', 'BrowalliaUPC', 'Brush Script MT', 'Californian FB', 'Calisto MT', 'Calligrapher', 'Candara',
        'CaslonOpnface BT', 'Castellar', 'Centaur', 'Cezanne', 'CG Omega', 'CG Times', 'Chalkboard', 'Chalkboard SE', 'Chalkduster', 'Charlesworth', 'Charter Bd BT', 'Charter BT', 'Chaucer',
        'ChelthmITC Bk BT', 'Chiller', 'Clarendon', 'Clarendon Condensed', 'CloisterBlack BT', 'Cochin', 'Colonna MT', 'Constantia', 'Cooper Black', 'Copperplate', 'Copperplate Gothic', 'Copperplate Gothic Bold',
        'Copperplate Gothic Light', 'CopperplGoth Bd BT', 'Corbel', 'Cordia New', 'CordiaUPC', 'Cornerstone', 'Coronet', 'Cuckoo', 'Curlz MT', 'DaunPenh', 'Dauphin', 'David', 'DB LCD Temp', 'DELICIOUS', 'Denmark',
        'DFKai-SB', 'Didot', 'DilleniaUPC', 'DIN', 'DokChampa', 'Dotum', 'DotumChe', 'Ebrima', 'Edwardian Script ITC', 'Elephant', 'English 111 Vivace BT', 'Engravers MT', 'EngraversGothic BT', 'Eras Bold ITC', 'Eras Demi ITC', 'Eras Light ITC', 'Eras Medium ITC',
        'EucrosiaUPC', 'Euphemia', 'Euphemia UCAS', 'EUROSTILE', 'Exotc350 Bd BT', 'FangSong', 'Felix Titling', 'Fixedsys', 'FONTIN', 'Footlight MT Light', 'Forte',
        'FrankRuehl', 'Fransiscan', 'Freefrm721 Blk BT', 'FreesiaUPC', 'Freestyle Script', 'French Script MT', 'FrnkGothITC Bk BT', 'Fruitger', 'FRUTIGER',
        'Futura', 'Futura Bk BT', 'Futura Lt BT', 'Futura Md BT', 'Futura ZBlk BT', 'FuturaBlack BT', 'Gabriola', 'Galliard BT', 'Gautami', 'Geeza Pro', 'Geometr231 BT', 'Geometr231 Hv BT', 'Geometr231 Lt BT', 'GeoSlab 703 Lt BT',
        'GeoSlab 703 XBd BT', 'Gigi', 'Gill Sans', 'Gill Sans MT', 'Gill Sans MT Condensed', 'Gill Sans MT Ext Condensed Bold', 'Gill Sans Ultra Bold', 'Gill Sans Ultra Bold Condensed', 'Gisha', 'Gloucester MT Extra Condensed', 'GOTHAM', 'GOTHAM BOLD',
        'Goudy Old Style', 'Goudy Stout', 'GoudyHandtooled BT', 'GoudyOLSt BT', 'Gujarati Sangam MN', 'Gulim', 'GulimChe', 'Gungsuh', 'GungsuhChe', 'Gurmukhi MN', 'Haettenschweiler', 'Harlow Solid Italic', 'Harrington', 'Heather', 'Heiti SC', 'Heiti TC', 'HELV',
        'Herald', 'High Tower Text', 'Hiragino Kaku Gothic ProN', 'Hiragino Mincho ProN', 'Hoefler Text', 'Humanst 521 Cn BT', 'Humanst521 BT', 'Humanst521 Lt BT', 'Imprint MT Shadow', 'Incised901 Bd BT', 'Incised901 BT',
        'Incised901 Lt BT', 'INCONSOLATA', 'Informal Roman', 'Informal011 BT', 'INTERSTATE', 'IrisUPC', 'Iskoola Pota', 'JasmineUPC', 'Jazz LET', 'Jenson', 'Jester', 'Jokerman', 'Juice ITC', 'Kabel Bk BT', 'Kabel Ult BT', 'Kailasa', 'KaiTi', 'Kalinga', 'Kannada Sangam MN',
        'Kartika', 'Kaufmann Bd BT', 'Kaufmann BT', 'Khmer UI', 'KodchiangUPC', 'Kokila', 'Korinna BT', 'Kristen ITC', 'Krungthep', 'Kunstler Script', 'Lao UI', 'Latha', 'Leelawadee', 'Letter Gothic', 'Levenim MT', 'LilyUPC', 'Lithograph', 'Lithograph Light', 'Long Island',
        'Lydian BT', 'Magneto', 'Maiandra GD', 'Malayalam Sangam MN', 'Malgun Gothic',
        'Mangal', 'Marigold', 'Marion', 'Marker Felt', 'Market', 'Marlett', 'Matisse ITC', 'Matura MT Script Capitals', 'Meiryo', 'Meiryo UI', 'Microsoft Himalaya', 'Microsoft JhengHei', 'Microsoft New Tai Lue', 'Microsoft PhagsPa', 'Microsoft Tai Le',
        'Microsoft Uighur', 'Microsoft YaHei', 'Microsoft Yi Baiti', 'MingLiU', 'MingLiU_HKSCS', 'MingLiU_HKSCS-ExtB', 'MingLiU-ExtB', 'Minion', 'Minion Pro', 'Miriam', 'Miriam Fixed', 'Mistral', 'Modern', 'Modern No. 20', 'Mona Lisa Solid ITC TT', 'Mongolian Baiti',
        'MONO', 'MoolBoran', 'Mrs Eaves', 'MS LineDraw', 'MS Mincho', 'MS PMincho', 'MS Reference Specialty', 'MS UI Gothic', 'MT Extra', 'MUSEO', 'MV Boli',
        'Nadeem', 'Narkisim', 'NEVIS', 'News Gothic', 'News GothicMT', 'NewsGoth BT', 'Niagara Engraved', 'Niagara Solid', 'Noteworthy', 'NSimSun', 'Nyala', 'OCR A Extended', 'Old Century', 'Old English Text MT', 'Onyx', 'Onyx BT', 'OPTIMA', 'Oriya Sangam MN',
        'OSAKA', 'OzHandicraft BT', 'Palace Script MT', 'Papyrus', 'Parchment', 'Party LET', 'Pegasus', 'Perpetua', 'Perpetua Titling MT', 'PetitaBold', 'Pickwick', 'Plantagenet Cherokee', 'Playbill', 'PMingLiU', 'PMingLiU-ExtB',
        'Poor Richard', 'Poster', 'PosterBodoni BT', 'PRINCETOWN LET', 'Pristina', 'PTBarnum BT', 'Pythagoras', 'Raavi', 'Rage Italic', 'Ravie', 'Ribbon131 Bd BT', 'Rockwell', 'Rockwell Condensed', 'Rockwell Extra Bold', 'Rod', 'Roman', 'Sakkal Majalla',
        'Santa Fe LET', 'Savoye LET', 'Sceptre', 'Script', 'Script MT Bold', 'SCRIPTINA', 'Serifa', 'Serifa BT', 'Serifa Th BT', 'ShelleyVolante BT', 'Sherwood',
        'Shonar Bangla', 'Showcard Gothic', 'Shruti', 'Signboard', 'SILKSCREEN', 'SimHei', 'Simplified Arabic', 'Simplified Arabic Fixed', 'SimSun', 'SimSun-ExtB', 'Sinhala Sangam MN', 'Sketch Rockwell', 'Skia', 'Small Fonts', 'Snap ITC', 'Snell Roundhand', 'Socket',
        'Souvenir Lt BT', 'Staccato222 BT', 'Steamer', 'Stencil', 'Storybook', 'Styllo', 'Subway', 'Swis721 BlkEx BT', 'Swiss911 XCm BT', 'Sylfaen', 'Synchro LET', 'System', 'Tamil Sangam MN', 'Technical', 'Teletype', 'Telugu Sangam MN', 'Tempus Sans ITC',
        'Terminal', 'Thonburi', 'Traditional Arabic', 'Trajan', 'TRAJAN PRO', 'Tristan', 'Tubular', 'Tunga', 'Tw Cen MT', 'Tw Cen MT Condensed', 'Tw Cen MT Condensed Extra Bold',
        'TypoUpright BT', 'Unicorn', 'Univers', 'Univers CE 55 Medium', 'Univers Condensed', 'Utsaah', 'Vagabond', 'Vani', 'Vijaya', 'Viner Hand ITC', 'VisualUI', 'Vivaldi', 'Vladimir Script', 'Vrinda', 'Westminster', 'WHITNEY', 'Wide Latin',
        'ZapfEllipt BT', 'ZapfHumnst BT', 'ZapfHumnst Dm BT', 'Zapfino', 'Zurich BlkEx BT', 'Zurich Ex BT', 'ZWAdobeF']
      fontList = fontList.concat(extendedFontList)
    }

    fontList = fontList.concat(options.fonts.userDefinedFonts)

    // remove duplicate fonts
    fontList = fontList.filter(function (font, position) {
      return fontList.indexOf(font) === position
    })

    // we use m or w because these two characters take up the maximum width.
    // And we use a LLi so that the same matching fonts can get separated
    var testString = 'mmmmmmmmmmlli'

    // we test using 72px font size, we may use any size. I guess larger the better.
    var testSize = '72px'

    var h = document.getElementsByTagName('body')[0]

    // div to load spans for the base fonts
    var baseFontsDiv = document.createElement('div')

    // div to load spans for the fonts to detect
    var fontsDiv = document.createElement('div')

    var defaultWidth = {}
    var defaultHeight = {}

    // creates a span where the fonts will be loaded
    var createSpan = function () {
      var s = document.createElement('span')
      /*
       * We need this css as in some weird browser this
       * span elements shows up for a microSec which creates a
       * bad user experience
       */
      s.style.position = 'absolute'
      s.style.left = '-9999px'
      s.style.fontSize = testSize

      // css font reset to reset external styles
      s.style.fontStyle = 'normal'
      s.style.fontWeight = 'normal'
      s.style.letterSpacing = 'normal'
      s.style.lineBreak = 'auto'
      s.style.lineHeight = 'normal'
      s.style.textTransform = 'none'
      s.style.textAlign = 'left'
      s.style.textDecoration = 'none'
      s.style.textShadow = 'none'
      s.style.whiteSpace = 'normal'
      s.style.wordBreak = 'normal'
      s.style.wordSpacing = 'normal'

      s.innerHTML = testString
      return s
    }

    // creates a span and load the font to detect and a base font for fallback
    var createSpanWithFonts = function (fontToDetect, baseFont) {
      var s = createSpan()
      s.style.fontFamily = "'" + fontToDetect + "'," + baseFont
      return s
    }

    // creates spans for the base fonts and adds them to baseFontsDiv
    var initializeBaseFontsSpans = function () {
      var spans = []
      for (var index = 0, length = baseFonts.length; index < length; index++) {
        var s = createSpan()
        s.style.fontFamily = baseFonts[index]
        baseFontsDiv.appendChild(s)
        spans.push(s)
      }
      return spans
    }

    // creates spans for the fonts to detect and adds them to fontsDiv
    var initializeFontsSpans = function () {
      var spans = {}
      for (var i = 0, l = fontList.length; i < l; i++) {
        var fontSpans = []
        for (var j = 0, numDefaultFonts = baseFonts.length; j < numDefaultFonts; j++) {
          var s = createSpanWithFonts(fontList[i], baseFonts[j])
          fontsDiv.appendChild(s)
          fontSpans.push(s)
        }
        spans[fontList[i]] = fontSpans // Stores {fontName : [spans for that font]}
      }
      return spans
    }

    // checks if a font is available
    var isFontAvailable = function (fontSpans) {
      var detected = false
      for (var i = 0; i < baseFonts.length; i++) {
        detected = (fontSpans[i].offsetWidth !== defaultWidth[baseFonts[i]] || fontSpans[i].offsetHeight !== defaultHeight[baseFonts[i]])
        if (detected) {
          return detected
        }
      }
      return detected
    }

    // create spans for base fonts
    var baseFontsSpans = initializeBaseFontsSpans()

    // add the spans to the DOM
    h.appendChild(baseFontsDiv)

    // get the default width for the three base fonts
    for (var index = 0, length = baseFonts.length; index < length; index++) {
      defaultWidth[baseFonts[index]] = baseFontsSpans[index].offsetWidth // width for the default font
      defaultHeight[baseFonts[index]] = baseFontsSpans[index].offsetHeight // height for the default font
    }

    // create spans for fonts to detect
    var fontsSpans = initializeFontsSpans()

    // add all the spans to the DOM
    h.appendChild(fontsDiv)

    // check available fonts
    var available = []
    for (var i = 0, l = fontList.length; i < l; i++) {
      if (isFontAvailable(fontsSpans[fontList[i]])) {
        available.push(fontList[i])
      }
    }

    // remove spans from DOM
    h.removeChild(fontsDiv)
    h.removeChild(baseFontsDiv)
    done(available)
  }
  var pluginsComponent = function (done, options) {
    if (isIE()) {
      if (!options.plugins.excludeIE) {
        done(getIEPlugins(options))
      } else {
        done(options.EXCLUDED)
      }
    } else {
      done(getRegularPlugins(options))
    }
  }
  var getRegularPlugins = function (options) {
    if (navigator.plugins == null) {
      return options.NOT_AVAILABLE
    }

    var plugins = []
    // plugins isn't defined in Node envs.
    for (var i = 0, l = navigator.plugins.length; i < l; i++) {
      if (navigator.plugins[i]) { plugins.push(navigator.plugins[i]) }
    }

    // sorting plugins only for those user agents, that we know randomize the plugins
    // every time we try to enumerate them
    if (pluginsShouldBeSorted(options)) {
      plugins = plugins.sort(function (a, b) {
        if (a.name > b.name) { return 1 }
        if (a.name < b.name) { return -1 }
        return 0
      })
    }
    return map(plugins, function (p) {
      var mimeTypes = map(p, function (mt) {
        return [mt.type, mt.suffixes]
      })
      return [p.name, p.description, mimeTypes]
    })
  }
  var getIEPlugins = function (options) {
    var result = []
    if ((Object.getOwnPropertyDescriptor && Object.getOwnPropertyDescriptor(window, 'ActiveXObject')) || ('ActiveXObject' in window)) {
      var names = [
        'AcroPDF.PDF', // Adobe PDF reader 7+
        'Adodb.Stream',
        'AgControl.AgControl', // Silverlight
        'DevalVRXCtrl.DevalVRXCtrl.1',
        'MacromediaFlashPaper.MacromediaFlashPaper',
        'Msxml2.DOMDocument',
        'Msxml2.XMLHTTP',
        'PDF.PdfCtrl', // Adobe PDF reader 6 and earlier, brrr
        'QuickTime.QuickTime', // QuickTime
        'QuickTimeCheckObject.QuickTimeCheck.1',
        'RealPlayer',
        'RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)',
        'RealVideo.RealVideo(tm) ActiveX Control (32-bit)',
        'Scripting.Dictionary',
        'SWCtl.SWCtl', // ShockWave player
        'Shell.UIHelper',
        'ShockwaveFlash.ShockwaveFlash', // flash plugin
        'Skype.Detection',
        'TDCCtl.TDCCtl',
        'WMPlayer.OCX', // Windows media player
        'rmocx.RealPlayer G2 Control',
        'rmocx.RealPlayer G2 Control.1'
      ]
      // starting to detect plugins in IE
      result = map(names, function (name) {
        try {
          // eslint-disable-next-line no-new
          new window.ActiveXObject(name)
          return name
        } catch (e) {
          return options.ERROR
        }
      })
    } else {
      result.push(options.NOT_AVAILABLE)
    }
    if (navigator.plugins) {
      result = result.concat(getRegularPlugins(options))
    }
    return result
  }
  var pluginsShouldBeSorted = function (options) {
    var should = false
    for (var i = 0, l = options.plugins.sortPluginsFor.length; i < l; i++) {
      var re = options.plugins.sortPluginsFor[i]
      if (navigator.userAgent.match(re)) {
        should = true
        break
      }
    }
    return should
  }
  var touchSupportKey = function (done) {
    done(getTouchSupport())
  }
  var hardwareConcurrencyKey = function (done, options) {
    done(getHardwareConcurrency(options))
  }
  var hasSessionStorage = function (options) {
    try {
      return !!window.sessionStorage
    } catch (e) {
      return options.ERROR // SecurityError when referencing it means it exists
    }
  }

  // https://bugzilla.mozilla.org/show_bug.cgi?id=781447
  var hasLocalStorage = function (options) {
    try {
      return !!window.localStorage
    } catch (e) {
      return options.ERROR // SecurityError when referencing it means it exists
    }
  }
  var hasIndexedDB = function (options) {
    // IE and Edge don't allow accessing indexedDB in private mode, therefore IE and Edge will have different
    // fingerprints in normal and private modes.
    if (isIEOrOldEdge()) {
      return options.EXCLUDED
    }
    try {
      return !!window.indexedDB
    } catch (e) {
      return options.ERROR // SecurityError when referencing it means it exists
    }
  }
  var getHardwareConcurrency = function (options) {
    if (navigator.hardwareConcurrency) {
      return navigator.hardwareConcurrency
    }
    return options.NOT_AVAILABLE
  }
  var getNavigatorCpuClass = function (options) {
    return navigator.cpuClass || options.NOT_AVAILABLE
  }
  var getNavigatorPlatform = function (options) {
    if (navigator.platform) {
      return navigator.platform
    } else {
      return options.NOT_AVAILABLE
    }
  }
  var getDoNotTrack = function (options) {
    if (navigator.doNotTrack) {
      return navigator.doNotTrack
    } else if (navigator.msDoNotTrack) {
      return navigator.msDoNotTrack
    } else if (window.doNotTrack) {
      return window.doNotTrack
    } else {
      return options.NOT_AVAILABLE
    }
  }
  // This is a crude and primitive touch screen detection.
  // It's not possible to currently reliably detect the  availability of a touch screen
  // with a JS, without actually subscribing to a touch event.
  // http://www.stucox.com/blog/you-cant-detect-a-touchscreen/
  // https://github.com/Modernizr/Modernizr/issues/548
  // method returns an array of 3 values:
  // maxTouchPoints, the success or failure of creating a TouchEvent,
  // and the availability of the 'ontouchstart' property

  var getTouchSupport = function () {
    var maxTouchPoints = 0
    var touchEvent
    if (typeof navigator.maxTouchPoints !== 'undefined') {
      maxTouchPoints = navigator.maxTouchPoints
    } else if (typeof navigator.msMaxTouchPoints !== 'undefined') {
      maxTouchPoints = navigator.msMaxTouchPoints
    }
    try {
      document.createEvent('TouchEvent')
      touchEvent = true
    } catch (_) {
      touchEvent = false
    }
    var touchStart = 'ontouchstart' in window
    return [maxTouchPoints, touchEvent, touchStart]
  }
  // https://www.browserleaks.com/canvas#how-does-it-work

  var getCanvasFp = function (options) {
    var result = []
    // Very simple now, need to make it more complex (geo shapes etc)
    var canvas = document.createElement('canvas')
    canvas.width = 2000
    canvas.height = 200
    canvas.style.display = 'inline'
    var ctx = canvas.getContext('2d')
    // detect browser support of canvas winding
    // http://blogs.adobe.com/webplatform/2013/01/30/winding-rules-in-canvas/
    // https://github.com/Modernizr/Modernizr/blob/master/feature-detects/canvas/winding.js
    ctx.rect(0, 0, 10, 10)
    ctx.rect(2, 2, 6, 6)
    result.push('canvas winding:' + ((ctx.isPointInPath(5, 5, 'evenodd') === false) ? 'yes' : 'no'))

    ctx.textBaseline = 'alphabetic'
    ctx.fillStyle = '#f60'
    ctx.fillRect(125, 1, 62, 20)
    ctx.fillStyle = '#069'
    // https://github.com/fingerprintjs/fingerprintjs/issues/66
    if (options.dontUseFakeFontInCanvas) {
      ctx.font = '11pt Arial'
    } else {
      ctx.font = '11pt no-real-font-123'
    }
    ctx.fillText('Cwm fjordbank glyphs vext quiz, \ud83d\ude03', 2, 15)
    ctx.fillStyle = 'rgba(102, 204, 0, 0.2)'
    ctx.font = '18pt Arial'
    ctx.fillText('Cwm fjordbank glyphs vext quiz, \ud83d\ude03', 4, 45)

    // canvas blending
    // http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/
    // http://jsfiddle.net/NDYV8/16/
    ctx.globalCompositeOperation = 'multiply'
    ctx.fillStyle = 'rgb(255,0,255)'
    ctx.beginPath()
    ctx.arc(50, 50, 50, 0, Math.PI * 2, true)
    ctx.closePath()
    ctx.fill()
    ctx.fillStyle = 'rgb(0,255,255)'
    ctx.beginPath()
    ctx.arc(100, 50, 50, 0, Math.PI * 2, true)
    ctx.closePath()
    ctx.fill()
    ctx.fillStyle = 'rgb(255,255,0)'
    ctx.beginPath()
    ctx.arc(75, 100, 50, 0, Math.PI * 2, true)
    ctx.closePath()
    ctx.fill()
    ctx.fillStyle = 'rgb(255,0,255)'
    // canvas winding
    // http://blogs.adobe.com/webplatform/2013/01/30/winding-rules-in-canvas/
    // http://jsfiddle.net/NDYV8/19/
    ctx.arc(75, 75, 75, 0, Math.PI * 2, true)
    ctx.arc(75, 75, 25, 0, Math.PI * 2, true)
    ctx.fill('evenodd')

    if (canvas.toDataURL) { result.push('canvas fp:' + canvas.toDataURL()) }
    return result
  }
  var getWebglFp = function () {
    var gl
    var fa2s = function (fa) {
      gl.clearColor(0.0, 0.0, 0.0, 1.0)
      gl.enable(gl.DEPTH_TEST)
      gl.depthFunc(gl.LEQUAL)
      gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)
      return '[' + fa[0] + ', ' + fa[1] + ']'
    }
    var maxAnisotropy = function (gl) {
      var ext = gl.getExtension('EXT_texture_filter_anisotropic') || gl.getExtension('WEBKIT_EXT_texture_filter_anisotropic') || gl.getExtension('MOZ_EXT_texture_filter_anisotropic')
      if (ext) {
        var anisotropy = gl.getParameter(ext.MAX_TEXTURE_MAX_ANISOTROPY_EXT)
        if (anisotropy === 0) {
          anisotropy = 2
        }
        return anisotropy
      } else {
        return null
      }
    }

    gl = getWebglCanvas()
    if (!gl) { return null }
    // WebGL fingerprinting is a combination of techniques, found in MaxMind antifraud script & Augur fingerprinting.
    // First it draws a gradient object with shaders and convers the image to the Base64 string.
    // Then it enumerates all WebGL extensions & capabilities and appends them to the Base64 string, resulting in a huge WebGL string, potentially very unique on each device
    // Since iOS supports webgl starting from version 8.1 and 8.1 runs on several graphics chips, the results may be different across ios devices, but we need to verify it.
    var result = []
    var vShaderTemplate = 'attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}'
    var fShaderTemplate = 'precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}'
    var vertexPosBuffer = gl.createBuffer()
    gl.bindBuffer(gl.ARRAY_BUFFER, vertexPosBuffer)
    var vertices = new Float32Array([-0.2, -0.9, 0, 0.4, -0.26, 0, 0, 0.732134444, 0])
    gl.bufferData(gl.ARRAY_BUFFER, vertices, gl.STATIC_DRAW)
    vertexPosBuffer.itemSize = 3
    vertexPosBuffer.numItems = 3
    var program = gl.createProgram()
    var vshader = gl.createShader(gl.VERTEX_SHADER)
    gl.shaderSource(vshader, vShaderTemplate)
    gl.compileShader(vshader)
    var fshader = gl.createShader(gl.FRAGMENT_SHADER)
    gl.shaderSource(fshader, fShaderTemplate)
    gl.compileShader(fshader)
    gl.attachShader(program, vshader)
    gl.attachShader(program, fshader)
    gl.linkProgram(program)
    gl.useProgram(program)
    program.vertexPosAttrib = gl.getAttribLocation(program, 'attrVertex')
    program.offsetUniform = gl.getUniformLocation(program, 'uniformOffset')
    gl.enableVertexAttribArray(program.vertexPosArray)
    gl.vertexAttribPointer(program.vertexPosAttrib, vertexPosBuffer.itemSize, gl.FLOAT, !1, 0, 0)
    gl.uniform2f(program.offsetUniform, 1, 1)
    gl.drawArrays(gl.TRIANGLE_STRIP, 0, vertexPosBuffer.numItems)
    try {
      result.push(gl.canvas.toDataURL())
    } catch (e) {
      /* .toDataURL may be absent or broken (blocked by extension) */
    }
    result.push('extensions:' + (gl.getSupportedExtensions() || []).join(';'))
    result.push('webgl aliased line width range:' + fa2s(gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE)))
    result.push('webgl aliased point size range:' + fa2s(gl.getParameter(gl.ALIASED_POINT_SIZE_RANGE)))
    result.push('webgl alpha bits:' + gl.getParameter(gl.ALPHA_BITS))
    result.push('webgl antialiasing:' + (gl.getContextAttributes().antialias ? 'yes' : 'no'))
    result.push('webgl blue bits:' + gl.getParameter(gl.BLUE_BITS))
    result.push('webgl depth bits:' + gl.getParameter(gl.DEPTH_BITS))
    result.push('webgl green bits:' + gl.getParameter(gl.GREEN_BITS))
    result.push('webgl max anisotropy:' + maxAnisotropy(gl))
    result.push('webgl max combined texture image units:' + gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS))
    result.push('webgl max cube map texture size:' + gl.getParameter(gl.MAX_CUBE_MAP_TEXTURE_SIZE))
    result.push('webgl max fragment uniform vectors:' + gl.getParameter(gl.MAX_FRAGMENT_UNIFORM_VECTORS))
    result.push('webgl max render buffer size:' + gl.getParameter(gl.MAX_RENDERBUFFER_SIZE))
    result.push('webgl max texture image units:' + gl.getParameter(gl.MAX_TEXTURE_IMAGE_UNITS))
    result.push('webgl max texture size:' + gl.getParameter(gl.MAX_TEXTURE_SIZE))
    result.push('webgl max varying vectors:' + gl.getParameter(gl.MAX_VARYING_VECTORS))
    result.push('webgl max vertex attribs:' + gl.getParameter(gl.MAX_VERTEX_ATTRIBS))
    result.push('webgl max vertex texture image units:' + gl.getParameter(gl.MAX_VERTEX_TEXTURE_IMAGE_UNITS))
    result.push('webgl max vertex uniform vectors:' + gl.getParameter(gl.MAX_VERTEX_UNIFORM_VECTORS))
    result.push('webgl max viewport dims:' + fa2s(gl.getParameter(gl.MAX_VIEWPORT_DIMS)))
    result.push('webgl red bits:' + gl.getParameter(gl.RED_BITS))
    result.push('webgl renderer:' + gl.getParameter(gl.RENDERER))
    result.push('webgl shading language version:' + gl.getParameter(gl.SHADING_LANGUAGE_VERSION))
    result.push('webgl stencil bits:' + gl.getParameter(gl.STENCIL_BITS))
    result.push('webgl vendor:' + gl.getParameter(gl.VENDOR))
    result.push('webgl version:' + gl.getParameter(gl.VERSION))

    try {
      // Add the unmasked vendor and unmasked renderer if the debug_renderer_info extension is available
      var extensionDebugRendererInfo = gl.getExtension('WEBGL_debug_renderer_info')
      if (extensionDebugRendererInfo) {
        result.push('webgl unmasked vendor:' + gl.getParameter(extensionDebugRendererInfo.UNMASKED_VENDOR_WEBGL))
        result.push('webgl unmasked renderer:' + gl.getParameter(extensionDebugRendererInfo.UNMASKED_RENDERER_WEBGL))
      }
    } catch (e) { /* squelch */ }

    if (!gl.getShaderPrecisionFormat) {
      loseWebglContext(gl)
      return result
    }

    each(['FLOAT', 'INT'], function (numType) {
      each(['VERTEX', 'FRAGMENT'], function (shader) {
        each(['HIGH', 'MEDIUM', 'LOW'], function (numSize) {
          each(['precision', 'rangeMin', 'rangeMax'], function (key) {
            var format = gl.getShaderPrecisionFormat(gl[shader + '_SHADER'], gl[numSize + '_' + numType])[key]
            if (key !== 'precision') {
              key = 'precision ' + key
            }
            var line = ['webgl ', shader.toLowerCase(), ' shader ', numSize.toLowerCase(), ' ', numType.toLowerCase(), ' ', key, ':', format].join('')
            result.push(line)
          })
        })
      })
    })
    loseWebglContext(gl)
    return result
  }
  var getWebglVendorAndRenderer = function () {
    /* This a subset of the WebGL fingerprint with a lot of entropy, while being reasonably browser-independent */
    try {
      var glContext = getWebglCanvas()
      var extensionDebugRendererInfo = glContext.getExtension('WEBGL_debug_renderer_info')
      var params = glContext.getParameter(extensionDebugRendererInfo.UNMASKED_VENDOR_WEBGL) + '~' + glContext.getParameter(extensionDebugRendererInfo.UNMASKED_RENDERER_WEBGL)
      loseWebglContext(glContext)
      return params
    } catch (e) {
      return null
    }
  }
  var getAdBlock = function () {
    var ads = document.createElement('div')
    ads.innerHTML = '&nbsp;'
    ads.className = 'adsbox'
    var result = false
    try {
      // body may not exist, that's why we need try/catch
      document.body.appendChild(ads)
      result = document.getElementsByClassName('adsbox')[0].offsetHeight === 0
      document.body.removeChild(ads)
    } catch (e) {
      result = false
    }
    return result
  }
  var getHasLiedLanguages = function () {
    // We check if navigator.language is equal to the first language of navigator.languages
    // navigator.languages is undefined on IE11 (and potentially older IEs)
    if (typeof navigator.languages !== 'undefined') {
      try {
        var firstLanguages = navigator.languages[0].substr(0, 2)
        if (firstLanguages !== navigator.language.substr(0, 2)) {
          return true
        }
      } catch (err) {
        return true
      }
    }
    return false
  }
  var getHasLiedResolution = function () {
    return window.screen.width < window.screen.availWidth || window.screen.height < window.screen.availHeight
  }
  var getHasLiedOs = function () {
    var userAgent = navigator.userAgent.toLowerCase()
    var oscpu = navigator.oscpu
    var platform = navigator.platform.toLowerCase()
    var os
    // We extract the OS from the user agent (respect the order of the if else if statement)
    if (userAgent.indexOf('windows phone') >= 0) {
      os = 'Windows Phone'
    } else if (userAgent.indexOf('windows') >= 0 || userAgent.indexOf('win16') >= 0 || userAgent.indexOf('win32') >= 0 || userAgent.indexOf('win64') >= 0 || userAgent.indexOf('win95') >= 0 || userAgent.indexOf('win98') >= 0 || userAgent.indexOf('winnt') >= 0 || userAgent.indexOf('wow64') >= 0) {
      os = 'Windows'
    } else if (userAgent.indexOf('android') >= 0) {
      os = 'Android'
    } else if (userAgent.indexOf('linux') >= 0 || userAgent.indexOf('cros') >= 0 || userAgent.indexOf('x11') >= 0) {
      os = 'Linux'
    } else if (userAgent.indexOf('iphone') >= 0 || userAgent.indexOf('ipad') >= 0 || userAgent.indexOf('ipod') >= 0 || userAgent.indexOf('crios') >= 0 || userAgent.indexOf('fxios') >= 0) {
      os = 'iOS'
    } else if (userAgent.indexOf('macintosh') >= 0 || userAgent.indexOf('mac_powerpc)') >= 0) {
      os = 'Mac'
    } else {
      os = 'Other'
    }
    // We detect if the person uses a touch device
    var mobileDevice = (('ontouchstart' in window) ||
      (navigator.maxTouchPoints > 0) ||
      (navigator.msMaxTouchPoints > 0))

    if (mobileDevice && os !== 'Windows' && os !== 'Windows Phone' && os !== 'Android' && os !== 'iOS' && os !== 'Other' && userAgent.indexOf('cros') === -1) {
      return true
    }

    // We compare oscpu with the OS extracted from the UA
    if (typeof oscpu !== 'undefined') {
      oscpu = oscpu.toLowerCase()
      if (oscpu.indexOf('win') >= 0 && os !== 'Windows' && os !== 'Windows Phone') {
        return true
      } else if (oscpu.indexOf('linux') >= 0 && os !== 'Linux' && os !== 'Android') {
        return true
      } else if (oscpu.indexOf('mac') >= 0 && os !== 'Mac' && os !== 'iOS') {
        return true
      } else if ((oscpu.indexOf('win') === -1 && oscpu.indexOf('linux') === -1 && oscpu.indexOf('mac') === -1) !== (os === 'Other')) {
        return true
      }
    }

    // We compare platform with the OS extracted from the UA
    if (platform.indexOf('win') >= 0 && os !== 'Windows' && os !== 'Windows Phone') {
      return true
    } else if ((platform.indexOf('linux') >= 0 || platform.indexOf('android') >= 0 || platform.indexOf('pike') >= 0) && os !== 'Linux' && os !== 'Android') {
      return true
    } else if ((platform.indexOf('mac') >= 0 || platform.indexOf('ipad') >= 0 || platform.indexOf('ipod') >= 0 || platform.indexOf('iphone') >= 0) && os !== 'Mac' && os !== 'iOS') {
      return true
    } else if (platform.indexOf('arm') >= 0 && os === 'Windows Phone') {
      return false
    } else if (platform.indexOf('pike') >= 0 && userAgent.indexOf('opera mini') >= 0) {
      return false
    } else {
      var platformIsOther = platform.indexOf('win') < 0 &&
        platform.indexOf('linux') < 0 &&
        platform.indexOf('mac') < 0 &&
        platform.indexOf('iphone') < 0 &&
        platform.indexOf('ipad') < 0 &&
        platform.indexOf('ipod') < 0
      if (platformIsOther !== (os === 'Other')) {
        return true
      }
    }

    return typeof navigator.plugins === 'undefined' && os !== 'Windows' && os !== 'Windows Phone'
  }
  var getHasLiedBrowser = function () {
    var userAgent = navigator.userAgent.toLowerCase()
    var productSub = navigator.productSub

    // we extract the browser from the user agent (respect the order of the tests)
    var browser
    if (userAgent.indexOf('edge/') >= 0 || userAgent.indexOf('iemobile/') >= 0) {
      // Unreliable, different versions use EdgeHTML, Webkit, Blink, etc.
      return false
    } else if (userAgent.indexOf('opera mini') >= 0) {
      // Unreliable, different modes use Presto, WebView, Webkit, etc.
      return false
    } else if (userAgent.indexOf('firefox/') >= 0) {
      browser = 'Firefox'
    } else if (userAgent.indexOf('opera/') >= 0 || userAgent.indexOf(' opr/') >= 0) {
      browser = 'Opera'
    } else if (userAgent.indexOf('chrome/') >= 0) {
      browser = 'Chrome'
    } else if (userAgent.indexOf('safari/') >= 0) {
      if (userAgent.indexOf('android 1.') >= 0 || userAgent.indexOf('android 2.') >= 0 || userAgent.indexOf('android 3.') >= 0 || userAgent.indexOf('android 4.') >= 0) {
        browser = 'AOSP'
      } else {
        browser = 'Safari'
      }
    } else if (userAgent.indexOf('trident/') >= 0) {
      browser = 'Internet Explorer'
    } else {
      browser = 'Other'
    }

    if ((browser === 'Chrome' || browser === 'Safari' || browser === 'Opera') && productSub !== '20030107') {
      return true
    }

    // eslint-disable-next-line no-eval
    var tempRes = eval.toString().length
    if (tempRes === 37 && browser !== 'Safari' && browser !== 'Firefox' && browser !== 'Other') {
      return true
    } else if (tempRes === 39 && browser !== 'Internet Explorer' && browser !== 'Other') {
      return true
    } else if (tempRes === 33 && browser !== 'Chrome' && browser !== 'AOSP' && browser !== 'Opera' && browser !== 'Other') {
      return true
    }

    // We create an error to see how it is handled
    var errFirefox
    try {
      // eslint-disable-next-line no-throw-literal
      throw 'a'
    } catch (err) {
      try {
        err.toSource()
        errFirefox = true
      } catch (errOfErr) {
        errFirefox = false
      }
    }
    return errFirefox && browser !== 'Firefox' && browser !== 'Other'
  }
  var isCanvasSupported = function () {
    var elem = document.createElement('canvas')
    return !!(elem.getContext && elem.getContext('2d'))
  }
  var isWebGlSupported = function () {
    // code taken from Modernizr
    if (!isCanvasSupported()) {
      return false
    }

    var glContext = getWebglCanvas()
    var isSupported = !!window.WebGLRenderingContext && !!glContext
    loseWebglContext(glContext)
    return isSupported
  }
  var isIE = function () {
    if (navigator.appName === 'Microsoft Internet Explorer') {
      return true
    } else if (navigator.appName === 'Netscape' && /Trident/.test(navigator.userAgent)) { // IE 11
      return true
    }
    return false
  }
  var isIEOrOldEdge = function () {
    // The properties are checked to be in IE 10, IE 11 and Edge 18 and not to be in other browsers
    return ('msWriteProfilerMark' in window) + ('msLaunchUri' in navigator) + ('msSaveBlob' in navigator) >= 2
  }
  var hasSwfObjectLoaded = function () {
    return typeof window.swfobject !== 'undefined'
  }
  var hasMinFlashInstalled = function () {
    return window.swfobject.hasFlashPlayerVersion('9.0.0')
  }
  var addFlashDivNode = function (options) {
    var node = document.createElement('div')
    node.setAttribute('id', options.fonts.swfContainerId)
    document.body.appendChild(node)
  }
  var loadSwfAndDetectFonts = function (done, options) {
    var hiddenCallback = '___fp_swf_loaded'
    window[hiddenCallback] = function (fonts) {
      done(fonts)
    }
    var id = options.fonts.swfContainerId
    addFlashDivNode()
    var flashvars = { onReady: hiddenCallback }
    var flashparams = { allowScriptAccess: 'always', menu: 'false' }
    window.swfobject.embedSWF(options.fonts.swfPath, id, '1', '1', '9.0.0', false, flashvars, flashparams, {})
  }
  var getWebglCanvas = function () {
    var canvas = document.createElement('canvas')
    var gl = null
    try {
      gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl')
    } catch (e) { /* squelch */ }
    if (!gl) { gl = null }
    return gl
  }
  var loseWebglContext = function (context) {
    var loseContextExtension = context.getExtension('WEBGL_lose_context')
    if (loseContextExtension != null) {
      loseContextExtension.loseContext()
    }
  }

  var components = [
    { key: 'userAgent', getData: UserAgent },
    { key: 'webdriver', getData: webdriver },
    { key: 'language', getData: languageKey },
    { key: 'colorDepth', getData: colorDepthKey },
    { key: 'deviceMemory', getData: deviceMemoryKey },
    { key: 'pixelRatio', getData: pixelRatioKey },
    { key: 'hardwareConcurrency', getData: hardwareConcurrencyKey },
    { key: 'screenResolution', getData: screenResolutionKey },
    { key: 'availableScreenResolution', getData: availableScreenResolutionKey },
    { key: 'timezoneOffset', getData: timezoneOffset },
    { key: 'timezone', getData: timezone },
    { key: 'sessionStorage', getData: sessionStorageKey },
    { key: 'localStorage', getData: localStorageKey },
    { key: 'indexedDb', getData: indexedDbKey },
    { key: 'addBehavior', getData: addBehaviorKey },
    { key: 'openDatabase', getData: openDatabaseKey },
    { key: 'cpuClass', getData: cpuClassKey },
    { key: 'platform', getData: platformKey },
    { key: 'doNotTrack', getData: doNotTrackKey },
    { key: 'plugins', getData: pluginsComponent },
    { key: 'canvas', getData: canvasKey },
    { key: 'webgl', getData: webglKey },
    { key: 'webglVendorAndRenderer', getData: webglVendorAndRendererKey },
    { key: 'adBlock', getData: adBlockKey },
    { key: 'hasLiedLanguages', getData: hasLiedLanguagesKey },
    { key: 'hasLiedResolution', getData: hasLiedResolutionKey },
    { key: 'hasLiedOs', getData: hasLiedOsKey },
    { key: 'hasLiedBrowser', getData: hasLiedBrowserKey },
    { key: 'touchSupport', getData: touchSupportKey },
    { key: 'fonts', getData: jsFontsKey, pauseBefore: true },
    { key: 'fontsFlash', getData: flashFontsKey, pauseBefore: true },
    { key: 'audio', getData: audioKey },
    { key: 'enumerateDevices', getData: enumerateDevicesKey }
  ]

  var Fingerprint2 = function (options) {
    throw new Error("'new Fingerprint()' is deprecated, see https://github.com/fingerprintjs/fingerprintjs#upgrade-guide-from-182-to-200")
  }

  Fingerprint2.get = function (options, callback) {
    if (!callback) {
      callback = options
      options = {}
    } else if (!options) {
      options = {}
    }
    extendSoft(options, defaultOptions)
    options.components = options.extraComponents.concat(components)

    var keys = {
      data: [],
      addPreprocessedComponent: function (key, value) {
        if (typeof options.preprocessor === 'function') {
          value = options.preprocessor(key, value)
        }
        keys.data.push({ key: key, value: value })
      }
    }

    var i = -1
    var chainComponents = function (alreadyWaited) {
      i += 1
      if (i >= options.components.length) { // on finish
        callback(keys.data)
        return
      }
      var component = options.components[i]

      if (options.excludes[component.key]) {
        chainComponents(false) // skip
        return
      }

      if (!alreadyWaited && component.pauseBefore) {
        i -= 1
        setTimeout(function () {
          chainComponents(true)
        }, 1)
        return
      }

      try {
        component.getData(function (value) {
          keys.addPreprocessedComponent(component.key, value)
          chainComponents(false)
        }, options)
      } catch (error) {
        // main body error
        keys.addPreprocessedComponent(component.key, String(error))
        chainComponents(false)
      }
    }

    chainComponents(false)
  }

  Fingerprint2.getPromise = function (options) {
    return new Promise(function (resolve, reject) {
      Fingerprint2.get(options, resolve)
    })
  }

  Fingerprint2.getV18 = function (options, callback) {
    if (callback == null) {
      callback = options
      options = {}
    }
    return Fingerprint2.get(options, function (components) {
      var newComponents = []
      for (var i = 0; i < components.length; i++) {
        var component = components[i]
        if (component.value === (options.NOT_AVAILABLE || 'not available')) {
          newComponents.push({ key: component.key, value: 'unknown' })
        } else if (component.key === 'plugins') {
          newComponents.push({
            key: 'plugins',
            value: map(component.value, function (p) {
              var mimeTypes = map(p[2], function (mt) {
                if (mt.join) { return mt.join('~') }
                return mt
              }).join(',')
              return [p[0], p[1], mimeTypes].join('::')
            })
          })
        } else if (['canvas', 'webgl'].indexOf(component.key) !== -1 && Array.isArray(component.value)) {
          // sometimes WebGL returns error in headless browsers (during CI testing for example)
          // so we need to join only if the values are array
          newComponents.push({ key: component.key, value: component.value.join('~') })
        } else if (['sessionStorage', 'localStorage', 'indexedDb', 'addBehavior', 'openDatabase'].indexOf(component.key) !== -1) {
          if (component.value) {
            newComponents.push({ key: component.key, value: 1 })
          } else {
            // skip
            continue
          }
        } else {
          if (component.value) {
            newComponents.push(component.value.join ? { key: component.key, value: component.value.join(';') } : component)
          } else {
            newComponents.push({ key: component.key, value: component.value })
          }
        }
      }
      var murmur = x64hash128(map(newComponents, function (component) { return component.value }).join('~~~'), 31)
      callback(murmur, newComponents)
    })
  }

  Fingerprint2.x64hash128 = x64hash128
  Fingerprint2.VERSION = '2.1.4'
  return Fingerprint2
})


/***/ }),

/***/ 71818:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";

var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.encodeNonAsciiHTML = exports.encodeHTML = void 0;
var encode_html_js_1 = __importDefault(__webpack_require__(35504));
var escape_js_1 = __webpack_require__(5987);
var htmlReplacer = /[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;
/**
 * Encodes all characters in the input using HTML entities. This includes
 * characters that are valid ASCII characters in HTML documents, such as `#`.
 *
 * To get a more compact output, consider using the `encodeNonAsciiHTML`
 * function, which will only encode characters that are not valid in HTML
 * documents, as well as non-ASCII characters.
 *
 * If a character has no equivalent entity, a numeric hexadecimal reference
 * (eg. `&#xfc;`) will be used.
 */
function encodeHTML(data) {
    return encodeHTMLTrieRe(htmlReplacer, data);
}
exports.encodeHTML = encodeHTML;
/**
 * Encodes all non-ASCII characters, as well as characters not valid in HTML
 * documents using HTML entities. This function will not encode characters that
 * are valid in HTML documents, such as `#`.
 *
 * If a character has no equivalent entity, a numeric hexadecimal reference
 * (eg. `&#xfc;`) will be used.
 */
function encodeNonAsciiHTML(data) {
    return encodeHTMLTrieRe(escape_js_1.xmlReplacer, data);
}
exports.encodeNonAsciiHTML = encodeNonAsciiHTML;
function encodeHTMLTrieRe(regExp, str) {
    var ret = "";
    var lastIdx = 0;
    var match;
    while ((match = regExp.exec(str)) !== null) {
        var i = match.index;
        ret += str.substring(lastIdx, i);
        var char = str.charCodeAt(i);
        var next = encode_html_js_1.default.get(char);
        if (typeof next === "object") {
            // We are in a branch. Try to match the next char.
            if (i + 1 < str.length) {
                var nextChar = str.charCodeAt(i + 1);
                var value = typeof next.n === "number"
                    ? next.n === nextChar
                        ? next.o
                        : undefined
                    : next.n.get(nextChar);
                if (value !== undefined) {
                    ret += value;
                    lastIdx = regExp.lastIndex += 1;
                    continue;
                }
            }
            next = next.v;
        }
        // We might have a tree node without a value; skip and use a numeric entity.
        if (next !== undefined) {
            ret += next;
            lastIdx = i + 1;
        }
        else {
            var cp = (0, escape_js_1.getCodePoint)(str, i);
            ret += "&#x".concat(cp.toString(16), ";");
            // Increase by 1 if we have a surrogate pair
            lastIdx = regExp.lastIndex += Number(cp !== char);
        }
    }
    return ret + str.substr(lastIdx);
}
//# sourceMappingURL=encode.js.map

/***/ }),

/***/ 71991:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


/*
product_id:12313,  --产品Id
      product_name:"Nike耐克KD 8 Elite高帮男士篮球鞋",  --产品名称
      goods_id:12312,  --商品Id(非精确匹配则给出的是最低价的商品Id)
      spec_name_desc:"颜色:红色 尺码:36",  --商品规格描述
      goods_original_price:1231,  --商品官网原价 货币类型:官网货币 单位:分
      currency:"USD",  --货币类型(USD:美元,EUR:欧元,GBP:英镑,JPY:日元,KRW:日元,CNY:人民币)
      goods_price:69999, --商品剁手帮价格 货币类型:人民币 单位:分
      official_original_postage:2000,  --官网原运费 货币类型:人民币 单位:分
      official_postage:2000,  --官网邮费(剁手帮减免后) 货币类型:人民币 单位:分
      official_postage_rule:"满500免邮",  --官网邮费规则描述
      international_original_postage:3000,  --国际转运费 单位:分 单位:分
      international_postage:3000,  --国际转运费(剁手帮减免后) 单位:分 单位:分
      tax_original_fee:1231,  --应收税费 货币类型:人民币 单位:分
      tax_fee:1231,  --实收税费 货币类型:人民币 单位:分
      weight:123,  --重量 单位:克
      max_buy_num:10  --限购最大购买数量
*/
const template = __webpack_require__(26133);
const request = __webpack_require__(49388);
const parseprice = __webpack_require__(86421);
var globalObj = {};
globalObj['settime'] = 150;
const priceDom = {
  amazon: ['#priceblock_dealprice span', '#priceblock_ourprice span .buyingPrice', '#priceblock_dealprice', '#priceblock_saleprice', '#priceblock_ourprice', '#price_feature_div .a-color-price']
};
const feeDom = {
  amazon: ['#priceBadging_feature_div .a-color-secondary', '#ourprice_shippingmessage .a-color-secondary']
};
const addMark = url => {
  if (!url) return url;
  if (url.indexOf('?') > -1) {
    url = `${url}&p_r=gouwudang&p_k=plug_${G.style}&outer_pid=8507`;
  } else {
    url = `${url}?p_r=gouwudang&p_k=plug_${G.style}&outer_pid=8507`;
  }
  return url;
};
const getPrice = () => {
  let price = 0,
    fee = 0;
  for (let i = 0; i < priceDom['amazon'].length; i++) {
    let item = priceDom['amazon'][i];
    if ($(item).length > 0 && $(item).is(':visible')) {
      price = $(item).text().replace(/[￥$¥\s,]+/g, '');
      if (price.indexOf('-') > -1) price = price.split('-')[0];
      break;
    }
  }
  for (let i = 0; i < feeDom['amazon'].length; i++) {
    let item = feeDom['amazon'][i];
    if ($(item).length > 0 && $(item).is(':visible')) {
      fee = $(item).text().match(/[0-9.]+/) && $(item).text().match(/[0-9.]+/)[1];
      break;
    }
  }
  if (!fee) fee = 0;
  price = Number(price) + Number(fee);
  return price;
};
const getInfo = () => {
  let dp = G.dp;
  let price = dp.oldPrice;
  if (G.site === 'amazon') price = getPrice();
  if (!price) price = dp.oldPrice || '';
  if (!dp.url) dp.url = location.href;
  if (!dp.sku) dp.sku = dp.url.match(/(?:dp|product)\/([0-9a-zA-Z]+)/) && dp.url.match(/(?:dp|product)\/([0-9a-zA-Z]+)/)[1];
  let price2 = (Number(price) * 100).toFixed(0);
  let url = `${G.server}/api/haitao?price=${price2}&url_crc=${dp.sku}&url=${encodeURIComponent(dp.url)}`;
  globalObj['requestUrl'] = url;
  globalObj['jumpinfo'] = `url_crc=${dp.sku}&url=${encodeURIComponent(dp.url)}`;
  globalObj['fstTime'] = new Date().getTime();
  request.get(url).done(data => {
    if (data && data.data.product_status === 1) {
      let obj = data.data.product_detail;
      obj.url = addMark(data.data.product_url);
      render(obj);
    } else if (data && (data.data.product_status === 2 || data.data.product_status === 3)) {
      let obj;
      if (data.data.product_detail_estimate) {
        obj = data.data.product_detail_estimate;
        obj.url = buildJumpUrl();
      } else {
        obj = {
          goods_price: parseprice(price.toFixed(2)),
          url: 'javascript:void();',
          tle: "抱歉，该商品暂时无法一键海淘",
          noinfo: true
        };
      }
      render(obj);
    } else {
      let tle = "";
      if (data.data.product_status === 4) tle = "抱歉，由于相关法律或转运禁运的原因，该商品无法一键海淘。";else if (data.data.product_status === 5) tle = "抱歉，该商品已下架，无法一键海淘。";
      let obj = {
        goods_price: parseprice(price).toFixed(2),
        url: 'javascript:void();',
        tle: tle,
        noinfo: true
      };
      render(obj);
    }
  });
};
const calPrice = dp => {
  dp.goods_original_price = Number((dp.goods_original_price / 100).toFixed(2));
  dp.goods_price = Number((dp.goods_price / 100).toFixed(2));
  dp.official_original_postage = (dp.official_original_postage / 100).toFixed(2);
  dp.official_postage = Number((dp.official_postage / 100).toFixed(2));
  dp.xm_official = Number(dp.official_original_postage) - dp.official_postage;
  dp.international_original_postage = Number((dp.international_original_postage / 100).toFixed(2));
  dp.international_postage = Number((dp.international_postage / 100).toFixed(2));
  dp.xm_international = dp.international_original_postage - dp.international_postage;
  dp.tax_original_fee = Number((dp.tax_original_fee / 100).toFixed(2));
  dp.tax_fee = Number((dp.tax_fee / 100).toFixed(2));
  dp.xm_fee = dp.tax_original_fee - dp.tax_fee;
  dp.purePrice = dp.goods_price + dp.official_postage + dp.international_postage + dp.tax_fee;
  dp.purePrice = dp.purePrice.toFixed(2);
  dp.goods_price = dp.goods_price.toFixed(2);
  for (let pattern in dp) {
    if (typeof dp[pattern] === 'number') {
      dp[pattern] = dp[pattern].toFixed(2);
    }
  }
  return dp;
};
const renderMiniBar = dp => {
  let d = new Date().getTime();
  let t1 = getTimeStr(d + 24 * 3600 * 1000 * 20);
  let t2 = getTimeStr(d + 24 * 3600 * 1000 * 30);
  let timestr = t1 + '-' + t2;
  let htInfo = (__webpack_require__(24197).getHtInfo)();
  let html = __webpack_require__(77539);
  $('#yj_haitao').append(template.compile(html)({
    data: dp,
    hosts: htInfo.HOST,
    timestr: timestr,
    protype: htInfo.protype,
    site: G.site == '6pm' ? '6PM' : '亚马逊'
  })).show();
};
const render = dp => {
  if (!dp.noinfo) dp = calPrice(dp);
  globalObj['dpinfo'] = dp;
  renderMiniBar(dp);
};
const getTimeStr = time => {
  let dateObj = new Date(time);
  let y = dateObj.getFullYear();
  let m = dateObj.getMonth() + 1;
  let d = dateObj.getDate();
  if (m < 10) m = '0' + m;
  if (d < 10) d = '0' + d;
  return `${y}.${m}.${d}`;
};
const buildJumpUrl = () => {
  let url = `https://www.gwdang.com/promotion/haitaomid?${globalObj['jumpinfo']}&f_d=${G.from_device}`;
  return url;
};
module.exports.init = () => {
  if (location.host === 'www.amazon.de') return;
  getInfo();
  // render()
};

/***/ }),

/***/ 72073:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


var _interopRequireDefault = __webpack_require__(24994);
var _InstallComplete = _interopRequireDefault(__webpack_require__(24475));
const openSetting = installComplete => {
  const el = document.createElement('div');
  document.body.appendChild(el);
  new Vue({
    el,
    render: h => h(_InstallComplete.default, {
      props: {
        installComplete
      }
    })
  });
};
module.exports = {
  init() {
    __webpack_require__(58531);
    window.openPrivacySetting = () => {
      openSetting(false);
    };
    if (location.href.includes('install_complete')) {
      openSetting(true);
    }
  }
};

/***/ }),

/***/ 72105:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-row gwd-collection-comp",
    staticStyle: {
      flex: "1"
    }
  }, [_vm.user.login && _vm.allPrice.toString().length ? _c("div", {
    staticClass: "gwd-column gwd-collection-detail",
    staticStyle: {
      flex: "1"
    }
  }, [_c("div", {
    staticClass: "gwd-row",
    staticStyle: {
      height: "20px"
    }
  }, [_c("img", {
    staticStyle: {
      width: "128px",
      height: "18px"
    },
    attrs: {
      src: __webpack_require__(28755),
      alt: ""
    }
  }), _vm._v(" "), _c("div", {
    staticStyle: {
      flex: "1"
    }
  }), _vm._v(" "), _vm.settedNotifySite !== null ? _c("button", {
    staticClass: "gwd-button gwd-btn-del"
  }, [_c("span", {
    staticClass: "gwd-font11",
    staticStyle: {
      "transform-origin": "center center"
    },
    on: {
      click: function ($event) {
        return _vm.cancel();
      }
    }
  }, [_vm._v("取消提醒")])]) : _vm._e()]), _vm._v(" "), _c("div", {
    staticClass: "gwd-row",
    staticStyle: {
      "margin-top": "13px"
    }
  }, [_c("div", {
    staticClass: "gwd-column",
    staticStyle: {
      position: "relative"
    }
  }, [_c("div", {
    staticClass: "gwd-container gwd-column",
    class: {
      "gwd-ht": _vm.haitao
    }
  }, [_c("div", {
    staticClass: "gwd-row gwd-align gwd-remind-option"
  }, [_c("span", [_vm._v("当价格低于")]), _vm._v(" "), _c("PriceInput", {
    staticStyle: {
      flex: "1"
    },
    attrs: {
      currency: _vm.currency
    },
    model: {
      value: _vm.currentPrice,
      callback: function ($$v) {
        _vm.currentPrice = $$v;
      },
      expression: "currentPrice"
    }
  }), _vm._v(" "), _c("span", [_vm._v("时提醒我")])], 1)]), _vm._v(" "), _c("div", {
    staticClass: "gwd-container gwd-row gwd-align",
    staticStyle: {
      "margin-top": "8px"
    },
    style: {
      visibility: _vm.priceRemind.showMPromo ? "visible" : "hidden"
    }
  }, [_vm._m(0), _vm._v(" "), _c("SwitchBtn", {
    attrs: {
      allowAnimation: _vm.allowAnimation
    },
    model: {
      value: _vm.mPromo,
      callback: function ($$v) {
        _vm.mPromo = $$v;
      },
      expression: "mPromo"
    }
  })], 1), _vm._v(" "), _c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      "line-height": "13px",
      "margin-top": "12px"
    }
  }), _vm._v(" "), _c("div", {
    staticStyle: {
      "margin-top": "12px"
    }
  }, [_c("button", {
    staticClass: "gwd-btn-submit gwd-button",
    on: {
      click: _vm.submit
    }
  }, [_vm._v("提交")])]), _vm._v(" "), _vm.errorText ? _c("div", {
    staticClass: "gwd-remind-error-text",
    class: {
      "gwd-fadeout-5s": _vm.errorFadeClass
    }
  }, [_vm._v("\n          " + _vm._s(_vm.errorText) + "\n        ")]) : _vm._e(), _vm._v(" "), _vm.hintText ? _c("div", {
    staticClass: "gwd-remind-hint-text",
    class: {
      "gwd-fadeout-5s": _vm.hintFadeClass
    }
  }, [_vm._v("\n          " + _vm._s(_vm.hintText) + "\n        ")]) : _vm._e()]), _vm._v(" "), _c("div", {
    staticClass: "gwd-vline"
  }), _vm._v(" "), _c("div", {
    staticClass: "gwd-column gwd-align gwd-qr-area",
    staticStyle: {
      width: "84px",
      height: "100%"
    }
  }, [_c("span", {
    staticStyle: {
      "font-size": "13px",
      color: "#404547",
      "line-height": "20px",
      "margin-top": "3px"
    }
  }, [_vm._v("微信提醒")]), _vm._v(" "), _c("img", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.user.wxQr,
      expression: "user.wxQr"
    }],
    staticStyle: {
      "margin-top": "18px",
      width: "84px",
      height: "84px"
    },
    attrs: {
      src: _vm.user.wxQr,
      alt: ""
    }
  }), _vm._v(" "), _vm._m(1)])])]) : _vm._e(), _vm._v(" "), !_vm.user.login ? _c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      flex: "1"
    }
  }, [_c("CommonLogin", {
    staticStyle: {
      flex: "1"
    },
    attrs: {
      position: "gwd-mini",
      "show-alter-login": "true",
      "alter-login-position": "row"
    }
  })], 1) : _vm._e()]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-column",
    staticStyle: {
      flex: "1",
      "align-items": "flex-start"
    }
  }, [_c("span", {
    staticStyle: {
      color: "#404547",
      "font-size": "13px",
      "line-height": "18px"
    }
  }, [_vm._v("多件优惠时提醒我")]), _vm._v(" "), _c("span", {
    staticClass: "gwd-font11",
    staticStyle: {
      "transform-origin": "left center",
      color: "#999999",
      "line-height": "14px",
      "margin-top": "4px"
    }
  }, [_vm._v("同一商品，购买多件才能享受优惠")])]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("span", {
    staticClass: "gwd-font11",
    staticStyle: {
      "margin-top": "12px",
      "line-height": "16px",
      color: "#969899",
      "white-space": "nowrap"
    }
  }, [_vm._v("\n          扫码关注公众号"), _c("br"), _vm._v("商品降价自动提醒\n        ")]);
}];
render._withStripped = true;

/***/ }),

/***/ 72266:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
__webpack_require__(3362);
var _QrError = _interopRequireDefault(__webpack_require__(49357));
var _GiftMoneyMixin = _interopRequireDefault(__webpack_require__(21939));
var _CommonCouponBarMini = _interopRequireDefault(__webpack_require__(84593));
var _default = exports.A = {
  data: () => ({
    takeBg: __webpack_require__(76095),
    butie: false
  }),
  name: "Subsidy",
  props: ['value', 'url', 'qr', 'id', 'name', 'price', 'oldPatch'],
  components: {
    QrError: _QrError.default,
    CommonCouponBarMini: _CommonCouponBarMini.default
  },
  mixins: [],
  methods: {
    async checkButie() {
      this.butie = await (__webpack_require__(41761).met)('butie');
    }
  },
  computed: {
    text() {
      if (this.butie) {
        return `当前商品可领<span style='font-size: 18px; font-family: PingfangSC-Medium'>${this.value}</span>元${this.name}红包 & 补贴`;
      }
      return `今日专享红包立减￥<span style='font-size: 18px; font-family: PingfangSC-Medium'>${this.value}</span>`;
    }
  },
  mounted() {
    // this.over()
    this.checkButie();
  }
};

/***/ }),

/***/ 72328:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, pages = $data.pages, $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, now_dp_id = $data.now_dp_id, storeLen = $data.storeLen, productW = $data.productW, imgLoad = $data.imgLoad, width = $data.width;
    $$out += '<div id="gwdang-b2c-dp-detail" class="panel gwd_compare top-compare-detail top-bar-detail">\n  <div class="panel-wrap">\n    <div class="b2c-pages blkcolor4">\n      第&nbsp;\n      <span class="current-page" id="b2c-current-page">1</span>\n      &nbsp;页\uFF0C共\n      <span class="page-num blkcolor4" id="b2c-page-num">';
    $$out += $escape(pages);
    $$out += '</span>\n      &nbsp;页\n    </div>\n    <ul class="buy-list">\n      <li><b class="blkcolor1">正品商城在卖\uFF1A</b></li>\n      ';
    $each(data.store2, function ($value, $index) {
        $$out += '\n      <li>\n        <img class="store" src="';
        $$out += $escape($value.icon_url);
        $$out += '">\n        <a href="';
        $$out += $escape($value.url);
        $$out += '" title="';
        $$out += $escape($value.site_name);
        $$out += '" target="_blank">\n          <span class="gwd_title blkcolor2">';
        $$out += $escape($value.site_name);
        $$out += '</span>\n          ';
        if ($value.more > 1) {
            $$out += '\n          <span class="more">(';
            $$out += $escape($value.more);
            $$out += ')款</span>\n          ';
        }
        $$out += '\n          <span class="price prifontf">\xA5';
        $$out += $escape($value.price2);
        $$out += '</span>\n        </a>\n      </li>\n      ';
    });
    $$out += '\n      <li class="see-all-list">\n      <a href="http://www.gwdang.com/dp';
    $$out += $escape(now_dp_id);
    $$out += '/where_buy/?from=browser&crc64=1&m=b2c#tabs"target="_blank">\n        <span class="show-all blkcolor4">查看全部商家(';
    $$out += $escape(storeLen);
    $$out += ')</span>\n      </a>\n      </li>\n    </ul>\n    <div class="left-page turn-page">\n      <a id="b2c-prev-page" target="_self" title="上一页" href="javascript:" class="gwd_bg"></a>\n    </div>\n    <div class="all-products" style="width:';
    $$out += $escape(productW);
    $$out += 'px">\n      <ul id="b2c-item-list">\n        ';
    $each(data.product, function ($value, $index) {
        $$out += '\n          <li id="b2c-prod-item-';
        $$out += $escape($index);
        $$out += '" >\n            <a id="img-';
        $$out += $escape($value.dp_id);
        $$out += '" title="';
        $$out += $escape($value.title);
        $$out += '" target="_blank" class="small-img" href="';
        $$out += $escape($value.url);
        $$out += '">\n              <img src="';
        $$out += $escape(imgLoad);
        $$out += '" data-original="';
        $$out += $escape($value.img_url);
        $$out += '" id="dp-image-small-';
        $$out += $escape($value.dp_id);
        $$out += '" class="gwdang-lazy">\n            </a>\n            <a target="_blank" class="b2c-other-info"  href="';
        $$out += $escape($value.url);
        $$out += '">\n              <div class="priceinfo-box">\n                <div class="center-box">\n                  <span class="gwd-price prifontf">\xA5';
        $$out += $escape($value.price_rmb ? $value.price_rmb : $value.price);
        $$out += '</span>\n                  ';
        if ($value.promo2) {
            $$out += '\n                  <span class="dp-promotion gwd_bg">\n                    <div class="dp-promotion-detail">\n                      ';
            $each($value.promo2, function ($value, $index) {
                $$out += '\n                        <span class="dp-pro-item">';
                $$out += $escape($value);
                $$out += '</span>\n                      ';
            });
            $$out += '\n                    </div>\n                  </span>\n                  ';
        }
        $$out += '\n                  ';
        if ($value.coupon2) {
            $$out += '\n                  <span class="dp-coupon gwd_bg">\n                    <div class="dp-coupon-detail">\n                      ';
            $each($value.coupon2, function ($value, $index) {
                $$out += '\n                        <span class="dp-coupon-item">';
                $$out += $escape($value);
                $$out += '</span>\n                      ';
            });
            $$out += '\n                    </div>\n                  </span>\n                  ';
        }
        $$out += '\n                  ';
        if ($value.yushou2) {
            $$out += '\n                  <span class="dp-yushou gwd_bg">\n                    <div class="dp-yushou-detail">\n                      ';
            $each($value.yushou2, function ($value, $index) {
                $$out += '\n                        <span class="dp-pro-item">';
                $$out += $escape($value);
                $$out += '</span>\n                      ';
            });
            $$out += '\n                    </div>\n                  </span>\n                  ';
        }
        $$out += '\n                </div>\n              </div>\n              \n              <span class="b2c-store blkcolor1">';
        $$out += $escape($value.site_name);
        $$out += '</span>\n              ';
        if ($value.promodom) {
            $$out += '\n              <span id="';
            $$out += $escape($value.dp_id);
            $$out += '_promotion">';
            $$out += $escape($value.promodom);
            $$out += '</span>\n              ';
        }
        $$out += '\n              <span class="b2c-fees blkcolor4">';
        $$out += $escape($value.comment_num ? '评论数:' + $value.comment_num : $value.fee);
        $$out += '</span>\n              <span class="b2c-tle blkcolor1">';
        $$out += $escape($value.title);
        $$out += '</span>\n            </a>\n          </li>\n        ';
    });
    $$out += '\n      </ul>\n    </div>\n    <div class="right-page turn-page">\n      <a id="b2c-next-page" title="下一页" target="_self" href="javascript:" class="gwd_bg"></a>\n    </div>\n  </div>\n  <style type="text/css">\n    #gwdang-b2c-dp-detail .turn-page {\n      width: ';
    $$out += $escape(width);
    $$out += 'px;\n    }\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 72524:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-new-jd {\n  position: sticky;\n  z-index: 101;\n  margin-bottom: 12px;\n}\n.gwd-minibar-bg.gwd-new-jd {\n  position: sticky;\n}\n", ""]);

// exports


/***/ }),

/***/ 72614:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(59321);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("1041b3f4", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 72652:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var bind = __webpack_require__(76080);
var call = __webpack_require__(69565);
var anObject = __webpack_require__(28551);
var tryToString = __webpack_require__(16823);
var isArrayIteratorMethod = __webpack_require__(44209);
var lengthOfArrayLike = __webpack_require__(26198);
var isPrototypeOf = __webpack_require__(1625);
var getIterator = __webpack_require__(70081);
var getIteratorMethod = __webpack_require__(50851);
var iteratorClose = __webpack_require__(9539);

var $TypeError = TypeError;

var Result = function (stopped, result) {
  this.stopped = stopped;
  this.result = result;
};

var ResultPrototype = Result.prototype;

module.exports = function (iterable, unboundFunction, options) {
  var that = options && options.that;
  var AS_ENTRIES = !!(options && options.AS_ENTRIES);
  var IS_RECORD = !!(options && options.IS_RECORD);
  var IS_ITERATOR = !!(options && options.IS_ITERATOR);
  var INTERRUPTED = !!(options && options.INTERRUPTED);
  var fn = bind(unboundFunction, that);
  var iterator, iterFn, index, length, result, next, step;

  var stop = function (condition) {
    if (iterator) iteratorClose(iterator, 'normal', condition);
    return new Result(true, condition);
  };

  var callFn = function (value) {
    if (AS_ENTRIES) {
      anObject(value);
      return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
    } return INTERRUPTED ? fn(value, stop) : fn(value);
  };

  if (IS_RECORD) {
    iterator = iterable.iterator;
  } else if (IS_ITERATOR) {
    iterator = iterable;
  } else {
    iterFn = getIteratorMethod(iterable);
    if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
    // optimisation for array iterators
    if (isArrayIteratorMethod(iterFn)) {
      for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
        result = callFn(iterable[index]);
        if (result && isPrototypeOf(ResultPrototype, result)) return result;
      } return new Result(false);
    }
    iterator = getIterator(iterable, iterFn);
  }

  next = IS_RECORD ? iterable.next : iterator.next;
  while (!(step = call(next, iterator)).done) {
    try {
      result = callFn(step.value);
    } catch (error) {
      iteratorClose(iterator, 'throw', error);
    }
    if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
  } return new Result(false);
};


/***/ }),

/***/ 72674:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


module.exports.init = () => {
  if (window.gwdSideBar) {
    return;
  }
  const el = document.createElement('div');
  document.body.appendChild(el);
  const SideBar = (__webpack_require__(33278)/* ["default"] */ .A);
  const store = (__webpack_require__(92771).getStore)();
  window.gwdSideBar = new Vue({
    el: el,
    store,
    render: h => h(SideBar)
  });
};

/***/ }),

/***/ 72712:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var $ = __webpack_require__(46518);
var $reduce = (__webpack_require__(80926).left);
var arrayMethodIsStrict = __webpack_require__(34598);
var CHROME_VERSION = __webpack_require__(39519);
var IS_NODE = __webpack_require__(16193);

// Chrome 80-82 has a critical bug
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');

// `Array.prototype.reduce` method
// https://tc39.es/ecma262/#sec-array.prototype.reduce
$({ target: 'Array', proto: true, forced: FORCED }, {
  reduce: function reduce(callbackfn /* , initialValue */) {
    var length = arguments.length;
    return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
  }
});


/***/ }),

/***/ 72730:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLAttribute = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.DecodingMode = exports.EntityDecoder = exports.encodeHTML5 = exports.encodeHTML4 = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.escape = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = exports.EncodingMode = exports.EntityLevel = void 0;
var decode_js_1 = __webpack_require__(79878);
var encode_js_1 = __webpack_require__(71818);
var escape_js_1 = __webpack_require__(5987);
/** The level of entities to support. */
var EntityLevel;
(function (EntityLevel) {
    /** Support only XML entities. */
    EntityLevel[EntityLevel["XML"] = 0] = "XML";
    /** Support HTML entities, which are a superset of XML entities. */
    EntityLevel[EntityLevel["HTML"] = 1] = "HTML";
})(EntityLevel = exports.EntityLevel || (exports.EntityLevel = {}));
var EncodingMode;
(function (EncodingMode) {
    /**
     * The output is UTF-8 encoded. Only characters that need escaping within
     * XML will be escaped.
     */
    EncodingMode[EncodingMode["UTF8"] = 0] = "UTF8";
    /**
     * The output consists only of ASCII characters. Characters that need
     * escaping within HTML, and characters that aren't ASCII characters will
     * be escaped.
     */
    EncodingMode[EncodingMode["ASCII"] = 1] = "ASCII";
    /**
     * Encode all characters that have an equivalent entity, as well as all
     * characters that are not ASCII characters.
     */
    EncodingMode[EncodingMode["Extensive"] = 2] = "Extensive";
    /**
     * Encode all characters that have to be escaped in HTML attributes,
     * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
     */
    EncodingMode[EncodingMode["Attribute"] = 3] = "Attribute";
    /**
     * Encode all characters that have to be escaped in HTML text,
     * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
     */
    EncodingMode[EncodingMode["Text"] = 4] = "Text";
})(EncodingMode = exports.EncodingMode || (exports.EncodingMode = {}));
/**
 * Decodes a string with entities.
 *
 * @param data String to decode.
 * @param options Decoding options.
 */
function decode(data, options) {
    if (options === void 0) { options = EntityLevel.XML; }
    var level = typeof options === "number" ? options : options.level;
    if (level === EntityLevel.HTML) {
        var mode = typeof options === "object" ? options.mode : undefined;
        return (0, decode_js_1.decodeHTML)(data, mode);
    }
    return (0, decode_js_1.decodeXML)(data);
}
exports.decode = decode;
/**
 * Decodes a string with entities. Does not allow missing trailing semicolons for entities.
 *
 * @param data String to decode.
 * @param options Decoding options.
 * @deprecated Use `decode` with the `mode` set to `Strict`.
 */
function decodeStrict(data, options) {
    var _a;
    if (options === void 0) { options = EntityLevel.XML; }
    var opts = typeof options === "number" ? { level: options } : options;
    (_a = opts.mode) !== null && _a !== void 0 ? _a : (opts.mode = decode_js_1.DecodingMode.Strict);
    return decode(data, opts);
}
exports.decodeStrict = decodeStrict;
/**
 * Encodes a string with entities.
 *
 * @param data String to encode.
 * @param options Encoding options.
 */
function encode(data, options) {
    if (options === void 0) { options = EntityLevel.XML; }
    var opts = typeof options === "number" ? { level: options } : options;
    // Mode `UTF8` just escapes XML entities
    if (opts.mode === EncodingMode.UTF8)
        return (0, escape_js_1.escapeUTF8)(data);
    if (opts.mode === EncodingMode.Attribute)
        return (0, escape_js_1.escapeAttribute)(data);
    if (opts.mode === EncodingMode.Text)
        return (0, escape_js_1.escapeText)(data);
    if (opts.level === EntityLevel.HTML) {
        if (opts.mode === EncodingMode.ASCII) {
            return (0, encode_js_1.encodeNonAsciiHTML)(data);
        }
        return (0, encode_js_1.encodeHTML)(data);
    }
    // ASCII and Extensive are equivalent
    return (0, escape_js_1.encodeXML)(data);
}
exports.encode = encode;
var escape_js_2 = __webpack_require__(5987);
Object.defineProperty(exports, "encodeXML", ({ enumerable: true, get: function () { return escape_js_2.encodeXML; } }));
Object.defineProperty(exports, "escape", ({ enumerable: true, get: function () { return escape_js_2.escape; } }));
Object.defineProperty(exports, "escapeUTF8", ({ enumerable: true, get: function () { return escape_js_2.escapeUTF8; } }));
Object.defineProperty(exports, "escapeAttribute", ({ enumerable: true, get: function () { return escape_js_2.escapeAttribute; } }));
Object.defineProperty(exports, "escapeText", ({ enumerable: true, get: function () { return escape_js_2.escapeText; } }));
var encode_js_2 = __webpack_require__(71818);
Object.defineProperty(exports, "encodeHTML", ({ enumerable: true, get: function () { return encode_js_2.encodeHTML; } }));
Object.defineProperty(exports, "encodeNonAsciiHTML", ({ enumerable: true, get: function () { return encode_js_2.encodeNonAsciiHTML; } }));
// Legacy aliases (deprecated)
Object.defineProperty(exports, "encodeHTML4", ({ enumerable: true, get: function () { return encode_js_2.encodeHTML; } }));
Object.defineProperty(exports, "encodeHTML5", ({ enumerable: true, get: function () { return encode_js_2.encodeHTML; } }));
var decode_js_2 = __webpack_require__(79878);
Object.defineProperty(exports, "EntityDecoder", ({ enumerable: true, get: function () { return decode_js_2.EntityDecoder; } }));
Object.defineProperty(exports, "DecodingMode", ({ enumerable: true, get: function () { return decode_js_2.DecodingMode; } }));
Object.defineProperty(exports, "decodeXML", ({ enumerable: true, get: function () { return decode_js_2.decodeXML; } }));
Object.defineProperty(exports, "decodeHTML", ({ enumerable: true, get: function () { return decode_js_2.decodeHTML; } }));
Object.defineProperty(exports, "decodeHTMLStrict", ({ enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } }));
Object.defineProperty(exports, "decodeHTMLAttribute", ({ enumerable: true, get: function () { return decode_js_2.decodeHTMLAttribute; } }));
// Legacy aliases (deprecated)
Object.defineProperty(exports, "decodeHTML4", ({ enumerable: true, get: function () { return decode_js_2.decodeHTML; } }));
Object.defineProperty(exports, "decodeHTML5", ({ enumerable: true, get: function () { return decode_js_2.decodeHTML; } }));
Object.defineProperty(exports, "decodeHTML4Strict", ({ enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } }));
Object.defineProperty(exports, "decodeHTML5Strict", ({ enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } }));
Object.defineProperty(exports, "decodeXMLStrict", ({ enumerable: true, get: function () { return decode_js_2.decodeXML; } }));
//# sourceMappingURL=index.js.map

/***/ }),

/***/ 72777:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var call = __webpack_require__(69565);
var isObject = __webpack_require__(20034);
var isSymbol = __webpack_require__(10757);
var getMethod = __webpack_require__(55966);
var ordinaryToPrimitive = __webpack_require__(84270);
var wellKnownSymbol = __webpack_require__(78227);

var $TypeError = TypeError;
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');

// `ToPrimitive` abstract operation
// https://tc39.es/ecma262/#sec-toprimitive
module.exports = function (input, pref) {
  if (!isObject(input) || isSymbol(input)) return input;
  var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  var result;
  if (exoticToPrim) {
    if (pref === undefined) pref = 'default';
    result = call(exoticToPrim, input, pref);
    if (!isObject(result) || isSymbol(result)) return result;
    throw new $TypeError("Can't convert object to primitive value");
  }
  if (pref === undefined) pref = 'number';
  return ordinaryToPrimitive(input, pref);
};


/***/ }),

/***/ 72839:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-overall-progress[data-v-7b48957e] {\n  border-radius: 16px;\n  height: 52px;\n  font-size: 18px;\n  color: #fff;\n  line-height: 52px;\n  text-align: center;\n  font-weight: bold;\n}\n.gwd-overall-progress.gwd-good[data-v-7b48957e] {\n  background: #22c55e;\n}\n.gwd-overall-progress.gwd-bad[data-v-7b48957e] {\n  background: #ef4444;\n}\n.gwd-txt[data-v-7b48957e] {\n  font-size: 18px;\n  color: #404547;\n  margin-top: 10px;\n  line-height: 28px;\n}\n.gwd-dot[data-v-7b48957e] {\n  display: inline-block;\n  width: 12px;\n  height: 12px;\n  border-radius: 50%;\n  margin-right: 8px;\n}\n", ""]);

// exports


/***/ }),

/***/ 72966:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64, ";

/***/ }),

/***/ 73195:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


const template = __webpack_require__(26133);
const deviceEncode = __webpack_require__(69793);
const util = __webpack_require__(30888);
const userData = __webpack_require__(74222);
const addEvent = () => {
  let time1;
  $('#bjd_logo').on('mouseenter', () => {
    $('#nbt_setting').show();
  });
  $('#bjd_logo').on('mouseleave', () => {
    time1 = setTimeout(function () {
      $('#nbt_setting').hide();
    }, 200);
  });
  $('#nbt_setting').on('mouseenter', () => {
    clearTimeout(time1);
  });
  $('#nbt_setting').on('mouseleave', () => {
    $('#nbt_setting').hide();
  });
  $('#nbt_setting .setting-item').on('mouseenter', function () {
    $(this).addClass('setting_hover');
  });
  $('#nbt_setting .setting-item').on('mouseleave', function () {
    $(this).removeClass('setting_hover');
  });
  if (G.allowBackgroundRequest) {
    $('.main-setting').on('click', () => {
      util.openTab();
    });
  }
};
const render = () => {
  let perinfo = userData.get('permanent');
  let href = document.location.href;
  let btype = G.btype ? G.btype : '';
  let settingUrl;
  if (!perinfo.setPage) {
    settingUrl = `${G.server}/brwext/setting?from=${deviceEncode(G.from_device)}&btype=${G.btype ? G.btype : ''}`;
  }
  let html = __webpack_require__(5883);
  $('#bjd_bottom_detail').append(template.compile(html)({
    mainset: `${G.server}/brwext/setting?from=${deviceEncode(G.from_device)}&btype=${btype}`,
    feedback: `${G.c_server}/brwext/suggest?refer=${encodeURIComponent(href)}&from_device=${G.from_device}&btype=${btype}`,
    help: `${G.c_server}/v2/app/questions`,
    settingUrl: settingUrl,
    webpage: `${G.c_server}/`
  }));
  addEvent();
};
module.exports.init = () => {
  render();
};

/***/ }),

/***/ 73222:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ MemberCouponMiniBjgvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ MemberCouponMiniBjg)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/bjgou/components/MemberCouponMiniBjg.vue?vue&type=template&id=4df286a2&scoped=true
var MemberCouponMiniBjgvue_type_template_id_4df286a2_scoped_true = __webpack_require__(92411);
;// ./src/bjgou/components/MemberCouponMiniBjg.vue?vue&type=template&id=4df286a2&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/bjgou/components/MemberCouponMiniBjg.vue?vue&type=script&lang=js
var MemberCouponMiniBjgvue_type_script_lang_js = __webpack_require__(3442);
;// ./src/bjgou/components/MemberCouponMiniBjg.vue?vue&type=script&lang=js
 /* harmony default export */ const components_MemberCouponMiniBjgvue_type_script_lang_js = (MemberCouponMiniBjgvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/bjgou/components/MemberCouponMiniBjg.vue?vue&type=style&index=0&id=4df286a2&prod&scoped=true&lang=less
var MemberCouponMiniBjgvue_type_style_index_0_id_4df286a2_prod_scoped_true_lang_less = __webpack_require__(83625);
;// ./src/bjgou/components/MemberCouponMiniBjg.vue?vue&type=style&index=0&id=4df286a2&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/bjgou/components/MemberCouponMiniBjg.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_MemberCouponMiniBjgvue_type_script_lang_js,
  MemberCouponMiniBjgvue_type_template_id_4df286a2_scoped_true/* render */.XX,
  MemberCouponMiniBjgvue_type_template_id_4df286a2_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "4df286a2",
  null
  
)

/* harmony default export */ const MemberCouponMiniBjg = (component.exports);

/***/ }),

/***/ 73256:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, s_server = $data.s_server;
    $$out += '<style>\n\t.panel-shadow {\n\t\ttop: 250px;\n\t}\n\n\t.floatButtons {\n\t\tposition: absolute;\n    top: 25px;\n    right: 30px;\n    overflow: hidden;\n    z-index: 99;\n    height: 16px;\n\t}\n\n\t#mini_price_history_detail .floatButtons {\n\t\ttop: -36px;\n\t\tright: 0px;\n\t}\n\n\t.highcharts-container {\n\t\twidth: 100%!important;\n\t\theight: 100%!important;\n\t}\n\n\t.highcharts-container > svg {\n\t\twidth: 100%!important;\n\t\theight: 100%!important;\t\t\n\t}\n\n\t.highcharts-tooltip span {\n\t\tz-index: 9999!important;\n\t}\n\n\t.highcharts-tooltip table {\n\t\twidth: auto!important;\n\t\tmargin-left: 8px!important;\n\t\tmargin-right: 8px!important;\n\t\tborder: none;\n\t\tborder-spacing: none;\n\t}\n\n\t.highcharts-tooltip td {\n\t\tfont-family: "Microsoft Yahei";\n\t\tfont-size: 12px;\n\t\tborder: none;\n\t}\n\n\t.highcharts-tooltip .promoTd{\n\t\ttext-align: left;\n\t\tpadding-left: 5px;\n\t\twidth: 100px;\n\t\tmax-width: 100px;\n\t\tcolor: #4a90e2;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis!important;\n\t}\n\n\t.floatButtons > a{\n\t\tcursor: pointer;\n\t\tbackground: none;\n\t\tborder: none;\n\t\tborder-left: 1px solid #e6e9eb;\n\t\tpadding-left: 10px;\n\t\tpadding-right: 10px;\n\t\theight: 16px;\n\t\tline-height: 16px;\n\t\tcolor: #404547;\n\t\ttext-decoration: none!important;\n\t\tfloat: left;\n\t\tfont-family: "Microsoft YaHei";\n\t\tfont-size: 12px!important;\n\t}\n\n\t#mini_price_history_detail_chart {\n\t\tposition: relative;\n\t\twidth: 460px;\n\t\t/* height: 182px; */\n\t\theight: 200px;\n\t\tmargin-top: 20px;\n\t}\n\n\t#mini_price_history_detail {\n\t\tclear: both;\n\t\tbackground-color: white;\n\t\t/* display: block!important; */\n\t}\n\n\t@media (max-width: 1250px) {\n\t\t#gwd-trend-chart {\n\t\t\tposition: fixed;\n\t\t\tleft: 50%;\n\t\t\tmargin-left: -400px;\n\t\t}\n\t}\n\n\t.floatButtons > a:first-child {\n\t\tborder-left: none;\n\t}\n\n\t.floatButtons > a:focus {\n\t\toutline: none;\n\t}\n\n\t.activePlot {\n\t\t/* background: #edf1f2!important; */\n\t\tcolor: #00a8e7!important;\n\t}\n\n\t.bjd-newtrend-dev .bjd-hidden {\n\t\tdisplay: none!important;\n\t}\n\n\t#plotArea_chrome {\n\t\tposition: absolute;\n\t\tright: 0px;\n\t\tleft: 0px;\n\t\theight: 182px;\n\t\tmax-width: 2000px!important;\n\t\tfont-family: "Microsoft YaHei";\n\t}\n\n\t#mini_price_history_detail_chart #plotArea_chrome {\n\t\theight: 200px;\n\t}\n\n\t.gwd-blurLayer {\n\t\tfilter: blur(9px);\n\t}\n\n\t.gwd-topText {\n\t\tposition: absolute;\n\t\tright: 0px;\n\t\tleft: 0px;\n\t\ttop: 76px;\n\t\theight: 182px;\n\t\tmax-width: 2000px!important;\n\t\tfont-family: "Microsoft YaHei";\n\t\tcursor: pointer;\n\t}\n\n\t/*#gwdang-trend-detail {*/\n\t/*\tdisplay: block!important;*/\n\t/*}*/\n\n\t#gwdang-trend-detail \t#plotArea_chrome {\n\t\theight: 182px;\n\t\ttop: 62px;\n\t}\n\n\t.highcharts-tooltip {\n\t\tz-index: 99;\n\t\tbackground: white;\n\t}\n\n\n\t#bjd-qrcode-trend {\n\t\tposition: absolute;\n\t\twidth: 150px;\n\t\theight: 150px;\n\t\tright: 35px;\n\t\tbottom: 0px;\n\t\ttext-align: center;\n\t}\n\n\t#bjd-qrcode-trend span {\n\t\tposition: relative;\n\t\tfont-size: 12px;\n\t\tfont-family: "Microsoft Yahei";\n\t\tcolor: #535854;\n\t\ttop: 8px;\n\t}\n</style>\n\n<div class="floatButtons bjd-newtrend-dev">\n\t<a class="bjd-hidden" id="plotAll">全部</a><a class="bjd-hidden" id="plotYear">180天</a><a class="bjd-hidden" id="plotMonth">30天</a><a class="bjd-hidden" id="plot5Day">5日线</a>\n</div>\n<div id="plotArea_chrome">\n\t\n</div>\n<div class="gwd-topText" id="gwd-topText">\n\t<div class="gwd-promo-app-center" style="position: absolute; height: 203px; top: 50%; left: 50%; margin-top: 0px; background: white; filter: blur(10px); transform: translate(-50%, -50%);"></div>\n\t<div class="gwd-promo-app-center" style="position: absolute; height: 203px; top: 50%; left: 50%; transform: translate(-50%, -50%);">\n\t\t<!-- <div style="margin-left: 52px; margin-right: 70px;"> -->\n\t\t<div style="width: 240px;">\n\t\t\t<span style="display: inline-block; margin-top: 40px; margin-left: 2px" class="bigText">更多价格走势图</span>\n\t\t\t<br>\n\t\t\t<span class="smallText">请先 登录 购物党\uFF0C或使用第三方账号登录</span>\n\t\t</div>\n\t\t<div style="margin-left: 70px;" id="gwd-trend-login"></div>\n\t</div>\n</div>\n<style>\n\t.gwd-promo-app-center {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t}\n\n\t.gwd-topText .pText {\n\t\tfont-size: 16px;\n\t\tcolor: #333333;\n\t\talign-items: center;\n\t}\n\n\t.gwd-topText .smallText {\n\t\tcolor: #5c6266;\n\t\tfont-size: 12px;\n\t\tmargin-top: 11px;\n\t\tdisplay: inline-block;\n\t}\n\n\t.gwd-topText .bigText {\n\t\tfont-weight: bold;\n\t\tfont-size: 16px;\n\t\tcolor: #333333;\n\t\t/*margin-left: 12px;*/\n\t\tmargin-right: 12px;\n\t\tposition: relative;\n\t\tz-index: 2;\n\t\talign-items: center;\n\t}\n\n\t.gwd-topText .bigText::after {\n\t\tcontent: \'\';\n\t\tposition: absolute;\n\t\tbottom: 0;\n\t\tleft: -2px;\n\t\tright: -2px;\n\t\theight: 6px;\n\t\tbackground: #46c9ba;\n\t\tz-index: -1;\n\t}\n\n\t.gwd-topText {\n\t\ttop: 0px;\n\t\tpadding-top: 40px;\n\t\tcursor: default;\n\t}\n\n\t#gwdang-trend .gwd-topText {\n\t\tpadding-top: 180px;\n\t}\n\n\t/*.gwd-topText .bigText:hover {*/\n\t/*\tfont-size: 20px;*/\n\t/*}*/\n\n\t.gwd-topText .intro {\n\t\tcolor: #666666;\n\t\tfont-size: 12px;\n\t}\n\n\t.gwd-not-login .promo-pri-info,  .gwd-not-login .promo-history-link {\n\t\tdisplay: none!important;\n\t}\n</style>\n<div id="dashedLine_chrome"></div>\n<!-- <div id="bjd-qrcode-trend">\n\t<img src="';
    $$out += $escape(s_server);
    $$out += '/images/extensions/trend_qrcode.jpg" alt="" style="width: 94px;height:94px" />\n\t<br>\n\t<span>微信上也能查历史价格</span>\n</div> -->';
    return $$out;
};

/***/ }),

/***/ 73334:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-img-same-app",
    on: {
      click: _vm.openApp
    }
  }, [_c("div", {
    staticClass: "gwd-img-same-icon"
  }, [_c("img", {
    staticClass: "gwd-preview-img",
    attrs: {
      src: _vm.img,
      alt: ""
    }
  })]), _vm._v(" "), _vm._m(0)]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("span", {
    staticClass: "gwd-app-label"
  }, [_vm._v("\n    图片"), _c("br"), _vm._v("找同款\n  ")]);
}];
render._withStripped = true;

/***/ }),

/***/ 73492:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


var regex$5 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;

var regex$4 = /[\0-\x1F\x7F-\x9F]/;

var regex$3 = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/;

var regex$2 = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;

var regex$1 = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/;

var regex = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;

exports.Any = regex$5;
exports.Cc = regex$4;
exports.Cf = regex$3;
exports.P = regex$2;
exports.S = regex$1;
exports.Z = regex;


/***/ }),

/***/ 73506:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var isPossiblePrototype = __webpack_require__(13925);

var $String = String;
var $TypeError = TypeError;

module.exports = function (argument) {
  if (isPossiblePrototype(argument)) return argument;
  throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');
};


/***/ }),

/***/ 73743:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(3362);
const request = __webpack_require__(49388);
const template = __webpack_require__(26133);
const CommonCouponBarMini = (__webpack_require__(84593)["default"]);
const renderButie = butie => {
  new Vue({
    el: '#gwd-coupon-placeholder',
    render: h => h(CommonCouponBarMini, {
      props: {
        type: 'link',
        href: butie,
        mainColor: '#11a14e',
        secondColor: '#53ce43',
        text: `${G.site === '360buy' ? '政府' : ''}补贴领取入口`,
        stamp: true,
        icon: 'https://cdn.bijiago.com/images/extensions/activity/bticon@2x.png'
      }
    })
  });
};
const addSiteActivity = (__webpack_require__(63775).addSiteActivity);
module.exports = {
  init: async function (hasCoupon) {
    await (__webpack_require__(30888).waitForConditionFn)(() => {
      return $(`#mini_price_history`).length;
    });

    // const butie = await require('common/globalCondition').met('butie')

    if (window.gwdActivity) return;
    window.gwdActivity = true;
    let config;
    if (G.allowBackgroundRequest) {
      config = await request.get('https://cdn.gwdang.com/js/configs/activity.json');
    } else {
      config = await request.requestXHR('https://cdn.gwdang.com/js/configs/activity.json', false);
    }
    let onlyCenter = false;
    if (config.aliActivity && G.aliSite) {
      let c = config.aliActivity;
      if (c.disableWhenHasCoupon && hasCoupon) {
        onlyCenter = true;
      }
      let shopCoupon = await (__webpack_require__(41761).met)('shopCouponGot');
      if (shopCoupon) {
        onlyCenter = true;
      }
      if (!hasCoupon && !shopCoupon) {
        let memberCoupon = await (__webpack_require__(11496)/* .init */ .T)();
        if (memberCoupon) {
          return;
        }
      }
      if (!hasCoupon && !shopCoupon) {
        let giftMoney = await (__webpack_require__(67298).init)();
        if (giftMoney) return;
      }

      // if (butie && !hasCoupon) {
      //   renderButie(butie)
      // }

      // require('standard/module/tbSameGroup').init()
      const t = new Date();
      const s = new Date(c.start);
      const e = new Date(c.end);
      let use = 'link';
      //let link = 'https://tb.gwdang.com/static_page/618/618Scan.html'
      let link = c.link;
      const addCenterImgSame = async () => {
        const imgSameProp = await (__webpack_require__(41761).met)('ImgSameReady');
        const config = await (__webpack_require__(41761).met)('GwdConfig');
        const slist = await (__webpack_require__(41761).met)('miniItemList');
        if (!hasCoupon && config.centerImgSame && $('#gwd_mini_compare').html() === '' && slist.length === 0) {
          new Vue({
            el: '#gwd_mini_compare',
            render: h => h((__webpack_require__(46364)/* ["default"] */ .A), {
              props: imgSameProp
            })
          });
        }
      };
      if (t < e && t > s) {
        if (!onlyCenter) {
          if ($('#gwd-space').outerWidth() >= 230) {
            // 购物党顶部
            let html = template.compile(__webpack_require__(4310))({
              img: c.top.img,
              qr: c.top.qr,
              link: link
            });
            $('.gwd-topbar-left').append(html);
            setTimeout(() => {
              let topLogged = false;
              let topTmall = $('.gwd-top-tmall');
              if (topTmall.length) {
                (__webpack_require__(5300).log)('顶部活动二维码', '曝光');
              }
              topTmall.hover(() => {
                if (!topLogged) {
                  topLogged = true;
                  (__webpack_require__(5300).log)('顶部活动二维码', '悬浮');
                }
              });
            }, 0);
          }
          if (!hasCoupon && c.middle.text) {
            if (use === 'link') {
              new Vue({
                el: '#gwd-coupon-placeholder',
                render: h => h(CommonCouponBarMini, {
                  props: {
                    type: 'link',
                    href: link,
                    mainColor: '#ff6200',
                    secondColor: '#ff863b',
                    text: c.middle.text,
                    icon: 'https://cdn.bijiago.com/images/extensions/activity/giftMoneyV3@2x.png'
                  }
                })
              });
              (__webpack_require__(41761).setMet)('couponLink', {
                content: '抢天猫双11超级红包',
                url: link
              });
            } else {
              let html2 = template.compile(__webpack_require__(95187))({
                qr: c.top.qr,
                text: c.middle.text,
                link: link
              });
              $('#gwd-coupon-placeholder').replaceWith(html2);
            }
            (__webpack_require__(92771).getStore)().commit('promos/setState', {
              activityRedpack: {
                value: c.value ? c.value : 25888,
                unit: c.unit ? c.unit : '元',
                link: link
              }
            });
            // addSiteActivity(link, c.value ? c.value : 25888)
          }
          if (window.innerWidth - $('#bjd_bottom_detail').outerWidth() > 160) {
            // 购物党底部
            let html = template.compile(use === 'link' ? __webpack_require__(83556) : __webpack_require__(35999))({
              img: c.bottom.img,
              qr: c.bottom.qr,
              extClass: 'rinfo-btn',
              link: link
            });
            $('#bjd_bottom_detail .right-info .search-mod').after(html);
            let bottomLogged = false;
            setTimeout(() => {
              const bottomTmall = $('.gwd-bottom-tmall');
              if (bottomTmall.length) {
                (__webpack_require__(5300).log)('底部活动二维码', '曝光');
              }
              bottomTmall.hover(() => {
                if (!bottomLogged) {
                  bottomLogged = true;
                  (__webpack_require__(5300).log)('底部活动二维码', '悬浮');
                }
              });
            }, 0);
          }
        }
        if ($('#mini-price-history') && c.center.text) {
          // 购物党中间
          let html = template.compile(use === 'link' ? __webpack_require__(12854) : __webpack_require__(357))({
            img: c.top.img,
            qr: c.top.qr,
            text: c.center.text,
            extClass: 'minibar-tab',
            qrText: c.qrText,
            link: link
          });
          $('#mini_price_history').after(html);
          $('.minibar-tab').css('width', '128px');
          $('.gwd-middle-tmall').css('width', '159px;');
          let centerLogged = false;
          (__webpack_require__(5300).log)('中间活动二维码', '曝光');
          setTimeout(() => {
            $('.gwd-middle-tmall').hover(() => {
              if (!centerLogged) {
                centerLogged = true;
                (__webpack_require__(5300).log)('中间活动二维码', '悬浮');
              }
            });
            $('.gwd-take').hover(() => {
              if (!centerLogged) {
                centerLogged = true;
                (__webpack_require__(5300).log)('中间活动二维码', '悬浮');
              }
            });
          }, 0);
        }
        if (!c.center.text) {
          addCenterImgSame();
        }
      } else {
        addCenterImgSame();
      }
    }
    if (config.jdActivity && G.site === '360buy') {
      let c = config.jdActivity;
      const t = new Date();
      if (t < new Date(c.end) && t > new Date(c.start)) {
        //$('#gwdang-banner-ad').remove()

        if (window.innerWidth - $('#bjd_bottom_detail').outerWidth() > 160) {
          // 购物党底部
          let html = `<a href="${c.bottom.link}" target="_blank" title="点击领取" class="rinfo-btn" style="width: initial; margin-top: 8px; margin-left: 8px; margin-right: 8px"><img style="height: 48px" src="${c.bottom.img}"/></a>`;
          $('#bjd_bottom_detail .right-info .search-mod').after(html);
        }
        if (!hasCoupon) {
          // if (butie) {
          //   renderButie(butie)
          //   return
          // }

          if (c.center.textlong) {
            (__webpack_require__(41761).setMet)('couponLink', {
              content: '抢京东超级红包',
              url: 'https://p.gouwuke.com/95a6br'
            });
            new Vue({
              el: '#gwd-coupon-placeholder',
              render: h => h(CommonCouponBarMini, {
                props: {
                  type: 'link',
                  href: c.center.link,
                  mainColor: '#ff3b5c',
                  secondColor: '#ff809a',
                  text: c.center.textlong,
                  icon: 'https://cdn.bijiago.com/images/extensions/activity/giftmoney@2x.png'
                }
              })
            });
            // addSiteActivity(c.center.link, c.value ? c.value: 25618)
            (__webpack_require__(92771).getStore)().commit('promos/setState', {
              activityRedpack: {
                value: c.value ? c.value : 25618,
                unit: c.unit ? c.unit : '元',
                link: c.center.link
              }
            });
          }
        }
      }
    }
  }
};

/***/ }),

/***/ 74222:
/***/ ((module, exports, __webpack_require__) => {

"use strict";
var __WEBPACK_AMD_DEFINE_RESULT__;

!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  var exports = {};
  var data = {};
  exports.get = function (key) {
    return data[key];
  };
  exports.data = data;
  exports.set = function (key, value) {
    if (value === undefined && key) {
      data = key;
    } else {
      data[key] = value;
    }
  };
  return exports;
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

/***/ }),

/***/ 74444:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
const liWidth = 268;
// 移除固定的 ITEMS_PER_PAGE 常量
var _default = exports.A = {
  name: 'TmCompare',
  props: {
    data: {
      type: Array,
      default: () => []
    },
    link: {
      type: String,
      default: ''
    },
    imgLoad: {
      type: String,
      default: ''
    },
    stores: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {
      dpId: G.dp.dpId,
      currentPage: 1,
      pages: 1,
      centerWidth: 0,
      show: false
    };
  },
  computed: {
    // 动态计算每页显示的商品数量
    itemsPerPage() {
      // 如果容器宽度大于0，则根据容器宽度和商品项宽度计算
      // 至少显示1个商品
      return this.centerWidth > 0 ? Math.max(1, Math.floor(this.centerWidth / liWidth)) : 5;
    },
    pageItems() {
      const startIndex = (this.currentPage - 1) * this.itemsPerPage;
      return this.data.slice(startIndex, startIndex + this.itemsPerPage);
    }
  },
  watch: {
    data() {
      this.setWidth();
      // 重置为第一页
      this.currentPage = 1;
    },
    pages() {
      this.currentPage = 1;
    }
  },
  methods: {
    getId(item) {
      return item.num_iid ? item.num_iid : item.dp_id;
    },
    setWidth() {
      this.$nextTick(() => {
        const allProducts = this.$refs.allProducts;
        if (allProducts) {
          this.centerWidth = allProducts.clientWidth;
          this.pages = Math.ceil(this.data.length / this.itemsPerPage);
        }
      });
    },
    prevPage() {
      if (this.currentPage > 1) {
        this.currentPage -= 1;
        this.$emit('page-change', this.currentPage);
      }
    },
    nextPage() {
      if (this.currentPage < this.pages) {
        this.currentPage += 1;
        this.$emit('page-change', this.currentPage);
      }
    }
  },
  mounted() {
    this.setWidth();
    window.addEventListener('resize', this.setWidth);
    this.$el.parentElement.addEventListener('mouseenter', () => {
      this.show = true;
      this.setWidth();
    });
    this.$el.parentElement.addEventListener('mouseover', () => {
      this.show = true;
    });
  }
};

/***/ }),

/***/ 74488:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var arraySlice = __webpack_require__(67680);

var floor = Math.floor;

var sort = function (array, comparefn) {
  var length = array.length;

  if (length < 8) {
    // insertion sort
    var i = 1;
    var element, j;

    while (i < length) {
      j = i;
      element = array[i];
      while (j && comparefn(array[j - 1], element) > 0) {
        array[j] = array[--j];
      }
      if (j !== i++) array[j] = element;
    }
  } else {
    // merge sort
    var middle = floor(length / 2);
    var left = sort(arraySlice(array, 0, middle), comparefn);
    var right = sort(arraySlice(array, middle), comparefn);
    var llength = left.length;
    var rlength = right.length;
    var lindex = 0;
    var rindex = 0;

    while (lindex < llength || rindex < rlength) {
      array[lindex + rindex] = (lindex < llength && rindex < rlength)
        ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
        : lindex < llength ? left[lindex++] : right[rindex++];
    }
  }

  return array;
};

module.exports = sort;


/***/ }),

/***/ 74491:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "\n.bjgou-subsidy-bar:hover .qrcode {\n  display: flex!important;\n  flex-direction: column;\n  align-items: center;\n}\n.gwd-redpack-qr-link {\n  vertical-align: bottom;\n  font-size: 14px;\n  color: #ff5f00;\n  margin-left: 5px;\n  position: relative;\n  top: -12px;\n  text-decoration: none;\n  white-space: nowrap;\n}\n.gwd-redpack-qr-link:hover {\n  text-decoration: none;\n}\n.gwd-redpack-qr-link::after {\n  content: '';\n  position: absolute;\n  left: 0;\n  right: 0;\n  height: 1px;\n  background: #ff5f00;\n  bottom: -1px;\n}\n.miniPanel .gwd-redpack-qr-link img {\n  display: none;\n}\n", ""]);

// exports


/***/ }),

/***/ 74764:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

const Polynomial = __webpack_require__(64713)

function ReedSolomonEncoder (degree) {
  this.genPoly = undefined
  this.degree = degree

  if (this.degree) this.initialize(this.degree)
}

/**
 * Initialize the encoder.
 * The input param should correspond to the number of error correction codewords.
 *
 * @param  {Number} degree
 */
ReedSolomonEncoder.prototype.initialize = function initialize (degree) {
  // create an irreducible generator polynomial
  this.degree = degree
  this.genPoly = Polynomial.generateECPolynomial(this.degree)
}

/**
 * Encodes a chunk of data
 *
 * @param  {Uint8Array} data Buffer containing input data
 * @return {Uint8Array}      Buffer containing encoded data
 */
ReedSolomonEncoder.prototype.encode = function encode (data) {
  if (!this.genPoly) {
    throw new Error('Encoder not initialized')
  }

  // Calculate EC for this data block
  // extends data size to data+genPoly size
  const paddedData = new Uint8Array(data.length + this.degree)
  paddedData.set(data)

  // The error correction codewords are the remainder after dividing the data codewords
  // by a generator polynomial
  const remainder = Polynomial.mod(paddedData, this.genPoly)

  // return EC data blocks (last n byte, where n is the degree of genPoly)
  // If coefficients number in remainder are less than genPoly degree,
  // pad with 0s to the left to reach the needed number of coefficients
  const start = this.degree - remainder.length
  if (start > 0) {
    const buff = new Uint8Array(this.degree)
    buff.set(remainder, start)

    return buff
  }

  return remainder
}

module.exports = ReedSolomonEncoder


/***/ }),

/***/ 74787:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjNweCIgaGVpZ2h0PSIxMHB4IiB2aWV3Qm94PSIwIDAgMjMgMTAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjEgKDY3MDQ4KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT7nrq3lpLQ8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iMeaciOS/ruaUuSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IuaPkuS7tue6ouWMhSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTExNDguMDAwMDAwLCAtNTU3LjAwMDAwMCkiIGZpbGw9IiNGRjU2NTIiPgogICAgICAgICAgICA8ZyBpZD0i5YiG57uELTQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDgyMi4wMDAwMDAsIDU0NS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSLnrq3lpLQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMyNi4wMDAwMDAsIDEyLjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSLot6/lvoQiIHBvaW50cz0iMTYuNjk4MTYxOCA5LjE0MjU4MjQgMjEuMjgyNTUwMiA1IDE2LjY5ODE2MTggMC44NTc0MTc2MDMgMTcuMzUzMDc0NCAwLjI2NTYyMDExOCAyMi41OTIzNzU0IDUgMTcuMzUzMDc0NCA5LjczNDM3OTg4Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9Iui3r+W+hC1jb3B5IiBvcGFjaXR5PSIwLjgiIHBvaW50cz0iOC40NDE3ODIwOSA5LjE0MjU4MjQgMTMuMDI2MTcwNCA1IDguNDQxNzgyMDkgMC44NTc0MTc2MDMgOS4wOTY2OTQ3MSAwLjI2NTYyMDExOCAxNC4zMzU5OTU3IDUgOS4wOTY2OTQ3MSA5LjczNDM3OTg4Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9Iui3r+W+hC1jb3B5LTIiIG9wYWNpdHk9IjAuNCIgcG9pbnRzPSIwLjE4NTQwMjM3NCA5LjE0MjU4MjQgNC43Njk3OTA3MiA1IDAuMTg1NDAyMzc0IDAuODU3NDE3NjAzIDAuODQwMzE0OTk2IDAuMjY1NjIwMTE4IDYuMDc5NjE1OTcgNSAwLjg0MDMxNDk5NiA5LjczNDM3OTg4Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==";

/***/ }),

/***/ 74868:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['color']
};

/***/ }),

/***/ 74882:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(30029);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("e14a155e", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 75301:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-promotion-icon[data-v-c3c64a38] {\n  border-radius: 4px;\n  background: #f7f9fa;\n  box-shadow: 2px 2px 30px 0px rgba(97, 105, 119, 0.18);\n  position: absolute;\n  width: 64px;\n  height: 90px;\n  right: 0;\n  bottom: -105px;\n  border-top-left-radius: 15px;\n  border-bottom-left-radius: 15px;\n  color: #333;\n  z-index: 13999;\n}\n.gwd-promotion-icon[data-v-c3c64a38]::after {\n  content: '';\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: -5px;\n  width: 6px;\n}\n.gwd-promotion-icon .gwd-hover-show[data-v-c3c64a38] {\n  display: none;\n}\n.gwd-promotion-icon:hover .gwd-hover-show[data-v-c3c64a38] {\n  display: flex;\n}\n.gwd-promotion-icon .gwd-promotion-num[data-v-c3c64a38] {\n  position: absolute;\n  width: 15px;\n  height: 15px;\n  line-height: 15px;\n  text-align: center;\n  top: 8px;\n  right: 8px;\n  border-radius: 50%;\n  background: #fa3152;\n  font-size: 12px;\n  color: #fff;\n}\n.gwd-taobao[data-v-c3c64a38],\n.gwd-tmall[data-v-c3c64a38] {\n  width: 56px;\n}\n.gwd-taobao.gwd-promotion-icon[data-v-c3c64a38],\n.gwd-tmall.gwd-promotion-icon[data-v-c3c64a38] {\n  bottom: -150px;\n}\n.gwd-taobao .gwd-promotion-window[data-v-c3c64a38],\n.gwd-tmall .gwd-promotion-window[data-v-c3c64a38] {\n  right: 60px;\n  top: -407px;\n}\n.gwd-360buy .gwd-promotion-window[data-v-c3c64a38] {\n  top: -303px;\n}\n.gwd-jd-search[data-v-c3c64a38] {\n  position: fixed;\n  right: 0;\n  top: calc(50% + 30px);\n}\n", ""]);

// exports


/***/ }),

/***/ 75591:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(57478);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("03dfc70a", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 75682:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


const utils = __webpack_require__(30888);
const deviceEncode = __webpack_require__(69793);
// const productMonitor = require('productMonitor')
const userData = __webpack_require__(74222);
// var vipSearch = require('vipSearch')
let template = __webpack_require__(26133);
// let log = require('log')
// let cnzz = require('cnzz')
const renderBottomBar = () => {
  let perinfo = userData.get('permanent');
  let hideClass = '';
  let fold = perinfo.fold;
  if (gwd_G.from_device === 'default') {
    fold = perinfo.top_fold;
  }
  perinfo.fold = fold;
  if (fold === '1') hideClass = 'b-hidden';
  let html = __webpack_require__(22632);
  let refer = encodeURIComponent(document.location.href);
  let feedbackUrl = `https://www.gwdang.com/brwext/suggest?refer=${refer}&from_device=${deviceEncode(G.from_device)}`;
  let settingUrl;
  if (!perinfo.setPage) {
    settingUrl = `${G.server}/brwext/setting?from=${deviceEncode(G.from_device)}&btype=${G.btype ? G.btype : ''}`;
  }
  $('body').append(template.compile(html)({
    hidemod: hideClass,
    settingUrl: settingUrl,
    detailW: $(window).width(),
    f_url: feedbackUrl
  }));
  // if (G.site == 'lenovo') {
  //   if ($('#container_buygroup').length > 0 && $('#container_buygroup').css('position') == 'fixed') {
  //     $('#bjd_bottom_detail').css('bottom', '80px')
  //   }
  // }
};
const addBtBarEvent = () => {
  let perinfo = userData.get('permanent');
  $('#gwdang-trend').on('mouseenter', function () {
    $('#gwdang-trend-detail').css('display', 'flex');
    $('#gwdang-trend-detail .panel-wrap').css('flex', 1);
    $(document).trigger('renderAgain');
    $(this).addClass('mshover');
  });
  $('#gwdang-trend, #gwdang-trend-detail').on('mouseleave', function () {
    // $('#gwdang-trend-detail').hide()
    $(this).removeClass('mshover');
  });
  $('#gwdang-setting').on('click', () => {
    utils.openTab();
  });
  $('.nbt-close-btn').on('click', function () {
    if (perinfo.fold !== '1') {
      $('.close-module').addClass('b-hidden');
      $(this).addClass('b-hidden');
      $('#bjd_bottom_detail').css('width', '94px');
      $('.right-info').css('display', 'none');
      perinfo.fold = '1';
    } else {
      $('.close-module').removeClass('b-hidden');
      $(this).removeClass('b-hidden');
      $('#bjd_bottom_detail').css('width', 'auto');
      $('.right-info').css('display', 'flex');
      perinfo.fold = '0';
    }
    // 用户设置插件之后需要保存
    utils.setLocal('fold', perinfo.fold);
    utils.settings('set_p_fold', 'p_fold', perinfo.fold);
  });
};
module.exports.init2 = data => {
  if (G.IE6 && G.site == 'ccb') {
    return;
  }
  if (G.site === 'smzdm') {
    return;
  }
  // 加载本地插件UI
  renderBottomBar();
  // require('lowestPrice').init(data.now)
  // // require('haoym').init()
  // // require('zhidemai').init(data.now.site_id)
  // require('compare').init(data)
  // require('topFavor').init()
  // 加载底部设置
  (__webpack_require__(73195).init)();
  addBtBarEvent();
  // priceTrend.init(G.where_buy_dps, G.now_dp_id, "bottom");
  // taobaoCompare.init(data, "bottom");
  // wishlist.init(data.share_good, data.now);
  // //加载促销活动
  // promo.addPromo(promo.getPromoData(data));
};

/***/ }),

/***/ 75772:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
const template = __webpack_require__(26133);
const userData = __webpack_require__(74222);
var isShow, totalPages, nowPage;
const renderB2c = data => {
  let linkAll;
  let info = userData.get('other_info');
  if (data.length >= 15) {
    data = data.slice(0, 15);
    linkAll = `https://www.gwdang.com/dp${info.now.dp_id}/where_buy/?from=browser&crc64=1&m=b2c#tabs`;
  } else {
    let s = parseInt(data.length / 3);
    data = data.slice(0, s * 3);
  }
  totalPages = Math.ceil(data.length / 3);
  nowPage = 1;
  renderTab("商城相似款", "mini-b2c-com");
  let html = __webpack_require__(23348);
  let views = template.compile(html)({
    data: data,
    totalPages: totalPages,
    linkAll: linkAll
  });
  $('#gwd_mini_compare').append(views).css('display', 'block');
  addEvent('#gwd_mini_compare ul');
};
let lock, linkhide;
const turnPage = (t, dom) => {
  lock = true;
  let left = Number(dom.css('left').replace('px', ''));
  if (t === '-1') {
    nowPage--;
    if (nowPage === 1) {
      $('.mini-com-foot .mini-com-tleft').hide();
    }
    if (!linkhide) {
      linkhide = true;
      $('.linkAll').hide();
      $('.mini-com-tright').show();
    }
    dom.animate({
      left: left + 450 + 'px'
    }, 500, function () {
      lock = false;
    });
  } else if (t === '1') {
    if (nowPage === totalPages) {
      lock = false;
      return;
    }
    nowPage++;
    if (nowPage === totalPages) {
      $('.linkAll').show();
      linkhide = false;
      $('.mini-com-tright').hide();
    }
    if (nowPage === 2) {
      $('.mini-com-foot .mini-com-tleft').show();
    }
    dom.animate({
      left: left - 450 + 'px'
    }, 500, function () {
      lock = false;
    });
  }
};
const addEvent = id => {
  let uldom = $(id);
  $('.mini-com-foot').on('click', function (e) {
    let type = $(e.target).attr('data-type');
    if (!lock && e.target.nodeName !== 'A') {
      turnPage(type, uldom);
    }
  });
  $('#gwd_mini_compare').on('mouseenter', function () {
    $('.mini-compare-detail').show();
  });
  $('#gwd_mini_compare').on('mouseleave', function () {
    $('.mini-compare-detail').hide();
  });
};
const renderTab = (tle, bclass) => {
  let t = `<div class="minibar-btn-box">
        <em class="setting-bg mini-compare-icon"></em>
        <span >${tle}</span>
      </div>`;
  $('#gwd_mini_compare').append($(t)).show().addClass(bclass);
};
const renderLowest = (data, linkAll) => {
  totalPages = Math.ceil(data.length / 3);
  nowPage = 1;
  renderTab("同类历史低价", "mini-lowest");
  let html = __webpack_require__(30493);
  let views = template.compile(html)({
    data: data,
    linkAll: linkAll,
    totalPages: totalPages,
    ulWidth: 150 * data.length
  });
  $('#gwd_mini_compare').append(views);
  addEvent('#mini_lowest_ul');
};
let renderTime = 0;
const renderNoinfo = () => {
  renderTime++;
  if (renderTime === 2) {
    let bclass = 'no-com-info';
    let t = `<div class="minibar-btn-box">
        <em class="setting-bg mini-compare-icon "></em>
        <span >暂无商城比价</span>
      </div>`;
    $('#gwd_mini_compare').append($(t)).show().addClass(bclass);
  }
};
const readyLowest = data => {
  let info = userData.get('other_info');
  let keyword = encodeURIComponent(info.now.coreword || "");
  let class_id = info['code-server'].class_id || '00000000';
  class_id = class_id.trim();
  let linkAll;
  if (data) {
    if (data.length >= 15) {
      data = data.slice(0, 15);
      linkAll = `https://www.gwdang.com/promotion/price?keyword=${keyword}&ext=1&class_id=${class_id}`;
    } else {
      let s = parseInt(data.length / 3);
      data = data.slice(0, s * 3);
    }
    renderLowest(data, linkAll);
    isShow = true;
  } else {
    renderNoinfo();
  }
};
// 判断b2c lowest 是否执行，因为显示逻辑上优先b2c  接口上lowest有可能领先，需要等待。
let runB2c, runLowest;
module.exports.init = async (type, data) => {
  await (__webpack_require__(41761).met)('dp_query_latest_complete');
  if (isShow) return;
  if (G.aliSite) {
    return;
  } else if (type === 'b2c') {
    runB2c = true;
    if (!data) {
      renderNoinfo();
    } else if (!(data.b2c instanceof Array) && (data.b2c.product || data.b2c.store) && data.b2c.store.length > 0) {
      (__webpack_require__(82110).renderMiniCom)(data);
      isShow = true;
    } else if (!(data.b2c_fuzzy instanceof Array) && data.b2c_fuzzy.product.length > 2 && Number(data.b2c_fuzzy.min_price)) {
      renderB2c(data.b2c_fuzzy.product);
      isShow = true;
    } else if (runLowest) {
      renderNoinfo();
      $(document).trigger('lowestready');
    } else {
      renderNoinfo();
    }
    // if (G.site === 'suning' && !G.isMonkey) {
    //   setTimeout(() => {
    //     $('#gwd_mini_compare').on('click', 'a', function(e) {
    //       let url = $(this).attr('href');
    //       if (url && url.indexOf('http') > -1) {
    //         window.open($(this).attr('href'))
    //         e.preventDefault()
    //       }
    //     })
    //   }, 500)
    // }
  } else if (type === 'lowest') {
    runLowest = true;
    if (!data) {
      renderNoinfo();
    } else if (runB2c) {
      readyLowest(data);
    } else {
      $(document).on('lowestready', function () {
        readyLowest(data);
      });
    }
  }
};

/***/ }),

/***/ 75957:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(26910);
const template = __webpack_require__(26133);
const util = __webpack_require__(30888);
let lowestIndex, showFold;
module.exports.init = (data, nop_data, store, img) => {
  render(data, nop_data, store, img);
};
const editData = (originData, nop_data, store) => {
  if (!originData) return undefined;
  let data = JSON.parse(JSON.stringify(originData));
  let lowestp = store[0].lowest;
  let storesize = store[0].all_line.length;
  if (storesize > 180) {
    let all_line2 = store[0].all_line.slice(storesize - 180);
    lowestp = Math.min.apply(null, all_line2);
  }
  nop_data = nop_data || [];
  let datal = data.length;
  if (!datal) return undefined;
  let lowest = data[datal - 1].price,
    lowIndex = datal - 1;
  for (let i = datal - 1; i >= 0; i--) {
    for (let j = 0; j < nop_data.length; j++) {
      if (data[i].time === nop_data[j].time) {
        if (data[i].price === nop_data[j].price) {
          data[i] = JSON.parse(JSON.stringify(nop_data[j]));
          data[i].isDSJ = true;
        } else {
          data.splice(i + 1, 0, JSON.parse(JSON.stringify(nop_data[j])));
          data[i + 1].isDSJ = true;
        }
      }
    }
  }
  for (let i = 0; i < data.length; i++) {
    if (data[i].price <= lowest) {
      lowest = data[i].price;
      lowIndex = i;
    }
    if (data[i].msg.coupon) {
      let str = data[i].msg.coupon;
      if (str.match(/\d+-\d+/)) {
        let arr = str.split('-');
        data[i].coupon = '券: ' + '满' + arr[0] + '减' + arr[1];
      } else {
        data[i].coupon = '券: ' + data[i].msg.coupon;
      }
    }
    if (data[i].msg.promotion) {
      data[i].promotion = '促: ' + data[i].msg.promotion;
    }
    let time = data[i].time * 1000;
    let month = new Date(time).getMonth() + 1;
    let day = new Date(time).getDate();
    if (month < 10) {
      month = '0' + month.toString();
    }
    if (day < 10) day = '0' + day.toString();
    data[i].time2 = month + '-' + day;
    // data[i].price = (data[i].price / 100).toFixed(2)
    // data[i].ori_price = (data[i].ori_price / 100).toFixed(2)
  }
  if (lowest / 100 < lowestp) {
    data[lowIndex].isLowest = true;
  }
  data.sort(function (v1, v2) {
    return v2.time - v1.time;
  });
  let lowIndex2;
  for (let i = 0; i < data.length; i++) {
    if (data[i].isLowest) {
      lowIndex2 = i;
      data[i].mark = "lowest_now";
    }
    if (!lowIndex2 && lowIndex2 !== 0) {
      data[i].mark = "lowest_before";
    } else if (i > lowIndex2) {
      data[i].mark = "lowest_after";
    }
  }
  lowestIndex = lowIndex2;
  let timestr = util.getTimeNumber(new Date().getTime(), '2');
  if (timestr === data[0].time2) {
    data[0].isnowDay = true;
  }
  return data;
};
module.exports.editData = editData;
const addEvent = () => {
  $('.show_fold .fold-bar').on('click', function () {
    $('.history-content').removeClass('show_fold');
    showFold = false;
    calLineHeight();
  });
};
const render = (originData, nop_data, store, img) => {
  let data = editData(originData, nop_data, store);
  if (data.length > 3 && lowestIndex > 1) {
    showFold = true;
  }
  let html = __webpack_require__(12550);
  $('#mini_price_history_detail').append(template.compile(html)({
    data: data,
    showFold: showFold,
    img: img
  }));
  addEvent();
};
const calLineHeight = () => {
  setTimeout(function () {
    let mH = 0;
    let doms = $('.history-content>ul li');
    for (let i = 0; i < doms.length - 1; i++) {
      let h = doms.eq(i).height();
      if (h > 0 && doms.eq(i).is(':visible')) {
        mH = mH + h + 22;
      }
    }
    if (showFold) {
      mH += 32;
    }
    $('.history-line').css('height', mH + 'px');
    let firstH = $('.history-content>ul li').eq(0).outerHeight() + 26;
    $('.show_fold .fold-bar').css('top', firstH + 'px');
  }, 10);
};
module.exports.calLineHeight = calLineHeight;

/***/ }),

/***/ 76080:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var uncurryThis = __webpack_require__(27476);
var aCallable = __webpack_require__(79306);
var NATIVE_BIND = __webpack_require__(40616);

var bind = uncurryThis(uncurryThis.bind);

// optional / simple context binding
module.exports = function (fn, that) {
  aCallable(fn);
  return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
    return fn.apply(that, arguments);
  };
};


/***/ }),

/***/ 76095:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNzRweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgNzQgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+57yW57uEPC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iNTAlIiB5MT0iMS4wNzQyMTg3NSUiIHgyPSI1MCUiIHkyPSIxMDAlIiBpZD0ibGluZWFyR3JhZGllbnQtMSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRjgwOUEiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0ZGM0I1QyIgb2Zmc2V0PSIxMDAlIj48L3N0b3A+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLotK3nianlhZrnuqLljIUt5oKs5YGc5LqM57u056CB5bGV5byAIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTIwMS4wMDAwMDAsIC0zNDIuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyMDEuMDAwMDAwLCAzNDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8cmVjdCBpZD0i5b2i54q257uT5ZCIIiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTEpIiB4PSIwIiB5PSIwIiB3aWR0aD0iNzQiIGhlaWdodD0iMjAiIHJ4PSIyIj48L3JlY3Q+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMywxIEwzOSwxIEwzOSwxIEwzOSwxOSBMMywxOSBDMS44OTU0MzA1LDE5IDEsMTguMTA0NTY5NSAxLDE3IEwxLDMgQzEsMS44OTU0MzA1IDEuODk1NDMwNSwxIDMsMSBaIiBpZD0i5b2i54q257uT5ZCIIiBmaWxsPSIjRkZGM0VDIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==";

/***/ }),

/***/ 76118:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


__webpack_require__(3362);
const DynamicDetails = (__webpack_require__(47134)/* .DynamicDetails */ .iw);
const collectMovement = (__webpack_require__(47134)/* .collectMovement */ .a6);
const communicate = __webpack_require__(79560);
const Fingerprint2 = __webpack_require__(71750);
function readLocalStorage() {
  return new Promise(resolve => {});
}
module.exports.init = function () {
  let details = new DynamicDetails();
  try {
    let k = localStorage.getItem('gwdang-dfp-obj');
    let r = JSON.parse(k);
    Object.keys(r).forEach(item => {
      details[item] = r[item];
    });
  } catch (e) {}
  if (window.requestIdleCallback) {
    requestIdleCallback(() => {
      collectMovement(details);
    });
  } else {
    setTimeout(() => {
      collectMovement(details);
    }, 500);
  }
  let fp = '';
  Fingerprint2.get({
    fonts: {
      extendedJsFonts: false
    },
    excludes: {
      userAgent: true,
      enumerateDevices: true,
      pixelRatio: true,
      doNotTrack: true,
      fontsFlash: true
    }
  }, components => {
    const values = components.map(component => component.value);
    const murmur = Fingerprint2.x64hash128(values.join(''), 31);
    fp = murmur;
    communicate.trigger({
      type: 'fp',
      value: fp
    });
    localStorage.setItem('gwdang-fp', fp);
  });
  let k = setInterval(() => {
    let collected = details.encode();
    localStorage.setItem('gwdang-dfp-obj', JSON.stringify(details));
    communicate.trigger({
      type: 'fingerprint',
      value: collected
    });
    localStorage.setItem('gwdang-dfp', collected);
  }, 2000);
  setTimeout(() => {
    clearInterval(k);
  }, 300000);
};

/***/ }),

/***/ 76320:
/***/ ((module) => {

"use strict";


/******************************************************************************
 * Created 2008-08-19.
 *
 * Dijkstra path-finding functions. Adapted from the Dijkstar Python project.
 *
 * Copyright (C) 2008
 *   Wyatt Baldwin <self@wyattbaldwin.com>
 *   All rights reserved
 *
 * Licensed under the MIT license.
 *
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *****************************************************************************/
var dijkstra = {
  single_source_shortest_paths: function(graph, s, d) {
    // Predecessor map for each node that has been encountered.
    // node ID => predecessor node ID
    var predecessors = {};

    // Costs of shortest paths from s to all nodes encountered.
    // node ID => cost
    var costs = {};
    costs[s] = 0;

    // Costs of shortest paths from s to all nodes encountered; differs from
    // `costs` in that it provides easy access to the node that currently has
    // the known shortest path from s.
    // XXX: Do we actually need both `costs` and `open`?
    var open = dijkstra.PriorityQueue.make();
    open.push(s, 0);

    var closest,
        u, v,
        cost_of_s_to_u,
        adjacent_nodes,
        cost_of_e,
        cost_of_s_to_u_plus_cost_of_e,
        cost_of_s_to_v,
        first_visit;
    while (!open.empty()) {
      // In the nodes remaining in graph that have a known cost from s,
      // find the node, u, that currently has the shortest path from s.
      closest = open.pop();
      u = closest.value;
      cost_of_s_to_u = closest.cost;

      // Get nodes adjacent to u...
      adjacent_nodes = graph[u] || {};

      // ...and explore the edges that connect u to those nodes, updating
      // the cost of the shortest paths to any or all of those nodes as
      // necessary. v is the node across the current edge from u.
      for (v in adjacent_nodes) {
        if (adjacent_nodes.hasOwnProperty(v)) {
          // Get the cost of the edge running from u to v.
          cost_of_e = adjacent_nodes[v];

          // Cost of s to u plus the cost of u to v across e--this is *a*
          // cost from s to v that may or may not be less than the current
          // known cost to v.
          cost_of_s_to_u_plus_cost_of_e = cost_of_s_to_u + cost_of_e;

          // If we haven't visited v yet OR if the current known cost from s to
          // v is greater than the new cost we just found (cost of s to u plus
          // cost of u to v across e), update v's cost in the cost list and
          // update v's predecessor in the predecessor list (it's now u).
          cost_of_s_to_v = costs[v];
          first_visit = (typeof costs[v] === 'undefined');
          if (first_visit || cost_of_s_to_v > cost_of_s_to_u_plus_cost_of_e) {
            costs[v] = cost_of_s_to_u_plus_cost_of_e;
            open.push(v, cost_of_s_to_u_plus_cost_of_e);
            predecessors[v] = u;
          }
        }
      }
    }

    if (typeof d !== 'undefined' && typeof costs[d] === 'undefined') {
      var msg = ['Could not find a path from ', s, ' to ', d, '.'].join('');
      throw new Error(msg);
    }

    return predecessors;
  },

  extract_shortest_path_from_predecessor_list: function(predecessors, d) {
    var nodes = [];
    var u = d;
    var predecessor;
    while (u) {
      nodes.push(u);
      predecessor = predecessors[u];
      u = predecessors[u];
    }
    nodes.reverse();
    return nodes;
  },

  find_path: function(graph, s, d) {
    var predecessors = dijkstra.single_source_shortest_paths(graph, s, d);
    return dijkstra.extract_shortest_path_from_predecessor_list(
      predecessors, d);
  },

  /**
   * A very naive priority queue implementation.
   */
  PriorityQueue: {
    make: function (opts) {
      var T = dijkstra.PriorityQueue,
          t = {},
          key;
      opts = opts || {};
      for (key in T) {
        if (T.hasOwnProperty(key)) {
          t[key] = T[key];
        }
      }
      t.queue = [];
      t.sorter = opts.sorter || T.default_sorter;
      return t;
    },

    default_sorter: function (a, b) {
      return a.cost - b.cost;
    },

    /**
     * Add a new item to the queue and ensure the highest priority element
     * is at the front of the queue.
     */
    push: function (value, cost) {
      var item = {value: value, cost: cost};
      this.queue.push(item);
      this.queue.sort(this.sorter);
    },

    /**
     * Return the highest priority element in the queue.
     */
    pop: function () {
      return this.queue.shift();
    },

    empty: function () {
      return this.queue.length === 0;
    }
  }
};


// node.js module exports
if (true) {
  module.exports = dijkstra;
}


/***/ }),

/***/ 76710:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(12041);
__webpack_require__(62953);
const getCoupon = __webpack_require__(80791);
const getCouponNew = __webpack_require__(62801);
const request = __webpack_require__(49388);
const cnzz = __webpack_require__(5300);
const log = __webpack_require__(35743);
const util = __webpack_require__(30888);
const extConsole = __webpack_require__(7129);
const mutationObserver = __webpack_require__(41968);
const globalCondition = __webpack_require__(41761);
var globalInfo = {},
  hasReqId = (/* unused pure expression or super */ null && ([]));
let useQrCode;
var domPattern = {
  'tmall1': {
    list: '#J_ItemList>div.product',
    dom: '.productImg-wrap',
    url: 'a.productImg'
  },
  'taobao1': {
    list: '#mainsrp-itemlist .items .item',
    dom: '.pic-box',
    listen: '#mainsrp-itemlist',
    lschild: '.m-itemlist',
    url: 'a.pic-link'
  },
  'taobao11': {
    list: '#listsrp-itemlist div.items .J_ItemListSKUItem',
    dom: '.pic-box',
    listen: '#listsrp-itemlist',
    lschild: '.m-itemlist',
    url: 'a.pic-link'
  },
  'taobao2': {
    list: 'ul li',
    dom: '.x',
    listen: '.m-itemlist',
    url: 'a'
  },
  'taobao3': {
    list: '.module-wrap.J_tb_lazyload .pro-list li',
    dom: '.x',
    listen: '.m-itemlist',
    url: 'a.item'
  },
  'taobao4': {
    list: '#list-itemList ul.items li.item',
    dom: '.J_ItemMainImgWraper',
    listen: '.m-itemlist',
    url: 'a.J_AtpLog'
  },
  'taobao5': {
    list: '.module-wrap.J_tb_lazyload ul.items li',
    dom: '.x',
    listen: '.m-itemlist',
    url: '.shopTitle+a.img_url'
  },
  'taobao6': {
    list: '.m-itemList ul.items li.item',
    dom: 'span.img-inner',
    listen: '#minilist-itemList-1',
    lschild: '.m-itemList',
    url: '.J_ItemLink'
  },
  'taobao7': {
    list: 'ul li',
    dom: '.x',
    listen: '',
    lschild: '',
    url: 'a'
  },
  'taobao8': {
    list: '[class^=Card--doubleCardWrapper--]',
    dom: '[class^=Card--mainPicAndDesc] .imageSwitch--fJ9SrtEb'
  },
  'taobao9': {
    list: '[class^=Card--listCard--]',
    dom: '[class^=MainPic--listMod--]'
  },
  'taobao10': {
    list: '[class^=doubleCard--]',
    dom: '[class^=mainPicAndDesc--] .imageSwitch--fJ9SrtEb',
    parent: 'a'
  },
  'taobaoIndex': {
    list: '.tb-recommend-content-item',
    url: 'a.item-link',
    dom: '.img-wrapper'
  },
  'taobaoIndex1': {
    list: '.tb-pick-content-item',
    url: 'a.item-link',
    dom: '.img-wrapper'
  },
  'tmallSearch': {
    list: '[class^=Content--contentInner] > div',
    dom: '[class^=Card--mainPicAndDesc] .imageSwitch--fJ9SrtEb',
    url: 'a'
  }
};
const getTypes = () => {
  let urlPattern = {
    'list\\.tmall\\.com': 'tmall1',
    's\\.taobao\\.com': 'taobao1',
    'fake\\.taobao\\.com': 'taobao11',
    'www\\.taobao\\.com/market/': 'taobao2',
    'www\\.taobao\\.com/markets/promotion/': 'taobao3',
    'www\\.taobao\\.com/markets/amusement/': 'taobao6',
    'www\\.taobao\\.com/markets/': 'taobao7',
    'list\\.taobao\\.com': 'taobao4',
    'www\\.taobao\\.com': 'taobaoIndex'
  };
  let url = location.href;
  for (let i in urlPattern) {
    if (url.match(new RegExp(i))) {
      return urlPattern[i];
    }
  }
  return 'taobao8';
};
let callbacks, hasreq, urls;
const getPageInfo = (info, callback) => {
  let infoObj = {};
  if (hasreq) {
    callbacks = callback;
    urls = info.click_url;
    return;
  }
  let itemId = info.itemId;
  let obj = {
    itemNumId: itemId
  };
  let url = `https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0/?data=${encodeURIComponent(JSON.stringify(obj))}`;
  request.getPure(url).done(function (data) {
    try {
      let item = data.data.item;
      let seller = data.data.seller;
      let item2 = JSON.parse(data.data.apiStack[0].value);
      infoObj.title = item.title;
      infoObj.picUrl = item.images[0];
      infoObj.shopName = seller.shopName;
      infoObj.shopLogo = seller.shopIcon;
      infoObj.shopUrl = seller.shopUrl;
      infoObj.biz30Day = item2.item.sellCount;
      infoObj.discountPrice = (Number(item2.skuCore.sku2info['0'].price.priceMoney) / 100).toFixed(2);
    } catch (e) {
      (__webpack_require__(7129).error)(e);
    }
    if (!infoObj.title) {
      console.log(obj);
      infoObj.title = info.titleGot;
    }
    if (!infoObj.picUrl) {
      infoObj.picUrl = info.imgGot;
    }
    if (!infoObj.discountPrice) {
      infoObj.discountPrice = info.priceGot;
    }
    infoObj.id = itemId;
    infoObj.amount = info.coupon.coupon_money;
    infoObj.effectiveStartTime = info.coupon.start_time;
    infoObj.effectiveEndTime = info.coupon.end_time;
    infoObj.pid = info.pid;
    infoObj.tkl = info.tkl;
    infoObj.tmall = location.host.indexOf('tmall') > -1 ? true : false;
    callback(infoObj, info.click_url);
    if (callbacks) {
      callbacks(infoObj, urls);
    }
  });
};
const QRReloader = __webpack_require__(76855);
const addQRcode = (id, dom) => {
  if (hasReqId.indexOf(id) > -1) return;
  hasReqId.push(id);
  if (!id) return;
  let data = globalInfo[id];
  data.pid = '10002';
  data.itemId = id;
  console.log('dom:', dom);
  data.priceGot = parseInt($(dom).parents('.item').find('.price').text().replace(/ /g, '').replace('¥', ''));
  data.titleGot = $(dom).parents('.item').find('.title').text().replace(/ /g, '').replace(/\n/g, '');
  data.imgGot = $(dom).parents('.item').find('.pic img').attr('src');
  getPageInfo(data, function (newData, url) {
    let id = 'gwd-coupon-' + parseInt(Math.random() * 1000);
    let view = `<div class="minicoupon_detail" id="${id}">
        <img src="xxx">
        <span>微信扫码领券</span>
      </div>`;
    $(dom).append(view);
    QRReloader.init(newData, url, `#${id} > img`, function (newData2) {}, false, false);
  });
};
(__webpack_require__(60340).appendCss)(`
  .search_coupon_tip {
    z-index: 0;
  }`);
const renderCouponTip = (id, parentD, site) => {
  (__webpack_require__(7129).log)('renderCouponTip', id);
  let price = $(parentD).parent().find('.price strong').text();
  if (!price) {
    price = $(parentD).find('[class^=Price--priceInt]').text();
  }
  if (!price) {
    price = $(parentD).find('[class^=priceInt--]').text();
  }
  getCoupon.init(id, '10002', function (data) {
    if (!data) {
      (__webpack_require__(7129).log)('renderCouponTip nodata', id);
      globalCondition.setMet(`gwd-pricetip-data-${id}`, {
        type: 'none'
      });
      return;
    }
    if (!data.data) {
      (__webpack_require__(7129).log)('renderCouponTip nodata', id);
      globalCondition.setMet(`gwd-pricetip-data-${id}`, {
        type: 'none'
      });
      return;
    }
    data = data.data;
    if (data.rebate) {
      extConsole.log('renderCouponTip rebate', id, data.rebate);
      globalCondition.setMet(`gwd-pricetip-data-${id}`, {
        type: 'rebate',
        rebate: data.rebate
      });
      $(parentD).append(`<span class="search_coupon_tip" style="pointer-events: none">${G.lang === 'zh-tr' ? '可以領紅包' : '可以领红包'}</span>`);
      util.waitForConditionFn(() => $(parentD).parent().find('.mainPicAdaptWrapper--V_ayd2hD').length).then(() => {
        $(parentD).parent().find('.mainPicAdaptWrapper--V_ayd2hD').append(`<span class="search_coupon_tip" style="pointer-events: none">${G.lang === 'zh-tr' ? '可以領紅包' : '可以领红包'}</span>`);
      });
      return;
    }
    data.site = site;
    globalInfo[id] = data;
    const domain = G.from_device.includes('bijiago') ? 'bijiago' : 'gwdang';
    let browser = G.browser;
    if (G.from_device.includes('bijiago') || G.from_device.includes('biyibi')) {
      browser = 'chrome';
    }
    const productInfo = {
      title: $(parentD).find('[class^=title--]').text(),
      price: price,
      img: $(parentD).find('img[class^=mainPic--]').attr('src'),
      shopName: $(parentD).find('[class^=shopNameText--]').text(),
      saleAmount: $(parentD).find('[class^=realSales--]').text().replace('人付款', '')
    };
    let link = `${G.tb_server}/extension/qrpage?dp_id=${id}-83&tag=9_${browser}&discount=${data.coupon.coupon_money}&union=${G.union}&title=${encodeURIComponent(productInfo.title)}&price=${productInfo.price}&shopName=${encodeURIComponent(productInfo.shopName)}&img=${encodeURIComponent(productInfo.img)}&sellAmount=${encodeURIComponent(productInfo.saleAmount)}`;
    if (G.lang === 'zh-tr') {
      link += '&lang=zh-tr';
    }
    extConsole.log('renderCouponTip data', id, data);
    globalCondition.setMet(`gwd-pricetip-data-${id}`, {
      type: 'coupon',
      coupon: data.coupon.coupon_money
    });
    let dom = `<a href="${link}" data-id="${id}" title="当前商品点击领券立减${data.coupon.coupon_money}元" class="search_coupon_tip" target="_blank">￥${data.coupon.coupon_money} 优惠券</a>`;
    if (useQrCode) {
      dom = `<a  data-id="${id}" class="search_coupon_tip" style="cursor:default;" target="_blank">￥${data.coupon.coupon_money} 优惠券<a>`;
    }
    if (G.lang === 'zh-tr') {
      dom = dom.replaceAll('优惠券', '優惠券').replaceAll('当前商品点击领券立减', '當前商品點擊領券立減').replaceAll('元', '元');
    }
    const pos = $(parentD).css('position');
    if (pos === 'static') {
      $(parentD).css('position', 'relative');
    }
    $(parentD).append($(dom));
    util.waitForConditionFn(() => $(parentD).parent().find('.mainPicAdaptWrapper--V_ayd2hD').length).then(() => {
      $(parentD).parent().find('.mainPicAdaptWrapper--V_ayd2hD').append($(dom));
    });
  }, true, price);
};
const listenDom = () => {
  let lastCouponCount = 0;
  let timer = setInterval(() => {
    let couponCount = $('.search_coupon_tip').length;
    if (couponCount >= lastCouponCount) {
      lastCouponCount = couponCount;
      return;
    }
    clearInterval(timer);
    window.extNeedReload = true;
  }, 2000);
};
const renderInit = async () => {
  // 获取链接形式 不同页面  列表页不同
  extConsole.log('renderInit');
  let type = getTypes();
  if (!type) return;
  let obj = domPattern[type];
  let list;
  await util.waitForConditionFn(() => {
    list = $(obj['list']);
    if (type === 'taobao1' && list.length === 0) {
      obj = domPattern['taobao11'];
      list = $(obj['list']);
    }
    if (list.length === 0) {
      obj = domPattern['taobao8'];
      list = $(obj['list']);
    }
    if (list.length === 0) {
      obj = domPattern['taobao9'];
      list = $(obj['list']);
    }
    if (list.length === 0) {
      obj = domPattern['taobao10'];
      list = $(obj['list']);
    }
    if (list.length === 0) {
      obj = domPattern['tmallSearch'];
      list = $(obj['list']);
    }
    if (type === 'taobaoIndex' && list.length === 0) {
      obj = domPattern['taobaoIndex1'];
      list = $(obj['list']);
    }
    return list && list.length > 0;
  }, 1000, 10);

  // 对于新版淘宝，给每个商品添加class
  $('[class^=Card--mainPicAndDesc]').addClass('gwd-item').css('position', 'relative');
  $('[class^=MainPic--listMod--]').addClass('gwd-item').css('position', 'relative');
  $('[class^=mainPicAndDesc--]').addClass('gwd-item').css('position', 'relative');

  // 获取商品id
  for (let i = 0; i < list.length; i++) {
    let dom = list.eq(i);
    if (obj['url']) {
      dom = dom.find(obj['url']);
    }
    if (obj['parent']) {
      dom = dom.parents(obj['parent']);
    }
    if ($(dom).attr('gwd-coupon-checked')) continue;
    let id = null;
    let site = 'taobao';
    if (dom.length) {
      let href = dom.attr('href');
      if (!href) continue;
      if (href.indexOf('detail.tmall.com') > -1) site = 'tmall';
      id = href.match(/[?&]id=(\d+)/) && href.match(/[?&]id=(\d+)/)[1];
      if (!id) {
        id = dom.attr('data-nid');
      }
    } else {
      id = list.eq(i).find('.ww-light.ww-small').attr('data-item');
      (__webpack_require__(7129).log)('find new type id', id);
    }
    if (!id) continue;
    let appendDom = list.eq(i).find(obj['dom']);
    if (appendDom.length === 0) appendDom = list.eq(i);
    $(dom).attr('gwd-coupon-checked', 1);
    renderCouponTip(id, appendDom, site);
  }
  if (type.indexOf('taobao') > -1) {
    $(obj['listen']).find(obj['lschild']).attr('c_coupon', '1');
  }
  // $('body').on('click', function(e) {
  //   if ($(e.target).hasClass('search_coupon_tip')) {
  //     cnzz.log('click:searchcoupon')
  //     log('click:searchcoupon')
  //   }
  // })
  // $('body').on('mouseover', function(e) {
  //   if ($(e.target).hasClass('search_coupon_tip')) {
  //     let id = $(e.target).attr('data-id')
  //     if ($(e.target).find('.qr_coupondetail').length === 0 && useQrCode) {
  //       cnzz.log('track:searchcoupon')
  //       log('track:searchcoupon')
  //       addQRcode(id, e.target)
  //     }
  //   }
  // })
};
module.exports.init = () => {
  if (G.forbidCoupon) return;
  // 360浏览器版本不加载优惠券  不然审核不通过
  if (G.from_device === '360') return;
  // useQrCode = true;
  useQrCode = false;
  setTimeout(async function () {
    // 监听dom 有更新， 再一次加载优惠券
    // listenDom()
    await renderInit();
    // if ($('[class^=Card--doubleCard--]').length) {
    //   listenDom()
    // }
    const cb = (__webpack_require__(60340).limit)(renderInit);
    if ((location.href === 'https://www.taobao.com/' || location.href.startsWith('https://www.taobao.com/?')) && ($('.tb-recommend-content').length || $('.tb-pick-feeds-container').length)) {
      if ($('.tb-recommend-content').length) {
        $('.tb-recommend-content')[0].addEventListener('DOMNodeInserted', cb, false);
      }
      if ($('.tb-pick-feeds-container').length) {
        // $('.tb-pick-feeds-container')[0].addEventListener('DOMNodeInserted', cb, false)
        mutationObserver.observe('.tb-pick-feeds-container', (mutations, observer) => {
          for (const mutation of mutations) {
            if (mutation.type === 'childList') {
              cb();
            }
          }
        }, {
          childList: true,
          subtree: true
        });
      }
    }
    extConsole.log('searchCoupon loop check');
    if (location.href.startsWith('https://s.taobao.com')) {
      await (__webpack_require__(30888).waitForConditionFn)(() => {
        return $('#content_items_wrapper').length;
      });
      mutationObserver.observe('#content_items_wrapper', (mutations, observer) => {
        for (const mutation of mutations) {
          if (mutation.type === 'childList') {
            // extConsole.log('searchCoupon', 'A child node has been added or removed.');
            cb();
          }
        }
      }, {
        childList: true,
        subtree: true
      });
    }
  }, 1000);
};

/***/ }),

/***/ 76855:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);


const getQRCode = __webpack_require__(95554);
let qrFailed = __webpack_require__(54287);
module.exports = {
  init(newData, url, element, cb) {
    let appended = false;
    $(element).css('visibility', 'hidden');
    let get = () => getQRCode(newData, url, function (newData2) {
      if (element === '.bjgext-toptabs .mini-coup-detail > img') {
        qrFailed = qrFailed.replace(/118px/g, '100px').replace(/59px/g, '50px');
      }
      if (newData2[0].etag && parseInt(newData2[0].etag) >= 1 && parseInt(newData2[0].etag) <= 2) {
        $(element).css('visibility', 'hidden');
        let el = $(element).parent();
        if (appended) {
          $(element.replace('img', '.gwd-qr-warn')).show();
          $(element.replace('img', '.gwd-qr-warn img')).css('visibility', 'visible');
          $(element.replace('img', '.gwd-qr-warn img')).attr('src', 'https://cdn.gwdang.com/images/extensions/warn@2x.png');
        } else {
          appended = true;
          $(el).append(qrFailed);
          $(element.replace('> img', '.gwd-qr-reload')).click(function () {
            get();
            $(element.replace('img', '.gwd-qr-warn')).hide();
          });
        }
        // $(element).click(function() {
        //   $(element).css('visibility', 'hidden')
        //   $(element).css('cursor', 'pointer')
        //   get()
        // })
      } else {
        $(element).attr('src', newData2[0].imgSrc);
        $(element).css('visibility', 'visible');
      }
      cb(newData2);
    }, false, false);
    get();
  }
};

/***/ }),

/***/ 76904:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(26910);
__webpack_require__(3362);
const request = __webpack_require__(49388);
const md5 = __webpack_require__(83386);
const host = 'i.gwdang.com';
const userData = __webpack_require__(74222);
const communicate = __webpack_require__(79560);
const getUserToken = () => {
  let resolved = false;
  return new Promise(resolve => {
    communicate.trigger({
      type: 'checkUserToken'
    });
    communicate.on(data => {
      if (typeof data === 'string') {
        data = JSON.parse(data);
      }
      if (data.type === 'checkUserToken') {
        resolved = true;
        resolve(data.value);
      }
    });
  });
};
const signParams = params => {
  const query = Object.keys(params).sort((a, b) => {
    return a.localeCompare(b);
  }).map(x => x + params[x]).join('');
  const first = md5(query) + params.ac;
  let res = md5(first);
  return res;
};
const post = (url, params, data, hidePrice = false) => {
  if (!data.price && !hidePrice) {
    data.price = '0';
  }
  params.platform = 'ext';
  params.t = parseInt(new Date().getTime() / 1000);
  const toSign = {
    ...params,
    ...data,
    ac: url.toLowerCase().replace('/', '').replace(/\//g, '.')
  };
  params.sign = signParams(toSign);
  const query = Object.keys(params).map(x => x + '=' + encodeURIComponent(params[x])).join('&');
  return request.post(`https://${host}${url}?${query}`, data, true, true);
};
function requestXHR(url, callback, referer) {
  var xmlhttp = new XMLHttpRequest();
  xmlhttp.addEventListener('load', function () {
    callback(xmlhttp.responseText);
  });
  xmlhttp.withCredentials = true;
  xmlhttp.open("GET", url, true);
  // if (referer) {
  //     xmlhttp.setRequestHeader('x-referer', referer)
  // }
  xmlhttp.send();
}
;
const get = (url, params) => {
  params.platform = 'ext';
  if (!params.t) {
    params.t = parseInt(new Date().getTime() / 1000);
  }
  // let cb = 'cb' + parseInt(Math.random() * 10000)
  // if (!G.allowBackgroundRequest) {
  //   params.callback = cb
  // }
  params.sign = signParams({
    ...params,
    ac: url.toLowerCase().replace('/', '').replace(/\//g, '.')
  });
  const query = Object.keys(params).map(x => x + '=' + encodeURIComponent(params[x])).join('&');
  if (G.allowBackgroundRequest && G.canUseLocalLoginCheck) {
    return request.rawGet(`https://${host}${url}?${query}`);
  } else {
    return new Promise(resolve => {
      let cancel = true;
      requestXHR(`https://${host}${url}?${query}`, function (res) {
        cancel = false;
        try {
          let r = JSON.parse(res);
          resolve(r);
        } catch (e) {
          resolve(res);
        }
      });
      setTimeout(() => {
        if (cancel) {
          resolve({
            code: 0
          });
        }
      }, 4000);
      // $.get(`https://${host}${url}?${query}`).then(res => {
      //   try {
      //     let r = JSON.parse(res)
      //     resolve(r)
      //   } catch (e) {
      //     resolve(res)
      //   }
      // })
      // $.ajax({
      //   url: `https://${host}${url}?${query}`,
      //   dataType: 'jsonp',
      //   jsonp: '',
      //   jsonpCallback: cb,
      //   success: function(data){
      //     resolve(data)
      //   }
      // });
    });
  }
};
const getQueryString = (url, params) => {
  params.platform = 'ext';
  params.t = parseInt(new Date().getTime() / 1000);
  params.sign = signParams({
    ...params,
    ac: url.toLowerCase().replace('/', '').replace(/\//g, '.')
  });
  const query = Object.keys(params).map(x => x + '=' + encodeURIComponent(params[x])).join('&');
  return `https://${host}${url}?${query}`;
};
let current = null;
let currentCollectId = null;
const getDetail = dp_id => {
  return new Promise((resolve, reject) => {
    if (!G.productChecked || !G.productChecked.collected) {
      resolve({});
      return;
    }
    if (current) {
      resolve(current);
    } else {
      get('/UserCollection/Detail', {
        dp_id: dp_id
      }).then(res => {
        try {
          if (typeof res === 'string') {
            res = JSON.parse(res);
          }
          current = res;
          resolve(res);
        } catch (e) {
          resolve({});
        }
      });
    }
  });
};
module.exports = {
  reset() {
    current = null;
    currentCollectId = null;
  },
  /**
   * 登录
   * @param username
   * @param password
   * @param remember
   * @returns {*}
   */
  login(username, password, remember) {
    return post('/User/Login', {}, {
      account: username,
      passwd: password,
      remember_me: remember
    });
  },
  /**
   * 退出登录
   */
  logout() {
    return get('/User/Logout', {});
  },
  /**
   * 发送短信
   * @param {string} phone - 电话号码
   * @returns Promise
   */
  sendSms(phone) {
    return post('/UserHelper/SmsCode', {}, {
      phone: phone,
      tag: 'login'
    });
  },
  /**
   * 检查某个商品是否被收藏
   * @param dp_id
   * @returns {*}
   */
  async checked(dp_id) {
    if (G.canUseLocalLoginCheck) {
      let token = await getUserToken();
      if (!token) {
        return new Promise(resolve => resolve({
          code: 0
        }));
      }
    }
    return get('/UserCollection/Checked', {
      dp_id: dp_id
    });
  },
  /**
   * 收藏详情
   * @param dp_id
   */
  detail(dp_id) {
    return getDetail(dp_id);
  },
  /**
   * 获取收藏列表
   * @param tab
   * @param pg
   * @param ps
   * @returns {*}
   */
  getList(tab = 'default', pg, ps = 30) {
    return get('/UserCollection/List', {
      ps: ps,
      tab: tab
    });
  },
  /**
   * 添加商品收藏
   * @param settingPrice
   * @param type
   * @returns {*}
   */
  async add(settingPrice, type, mode = 0, mPromo = 1, blackClass = 0) {
    if (current && current.data) {
      const payload = {
        collection_id: current.data.id,
        notifier_site: type,
        notifier_threshold: settingPrice
      };
      if (G.showMPromo) {
        payload.notifier_mpromo = mPromo ? 1 : 0;
      }
      if (G._pp) {
        payload._pp = G._pp;
      }
      return post('/UserCollection/Modify', {}, payload);
    }
    let price = G.dp.price;
    if (G.dp.storeInfo && G.dp.storeInfo.length) {
      if (G.dp.storeInfo[0].currency) {
        price = G.dp.oldPrice;
      }
    }
    if (isNaN(parseFloat(price))) {
      price = 0;
    }
    let oinfo = userData.get('other_info');
    if (!price) {
      if (oinfo && oinfo['code-server'] && oinfo['code-server']['price']) {
        price = oinfo['code-server']['price'];
      }
    }
    if (!price) {
      price = await (__webpack_require__(41761).met)('NowPrice');
    }
    if (!price) {
      price = 0;
    }
    return new Promise(resolve => {
      const payload = {
        dp_id: G.dp.dpId,
        title: (G.dp.name ? G.dp.name : document.title).trim(),
        url: location.href,
        img: G.dp.img ? G.dp.img : '',
        price: price,
        promo_price: G.dp.promoPrice ? G.dp.promoPrice : 0,
        notifier_site: type,
        notifier_threshold: settingPrice,
        is_black_class: blackClass
      };
      if (G.showMPromo) {
        payload.notifier_mpromo = mPromo ? 1 : 0;
      }
      if (G._pp) {
        payload._pp = G._pp;
      }
      post('/UserCollection/Add', {}, payload).then(res => {
        if (typeof res === 'string') {
          res = JSON.parse(res);
        }
        if (res.data) {
          current = res;
        }
        resolve(res);
      });
    });
  },
  /**
   * 删除商品收藏
   * @returns {*}
   * @param collectionId
   */
  delete(collectionId = null) {
    let id = collectionId ? collectionId : current && current.data ? current.data.id : '';
    if (current && current.data && id === current.data.id) {
      current = {};
    }
    return post('/UserCollection/Delete', {}, {
      collection_ids: id
    });
  },
  clearCurrent() {
    current = null;
  },
  checkLoginStatus() {
    return post('/User/Detail', {}, {});
  },
  /**
   * 降价数量
   * @param time
   */
  checkFavor(time) {
    return get('/UserCollection/Tip', {
      t: time / 1000
    });
  },
  getQueryString,
  reportMonitorEvent(dpId, title, img, url, price, buy_cnt, create_time, days) {
    return post('/UserExtend/ReportMonitorEvent', {
      dp_id: dpId,
      title: title,
      img: img,
      url: url
    }, {
      price: price,
      buy_cnt: buy_cnt,
      create_time: create_time,
      days: days
    });
  },
  getShaiDanList(dkey, skuMap) {
    const payload = {};
    if (G.site === '360buy') {
      payload.skuMap = skuMap;
    }
    return post('/UserExtendOrder/ShowList', {
      dkey: dkey
    }, payload, true);
  }
};

/***/ }),

/***/ 76928:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


// site css fix
module.exports.init = () => {
  if (G.site === '360buy') {
    (__webpack_require__(60340).appendCss)(`
      .gwd-trend-hover-p .elevator_fix.elevator { z-index: 1 }

      #mini_price_history_bjg_detail {
        left: -253px!important;
      }
      @media screen and (max-width: 1545px) {

        #mini_price_history_bjg_detail.biyibi.hideList {
          left: -39px!important;
        }
      }
    `);
    if ($('.information-wrap').length) {
      (__webpack_require__(60340).appendCss)(`
        .gwd-minibar-bg { margin-right: 100px }
      `);
    }
  }
  if (G.site.includes('amazon')) {
    (__webpack_require__(60340).appendCss)(`
      #dp { max-width: 1650px; }
    `);
  }
  if (G.site === 'colipu') {
    (__webpack_require__(60340).appendCss)(`
      .gwd-minibar-bg::after {
        content: none!important;
        clear: none!important;
      }
    `);
  }
  if (G.site === 'tmall' || G.site === 'taobao') {
    (__webpack_require__(60340).appendCss)(`
      .Price--sale--1huSj6m { z-index: 99 }

      .undefined {
        // visibility: visible!important;
      }

      .gwd_top .gwd_unfold .DetailInfo--tabTitleWrap--3q2Jn-e { top: 36px!important }

      .gwd_top .gwd_unfold .${G.aliPrefix}--tabTitleWrap--b1b8e658.${G.aliPrefix}--isStickied--_0bd5fb0 { top: 36px!important }

      .miniPanel .gwd-minibar-bg { display: none!important }
      .miniPanel #bjgext_mb_bg { display: none }

      .PurchasePanel--miniPanel--2qnyyyB { top: 126px!important }

      .gwd_top .gwd_unfold .isStickied--cAvTq3XA {
        top: 36px!important;
      }

      .gwd_top .gwd_unfold .content--nuxTngci {
        top: 31px;
      }

      .Price--priceWrap--3MY0wsh {
        white-space: nowrap;
      }

      .Price--priceAction--1hvOH5u {
        white-space: initial;
      }

      .miniPanel .beautify-scroll-bar {
        overflow: hidden scroll!important;
      }

      .PurchasePanel--footWrap--3w0gUyF { overflow: visible!important }

      .detailInfo--ympQ_paL {top: 40px}

      .gwd_unfold .${G.aliPrefix}--leftDrawer--_7efaeec {
        top: 38px;
      }

    `);
    if ($('[class^=GoLoginInfo--]').length) {
      (__webpack_require__(60340).appendCss)(`
      .BasicContent--detailInfoWrap--3U0iFLv, .detailInfoWrap--XXyEmkTY{
        top: 15px;
      }
      `);
    }
    if (location.host === 'chaoshi.detail.tmall.com') {
      (__webpack_require__(60340).appendCss)(`
      .gwd-contact-link { z-index: 0!important }
      `);
    }
    if ($('.bannerWrap--ApeVpytP').length) {
      (__webpack_require__(60340).appendCss)(`
        .BasicContent--detailInfoWrap--3U0iFLv, .detailInfoWrap--XXyEmkTY {
          top: 108px;
        }
      `);
    }
    if (!$('.GoLoginInfo--M1o9HkO3').length) {
      (__webpack_require__(60340).appendCss)(`
        .BasicContent--detailInfoWrap--3U0iFLv, .detailInfoWrap--XXyEmkTY{
          position: relative;
          top: 105px;
        }
      `);
    }
    (__webpack_require__(30888).waitForConditionFn)(() => $('.GoLoginInfo--M1o9HkO3').length).then(() => {
      (__webpack_require__(60340).appendCss)(`
        .BasicContent--detailInfoWrap--3U0iFLv, .detailInfoWrap--XXyEmkTY{
          top: 0px;
        }
      `);
    });
  }
};

/***/ }),

/***/ 77004:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-vline[data-v-99e285e4] {\n  width: 1px;\n  height: 16px;\n  background-color: #ebebeb;\n  margin-left: 16px;\n  margin-right: 16px;\n}\n.gwd-tkl[data-v-99e285e4] {\n  position: relative;\n}\n.gwd-err[data-v-99e285e4] {\n  position: absolute;\n  top: 25px;\n  left: 31px;\n  white-space: nowrap;\n  text-align: center;\n  font-size: 12px;\n  color: #ef6701;\n  background-color: #fff;\n}\n", ""]);

// exports


/***/ }),

/***/ 77049:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
__webpack_require__(3362);
const commonUtil = __webpack_require__(60340);
var _default = exports.A = {
  props: ['data', 'top', 'additionalClass'],
  data() {
    return {
      mt: 0,
      debugMode: !!window.GwdToolkit,
      // debugMode: false,
      search: $('#key').val(),
      content: '',
      from: location.hostname === 'search.jd.com' || location.hostname === 'list.jd.com' ? '京东搜索结果页' : '商品详情页',
      rankName: '',
      id: parseInt(Math.random() * 10000)
    };
  },
  mounted() {
    if (this.top) {
      this.mt = this.top;
    }
    if (!window.gwdRank) {
      window.gwdRank = this;
    }
  },
  methods: {
    async rankClick(item) {
      if (!location.hostname.includes('.jd.com')) {
        window.open(item.rurl);
      }
      const link = commonUtil.getParameterByName('target_url', item.rurl);
      const contentId = commonUtil.getParameterByName('contentId', link);
      const rankType = commonUtil.getParameterByName('rankType', link);
      const payload = {
        functionId: 'getRankLanding',
        appid: 'JDReactRankingList',
        body: JSON.stringify({
          version: '109',
          rankType: rankType,
          source: 'dacu',
          rankId: contentId,
          extraParam: {},
          fromName: '-100',
          hasVenderRank: '1'
        }),
        clientVersion: '9.4.2',
        client: 'wh5',
        uuid: Date.now() * 1000 + parseInt(Math.random() * 1000),
        area: '1_2802_54747_0'
      };
      const url = (__webpack_require__(49388).buildUrl)(`https://api.m.jd.com/client.action`, payload);
      const res = await (__webpack_require__(49388).requestXHR)(url);
      this.content = JSON.stringify(res.result.products.map(item => {
        item.zyTag = parseInt(item.zyTag);
        return item;
      }));
      this.rankName = item.rname;
      let search = $('#key').val();
      this.search = search ? search : 'fake';
      this.$nextTick(() => {
        $('#gwd-jdrank-submit-' + this.id).click();
      });
    }
  },
  computed: {
    addition() {
      return this.data.length ? this.data.filter((item, idx) => idx > 0) : [];
    }
  }
};

/***/ }),

/***/ 77342:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


module.exports = obj => {
  if (G.from_device === '360' || G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) {
    if (G.from_device === 'bijiago' && G.ss_name !== 'priceDog' || G.cooperation) {
      obj.sitename = 'taobao';
    } else {
      if (obj.source) {
        let url = obj.pureUrl || obj.url;
        url = url + (url.indexOf('?') > -1 ? '&' : '?') + 'source=' + obj.source;
        // if (!G.forbidCoupon) {
        //   url = `${G.server}/extension/RedirectInTb?id=${obj.id}&format=&site=taobao`
        // }

        return url;
      }
    }
  }
  let source = '';
  let site = obj.sitename || '';
  if (obj.source) source = obj.source;
  // if (G.ss_name === 'priceDog' && G.aliSite) {
  //   debugger
  //   return `https://tb.pricedog.com/extension/qrpage?dp_id=${obj.id}&tag=9_chrome&discount=${data.coupon.coupon_money}`
  // }
  if (true) return `${G.u_server}/redirect/tao?id=${obj.id}&site=${site}&source=${source}&from_device=${G.from_device}&union=${G.union}`;
};
const makeUrl = (item, site) => {
  if (G.from_device === 'biyibi') {
    return `https://item.taobao.com/item.htm?id=${item.num_iid}`;
  }
  return (__webpack_require__(49388).makeUrl)(G.tb_server, '/extension/qrpage', {
    dp_id: item.num_iid + '-' + site,
    directLink: 1,
    position: 'extSame',
    title: item.title,
    img: item.pic_url,
    price: item.price,
    shopName: item.nick,
    sellAmount: item.volume,
    union: G.union
  });
};
module.exports.buildCommon = data => {
  // 针对淘宝客接口tbres 返回的数据  没有优惠券的部分做链接转换。
  if (!(data.tmall instanceof Array)) {
    for (var i = 0; i < data.tmall.product.length; i++) {
      let item = data.tmall.product[i];
      let obj = {
        'source': 'common',
        'img_url': item.pic_url,
        'title': item.title,
        'price': item.price,
        'shop_name': item.nick,
        'sales': item.volume || '0',
        'id': item.num_iid,
        'url': item.url,
        'discuss': item.comment_count || '0',
        'istaobao': '0',
        'pureUrl': "https://detail.tmall.com/item.htm?id=" + item.num_iid,
        'dp_id': G.now_dp_id,
        'site_id': G.site_id
      };
      if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) {
        if ((G.from_device === 'bijiago' || G.cooperation) && !G.forbidCoupon) {
          item.url = module.exports(obj);
        } else {
          item.url = makeUrl(item, 83);
        }
      } else {
        item.url = module.exports(obj);
      }
    }
  }
  if (!(data.taobao instanceof Array)) {
    for (var i = 0; i < data.taobao.product.length; i++) {
      let item = data.taobao.product[i];
      let obj = {
        'source': 'common',
        'img_url': item.pic_url,
        'title': item.title,
        'price': item.price,
        'shop_name': '',
        'sales': item.volume || '0',
        'id': item.num_iid,
        'url': item.url,
        'discuss': item.comment_count || '0',
        'istaobao': '1',
        'pureUrl': "https://item.taobao.com/item.htm?id=" + item.num_iid,
        'dp_id': G.now_dp_id,
        'site_id': G.site_id
      };
      if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) {
        if ((G.from_device === 'bijiago' || G.cooperation) && !G.forbidCoupon) {
          item.url = module.exports(obj);
        } else {
          item.url = makeUrl(item, 123);
        }
      } else {
        item.url = module.exports(obj);
      }
    }
  }
  return data;
};

/***/ }),

/***/ 77347:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

var DESCRIPTORS = __webpack_require__(43724);
var call = __webpack_require__(69565);
var propertyIsEnumerableModule = __webpack_require__(48773);
var createPropertyDescriptor = __webpack_require__(6980);
var toIndexedObject = __webpack_require__(25397);
var toPropertyKey = __webpack_require__(56969);
var hasOwn = __webpack_require__(39297);
var IE8_DOM_DEFINE = __webpack_require__(35917);

// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;

// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  O = toIndexedObject(O);
  P = toPropertyKey(P);
  if (IE8_DOM_DEFINE) try {
    return $getOwnPropertyDescriptor(O, P);
  } catch (error) { /* empty */ }
  if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
};


/***/ }),

/***/ 77539:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, data = $data.data, protype = $data.protype, site = $data.site, timestr = $data.timestr;
    $$out += '<div class="yjhtbtn">\n  <em class="ht-bg"></em>\n  <span>一键海淘:</span>\n  <span class="prifontf yjht-tle-pri">\xA5';
    $$out += $escape(data.goods_price);
    $$out += '</span>\n</div>\n<div class="ht-com-detail" id="yjht_detail">\n  ';
    if (!data.noinfo) {
        $$out += '\n  <div class="global-content yjht-model">\n    <div class="gl-left">\n      <div class="gl-l-item  ';
        if (protype == 'ziying') {
            $$out += ' ziying ';
        } else {
            $$out += 'sanfang';
        }
        $$out += '">\n        <em class="ht-bg"></em>\n        <span>';
        if (protype == 'ziying') {
            $$out += ' 自营 ';
        } else {
            $$out += '第三方';
        }
        $$out += '</span>\n        <div class="tle-remind-box">\n          ';
        $$out += $escape(protype == 'ziying' ? site + '直接销售' : site + '第三方商家销售');
        $$out += '\n        </div>\n      </div>\n      <div class="gl-l-item yjhtb">\n        <em class="ht-bg"></em>\n        <span>一键海淘</span>\n        <div class="tle-remind-box">\n          由剁手帮提供一键海淘服务\n        </div>\n      </div>\n      <div class="gl-l-item transhelp">\n        <em class="ht-bg"></em>\n        <span>翻译帮助</span>\n        <div class="tle-remind-box">已为您开启划词翻译\uFF0C鼠标选中相关文字\uFF0C即可翻译</div>\n      </div>\n      <div class="gl-l-item sizehelp">\n        <em class="ht-bg"></em>\n        <span>尺码帮助</span>\n        <div class="tle-remind-box">点击查看尺码帮助</div>\n      </div>\n    </div>\n    <div class="gl-right">\n      <div class="gl-r-item">\n        <span class="r-item-sp1">官网运费</span>\n        <span class="r-item-sp2">:</span>\n        <span class="r-item-sp3 prifontf">\xA5';
        $$out += $escape(data.official_postage);
        $$out += '</span>\n        ';
        if (data.xm_official != 0) {
            $$out += '\n          <span class="r-item-sp4 oldfrieght prifontf">\xA5';
            $$out += $escape(data.xm_official);
            $$out += '</span>\n          <span class="r-tag ht-bg"></span>\n        ';
        }
        $$out += '\n      </div>\n      <div class="gl-r-item">\n        <span class="r-item-sp1">转运费</span>\n        <span class="r-item-sp2">:</span>\n        <span class="r-item-sp3 prifontf">\xA5';
        $$out += $escape(data.international_postage);
        $$out += '</span>\n        <span class="r-item-sp4"></span>\n      </div>\n      <div class="gl-r-item">\n        <span class="r-item-sp1">税费</span>\n        <span class="r-item-sp2">:</span>\n        <span class="r-item-sp3 prifontf">\xA5';
        $$out += $escape(data.tax_fee);
        $$out += '</span>\n        ';
        if (data.xm_fee != 0) {
            $$out += '\n          <span class="r-item-sp4 oldtax prifontf">\xA5';
            $$out += $escape(data.xm_fee);
            $$out += '</span>\n          <span class="r-tag ht-bg"></span>\n        ';
        }
        $$out += '\n      </div>\n      <div class="gl-r-item daosj">\n        <span class="r-item-sp1">到手价</span>\n        <span class="r-item-sp2">:</span>\n        <span class="r-item-sp3 prifontf">\xA5';
        $$out += $escape(data.purePrice);
        $$out += '</span>\n        <span class="r-item-sp4"></span>\n      </div>\n    </div>\n  </div>\n  <div class="global-foot yjht-model">\n    <span>预计到货时间:';
        $$out += $escape(timestr);
        $$out += '</span>\n    <a href="';
        $$out += $escape(data.url);
        $$out += '" target="_blank">立即购买</a>\n  </div>\n  ';
    } else {
        $$out += '\n  <div class="ht-error-info">\n    <em class="ht-bg"></em>\n    <div>抱歉\uFF0C由于相关法律或者转运禁运的原因</div>\n    <div>该商品暂时不支持一键海淘</div>\n  </div>\n  ';
    }
    $$out += '\n</div>\n<style type="text/css">\n  #yjht_detail {\n    /*display: block;*/\n  }\n  .ht-com-detail span {\n    color: #404547;\n  }\n  .yjhtbtn * {\n    float: left;\n  }\n  .yjhtbtn {\n    float: none;\n    margin: 0 auto;\n    display: inline-block;\n    width: auto;\n    height: 40px;\n  }\n  .yjhtbtn em {\n    width: 16px;\n    height: 16px;\n    margin-right: 6px;\n    margin-top: 12px;\n    background-position: -130px -10px;\n  }\n  .yjhtb em {\n    background-position: -52px -36px;\n  }\n  .transhelp em {\n    background-position: -76px -36px;\n  }\n  .sizehelp em {\n    background-position: -100px -36px;\n  } \n  .sizehelp {\n    cursor: pointer;\n  }\n  .sizehelp span {\n    text-decoration: underline;\n  }\n  .gl-right {\n    float: left;\n    width: 286px;\n    height: 180px;\n  }\n  .yjht-model .gl-right {\n    width: 280px;\n  }\n  .gl-r-item span{\n    float: left;\n    line-height: 44px;\n    font-size: 13px;\n  }\n  .gl-r-item {\n    width:  280px;\n    height: 44px;\n    float: left;\n    border-bottom: 1px solid #F9F9F9;\n  }\n  .gl-r-item:last-child {\n    border-bottom: none;\n  }\n  .gl-r-item .r-item-sp1 {\n    margin-left: 40px;\n    height: 44px;\n    width: 60px;\n    text-align: justify;\n    line-height: 44px;\n  }\n  @media screen and (-webkit-min-device-pixel-ratio:0){\n      .gl-r-item .r-item-sp1:after{\n          content:".";\n          display: inline-block;\n          width:100%;\n          overflow:hidden;\n          height:0;\n      }\n  }\n  .gl-r-item .r-item-sp2 {\n    margin-right: 9px;\n  }\n  .gl-r-item .r-item-sp3 {\n    margin-right: 13px;\n  }\n  .gl-r-item .oldfrieght, .gl-r-item .oldtax {\n    color: #969899;\n    text-decoration: line-through;\n  }\n  .daosj .r-item-sp3 {\n    color: #E4393C;\n  }\n  .ht-com-detail .r-tag {\n    width: 32px;\n    height: 15px;\n    background-position: -150px -12px;\n    margin-top: 14px;\n    margin-left: 4px;\n  }\n  .tle-remind-box {\n    position: absolute;\n    min-height: 18px;\n    height: auto;\n    width: 130px;\n    line-height: 18px;\n    padding: 6px;\n    padding-left: 8px;\n    text-align: left;\n    color: #5C6266;\n    top: 38px;\n    left: 11px;\n    background: #FEFFF7;\n    border: 1px solid #CCCCCC;\n    z-index: 999999;\n    border-radius: 2px;\n    font-size: 13px;\n    display: none;\n  }\n  .gl-l-item:hover .tle-remind-box {\n    display: block;\n  }\n  .tle-remind-box:before {\n    display: block;\n    content: "";\n    width: 0;\n    height: 0;\n    border-width: 0px 5px 5px;\n    border-style: solid;\n    border-color: transparent transparent #b4b4b4;\n    position: absolute;\n    top: -5px;\n    left: 30px;\n    margin-left: -10px;\n  }\n  .tle-remind-box:after {\n    display: block;\n    content: "";\n    width: 0;\n    height: 0;\n    border-width: 0 5px 5px;\n    border-style: solid;\n    border-color: transparent transparent #fff;\n    position: absolute;\n    top: -4px;\n    left: 20px;\n  }\n   .ht-error-info em {\n    width: 58px;\n    height: 50px;\n    float: left;\n    margin-left: 192px;\n    margin-top: 53px;\n    margin-bottom: 20px;\n    background-position: -4px -60px;\n   }\n  .ht-error-info div {\n    float: left;\n    width: 100%;\n    height: 22px;\n    line-height: 22px;\n    text-align: center;\n    font-size: 12px;\n    color: #5C6266;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 77629:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var IS_PURE = __webpack_require__(96395);
var globalThis = __webpack_require__(44576);
var defineGlobalProperty = __webpack_require__(39433);

var SHARED = '__core-js_shared__';
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});

(store.versions || (store.versions = [])).push({
  version: '3.41.0',
  mode: IS_PURE ? 'pure' : 'global',
  copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
  license: 'https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE',
  source: 'https://github.com/zloirock/core-js'
});


/***/ }),

/***/ 77659:
/***/ ((module) => {

"use strict";


var memo = {};

/* istanbul ignore next  */
function getTarget(target) {
  if (typeof memo[target] === "undefined") {
    var styleTarget = document.querySelector(target);

    // Special case to return head of iframe instead of iframe itself
    if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
      try {
        // This will throw an exception if access to iframe is blocked
        // due to cross-origin restrictions
        styleTarget = styleTarget.contentDocument.head;
      } catch (e) {
        // istanbul ignore next
        styleTarget = null;
      }
    }
    memo[target] = styleTarget;
  }
  return memo[target];
}

/* istanbul ignore next  */
function insertBySelector(insert, style) {
  var target = getTarget(insert);
  if (!target) {
    throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
  }
  target.appendChild(style);
}
module.exports = insertBySelector;

/***/ }),

/***/ 77665:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "input[data-v-e2c6ebd0] {\n  outline: none;\n  border: none;\n  flex: 1;\n  resize: none;\n  min-width: 0;\n  box-shadow: none;\n}\n", ""]);

// exports


/***/ }),

/***/ 77707:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-qr-scan[data-v-2bd1d232] {\n  width: 64px;\n  height: 22px;\n  background: #FF3532;\n  border-radius: 11px;\n  font-size: 12px;\n  color: white;\n  margin-left: 31px;\n  margin-right: 11px;\n  text-align: center;\n  line-height: 20px;\n  cursor: pointer;\n  position: relative;\n}\n.gwd-price-protect-qr[data-v-2bd1d232] {\n  display: none;\n  position: absolute;\n  box-sizing: border-box;\n  width: 148px;\n  height: 156px;\n  right: 0;\n  top: 36px;\n  border: 1px solid #ff3532;\n  background: #fff7f7;\n  z-index: 99;\n}\n.gwd-price-protect-qr img[data-v-2bd1d232] {\n  margin-top: 7px;\n  width: 120px;\n  height: 120px;\n}\n#gwd-price-protect:hover .gwd-price-protect-qr[data-v-2bd1d232] {\n  display: flex;\n}\n", ""]);

// exports


/***/ }),

/***/ 77734:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Imljb24vYmFjay9uYXYvbm9ybWFsIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTE0LjY2MjggMTIuNjY2OEw5Ljk5NjA5IDguMDAwMTZMMTQuNjYyOCAzLjMzMzUiIHN0cm9rZT0iIzQwNDU0NyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjwvZz4KPC9zdmc+Cg==";

/***/ }),

/***/ 77740:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var hasOwn = __webpack_require__(39297);
var ownKeys = __webpack_require__(35031);
var getOwnPropertyDescriptorModule = __webpack_require__(77347);
var definePropertyModule = __webpack_require__(24913);

module.exports = function (target, source, exceptions) {
  var keys = ownKeys(source);
  var defineProperty = definePropertyModule.f;
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  for (var i = 0; i < keys.length; i++) {
    var key = keys[i];
    if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
      defineProperty(target, key, getOwnPropertyDescriptor(source, key));
    }
  }
};


/***/ }),

/***/ 77811:
/***/ ((module) => {

"use strict";

// eslint-disable-next-line es/no-typed-arrays -- safe
module.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';


/***/ }),

/***/ 77813:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, c_server = $data.c_server, s_server = $data.s_server;
    $$out += '<div class="gwd_addCart bjd_btn_box">\n  <a href="';
    $$out += $escape(c_server);
    $$out += '" target="_blank" title="购物党"></a>\n  <span class="bjd_addcart">一键海淘</span>\n  <span class="bjd_close"></span>\n</div>\n<style type="text/css">\n  .gwd_addCart {\n    width: 180px;\n    height: 36px;\n    background-color: #fff;\n    color: #494b4d;\n    position: absolute;\n    left: -216px;\n    top: 36px;\n    text-align: center;\n    line-height: 35px;\n    border-bottom-left-radius: 28px;\n    border-top-left-radius: 28px;\n    font-size: 14px;\n    border: 1px solid #47befe;\n    font-family: \'Microsoft Yahei\';\n  }\n  .gwd_addCart a, .gwd_addCart span {\n    float: left;\n    margin-left: 19px;\n  }\n  .gwd_addCart .bjd_addcart {\n    cursor: text;\n  }\n  .gwd_addCart a {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_siteicon.png\') 0px 6px no-repeat;\n    background-size: 24px 22px;\n    height: 35px;\n    width: 26px;\n  }\n  .bjd_close {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_closeicon.png\') 0px 0px no-repeat;\n    width: 20px;\n    height: 20px;\n    margin-top: 12px;\n    background-size: 12px 12px;\n  }\n  .gwd_addCart:before{\n    border: 18px solid transparent;\n    border-left-color: #47befe;\n    content: "";\n    position: absolute;\n    left: 178px;\n    width: 0px;\n    height: 0px;\n    top: -1px;\n  }\n  .gwd_addCart:after{\n    border: 17px solid transparent;\n    border-left-color: #fff;\n    content: "";\n    position: absolute;\n    left: 178px;\n    width: 0px;\n    height: 0px;\n    top: 0px;\n  }\n  #buybox_feature_div #addToCart .a-button-stack span.a-button-inner {\n    overflow: visible;\n  }\n  #rbbContainer div.rbbSection {\n    overflow: visible;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 77826:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
module.exports = __webpack_require__.p + "images/extensions/build/86f68e53c8131af1b561.svg";

/***/ }),

/***/ 78070:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ PromotionPlan)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/PromotionPlan.vue?vue&type=template&id=16fff0d4&scoped=true
var PromotionPlanvue_type_template_id_16fff0d4_scoped_true = __webpack_require__(95917);
;// ./src/common/components/PromotionPlan.vue?vue&type=template&id=16fff0d4&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/PromotionPlan.vue?vue&type=script&lang=js
var PromotionPlanvue_type_script_lang_js = __webpack_require__(22596);
;// ./src/common/components/PromotionPlan.vue?vue&type=script&lang=js
 /* harmony default export */ const components_PromotionPlanvue_type_script_lang_js = (PromotionPlanvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/PromotionPlan.vue?vue&type=style&index=0&id=16fff0d4&prod&lang=less&scoped=true
var PromotionPlanvue_type_style_index_0_id_16fff0d4_prod_lang_less_scoped_true = __webpack_require__(66745);
;// ./src/common/components/PromotionPlan.vue?vue&type=style&index=0&id=16fff0d4&prod&lang=less&scoped=true

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/PromotionPlan.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_PromotionPlanvue_type_script_lang_js,
  PromotionPlanvue_type_template_id_16fff0d4_scoped_true/* render */.XX,
  PromotionPlanvue_type_template_id_16fff0d4_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "16fff0d4",
  null
  
)

/* harmony default export */ const PromotionPlan = (component.exports);

/***/ }),

/***/ 78180:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', choosed = $data.choosed, email = $data.email, $escape = $imports.$escape, notify_site = $data.notify_site, allprice = $data.allprice, currency = $data.currency, nowprice = $data.nowprice, lowestUrl = $data.lowestUrl, extName = $data.extName;
    $$out += '<div id="bjd_minifavor_content"  ';
    if (choosed) {
        $$out += 'class="bjd_choosed" ';
    }
    $$out += '>\n  <div style="margin-top: 40px; padding-left: 60px; padding-right: 60px; ';
    if (email) {
        $$out += ' display: none; ';
    }
    $$out += '">\n    <div class="bjd-login-box" id="gwd-login-mini"></div>\n  </div>\n  <div class="bjd-jiangjia-re">\n    <div class="jiangjia-left" style="position: relative">\n      <div class="jj-remind" data-notify="';
    $$out += $escape(notify_site);
    $$out += '">\n        <p class="blkcolor1">降价提醒</p>\n        <button class="gwd-del-collection gwd-hui333 gwd-font12" style="line-height: 0">取消提醒</button>\n        <div class="remind-item remind-item-fst ';
    if (notify_site == '0') {
        $$out += 'current-selected';
    }
    $$out += '" style="margin-top: 65px;">\n          <span class="select-item mini-bg ';
    if (notify_site == '0') {
        $$out += 'selected ';
    }
    $$out += '"  data-type="0"></span>\n          <span class="blkcolor3">全网商家低于</span>\n          <input type="text" value="';
    $$out += $escape(allprice);
    $$out += '">\n          <span class="blkcolor3">';
    $$out += $escape(currency);
    $$out += '时提醒</span>\n        </div>\n        <div class="remind-item remind-item-snd ';
    if (notify_site == '1') {
        $$out += 'current-selected';
    }
    $$out += '" style="margin-top: 26px;">\n          <span class="select-item mini-bg ';
    if (notify_site == '1') {
        $$out += 'selected ';
    }
    $$out += '" data-type="1"></span>\n          <span class="blkcolor3">当前商家低于</span>\n          <input type="text" value="';
    $$out += $escape(nowprice);
    $$out += '">\n          <span class="blkcolor3">';
    $$out += $escape(currency);
    $$out += '时提醒</span>\n        </div>\n        ';
    if (lowestUrl) {
        $$out += '\n<!--        <a class="jj-remind-logo mini-bg" target="_blank" href="';
        $$out += $escape(lowestUrl);
        $$out += '"></a>-->\n        ';
    }
    $$out += '\n      </div>\n      <span id="error_remind_tle" style="top: 230px">请输入正确的邮箱地址</span>\n      <span id="subbtn" class="subbtn" style="clear: both">提交</span>\n      <br>\n      <div style="clear: both;">\n        <span class="remindHint">提交成功</span>\n      </div>\n<!--      <span id="edit_re_style" class="blkcolor4">更改价格提醒方式</span>-->\n    </div>\n    <div class="jiangjia-right">\n      <span class="mgtop blkcolor1">微信查询</span>\n      <div class="qrcode-jj">\n        <img src="http://cdn.';
    $$out += $escape(extName);
    $$out += '.com/images/extensions/newbar/wx-qrcode3.png">\n      </div>\n      <p class="first-p">扫码关注微信号</p>\n      <p>商品降价实时提醒</p>\n    </div>\n  </div>\n  <style type="text/css">\n    .gwd-del-collection {\n      width: 60px;\n      height: 20px;\n      background: #F3F3F3;\n      border-radius: 4px;\n      border: 1px solid #DCDCDC;\n      position: absolute;\n      right: 10px;\n      top: -5px;\n      text-align: center;\n      display: none;\n    }\n\n    .bjd-jiangjia-re {\n      height: 100%;\n      ';
    if (!email) {
        $$out += '\n      display:none; \n      ';
    }
    $$out += '\n    }\n    .bjd-login-box {\n      ';
    if (email) {
        $$out += '\n      display: none;\n      ';
    }
    $$out += '\n    }\n\n    #bjd_minifavor_content .select-item {\n      padding: 0!important;\n    }\n\n    #gwdang-trend .select-item {\n      padding: 0!important;\n    }\n\n    .remindHint {\n      font-size: 12px;\n      color: #48b3fe;\n      /*display: none;*/\n      /*visibility: hidden;*/\n    }\n\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 78227:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);
var shared = __webpack_require__(25745);
var hasOwn = __webpack_require__(39297);
var uid = __webpack_require__(33392);
var NATIVE_SYMBOL = __webpack_require__(4495);
var USE_SYMBOL_AS_UID = __webpack_require__(7040);

var Symbol = globalThis.Symbol;
var WellKnownSymbolsStore = shared('wks');
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;

module.exports = function (name) {
  if (!hasOwn(WellKnownSymbolsStore, name)) {
    WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
      ? Symbol[name]
      : createWellKnownSymbol('Symbol.' + name);
  } return WellKnownSymbolsStore[name];
};


/***/ }),

/***/ 78310:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Highcharts = __webpack_require__(58174);


const timeFormat = date => {
  let x = new Date(date);
  let year = x.getFullYear();
  if (G.IE7 || G.IE8) {
    year = x.getFullYear();
  }
  let month = x.getMonth() + 1;
  let day = x.getDate();
  if (month < 10) {
    month = '0' + month + '';
  }
  if (day < 10) {
    day = '0' + day + '';
  }
  // let hour = x.getHours();
  let timeStr = `${year}/${month}/${day}`;
  return timeStr;
};
const supplementPoint = data => {
  if (data.length === 1) {
    data.unshift([data[0][0] - 1000, data[0][1]]);
  }
  console.log(data);
  return data;
  // let newdata = []
  // for (let i=0; i<data.length-1; i++) {
  //   newdata.push(data[i])
  //   let days = parseInt( (data[i+1][0] - data[i][0]) / (3600*1000*24) );
  //   if (days >= 2) {
  //     for (let j=1; j<days; j++) {
  //       newdata.push([
  //         data[i][0] + (3600*1000*24)*j, data[i][1]
  //       ])
  //     }
  //   }
  // }
  // newdata.push(data[data.length-1])
  // return newdata;
};
module.exports = (data, opt = null) => {
  // console.log(data)
  try {
    var obj = {
      chart: {
        renderTo: data.el,
        type: 'line',
        style: {
          marginLeft: '4px',
          paddingLeft: '0px',
          marginTop: '0',
          paddingTop: '0px',
          marginBottom: '0px',
          paddingBottom: '0px'
        },
        events: {
          load: function () {
            this.xAxis[0].update({
              max: this.xAxis[0].max + 3600 * 1000 * 24 * 10
            });
            if (data.waterMark) {
              const waterMarkSrc = 'https://cdn.gwdang.com/images/extensions/logoMarkBigCenter@2x.png';
              const img = this.renderer.image(waterMarkSrc, this.chartWidth / 2 - 60, this.chartHeight / 2 - 60, 120, 120);
              img.add();
              img.css({
                opacity: 0.2
              });
            }
          }
        }
      },
      credits: {
        enabled: false
      },
      colors: ['#d150f0', '#f0b507', '#3ebdf7'],
      title: {
        text: data.title || '',
        x: -20,
        style: {
          color: '#2f7ed8'
        }
      },
      xAxis: {
        type: 'datetime',
        dateTimeLabelFormats: {
          day: '%Y/%m',
          week: '%Y/%m',
          month: '%Y/%m'
        },
        minTickInterval: 3600 * 24 * 1000 * 30,
        plotLines: [{
          color: 'red',
          dashStyle: 'longdashdot',
          value: 3,
          width: 2
        }],
        minorGridLineColor: "#dfdfdf",
        labels: {
          rotation: -25,
          y: 30,
          style: {
            fontSize: '12px',
            fontFamily: 'Arial',
            color: '#323333'
          },
          align: 'center'
        }
      },
      yAxis: {
        title: {
          text: '',
          rotation: 0,
          align: 'high',
          y: -16,
          x: -12,
          offset: -55,
          margin: 0,
          style: {
            color: '#585858'
          }
        },
        plotLines: [{
          value: 0,
          width: 1,
          color: '#808080'
        }],
        gridLineColor: '#c0d0e0',
        minorGridLineColor: '#dfdfdf',
        tickPixelInterval: 50
      },
      tooltip: {
        xDateFormat: '%Y-%m-%d',
        shared: true,
        valueDecimals: 2,
        valuePrefix: '',
        useHTML: true,
        valueSuffix: ' 万',
        borderColor: 'none',
        padding: 20,
        formatter: function () {
          let timeStr = timeFormat(this.x);
          let result = `<table style="margin-left:12px"><tr><td width="100%" colspan="8" style="text-align: center;font-weight: bold;font-family: Arial;font-size:14px">${timeStr}</td></td></tr>`;
          for (let i = 0; i < this.points.length; i++) {
            let priceStr = parseFloat(Number(this.points[i].y).toFixed(2)) + '万';
            result += `<tr><td style="width: 80px; text-align: left"><span style="color: ${this.points[i].point.series.color};font-size:12px;font-family:arial;float:none;margin-right:5px;">●</span>${this.points[i].point.series.name}</td>
          <td style="padding-left:4px;">${priceStr}</td></tr>`;
          }
          result += '</table>';
          return result;
        }
      },
      plotOptions: {
        series: {
          marker: {
            radius: 1,
            states: {
              hover: {
                radius: 2
              }
            }
          },
          lineWidth: 1.5,
          shadow: false,
          states: {
            hover: {
              lineWidth: 1
            }
          }
        }
      },
      legend: {
        enabled: true,
        borderWidth: 0,
        verticalAlign: 'top',
        x: 228,
        y: -8,
        itemStyle: {
          color: '#585858',
          fontWeight: 'normal',
          fontSize: '14px',
          marginBottom: '0px'
        },
        symbolWidth: 12,
        symbolHeight: 3,
        itemMarginBottom: 0,
        itemMarginTop: 0,
        margin: 12
      },
      series: []
    };
    if (opt) {
      obj = opt;
    }
    obj.title.style.display = 'none';
    var msg = data.msg;
    if (data.mainTrend) {
      obj.series[0] = {
        visible: true,
        name: '房源价格走势',
        marker: {
          symbol: 'circle'
        },
        data: []
      };
      obj.series[0].data = msg.price_history;
      obj.series[0].data = supplementPoint(obj.series[0].data);
      obj.colors = ['#3ebdf7'];
      obj.legend.enabled = false;
    } else {
      let index1 = 0,
        index2 = 0,
        index3 = 0;
      let colorArr = [];
      if (msg.onsale.length >= 1) {
        obj.series[index1] = {
          visible: true,
          name: '挂牌单价',
          marker: {
            symbol: 'circle'
          },
          data: []
        };
        index2++;
        index3++;
        colorArr.push('#d150f0');
        obj.legend.x = obj.legend.x - 48;
        for (let i = 0; i < data.msg.onsale.length; i++) {
          let arr = new Array(2);
          arr[0] = data.msg.onsale[i][0] * 1000;
          arr[1] = Math.round(data.msg.onsale[i][1] * 100) / 100;
          obj.series[index1].data.push(arr);
        }
        obj.series[index1].data = supplementPoint(obj.series[index1].data);
      }
      if (msg.dealt.length >= 1) {
        obj.series[index2] = {
          visible: true,
          name: '成交单价',
          marker: {
            symbol: 'circle'
          },
          data: []
        };
        index3++;
        colorArr.push('#f0b507');
        obj.legend.x = obj.legend.x - 48;
        for (let i = 0; i < data.msg.dealt.length; i++) {
          let arr = new Array(2);
          arr[0] = data.msg.dealt[i][0] * 1000;
          arr[1] = Math.round(data.msg.dealt[i][1] * 100) / 100;
          obj.series[index2].data.push(arr);
        }
        obj.series[index2].data = supplementPoint(obj.series[index2].data);
      }
      obj.yAxis.title.text = '单位(万)';
      obj.colors = colorArr;
    }
    new Highcharts.Chart(obj);
  } catch (e) {}
};

/***/ }),

/***/ 78579:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(82664);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("32ae82b8", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 78615:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.show,
      expression: "show"
    }],
    staticClass: "gwd-popup-bg"
  }, [_c("div", {
    staticClass: "gwd-popup-window gwd-column"
  }, [_c("img", {
    staticStyle: {
      width: "24px",
      height: "24px",
      position: "absolute",
      right: "32px",
      top: "29px",
      cursor: "pointer"
    },
    attrs: {
      src: _vm.getImg("close@2x.png"),
      alt: ""
    },
    on: {
      click: _vm.close
    }
  }), _vm._v(" "), _c("a", {
    staticClass: "gwd-feedback gwd-row gwd-align",
    attrs: {
      target: "_blank",
      href: _vm.feedbackUrl
    }
  }, [_c("img", {
    staticStyle: {
      width: "24px",
      height: "24px",
      "margin-right": "2px"
    },
    attrs: {
      src: _vm.getImg("feedback@2x.png"),
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "margin-top": "1px"
    }
  }, [_vm._v("意见反馈")])]), _vm._v(" "), _vm._m(0), _vm._v(" "), _vm.userRanks.length > 0 ? _c("div", {
    ref: "content",
    staticClass: "gwd-content gwd-column",
    staticStyle: {
      flex: "1"
    }
  }, [_c("h3", {
    staticStyle: {
      "margin-top": "35px",
      "margin-bottom": "16px"
    }
  }, [_vm._v("综合评价分析")]), _vm._v(" "), _c("div", {
    staticClass: "gwd-row"
  }, [_c("div", {
    staticClass: "gwd-column gwd-statistics",
    style: `flex: 1`
  }, [_c("h4", [_vm._v("评论用户等级")]), _vm._v(" "), _c("div", {
    style: _vm.userRanks.length < 3 && _vm.buyItems.length > 1 ? "flex: 1; display: flex; align-items: center" : ""
  }, _vm._l(_vm.userRanks, function (item) {
    return _c("div", {
      key: item.name,
      staticClass: "gwd-inline-row gwd-align gwd-uitem"
    }, [item.icon ? _c("img", {
      staticStyle: {
        width: "28px",
        height: "28px",
        "margin-right": "8px"
      },
      attrs: {
        src: _vm.getImg(item.icon + "@2x.png"),
        alt: ""
      }
    }) : _vm._e(), _vm._v(" "), _c("span", {
      staticStyle: {
        "margin-right": "24px",
        "font-size": "16px",
        color: "#000"
      }
    }, [_vm._v(_vm._s(item.name))]), _vm._v(" "), _c("CircleProgress", {
      attrs: {
        percentage: item.percent,
        size: 70,
        color: "#4fbefe",
        backgroundColor: "#e4e4e4",
        strokeWidth: 12,
        textColor: "#333"
      }
    })], 1);
  }), 0)]), _vm._v(" "), _vm.buyItems.length > 1 ? _c("div", {
    staticClass: "gwd-column gwd-statistics",
    staticStyle: {
      flex: "1",
      "margin-left": "32px",
      width: "0"
    }
  }, [_c("h4", [_vm._v("购买最多款式")]), _vm._v(" "), _c("div", {
    staticClass: "gwd-row",
    staticStyle: {
      "margin-top": "18px"
    }
  }, [_c("div", {
    staticClass: "gwd-column",
    staticStyle: {
      "margin-left": "0px",
      flex: "1",
      overflow: "hidden"
    }
  }, _vm._l(_vm.buyItems, function (item, idx) {
    return _c("div", {
      key: item.label,
      staticClass: "gwd-row gwd-align gwd-pitem"
    }, [_c("NumLabel", {
      staticStyle: {
        "margin-right": "8px",
        "flex-shrink": "0"
      },
      attrs: {
        num: idx + 1
      }
    }), _vm._v(" "), _c("span", {
      staticStyle: {
        "font-size": "16px",
        color: "#404547",
        "margin-left": "8px",
        "white-space": "nowrap",
        "text-overflow": "ellipsis",
        overflow: "hidden"
      },
      attrs: {
        title: item.label
      }
    }, [_vm._v(_vm._s(item.label))]), _vm._v(" "), _c("span", {
      staticStyle: {
        "margin-left": "32px",
        color: "#ef6701",
        "font-size": "16px",
        "font-weight": "bold",
        "white-space": "nowrap"
      }
    }, [_vm._v(_vm._s(item.percentage) + "%")])], 1);
  }), 0)])]) : _vm._e()]), _vm._v(" "), _vm.result.prosAndCons || _vm.result.nodata ? _c("h3", {
    staticStyle: {
      "margin-top": "30px"
    }
  }, [_vm._v("优缺点分析")]) : _vm._e(), _vm._v(" "), _vm.result.prosAndCons ? _c("div", {
    staticClass: "gwd-row",
    staticStyle: {
      "margin-top": "16px"
    }
  }, [_c("div", {
    staticClass: "gwd-good gwd-procon gwd-column"
  }, [_c("span", {
    staticClass: "gwd-tt"
  }, [_vm._v("优点分析")]), _vm._v(" "), _vm._l(_vm.result.prosAndCons.pros, function (reviewItem, reviewIdx) {
    return _c("div", {
      key: "good-" + reviewIdx
    }, [_c("div", {
      staticClass: "gwd-review-item-title"
    }, [_vm._v(_vm._s(reviewItem.content) + " " + _vm._s(reviewItem.percentage) + "%")]), _vm._v(" "), reviewItem.percentage ? _c("div", {
      staticClass: "gwd-progress-bar"
    }, [_c("div", {
      staticClass: "gwd-progress-bar-filled",
      style: {
        width: reviewItem.percentage + "%"
      }
    })]) : _vm._e(), _vm._v(" "), _c("div", {
      staticClass: "gwd-row gwd-reviews"
    }, [_c("div", [_vm._v("典型评论：")]), _vm._v(" "), _c("div", {
      staticStyle: {
        "margin-left": "5px",
        flex: "1"
      }
    }, _vm._l(reviewItem.comments, function (comment, commentIdx) {
      return comment.comment ? _c("div", {
        key: "good-comment-" + reviewIdx + "-" + commentIdx,
        staticClass: "gwd-comment",
        class: {
          "gwd-first": commentIdx === 0
        }
      }, [_vm._v("“" + _vm._s(comment.comment) + "”")]) : _vm._e();
    }), 0)])]);
  })], 2), _vm._v(" "), _c("div", {
    staticClass: "gwd-bad gwd-procon gwd-column"
  }, [_c("span", {
    staticClass: "gwd-tt"
  }, [_vm._v("缺点分析")]), _vm._v(" "), _vm._l(_vm.result.prosAndCons.cons, function (reviewItem, reviewIdx) {
    return _vm.hasCons ? _c("div", {
      key: "bad-" + reviewIdx
    }, [_c("div", {
      staticClass: "gwd-review-item-title"
    }, [_vm._v(_vm._s(reviewItem.content) + " " + _vm._s(reviewItem.percentage) + "%")]), _vm._v(" "), reviewItem.percentage ? _c("div", {
      staticClass: "gwd-progress-bar"
    }, [_c("div", {
      staticClass: "gwd-progress-bar-filled",
      style: {
        width: reviewItem.percentage + "%"
      }
    })]) : _vm._e(), _vm._v(" "), _c("div", {
      staticClass: "gwd-row gwd-reviews"
    }, [_c("div", [_vm._v("典型评论：")]), _vm._v(" "), _c("div", {
      staticStyle: {
        "margin-left": "5px",
        flex: "1"
      }
    }, _vm._l(reviewItem.comments, function (comment, commentIdx) {
      return comment.comment ? _c("div", {
        key: "bad-comment-" + reviewIdx + "-" + commentIdx,
        staticClass: "gwd-comment",
        class: {
          "gwd-first": commentIdx === 0
        }
      }, [_vm._v("“" + _vm._s(comment.comment) + "”")]) : _vm._e();
    }), 0)])]) : _vm._e();
  }), _vm._v(" "), _vm.consLoading ? _c("div", {
    staticClass: "gwd-row gwd-align gwd-jcc",
    staticStyle: {
      flex: "1"
    }
  }, [_c("img", {
    staticStyle: {
      width: "150px"
    },
    attrs: {
      src: _vm.getImg("textLoading.gif"),
      alt: ""
    }
  })]) : _vm._e(), _vm._v(" "), !_vm.consLoading && !_vm.hasCons ? _c("div", {
    staticStyle: {
      "margin-top": "20px"
    }
  }, [_c("span", {
    staticStyle: {
      "font-size": "16px"
    }
  }, [_vm._v("暂无缺点")])]) : _vm._e()], 2)]) : _vm._e(), _vm._v(" "), _vm.result.overallRating ? _c("h3", {
    staticStyle: {
      "margin-top": "30px"
    }
  }, [_vm._v("用户满意度总结")]) : _vm._e(), _vm._v(" "), _vm.result.overallRating ? _c("div", {
    staticClass: "gwd-statistics",
    staticStyle: {
      "margin-top": "16px"
    }
  }, [_c("div", {
    staticClass: "gwd-row gwd-overall-progress"
  }, [_vm.result.overallRating.positivePercentage ? _c("div", {
    staticClass: "gwd-overall-progress gwd-good",
    style: {
      flex: _vm.result.overallRating.positivePercentage
    }
  }, [_vm._v(_vm._s(_vm.displayPercentText(_vm.result.overallRating.positivePercentage, "正面评价")))]) : _vm._e(), _vm._v(" "), _vm.result.overallRating.negativePercentage ? _c("div", {
    staticClass: "gwd-overall-progress gwd-bad",
    style: {
      flex: _vm.result.overallRating.negativePercentage
    }
  }, [_vm._v(_vm._s(_vm.displayPercentText(_vm.result.overallRating.negativePercentage, "负面评价")))]) : _vm._e()]), _vm._v(" "), _c("div", {
    staticClass: "gwd-txt",
    staticStyle: {
      "margin-top": "20px"
    }
  }, [_vm._v("在有内容的评论中：")]), _vm._v(" "), _vm.result.overallRating.positiveSummary ? _c("div", {
    staticClass: "gwd-txt",
    staticStyle: {
      "margin-top": "10px"
    }
  }, [_c("em", {
    staticClass: "gwd-dot",
    staticStyle: {
      background: "#22c55e"
    }
  }), _vm._v(_vm._s(_vm.result.overallRating.positiveSummary))]) : _vm._e(), _vm._v(" "), _vm.result.overallRating.negativeSummary ? _c("div", {
    staticClass: "gwd-txt",
    staticStyle: {
      "margin-top": "10px"
    }
  }, [_c("em", {
    staticClass: "gwd-dot",
    staticStyle: {
      background: "#ef4444"
    }
  }), _vm._v(_vm._s(_vm.result.overallRating.negativeSummary))]) : _vm._e(), _vm._v(" "), _vm.result.overallRating.overallSummary ? _c("div", {
    staticClass: "gwd-txt",
    staticStyle: {
      "margin-top": "12px",
      "font-weight": "bold",
      "font-size": "20px",
      color: "#111",
      "line-height": "30px"
    }
  }, [_vm._v("总结：" + _vm._s(_vm.result.overallRating.overallSummary))]) : _vm._e()]) : _vm._e(), _vm._v(" "), _vm.status === "timeout" && _vm.firstLine !== "OK" ? _c("div", {
    staticClass: "gwd-column gwd-align gwd-jcc",
    staticStyle: {
      "text-align": "center",
      flex: "1",
      "font-size": "20px",
      color: "#404547"
    }
  }, [_vm._v("\n      ⏳​ 分析任务有点卡了，可能是数据量太大～\n      ")]) : _vm._e(), _vm._v(" "), _vm.result.nodata ? _c("div", {
    staticClass: "gwd-column gwd-align gwd-jcc",
    staticStyle: {
      "text-align": "center",
      flex: "1",
      "font-size": "20px",
      color: "#404547"
    }
  }, [_vm._v("\n        📝 评论内容太简单啦，AI也分析不出来呢～​​\n      ")]) : _vm._e(), _vm._v(" "), _vm.firstLine === "Limited" ? _c("div", {
    staticClass: "gwd-column gwd-align"
  }, [_c("img", {
    style: `width: 198px; height: 198px; margin-top: ${_vm.buyItems.length > 1 ? 55 : 75}px`,
    attrs: {
      src: _vm.getImg("limitReached@2x.png"),
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "font-size": "16px",
      color: "#404547",
      "line-height": "22px",
      "margin-top": "-20px"
    }
  }, [_vm._v("今日AI分析次数已用完～明日再来吧")])]) : _vm._e()]) : _vm._e(), _vm._v(" "), _vm.status === "needLogin" ? _c("div", {
    staticClass: "gwd-column gwd-align"
  }, [_c("div", {
    staticClass: "gwd-login-box gwd-column gwd-align",
    staticStyle: {
      "margin-top": "107px"
    }
  }, [_c("img", {
    staticStyle: {
      width: "479px",
      height: "192px",
      "margin-top": "40px"
    },
    attrs: {
      src: __webpack_require__(18776),
      alt: ""
    }
  }), _vm._v(" "), _vm._m(1), _vm._v(" "), _c("button", {
    staticStyle: {
      "margin-top": "42px"
    },
    on: {
      click: _vm.goLogin
    }
  }, [_vm._v("去登录")])])]) : _vm._e(), _vm._v(" "), _vm.status === "loading" ? _c("div", {
    staticClass: "gwd-column gwd-align"
  }, [_c("img", {
    staticStyle: {
      width: "166px",
      height: "166px",
      "margin-top": "219px"
    },
    attrs: {
      src: _vm.getImg("loading@2x.gif"),
      alt: ""
    }
  }), _vm._v(" "), _c("img", {
    staticStyle: {
      width: "179px",
      height: "25px",
      "margin-top": "-95px",
      transform: "scale(0.5)",
      "transform-origin": "center center"
    },
    attrs: {
      src: _vm.getImg("gettingText@2x.png"),
      alt: ""
    }
  })]) : _vm._e(), _vm._v(" "), _vm.status === "failed" ? _c("div", {
    staticClass: "gwd-column gwd-align"
  }, [_c("span", {
    staticStyle: {
      "font-size": "16px",
      color: "#404547",
      "line-height": "22px",
      "margin-top": "268px"
    }
  }, [_vm._v("🛑 哎呀，评论数据暂时无法获取～")]), _vm._v(" "), _c("button", {
    staticClass: "gwd-rndbtn",
    staticStyle: {
      "margin-top": "34px"
    },
    on: {
      click: _vm.startAnalysis
    }
  }, [_vm._v("刷新重试")])]) : _vm._e()])]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-row gwd-align gwd-jcc"
  }, [_c("img", {
    staticStyle: {
      width: "284px",
      height: "40px"
    },
    attrs: {
      src: __webpack_require__(43552),
      alt: ""
    }
  })]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      "margin-top": "34px"
    }
  }, [_c("img", {
    staticStyle: {
      width: "18px",
      height: "18px"
    },
    attrs: {
      src: __webpack_require__(89989),
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      color: "#333",
      "font-size": "16px",
      "font-weight": "bold",
      "margin-left": "6px"
    }
  }, [_vm._v("登录解锁AI差评分析，优缺点一目了然")])]);
}];
render._withStripped = true;

/***/ }),

/***/ 78678:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-privacy-dialog gwd-column"
  }, [_c("div", {
    staticClass: "title gwd-row gwd-align"
  }, [_vm.mini ? _c("img", {
    staticStyle: {
      width: "24px",
      "margin-right": "4px"
    },
    attrs: {
      src: __webpack_require__(22157),
      alt: ""
    }
  }) : _vm._e(), _vm._v("\n    " + _vm._s(_vm.mini ? "以下权限开启后，插件才能正常使用" : "基础设置") + "\n    "), _c("div", {
    staticStyle: {
      flex: "1"
    }
  }), _vm._v(" "), !_vm.mini ? _c("img", {
    staticStyle: {
      cursor: "pointer",
      width: "24px"
    },
    attrs: {
      src: __webpack_require__(33355),
      alt: ""
    },
    on: {
      click: _vm.close
    }
  }) : _vm._e()]), _vm._v(" "), _c("div", {
    staticClass: "content gwd-column gwd-align"
  }, [_c("div", {
    staticClass: "options"
  }, [_c("div", {
    staticClass: "option gwd-row"
  }, [_vm._m(0), _vm._v(" "), _c("SwitchBtn", {
    attrs: {
      "allow-animation": "true"
    },
    model: {
      value: _vm.allowCookieAndUrl,
      callback: function ($$v) {
        _vm.allowCookieAndUrl = $$v;
      },
      expression: "allowCookieAndUrl"
    }
  })], 1), _vm._v(" "), !_vm.mini ? _c("div", {
    staticClass: "option gwd-row"
  }, [_vm._m(1), _vm._v(" "), _c("SwitchBtn", {
    attrs: {
      "allow-animation": "true"
    },
    model: {
      value: _vm.allowTracking,
      callback: function ($$v) {
        _vm.allowTracking = $$v;
      },
      expression: "allowTracking"
    }
  })], 1) : _vm._e()]), _vm._v(" "), !_vm.mini ? _c("button", {
    staticClass: "gwd-button",
    on: {
      click: function ($event) {
        return _vm.setAll(true);
      }
    }
  }, [_vm._v(_vm._s(_vm.allowCookieAndUrl && _vm.allowTracking ? "设置完成" : "全部开启"))]) : _vm._e(), _vm._v(" "), !_vm.mini ? _c("a", {
    staticStyle: {
      color: "white",
      "font-size": "11px",
      "text-decoration": "underline",
      "margin-top": "10px",
      opacity: "0.8"
    },
    attrs: {
      href: "#"
    },
    on: {
      click: function ($event) {
        $event.preventDefault();
        return _vm.setAll(false);
      }
    }
  }, [_vm._v("暂不开启")]) : _vm._e(), _vm._v(" "), !_vm.mini ? _c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      "margin-top": "6px"
    }
  }, [_c("img", {
    staticStyle: {
      width: "24px",
      opacity: "0.4"
    },
    attrs: {
      src: __webpack_require__(35767),
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      color: "rgba(255, 255, 255, 0.4)",
      "font-size": "11px"
    }
  }, [_vm._v("建议您开启相关设置，否则产品功能可能无法正常使用")])]) : _vm._e(), _vm._v(" "), !_vm.mini ? _c("a", {
    staticStyle: {
      color: "#48b3fe",
      "font-size": "10px",
      "text-decoration": "underline",
      "margin-top": "24px"
    },
    attrs: {
      href: "./privacy.html"
    }
  }, [_vm._v("购物党用户隐私协议")]) : _vm._e()])]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "desc gwd-column"
  }, [_c("span", {
    staticClass: "big"
  }, [_vm._v("允许记录cookie与访问页面地址")]), _vm._v(" "), _c("span", {
    staticClass: "small"
  }, [_vm._v("便于获取商品价格信息，展示价格走势与收藏商品")])]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "desc gwd-column"
  }, [_c("span", {
    staticClass: "big"
  }, [_vm._v("允许记录鼠标页面活动信息")]), _vm._v(" "), _c("span", {
    staticClass: "small"
  }, [_vm._v("便于给产品改进提供帮助，给你提供更好的服务")])]);
}];
render._withStripped = true;

/***/ }),

/***/ 78686:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, site_k = $data.site_k, keyword = $data.keyword, site_k2 = $data.site_k2;
    $$out += '<div class="search-tle">\n  <span class="blkcolor1">';
    $$out += $escape(site_k);
    $$out += '</span>\n  <em class="gwd_bg"></em>\n</div>\n<input class="search-input blkcolor3" value="';
    $$out += $escape(keyword);
    $$out += '" style="position: initial">\n<a href="" class="search-submit" target="_blank">\n  <em class="search-submit-em gwd_bg"></em>\n</a>\n<div class="bjd-search-list">\n  <span>';
    $$out += $escape(site_k2);
    $$out += '</span>\n  <span>京东</span>\n  <span>苏宁</span>\n  <!-- <span>亚马逊</span> -->\n  <span>当当</span>\n  <span>一号店</span>\n  <span>国美</span>\n  <span>购物党</span>\n  <style type="text/css">\n    .search-tle {\n      background: #F0F5F7;\n      border: 1px solid #edf1f2;\n      width: 61px;\n      height: 26px;\n      border-right: none;\n      cursor: pointer;\n      border-bottom-left-radius: 18px;\n      border-top-left-radius: 18px;\n      line-height: 26px;\n    }\n    .search-tle.search-select {\n      border-top-left-radius: 0px;\n    }\n    .search-tle span {\n      float: left;\n      width: 36px;\n      height: 26px;\n      margin-left: 10px;\n      text-align: center;\n      text-align: justify;\n      -webkit-text-align-last:justify;\n      font-size: 12px;\n    }\n    .search-tle em {\n      float: left;\n      height: 6px;\n      width: 10px;\n      margin-top: 11px;\n      margin-left: 5px;\n      background-position: -170px -24px;\n    }\n    .search-tle em.emup {\n      background-position: -170px -34px;\n    }\n    .bjd-search-list {\n      position: absolute;\n      height: 160px;\n      width: 70px;\n      display: none;\n      bottom: 41px;\n      background-color: #F0F5F7;\n      border: 1px solid #edf1f2;\n      border-bottom: none;\n    }\n    .gwd_vipshop .bjd-search-list {\n      left: 138px;\n    }\n    .bjd-search-list span {\n      width: 36px;\n      margin-left: 10px;\n      float: left;\n      height: 20px;\n      cursor: pointer;\n      text-align: justify;\n      -webkit-text-align-last:justify;\n      font-size: 12px;\n      color: #303233;\n    }\n    .bjd-search-list span:hover {\n      color: #5ebeff;\n    }\n    @media screen and (-webkit-min-device-pixel-ratio:0){\n      .bjd-search-list span:after, .search-tle span:after{\n          content:".";\n          display: inline-block;\n          width:100%;\n          overflow:hidden;\n          height:0;\n      }\n    }\n    .search-input {\n      width: 125px;\n      margin: 0;\n      height: 26px;\n      padding: 0 0 0 12px;\n      line-height: 24px;\n      border: 1px solid #edf1f2;\n      border-left: none;\n      border-right: none;\n      outline: 0;\n      font-size: 12px;\n      font-family: \'Microsoft YaHei\',tahoma,arial,SimSun;\n      background-color: #F0F5F7;\n      margin-top: 16px!important;\n    }\n    .search-submit {\n      width: 30px;\n      height: 28px;\n      cursor: pointer;\n      float: left;\n      background-color: #F0F5F7;\n      border-bottom-right-radius: 18px;\n      border-top-right-radius: 18px;\n    }\n    .search-submit-em {\n      width: 27px;\n      height: 28px;\n      float: left;\n      \n      background-position:-180px -19px;\n      \n    }\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 78803:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ MiniTrendInfoBar)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/MiniTrendInfoBar.vue?vue&type=template&id=e0ed5136&scoped=true
var MiniTrendInfoBarvue_type_template_id_e0ed5136_scoped_true = __webpack_require__(66738);
;// ./src/standard/module/trend/MiniTrendInfoBar.vue?vue&type=template&id=e0ed5136&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/MiniTrendInfoBar.vue?vue&type=script&lang=js
var MiniTrendInfoBarvue_type_script_lang_js = __webpack_require__(90837);
;// ./src/standard/module/trend/MiniTrendInfoBar.vue?vue&type=script&lang=js
 /* harmony default export */ const trend_MiniTrendInfoBarvue_type_script_lang_js = (MiniTrendInfoBarvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/MiniTrendInfoBar.vue?vue&type=style&index=0&id=e0ed5136&prod&scoped=true&lang=less
var MiniTrendInfoBarvue_type_style_index_0_id_e0ed5136_prod_scoped_true_lang_less = __webpack_require__(25728);
;// ./src/standard/module/trend/MiniTrendInfoBar.vue?vue&type=style&index=0&id=e0ed5136&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/trend/MiniTrendInfoBar.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  trend_MiniTrendInfoBarvue_type_script_lang_js,
  MiniTrendInfoBarvue_type_template_id_e0ed5136_scoped_true/* render */.XX,
  MiniTrendInfoBarvue_type_template_id_e0ed5136_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "e0ed5136",
  null
  
)

/* harmony default export */ const MiniTrendInfoBar = (component.exports);

/***/ }),

/***/ 78878:
/***/ ((module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
var __WEBPACK_AMD_DEFINE_RESULT__;

!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  'use strict';

  var $ = __webpack_require__(10333);
  let parseprice = __webpack_require__(86421);
  var cacheprovince;
  function getProductInfoPrice() {
    var price = G.dp.price;
    if (price) price = Number(price);
    return price;
  }
  return {
    /**
     * 价格实时反馈模块
     * 监控当前网站价格情况，并提取价格数据
     * @author:mllong(mllong0925@gmail.com)
     * @since:2013-05-20
     */

    //提取当前页面的价格
    getOnlinePrice: function (siteName) {
      siteName = siteName || G.pageInfo.siteName;
      var price = 0;
      try {
        if (typeof this.pricePattern[siteName] != 'undefined') {
          var len = this.pricePattern[siteName].length,
            patterns = this.pricePattern[siteName];
          for (var i = 0; i < len; i++) {
            try {
              var pattern = patterns[i];
              price = $(pattern + ':visible').length && $(pattern).eq(0).text();
              if (!price) continue;
              price = parseprice(price);
              if (price) break;
            } catch (e) {
              /*eslint-disable */
              if (G.debug) {
                console.log(e);
              }
              /*eslint-enable */
            }
          }
        }
      } catch (e) {
        /*eslint-disable */
        if (G.debug) {
          console.log(e);
        }
        /*eslint-enable */
      }
      /*新蛋中国价格为图片显示，没法获取到，只能从其他地方拿到*/
      if (price == 0 || price == '') price = getProductInfoPrice();
      return price;
    },
    //部分主流站点的价格模板
    pricePattern: {
      'coocaa': ['#ECS_SHOPPRICE span:eq(1)', '#ECS_SHOPPRICE'],
      'nubia': ['.pdtby-price'],
      'coolpad': ['.produce_scall_right_textb ul li span.produce_scall_right_textx'],
      'lenovo': ['.lenovo-member-price font', '#gprice'],
      'gjw': ['#spPrice', '.goujiu_price'],
      'homevv': ['.ht_money'],
      'xiaomi': ['.goods-info-head .J_mi_goodsPrice', '.J_mi_goodsPrice', '.price .num'],
      'xiu': ['#prd_price_div .style3'],
      'moonbasa': ['#p_saleprice', '.detailprice', '.leftPrice b'],
      'j1': ['#jianyiPrice'],
      's': ['.salePrice_big'],
      'letao': ['#special+.ltprice', '.ltprice'],
      'muyingzhijia': ['.p-price'],
      'paixie': ['#js_current_price'],
      'zhiwo': ['.mumer', '.dsingle_nowprice'],
      'bookschina': ['span.thisprice', '.thisprice'],
      'leyou': ['#leyoujia'],
      'taobao': ['.tm-promo-price .tm-price', '.tb-wrTuan-num', '#J_StrPriceModBox .tm-price', '#J_PromoPrice .tb-rmb-num', '#J_PromoBox .J_CurPrice', '#J_StrPrice', '.tbid-detail-price'],
      'taobao-ju': ['.currentPrice'],
      'tmall': ['#J_Price', '#J_StrPrice', '.tm-promo-price .tm-price', '#J_StrPriceModBox .tm-price', '.tm-price'],
      'amazon': [/*'#olpDivId .price',*/
      '#priceblock_ourprice', '.priceLarge'],
      'gome-q': ['.price'],
      'dangdang': ['#promo_price', '.priceLarge', '#salePriceTag', '#d_price'],
      'm18': ['.detailsArea strong[data-price]'],
      'sephora': ['.proDetInfo .proPrice span'],
      'taoxie': ['#divtxprice .d-real-price'],
      'lusen': ['#ProductPrice'],
      'mbaobao': ['.price-num'],
      'chunshuitang': ['.tuan-buy-text', '.Gd_shop_Price dt'],
      'oyeah': ['.pricesty'],
      'x': ['.pro_big_right .list .jsj[style^=text]', '.jsj b'],
      'no5': ['.prodRedTxt.price'],
      '360kxr': ['#pro_mall_price'],
      'm6go': ['#SGoodsPrice'],
      'likeface': ['.tPrc1.tPrcOn>div>b', '#jrtj'],
      'morefood': ['.pro-info .text2'],
      'yaofang': ['.s_xianjia_140519'],
      '99read': ['#panel-right .pro-InfoList li span.f-Price'],
      'china-pub': ['#xxjg .pro_buy_sen', '.pro_buy_sen'],
      'winxuan': ['.price-n dd b'],
      'efeihu': ['.ui_price strong em'],
      'happigo': ['#real_price'],
      'gap': ['#productShowPrice'],
      'tiantian': ['.xx_price'],
      'xijie': ['.detail_pro_d_1'],
      'lingshi': ['#shopprice'],
      'banggo': ['#salePriceText'],
      'yesmywine': ['.explain .myPrice'],
      'jxdyf': ['#zc_jiage .jxPrice'],
      'tootoo': ['#price'],
      'zm7': ['#ECS_SHOPPRICE'],
      'miqi': ['.left_topTable_btn'],
      'jiumei': ['#jiage .cuxiao .numb strong'],
      'okhqb': ['.cz-num'],
      'bookuu': ['#bk-d-price'],
      'tao3c': ['.detail_info_rm1 cite'],
      'd1': ['.p_mp'],
      'ruiyi': ['.goods-price .price1'],
      'lamiu': ['.action-price'],
      'wbiao': ['#g5_price'],
      'ehaier': ['.cur-price'],
      'secoo': ['#secooPriceJs'],
      'xifuquan': ['.jg_cuhong'],
      'yiguo': ['.pro-price>div strong'],
      'yummy77': ['.cprice .price'],
      'fruitday': ['.prod_price', '#jq-price'],
      'zuipin': ['.detail_price'],
      'yohobuy': ['.price-sale'],
      'ikjtao': ['#ECS_GOODS_AMOUNT'],
      'miyabaobei': ['#item_price'],
      'ule': ['.productPrice .price strong'],
      'minshengec': ['.ms_price .dd strong'],
      'wangfujing': ['#pro-price .cost'],
      'meilele': ['#JS_effect_price'],
      'supuy': ['#ShowPrice', '.good_d_pricenew', '#g_price'],
      'lining': ['#offerPrice .v'],
      'rrs': ['.cur-price'],
      'lifevc': ['#shoppingPanelUpper .shoppingInfo .salePrice'],
      'ymatou': ['#proDetail .promotion .count'],
      'kjt': ['.mainPrice'],
      'logitech': ['.sale-price'],
      'xiji': ['.action-price'],
      'nike': ['.exp-pdp-product-price-container .exp-pdp-local-price'],
      '360kad': ['#pricenumber'],
      'meici': ['.price', '.pro_price .c_purple'],
      'beibei': ['#detail-meta .price-info .price'],
      '100yue': ['.action-price', '#price'],
      'daling': ['.goods-price .bold'],
      'sfht': ['.goods-price-r1 strong'],
      '360buy': ['#jd-price', '#priceinfo', '#teamStatus .p-price', '#summary-price', '.summary-price .p-price .price'],
      '51buy': [".xprice_val[itemprop='lowPrice']", ".xprice_val[itemprop='price']", ".price_font"],
      'suning': ['#promotionPrice', '#promotionPrice em', '#isquickBuyBoxPrice em', '#bookprdprice', '#netPrice em', '#mainPrice em', '#rpPrice', '#promoPrice', '#ePrice em'],
      'yihaodian': ['#detail_prom_price', '#current_price', '#productFacadePrice', '#nonMemberPrice strong', '.pricebox'],
      'vancl': ['.cuxiaoPrice strong'],
      'gome': ['#prdPrice', '.detail .price'],
      'okbuy': ['#prodPriceAj'],
      'vjia': ['#SpecialPrice'],
      'jumei': ['.newdeal_deal_price', '.price_now', '#mall_price', '.deal_ori_price .deal_accout_two'],
      'jumeiglobal': ['.jumei_price'],
      'yougou': ['.xsbuy_itm strong.price', '#yitianPrice i', '#yitianPrice'],
      'shopin': ['.selPrice span:eq(1)', '.shopinjg1'],
      'vmall': ['#pro-price'],
      'sfbest': ['.priceBox .price', '.price', '#price font'],
      'ouku': ['#pdAllPrice .prc', '.sale-price'],
      'womai': ['#buyPrice'],
      /*
      'coo8': [
          'li:contains("促") .c8-cxprice em',
          '.c8-money'
      ],
      */
      'baidu-weigou': ['#new-price', '.old-price'],
      'yintai': ['span.yt-num', '.yt-num'],
      'feiniu': ['#priceFn', '#J_product_value .fn-rmb-num'],
      'jiuxian': ['#actPricePrice', '#_nowPriceStr'],
      'zol': ['.price-type'],
      'feifei': ['.price-box .price-detail', '.price-info-value', '.price-box'],
      'kzj365': ['#rprice'],
      'kaola': ['#js_currentPrice'],
      'metao': ['.pi_price_box_row .pbox_price', '.price_sendplace .price'],
      'philips': ['.pdc-blue-c span'],
      'tcl': ['#priceBuy'],
      'changhong': ['.ti_scc strong'],
      'konka': ['.action-price'],
      'hisense': ['.inlist .flva'],
      'ineigo': ['#ULPrice font'],
      'skg': ['.productSale .salePrice'],
      'k-touch': ['.procie'],
      'gionee': ['#JgoodsPrice'],
      'oppo': ['.buying-price .price'],
      'vivo': ['.action-price'],
      'grainger': ['#summary-price .p-price'],
      'ebay': ['#prcIsum'],
      'taobao-95095': ['#J_PromoPrice .tm-price'],
      'meilishuo': ['#price-now'],
      'mogujie': ['#J_NowPrice'],
      'sephoracps': ['.proDetInfo .proPrice span'],
      'strawberrynet': ['#divShopPrice .mt-10'],
      'jia': ['.sale-price span'],
      'lemall': ['#addbits'],
      'handu': ['.promote_price'],
      'taoshu': ['#price-txt'],
      'camel': ['#prod_price'],
      'quwan': ['#price_goods_div strong'],
      'lefeng': ['.dity-price-c span'],
      '139shop': ['#bdj'],
      'wangjiu': ['#finalPriceValue'],
      'liebo': ['#8_CurPrice'],
      'aimer': ['#postPrice em'],
      'kadang': ['#J_Price'],
      'lizi': ['#s_price'],
      'metromall': ['.proDprice'],
      'pba': ['.price'],
      'shangpin': ['.spDetail_spPriceBigRed i'],
      'masamaso': ['.price24'],
      'zhen': ['#sale-price'],
      'zhenpin': ['#sale-price'],
      'sportica': ['.special-price-tittle+.price'],
      'milier': ['.big_price'],
      'nop': ['.action-price'],
      'bbready': ['.action-flashbuy_price'],
      'qinqinbaby': ['.content-main-zk-1'],
      'sasa': ['.price .action-price'],
      '5lux': ['.fsk_goods_price'],
      'aliexpress': ['#sku-discount-price'],
      'shopbop': ['.priceBlock'],
      'fengqu': ['.goods-price-r1 strong'],
      'keede': ['.message_price'],
      'showjoy': ['.j_PriceNum'],
      'easeeyes': ['.fontArial'],
      'yunhou': ['.jFirstPrice'],
      '51din': ['.product_price b'],
      'aidai': ['#_thisfp'],
      'spider': ['.hmcptwo_sjjg'],
      'zzl365': ['.goods-price .price1']
    },
    //分站信息配置
    subStationPattern: {
      '51buy': 'prid',
      'yihaodian': 'provinceId',
      'womai': 'siteinfotemp',
      'suning': 'cityId'
    },
    //获取分站信息
    getSubStationId: function (siteName) {
      if (cacheprovince) return cacheprovince;
      siteName = siteName || G.pageInfo.siteName;
      if (typeof this.subStationPattern[siteName] != 'undefined') {
        var name = this.subStationPattern[siteName] + "=";
        var ca = document.cookie.split(';');
        for (var i = 0; i < ca.length; i++) {
          var c = ca[i];
          c = $.trim(c);
          if (c.indexOf(name) == 0) {
            var province_id = c.substring(name.length, c.length);
            if (siteName == '51buy') {
              try {
                var sp = province_id.indexOf('_');
                if (sp >= 0) {
                  province_id = province_id.substr(sp + 1);
                }
              } catch (e) {}
            }
            cacheprovince = province_id;
            return province_id;
          }
        }
      }
      return '';
    },
    //尝试获取js延迟加载的价格
    tryGetLazyLoadPrice: function (site, callback, dp_ids, dp_id, style) {
      var selector = "";
      //计时器默认循环次数，如果循环了5秒还是没有结果，那就不要监控价格，先请求price_trend
      var loopNumber = 0;
      var siteSelector = {
        "tmall.com": ".tm-price,.tb-wrTuan-num",
        "taobao.com": ".tb-detail-price strong:not(.del)"
      };
      try {
        selector = siteSelector[site];
      } catch (e) {
        /*eslint-disable */
        if (G.debug) {
          console.log(e);
        }
        /*eslint-enable */

        selector = "";
      }
      var priceTimer = setInterval(function () {
        ++loopNumber;
        if ($(selector).length || loopNumber > 5) {
          var price = "";
          if ($(selector).length) {
            price = $(selector).text().split('-')[0];
            price = parseFloat(price.replace(/[^0-9.]/g, ""));
            //不要直接使用fixed，这里不是四舍五入,因为tmall淘宝可能有两个价格，一个真实价格12.10,一个原售价20.10,有时候会扣到 12.102010这样的情形，直接干掉小数点后两位的数字
            price = parseInt(price * 100) / 100.0;
            price = price.toFixed(2);
          }
          dp_ids += "&price=" + price + "&site=" + site.split('.')[0];
          clearInterval(priceTimer);
          callback(dp_ids, dp_id, style);
        }
      }, 1000);
    }
  };
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

/***/ }),

/***/ 79039:
/***/ ((module) => {

"use strict";

module.exports = function (exec) {
  try {
    return !!exec();
  } catch (error) {
    return true;
  }
};


/***/ }),

/***/ 79129:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticStyle: {
      display: "block !important",
      "z-index": "9999999999 !important"
    },
    attrs: {
      id: _vm.domName
    }
  }, [_c("div", {
    staticClass: "gwdang-main",
    style: `display: ${_vm.fold === "1" ? "none" : "flex"};`,
    attrs: {
      id: "gwdang_main"
    }
  }, [_c("div", {
    staticClass: "gwd-topbar-logo"
  }, [_c("em", {
    staticClass: "gwd_bg"
  }), _vm._v(" "), _c("div", {
    attrs: {
      id: "gwd_setting_div"
    }
  }, [_c("div", {
    staticClass: "gwd-hover-helper"
  }), _vm._v(" "), _c("div", {
    staticClass: "gwd_setting_item gwd_setting_item_fst"
  }, [_c("div", {
    staticClass: "gwd_bg gwd_function_setting"
  }), _vm._v(" "), _c("a", {
    on: {
      click: function ($event) {
        return _vm.openTab();
      }
    }
  }, [_vm._v("功能设置")])]), _vm._v(" "), _vm._m(0), _vm._v(" "), _vm._m(1), _vm._v(" "), _vm._m(2)])]), _vm._v(" "), _vm._m(3), _vm._v(" "), _vm.showAd ? _c("a", {
    staticStyle: {
      "line-height": "0",
      display: "none"
    },
    attrs: {
      id: "gwdang-banner-ad",
      title: "点击领取",
      target: "_blank",
      href: _vm.jdadUrl
    }
  }, [_c("img", {
    staticStyle: {
      height: "32px"
    },
    attrs: {
      src: "https://cdn.gwdang.com/images/extensions/ad1111/gwdang_go.png"
    }
  })]) : _vm._e(), _vm._v(" "), _c("div", {
    staticStyle: {
      flex: "1"
    },
    attrs: {
      id: "gwd-space"
    }
  }), _vm._v(" "), _c("div", {
    staticClass: "gwd-topbar-right"
  }, [_c("div", {
    staticClass: "search-mod"
  }), _vm._v(" "), _c("div", {
    staticClass: "feedback-close",
    attrs: {
      id: "gwdang-feed-close"
    }
  }, [_vm._m(4), _vm._v(" "), _c("a", {
    staticClass: "gwdang-suggest",
    attrs: {
      href: _vm.f_url,
      id: "gwdang-suggest",
      target: "_blank",
      title: "提建议或吐槽遇到的问题"
    }
  }, [_c("em", {
    staticClass: "gwd_bg"
  }), _vm._v(" "), _c("span", {
    staticClass: "blkcolor1"
  }, [_vm._v("反馈")])]), _vm._v(" "), _c("a", {
    staticClass: "top-bar-setting",
    attrs: {
      href: _vm.s_url,
      target: _vm.s_url ? "_blank" : "",
      title: "功能设置"
    }
  }, [_c("em", {
    staticClass: "gwd_bg"
  })]), _vm._v(" "), _vm._m(5)])])]), _vm._v(" "), _c("div", {
    staticClass: "gwdang-mini",
    style: `display: ${_vm.fold === "1" ? "block" : "none"}`,
    attrs: {
      id: "gwdang-mini"
    }
  }, [_c("div", {
    staticClass: "gwdang-nav main",
    attrs: {
      id: "gwdang-main-nav"
    }
  }, [_c("a", {
    staticClass: "gwd_logo gwd_bg",
    attrs: {
      href: "#"
    },
    on: {
      click: function ($event) {
        $event.preventDefault();
      }
    }
  }, [_c("div", {
    attrs: {
      id: "gwd_setting_div"
    }
  }, [_c("div", {
    staticClass: "gwd-hover-helper"
  }), _vm._v(" "), _c("div", {
    staticClass: "gwd_setting_item gwd_setting_item_fst"
  }, [_c("div", {
    staticClass: "gwd_bg gwd_function_setting"
  }), _vm._v(" "), _c("a", {
    on: {
      click: function ($event) {
        return _vm.openTab();
      }
    }
  }, [_vm._v("功能设置")])]), _vm._v(" "), _c("div", {
    staticClass: "gwd_setting_item"
  }, [_c("div", {
    staticClass: "gwd_bg gwd_opinion_feedback"
  }), _vm._v(" "), _c("a", {
    attrs: {
      target: "_blank"
    },
    on: {
      click: function ($event) {
        return _vm.openLink("https://www.gwdang.com/brwext/suggest");
      }
    }
  }, [_vm._v("意见反馈")])]), _vm._v(" "), _c("div", {
    staticClass: "gwd_setting_item"
  }, [_c("div", {
    staticClass: "gwd_bg gwd_use_help"
  }), _vm._v(" "), _c("a", {
    attrs: {
      target: "_blank"
    },
    on: {
      click: function ($event) {
        return _vm.openLink("https://www.gwdang.com/v2/app/questions");
      }
    }
  }, [_vm._v("使用帮助")])]), _vm._v(" "), _c("div", {
    staticClass: "gwd_setting_item"
  }, [_c("div", {
    staticClass: "gwd_bg gwd_homepage"
  }), _vm._v(" "), _c("a", {
    attrs: {
      target: "_blank"
    },
    on: {
      click: function ($event) {
        return _vm.openLink("https://www.gwdang.com/");
      }
    }
  }, [_vm._v("购物党首页")])])])]), _vm._v(" "), _c("a", {
    staticClass: "unfold_pointer gwd_bg",
    attrs: {
      href: "javascript:",
      title: "点击展开",
      id: "gwd_fold_pointer"
    }
  })])])]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd_setting_item"
  }, [_c("div", {
    staticClass: "gwd_bg gwd_opinion_feedback"
  }), _vm._v(" "), _c("a", {
    attrs: {
      href: "https://www.gwdang.com/brwext/suggest",
      target: "_blank"
    }
  }, [_vm._v("意见反馈")])]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd_setting_item"
  }, [_c("div", {
    staticClass: "gwd_bg gwd_use_help"
  }), _vm._v(" "), _c("a", {
    attrs: {
      href: "https://www.gwdang.com/v2/app/questions",
      target: "_blank"
    }
  }, [_vm._v("使用帮助")])]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd_setting_item"
  }, [_c("div", {
    staticClass: "gwd_bg gwd_homepage"
  }), _vm._v(" "), _c("a", {
    attrs: {
      href: "https://www.gwdang.com/",
      target: "_blank"
    }
  }, [_vm._v("购物党首页")])]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-topbar-left"
  }, [_c("div", {
    staticClass: "gwdang-tab",
    attrs: {
      id: "amazon_compare"
    }
  }), _vm._v(" "), _c("div", {
    staticClass: "gwdang-tab",
    attrs: {
      id: "b2c_compare"
    }
  }), _vm._v(" "), _c("div", {
    staticClass: "gwdang-tab",
    attrs: {
      id: "tb_compare"
    }
  }), _vm._v(" "), _c("div", {
    staticClass: "gwdang-tab",
    attrs: {
      id: "tm_compare"
    }
  }), _vm._v(" "), _c("div", {
    staticClass: "gwdang-tab",
    attrs: {
      id: "gwdang-trend"
    }
  })]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "gwdang-icon favor",
    attrs: {
      href: "javascript:",
      id: "gwdang-favor",
      title: "我的收藏夹",
      target: "_self"
    }
  }, [_c("em", {
    staticClass: "hasColor gwd_bg"
  }), _vm._v(" "), _c("span", {
    staticClass: "blkcolor1 favortle",
    attrs: {
      title: "收藏并获得降价提醒"
    }
  }, [_vm._v("我的收藏夹")])]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "gwd_close",
    attrs: {
      href: "javascript:",
      target: "_self",
      title: "关闭购物党"
    }
  }, [_c("em", {
    staticClass: "gwd_bg"
  })]);
}];
render._withStripped = true;

/***/ }),

/***/ 79296:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
var documentCreateElement = __webpack_require__(4055);

var classList = documentCreateElement('span').classList;
var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;

module.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;


/***/ }),

/***/ 79306:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var isCallable = __webpack_require__(94901);
var tryToString = __webpack_require__(16823);

var $TypeError = TypeError;

// `Assert: IsCallable(argument) is true`
module.exports = function (argument) {
  if (isCallable(argument)) return argument;
  throw new $TypeError(tryToString(argument) + ' is not a function');
};


/***/ }),

/***/ 79504:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var NATIVE_BIND = __webpack_require__(40616);

var FunctionPrototype = Function.prototype;
var call = FunctionPrototype.call;
// eslint-disable-next-line es/no-function-prototype-bind -- safe
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);

module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
  return function () {
    return call.apply(fn, arguments);
  };
};


/***/ }),

/***/ 79560:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


//content-env 与  extension-env 通信
module.exports.trigger = data => {
  if (document.createEvent) {
    let evt = document.createEvent('CustomEvent');
    data.evt_from = G.from_device || 'externalJS';
    evt.initCustomEvent('gwd_extension', true, true, data);
    document.dispatchEvent(evt);
  }
};
module.exports.on = cb => {
  if (document.addEventListener) {
    document.addEventListener('gwd_content', function (e) {
      if (navigator.userAgent.indexOf('Firefox') > -1) {
        cb(JSON.parse(e.detail));
      } else {
        cb(e.detail);
      }
    });
  } else {
    document.attachEvent('gwd_content', function (e) {
      cb(e.detail);
    });
  }
};

/***/ }),

/***/ 79696:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(20363);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("b698d8de", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 79702:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const timeUtil = __webpack_require__(14396);
const template = __webpack_require__(26133);
const price_remind = __webpack_require__(57031);
const request = __webpack_require__(49388);
const userData = __webpack_require__(74222);
let log = __webpack_require__(35743);
let cnzz = __webpack_require__(5300);
let globalTime,
  retry = 0;
let hasGetTime;
Date.prototype.format = function (fmt) {
  var o = {
    "M+": this.getMonth() + 1,
    //月份 
    "d+": this.getDate(),
    //日 
    "h+": this.getHours(),
    //小时 
    "m+": this.getMinutes(),
    //分 
    "s+": this.getSeconds(),
    //秒 
    "q+": Math.floor((this.getMonth() + 3) / 3),
    //季度 
    "S": this.getMilliseconds() //毫秒 
  };
  if (/(y+)/.test(fmt)) {
    fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  }
  for (var k in o) {
    if (new RegExp("(" + k + ")").test(fmt)) {
      fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length));
    }
  }
  return fmt;
};

// 最接近的半小时时间
// 12:31 -> 12:30
// 12:29 -> 12:30
Date.prototype.toHalfHourTime = function () {
  const original = this.getTime();
  return new Date(Math.round(original / (30 * 60000)) * (30 * 60000));
};
let userInfo = {};
module.exports.init = async () => {
  // let res = await $.ajax({
  //   url: 'https://www.gwdang.com/user/info',
  //   dataType: 'jsonp',
  //   jsonp: 'callback',
  //   xhrFields: {
  //     withCredentials: true
  //   }
  // })
  getSeckill();
};
const seckillRule = {
  "360buy": [{
    "secDom": "#yuyue-banner",
    "timeType": "t11",
    "secDom2": "#yuyue-banner .activity-type:contains('预约抢购')",
    "secTime": "#yuyue-banner .activity-message .J-time"
  }, {
    "secDom": "#banner-miaosha",
    "timeType": "M月D日H时M分",
    "secDom2": "#banner-miaosha .activity-type:contains('秒杀预告')",
    "secTime": "#banner-miaosha .activity-price strong"
  }, {
    "secDom": "#banner-miaosha",
    "timeType": "t12",
    "secDom2": "#banner-miaosha .activity-type:contains('京东秒杀')",
    "secTime": "#banner-miaosha .activity-message"
  }, {
    "secDom": "#pingou-banner",
    "timeType": "t13",
    "secDom2": "#pingou-banner .activity-type:contains('预售')",
    "secTime": "#pingou-banner .activity-message .J-time"
  }, {
    "secDom": "#banner-shangou .activity-type:contains('京东闪购')",
    //"timeType": "t14",
    "timeType": "t12",
    "secDom2": "#banner-shangou .activity-message:contains('预计')",
    "secTime": "#banner-shangou .activity-message"
  }, {
    // 预售商品，还没开始付定金
    "secDom": "#pingou-banner .activity-message:contains('距预售还需')",
    "timeType": "timeRangeSplitBy`-`",
    "secDom2": "#pingou-process dt:contains('支付定金')",
    "secTime": "#pingou-process .J-presale-time"
  }, {
    // 预售商品，使用尾款时间
    "secDom": "#pingou-process .J-balance-time",
    "timeType": "timeRangeSplitBy`-`",
    "secDom2": "#pingou-process dt:contains('支付尾款')",
    "secTime": "#pingou-process .J-balance-time"
  }, {
    // 预售商品，使用尾款时间
    "secDom": "#yuyue-process .J-step4",
    "timeType": "timeRangeSplitBy`-`",
    "secDom2": "#yuyue-process dt:contains('抢购中')",
    "secTime": "#yuyue-process .J-step4"
  }],
  "taobao-ju": [{
    "secDom": ".buyaction.J_JuSMSRemind",
    "timeType": "t21",
    "secDom2": ".ju-clock.J_juItemTimer>p:contains('开抢')",
    "secTime": ".ju-clock.J_juItemTimer>p"
  }],
  "taobao": [{
    "secDom": "#J_TaoQiangGou",
    "timeType": "t21",
    "secDom2": "#J_TaoQiangGou:contains('开始抢购')",
    "secTime": "#J_TaoQiangGou"
  }],
  "tmall": [{
    "secDom": "#tm-yushou-process-banner",
    "timeType": "t31",
    "secDom2": "#tm-yushou-process-banner .tm-yushou-process-title.tm-ys-title-one-row:contains('天猫预售')",
    "secTime": "#tm-yushou-process-banner .J_step2Time"
  }, {
    "secDom": ".tm-countdown .tb-btn-wait:contains('即将开始')",
    "timeType": "t32",
    "secDom2": ".tm-countdown .tm-countdown-notice:contains('距开售')",
    "secTime": ".tm-countdown .tm-countdown-timer"
  }],
  "suning": [{
    "secDom": "#timePanel",
    "timeType": "t41",
    "secDom2": "#timePanel .djh-title:contains('预定')",
    "secTime": "#timePanel .proinfo-cd"
  }, {
    "secDom": ".snqg-logo",
    "timeType": "M月D日 H时M分",
    "secDom2": ".djh-cd",
    "secTime": "#bigPolyTime"
  }, {
    "secDom": "#buyTime",
    "timeType": "X月X日X时X分X秒",
    "secDom2": ".step-4",
    "secTime": "#buyTime dd:contains('开始')"
  }],
  "xiaomi": [{
    "secDom": ".pro-time.J_proBook",
    "timeType": "t51",
    "secDom2": ".pro-time.J_proBook .pro-time-head:contains('预售')",
    "secTime": ".pro-time.J_proBook .time.J_bookTime"
  }],
  "kaola": [{
    "secDom": ".m-promotionbar",
    "timeType": "t61",
    "secDom2": ".m-promotionbar .prelimit .txt:contains('开抢')",
    "secTime": ".m-promotionbar .prelimit .txt"
  }],
  "dangdang": [{
    "secDom": "#count-down",
    "timeType": "t71",
    "secDom2": "#count-down .J-time-text:contains('尚未开始')",
    "secTime": "#count-down .J-time"
  }],
  "vmall": [{
    "secDom": "#buyProcessIDD",
    "timeType": "t81",
    "secDom2": "#buyProcessIDD ul li:first-child:contains('支付订金')",
    "secTime": "#startDateIDD"
  }]
};
const getSeckillTime = (type, ori_str) => {
  if (ori_str.length < 3) {
    return false;
  }
  let str;
  if (type !== "t81") {
    str = ori_str.replace(/\s/g, "");
  } else {
    str = ori_str;
  }
  let arr, newtime;
  let nowTime;
  let month, d, h, m, ss, ms;
  let year = new Date().getFullYear();
  switch (type) {
    case "X月X日X时X分X秒":
      arr = ori_str.match(/开始：(\d+)月(\d+)日(\d+)时(\d+)分(\d+)秒/);
      if (!arr) return false;
      nowTime = new Date();
      newtime = `${nowTime.getFullYear()}/${arr[1]}/${arr[2]}/${arr[3]}:${arr[4]}`;
      break;
    case `M月D日 H时M分`:
      arr = ori_str.match(/(\d+)月(\d+)日 (\d+):(\d+)/);
      if (!arr) return false;
      nowTime = new Date();
      newtime = `${nowTime.getFullYear()}/${arr[1]}/${arr[2]}/${arr[3]}:${arr[4]}`;
      break;
    case `M月D日H时M分`:
      arr = ori_str.match(/(\d+)月(\d+)日(\d+):(\d+)/);
      if (!arr) return false;
      nowTime = new Date();
      newtime = `${nowTime.getFullYear()}/${arr[1]}/${arr[2]}/${arr[3]}:${arr[4]}`;
      break;
    case "timeRangeSplitBy`-`":
      // eg: 2019-07-0300:00-2019-07-0700:00
      let date = ori_str.split(' ')[0].replace(/-/g, '/');
      newtime = date + '/' + ori_str.split(' ')[1].split('-')[0];
      break;
    case "t11":
      nowTime = new Date().getTime();
      arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小时(\d+)分(\d+)秒/);
      if (!arr) return false;
      if ($('#yuyue-banner .activity-message .J-text').text() === '抢购剩余') {
        return false;
      }
      if ($('#pingou-banner .activity-message .J-text').text() === '距预售还需') {
        return false;
      }
      d = arr[1] || 0;
      h = arr[2] || 0;
      m = arr[3] || 0;
      ss = arr[4] || 0;
      ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000;
      newtime = timeUtil(nowTime + ms, "6");
      break;
    case "t12":
      nowTime = new Date().getTime();
      arr = str.match(/预计([0-9:月日]+)开始/);
      if (!arr) return false;
      let htime = arr[1];
      newtime = timeUtil(nowTime, "5");
      if (htime.indexOf('日') > -1) {
        let month = htime.split('月')[0];
        let day = htime.split('日')[0].split('月')[1];
        newtime = newtime.split('/')[0] + `/${month}/${day}`;
        htime = htime.split('日')[1];
      }
      newtime = newtime + '/' + htime;
      break;
    case "t13":
      nowTime = new Date().getTime();
      arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小?时(\d+)分(\d+)秒/);
      if (!arr) return false;
      if ($('.activity-message .J-text').text() === '预售剩余') {
        return false;
      }
      d = arr[1] || 0;
      h = arr[2] || 0;
      m = arr[3] || 0;
      ss = arr[4] || 0;
      ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000;
      newtime = timeUtil(nowTime + ms, "6");
      break;
    case "t14":
      arr = str.match(/(\d+)月(\d+)日(\d+)\:(\d+)/);
      if (!arr) return false;
      month = Number(arr[1]) || 0;
      if (month < 10) month = "0" + month.toString();
      d = Number(arr[2]) || 0;
      if (d < 10) d = "0" + d.toString();
      h = arr[3] || 0;
      m = arr[4] || 0;
      // ms = month + d * 86400000 + h * 3600 * 1000 + m * 60 * 1000;
      newtime = `${year}/${month}/${d}/${h}:${m}`;
      break;
    case "t21":
      arr = str.match(/(\d+)月(\d+)日(\d+)\:(\d+)/);
      if (!arr) return false;
      month = Number(arr[1]) || 0;
      if (month < 10) month = "0" + month.toString();
      d = Number(arr[2]) || 0;
      if (d < 10) d = "0" + d.toString();
      h = arr[3] || 0;
      m = arr[4] || 0;
      // ms = month + d * 86400000 + h * 3600 * 1000 + m * 60 * 1000;
      newtime = `${year}/${month}/${d}/${h}:${m}`;
      break;
    case "t31":
      arr = ori_str.split("~");
      if (!arr) return false;
      newtime = arr[0].replace(/(?:\.|\s)/g, "/");
      break;
    case "t32":
      nowTime = new Date().getTime();
      arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小?时(\d+)分/);
      if (arr && arr.length) {
        d = Number(arr[1]) || 0;
        if (d < 10) d = "0" + d.toString();
        h = arr[2] || 0;
        m = arr[3] || 0;
      } else {
        arr = str.match(/(\d+)分(\d+)秒/);
        d = 0;
        h = 0;
        m = arr[1];
      }
      ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000;
      newtime = timeUtil(nowTime + ms, "6");
      break;
    case "t41":
      //苏宁
      nowTime = new Date().getTime();
      arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小?时(\d+)分([0-9.]+)秒/);
      if (!arr) return false;
      d = parseInt(arr[1]) || 0;
      h = parseInt(arr[2]) || 0;
      m = parseInt(arr[3]) || 0;
      ss = parseInt(arr[4]) || 0;
      ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000;
      newtime = timeUtil(nowTime + ms, "6");
      break;
    case "t51":
      nowTime = new Date().getTime();
      arr = str.match(/\s?(?:(\d+)|)\s?(?:天|日|)\s?(\d+)\s?小?时\s?(\d+)\s?分\s?(\d+)\s?秒/);
      if (!arr) return false;
      d = arr[1] || 0;
      h = arr[2] || 0;
      m = arr[3] || 0;
      ss = arr[4] || 0;
      ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000;
      newtime = timeUtil(nowTime + ms, "6");
      break;
    case "t61":
      //kaola
      arr = str.match(/(\d+)月(\d+)日(\d+)\:(\d+)/);
      if (!arr) return false;
      month = Number(arr[1]) || 0;
      if (month < 10) month = "0" + month.toString();
      d = Number(arr[2]) || 0;
      if (d < 10) d = "0" + d.toString();
      h = arr[3] || 0;
      m = arr[4] || 0;
      // ms = month + d * 86400000 + h * 3600 * 1000 + m * 60 * 1000;
      newtime = `${year}/${month}/${d}/${h}:${m}`;
      break;
    case "t71":
      //dangdang
      nowTime = new Date().getTime();
      arr = str.match(/(?:(\d+)(?:天|日)|)(\d+)时(\d+)分(\d+)秒/);
      if (!arr) return;
      d = arr[1] || 0;
      h = arr[2] || 0;
      m = arr[3] || 0;
      ss = arr[4] || 0;
      ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000;
      newtime = timeUtil(nowTime + ms, "6");
      break;
    case "t81":
      arr = str.split("~");
      if (!arr) return;
      newtime = arr[1].trim();
      newtime = newtime.replace(/[\s\.]/g, "/");
      break;
  }
  return newtime;
};
const getSeckill = () => {
  let seckillItem = seckillRule[G.site];
  if (!seckillItem) return;
  for (let i = 0; i < seckillItem.length; i++) {
    let sitem = seckillItem[i];
    if ($(sitem["secDom"]).length > 0 && $(sitem["secDom2"]).length > 0) {
      let newtime = getSeckillTime(sitem["timeType"], $(sitem["secTime"]).text());
      if (newtime) {
        globalTime = newtime;
        //console.log('newtime:', newtime)
        let strTime = newtime.split('/');
        let d = new Date(`${strTime[0]}/${strTime[1]}/${strTime[2]} ${strTime[3]}`);
        if (d.getTime() - new Date().getTime() < 300000) {
          continue;
        }
        renderSeckill();
        break;
      }
    }
  }
  if (!globalTime && retry < 5) {
    retry++;
    setTimeout(getSeckill, 500);
  }
};
let needLog = false;
const renderSeckill = async () => {
  let res = await request.get('https://www.gwdang.com/user/info');
  userInfo = res.data;
  let html = __webpack_require__(7583);
  $('#gwd_mini_remind').remove();
  $('#gwd_mini_compare').after(html);
  const CommonLogin = (__webpack_require__(36664)["default"]);
  new Vue({
    el: '#gwd-bjd-login-box',
    render: h => h(CommonLogin, {
      props: {
        position: 'gwd-mini',
        showAlterLogin: true,
        alterLoginPosition: 'row'
      }
    })
  });

  // 获取当前提醒状态
  let dp_query = userData.get('dp_query');
  const currentStatus = await request.get(`${G.c_server}/brwext/remind_intime?opt=get&id=${dp_query.dp.dp_id}`);
  addEvent();
  if (currentStatus.msg === "未收藏" || currentStatus.msg === "用户未登录") {
    log('detected:seckillRemind');
    cnzz.log('抢购提醒', '监测到页面抢购');
    needLog = true;
    SeckillSetState(false);
  } else {
    SeckillSetState(true);
  }
};
let secKillState;
const SeckillSetState = state => {
  secKillState = state;
  if (state) {
    $('.sk-remind-btn').hide();
    if (userInfo.wx == "1") {
      $('.sk-remind-state1').show();
    } else {
      $('.sk-remind-state1').hide();
    }
    $('#gwd_mini_seckill').addClass('seckillSet');
    $('#gwd_mini_seckill .minibar-btn-box>span').text("已设抢购提醒");
    if (needLog) {}
  } else {
    //$('.sk-remind-btn').hide()
  }
};
var socketSet = false;
var showedOnce = false; // 抢购提醒是否展示过一次

const addEvent = () => {
  price_remind.getQRcode();
  window.refQRCode = price_remind.getQRcode;
  $('#gwd_mini_seckill').on('mouseenter', () => {
    if (G.email) {
      $('.seckill-detail').show();
      $('.seckill-detail').css('width', '205px');
      if (!socketSet && userInfo.wx == "0") {
        // 未绑定微信的情况，不显示提醒按钮
        // 同时打开websocket
        log('notBind:seckillRemind');
        cnzz.log('抢购提醒', '未绑定');
        $('.sk-remind-state0').show();
        if (!secKillState) {
          $('.sk-remind-state1').hide();
        }
        $('.sk-remind-btn').hide();
        renderWebsocket();
      }
      if (needLog) {
        if ($('.sk-remind-btn').css('display') !== 'none') {
          if (!showedOnce) {
            log('showButton:seckillRemind');
            cnzz.log('抢购提醒', '显示设置提醒按钮');
          }
        }
      }
      showedOnce = true;
    } else {
      $('.login-detail').show();
    }
  });
  $('#gwd_mini_seckill').on('mouseleave', () => {
    $('.seckill-common-detail').hide();
  });
  $('.sk-remind-btn').on('click', async () => {
    log('click:seckillRemind');
    cnzz.log('抢购提醒', '设置按钮点击');
    let dp = userData.get('dp_query');
    const time = new Date(globalTime).toHalfHourTime().format("yyyy-MM-dd hh:mm:ss");
    //return
    const title = G.dp.name.replace(' ', '');
    const res = await request.get(`${G.c_server}/brwext/remind_intime?opt=add&id=${dp.dp.dp_id}&title=${encodeURIComponent(title)}&stime=${time}&url=${encodeURIComponent(location.href)}`);
    if (res.code === 1 || res.msg === '重复收藏') {
      if (res.code === 1) {
        log('setComplete:seckillRemind');
        cnzz.log('抢购提醒', '设置成功');
      }
      SeckillSetState(true);
    }
  });

  //price_remind.init()
  $('#loginClickBtn').on('click', () => {
    let userN = $('.bjd-login-box .username').val();
    let psd = $('.bjd-login-box .password').val();
    if (userN && psd) {
      price_remind.loginRenderTop();
      (__webpack_require__(23107).userLogin)(userN, psd, function () {
        location.reload();
      });
    } else {
      $('#login_remind_tle').css('display', 'block').fadeOut(5000);
      return;
    }
  });
};
let heartInterval = 0;
const renderWebsocket = () => {
  // $.ajax({
  //     url: 'https://www.gwdang.com/user/info',
  //     xhrFields: {
  //       withCredentials: true
  //     },
  //     //crossDomain: true
  //   })
  var socket = new WebSocket("wss://www.gwdang.com/sck");
  socket.onopen = () => {};
  socket.onmessage = evt => {
    let res = JSON.parse(evt.data);
    if (res.msg == "Bind") {
      userInfo.wx = "1";
      $('.sk-remind-state0').hide();
      if (secKillState) {
        $('.sk-remind-state1').show();
      } else {
        $('.sk-remind-btn').show();
      }
      if (needLog) {
        cnzz.log('抢购提醒', '用户已绑定');
        log('userBindComplete:seckillRemind');
      }
      window.clearInterval(heartInterval);
      socket.close();
    }
  };
  socket.onclose = () => {};
  socket.addEventListener('open', async function (evt) {
    socketSet = true;
    let accountInfo = {
      action: 'bindWechatExt',
      msg: {
        uid: userInfo.uid
      }
    };
    socket.send(JSON.stringify(accountInfo));
    heartInterval = setInterval(() => {
      socket.send('{"ping": "pong"}');
    }, 10000);
  });
};
module.exports.getNewTime = () => {
  hasGetTime = true;
  return globalTime;
};

/***/ }),

/***/ 79878:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";

var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.decodeXML = exports.decodeHTMLStrict = exports.decodeHTMLAttribute = exports.decodeHTML = exports.determineBranch = exports.EntityDecoder = exports.DecodingMode = exports.BinTrieFlags = exports.fromCodePoint = exports.replaceCodePoint = exports.decodeCodePoint = exports.xmlDecodeTree = exports.htmlDecodeTree = void 0;
var decode_data_html_js_1 = __importDefault(__webpack_require__(13603));
exports.htmlDecodeTree = decode_data_html_js_1.default;
var decode_data_xml_js_1 = __importDefault(__webpack_require__(22517));
exports.xmlDecodeTree = decode_data_xml_js_1.default;
var decode_codepoint_js_1 = __importStar(__webpack_require__(55096));
exports.decodeCodePoint = decode_codepoint_js_1.default;
var decode_codepoint_js_2 = __webpack_require__(55096);
Object.defineProperty(exports, "replaceCodePoint", ({ enumerable: true, get: function () { return decode_codepoint_js_2.replaceCodePoint; } }));
Object.defineProperty(exports, "fromCodePoint", ({ enumerable: true, get: function () { return decode_codepoint_js_2.fromCodePoint; } }));
var CharCodes;
(function (CharCodes) {
    CharCodes[CharCodes["NUM"] = 35] = "NUM";
    CharCodes[CharCodes["SEMI"] = 59] = "SEMI";
    CharCodes[CharCodes["EQUALS"] = 61] = "EQUALS";
    CharCodes[CharCodes["ZERO"] = 48] = "ZERO";
    CharCodes[CharCodes["NINE"] = 57] = "NINE";
    CharCodes[CharCodes["LOWER_A"] = 97] = "LOWER_A";
    CharCodes[CharCodes["LOWER_F"] = 102] = "LOWER_F";
    CharCodes[CharCodes["LOWER_X"] = 120] = "LOWER_X";
    CharCodes[CharCodes["LOWER_Z"] = 122] = "LOWER_Z";
    CharCodes[CharCodes["UPPER_A"] = 65] = "UPPER_A";
    CharCodes[CharCodes["UPPER_F"] = 70] = "UPPER_F";
    CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z";
})(CharCodes || (CharCodes = {}));
/** Bit that needs to be set to convert an upper case ASCII character to lower case */
var TO_LOWER_BIT = 32;
var BinTrieFlags;
(function (BinTrieFlags) {
    BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
    BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH";
    BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
})(BinTrieFlags = exports.BinTrieFlags || (exports.BinTrieFlags = {}));
function isNumber(code) {
    return code >= CharCodes.ZERO && code <= CharCodes.NINE;
}
function isHexadecimalCharacter(code) {
    return ((code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_F) ||
        (code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_F));
}
function isAsciiAlphaNumeric(code) {
    return ((code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_Z) ||
        (code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_Z) ||
        isNumber(code));
}
/**
 * Checks if the given character is a valid end character for an entity in an attribute.
 *
 * Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error.
 * See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state
 */
function isEntityInAttributeInvalidEnd(code) {
    return code === CharCodes.EQUALS || isAsciiAlphaNumeric(code);
}
var EntityDecoderState;
(function (EntityDecoderState) {
    EntityDecoderState[EntityDecoderState["EntityStart"] = 0] = "EntityStart";
    EntityDecoderState[EntityDecoderState["NumericStart"] = 1] = "NumericStart";
    EntityDecoderState[EntityDecoderState["NumericDecimal"] = 2] = "NumericDecimal";
    EntityDecoderState[EntityDecoderState["NumericHex"] = 3] = "NumericHex";
    EntityDecoderState[EntityDecoderState["NamedEntity"] = 4] = "NamedEntity";
})(EntityDecoderState || (EntityDecoderState = {}));
var DecodingMode;
(function (DecodingMode) {
    /** Entities in text nodes that can end with any character. */
    DecodingMode[DecodingMode["Legacy"] = 0] = "Legacy";
    /** Only allow entities terminated with a semicolon. */
    DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
    /** Entities in attributes have limitations on ending characters. */
    DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
})(DecodingMode = exports.DecodingMode || (exports.DecodingMode = {}));
/**
 * Token decoder with support of writing partial entities.
 */
var EntityDecoder = /** @class */ (function () {
    function EntityDecoder(
    /** The tree used to decode entities. */
    decodeTree, 
    /**
     * The function that is called when a codepoint is decoded.
     *
     * For multi-byte named entities, this will be called multiple times,
     * with the second codepoint, and the same `consumed` value.
     *
     * @param codepoint The decoded codepoint.
     * @param consumed The number of bytes consumed by the decoder.
     */
    emitCodePoint, 
    /** An object that is used to produce errors. */
    errors) {
        this.decodeTree = decodeTree;
        this.emitCodePoint = emitCodePoint;
        this.errors = errors;
        /** The current state of the decoder. */
        this.state = EntityDecoderState.EntityStart;
        /** Characters that were consumed while parsing an entity. */
        this.consumed = 1;
        /**
         * The result of the entity.
         *
         * Either the result index of a numeric entity, or the codepoint of a
         * numeric entity.
         */
        this.result = 0;
        /** The current index in the decode tree. */
        this.treeIndex = 0;
        /** The number of characters that were consumed in excess. */
        this.excess = 1;
        /** The mode in which the decoder is operating. */
        this.decodeMode = DecodingMode.Strict;
    }
    /** Resets the instance to make it reusable. */
    EntityDecoder.prototype.startEntity = function (decodeMode) {
        this.decodeMode = decodeMode;
        this.state = EntityDecoderState.EntityStart;
        this.result = 0;
        this.treeIndex = 0;
        this.excess = 1;
        this.consumed = 1;
    };
    /**
     * Write an entity to the decoder. This can be called multiple times with partial entities.
     * If the entity is incomplete, the decoder will return -1.
     *
     * Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
     * entity is incomplete, and resume when the next string is written.
     *
     * @param string The string containing the entity (or a continuation of the entity).
     * @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
     * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
     */
    EntityDecoder.prototype.write = function (str, offset) {
        switch (this.state) {
            case EntityDecoderState.EntityStart: {
                if (str.charCodeAt(offset) === CharCodes.NUM) {
                    this.state = EntityDecoderState.NumericStart;
                    this.consumed += 1;
                    return this.stateNumericStart(str, offset + 1);
                }
                this.state = EntityDecoderState.NamedEntity;
                return this.stateNamedEntity(str, offset);
            }
            case EntityDecoderState.NumericStart: {
                return this.stateNumericStart(str, offset);
            }
            case EntityDecoderState.NumericDecimal: {
                return this.stateNumericDecimal(str, offset);
            }
            case EntityDecoderState.NumericHex: {
                return this.stateNumericHex(str, offset);
            }
            case EntityDecoderState.NamedEntity: {
                return this.stateNamedEntity(str, offset);
            }
        }
    };
    /**
     * Switches between the numeric decimal and hexadecimal states.
     *
     * Equivalent to the `Numeric character reference state` in the HTML spec.
     *
     * @param str The string containing the entity (or a continuation of the entity).
     * @param offset The current offset.
     * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
     */
    EntityDecoder.prototype.stateNumericStart = function (str, offset) {
        if (offset >= str.length) {
            return -1;
        }
        if ((str.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
            this.state = EntityDecoderState.NumericHex;
            this.consumed += 1;
            return this.stateNumericHex(str, offset + 1);
        }
        this.state = EntityDecoderState.NumericDecimal;
        return this.stateNumericDecimal(str, offset);
    };
    EntityDecoder.prototype.addToNumericResult = function (str, start, end, base) {
        if (start !== end) {
            var digitCount = end - start;
            this.result =
                this.result * Math.pow(base, digitCount) +
                    parseInt(str.substr(start, digitCount), base);
            this.consumed += digitCount;
        }
    };
    /**
     * Parses a hexadecimal numeric entity.
     *
     * Equivalent to the `Hexademical character reference state` in the HTML spec.
     *
     * @param str The string containing the entity (or a continuation of the entity).
     * @param offset The current offset.
     * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
     */
    EntityDecoder.prototype.stateNumericHex = function (str, offset) {
        var startIdx = offset;
        while (offset < str.length) {
            var char = str.charCodeAt(offset);
            if (isNumber(char) || isHexadecimalCharacter(char)) {
                offset += 1;
            }
            else {
                this.addToNumericResult(str, startIdx, offset, 16);
                return this.emitNumericEntity(char, 3);
            }
        }
        this.addToNumericResult(str, startIdx, offset, 16);
        return -1;
    };
    /**
     * Parses a decimal numeric entity.
     *
     * Equivalent to the `Decimal character reference state` in the HTML spec.
     *
     * @param str The string containing the entity (or a continuation of the entity).
     * @param offset The current offset.
     * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
     */
    EntityDecoder.prototype.stateNumericDecimal = function (str, offset) {
        var startIdx = offset;
        while (offset < str.length) {
            var char = str.charCodeAt(offset);
            if (isNumber(char)) {
                offset += 1;
            }
            else {
                this.addToNumericResult(str, startIdx, offset, 10);
                return this.emitNumericEntity(char, 2);
            }
        }
        this.addToNumericResult(str, startIdx, offset, 10);
        return -1;
    };
    /**
     * Validate and emit a numeric entity.
     *
     * Implements the logic from the `Hexademical character reference start
     * state` and `Numeric character reference end state` in the HTML spec.
     *
     * @param lastCp The last code point of the entity. Used to see if the
     *               entity was terminated with a semicolon.
     * @param expectedLength The minimum number of characters that should be
     *                       consumed. Used to validate that at least one digit
     *                       was consumed.
     * @returns The number of characters that were consumed.
     */
    EntityDecoder.prototype.emitNumericEntity = function (lastCp, expectedLength) {
        var _a;
        // Ensure we consumed at least one digit.
        if (this.consumed <= expectedLength) {
            (_a = this.errors) === null || _a === void 0 ? void 0 : _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
            return 0;
        }
        // Figure out if this is a legit end of the entity
        if (lastCp === CharCodes.SEMI) {
            this.consumed += 1;
        }
        else if (this.decodeMode === DecodingMode.Strict) {
            return 0;
        }
        this.emitCodePoint((0, decode_codepoint_js_1.replaceCodePoint)(this.result), this.consumed);
        if (this.errors) {
            if (lastCp !== CharCodes.SEMI) {
                this.errors.missingSemicolonAfterCharacterReference();
            }
            this.errors.validateNumericCharacterReference(this.result);
        }
        return this.consumed;
    };
    /**
     * Parses a named entity.
     *
     * Equivalent to the `Named character reference state` in the HTML spec.
     *
     * @param str The string containing the entity (or a continuation of the entity).
     * @param offset The current offset.
     * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
     */
    EntityDecoder.prototype.stateNamedEntity = function (str, offset) {
        var decodeTree = this.decodeTree;
        var current = decodeTree[this.treeIndex];
        // The mask is the number of bytes of the value, including the current byte.
        var valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
        for (; offset < str.length; offset++, this.excess++) {
            var char = str.charCodeAt(offset);
            this.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char);
            if (this.treeIndex < 0) {
                return this.result === 0 ||
                    // If we are parsing an attribute
                    (this.decodeMode === DecodingMode.Attribute &&
                        // We shouldn't have consumed any characters after the entity,
                        (valueLength === 0 ||
                            // And there should be no invalid characters.
                            isEntityInAttributeInvalidEnd(char)))
                    ? 0
                    : this.emitNotTerminatedNamedEntity();
            }
            current = decodeTree[this.treeIndex];
            valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
            // If the branch is a value, store it and continue
            if (valueLength !== 0) {
                // If the entity is terminated by a semicolon, we are done.
                if (char === CharCodes.SEMI) {
                    return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);
                }
                // If we encounter a non-terminated (legacy) entity while parsing strictly, then ignore it.
                if (this.decodeMode !== DecodingMode.Strict) {
                    this.result = this.treeIndex;
                    this.consumed += this.excess;
                    this.excess = 0;
                }
            }
        }
        return -1;
    };
    /**
     * Emit a named entity that was not terminated with a semicolon.
     *
     * @returns The number of characters consumed.
     */
    EntityDecoder.prototype.emitNotTerminatedNamedEntity = function () {
        var _a;
        var _b = this, result = _b.result, decodeTree = _b.decodeTree;
        var valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
        this.emitNamedEntityData(result, valueLength, this.consumed);
        (_a = this.errors) === null || _a === void 0 ? void 0 : _a.missingSemicolonAfterCharacterReference();
        return this.consumed;
    };
    /**
     * Emit a named entity.
     *
     * @param result The index of the entity in the decode tree.
     * @param valueLength The number of bytes in the entity.
     * @param consumed The number of characters consumed.
     *
     * @returns The number of characters consumed.
     */
    EntityDecoder.prototype.emitNamedEntityData = function (result, valueLength, consumed) {
        var decodeTree = this.decodeTree;
        this.emitCodePoint(valueLength === 1
            ? decodeTree[result] & ~BinTrieFlags.VALUE_LENGTH
            : decodeTree[result + 1], consumed);
        if (valueLength === 3) {
            // For multi-byte values, we need to emit the second byte.
            this.emitCodePoint(decodeTree[result + 2], consumed);
        }
        return consumed;
    };
    /**
     * Signal to the parser that the end of the input was reached.
     *
     * Remaining data will be emitted and relevant errors will be produced.
     *
     * @returns The number of characters consumed.
     */
    EntityDecoder.prototype.end = function () {
        var _a;
        switch (this.state) {
            case EntityDecoderState.NamedEntity: {
                // Emit a named entity if we have one.
                return this.result !== 0 &&
                    (this.decodeMode !== DecodingMode.Attribute ||
                        this.result === this.treeIndex)
                    ? this.emitNotTerminatedNamedEntity()
                    : 0;
            }
            // Otherwise, emit a numeric entity if we have one.
            case EntityDecoderState.NumericDecimal: {
                return this.emitNumericEntity(0, 2);
            }
            case EntityDecoderState.NumericHex: {
                return this.emitNumericEntity(0, 3);
            }
            case EntityDecoderState.NumericStart: {
                (_a = this.errors) === null || _a === void 0 ? void 0 : _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
                return 0;
            }
            case EntityDecoderState.EntityStart: {
                // Return 0 if we have no entity.
                return 0;
            }
        }
    };
    return EntityDecoder;
}());
exports.EntityDecoder = EntityDecoder;
/**
 * Creates a function that decodes entities in a string.
 *
 * @param decodeTree The decode tree.
 * @returns A function that decodes entities in a string.
 */
function getDecoder(decodeTree) {
    var ret = "";
    var decoder = new EntityDecoder(decodeTree, function (str) { return (ret += (0, decode_codepoint_js_1.fromCodePoint)(str)); });
    return function decodeWithTrie(str, decodeMode) {
        var lastIndex = 0;
        var offset = 0;
        while ((offset = str.indexOf("&", offset)) >= 0) {
            ret += str.slice(lastIndex, offset);
            decoder.startEntity(decodeMode);
            var len = decoder.write(str, 
            // Skip the "&"
            offset + 1);
            if (len < 0) {
                lastIndex = offset + decoder.end();
                break;
            }
            lastIndex = offset + len;
            // If `len` is 0, skip the current `&` and continue.
            offset = len === 0 ? lastIndex + 1 : lastIndex;
        }
        var result = ret + str.slice(lastIndex);
        // Make sure we don't keep a reference to the final string.
        ret = "";
        return result;
    };
}
/**
 * Determines the branch of the current node that is taken given the current
 * character. This function is used to traverse the trie.
 *
 * @param decodeTree The trie.
 * @param current The current node.
 * @param nodeIdx The index right after the current node and its value.
 * @param char The current character.
 * @returns The index of the next node, or -1 if no branch is taken.
 */
function determineBranch(decodeTree, current, nodeIdx, char) {
    var branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
    var jumpOffset = current & BinTrieFlags.JUMP_TABLE;
    // Case 1: Single branch encoded in jump offset
    if (branchCount === 0) {
        return jumpOffset !== 0 && char === jumpOffset ? nodeIdx : -1;
    }
    // Case 2: Multiple branches encoded in jump table
    if (jumpOffset) {
        var value = char - jumpOffset;
        return value < 0 || value >= branchCount
            ? -1
            : decodeTree[nodeIdx + value] - 1;
    }
    // Case 3: Multiple branches encoded in dictionary
    // Binary search for the character.
    var lo = nodeIdx;
    var hi = lo + branchCount - 1;
    while (lo <= hi) {
        var mid = (lo + hi) >>> 1;
        var midVal = decodeTree[mid];
        if (midVal < char) {
            lo = mid + 1;
        }
        else if (midVal > char) {
            hi = mid - 1;
        }
        else {
            return decodeTree[mid + branchCount];
        }
    }
    return -1;
}
exports.determineBranch = determineBranch;
var htmlDecoder = getDecoder(decode_data_html_js_1.default);
var xmlDecoder = getDecoder(decode_data_xml_js_1.default);
/**
 * Decodes an HTML string.
 *
 * @param str The string to decode.
 * @param mode The decoding mode.
 * @returns The decoded string.
 */
function decodeHTML(str, mode) {
    if (mode === void 0) { mode = DecodingMode.Legacy; }
    return htmlDecoder(str, mode);
}
exports.decodeHTML = decodeHTML;
/**
 * Decodes an HTML string in an attribute.
 *
 * @param str The string to decode.
 * @returns The decoded string.
 */
function decodeHTMLAttribute(str) {
    return htmlDecoder(str, DecodingMode.Attribute);
}
exports.decodeHTMLAttribute = decodeHTMLAttribute;
/**
 * Decodes an HTML string, requiring all entities to be terminated by a semicolon.
 *
 * @param str The string to decode.
 * @returns The decoded string.
 */
function decodeHTMLStrict(str) {
    return htmlDecoder(str, DecodingMode.Strict);
}
exports.decodeHTMLStrict = decodeHTMLStrict;
/**
 * Decodes an XML string, requiring all entities to be terminated by a semicolon.
 *
 * @param str The string to decode.
 * @returns The decoded string.
 */
function decodeXML(str) {
    return xmlDecoder(str, DecodingMode.Strict);
}
exports.decodeXML = decodeXML;
//# sourceMappingURL=decode.js.map

/***/ }),

/***/ 79899:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "#gwd-tb-mini-coupon[data-v-50ed28b8] {\n  height: 40px;\n  text-decoration: none;\n  border: 1px solid #f0f3f5;\n  border-radius: 4px;\n  padding-right: 12px;\n  box-sizing: border-box;\n  margin-bottom: 10px;\n  display: none;\n  position: relative;\n}\n.miniPanel #gwd-tb-mini-coupon[data-v-50ed28b8] {\n  display: flex;\n}\n.gwd-rnd-btn-click[data-v-50ed28b8] {\n  display: inline-flex;\n  width: 60px;\n  height: 20px;\n  border-radius: 4px;\n  color: white;\n}\n.gwd-coupon-color-bg.gwd-br[data-v-50ed28b8] {\n  right: 0;\n}\n", ""]);

// exports


/***/ }),

/***/ 79902:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "gwd-row gwd-align",
    class: {
      "gwd-butie": _vm.text.includes("补贴") && _vm.mainColor === "#11a14e"
    },
    staticStyle: {
      "margin-right": "18px"
    },
    attrs: {
      title: "点击领取",
      target: "_blank",
      id: "gwd-tb-mini-coupon",
      href: _vm.link
    }
  }, [_vm.showStampBg ? _c("div", {
    staticClass: "gwd-coupon-color-bg gwd-tl"
  }) : _vm._e(), _vm._v(" "), _vm.showStampBg ? _c("div", {
    staticClass: "gwd-coupon-color-bg gwd-br"
  }) : _vm._e(), _vm._v(" "), _c("img", {
    staticStyle: {
      height: "20px",
      "margin-left": "8px",
      "z-index": "1"
    },
    attrs: {
      src: _vm.icon,
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    style: `margin-left: 4px; color: ${_vm.mainColor}; font-size: 14px; position: relative; top: -2px;`,
    domProps: {
      innerHTML: _vm._s(_vm.text)
    }
  }), _vm._v(" "), _c("div", {
    staticStyle: {
      flex: "1"
    }
  }, [_vm.rebate ? _c("Stamp", {
    staticStyle: {
      right: "74px",
      top: "0",
      position: "absolute"
    },
    attrs: {
      value: _vm.rebate
    }
  }) : _vm._e()], 1), _vm._v(" "), _c("span", {
    staticClass: "gwd-rnd-btn-click gwd-row gwd-align gwd-jcc",
    style: `z-index: 1; background: linear-gradient( 180deg, ${_vm.secondColor} 0%, ${_vm.mainColor} 100%);`
  }, [_c("span", {
    staticClass: "gwd-font11",
    staticStyle: {
      "transform-origin": "center center",
      position: "relative",
      top: "-1px"
    }
  }, [_vm._v("点击领取")])])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 79963:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
let sitearr = ['360buy', 'suning', 'gome', 'yihaodian', 'dangdang', 'kaola', 'tmall'];
const inventoryCheck = __webpack_require__(19777);
const log = __webpack_require__(35743);
const userData = __webpack_require__(74222);
// const request = require('common/request')

const promosPattern = {
  'tmall': () => {
    let promo = $('.tm-shopPromo-panel').text().trim();
    if (!promo) {
      promo = $('[class^=Promotion--caption]').text().trim();
    }
    if (!promo) {
      promo = $('.contentWrap--eIMKdlQ7 > .couponInfo--DRQjTMKl [class^=couponText--]').toArray().map(x => x.innerText).join(',');
    }
    return {
      promo: promo
    };
  },
  '360buy': () => {
    let tle1 = $('.J-more-prom-ins').text();
    let tle2 = $('.J-prom em.hl_red_bg').text();
    let price = $('.J-summary-price .p-price').text().replace(/[￥¥\s]+/g, '');
    let arr = [];
    if (tle1.indexOf('满减') > -1 || tle2.indexOf('满减') > -1) {
      arr.push('满减:' + $('.J-prom em.hl_red_bg:contains("满减") + em.hl_red').text());
    }
    if (tle1.indexOf('多买优惠') > -1 || tle2.indexOf('多买优惠') > -1) {
      arr.push('多买优惠:' + $('.J-prom em.hl_red_bg:contains("多买优惠") + em.hl_red').text());
    }
    if (tle1.indexOf('满折') > -1 || tle2.indexOf('折') > -1) {
      arr.push('满折:' + $('.J-prom em.hl_red_bg:contains("满折") + em.hl_red').text());
    }
    if ($('.floor-discount .floor-item').text().length > 0) {
      let text = Array.prototype.map.call($('.floor-discount .floor-item'), function (v) {
        return $(v).text().replace(/\s/g, '');
      }).join(',');
      arr.push('领券:' + text);
    }
    if ($('.floor-list .floor-item').text().length > 0) {
      let text = Array.prototype.map.call($('.floor-list .floor-item'), function (v) {
        return $(v).text().replace(/\s/g, '');
      }).join(',');
      arr.push('领券:' + text);
    }
    if ($('#summary-quan .quan-item').text().length > 0) {
      let text = Array.prototype.map.call($('#summary-quan .quan-item'), function (v) {
        return $(v).text().replace(/\s/g, '');
      }).join(',');
      arr.push('领券:' + text);
    }
    return {
      price: price,
      promo: arr.join(';')
    };
  },
  'suning': () => {
    let dom = $('#voucherTitle');
    let labels = dom.find('label').text().replace(/\s/g, '');
    let text = '';
    let arr = [];
    if (labels.indexOf('满减') > -1 && dom.is(':visible')) {
      text = $('#voucherBox').text();
      let smtxt = $('#voucherBox a').text();
      text = '满减:' + text.replace(smtxt, '');
      arr.push(text);
    }
    if ($('#getCoupon').length > 0 && $('#getCoupon').is(':visible')) {
      let text2 = Array.prototype.map.call(document.querySelectorAll('#freeCouponBox .p-quan2 .p-quan-white'), function (e) {
        return $(e).text();
      }).join(",");
      if (text2) {
        text2 = "领券:" + text2;
        arr.push(text2);
      }
    }
    return {
      promo: arr.join(";")
    };
  },
  'gome': () => {
    let dom = $('.prd-promotions-red');
    let labels = dom.find('label').text();
    let texts = [];
    if (dom.is(':visible') && labels.indexOf('满减') > -1) {
      texts.push('满减:' + $('.prd-promotions-red label:contains("满减")+span').text().replace(/\s/g, ''));
    }
    if (dom.is(':visible') && labels.indexOf('领劵') > -1) {
      texts.push('领券:' + $('.prd-promotions-red label:contains("领劵")+b').text().replace(/(?:左边|右边)/g, '').replace(/劵/g, '券'));
    }
    if ($('.prd-price-left').is(':visible') && $('.prd-price-left').text().indexOf('劵') > -1) {
      let arr = $('#lanjuan b').text().match(/满\d+减\d+/g);
      if (arr.length > 0) {
        texts.push('领券：' + arr.join(','));
      }
    }
    return {
      promo: texts.join(';')
    };
  },
  'yihaodian': () => {
    let dom = $('#promotion_title');
    let arr = [];
    let labels = dom.find('.list .fl span.sub').text();
    if (labels.indexOf('满减') > -1 && dom.find('.list .fl span.sub').is(':visible')) {
      let text = "满减" + $('#promotion_title .list .fl span.sub:contains("满减")+ span.tit').text();
      arr.push(text);
    }
    if (labels.indexOf('折扣') > -1 && dom.find('.list .fl span.sub').is(':visible')) {
      let text = "折扣" + $('#promotion_title .list .fl span.sub:contains("折扣")+ span.tit').text();
      arr.push(text);
    }
    return {
      promo: arr.join(';')
    };
  },
  'dangdang': () => {
    let dom = $('#promo-list');
    let arr = [];
    if (dom.find('div.clearfix b:contains("满额减")').is(':visible')) {
      let txt = '满额减:' + $('#promo-list div.clearfix b:contains("满额减")+div.rule span').text();
      arr.push(txt);
    }
    if (dom.find('div.clearfix b:contains("店铺促销")').is(':visible')) {
      let txt = '店铺促销:' + $('#promo-list div.clearfix b:contains("店铺促销")+div.rule span').text();
      arr.push(txt);
    }
    return {
      promo: arr.join(';')
    };
  },
  'kaola': () => {
    let arr = [];
    if ($('.promotionwrap .m-zd-prt .m-dp-prt-title:contains("满额减")').is(':visible')) {
      let text = '满额减:' + $('.promotionwrap .m-zd-prt .m-dp-prt-title:contains("满额减")+span a').text();
      arr.push(text);
    }
    if ($('.couponwrap').is(':visible')) {
      let text2 = '领券:' + Array.prototype.map.call(document.querySelectorAll('.couponwrap .li.ellipsis'), function (e) {
        return $(e).text();
      }).join(",");
      arr.push(text2);
    }
    return {
      promo: arr.join(';')
    };
  }
};
const getJdPromoInfo = () => {
  let promos = [];
  let dom = $('#prom-one .J-prom .prom-item');
  let dom2 = $('#prom-quan .J-prom-quan');
  if (dom.length > 0) {
    for (let i = 0; i < dom.length; i++) {
      if (dom.eq(i).find('a').text().indexOf('详情') > -1) {
        let tle = dom.eq(i).find('.hl_red').text();
        let url = dom.eq(i).find('a').attr('href');
        promos.push(encodeURIComponent(tle) + ',' + encodeURIComponent(url));
      }
    }
  }
  if (dom2.length > 0) {
    for (let i = 0; i < dom2.length; i++) {
      if (dom2.eq(i).find('a').text().indexOf('详情') > -1) {
        let tle = dom2.eq(i).find('.hl_red').text();
        let url = dom2.eq(i).find('a').attr('href');
        promos.push(encodeURIComponent(tle) + ',' + encodeURIComponent(url));
      }
    }
  }
  return promos.join(';');
};
const getPromoInfo = inventory => {
  let dp = G.dp;
  let other_info = userData.get('other_info');
  let promoinfo = promosPattern[G.site]();
  let price = other_info['code-server'].price || dp.price;
  if (!price) price = promoinfo.price;
  let info = {
    dp_id: other_info.now.dp_id,
    name: dp.name,
    price: price,
    promo: promoinfo.promo,
    stock: inventory
  };
  return info;
};
const getJdPromo = (inventory, callback) => {
  let dp = G.dp;
  let other_info = userData.get('other_info');
  let price = other_info['code-server'].price || dp.price;
  let promoinfo = promosPattern[G.site]();
  if (!price) price = $('.J-summary-price .p-price').text().replace(/[￥¥\s]+/g, '');
  let promo_info = getJdPromoInfo();
  let zytxt = $('.name.goodshop.EDropdown').text();
  let isZy = '0';
  if (zytxt.indexOf('自营') > -1) {
    isZy = '1';
  }
  if (!dp.fans_price) dp.fans_price = $('.fans-price .p-price-fans span').text().replace(/[￥¥]+/, '');
  let info = {
    dp_id: other_info.now.dp_id,
    name: dp.name.trim(),
    price: price,
    promo: promoinfo.promo,
    promo_info: promo_info,
    plus_price: dp.plus_price,
    fans_price: dp.fans_price,
    isZy: isZy,
    stock: inventory
    // cat: cat,
    // venderId: vendorId,
    // noquan: noquan
  };
  info = JSON.stringify(info);
  callback(info);
};
const specialFilter = () => {
  if (G.site === 'suning') {
    if ($('#timePanel span').text().indexOf('定金团') > -1 && $('#mainPrice .price-promo span').text().indexOf('定金') > -1) {
      return true;
    }
  }
  if (G.site === '360buy') {
    if ($('#pingou .summary-price').text().indexOf('定金') > -1) {
      return true;
    }
  }
  return false;
};
const sendPromo = info => {
  if (window.XMLHttpRequest) {
    try {
      let xml = new XMLHttpRequest();
      xml.open('POST', `${G.server}/extension?ac=sendPromos&site_id=${G.site_id}&jfrom=int`);
      xml.send(info);
      log('sendPromo_success');
    } catch (e) {}
  }
};
module.exports.init = () => {
  if (G.new_extension || G.btype == 'luyou') return;
  if (G.dp.activePrice) return;
  if (specialFilter()) return;
  try {
    let inventory = inventoryCheck.init(G.site);
    if (sitearr.indexOf(G.site) > -1) {
      if (G.site == '360buy') {
        getJdPromo(inventory, sendPromo);
      } else {
        let info = getPromoInfo(inventory);
        info = JSON.stringify(info);
        sendPromo(info);
      }
    }
  } catch (e) {}
};
module.exports.specialFilter = specialFilter;

/***/ }),

/***/ 79978:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var $ = __webpack_require__(46518);
var call = __webpack_require__(69565);
var uncurryThis = __webpack_require__(79504);
var requireObjectCoercible = __webpack_require__(67750);
var isCallable = __webpack_require__(94901);
var isNullOrUndefined = __webpack_require__(64117);
var isRegExp = __webpack_require__(60788);
var toString = __webpack_require__(655);
var getMethod = __webpack_require__(55966);
var getRegExpFlags = __webpack_require__(61034);
var getSubstitution = __webpack_require__(2478);
var wellKnownSymbol = __webpack_require__(78227);
var IS_PURE = __webpack_require__(96395);

var REPLACE = wellKnownSymbol('replace');
var $TypeError = TypeError;
var indexOf = uncurryThis(''.indexOf);
var replace = uncurryThis(''.replace);
var stringSlice = uncurryThis(''.slice);
var max = Math.max;

// `String.prototype.replaceAll` method
// https://tc39.es/ecma262/#sec-string.prototype.replaceall
$({ target: 'String', proto: true }, {
  replaceAll: function replaceAll(searchValue, replaceValue) {
    var O = requireObjectCoercible(this);
    var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, position, replacement;
    var endOfLastMatch = 0;
    var result = '';
    if (!isNullOrUndefined(searchValue)) {
      IS_REG_EXP = isRegExp(searchValue);
      if (IS_REG_EXP) {
        flags = toString(requireObjectCoercible(getRegExpFlags(searchValue)));
        if (!~indexOf(flags, 'g')) throw new $TypeError('`.replaceAll` does not allow non-global regexes');
      }
      replacer = getMethod(searchValue, REPLACE);
      if (replacer) return call(replacer, searchValue, O, replaceValue);
      if (IS_PURE && IS_REG_EXP) return replace(toString(O), searchValue, replaceValue);
    }
    string = toString(O);
    searchString = toString(searchValue);
    functionalReplace = isCallable(replaceValue);
    if (!functionalReplace) replaceValue = toString(replaceValue);
    searchLength = searchString.length;
    advanceBy = max(1, searchLength);
    position = indexOf(string, searchString);
    while (position !== -1) {
      replacement = functionalReplace
        ? toString(replaceValue(searchString, position, string))
        : getSubstitution(searchString, string, position, [], undefined, replaceValue);
      result += stringSlice(string, endOfLastMatch, position) + replacement;
      endOfLastMatch = position + searchLength;
      position = position + advanceBy > string.length ? -1 : indexOf(string, searchString, position + advanceBy);
    }
    if (endOfLastMatch < string.length) {
      result += stringSlice(string, endOfLastMatch);
    }
    return result;
  }
});


/***/ }),

/***/ 80092:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports.endsWithCommaOrNewline = endsWithCommaOrNewline;
exports.insertBeforeLastWhitespace = insertBeforeLastWhitespace;
exports.isControlCharacter = isControlCharacter;
exports.isDelimiter = isDelimiter;
exports.isDigit = isDigit;
exports.isDoubleQuote = isDoubleQuote;
exports.isDoubleQuoteLike = isDoubleQuoteLike;
exports.isFunctionNameChar = isFunctionNameChar;
exports.isFunctionNameCharStart = isFunctionNameCharStart;
exports.isHex = isHex;
exports.isQuote = isQuote;
exports.isSingleQuote = isSingleQuote;
exports.isSingleQuoteLike = isSingleQuoteLike;
exports.isSpecialWhitespace = isSpecialWhitespace;
exports.isStartOfValue = isStartOfValue;
exports.isUnquotedStringDelimiter = isUnquotedStringDelimiter;
exports.isValidStringCharacter = isValidStringCharacter;
exports.isWhitespace = isWhitespace;
exports.isWhitespaceExceptNewline = isWhitespaceExceptNewline;
exports.regexUrlStart = exports.regexUrlChar = void 0;
exports.removeAtIndex = removeAtIndex;
exports.stripLastOccurrence = stripLastOccurrence;
const codeSpace = 0x20; // " "
const codeNewline = 0xa; // "\n"
const codeTab = 0x9; // "\t"
const codeReturn = 0xd; // "\r"
const codeNonBreakingSpace = 0xa0;
const codeEnQuad = 0x2000;
const codeHairSpace = 0x200a;
const codeNarrowNoBreakSpace = 0x202f;
const codeMediumMathematicalSpace = 0x205f;
const codeIdeographicSpace = 0x3000;
function isHex(char) {
  return /^[0-9A-Fa-f]$/.test(char);
}
function isDigit(char) {
  return char >= '0' && char <= '9';
}
function isValidStringCharacter(char) {
  // note that the valid range is between \u{0020} and \u{10ffff},
  // but in JavaScript it is not possible to create a code point larger than
  // \u{10ffff}, so there is no need to test for that here.
  return char >= '\u0020';
}
function isDelimiter(char) {
  return ',:[]/{}()\n+'.includes(char);
}
function isFunctionNameCharStart(char) {
  return char >= 'a' && char <= 'z' || char >= 'A' && char <= 'Z' || char === '_' || char === '$';
}
function isFunctionNameChar(char) {
  return char >= 'a' && char <= 'z' || char >= 'A' && char <= 'Z' || char === '_' || char === '$' || char >= '0' && char <= '9';
}

// matches "https://" and other schemas
const regexUrlStart = exports.regexUrlStart = /^(http|https|ftp|mailto|file|data|irc):\/\/$/;

// matches all valid URL characters EXCEPT "[", "]", and ",", since that are important JSON delimiters
const regexUrlChar = exports.regexUrlChar = /^[A-Za-z0-9-._~:/?#@!$&'()*+;=]$/;
function isUnquotedStringDelimiter(char) {
  return ',[]/{}\n+'.includes(char);
}
function isStartOfValue(char) {
  return isQuote(char) || regexStartOfValue.test(char);
}

// alpha, number, minus, or opening bracket or brace
const regexStartOfValue = /^[[{\w-]$/;
function isControlCharacter(char) {
  return char === '\n' || char === '\r' || char === '\t' || char === '\b' || char === '\f';
}
/**
 * Check if the given character is a whitespace character like space, tab, or
 * newline
 */
function isWhitespace(text, index) {
  const code = text.charCodeAt(index);
  return code === codeSpace || code === codeNewline || code === codeTab || code === codeReturn;
}

/**
 * Check if the given character is a whitespace character like space or tab,
 * but NOT a newline
 */
function isWhitespaceExceptNewline(text, index) {
  const code = text.charCodeAt(index);
  return code === codeSpace || code === codeTab || code === codeReturn;
}

/**
 * Check if the given character is a special whitespace character, some
 * unicode variant
 */
function isSpecialWhitespace(text, index) {
  const code = text.charCodeAt(index);
  return code === codeNonBreakingSpace || code >= codeEnQuad && code <= codeHairSpace || code === codeNarrowNoBreakSpace || code === codeMediumMathematicalSpace || code === codeIdeographicSpace;
}

/**
 * Test whether the given character is a quote or double quote character.
 * Also tests for special variants of quotes.
 */
function isQuote(char) {
  // the first check double quotes, since that occurs most often
  return isDoubleQuoteLike(char) || isSingleQuoteLike(char);
}

/**
 * Test whether the given character is a double quote character.
 * Also tests for special variants of double quotes.
 */
function isDoubleQuoteLike(char) {
  return char === '"' || char === '\u201c' || char === '\u201d';
}

/**
 * Test whether the given character is a double quote character.
 * Does NOT test for special variants of double quotes.
 */
function isDoubleQuote(char) {
  return char === '"';
}

/**
 * Test whether the given character is a single quote character.
 * Also tests for special variants of single quotes.
 */
function isSingleQuoteLike(char) {
  return char === "'" || char === '\u2018' || char === '\u2019' || char === '\u0060' || char === '\u00b4';
}

/**
 * Test whether the given character is a single quote character.
 * Does NOT test for special variants of single quotes.
 */
function isSingleQuote(char) {
  return char === "'";
}

/**
 * Strip last occurrence of textToStrip from text
 */
function stripLastOccurrence(text, textToStrip) {
  let stripRemainingText = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  const index = text.lastIndexOf(textToStrip);
  return index !== -1 ? text.substring(0, index) + (stripRemainingText ? '' : text.substring(index + 1)) : text;
}
function insertBeforeLastWhitespace(text, textToInsert) {
  let index = text.length;
  if (!isWhitespace(text, index - 1)) {
    // no trailing whitespaces
    return text + textToInsert;
  }
  while (isWhitespace(text, index - 1)) {
    index--;
  }
  return text.substring(0, index) + textToInsert + text.substring(index);
}
function removeAtIndex(text, start, count) {
  return text.substring(0, start) + text.substring(start + count);
}

/**
 * Test whether a string ends with a newline or comma character and optional whitespace
 */
function endsWithCommaOrNewline(text) {
  return /[,\n][ \t\r]*$/.test(text);
}
//# sourceMappingURL=stringUtils.js.map

/***/ }),

/***/ 80300:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-price[data-v-deec5212] {\n  color: #ff4449;\n  height: 24px;\n  line-height: 24px;\n  font-weight: 500;\n  font-family: \"PingFang SC-Medium\", \"PingFang SC\";\n}\n", ""]);

// exports


/***/ }),

/***/ 80305:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, picUrl = $data.picUrl;
    $$out += '<div class="gwd-qrcode-container">\n    <div class="gwd-qrcode-jd">\n        <a style="height: 33px; line-height: 33px; text-align: center; white-space: nowrap" href="https://www.gwdang.com/app/mobile" class="topper" target="_blank">\n            <span style="font-size: 12px; color: white; margin-right: 5px;">打开</span>\n            <span class="fontBig">购物党APP</span>\n            <span style="font-size: 12px; color: white; margin-left: 5px;">扫码领券</span>\n        </a>\n        <div style="width: 148px; height: 148px; background: white; margin-top: 10px;">\n            <img src="';
    $$out += $escape(picUrl);
    $$out += '" alt="" style="width: 138px; height: 138px; margin: 5px;">\n        </div>\n        <a style="text-align: center; margin-top: 4px;" href="https://www.gwdang.com/app/mobile" target="_blank">\n            <span class="download" style="display: inline-block; font-size: 12px; transform: scale(0.83333); color: white; transform-origin: top; color: #666666">立即下载</span>\n        </a>\n    </div>\n</div>\n<style>\n    .gwd-qrcode-container {\n        position: absolute;\n        right: 50%!important;\n        margin-right: -63px!important;\n        top: 28px;\n        width: 126px!important;\n        display: none;\n        font-family: \'Microsoft YaHei\';\n    }\n\n    .gwd-qrcode-jd {\n        width: 172px!important;\n        height: 215px!important;\n        background: url("https://cdn.gwdang.com/images/extensions/couponQr/jdCouponQrBgExtended@2x.png")!important;\n        background-size: contain!important;\n        border: none!important;\n        right: 50%!important;\n        margin-right: -63px!important;\n        top: 5px;\n        flex-direction: column;\n        align-items: center;\n        position: absolute;\n        display: flex;\n    }\n\n    .gwd-qrcode-jd span {\n        cursor: pointer!important;\n    }\n\n    .gwd-qrcode-jd .topper {\n        cursor: pointer!important;\n    }\n\n    .gwd-qrcode-jd .fontBig {\n        font-size: 12px;\n        font-weight: 600;\n        color: white;\n    }\n\n    .gwd-qrcode-jd .topper:hover .fontBig {\n        color: #ffeb9e!important;\n    }\n\n    .gwd-qrcode-container .download:hover {\n        color: #fe4866!important;\n    }\n\n    .gwd-qrcode-container .download::after {\n        content: \'\';\n        position: absolute;\n        background: url(https://cdn.gwdang.com/images/extensions/couponQr/arrow@2x.png);\n        width: 3px;\n        height: 5px;\n        transform: scale(1.66);\n        left: 56px;\n        background-size: cover;\n        top: 7px;\n    }\n\n    .gwd-qrcode-container .download:hover::after {\n        background: url(https://cdn.gwdang.com/images/extensions/couponQr/arrow-hilighted@2x.png);\n        width: 3px;\n        height: 5px;\n        transform: scale(1.66);\n        left: 56px;\n        background-size: cover;\n        top: 7px;\n    }\n\n\n</style>';
    return $$out;
};

/***/ }),

/***/ 80339:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(26910);
let communicate = __webpack_require__(79560);
let buildTaobaoUrl = __webpack_require__(77342);
let dataShare = __webpack_require__(34810);
let globalData, callbacks;
let hasrun = false;
let timeOUT = 4000;
var trueClassId = false;
let sitearr = ['vipshop', 'mogujie', 'meilishuo', 'amazon', 'yougou', 'yohobuy', '6pm', 'yintai', 'banggo', 'xiu', 'vancl', 'shopbop', 'shopin', 's', 'masamaso', 'secoo', 'mei', 'gap', 'paixie', 'moonbasa', 'meici', 'macys', 'myhabit', 'zhen', 'gilt', 'mbaobao', 'wangfujing', 'letao', 'camel', 'handu', 'mf910', '5lux', 'd1', 'taoxie', 'm18', "thewatchery", "escentual", 'biccamera', 'zhe800', 'yangkeduo'];
if (location.host.indexOf('amazon') > -1 && location.host.indexOf('cn') == -1) timeOUT = 10000;
let editData = data => {
  let taobaoarr = [],
    tmallarr = [],
    guessarr = [];
  try {
    let info = JSON.parse(data);
    let array = info.mods.itemlist.data.collections;
    if (array.length == 0) return;
    if (array.length == 2 && array[0].title == '外观相似宝贝') {
      let similar = array[0].auctions;
      let len = similar.length > 20 ? 20 : similar.length;
      for (let i = 0; i < len; i++) {
        let item = {};
        let feeDesc = similar[i].view_fee == '0.00' ? '包邮' : '';
        item.nick = similar[i].nick;
        item.num_iid = similar[i].nid;
        item.title = similar[i].title;
        item.price = similar[i].view_price;
        item.item_location = similar[i].item_loc;
        item.store_name = similar[i].nick + feeDesc;
        item.pic_url = 'http:' + similar[i].pic_url;
        item.volume = similar[i].view_sales.replace('人付款', '');
        item.type = 'img_search';
        item.price2 = Number(item.price);
        if (G.dp.price && item.price2 * 2 < G.dp.price) continue;
        if (!item.pic_url.match(/jpg_[0-9]+x[0-9]/)) item.pic_url = item.pic_url.replace(/(\.png|\.jpg)/, '$1' + '_100x100.jpg');
        let obj = {
          'source': 'img_search',
          'img_url': 'http:' + similar[i].pic_url,
          'title': similar[i].title,
          'price': similar[i].view_price,
          'shop_name': similar[i].nick + feeDesc,
          'sales': similar[i].view_sales.replace('人付款', ''),
          'id': similar[i].nid,
          'url': 'https:' + similar[i].detail_url,
          'discuss': similar[i].comment_count,
          'istaobao': similar[i].detail_url.indexOf('detail.tmall.com') > -1 ? '0' : '1',
          'dp_id': similar[i].nid + '-' + (similar[i].detail_url.indexOf('detail.tmall.com') > -1) ? '83' : '123',
          'site_id': similar[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123'
        };
        item.url = buildTaobaoUrl(obj);
        if (similar[i].detail_url.indexOf('detail.tmall.com') > -1) {
          tmallarr.push(item);
        } else {
          taobaoarr.push(item);
        }
      }
    } else if (array.length == 1 && array[0].title == '您可能会喜欢' || array.length == 2 && array[1].title == '您可能会喜欢') {
      let guess = array[array.length - 1].auctions;
      for (let i = 0; i < guess.length; i++) {
        let item = {};
        item.url = 'https:' + guess[i].detail_url;
        item.pic_url = guess[i].pic_url;
        item.title = guess[i].title;
        item.num_iid = guess[i].nid;
        item.price = guess[i].view_price;
        item.volume = guess[i].view_sales;
        item.nick = guess[i].nick;
        item.price2 = Number(item.price);
        if (G.dp.price && item.price2 * 2 < G.dp.price) continue;
        guessarr.push(item);
      }
    }
    taobaoarr = sortData(taobaoarr);
    tmallarr = sortData(tmallarr);
    globalData = {
      'taobao': taobaoarr,
      'tmall': tmallarr,
      'guessfavor': guessarr
    };
    if (callbacks && !hasrun) {
      callbacks(globalData);
      hasrun = true;
    }
  } catch (e) {}
};
let sortData = data => {
  if (!data.sort) return;
  data = data.sort((value1, value2) => {
    if (Number(value1.price) > Number(value2.price)) return 1;else if (Number(value1.price) == Number(value2.price)) return 0;else return -1;
  });
  return data;
};
let getImgSrc = () => {
  let imgsrc = {
    '360buy': '#preview .jqzoom img',
    'gome': '.jqzoom img',
    'suning': '#imgZoom #bigImage',
    'yihaodian': '#J_prodImg',
    'vancl': '#midimg',
    'shopin': '#zoom1 img',
    'secoo': '.jqzoom',
    'mei': '#bigimg',
    'meici': '.zoomPad img',
    'macys': '#mainView_1',
    'taoxie': '#t_PreviewImage img',
    'd1': '.gs_right_spimg img',
    '5lux': '.cloudzoom',
    'mf910': '#op_product_zoom img',
    'handu': '#masterImage',
    'camel': '#img_jqzoom',
    'letao': '#simgouter img',
    'wangfujing': '.zoomPad .lazy-pic',
    'zhen': '#zoom1 .a_max_pic',
    'shopbop': '#productImage',
    'yohobuy': '#img-show',
    'taobao': '#J_ImgBooth',
    'thewatchery': '#detailimage',
    'amazon': '#altImages ul li img',
    'mogujie': '#J_BigImg',
    'escentual': '#zoom1 img',
    'biccamera': '#PROD-CURRENT-IMG',
    'zhe800': '#detail .deteilpic ul li img',
    'vipshop': '#J-mer-ImgReview .zoomPad>img',
    'tmall': '#J_ImgBooth',
    '1688': '#mod-detail-bd .content .box-img img',
    'vip': '#J-mer-ImgReview .zoomPad>img',
    'meilishuo': '#picture .item-pic-origin>img',
    'jumei': '#etalage li>img',
    '6pm': '#detailImage img',
    'banggo': '.mainPicContent',
    'vjia': '#FreshDiv_MainPhoto .sp-bigImg img',
    'yougou': '#pD-bimg',
    'yintai': '#J_Magnifier img',
    'okbuy': '#zoom1 img',
    'lovo': '#jqzoom .zoomPad img',
    'moonbasa': '#largeimg',
    'tonlion': '.good_left .jqzoom',
    'xiu': '#imgPic',
    'lamiu': '#op_product_zoom img',
    'masamaso': '.goods_tp_box .zoomPad img',
    's': '.goods-detail-pic a img',
    'paixie': '#zoom1 img',
    'mbaobao': '#goods-zoom img',
    'm18': '#GoodsImage',
    'gap': '#wrap.all-images-box a img',
    'esprit': '#mainImages .m-pic img',
    'yangkeduo': '#banner .islider-outer .islider-active img'
  };
  if (imgsrc[G.site]) {
    let src = $(imgsrc[G.site]).eq(0).attr('src');
    if (location.host == 'www.amazon.co.jp' && src && src.match(/SR[0-9]+,[0-9]+/)) {
      src = src.replace(/SR([0-9]+)\,([0-9]+)/, 'SR' + '$1' + '0' + ',' + '$2' + '0');
    } else if (location.host.indexOf('amazon') > -1) {
      return false;
    }
    if (src && !src.match(/(?:http:|https:)/) && src.indexOf('//') > -1) src = 'http:' + src;
    if (G.site === 'zhe800') {
      src = src.replace('58x58.jpg', '220x220.jpg');
    }
    if (!src || src.indexOf('base64') > -1) {
      return false;
    }
    return src;
  }
  return false;
};
let readyImg = trueClassId => {
  let src = getImgSrc();
  if (sitearr.indexOf(G.site) > -1 && location.host != 'www.amazon.cn' || location.host.indexOf('1688') > -1 || trueClassId) {
    trueClassId = true; //发了请求都可以等，为true init里面才不会return
    communicate.trigger({
      type: 'getTaobaoImgInfo',
      src: src
    });
    communicate.on(data => {
      if (typeof data === 'string') {
        data = JSON.parse(data);
      }
      if (data.type == 'getTaobaoImgInfo') {
        let text = $('#gwd_img_info').text();
        if (text != '') editData(text);
      }
    });
  }
};
module.exports.ready = () => {
  if (G.site == 'taobao' || G.site == 'tmall' || G.site.indexOf('taobao') > -1) {
    return;
  }
  let dpdata = dataShare.get('dp_data');
  let classId = dpdata && dpdata['now']['class_id'];
  let code = dpdata && dpdata['code-server']['code'];
  if (G.site === 'amazon' && code) return;
  if (classId) classId = classId.slice(0, 2);
  if (G.site === '360buy') {
    let cate_id = G.dp.cat_id;
    if (cate_id) cate_id = cate_id.split('-')[0];
    let cateidArr = ["1620", "1315", "1318", "1672", "1319", "5025", "6144", "15248", "11729"];
    if (cateidArr.indexOf && cateidArr.indexOf(cate_id) > -1) {
      trueClassId = true;
    }
  } else {
    if (classId == "13" || classId == "24" || classId == "1A" || classId == '21') trueClassId = true;
  }
  readyImg(trueClassId);
};
module.exports.uniqPidGetImg = callback => {
  readyImg(true);
  callbacks = callback;
};
module.exports.init = callback => {
  if (!trueClassId && sitearr.indexOf(G.site) == -1) {
    callback(null);
    return;
  }
  if (globalData) {
    callback(globalData);
    hasrun = true;
  } else callbacks = callback;
  setTimeout(() => {
    if (callbacks && hasrun === false) {
      callbacks(null);
      hasrun = true;
    }
  }, timeOUT);
};

/***/ }),

/***/ 80493:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ TklCopy)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TklCopy.vue?vue&type=template&id=99e285e4&scoped=true
var TklCopyvue_type_template_id_99e285e4_scoped_true = __webpack_require__(44451);
;// ./src/common/components/TklCopy.vue?vue&type=template&id=99e285e4&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TklCopy.vue?vue&type=script&lang=js
var TklCopyvue_type_script_lang_js = __webpack_require__(39084);
;// ./src/common/components/TklCopy.vue?vue&type=script&lang=js
 /* harmony default export */ const components_TklCopyvue_type_script_lang_js = (TklCopyvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TklCopy.vue?vue&type=style&index=0&id=99e285e4&prod&scoped=true&lang=less
var TklCopyvue_type_style_index_0_id_99e285e4_prod_scoped_true_lang_less = __webpack_require__(35235);
;// ./src/common/components/TklCopy.vue?vue&type=style&index=0&id=99e285e4&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TklCopy.vue?vue&type=style&index=1&id=99e285e4&prod&lang=less
var TklCopyvue_type_style_index_1_id_99e285e4_prod_lang_less = __webpack_require__(30075);
;// ./src/common/components/TklCopy.vue?vue&type=style&index=1&id=99e285e4&prod&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/TklCopy.vue



;



/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_TklCopyvue_type_script_lang_js,
  TklCopyvue_type_template_id_99e285e4_scoped_true/* render */.XX,
  TklCopyvue_type_template_id_99e285e4_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "99e285e4",
  null
  
)

/* harmony default export */ const TklCopy = (component.exports);

/***/ }),

/***/ 80550:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);

module.exports = globalThis.Promise;


/***/ }),

/***/ 80585:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-epic-bar-container gwd-row",
    style: _vm.type === "top" ? "margin-top: 6px;" : ""
  }, [_c("div", {
    staticClass: "gwd-epic-price gwd-row gwd-align",
    style: _vm.type === "top" ? "margin-right: 0px;" : "",
    on: {
      mouseover: _vm.draw
    }
  }, [_vm._v("\n    " + _vm._s(_vm.priceStatusText) + "\n    "), _c("img", {
    staticStyle: {
      "margin-left": "6px",
      transform: "scale(0.5)",
      "transform-origin": "left center"
    },
    attrs: {
      src: _vm.priceTrendIcon,
      alt: ""
    }
  }), _vm._v(" "), _c("div", {
    staticClass: "gwd-price-trend-panel"
  }, [_c("div", {
    staticClass: "gwd-top-price gwd-row"
  }, [_c("span", {
    staticClass: "gwd-price-text",
    staticStyle: {
      "border-color": "#ff5627",
      color: "#ff5627"
    }
  }, [_vm._v("最高: $" + _vm._s(parseFloat(_vm.data.store[0].highest).toFixed(2)))]), _vm._v(" "), _c("span", {
    staticClass: "gwd-price-text",
    staticStyle: {
      "border-color": "#9ed81e",
      color: "#9ed81e"
    }
  }, [_vm._v("最低: $" + _vm._s(parseFloat(_vm.data.store[0].lowest).toFixed(2)))])]), _vm._v(" "), _c("span", {
    staticStyle: {
      position: "absolute",
      color: "#777777",
      "font-size": "12px",
      top: "37px",
      left: "28px",
      "z-index": "3"
    }
  }, [_vm._v("价格(US$)")]), _vm._v(" "), _c("div", {
    ref: "plotArea",
    staticStyle: {
      "margin-top": "-1px",
      height: "207px"
    }
  })])])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 80636:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ ProductItemvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ ProductItem)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/ProductItem.vue?vue&type=template&id=fa024638&scoped=true
var ProductItemvue_type_template_id_fa024638_scoped_true = __webpack_require__(1123);
;// ./src/standard/module/components/ImgSame/ProductItem.vue?vue&type=template&id=fa024638&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/ProductItem.vue?vue&type=script&lang=js
var ProductItemvue_type_script_lang_js = __webpack_require__(2131);
;// ./src/standard/module/components/ImgSame/ProductItem.vue?vue&type=script&lang=js
 /* harmony default export */ const ImgSame_ProductItemvue_type_script_lang_js = (ProductItemvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/ProductItem.vue?vue&type=style&index=0&id=fa024638&prod&scoped=true&lang=less
var ProductItemvue_type_style_index_0_id_fa024638_prod_scoped_true_lang_less = __webpack_require__(24139);
;// ./src/standard/module/components/ImgSame/ProductItem.vue?vue&type=style&index=0&id=fa024638&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/ImgSame/ProductItem.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  ImgSame_ProductItemvue_type_script_lang_js,
  ProductItemvue_type_template_id_fa024638_scoped_true/* render */.XX,
  ProductItemvue_type_template_id_fa024638_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "fa024638",
  null
  
)

/* harmony default export */ const ProductItem = (component.exports);

/***/ }),

/***/ 80709:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-common-login.gwd-remind[data-v-fd8cca22] {\n  box-sizing: border-box !important;\n  align-items: center;\n}\n.gwd-common-login.gwd-remind .gwd-main-login[data-v-fd8cca22] {\n  /*padding-left: 18px;*/\n  box-sizing: border-box;\n  width: 200px;\n}\n", ""]);

// exports


/***/ }),

/***/ 80741:
/***/ ((module) => {

"use strict";

var ceil = Math.ceil;
var floor = Math.floor;

// `Math.trunc` method
// https://tc39.es/ecma262/#sec-math.trunc
// eslint-disable-next-line es/no-math-trunc -- safe
module.exports = Math.trunc || function trunc(x) {
  var n = +x;
  return (n > 0 ? floor : ceil)(n);
};


/***/ }),

/***/ 80755:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-grayText[data-v-60ccd948] {\n  font-size: 12px;\n  line-height: 18px;\n  color: #969899;\n  /*transform: scale(0.8333);*/\n  /*transform-origin: left center;*/\n}\n.gwd-topSpecialActivity[data-v-60ccd948] {\n  font-size: 12px;\n  color: #5c6266;\n  line-height: 12px;\n  margin-bottom: 5px;\n  /*transform: scale(0.8333);*/\n  /*transform-origin: left center;*/\n}\n", ""]);

// exports


/***/ }),

/***/ 80791:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
const requestInfo = (url, callback, price) => {
  let cbrun = false;
  if (G.allowBackgroundRequest) {
    (__webpack_require__(49388).getCouponFromUrl)(url, price).then(res => {
      if (cbrun) return;
      cbrun = true;
      callback(res);
    });
    setTimeout(() => {
      if (!cbrun) {
        cbrun = true;
        callback();
      }
    }, 3000);
  } else {
    (__webpack_require__(49388).getCouponFromUrl)(url, price).then(res => {
      callback(res);
    });
  }
};
module.exports.init = (id, adzone_id, callback, direct = true, price = null) => {
  let cbrun = false;
  if (G.forbidCoupon) {
    return;
  }
  if (!id) {
    callback && callback();
    cbrun = true;
    return;
  }
  id = `${id}`.replace('-83', '');
  id = `${id}`.replace('-8', '');
  let hosts = "open.lesiclub.cn";
  // if ((G.from_device === 'bijiago' && navigator.userAgent.toLocaleLowerCase().indexOf('firefox') > -1))
  //   hosts = "browser.gwdang.com/adbats"
  let url = location.protocol + "//" + hosts + "/coupon/get_ext/10005/" + adzone_id + "/" + id;
  requestInfo(url, data => {
    if (data && data.data) {
      data.data.reqid = id;
      data.data.click_url2 = `${G.u_server}/?url=${encodeURIComponent(data.data.click_url)}`;
      if (G.from_device === 'bijiago' && G.aliSite && data.data.coupon) {
        data.data.click_url2 = `https://tb.${G.ss_name === 'priceDog' ? 'pricedog' : 'bijiago'}.com/extension/qrpage?union=${G.union}&dp_id=${id}-83&tag=9_chrome&discount=${data.data.coupon.coupon_money}&lang=${G.lang}`;
      }
      if (G.from_device === 'biyibi' && G.aliSite) {
        data.data.click_url2 = `https://tb.biyibi123.com/extension/qrpage?union=${G.union}&dp_id=${id}-83&tag=9_chrome&discount=${data.data.coupon.coupon_money}`;
      }
      data.data.click_url2 = (__webpack_require__(12826).appendTbInfoForUrl)(data.data.click_url2);
      data.data.cpid = adzone_id;
      if (callback) callback(data);
    } else {
      callback(null);
    }
    cbrun = true;
  }, price);
};
module.exports.byIdAndAdzone = (id, adzone_id) => {
  if (!id) {
    return new Promise(resolve => resolve(null));
  }
  id = `${id}`.replace('-83', '');
  id = `${id}`.replace('-8', '');
  let hosts = "open.lesiclub.cn";
  if (G.from_device === 'bijiago' && navigator.userAgent.toLocaleLowerCase().indexOf('firefox') > -1) hosts = "browser.gwdang.com/adbats";
  let url = location.protocol + "//" + hosts + "/coupon/get_ext/10005/" + adzone_id + "/" + id;
  return new Promise(resolve => {
    requestInfo(url, data => {
      if (data && data.data) {
        data.data.reqid = id;
        data.data.click_url2 = `${G.u_server}/?url=${encodeURIComponent(data.data.click_url)}&union=${G.union}`;
        if (G.from_device === 'bijiago' && G.aliSite) {
          data.data.click_url2 = (__webpack_require__(12826).appendTbInfoForUrl)(`https://tb.${G.ss_name === 'priceDog' ? 'pricedog' : 'bijiago'}.com/extension/qrpage?union=${G.union}&dp_id=${dpId}&tag=9_chrome&discount=${data.data.coupon.coupon_money}`);
        }
        if (G.from_device === 'biyibi' && G.aliSite) {
          data.data.click_url2 = (__webpack_require__(12826).appendTbInfoForUrl)(`https://tb.biyibi123.com/extension/qrpage?union=${G.union}&dp_id=${dpId}&tag=9_chrome&discount=${data.data.coupon.coupon_money}`);
        }
        resolve(data);
      } else {
        resolve(null);
      }
    });
  });
};

/***/ }),

/***/ 80926:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var aCallable = __webpack_require__(79306);
var toObject = __webpack_require__(48981);
var IndexedObject = __webpack_require__(47055);
var lengthOfArrayLike = __webpack_require__(26198);

var $TypeError = TypeError;

var REDUCE_EMPTY = 'Reduce of empty array with no initial value';

// `Array.prototype.{ reduce, reduceRight }` methods implementation
var createMethod = function (IS_RIGHT) {
  return function (that, callbackfn, argumentsLength, memo) {
    var O = toObject(that);
    var self = IndexedObject(O);
    var length = lengthOfArrayLike(O);
    aCallable(callbackfn);
    if (length === 0 && argumentsLength < 2) throw new $TypeError(REDUCE_EMPTY);
    var index = IS_RIGHT ? length - 1 : 0;
    var i = IS_RIGHT ? -1 : 1;
    if (argumentsLength < 2) while (true) {
      if (index in self) {
        memo = self[index];
        index += i;
        break;
      }
      index += i;
      if (IS_RIGHT ? index < 0 : length <= index) {
        throw new $TypeError(REDUCE_EMPTY);
      }
    }
    for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
      memo = callbackfn(memo, self[index], index, O);
    }
    return memo;
  };
};

module.exports = {
  // `Array.prototype.reduce` method
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
  left: createMethod(false),
  // `Array.prototype.reduceRight` method
  // https://tc39.es/ecma262/#sec-array.prototype.reduceright
  right: createMethod(true)
};


/***/ }),

/***/ 81011:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _Index = _interopRequireDefault(__webpack_require__(27334));
var _default = exports.A = {
  props: ['img', 'price'],
  data() {
    return {};
  },
  methods: {
    transText: __webpack_require__(54600),
    openApp() {
      if (!window.gwdImgApp) {
        const el = document.createElement('div');
        document.body.appendChild(el);
        window.gwdImgApp = new Vue({
          el,
          render: h => h(_Index.default, {
            props: {
              img: this.img,
              price: this.price
            },
            ref: 'index'
          })
        });
      }
      window.gwdImgApp.$refs.index.open();
    }
  }
};

/***/ }),

/***/ 81152:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(41147);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("3fcd2c28", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 81174:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


__webpack_require__(3362);
const request = __webpack_require__(49388);
const bgClient = __webpack_require__(40076);
const md5 = __webpack_require__(83386);
module.exports = {
  async get(imgBase64) {
    const appKey = '12574478';
    const _m_h5_tk = await bgClient.get('/getCookie', {
      url: 'https://www.1688.com',
      name: '_m_h5_tk'
    });
    if (!_m_h5_tk) {
      await (__webpack_require__(60340).sleep)(1000);
      return 'needVisit';
    }
    const token = _m_h5_tk.value.split('_')[0];
    let time = Date.now();
    let data = JSON.stringify({
      imageBase64: imgBase64.split('base64,')[1],
      appName: "searchImageUpload",
      appKey: "pvvljh1grxcmaay2vgpe9nb68gg9ueg2"
    });
    let sign = md5(`${token}&${time}&${appKey}&${data}`);
    const url = request.makeUrl('https://h5api.m.1688.com', '/h5/mtop.1688.imageservice.putimage/1.0/', {
      jsv: '2.7.0',
      appKey: '12574478',
      t: time,
      sign: sign,
      api: 'mtop.1688.imageService.putImage',
      ecode: 0,
      v: '1.0',
      type: 'originaljson',
      dataType: 'jsonp'
    });
    const apiResult = await request.post(url, {
      data: data
    }, 'www');
    if (!(apiResult.data && apiResult.data.imageId)) {
      return 'fail-' + apiResult.data.ret[0];
    }
    const imgSearchResult = await request.get(request.makeUrl('https://search.1688.com', '/service/imageSearchOfferResultViewService', {
      tab: 'imageSearch',
      imageAddress: '',
      imageId: apiResult.data.imageId,
      spm: '',
      imageIdList: apiResult.data.imageId,
      pailitaoCategoryId: '',
      beginPage: 1,
      pageSize: 40,
      requestId: apiResult.data.requestId,
      pageName: 'image',
      sessionId: apiResult.data.sessionId,
      '_bx-v': '1.1.20'
    }));

    // check if imgSearchResult.data.data.offerList exist
    if (!(imgSearchResult.data && imgSearchResult.data.data && imgSearchResult.data.data.offerList)) {
      return 'fail-' + imgSearchResult.data.msg;
    }
    const goods = imgSearchResult.data.data.offerList.map(item => {
      return {
        title: item.information.subject,
        price: parseFloat(item.tradePrice.offerPrice.valueString),
        img: item.image.imgUrl,
        dpId: item.id + '-471',
        salesAmount: item.tradeQuantity.saleQuantity.toString(),
        shopName: item.company.name,
        isTmall: item.brand.imallBrand === "tmall",
        url: 'https://detail.1688.com/offer/' + item.id + '.html'
      };
    });
    return goods.filter(x => x.price > 0);
  }
};

/***/ }),

/***/ 81332:
/***/ ((__unused_webpack_module, exports) => {

/**
 * Data mask pattern reference
 * @type {Object}
 */
exports.Patterns = {
  PATTERN000: 0,
  PATTERN001: 1,
  PATTERN010: 2,
  PATTERN011: 3,
  PATTERN100: 4,
  PATTERN101: 5,
  PATTERN110: 6,
  PATTERN111: 7
}

/**
 * Weighted penalty scores for the undesirable features
 * @type {Object}
 */
const PenaltyScores = {
  N1: 3,
  N2: 3,
  N3: 40,
  N4: 10
}

/**
 * Check if mask pattern value is valid
 *
 * @param  {Number}  mask    Mask pattern
 * @return {Boolean}         true if valid, false otherwise
 */
exports.isValid = function isValid (mask) {
  return mask != null && mask !== '' && !isNaN(mask) && mask >= 0 && mask <= 7
}

/**
 * Returns mask pattern from a value.
 * If value is not valid, returns undefined
 *
 * @param  {Number|String} value        Mask pattern value
 * @return {Number}                     Valid mask pattern or undefined
 */
exports.from = function from (value) {
  return exports.isValid(value) ? parseInt(value, 10) : undefined
}

/**
* Find adjacent modules in row/column with the same color
* and assign a penalty value.
*
* Points: N1 + i
* i is the amount by which the number of adjacent modules of the same color exceeds 5
*/
exports.getPenaltyN1 = function getPenaltyN1 (data) {
  const size = data.size
  let points = 0
  let sameCountCol = 0
  let sameCountRow = 0
  let lastCol = null
  let lastRow = null

  for (let row = 0; row < size; row++) {
    sameCountCol = sameCountRow = 0
    lastCol = lastRow = null

    for (let col = 0; col < size; col++) {
      let module = data.get(row, col)
      if (module === lastCol) {
        sameCountCol++
      } else {
        if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5)
        lastCol = module
        sameCountCol = 1
      }

      module = data.get(col, row)
      if (module === lastRow) {
        sameCountRow++
      } else {
        if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5)
        lastRow = module
        sameCountRow = 1
      }
    }

    if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5)
    if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5)
  }

  return points
}

/**
 * Find 2x2 blocks with the same color and assign a penalty value
 *
 * Points: N2 * (m - 1) * (n - 1)
 */
exports.getPenaltyN2 = function getPenaltyN2 (data) {
  const size = data.size
  let points = 0

  for (let row = 0; row < size - 1; row++) {
    for (let col = 0; col < size - 1; col++) {
      const last = data.get(row, col) +
        data.get(row, col + 1) +
        data.get(row + 1, col) +
        data.get(row + 1, col + 1)

      if (last === 4 || last === 0) points++
    }
  }

  return points * PenaltyScores.N2
}

/**
 * Find 1:1:3:1:1 ratio (dark:light:dark:light:dark) pattern in row/column,
 * preceded or followed by light area 4 modules wide
 *
 * Points: N3 * number of pattern found
 */
exports.getPenaltyN3 = function getPenaltyN3 (data) {
  const size = data.size
  let points = 0
  let bitsCol = 0
  let bitsRow = 0

  for (let row = 0; row < size; row++) {
    bitsCol = bitsRow = 0
    for (let col = 0; col < size; col++) {
      bitsCol = ((bitsCol << 1) & 0x7FF) | data.get(row, col)
      if (col >= 10 && (bitsCol === 0x5D0 || bitsCol === 0x05D)) points++

      bitsRow = ((bitsRow << 1) & 0x7FF) | data.get(col, row)
      if (col >= 10 && (bitsRow === 0x5D0 || bitsRow === 0x05D)) points++
    }
  }

  return points * PenaltyScores.N3
}

/**
 * Calculate proportion of dark modules in entire symbol
 *
 * Points: N4 * k
 *
 * k is the rating of the deviation of the proportion of dark modules
 * in the symbol from 50% in steps of 5%
 */
exports.getPenaltyN4 = function getPenaltyN4 (data) {
  let darkCount = 0
  const modulesCount = data.data.length

  for (let i = 0; i < modulesCount; i++) darkCount += data.data[i]

  const k = Math.abs(Math.ceil((darkCount * 100 / modulesCount) / 5) - 10)

  return k * PenaltyScores.N4
}

/**
 * Return mask value at given position
 *
 * @param  {Number} maskPattern Pattern reference value
 * @param  {Number} i           Row
 * @param  {Number} j           Column
 * @return {Boolean}            Mask value
 */
function getMaskAt (maskPattern, i, j) {
  switch (maskPattern) {
    case exports.Patterns.PATTERN000: return (i + j) % 2 === 0
    case exports.Patterns.PATTERN001: return i % 2 === 0
    case exports.Patterns.PATTERN010: return j % 3 === 0
    case exports.Patterns.PATTERN011: return (i + j) % 3 === 0
    case exports.Patterns.PATTERN100: return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 === 0
    case exports.Patterns.PATTERN101: return (i * j) % 2 + (i * j) % 3 === 0
    case exports.Patterns.PATTERN110: return ((i * j) % 2 + (i * j) % 3) % 2 === 0
    case exports.Patterns.PATTERN111: return ((i * j) % 3 + (i + j) % 2) % 2 === 0

    default: throw new Error('bad maskPattern:' + maskPattern)
  }
}

/**
 * Apply a mask pattern to a BitMatrix
 *
 * @param  {Number}    pattern Pattern reference number
 * @param  {BitMatrix} data    BitMatrix data
 */
exports.applyMask = function applyMask (pattern, data) {
  const size = data.size

  for (let col = 0; col < size; col++) {
    for (let row = 0; row < size; row++) {
      if (data.isReserved(row, col)) continue
      data.xor(row, col, getMaskAt(pattern, row, col))
    }
  }
}

/**
 * Returns the best mask pattern for data
 *
 * @param  {BitMatrix} data
 * @return {Number} Mask pattern reference number
 */
exports.getBestMask = function getBestMask (data, setupFormatFunc) {
  const numPatterns = Object.keys(exports.Patterns).length
  let bestPattern = 0
  let lowerPenalty = Infinity

  for (let p = 0; p < numPatterns; p++) {
    setupFormatFunc(p)
    exports.applyMask(p, data)

    // Calculate penalty
    const penalty =
      exports.getPenaltyN1(data) +
      exports.getPenaltyN2(data) +
      exports.getPenaltyN3(data) +
      exports.getPenaltyN4(data)

    // Undo previously applied mask
    exports.applyMask(p, data)

    if (penalty < lowerPenalty) {
      lowerPenalty = penalty
      bestPattern = p
    }
  }

  return bestPattern
}


/***/ }),

/***/ 81376:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, pages = $data.pages, link = $data.link, allProductW = $data.allProductW, $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, imgLoad = $data.imgLoad, width = $data.width;
    $$out += '<div class="panel gwd_compare top-compare-detail top-bar-detail" id="gwdang-taobao-dp-detail">\n  <div class="panel-wrap">\n    <div class="b2c-pages blkcolor4">\n      第 \n      <span class="current-page" id="taobao-current-page">1</span>\n       页\uFF0C共 \n       <span class="page-num blkcolor4" id="taobao-page-num">';
    $$out += $escape(pages);
    $$out += '</span>\n        页\n    </div>\n    <div class="left-page turn-page" style="left:10px;">\n      <a id="taobao-prev-page" target="_self" title="上一页" class="gwd_bg" href="javascript:"></a>\n    </div>\n    <a href="';
    $$out += $escape(link);
    $$out += '" target="_blank" class="tb-morelink blkcolor4">查看全部结果<em class="see_all_icon">></em></a>\n    <div class="all-products" style="width:';
    $$out += $escape(allProductW);
    $$out += 'px">\n      <ul id="taobao-item-list">\n        ';
    $each(data, function ($value, $index) {
        $$out += '\n          <li id="taobao-prod-item-';
        $$out += $escape($index);
        $$out += '" data-id="';
        $$out += $escape($value.num_iid);
        $$out += '">\n              <a id="img-';
        $$out += $escape($value.num_iid);
        $$out += '" title="';
        $$out += $escape($value.title);
        $$out += '" target="_blank" class="small-img" href="';
        $$out += $escape($value.url);
        $$out += '">\n                <img src="';
        $$out += $escape(imgLoad);
        $$out += '" data-original="';
        $$out += $escape($value.pic_url);
        $$out += '" id="dp-image-small-';
        $$out += $escape($value.num_iid);
        $$out += '" class="gwdang-lazy">\n              </a>\n              <a target="_blank" class="b2c-other-info"  href="';
        $$out += $escape($value.url);
        $$out += '">\n                <span class="gwd-price prifontf">\xA5';
        $$out += $escape($value.price);
        $$out += '</span>\n                <span class="b2c-store blkcolor1">';
        $$out += $escape($value.item_location);
        $$out += '</span>\n                <span class="b2c-fees blkcolor4">最近销量';
        $$out += $escape($value.volume);
        $$out += '件</span>\n                <span class="b2c-tle blkcolor1">';
        $$out += $escape($value.title);
        $$out += '</span>\n              </a>\n          </li>\n        ';
    });
    $$out += '\n      </ul>\n    </div>\n    <div class="right-page turn-page">\n      <a href="javascript:" id="taobao-next-page" class="gwd_bg" title="下一页"></a>\n    </div>\n  </div>\n</div>\n  <style type="text/css">\n    #gwdang-taobao-dp-detail {\n      display: none;\n    }\n  #gwdang-taobao-dp-detail .turn-page {\n    width: ';
    $$out += $escape(width);
    $$out += 'px;\n  }\n  </style>';
    return $$out;
};

/***/ }),

/***/ 81507:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports["default"] = void 0;
var _default = exports["default"] = {
  props: ['tag'],
  data() {
    return {
      qr: '',
      loading: false
    };
  },
  computed: {
    link() {
      return (__webpack_require__(12826).appendTbInfoForUrl)(`${G.tb_server}/extension/qrpage?union=${G.union}&dp_id=${this.dpId ? this.dpId : G.dp.dpId}&tag=${this.tag}`);
    }
  },
  methods: {
    getText(text) {
      const map = {
        '当前商品可领会员券': '當前商品可領會員券',
        '立即领取': '立即領取',
        '手淘扫码': '手淘掃碼',
        '联系客服领取': '聯系客服領取'
      };
      if (G.lang === 'zh-tr') {
        return map[text];
      }
      return text;
    },
    over() {
      if (this.tag === 2) {
        (__webpack_require__(5300).logOnce)('淘宝会员券:悬浮');
      }
      if (this.loading || this.qr) return;
      this.loading = true;
      let request = __webpack_require__(49388);
      if (window.gwd_G) {
        request = window.gwd_ext;
        G.u_server = window.gwd_G.u_server;
        G.union = window.gwd_G.union;
      }
      const u = G.u_server + `/helper/qrcode?union=${G.union}${this.url ? '&url=' + encodeURIComponent(this.url) : ''}&event=appQrcode${this.tag ? `&tag=${this.tag}` : ''}&dp_id=` + (this.dpId ? this.dpId : window.gwd_G.dp.dpId);
      // console.log('qr get code', this.dpId, window.gwd_G.dp.dpId)
      request.get(u).then(res => {
        if (typeof res === 'string') {
          res = JSON.parse(res);
        }
        this.qr = res.data.qrImgStr;
      });
    }
  }
};

/***/ }),

/***/ 81518:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      height: "100%",
      "flex-wrap": "nowrap",
      overflow: "hidden"
    }
  }, _vm._l(_vm.data, function (item) {
    return _c("a", {
      key: item.url,
      staticClass: "gwd-amazon-link",
      attrs: {
        href: item.url,
        target: "_blank"
      }
    }, [_vm._v("\n    " + _vm._s(item.title) + "售价" + _vm._s((item.pri / 100).toFixed(2)) + _vm._s(_vm.unit) + "\n  ")]);
  }), 0);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 82003:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var $ = __webpack_require__(46518);
var IS_PURE = __webpack_require__(96395);
var FORCED_PROMISE_CONSTRUCTOR = (__webpack_require__(10916).CONSTRUCTOR);
var NativePromiseConstructor = __webpack_require__(80550);
var getBuiltIn = __webpack_require__(97751);
var isCallable = __webpack_require__(94901);
var defineBuiltIn = __webpack_require__(36840);

var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;

// `Promise.prototype.catch` method
// https://tc39.es/ecma262/#sec-promise.prototype.catch
$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {
  'catch': function (onRejected) {
    return this.then(undefined, onRejected);
  }
});

// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
if (!IS_PURE && isCallable(NativePromiseConstructor)) {
  var method = getBuiltIn('Promise').prototype['catch'];
  if (NativePromisePrototype['catch'] !== method) {
    defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
  }
}


/***/ }),

/***/ 82016:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _CollectionSettingMixin = _interopRequireDefault(__webpack_require__(34246));
var _CommonLogin = _interopRequireDefault(__webpack_require__(36664));
var _Switch = _interopRequireDefault(__webpack_require__(99230));
var _QuestHint = _interopRequireDefault(__webpack_require__(10809));
var _PriceInput = _interopRequireDefault(__webpack_require__(84140));
var _default = exports.A = {
  mixins: [_CollectionSettingMixin.default],
  components: {
    CommonLogin: _CommonLogin.default,
    SwitchBtn: _Switch.default,
    QuestHint: _QuestHint.default,
    PriceInput: _PriceInput.default
  }
};

/***/ }),

/***/ 82059:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, pages = $data.pages, link = $data.link, allProductW = $data.allProductW, $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, imgLoad = $data.imgLoad, width = $data.width;
    $$out += '<div class="panel gwd_compare top-compare-detail top-bar-detail" id="gwdang-tmall-dp-detail">\n  <div class="panel-wrap">\n    <div class="b2c-pages blkcolor4">\n      第 \n      <span class="current-page" id="tmall-current-page">1</span>\n       页\uFF0C共 \n       <span class="page-num blkcolor4" id="tmall-page-num">';
    $$out += $escape(pages);
    $$out += '</span>\n        页\n    </div>\n    <div class="left-page turn-page" style="left:10px;">\n      <a id="tmall-prev-page" target="_self" title="上一页" class="gwd_bg" href="javascript:"></a>\n    </div>\n    <a href="';
    $$out += $escape(link);
    $$out += '" target="_blank" class="tb-morelink blkcolor4">查看全部结果<em class="see_all_icon">></em></a>\n    <div class="all-products" style="width:';
    $$out += $escape(allProductW);
    $$out += 'px">\n      <ul id="tmall-item-list">\n        ';
    $each(data, function ($value, $index) {
        $$out += '\n          <li id="tmall-prod-item-';
        $$out += $escape($index);
        $$out += '" data-id="';
        $$out += $escape($value.num_iid);
        $$out += '">\n              <a id="img-';
        $$out += $escape($value.num_iid);
        $$out += '" title="';
        $$out += $escape($value.title);
        $$out += '" target="_blank" class="small-img" href="';
        $$out += $escape($value.url);
        $$out += '">\n                <img src="';
        $$out += $escape(imgLoad);
        $$out += '" data-original="';
        $$out += $escape($value.pic_url);
        $$out += '" id="dp-image-small-';
        $$out += $escape($value.num_iid);
        $$out += '" class="gwdang-lazy">\n              </a>\n              <a target="_blank" class="b2c-other-info"  href="';
        $$out += $escape($value.url);
        $$out += '">\n                <span class="gwd-price prifontf">\xA5';
        $$out += $escape($value.price);
        $$out += '</span>\n                <span class="b2c-store blkcolor1">';
        $$out += $escape($value.nick);
        $$out += '</span>\n                <span class="b2c-fees blkcolor4">最近销量';
        $$out += $escape($value.volume);
        $$out += '件</span>\n                <span class="b2c-tle blkcolor1">';
        $$out += $escape($value.title);
        $$out += '</span>\n              </a>\n          </li>\n        ';
    });
    $$out += '\n      </ul>\n    </div>\n    <div class="right-page turn-page">\n      <a href="javascript:" id="tmall-next-page" class="gwd_bg" title="下一页"></a>\n    </div>\n  </div>\n</div>\n  <style type="text/css">\n    #gwdang-tmall-dp-detail {\n      display: none;\n    }\n  #gwdang-tmall-dp-detail .turn-page {\n    width: ';
    $$out += $escape(width);
    $$out += 'px;\n  }\n  </style>';
    return $$out;
};

/***/ }),

/***/ 82082:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-tip[data-v-500de42c] {\n  margin-left: 12px;\n  margin-right: 12px;\n  box-sizing: border-box;\n  padding-left: 12px;\n  background: #f4fcff;\n  color: #05adec;\n  font-size: 12px;\n  font-weight: bold;\n  text-align: left;\n  height: 30px;\n  line-height: 30px;\n  margin-top: 12px;\n}\n", ""]);

// exports


/***/ }),

/***/ 82110:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const template = __webpack_require__(26133);
const userData = __webpack_require__(74222);
const log = __webpack_require__(35743);
const store = __webpack_require__(92771);
const extConsole = __webpack_require__(7129);
const {
  default: MiniBarCollectionButton
} = __webpack_require__(43642);

//嵌入位置设置
let sitePattern = {
  'ymatou': ['.price-panel'],
  'hihonor': ['.product-price'],
  'amazon': ['#price_feature_div', '#unifiedPrice_feature_div'],
  'vmall': ['.product-info .product-info-list', '.pro-right .pro-meta-area', '.pro-price'],
  'yougou': ['#ygprice_area'],
  'gome': ['.prdprice', '#bargain', '.prd-price-1'],
  'vipshop': ['.pi-price-box'],
  '360buy': ['#sx-discount', '#summary-price', '.summary-price', '#surplus-time', '#product-intro #price'],
  '360buy-book': ['#summary-price'],
  '360buy-re': ['.shop_intro .shop_intro_a'],
  'taobao': ['.tm-fcs-panel', '#J_PromoPrice', '#J_StrPriceModBox', '[class^=MiniHead--miniPanelHead--]', {
    selector: '[class^=PurchasePanel--contentWrap--] > [class^=CouponInfo--couponInfo]',
    position: 'after'
  }, {
    selector: '[class^=Price--root]',
    position: 'after'
  }, '[class^=SecurityPrice--securityPrice]', {
    selector: '[class^=MiniHead--miniPanelHead--]',
    position: 'after'
  }, {
    selector: '[class^=Address--MCDelivery--]',
    position: 'before'
  }],
  'taobao-ju': ['.J_BuySubForm', '[class^=MiniHead--miniPanelHead--]'],
  'taobao-95095': ['.tm-fcs-panel', '#J_PromoPrice', '#J_StrPriceModBox', '[class^=MiniHead--miniPanelHead--]'],
  'tmall': ['.tm-fcs-panel', '#J_PromoPrice', '#J_StrPriceModBox', '[class^=MiniHead--miniPanelHead--]',
  // {
  //   selector: '[class^=CouponInfo--couponInfo]',
  //   position: 'before'
  // },
  {
    selector: '[class^=PurchasePanel--contentWrap--] > [class^=CouponInfo--couponInfo]',
    position: 'after'
  }, {
    selector: '[class^=Price--root]',
    position: 'after'
  }, '[class^=SecurityPrice--securityPrice]', {
    selector: '[class^=MiniHead--miniPanelHead--]',
    position: 'after'
  }, {
    selector: '[class^=Address--MCDelivery--]',
    position: 'before'
  }],
  '51buy': ['.xbase_item:contains("促销价")', '.xbase_item:contains("易迅价")', '#goods_detail_mate .item_icson', '.xbase_row2', '#promotePrice', '#shopprice', '#promotePriceArea'],
  'suning': ['#noPrice', '#_main_price', '#existPrice', '#netPriceBox', '#hasPrice', '#mainPrice', '#priceDom'],
  'dangdang': ['.price_time', '.d15_price_info', '.price_qiang', '.price_info', '.show_info .sale>p', '.sale_box:first'],
  'yihaodian': ['#point_productPrice', '.price_array', '#currentPriceArea'],
  'vancl': ['#pricearea .cuxiaoPrice'],
  'newegg': ['.neweggPrice', '.goods_price_now'],
  'kaola': ['.m-price-wrap .m-price'],
  'lenovo': ['#div_product_dec', '#span_product_name'],
  'microsoftstore': ['.priceAndRank'],
  'bookuu': ['.bc-e5.pd-15'],
  'xiaomi': ['.J_saleWrap.sale-wrap', '.pro-time.J_proSeckill', '.goods-info-head-price', '.pro-time.J_proOrder', '.price-info'],
  "youpin-mi": [".sku-container .price-line"],
  'okbuy': ['.prodPriceLiJ .prodPrice'],
  'banggo': ['.mbshop_detail_baseinfo'],
  'you163': ['.price>.f-clearfix'],
  'colipu': ['.product-price'],
  'nbdeli': ['#pomotion_befor'],
  '3c2p': ['#goodsPrice'],
  'comix': ['.price-panel']
};
const getContainer = () => {
  let site = G.site;
  if (site === '360buy' && (__webpack_require__(60340).isNewJd)()) {
    sitePattern['360buy'].unshift('#summary-quan');
    sitePattern['360buy'].unshift('.floor-discount');
    sitePattern['360buy'].unshift('#sx-discount');
    (__webpack_require__(60340).appendCss)(`
      .itemInfo-wrap .summary-price-wrap { z-index: 4 }
    `);
  }
  let patterns = sitePattern[site];
  if (!patterns || patterns && patterns.length === 0) return false;
  for (let i = 0; i < patterns.length; i++) {
    const selector = patterns[i].selector || patterns[i];
    const position = patterns[i].position || 'after';
    if ($(selector).length > 0) {
      return {
        selector,
        position
      };
    }
  }
  return false;
};
let miniBarBg;
__webpack_require__(79696);
const renderMiniBar = container => {
  (__webpack_require__(7129).log)('render minibar begin', G.instanceId);
  let newTime = (__webpack_require__(79702).getNewTime)();
  if (newTime - new Date().getTime() < 300000) {
    newTime = false;
  }
  // let href = encodeURIComponent(document.location.href);
  // let html = require('art-template-loader!../views/miniBar.html')
  // let setUrl = `${G.server}/brwext/setting?from=${G.from_device}`;
  // let feedbackUrl = `https://www.${G.extName}.com/brwext/suggest?refer=${href}&from_device=${G.from_device}`;
  // let priceContainer = (html)({
  //   'setUrl': setUrl,
  //   'aliSite': G.aliSite,
  //   'feedbackUrl': feedbackUrl,
  //   newTime: false,
  //   minidom: G.wishdom2,
  //   wishdom: G.wishdom
  // })
  const priceContainer = document.createElement('div');
  if (container.position === 'append') {
    $(container.selector).append(priceContainer);
  } else if (container.position === 'before') {
    $(container.selector).eq(0).before(priceContainer);
  } else {
    $(container.selector).eq(0).after(priceContainer);
  }
  const MiniBar = (__webpack_require__(26814)/* ["default"] */ .A);
  new Vue({
    el: priceContainer,
    render: h => h(MiniBar, {
      props: {
        newTime,
        aliSite: G.aliSite
      }
    })
  });
  (__webpack_require__(7129).log)('render minibar end', G.instanceId);
  miniBarBg = $('.gwd-minibar-bg');
};
let times = 0;
const kaolaHkRepair = dom => {
  if (times >= 10) {
    return;
  }
  times++;
  if ($('.m-price-wrap .m-price .currentPrice').text().match(/\d/)) {
    $(dom).eq(0).after($('#kaolaHkRepair>span').next());
    $('#kaolaHkRepair').remove();
    return;
  }
  setTimeout(function () {
    kaolaHkRepair(dom);
  }, 1000);
};
const parsePrice = price => {
  if (parseInt(price) > 999999) {
    return parseInt(price);
  } else {
    return price;
  }
};
const addEvent = () => {
  $('.gwd-minibar-bg').on('mouseenter', '.minibar-tab', function () {
    $('#gwd_minibar').addClass('ms_enter');
    $(this).addClass('ms-tab-enter');
    let id = $(this).attr('id');
    $(`#${id}_detail`).show();
    if (id === "mini_price_history") {
      log("minitrend-show");
      (__webpack_require__(75957).calLineHeight)();
    }
    $('body').addClass('gwd-tab-hover-p');
  });
  $('.gwd-minibar-bg').on('mouseleave', '.minibar-tab', function () {
    $('#gwd_minibar').removeClass('ms_enter');
    $(this).removeClass('ms-tab-enter');
    $(this).removeClass('ms-tab-enter');
    let id = $(this).attr('id');
    $('body').removeClass('gwd-trend-hover-p');
    $('body').removeClass('gwd-tab-hover-p');
    $(`#${id}_detail`).hide();
  });
  $('#mini_price_history').on('mouseleave', () => {
    const whiteList = ['item.jd.com', 'item.jingdonghealth.cn', 'npcitem.jd.hk'];
    if (window.gwdMiniFixSwitcher && !whiteList.includes(location.hostname)) {
      setTimeout(() => {
        window.gwdMiniFixSwitcher.restorePosition();
      }, 0);
    }
  });
  $('#gwd_website_icon').on('click', e => {
    e.preventDefault();
    (__webpack_require__(30888).openTab)();
  });
};
module.exports.renderMiniCom = data => {
  let nowprice;
  try {
    nowprice = userData.get('other_info')['code-server'].price;
  } catch (e) {
    nowprice = G.dp.price;
  }
  if (!nowprice) nowprice = G.dp.price;
  if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) {
    return;
  }
  let store;
  if (!data.b2c || data.b2c.length === 0) {
    store = [];
  } else {
    store = data.b2c.store;
  }
  let newData = [];
  let storeSize = store.length;
  //这几个网站做了新的图标
  var new_icon_site_ids = [1, 103, 108, 123, 124, 126, 129, 134, 136, 14, 141, 15, 167, 168, 19, 2, 21, 25, 26, 28, 3, 31, 34, 35, 41, 6, 66, 7, 86, 93, 9];
  for (let i = 0; i < store.length && i < 6; i++) {
    let product = store[i].product && store[i].product[0] || store[i];
    let dp_id = product.dp_id || '';
    let site_id = product.site_id;
    if (parseInt(site_id) === 3003) {
      site_id = 3;
    }
    let icon_format = new_icon_site_ids.indexOf(Number(site_id)) > -1 ? '.png' : '.ico';
    if (!site_id) continue;
    product.price = parsePrice(product.price.replace(/,/g, ""));
    product.icourl = `${G.s_server}/images/favicon/${site_id}${icon_format}`;
    newData.push(product);
  }
  let tle = `其他${storeSize}家报价`;
  let bclass = '';
  if (newData.length === 0) {
    tle = `暂无商城比价`;
    bclass = 'no-com-info';
  } else if (newData[0].price < Number(nowprice)) {
    tle = `<em>更低价:</em><em class="prifontf price-em">${newData[0].price}</em>`;
  }
  let t = `<div class="minibar-btn-box">
        <em class="setting-bg mini-compare-icon "></em>
        <span >${tle}</span>
      </div>`;
  $('#gwd_mini_compare').append($(t)).css("display", "block").addClass(bclass);
  if (newData.length > 0) {
    let html = __webpack_require__(93207);
    let allLink = `${G.c_server}/dp${data.dp.dp_id}`;
    let obj = {
      data: newData,
      allLink: allLink,
      storeSize: storeSize
    };
    $('#gwd_mini_compare').append(html(obj));
    userData.set('minicom', obj);
    // if ($('#mini_price_history_detail').length > 0) {
    //   renderTrendCompare(newData, storeSize, allLink)
    // } else {
    //   setTimeout(function() {
    //     renderTrendCompare(newData, storeSize, allLink)
    //   }, 400)
    // }
  } else {
    $('#gwd_mini_compare').off();
  }
};
const renderTrendCompare = (data, storeSize, allLink) => {
  if (G.promoTrendRendered) {
    return;
  }
  let html = __webpack_require__(932);
  $('.app-tuiguang').remove();
  $('#mini_price_history').removeClass('showapp');
  $('#mini_price_history_detail').append(html({
    data: data,
    allLink: allLink,
    storeSize: storeSize
  }));
};
let hasAliCouponInfo = false;
async function recoverMiniBar() {
  if ($('.miniPanel').length) {
    if ($('#gwd-tb-mini-coupon').length) {
      $('#gwd-tb-mini-coupon').insertAfter($(`.${G.aliPrefix}--miniPanelHead--_0b59519`));
    }
    return;
  }

  // 确保.gwd-minibar-bg在.ActiveInfo上方
  const globalConfig = await (__webpack_require__(41761).met)('GwdConfig');
  if (globalConfig && globalConfig.gwdMiniBarRecoverConfig) {
    if (hasAliCouponInfo) {
      await (__webpack_require__(30888).waitForConditionFn)(() => $(`#purchasePanel .${G.aliPrefix}--contentWrap--_3f8d83a > .${G.aliPrefix}--couponInfo--e67905e4`).length);
    }
    const recoverConfig = globalConfig.gwdMiniBarRecoverConfig.aliSite.map(x => {
      if (x.selector) {
        x.selector = x.selector.replace('QJEEHAN8H5', G.aliPrefix);
      }
      return x;
    });
    for (let i = 0; i < recoverConfig.length; i++) {
      const selector = recoverConfig[i].selector;
      const position = recoverConfig[i].position;
      const target = $(selector);
      if (target.length) {
        // console.log('tbScrollLink recoverMiniBar', recoverConfig[i])
        // console.log('tbScrollLink recoverMiniBar env', target[0])
        if (position === 'before') {
          miniBarBg.insertBefore(target);
        } else {
          miniBarBg.insertAfter(target);
        }
        return;
      }
    }
  }
}
module.exports.recoverMiniBar = recoverMiniBar;
module.exports.init = () => {
  (__webpack_require__(7129).log)('minibar init');
  // 获取配置信息， 看是否需要展示中间部分
  let permanent = userData.get('permanent');
  // if (G.forbidMinibar) return;
  if (permanent.setWishlist === '0' || permanent.setWishlist === 0) return;
  if (G.site == 'amazon' || G.site == '6pm') {
    (__webpack_require__(24197).init)();
    return;
  }
  renderCon();
};
let renderDom;
const delaySite = ['kaola'];
const renderCon = async () => {
  // 获取页面上的插入节点
  let instanceId = G.instanceId;
  if (delaySite.indexOf(G.site) > -1) {
    await (__webpack_require__(60340).sleep)(5000);
  }
  const globalConfig = await (__webpack_require__(41761).met)('GwdConfig');
  if (G.aliSite) {
    // const panel = $('#purchasePanel')[0]
    const getPanel = () => globalConfig.aliMobileNotifierConfig.map(i => i.panel).find(item => {
      if ($(item).length) {
        return $(item)[0];
      }
      return false;
    });
    extConsole.log('waiting for panel');
    await (__webpack_require__(30888).waitForConditionFn)(() => getPanel());
    extConsole.log('panel ready');
    const panel = getPanel();
    if (panel) {
      (__webpack_require__(41968).observe)(panel, async mutations => {
        extConsole.log('mutations:', mutations);
        if (globalConfig && globalConfig.gwdMiniBarRecoverConfig) {
          const config = globalConfig.gwdMiniBarRecoverConfig.aliSite;
          await (__webpack_require__(30888).waitForConditionFn)(() => {
            for (let i = 0; i < config.length; i++) {
              const selector = config[i].selector;
              if ($(selector).length) {
                return true;
              }
            }
            return false;
          });
        } else {
          await (__webpack_require__(30888).waitForConditionFn)(() => $('[class^=ActiveInfo--root--]').length || $('[class^=CouponInfo--couponInfo]').length || $('[class^=Price--root]').length);
        }
        // 仅在panel的class发生变化时重新渲染minibar
        recoverMiniBar();
      }, {
        attributes: true,
        attributeFilter: ['class']
      });
    }
  }
  if (globalConfig && globalConfig.gwdMiniBarPositions) {
    if (G.aliSite) {
      const config = globalConfig.gwdMiniBarPositions.aliSite.map(x => {
        if (x.selector) {
          x.selector = x.selector.replace('QJEEHAN8H5', G.aliPrefix);
        }
        return x;
      });
      sitePattern['taobao'] = config;
      sitePattern['tmall'] = config;
      if ($(`#purchasePanel .${G.aliPrefix}--contentWrap--_3f8d83a > .${G.aliPrefix}--couponInfo--e67905e4`).length) {
        hasAliCouponInfo = true;
      }
    } else {
      if (globalConfig.gwdMiniBarPositions[G.site]) {
        sitePattern[G.site] = globalConfig.gwdMiniBarPositions[G.site];
      }
    }
  }
  let container = getContainer();
  (__webpack_require__(7129).log)('container:', container);
  await (__webpack_require__(30888).waitForConditionFn)(() => {
    if (container) return true;
    container = getContainer();
    return false;
  });
  if (window.gwd_G && window.gwd_G.instanceId !== instanceId) {
    (__webpack_require__(7129).warn)('instanceId不一致，不渲染minibar');
    return;
  }
  renderMiniBar(container);
  const store = (__webpack_require__(92771).getStore)();
  new Vue({
    el: '#gwd_mini_remind .minibar-btn-box',
    store,
    render: h => h(MiniBarCollectionButton)
  });
  addEvent();
  const el = $('.gwd-minibar-bg')[0];
  G.miniBar = el;
  // 网页可能会移除minibar，
  if (el) {
    (__webpack_require__(41968).observe)(el, mutations => {
      mutations.forEach(mutation => {
        if (mutation.removedNodes.length) {
          (__webpack_require__(7129).log)('minibar被移除');
          if (G.instanceId === $('html').attr('data-gwd-id')) {
            recoverMiniBar();
          }
        }
      });
    });
  }
};

/***/ }),

/***/ 82168:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ Tip)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Tip.vue?vue&type=template&id=47682f16&scoped=true
var Tipvue_type_template_id_47682f16_scoped_true = __webpack_require__(62794);
;// ./src/standard/module/components/ImgSame/Tip.vue?vue&type=template&id=47682f16&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Tip.vue?vue&type=script&lang=js
var Tipvue_type_script_lang_js = __webpack_require__(49852);
;// ./src/standard/module/components/ImgSame/Tip.vue?vue&type=script&lang=js
 /* harmony default export */ const ImgSame_Tipvue_type_script_lang_js = (Tipvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Tip.vue?vue&type=style&index=0&id=47682f16&prod&scoped=true&lang=less
var Tipvue_type_style_index_0_id_47682f16_prod_scoped_true_lang_less = __webpack_require__(16094);
;// ./src/standard/module/components/ImgSame/Tip.vue?vue&type=style&index=0&id=47682f16&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/ImgSame/Tip.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  ImgSame_Tipvue_type_script_lang_js,
  Tipvue_type_template_id_47682f16_scoped_true/* render */.XX,
  Tipvue_type_template_id_47682f16_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "47682f16",
  null
  
)

/* harmony default export */ const Tip = (component.exports);

/***/ }),

/***/ 82186:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, picUrl = $data.picUrl;
    $$out += '<div class="gwd-qrcode-container-top">\n    <div class="gwd-qrcode-jd-top">\n        <div style="width: 130px; height: 130px; background: white; margin-top: 10px;">\n            <img src="';
    $$out += $escape(picUrl);
    $$out += '" alt="" style="width: 120px; height: 120px; margin: 5px;">\n        </div>\n        <a style="text-align: center; margin-top: 4px; font-size: 12px; color: #333333; letter-spacing: 1px;" href="" target="_blank">\n            <span>打开</span><span class="dl">微信</span>\n            <span>扫码领券</span>\n        </a>\n    </div>\n</div>\n<style>\n    .gwd-qrcode-container-top {\n        position: absolute;\n        right: 50%!important;\n        margin-right: -74px!important;\n        top: 28px;\n        width: 148px!important;\n        display: none;\n    }\n\n    #top_coupon_btn:hover .gwd-qrcode-container-top {\n        display: block;\n    }\n\n    .gwd-qrcode-jd-top {\n        width: 148px;\n        height: 170px;\n        background: #fff7f6;\n        border: 1px solid #ff8006;\n        text-align: center;\n        box-sizing: border-box!important;\n        display: flex;\n        flex-direction: column;\n        align-items: center;\n    }\n\n    .gwd-qrcode-jd-top a {\n        text-align: center;\n        display: inline-block;\n    }\n\n    .gwd-qrcode-jd-top a span {\n        color: #333333!important;\n    }\n\n    .gwd-qrcode-jd-top a .dl {\n        color: #ff8006!important;\n        font-weight: 600;\n    }\n\n    /*.gwd-qrcode-jd-top a:hover .dl {*/\n    /*    color: #ff3c16!important;*/\n    /*}*/\n</style>';
    return $$out;
};

/***/ }),

/***/ 82350:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ TooltipView)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceTrend/TooltipView.vue?vue&type=template&id=94eef1d2&scoped=true
var TooltipViewvue_type_template_id_94eef1d2_scoped_true = __webpack_require__(66716);
;// ./src/standard/module/components/PriceTrend/TooltipView.vue?vue&type=template&id=94eef1d2&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceTrend/TooltipView.vue?vue&type=script&lang=js
var TooltipViewvue_type_script_lang_js = __webpack_require__(97254);
;// ./src/standard/module/components/PriceTrend/TooltipView.vue?vue&type=script&lang=js
 /* harmony default export */ const PriceTrend_TooltipViewvue_type_script_lang_js = (TooltipViewvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(85072);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(97825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(77659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(55056);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(10540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(41113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceTrend/TooltipView.vue?vue&type=style&index=0&id=94eef1d2&prod&scoped=true&lang=css
var TooltipViewvue_type_style_index_0_id_94eef1d2_prod_scoped_true_lang_css = __webpack_require__(67242);
var TooltipViewvue_type_style_index_0_id_94eef1d2_prod_scoped_true_lang_css_default = /*#__PURE__*/__webpack_require__.n(TooltipViewvue_type_style_index_0_id_94eef1d2_prod_scoped_true_lang_css);
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/PriceTrend/TooltipView.vue?vue&type=style&index=0&id=94eef1d2&prod&scoped=true&lang=css

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());

      options.insert = insertBySelector_default().bind(null, "head");
    
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()((TooltipViewvue_type_style_index_0_id_94eef1d2_prod_scoped_true_lang_css_default()), options);




       /* harmony default export */ const PriceTrend_TooltipViewvue_type_style_index_0_id_94eef1d2_prod_scoped_true_lang_css = ((TooltipViewvue_type_style_index_0_id_94eef1d2_prod_scoped_true_lang_css_default()) && (TooltipViewvue_type_style_index_0_id_94eef1d2_prod_scoped_true_lang_css_default()).locals ? (TooltipViewvue_type_style_index_0_id_94eef1d2_prod_scoped_true_lang_css_default()).locals : undefined);

;// ./src/standard/module/components/PriceTrend/TooltipView.vue?vue&type=style&index=0&id=94eef1d2&prod&scoped=true&lang=css

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/PriceTrend/TooltipView.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  PriceTrend_TooltipViewvue_type_script_lang_js,
  TooltipViewvue_type_template_id_94eef1d2_scoped_true/* render */.XX,
  TooltipViewvue_type_template_id_94eef1d2_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "94eef1d2",
  null
  
)

/* harmony default export */ const TooltipView = (component.exports);

/***/ }),

/***/ 82366:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.T = void 0;
__webpack_require__(3362);
var _ReviewCount = _interopRequireDefault(__webpack_require__(91386));
const extConsole = __webpack_require__(7129);
const init = async () => {
  let gwdReview = null;
  await (__webpack_require__(30888).waitForConditionFn)(() => $(`.${G.aliPrefix}--ShowButton--_15e2446`).length);
  if ($(`.${G.aliPrefix}--Comment--_0b4e753`).length < 2) {
    return;
  }
  await (__webpack_require__(30888).waitForConditionFn)(() => $(`.${G.aliPrefix}--quantityTip--_7871329`).length);
  const firstSku = document.querySelector(`.${G.aliPrefix}--skuItem--_68c0cae`);
  const skuOptions = $(firstSku).find(`.${G.aliPrefix}--valueItem--ee898cc0`).toArray().map(x => ({
    name: x.innerText,
    img: $(x).find('img').attr('src')
  }));
  if (skuOptions.length < 2) {
    return;
  }

  // const soldNumTextElem = document.querySelector('[class^=ItemTitle--itemWrap--] span')
  // if (!soldNumTextElem) {
  //   return
  // }
  (__webpack_require__(30888).waitForConditionFn)(() => {
    const newDp = (__webpack_require__(12826).tbInfoFix)(G.dp);
    return newDp.shopAmount;
  });
  await (__webpack_require__(30888).waitForConditionFn)(() => G.dp.shopAmount);
  const soldNumText = G.dp.shopAmount;
  let soldNum = soldNumText.match(/\d+/)[0];
  if (soldNumText.includes('万')) {
    soldNum = soldNum * 10000;
  }
  if (soldNum < 1000) {
    extConsole.warn('soldNum < 1000');
    return;
  }
  if (window.gwdReview) {
    return;
  }
  window.gwdReview = true;
  function addOpener() {
    const container = $(`.${G.aliPrefix}--quantityTip--_7871329`);
    container.append('<a href="#" style="margin-left: 10px; color: #11192d; text-decoration: none;" id="gwd-review-opener">查看近期评论较多的款式<img src="https://cdn.gwdang.com/images/extensions/right-square@2x.png" style="width: 16px; height: 16px; position: relative; top: -2px;"></a>');
    $('#gwd-review-opener').on('click', e => {
      e.preventDefault();
      gwdReview.$refs.reviewCount.open();
    });
  }
  addOpener();
  const globalConfig = await (__webpack_require__(41761).met)('GwdConfig');
  const keyName = document.querySelector(globalConfig.aliKeyNameSelector).innerText;
  if (G.aliSite) {
    // const panel = $('#purchasePanel')[0]
    const panel = globalConfig.aliMobileNotifierConfig.map(i => i.panel).find(item => {
      if ($(item).length) {
        return $(item)[0];
      }
      return false;
    });
    if (panel) {
      (__webpack_require__(41968).observe)(panel, async mutations => {
        if (!$('#gwd-review-opener').length) {
          addOpener();
        }
      });
    }
  }
  const div = document.createElement('div');
  document.body.appendChild(div);
  gwdReview = new Vue({
    el: div,
    render: h => h(_ReviewCount.default, {
      props: {
        keyString: keyName
      },
      ref: 'reviewCount'
    })
  });
  window.gwdReview = gwdReview;
};
exports.T = init;

/***/ }),

/***/ 82480:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ CircleStackPieChartvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ CircleStackPieChart)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/CircleStackPieChart.vue?vue&type=template&id=27e90984&scoped=true
var CircleStackPieChartvue_type_template_id_27e90984_scoped_true = __webpack_require__(39749);
;// ./src/standard/module/components/Widgets/CircleStackPieChart.vue?vue&type=template&id=27e90984&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/CircleStackPieChart.vue?vue&type=script&lang=js
var CircleStackPieChartvue_type_script_lang_js = __webpack_require__(19181);
;// ./src/standard/module/components/Widgets/CircleStackPieChart.vue?vue&type=script&lang=js
 /* harmony default export */ const Widgets_CircleStackPieChartvue_type_script_lang_js = (CircleStackPieChartvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(85072);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(97825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(77659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(55056);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(10540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(41113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/CircleStackPieChart.vue?vue&type=style&index=0&id=27e90984&prod&scoped=true&lang=css
var CircleStackPieChartvue_type_style_index_0_id_27e90984_prod_scoped_true_lang_css = __webpack_require__(22383);
var CircleStackPieChartvue_type_style_index_0_id_27e90984_prod_scoped_true_lang_css_default = /*#__PURE__*/__webpack_require__.n(CircleStackPieChartvue_type_style_index_0_id_27e90984_prod_scoped_true_lang_css);
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/CircleStackPieChart.vue?vue&type=style&index=0&id=27e90984&prod&scoped=true&lang=css

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());

      options.insert = insertBySelector_default().bind(null, "head");
    
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()((CircleStackPieChartvue_type_style_index_0_id_27e90984_prod_scoped_true_lang_css_default()), options);




       /* harmony default export */ const Widgets_CircleStackPieChartvue_type_style_index_0_id_27e90984_prod_scoped_true_lang_css = ((CircleStackPieChartvue_type_style_index_0_id_27e90984_prod_scoped_true_lang_css_default()) && (CircleStackPieChartvue_type_style_index_0_id_27e90984_prod_scoped_true_lang_css_default()).locals ? (CircleStackPieChartvue_type_style_index_0_id_27e90984_prod_scoped_true_lang_css_default()).locals : undefined);

;// ./src/standard/module/components/Widgets/CircleStackPieChart.vue?vue&type=style&index=0&id=27e90984&prod&scoped=true&lang=css

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/Widgets/CircleStackPieChart.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  Widgets_CircleStackPieChartvue_type_script_lang_js,
  CircleStackPieChartvue_type_template_id_27e90984_scoped_true/* render */.XX,
  CircleStackPieChartvue_type_template_id_27e90984_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "27e90984",
  null
  
)

/* harmony default export */ const CircleStackPieChart = (component.exports);

/***/ }),

/***/ 82562:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-coupon-bar[data-v-7803d351] {\n  font-family: \"PingFang SC-Medium\", \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n  font-size: 12px;\n  background: white;\n  position: relative;\n  border: 1px solid #e8e8e8;\n  border-top: none;\n  width: 462px;\n  box-sizing: border-box;\n  height: 38px;\n}\n.gwd-coupon-bar .gwd-round-click[data-v-7803d351] {\n  margin-left: 24px;\n  margin-right: 12px;\n  display: block;\n  width: 68px;\n  height: 20px;\n  text-align: center;\n  border-radius: 4px;\n  color: white;\n  font-weight: bold;\n}\n.gwd-coupon-bar .gwd-take[data-v-7803d351] {\n  margin-right: 12px;\n  width: 74px;\n  height: 20px;\n  font-size: 12px;\n}\n.gwd-coupon-bar .gwd-take span[data-v-7803d351] {\n  flex: 1;\n  text-align: center;\n}\n.gwd-coupon-bar .gwd-qr-hover-window[data-v-7803d351] {\n  width: 136px;\n  height: 160px;\n  background: #fff9f6;\n  position: absolute;\n  box-sizing: border-box;\n  border-width: 1px;\n  border-style: solid;\n  top: 37px;\n  left: 345px;\n  display: none;\n  z-index: 99;\n}\n.gwd-coupon-bar[data-v-7803d351]:hover {\n  text-decoration: none;\n}\n.gwd-coupon-bar:hover .gwd-qr-hover-window[data-v-7803d351] {\n  display: flex;\n}\n", ""]);

// exports


/***/ }),

/***/ 82648:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
__webpack_require__(3362);
var _QrError = _interopRequireDefault(__webpack_require__(49357));
var _GiftMoneyMixin = _interopRequireDefault(__webpack_require__(21939));
var _CommonCouponBarMini = _interopRequireDefault(__webpack_require__(84593));
var _default = exports.A = {
  data: () => ({
    takeBg: __webpack_require__(76095),
    isButie: false
  }),
  name: "Subsidy",
  props: ['value', 'url', 'qr', 'id', 'price', 'tag'],
  components: {
    QrError: _QrError.default,
    CommonCouponBarMini: _CommonCouponBarMini.default
  },
  mixins: [_GiftMoneyMixin.default],
  methods: {
    async checkButie() {
      this.isButie = await (__webpack_require__(41761).met)('butie');
    }
  },
  computed: {
    text() {
      if (this.isButie) {
        return `当前商品可领<span style='font-size: 18px; font-family: PingfangSC-Medium'>${this.value}</span>元店铺红包 & 政府补贴`;
      }
      return `今日专享红包立减￥<span style='font-size: 18px; font-family: PingfangSC-Medium'>${this.value}</span>`;
    }
  },
  mounted() {
    this.over();
    // this.checkButie()
  }
};

/***/ }),

/***/ 82664:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-shaidan-item[data-v-731c91d4] {\n  width: 205px;\n  height: 64px;\n  border-bottom: 1px dashed #E6E9EB;\n  box-sizing: border-box;\n}\n.gwd-shaidan-item .gwd-avatar[data-v-731c91d4] {\n  width: 16px;\n  height: 16px;\n  border-radius: 50%;\n}\n.gwd-shaidan-item .gwd-nick[data-v-731c91d4] {\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  transform-origin: left center;\n}\n.gwd-shaidan-item .gwd-skuinfo[data-v-731c91d4] {\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  transform-origin: right center;\n}\n.gwd-shaidan-item .gwd-price[data-v-731c91d4] {\n  transform-origin: left center;\n  color: #111;\n  font-weight: bold;\n}\n.gwd-shaidan-item .gwd-date[data-v-731c91d4] {\n  color: #999;\n  transform-origin: right center;\n}\n", ""]);

// exports


/***/ }),

/***/ 82690:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-minibar-element",
    staticStyle: {
      height: "36px",
      width: "460px",
      background: "white",
      "align-items": "center",
      display: "flex",
      position: "relative"
    },
    attrs: {
      id: "gwd-price-protect"
    },
    on: {
      mouseover: _vm.over
    }
  }, [_c("img", {
    staticStyle: {
      "margin-left": "11px",
      width: "16px"
    },
    attrs: {
      src: "https://cdn.gwdang.com/images/extensions/price-protect@2x.png",
      alt: ""
    }
  }), _vm._v(" "), _vm.mode === "qr" ? _c("span", {
    staticStyle: {
      "margin-left": "10px",
      "font-size": "12px",
      color: "#ff3532",
      "margin-top": "-2px"
    }
  }, [_vm._v("扫码下单，买贵就返差价！")]) : _vm._e(), _vm._v(" "), _vm.mode === "redpack" ? _c("span", {
    staticClass: "gwd-hui999 gwd-font12",
    staticStyle: {
      "margin-left": "10px"
    }
  }, [_vm._v("\n    当前商品支持价格保护，扫码领红包下单后为您添加降价提醒\n  ")]) : _vm._e(), _vm._v(" "), _c("div", {
    staticStyle: {
      flex: "1"
    }
  }), _vm._v(" "), _vm.mode === "qr" ? _c("img", {
    attrs: {
      src: __webpack_require__(74787),
      alt: ""
    }
  }) : _vm._e(), _vm._v(" "), _vm.mode === "qr" ? _c("span", {
    staticClass: "gwd-qr-scan"
  }, [_vm._v("微信扫码")]) : _vm._e(), _vm._v(" "), _vm.mode === "qr" ? _c("div", {
    staticClass: "gwd-price-protect-qr gwd-column gwd-align"
  }, [_vm.qrLink ? _c("img", {
    attrs: {
      src: _vm.qrLink,
      alt: ""
    }
  }) : _vm._e(), _vm._v(" "), _vm._m(0)]) : _vm._e()]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("span", {
    staticClass: "gwd-font12",
    staticStyle: {
      "margin-top": "6px"
    }
  }, [_c("span", {
    staticClass: "gwd-red"
  }, [_vm._v("微信扫码")]), _vm._v(" "), _c("span", {
    staticClass: "gwd-hui333",
    staticStyle: {
      "margin-left": "3px"
    }
  }, [_vm._v("获取价保提醒")])]);
}];
render._withStripped = true;

/***/ }),

/***/ 82699:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


const request = __webpack_require__(49388);
const template = __webpack_require__(26133);
const util = __webpack_require__(30888);
const userData = __webpack_require__(74222);
let pagesite,
  urlArr,
  clickTime = {},
  show_ljfqrcode = true;
let ListPattern = {
  'lianjia': {
    list: '.sellListContent li.clear',
    hrefitem: '.info .title a',
    insertdom: '.sellListContent li.clear'
  },
  'maitian': {
    list: '.list_wrap li.clearfix',
    hrefitem: '.list_title h1 a',
    insertdom: '.list_wrap li.clearfix'
  },
  'lianjia2': {
    list: '#js-ershoufangList .m-list>ul>li',
    hrefitem: '.prop-title a',
    insertdom: '#js-ershoufangList .m-list>ul>li'
  },
  'ke': {
    list: '.sellListContent li.clear',
    hrefitem: '.info .title a',
    insertdom: '.sellListContent li.clear'
  },
  'ke2': {
    list: '.sellListContent li.clear',
    hrefitem: '.info .title a',
    insertdom: '.sellListContent li.clear'
  },
  '5i5j': {
    list: '.pListBox .pList>li:has(.listImg)',
    hrefitem: 'a',
    insertdom: '.pListBox .pList>li'
  },
  'centanet': {
    list: '.section-houselists .house-item',
    hrefitem: '.house-title a',
    insertdom: '.section-houselists .house-item'
  },
  'centanet2': {
    list: '.result-lists .house-main .house-item',
    hrefitem: '.house-title a',
    insertdom: '.result-lists .house-main .house-item'
  }
};
let dpPattern = {
  'lianjia': ['.content .price-container', '#topImg+.info>.price'],
  'lianjia2': ['.houseInfo', '.maininfo-price'],
  'ke': ['.content .price-container', '#topImg+.info>.price'],
  'ke2': ['.houseInfo', '.maininfo-price'],
  '5i5j': ['.housesty'],
  'centanet': ['#sidefixedbox .infotop'],
  'centanet2': ['.roombase-infor .roombase-price'],
  "maitian": ['.home_content .hc_left table tr:first-child', '.home_content .home_infos li:first-child']
};
let siteIdPattern = {
  'lianjia': 441,
  '5i5j': 442,
  'ke': 441,
  'maitian': 443,
  'centanet': 511
};
const getHouseCode = () => {
  let type = pageType();
  let housecode;
  if (type == 2) {
    let url = location.href;
    switch (G.site) {
      case 'lianjia':
        housecode = url.match(/\/([a-z0-9A-Z]+)\.html/)[1];
        break;
      case 'ke':
        housecode = url.match(/\/([a-z0-9A-Z]+)\.html/)[1];
        break;
      case 'maitian':
        housecode = url.match(/\/esfxq\/([a-z0-9A-Z]+)/)[1];
        break;
      case '5i5j':
        housecode = url.match(/\/([a-z0-9]+)\.html/)[1];
        break;
      case 'centanet':
        housecode = url.match(/\/([a-z0-9]+)\.html/)[1];
        break;
    }
  } else {
    let urls = urlArr;
    switch (G.site) {
      case 'lianjia':
        housecode = Array.prototype.map.call(urls, function (e) {
          return e.match(/\/([a-z0-9A-Z]+)\.html/)[1];
        }).join(',');
        break;
      case 'ke':
        housecode = Array.prototype.map.call(urls, function (e) {
          return e.match(/\/([a-z0-9A-Z]+)\.html/)[1];
        }).join(',');
        break;
      case 'maitian':
        housecode = Array.prototype.map.call(urls, function (e) {
          return e.match(/\/esfxq\/([a-z0-9A-Z]+)/)[1];
        }).join(',');
        break;
      case '5i5j':
        housecode = Array.prototype.map.call(urls, function (e) {
          return e.match(/\/([a-z0-9]+)\.html/)[1];
        }).join(',');
        break;
      case 'centanet':
        housecode = Array.prototype.map.call(urls, function (e) {
          return e.match(/\/([a-z0-9]+)\.html/)[1];
        }).join(',');
        break;
    }
  }
  return housecode;
};
const existRemind = () => {
  let siteId = siteIdPattern[G.site];
  if (!siteId) return;
  let housecode = getHouseCode();
  let url = `${G.u_house}/api/house_collection?ac=exist&site_id=${siteId}&house_code=${housecode}`;
  request.get(url).done(data => {
    if (data && data.exist) {
      let list = $('.ht-price-remind');
      for (let i = 0; i < list.length; i++) {
        let code = list.eq(i).attr('data-id');
        if (data.exist[code]) {
          list.eq(i).addClass('hasremind');
          list.eq(i).find('span').text('已添加提醒');
          list.eq(i).attr('data-colid', data.exist[code]);
        }
      }
    }
  });
};
const addRemind = (code, callback) => {
  if (clickTime[code] >= 4) {
    return;
  }
  if (!clickTime[code]) {
    clickTime[code] = 1;
  }
  clickTime[code]++;
  let siteId = siteIdPattern[G.site];
  let url = `${G.u_house}/api/house_collection?ac=add&site_id=${siteId}&house_code=${code}&from_url=${encodeURIComponent(location.href)}`;
  request.get(url).done(data => {
    if (data && data.msg === '收藏成功') {
      callback(data);
    } else if (data.msg === '请先登录') {
      location.href = data.loginUrl;
    }
  });
};
const delRemind = (id, callback) => {
  let url = `${G.u_house}/api/house_collection?ac=del&collection_id=${id}`;
  request.get(url).done(data => {
    if (data && data.msg === '删除成功') {
      callback();
    }
  });
};
const addEvent = () => {
  let time, time2;
  $('.ht-trend-desc, #bdext_minibar .bdext-toptabs').on('mouseenter', function () {
    let c = $(this).parent().parent().hasClass('trend-box-1');
    if (c) return;
    let oldsrc = $(this).parent().next().find('.house-trend-img img').attr('src');
    if (!oldsrc) {
      let src = $(this).parent().next().find('.house-trend-img img').attr('data-src');
      $(this).parent().next().find('.house-trend-img img').attr('src', src);
    }
    $(this).addClass('mshover');
    $(this).parent().next().show();
  });
  $('.ht-trend-desc, #bdext_minibar .bdext-toptabs').on('mouseleave', function () {
    let that = this;
    time = setTimeout(function () {
      $(that).parent().next().hide();
      $(that).removeClass('mshover');
    }, 300);
  });
  $('.houset-detail').on('mouseenter', function () {
    clearTimeout(time);
  });
  $('.houset-detail').on('mouseleave', function () {
    $(this).hide();
    $('.ht-trend-desc, #bdext_minibar').removeClass('mshover');
  });
  $('.ht-price-remind').on('click', function () {
    let that = this;
    let txt = $(this).find('span').text();
    let code = $(this).attr('data-id');
    if (txt === '降价提醒') {
      addRemind(code, function (data) {
        $(that).addClass('hasremind');
        $(that).find('span').text('已添加提醒');
        $(that).attr('data-colid', data.collect_id);
      });
    } else {
      let collect_id = $(this).attr('data-colid');
      delRemind(collect_id, function () {
        $(that).attr('data-colid', null);
        $(that).removeClass('hasremind');
        $(that).find('span').text('降价提醒');
      });
    }
  });
  $('.ht-price-remind').on('mouseenter', function () {
    if (userData.get('show_ljfqrcode') == 0 || !show_ljfqrcode) return;
    $(this).parent().parent().find('.ht-wxqrcode').show();
  });
  $('.ht-price-remind').on('mouseleave', function () {
    let that = this;
    time2 = setTimeout(function () {
      $(that).parent().parent().find('.ht-wxqrcode').hide();
    }, 150);
  });
  $('.ht-wxqrcode').on('mouseenter', function () {
    clearTimeout(time2);
  });
  $('.ht-wxqrcode').on('mouseleave', function () {
    $('.ht-wxqrcode').hide();
  });
  $('.ht-wxqrcode .ht-wx-sp3').on('click', function () {
    $('.ht-wxqrcode').hide();
    show_ljfqrcode = false;
    util.settings('set_show_ljfqrcode', 'show_ljfqrcode', '0');
  });
  $('body').on('click', function (e) {
    let dom = $(e.target);
    let communityDom = dom.parent().parent().parent().find('.community-price');
    if (dom.hasClass('house-trend-b')) {
      communityDom.hide();
      dom.parent().find('span').removeClass('trend-choose');
      dom.addClass('trend-choose');
    } else if (dom.hasClass('community-trend-b')) {
      if (communityDom.children().length === 0) {
        renderChart(communityDom, function () {
          dom.parent().find('span').removeClass('trend-choose');
          dom.addClass('trend-choose');
          communityDom.show();
        });
      } else {
        dom.parent().find('span').removeClass('trend-choose');
        dom.addClass('trend-choose');
        communityDom.show();
      }
    }
  });
};
const renderChart = (dom, callback) => {
  let href = dom.attr('data-u');
  let id = dom.attr('id');
  console.log('renderChart called');
  getInfo(href, function (data) {
    console.log('data got');
    __webpack_require__(78310)({
      el: id,
      msg: data
    });
    if (callback && data.community) {
      callback();
    }
  });
};
const renderBtn = data => {
  let html = __webpack_require__(61494);
  let listobj = ListPattern[pagesite];
  let list = $(listobj['list']);
  for (let i = 0; i < list.length; i++) {
    let item = list.eq(i).find(listobj['hrefitem']);
    let href = item.attr('href');
    if (href.indexOf('http') === -1) href = location.protocol + '//' + location.host + href;
    let housecode;
    switch (G.site) {
      case 'lianjia':
        housecode = href.match(/\/([a-z0-9A-Z]+)\.html/)[1];
        break;
      case 'ke':
        housecode = href.match(/\/([a-z0-9A-Z]+)\.html/)[1];
        break;
      case '5i5j':
        housecode = href.match(/\/([a-z0-9]+)\.html/)[1];
        break;
      case 'maitian':
        housecode = href.match(/\/esfxq\/([a-z0-9A-Z]+)/)[1];
        break;
      case 'centanet':
        housecode = href.match(/\/([a-z0-9]+)\.html/)[1];
        break;
    }
    href = encodeURIComponent(href.replace('.ke.', '.lianjia.'));
    if (data.data[href]) {
      list.eq(i).append(template.compile(html)({
        data: data.data[href],
        server: G.server,
        s_server: G.s_server,
        housecode: housecode
      }));
    }
  }
  setTimeout(existRemind, 500);
  addEvent();
};
const renderBtnDp = data => {
  let housecode = getHouseCode();
  let dpdom;
  let dpobj = dpPattern[pagesite];
  for (let i = 0; i < dpobj.length; i++) {
    if ($(dpobj[i]).length > 0) {
      dpdom = dpobj[i];
      break;
    }
  }
  let html = __webpack_require__(61494);
  let href = encodeURIComponent(location.href.replace('.ke.', '.lianjia.'));
  $(dpdom).eq(0).after(template.compile(html)({
    data: data.data[href],
    server: G.server,
    s_server: G.s_server,
    pagetype: 'dppage',
    housecode: housecode
  }));
  addEvent();
  setTimeout(existRemind, 500);
};
const getUrls = type => {
  let obj = ListPattern[pagesite];
  let hrefdom = obj['list'] + ' ' + obj['hrefitem'];
  let host = location.host;
  if (host.indexOf('lianjia') > -1 && type === 2) {
    return location.href;
  } else if (host.indexOf('lianjia') > -1) {
    let arr = Array.prototype.map.call($(hrefdom), function (e) {
      let href = $(e).attr('href');
      return (href.indexOf('http') > -1 ? '' : 'http://' + location.host) + href;
    });
    urlArr = arr;
    return arr.join('||');
  }
  if (host.indexOf('maitian') > -1 && type === 2) {
    return location.href;
  } else if (host.indexOf('maitian') > -1) {
    let arr = Array.prototype.map.call($(hrefdom), function (e) {
      let href = $(e).attr('href');
      return (href.indexOf('http') > -1 ? '' : 'http://' + location.host) + href;
    });
    urlArr = arr;
    return arr.join('||');
  }
  if (host.indexOf('ke') > -1 && type === 2) {
    return location.href;
  } else if (host.indexOf('ke') > -1) {
    let arr = Array.prototype.map.call($(hrefdom), function (e) {
      let href = $(e).attr('href');
      return (href.indexOf('http') > -1 ? '' : 'http://' + location.host) + href;
    });
    urlArr = arr;
    return arr.join('||');
  }
  if (host.indexOf('5i5j') > -1 && type === 2) {
    return location.href;
  } else if (host.indexOf('5i5j') > -1) {
    let arr = Array.prototype.map.call($('.pListBox .pList>li .listTit>a'), function (e) {
      return location.protocol + '//' + location.host + $(e).attr('href');
    });
    urlArr = arr;
    return arr.join('||');
  }
  if (host.indexOf('centanet') > -1 && type === 2) {
    return location.href;
  } else if (host.indexOf('centanet') > -1) {
    let arr = Array.prototype.map.call($(hrefdom), function (e) {
      return location.protocol + '//' + location.host + $(e).attr('href');
    });
    urlArr = arr;
    return arr.join('||');
  }
};
const getInfo = (url, callback) => {
  console.log('getInfo', url);
  request.get(url).done(function (data) {
    callback(data);
  });
};
const pageType = () => {
  let url = location.href;
  let type = 0;
  let site = pagesite;
  switch (site) {
    case 'lianjia':
      if (url.match(/\d+\.html/)) {
        type = 2;
      } else {
        type = 1;
      }
      break;
    case 'maitian':
      if (url.match(/esfxq\/\w+/)) {
        type = 2;
      } else {
        type = 1;
      }
      break;
    case 'lianjia2':
      if (url.match(/\d+\.html/)) {
        type = 2;
      } else {
        type = 1;
      }
      break;
    case '5i5j':
      if (url.match(/(?:exchange|ershoufang)\/\d+\.html/) && $('.big-slide').length > 0) {
        type = 2;
      } else if (url.match(/(?:exchange|ershoufang)/)) {
        type = 1;
      }
      break;
    case 'centanet':
      if (url.match(/ershoufang\/[a-z0-9]+\.html/) && $('#picBox').length > 0) {
        type = 2;
      } else if (url.match(/ershoufang/)) {
        type = 1;
      }
      break;
    case 'centanet2':
      if (url.match(/ershoufang\/[a-z0-9]+\.html/)) {
        type = 2;
      } else if (url.match(/ershoufang/)) {
        type = 1;
      }
      break;
    case 'ke':
      if (url.match(/\d+\.html/)) {
        type = 2;
      } else {
        type = 1;
      }
      break;
  }
  return type;
};
const renderStyle = () => {
  let html = __webpack_require__(56113);
  $('body').append(template.compile(html)({
    s_server: G.s_server,
    extBrand: G.extBrand
  }));
  $('body').addClass('house_' + pagesite);
};
module.exports.init = () => {
  pagesite = G.site;
  if (pagesite != 'lianjia' && pagesite != '5i5j' && pagesite != 'centanet' && pagesite != 'ke' && pagesite != 'maitian') return;
  if (location.host === 'sh.centanet.com') {
    pagesite = 'centanet2';
  }
  let type = pageType();
  let urls = getUrls(type);
  let url = `${G.server}/extension/houseTip?url=${encodeURIComponent(urls)}`;
  if (type === 2) {
    getInfo(url, renderBtnDp);
  } else {
    getInfo(url, renderBtn);
  }
  renderStyle();
};

/***/ }),

/***/ 82788:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


__webpack_require__(3362);
const request = __webpack_require__(49388);
module.exports = {
  async get(id, page = 1) {
    const time = Date.now();
    const params = {
      "productId": id,
      "score": 0,
      "sortType": 5,
      "page": page - 1,
      "pageSize": 100,
      "isShadowSku": 0,
      "fold": 1,
      "bbtf": "",
      "shield": ""
    };
    const payload = {
      appid: 'item-v3',
      functionId: 'pc_club_productPageComments',
      client: 'pc',
      clientVersion: '1.0.0',
      t: time,
      body: JSON.stringify(params)
    };
    const payloadCopy = Object.assign({}, payload);
    payloadCopy.body = SHA256(JSON.stringify(params)).toString();
    let sign = await window.PSign.sign(payloadCopy);
    payload.h5st = encodeURI(sign.h5st);
    if (window.jdtRiskContext && window.jdtRiskContext.deviceInfo) {
      payload['x-api-eid-token'] = jdtRiskContext.deviceInfo.jsToken;
    }
    if (window.getJsToken) {
      payload['x-api-eid-token'] = await new Promise(resolve => {
        getJsToken(res => {
          resolve(res.jsToken);
        });
      });
    }
    payload.loginType = '3';
    payload.uuid = window.getCookie('__jda');
    const host = location.hostname.includes('.jkcsjd.com') ? 'https://color.jkcsjd.com' : 'https://api.m.jd.com';
    return request.requestXHR(`${host}/?` + Object.keys(payload).map(key => `${key}=${encodeURIComponent(payload[key])}`).join('&'), true, {
      'x-referer-page': `https://${location.hostname}/` + id + '.html',
      'x-rp-client': 'h5_1.0.0'
    });
  }
};

/***/ }),

/***/ 82796:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-member-qr gwd-column gwd-align"
  }, [_c("img", {
    staticStyle: {
      width: "20px",
      height: "20px",
      position: "absolute",
      left: "50%",
      top: "53px",
      transform: "translate(-50%, 0%)",
      background: "white"
    },
    attrs: {
      src: __webpack_require__(1194),
      alt: ""
    }
  }), _vm._v(" "), _c("img", {
    style: `visibility: ${_vm.qr ? "visible" : "hidden"}`,
    attrs: {
      src: _vm.qr,
      alt: ""
    }
  }), _vm._v(" "), _vm._m(0)]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticStyle: {
      "margin-top": "6px",
      height: "13px",
      "line-height": "13px",
      "white-space": "nowrap",
      "text-align": "center",
      "padding-left": "4px"
    }
  }, [_c("span", {
    staticClass: "gwd-bigger"
  }, [_vm._v("淘宝APP扫码")]), _vm._v(" "), _c("span", {
    staticClass: "gwd-font11",
    staticStyle: {
      color: "#333333"
    }
  }, [_vm._v("联系客服领取")])]);
}];
render._withStripped = true;

/***/ }),

/***/ 82839:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);

var navigator = globalThis.navigator;
var userAgent = navigator && navigator.userAgent;

module.exports = userAgent ? String(userAgent) : '';


/***/ }),

/***/ 82963:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _aiCompareUtil = __webpack_require__(61350);
var _bgClient = _interopRequireDefault(__webpack_require__(40076));
var _default = exports.A = {
  data() {
    return {
      opened: false,
      hasOriButton: false
    };
  },
  methods: {
    getImg(x) {
      return `https://cdn.gwdang.com/images/extensions/ai/${x}@2x.png`;
    },
    open(e) {
      e.preventDefault();
      e.stopPropagation();
      this.save();
      (__webpack_require__(5300).log)('AI总结', '点击');
      if (G.userLogin) {
        const devMode = false;
        const host = devMode ? 'https://localdev.gwdang.com:3000' : 'https://www.gwdang.com';
        window.open(host + '/v2/ext/ai_rate');
        (__webpack_require__(5300).log)('AI总结', '已登录打开总结页面');
        // window.open('http://221.122.98.229:8000/')
        return;
      }
      (__webpack_require__(5300).log)('AI总结', '需要登录');
      this.opened = true;
      if (G.aliSite) {
        $('body').addClass('gwd-ai-rate-login-open');
      }
    },
    close(e) {
      e.preventDefault();
      e.stopPropagation();
      this.opened = false;
      if (G.aliSite) {
        $('body').removeClass('gwd-ai-rate-login-open');
      }
    },
    goLogin() {
      this.save();
      const url = 'https://www.gwdang.com/v2/ext/ai_rate';
      window.open(`https://www.gwdang.com/user/login?from_url=${encodeURIComponent(url)}`);
    },
    save() {
      const product = (0, _aiCompareUtil.getCurrentProduct)();
      delete product.img;
      _bgClient.default.get('/setStorage', {
        rateProduct: product
      });
    }
  },
  mounted() {
    (__webpack_require__(30888).waitForConditionFn)(() => $('.picGallery--qY53_w0u > [class^=RightSideNav--]').length).then(() => {
      this.hasOriButton = true;
    });
  }
};

/***/ }),

/***/ 82995:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    class: `gwd-common-login ${_vm.position}`,
    style: `flex-direction: column`
  }, [_c("div", {
    staticClass: "gwd-main-login"
  }, [_c("img", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.position === "gwd-favor",
      expression: "position === 'gwd-favor'"
    }],
    staticStyle: {
      "margin-top": "49px",
      "margin-bottom": "50px",
      width: "42px",
      height: "42px"
    },
    attrs: {
      src: __webpack_require__(77826),
      alt: ""
    }
  }), _vm._v(" "), _c("button", {
    class: {
      "gwd-shorter": _vm.position === "gwd-trend-top"
    },
    on: {
      click: function ($event) {
        return _vm.goLogin();
      }
    }
  }, [_vm._v("购物党账号登录")]), _vm._v(" "), _c("a", {
    attrs: {
      href: `https://www.gwdang.com/user/register?from_url=${encodeURIComponent(_vm.url)}`,
      target: _vm.position === "gwd-popup" ? "_blank" : ""
    }
  }, [_vm._v("免费注册")])]), _vm._v(" "), _c("div", {
    staticClass: "gwd-alter-login"
  }, [_vm._m(0), _vm._v(" "), _c("div", {
    staticClass: "third-login"
  }, [_c("span", {
    staticClass: "weixinlogin gwd_bg loginBox",
    attrs: {
      target: _vm.position === "gwd-popup" ? "_blank" : ""
    },
    on: {
      click: function ($event) {
        return _vm.goLink("wechat");
      }
    }
  }), _vm._v(" "), _c("span", {
    staticClass: "qqlogin gwd_bg loginBox",
    attrs: {
      target: _vm.position === "gwd-popup" ? "_blank" : ""
    },
    on: {
      click: function ($event) {
        return _vm.goLink("qq");
      }
    }
  }), _vm._v(" "), _c("span", {
    staticClass: "sinalogin gwd_bg loginBox",
    attrs: {
      target: _vm.position === "gwd-popup" ? "_blank" : ""
    },
    on: {
      click: function ($event) {
        return _vm.goLink("weibo");
      }
    }
  })])])]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-vline"
  }, [_c("div", {
    staticClass: "gwd-line-a"
  }), _vm._v(" "), _c("span", [_vm._v("其他登录方式")]), _vm._v(" "), _c("div", {
    staticClass: "gwd-line-b"
  })]);
}];
render._withStripped = true;

/***/ }),

/***/ 83007:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ Pricevue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ Price)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Price.vue?vue&type=template&id=deec5212&scoped=true
var Pricevue_type_template_id_deec5212_scoped_true = __webpack_require__(10635);
;// ./src/standard/module/components/ImgSame/Price.vue?vue&type=template&id=deec5212&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Price.vue?vue&type=script&lang=js
var Pricevue_type_script_lang_js = __webpack_require__(9340);
;// ./src/standard/module/components/ImgSame/Price.vue?vue&type=script&lang=js
 /* harmony default export */ const ImgSame_Pricevue_type_script_lang_js = (Pricevue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Price.vue?vue&type=style&index=0&id=deec5212&prod&scoped=true&lang=less
var Pricevue_type_style_index_0_id_deec5212_prod_scoped_true_lang_less = __webpack_require__(11445);
;// ./src/standard/module/components/ImgSame/Price.vue?vue&type=style&index=0&id=deec5212&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/ImgSame/Price.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  ImgSame_Pricevue_type_script_lang_js,
  Pricevue_type_template_id_deec5212_scoped_true/* render */.XX,
  Pricevue_type_template_id_deec5212_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "deec5212",
  null
  
)

/* harmony default export */ const Price = (component.exports);

/***/ }),

/***/ 83089:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var G = __webpack_require__(53558);


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _bgClient = _interopRequireDefault(__webpack_require__(40076));
var _ImgSameApp = _interopRequireDefault(__webpack_require__(38456));
var _QRLinkSideBar = _interopRequireDefault(__webpack_require__(13931));
var _GovBt = _interopRequireDefault(__webpack_require__(40862));
var _TagLink = _interopRequireDefault(__webpack_require__(90234));
var _RateButton = _interopRequireDefault(__webpack_require__(825));
var _left = _interopRequireDefault(__webpack_require__(43487));
var _vuex = __webpack_require__(95353);
var _jquery = __webpack_require__(10333);
// import CompareApp from '../aiCompare/CompareApp.vue';
var _default = exports.A = {
  components: {
    ImgSameApp: _ImgSameApp.default,
    // CompareApp,
    QRLinkSideBar: _QRLinkSideBar.default,
    GovBt: _GovBt.default,
    TagLink: _TagLink.default,
    RateButton: _RateButton.default
  },
  data() {
    return {
      site: G.site,
      expanded: false,
      imgSameData: null,
      leftIcon: _left.default
    };
  },
  methods: {
    toggle() {
      this.expanded = !this.expanded;
      _bgClient.default.get('/setStorage', {
        sideBarFolded: !this.expanded
      });
    }
  },
  computed: {
    imgSameAppVisible() {
      return this.imgSameData != null;
    },
    qrAppVisible() {
      return ['360buy', 'taobao', 'tmall'].includes(this.site);
    },
    compareAppVisible() {
      return ['360buy', 'taobao', 'tmall'].includes(this.site);
    },
    ...(0, _vuex.mapState)({
      promos: state => state.promos
    }),
    ...(0, _vuex.mapGetters)({
      hasPromo: 'promos/hasPromo'
    })
  },
  mounted() {
    _bgClient.default.get('/getStorage', {
      key: 'sideBarFolded'
    }).then(res => {
      if (res) {
        this.expanded = false;
      } else {
        this.expanded = true;
      }
    });

    // 监听图片找同款数据
    const globalCondition = __webpack_require__(41761);
    globalCondition.met('ImgSameReady').then(data => {
      this.imgSameData = data;
    });
  }
};

/***/ }),

/***/ 83357:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, url = $data.url;
    $$out += '<div class="trend-error-info">\n  <p class="error-p">我们检测到访问异常\uFF0C请您验证后继续使用</p>\n  <a class="error-sp" href="';
    $$out += $escape(url);
    $$out += '">点击验证</a>\n  <style type="text/css">\n    #gwdang-trend span {\n      float: left;\n      width: 110px;\n      text-align: center;\n      line-height: 60px;\n      color: #666;\n      font-size: 14px;\n    }\n    #gwdang-trend .trend-error-info {\n      float: left;\n      width: 100%;\n      background: #fff;\n      z-index: 99999999;\n      height: 268px;\n      display: none;\n    }\n    #gwdang-trend .error-p {\n      width: 100%;\n      float: left;\n      text-align: center;\n      margin-top: 45px;\n      font-size: 14px;\n      color: #666;\n    }\n    #gwdang-trend .error-sp {\n      width: 95px;\n      margin: 110px auto;\n      height: 20px;\n      line-height: 20px;\n      text-align: center;\n      color: #000!important;\n      border: 1px solid #333;\n      border-radius: 5px;\n      display: block;\n      text-decoration: none!important;\n    }\n    #gwdang-trend:hover .trend-error-info {\n      display: block;\n    }\n  </style>\n  <style type="text/css">\n    .bjgext-trend span {\n      float: left;\n      width: 110px;\n      text-align: center;\n      line-height: 60px;\n      color: #666;\n      font-size: 14px;\n    }\n    .bjgext-trend .trend-error-info {\n      float: left;\n      width: 100%;\n      background: #fff;\n      z-index: 99999999;\n      height: 268px;\n      display: none;\n    }\n    .bjgext-trend .error-p {\n      width: 100%;\n      float: left;\n      text-align: center;\n      margin-top: 45px;\n      font-size: 14px;\n      color: #666;\n    }\n    .bjgext-trend .error-sp {\n      width: 95px;\n      margin: 110px auto;\n      height: 20px;\n      line-height: 20px;\n      text-align: center;\n      color: #000!important;\n      border: 1px solid #333;\n      border-radius: 5px;\n      display: block;\n      text-decoration: none!important;\n    }\n    .bjgext-trend:hover #bjgext_maintrend_detail {\n      display: block!important;\n    }\n    .bjgext-trend:hover .trend-error-info {\n      display: block;\n    }\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 83386:
/***/ ((module, exports, __webpack_require__) => {

var __WEBPACK_AMD_DEFINE_RESULT__;/**
 * [js-md5]{@link https://github.com/emn178/js-md5}
 *
 * @namespace md5
 * @version 0.7.3
 * @author Chen, Yi-Cyuan [emn178@gmail.com]
 * @copyright Chen, Yi-Cyuan 2014-2017
 * @license MIT
 */
(function () {
  'use strict';

  var ERROR = 'input is invalid type';
  var WINDOW = typeof window === 'object';
  var root = WINDOW ? window : {};
  if (root.JS_MD5_NO_WINDOW) {
    WINDOW = false;
  }
  var WEB_WORKER = !WINDOW && typeof self === 'object';
  var NODE_JS = !root.JS_MD5_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node;
  if (NODE_JS) {
    root = global;
  } else if (WEB_WORKER) {
    root = self;
  }
  var COMMON_JS = !root.JS_MD5_NO_COMMON_JS && "object" === 'object' && module.exports;
  var AMD =  true && __webpack_require__.amdO;
  var ARRAY_BUFFER = !root.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined';
  var HEX_CHARS = '0123456789abcdef'.split('');
  var EXTRA = [128, 32768, 8388608, -2147483648];
  var SHIFT = [0, 8, 16, 24];
  var OUTPUT_TYPES = ['hex', 'array', 'digest', 'buffer', 'arrayBuffer', 'base64'];
  var BASE64_ENCODE_CHAR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');

  var blocks = [], buffer8;
  if (ARRAY_BUFFER) {
    var buffer = new ArrayBuffer(68);
    buffer8 = new Uint8Array(buffer);
    blocks = new Uint32Array(buffer);
  }

  if (root.JS_MD5_NO_NODE_JS || !Array.isArray) {
    Array.isArray = function (obj) {
      return Object.prototype.toString.call(obj) === '[object Array]';
    };
  }

  if (ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) {
    ArrayBuffer.isView = function (obj) {
      return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer;
    };
  }

  /**
   * @method hex
   * @memberof md5
   * @description Output hash as hex string
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {String} Hex string
   * @example
   * md5.hex('The quick brown fox jumps over the lazy dog');
   * // equal to
   * md5('The quick brown fox jumps over the lazy dog');
   */
  /**
   * @method digest
   * @memberof md5
   * @description Output hash as bytes array
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {Array} Bytes array
   * @example
   * md5.digest('The quick brown fox jumps over the lazy dog');
   */
  /**
   * @method array
   * @memberof md5
   * @description Output hash as bytes array
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {Array} Bytes array
   * @example
   * md5.array('The quick brown fox jumps over the lazy dog');
   */
  /**
   * @method arrayBuffer
   * @memberof md5
   * @description Output hash as ArrayBuffer
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {ArrayBuffer} ArrayBuffer
   * @example
   * md5.arrayBuffer('The quick brown fox jumps over the lazy dog');
   */
  /**
   * @method buffer
   * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
   * @memberof md5
   * @description Output hash as ArrayBuffer
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {ArrayBuffer} ArrayBuffer
   * @example
   * md5.buffer('The quick brown fox jumps over the lazy dog');
   */
  /**
   * @method base64
   * @memberof md5
   * @description Output hash as base64 string
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {String} base64 string
   * @example
   * md5.base64('The quick brown fox jumps over the lazy dog');
   */
  var createOutputMethod = function (outputType) {
    return function (message) {
      return new Md5(true).update(message)[outputType]();
    };
  };

  /**
   * @method create
   * @memberof md5
   * @description Create Md5 object
   * @returns {Md5} Md5 object.
   * @example
   * var hash = md5.create();
   */
  /**
   * @method update
   * @memberof md5
   * @description Create and update Md5 object
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {Md5} Md5 object.
   * @example
   * var hash = md5.update('The quick brown fox jumps over the lazy dog');
   * // equal to
   * var hash = md5.create();
   * hash.update('The quick brown fox jumps over the lazy dog');
   */
  var createMethod = function () {
    var method = createOutputMethod('hex');
    if (NODE_JS) {
      method = nodeWrap(method);
    }
    method.create = function () {
      return new Md5();
    };
    method.update = function (message) {
      return method.create().update(message);
    };
    for (var i = 0; i < OUTPUT_TYPES.length; ++i) {
      var type = OUTPUT_TYPES[i];
      method[type] = createOutputMethod(type);
    }
    return method;
  };

  var nodeWrap = function (method) {
    var crypto = eval("require('crypto')");
    var Buffer = eval("require('buffer').Buffer");
    var nodeMethod = function (message) {
      if (typeof message === 'string') {
        return crypto.createHash('md5').update(message, 'utf8').digest('hex');
      } else {
        if (message === null || message === undefined) {
          throw ERROR;
        } else if (message.constructor === ArrayBuffer) {
          message = new Uint8Array(message);
        }
      }
      if (Array.isArray(message) || ArrayBuffer.isView(message) ||
        message.constructor === Buffer) {
        return crypto.createHash('md5').update(new Buffer(message)).digest('hex');
      } else {
        return method(message);
      }
    };
    return nodeMethod;
  };

  /**
   * Md5 class
   * @class Md5
   * @description This is internal class.
   * @see {@link md5.create}
   */
  function Md5(sharedMemory) {
    if (sharedMemory) {
      blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] =
      blocks[4] = blocks[5] = blocks[6] = blocks[7] =
      blocks[8] = blocks[9] = blocks[10] = blocks[11] =
      blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
      this.blocks = blocks;
      this.buffer8 = buffer8;
    } else {
      if (ARRAY_BUFFER) {
        var buffer = new ArrayBuffer(68);
        this.buffer8 = new Uint8Array(buffer);
        this.blocks = new Uint32Array(buffer);
      } else {
        this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
      }
    }
    this.h0 = this.h1 = this.h2 = this.h3 = this.start = this.bytes = this.hBytes = 0;
    this.finalized = this.hashed = false;
    this.first = true;
  }

  /**
   * @method update
   * @memberof Md5
   * @instance
   * @description Update hash
   * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
   * @returns {Md5} Md5 object.
   * @see {@link md5.update}
   */
  Md5.prototype.update = function (message) {
    if (this.finalized) {
      return;
    }

    var notString, type = typeof message;
    if (type !== 'string') {
      if (type === 'object') {
        if (message === null) {
          throw ERROR;
        } else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) {
          message = new Uint8Array(message);
        } else if (!Array.isArray(message)) {
          if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) {
            throw ERROR;
          }
        }
      } else {
        throw ERROR;
      }
      notString = true;
    }
    var code, index = 0, i, length = message.length, blocks = this.blocks;
    var buffer8 = this.buffer8;

    while (index < length) {
      if (this.hashed) {
        this.hashed = false;
        blocks[0] = blocks[16];
        blocks[16] = blocks[1] = blocks[2] = blocks[3] =
        blocks[4] = blocks[5] = blocks[6] = blocks[7] =
        blocks[8] = blocks[9] = blocks[10] = blocks[11] =
        blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
      }

      if (notString) {
        if (ARRAY_BUFFER) {
          for (i = this.start; index < length && i < 64; ++index) {
            buffer8[i++] = message[index];
          }
        } else {
          for (i = this.start; index < length && i < 64; ++index) {
            blocks[i >> 2] |= message[index] << SHIFT[i++ & 3];
          }
        }
      } else {
        if (ARRAY_BUFFER) {
          for (i = this.start; index < length && i < 64; ++index) {
            code = message.charCodeAt(index);
            if (code < 0x80) {
              buffer8[i++] = code;
            } else if (code < 0x800) {
              buffer8[i++] = 0xc0 | (code >> 6);
              buffer8[i++] = 0x80 | (code & 0x3f);
            } else if (code < 0xd800 || code >= 0xe000) {
              buffer8[i++] = 0xe0 | (code >> 12);
              buffer8[i++] = 0x80 | ((code >> 6) & 0x3f);
              buffer8[i++] = 0x80 | (code & 0x3f);
            } else {
              code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff));
              buffer8[i++] = 0xf0 | (code >> 18);
              buffer8[i++] = 0x80 | ((code >> 12) & 0x3f);
              buffer8[i++] = 0x80 | ((code >> 6) & 0x3f);
              buffer8[i++] = 0x80 | (code & 0x3f);
            }
          }
        } else {
          for (i = this.start; index < length && i < 64; ++index) {
            code = message.charCodeAt(index);
            if (code < 0x80) {
              blocks[i >> 2] |= code << SHIFT[i++ & 3];
            } else if (code < 0x800) {
              blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3];
              blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];
            } else if (code < 0xd800 || code >= 0xe000) {
              blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3];
              blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];
              blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];
            } else {
              code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff));
              blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3];
              blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3];
              blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];
              blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];
            }
          }
        }
      }
      this.lastByteIndex = i;
      this.bytes += i - this.start;
      if (i >= 64) {
        this.start = i - 64;
        this.hash();
        this.hashed = true;
      } else {
        this.start = i;
      }
    }
    if (this.bytes > 4294967295) {
      this.hBytes += this.bytes / 4294967296 << 0;
      this.bytes = this.bytes % 4294967296;
    }
    return this;
  };

  Md5.prototype.finalize = function () {
    if (this.finalized) {
      return;
    }
    this.finalized = true;
    var blocks = this.blocks, i = this.lastByteIndex;
    blocks[i >> 2] |= EXTRA[i & 3];
    if (i >= 56) {
      if (!this.hashed) {
        this.hash();
      }
      blocks[0] = blocks[16];
      blocks[16] = blocks[1] = blocks[2] = blocks[3] =
      blocks[4] = blocks[5] = blocks[6] = blocks[7] =
      blocks[8] = blocks[9] = blocks[10] = blocks[11] =
      blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
    }
    blocks[14] = this.bytes << 3;
    blocks[15] = this.hBytes << 3 | this.bytes >>> 29;
    this.hash();
  };

  Md5.prototype.hash = function () {
    var a, b, c, d, bc, da, blocks = this.blocks;

    if (this.first) {
      a = blocks[0] - 680876937;
      a = (a << 7 | a >>> 25) - 271733879 << 0;
      d = (-1732584194 ^ a & 2004318071) + blocks[1] - 117830708;
      d = (d << 12 | d >>> 20) + a << 0;
      c = (-271733879 ^ (d & (a ^ -271733879))) + blocks[2] - 1126478375;
      c = (c << 17 | c >>> 15) + d << 0;
      b = (a ^ (c & (d ^ a))) + blocks[3] - 1316259209;
      b = (b << 22 | b >>> 10) + c << 0;
    } else {
      a = this.h0;
      b = this.h1;
      c = this.h2;
      d = this.h3;
      a += (d ^ (b & (c ^ d))) + blocks[0] - 680876936;
      a = (a << 7 | a >>> 25) + b << 0;
      d += (c ^ (a & (b ^ c))) + blocks[1] - 389564586;
      d = (d << 12 | d >>> 20) + a << 0;
      c += (b ^ (d & (a ^ b))) + blocks[2] + 606105819;
      c = (c << 17 | c >>> 15) + d << 0;
      b += (a ^ (c & (d ^ a))) + blocks[3] - 1044525330;
      b = (b << 22 | b >>> 10) + c << 0;
    }

    a += (d ^ (b & (c ^ d))) + blocks[4] - 176418897;
    a = (a << 7 | a >>> 25) + b << 0;
    d += (c ^ (a & (b ^ c))) + blocks[5] + 1200080426;
    d = (d << 12 | d >>> 20) + a << 0;
    c += (b ^ (d & (a ^ b))) + blocks[6] - 1473231341;
    c = (c << 17 | c >>> 15) + d << 0;
    b += (a ^ (c & (d ^ a))) + blocks[7] - 45705983;
    b = (b << 22 | b >>> 10) + c << 0;
    a += (d ^ (b & (c ^ d))) + blocks[8] + 1770035416;
    a = (a << 7 | a >>> 25) + b << 0;
    d += (c ^ (a & (b ^ c))) + blocks[9] - 1958414417;
    d = (d << 12 | d >>> 20) + a << 0;
    c += (b ^ (d & (a ^ b))) + blocks[10] - 42063;
    c = (c << 17 | c >>> 15) + d << 0;
    b += (a ^ (c & (d ^ a))) + blocks[11] - 1990404162;
    b = (b << 22 | b >>> 10) + c << 0;
    a += (d ^ (b & (c ^ d))) + blocks[12] + 1804603682;
    a = (a << 7 | a >>> 25) + b << 0;
    d += (c ^ (a & (b ^ c))) + blocks[13] - 40341101;
    d = (d << 12 | d >>> 20) + a << 0;
    c += (b ^ (d & (a ^ b))) + blocks[14] - 1502002290;
    c = (c << 17 | c >>> 15) + d << 0;
    b += (a ^ (c & (d ^ a))) + blocks[15] + 1236535329;
    b = (b << 22 | b >>> 10) + c << 0;
    a += (c ^ (d & (b ^ c))) + blocks[1] - 165796510;
    a = (a << 5 | a >>> 27) + b << 0;
    d += (b ^ (c & (a ^ b))) + blocks[6] - 1069501632;
    d = (d << 9 | d >>> 23) + a << 0;
    c += (a ^ (b & (d ^ a))) + blocks[11] + 643717713;
    c = (c << 14 | c >>> 18) + d << 0;
    b += (d ^ (a & (c ^ d))) + blocks[0] - 373897302;
    b = (b << 20 | b >>> 12) + c << 0;
    a += (c ^ (d & (b ^ c))) + blocks[5] - 701558691;
    a = (a << 5 | a >>> 27) + b << 0;
    d += (b ^ (c & (a ^ b))) + blocks[10] + 38016083;
    d = (d << 9 | d >>> 23) + a << 0;
    c += (a ^ (b & (d ^ a))) + blocks[15] - 660478335;
    c = (c << 14 | c >>> 18) + d << 0;
    b += (d ^ (a & (c ^ d))) + blocks[4] - 405537848;
    b = (b << 20 | b >>> 12) + c << 0;
    a += (c ^ (d & (b ^ c))) + blocks[9] + 568446438;
    a = (a << 5 | a >>> 27) + b << 0;
    d += (b ^ (c & (a ^ b))) + blocks[14] - 1019803690;
    d = (d << 9 | d >>> 23) + a << 0;
    c += (a ^ (b & (d ^ a))) + blocks[3] - 187363961;
    c = (c << 14 | c >>> 18) + d << 0;
    b += (d ^ (a & (c ^ d))) + blocks[8] + 1163531501;
    b = (b << 20 | b >>> 12) + c << 0;
    a += (c ^ (d & (b ^ c))) + blocks[13] - 1444681467;
    a = (a << 5 | a >>> 27) + b << 0;
    d += (b ^ (c & (a ^ b))) + blocks[2] - 51403784;
    d = (d << 9 | d >>> 23) + a << 0;
    c += (a ^ (b & (d ^ a))) + blocks[7] + 1735328473;
    c = (c << 14 | c >>> 18) + d << 0;
    b += (d ^ (a & (c ^ d))) + blocks[12] - 1926607734;
    b = (b << 20 | b >>> 12) + c << 0;
    bc = b ^ c;
    a += (bc ^ d) + blocks[5] - 378558;
    a = (a << 4 | a >>> 28) + b << 0;
    d += (bc ^ a) + blocks[8] - 2022574463;
    d = (d << 11 | d >>> 21) + a << 0;
    da = d ^ a;
    c += (da ^ b) + blocks[11] + 1839030562;
    c = (c << 16 | c >>> 16) + d << 0;
    b += (da ^ c) + blocks[14] - 35309556;
    b = (b << 23 | b >>> 9) + c << 0;
    bc = b ^ c;
    a += (bc ^ d) + blocks[1] - 1530992060;
    a = (a << 4 | a >>> 28) + b << 0;
    d += (bc ^ a) + blocks[4] + 1272893353;
    d = (d << 11 | d >>> 21) + a << 0;
    da = d ^ a;
    c += (da ^ b) + blocks[7] - 155497632;
    c = (c << 16 | c >>> 16) + d << 0;
    b += (da ^ c) + blocks[10] - 1094730640;
    b = (b << 23 | b >>> 9) + c << 0;
    bc = b ^ c;
    a += (bc ^ d) + blocks[13] + 681279174;
    a = (a << 4 | a >>> 28) + b << 0;
    d += (bc ^ a) + blocks[0] - 358537222;
    d = (d << 11 | d >>> 21) + a << 0;
    da = d ^ a;
    c += (da ^ b) + blocks[3] - 722521979;
    c = (c << 16 | c >>> 16) + d << 0;
    b += (da ^ c) + blocks[6] + 76029189;
    b = (b << 23 | b >>> 9) + c << 0;
    bc = b ^ c;
    a += (bc ^ d) + blocks[9] - 640364487;
    a = (a << 4 | a >>> 28) + b << 0;
    d += (bc ^ a) + blocks[12] - 421815835;
    d = (d << 11 | d >>> 21) + a << 0;
    da = d ^ a;
    c += (da ^ b) + blocks[15] + 530742520;
    c = (c << 16 | c >>> 16) + d << 0;
    b += (da ^ c) + blocks[2] - 995338651;
    b = (b << 23 | b >>> 9) + c << 0;
    a += (c ^ (b | ~d)) + blocks[0] - 198630844;
    a = (a << 6 | a >>> 26) + b << 0;
    d += (b ^ (a | ~c)) + blocks[7] + 1126891415;
    d = (d << 10 | d >>> 22) + a << 0;
    c += (a ^ (d | ~b)) + blocks[14] - 1416354905;
    c = (c << 15 | c >>> 17) + d << 0;
    b += (d ^ (c | ~a)) + blocks[5] - 57434055;
    b = (b << 21 | b >>> 11) + c << 0;
    a += (c ^ (b | ~d)) + blocks[12] + 1700485571;
    a = (a << 6 | a >>> 26) + b << 0;
    d += (b ^ (a | ~c)) + blocks[3] - 1894986606;
    d = (d << 10 | d >>> 22) + a << 0;
    c += (a ^ (d | ~b)) + blocks[10] - 1051523;
    c = (c << 15 | c >>> 17) + d << 0;
    b += (d ^ (c | ~a)) + blocks[1] - 2054922799;
    b = (b << 21 | b >>> 11) + c << 0;
    a += (c ^ (b | ~d)) + blocks[8] + 1873313359;
    a = (a << 6 | a >>> 26) + b << 0;
    d += (b ^ (a | ~c)) + blocks[15] - 30611744;
    d = (d << 10 | d >>> 22) + a << 0;
    c += (a ^ (d | ~b)) + blocks[6] - 1560198380;
    c = (c << 15 | c >>> 17) + d << 0;
    b += (d ^ (c | ~a)) + blocks[13] + 1309151649;
    b = (b << 21 | b >>> 11) + c << 0;
    a += (c ^ (b | ~d)) + blocks[4] - 145523070;
    a = (a << 6 | a >>> 26) + b << 0;
    d += (b ^ (a | ~c)) + blocks[11] - 1120210379;
    d = (d << 10 | d >>> 22) + a << 0;
    c += (a ^ (d | ~b)) + blocks[2] + 718787259;
    c = (c << 15 | c >>> 17) + d << 0;
    b += (d ^ (c | ~a)) + blocks[9] - 343485551;
    b = (b << 21 | b >>> 11) + c << 0;

    if (this.first) {
      this.h0 = a + 1732584193 << 0;
      this.h1 = b - 271733879 << 0;
      this.h2 = c - 1732584194 << 0;
      this.h3 = d + 271733878 << 0;
      this.first = false;
    } else {
      this.h0 = this.h0 + a << 0;
      this.h1 = this.h1 + b << 0;
      this.h2 = this.h2 + c << 0;
      this.h3 = this.h3 + d << 0;
    }
  };

  /**
   * @method hex
   * @memberof Md5
   * @instance
   * @description Output hash as hex string
   * @returns {String} Hex string
   * @see {@link md5.hex}
   * @example
   * hash.hex();
   */
  Md5.prototype.hex = function () {
    this.finalize();

    var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3;

    return HEX_CHARS[(h0 >> 4) & 0x0F] + HEX_CHARS[h0 & 0x0F] +
      HEX_CHARS[(h0 >> 12) & 0x0F] + HEX_CHARS[(h0 >> 8) & 0x0F] +
      HEX_CHARS[(h0 >> 20) & 0x0F] + HEX_CHARS[(h0 >> 16) & 0x0F] +
      HEX_CHARS[(h0 >> 28) & 0x0F] + HEX_CHARS[(h0 >> 24) & 0x0F] +
      HEX_CHARS[(h1 >> 4) & 0x0F] + HEX_CHARS[h1 & 0x0F] +
      HEX_CHARS[(h1 >> 12) & 0x0F] + HEX_CHARS[(h1 >> 8) & 0x0F] +
      HEX_CHARS[(h1 >> 20) & 0x0F] + HEX_CHARS[(h1 >> 16) & 0x0F] +
      HEX_CHARS[(h1 >> 28) & 0x0F] + HEX_CHARS[(h1 >> 24) & 0x0F] +
      HEX_CHARS[(h2 >> 4) & 0x0F] + HEX_CHARS[h2 & 0x0F] +
      HEX_CHARS[(h2 >> 12) & 0x0F] + HEX_CHARS[(h2 >> 8) & 0x0F] +
      HEX_CHARS[(h2 >> 20) & 0x0F] + HEX_CHARS[(h2 >> 16) & 0x0F] +
      HEX_CHARS[(h2 >> 28) & 0x0F] + HEX_CHARS[(h2 >> 24) & 0x0F] +
      HEX_CHARS[(h3 >> 4) & 0x0F] + HEX_CHARS[h3 & 0x0F] +
      HEX_CHARS[(h3 >> 12) & 0x0F] + HEX_CHARS[(h3 >> 8) & 0x0F] +
      HEX_CHARS[(h3 >> 20) & 0x0F] + HEX_CHARS[(h3 >> 16) & 0x0F] +
      HEX_CHARS[(h3 >> 28) & 0x0F] + HEX_CHARS[(h3 >> 24) & 0x0F];
  };

  /**
   * @method toString
   * @memberof Md5
   * @instance
   * @description Output hash as hex string
   * @returns {String} Hex string
   * @see {@link md5.hex}
   * @example
   * hash.toString();
   */
  Md5.prototype.toString = Md5.prototype.hex;

  /**
   * @method digest
   * @memberof Md5
   * @instance
   * @description Output hash as bytes array
   * @returns {Array} Bytes array
   * @see {@link md5.digest}
   * @example
   * hash.digest();
   */
  Md5.prototype.digest = function () {
    this.finalize();

    var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3;
    return [
      h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 24) & 0xFF,
      h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 24) & 0xFF,
      h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 24) & 0xFF,
      h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 24) & 0xFF
    ];
  };

  /**
   * @method array
   * @memberof Md5
   * @instance
   * @description Output hash as bytes array
   * @returns {Array} Bytes array
   * @see {@link md5.array}
   * @example
   * hash.array();
   */
  Md5.prototype.array = Md5.prototype.digest;

  /**
   * @method arrayBuffer
   * @memberof Md5
   * @instance
   * @description Output hash as ArrayBuffer
   * @returns {ArrayBuffer} ArrayBuffer
   * @see {@link md5.arrayBuffer}
   * @example
   * hash.arrayBuffer();
   */
  Md5.prototype.arrayBuffer = function () {
    this.finalize();

    var buffer = new ArrayBuffer(16);
    var blocks = new Uint32Array(buffer);
    blocks[0] = this.h0;
    blocks[1] = this.h1;
    blocks[2] = this.h2;
    blocks[3] = this.h3;
    return buffer;
  };

  /**
   * @method buffer
   * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
   * @memberof Md5
   * @instance
   * @description Output hash as ArrayBuffer
   * @returns {ArrayBuffer} ArrayBuffer
   * @see {@link md5.buffer}
   * @example
   * hash.buffer();
   */
  Md5.prototype.buffer = Md5.prototype.arrayBuffer;

  /**
   * @method base64
   * @memberof Md5
   * @instance
   * @description Output hash as base64 string
   * @returns {String} base64 string
   * @see {@link md5.base64}
   * @example
   * hash.base64();
   */
  Md5.prototype.base64 = function () {
    var v1, v2, v3, base64Str = '', bytes = this.array();
    for (var i = 0; i < 15;) {
      v1 = bytes[i++];
      v2 = bytes[i++];
      v3 = bytes[i++];
      base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] +
        BASE64_ENCODE_CHAR[(v1 << 4 | v2 >>> 4) & 63] +
        BASE64_ENCODE_CHAR[(v2 << 2 | v3 >>> 6) & 63] +
        BASE64_ENCODE_CHAR[v3 & 63];
    }
    v1 = bytes[i];
    base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] +
      BASE64_ENCODE_CHAR[(v1 << 4) & 63] +
      '==';
    return base64Str;
  };

  var exports = createMethod();

  if (COMMON_JS) {
    module.exports = exports;
  } else {
    /**
     * @method md5
     * @description Md5 hash function, export to global in browsers.
     * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
     * @returns {String} md5 hashes
     * @example
     * md5(''); // d41d8cd98f00b204e9800998ecf8427e
     * md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6
     * md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0
     *
     * // It also supports UTF-8 encoding
     * md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07
     *
     * // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer`
     * md5([]); // d41d8cd98f00b204e9800998ecf8427e
     * md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e
     */
    root.md5 = exports;
    if (AMD) {
      !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
        return exports;
      }).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
    }
  }
})();


/***/ }),

/***/ 83556:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, link = $data.link, extClass = $data.extClass, img = $data.img;
    $$out += '<a href="';
    $$out += $escape(link);
    $$out += '"\n   target="_blank"\n   title="点击领取"\n   style="display: inline-flex; position: relative; vertical-align: middle; margin-left: 5px; width: auto" class="gwd-bottom-tmall ';
    $$out += $escape(extClass);
    $$out += '">\n  <img src="';
    $$out += $escape(img);
    $$out += '" alt="" style="height: 44px">\n</a>\n<style>\n  .gwd-bottom-tmall {\n    height: 100%;\n    align-items: center;\n  }\n\n  .gwd-qr-act-bottom {\n    display: none;\n    flex-direction: column;\n    position: absolute;\n    width: 144px;\n    height: 167px;\n    box-sizing: border-box;\n    border: 1px solid #ff471a;\n    background: #fff9f6;\n    bottom: 62px;\n    left: 50%;\n    align-items: center;\n    margin-left: -72px;\n  }\n\n  .gwd-qr-act-bottom span {\n    width: initial;\n    margin: 0;\n  }\n\n  .gwd-bottom-tmall:hover .gwd-qr-act-bottom {\n    display: flex;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 83625:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(34192);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("01e623da", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 83754:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ TmCompare)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TmCompare.vue?vue&type=template&id=4c740cf8
var TmComparevue_type_template_id_4c740cf8 = __webpack_require__(3662);
;// ./src/common/components/TmCompare.vue?vue&type=template&id=4c740cf8

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TmCompare.vue?vue&type=script&lang=js
var TmComparevue_type_script_lang_js = __webpack_require__(74444);
;// ./src/common/components/TmCompare.vue?vue&type=script&lang=js
 /* harmony default export */ const components_TmComparevue_type_script_lang_js = (TmComparevue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(85072);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(97825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(77659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(55056);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(10540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(41113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TmCompare.vue?vue&type=style&index=0&id=4c740cf8&prod&lang=css
var TmComparevue_type_style_index_0_id_4c740cf8_prod_lang_css = __webpack_require__(25314);
var TmComparevue_type_style_index_0_id_4c740cf8_prod_lang_css_default = /*#__PURE__*/__webpack_require__.n(TmComparevue_type_style_index_0_id_4c740cf8_prod_lang_css);
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/common/components/TmCompare.vue?vue&type=style&index=0&id=4c740cf8&prod&lang=css

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());

      options.insert = insertBySelector_default().bind(null, "head");
    
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()((TmComparevue_type_style_index_0_id_4c740cf8_prod_lang_css_default()), options);




       /* harmony default export */ const components_TmComparevue_type_style_index_0_id_4c740cf8_prod_lang_css = ((TmComparevue_type_style_index_0_id_4c740cf8_prod_lang_css_default()) && (TmComparevue_type_style_index_0_id_4c740cf8_prod_lang_css_default()).locals ? (TmComparevue_type_style_index_0_id_4c740cf8_prod_lang_css_default()).locals : undefined);

;// ./src/common/components/TmCompare.vue?vue&type=style&index=0&id=4c740cf8&prod&lang=css

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/common/components/TmCompare.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_TmComparevue_type_script_lang_js,
  TmComparevue_type_template_id_4c740cf8/* render */.XX,
  TmComparevue_type_template_id_4c740cf8/* staticRenderFns */.Yp,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ const TmCompare = (component.exports);

/***/ }),

/***/ 83783:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
    return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (g && (g = 0, op[0] && (_ = 0)), _) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.init = void 0;
var vue_1 = __importDefault(__webpack_require__(38279));
var viewerWindow_vue_1 = __importDefault(__webpack_require__(60721));
var skuUtil_1 = __webpack_require__(90827);
var arrow = __webpack_require__(41151);
var redArrow = __webpack_require__(31166);
var init = function () { return __awaiter(void 0, void 0, void 0, function () {
    var el, skuPriceViewer, text, isNewJd, skuInfo, productPrices;
    return __generator(this, function (_a) {
        switch (_a.label) {
            case 0:
                el = document.createElement('div');
                document.body.appendChild(el);
                skuPriceViewer = new vue_1.default({
                    el: el,
                    render: function (h) { return h(viewerWindow_vue_1.default, {
                        ref: 'popup',
                    }); },
                });
                if (!(G.site === '360buy')) return [3 /*break*/, 3];
                if (Object.keys(pageConfig.product.colorSize).length <= 1) {
                    return [2 /*return*/];
                }
                text = '查　　价';
                isNewJd = (__webpack_require__(60340).isNewJd)();
                if (!isNewJd) return [3 /*break*/, 2];
                return [4 /*yield*/, (__webpack_require__(30888).waitForConditionFn)(function () { return $("#choose-attrs").length; })];
            case 1:
                _a.sent();
                text = '查价';
                _a.label = 2;
            case 2:
                $('#choose-attrs').after("\n      <div style=\"margin-top: ".concat(isNewJd ? 0 : 10, "px; margin-bottom: 10px\">\n        <div class=\"dt\">").concat(text, "</div>\n        <div class=\"dd\">\n          <div class=\"gwd-inline-row gwd-align gwd-sku-viewer\" style=\"cursor: pointer\">\n            <span style=\"font-size: 14px; color: #ff0f23;\">\u4E00\u952E\u67E5\u591A\u6B3E\u5F0F\u5230\u624B\u4EF7</span>\n            <img src=\"").concat(redArrow, "\" style=\"width: 16px; height: 16px; margin-left: 2px;\">\n          </div>\n        </div>\n      </div>\n      "));
                $('.gwd-sku-viewer').on('click', function () { return skuPriceViewer.$refs.popup.open(); });
                _a.label = 3;
            case 3:
                if (!G.aliSite) return [3 /*break*/, 6];
                return [4 /*yield*/, (__webpack_require__(30888).waitForConditionFn)(function () { return $("[class^=".concat(G.aliPrefix, "--SkuContent--]")).length || document.querySelector('input[name="x_id"]'); })
                    // await require('standard/module/util').waitForConditionFn(() => G.aliSkuInfo )
                    // const skuInfo = G.aliSkuInfo;
                ];
            case 4:
                _a.sent();
                return [4 /*yield*/, (__webpack_require__(94968).getLocalSku)()];
            case 5:
                skuInfo = _a.sent();
                if (!G.aliSkuInfo) {
                    G.aliSkuInfo = skuInfo;
                }
                if (skuInfo.skuBase.skus.length <= 1) {
                    return [2 /*return*/];
                }
                productPrices = (0, skuUtil_1.extractAliProductPrice)(skuInfo);
                if (productPrices.length <= 1) {
                    return [2 /*return*/];
                }
                if ($("[class^=".concat(G.aliPrefix, "--SkuContent--]")).length) {
                    $("[class^=".concat(G.aliPrefix, "--SkuContent--]")).after("\n        <div class=\"gwd-row\" style=\"align-items: baseline;\">\n          <div class=\"".concat(G.aliPrefix, "--ItemLabel--_7c6a9cd\">\n            <span class=\"").concat(G.aliPrefix, "--labelText--_2ce831b\">\u67E5\u4EF7</span>\n          </div>\n          <div class=\"").concat(G.aliPrefix, "--content--_9d8018e gwd-inline-row gwd-align\">\n            <div class=\"gwd-inline-row gwd-align gwd-sku-viewer\" style=\"cursor: pointer\">\n              <span style=\"font-size: 14px; color: #ff5000;\">\u4E00\u952E\u67E5\u591A\u6B3E\u5F0F\u5230\u624B\u4EF7</span>\n              <img src=\"").concat(arrow, "\" style=\"width: 16px; height: 16px; margin-left: 2px;\">\n            </div>\n          </div>\n        </div>\n      "));
                }
                else if ($('.BuyPattern--m8ZSLAHz').length) {
                    $('.BuyPattern--m8ZSLAHz').before("\n        <div class=\"gwd-row root--uHUOEAcH\" style=\"align-items: baseline;\">\n          <div class=\"ItemLabel--psS1SOyC\">\n            <span class=\"skuCateText f-els-2 pcSkuCateText\">\u67E5\u4EF7:</span>\n          </div>\n          <div class=\"serviceWrapper gwd-inline-row gwd-align\">\n            <div class=\"gwd-inline-row gwd-align gwd-sku-viewer\" style=\"cursor: pointer\">\n              <span style=\"font-size: 14px; color: #ff5000;\">\u4E00\u952E\u67E5\u591A\u6B3E\u5F0F\u5230\u624B\u4EF7</span>\n              <img src=\"".concat(arrow, "\" style=\"width: 16px; height: 16px; margin-left: 2px;\">\n            </div>\n          </div>\n        </div>\n      "));
                }
                else {
                    $('.skuWrapper .service').before("\n        <div class=\"gwd-row\" style=\"align-items: baseline; margin-top: -15px;\">\n          <span class=\"skuCateText pcSkuCateText\">\u67E5\u4EF7:</span>\n          <div class=\"serviceWrapper gwd-inline-row gwd-align\">\n            <div class=\"gwd-inline-row gwd-align gwd-sku-viewer\" style=\"cursor: pointer\">\n              <span style=\"font-size: 14px; color: #ff5000;\">\u4E00\u952E\u67E5\u591A\u6B3E\u5F0F\u5230\u624B\u4EF7</span>\n              <img src=\"".concat(arrow, "\" style=\"width: 16px; height: 16px; margin-left: 2px;\">\n            </div>\n          </div>\n        </div>\n      "));
                }
                $('.gwd-sku-viewer').on('click', function () { return skuPriceViewer.$refs.popup.open(); });
                _a.label = 6;
            case 6: return [2 /*return*/];
        }
    });
}); };
exports.init = init;


/***/ }),

/***/ 84140:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ PriceInputvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ PriceInput)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Controls/PriceInput.vue?vue&type=template&id=c322638e&scoped=true
var PriceInputvue_type_template_id_c322638e_scoped_true = __webpack_require__(19449);
;// ./src/standard/module/components/Controls/PriceInput.vue?vue&type=template&id=c322638e&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Controls/PriceInput.vue?vue&type=script&lang=js
var PriceInputvue_type_script_lang_js = __webpack_require__(63357);
;// ./src/standard/module/components/Controls/PriceInput.vue?vue&type=script&lang=js
 /* harmony default export */ const Controls_PriceInputvue_type_script_lang_js = (PriceInputvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Controls/PriceInput.vue?vue&type=style&index=0&id=c322638e&prod&scoped=true&lang=less
var PriceInputvue_type_style_index_0_id_c322638e_prod_scoped_true_lang_less = __webpack_require__(27733);
;// ./src/standard/module/components/Controls/PriceInput.vue?vue&type=style&index=0&id=c322638e&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/Controls/PriceInput.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  Controls_PriceInputvue_type_script_lang_js,
  PriceInputvue_type_template_id_c322638e_scoped_true/* render */.XX,
  PriceInputvue_type_template_id_c322638e_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "c322638e",
  null
  
)

/* harmony default export */ const PriceInput = (component.exports);

/***/ }),

/***/ 84154:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("input", {
    attrs: {
      type: "text",
      onkeyup: "this.value=this.value.replace(/[^\\d.]/g,'')"
    },
    domProps: {
      value: _vm.value
    },
    on: {
      keypress: _vm.numberInputHandler,
      keydown: _vm.numberInputHandler,
      input: _vm.inputHandler
    }
  });
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 84215:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

/* global Bun, Deno -- detection */
var globalThis = __webpack_require__(44576);
var userAgent = __webpack_require__(82839);
var classof = __webpack_require__(22195);

var userAgentStartsWith = function (string) {
  return userAgent.slice(0, string.length) === string;
};

module.exports = (function () {
  if (userAgentStartsWith('Bun/')) return 'BUN';
  if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';
  if (userAgentStartsWith('Deno/')) return 'DENO';
  if (userAgentStartsWith('Node.js/')) return 'NODE';
  if (globalThis.Bun && typeof Bun.version == 'string') return 'BUN';
  if (globalThis.Deno && typeof Deno.version == 'object') return 'DENO';
  if (classof(globalThis.process) === 'process') return 'NODE';
  if (globalThis.window && globalThis.document) return 'BROWSER';
  return 'REST';
})();


/***/ }),

/***/ 84270:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var call = __webpack_require__(69565);
var isCallable = __webpack_require__(94901);
var isObject = __webpack_require__(20034);

var $TypeError = TypeError;

// `OrdinaryToPrimitive` abstract operation
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
module.exports = function (input, pref) {
  var fn, val;
  if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
  if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  throw new $TypeError("Can't convert object to primitive value");
};


/***/ }),

/***/ 84306:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(43783);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("43de5d08", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 84309:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


var script = __webpack_require__(86819);
var $ = __webpack_require__(10333);
if (script) script.parentNode && script.parentNode.removeChild && script.parentNode.removeChild(script);
if (document.getElementById('BIJIA_HAS_BUILT')) {
  $("#BIJIA_HAS_BUILT").addClass(G.from_device);
  console.log('has built, return');
  module.exports = true;
} else {
  var BUILT_FLAG = document.createElement('div');
  BUILT_FLAG.id = 'BIJIA_HAS_BUILT';
  var head = document.getElementsByTagName('head');
  if (head && head[0]) head = head[0];
  head.appendChild(BUILT_FLAG);
  $("#BIJIA_HAS_BUILT").addClass(G.from_device);
  module.exports = false;
}

/***/ }),

/***/ 84428:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var wellKnownSymbol = __webpack_require__(78227);

var ITERATOR = wellKnownSymbol('iterator');
var SAFE_CLOSING = false;

try {
  var called = 0;
  var iteratorWithReturn = {
    next: function () {
      return { done: !!called++ };
    },
    'return': function () {
      SAFE_CLOSING = true;
    }
  };
  iteratorWithReturn[ITERATOR] = function () {
    return this;
  };
  // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
  Array.from(iteratorWithReturn, function () { throw 2; });
} catch (error) { /* empty */ }

module.exports = function (exec, SKIP_CLOSING) {
  try {
    if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
  } catch (error) { return false; } // workaround of old WebKit + `eval` bug
  var ITERATION_SUPPORT = false;
  try {
    var object = {};
    object[ITERATOR] = function () {
      return {
        next: function () {
          return { done: ITERATION_SUPPORT = true };
        }
      };
    };
    exec(object);
  } catch (error) { /* empty */ }
  return ITERATION_SUPPORT;
};


/***/ }),

/***/ 84509:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c(_vm.type === "link" ? "a" : "div", {
    tag: "component",
    staticClass: "gwd-row gwd-align gwd-coupon-bar",
    class: {
      "gwd-butie": _vm.text.includes("补贴") && _vm.mainColor === "#11a14e"
    },
    attrs: {
      href: _vm.alterHref,
      target: "_blank",
      title: _vm.title ? _vm.title : _vm.type === "link" ? "点击领取" : ""
    },
    on: {
      mouseenter: function ($event) {
        return _vm.over();
      }
    }
  }, [_vm.showStampBg ? _c("div", {
    staticClass: "gwd-coupon-color-bg gwd-tl"
  }) : _vm._e(), _vm._v(" "), _vm.showStampBg ? _c("div", {
    staticClass: "gwd-coupon-color-bg gwd-br"
  }) : _vm._e(), _vm._v(" "), _c("img", {
    staticStyle: {
      "margin-left": "12px",
      "margin-right": "8px",
      "max-height": "20px",
      "z-index": "1"
    },
    attrs: {
      src: _vm.icon,
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    style: `color: ${_vm.mainColor}; font-size: 14px`,
    domProps: {
      innerHTML: _vm._s(_vm.text)
    }
  }), _vm._v(" "), _c("div", {
    staticStyle: {
      flex: "1"
    }
  }, [_vm.rebate ? _c("Stamp", {
    staticStyle: {
      right: "109px",
      top: "0",
      position: "absolute"
    },
    attrs: {
      value: _vm.rebate
    }
  }) : _vm._e()], 1), _vm._v(" "), _vm.type === "link" ? _c("span", {
    staticClass: "gwd-round-click",
    style: `background: linear-gradient(180deg, ${_vm.secondColor} 0%, ${_vm.mainColor} 100%); z-index: 1`
  }, [_vm._v("点击领取")]) : _vm._e(), _vm._v(" "), _vm.type === "qr" ? _c("div", {
    staticClass: "gwd-take gwd-row gwd-align",
    style: `background: url(${_vm.takeBg})`
  }, [_c("span", {
    style: `color: ${_vm.mainColor}`
  }, [_vm._v("￥" + _vm._s(_vm.couponValue))]), _vm._v(" "), _c("span", {
    staticStyle: {
      color: "white"
    }
  }, [_vm._v("领取")])]) : _vm._e(), _vm._v(" "), _vm.type === "qr" ? _c("div", {
    staticClass: "gwd-qr-hover-window gwd-column gwd-align",
    style: `border-color: ${_vm.mainColor}`
  }, [!_vm.error && _vm.actualQr ? _c("img", {
    staticStyle: {
      width: "120px",
      height: "120px",
      "margin-top": "8px"
    },
    attrs: {
      src: _vm.actualQr,
      alt: ""
    }
  }) : _vm._e(), _vm._v(" "), _vm.error ? _c("QRError", {
    on: {
      refresh: _vm.over
    }
  }) : _vm._e(), _vm._v(" "), _c("div", {
    staticClass: "gwd-row",
    staticStyle: {
      "margin-top": "8px"
    }
  }, [_c("span", {
    style: `color: ${_vm.mainColor}; font-size: 12px;`
  }, [_vm._v("微信扫码")]), _vm._v(" "), _c("span", {
    staticStyle: {
      color: "#070707",
      "font-size": "12px",
      transform: "scale(0.8333)",
      "transform-origin": "center left",
      "margin-top": "1px"
    }
  }, [_vm._v(_vm._s(_vm.qrTitle))])])], 1) : _vm._e()]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 84510:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(50481);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("270aea88", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 84565:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

const Utils = __webpack_require__(56886)

const G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0)
const G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1)
const G15_BCH = Utils.getBCHDigit(G15)

/**
 * Returns format information with relative error correction bits
 *
 * The format information is a 15-bit sequence containing 5 data bits,
 * with 10 error correction bits calculated using the (15, 5) BCH code.
 *
 * @param  {Number} errorCorrectionLevel Error correction level
 * @param  {Number} mask                 Mask pattern
 * @return {Number}                      Encoded format information bits
 */
exports.getEncodedBits = function getEncodedBits (errorCorrectionLevel, mask) {
  const data = ((errorCorrectionLevel.bit << 3) | mask)
  let d = data << 10

  while (Utils.getBCHDigit(d) - G15_BCH >= 0) {
    d ^= (G15 << (Utils.getBCHDigit(d) - G15_BCH))
  }

  // xor final data with mask pattern in order to ensure that
  // no combination of Error Correction Level and data mask pattern
  // will result in an all-zero data string
  return ((data << 10) | d) ^ G15_MASK
}


/***/ }),

/***/ 84593:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ CommonCouponBarMinivue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ CommonCouponBarMini)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CommonCouponBarMini.vue?vue&type=template&id=7803d351&scoped=true
var CommonCouponBarMinivue_type_template_id_7803d351_scoped_true = __webpack_require__(84509);
;// ./src/standard/module/components/CommonCouponBarMini.vue?vue&type=template&id=7803d351&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CommonCouponBarMini.vue?vue&type=script&lang=js
var CommonCouponBarMinivue_type_script_lang_js = __webpack_require__(86696);
;// ./src/standard/module/components/CommonCouponBarMini.vue?vue&type=script&lang=js
 /* harmony default export */ const components_CommonCouponBarMinivue_type_script_lang_js = (CommonCouponBarMinivue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CommonCouponBarMini.vue?vue&type=style&index=0&id=7803d351&prod&scoped=true&lang=less
var CommonCouponBarMinivue_type_style_index_0_id_7803d351_prod_scoped_true_lang_less = __webpack_require__(41703);
;// ./src/standard/module/components/CommonCouponBarMini.vue?vue&type=style&index=0&id=7803d351&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/CommonCouponBarMini.vue?vue&type=style&index=1&id=7803d351&prod&lang=less
var CommonCouponBarMinivue_type_style_index_1_id_7803d351_prod_lang_less = __webpack_require__(19175);
;// ./src/standard/module/components/CommonCouponBarMini.vue?vue&type=style&index=1&id=7803d351&prod&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/CommonCouponBarMini.vue



;



/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_CommonCouponBarMinivue_type_script_lang_js,
  CommonCouponBarMinivue_type_template_id_7803d351_scoped_true/* render */.XX,
  CommonCouponBarMinivue_type_template_id_7803d351_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "7803d351",
  null
  
)

/* harmony default export */ const CommonCouponBarMini = (component.exports);

/***/ }),

/***/ 84606:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var tryToString = __webpack_require__(16823);

var $TypeError = TypeError;

module.exports = function (O, P) {
  if (!delete O[P]) throw new $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
};


/***/ }),

/***/ 84607:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIDI1MiI+CjxwYXRoIGlkPSJWZWN0b3IiIGQ9Ik0yNy4wMTAyIDEyLjAxMDRDMjkuNDg4NSAxNC40ODg3IDI5LjQ5MDcgMTguNTA1IDI3LjAxNDcgMjAuOTgxTDI0Ljc3MzIgMjMuMjIyNkMyNC4xMzczIDIzLjg1OTUgMjMuMzcyOCAyNC4zNTM0IDIyLjUzMDggMjQuNjcxMkMyMS42ODg3IDI0Ljk4ODkgMjAuNzg4NSAyNS4xMjMyIDE5Ljg5MDQgMjUuMDY1MUwxMC43NDkyIDI0LjgyMzVDMTAuMTgzNSAyNC44MDg0IDkuNjQ2MDMgMjQuNTczMiA5LjI1MTA4IDI0LjE2OEM4Ljg1NjEzIDIzLjc2MjcgOC42MzQ5MSAyMy4yMTkzIDguNjM0NDYgMjIuNjUzNEM4LjYzNDI3IDIyLjM3NTggOC42ODg3OSAyMi4xMDA5IDguNzk0OTIgMjEuODQ0NEM4LjkwMTA1IDIxLjU4OCA5LjA1NjcxIDIxLjM1NDkgOS4yNTI5OCAyMS4xNTg2QzkuNDQ5MjUgMjAuOTYyNCA5LjY4MjMgMjAuODA2NyA5LjkzODc4IDIwLjcwMDZDMTAuMTk1MyAyMC41OTQ0IDEwLjQ3MDIgMjAuNTM5OSAxMC43NDc3IDIwLjU0MDFMMTMuODc0MSAyMC41NDE2TDUuNzA1NTkgMTIuMzczMkM0Ljg3OTE0IDExLjU0NjcgNC44Nzg3NiAxMC4yMDgzIDUuNzA0MSA5LjM4Mjk2QzUuOTAwNTMgOS4xODY3MSA2LjEzMzcgOS4wMzEwOSA2LjM5MDI4IDguOTI0OTZDNi42NDY4NyA4LjgxODgzIDYuOTIxODQgOC43NjQyNyA3LjE5OTUxIDguNzY0NDFDNy40NzcxNyA4Ljc2NDU1IDcuNzUyMDkgOC44MTkzOCA4LjAwODU3IDguOTI1NzdDOC4yNjUwNSA5LjAzMjE1IDguNDk4MDYgOS4xODgwMSA4LjY5NDMgOS4zODQ0NUwxMi4yNDY5IDEyLjkzNzFDMTEuNTI0MSAxMi4yMTQyIDExLjUyMzMgMTEuMDQzIDEyLjI0NTQgMTAuMzIwOUMxMi40MTczIDEwLjE0OTIgMTIuNjIxMyAxMC4wMTMgMTIuODQ1OCA5LjkyMDE3QzEzLjA3MDMgOS44MjczMyAxMy4zMTA5IDkuNzc5NjIgMTMuNTUzOSA5Ljc3OTc2QzEzLjc5NjggOS43Nzk5IDE0LjAzNzMgOS44Mjc4OSAxNC4yNjE3IDkuOTIwOThDMTQuNDg2MSAxMC4wMTQxIDE0LjY5IDEwLjE1MDUgMTQuODYxNyAxMC4zMjIzTDE1LjYwOTYgMTEuMDcwM0MxNC44ODY3IDEwLjM0NzQgMTQuODg2NCA5LjE3NTc4IDE1LjYwODUgOC40NTM2NkMxNS43ODA0IDguMjgxOTcgMTUuOTg0NCA4LjE0NTgyIDE2LjIwODkgOC4wNTI5OEMxNi40MzM0IDcuOTYwMTQgMTYuNjc0IDcuOTEyNDMgMTYuOTE2OSA3LjkxMjU3QzE3LjE1OTkgNy45MTI3MSAxNy40MDA0IDcuOTYwNjkgMTcuNjI0OCA4LjA1Mzc5QzE3Ljg0OTIgOC4xNDY4OSAxOC4wNTMgOC4yODMyNyAxOC4yMjQ3IDguNDU1MTVMMTkuMzQ2NiA5LjU3NzA0QzE4LjYyMzcgOC44NTQxNyAxOC42MjM0IDcuNjgyNTUgMTkuMzQ1NSA2Ljk2MDQzQzE5LjUxNzQgNi43ODg3NCAxOS43MjE0IDYuNjUyNTkgMTkuOTQ1OSA2LjU1OTc1QzIwLjE3MDQgNi40NjY5MSAyMC40MTEgNi40MTkyIDIwLjY1MzkgNi40MTkzNEMyMC44OTY5IDYuNDE5NDggMjEuMTM3NCA2LjQ2NzQ2IDIxLjM2MTggNi41NjA1NkMyMS41ODYyIDYuNjUzNjYgMjEuNzkgNi43OTAwNCAyMS45NjE3IDYuOTYxOTJMMjcuMDEwMiAxMi4wMTA0WiIgZmlsbD0iI0Y5QkJBQSIvPgo8L2c+Cjwvc3ZnPgo=";

/***/ }),

/***/ 84639:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(26312);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("8bb1d3ae", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 85071:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAwCAYAAAB0WahSAAAAAXNSR0IArs4c6QAABJtJREFUWEe1mE1oJEUUx9+rGSeTzK6HmEAOroIXjQdPCpLA4JCDIuTiYQ6CqODBDxRZERFWBNcVERRlD3pzwQV1Dt4UPEhLE1HITBIkY4igJzGBqBmkk57pTtfTqkw1NZ3+qO7ebRhoZqre+73/e6+mqhBKPJZl1avV6psAMDg5Ofmo1WoNi5rDohPFPNu2PyaipwCgjoifNJvN54raKwTS6XRqCwsLbxPRq7pjxtiVvb29t9rttpcXqBCIbdvvE9HFOGeI+F6z2XwtN8jOzs6LAPDt4uLir1mTu93uLa7rXuacpzpCxA/29/dfN1GGiHB7e/su7Pf7REQDxtgXvu9f293d7bbb7SAK1el0KvPz888yxq4CQJaSxDm/eHBwcDXOlrDd7/fPIeKDAPAC5/whCRJxeggAPwLAD4yxnyuVyh+u6/45GAyeJ6I3EJFlKSd+JyLOGHs3CILLs7Ozt9ZqtQuc87uJ6D5EvB8ABERD2YoD0f0IyAPXdf9yHOceUwhl4P86+ndmZuaXRqNxGwAsAMD5pCBSQYgIhsMhHB0dmYiQOKbRaMD09HSqjVQQAeE4TikIMRkRQcDU6/VEW+g4jijW0s7KGGCMAW5tbZHv+4XsiEjHhSmjjr6bGhVKYbfbpdFoJOeUMabPNwVQ40IQz/NEu4UgaYYErJ5KBZ/Xedi2iDA1NXWqiAAxfRRIGYDo3FwgZRzr0ccFnAhyM6JOUzwVxDRV0XFFlJMgvV5Pdk0RA1mSmwQj/IYgeYq1qHO922KLVSiSB6Socml1l6lIUad6SkxspIKYGIgrVNOFUZ8rV1aVmjItWwT6DMjGxkbuGlFLfBkAfa5MTR6QG+U4mlJjkJsFoIBiQdL63WSBMt0O6P/gEyB5oo5uBUycx+0C1Xeya0SN5N2h6R2W1a5pABOp2dzczN01aSlSYFGATEVMQbJSZ+o4Lq2yRtJA0pwn7fzjgOKc6+NkjURB8kaudu7RdOUBrVarkyBxEKYGFYg+PqleFDznHIIgON24C0V836exfOEpPw+ASWco52Kscj5xGhAHrPF+RJz4JAgihu+mQFnj9Ojjui5aI+LsKWHGssqzKOc89j4ky/l4bqhAWtuHIBGjZ9RJUymuU4T8QgXTZ+LfV1dhnCapiJYyqZS+DdAhhGP1MQUI98BiiVdn36RWHKsRAmlOBOg+59wPguCOpFSZQMkdmugaEfVEFZ8WrHQeWZBU2n5HxE8B4HPXdacYY48g4ssAcMHE8ZltpjrXxK0DeuQCiDF2REQ/AcA7nufZrVbrRDdoWVaVc95kjF0CgCYAVEyhhCJ8fBtwRhHVLYj4NwB8CQDXl5eXxUVf6iMuhOfm5h4AgMcR8Ym0u7OwRgTIcDgMW1ZbR8TrLgB8dnh4+OHq6upxFkDc75ZlneOcv8IYe5KI7ky6EMT19XWxoIXtCgDiYv8bIro2GAy+KwoQhVpbWzvveV4LEZ8hoocRsaaPkSCj0UheYxLR157nXVlZWfmtSPSmc2zbvjcIgpcA4DEAmJdZ6PV63x8fH39VqVSuLy0t/WNq7EaMsyzrdiJ6FBGf/g+b218mi7JyKgAAAABJRU5ErkJggg==";

/***/ }),

/***/ 85072:
/***/ ((module) => {

"use strict";


var stylesInDOM = [];
function getIndexByIdentifier(identifier) {
  var result = -1;
  for (var i = 0; i < stylesInDOM.length; i++) {
    if (stylesInDOM[i].identifier === identifier) {
      result = i;
      break;
    }
  }
  return result;
}
function modulesToDom(list, options) {
  var idCountMap = {};
  var identifiers = [];
  for (var i = 0; i < list.length; i++) {
    var item = list[i];
    var id = options.base ? item[0] + options.base : item[0];
    var count = idCountMap[id] || 0;
    var identifier = "".concat(id, " ").concat(count);
    idCountMap[id] = count + 1;
    var indexByIdentifier = getIndexByIdentifier(identifier);
    var obj = {
      css: item[1],
      media: item[2],
      sourceMap: item[3],
      supports: item[4],
      layer: item[5]
    };
    if (indexByIdentifier !== -1) {
      stylesInDOM[indexByIdentifier].references++;
      stylesInDOM[indexByIdentifier].updater(obj);
    } else {
      var updater = addElementStyle(obj, options);
      options.byIndex = i;
      stylesInDOM.splice(i, 0, {
        identifier: identifier,
        updater: updater,
        references: 1
      });
    }
    identifiers.push(identifier);
  }
  return identifiers;
}
function addElementStyle(obj, options) {
  var api = options.domAPI(options);
  api.update(obj);
  var updater = function updater(newObj) {
    if (newObj) {
      if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
        return;
      }
      api.update(obj = newObj);
    } else {
      api.remove();
    }
  };
  return updater;
}
module.exports = function (list, options) {
  options = options || {};
  list = list || [];
  var lastIdentifiers = modulesToDom(list, options);
  return function update(newList) {
    newList = newList || [];
    for (var i = 0; i < lastIdentifiers.length; i++) {
      var identifier = lastIdentifiers[i];
      var index = getIndexByIdentifier(identifier);
      stylesInDOM[index].references--;
    }
    var newLastIdentifiers = modulesToDom(newList, options);
    for (var _i = 0; _i < lastIdentifiers.length; _i++) {
      var _identifier = lastIdentifiers[_i];
      var _index = getIndexByIdentifier(_identifier);
      if (stylesInDOM[_index].references === 0) {
        stylesInDOM[_index].updater();
        stylesInDOM.splice(_index, 1);
      }
    }
    lastIdentifiers = newLastIdentifiers;
  };
};

/***/ }),

/***/ 85127:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  A: () => (/* binding */ Clock)
});

// UNUSED EXPORTS: __esModule

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Clock.vue?vue&type=template&id=1b85940e&scoped=true
var Clockvue_type_template_id_1b85940e_scoped_true = __webpack_require__(46251);
;// ./src/standard/module/components/Clock.vue?vue&type=template&id=1b85940e&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Clock.vue?vue&type=script&lang=js
var Clockvue_type_script_lang_js = __webpack_require__(28271);
;// ./src/standard/module/components/Clock.vue?vue&type=script&lang=js
 /* harmony default export */ const components_Clockvue_type_script_lang_js = (Clockvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Clock.vue?vue&type=style&index=0&id=1b85940e&prod&scoped=true&lang=less
var Clockvue_type_style_index_0_id_1b85940e_prod_scoped_true_lang_less = __webpack_require__(28839);
;// ./src/standard/module/components/Clock.vue?vue&type=style&index=0&id=1b85940e&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/Clock.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_Clockvue_type_script_lang_js,
  Clockvue_type_template_id_1b85940e_scoped_true/* render */.XX,
  Clockvue_type_template_id_1b85940e_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "1b85940e",
  null
  
)

/* harmony default export */ const Clock = (component.exports);

/***/ }),

/***/ 85187:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(3362);
const request = __webpack_require__(49388);
const globalCondition = __webpack_require__(41761);
const JdRankList = (__webpack_require__(25807)/* ["default"] */ .A);
const util = __webpack_require__(60340);
let jdOriginRank = null;
const addLink = async () => {
  const a = document.createElement('A');
  a.innerHTML = `
        <img style="width: 24px; height: 24px; margin-right: 5px;" src="https://cdn.gwdang.com/images/extensions/hand-white@2x.png">
        <img src="https://cdn.gwdang.com/images/extensions/switchToPc.svg">
      `;
  a.id = 'gwd-link';
  a.style.position = 'fixed';
  a.style.width = '258px';
  a.style.height = '43px';
  a.style.background = '#e03024';
  a.style.borderRadius = '4px';
  a.style.top = '40%';
  a.style.left = '70%';
  a.style.zIndex = 9;
  a.classList.add('gwd-row');
  a.classList.add('gwd-align');
  a.style.justifyContent = 'center';
  a.id = 'gwd-link-m';
  let id = location.href.split('product/')[1];
  if (!id) {
    id = await (__webpack_require__(41761).met)('GwdDpIdGot');
    id = id.replace('-3', '.html');
  }
  let now_url = 'https://item.jd.com/' + id;
  a.href = G.u_server + '/union/go?site_id=3&target_url=' + encodeURI(now_url) + '&union=' + G.union + '&column=h5_to_pc';
  document.body.appendChild(a);
};
const dpAddRanking = async dpId => {
  //console.log('add dpId', dpId)
  let aList = $('.crumb-wrap .crumb.fl .item > a').toArray();
  let cat = '';
  if (aList.length) {
    let last = aList[aList.length - 1];
    let lastUrl = last.href;
    cat = util.getParameterByName('cat', lastUrl);
  }
  const res = await request.get(G.server + '/extension/RelatedRank?dp_id=' + dpId + (cat ? `&jcid=${cat}` : ''));
  const e = document.createElement('DIV');
  $('.preview-wrap').append(e);
  let r = [];
  if (res.data) {
    if (res.data.rank_p) {
      r = r.concat(res.data.rank_p);
    }
    if (res.data.rank_c) {
      r = r.concat(res.data.rank_c);
    }
  }
  if (!r.length) {
    let catId = G.dp.cat_id.split('-').join(',');
    r = await request.get(G.server + '/extension/RelatedRank?jcid=' + catId);
    if (r.data) {
      r = r.data.rank_c;
    }
  }
  if (!r.length && jdOriginRank) {
    let link = `https://ranking.m.jd.com/comLandingPage/comLandingPage?contentId=${jdOriginRank.rankId}&rankType=${jdOriginRank.rankTypeInt}&from=gwdang`;
    link = encodeURIComponent(link);
    r = [{
      rname: jdOriginRank.name.split('·')[0],
      site_id: '3',
      s: 1,
      rurl: `${G.u_server}/union/go/?site_id=3&target_url=${link}&union=union_gwdang&column=rank&crc64=1`
    }];
  }
  if (!r.length) {
    return;
  }
  const a = document.createElement('A');
  a.innerHTML = '查看榜单全部商品';
  if (G.lang === 'zh-tr') a.innerHTML = '查看榜單全部商品';
  a.classList.add('gwd-font11');
  a.classList.add('gwd-red-after-visit');
  a.href = r[0].rurl;
  a.target = '_blank';
  a.style.color = '#7d7e80';
  a.style.textDecoration = 'underline';
  a.style.position = 'relative';
  a.style.top = '-3px';
  a.style.display = 'inline-block';
  a.style.marginLeft = '15px';
  // a.addEventListener('click', e => {
  //   e.preventDefault()
  //   window.gwdRank.rankClick(r[0])
  // })
  $('.preview-wrap').append(a);
  new Vue({
    el: e,
    render: h => h(JdRankList, {
      props: {
        data: r.map(item => {
          return item;
        }),
        top: 15,
        additionalClass: 'gwd-w210'
      }
    })
  });
  await (__webpack_require__(60340).sleep)(2000);
  let widthLeft = $('.crumb.fl').css('width'),
    widthRight = $('.contact.fr').css('width'),
    total = $('#crumb-wrap .w').css('width');
  let length = parseInt(total) - parseInt(widthLeft) - parseInt(widthRight);
  if (length < 235) return;
  let e2 = document.createElement('DIV');
  $('.crumb.fl').append(e2);
  new Vue({
    el: e2,
    render: h => h(JdRankList, {
      props: {
        data: r.map(item => {
          return item;
        }),
        top: -3,
        additionalClass: 'gwd-w235'
      }
    })
  });
  // const a2 = document.createElement('A')
  // a2.innerHTML = '查看'
  // a2.classList.add('gwd-font11')
  // a2.classList.add('gwd-red-after-visit')
  // a2.href = r[0].rurl
  // a2.target = '_blank'
  // a2.style.color = '#7d7e80'
  // a2.style.textDecoration = 'underline'
  // a2.style.position = 'relative'
  // a2.style.top = '-3px'
  // a2.style.display = 'inline-block'
  // a2.style.marginLeft = '15px'
  // $('.crumb.fl').append(a2)

  // setTimeout(() => {
  //   let h = $('#crumb-wrap').height()
  //   debugger
  //   if (h > 50) {
  //     a2.remove()
  //   }
  // }, 300)
};
const listPageAddRanking = res => {
  if (!res || !res.data) {
    return;
  }
  setInterval(() => {
    if (!$('.gwd-jd-rank').length) {
      const e = document.createElement('DIV');
      $('#J_selectorPrice').after(e);
      new Vue({
        el: e,
        render: h => h(JdRankList, {
          props: {
            data: res.data.rank_c,
            top: -1,
            additionalClass: 'gwd-w217'
          }
        })
      });
    }
  }, 2000);
};
const searchAddRanking = async () => {
  const word = util.getParameterByName('keyword');
  const res = await request.get(G.server + '/extension/RelatedRank?w=' + word);
  listPageAddRanking(res);
};
const listAddRanking = async () => {
  const word = util.getParameterByName('cat');
  const res = await request.get(G.server + '/extension/RelatedRank?jcid=' + word);
  console.log(res);
  listPageAddRanking(res);
};
module.exports = {
  async init() {
    if (G.site !== '360buy') {
      return;
    }
    if (G.from_device === 'bijiago' || G.from_device === 'biyibi') {
      if (window.gwd_G) {
        return;
      }
    }
    const s = document.createElement('STYLE');
    s.innerHTML = ` .gwd_unfold .fixed { top: initial } `;
    document.body.appendChild(s);
    if (location.href.includes('item.m.jd.com/') || location.href.includes('mitem.jd.hk/product') || location.href.includes('.m.jd.com/product')) {
      addLink();
    }
    if (G.pageInfo.type === 2) {
      await (__webpack_require__(30888).waitForConditionFn)(() => pageConfig.eventTarget, 0);
      // window.pageConfig.eventTarget.addListener('onStockReady', e => {
      //   require('common/extConsole').log('tg', e.stock.data.rankUnited.revertItem)
      //   jdOriginRank = e.stock.data.rankUnited.revertItem
      // })

      let dpId = await globalCondition.met('GwdDpIdGot');
      await globalCondition.met('QRLinkReady');
      dpAddRanking(dpId);
    } else if (location.href.toLowerCase().includes('search.jd.com/search?keyword')) {
      searchAddRanking();
    } else if (location.href.includes('https://list.jd.com/list.html')) {
      listAddRanking();
    }
  }
};

/***/ }),

/***/ 85213:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


module.exports = () => {
  if (G.site === 'keede' && Array.prototype.forEach.toString() !== "function forEach() { [native code] }") {
    Array.prototype.forEach = function (callback, thisArg) {
      var T, k;
      if (this == null) {
        throw new TypeError(' this is null or not defined');
      }
      var O = Object(this);
      var len = O.length >>> 0;
      if (typeof callback !== "function") {
        throw new TypeError(callback + ' is not a function');
      }
      if (arguments.length > 1) {
        T = thisArg;
      }
      k = 0;
      while (k < len) {
        var kValue;
        if (k in O) {
          kValue = O[k];
          callback.call(T, kValue, k, O);
        }
        k++;
      }
    };
  }
};

/***/ }),

/***/ 85471:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Ay: () => (/* binding */ Vue)
/* harmony export */ });
/* unused harmony exports EffectScope, computed, customRef, defineAsyncComponent, defineComponent, del, effectScope, getCurrentInstance, getCurrentScope, h, inject, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, mergeDefaults, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, provide, proxyRefs, reactive, readonly, ref, set, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useListeners, useSlots, version, watch, watchEffect, watchPostEffect, watchSyncEffect */
/*!
 * Vue.js v2.7.16
 * (c) 2014-2023 Evan You
 * Released under the MIT License.
 */
var emptyObject = Object.freeze({});
var isArray = Array.isArray;
// These helpers produce better VM code in JS engines due to their
// explicitness and function inlining.
function isUndef(v) {
    return v === undefined || v === null;
}
function isDef(v) {
    return v !== undefined && v !== null;
}
function isTrue(v) {
    return v === true;
}
function isFalse(v) {
    return v === false;
}
/**
 * Check if value is primitive.
 */
function isPrimitive(value) {
    return (typeof value === 'string' ||
        typeof value === 'number' ||
        // $flow-disable-line
        typeof value === 'symbol' ||
        typeof value === 'boolean');
}
function isFunction(value) {
    return typeof value === 'function';
}
/**
 * Quick object check - this is primarily used to tell
 * objects from primitive values when we know the value
 * is a JSON-compliant type.
 */
function isObject(obj) {
    return obj !== null && typeof obj === 'object';
}
/**
 * Get the raw type string of a value, e.g., [object Object].
 */
var _toString = Object.prototype.toString;
function toRawType(value) {
    return _toString.call(value).slice(8, -1);
}
/**
 * Strict object type check. Only returns true
 * for plain JavaScript objects.
 */
function isPlainObject(obj) {
    return _toString.call(obj) === '[object Object]';
}
function isRegExp(v) {
    return _toString.call(v) === '[object RegExp]';
}
/**
 * Check if val is a valid array index.
 */
function isValidArrayIndex(val) {
    var n = parseFloat(String(val));
    return n >= 0 && Math.floor(n) === n && isFinite(val);
}
function isPromise(val) {
    return (isDef(val) &&
        typeof val.then === 'function' &&
        typeof val.catch === 'function');
}
/**
 * Convert a value to a string that is actually rendered.
 */
function toString(val) {
    return val == null
        ? ''
        : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
            ? JSON.stringify(val, replacer, 2)
            : String(val);
}
function replacer(_key, val) {
    // avoid circular deps from v3
    if (val && val.__v_isRef) {
        return val.value;
    }
    return val;
}
/**
 * Convert an input value to a number for persistence.
 * If the conversion fails, return original string.
 */
function toNumber(val) {
    var n = parseFloat(val);
    return isNaN(n) ? val : n;
}
/**
 * Make a map and return a function for checking if a key
 * is in that map.
 */
function makeMap(str, expectsLowerCase) {
    var map = Object.create(null);
    var list = str.split(',');
    for (var i = 0; i < list.length; i++) {
        map[list[i]] = true;
    }
    return expectsLowerCase ? function (val) { return map[val.toLowerCase()]; } : function (val) { return map[val]; };
}
/**
 * Check if a tag is a built-in tag.
 */
var isBuiltInTag = makeMap('slot,component', true);
/**
 * Check if an attribute is a reserved attribute.
 */
var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
/**
 * Remove an item from an array.
 */
function remove$2(arr, item) {
    var len = arr.length;
    if (len) {
        // fast path for the only / last item
        if (item === arr[len - 1]) {
            arr.length = len - 1;
            return;
        }
        var index = arr.indexOf(item);
        if (index > -1) {
            return arr.splice(index, 1);
        }
    }
}
/**
 * Check whether an object has the property.
 */
var hasOwnProperty = Object.prototype.hasOwnProperty;
function hasOwn(obj, key) {
    return hasOwnProperty.call(obj, key);
}
/**
 * Create a cached version of a pure function.
 */
function cached(fn) {
    var cache = Object.create(null);
    return function cachedFn(str) {
        var hit = cache[str];
        return hit || (cache[str] = fn(str));
    };
}
/**
 * Camelize a hyphen-delimited string.
 */
var camelizeRE = /-(\w)/g;
var camelize = cached(function (str) {
    return str.replace(camelizeRE, function (_, c) { return (c ? c.toUpperCase() : ''); });
});
/**
 * Capitalize a string.
 */
var capitalize = cached(function (str) {
    return str.charAt(0).toUpperCase() + str.slice(1);
});
/**
 * Hyphenate a camelCase string.
 */
var hyphenateRE = /\B([A-Z])/g;
var hyphenate = cached(function (str) {
    return str.replace(hyphenateRE, '-$1').toLowerCase();
});
/**
 * Simple bind polyfill for environments that do not support it,
 * e.g., PhantomJS 1.x. Technically, we don't need this anymore
 * since native bind is now performant enough in most browsers.
 * But removing it would mean breaking code that was able to run in
 * PhantomJS 1.x, so this must be kept for backward compatibility.
 */
/* istanbul ignore next */
function polyfillBind(fn, ctx) {
    function boundFn(a) {
        var l = arguments.length;
        return l
            ? l > 1
                ? fn.apply(ctx, arguments)
                : fn.call(ctx, a)
            : fn.call(ctx);
    }
    boundFn._length = fn.length;
    return boundFn;
}
function nativeBind(fn, ctx) {
    return fn.bind(ctx);
}
// @ts-expect-error bind cannot be `undefined`
var bind = Function.prototype.bind ? nativeBind : polyfillBind;
/**
 * Convert an Array-like object to a real Array.
 */
function toArray(list, start) {
    start = start || 0;
    var i = list.length - start;
    var ret = new Array(i);
    while (i--) {
        ret[i] = list[i + start];
    }
    return ret;
}
/**
 * Mix properties into target object.
 */
function extend(to, _from) {
    for (var key in _from) {
        to[key] = _from[key];
    }
    return to;
}
/**
 * Merge an Array of Objects into a single Object.
 */
function toObject(arr) {
    var res = {};
    for (var i = 0; i < arr.length; i++) {
        if (arr[i]) {
            extend(res, arr[i]);
        }
    }
    return res;
}
/* eslint-disable no-unused-vars */
/**
 * Perform no operation.
 * Stubbing args to make Flow happy without leaving useless transpiled code
 * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
 */
function noop(a, b, c) { }
/**
 * Always return false.
 */
var no = function (a, b, c) { return false; };
/* eslint-enable no-unused-vars */
/**
 * Return the same value.
 */
var identity = function (_) { return _; };
/**
 * Check if two values are loosely equal - that is,
 * if they are plain objects, do they have the same shape?
 */
function looseEqual(a, b) {
    if (a === b)
        return true;
    var isObjectA = isObject(a);
    var isObjectB = isObject(b);
    if (isObjectA && isObjectB) {
        try {
            var isArrayA = Array.isArray(a);
            var isArrayB = Array.isArray(b);
            if (isArrayA && isArrayB) {
                return (a.length === b.length &&
                    a.every(function (e, i) {
                        return looseEqual(e, b[i]);
                    }));
            }
            else if (a instanceof Date && b instanceof Date) {
                return a.getTime() === b.getTime();
            }
            else if (!isArrayA && !isArrayB) {
                var keysA = Object.keys(a);
                var keysB = Object.keys(b);
                return (keysA.length === keysB.length &&
                    keysA.every(function (key) {
                        return looseEqual(a[key], b[key]);
                    }));
            }
            else {
                /* istanbul ignore next */
                return false;
            }
        }
        catch (e) {
            /* istanbul ignore next */
            return false;
        }
    }
    else if (!isObjectA && !isObjectB) {
        return String(a) === String(b);
    }
    else {
        return false;
    }
}
/**
 * Return the first index at which a loosely equal value can be
 * found in the array (if value is a plain object, the array must
 * contain an object of the same shape), or -1 if it is not present.
 */
function looseIndexOf(arr, val) {
    for (var i = 0; i < arr.length; i++) {
        if (looseEqual(arr[i], val))
            return i;
    }
    return -1;
}
/**
 * Ensure a function is called only once.
 */
function once(fn) {
    var called = false;
    return function () {
        if (!called) {
            called = true;
            fn.apply(this, arguments);
        }
    };
}
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is#polyfill
function hasChanged(x, y) {
    if (x === y) {
        return x === 0 && 1 / x !== 1 / y;
    }
    else {
        return x === x || y === y;
    }
}

var SSR_ATTR = 'data-server-rendered';
var ASSET_TYPES = ['component', 'directive', 'filter'];
var LIFECYCLE_HOOKS = [
    'beforeCreate',
    'created',
    'beforeMount',
    'mounted',
    'beforeUpdate',
    'updated',
    'beforeDestroy',
    'destroyed',
    'activated',
    'deactivated',
    'errorCaptured',
    'serverPrefetch',
    'renderTracked',
    'renderTriggered'
];

var config = {
    /**
     * Option merge strategies (used in core/util/options)
     */
    // $flow-disable-line
    optionMergeStrategies: Object.create(null),
    /**
     * Whether to suppress warnings.
     */
    silent: false,
    /**
     * Show production mode tip message on boot?
     */
    productionTip: "production" !== 'production',
    /**
     * Whether to enable devtools
     */
    devtools: "production" !== 'production',
    /**
     * Whether to record perf
     */
    performance: false,
    /**
     * Error handler for watcher errors
     */
    errorHandler: null,
    /**
     * Warn handler for watcher warns
     */
    warnHandler: null,
    /**
     * Ignore certain custom elements
     */
    ignoredElements: [],
    /**
     * Custom user key aliases for v-on
     */
    // $flow-disable-line
    keyCodes: Object.create(null),
    /**
     * Check if a tag is reserved so that it cannot be registered as a
     * component. This is platform-dependent and may be overwritten.
     */
    isReservedTag: no,
    /**
     * Check if an attribute is reserved so that it cannot be used as a component
     * prop. This is platform-dependent and may be overwritten.
     */
    isReservedAttr: no,
    /**
     * Check if a tag is an unknown element.
     * Platform-dependent.
     */
    isUnknownElement: no,
    /**
     * Get the namespace of an element
     */
    getTagNamespace: noop,
    /**
     * Parse the real tag name for the specific platform.
     */
    parsePlatformTagName: identity,
    /**
     * Check if an attribute must be bound using property, e.g. value
     * Platform-dependent.
     */
    mustUseProp: no,
    /**
     * Perform updates asynchronously. Intended to be used by Vue Test Utils
     * This will significantly reduce performance if set to false.
     */
    async: true,
    /**
     * Exposed for legacy reasons
     */
    _lifecycleHooks: LIFECYCLE_HOOKS
};

/**
 * unicode letters used for parsing html tags, component names and property paths.
 * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
 * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
 */
var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
/**
 * Check if a string starts with $ or _
 */
function isReserved(str) {
    var c = (str + '').charCodeAt(0);
    return c === 0x24 || c === 0x5f;
}
/**
 * Define a property.
 */
function def(obj, key, val, enumerable) {
    Object.defineProperty(obj, key, {
        value: val,
        enumerable: !!enumerable,
        writable: true,
        configurable: true
    });
}
/**
 * Parse simple path.
 */
var bailRE = new RegExp("[^".concat(unicodeRegExp.source, ".$_\\d]"));
function parsePath(path) {
    if (bailRE.test(path)) {
        return;
    }
    var segments = path.split('.');
    return function (obj) {
        for (var i = 0; i < segments.length; i++) {
            if (!obj)
                return;
            obj = obj[segments[i]];
        }
        return obj;
    };
}

// can we use __proto__?
var hasProto = '__proto__' in {};
// Browser environment sniffing
var inBrowser = typeof window !== 'undefined';
var UA = inBrowser && window.navigator.userAgent.toLowerCase();
var isIE = UA && /msie|trident/.test(UA);
var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
var isEdge = UA && UA.indexOf('edge/') > 0;
UA && UA.indexOf('android') > 0;
var isIOS = UA && /iphone|ipad|ipod|ios/.test(UA);
UA && /chrome\/\d+/.test(UA) && !isEdge;
UA && /phantomjs/.test(UA);
var isFF = UA && UA.match(/firefox\/(\d+)/);
// Firefox has a "watch" function on Object.prototype...
// @ts-expect-error firebox support
var nativeWatch = {}.watch;
var supportsPassive = false;
if (inBrowser) {
    try {
        var opts = {};
        Object.defineProperty(opts, 'passive', {
            get: function () {
                /* istanbul ignore next */
                supportsPassive = true;
            }
        }); // https://github.com/facebook/flow/issues/285
        window.addEventListener('test-passive', null, opts);
    }
    catch (e) { }
}
// this needs to be lazy-evaled because vue may be required before
// vue-server-renderer can set VUE_ENV
var _isServer;
var isServerRendering = function () {
    if (_isServer === undefined) {
        /* istanbul ignore if */
        if (!inBrowser && typeof global !== 'undefined') {
            // detect presence of vue-server-renderer and avoid
            // Webpack shimming the process
            _isServer =
                global['process'] && global['process'].env.VUE_ENV === 'server';
        }
        else {
            _isServer = false;
        }
    }
    return _isServer;
};
// detect devtools
var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
/* istanbul ignore next */
function isNative(Ctor) {
    return typeof Ctor === 'function' && /native code/.test(Ctor.toString());
}
var hasSymbol = typeof Symbol !== 'undefined' &&
    isNative(Symbol) &&
    typeof Reflect !== 'undefined' &&
    isNative(Reflect.ownKeys);
var _Set; // $flow-disable-line
/* istanbul ignore if */ if (typeof Set !== 'undefined' && isNative(Set)) {
    // use native Set when available.
    _Set = Set;
}
else {
    // a non-standard Set polyfill that only works with primitive keys.
    _Set = /** @class */ (function () {
        function Set() {
            this.set = Object.create(null);
        }
        Set.prototype.has = function (key) {
            return this.set[key] === true;
        };
        Set.prototype.add = function (key) {
            this.set[key] = true;
        };
        Set.prototype.clear = function () {
            this.set = Object.create(null);
        };
        return Set;
    }());
}

var currentInstance = null;
/**
 * This is exposed for compatibility with v3 (e.g. some functions in VueUse
 * relies on it). Do not use this internally, just use `currentInstance`.
 *
 * @internal this function needs manual type declaration because it relies
 * on previously manually authored types from Vue 2
 */
function getCurrentInstance() {
    return currentInstance && { proxy: currentInstance };
}
/**
 * @internal
 */
function setCurrentInstance(vm) {
    if (vm === void 0) { vm = null; }
    if (!vm)
        currentInstance && currentInstance._scope.off();
    currentInstance = vm;
    vm && vm._scope.on();
}

/**
 * @internal
 */
var VNode = /** @class */ (function () {
    function VNode(tag, data, children, text, elm, context, componentOptions, asyncFactory) {
        this.tag = tag;
        this.data = data;
        this.children = children;
        this.text = text;
        this.elm = elm;
        this.ns = undefined;
        this.context = context;
        this.fnContext = undefined;
        this.fnOptions = undefined;
        this.fnScopeId = undefined;
        this.key = data && data.key;
        this.componentOptions = componentOptions;
        this.componentInstance = undefined;
        this.parent = undefined;
        this.raw = false;
        this.isStatic = false;
        this.isRootInsert = true;
        this.isComment = false;
        this.isCloned = false;
        this.isOnce = false;
        this.asyncFactory = asyncFactory;
        this.asyncMeta = undefined;
        this.isAsyncPlaceholder = false;
    }
    Object.defineProperty(VNode.prototype, "child", {
        // DEPRECATED: alias for componentInstance for backwards compat.
        /* istanbul ignore next */
        get: function () {
            return this.componentInstance;
        },
        enumerable: false,
        configurable: true
    });
    return VNode;
}());
var createEmptyVNode = function (text) {
    if (text === void 0) { text = ''; }
    var node = new VNode();
    node.text = text;
    node.isComment = true;
    return node;
};
function createTextVNode(val) {
    return new VNode(undefined, undefined, undefined, String(val));
}
// optimized shallow clone
// used for static nodes and slot nodes because they may be reused across
// multiple renders, cloning them avoids errors when DOM manipulations rely
// on their elm reference.
function cloneVNode(vnode) {
    var cloned = new VNode(vnode.tag, vnode.data, 
    // #7975
    // clone children array to avoid mutating original in case of cloning
    // a child.
    vnode.children && vnode.children.slice(), vnode.text, vnode.elm, vnode.context, vnode.componentOptions, vnode.asyncFactory);
    cloned.ns = vnode.ns;
    cloned.isStatic = vnode.isStatic;
    cloned.key = vnode.key;
    cloned.isComment = vnode.isComment;
    cloned.fnContext = vnode.fnContext;
    cloned.fnOptions = vnode.fnOptions;
    cloned.fnScopeId = vnode.fnScopeId;
    cloned.asyncMeta = vnode.asyncMeta;
    cloned.isCloned = true;
    return cloned;
}

/******************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

var __assign = function() {
    __assign = Object.assign || function __assign(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};

typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
    var e = new Error(message);
    return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
};

var uid$2 = 0;
var pendingCleanupDeps = [];
var cleanupDeps = function () {
    for (var i = 0; i < pendingCleanupDeps.length; i++) {
        var dep = pendingCleanupDeps[i];
        dep.subs = dep.subs.filter(function (s) { return s; });
        dep._pending = false;
    }
    pendingCleanupDeps.length = 0;
};
/**
 * A dep is an observable that can have multiple
 * directives subscribing to it.
 * @internal
 */
var Dep = /** @class */ (function () {
    function Dep() {
        // pending subs cleanup
        this._pending = false;
        this.id = uid$2++;
        this.subs = [];
    }
    Dep.prototype.addSub = function (sub) {
        this.subs.push(sub);
    };
    Dep.prototype.removeSub = function (sub) {
        // #12696 deps with massive amount of subscribers are extremely slow to
        // clean up in Chromium
        // to workaround this, we unset the sub for now, and clear them on
        // next scheduler flush.
        this.subs[this.subs.indexOf(sub)] = null;
        if (!this._pending) {
            this._pending = true;
            pendingCleanupDeps.push(this);
        }
    };
    Dep.prototype.depend = function (info) {
        if (Dep.target) {
            Dep.target.addDep(this);
            if (false) {}
        }
    };
    Dep.prototype.notify = function (info) {
        // stabilize the subscriber list first
        var subs = this.subs.filter(function (s) { return s; });
        if (false) {}
        for (var i = 0, l = subs.length; i < l; i++) {
            var sub = subs[i];
            if (false) {}
            sub.update();
        }
    };
    return Dep;
}());
// The current target watcher being evaluated.
// This is globally unique because only one watcher
// can be evaluated at a time.
Dep.target = null;
var targetStack = [];
function pushTarget(target) {
    targetStack.push(target);
    Dep.target = target;
}
function popTarget() {
    targetStack.pop();
    Dep.target = targetStack[targetStack.length - 1];
}

/*
 * not type checking this file because flow doesn't play well with
 * dynamically accessing methods on Array prototype
 */
var arrayProto = Array.prototype;
var arrayMethods = Object.create(arrayProto);
var methodsToPatch = [
    'push',
    'pop',
    'shift',
    'unshift',
    'splice',
    'sort',
    'reverse'
];
/**
 * Intercept mutating methods and emit events
 */
methodsToPatch.forEach(function (method) {
    // cache original method
    var original = arrayProto[method];
    def(arrayMethods, method, function mutator() {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
        }
        var result = original.apply(this, args);
        var ob = this.__ob__;
        var inserted;
        switch (method) {
            case 'push':
            case 'unshift':
                inserted = args;
                break;
            case 'splice':
                inserted = args.slice(2);
                break;
        }
        if (inserted)
            ob.observeArray(inserted);
        // notify change
        if (false) {}
        else {
            ob.dep.notify();
        }
        return result;
    });
});

var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
var NO_INITIAL_VALUE = {};
/**
 * In some cases we may want to disable observation inside a component's
 * update computation.
 */
var shouldObserve = true;
function toggleObserving(value) {
    shouldObserve = value;
}
// ssr mock dep
var mockDep = {
    notify: noop,
    depend: noop,
    addSub: noop,
    removeSub: noop
};
/**
 * Observer class that is attached to each observed
 * object. Once attached, the observer converts the target
 * object's property keys into getter/setters that
 * collect dependencies and dispatch updates.
 */
var Observer = /** @class */ (function () {
    function Observer(value, shallow, mock) {
        if (shallow === void 0) { shallow = false; }
        if (mock === void 0) { mock = false; }
        this.value = value;
        this.shallow = shallow;
        this.mock = mock;
        // this.value = value
        this.dep = mock ? mockDep : new Dep();
        this.vmCount = 0;
        def(value, '__ob__', this);
        if (isArray(value)) {
            if (!mock) {
                if (hasProto) {
                    value.__proto__ = arrayMethods;
                    /* eslint-enable no-proto */
                }
                else {
                    for (var i = 0, l = arrayKeys.length; i < l; i++) {
                        var key = arrayKeys[i];
                        def(value, key, arrayMethods[key]);
                    }
                }
            }
            if (!shallow) {
                this.observeArray(value);
            }
        }
        else {
            /**
             * Walk through all properties and convert them into
             * getter/setters. This method should only be called when
             * value type is Object.
             */
            var keys = Object.keys(value);
            for (var i = 0; i < keys.length; i++) {
                var key = keys[i];
                defineReactive(value, key, NO_INITIAL_VALUE, undefined, shallow, mock);
            }
        }
    }
    /**
     * Observe a list of Array items.
     */
    Observer.prototype.observeArray = function (value) {
        for (var i = 0, l = value.length; i < l; i++) {
            observe(value[i], false, this.mock);
        }
    };
    return Observer;
}());
// helpers
/**
 * Attempt to create an observer instance for a value,
 * returns the new observer if successfully observed,
 * or the existing observer if the value already has one.
 */
function observe(value, shallow, ssrMockReactivity) {
    if (value && hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
        return value.__ob__;
    }
    if (shouldObserve &&
        (ssrMockReactivity || !isServerRendering()) &&
        (isArray(value) || isPlainObject(value)) &&
        Object.isExtensible(value) &&
        !value.__v_skip /* ReactiveFlags.SKIP */ &&
        !isRef(value) &&
        !(value instanceof VNode)) {
        return new Observer(value, shallow, ssrMockReactivity);
    }
}
/**
 * Define a reactive property on an Object.
 */
function defineReactive(obj, key, val, customSetter, shallow, mock, observeEvenIfShallow) {
    if (observeEvenIfShallow === void 0) { observeEvenIfShallow = false; }
    var dep = new Dep();
    var property = Object.getOwnPropertyDescriptor(obj, key);
    if (property && property.configurable === false) {
        return;
    }
    // cater for pre-defined getter/setters
    var getter = property && property.get;
    var setter = property && property.set;
    if ((!getter || setter) &&
        (val === NO_INITIAL_VALUE || arguments.length === 2)) {
        val = obj[key];
    }
    var childOb = shallow ? val && val.__ob__ : observe(val, false, mock);
    Object.defineProperty(obj, key, {
        enumerable: true,
        configurable: true,
        get: function reactiveGetter() {
            var value = getter ? getter.call(obj) : val;
            if (Dep.target) {
                if (false) {}
                else {
                    dep.depend();
                }
                if (childOb) {
                    childOb.dep.depend();
                    if (isArray(value)) {
                        dependArray(value);
                    }
                }
            }
            return isRef(value) && !shallow ? value.value : value;
        },
        set: function reactiveSetter(newVal) {
            var value = getter ? getter.call(obj) : val;
            if (!hasChanged(value, newVal)) {
                return;
            }
            if (false) {}
            if (setter) {
                setter.call(obj, newVal);
            }
            else if (getter) {
                // #7981: for accessor properties without setter
                return;
            }
            else if (!shallow && isRef(value) && !isRef(newVal)) {
                value.value = newVal;
                return;
            }
            else {
                val = newVal;
            }
            childOb = shallow ? newVal && newVal.__ob__ : observe(newVal, false, mock);
            if (false) {}
            else {
                dep.notify();
            }
        }
    });
    return dep;
}
function set(target, key, val) {
    if (false) {}
    if (isReadonly(target)) {
         false && 0;
        return;
    }
    var ob = target.__ob__;
    if (isArray(target) && isValidArrayIndex(key)) {
        target.length = Math.max(target.length, key);
        target.splice(key, 1, val);
        // when mocking for SSR, array methods are not hijacked
        if (ob && !ob.shallow && ob.mock) {
            observe(val, false, true);
        }
        return val;
    }
    if (key in target && !(key in Object.prototype)) {
        target[key] = val;
        return val;
    }
    if (target._isVue || (ob && ob.vmCount)) {
         false &&
            0;
        return val;
    }
    if (!ob) {
        target[key] = val;
        return val;
    }
    defineReactive(ob.value, key, val, undefined, ob.shallow, ob.mock);
    if (false) {}
    else {
        ob.dep.notify();
    }
    return val;
}
function del(target, key) {
    if (false) {}
    if (isArray(target) && isValidArrayIndex(key)) {
        target.splice(key, 1);
        return;
    }
    var ob = target.__ob__;
    if (target._isVue || (ob && ob.vmCount)) {
         false &&
            0;
        return;
    }
    if (isReadonly(target)) {
         false &&
            0;
        return;
    }
    if (!hasOwn(target, key)) {
        return;
    }
    delete target[key];
    if (!ob) {
        return;
    }
    if (false) {}
    else {
        ob.dep.notify();
    }
}
/**
 * Collect dependencies on array elements when the array is touched, since
 * we cannot intercept array element access like property getters.
 */
function dependArray(value) {
    for (var e = void 0, i = 0, l = value.length; i < l; i++) {
        e = value[i];
        if (e && e.__ob__) {
            e.__ob__.dep.depend();
        }
        if (isArray(e)) {
            dependArray(e);
        }
    }
}

function reactive(target) {
    makeReactive(target, false);
    return target;
}
/**
 * Return a shallowly-reactive copy of the original object, where only the root
 * level properties are reactive. It also does not auto-unwrap refs (even at the
 * root level).
 */
function shallowReactive(target) {
    makeReactive(target, true);
    def(target, "__v_isShallow" /* ReactiveFlags.IS_SHALLOW */, true);
    return target;
}
function makeReactive(target, shallow) {
    // if trying to observe a readonly proxy, return the readonly version.
    if (!isReadonly(target)) {
        if (false) { var existingOb; }
        var ob = observe(target, shallow, isServerRendering() /* ssr mock reactivity */);
        if (false) {}
    }
}
function isReactive(value) {
    if (isReadonly(value)) {
        return isReactive(value["__v_raw" /* ReactiveFlags.RAW */]);
    }
    return !!(value && value.__ob__);
}
function isShallow(value) {
    return !!(value && value.__v_isShallow);
}
function isReadonly(value) {
    return !!(value && value.__v_isReadonly);
}
function isProxy(value) {
    return isReactive(value) || isReadonly(value);
}
function toRaw(observed) {
    var raw = observed && observed["__v_raw" /* ReactiveFlags.RAW */];
    return raw ? toRaw(raw) : observed;
}
function markRaw(value) {
    // non-extensible objects won't be observed anyway
    if (Object.isExtensible(value)) {
        def(value, "__v_skip" /* ReactiveFlags.SKIP */, true);
    }
    return value;
}
/**
 * @internal
 */
function isCollectionType(value) {
    var type = toRawType(value);
    return (type === 'Map' || type === 'WeakMap' || type === 'Set' || type === 'WeakSet');
}

/**
 * @internal
 */
var RefFlag = "__v_isRef";
function isRef(r) {
    return !!(r && r.__v_isRef === true);
}
function ref$1(value) {
    return createRef(value, false);
}
function shallowRef(value) {
    return createRef(value, true);
}
function createRef(rawValue, shallow) {
    if (isRef(rawValue)) {
        return rawValue;
    }
    var ref = {};
    def(ref, RefFlag, true);
    def(ref, "__v_isShallow" /* ReactiveFlags.IS_SHALLOW */, shallow);
    def(ref, 'dep', defineReactive(ref, 'value', rawValue, null, shallow, isServerRendering()));
    return ref;
}
function triggerRef(ref) {
    if (false) {}
    if (false) {}
    else {
        ref.dep && ref.dep.notify();
    }
}
function unref(ref) {
    return isRef(ref) ? ref.value : ref;
}
function proxyRefs(objectWithRefs) {
    if (isReactive(objectWithRefs)) {
        return objectWithRefs;
    }
    var proxy = {};
    var keys = Object.keys(objectWithRefs);
    for (var i = 0; i < keys.length; i++) {
        proxyWithRefUnwrap(proxy, objectWithRefs, keys[i]);
    }
    return proxy;
}
function proxyWithRefUnwrap(target, source, key) {
    Object.defineProperty(target, key, {
        enumerable: true,
        configurable: true,
        get: function () {
            var val = source[key];
            if (isRef(val)) {
                return val.value;
            }
            else {
                var ob = val && val.__ob__;
                if (ob)
                    ob.dep.depend();
                return val;
            }
        },
        set: function (value) {
            var oldValue = source[key];
            if (isRef(oldValue) && !isRef(value)) {
                oldValue.value = value;
            }
            else {
                source[key] = value;
            }
        }
    });
}
function customRef(factory) {
    var dep = new Dep();
    var _a = factory(function () {
        if (false) {}
        else {
            dep.depend();
        }
    }, function () {
        if (false) {}
        else {
            dep.notify();
        }
    }), get = _a.get, set = _a.set;
    var ref = {
        get value() {
            return get();
        },
        set value(newVal) {
            set(newVal);
        }
    };
    def(ref, RefFlag, true);
    return ref;
}
function toRefs(object) {
    if (false) {}
    var ret = isArray(object) ? new Array(object.length) : {};
    for (var key in object) {
        ret[key] = toRef(object, key);
    }
    return ret;
}
function toRef(object, key, defaultValue) {
    var val = object[key];
    if (isRef(val)) {
        return val;
    }
    var ref = {
        get value() {
            var val = object[key];
            return val === undefined ? defaultValue : val;
        },
        set value(newVal) {
            object[key] = newVal;
        }
    };
    def(ref, RefFlag, true);
    return ref;
}

var rawToReadonlyFlag = "__v_rawToReadonly";
var rawToShallowReadonlyFlag = "__v_rawToShallowReadonly";
function readonly(target) {
    return createReadonly(target, false);
}
function createReadonly(target, shallow) {
    if (!isPlainObject(target)) {
        if (false) {}
        return target;
    }
    if (false) {}
    // already a readonly object
    if (isReadonly(target)) {
        return target;
    }
    // already has a readonly proxy
    var existingFlag = shallow ? rawToShallowReadonlyFlag : rawToReadonlyFlag;
    var existingProxy = target[existingFlag];
    if (existingProxy) {
        return existingProxy;
    }
    var proxy = Object.create(Object.getPrototypeOf(target));
    def(target, existingFlag, proxy);
    def(proxy, "__v_isReadonly" /* ReactiveFlags.IS_READONLY */, true);
    def(proxy, "__v_raw" /* ReactiveFlags.RAW */, target);
    if (isRef(target)) {
        def(proxy, RefFlag, true);
    }
    if (shallow || isShallow(target)) {
        def(proxy, "__v_isShallow" /* ReactiveFlags.IS_SHALLOW */, true);
    }
    var keys = Object.keys(target);
    for (var i = 0; i < keys.length; i++) {
        defineReadonlyProperty(proxy, target, keys[i], shallow);
    }
    return proxy;
}
function defineReadonlyProperty(proxy, target, key, shallow) {
    Object.defineProperty(proxy, key, {
        enumerable: true,
        configurable: true,
        get: function () {
            var val = target[key];
            return shallow || !isPlainObject(val) ? val : readonly(val);
        },
        set: function () {
             false &&
                0;
        }
    });
}
/**
 * Returns a reactive-copy of the original object, where only the root level
 * properties are readonly, and does NOT unwrap refs nor recursively convert
 * returned properties.
 * This is used for creating the props proxy object for stateful components.
 */
function shallowReadonly(target) {
    return createReadonly(target, true);
}

function computed(getterOrOptions, debugOptions) {
    var getter;
    var setter;
    var onlyGetter = isFunction(getterOrOptions);
    if (onlyGetter) {
        getter = getterOrOptions;
        setter =  false
            ? 0
            : noop;
    }
    else {
        getter = getterOrOptions.get;
        setter = getterOrOptions.set;
    }
    var watcher = isServerRendering()
        ? null
        : new Watcher(currentInstance, getter, noop, { lazy: true });
    if (false) {}
    var ref = {
        // some libs rely on the presence effect for checking computed refs
        // from normal refs, but the implementation doesn't matter
        effect: watcher,
        get value() {
            if (watcher) {
                if (watcher.dirty) {
                    watcher.evaluate();
                }
                if (Dep.target) {
                    if (false) {}
                    watcher.depend();
                }
                return watcher.value;
            }
            else {
                return getter();
            }
        },
        set value(newVal) {
            setter(newVal);
        }
    };
    def(ref, RefFlag, true);
    def(ref, "__v_isReadonly" /* ReactiveFlags.IS_READONLY */, onlyGetter);
    return ref;
}

var WATCHER = "watcher";
var WATCHER_CB = "".concat(WATCHER, " callback");
var WATCHER_GETTER = "".concat(WATCHER, " getter");
var WATCHER_CLEANUP = "".concat(WATCHER, " cleanup");
// Simple effect.
function watchEffect(effect, options) {
    return doWatch(effect, null, options);
}
function watchPostEffect(effect, options) {
    return doWatch(effect, null, ( false
        ? 0 : { flush: 'post' }));
}
function watchSyncEffect(effect, options) {
    return doWatch(effect, null, ( false
        ? 0 : { flush: 'sync' }));
}
// initial value for watchers to trigger on undefined initial values
var INITIAL_WATCHER_VALUE = {};
// implementation
function watch(source, cb, options) {
    if (false) {}
    return doWatch(source, cb, options);
}
function doWatch(source, cb, _a) {
    var _b = _a === void 0 ? emptyObject : _a, immediate = _b.immediate, deep = _b.deep, _c = _b.flush, flush = _c === void 0 ? 'pre' : _c, onTrack = _b.onTrack, onTrigger = _b.onTrigger;
    if (false) {}
    var warnInvalidSource = function (s) {
        warn("Invalid watch source: ".concat(s, ". A watch source can only be a getter/effect ") +
            "function, a ref, a reactive object, or an array of these types.");
    };
    var instance = currentInstance;
    var call = function (fn, type, args) {
        if (args === void 0) { args = null; }
        var res = invokeWithErrorHandling(fn, null, args, instance, type);
        if (deep && res && res.__ob__)
            res.__ob__.dep.depend();
        return res;
    };
    var getter;
    var forceTrigger = false;
    var isMultiSource = false;
    if (isRef(source)) {
        getter = function () { return source.value; };
        forceTrigger = isShallow(source);
    }
    else if (isReactive(source)) {
        getter = function () {
            source.__ob__.dep.depend();
            return source;
        };
        deep = true;
    }
    else if (isArray(source)) {
        isMultiSource = true;
        forceTrigger = source.some(function (s) { return isReactive(s) || isShallow(s); });
        getter = function () {
            return source.map(function (s) {
                if (isRef(s)) {
                    return s.value;
                }
                else if (isReactive(s)) {
                    s.__ob__.dep.depend();
                    return traverse(s);
                }
                else if (isFunction(s)) {
                    return call(s, WATCHER_GETTER);
                }
                else {
                     false && 0;
                }
            });
        };
    }
    else if (isFunction(source)) {
        if (cb) {
            // getter with cb
            getter = function () { return call(source, WATCHER_GETTER); };
        }
        else {
            // no cb -> simple effect
            getter = function () {
                if (instance && instance._isDestroyed) {
                    return;
                }
                if (cleanup) {
                    cleanup();
                }
                return call(source, WATCHER, [onCleanup]);
            };
        }
    }
    else {
        getter = noop;
         false && 0;
    }
    if (cb && deep) {
        var baseGetter_1 = getter;
        getter = function () { return traverse(baseGetter_1()); };
    }
    var cleanup;
    var onCleanup = function (fn) {
        cleanup = watcher.onStop = function () {
            call(fn, WATCHER_CLEANUP);
        };
    };
    // in SSR there is no need to setup an actual effect, and it should be noop
    // unless it's eager
    if (isServerRendering()) {
        // we will also not call the invalidate callback (+ runner is not set up)
        onCleanup = noop;
        if (!cb) {
            getter();
        }
        else if (immediate) {
            call(cb, WATCHER_CB, [
                getter(),
                isMultiSource ? [] : undefined,
                onCleanup
            ]);
        }
        return noop;
    }
    var watcher = new Watcher(currentInstance, getter, noop, {
        lazy: true
    });
    watcher.noRecurse = !cb;
    var oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;
    // overwrite default run
    watcher.run = function () {
        if (!watcher.active) {
            return;
        }
        if (cb) {
            // watch(source, cb)
            var newValue = watcher.get();
            if (deep ||
                forceTrigger ||
                (isMultiSource
                    ? newValue.some(function (v, i) {
                        return hasChanged(v, oldValue[i]);
                    })
                    : hasChanged(newValue, oldValue))) {
                // cleanup before running cb again
                if (cleanup) {
                    cleanup();
                }
                call(cb, WATCHER_CB, [
                    newValue,
                    // pass undefined as the old value when it's changed for the first time
                    oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue,
                    onCleanup
                ]);
                oldValue = newValue;
            }
        }
        else {
            // watchEffect
            watcher.get();
        }
    };
    if (flush === 'sync') {
        watcher.update = watcher.run;
    }
    else if (flush === 'post') {
        watcher.post = true;
        watcher.update = function () { return queueWatcher(watcher); };
    }
    else {
        // pre
        watcher.update = function () {
            if (instance && instance === currentInstance && !instance._isMounted) {
                // pre-watcher triggered before
                var buffer = instance._preWatchers || (instance._preWatchers = []);
                if (buffer.indexOf(watcher) < 0)
                    buffer.push(watcher);
            }
            else {
                queueWatcher(watcher);
            }
        };
    }
    if (false) {}
    // initial run
    if (cb) {
        if (immediate) {
            watcher.run();
        }
        else {
            oldValue = watcher.get();
        }
    }
    else if (flush === 'post' && instance) {
        instance.$once('hook:mounted', function () { return watcher.get(); });
    }
    else {
        watcher.get();
    }
    return function () {
        watcher.teardown();
    };
}

var activeEffectScope;
var EffectScope = /** @class */ (function () {
    function EffectScope(detached) {
        if (detached === void 0) { detached = false; }
        this.detached = detached;
        /**
         * @internal
         */
        this.active = true;
        /**
         * @internal
         */
        this.effects = [];
        /**
         * @internal
         */
        this.cleanups = [];
        this.parent = activeEffectScope;
        if (!detached && activeEffectScope) {
            this.index =
                (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
        }
    }
    EffectScope.prototype.run = function (fn) {
        if (this.active) {
            var currentEffectScope = activeEffectScope;
            try {
                activeEffectScope = this;
                return fn();
            }
            finally {
                activeEffectScope = currentEffectScope;
            }
        }
        else if (false) {}
    };
    /**
     * This should only be called on non-detached scopes
     * @internal
     */
    EffectScope.prototype.on = function () {
        activeEffectScope = this;
    };
    /**
     * This should only be called on non-detached scopes
     * @internal
     */
    EffectScope.prototype.off = function () {
        activeEffectScope = this.parent;
    };
    EffectScope.prototype.stop = function (fromParent) {
        if (this.active) {
            var i = void 0, l = void 0;
            for (i = 0, l = this.effects.length; i < l; i++) {
                this.effects[i].teardown();
            }
            for (i = 0, l = this.cleanups.length; i < l; i++) {
                this.cleanups[i]();
            }
            if (this.scopes) {
                for (i = 0, l = this.scopes.length; i < l; i++) {
                    this.scopes[i].stop(true);
                }
            }
            // nested scope, dereference from parent to avoid memory leaks
            if (!this.detached && this.parent && !fromParent) {
                // optimized O(1) removal
                var last = this.parent.scopes.pop();
                if (last && last !== this) {
                    this.parent.scopes[this.index] = last;
                    last.index = this.index;
                }
            }
            this.parent = undefined;
            this.active = false;
        }
    };
    return EffectScope;
}());
function effectScope(detached) {
    return new EffectScope(detached);
}
/**
 * @internal
 */
function recordEffectScope(effect, scope) {
    if (scope === void 0) { scope = activeEffectScope; }
    if (scope && scope.active) {
        scope.effects.push(effect);
    }
}
function getCurrentScope() {
    return activeEffectScope;
}
function onScopeDispose(fn) {
    if (activeEffectScope) {
        activeEffectScope.cleanups.push(fn);
    }
    else if (false) {}
}

function provide(key, value) {
    if (!currentInstance) {
        if (false) {}
    }
    else {
        // TS doesn't allow symbol as index type
        resolveProvided(currentInstance)[key] = value;
    }
}
function resolveProvided(vm) {
    // by default an instance inherits its parent's provides object
    // but when it needs to provide values of its own, it creates its
    // own provides object using parent provides object as prototype.
    // this way in `inject` we can simply look up injections from direct
    // parent and let the prototype chain do the work.
    var existing = vm._provided;
    var parentProvides = vm.$parent && vm.$parent._provided;
    if (parentProvides === existing) {
        return (vm._provided = Object.create(parentProvides));
    }
    else {
        return existing;
    }
}
function inject(key, defaultValue, treatDefaultAsFactory) {
    if (treatDefaultAsFactory === void 0) { treatDefaultAsFactory = false; }
    // fallback to `currentRenderingInstance` so that this can be called in
    // a functional component
    var instance = currentInstance;
    if (instance) {
        // #2400
        // to support `app.use` plugins,
        // fallback to appContext's `provides` if the instance is at root
        var provides = instance.$parent && instance.$parent._provided;
        if (provides && key in provides) {
            // TS doesn't allow symbol as index type
            return provides[key];
        }
        else if (arguments.length > 1) {
            return treatDefaultAsFactory && isFunction(defaultValue)
                ? defaultValue.call(instance)
                : defaultValue;
        }
        else if (false) {}
    }
    else if (false) {}
}

var normalizeEvent = cached(function (name) {
    var passive = name.charAt(0) === '&';
    name = passive ? name.slice(1) : name;
    var once = name.charAt(0) === '~'; // Prefixed last, checked first
    name = once ? name.slice(1) : name;
    var capture = name.charAt(0) === '!';
    name = capture ? name.slice(1) : name;
    return {
        name: name,
        once: once,
        capture: capture,
        passive: passive
    };
});
function createFnInvoker(fns, vm) {
    function invoker() {
        var fns = invoker.fns;
        if (isArray(fns)) {
            var cloned = fns.slice();
            for (var i = 0; i < cloned.length; i++) {
                invokeWithErrorHandling(cloned[i], null, arguments, vm, "v-on handler");
            }
        }
        else {
            // return handler return value for single handlers
            return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler");
        }
    }
    invoker.fns = fns;
    return invoker;
}
function updateListeners(on, oldOn, add, remove, createOnceHandler, vm) {
    var name, cur, old, event;
    for (name in on) {
        cur = on[name];
        old = oldOn[name];
        event = normalizeEvent(name);
        if (isUndef(cur)) {
             false &&
                0;
        }
        else if (isUndef(old)) {
            if (isUndef(cur.fns)) {
                cur = on[name] = createFnInvoker(cur, vm);
            }
            if (isTrue(event.once)) {
                cur = on[name] = createOnceHandler(event.name, cur, event.capture);
            }
            add(event.name, cur, event.capture, event.passive, event.params);
        }
        else if (cur !== old) {
            old.fns = cur;
            on[name] = old;
        }
    }
    for (name in oldOn) {
        if (isUndef(on[name])) {
            event = normalizeEvent(name);
            remove(event.name, oldOn[name], event.capture);
        }
    }
}

function mergeVNodeHook(def, hookKey, hook) {
    if (def instanceof VNode) {
        def = def.data.hook || (def.data.hook = {});
    }
    var invoker;
    var oldHook = def[hookKey];
    function wrappedHook() {
        hook.apply(this, arguments);
        // important: remove merged hook to ensure it's called only once
        // and prevent memory leak
        remove$2(invoker.fns, wrappedHook);
    }
    if (isUndef(oldHook)) {
        // no existing hook
        invoker = createFnInvoker([wrappedHook]);
    }
    else {
        /* istanbul ignore if */
        if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {
            // already a merged invoker
            invoker = oldHook;
            invoker.fns.push(wrappedHook);
        }
        else {
            // existing plain hook
            invoker = createFnInvoker([oldHook, wrappedHook]);
        }
    }
    invoker.merged = true;
    def[hookKey] = invoker;
}

function extractPropsFromVNodeData(data, Ctor, tag) {
    // we are only extracting raw values here.
    // validation and default values are handled in the child
    // component itself.
    var propOptions = Ctor.options.props;
    if (isUndef(propOptions)) {
        return;
    }
    var res = {};
    var attrs = data.attrs, props = data.props;
    if (isDef(attrs) || isDef(props)) {
        for (var key in propOptions) {
            var altKey = hyphenate(key);
            if (false) { var keyInLowerCase; }
            checkProp(res, props, key, altKey, true) ||
                checkProp(res, attrs, key, altKey, false);
        }
    }
    return res;
}
function checkProp(res, hash, key, altKey, preserve) {
    if (isDef(hash)) {
        if (hasOwn(hash, key)) {
            res[key] = hash[key];
            if (!preserve) {
                delete hash[key];
            }
            return true;
        }
        else if (hasOwn(hash, altKey)) {
            res[key] = hash[altKey];
            if (!preserve) {
                delete hash[altKey];
            }
            return true;
        }
    }
    return false;
}

// The template compiler attempts to minimize the need for normalization by
// statically analyzing the template at compile time.
//
// For plain HTML markup, normalization can be completely skipped because the
// generated render function is guaranteed to return Array<VNode>. There are
// two cases where extra normalization is needed:
// 1. When the children contains components - because a functional component
// may return an Array instead of a single root. In this case, just a simple
// normalization is needed - if any child is an Array, we flatten the whole
// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
// because functional components already normalize their own children.
function simpleNormalizeChildren(children) {
    for (var i = 0; i < children.length; i++) {
        if (isArray(children[i])) {
            return Array.prototype.concat.apply([], children);
        }
    }
    return children;
}
// 2. When the children contains constructs that always generated nested Arrays,
// e.g. <template>, <slot>, v-for, or when the children is provided by user
// with hand-written render functions / JSX. In such cases a full normalization
// is needed to cater to all possible types of children values.
function normalizeChildren(children) {
    return isPrimitive(children)
        ? [createTextVNode(children)]
        : isArray(children)
            ? normalizeArrayChildren(children)
            : undefined;
}
function isTextNode(node) {
    return isDef(node) && isDef(node.text) && isFalse(node.isComment);
}
function normalizeArrayChildren(children, nestedIndex) {
    var res = [];
    var i, c, lastIndex, last;
    for (i = 0; i < children.length; i++) {
        c = children[i];
        if (isUndef(c) || typeof c === 'boolean')
            continue;
        lastIndex = res.length - 1;
        last = res[lastIndex];
        //  nested
        if (isArray(c)) {
            if (c.length > 0) {
                c = normalizeArrayChildren(c, "".concat(nestedIndex || '', "_").concat(i));
                // merge adjacent text nodes
                if (isTextNode(c[0]) && isTextNode(last)) {
                    res[lastIndex] = createTextVNode(last.text + c[0].text);
                    c.shift();
                }
                res.push.apply(res, c);
            }
        }
        else if (isPrimitive(c)) {
            if (isTextNode(last)) {
                // merge adjacent text nodes
                // this is necessary for SSR hydration because text nodes are
                // essentially merged when rendered to HTML strings
                res[lastIndex] = createTextVNode(last.text + c);
            }
            else if (c !== '') {
                // convert primitive to vnode
                res.push(createTextVNode(c));
            }
        }
        else {
            if (isTextNode(c) && isTextNode(last)) {
                // merge adjacent text nodes
                res[lastIndex] = createTextVNode(last.text + c.text);
            }
            else {
                // default key for nested array children (likely generated by v-for)
                if (isTrue(children._isVList) &&
                    isDef(c.tag) &&
                    isUndef(c.key) &&
                    isDef(nestedIndex)) {
                    c.key = "__vlist".concat(nestedIndex, "_").concat(i, "__");
                }
                res.push(c);
            }
        }
    }
    return res;
}

/**
 * Runtime helper for rendering v-for lists.
 */
function renderList(val, render) {
    var ret = null, i, l, keys, key;
    if (isArray(val) || typeof val === 'string') {
        ret = new Array(val.length);
        for (i = 0, l = val.length; i < l; i++) {
            ret[i] = render(val[i], i);
        }
    }
    else if (typeof val === 'number') {
        ret = new Array(val);
        for (i = 0; i < val; i++) {
            ret[i] = render(i + 1, i);
        }
    }
    else if (isObject(val)) {
        if (hasSymbol && val[Symbol.iterator]) {
            ret = [];
            var iterator = val[Symbol.iterator]();
            var result = iterator.next();
            while (!result.done) {
                ret.push(render(result.value, ret.length));
                result = iterator.next();
            }
        }
        else {
            keys = Object.keys(val);
            ret = new Array(keys.length);
            for (i = 0, l = keys.length; i < l; i++) {
                key = keys[i];
                ret[i] = render(val[key], key, i);
            }
        }
    }
    if (!isDef(ret)) {
        ret = [];
    }
    ret._isVList = true;
    return ret;
}

/**
 * Runtime helper for rendering <slot>
 */
function renderSlot(name, fallbackRender, props, bindObject) {
    var scopedSlotFn = this.$scopedSlots[name];
    var nodes;
    if (scopedSlotFn) {
        // scoped slot
        props = props || {};
        if (bindObject) {
            if (false) {}
            props = extend(extend({}, bindObject), props);
        }
        nodes =
            scopedSlotFn(props) ||
                (isFunction(fallbackRender) ? fallbackRender() : fallbackRender);
    }
    else {
        nodes =
            this.$slots[name] ||
                (isFunction(fallbackRender) ? fallbackRender() : fallbackRender);
    }
    var target = props && props.slot;
    if (target) {
        return this.$createElement('template', { slot: target }, nodes);
    }
    else {
        return nodes;
    }
}

/**
 * Runtime helper for resolving filters
 */
function resolveFilter(id) {
    return resolveAsset(this.$options, 'filters', id, true) || identity;
}

function isKeyNotMatch(expect, actual) {
    if (isArray(expect)) {
        return expect.indexOf(actual) === -1;
    }
    else {
        return expect !== actual;
    }
}
/**
 * Runtime helper for checking keyCodes from config.
 * exposed as Vue.prototype._k
 * passing in eventKeyName as last argument separately for backwards compat
 */
function checkKeyCodes(eventKeyCode, key, builtInKeyCode, eventKeyName, builtInKeyName) {
    var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
    if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
        return isKeyNotMatch(builtInKeyName, eventKeyName);
    }
    else if (mappedKeyCode) {
        return isKeyNotMatch(mappedKeyCode, eventKeyCode);
    }
    else if (eventKeyName) {
        return hyphenate(eventKeyName) !== key;
    }
    return eventKeyCode === undefined;
}

/**
 * Runtime helper for merging v-bind="object" into a VNode's data.
 */
function bindObjectProps(data, tag, value, asProp, isSync) {
    if (value) {
        if (!isObject(value)) {
             false &&
                0;
        }
        else {
            if (isArray(value)) {
                value = toObject(value);
            }
            var hash = void 0;
            var _loop_1 = function (key) {
                if (key === 'class' || key === 'style' || isReservedAttribute(key)) {
                    hash = data;
                }
                else {
                    var type = data.attrs && data.attrs.type;
                    hash =
                        asProp || config.mustUseProp(tag, type, key)
                            ? data.domProps || (data.domProps = {})
                            : data.attrs || (data.attrs = {});
                }
                var camelizedKey = camelize(key);
                var hyphenatedKey = hyphenate(key);
                if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
                    hash[key] = value[key];
                    if (isSync) {
                        var on = data.on || (data.on = {});
                        on["update:".concat(key)] = function ($event) {
                            value[key] = $event;
                        };
                    }
                }
            };
            for (var key in value) {
                _loop_1(key);
            }
        }
    }
    return data;
}

/**
 * Runtime helper for rendering static trees.
 */
function renderStatic(index, isInFor) {
    var cached = this._staticTrees || (this._staticTrees = []);
    var tree = cached[index];
    // if has already-rendered static tree and not inside v-for,
    // we can reuse the same tree.
    if (tree && !isInFor) {
        return tree;
    }
    // otherwise, render a fresh tree.
    tree = cached[index] = this.$options.staticRenderFns[index].call(this._renderProxy, this._c, this // for render fns generated for functional component templates
    );
    markStatic(tree, "__static__".concat(index), false);
    return tree;
}
/**
 * Runtime helper for v-once.
 * Effectively it means marking the node as static with a unique key.
 */
function markOnce(tree, index, key) {
    markStatic(tree, "__once__".concat(index).concat(key ? "_".concat(key) : ""), true);
    return tree;
}
function markStatic(tree, key, isOnce) {
    if (isArray(tree)) {
        for (var i = 0; i < tree.length; i++) {
            if (tree[i] && typeof tree[i] !== 'string') {
                markStaticNode(tree[i], "".concat(key, "_").concat(i), isOnce);
            }
        }
    }
    else {
        markStaticNode(tree, key, isOnce);
    }
}
function markStaticNode(node, key, isOnce) {
    node.isStatic = true;
    node.key = key;
    node.isOnce = isOnce;
}

function bindObjectListeners(data, value) {
    if (value) {
        if (!isPlainObject(value)) {
             false && 0;
        }
        else {
            var on = (data.on = data.on ? extend({}, data.on) : {});
            for (var key in value) {
                var existing = on[key];
                var ours = value[key];
                on[key] = existing ? [].concat(existing, ours) : ours;
            }
        }
    }
    return data;
}

function resolveScopedSlots(fns, res, 
// the following are added in 2.6
hasDynamicKeys, contentHashKey) {
    res = res || { $stable: !hasDynamicKeys };
    for (var i = 0; i < fns.length; i++) {
        var slot = fns[i];
        if (isArray(slot)) {
            resolveScopedSlots(slot, res, hasDynamicKeys);
        }
        else if (slot) {
            // marker for reverse proxying v-slot without scope on this.$slots
            // @ts-expect-error
            if (slot.proxy) {
                // @ts-expect-error
                slot.fn.proxy = true;
            }
            res[slot.key] = slot.fn;
        }
    }
    if (contentHashKey) {
        res.$key = contentHashKey;
    }
    return res;
}

// helper to process dynamic keys for dynamic arguments in v-bind and v-on.
function bindDynamicKeys(baseObj, values) {
    for (var i = 0; i < values.length; i += 2) {
        var key = values[i];
        if (typeof key === 'string' && key) {
            baseObj[values[i]] = values[i + 1];
        }
        else if (false) {}
    }
    return baseObj;
}
// helper to dynamically append modifier runtime markers to event names.
// ensure only append when value is already string, otherwise it will be cast
// to string and cause the type check to miss.
function prependModifier(value, symbol) {
    return typeof value === 'string' ? symbol + value : value;
}

function installRenderHelpers(target) {
    target._o = markOnce;
    target._n = toNumber;
    target._s = toString;
    target._l = renderList;
    target._t = renderSlot;
    target._q = looseEqual;
    target._i = looseIndexOf;
    target._m = renderStatic;
    target._f = resolveFilter;
    target._k = checkKeyCodes;
    target._b = bindObjectProps;
    target._v = createTextVNode;
    target._e = createEmptyVNode;
    target._u = resolveScopedSlots;
    target._g = bindObjectListeners;
    target._d = bindDynamicKeys;
    target._p = prependModifier;
}

/**
 * Runtime helper for resolving raw children VNodes into a slot object.
 */
function resolveSlots(children, context) {
    if (!children || !children.length) {
        return {};
    }
    var slots = {};
    for (var i = 0, l = children.length; i < l; i++) {
        var child = children[i];
        var data = child.data;
        // remove slot attribute if the node is resolved as a Vue slot node
        if (data && data.attrs && data.attrs.slot) {
            delete data.attrs.slot;
        }
        // named slots should only be respected if the vnode was rendered in the
        // same context.
        if ((child.context === context || child.fnContext === context) &&
            data &&
            data.slot != null) {
            var name_1 = data.slot;
            var slot = slots[name_1] || (slots[name_1] = []);
            if (child.tag === 'template') {
                slot.push.apply(slot, child.children || []);
            }
            else {
                slot.push(child);
            }
        }
        else {
            (slots.default || (slots.default = [])).push(child);
        }
    }
    // ignore slots that contains only whitespace
    for (var name_2 in slots) {
        if (slots[name_2].every(isWhitespace)) {
            delete slots[name_2];
        }
    }
    return slots;
}
function isWhitespace(node) {
    return (node.isComment && !node.asyncFactory) || node.text === ' ';
}

function isAsyncPlaceholder(node) {
    // @ts-expect-error not really boolean type
    return node.isComment && node.asyncFactory;
}

function normalizeScopedSlots(ownerVm, scopedSlots, normalSlots, prevScopedSlots) {
    var res;
    var hasNormalSlots = Object.keys(normalSlots).length > 0;
    var isStable = scopedSlots ? !!scopedSlots.$stable : !hasNormalSlots;
    var key = scopedSlots && scopedSlots.$key;
    if (!scopedSlots) {
        res = {};
    }
    else if (scopedSlots._normalized) {
        // fast path 1: child component re-render only, parent did not change
        return scopedSlots._normalized;
    }
    else if (isStable &&
        prevScopedSlots &&
        prevScopedSlots !== emptyObject &&
        key === prevScopedSlots.$key &&
        !hasNormalSlots &&
        !prevScopedSlots.$hasNormal) {
        // fast path 2: stable scoped slots w/ no normal slots to proxy,
        // only need to normalize once
        return prevScopedSlots;
    }
    else {
        res = {};
        for (var key_1 in scopedSlots) {
            if (scopedSlots[key_1] && key_1[0] !== '$') {
                res[key_1] = normalizeScopedSlot(ownerVm, normalSlots, key_1, scopedSlots[key_1]);
            }
        }
    }
    // expose normal slots on scopedSlots
    for (var key_2 in normalSlots) {
        if (!(key_2 in res)) {
            res[key_2] = proxyNormalSlot(normalSlots, key_2);
        }
    }
    // avoriaz seems to mock a non-extensible $scopedSlots object
    // and when that is passed down this would cause an error
    if (scopedSlots && Object.isExtensible(scopedSlots)) {
        scopedSlots._normalized = res;
    }
    def(res, '$stable', isStable);
    def(res, '$key', key);
    def(res, '$hasNormal', hasNormalSlots);
    return res;
}
function normalizeScopedSlot(vm, normalSlots, key, fn) {
    var normalized = function () {
        var cur = currentInstance;
        setCurrentInstance(vm);
        var res = arguments.length ? fn.apply(null, arguments) : fn({});
        res =
            res && typeof res === 'object' && !isArray(res)
                ? [res] // single vnode
                : normalizeChildren(res);
        var vnode = res && res[0];
        setCurrentInstance(cur);
        return res &&
            (!vnode ||
                (res.length === 1 && vnode.isComment && !isAsyncPlaceholder(vnode))) // #9658, #10391
            ? undefined
            : res;
    };
    // this is a slot using the new v-slot syntax without scope. although it is
    // compiled as a scoped slot, render fn users would expect it to be present
    // on this.$slots because the usage is semantically a normal slot.
    if (fn.proxy) {
        Object.defineProperty(normalSlots, key, {
            get: normalized,
            enumerable: true,
            configurable: true
        });
    }
    return normalized;
}
function proxyNormalSlot(slots, key) {
    return function () { return slots[key]; };
}

function initSetup(vm) {
    var options = vm.$options;
    var setup = options.setup;
    if (setup) {
        var ctx = (vm._setupContext = createSetupContext(vm));
        setCurrentInstance(vm);
        pushTarget();
        var setupResult = invokeWithErrorHandling(setup, null, [vm._props || shallowReactive({}), ctx], vm, "setup");
        popTarget();
        setCurrentInstance();
        if (isFunction(setupResult)) {
            // render function
            // @ts-ignore
            options.render = setupResult;
        }
        else if (isObject(setupResult)) {
            // bindings
            if (false) {}
            vm._setupState = setupResult;
            // __sfc indicates compiled bindings from <script setup>
            if (!setupResult.__sfc) {
                for (var key in setupResult) {
                    if (!isReserved(key)) {
                        proxyWithRefUnwrap(vm, setupResult, key);
                    }
                    else if (false) {}
                }
            }
            else {
                // exposed for compiled render fn
                var proxy = (vm._setupProxy = {});
                for (var key in setupResult) {
                    if (key !== '__sfc') {
                        proxyWithRefUnwrap(proxy, setupResult, key);
                    }
                }
            }
        }
        else if (false) {}
    }
}
function createSetupContext(vm) {
    var exposeCalled = false;
    return {
        get attrs() {
            if (!vm._attrsProxy) {
                var proxy = (vm._attrsProxy = {});
                def(proxy, '_v_attr_proxy', true);
                syncSetupProxy(proxy, vm.$attrs, emptyObject, vm, '$attrs');
            }
            return vm._attrsProxy;
        },
        get listeners() {
            if (!vm._listenersProxy) {
                var proxy = (vm._listenersProxy = {});
                syncSetupProxy(proxy, vm.$listeners, emptyObject, vm, '$listeners');
            }
            return vm._listenersProxy;
        },
        get slots() {
            return initSlotsProxy(vm);
        },
        emit: bind(vm.$emit, vm),
        expose: function (exposed) {
            if (false) {}
            if (exposed) {
                Object.keys(exposed).forEach(function (key) {
                    return proxyWithRefUnwrap(vm, exposed, key);
                });
            }
        }
    };
}
function syncSetupProxy(to, from, prev, instance, type) {
    var changed = false;
    for (var key in from) {
        if (!(key in to)) {
            changed = true;
            defineProxyAttr(to, key, instance, type);
        }
        else if (from[key] !== prev[key]) {
            changed = true;
        }
    }
    for (var key in to) {
        if (!(key in from)) {
            changed = true;
            delete to[key];
        }
    }
    return changed;
}
function defineProxyAttr(proxy, key, instance, type) {
    Object.defineProperty(proxy, key, {
        enumerable: true,
        configurable: true,
        get: function () {
            return instance[type][key];
        }
    });
}
function initSlotsProxy(vm) {
    if (!vm._slotsProxy) {
        syncSetupSlots((vm._slotsProxy = {}), vm.$scopedSlots);
    }
    return vm._slotsProxy;
}
function syncSetupSlots(to, from) {
    for (var key in from) {
        to[key] = from[key];
    }
    for (var key in to) {
        if (!(key in from)) {
            delete to[key];
        }
    }
}
/**
 * @internal use manual type def because public setup context type relies on
 * legacy VNode types
 */
function useSlots() {
    return getContext().slots;
}
/**
 * @internal use manual type def because public setup context type relies on
 * legacy VNode types
 */
function useAttrs() {
    return getContext().attrs;
}
/**
 * Vue 2 only
 * @internal use manual type def because public setup context type relies on
 * legacy VNode types
 */
function useListeners() {
    return getContext().listeners;
}
function getContext() {
    if (false) {}
    var vm = currentInstance;
    return vm._setupContext || (vm._setupContext = createSetupContext(vm));
}
/**
 * Runtime helper for merging default declarations. Imported by compiled code
 * only.
 * @internal
 */
function mergeDefaults(raw, defaults) {
    var props = isArray(raw)
        ? raw.reduce(function (normalized, p) { return ((normalized[p] = {}), normalized); }, {})
        : raw;
    for (var key in defaults) {
        var opt = props[key];
        if (opt) {
            if (isArray(opt) || isFunction(opt)) {
                props[key] = { type: opt, default: defaults[key] };
            }
            else {
                opt.default = defaults[key];
            }
        }
        else if (opt === null) {
            props[key] = { default: defaults[key] };
        }
        else if (false) {}
    }
    return props;
}

function initRender(vm) {
    vm._vnode = null; // the root of the child tree
    vm._staticTrees = null; // v-once cached trees
    var options = vm.$options;
    var parentVnode = (vm.$vnode = options._parentVnode); // the placeholder node in parent tree
    var renderContext = parentVnode && parentVnode.context;
    vm.$slots = resolveSlots(options._renderChildren, renderContext);
    vm.$scopedSlots = parentVnode
        ? normalizeScopedSlots(vm.$parent, parentVnode.data.scopedSlots, vm.$slots)
        : emptyObject;
    // bind the createElement fn to this instance
    // so that we get proper render context inside it.
    // args order: tag, data, children, normalizationType, alwaysNormalize
    // internal version is used by render functions compiled from templates
    // @ts-expect-error
    vm._c = function (a, b, c, d) { return createElement$1(vm, a, b, c, d, false); };
    // normalization is always applied for the public version, used in
    // user-written render functions.
    // @ts-expect-error
    vm.$createElement = function (a, b, c, d) { return createElement$1(vm, a, b, c, d, true); };
    // $attrs & $listeners are exposed for easier HOC creation.
    // they need to be reactive so that HOCs using them are always updated
    var parentData = parentVnode && parentVnode.data;
    /* istanbul ignore else */
    if (false) {}
    else {
        defineReactive(vm, '$attrs', (parentData && parentData.attrs) || emptyObject, null, true);
        defineReactive(vm, '$listeners', options._parentListeners || emptyObject, null, true);
    }
}
var currentRenderingInstance = null;
function renderMixin(Vue) {
    // install runtime convenience helpers
    installRenderHelpers(Vue.prototype);
    Vue.prototype.$nextTick = function (fn) {
        return nextTick(fn, this);
    };
    Vue.prototype._render = function () {
        var vm = this;
        var _a = vm.$options, render = _a.render, _parentVnode = _a._parentVnode;
        if (_parentVnode && vm._isMounted) {
            vm.$scopedSlots = normalizeScopedSlots(vm.$parent, _parentVnode.data.scopedSlots, vm.$slots, vm.$scopedSlots);
            if (vm._slotsProxy) {
                syncSetupSlots(vm._slotsProxy, vm.$scopedSlots);
            }
        }
        // set parent vnode. this allows render functions to have access
        // to the data on the placeholder node.
        vm.$vnode = _parentVnode;
        // render self
        var prevInst = currentInstance;
        var prevRenderInst = currentRenderingInstance;
        var vnode;
        try {
            setCurrentInstance(vm);
            currentRenderingInstance = vm;
            vnode = render.call(vm._renderProxy, vm.$createElement);
        }
        catch (e) {
            handleError(e, vm, "render");
            // return error render result,
            // or previous vnode to prevent render error causing blank component
            /* istanbul ignore else */
            if (false) {}
            else {
                vnode = vm._vnode;
            }
        }
        finally {
            currentRenderingInstance = prevRenderInst;
            setCurrentInstance(prevInst);
        }
        // if the returned array contains only a single node, allow it
        if (isArray(vnode) && vnode.length === 1) {
            vnode = vnode[0];
        }
        // return empty vnode in case the render function errored out
        if (!(vnode instanceof VNode)) {
            if (false) {}
            vnode = createEmptyVNode();
        }
        // set parent
        vnode.parent = _parentVnode;
        return vnode;
    };
}

function ensureCtor(comp, base) {
    if (comp.__esModule || (hasSymbol && comp[Symbol.toStringTag] === 'Module')) {
        comp = comp.default;
    }
    return isObject(comp) ? base.extend(comp) : comp;
}
function createAsyncPlaceholder(factory, data, context, children, tag) {
    var node = createEmptyVNode();
    node.asyncFactory = factory;
    node.asyncMeta = { data: data, context: context, children: children, tag: tag };
    return node;
}
function resolveAsyncComponent(factory, baseCtor) {
    if (isTrue(factory.error) && isDef(factory.errorComp)) {
        return factory.errorComp;
    }
    if (isDef(factory.resolved)) {
        return factory.resolved;
    }
    var owner = currentRenderingInstance;
    if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
        // already pending
        factory.owners.push(owner);
    }
    if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
        return factory.loadingComp;
    }
    if (owner && !isDef(factory.owners)) {
        var owners_1 = (factory.owners = [owner]);
        var sync_1 = true;
        var timerLoading_1 = null;
        var timerTimeout_1 = null;
        owner.$on('hook:destroyed', function () { return remove$2(owners_1, owner); });
        var forceRender_1 = function (renderCompleted) {
            for (var i = 0, l = owners_1.length; i < l; i++) {
                owners_1[i].$forceUpdate();
            }
            if (renderCompleted) {
                owners_1.length = 0;
                if (timerLoading_1 !== null) {
                    clearTimeout(timerLoading_1);
                    timerLoading_1 = null;
                }
                if (timerTimeout_1 !== null) {
                    clearTimeout(timerTimeout_1);
                    timerTimeout_1 = null;
                }
            }
        };
        var resolve = once(function (res) {
            // cache resolved
            factory.resolved = ensureCtor(res, baseCtor);
            // invoke callbacks only if this is not a synchronous resolve
            // (async resolves are shimmed as synchronous during SSR)
            if (!sync_1) {
                forceRender_1(true);
            }
            else {
                owners_1.length = 0;
            }
        });
        var reject_1 = once(function (reason) {
             false &&
                0;
            if (isDef(factory.errorComp)) {
                factory.error = true;
                forceRender_1(true);
            }
        });
        var res_1 = factory(resolve, reject_1);
        if (isObject(res_1)) {
            if (isPromise(res_1)) {
                // () => Promise
                if (isUndef(factory.resolved)) {
                    res_1.then(resolve, reject_1);
                }
            }
            else if (isPromise(res_1.component)) {
                res_1.component.then(resolve, reject_1);
                if (isDef(res_1.error)) {
                    factory.errorComp = ensureCtor(res_1.error, baseCtor);
                }
                if (isDef(res_1.loading)) {
                    factory.loadingComp = ensureCtor(res_1.loading, baseCtor);
                    if (res_1.delay === 0) {
                        factory.loading = true;
                    }
                    else {
                        // @ts-expect-error NodeJS timeout type
                        timerLoading_1 = setTimeout(function () {
                            timerLoading_1 = null;
                            if (isUndef(factory.resolved) && isUndef(factory.error)) {
                                factory.loading = true;
                                forceRender_1(false);
                            }
                        }, res_1.delay || 200);
                    }
                }
                if (isDef(res_1.timeout)) {
                    // @ts-expect-error NodeJS timeout type
                    timerTimeout_1 = setTimeout(function () {
                        timerTimeout_1 = null;
                        if (isUndef(factory.resolved)) {
                            reject_1( false ? 0 : null);
                        }
                    }, res_1.timeout);
                }
            }
        }
        sync_1 = false;
        // return in case resolved synchronously
        return factory.loading ? factory.loadingComp : factory.resolved;
    }
}

function getFirstComponentChild(children) {
    if (isArray(children)) {
        for (var i = 0; i < children.length; i++) {
            var c = children[i];
            if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
                return c;
            }
        }
    }
}

var SIMPLE_NORMALIZE = 1;
var ALWAYS_NORMALIZE = 2;
// wrapper function for providing a more flexible interface
// without getting yelled at by flow
function createElement$1(context, tag, data, children, normalizationType, alwaysNormalize) {
    if (isArray(data) || isPrimitive(data)) {
        normalizationType = children;
        children = data;
        data = undefined;
    }
    if (isTrue(alwaysNormalize)) {
        normalizationType = ALWAYS_NORMALIZE;
    }
    return _createElement(context, tag, data, children, normalizationType);
}
function _createElement(context, tag, data, children, normalizationType) {
    if (isDef(data) && isDef(data.__ob__)) {
         false &&
            0;
        return createEmptyVNode();
    }
    // object syntax in v-bind
    if (isDef(data) && isDef(data.is)) {
        tag = data.is;
    }
    if (!tag) {
        // in case of component :is set to falsy value
        return createEmptyVNode();
    }
    // warn against non-primitive key
    if (false) {}
    // support single function children as default scoped slot
    if (isArray(children) && isFunction(children[0])) {
        data = data || {};
        data.scopedSlots = { default: children[0] };
        children.length = 0;
    }
    if (normalizationType === ALWAYS_NORMALIZE) {
        children = normalizeChildren(children);
    }
    else if (normalizationType === SIMPLE_NORMALIZE) {
        children = simpleNormalizeChildren(children);
    }
    var vnode, ns;
    if (typeof tag === 'string') {
        var Ctor = void 0;
        ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
        if (config.isReservedTag(tag)) {
            // platform built-in elements
            if (false) {}
            vnode = new VNode(config.parsePlatformTagName(tag), data, children, undefined, undefined, context);
        }
        else if ((!data || !data.pre) &&
            isDef((Ctor = resolveAsset(context.$options, 'components', tag)))) {
            // component
            vnode = createComponent(Ctor, data, context, children, tag);
        }
        else {
            // unknown or unlisted namespaced elements
            // check at runtime because it may get assigned a namespace when its
            // parent normalizes children
            vnode = new VNode(tag, data, children, undefined, undefined, context);
        }
    }
    else {
        // direct component options / constructor
        vnode = createComponent(tag, data, context, children);
    }
    if (isArray(vnode)) {
        return vnode;
    }
    else if (isDef(vnode)) {
        if (isDef(ns))
            applyNS(vnode, ns);
        if (isDef(data))
            registerDeepBindings(data);
        return vnode;
    }
    else {
        return createEmptyVNode();
    }
}
function applyNS(vnode, ns, force) {
    vnode.ns = ns;
    if (vnode.tag === 'foreignObject') {
        // use default namespace inside foreignObject
        ns = undefined;
        force = true;
    }
    if (isDef(vnode.children)) {
        for (var i = 0, l = vnode.children.length; i < l; i++) {
            var child = vnode.children[i];
            if (isDef(child.tag) &&
                (isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
                applyNS(child, ns, force);
            }
        }
    }
}
// ref #5318
// necessary to ensure parent re-render when deep bindings like :style and
// :class are used on slot nodes
function registerDeepBindings(data) {
    if (isObject(data.style)) {
        traverse(data.style);
    }
    if (isObject(data.class)) {
        traverse(data.class);
    }
}

/**
 * @internal this function needs manual public type declaration because it relies
 * on previously manually authored types from Vue 2
 */
function h(type, props, children) {
    if (!currentInstance) {
         false &&
            0;
    }
    return createElement$1(currentInstance, type, props, children, 2, true);
}

function handleError(err, vm, info) {
    // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
    // See: https://github.com/vuejs/vuex/issues/1505
    pushTarget();
    try {
        if (vm) {
            var cur = vm;
            while ((cur = cur.$parent)) {
                var hooks = cur.$options.errorCaptured;
                if (hooks) {
                    for (var i = 0; i < hooks.length; i++) {
                        try {
                            var capture = hooks[i].call(cur, err, vm, info) === false;
                            if (capture)
                                return;
                        }
                        catch (e) {
                            globalHandleError(e, cur, 'errorCaptured hook');
                        }
                    }
                }
            }
        }
        globalHandleError(err, vm, info);
    }
    finally {
        popTarget();
    }
}
function invokeWithErrorHandling(handler, context, args, vm, info) {
    var res;
    try {
        res = args ? handler.apply(context, args) : handler.call(context);
        if (res && !res._isVue && isPromise(res) && !res._handled) {
            res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
            res._handled = true;
        }
    }
    catch (e) {
        handleError(e, vm, info);
    }
    return res;
}
function globalHandleError(err, vm, info) {
    if (config.errorHandler) {
        try {
            return config.errorHandler.call(null, err, vm, info);
        }
        catch (e) {
            // if the user intentionally throws the original error in the handler,
            // do not log it twice
            if (e !== err) {
                logError(e, null, 'config.errorHandler');
            }
        }
    }
    logError(err, vm, info);
}
function logError(err, vm, info) {
    if (false) {}
    /* istanbul ignore else */
    if (inBrowser && typeof console !== 'undefined') {
        console.error(err);
    }
    else {
        throw err;
    }
}

/* globals MutationObserver */
var isUsingMicroTask = false;
var callbacks = [];
var pending = false;
function flushCallbacks() {
    pending = false;
    var copies = callbacks.slice(0);
    callbacks.length = 0;
    for (var i = 0; i < copies.length; i++) {
        copies[i]();
    }
}
// Here we have async deferring wrappers using microtasks.
// In 2.5 we used (macro) tasks (in combination with microtasks).
// However, it has subtle problems when state is changed right before repaint
// (e.g. #6813, out-in transitions).
// Also, using (macro) tasks in event handler would cause some weird behaviors
// that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
// So we now use microtasks everywhere, again.
// A major drawback of this tradeoff is that there are some scenarios
// where microtasks have too high a priority and fire in between supposedly
// sequential events (e.g. #4521, #6690, which have workarounds)
// or even between bubbling of the same event (#6566).
var timerFunc;
// The nextTick behavior leverages the microtask queue, which can be accessed
// via either native Promise.then or MutationObserver.
// MutationObserver has wider support, however it is seriously bugged in
// UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
// completely stops working after triggering a few times... so, if native
// Promise is available, we will use it:
/* istanbul ignore next, $flow-disable-line */
if (typeof Promise !== 'undefined' && isNative(Promise)) {
    var p_1 = Promise.resolve();
    timerFunc = function () {
        p_1.then(flushCallbacks);
        // In problematic UIWebViews, Promise.then doesn't completely break, but
        // it can get stuck in a weird state where callbacks are pushed into the
        // microtask queue but the queue isn't being flushed, until the browser
        // needs to do some other work, e.g. handle a timer. Therefore we can
        // "force" the microtask queue to be flushed by adding an empty timer.
        if (isIOS)
            setTimeout(noop);
    };
    isUsingMicroTask = true;
}
else if (!isIE &&
    typeof MutationObserver !== 'undefined' &&
    (isNative(MutationObserver) ||
        // PhantomJS and iOS 7.x
        MutationObserver.toString() === '[object MutationObserverConstructor]')) {
    // Use MutationObserver where native Promise is not available,
    // e.g. PhantomJS, iOS7, Android 4.4
    // (#6466 MutationObserver is unreliable in IE11)
    var counter_1 = 1;
    var observer = new MutationObserver(flushCallbacks);
    var textNode_1 = document.createTextNode(String(counter_1));
    observer.observe(textNode_1, {
        characterData: true
    });
    timerFunc = function () {
        counter_1 = (counter_1 + 1) % 2;
        textNode_1.data = String(counter_1);
    };
    isUsingMicroTask = true;
}
else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
    // Fallback to setImmediate.
    // Technically it leverages the (macro) task queue,
    // but it is still a better choice than setTimeout.
    timerFunc = function () {
        setImmediate(flushCallbacks);
    };
}
else {
    // Fallback to setTimeout.
    timerFunc = function () {
        setTimeout(flushCallbacks, 0);
    };
}
/**
 * @internal
 */
function nextTick(cb, ctx) {
    var _resolve;
    callbacks.push(function () {
        if (cb) {
            try {
                cb.call(ctx);
            }
            catch (e) {
                handleError(e, ctx, 'nextTick');
            }
        }
        else if (_resolve) {
            _resolve(ctx);
        }
    });
    if (!pending) {
        pending = true;
        timerFunc();
    }
    // $flow-disable-line
    if (!cb && typeof Promise !== 'undefined') {
        return new Promise(function (resolve) {
            _resolve = resolve;
        });
    }
}

function useCssModule(name) {
    if (name === void 0) { name = '$style'; }
    /* istanbul ignore else */
    {
        if (!currentInstance) {
             false && 0;
            return emptyObject;
        }
        var mod = currentInstance[name];
        if (!mod) {
             false &&
                0;
            return emptyObject;
        }
        return mod;
    }
}

/**
 * Runtime helper for SFC's CSS variable injection feature.
 * @private
 */
function useCssVars(getter) {
    if (!inBrowser && !false)
        return;
    var instance = currentInstance;
    if (!instance) {
         false &&
            0;
        return;
    }
    watchPostEffect(function () {
        var el = instance.$el;
        var vars = getter(instance, instance._setupProxy);
        if (el && el.nodeType === 1) {
            var style = el.style;
            for (var key in vars) {
                style.setProperty("--".concat(key), vars[key]);
            }
        }
    });
}

/**
 * v3-compatible async component API.
 * @internal the type is manually declared in <root>/types/v3-define-async-component.d.ts
 * because it relies on existing manual types
 */
function defineAsyncComponent(source) {
    if (isFunction(source)) {
        source = { loader: source };
    }
    var loader = source.loader, loadingComponent = source.loadingComponent, errorComponent = source.errorComponent, _a = source.delay, delay = _a === void 0 ? 200 : _a, timeout = source.timeout, // undefined = never times out
    _b = source.suspensible, // undefined = never times out
    suspensible = _b === void 0 ? false : _b, // in Vue 3 default is true
    userOnError = source.onError;
    if (false) {}
    var pendingRequest = null;
    var retries = 0;
    var retry = function () {
        retries++;
        pendingRequest = null;
        return load();
    };
    var load = function () {
        var thisRequest;
        return (pendingRequest ||
            (thisRequest = pendingRequest =
                loader()
                    .catch(function (err) {
                    err = err instanceof Error ? err : new Error(String(err));
                    if (userOnError) {
                        return new Promise(function (resolve, reject) {
                            var userRetry = function () { return resolve(retry()); };
                            var userFail = function () { return reject(err); };
                            userOnError(err, userRetry, userFail, retries + 1);
                        });
                    }
                    else {
                        throw err;
                    }
                })
                    .then(function (comp) {
                    if (thisRequest !== pendingRequest && pendingRequest) {
                        return pendingRequest;
                    }
                    if (false) {}
                    // interop module default
                    if (comp &&
                        (comp.__esModule || comp[Symbol.toStringTag] === 'Module')) {
                        comp = comp.default;
                    }
                    if (false) {}
                    return comp;
                })));
    };
    return function () {
        var component = load();
        return {
            component: component,
            delay: delay,
            timeout: timeout,
            error: errorComponent,
            loading: loadingComponent
        };
    };
}

function createLifeCycle(hookName) {
    return function (fn, target) {
        if (target === void 0) { target = currentInstance; }
        if (!target) {
             false &&
                0;
            return;
        }
        return injectHook(target, hookName, fn);
    };
}
function formatName(name) {
    if (name === 'beforeDestroy') {
        name = 'beforeUnmount';
    }
    else if (name === 'destroyed') {
        name = 'unmounted';
    }
    return "on".concat(name[0].toUpperCase() + name.slice(1));
}
function injectHook(instance, hookName, fn) {
    var options = instance.$options;
    options[hookName] = mergeLifecycleHook(options[hookName], fn);
}
var onBeforeMount = createLifeCycle('beforeMount');
var onMounted = createLifeCycle('mounted');
var onBeforeUpdate = createLifeCycle('beforeUpdate');
var onUpdated = createLifeCycle('updated');
var onBeforeUnmount = createLifeCycle('beforeDestroy');
var onUnmounted = createLifeCycle('destroyed');
var onActivated = createLifeCycle('activated');
var onDeactivated = createLifeCycle('deactivated');
var onServerPrefetch = createLifeCycle('serverPrefetch');
var onRenderTracked = createLifeCycle('renderTracked');
var onRenderTriggered = createLifeCycle('renderTriggered');
var injectErrorCapturedHook = createLifeCycle('errorCaptured');
function onErrorCaptured(hook, target) {
    if (target === void 0) { target = currentInstance; }
    injectErrorCapturedHook(hook, target);
}

/**
 * Note: also update dist/vue.runtime.mjs when adding new exports to this file.
 */
var version = '2.7.16';
/**
 * @internal type is manually declared in <root>/types/v3-define-component.d.ts
 */
function defineComponent(options) {
    return options;
}

var seenObjects = new _Set();
/**
 * Recursively traverse an object to evoke all converted
 * getters, so that every nested property inside the object
 * is collected as a "deep" dependency.
 */
function traverse(val) {
    _traverse(val, seenObjects);
    seenObjects.clear();
    return val;
}
function _traverse(val, seen) {
    var i, keys;
    var isA = isArray(val);
    if ((!isA && !isObject(val)) ||
        val.__v_skip /* ReactiveFlags.SKIP */ ||
        Object.isFrozen(val) ||
        val instanceof VNode) {
        return;
    }
    if (val.__ob__) {
        var depId = val.__ob__.dep.id;
        if (seen.has(depId)) {
            return;
        }
        seen.add(depId);
    }
    if (isA) {
        i = val.length;
        while (i--)
            _traverse(val[i], seen);
    }
    else if (isRef(val)) {
        _traverse(val.value, seen);
    }
    else {
        keys = Object.keys(val);
        i = keys.length;
        while (i--)
            _traverse(val[keys[i]], seen);
    }
}

var uid$1 = 0;
/**
 * A watcher parses an expression, collects dependencies,
 * and fires callback when the expression value changes.
 * This is used for both the $watch() api and directives.
 * @internal
 */
var Watcher = /** @class */ (function () {
    function Watcher(vm, expOrFn, cb, options, isRenderWatcher) {
        recordEffectScope(this, 
        // if the active effect scope is manually created (not a component scope),
        // prioritize it
        activeEffectScope && !activeEffectScope._vm
            ? activeEffectScope
            : vm
                ? vm._scope
                : undefined);
        if ((this.vm = vm) && isRenderWatcher) {
            vm._watcher = this;
        }
        // options
        if (options) {
            this.deep = !!options.deep;
            this.user = !!options.user;
            this.lazy = !!options.lazy;
            this.sync = !!options.sync;
            this.before = options.before;
            if (false) {}
        }
        else {
            this.deep = this.user = this.lazy = this.sync = false;
        }
        this.cb = cb;
        this.id = ++uid$1; // uid for batching
        this.active = true;
        this.post = false;
        this.dirty = this.lazy; // for lazy watchers
        this.deps = [];
        this.newDeps = [];
        this.depIds = new _Set();
        this.newDepIds = new _Set();
        this.expression =  false ? 0 : '';
        // parse expression for getter
        if (isFunction(expOrFn)) {
            this.getter = expOrFn;
        }
        else {
            this.getter = parsePath(expOrFn);
            if (!this.getter) {
                this.getter = noop;
                 false &&
                    0;
            }
        }
        this.value = this.lazy ? undefined : this.get();
    }
    /**
     * Evaluate the getter, and re-collect dependencies.
     */
    Watcher.prototype.get = function () {
        pushTarget(this);
        var value;
        var vm = this.vm;
        try {
            value = this.getter.call(vm, vm);
        }
        catch (e) {
            if (this.user) {
                handleError(e, vm, "getter for watcher \"".concat(this.expression, "\""));
            }
            else {
                throw e;
            }
        }
        finally {
            // "touch" every property so they are all tracked as
            // dependencies for deep watching
            if (this.deep) {
                traverse(value);
            }
            popTarget();
            this.cleanupDeps();
        }
        return value;
    };
    /**
     * Add a dependency to this directive.
     */
    Watcher.prototype.addDep = function (dep) {
        var id = dep.id;
        if (!this.newDepIds.has(id)) {
            this.newDepIds.add(id);
            this.newDeps.push(dep);
            if (!this.depIds.has(id)) {
                dep.addSub(this);
            }
        }
    };
    /**
     * Clean up for dependency collection.
     */
    Watcher.prototype.cleanupDeps = function () {
        var i = this.deps.length;
        while (i--) {
            var dep = this.deps[i];
            if (!this.newDepIds.has(dep.id)) {
                dep.removeSub(this);
            }
        }
        var tmp = this.depIds;
        this.depIds = this.newDepIds;
        this.newDepIds = tmp;
        this.newDepIds.clear();
        tmp = this.deps;
        this.deps = this.newDeps;
        this.newDeps = tmp;
        this.newDeps.length = 0;
    };
    /**
     * Subscriber interface.
     * Will be called when a dependency changes.
     */
    Watcher.prototype.update = function () {
        /* istanbul ignore else */
        if (this.lazy) {
            this.dirty = true;
        }
        else if (this.sync) {
            this.run();
        }
        else {
            queueWatcher(this);
        }
    };
    /**
     * Scheduler job interface.
     * Will be called by the scheduler.
     */
    Watcher.prototype.run = function () {
        if (this.active) {
            var value = this.get();
            if (value !== this.value ||
                // Deep watchers and watchers on Object/Arrays should fire even
                // when the value is the same, because the value may
                // have mutated.
                isObject(value) ||
                this.deep) {
                // set new value
                var oldValue = this.value;
                this.value = value;
                if (this.user) {
                    var info = "callback for watcher \"".concat(this.expression, "\"");
                    invokeWithErrorHandling(this.cb, this.vm, [value, oldValue], this.vm, info);
                }
                else {
                    this.cb.call(this.vm, value, oldValue);
                }
            }
        }
    };
    /**
     * Evaluate the value of the watcher.
     * This only gets called for lazy watchers.
     */
    Watcher.prototype.evaluate = function () {
        this.value = this.get();
        this.dirty = false;
    };
    /**
     * Depend on all deps collected by this watcher.
     */
    Watcher.prototype.depend = function () {
        var i = this.deps.length;
        while (i--) {
            this.deps[i].depend();
        }
    };
    /**
     * Remove self from all dependencies' subscriber list.
     */
    Watcher.prototype.teardown = function () {
        if (this.vm && !this.vm._isBeingDestroyed) {
            remove$2(this.vm._scope.effects, this);
        }
        if (this.active) {
            var i = this.deps.length;
            while (i--) {
                this.deps[i].removeSub(this);
            }
            this.active = false;
            if (this.onStop) {
                this.onStop();
            }
        }
    };
    return Watcher;
}());

var mark;
var measure;
if (false) { var perf_1; }

function initEvents(vm) {
    vm._events = Object.create(null);
    vm._hasHookEvent = false;
    // init parent attached events
    var listeners = vm.$options._parentListeners;
    if (listeners) {
        updateComponentListeners(vm, listeners);
    }
}
var target$1;
function add$1(event, fn) {
    target$1.$on(event, fn);
}
function remove$1(event, fn) {
    target$1.$off(event, fn);
}
function createOnceHandler$1(event, fn) {
    var _target = target$1;
    return function onceHandler() {
        var res = fn.apply(null, arguments);
        if (res !== null) {
            _target.$off(event, onceHandler);
        }
    };
}
function updateComponentListeners(vm, listeners, oldListeners) {
    target$1 = vm;
    updateListeners(listeners, oldListeners || {}, add$1, remove$1, createOnceHandler$1, vm);
    target$1 = undefined;
}
function eventsMixin(Vue) {
    var hookRE = /^hook:/;
    Vue.prototype.$on = function (event, fn) {
        var vm = this;
        if (isArray(event)) {
            for (var i = 0, l = event.length; i < l; i++) {
                vm.$on(event[i], fn);
            }
        }
        else {
            (vm._events[event] || (vm._events[event] = [])).push(fn);
            // optimize hook:event cost by using a boolean flag marked at registration
            // instead of a hash lookup
            if (hookRE.test(event)) {
                vm._hasHookEvent = true;
            }
        }
        return vm;
    };
    Vue.prototype.$once = function (event, fn) {
        var vm = this;
        function on() {
            vm.$off(event, on);
            fn.apply(vm, arguments);
        }
        on.fn = fn;
        vm.$on(event, on);
        return vm;
    };
    Vue.prototype.$off = function (event, fn) {
        var vm = this;
        // all
        if (!arguments.length) {
            vm._events = Object.create(null);
            return vm;
        }
        // array of events
        if (isArray(event)) {
            for (var i_1 = 0, l = event.length; i_1 < l; i_1++) {
                vm.$off(event[i_1], fn);
            }
            return vm;
        }
        // specific event
        var cbs = vm._events[event];
        if (!cbs) {
            return vm;
        }
        if (!fn) {
            vm._events[event] = null;
            return vm;
        }
        // specific handler
        var cb;
        var i = cbs.length;
        while (i--) {
            cb = cbs[i];
            if (cb === fn || cb.fn === fn) {
                cbs.splice(i, 1);
                break;
            }
        }
        return vm;
    };
    Vue.prototype.$emit = function (event) {
        var vm = this;
        if (false) { var lowerCaseEvent; }
        var cbs = vm._events[event];
        if (cbs) {
            cbs = cbs.length > 1 ? toArray(cbs) : cbs;
            var args = toArray(arguments, 1);
            var info = "event handler for \"".concat(event, "\"");
            for (var i = 0, l = cbs.length; i < l; i++) {
                invokeWithErrorHandling(cbs[i], vm, args, vm, info);
            }
        }
        return vm;
    };
}

var activeInstance = null;
var isUpdatingChildComponent = false;
function setActiveInstance(vm) {
    var prevActiveInstance = activeInstance;
    activeInstance = vm;
    return function () {
        activeInstance = prevActiveInstance;
    };
}
function initLifecycle(vm) {
    var options = vm.$options;
    // locate first non-abstract parent
    var parent = options.parent;
    if (parent && !options.abstract) {
        while (parent.$options.abstract && parent.$parent) {
            parent = parent.$parent;
        }
        parent.$children.push(vm);
    }
    vm.$parent = parent;
    vm.$root = parent ? parent.$root : vm;
    vm.$children = [];
    vm.$refs = {};
    vm._provided = parent ? parent._provided : Object.create(null);
    vm._watcher = null;
    vm._inactive = null;
    vm._directInactive = false;
    vm._isMounted = false;
    vm._isDestroyed = false;
    vm._isBeingDestroyed = false;
}
function lifecycleMixin(Vue) {
    Vue.prototype._update = function (vnode, hydrating) {
        var vm = this;
        var prevEl = vm.$el;
        var prevVnode = vm._vnode;
        var restoreActiveInstance = setActiveInstance(vm);
        vm._vnode = vnode;
        // Vue.prototype.__patch__ is injected in entry points
        // based on the rendering backend used.
        if (!prevVnode) {
            // initial render
            vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
        }
        else {
            // updates
            vm.$el = vm.__patch__(prevVnode, vnode);
        }
        restoreActiveInstance();
        // update __vue__ reference
        if (prevEl) {
            prevEl.__vue__ = null;
        }
        if (vm.$el) {
            vm.$el.__vue__ = vm;
        }
        // if parent is an HOC, update its $el as well
        var wrapper = vm;
        while (wrapper &&
            wrapper.$vnode &&
            wrapper.$parent &&
            wrapper.$vnode === wrapper.$parent._vnode) {
            wrapper.$parent.$el = wrapper.$el;
            wrapper = wrapper.$parent;
        }
        // updated hook is called by the scheduler to ensure that children are
        // updated in a parent's updated hook.
    };
    Vue.prototype.$forceUpdate = function () {
        var vm = this;
        if (vm._watcher) {
            vm._watcher.update();
        }
    };
    Vue.prototype.$destroy = function () {
        var vm = this;
        if (vm._isBeingDestroyed) {
            return;
        }
        callHook$1(vm, 'beforeDestroy');
        vm._isBeingDestroyed = true;
        // remove self from parent
        var parent = vm.$parent;
        if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
            remove$2(parent.$children, vm);
        }
        // teardown scope. this includes both the render watcher and other
        // watchers created
        vm._scope.stop();
        // remove reference from data ob
        // frozen object may not have observer.
        if (vm._data.__ob__) {
            vm._data.__ob__.vmCount--;
        }
        // call the last hook...
        vm._isDestroyed = true;
        // invoke destroy hooks on current rendered tree
        vm.__patch__(vm._vnode, null);
        // fire destroyed hook
        callHook$1(vm, 'destroyed');
        // turn off all instance listeners.
        vm.$off();
        // remove __vue__ reference
        if (vm.$el) {
            vm.$el.__vue__ = null;
        }
        // release circular reference (#6759)
        if (vm.$vnode) {
            vm.$vnode.parent = null;
        }
    };
}
function mountComponent(vm, el, hydrating) {
    vm.$el = el;
    if (!vm.$options.render) {
        // @ts-expect-error invalid type
        vm.$options.render = createEmptyVNode;
        if (false) {}
    }
    callHook$1(vm, 'beforeMount');
    var updateComponent;
    /* istanbul ignore if */
    if (false) {}
    else {
        updateComponent = function () {
            vm._update(vm._render(), hydrating);
        };
    }
    var watcherOptions = {
        before: function () {
            if (vm._isMounted && !vm._isDestroyed) {
                callHook$1(vm, 'beforeUpdate');
            }
        }
    };
    if (false) {}
    // we set this to vm._watcher inside the watcher's constructor
    // since the watcher's initial patch may call $forceUpdate (e.g. inside child
    // component's mounted hook), which relies on vm._watcher being already defined
    new Watcher(vm, updateComponent, noop, watcherOptions, true /* isRenderWatcher */);
    hydrating = false;
    // flush buffer for flush: "pre" watchers queued in setup()
    var preWatchers = vm._preWatchers;
    if (preWatchers) {
        for (var i = 0; i < preWatchers.length; i++) {
            preWatchers[i].run();
        }
    }
    // manually mounted instance, call mounted on self
    // mounted is called for render-created child components in its inserted hook
    if (vm.$vnode == null) {
        vm._isMounted = true;
        callHook$1(vm, 'mounted');
    }
    return vm;
}
function updateChildComponent(vm, propsData, listeners, parentVnode, renderChildren) {
    if (false) {}
    // determine whether component has slot children
    // we need to do this before overwriting $options._renderChildren.
    // check if there are dynamic scopedSlots (hand-written or compiled but with
    // dynamic slot names). Static scoped slots compiled from template has the
    // "$stable" marker.
    var newScopedSlots = parentVnode.data.scopedSlots;
    var oldScopedSlots = vm.$scopedSlots;
    var hasDynamicScopedSlot = !!((newScopedSlots && !newScopedSlots.$stable) ||
        (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
        (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key) ||
        (!newScopedSlots && vm.$scopedSlots.$key));
    // Any static slot children from the parent may have changed during parent's
    // update. Dynamic scoped slots may also have changed. In such cases, a forced
    // update is necessary to ensure correctness.
    var needsForceUpdate = !!(renderChildren || // has new static slots
        vm.$options._renderChildren || // has old static slots
        hasDynamicScopedSlot);
    var prevVNode = vm.$vnode;
    vm.$options._parentVnode = parentVnode;
    vm.$vnode = parentVnode; // update vm's placeholder node without re-render
    if (vm._vnode) {
        // update child tree's parent
        vm._vnode.parent = parentVnode;
    }
    vm.$options._renderChildren = renderChildren;
    // update $attrs and $listeners hash
    // these are also reactive so they may trigger child update if the child
    // used them during render
    var attrs = parentVnode.data.attrs || emptyObject;
    if (vm._attrsProxy) {
        // force update if attrs are accessed and has changed since it may be
        // passed to a child component.
        if (syncSetupProxy(vm._attrsProxy, attrs, (prevVNode.data && prevVNode.data.attrs) || emptyObject, vm, '$attrs')) {
            needsForceUpdate = true;
        }
    }
    vm.$attrs = attrs;
    // update listeners
    listeners = listeners || emptyObject;
    var prevListeners = vm.$options._parentListeners;
    if (vm._listenersProxy) {
        syncSetupProxy(vm._listenersProxy, listeners, prevListeners || emptyObject, vm, '$listeners');
    }
    vm.$listeners = vm.$options._parentListeners = listeners;
    updateComponentListeners(vm, listeners, prevListeners);
    // update props
    if (propsData && vm.$options.props) {
        toggleObserving(false);
        var props = vm._props;
        var propKeys = vm.$options._propKeys || [];
        for (var i = 0; i < propKeys.length; i++) {
            var key = propKeys[i];
            var propOptions = vm.$options.props; // wtf flow?
            props[key] = validateProp(key, propOptions, propsData, vm);
        }
        toggleObserving(true);
        // keep a copy of raw propsData
        vm.$options.propsData = propsData;
    }
    // resolve slots + force update if has children
    if (needsForceUpdate) {
        vm.$slots = resolveSlots(renderChildren, parentVnode.context);
        vm.$forceUpdate();
    }
    if (false) {}
}
function isInInactiveTree(vm) {
    while (vm && (vm = vm.$parent)) {
        if (vm._inactive)
            return true;
    }
    return false;
}
function activateChildComponent(vm, direct) {
    if (direct) {
        vm._directInactive = false;
        if (isInInactiveTree(vm)) {
            return;
        }
    }
    else if (vm._directInactive) {
        return;
    }
    if (vm._inactive || vm._inactive === null) {
        vm._inactive = false;
        for (var i = 0; i < vm.$children.length; i++) {
            activateChildComponent(vm.$children[i]);
        }
        callHook$1(vm, 'activated');
    }
}
function deactivateChildComponent(vm, direct) {
    if (direct) {
        vm._directInactive = true;
        if (isInInactiveTree(vm)) {
            return;
        }
    }
    if (!vm._inactive) {
        vm._inactive = true;
        for (var i = 0; i < vm.$children.length; i++) {
            deactivateChildComponent(vm.$children[i]);
        }
        callHook$1(vm, 'deactivated');
    }
}
function callHook$1(vm, hook, args, setContext) {
    if (setContext === void 0) { setContext = true; }
    // #7573 disable dep collection when invoking lifecycle hooks
    pushTarget();
    var prevInst = currentInstance;
    var prevScope = getCurrentScope();
    setContext && setCurrentInstance(vm);
    var handlers = vm.$options[hook];
    var info = "".concat(hook, " hook");
    if (handlers) {
        for (var i = 0, j = handlers.length; i < j; i++) {
            invokeWithErrorHandling(handlers[i], vm, args || null, vm, info);
        }
    }
    if (vm._hasHookEvent) {
        vm.$emit('hook:' + hook);
    }
    if (setContext) {
        setCurrentInstance(prevInst);
        prevScope && prevScope.on();
    }
    popTarget();
}

var MAX_UPDATE_COUNT = 100;
var queue = [];
var activatedChildren = [];
var has = {};
var circular = {};
var waiting = false;
var flushing = false;
var index = 0;
/**
 * Reset the scheduler's state.
 */
function resetSchedulerState() {
    index = queue.length = activatedChildren.length = 0;
    has = {};
    if (false) {}
    waiting = flushing = false;
}
// Async edge case #6566 requires saving the timestamp when event listeners are
// attached. However, calling performance.now() has a perf overhead especially
// if the page has thousands of event listeners. Instead, we take a timestamp
// every time the scheduler flushes and use that for all event listeners
// attached during that flush.
var currentFlushTimestamp = 0;
// Async edge case fix requires storing an event listener's attach timestamp.
var getNow = Date.now;
// Determine what event timestamp the browser is using. Annoyingly, the
// timestamp can either be hi-res (relative to page load) or low-res
// (relative to UNIX epoch), so in order to compare time we have to use the
// same timestamp type when saving the flush timestamp.
// All IE versions use low-res event timestamps, and have problematic clock
// implementations (#9632)
if (inBrowser && !isIE) {
    var performance_1 = window.performance;
    if (performance_1 &&
        typeof performance_1.now === 'function' &&
        getNow() > document.createEvent('Event').timeStamp) {
        // if the event timestamp, although evaluated AFTER the Date.now(), is
        // smaller than it, it means the event is using a hi-res timestamp,
        // and we need to use the hi-res version for event listener timestamps as
        // well.
        getNow = function () { return performance_1.now(); };
    }
}
var sortCompareFn = function (a, b) {
    if (a.post) {
        if (!b.post)
            return 1;
    }
    else if (b.post) {
        return -1;
    }
    return a.id - b.id;
};
/**
 * Flush both queues and run the watchers.
 */
function flushSchedulerQueue() {
    currentFlushTimestamp = getNow();
    flushing = true;
    var watcher, id;
    // Sort queue before flush.
    // This ensures that:
    // 1. Components are updated from parent to child. (because parent is always
    //    created before the child)
    // 2. A component's user watchers are run before its render watcher (because
    //    user watchers are created before the render watcher)
    // 3. If a component is destroyed during a parent component's watcher run,
    //    its watchers can be skipped.
    queue.sort(sortCompareFn);
    // do not cache length because more watchers might be pushed
    // as we run existing watchers
    for (index = 0; index < queue.length; index++) {
        watcher = queue[index];
        if (watcher.before) {
            watcher.before();
        }
        id = watcher.id;
        has[id] = null;
        watcher.run();
        // in dev build, check and stop circular updates.
        if (false) {}
    }
    // keep copies of post queues before resetting state
    var activatedQueue = activatedChildren.slice();
    var updatedQueue = queue.slice();
    resetSchedulerState();
    // call component updated and activated hooks
    callActivatedHooks(activatedQueue);
    callUpdatedHooks(updatedQueue);
    cleanupDeps();
    // devtool hook
    /* istanbul ignore if */
    if (devtools && config.devtools) {
        devtools.emit('flush');
    }
}
function callUpdatedHooks(queue) {
    var i = queue.length;
    while (i--) {
        var watcher = queue[i];
        var vm = watcher.vm;
        if (vm && vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
            callHook$1(vm, 'updated');
        }
    }
}
/**
 * Queue a kept-alive component that was activated during patch.
 * The queue will be processed after the entire tree has been patched.
 */
function queueActivatedComponent(vm) {
    // setting _inactive to false here so that a render function can
    // rely on checking whether it's in an inactive tree (e.g. router-view)
    vm._inactive = false;
    activatedChildren.push(vm);
}
function callActivatedHooks(queue) {
    for (var i = 0; i < queue.length; i++) {
        queue[i]._inactive = true;
        activateChildComponent(queue[i], true /* true */);
    }
}
/**
 * Push a watcher into the watcher queue.
 * Jobs with duplicate IDs will be skipped unless it's
 * pushed when the queue is being flushed.
 */
function queueWatcher(watcher) {
    var id = watcher.id;
    if (has[id] != null) {
        return;
    }
    if (watcher === Dep.target && watcher.noRecurse) {
        return;
    }
    has[id] = true;
    if (!flushing) {
        queue.push(watcher);
    }
    else {
        // if already flushing, splice the watcher based on its id
        // if already past its id, it will be run next immediately.
        var i = queue.length - 1;
        while (i > index && queue[i].id > watcher.id) {
            i--;
        }
        queue.splice(i + 1, 0, watcher);
    }
    // queue the flush
    if (!waiting) {
        waiting = true;
        if (false) {}
        nextTick(flushSchedulerQueue);
    }
}

function initProvide(vm) {
    var provideOption = vm.$options.provide;
    if (provideOption) {
        var provided = isFunction(provideOption)
            ? provideOption.call(vm)
            : provideOption;
        if (!isObject(provided)) {
            return;
        }
        var source = resolveProvided(vm);
        // IE9 doesn't support Object.getOwnPropertyDescriptors so we have to
        // iterate the keys ourselves.
        var keys = hasSymbol ? Reflect.ownKeys(provided) : Object.keys(provided);
        for (var i = 0; i < keys.length; i++) {
            var key = keys[i];
            Object.defineProperty(source, key, Object.getOwnPropertyDescriptor(provided, key));
        }
    }
}
function initInjections(vm) {
    var result = resolveInject(vm.$options.inject, vm);
    if (result) {
        toggleObserving(false);
        Object.keys(result).forEach(function (key) {
            /* istanbul ignore else */
            if (false) {}
            else {
                defineReactive(vm, key, result[key]);
            }
        });
        toggleObserving(true);
    }
}
function resolveInject(inject, vm) {
    if (inject) {
        // inject is :any because flow is not smart enough to figure out cached
        var result = Object.create(null);
        var keys = hasSymbol ? Reflect.ownKeys(inject) : Object.keys(inject);
        for (var i = 0; i < keys.length; i++) {
            var key = keys[i];
            // #6574 in case the inject object is observed...
            if (key === '__ob__')
                continue;
            var provideKey = inject[key].from;
            if (provideKey in vm._provided) {
                result[key] = vm._provided[provideKey];
            }
            else if ('default' in inject[key]) {
                var provideDefault = inject[key].default;
                result[key] = isFunction(provideDefault)
                    ? provideDefault.call(vm)
                    : provideDefault;
            }
            else if (false) {}
        }
        return result;
    }
}

function FunctionalRenderContext(data, props, children, parent, Ctor) {
    var _this = this;
    var options = Ctor.options;
    // ensure the createElement function in functional components
    // gets a unique context - this is necessary for correct named slot check
    var contextVm;
    if (hasOwn(parent, '_uid')) {
        contextVm = Object.create(parent);
        contextVm._original = parent;
    }
    else {
        // the context vm passed in is a functional context as well.
        // in this case we want to make sure we are able to get a hold to the
        // real context instance.
        contextVm = parent;
        // @ts-ignore
        parent = parent._original;
    }
    var isCompiled = isTrue(options._compiled);
    var needNormalization = !isCompiled;
    this.data = data;
    this.props = props;
    this.children = children;
    this.parent = parent;
    this.listeners = data.on || emptyObject;
    this.injections = resolveInject(options.inject, parent);
    this.slots = function () {
        if (!_this.$slots) {
            normalizeScopedSlots(parent, data.scopedSlots, (_this.$slots = resolveSlots(children, parent)));
        }
        return _this.$slots;
    };
    Object.defineProperty(this, 'scopedSlots', {
        enumerable: true,
        get: function () {
            return normalizeScopedSlots(parent, data.scopedSlots, this.slots());
        }
    });
    // support for compiled functional template
    if (isCompiled) {
        // exposing $options for renderStatic()
        this.$options = options;
        // pre-resolve slots for renderSlot()
        this.$slots = this.slots();
        this.$scopedSlots = normalizeScopedSlots(parent, data.scopedSlots, this.$slots);
    }
    if (options._scopeId) {
        this._c = function (a, b, c, d) {
            var vnode = createElement$1(contextVm, a, b, c, d, needNormalization);
            if (vnode && !isArray(vnode)) {
                vnode.fnScopeId = options._scopeId;
                vnode.fnContext = parent;
            }
            return vnode;
        };
    }
    else {
        this._c = function (a, b, c, d) {
            return createElement$1(contextVm, a, b, c, d, needNormalization);
        };
    }
}
installRenderHelpers(FunctionalRenderContext.prototype);
function createFunctionalComponent(Ctor, propsData, data, contextVm, children) {
    var options = Ctor.options;
    var props = {};
    var propOptions = options.props;
    if (isDef(propOptions)) {
        for (var key in propOptions) {
            props[key] = validateProp(key, propOptions, propsData || emptyObject);
        }
    }
    else {
        if (isDef(data.attrs))
            mergeProps(props, data.attrs);
        if (isDef(data.props))
            mergeProps(props, data.props);
    }
    var renderContext = new FunctionalRenderContext(data, props, children, contextVm, Ctor);
    var vnode = options.render.call(null, renderContext._c, renderContext);
    if (vnode instanceof VNode) {
        return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext);
    }
    else if (isArray(vnode)) {
        var vnodes = normalizeChildren(vnode) || [];
        var res = new Array(vnodes.length);
        for (var i = 0; i < vnodes.length; i++) {
            res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
        }
        return res;
    }
}
function cloneAndMarkFunctionalResult(vnode, data, contextVm, options, renderContext) {
    // #7817 clone node before setting fnContext, otherwise if the node is reused
    // (e.g. it was from a cached normal slot) the fnContext causes named slots
    // that should not be matched to match.
    var clone = cloneVNode(vnode);
    clone.fnContext = contextVm;
    clone.fnOptions = options;
    if (false) {}
    if (data.slot) {
        (clone.data || (clone.data = {})).slot = data.slot;
    }
    return clone;
}
function mergeProps(to, from) {
    for (var key in from) {
        to[camelize(key)] = from[key];
    }
}

function getComponentName(options) {
    return options.name || options.__name || options._componentTag;
}
// inline hooks to be invoked on component VNodes during patch
var componentVNodeHooks = {
    init: function (vnode, hydrating) {
        if (vnode.componentInstance &&
            !vnode.componentInstance._isDestroyed &&
            vnode.data.keepAlive) {
            // kept-alive components, treat as a patch
            var mountedNode = vnode; // work around flow
            componentVNodeHooks.prepatch(mountedNode, mountedNode);
        }
        else {
            var child = (vnode.componentInstance = createComponentInstanceForVnode(vnode, activeInstance));
            child.$mount(hydrating ? vnode.elm : undefined, hydrating);
        }
    },
    prepatch: function (oldVnode, vnode) {
        var options = vnode.componentOptions;
        var child = (vnode.componentInstance = oldVnode.componentInstance);
        updateChildComponent(child, options.propsData, // updated props
        options.listeners, // updated listeners
        vnode, // new parent vnode
        options.children // new children
        );
    },
    insert: function (vnode) {
        var context = vnode.context, componentInstance = vnode.componentInstance;
        if (!componentInstance._isMounted) {
            componentInstance._isMounted = true;
            callHook$1(componentInstance, 'mounted');
        }
        if (vnode.data.keepAlive) {
            if (context._isMounted) {
                // vue-router#1212
                // During updates, a kept-alive component's child components may
                // change, so directly walking the tree here may call activated hooks
                // on incorrect children. Instead we push them into a queue which will
                // be processed after the whole patch process ended.
                queueActivatedComponent(componentInstance);
            }
            else {
                activateChildComponent(componentInstance, true /* direct */);
            }
        }
    },
    destroy: function (vnode) {
        var componentInstance = vnode.componentInstance;
        if (!componentInstance._isDestroyed) {
            if (!vnode.data.keepAlive) {
                componentInstance.$destroy();
            }
            else {
                deactivateChildComponent(componentInstance, true /* direct */);
            }
        }
    }
};
var hooksToMerge = Object.keys(componentVNodeHooks);
function createComponent(Ctor, data, context, children, tag) {
    if (isUndef(Ctor)) {
        return;
    }
    var baseCtor = context.$options._base;
    // plain options object: turn it into a constructor
    if (isObject(Ctor)) {
        Ctor = baseCtor.extend(Ctor);
    }
    // if at this stage it's not a constructor or an async component factory,
    // reject.
    if (typeof Ctor !== 'function') {
        if (false) {}
        return;
    }
    // async component
    var asyncFactory;
    // @ts-expect-error
    if (isUndef(Ctor.cid)) {
        asyncFactory = Ctor;
        Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
        if (Ctor === undefined) {
            // return a placeholder node for async component, which is rendered
            // as a comment node but preserves all the raw information for the node.
            // the information will be used for async server-rendering and hydration.
            return createAsyncPlaceholder(asyncFactory, data, context, children, tag);
        }
    }
    data = data || {};
    // resolve constructor options in case global mixins are applied after
    // component constructor creation
    resolveConstructorOptions(Ctor);
    // transform component v-model data into props & events
    if (isDef(data.model)) {
        // @ts-expect-error
        transformModel(Ctor.options, data);
    }
    // extract props
    // @ts-expect-error
    var propsData = extractPropsFromVNodeData(data, Ctor, tag);
    // functional component
    // @ts-expect-error
    if (isTrue(Ctor.options.functional)) {
        return createFunctionalComponent(Ctor, propsData, data, context, children);
    }
    // extract listeners, since these needs to be treated as
    // child component listeners instead of DOM listeners
    var listeners = data.on;
    // replace with listeners with .native modifier
    // so it gets processed during parent component patch.
    data.on = data.nativeOn;
    // @ts-expect-error
    if (isTrue(Ctor.options.abstract)) {
        // abstract components do not keep anything
        // other than props & listeners & slot
        // work around flow
        var slot = data.slot;
        data = {};
        if (slot) {
            data.slot = slot;
        }
    }
    // install component management hooks onto the placeholder node
    installComponentHooks(data);
    // return a placeholder vnode
    // @ts-expect-error
    var name = getComponentName(Ctor.options) || tag;
    var vnode = new VNode(
    // @ts-expect-error
    "vue-component-".concat(Ctor.cid).concat(name ? "-".concat(name) : ''), data, undefined, undefined, undefined, context, 
    // @ts-expect-error
    { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children }, asyncFactory);
    return vnode;
}
function createComponentInstanceForVnode(
// we know it's MountedComponentVNode but flow doesn't
vnode, 
// activeInstance in lifecycle state
parent) {
    var options = {
        _isComponent: true,
        _parentVnode: vnode,
        parent: parent
    };
    // check inline-template render functions
    var inlineTemplate = vnode.data.inlineTemplate;
    if (isDef(inlineTemplate)) {
        options.render = inlineTemplate.render;
        options.staticRenderFns = inlineTemplate.staticRenderFns;
    }
    return new vnode.componentOptions.Ctor(options);
}
function installComponentHooks(data) {
    var hooks = data.hook || (data.hook = {});
    for (var i = 0; i < hooksToMerge.length; i++) {
        var key = hooksToMerge[i];
        var existing = hooks[key];
        var toMerge = componentVNodeHooks[key];
        // @ts-expect-error
        if (existing !== toMerge && !(existing && existing._merged)) {
            hooks[key] = existing ? mergeHook(toMerge, existing) : toMerge;
        }
    }
}
function mergeHook(f1, f2) {
    var merged = function (a, b) {
        // flow complains about extra args which is why we use any
        f1(a, b);
        f2(a, b);
    };
    merged._merged = true;
    return merged;
}
// transform component v-model info (value and callback) into
// prop and event handler respectively.
function transformModel(options, data) {
    var prop = (options.model && options.model.prop) || 'value';
    var event = (options.model && options.model.event) || 'input';
    (data.attrs || (data.attrs = {}))[prop] = data.model.value;
    var on = data.on || (data.on = {});
    var existing = on[event];
    var callback = data.model.callback;
    if (isDef(existing)) {
        if (isArray(existing)
            ? existing.indexOf(callback) === -1
            : existing !== callback) {
            on[event] = [callback].concat(existing);
        }
    }
    else {
        on[event] = callback;
    }
}

var warn = noop;
var tip = (/* unused pure expression or super */ null && (noop));
var generateComponentTrace; // work around flow check
var formatComponentName;
if (false) { var repeat_1, classify_1, classifyRE_1, hasConsole_1; }

/**
 * Option overwriting strategies are functions that handle
 * how to merge a parent option value and a child option
 * value into the final value.
 */
var strats = config.optionMergeStrategies;
/**
 * Options with restrictions
 */
if (false) {}
/**
 * Helper that recursively merges two data objects together.
 */
function mergeData(to, from, recursive) {
    if (recursive === void 0) { recursive = true; }
    if (!from)
        return to;
    var key, toVal, fromVal;
    var keys = hasSymbol
        ? Reflect.ownKeys(from)
        : Object.keys(from);
    for (var i = 0; i < keys.length; i++) {
        key = keys[i];
        // in case the object is already observed...
        if (key === '__ob__')
            continue;
        toVal = to[key];
        fromVal = from[key];
        if (!recursive || !hasOwn(to, key)) {
            set(to, key, fromVal);
        }
        else if (toVal !== fromVal &&
            isPlainObject(toVal) &&
            isPlainObject(fromVal)) {
            mergeData(toVal, fromVal);
        }
    }
    return to;
}
/**
 * Data
 */
function mergeDataOrFn(parentVal, childVal, vm) {
    if (!vm) {
        // in a Vue.extend merge, both should be functions
        if (!childVal) {
            return parentVal;
        }
        if (!parentVal) {
            return childVal;
        }
        // when parentVal & childVal are both present,
        // we need to return a function that returns the
        // merged result of both functions... no need to
        // check if parentVal is a function here because
        // it has to be a function to pass previous merges.
        return function mergedDataFn() {
            return mergeData(isFunction(childVal) ? childVal.call(this, this) : childVal, isFunction(parentVal) ? parentVal.call(this, this) : parentVal);
        };
    }
    else {
        return function mergedInstanceDataFn() {
            // instance merge
            var instanceData = isFunction(childVal)
                ? childVal.call(vm, vm)
                : childVal;
            var defaultData = isFunction(parentVal)
                ? parentVal.call(vm, vm)
                : parentVal;
            if (instanceData) {
                return mergeData(instanceData, defaultData);
            }
            else {
                return defaultData;
            }
        };
    }
}
strats.data = function (parentVal, childVal, vm) {
    if (!vm) {
        if (childVal && typeof childVal !== 'function') {
             false &&
                0;
            return parentVal;
        }
        return mergeDataOrFn(parentVal, childVal);
    }
    return mergeDataOrFn(parentVal, childVal, vm);
};
/**
 * Hooks and props are merged as arrays.
 */
function mergeLifecycleHook(parentVal, childVal) {
    var res = childVal
        ? parentVal
            ? parentVal.concat(childVal)
            : isArray(childVal)
                ? childVal
                : [childVal]
        : parentVal;
    return res ? dedupeHooks(res) : res;
}
function dedupeHooks(hooks) {
    var res = [];
    for (var i = 0; i < hooks.length; i++) {
        if (res.indexOf(hooks[i]) === -1) {
            res.push(hooks[i]);
        }
    }
    return res;
}
LIFECYCLE_HOOKS.forEach(function (hook) {
    strats[hook] = mergeLifecycleHook;
});
/**
 * Assets
 *
 * When a vm is present (instance creation), we need to do
 * a three-way merge between constructor options, instance
 * options and parent options.
 */
function mergeAssets(parentVal, childVal, vm, key) {
    var res = Object.create(parentVal || null);
    if (childVal) {
         false && 0;
        return extend(res, childVal);
    }
    else {
        return res;
    }
}
ASSET_TYPES.forEach(function (type) {
    strats[type + 's'] = mergeAssets;
});
/**
 * Watchers.
 *
 * Watchers hashes should not overwrite one
 * another, so we merge them as arrays.
 */
strats.watch = function (parentVal, childVal, vm, key) {
    // work around Firefox's Object.prototype.watch...
    //@ts-expect-error work around
    if (parentVal === nativeWatch)
        parentVal = undefined;
    //@ts-expect-error work around
    if (childVal === nativeWatch)
        childVal = undefined;
    /* istanbul ignore if */
    if (!childVal)
        return Object.create(parentVal || null);
    if (false) {}
    if (!parentVal)
        return childVal;
    var ret = {};
    extend(ret, parentVal);
    for (var key_1 in childVal) {
        var parent_1 = ret[key_1];
        var child = childVal[key_1];
        if (parent_1 && !isArray(parent_1)) {
            parent_1 = [parent_1];
        }
        ret[key_1] = parent_1 ? parent_1.concat(child) : isArray(child) ? child : [child];
    }
    return ret;
};
/**
 * Other object hashes.
 */
strats.props =
    strats.methods =
        strats.inject =
            strats.computed =
                function (parentVal, childVal, vm, key) {
                    if (childVal && "production" !== 'production') {}
                    if (!parentVal)
                        return childVal;
                    var ret = Object.create(null);
                    extend(ret, parentVal);
                    if (childVal)
                        extend(ret, childVal);
                    return ret;
                };
strats.provide = function (parentVal, childVal) {
    if (!parentVal)
        return childVal;
    return function () {
        var ret = Object.create(null);
        mergeData(ret, isFunction(parentVal) ? parentVal.call(this) : parentVal);
        if (childVal) {
            mergeData(ret, isFunction(childVal) ? childVal.call(this) : childVal, false // non-recursive
            );
        }
        return ret;
    };
};
/**
 * Default strategy.
 */
var defaultStrat = function (parentVal, childVal) {
    return childVal === undefined ? parentVal : childVal;
};
/**
 * Validate component names
 */
function checkComponents(options) {
    for (var key in options.components) {
        validateComponentName(key);
    }
}
function validateComponentName(name) {
    if (!new RegExp("^[a-zA-Z][\\-\\.0-9_".concat(unicodeRegExp.source, "]*$")).test(name)) {
        warn('Invalid component name: "' +
            name +
            '". Component names ' +
            'should conform to valid custom element name in html5 specification.');
    }
    if (isBuiltInTag(name) || config.isReservedTag(name)) {
        warn('Do not use built-in or reserved HTML elements as component ' +
            'id: ' +
            name);
    }
}
/**
 * Ensure all props option syntax are normalized into the
 * Object-based format.
 */
function normalizeProps(options, vm) {
    var props = options.props;
    if (!props)
        return;
    var res = {};
    var i, val, name;
    if (isArray(props)) {
        i = props.length;
        while (i--) {
            val = props[i];
            if (typeof val === 'string') {
                name = camelize(val);
                res[name] = { type: null };
            }
            else if (false) {}
        }
    }
    else if (isPlainObject(props)) {
        for (var key in props) {
            val = props[key];
            name = camelize(key);
            res[name] = isPlainObject(val) ? val : { type: val };
        }
    }
    else if (false) {}
    options.props = res;
}
/**
 * Normalize all injections into Object-based format
 */
function normalizeInject(options, vm) {
    var inject = options.inject;
    if (!inject)
        return;
    var normalized = (options.inject = {});
    if (isArray(inject)) {
        for (var i = 0; i < inject.length; i++) {
            normalized[inject[i]] = { from: inject[i] };
        }
    }
    else if (isPlainObject(inject)) {
        for (var key in inject) {
            var val = inject[key];
            normalized[key] = isPlainObject(val)
                ? extend({ from: key }, val)
                : { from: val };
        }
    }
    else if (false) {}
}
/**
 * Normalize raw function directives into object format.
 */
function normalizeDirectives$1(options) {
    var dirs = options.directives;
    if (dirs) {
        for (var key in dirs) {
            var def = dirs[key];
            if (isFunction(def)) {
                dirs[key] = { bind: def, update: def };
            }
        }
    }
}
function assertObjectType(name, value, vm) {
    if (!isPlainObject(value)) {
        warn("Invalid value for option \"".concat(name, "\": expected an Object, ") +
            "but got ".concat(toRawType(value), "."), vm);
    }
}
/**
 * Merge two option objects into a new one.
 * Core utility used in both instantiation and inheritance.
 */
function mergeOptions(parent, child, vm) {
    if (false) {}
    if (isFunction(child)) {
        // @ts-expect-error
        child = child.options;
    }
    normalizeProps(child, vm);
    normalizeInject(child, vm);
    normalizeDirectives$1(child);
    // Apply extends and mixins on the child options,
    // but only if it is a raw options object that isn't
    // the result of another mergeOptions call.
    // Only merged options has the _base property.
    if (!child._base) {
        if (child.extends) {
            parent = mergeOptions(parent, child.extends, vm);
        }
        if (child.mixins) {
            for (var i = 0, l = child.mixins.length; i < l; i++) {
                parent = mergeOptions(parent, child.mixins[i], vm);
            }
        }
    }
    var options = {};
    var key;
    for (key in parent) {
        mergeField(key);
    }
    for (key in child) {
        if (!hasOwn(parent, key)) {
            mergeField(key);
        }
    }
    function mergeField(key) {
        var strat = strats[key] || defaultStrat;
        options[key] = strat(parent[key], child[key], vm, key);
    }
    return options;
}
/**
 * Resolve an asset.
 * This function is used because child instances need access
 * to assets defined in its ancestor chain.
 */
function resolveAsset(options, type, id, warnMissing) {
    /* istanbul ignore if */
    if (typeof id !== 'string') {
        return;
    }
    var assets = options[type];
    // check local registration variations first
    if (hasOwn(assets, id))
        return assets[id];
    var camelizedId = camelize(id);
    if (hasOwn(assets, camelizedId))
        return assets[camelizedId];
    var PascalCaseId = capitalize(camelizedId);
    if (hasOwn(assets, PascalCaseId))
        return assets[PascalCaseId];
    // fallback to prototype chain
    var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
    if (false) {}
    return res;
}

function validateProp(key, propOptions, propsData, vm) {
    var prop = propOptions[key];
    var absent = !hasOwn(propsData, key);
    var value = propsData[key];
    // boolean casting
    var booleanIndex = getTypeIndex(Boolean, prop.type);
    if (booleanIndex > -1) {
        if (absent && !hasOwn(prop, 'default')) {
            value = false;
        }
        else if (value === '' || value === hyphenate(key)) {
            // only cast empty string / same name to boolean if
            // boolean has higher priority
            var stringIndex = getTypeIndex(String, prop.type);
            if (stringIndex < 0 || booleanIndex < stringIndex) {
                value = true;
            }
        }
    }
    // check default value
    if (value === undefined) {
        value = getPropDefaultValue(vm, prop, key);
        // since the default value is a fresh copy,
        // make sure to observe it.
        var prevShouldObserve = shouldObserve;
        toggleObserving(true);
        observe(value);
        toggleObserving(prevShouldObserve);
    }
    if (false) {}
    return value;
}
/**
 * Get the default value of a prop.
 */
function getPropDefaultValue(vm, prop, key) {
    // no default, return undefined
    if (!hasOwn(prop, 'default')) {
        return undefined;
    }
    var def = prop.default;
    // warn against non-factory defaults for Object & Array
    if (false) {}
    // the raw prop value was also undefined from previous render,
    // return previous default value to avoid unnecessary watcher trigger
    if (vm &&
        vm.$options.propsData &&
        vm.$options.propsData[key] === undefined &&
        vm._props[key] !== undefined) {
        return vm._props[key];
    }
    // call factory function for non-Function types
    // a value is Function if its prototype is function even across different execution context
    return isFunction(def) && getType(prop.type) !== 'Function'
        ? def.call(vm)
        : def;
}
/**
 * Assert whether a prop is valid.
 */
function assertProp(prop, name, value, vm, absent) {
    if (prop.required && absent) {
        warn('Missing required prop: "' + name + '"', vm);
        return;
    }
    if (value == null && !prop.required) {
        return;
    }
    var type = prop.type;
    var valid = !type || type === true;
    var expectedTypes = [];
    if (type) {
        if (!isArray(type)) {
            type = [type];
        }
        for (var i = 0; i < type.length && !valid; i++) {
            var assertedType = assertType(value, type[i], vm);
            expectedTypes.push(assertedType.expectedType || '');
            valid = assertedType.valid;
        }
    }
    var haveExpectedTypes = expectedTypes.some(function (t) { return t; });
    if (!valid && haveExpectedTypes) {
        warn(getInvalidTypeMessage(name, value, expectedTypes), vm);
        return;
    }
    var validator = prop.validator;
    if (validator) {
        if (!validator(value)) {
            warn('Invalid prop: custom validator check failed for prop "' + name + '".', vm);
        }
    }
}
var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol|BigInt)$/;
function assertType(value, type, vm) {
    var valid;
    var expectedType = getType(type);
    if (simpleCheckRE.test(expectedType)) {
        var t = typeof value;
        valid = t === expectedType.toLowerCase();
        // for primitive wrapper objects
        if (!valid && t === 'object') {
            valid = value instanceof type;
        }
    }
    else if (expectedType === 'Object') {
        valid = isPlainObject(value);
    }
    else if (expectedType === 'Array') {
        valid = isArray(value);
    }
    else {
        try {
            valid = value instanceof type;
        }
        catch (e) {
            warn('Invalid prop type: "' + String(type) + '" is not a constructor', vm);
            valid = false;
        }
    }
    return {
        valid: valid,
        expectedType: expectedType
    };
}
var functionTypeCheckRE = /^\s*function (\w+)/;
/**
 * Use function string name to check built-in types,
 * because a simple equality check will fail when running
 * across different vms / iframes.
 */
function getType(fn) {
    var match = fn && fn.toString().match(functionTypeCheckRE);
    return match ? match[1] : '';
}
function isSameType(a, b) {
    return getType(a) === getType(b);
}
function getTypeIndex(type, expectedTypes) {
    if (!isArray(expectedTypes)) {
        return isSameType(expectedTypes, type) ? 0 : -1;
    }
    for (var i = 0, len = expectedTypes.length; i < len; i++) {
        if (isSameType(expectedTypes[i], type)) {
            return i;
        }
    }
    return -1;
}
function getInvalidTypeMessage(name, value, expectedTypes) {
    var message = "Invalid prop: type check failed for prop \"".concat(name, "\".") +
        " Expected ".concat(expectedTypes.map(capitalize).join(', '));
    var expectedType = expectedTypes[0];
    var receivedType = toRawType(value);
    // check if we need to specify expected value
    if (expectedTypes.length === 1 &&
        isExplicable(expectedType) &&
        isExplicable(typeof value) &&
        !isBoolean(expectedType, receivedType)) {
        message += " with value ".concat(styleValue(value, expectedType));
    }
    message += ", got ".concat(receivedType, " ");
    // check if we need to specify received value
    if (isExplicable(receivedType)) {
        message += "with value ".concat(styleValue(value, receivedType), ".");
    }
    return message;
}
function styleValue(value, type) {
    if (type === 'String') {
        return "\"".concat(value, "\"");
    }
    else if (type === 'Number') {
        return "".concat(Number(value));
    }
    else {
        return "".concat(value);
    }
}
var EXPLICABLE_TYPES = (/* unused pure expression or super */ null && (['string', 'number', 'boolean']));
function isExplicable(value) {
    return EXPLICABLE_TYPES.some(function (elem) { return value.toLowerCase() === elem; });
}
function isBoolean() {
    var args = [];
    for (var _i = 0; _i < arguments.length; _i++) {
        args[_i] = arguments[_i];
    }
    return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; });
}

/* not type checking this file because flow doesn't play well with Proxy */
var initProxy;
if (false) { var getHandler_1, hasHandler_1, isBuiltInModifier_1, hasProxy_1, warnReservedPrefix_1, warnNonPresent_1, allowedGlobals_1; }

var sharedPropertyDefinition = {
    enumerable: true,
    configurable: true,
    get: noop,
    set: noop
};
function proxy(target, sourceKey, key) {
    sharedPropertyDefinition.get = function proxyGetter() {
        return this[sourceKey][key];
    };
    sharedPropertyDefinition.set = function proxySetter(val) {
        this[sourceKey][key] = val;
    };
    Object.defineProperty(target, key, sharedPropertyDefinition);
}
function initState(vm) {
    var opts = vm.$options;
    if (opts.props)
        initProps$1(vm, opts.props);
    // Composition API
    initSetup(vm);
    if (opts.methods)
        initMethods(vm, opts.methods);
    if (opts.data) {
        initData(vm);
    }
    else {
        var ob = observe((vm._data = {}));
        ob && ob.vmCount++;
    }
    if (opts.computed)
        initComputed$1(vm, opts.computed);
    if (opts.watch && opts.watch !== nativeWatch) {
        initWatch(vm, opts.watch);
    }
}
function initProps$1(vm, propsOptions) {
    var propsData = vm.$options.propsData || {};
    var props = (vm._props = shallowReactive({}));
    // cache prop keys so that future props updates can iterate using Array
    // instead of dynamic object key enumeration.
    var keys = (vm.$options._propKeys = []);
    var isRoot = !vm.$parent;
    // root instance props should be converted
    if (!isRoot) {
        toggleObserving(false);
    }
    var _loop_1 = function (key) {
        keys.push(key);
        var value = validateProp(key, propsOptions, propsData, vm);
        /* istanbul ignore else */
        if (false) { var hyphenatedKey; }
        else {
            defineReactive(props, key, value, undefined, true /* shallow */);
        }
        // static props are already proxied on the component's prototype
        // during Vue.extend(). We only need to proxy props defined at
        // instantiation here.
        if (!(key in vm)) {
            proxy(vm, "_props", key);
        }
    };
    for (var key in propsOptions) {
        _loop_1(key);
    }
    toggleObserving(true);
}
function initData(vm) {
    var data = vm.$options.data;
    data = vm._data = isFunction(data) ? getData(data, vm) : data || {};
    if (!isPlainObject(data)) {
        data = {};
         false &&
            0;
    }
    // proxy data on instance
    var keys = Object.keys(data);
    var props = vm.$options.props;
    var methods = vm.$options.methods;
    var i = keys.length;
    while (i--) {
        var key = keys[i];
        if (false) {}
        if (props && hasOwn(props, key)) {
             false &&
                0;
        }
        else if (!isReserved(key)) {
            proxy(vm, "_data", key);
        }
    }
    // observe data
    var ob = observe(data);
    ob && ob.vmCount++;
}
function getData(data, vm) {
    // #7573 disable dep collection when invoking data getters
    pushTarget();
    try {
        return data.call(vm, vm);
    }
    catch (e) {
        handleError(e, vm, "data()");
        return {};
    }
    finally {
        popTarget();
    }
}
var computedWatcherOptions = { lazy: true };
function initComputed$1(vm, computed) {
    // $flow-disable-line
    var watchers = (vm._computedWatchers = Object.create(null));
    // computed properties are just getters during SSR
    var isSSR = isServerRendering();
    for (var key in computed) {
        var userDef = computed[key];
        var getter = isFunction(userDef) ? userDef : userDef.get;
        if (false) {}
        if (!isSSR) {
            // create internal watcher for the computed property.
            watchers[key] = new Watcher(vm, getter || noop, noop, computedWatcherOptions);
        }
        // component-defined computed properties are already defined on the
        // component prototype. We only need to define computed properties defined
        // at instantiation here.
        if (!(key in vm)) {
            defineComputed(vm, key, userDef);
        }
        else if (false) {}
    }
}
function defineComputed(target, key, userDef) {
    var shouldCache = !isServerRendering();
    if (isFunction(userDef)) {
        sharedPropertyDefinition.get = shouldCache
            ? createComputedGetter(key)
            : createGetterInvoker(userDef);
        sharedPropertyDefinition.set = noop;
    }
    else {
        sharedPropertyDefinition.get = userDef.get
            ? shouldCache && userDef.cache !== false
                ? createComputedGetter(key)
                : createGetterInvoker(userDef.get)
            : noop;
        sharedPropertyDefinition.set = userDef.set || noop;
    }
    if (false) {}
    Object.defineProperty(target, key, sharedPropertyDefinition);
}
function createComputedGetter(key) {
    return function computedGetter() {
        var watcher = this._computedWatchers && this._computedWatchers[key];
        if (watcher) {
            if (watcher.dirty) {
                watcher.evaluate();
            }
            if (Dep.target) {
                if (false) {}
                watcher.depend();
            }
            return watcher.value;
        }
    };
}
function createGetterInvoker(fn) {
    return function computedGetter() {
        return fn.call(this, this);
    };
}
function initMethods(vm, methods) {
    var props = vm.$options.props;
    for (var key in methods) {
        if (false) {}
        vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
    }
}
function initWatch(vm, watch) {
    for (var key in watch) {
        var handler = watch[key];
        if (isArray(handler)) {
            for (var i = 0; i < handler.length; i++) {
                createWatcher(vm, key, handler[i]);
            }
        }
        else {
            createWatcher(vm, key, handler);
        }
    }
}
function createWatcher(vm, expOrFn, handler, options) {
    if (isPlainObject(handler)) {
        options = handler;
        handler = handler.handler;
    }
    if (typeof handler === 'string') {
        handler = vm[handler];
    }
    return vm.$watch(expOrFn, handler, options);
}
function stateMixin(Vue) {
    // flow somehow has problems with directly declared definition object
    // when using Object.defineProperty, so we have to procedurally build up
    // the object here.
    var dataDef = {};
    dataDef.get = function () {
        return this._data;
    };
    var propsDef = {};
    propsDef.get = function () {
        return this._props;
    };
    if (false) {}
    Object.defineProperty(Vue.prototype, '$data', dataDef);
    Object.defineProperty(Vue.prototype, '$props', propsDef);
    Vue.prototype.$set = set;
    Vue.prototype.$delete = del;
    Vue.prototype.$watch = function (expOrFn, cb, options) {
        var vm = this;
        if (isPlainObject(cb)) {
            return createWatcher(vm, expOrFn, cb, options);
        }
        options = options || {};
        options.user = true;
        var watcher = new Watcher(vm, expOrFn, cb, options);
        if (options.immediate) {
            var info = "callback for immediate watcher \"".concat(watcher.expression, "\"");
            pushTarget();
            invokeWithErrorHandling(cb, vm, [watcher.value], vm, info);
            popTarget();
        }
        return function unwatchFn() {
            watcher.teardown();
        };
    };
}

var uid = 0;
function initMixin$1(Vue) {
    Vue.prototype._init = function (options) {
        var vm = this;
        // a uid
        vm._uid = uid++;
        var startTag, endTag;
        /* istanbul ignore if */
        if (false) {}
        // a flag to mark this as a Vue instance without having to do instanceof
        // check
        vm._isVue = true;
        // avoid instances from being observed
        vm.__v_skip = true;
        // effect scope
        vm._scope = new EffectScope(true /* detached */);
        // #13134 edge case where a child component is manually created during the
        // render of a parent component
        vm._scope.parent = undefined;
        vm._scope._vm = true;
        // merge options
        if (options && options._isComponent) {
            // optimize internal component instantiation
            // since dynamic options merging is pretty slow, and none of the
            // internal component options needs special treatment.
            initInternalComponent(vm, options);
        }
        else {
            vm.$options = mergeOptions(resolveConstructorOptions(vm.constructor), options || {}, vm);
        }
        /* istanbul ignore else */
        if (false) {}
        else {
            vm._renderProxy = vm;
        }
        // expose real self
        vm._self = vm;
        initLifecycle(vm);
        initEvents(vm);
        initRender(vm);
        callHook$1(vm, 'beforeCreate', undefined, false /* setContext */);
        initInjections(vm); // resolve injections before data/props
        initState(vm);
        initProvide(vm); // resolve provide after data/props
        callHook$1(vm, 'created');
        /* istanbul ignore if */
        if (false) {}
        if (vm.$options.el) {
            vm.$mount(vm.$options.el);
        }
    };
}
function initInternalComponent(vm, options) {
    var opts = (vm.$options = Object.create(vm.constructor.options));
    // doing this because it's faster than dynamic enumeration.
    var parentVnode = options._parentVnode;
    opts.parent = options.parent;
    opts._parentVnode = parentVnode;
    var vnodeComponentOptions = parentVnode.componentOptions;
    opts.propsData = vnodeComponentOptions.propsData;
    opts._parentListeners = vnodeComponentOptions.listeners;
    opts._renderChildren = vnodeComponentOptions.children;
    opts._componentTag = vnodeComponentOptions.tag;
    if (options.render) {
        opts.render = options.render;
        opts.staticRenderFns = options.staticRenderFns;
    }
}
function resolveConstructorOptions(Ctor) {
    var options = Ctor.options;
    if (Ctor.super) {
        var superOptions = resolveConstructorOptions(Ctor.super);
        var cachedSuperOptions = Ctor.superOptions;
        if (superOptions !== cachedSuperOptions) {
            // super option changed,
            // need to resolve new options.
            Ctor.superOptions = superOptions;
            // check if there are any late-modified/attached options (#4976)
            var modifiedOptions = resolveModifiedOptions(Ctor);
            // update base extend options
            if (modifiedOptions) {
                extend(Ctor.extendOptions, modifiedOptions);
            }
            options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
            if (options.name) {
                options.components[options.name] = Ctor;
            }
        }
    }
    return options;
}
function resolveModifiedOptions(Ctor) {
    var modified;
    var latest = Ctor.options;
    var sealed = Ctor.sealedOptions;
    for (var key in latest) {
        if (latest[key] !== sealed[key]) {
            if (!modified)
                modified = {};
            modified[key] = latest[key];
        }
    }
    return modified;
}

function Vue(options) {
    if (false) {}
    this._init(options);
}
//@ts-expect-error Vue has function type
initMixin$1(Vue);
//@ts-expect-error Vue has function type
stateMixin(Vue);
//@ts-expect-error Vue has function type
eventsMixin(Vue);
//@ts-expect-error Vue has function type
lifecycleMixin(Vue);
//@ts-expect-error Vue has function type
renderMixin(Vue);

function initUse(Vue) {
    Vue.use = function (plugin) {
        var installedPlugins = this._installedPlugins || (this._installedPlugins = []);
        if (installedPlugins.indexOf(plugin) > -1) {
            return this;
        }
        // additional parameters
        var args = toArray(arguments, 1);
        args.unshift(this);
        if (isFunction(plugin.install)) {
            plugin.install.apply(plugin, args);
        }
        else if (isFunction(plugin)) {
            plugin.apply(null, args);
        }
        installedPlugins.push(plugin);
        return this;
    };
}

function initMixin(Vue) {
    Vue.mixin = function (mixin) {
        this.options = mergeOptions(this.options, mixin);
        return this;
    };
}

function initExtend(Vue) {
    /**
     * Each instance constructor, including Vue, has a unique
     * cid. This enables us to create wrapped "child
     * constructors" for prototypal inheritance and cache them.
     */
    Vue.cid = 0;
    var cid = 1;
    /**
     * Class inheritance
     */
    Vue.extend = function (extendOptions) {
        extendOptions = extendOptions || {};
        var Super = this;
        var SuperId = Super.cid;
        var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
        if (cachedCtors[SuperId]) {
            return cachedCtors[SuperId];
        }
        var name = getComponentName(extendOptions) || getComponentName(Super.options);
        if (false) {}
        var Sub = function VueComponent(options) {
            this._init(options);
        };
        Sub.prototype = Object.create(Super.prototype);
        Sub.prototype.constructor = Sub;
        Sub.cid = cid++;
        Sub.options = mergeOptions(Super.options, extendOptions);
        Sub['super'] = Super;
        // For props and computed properties, we define the proxy getters on
        // the Vue instances at extension time, on the extended prototype. This
        // avoids Object.defineProperty calls for each instance created.
        if (Sub.options.props) {
            initProps(Sub);
        }
        if (Sub.options.computed) {
            initComputed(Sub);
        }
        // allow further extension/mixin/plugin usage
        Sub.extend = Super.extend;
        Sub.mixin = Super.mixin;
        Sub.use = Super.use;
        // create asset registers, so extended classes
        // can have their private assets too.
        ASSET_TYPES.forEach(function (type) {
            Sub[type] = Super[type];
        });
        // enable recursive self-lookup
        if (name) {
            Sub.options.components[name] = Sub;
        }
        // keep a reference to the super options at extension time.
        // later at instantiation we can check if Super's options have
        // been updated.
        Sub.superOptions = Super.options;
        Sub.extendOptions = extendOptions;
        Sub.sealedOptions = extend({}, Sub.options);
        // cache constructor
        cachedCtors[SuperId] = Sub;
        return Sub;
    };
}
function initProps(Comp) {
    var props = Comp.options.props;
    for (var key in props) {
        proxy(Comp.prototype, "_props", key);
    }
}
function initComputed(Comp) {
    var computed = Comp.options.computed;
    for (var key in computed) {
        defineComputed(Comp.prototype, key, computed[key]);
    }
}

function initAssetRegisters(Vue) {
    /**
     * Create asset registration methods.
     */
    ASSET_TYPES.forEach(function (type) {
        // @ts-expect-error function is not exact same type
        Vue[type] = function (id, definition) {
            if (!definition) {
                return this.options[type + 's'][id];
            }
            else {
                /* istanbul ignore if */
                if (false) {}
                if (type === 'component' && isPlainObject(definition)) {
                    // @ts-expect-error
                    definition.name = definition.name || id;
                    definition = this.options._base.extend(definition);
                }
                if (type === 'directive' && isFunction(definition)) {
                    definition = { bind: definition, update: definition };
                }
                this.options[type + 's'][id] = definition;
                return definition;
            }
        };
    });
}

function _getComponentName(opts) {
    return opts && (getComponentName(opts.Ctor.options) || opts.tag);
}
function matches(pattern, name) {
    if (isArray(pattern)) {
        return pattern.indexOf(name) > -1;
    }
    else if (typeof pattern === 'string') {
        return pattern.split(',').indexOf(name) > -1;
    }
    else if (isRegExp(pattern)) {
        return pattern.test(name);
    }
    /* istanbul ignore next */
    return false;
}
function pruneCache(keepAliveInstance, filter) {
    var cache = keepAliveInstance.cache, keys = keepAliveInstance.keys, _vnode = keepAliveInstance._vnode, $vnode = keepAliveInstance.$vnode;
    for (var key in cache) {
        var entry = cache[key];
        if (entry) {
            var name_1 = entry.name;
            if (name_1 && !filter(name_1)) {
                pruneCacheEntry(cache, key, keys, _vnode);
            }
        }
    }
    $vnode.componentOptions.children = undefined;
}
function pruneCacheEntry(cache, key, keys, current) {
    var entry = cache[key];
    if (entry && (!current || entry.tag !== current.tag)) {
        // @ts-expect-error can be undefined
        entry.componentInstance.$destroy();
    }
    cache[key] = null;
    remove$2(keys, key);
}
var patternTypes = [String, RegExp, Array];
// TODO defineComponent
var KeepAlive = {
    name: 'keep-alive',
    abstract: true,
    props: {
        include: patternTypes,
        exclude: patternTypes,
        max: [String, Number]
    },
    methods: {
        cacheVNode: function () {
            var _a = this, cache = _a.cache, keys = _a.keys, vnodeToCache = _a.vnodeToCache, keyToCache = _a.keyToCache;
            if (vnodeToCache) {
                var tag = vnodeToCache.tag, componentInstance = vnodeToCache.componentInstance, componentOptions = vnodeToCache.componentOptions;
                cache[keyToCache] = {
                    name: _getComponentName(componentOptions),
                    tag: tag,
                    componentInstance: componentInstance
                };
                keys.push(keyToCache);
                // prune oldest entry
                if (this.max && keys.length > parseInt(this.max)) {
                    pruneCacheEntry(cache, keys[0], keys, this._vnode);
                }
                this.vnodeToCache = null;
            }
        }
    },
    created: function () {
        this.cache = Object.create(null);
        this.keys = [];
    },
    destroyed: function () {
        for (var key in this.cache) {
            pruneCacheEntry(this.cache, key, this.keys);
        }
    },
    mounted: function () {
        var _this = this;
        this.cacheVNode();
        this.$watch('include', function (val) {
            pruneCache(_this, function (name) { return matches(val, name); });
        });
        this.$watch('exclude', function (val) {
            pruneCache(_this, function (name) { return !matches(val, name); });
        });
    },
    updated: function () {
        this.cacheVNode();
    },
    render: function () {
        var slot = this.$slots.default;
        var vnode = getFirstComponentChild(slot);
        var componentOptions = vnode && vnode.componentOptions;
        if (componentOptions) {
            // check pattern
            var name_2 = _getComponentName(componentOptions);
            var _a = this, include = _a.include, exclude = _a.exclude;
            if (
            // not included
            (include && (!name_2 || !matches(include, name_2))) ||
                // excluded
                (exclude && name_2 && matches(exclude, name_2))) {
                return vnode;
            }
            var _b = this, cache = _b.cache, keys = _b.keys;
            var key = vnode.key == null
                ? // same constructor may get registered as different local components
                    // so cid alone is not enough (#3269)
                    componentOptions.Ctor.cid +
                        (componentOptions.tag ? "::".concat(componentOptions.tag) : '')
                : vnode.key;
            if (cache[key]) {
                vnode.componentInstance = cache[key].componentInstance;
                // make current key freshest
                remove$2(keys, key);
                keys.push(key);
            }
            else {
                // delay setting the cache until update
                this.vnodeToCache = vnode;
                this.keyToCache = key;
            }
            // @ts-expect-error can vnode.data can be undefined
            vnode.data.keepAlive = true;
        }
        return vnode || (slot && slot[0]);
    }
};

var builtInComponents = {
    KeepAlive: KeepAlive
};

function initGlobalAPI(Vue) {
    // config
    var configDef = {};
    configDef.get = function () { return config; };
    if (false) {}
    Object.defineProperty(Vue, 'config', configDef);
    // exposed util methods.
    // NOTE: these are not considered part of the public API - avoid relying on
    // them unless you are aware of the risk.
    Vue.util = {
        warn: warn,
        extend: extend,
        mergeOptions: mergeOptions,
        defineReactive: defineReactive
    };
    Vue.set = set;
    Vue.delete = del;
    Vue.nextTick = nextTick;
    // 2.6 explicit observable API
    Vue.observable = function (obj) {
        observe(obj);
        return obj;
    };
    Vue.options = Object.create(null);
    ASSET_TYPES.forEach(function (type) {
        Vue.options[type + 's'] = Object.create(null);
    });
    // this is used to identify the "base" constructor to extend all plain-object
    // components with in Weex's multi-instance scenarios.
    Vue.options._base = Vue;
    extend(Vue.options.components, builtInComponents);
    initUse(Vue);
    initMixin(Vue);
    initExtend(Vue);
    initAssetRegisters(Vue);
}

initGlobalAPI(Vue);
Object.defineProperty(Vue.prototype, '$isServer', {
    get: isServerRendering
});
Object.defineProperty(Vue.prototype, '$ssrContext', {
    get: function () {
        /* istanbul ignore next */
        return this.$vnode && this.$vnode.ssrContext;
    }
});
// expose FunctionalRenderContext for ssr runtime helper installation
Object.defineProperty(Vue, 'FunctionalRenderContext', {
    value: FunctionalRenderContext
});
Vue.version = version;

// these are reserved for web because they are directly compiled away
// during template compilation
var isReservedAttr = makeMap('style,class');
// attributes that should be using props for binding
var acceptValue = makeMap('input,textarea,option,select,progress');
var mustUseProp = function (tag, type, attr) {
    return ((attr === 'value' && acceptValue(tag) && type !== 'button') ||
        (attr === 'selected' && tag === 'option') ||
        (attr === 'checked' && tag === 'input') ||
        (attr === 'muted' && tag === 'video'));
};
var isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');
var isValidContentEditableValue = makeMap('events,caret,typing,plaintext-only');
var convertEnumeratedValue = function (key, value) {
    return isFalsyAttrValue(value) || value === 'false'
        ? 'false'
        : // allow arbitrary string value for contenteditable
            key === 'contenteditable' && isValidContentEditableValue(value)
                ? value
                : 'true';
};
var isBooleanAttr = makeMap('allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,' +
    'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +
    'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +
    'muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,' +
    'required,reversed,scoped,seamless,selected,sortable,' +
    'truespeed,typemustmatch,visible');
var xlinkNS = 'http://www.w3.org/1999/xlink';
var isXlink = function (name) {
    return name.charAt(5) === ':' && name.slice(0, 5) === 'xlink';
};
var getXlinkProp = function (name) {
    return isXlink(name) ? name.slice(6, name.length) : '';
};
var isFalsyAttrValue = function (val) {
    return val == null || val === false;
};

function genClassForVnode(vnode) {
    var data = vnode.data;
    var parentNode = vnode;
    var childNode = vnode;
    while (isDef(childNode.componentInstance)) {
        childNode = childNode.componentInstance._vnode;
        if (childNode && childNode.data) {
            data = mergeClassData(childNode.data, data);
        }
    }
    // @ts-expect-error parentNode.parent not VNodeWithData
    while (isDef((parentNode = parentNode.parent))) {
        if (parentNode && parentNode.data) {
            data = mergeClassData(data, parentNode.data);
        }
    }
    return renderClass(data.staticClass, data.class);
}
function mergeClassData(child, parent) {
    return {
        staticClass: concat(child.staticClass, parent.staticClass),
        class: isDef(child.class) ? [child.class, parent.class] : parent.class
    };
}
function renderClass(staticClass, dynamicClass) {
    if (isDef(staticClass) || isDef(dynamicClass)) {
        return concat(staticClass, stringifyClass(dynamicClass));
    }
    /* istanbul ignore next */
    return '';
}
function concat(a, b) {
    return a ? (b ? a + ' ' + b : a) : b || '';
}
function stringifyClass(value) {
    if (Array.isArray(value)) {
        return stringifyArray(value);
    }
    if (isObject(value)) {
        return stringifyObject(value);
    }
    if (typeof value === 'string') {
        return value;
    }
    /* istanbul ignore next */
    return '';
}
function stringifyArray(value) {
    var res = '';
    var stringified;
    for (var i = 0, l = value.length; i < l; i++) {
        if (isDef((stringified = stringifyClass(value[i]))) && stringified !== '') {
            if (res)
                res += ' ';
            res += stringified;
        }
    }
    return res;
}
function stringifyObject(value) {
    var res = '';
    for (var key in value) {
        if (value[key]) {
            if (res)
                res += ' ';
            res += key;
        }
    }
    return res;
}

var namespaceMap = {
    svg: 'http://www.w3.org/2000/svg',
    math: 'http://www.w3.org/1998/Math/MathML'
};
var isHTMLTag = makeMap('html,body,base,head,link,meta,style,title,' +
    'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
    'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
    'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +
    's,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,' +
    'embed,object,param,source,canvas,script,noscript,del,ins,' +
    'caption,col,colgroup,table,thead,tbody,td,th,tr,' +
    'button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,' +
    'output,progress,select,textarea,' +
    'details,dialog,menu,menuitem,summary,' +
    'content,element,shadow,template,blockquote,iframe,tfoot');
// this map is intentionally selective, only covering SVG elements that may
// contain child elements.
var isSVG = makeMap('svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
    'foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
    'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view', true);
var isReservedTag = function (tag) {
    return isHTMLTag(tag) || isSVG(tag);
};
function getTagNamespace(tag) {
    if (isSVG(tag)) {
        return 'svg';
    }
    // basic support for MathML
    // note it doesn't support other MathML elements being component roots
    if (tag === 'math') {
        return 'math';
    }
}
var unknownElementCache = Object.create(null);
function isUnknownElement(tag) {
    /* istanbul ignore if */
    if (!inBrowser) {
        return true;
    }
    if (isReservedTag(tag)) {
        return false;
    }
    tag = tag.toLowerCase();
    /* istanbul ignore if */
    if (unknownElementCache[tag] != null) {
        return unknownElementCache[tag];
    }
    var el = document.createElement(tag);
    if (tag.indexOf('-') > -1) {
        // https://stackoverflow.com/a/28210364/1070244
        return (unknownElementCache[tag] =
            el.constructor === window.HTMLUnknownElement ||
                el.constructor === window.HTMLElement);
    }
    else {
        return (unknownElementCache[tag] = /HTMLUnknownElement/.test(el.toString()));
    }
}
var isTextInputType = makeMap('text,number,password,search,email,tel,url');

/**
 * Query an element selector if it's not an element already.
 */
function query(el) {
    if (typeof el === 'string') {
        var selected = document.querySelector(el);
        if (!selected) {
             false && 0;
            return document.createElement('div');
        }
        return selected;
    }
    else {
        return el;
    }
}

function createElement(tagName, vnode) {
    var elm = document.createElement(tagName);
    if (tagName !== 'select') {
        return elm;
    }
    // false or null will remove the attribute but undefined will not
    if (vnode.data &&
        vnode.data.attrs &&
        vnode.data.attrs.multiple !== undefined) {
        elm.setAttribute('multiple', 'multiple');
    }
    return elm;
}
function createElementNS(namespace, tagName) {
    return document.createElementNS(namespaceMap[namespace], tagName);
}
function createTextNode(text) {
    return document.createTextNode(text);
}
function createComment(text) {
    return document.createComment(text);
}
function insertBefore(parentNode, newNode, referenceNode) {
    parentNode.insertBefore(newNode, referenceNode);
}
function removeChild(node, child) {
    node.removeChild(child);
}
function appendChild(node, child) {
    node.appendChild(child);
}
function parentNode(node) {
    return node.parentNode;
}
function nextSibling(node) {
    return node.nextSibling;
}
function tagName(node) {
    return node.tagName;
}
function setTextContent(node, text) {
    node.textContent = text;
}
function setStyleScope(node, scopeId) {
    node.setAttribute(scopeId, '');
}

var nodeOps = /*#__PURE__*/Object.freeze({
  __proto__: null,
  createElement: createElement,
  createElementNS: createElementNS,
  createTextNode: createTextNode,
  createComment: createComment,
  insertBefore: insertBefore,
  removeChild: removeChild,
  appendChild: appendChild,
  parentNode: parentNode,
  nextSibling: nextSibling,
  tagName: tagName,
  setTextContent: setTextContent,
  setStyleScope: setStyleScope
});

var ref = {
    create: function (_, vnode) {
        registerRef(vnode);
    },
    update: function (oldVnode, vnode) {
        if (oldVnode.data.ref !== vnode.data.ref) {
            registerRef(oldVnode, true);
            registerRef(vnode);
        }
    },
    destroy: function (vnode) {
        registerRef(vnode, true);
    }
};
function registerRef(vnode, isRemoval) {
    var ref = vnode.data.ref;
    if (!isDef(ref))
        return;
    var vm = vnode.context;
    var refValue = vnode.componentInstance || vnode.elm;
    var value = isRemoval ? null : refValue;
    var $refsValue = isRemoval ? undefined : refValue;
    if (isFunction(ref)) {
        invokeWithErrorHandling(ref, vm, [value], vm, "template ref function");
        return;
    }
    var isFor = vnode.data.refInFor;
    var _isString = typeof ref === 'string' || typeof ref === 'number';
    var _isRef = isRef(ref);
    var refs = vm.$refs;
    if (_isString || _isRef) {
        if (isFor) {
            var existing = _isString ? refs[ref] : ref.value;
            if (isRemoval) {
                isArray(existing) && remove$2(existing, refValue);
            }
            else {
                if (!isArray(existing)) {
                    if (_isString) {
                        refs[ref] = [refValue];
                        setSetupRef(vm, ref, refs[ref]);
                    }
                    else {
                        ref.value = [refValue];
                    }
                }
                else if (!existing.includes(refValue)) {
                    existing.push(refValue);
                }
            }
        }
        else if (_isString) {
            if (isRemoval && refs[ref] !== refValue) {
                return;
            }
            refs[ref] = $refsValue;
            setSetupRef(vm, ref, value);
        }
        else if (_isRef) {
            if (isRemoval && ref.value !== refValue) {
                return;
            }
            ref.value = value;
        }
        else if (false) {}
    }
}
function setSetupRef(_a, key, val) {
    var _setupState = _a._setupState;
    if (_setupState && hasOwn(_setupState, key)) {
        if (isRef(_setupState[key])) {
            _setupState[key].value = val;
        }
        else {
            _setupState[key] = val;
        }
    }
}

/**
 * Virtual DOM patching algorithm based on Snabbdom by
 * Simon Friis Vindum (@paldepind)
 * Licensed under the MIT License
 * https://github.com/paldepind/snabbdom/blob/master/LICENSE
 *
 * modified by Evan You (@yyx990803)
 *
 * Not type-checking this because this file is perf-critical and the cost
 * of making flow understand it is not worth it.
 */
var emptyNode = new VNode('', {}, []);
var hooks = ['create', 'activate', 'update', 'remove', 'destroy'];
function sameVnode(a, b) {
    return (a.key === b.key &&
        a.asyncFactory === b.asyncFactory &&
        ((a.tag === b.tag &&
            a.isComment === b.isComment &&
            isDef(a.data) === isDef(b.data) &&
            sameInputType(a, b)) ||
            (isTrue(a.isAsyncPlaceholder) && isUndef(b.asyncFactory.error))));
}
function sameInputType(a, b) {
    if (a.tag !== 'input')
        return true;
    var i;
    var typeA = isDef((i = a.data)) && isDef((i = i.attrs)) && i.type;
    var typeB = isDef((i = b.data)) && isDef((i = i.attrs)) && i.type;
    return typeA === typeB || (isTextInputType(typeA) && isTextInputType(typeB));
}
function createKeyToOldIdx(children, beginIdx, endIdx) {
    var i, key;
    var map = {};
    for (i = beginIdx; i <= endIdx; ++i) {
        key = children[i].key;
        if (isDef(key))
            map[key] = i;
    }
    return map;
}
function createPatchFunction(backend) {
    var i, j;
    var cbs = {};
    var modules = backend.modules, nodeOps = backend.nodeOps;
    for (i = 0; i < hooks.length; ++i) {
        cbs[hooks[i]] = [];
        for (j = 0; j < modules.length; ++j) {
            if (isDef(modules[j][hooks[i]])) {
                cbs[hooks[i]].push(modules[j][hooks[i]]);
            }
        }
    }
    function emptyNodeAt(elm) {
        return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm);
    }
    function createRmCb(childElm, listeners) {
        function remove() {
            if (--remove.listeners === 0) {
                removeNode(childElm);
            }
        }
        remove.listeners = listeners;
        return remove;
    }
    function removeNode(el) {
        var parent = nodeOps.parentNode(el);
        // element may have already been removed due to v-html / v-text
        if (isDef(parent)) {
            nodeOps.removeChild(parent, el);
        }
    }
    function isUnknownElement(vnode, inVPre) {
        return (!inVPre &&
            !vnode.ns &&
            !(config.ignoredElements.length &&
                config.ignoredElements.some(function (ignore) {
                    return isRegExp(ignore)
                        ? ignore.test(vnode.tag)
                        : ignore === vnode.tag;
                })) &&
            config.isUnknownElement(vnode.tag));
    }
    var creatingElmInVPre = 0;
    function createElm(vnode, insertedVnodeQueue, parentElm, refElm, nested, ownerArray, index) {
        if (isDef(vnode.elm) && isDef(ownerArray)) {
            // This vnode was used in a previous render!
            // now it's used as a new node, overwriting its elm would cause
            // potential patch errors down the road when it's used as an insertion
            // reference node. Instead, we clone the node on-demand before creating
            // associated DOM element for it.
            vnode = ownerArray[index] = cloneVNode(vnode);
        }
        vnode.isRootInsert = !nested; // for transition enter check
        if (createComponent(vnode, insertedVnodeQueue, parentElm, refElm)) {
            return;
        }
        var data = vnode.data;
        var children = vnode.children;
        var tag = vnode.tag;
        if (isDef(tag)) {
            if (false) {}
            vnode.elm = vnode.ns
                ? nodeOps.createElementNS(vnode.ns, tag)
                : nodeOps.createElement(tag, vnode);
            setScope(vnode);
            createChildren(vnode, children, insertedVnodeQueue);
            if (isDef(data)) {
                invokeCreateHooks(vnode, insertedVnodeQueue);
            }
            insert(parentElm, vnode.elm, refElm);
            if (false) {}
        }
        else if (isTrue(vnode.isComment)) {
            vnode.elm = nodeOps.createComment(vnode.text);
            insert(parentElm, vnode.elm, refElm);
        }
        else {
            vnode.elm = nodeOps.createTextNode(vnode.text);
            insert(parentElm, vnode.elm, refElm);
        }
    }
    function createComponent(vnode, insertedVnodeQueue, parentElm, refElm) {
        var i = vnode.data;
        if (isDef(i)) {
            var isReactivated = isDef(vnode.componentInstance) && i.keepAlive;
            if (isDef((i = i.hook)) && isDef((i = i.init))) {
                i(vnode, false /* hydrating */);
            }
            // after calling the init hook, if the vnode is a child component
            // it should've created a child instance and mounted it. the child
            // component also has set the placeholder vnode's elm.
            // in that case we can just return the element and be done.
            if (isDef(vnode.componentInstance)) {
                initComponent(vnode, insertedVnodeQueue);
                insert(parentElm, vnode.elm, refElm);
                if (isTrue(isReactivated)) {
                    reactivateComponent(vnode, insertedVnodeQueue, parentElm, refElm);
                }
                return true;
            }
        }
    }
    function initComponent(vnode, insertedVnodeQueue) {
        if (isDef(vnode.data.pendingInsert)) {
            insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert);
            vnode.data.pendingInsert = null;
        }
        vnode.elm = vnode.componentInstance.$el;
        if (isPatchable(vnode)) {
            invokeCreateHooks(vnode, insertedVnodeQueue);
            setScope(vnode);
        }
        else {
            // empty component root.
            // skip all element-related modules except for ref (#3455)
            registerRef(vnode);
            // make sure to invoke the insert hook
            insertedVnodeQueue.push(vnode);
        }
    }
    function reactivateComponent(vnode, insertedVnodeQueue, parentElm, refElm) {
        var i;
        // hack for #4339: a reactivated component with inner transition
        // does not trigger because the inner node's created hooks are not called
        // again. It's not ideal to involve module-specific logic in here but
        // there doesn't seem to be a better way to do it.
        var innerNode = vnode;
        while (innerNode.componentInstance) {
            innerNode = innerNode.componentInstance._vnode;
            if (isDef((i = innerNode.data)) && isDef((i = i.transition))) {
                for (i = 0; i < cbs.activate.length; ++i) {
                    cbs.activate[i](emptyNode, innerNode);
                }
                insertedVnodeQueue.push(innerNode);
                break;
            }
        }
        // unlike a newly created component,
        // a reactivated keep-alive component doesn't insert itself
        insert(parentElm, vnode.elm, refElm);
    }
    function insert(parent, elm, ref) {
        if (isDef(parent)) {
            if (isDef(ref)) {
                if (nodeOps.parentNode(ref) === parent) {
                    nodeOps.insertBefore(parent, elm, ref);
                }
            }
            else {
                nodeOps.appendChild(parent, elm);
            }
        }
    }
    function createChildren(vnode, children, insertedVnodeQueue) {
        if (isArray(children)) {
            if (false) {}
            for (var i_1 = 0; i_1 < children.length; ++i_1) {
                createElm(children[i_1], insertedVnodeQueue, vnode.elm, null, true, children, i_1);
            }
        }
        else if (isPrimitive(vnode.text)) {
            nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(String(vnode.text)));
        }
    }
    function isPatchable(vnode) {
        while (vnode.componentInstance) {
            vnode = vnode.componentInstance._vnode;
        }
        return isDef(vnode.tag);
    }
    function invokeCreateHooks(vnode, insertedVnodeQueue) {
        for (var i_2 = 0; i_2 < cbs.create.length; ++i_2) {
            cbs.create[i_2](emptyNode, vnode);
        }
        i = vnode.data.hook; // Reuse variable
        if (isDef(i)) {
            if (isDef(i.create))
                i.create(emptyNode, vnode);
            if (isDef(i.insert))
                insertedVnodeQueue.push(vnode);
        }
    }
    // set scope id attribute for scoped CSS.
    // this is implemented as a special case to avoid the overhead
    // of going through the normal attribute patching process.
    function setScope(vnode) {
        var i;
        if (isDef((i = vnode.fnScopeId))) {
            nodeOps.setStyleScope(vnode.elm, i);
        }
        else {
            var ancestor = vnode;
            while (ancestor) {
                if (isDef((i = ancestor.context)) && isDef((i = i.$options._scopeId))) {
                    nodeOps.setStyleScope(vnode.elm, i);
                }
                ancestor = ancestor.parent;
            }
        }
        // for slot content they should also get the scopeId from the host instance.
        if (isDef((i = activeInstance)) &&
            i !== vnode.context &&
            i !== vnode.fnContext &&
            isDef((i = i.$options._scopeId))) {
            nodeOps.setStyleScope(vnode.elm, i);
        }
    }
    function addVnodes(parentElm, refElm, vnodes, startIdx, endIdx, insertedVnodeQueue) {
        for (; startIdx <= endIdx; ++startIdx) {
            createElm(vnodes[startIdx], insertedVnodeQueue, parentElm, refElm, false, vnodes, startIdx);
        }
    }
    function invokeDestroyHook(vnode) {
        var i, j;
        var data = vnode.data;
        if (isDef(data)) {
            if (isDef((i = data.hook)) && isDef((i = i.destroy)))
                i(vnode);
            for (i = 0; i < cbs.destroy.length; ++i)
                cbs.destroy[i](vnode);
        }
        if (isDef((i = vnode.children))) {
            for (j = 0; j < vnode.children.length; ++j) {
                invokeDestroyHook(vnode.children[j]);
            }
        }
    }
    function removeVnodes(vnodes, startIdx, endIdx) {
        for (; startIdx <= endIdx; ++startIdx) {
            var ch = vnodes[startIdx];
            if (isDef(ch)) {
                if (isDef(ch.tag)) {
                    removeAndInvokeRemoveHook(ch);
                    invokeDestroyHook(ch);
                }
                else {
                    // Text node
                    removeNode(ch.elm);
                }
            }
        }
    }
    function removeAndInvokeRemoveHook(vnode, rm) {
        if (isDef(rm) || isDef(vnode.data)) {
            var i_3;
            var listeners = cbs.remove.length + 1;
            if (isDef(rm)) {
                // we have a recursively passed down rm callback
                // increase the listeners count
                rm.listeners += listeners;
            }
            else {
                // directly removing
                rm = createRmCb(vnode.elm, listeners);
            }
            // recursively invoke hooks on child component root node
            if (isDef((i_3 = vnode.componentInstance)) &&
                isDef((i_3 = i_3._vnode)) &&
                isDef(i_3.data)) {
                removeAndInvokeRemoveHook(i_3, rm);
            }
            for (i_3 = 0; i_3 < cbs.remove.length; ++i_3) {
                cbs.remove[i_3](vnode, rm);
            }
            if (isDef((i_3 = vnode.data.hook)) && isDef((i_3 = i_3.remove))) {
                i_3(vnode, rm);
            }
            else {
                rm();
            }
        }
        else {
            removeNode(vnode.elm);
        }
    }
    function updateChildren(parentElm, oldCh, newCh, insertedVnodeQueue, removeOnly) {
        var oldStartIdx = 0;
        var newStartIdx = 0;
        var oldEndIdx = oldCh.length - 1;
        var oldStartVnode = oldCh[0];
        var oldEndVnode = oldCh[oldEndIdx];
        var newEndIdx = newCh.length - 1;
        var newStartVnode = newCh[0];
        var newEndVnode = newCh[newEndIdx];
        var oldKeyToIdx, idxInOld, vnodeToMove, refElm;
        // removeOnly is a special flag used only by <transition-group>
        // to ensure removed elements stay in correct relative positions
        // during leaving transitions
        var canMove = !removeOnly;
        if (false) {}
        while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
            if (isUndef(oldStartVnode)) {
                oldStartVnode = oldCh[++oldStartIdx]; // Vnode has been moved left
            }
            else if (isUndef(oldEndVnode)) {
                oldEndVnode = oldCh[--oldEndIdx];
            }
            else if (sameVnode(oldStartVnode, newStartVnode)) {
                patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);
                oldStartVnode = oldCh[++oldStartIdx];
                newStartVnode = newCh[++newStartIdx];
            }
            else if (sameVnode(oldEndVnode, newEndVnode)) {
                patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue, newCh, newEndIdx);
                oldEndVnode = oldCh[--oldEndIdx];
                newEndVnode = newCh[--newEndIdx];
            }
            else if (sameVnode(oldStartVnode, newEndVnode)) {
                // Vnode moved right
                patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue, newCh, newEndIdx);
                canMove &&
                    nodeOps.insertBefore(parentElm, oldStartVnode.elm, nodeOps.nextSibling(oldEndVnode.elm));
                oldStartVnode = oldCh[++oldStartIdx];
                newEndVnode = newCh[--newEndIdx];
            }
            else if (sameVnode(oldEndVnode, newStartVnode)) {
                // Vnode moved left
                patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);
                canMove &&
                    nodeOps.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm);
                oldEndVnode = oldCh[--oldEndIdx];
                newStartVnode = newCh[++newStartIdx];
            }
            else {
                if (isUndef(oldKeyToIdx))
                    oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx);
                idxInOld = isDef(newStartVnode.key)
                    ? oldKeyToIdx[newStartVnode.key]
                    : findIdxInOld(newStartVnode, oldCh, oldStartIdx, oldEndIdx);
                if (isUndef(idxInOld)) {
                    // New element
                    createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, false, newCh, newStartIdx);
                }
                else {
                    vnodeToMove = oldCh[idxInOld];
                    if (sameVnode(vnodeToMove, newStartVnode)) {
                        patchVnode(vnodeToMove, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);
                        oldCh[idxInOld] = undefined;
                        canMove &&
                            nodeOps.insertBefore(parentElm, vnodeToMove.elm, oldStartVnode.elm);
                    }
                    else {
                        // same key but different element. treat as new element
                        createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, false, newCh, newStartIdx);
                    }
                }
                newStartVnode = newCh[++newStartIdx];
            }
        }
        if (oldStartIdx > oldEndIdx) {
            refElm = isUndef(newCh[newEndIdx + 1]) ? null : newCh[newEndIdx + 1].elm;
            addVnodes(parentElm, refElm, newCh, newStartIdx, newEndIdx, insertedVnodeQueue);
        }
        else if (newStartIdx > newEndIdx) {
            removeVnodes(oldCh, oldStartIdx, oldEndIdx);
        }
    }
    function checkDuplicateKeys(children) {
        var seenKeys = {};
        for (var i_4 = 0; i_4 < children.length; i_4++) {
            var vnode = children[i_4];
            var key = vnode.key;
            if (isDef(key)) {
                if (seenKeys[key]) {
                    warn("Duplicate keys detected: '".concat(key, "'. This may cause an update error."), vnode.context);
                }
                else {
                    seenKeys[key] = true;
                }
            }
        }
    }
    function findIdxInOld(node, oldCh, start, end) {
        for (var i_5 = start; i_5 < end; i_5++) {
            var c = oldCh[i_5];
            if (isDef(c) && sameVnode(node, c))
                return i_5;
        }
    }
    function patchVnode(oldVnode, vnode, insertedVnodeQueue, ownerArray, index, removeOnly) {
        if (oldVnode === vnode) {
            return;
        }
        if (isDef(vnode.elm) && isDef(ownerArray)) {
            // clone reused vnode
            vnode = ownerArray[index] = cloneVNode(vnode);
        }
        var elm = (vnode.elm = oldVnode.elm);
        if (isTrue(oldVnode.isAsyncPlaceholder)) {
            if (isDef(vnode.asyncFactory.resolved)) {
                hydrate(oldVnode.elm, vnode, insertedVnodeQueue);
            }
            else {
                vnode.isAsyncPlaceholder = true;
            }
            return;
        }
        // reuse element for static trees.
        // note we only do this if the vnode is cloned -
        // if the new node is not cloned it means the render functions have been
        // reset by the hot-reload-api and we need to do a proper re-render.
        if (isTrue(vnode.isStatic) &&
            isTrue(oldVnode.isStatic) &&
            vnode.key === oldVnode.key &&
            (isTrue(vnode.isCloned) || isTrue(vnode.isOnce))) {
            vnode.componentInstance = oldVnode.componentInstance;
            return;
        }
        var i;
        var data = vnode.data;
        if (isDef(data) && isDef((i = data.hook)) && isDef((i = i.prepatch))) {
            i(oldVnode, vnode);
        }
        var oldCh = oldVnode.children;
        var ch = vnode.children;
        if (isDef(data) && isPatchable(vnode)) {
            for (i = 0; i < cbs.update.length; ++i)
                cbs.update[i](oldVnode, vnode);
            if (isDef((i = data.hook)) && isDef((i = i.update)))
                i(oldVnode, vnode);
        }
        if (isUndef(vnode.text)) {
            if (isDef(oldCh) && isDef(ch)) {
                if (oldCh !== ch)
                    updateChildren(elm, oldCh, ch, insertedVnodeQueue, removeOnly);
            }
            else if (isDef(ch)) {
                if (false) {}
                if (isDef(oldVnode.text))
                    nodeOps.setTextContent(elm, '');
                addVnodes(elm, null, ch, 0, ch.length - 1, insertedVnodeQueue);
            }
            else if (isDef(oldCh)) {
                removeVnodes(oldCh, 0, oldCh.length - 1);
            }
            else if (isDef(oldVnode.text)) {
                nodeOps.setTextContent(elm, '');
            }
        }
        else if (oldVnode.text !== vnode.text) {
            nodeOps.setTextContent(elm, vnode.text);
        }
        if (isDef(data)) {
            if (isDef((i = data.hook)) && isDef((i = i.postpatch)))
                i(oldVnode, vnode);
        }
    }
    function invokeInsertHook(vnode, queue, initial) {
        // delay insert hooks for component root nodes, invoke them after the
        // element is really inserted
        if (isTrue(initial) && isDef(vnode.parent)) {
            vnode.parent.data.pendingInsert = queue;
        }
        else {
            for (var i_6 = 0; i_6 < queue.length; ++i_6) {
                queue[i_6].data.hook.insert(queue[i_6]);
            }
        }
    }
    var hydrationBailed = false;
    // list of modules that can skip create hook during hydration because they
    // are already rendered on the client or has no need for initialization
    // Note: style is excluded because it relies on initial clone for future
    // deep updates (#7063).
    var isRenderedModule = makeMap('attrs,class,staticClass,staticStyle,key');
    // Note: this is a browser-only function so we can assume elms are DOM nodes.
    function hydrate(elm, vnode, insertedVnodeQueue, inVPre) {
        var i;
        var tag = vnode.tag, data = vnode.data, children = vnode.children;
        inVPre = inVPre || (data && data.pre);
        vnode.elm = elm;
        if (isTrue(vnode.isComment) && isDef(vnode.asyncFactory)) {
            vnode.isAsyncPlaceholder = true;
            return true;
        }
        // assert node match
        if (false) {}
        if (isDef(data)) {
            if (isDef((i = data.hook)) && isDef((i = i.init)))
                i(vnode, true /* hydrating */);
            if (isDef((i = vnode.componentInstance))) {
                // child component. it should have hydrated its own tree.
                initComponent(vnode, insertedVnodeQueue);
                return true;
            }
        }
        if (isDef(tag)) {
            if (isDef(children)) {
                // empty element, allow client to pick up and populate children
                if (!elm.hasChildNodes()) {
                    createChildren(vnode, children, insertedVnodeQueue);
                }
                else {
                    // v-html and domProps: innerHTML
                    if (isDef((i = data)) &&
                        isDef((i = i.domProps)) &&
                        isDef((i = i.innerHTML))) {
                        if (i !== elm.innerHTML) {
                            /* istanbul ignore if */
                            if (false) {}
                            return false;
                        }
                    }
                    else {
                        // iterate and compare children lists
                        var childrenMatch = true;
                        var childNode = elm.firstChild;
                        for (var i_7 = 0; i_7 < children.length; i_7++) {
                            if (!childNode ||
                                !hydrate(childNode, children[i_7], insertedVnodeQueue, inVPre)) {
                                childrenMatch = false;
                                break;
                            }
                            childNode = childNode.nextSibling;
                        }
                        // if childNode is not null, it means the actual childNodes list is
                        // longer than the virtual children list.
                        if (!childrenMatch || childNode) {
                            /* istanbul ignore if */
                            if (false) {}
                            return false;
                        }
                    }
                }
            }
            if (isDef(data)) {
                var fullInvoke = false;
                for (var key in data) {
                    if (!isRenderedModule(key)) {
                        fullInvoke = true;
                        invokeCreateHooks(vnode, insertedVnodeQueue);
                        break;
                    }
                }
                if (!fullInvoke && data['class']) {
                    // ensure collecting deps for deep class bindings for future updates
                    traverse(data['class']);
                }
            }
        }
        else if (elm.data !== vnode.text) {
            elm.data = vnode.text;
        }
        return true;
    }
    function assertNodeMatch(node, vnode, inVPre) {
        if (isDef(vnode.tag)) {
            return (vnode.tag.indexOf('vue-component') === 0 ||
                (!isUnknownElement(vnode, inVPre) &&
                    vnode.tag.toLowerCase() ===
                        (node.tagName && node.tagName.toLowerCase())));
        }
        else {
            return node.nodeType === (vnode.isComment ? 8 : 3);
        }
    }
    return function patch(oldVnode, vnode, hydrating, removeOnly) {
        if (isUndef(vnode)) {
            if (isDef(oldVnode))
                invokeDestroyHook(oldVnode);
            return;
        }
        var isInitialPatch = false;
        var insertedVnodeQueue = [];
        if (isUndef(oldVnode)) {
            // empty mount (likely as component), create new root element
            isInitialPatch = true;
            createElm(vnode, insertedVnodeQueue);
        }
        else {
            var isRealElement = isDef(oldVnode.nodeType);
            if (!isRealElement && sameVnode(oldVnode, vnode)) {
                // patch existing root node
                patchVnode(oldVnode, vnode, insertedVnodeQueue, null, null, removeOnly);
            }
            else {
                if (isRealElement) {
                    // mounting to a real element
                    // check if this is server-rendered content and if we can perform
                    // a successful hydration.
                    if (oldVnode.nodeType === 1 && oldVnode.hasAttribute(SSR_ATTR)) {
                        oldVnode.removeAttribute(SSR_ATTR);
                        hydrating = true;
                    }
                    if (isTrue(hydrating)) {
                        if (hydrate(oldVnode, vnode, insertedVnodeQueue)) {
                            invokeInsertHook(vnode, insertedVnodeQueue, true);
                            return oldVnode;
                        }
                        else if (false) {}
                    }
                    // either not server-rendered, or hydration failed.
                    // create an empty node and replace it
                    oldVnode = emptyNodeAt(oldVnode);
                }
                // replacing existing element
                var oldElm = oldVnode.elm;
                var parentElm = nodeOps.parentNode(oldElm);
                // create new node
                createElm(vnode, insertedVnodeQueue, 
                // extremely rare edge case: do not insert if old element is in a
                // leaving transition. Only happens when combining transition +
                // keep-alive + HOCs. (#4590)
                oldElm._leaveCb ? null : parentElm, nodeOps.nextSibling(oldElm));
                // update parent placeholder node element, recursively
                if (isDef(vnode.parent)) {
                    var ancestor = vnode.parent;
                    var patchable = isPatchable(vnode);
                    while (ancestor) {
                        for (var i_8 = 0; i_8 < cbs.destroy.length; ++i_8) {
                            cbs.destroy[i_8](ancestor);
                        }
                        ancestor.elm = vnode.elm;
                        if (patchable) {
                            for (var i_9 = 0; i_9 < cbs.create.length; ++i_9) {
                                cbs.create[i_9](emptyNode, ancestor);
                            }
                            // #6513
                            // invoke insert hooks that may have been merged by create hooks.
                            // e.g. for directives that uses the "inserted" hook.
                            var insert_1 = ancestor.data.hook.insert;
                            if (insert_1.merged) {
                                // start at index 1 to avoid re-invoking component mounted hook
                                // clone insert hooks to avoid being mutated during iteration.
                                // e.g. for customed directives under transition group.
                                var cloned = insert_1.fns.slice(1);
                                for (var i_10 = 0; i_10 < cloned.length; i_10++) {
                                    cloned[i_10]();
                                }
                            }
                        }
                        else {
                            registerRef(ancestor);
                        }
                        ancestor = ancestor.parent;
                    }
                }
                // destroy old node
                if (isDef(parentElm)) {
                    removeVnodes([oldVnode], 0, 0);
                }
                else if (isDef(oldVnode.tag)) {
                    invokeDestroyHook(oldVnode);
                }
            }
        }
        invokeInsertHook(vnode, insertedVnodeQueue, isInitialPatch);
        return vnode.elm;
    };
}

var directives = {
    create: updateDirectives,
    update: updateDirectives,
    destroy: function unbindDirectives(vnode) {
        // @ts-expect-error emptyNode is not VNodeWithData
        updateDirectives(vnode, emptyNode);
    }
};
function updateDirectives(oldVnode, vnode) {
    if (oldVnode.data.directives || vnode.data.directives) {
        _update(oldVnode, vnode);
    }
}
function _update(oldVnode, vnode) {
    var isCreate = oldVnode === emptyNode;
    var isDestroy = vnode === emptyNode;
    var oldDirs = normalizeDirectives(oldVnode.data.directives, oldVnode.context);
    var newDirs = normalizeDirectives(vnode.data.directives, vnode.context);
    var dirsWithInsert = [];
    var dirsWithPostpatch = [];
    var key, oldDir, dir;
    for (key in newDirs) {
        oldDir = oldDirs[key];
        dir = newDirs[key];
        if (!oldDir) {
            // new directive, bind
            callHook(dir, 'bind', vnode, oldVnode);
            if (dir.def && dir.def.inserted) {
                dirsWithInsert.push(dir);
            }
        }
        else {
            // existing directive, update
            dir.oldValue = oldDir.value;
            dir.oldArg = oldDir.arg;
            callHook(dir, 'update', vnode, oldVnode);
            if (dir.def && dir.def.componentUpdated) {
                dirsWithPostpatch.push(dir);
            }
        }
    }
    if (dirsWithInsert.length) {
        var callInsert = function () {
            for (var i = 0; i < dirsWithInsert.length; i++) {
                callHook(dirsWithInsert[i], 'inserted', vnode, oldVnode);
            }
        };
        if (isCreate) {
            mergeVNodeHook(vnode, 'insert', callInsert);
        }
        else {
            callInsert();
        }
    }
    if (dirsWithPostpatch.length) {
        mergeVNodeHook(vnode, 'postpatch', function () {
            for (var i = 0; i < dirsWithPostpatch.length; i++) {
                callHook(dirsWithPostpatch[i], 'componentUpdated', vnode, oldVnode);
            }
        });
    }
    if (!isCreate) {
        for (key in oldDirs) {
            if (!newDirs[key]) {
                // no longer present, unbind
                callHook(oldDirs[key], 'unbind', oldVnode, oldVnode, isDestroy);
            }
        }
    }
}
var emptyModifiers = Object.create(null);
function normalizeDirectives(dirs, vm) {
    var res = Object.create(null);
    if (!dirs) {
        // $flow-disable-line
        return res;
    }
    var i, dir;
    for (i = 0; i < dirs.length; i++) {
        dir = dirs[i];
        if (!dir.modifiers) {
            // $flow-disable-line
            dir.modifiers = emptyModifiers;
        }
        res[getRawDirName(dir)] = dir;
        if (vm._setupState && vm._setupState.__sfc) {
            var setupDef = dir.def || resolveAsset(vm, '_setupState', 'v-' + dir.name);
            if (typeof setupDef === 'function') {
                dir.def = {
                    bind: setupDef,
                    update: setupDef,
                };
            }
            else {
                dir.def = setupDef;
            }
        }
        dir.def = dir.def || resolveAsset(vm.$options, 'directives', dir.name, true);
    }
    // $flow-disable-line
    return res;
}
function getRawDirName(dir) {
    return (dir.rawName || "".concat(dir.name, ".").concat(Object.keys(dir.modifiers || {}).join('.')));
}
function callHook(dir, hook, vnode, oldVnode, isDestroy) {
    var fn = dir.def && dir.def[hook];
    if (fn) {
        try {
            fn(vnode.elm, dir, vnode, oldVnode, isDestroy);
        }
        catch (e) {
            handleError(e, vnode.context, "directive ".concat(dir.name, " ").concat(hook, " hook"));
        }
    }
}

var baseModules = [ref, directives];

function updateAttrs(oldVnode, vnode) {
    var opts = vnode.componentOptions;
    if (isDef(opts) && opts.Ctor.options.inheritAttrs === false) {
        return;
    }
    if (isUndef(oldVnode.data.attrs) && isUndef(vnode.data.attrs)) {
        return;
    }
    var key, cur, old;
    var elm = vnode.elm;
    var oldAttrs = oldVnode.data.attrs || {};
    var attrs = vnode.data.attrs || {};
    // clone observed objects, as the user probably wants to mutate it
    if (isDef(attrs.__ob__) || isTrue(attrs._v_attr_proxy)) {
        attrs = vnode.data.attrs = extend({}, attrs);
    }
    for (key in attrs) {
        cur = attrs[key];
        old = oldAttrs[key];
        if (old !== cur) {
            setAttr(elm, key, cur, vnode.data.pre);
        }
    }
    // #4391: in IE9, setting type can reset value for input[type=radio]
    // #6666: IE/Edge forces progress value down to 1 before setting a max
    /* istanbul ignore if */
    if ((isIE || isEdge) && attrs.value !== oldAttrs.value) {
        setAttr(elm, 'value', attrs.value);
    }
    for (key in oldAttrs) {
        if (isUndef(attrs[key])) {
            if (isXlink(key)) {
                elm.removeAttributeNS(xlinkNS, getXlinkProp(key));
            }
            else if (!isEnumeratedAttr(key)) {
                elm.removeAttribute(key);
            }
        }
    }
}
function setAttr(el, key, value, isInPre) {
    if (isInPre || el.tagName.indexOf('-') > -1) {
        baseSetAttr(el, key, value);
    }
    else if (isBooleanAttr(key)) {
        // set attribute for blank value
        // e.g. <option disabled>Select one</option>
        if (isFalsyAttrValue(value)) {
            el.removeAttribute(key);
        }
        else {
            // technically allowfullscreen is a boolean attribute for <iframe>,
            // but Flash expects a value of "true" when used on <embed> tag
            value = key === 'allowfullscreen' && el.tagName === 'EMBED' ? 'true' : key;
            el.setAttribute(key, value);
        }
    }
    else if (isEnumeratedAttr(key)) {
        el.setAttribute(key, convertEnumeratedValue(key, value));
    }
    else if (isXlink(key)) {
        if (isFalsyAttrValue(value)) {
            el.removeAttributeNS(xlinkNS, getXlinkProp(key));
        }
        else {
            el.setAttributeNS(xlinkNS, key, value);
        }
    }
    else {
        baseSetAttr(el, key, value);
    }
}
function baseSetAttr(el, key, value) {
    if (isFalsyAttrValue(value)) {
        el.removeAttribute(key);
    }
    else {
        // #7138: IE10 & 11 fires input event when setting placeholder on
        // <textarea>... block the first input event and remove the blocker
        // immediately.
        /* istanbul ignore if */
        if (isIE &&
            !isIE9 &&
            el.tagName === 'TEXTAREA' &&
            key === 'placeholder' &&
            value !== '' &&
            !el.__ieph) {
            var blocker_1 = function (e) {
                e.stopImmediatePropagation();
                el.removeEventListener('input', blocker_1);
            };
            el.addEventListener('input', blocker_1);
            // $flow-disable-line
            el.__ieph = true; /* IE placeholder patched */
        }
        el.setAttribute(key, value);
    }
}
var attrs = {
    create: updateAttrs,
    update: updateAttrs
};

function updateClass(oldVnode, vnode) {
    var el = vnode.elm;
    var data = vnode.data;
    var oldData = oldVnode.data;
    if (isUndef(data.staticClass) &&
        isUndef(data.class) &&
        (isUndef(oldData) ||
            (isUndef(oldData.staticClass) && isUndef(oldData.class)))) {
        return;
    }
    var cls = genClassForVnode(vnode);
    // handle transition classes
    var transitionClass = el._transitionClasses;
    if (isDef(transitionClass)) {
        cls = concat(cls, stringifyClass(transitionClass));
    }
    // set the class
    if (cls !== el._prevClass) {
        el.setAttribute('class', cls);
        el._prevClass = cls;
    }
}
var klass = {
    create: updateClass,
    update: updateClass
};

// in some cases, the event used has to be determined at runtime
// so we used some reserved tokens during compile.
var RANGE_TOKEN = '__r';
var CHECKBOX_RADIO_TOKEN = '__c';

// normalize v-model event tokens that can only be determined at runtime.
// it's important to place the event as the first in the array because
// the whole point is ensuring the v-model callback gets called before
// user-attached handlers.
function normalizeEvents(on) {
    /* istanbul ignore if */
    if (isDef(on[RANGE_TOKEN])) {
        // IE input[type=range] only supports `change` event
        var event_1 = isIE ? 'change' : 'input';
        on[event_1] = [].concat(on[RANGE_TOKEN], on[event_1] || []);
        delete on[RANGE_TOKEN];
    }
    // This was originally intended to fix #4521 but no longer necessary
    // after 2.5. Keeping it for backwards compat with generated code from < 2.4
    /* istanbul ignore if */
    if (isDef(on[CHECKBOX_RADIO_TOKEN])) {
        on.change = [].concat(on[CHECKBOX_RADIO_TOKEN], on.change || []);
        delete on[CHECKBOX_RADIO_TOKEN];
    }
}
var target;
function createOnceHandler(event, handler, capture) {
    var _target = target; // save current target element in closure
    return function onceHandler() {
        var res = handler.apply(null, arguments);
        if (res !== null) {
            remove(event, onceHandler, capture, _target);
        }
    };
}
// #9446: Firefox <= 53 (in particular, ESR 52) has incorrect Event.timeStamp
// implementation and does not fire microtasks in between event propagation, so
// safe to exclude.
var useMicrotaskFix = isUsingMicroTask && !(isFF && Number(isFF[1]) <= 53);
function add(name, handler, capture, passive) {
    // async edge case #6566: inner click event triggers patch, event handler
    // attached to outer element during patch, and triggered again. This
    // happens because browsers fire microtask ticks between event propagation.
    // the solution is simple: we save the timestamp when a handler is attached,
    // and the handler would only fire if the event passed to it was fired
    // AFTER it was attached.
    if (useMicrotaskFix) {
        var attachedTimestamp_1 = currentFlushTimestamp;
        var original_1 = handler;
        //@ts-expect-error
        handler = original_1._wrapper = function (e) {
            if (
            // no bubbling, should always fire.
            // this is just a safety net in case event.timeStamp is unreliable in
            // certain weird environments...
            e.target === e.currentTarget ||
                // event is fired after handler attachment
                e.timeStamp >= attachedTimestamp_1 ||
                // bail for environments that have buggy event.timeStamp implementations
                // #9462 iOS 9 bug: event.timeStamp is 0 after history.pushState
                // #9681 QtWebEngine event.timeStamp is negative value
                e.timeStamp <= 0 ||
                // #9448 bail if event is fired in another document in a multi-page
                // electron/nw.js app, since event.timeStamp will be using a different
                // starting reference
                e.target.ownerDocument !== document) {
                return original_1.apply(this, arguments);
            }
        };
    }
    target.addEventListener(name, handler, supportsPassive ? { capture: capture, passive: passive } : capture);
}
function remove(name, handler, capture, _target) {
    (_target || target).removeEventListener(name, 
    //@ts-expect-error
    handler._wrapper || handler, capture);
}
function updateDOMListeners(oldVnode, vnode) {
    if (isUndef(oldVnode.data.on) && isUndef(vnode.data.on)) {
        return;
    }
    var on = vnode.data.on || {};
    var oldOn = oldVnode.data.on || {};
    // vnode is empty when removing all listeners,
    // and use old vnode dom element
    target = vnode.elm || oldVnode.elm;
    normalizeEvents(on);
    updateListeners(on, oldOn, add, remove, createOnceHandler, vnode.context);
    target = undefined;
}
var events = {
    create: updateDOMListeners,
    update: updateDOMListeners,
    // @ts-expect-error emptyNode has actually data
    destroy: function (vnode) { return updateDOMListeners(vnode, emptyNode); }
};

var svgContainer;
function updateDOMProps(oldVnode, vnode) {
    if (isUndef(oldVnode.data.domProps) && isUndef(vnode.data.domProps)) {
        return;
    }
    var key, cur;
    var elm = vnode.elm;
    var oldProps = oldVnode.data.domProps || {};
    var props = vnode.data.domProps || {};
    // clone observed objects, as the user probably wants to mutate it
    if (isDef(props.__ob__) || isTrue(props._v_attr_proxy)) {
        props = vnode.data.domProps = extend({}, props);
    }
    for (key in oldProps) {
        if (!(key in props)) {
            elm[key] = '';
        }
    }
    for (key in props) {
        cur = props[key];
        // ignore children if the node has textContent or innerHTML,
        // as these will throw away existing DOM nodes and cause removal errors
        // on subsequent patches (#3360)
        if (key === 'textContent' || key === 'innerHTML') {
            if (vnode.children)
                vnode.children.length = 0;
            if (cur === oldProps[key])
                continue;
            // #6601 work around Chrome version <= 55 bug where single textNode
            // replaced by innerHTML/textContent retains its parentNode property
            if (elm.childNodes.length === 1) {
                elm.removeChild(elm.childNodes[0]);
            }
        }
        if (key === 'value' && elm.tagName !== 'PROGRESS') {
            // store value as _value as well since
            // non-string values will be stringified
            elm._value = cur;
            // avoid resetting cursor position when value is the same
            var strCur = isUndef(cur) ? '' : String(cur);
            if (shouldUpdateValue(elm, strCur)) {
                elm.value = strCur;
            }
        }
        else if (key === 'innerHTML' &&
            isSVG(elm.tagName) &&
            isUndef(elm.innerHTML)) {
            // IE doesn't support innerHTML for SVG elements
            svgContainer = svgContainer || document.createElement('div');
            svgContainer.innerHTML = "<svg>".concat(cur, "</svg>");
            var svg = svgContainer.firstChild;
            while (elm.firstChild) {
                elm.removeChild(elm.firstChild);
            }
            while (svg.firstChild) {
                elm.appendChild(svg.firstChild);
            }
        }
        else if (
        // skip the update if old and new VDOM state is the same.
        // `value` is handled separately because the DOM value may be temporarily
        // out of sync with VDOM state due to focus, composition and modifiers.
        // This  #4521 by skipping the unnecessary `checked` update.
        cur !== oldProps[key]) {
            // some property updates can throw
            // e.g. `value` on <progress> w/ non-finite value
            try {
                elm[key] = cur;
            }
            catch (e) { }
        }
    }
}
function shouldUpdateValue(elm, checkVal) {
    return (
    //@ts-expect-error
    !elm.composing &&
        (elm.tagName === 'OPTION' ||
            isNotInFocusAndDirty(elm, checkVal) ||
            isDirtyWithModifiers(elm, checkVal)));
}
function isNotInFocusAndDirty(elm, checkVal) {
    // return true when textbox (.number and .trim) loses focus and its value is
    // not equal to the updated value
    var notInFocus = true;
    // #6157
    // work around IE bug when accessing document.activeElement in an iframe
    try {
        notInFocus = document.activeElement !== elm;
    }
    catch (e) { }
    return notInFocus && elm.value !== checkVal;
}
function isDirtyWithModifiers(elm, newVal) {
    var value = elm.value;
    var modifiers = elm._vModifiers; // injected by v-model runtime
    if (isDef(modifiers)) {
        if (modifiers.number) {
            return toNumber(value) !== toNumber(newVal);
        }
        if (modifiers.trim) {
            return value.trim() !== newVal.trim();
        }
    }
    return value !== newVal;
}
var domProps = {
    create: updateDOMProps,
    update: updateDOMProps
};

var parseStyleText = cached(function (cssText) {
    var res = {};
    var listDelimiter = /;(?![^(]*\))/g;
    var propertyDelimiter = /:(.+)/;
    cssText.split(listDelimiter).forEach(function (item) {
        if (item) {
            var tmp = item.split(propertyDelimiter);
            tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
        }
    });
    return res;
});
// merge static and dynamic style data on the same vnode
function normalizeStyleData(data) {
    var style = normalizeStyleBinding(data.style);
    // static style is pre-processed into an object during compilation
    // and is always a fresh object, so it's safe to merge into it
    return data.staticStyle ? extend(data.staticStyle, style) : style;
}
// normalize possible array / string values into Object
function normalizeStyleBinding(bindingStyle) {
    if (Array.isArray(bindingStyle)) {
        return toObject(bindingStyle);
    }
    if (typeof bindingStyle === 'string') {
        return parseStyleText(bindingStyle);
    }
    return bindingStyle;
}
/**
 * parent component style should be after child's
 * so that parent component's style could override it
 */
function getStyle(vnode, checkChild) {
    var res = {};
    var styleData;
    if (checkChild) {
        var childNode = vnode;
        while (childNode.componentInstance) {
            childNode = childNode.componentInstance._vnode;
            if (childNode &&
                childNode.data &&
                (styleData = normalizeStyleData(childNode.data))) {
                extend(res, styleData);
            }
        }
    }
    if ((styleData = normalizeStyleData(vnode.data))) {
        extend(res, styleData);
    }
    var parentNode = vnode;
    // @ts-expect-error parentNode.parent not VNodeWithData
    while ((parentNode = parentNode.parent)) {
        if (parentNode.data && (styleData = normalizeStyleData(parentNode.data))) {
            extend(res, styleData);
        }
    }
    return res;
}

var cssVarRE = /^--/;
var importantRE = /\s*!important$/;
var setProp = function (el, name, val) {
    /* istanbul ignore if */
    if (cssVarRE.test(name)) {
        el.style.setProperty(name, val);
    }
    else if (importantRE.test(val)) {
        el.style.setProperty(hyphenate(name), val.replace(importantRE, ''), 'important');
    }
    else {
        var normalizedName = normalize(name);
        if (Array.isArray(val)) {
            // Support values array created by autoprefixer, e.g.
            // {display: ["-webkit-box", "-ms-flexbox", "flex"]}
            // Set them one by one, and the browser will only set those it can recognize
            for (var i = 0, len = val.length; i < len; i++) {
                el.style[normalizedName] = val[i];
            }
        }
        else {
            el.style[normalizedName] = val;
        }
    }
};
var vendorNames = ['Webkit', 'Moz', 'ms'];
var emptyStyle;
var normalize = cached(function (prop) {
    emptyStyle = emptyStyle || document.createElement('div').style;
    prop = camelize(prop);
    if (prop !== 'filter' && prop in emptyStyle) {
        return prop;
    }
    var capName = prop.charAt(0).toUpperCase() + prop.slice(1);
    for (var i = 0; i < vendorNames.length; i++) {
        var name_1 = vendorNames[i] + capName;
        if (name_1 in emptyStyle) {
            return name_1;
        }
    }
});
function updateStyle(oldVnode, vnode) {
    var data = vnode.data;
    var oldData = oldVnode.data;
    if (isUndef(data.staticStyle) &&
        isUndef(data.style) &&
        isUndef(oldData.staticStyle) &&
        isUndef(oldData.style)) {
        return;
    }
    var cur, name;
    var el = vnode.elm;
    var oldStaticStyle = oldData.staticStyle;
    var oldStyleBinding = oldData.normalizedStyle || oldData.style || {};
    // if static style exists, stylebinding already merged into it when doing normalizeStyleData
    var oldStyle = oldStaticStyle || oldStyleBinding;
    var style = normalizeStyleBinding(vnode.data.style) || {};
    // store normalized style under a different key for next diff
    // make sure to clone it if it's reactive, since the user likely wants
    // to mutate it.
    vnode.data.normalizedStyle = isDef(style.__ob__) ? extend({}, style) : style;
    var newStyle = getStyle(vnode, true);
    for (name in oldStyle) {
        if (isUndef(newStyle[name])) {
            setProp(el, name, '');
        }
    }
    for (name in newStyle) {
        cur = newStyle[name];
        // ie9 setting to null has no effect, must use empty string
        setProp(el, name, cur == null ? '' : cur);
    }
}
var style = {
    create: updateStyle,
    update: updateStyle
};

var whitespaceRE = /\s+/;
/**
 * Add class with compatibility for SVG since classList is not supported on
 * SVG elements in IE
 */
function addClass(el, cls) {
    /* istanbul ignore if */
    if (!cls || !(cls = cls.trim())) {
        return;
    }
    /* istanbul ignore else */
    if (el.classList) {
        if (cls.indexOf(' ') > -1) {
            cls.split(whitespaceRE).forEach(function (c) { return el.classList.add(c); });
        }
        else {
            el.classList.add(cls);
        }
    }
    else {
        var cur = " ".concat(el.getAttribute('class') || '', " ");
        if (cur.indexOf(' ' + cls + ' ') < 0) {
            el.setAttribute('class', (cur + cls).trim());
        }
    }
}
/**
 * Remove class with compatibility for SVG since classList is not supported on
 * SVG elements in IE
 */
function removeClass(el, cls) {
    /* istanbul ignore if */
    if (!cls || !(cls = cls.trim())) {
        return;
    }
    /* istanbul ignore else */
    if (el.classList) {
        if (cls.indexOf(' ') > -1) {
            cls.split(whitespaceRE).forEach(function (c) { return el.classList.remove(c); });
        }
        else {
            el.classList.remove(cls);
        }
        if (!el.classList.length) {
            el.removeAttribute('class');
        }
    }
    else {
        var cur = " ".concat(el.getAttribute('class') || '', " ");
        var tar = ' ' + cls + ' ';
        while (cur.indexOf(tar) >= 0) {
            cur = cur.replace(tar, ' ');
        }
        cur = cur.trim();
        if (cur) {
            el.setAttribute('class', cur);
        }
        else {
            el.removeAttribute('class');
        }
    }
}

function resolveTransition(def) {
    if (!def) {
        return;
    }
    /* istanbul ignore else */
    if (typeof def === 'object') {
        var res = {};
        if (def.css !== false) {
            extend(res, autoCssTransition(def.name || 'v'));
        }
        extend(res, def);
        return res;
    }
    else if (typeof def === 'string') {
        return autoCssTransition(def);
    }
}
var autoCssTransition = cached(function (name) {
    return {
        enterClass: "".concat(name, "-enter"),
        enterToClass: "".concat(name, "-enter-to"),
        enterActiveClass: "".concat(name, "-enter-active"),
        leaveClass: "".concat(name, "-leave"),
        leaveToClass: "".concat(name, "-leave-to"),
        leaveActiveClass: "".concat(name, "-leave-active")
    };
});
var hasTransition = inBrowser && !isIE9;
var TRANSITION = 'transition';
var ANIMATION = 'animation';
// Transition property/event sniffing
var transitionProp = 'transition';
var transitionEndEvent = 'transitionend';
var animationProp = 'animation';
var animationEndEvent = 'animationend';
if (hasTransition) {
    /* istanbul ignore if */
    if (window.ontransitionend === undefined &&
        window.onwebkittransitionend !== undefined) {
        transitionProp = 'WebkitTransition';
        transitionEndEvent = 'webkitTransitionEnd';
    }
    if (window.onanimationend === undefined &&
        window.onwebkitanimationend !== undefined) {
        animationProp = 'WebkitAnimation';
        animationEndEvent = 'webkitAnimationEnd';
    }
}
// binding to window is necessary to make hot reload work in IE in strict mode
var raf = inBrowser
    ? window.requestAnimationFrame
        ? window.requestAnimationFrame.bind(window)
        : setTimeout
    : /* istanbul ignore next */ function (/* istanbul ignore next */ fn) { return fn(); };
function nextFrame(fn) {
    raf(function () {
        // @ts-expect-error
        raf(fn);
    });
}
function addTransitionClass(el, cls) {
    var transitionClasses = el._transitionClasses || (el._transitionClasses = []);
    if (transitionClasses.indexOf(cls) < 0) {
        transitionClasses.push(cls);
        addClass(el, cls);
    }
}
function removeTransitionClass(el, cls) {
    if (el._transitionClasses) {
        remove$2(el._transitionClasses, cls);
    }
    removeClass(el, cls);
}
function whenTransitionEnds(el, expectedType, cb) {
    var _a = getTransitionInfo(el, expectedType), type = _a.type, timeout = _a.timeout, propCount = _a.propCount;
    if (!type)
        return cb();
    var event = type === TRANSITION ? transitionEndEvent : animationEndEvent;
    var ended = 0;
    var end = function () {
        el.removeEventListener(event, onEnd);
        cb();
    };
    var onEnd = function (e) {
        if (e.target === el) {
            if (++ended >= propCount) {
                end();
            }
        }
    };
    setTimeout(function () {
        if (ended < propCount) {
            end();
        }
    }, timeout + 1);
    el.addEventListener(event, onEnd);
}
var transformRE = /\b(transform|all)(,|$)/;
function getTransitionInfo(el, expectedType) {
    var styles = window.getComputedStyle(el);
    // JSDOM may return undefined for transition properties
    var transitionDelays = (styles[transitionProp + 'Delay'] || '').split(', ');
    var transitionDurations = (styles[transitionProp + 'Duration'] || '').split(', ');
    var transitionTimeout = getTimeout(transitionDelays, transitionDurations);
    var animationDelays = (styles[animationProp + 'Delay'] || '').split(', ');
    var animationDurations = (styles[animationProp + 'Duration'] || '').split(', ');
    var animationTimeout = getTimeout(animationDelays, animationDurations);
    var type;
    var timeout = 0;
    var propCount = 0;
    /* istanbul ignore if */
    if (expectedType === TRANSITION) {
        if (transitionTimeout > 0) {
            type = TRANSITION;
            timeout = transitionTimeout;
            propCount = transitionDurations.length;
        }
    }
    else if (expectedType === ANIMATION) {
        if (animationTimeout > 0) {
            type = ANIMATION;
            timeout = animationTimeout;
            propCount = animationDurations.length;
        }
    }
    else {
        timeout = Math.max(transitionTimeout, animationTimeout);
        type =
            timeout > 0
                ? transitionTimeout > animationTimeout
                    ? TRANSITION
                    : ANIMATION
                : null;
        propCount = type
            ? type === TRANSITION
                ? transitionDurations.length
                : animationDurations.length
            : 0;
    }
    var hasTransform = type === TRANSITION && transformRE.test(styles[transitionProp + 'Property']);
    return {
        type: type,
        timeout: timeout,
        propCount: propCount,
        hasTransform: hasTransform
    };
}
function getTimeout(delays, durations) {
    /* istanbul ignore next */
    while (delays.length < durations.length) {
        delays = delays.concat(delays);
    }
    return Math.max.apply(null, durations.map(function (d, i) {
        return toMs(d) + toMs(delays[i]);
    }));
}
// Old versions of Chromium (below 61.0.3163.100) formats floating pointer numbers
// in a locale-dependent way, using a comma instead of a dot.
// If comma is not replaced with a dot, the input will be rounded down (i.e. acting
// as a floor function) causing unexpected behaviors
function toMs(s) {
    return Number(s.slice(0, -1).replace(',', '.')) * 1000;
}

function enter(vnode, toggleDisplay) {
    var el = vnode.elm;
    // call leave callback now
    if (isDef(el._leaveCb)) {
        el._leaveCb.cancelled = true;
        el._leaveCb();
    }
    var data = resolveTransition(vnode.data.transition);
    if (isUndef(data)) {
        return;
    }
    /* istanbul ignore if */
    if (isDef(el._enterCb) || el.nodeType !== 1) {
        return;
    }
    var css = data.css, type = data.type, enterClass = data.enterClass, enterToClass = data.enterToClass, enterActiveClass = data.enterActiveClass, appearClass = data.appearClass, appearToClass = data.appearToClass, appearActiveClass = data.appearActiveClass, beforeEnter = data.beforeEnter, enter = data.enter, afterEnter = data.afterEnter, enterCancelled = data.enterCancelled, beforeAppear = data.beforeAppear, appear = data.appear, afterAppear = data.afterAppear, appearCancelled = data.appearCancelled, duration = data.duration;
    // activeInstance will always be the <transition> component managing this
    // transition. One edge case to check is when the <transition> is placed
    // as the root node of a child component. In that case we need to check
    // <transition>'s parent for appear check.
    var context = activeInstance;
    var transitionNode = activeInstance.$vnode;
    while (transitionNode && transitionNode.parent) {
        context = transitionNode.context;
        transitionNode = transitionNode.parent;
    }
    var isAppear = !context._isMounted || !vnode.isRootInsert;
    if (isAppear && !appear && appear !== '') {
        return;
    }
    var startClass = isAppear && appearClass ? appearClass : enterClass;
    var activeClass = isAppear && appearActiveClass ? appearActiveClass : enterActiveClass;
    var toClass = isAppear && appearToClass ? appearToClass : enterToClass;
    var beforeEnterHook = isAppear ? beforeAppear || beforeEnter : beforeEnter;
    var enterHook = isAppear ? (isFunction(appear) ? appear : enter) : enter;
    var afterEnterHook = isAppear ? afterAppear || afterEnter : afterEnter;
    var enterCancelledHook = isAppear
        ? appearCancelled || enterCancelled
        : enterCancelled;
    var explicitEnterDuration = toNumber(isObject(duration) ? duration.enter : duration);
    if (false) {}
    var expectsCSS = css !== false && !isIE9;
    var userWantsControl = getHookArgumentsLength(enterHook);
    var cb = (el._enterCb = once(function () {
        if (expectsCSS) {
            removeTransitionClass(el, toClass);
            removeTransitionClass(el, activeClass);
        }
        // @ts-expect-error
        if (cb.cancelled) {
            if (expectsCSS) {
                removeTransitionClass(el, startClass);
            }
            enterCancelledHook && enterCancelledHook(el);
        }
        else {
            afterEnterHook && afterEnterHook(el);
        }
        el._enterCb = null;
    }));
    if (!vnode.data.show) {
        // remove pending leave element on enter by injecting an insert hook
        mergeVNodeHook(vnode, 'insert', function () {
            var parent = el.parentNode;
            var pendingNode = parent && parent._pending && parent._pending[vnode.key];
            if (pendingNode &&
                pendingNode.tag === vnode.tag &&
                pendingNode.elm._leaveCb) {
                pendingNode.elm._leaveCb();
            }
            enterHook && enterHook(el, cb);
        });
    }
    // start enter transition
    beforeEnterHook && beforeEnterHook(el);
    if (expectsCSS) {
        addTransitionClass(el, startClass);
        addTransitionClass(el, activeClass);
        nextFrame(function () {
            removeTransitionClass(el, startClass);
            // @ts-expect-error
            if (!cb.cancelled) {
                addTransitionClass(el, toClass);
                if (!userWantsControl) {
                    if (isValidDuration(explicitEnterDuration)) {
                        setTimeout(cb, explicitEnterDuration);
                    }
                    else {
                        whenTransitionEnds(el, type, cb);
                    }
                }
            }
        });
    }
    if (vnode.data.show) {
        toggleDisplay && toggleDisplay();
        enterHook && enterHook(el, cb);
    }
    if (!expectsCSS && !userWantsControl) {
        cb();
    }
}
function leave(vnode, rm) {
    var el = vnode.elm;
    // call enter callback now
    if (isDef(el._enterCb)) {
        el._enterCb.cancelled = true;
        el._enterCb();
    }
    var data = resolveTransition(vnode.data.transition);
    if (isUndef(data) || el.nodeType !== 1) {
        return rm();
    }
    /* istanbul ignore if */
    if (isDef(el._leaveCb)) {
        return;
    }
    var css = data.css, type = data.type, leaveClass = data.leaveClass, leaveToClass = data.leaveToClass, leaveActiveClass = data.leaveActiveClass, beforeLeave = data.beforeLeave, leave = data.leave, afterLeave = data.afterLeave, leaveCancelled = data.leaveCancelled, delayLeave = data.delayLeave, duration = data.duration;
    var expectsCSS = css !== false && !isIE9;
    var userWantsControl = getHookArgumentsLength(leave);
    var explicitLeaveDuration = toNumber(isObject(duration) ? duration.leave : duration);
    if (false) {}
    var cb = (el._leaveCb = once(function () {
        if (el.parentNode && el.parentNode._pending) {
            el.parentNode._pending[vnode.key] = null;
        }
        if (expectsCSS) {
            removeTransitionClass(el, leaveToClass);
            removeTransitionClass(el, leaveActiveClass);
        }
        // @ts-expect-error
        if (cb.cancelled) {
            if (expectsCSS) {
                removeTransitionClass(el, leaveClass);
            }
            leaveCancelled && leaveCancelled(el);
        }
        else {
            rm();
            afterLeave && afterLeave(el);
        }
        el._leaveCb = null;
    }));
    if (delayLeave) {
        delayLeave(performLeave);
    }
    else {
        performLeave();
    }
    function performLeave() {
        // the delayed leave may have already been cancelled
        // @ts-expect-error
        if (cb.cancelled) {
            return;
        }
        // record leaving element
        if (!vnode.data.show && el.parentNode) {
            (el.parentNode._pending || (el.parentNode._pending = {}))[vnode.key] =
                vnode;
        }
        beforeLeave && beforeLeave(el);
        if (expectsCSS) {
            addTransitionClass(el, leaveClass);
            addTransitionClass(el, leaveActiveClass);
            nextFrame(function () {
                removeTransitionClass(el, leaveClass);
                // @ts-expect-error
                if (!cb.cancelled) {
                    addTransitionClass(el, leaveToClass);
                    if (!userWantsControl) {
                        if (isValidDuration(explicitLeaveDuration)) {
                            setTimeout(cb, explicitLeaveDuration);
                        }
                        else {
                            whenTransitionEnds(el, type, cb);
                        }
                    }
                }
            });
        }
        leave && leave(el, cb);
        if (!expectsCSS && !userWantsControl) {
            cb();
        }
    }
}
// only used in dev mode
function checkDuration(val, name, vnode) {
    if (typeof val !== 'number') {
        warn("<transition> explicit ".concat(name, " duration is not a valid number - ") +
            "got ".concat(JSON.stringify(val), "."), vnode.context);
    }
    else if (isNaN(val)) {
        warn("<transition> explicit ".concat(name, " duration is NaN - ") +
            'the duration expression might be incorrect.', vnode.context);
    }
}
function isValidDuration(val) {
    return typeof val === 'number' && !isNaN(val);
}
/**
 * Normalize a transition hook's argument length. The hook may be:
 * - a merged hook (invoker) with the original in .fns
 * - a wrapped component method (check ._length)
 * - a plain function (.length)
 */
function getHookArgumentsLength(fn) {
    if (isUndef(fn)) {
        return false;
    }
    // @ts-expect-error
    var invokerFns = fn.fns;
    if (isDef(invokerFns)) {
        // invoker
        return getHookArgumentsLength(Array.isArray(invokerFns) ? invokerFns[0] : invokerFns);
    }
    else {
        // @ts-expect-error
        return (fn._length || fn.length) > 1;
    }
}
function _enter(_, vnode) {
    if (vnode.data.show !== true) {
        enter(vnode);
    }
}
var transition = inBrowser
    ? {
        create: _enter,
        activate: _enter,
        remove: function (vnode, rm) {
            /* istanbul ignore else */
            if (vnode.data.show !== true) {
                // @ts-expect-error
                leave(vnode, rm);
            }
            else {
                rm();
            }
        }
    }
    : {};

var platformModules = [attrs, klass, events, domProps, style, transition];

// the directive module should be applied last, after all
// built-in modules have been applied.
var modules = platformModules.concat(baseModules);
var patch = createPatchFunction({ nodeOps: nodeOps, modules: modules });

/**
 * Not type checking this file because flow doesn't like attaching
 * properties to Elements.
 */
/* istanbul ignore if */
if (isIE9) {
    // http://www.matts411.com/post/internet-explorer-9-oninput/
    document.addEventListener('selectionchange', function () {
        var el = document.activeElement;
        // @ts-expect-error
        if (el && el.vmodel) {
            trigger(el, 'input');
        }
    });
}
var directive = {
    inserted: function (el, binding, vnode, oldVnode) {
        if (vnode.tag === 'select') {
            // #6903
            if (oldVnode.elm && !oldVnode.elm._vOptions) {
                mergeVNodeHook(vnode, 'postpatch', function () {
                    directive.componentUpdated(el, binding, vnode);
                });
            }
            else {
                setSelected(el, binding, vnode.context);
            }
            el._vOptions = [].map.call(el.options, getValue);
        }
        else if (vnode.tag === 'textarea' || isTextInputType(el.type)) {
            el._vModifiers = binding.modifiers;
            if (!binding.modifiers.lazy) {
                el.addEventListener('compositionstart', onCompositionStart);
                el.addEventListener('compositionend', onCompositionEnd);
                // Safari < 10.2 & UIWebView doesn't fire compositionend when
                // switching focus before confirming composition choice
                // this also fixes the issue where some browsers e.g. iOS Chrome
                // fires "change" instead of "input" on autocomplete.
                el.addEventListener('change', onCompositionEnd);
                /* istanbul ignore if */
                if (isIE9) {
                    el.vmodel = true;
                }
            }
        }
    },
    componentUpdated: function (el, binding, vnode) {
        if (vnode.tag === 'select') {
            setSelected(el, binding, vnode.context);
            // in case the options rendered by v-for have changed,
            // it's possible that the value is out-of-sync with the rendered options.
            // detect such cases and filter out values that no longer has a matching
            // option in the DOM.
            var prevOptions_1 = el._vOptions;
            var curOptions_1 = (el._vOptions = [].map.call(el.options, getValue));
            if (curOptions_1.some(function (o, i) { return !looseEqual(o, prevOptions_1[i]); })) {
                // trigger change event if
                // no matching option found for at least one value
                var needReset = el.multiple
                    ? binding.value.some(function (v) { return hasNoMatchingOption(v, curOptions_1); })
                    : binding.value !== binding.oldValue &&
                        hasNoMatchingOption(binding.value, curOptions_1);
                if (needReset) {
                    trigger(el, 'change');
                }
            }
        }
    }
};
function setSelected(el, binding, vm) {
    actuallySetSelected(el, binding, vm);
    /* istanbul ignore if */
    if (isIE || isEdge) {
        setTimeout(function () {
            actuallySetSelected(el, binding, vm);
        }, 0);
    }
}
function actuallySetSelected(el, binding, vm) {
    var value = binding.value;
    var isMultiple = el.multiple;
    if (isMultiple && !Array.isArray(value)) {
         false &&
            0;
        return;
    }
    var selected, option;
    for (var i = 0, l = el.options.length; i < l; i++) {
        option = el.options[i];
        if (isMultiple) {
            selected = looseIndexOf(value, getValue(option)) > -1;
            if (option.selected !== selected) {
                option.selected = selected;
            }
        }
        else {
            if (looseEqual(getValue(option), value)) {
                if (el.selectedIndex !== i) {
                    el.selectedIndex = i;
                }
                return;
            }
        }
    }
    if (!isMultiple) {
        el.selectedIndex = -1;
    }
}
function hasNoMatchingOption(value, options) {
    return options.every(function (o) { return !looseEqual(o, value); });
}
function getValue(option) {
    return '_value' in option ? option._value : option.value;
}
function onCompositionStart(e) {
    e.target.composing = true;
}
function onCompositionEnd(e) {
    // prevent triggering an input event for no reason
    if (!e.target.composing)
        return;
    e.target.composing = false;
    trigger(e.target, 'input');
}
function trigger(el, type) {
    var e = document.createEvent('HTMLEvents');
    e.initEvent(type, true, true);
    el.dispatchEvent(e);
}

// recursively search for possible transition defined inside the component root
function locateNode(vnode) {
    // @ts-expect-error
    return vnode.componentInstance && (!vnode.data || !vnode.data.transition)
        ? locateNode(vnode.componentInstance._vnode)
        : vnode;
}
var show = {
    bind: function (el, _a, vnode) {
        var value = _a.value;
        vnode = locateNode(vnode);
        var transition = vnode.data && vnode.data.transition;
        var originalDisplay = (el.__vOriginalDisplay =
            el.style.display === 'none' ? '' : el.style.display);
        if (value && transition) {
            vnode.data.show = true;
            enter(vnode, function () {
                el.style.display = originalDisplay;
            });
        }
        else {
            el.style.display = value ? originalDisplay : 'none';
        }
    },
    update: function (el, _a, vnode) {
        var value = _a.value, oldValue = _a.oldValue;
        /* istanbul ignore if */
        if (!value === !oldValue)
            return;
        vnode = locateNode(vnode);
        var transition = vnode.data && vnode.data.transition;
        if (transition) {
            vnode.data.show = true;
            if (value) {
                enter(vnode, function () {
                    el.style.display = el.__vOriginalDisplay;
                });
            }
            else {
                leave(vnode, function () {
                    el.style.display = 'none';
                });
            }
        }
        else {
            el.style.display = value ? el.__vOriginalDisplay : 'none';
        }
    },
    unbind: function (el, binding, vnode, oldVnode, isDestroy) {
        if (!isDestroy) {
            el.style.display = el.__vOriginalDisplay;
        }
    }
};

var platformDirectives = {
    model: directive,
    show: show
};

// Provides transition support for a single element/component.
var transitionProps = {
    name: String,
    appear: Boolean,
    css: Boolean,
    mode: String,
    type: String,
    enterClass: String,
    leaveClass: String,
    enterToClass: String,
    leaveToClass: String,
    enterActiveClass: String,
    leaveActiveClass: String,
    appearClass: String,
    appearActiveClass: String,
    appearToClass: String,
    duration: [Number, String, Object]
};
// in case the child is also an abstract component, e.g. <keep-alive>
// we want to recursively retrieve the real component to be rendered
function getRealChild(vnode) {
    var compOptions = vnode && vnode.componentOptions;
    if (compOptions && compOptions.Ctor.options.abstract) {
        return getRealChild(getFirstComponentChild(compOptions.children));
    }
    else {
        return vnode;
    }
}
function extractTransitionData(comp) {
    var data = {};
    var options = comp.$options;
    // props
    for (var key in options.propsData) {
        data[key] = comp[key];
    }
    // events.
    // extract listeners and pass them directly to the transition methods
    var listeners = options._parentListeners;
    for (var key in listeners) {
        data[camelize(key)] = listeners[key];
    }
    return data;
}
function placeholder(h, rawChild) {
    // @ts-expect-error
    if (/\d-keep-alive$/.test(rawChild.tag)) {
        return h('keep-alive', {
            props: rawChild.componentOptions.propsData
        });
    }
}
function hasParentTransition(vnode) {
    while ((vnode = vnode.parent)) {
        if (vnode.data.transition) {
            return true;
        }
    }
}
function isSameChild(child, oldChild) {
    return oldChild.key === child.key && oldChild.tag === child.tag;
}
var isNotTextNode = function (c) { return c.tag || isAsyncPlaceholder(c); };
var isVShowDirective = function (d) { return d.name === 'show'; };
var Transition = {
    name: 'transition',
    props: transitionProps,
    abstract: true,
    render: function (h) {
        var _this = this;
        var children = this.$slots.default;
        if (!children) {
            return;
        }
        // filter out text nodes (possible whitespaces)
        children = children.filter(isNotTextNode);
        /* istanbul ignore if */
        if (!children.length) {
            return;
        }
        // warn multiple elements
        if (false) {}
        var mode = this.mode;
        // warn invalid mode
        if (false) {}
        var rawChild = children[0];
        // if this is a component root node and the component's
        // parent container node also has transition, skip.
        if (hasParentTransition(this.$vnode)) {
            return rawChild;
        }
        // apply transition data to child
        // use getRealChild() to ignore abstract components e.g. keep-alive
        var child = getRealChild(rawChild);
        /* istanbul ignore if */
        if (!child) {
            return rawChild;
        }
        if (this._leaving) {
            return placeholder(h, rawChild);
        }
        // ensure a key that is unique to the vnode type and to this transition
        // component instance. This key will be used to remove pending leaving nodes
        // during entering.
        var id = "__transition-".concat(this._uid, "-");
        child.key =
            child.key == null
                ? child.isComment
                    ? id + 'comment'
                    : id + child.tag
                : isPrimitive(child.key)
                    ? String(child.key).indexOf(id) === 0
                        ? child.key
                        : id + child.key
                    : child.key;
        var data = ((child.data || (child.data = {})).transition =
            extractTransitionData(this));
        var oldRawChild = this._vnode;
        var oldChild = getRealChild(oldRawChild);
        // mark v-show
        // so that the transition module can hand over the control to the directive
        if (child.data.directives && child.data.directives.some(isVShowDirective)) {
            child.data.show = true;
        }
        if (oldChild &&
            oldChild.data &&
            !isSameChild(child, oldChild) &&
            !isAsyncPlaceholder(oldChild) &&
            // #6687 component root is a comment node
            !(oldChild.componentInstance &&
                oldChild.componentInstance._vnode.isComment)) {
            // replace old child transition data with fresh one
            // important for dynamic transitions!
            var oldData = (oldChild.data.transition = extend({}, data));
            // handle transition mode
            if (mode === 'out-in') {
                // return placeholder node and queue update when leave finishes
                this._leaving = true;
                mergeVNodeHook(oldData, 'afterLeave', function () {
                    _this._leaving = false;
                    _this.$forceUpdate();
                });
                return placeholder(h, rawChild);
            }
            else if (mode === 'in-out') {
                if (isAsyncPlaceholder(child)) {
                    return oldRawChild;
                }
                var delayedLeave_1;
                var performLeave = function () {
                    delayedLeave_1();
                };
                mergeVNodeHook(data, 'afterEnter', performLeave);
                mergeVNodeHook(data, 'enterCancelled', performLeave);
                mergeVNodeHook(oldData, 'delayLeave', function (leave) {
                    delayedLeave_1 = leave;
                });
            }
        }
        return rawChild;
    }
};

// Provides transition support for list items.
var props = extend({
    tag: String,
    moveClass: String
}, transitionProps);
delete props.mode;
var TransitionGroup = {
    props: props,
    beforeMount: function () {
        var _this = this;
        var update = this._update;
        this._update = function (vnode, hydrating) {
            var restoreActiveInstance = setActiveInstance(_this);
            // force removing pass
            _this.__patch__(_this._vnode, _this.kept, false, // hydrating
            true // removeOnly (!important, avoids unnecessary moves)
            );
            _this._vnode = _this.kept;
            restoreActiveInstance();
            update.call(_this, vnode, hydrating);
        };
    },
    render: function (h) {
        var tag = this.tag || this.$vnode.data.tag || 'span';
        var map = Object.create(null);
        var prevChildren = (this.prevChildren = this.children);
        var rawChildren = this.$slots.default || [];
        var children = (this.children = []);
        var transitionData = extractTransitionData(this);
        for (var i = 0; i < rawChildren.length; i++) {
            var c = rawChildren[i];
            if (c.tag) {
                if (c.key != null && String(c.key).indexOf('__vlist') !== 0) {
                    children.push(c);
                    map[c.key] = c;
                    (c.data || (c.data = {})).transition = transitionData;
                }
                else if (false) { var name_1, opts; }
            }
        }
        if (prevChildren) {
            var kept = [];
            var removed = [];
            for (var i = 0; i < prevChildren.length; i++) {
                var c = prevChildren[i];
                c.data.transition = transitionData;
                // @ts-expect-error .getBoundingClientRect is not typed in Node
                c.data.pos = c.elm.getBoundingClientRect();
                if (map[c.key]) {
                    kept.push(c);
                }
                else {
                    removed.push(c);
                }
            }
            this.kept = h(tag, null, kept);
            this.removed = removed;
        }
        return h(tag, null, children);
    },
    updated: function () {
        var children = this.prevChildren;
        var moveClass = this.moveClass || (this.name || 'v') + '-move';
        if (!children.length || !this.hasMove(children[0].elm, moveClass)) {
            return;
        }
        // we divide the work into three loops to avoid mixing DOM reads and writes
        // in each iteration - which helps prevent layout thrashing.
        children.forEach(callPendingCbs);
        children.forEach(recordPosition);
        children.forEach(applyTranslation);
        // force reflow to put everything in position
        // assign to this to avoid being removed in tree-shaking
        // $flow-disable-line
        this._reflow = document.body.offsetHeight;
        children.forEach(function (c) {
            if (c.data.moved) {
                var el_1 = c.elm;
                var s = el_1.style;
                addTransitionClass(el_1, moveClass);
                s.transform = s.WebkitTransform = s.transitionDuration = '';
                el_1.addEventListener(transitionEndEvent, (el_1._moveCb = function cb(e) {
                    if (e && e.target !== el_1) {
                        return;
                    }
                    if (!e || /transform$/.test(e.propertyName)) {
                        el_1.removeEventListener(transitionEndEvent, cb);
                        el_1._moveCb = null;
                        removeTransitionClass(el_1, moveClass);
                    }
                }));
            }
        });
    },
    methods: {
        hasMove: function (el, moveClass) {
            /* istanbul ignore if */
            if (!hasTransition) {
                return false;
            }
            /* istanbul ignore if */
            if (this._hasMove) {
                return this._hasMove;
            }
            // Detect whether an element with the move class applied has
            // CSS transitions. Since the element may be inside an entering
            // transition at this very moment, we make a clone of it and remove
            // all other transition classes applied to ensure only the move class
            // is applied.
            var clone = el.cloneNode();
            if (el._transitionClasses) {
                el._transitionClasses.forEach(function (cls) {
                    removeClass(clone, cls);
                });
            }
            addClass(clone, moveClass);
            clone.style.display = 'none';
            this.$el.appendChild(clone);
            var info = getTransitionInfo(clone);
            this.$el.removeChild(clone);
            return (this._hasMove = info.hasTransform);
        }
    }
};
function callPendingCbs(c) {
    /* istanbul ignore if */
    if (c.elm._moveCb) {
        c.elm._moveCb();
    }
    /* istanbul ignore if */
    if (c.elm._enterCb) {
        c.elm._enterCb();
    }
}
function recordPosition(c) {
    c.data.newPos = c.elm.getBoundingClientRect();
}
function applyTranslation(c) {
    var oldPos = c.data.pos;
    var newPos = c.data.newPos;
    var dx = oldPos.left - newPos.left;
    var dy = oldPos.top - newPos.top;
    if (dx || dy) {
        c.data.moved = true;
        var s = c.elm.style;
        s.transform = s.WebkitTransform = "translate(".concat(dx, "px,").concat(dy, "px)");
        s.transitionDuration = '0s';
    }
}

var platformComponents = {
    Transition: Transition,
    TransitionGroup: TransitionGroup
};

// install platform specific utils
Vue.config.mustUseProp = mustUseProp;
Vue.config.isReservedTag = isReservedTag;
Vue.config.isReservedAttr = isReservedAttr;
Vue.config.getTagNamespace = getTagNamespace;
Vue.config.isUnknownElement = isUnknownElement;
// install platform runtime directives & components
extend(Vue.options.directives, platformDirectives);
extend(Vue.options.components, platformComponents);
// install platform patch function
Vue.prototype.__patch__ = inBrowser ? patch : noop;
// public mount method
Vue.prototype.$mount = function (el, hydrating) {
    el = el && inBrowser ? query(el) : undefined;
    return mountComponent(this, el, hydrating);
};
// devtools global hook
/* istanbul ignore next */
if (inBrowser) {
    setTimeout(function () {
        if (config.devtools) {
            if (devtools) {
                devtools.emit('init', Vue);
            }
            else if (false) {}
        }
        if (false) {}
    }, 0);
}




/***/ }),

/***/ 85571:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-pdd-act-bottom-qr"
  }, [_c("div", {
    class: _vm.rnd > 0.5 ? "top" : "top top-2"
  }, [_vm.rnd > 0.5 ? _c("img", {
    staticStyle: {
      width: "28px",
      height: "28px",
      "margin-left": "1px"
    },
    attrs: {
      src: __webpack_require__(17757),
      alt: ""
    }
  }) : _vm._e(), _vm._v(" "), _vm.rnd <= 0.5 ? _c("div", {
    staticStyle: {
      width: "9px"
    }
  }) : _vm._e(), _vm._v(" "), _c("span", {
    staticClass: "bold",
    staticStyle: {
      "margin-left": "4px"
    },
    domProps: {
      innerHTML: _vm._s(_vm.text)
    }
  }), _vm._v(" "), _c("div", {
    staticStyle: {
      flex: "1"
    }
  }), _vm._v(" "), _vm.rnd > 0.5 ? _c("span", {
    staticClass: "circle"
  }, [_vm._v("领")]) : _vm._e(), _vm._v(" "), _vm.rnd <= 0.5 ? _c("img", {
    staticStyle: {
      width: "23px",
      height: "20px",
      "margin-right": "9px"
    },
    attrs: {
      src: __webpack_require__(39227),
      alt: ""
    }
  }) : _vm._e(), _vm._v(" "), _c("div", {
    staticClass: "qr-area",
    style: _vm.needMouseOver ? "display: none" : ""
  }, [_c("img", {
    staticStyle: {
      "margin-top": "8px"
    },
    attrs: {
      src: _vm.qr,
      alt: ""
    }
  }), _vm._v(" "), _c("div", {
    staticStyle: {
      "margin-top": "6px",
      "text-align": "center",
      "vertical-align": "middle",
      height: "14px",
      "line-height": "14px"
    }
  }, [_c("span", {
    staticStyle: {
      color: "#f4010a",
      "font-size": "14px",
      "font-weight": "bold"
    }
  }, [_vm._v("微信扫码")]), _vm._v(" "), _c("span", {
    staticStyle: {
      "margin-left": "4px",
      color: "#333333",
      "font-size": "12px"
    }
  }, [_vm._v(_vm._s(_vm.rnd > 0.5 ? "领券" : "抢购"))])])])])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 86421:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


let userData = __webpack_require__(74222);
let request = __webpack_require__(49388);
const countryConfig = __webpack_require__(22209);
let communicate = __webpack_require__(79560);
let globalCurrency = {};
let unitConfig = [{
  unitName: '千',
  times: 1000
}, {
  unitName: '万',
  times: 10000
}];
let unit = 1;
let getPriceBeforeExchangeRate = (price, type) => {
  if (!price) return;
  price = price.toString();
  unit = 1;
  if (Array.prototype.forEach) {
    unitConfig.forEach(i => {
      if (price.indexOf(i.unitName) > -1) {
        unit = i.times;
      }
    });
  }
  price = price.replace(/^[^\d]+/ig, '');
  price = price.replace(/[￥\$]/ig, '');
  price = price.match(/[0-9.,]+/) && price.match(/[0-9.,]+/)[0];
  if (!price) return price;
  price = priceFormat(price, type);
  price = price.replace(/,/ig, '');
  price = $.trim(price);
  var range_left = price.indexOf('-');
  if (range_left > 0) {
    price = price.substr(0, range_left);
  }
  //修正价格提取出现的小数部分不准确问题（如一号店）
  price = price.replace(/^(\d+\.)\<.+\>(\d{0,2})\<\/.+\>/ig, "$1$2");
  return price;
};
module.exports = (price, type) => {
  price = getPriceBeforeExchangeRate(price, type);
  //fix end
  price = exchangeRate(price, type);
  if (parseFloat(price) > 0) {
    price = parseFloat(price);
    if (unit) price = price * unit;
    return price;
  } else return 0;
};
module.exports.getPriceBeforeExchangeRate = getPriceBeforeExchangeRate;
let exchangeRate = (price, type) => {
  let exRate;
  if (type) {
    exRate = globalCurrency[type] || 1;
  } else {
    exRate = userData.get('currency') || G.currency || 1;
  }
  return parseFloat((Number(price) * exRate).toFixed(2));
};
let priceFormat = (price, type) => {
  if (type) return price;
  if (G.pageInfo.type == 1) return price;
  let host = location.host;
  let euroAmazonConfig = {
    'www.amazon.de': 'prime',
    'www.amazon.fr': 'premium'
  };
  if (euroAmazonConfig[host] && $('#nav-logo .nav-logo-tagline').text().replace(/\s/g, '').trim().toLowerCase().indexOf(euroAmazonConfig[host]) > -1) price = price.replace('.', '').replace(',', '.');
  return price;
};
let storeRate = currency => {
  communicate.trigger({
    type: 'setStoreRate',
    info: JSON.stringify(currency)
  });
};
let getStoreRate = () => {
  communicate.on(info => {
    if (info && info.type == 'getStoreRate') {
      try {
        var currency = info.value.currency;
        var newInfo = JSON.parse(currency);
        globalCurrency = newInfo.elsecurr;
        G.currency = newInfo.currency;
      } catch (e) {}
    }
  });
  communicate.trigger({
    type: 'getStoreRate'
  });
};
let readyGet = () => {
  if (location.host === 'www.amazon.cn') return;
  if (location.host.indexOf('amazon') > -1 || location.host.indexOf('6pm') > -1) {
    getStoreRate();
  }
};
readyGet();
module.exports.getExRate = type => parseFloat(globalCurrency[type] | 1);
module.exports.getRate = callback => {
  (__webpack_require__(7129).log)('getRate');
  let site = G.logsite;
  let moneyInfo = countryConfig.getMoneyInfo(site);
  if (moneyInfo && moneyInfo[0] !== '¥') {
    let url = `${G.server}/extension?ac=currency&url=${encodeURIComponent(location.href)}`;
    request.get(url).then(data => {
      if (data && data.currency) {
        userData.set('currency', data.currency);
        globalCurrency = data.elsecurr;
        G.currency = data.currency;
        storeRate(data);
      }
      callback();
    }).catch(() => {
      callback();
    });
  } else {
    callback();
  }
};

/***/ }),

/***/ 86427:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
module.exports = __webpack_require__.p + "images/extensions/build/0617f5989315dfb93fd3.png";

/***/ }),

/***/ 86696:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
__webpack_require__(3362);
var _CouponArrow = _interopRequireDefault(__webpack_require__(8488));
var _QrError = _interopRequireDefault(__webpack_require__(49357));
var _Stamp = _interopRequireDefault(__webpack_require__(36408));
const getQRCode = __webpack_require__(95554);
var _default = exports.A = {
  props: ['type',
  // link, qr,
  'href', 'text', 'icon', 'mainColor', 'secondColor', 'takeBg', 'couponValue', 'qrParams', 'qrTitle', 'qrUrl', 'rebate', 'stamp', 'title'],
  components: {
    CouponArrow: _CouponArrow.default,
    QRError: _QrError.default,
    Stamp: _Stamp.default
  },
  data: () => ({
    loading: false,
    error: false,
    actualQr: '',
    showStampBg: true
  }),
  computed: {
    alterHref() {
      return (__webpack_require__(12826).appendTbInfoForUrl)(this.href);
    }
  },
  mounted() {
    if (G.aliSite) {
      this.addScrollLink();
    }
    if (this.stamp) {
      this.showStampBg = true;
    }
  },
  methods: {
    async addScrollLink() {
      // await require('common/globalCondition').met('butie')
      setTimeout(() => {
        (__webpack_require__(14535).add)(this.text, this.icon, (__webpack_require__(12826).appendTbInfoForUrl)(this.href), this.mainColor, this.secondColor, this.showStampBg, this.rebate);
      }, 300);
    },
    over() {
      this.$emit('over');
      if (this.type !== 'qr' || this.loading) return;
      if (this.qrUrl) {
        this.actualQr = this.qrUrl;
        return;
      }
      this.loading = true;
      getQRCode(this.qrParams, '', res => {
        this.loading = false;
        if (res[0].etag) {
          this.error = true;
        } else {
          this.error = false;
          this.actualQr = res[0].imgSrc;
        }
      });
    }
  }
};

/***/ }),

/***/ 86819:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


function getCurrentScript() {
  if (document.currentScript) {
    return document.currentScript;
  }
  var scripts = document.getElementsByTagName("script");
  for (var i = 0; i < scripts.length; i++) {
    if (new RegExp(`${G.extName}-notifier`, "i").test(scripts[i].src)) {
      return scripts[i];
    }
  }
}
module.exports = getCurrentScript();

/***/ }),

/***/ 87082:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTY4IiBoZWlnaHQ9IjgiIHZpZXdCb3g9IjAgMCAxNjggOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9ImFycm93LXBvc2l0aW9uLXNjcnViYmVyIiBjbGlwLXBhdGg9InVybCgjY2xpcDBfNDVfNjI0NCkiPgo8ZyBpZD0iYXJyb3ctd3JhcHBlciI+CjxwYXRoIGlkPSJhcnJvdyIgZD0iTTc2Ljk5OTUgMC4wMDAyMjEyNTJMODQuMDcwNSA3LjA3MTI5TDkxLjE0MTYgMC4wMDAyMjEyNTJMNzYuOTk5NSAwLjAwMDIyMTI1MloiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuNjUiLz4KPC9nPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzQ1XzYyNDQiPgo8cmVjdCB3aWR0aD0iMTY4IiBoZWlnaHQ9IjcuMDcxMDciIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";

/***/ }),

/***/ 87083:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";



var zlib_inflate = __webpack_require__(71447);
var utils        = __webpack_require__(9805);
var strings      = __webpack_require__(41996);
var c            = __webpack_require__(19681);
var msg          = __webpack_require__(54674);
var ZStream      = __webpack_require__(44442);
var GZheader     = __webpack_require__(37414);

var toString = Object.prototype.toString;

/**
 * class Inflate
 *
 * Generic JS-style wrapper for zlib calls. If you don't need
 * streaming behaviour - use more simple functions: [[inflate]]
 * and [[inflateRaw]].
 **/

/* internal
 * inflate.chunks -> Array
 *
 * Chunks of output data, if [[Inflate#onData]] not overridden.
 **/

/**
 * Inflate.result -> Uint8Array|Array|String
 *
 * Uncompressed result, generated by default [[Inflate#onData]]
 * and [[Inflate#onEnd]] handlers. Filled after you push last chunk
 * (call [[Inflate#push]] with `Z_FINISH` / `true` param) or if you
 * push a chunk with explicit flush (call [[Inflate#push]] with
 * `Z_SYNC_FLUSH` param).
 **/

/**
 * Inflate.err -> Number
 *
 * Error code after inflate finished. 0 (Z_OK) on success.
 * Should be checked if broken data possible.
 **/

/**
 * Inflate.msg -> String
 *
 * Error message, if [[Inflate.err]] != 0
 **/


/**
 * new Inflate(options)
 * - options (Object): zlib inflate options.
 *
 * Creates new inflator instance with specified params. Throws exception
 * on bad params. Supported options:
 *
 * - `windowBits`
 * - `dictionary`
 *
 * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)
 * for more information on these.
 *
 * Additional options, for internal needs:
 *
 * - `chunkSize` - size of generated data chunks (16K by default)
 * - `raw` (Boolean) - do raw inflate
 * - `to` (String) - if equal to 'string', then result will be converted
 *   from utf8 to utf16 (javascript) string. When string output requested,
 *   chunk length can differ from `chunkSize`, depending on content.
 *
 * By default, when no options set, autodetect deflate/gzip data format via
 * wrapper header.
 *
 * ##### Example:
 *
 * ```javascript
 * var pako = require('pako')
 *   , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])
 *   , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);
 *
 * var inflate = new pako.Inflate({ level: 3});
 *
 * inflate.push(chunk1, false);
 * inflate.push(chunk2, true);  // true -> last chunk
 *
 * if (inflate.err) { throw new Error(inflate.err); }
 *
 * console.log(inflate.result);
 * ```
 **/
function Inflate(options) {
  if (!(this instanceof Inflate)) return new Inflate(options);

  this.options = utils.assign({
    chunkSize: 16384,
    windowBits: 0,
    to: ''
  }, options || {});

  var opt = this.options;

  // Force window size for `raw` data, if not set directly,
  // because we have no header for autodetect.
  if (opt.raw && (opt.windowBits >= 0) && (opt.windowBits < 16)) {
    opt.windowBits = -opt.windowBits;
    if (opt.windowBits === 0) { opt.windowBits = -15; }
  }

  // If `windowBits` not defined (and mode not raw) - set autodetect flag for gzip/deflate
  if ((opt.windowBits >= 0) && (opt.windowBits < 16) &&
      !(options && options.windowBits)) {
    opt.windowBits += 32;
  }

  // Gzip header has no info about windows size, we can do autodetect only
  // for deflate. So, if window size not set, force it to max when gzip possible
  if ((opt.windowBits > 15) && (opt.windowBits < 48)) {
    // bit 3 (16) -> gzipped data
    // bit 4 (32) -> autodetect gzip/deflate
    if ((opt.windowBits & 15) === 0) {
      opt.windowBits |= 15;
    }
  }

  this.err    = 0;      // error code, if happens (0 = Z_OK)
  this.msg    = '';     // error message
  this.ended  = false;  // used to avoid multiple onEnd() calls
  this.chunks = [];     // chunks of compressed data

  this.strm   = new ZStream();
  this.strm.avail_out = 0;

  var status  = zlib_inflate.inflateInit2(
    this.strm,
    opt.windowBits
  );

  if (status !== c.Z_OK) {
    throw new Error(msg[status]);
  }

  this.header = new GZheader();

  zlib_inflate.inflateGetHeader(this.strm, this.header);

  // Setup dictionary
  if (opt.dictionary) {
    // Convert data if needed
    if (typeof opt.dictionary === 'string') {
      opt.dictionary = strings.string2buf(opt.dictionary);
    } else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') {
      opt.dictionary = new Uint8Array(opt.dictionary);
    }
    if (opt.raw) { //In raw mode we need to set the dictionary early
      status = zlib_inflate.inflateSetDictionary(this.strm, opt.dictionary);
      if (status !== c.Z_OK) {
        throw new Error(msg[status]);
      }
    }
  }
}

/**
 * Inflate#push(data[, mode]) -> Boolean
 * - data (Uint8Array|Array|ArrayBuffer|String): input data
 * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.
 *   See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH.
 *
 * Sends input data to inflate pipe, generating [[Inflate#onData]] calls with
 * new output chunks. Returns `true` on success. The last data block must have
 * mode Z_FINISH (or `true`). That will flush internal pending buffers and call
 * [[Inflate#onEnd]]. For interim explicit flushes (without ending the stream) you
 * can use mode Z_SYNC_FLUSH, keeping the decompression context.
 *
 * On fail call [[Inflate#onEnd]] with error code and return false.
 *
 * We strongly recommend to use `Uint8Array` on input for best speed (output
 * format is detected automatically). Also, don't skip last param and always
 * use the same type in your code (boolean or number). That will improve JS speed.
 *
 * For regular `Array`-s make sure all elements are [0..255].
 *
 * ##### Example
 *
 * ```javascript
 * push(chunk, false); // push one of data chunks
 * ...
 * push(chunk, true);  // push last chunk
 * ```
 **/
Inflate.prototype.push = function (data, mode) {
  var strm = this.strm;
  var chunkSize = this.options.chunkSize;
  var dictionary = this.options.dictionary;
  var status, _mode;
  var next_out_utf8, tail, utf8str;

  // Flag to properly process Z_BUF_ERROR on testing inflate call
  // when we check that all output data was flushed.
  var allowBufError = false;

  if (this.ended) { return false; }
  _mode = (mode === ~~mode) ? mode : ((mode === true) ? c.Z_FINISH : c.Z_NO_FLUSH);

  // Convert data if needed
  if (typeof data === 'string') {
    // Only binary strings can be decompressed on practice
    strm.input = strings.binstring2buf(data);
  } else if (toString.call(data) === '[object ArrayBuffer]') {
    strm.input = new Uint8Array(data);
  } else {
    strm.input = data;
  }

  strm.next_in = 0;
  strm.avail_in = strm.input.length;

  do {
    if (strm.avail_out === 0) {
      strm.output = new utils.Buf8(chunkSize);
      strm.next_out = 0;
      strm.avail_out = chunkSize;
    }

    status = zlib_inflate.inflate(strm, c.Z_NO_FLUSH);    /* no bad return value */

    if (status === c.Z_NEED_DICT && dictionary) {
      status = zlib_inflate.inflateSetDictionary(this.strm, dictionary);
    }

    if (status === c.Z_BUF_ERROR && allowBufError === true) {
      status = c.Z_OK;
      allowBufError = false;
    }

    if (status !== c.Z_STREAM_END && status !== c.Z_OK) {
      this.onEnd(status);
      this.ended = true;
      return false;
    }

    if (strm.next_out) {
      if (strm.avail_out === 0 || status === c.Z_STREAM_END || (strm.avail_in === 0 && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH))) {

        if (this.options.to === 'string') {

          next_out_utf8 = strings.utf8border(strm.output, strm.next_out);

          tail = strm.next_out - next_out_utf8;
          utf8str = strings.buf2string(strm.output, next_out_utf8);

          // move tail
          strm.next_out = tail;
          strm.avail_out = chunkSize - tail;
          if (tail) { utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0); }

          this.onData(utf8str);

        } else {
          this.onData(utils.shrinkBuf(strm.output, strm.next_out));
        }
      }
    }

    // When no more input data, we should check that internal inflate buffers
    // are flushed. The only way to do it when avail_out = 0 - run one more
    // inflate pass. But if output data not exists, inflate return Z_BUF_ERROR.
    // Here we set flag to process this error properly.
    //
    // NOTE. Deflate does not return error in this case and does not needs such
    // logic.
    if (strm.avail_in === 0 && strm.avail_out === 0) {
      allowBufError = true;
    }

  } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== c.Z_STREAM_END);

  if (status === c.Z_STREAM_END) {
    _mode = c.Z_FINISH;
  }

  // Finalize on the last chunk.
  if (_mode === c.Z_FINISH) {
    status = zlib_inflate.inflateEnd(this.strm);
    this.onEnd(status);
    this.ended = true;
    return status === c.Z_OK;
  }

  // callback interim results if Z_SYNC_FLUSH.
  if (_mode === c.Z_SYNC_FLUSH) {
    this.onEnd(c.Z_OK);
    strm.avail_out = 0;
    return true;
  }

  return true;
};


/**
 * Inflate#onData(chunk) -> Void
 * - chunk (Uint8Array|Array|String): output data. Type of array depends
 *   on js engine support. When string output requested, each chunk
 *   will be string.
 *
 * By default, stores data blocks in `chunks[]` property and glue
 * those in `onEnd`. Override this handler, if you need another behaviour.
 **/
Inflate.prototype.onData = function (chunk) {
  this.chunks.push(chunk);
};


/**
 * Inflate#onEnd(status) -> Void
 * - status (Number): inflate status. 0 (Z_OK) on success,
 *   other if not.
 *
 * Called either after you tell inflate that the input stream is
 * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)
 * or if an error happened. By default - join collected chunks,
 * free memory and fill `results` / `err` properties.
 **/
Inflate.prototype.onEnd = function (status) {
  // On success - join
  if (status === c.Z_OK) {
    if (this.options.to === 'string') {
      // Glue & convert here, until we teach pako to send
      // utf8 aligned strings to onData
      this.result = this.chunks.join('');
    } else {
      this.result = utils.flattenChunks(this.chunks);
    }
  }
  this.chunks = [];
  this.err = status;
  this.msg = this.strm.msg;
};


/**
 * inflate(data[, options]) -> Uint8Array|Array|String
 * - data (Uint8Array|Array|String): input data to decompress.
 * - options (Object): zlib inflate options.
 *
 * Decompress `data` with inflate/ungzip and `options`. Autodetect
 * format via wrapper header by default. That's why we don't provide
 * separate `ungzip` method.
 *
 * Supported options are:
 *
 * - windowBits
 *
 * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)
 * for more information.
 *
 * Sugar (options):
 *
 * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify
 *   negative windowBits implicitly.
 * - `to` (String) - if equal to 'string', then result will be converted
 *   from utf8 to utf16 (javascript) string. When string output requested,
 *   chunk length can differ from `chunkSize`, depending on content.
 *
 *
 * ##### Example:
 *
 * ```javascript
 * var pako = require('pako')
 *   , input = pako.deflate([1,2,3,4,5,6,7,8,9])
 *   , output;
 *
 * try {
 *   output = pako.inflate(input);
 * } catch (err)
 *   console.log(err);
 * }
 * ```
 **/
function inflate(input, options) {
  var inflator = new Inflate(options);

  inflator.push(input, true);

  // That will never happens, if you don't cheat with options :)
  if (inflator.err) { throw inflator.msg || msg[inflator.err]; }

  return inflator.result;
}


/**
 * inflateRaw(data[, options]) -> Uint8Array|Array|String
 * - data (Uint8Array|Array|String): input data to decompress.
 * - options (Object): zlib inflate options.
 *
 * The same as [[inflate]], but creates raw data, without wrapper
 * (header and adler32 crc).
 **/
function inflateRaw(input, options) {
  options = options || {};
  options.raw = true;
  return inflate(input, options);
}


/**
 * ungzip(data[, options]) -> Uint8Array|Array|String
 * - data (Uint8Array|Array|String): input data to decompress.
 * - options (Object): zlib inflate options.
 *
 * Just shortcut to [[inflate]], because it autodetects format
 * by header.content. Done for convenience.
 **/


exports.Inflate = Inflate;
exports.inflate = inflate;
exports.inflateRaw = inflateRaw;
exports.ungzip  = inflate;


/***/ }),

/***/ 87245:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['qr']
};

/***/ }),

/***/ 87268:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.T = void 0;
__webpack_require__(3362);
var _AmazonSameLinks = _interopRequireDefault(__webpack_require__(98671));
const template = __webpack_require__(26133);
const userData = __webpack_require__(74222);
const request = __webpack_require__(49388);
const newtrend = __webpack_require__(30241);
const detect = __webpack_require__(3494);
const priceParser = __webpack_require__(5286);
const parse_price = __webpack_require__(86421);
const countryConfig = __webpack_require__(22209);
const util = __webpack_require__(30888);
__webpack_require__(63779);
const getText = selector => {
  if ($(selector).length) {
    return parseFloat($(selector).text().trim());
  }
  return '';
};
const getAliPrice = oriPrice => {
  let price = oriPrice;
  const promoPrice = getText('[class^=Price--extraPrice] span[class^=Price--priceText]');
  const pagePrice = G.dp.ori_price;
  if (pagePrice) price = pagePrice;
  if (promoPrice) price = promoPrice;
  if (isNaN(parseFloat(price))) {
    return oriPrice;
  }
  return parseFloat(price);
};
const oneHour = 3600000;
const oneDay = 24 * oneHour;
let currentCurrency;
let c_width = document.documentElement.clientWidth > 0 ? document.documentElement.clientWidth : document.body.clientWidth;
let isForeignSite;
let priceTle = {
  'pri-t1': "价格上涨",
  'pri-t0': "价格平稳",
  'pri-t-1': "价格下降",
  'pri-t-2': "历史最低"
};
const edit_nopuzzle_promo = data => {
  let time0 = data[0].time;
  let lowest = data[0].price,
    lowIndex = 0;
  let lastloop;
  for (let i = 0; i < data.length; i++) {
    let num = Math.abs(data[i].time - time0) / 86400;
    data[i].time2 = new Date(data[i].time * 1000);
    if (num < 10) {
      if (data[i].price < lowest) {
        lowest = data[i].price;
        lowIndex = i;
      }
    } else {
      lastloop = lowIndex;
      data[lowIndex].showCircle = true;
      lowIndex = i;
      lowest = data[i].price;
      time0 = data[i].time;
    }
  }
  if (lastloop + 1 < lowIndex) {
    data[lowIndex].showCircle = true;
  }
};
const noTrendAddTrendData = data => {
  let host = location.host;
  let site_name;
  if (host.indexOf('taobao') === -1 && host.indexOf('tmall') === -1) {
    if (data.store && data.store[0].name) {
      site_name = data.store[0].name;
      data.store = null;
    } else {
      return data;
    }
  }
  let price = parseFloat(G.dp.price);
  if (G.aliSite) {
    price = getAliPrice(price);
  }
  if (!price) return data;
  let date = util.getTimeNumber(new Date().getTime() - 86400000 * 179, "5");
  let date2 = util.getTimeNumber(new Date().getTime(), "5");
  let arr = [];
  for (let i = 0; i < 180; i++) {
    arr.push(price);
  }
  date = new Date(date).getTime();
  let str = '淘宝';
  if (host.indexOf('tmall') > -1) str = '天猫';
  str = site_name || str;
  let noTrendObj = {
    all_line: arr,
    all_line_begin_time: date,
    first_price: price,
    current_price: price,
    highest: price,
    last_price: price * 100,
    lowest: price,
    lowest_date: new Date(date2).getTime(),
    name: str,
    price_range: `${price}-${price}`,
    price_status: 0
  };
  data.price_status = 0;
  data.store = [noTrendObj];
  data.taobaoNoTrend = true;
  return data;
};
const getCommonInfo = callback => {
  let pageUrl = location.href;
  if (G.site === 'taobao-ju') {
    let id = pageUrl.match(/item_id=(\d+)/)[1];
    pageUrl = `https://detail.tmall.com/item.htm?id=${id}`;
  }
  let url = encodeURIComponent(pageUrl);
  let price = G.dp.price;
  price = parseFloat(price);
  if (price) {
    if (isForeignSite) {
      price = G.dp.oldPrice;
    }
    price = parseInt(parseFloat(price * 100).toFixed(2));
    price = price.toFixed(2);
  } else {
    price = '';
  }
  if (G.aliSite) {
    price = getAliPrice(price);
  }
  getPriceHistoryDataAndRender(url, price, callback);
  if (G.site === 'taobao' || G.site === 'tmall') {
    let origin = window.removeEventListener;
    setTimeout(async () => {
      // eslint-disable
      // let map = {}
      // if (G.site === 'taobao') {
      //   map = Hub.config.get("sku").valItemInfo.skuMap; // eslint-disable-line
      // } else {
      //   let valItemInfo = await require('common/infoCollect/aliSku').getValItemInfo()
      //   map = valItemInfo.skuMap
      // }

      $('li').on('click', e => {
        if (!$(e.target).parents('.tb-key-sku').length) {
          console.log($(e.target).parents('.tb-key-sku'));
          return;
        }
        try {
          setTimeout(() => {
            window.extNeedReload = true;
          }, 0);
        } catch (e) {
          (__webpack_require__(7129).warn)(e);
        }
      });
      // $('li').on('click', function(e) {
      //   //console.log(e)
      //   setTimeout(() => {
      //     let selected = $('.tb-selected').toArray().map(item => $(item).attr('data-value')).join(';')
      //     let skuKey = ';' + selected + ';';
      //     skuKey = skuKey.replace(';;', ';').replace(';;', '');
      //     // console.log('skuKey',skuKey)
      //     // console.log(map)
      //     require('common/globalCondition').clear('lastPointPos')
      //     if (!map[skuKey]) {
      //       getPriceHistoryDataAndRender(encodeURIComponent(location.href), price, callback)
      //       return ;
      //     }
      //     let skuId = map[skuKey].skuId;
      //     //console.log('skuId', skuId)
      //     getPriceHistoryDataAndRender(encodeURIComponent(`https://sku-taobao.com/item.htm?id=${G.dp.itemId.replace('-83', '')}-${skuId}`), null, callback)
      //     //console.log('selected', skuId)
      //   }, 0)
      // })
    }, 0);
  }
};
let reqId = 0;
const getPriceHistoryDataAndRender = (url, price, callback) => {
  reqId++;
  let currentReq = reqId;
  if (url.indexOf('skuId') > -1) {
    let skuId = (__webpack_require__(60340).getParameterByName)('skuId', location.href);
    let dp = (__webpack_require__(60340).getParameterByName)('id', location.href);
    if (dp && skuId) {
      url = `https://sku-taobao.com/item.htm?id=${dp}-${skuId}`;
    }
  } else {
    try {
      let sku = Hub.config.get('sku');
      let skuId = sku.skuId;
      let dp = (__webpack_require__(60340).getParameterByName)('id', location.href);
      if (skuId && dp) {
        url = `https://sku-taobao.com/item.htm?id=${dp}-${skuId}`;
      }
    } catch (e) {
      (__webpack_require__(7129).warn)(e);
    }
  }
  // url = 'http://www.kede.com/candymagic51.html';
  request.get(`${G.server}/extension/price_towards?url=${url}&price=${price}&ver=1`, true).then(data => {
    if (data.itemQr) {
      (__webpack_require__(41761).setMet)('qrApiReady', data.itemQr);
    }
    if (currentReq !== reqId) {
      console.warn(`reqId mismatch ${currentReq}: ${reqId}`);
      return;
    }
    // data = {
    //   is_ban: true,
    //   action: {
    //     method: 'redirect',
    //     to: 'https://www.baidu.com'
    //   }
    // }
    try {
      if (data.is_ban && data.action && data.action.method === 'redirect' && data.action.to) {
        yanzhengma(data.action.to);
        return;
      }
      if (data.amazons && location.hostname.includes('amazon.cn') && !$('.gwd-amazon-link').length) {
        const el = document.createElement('DIV');
        if ($('#gwd-space').length) {
          $('#gwd-space').before(el);
        } else {
          $('.search-mod').before(el);
        }
        let siteName = $('#merchant-info .a-link-normal span').text();
        if (!siteName) {
          siteName = $('#sellerProfileTriggerId').text();
        }
        new Vue({
          el: el,
          render: h => h(_AmazonSameLinks.default, {
            props: {
              data: data.amazons.filter(x => {
                return x.title === siteName;
              })
            }
          })
        });
      }
      if (data.nopuzzle_promo && data.nopuzzle_promo.length > 0) {
        edit_nopuzzle_promo(data.nopuzzle_promo);
      }
      if (data.store && data.store.length > 0 && data.store[0].all_line.length) {
        G.dp.storeInfo = data.store;
        if (data.store[0].mobile_price) {
          G.dp.mobilePrice = data.store[0].mobile_price;
        }
        (__webpack_require__(41761).setMet)('GwdPriceTrendLoaded');
        (__webpack_require__(41761).setMet)('NowPrice', data.store[0].current_price);
        let store = data.store[0];
        let allLine = store.all_line;
        let nowPriceWithPromo = allLine[allLine.length - 1];
        (__webpack_require__(41761).setMet)('NowPriceWithPromo', nowPriceWithPromo);
      } else {
        (__webpack_require__(30888).waitForConditionFn)(() => G.dp.price && !isNaN(parseFloat(G.dp.price))).then(() => {
          if (G.dp.price) {
            if (isNaN(parseFloat(G.dp.price))) {
              return;
            }
            (__webpack_require__(41761).setMet)('NowPrice', G.dp.price);
          }
        });
      }
      if (data.store && data.store[1] && data.store[1].name === "到手价" && data.promo) {
        data.store[1].name = "凑单到手价";
      } else if (data.store) {
        data.store.length = 1;
      }
      if (currentCurrency && data && data.store) {
        data.store[0].currency = currentCurrency;
      }
      if (!data.store || data.store[0].all_line.length === 0) {
        var siteName = G.site;
        let siteId = detect.getSiteId(siteName);
        priceParser.init(siteId, function (price) {
          if (price && price > 0) {
            G.dp.oldPrice = price;
            G.dp.price = price;
          } else if (data.store && data.store.length && data.store[0].last_price) {
            G.dp.price = data.store[0].last_price / 100;
          }
          data = noTrendAddTrendData(data);
          callback(data);
        });
      } else {
        callback(data);
      }
    } catch (e) {
      callback(data);
    }
  });
};

// 一淘数据， 也就是淘宝天猫以前使用的别人的数据  此处是处理数据
const dealWithEtaoData = function (msg, callback) {
  if (!msg) return;
  if (!msg.list) return;
  let islowest, lowest, highest, currentTime, price_trend;
  let listSize = msg.list.length;
  let trenddata = [];
  let startTime = msg.startTime;
  currentTime = new Date(msg.curTime).getTime();
  lowest = highest = msg.list[0].price;
  let lowestTime;
  try {
    for (let i = 0; i < listSize; i++) {
      let item = msg.list[i];
      trenddata.push([new Date(item.time).getTime(), item.price]);
      if (item.price > highest) highest = item.price;
      if (item.price < lowest) {
        lowest = item.price;
      }
      if (i > 0 && lowest == item.price && item.price != msg.list[i - 1].price) {
        lowestTime = item.time;
      }
    }
    trenddata.unshift([new Date(startTime).getTime(), msg.list[0].price]);
    /*补点*/
    for (let i = listSize - 1; i > 0; i--) {
      if (trenddata[i][0] - trenddata[i - 1][0] > 86400000) {
        let itemTrend = [trenddata[i][0] - 86400000, trenddata[i - 1][1]];
        trenddata.splice(i, 0, itemTrend);
      }
    }
    /*判断当前时间是否大于最后一个点，如果大于， 则补最后一个点*/
    let lastData = trenddata[trenddata.length - 1];
    if (lastData[0] < currentTime) {
      let lstprice = lastData[1];
      let pagePrice = getSitePrice(G.site);
      if (currentTime - lastData[0] > 86400000) trenddata.push([currentTime - 86400000, lstprice]);
      if (pagePrice && lstprice != pagePrice) {
        if (pagePrice > highest) highest = pagePrice;
        if (pagePrice < lowest) lowest = pagePrice;
        trenddata.push([currentTime, pagePrice]);
      }
    }
    setTimeout(function () {
      // 修正最后一个点的价格
      let sitePrice = getSitePrice(G.site);
      if (sitePrice) {
        trenddata[trenddata.length - 1][1] = sitePrice;
      }

      //判断价格历史走势
      let result = getPriceStatus(trenddata);
      let price_status = result.price_status;
      let price_last = result.price_last;
      islowest = result.islowest;
      var price_range = lowest + "-" + highest;
      var startD = new Date(msg.startTime).getDate();
      var startM = new Date(msg.startTime).getMonth();
      var startY = new Date(msg.startTime).getFullYear();
      let allLine = [];
      let now_day = new Date();
      let getDataFromTime = time => {
        for (let i = 0; i < trenddata.length - 1; i++) {
          if (time >= trenddata[i][0] && time < trenddata[i + 1][0]) {
            return trenddata[i][1];
          }
        }
        return trenddata[trenddata.length - 1][1];
      };
      let start = trenddata[0][0];
      while (start <= now_day.getTime()) {
        let s = getDataFromTime(start);
        allLine.push(parseFloat(s.toFixed(2)));
        start += oneDay;
      }
      let year_line = null;
      if (allLine.length >= 365) {
        year_line = allLine.slice(allLine.length - 365);
      }
      let month_line = null;
      if (allLine.length >= 31) {
        month_line = allLine.slice(allLine.length - 31);
      }
      let short_day_line = null;
      if (allLine.length >= 6) {
        let dayline = allLine.slice(allLine.length - 6);
        short_day_line = [];
        for (let i = 0; i < dayline.length - 1; i++) {
          let newArr = [];
          for (let n = 0; n < 24; n++) {
            newArr.push(dayline[i]);
          }
          short_day_line = short_day_line.concat(newArr);
        }
        short_day_line.push(dayline[dayline.length - 1]);
      }
      let now_time = new Date();
      price_trend = {
        "price_status": price_status,
        "startD": startD,
        "startM": startM,
        "startY": startY,
        "now_day": now_day.getTime(),
        "startTime": startTime,
        "lowestTime": lowestTime,
        "extra": 'start from another',
        "store": [{
          "current_price": price_last,
          "all_line": allLine,
          "all_line_begin_time": trenddata[0][0] + 8 * oneHour,
          "year_line": year_line,
          "year_line_time": now_day.getTime() - 365 * oneDay,
          "month_line": month_line,
          "month_line_time": now_day.getTime() - 30 * oneDay,
          "short_day_line": short_day_line,
          "short_day_line_begin_time": now_time.getTime() + 8 * oneHour - 5 * oneDay,
          "min_stamp": "0",
          "islowest": islowest,
          "name": G.site === 'tmall' ? '天猫' : '淘宝',
          "price_range": price_range,
          "promo": [],
          "all_equal_short": false
        }]
      };
      callback(price_trend);
    }, 500);
    //return price_trend
  } catch (e) {}
};
const getSitePrice = function (site) {
  var price = '';
  if (site == 'taobao') {
    price = $('#J_PromoPriceNum').text();
    if (price == '' && $('#J_PromoPriceNum').length == 0) {
      price = $('#J_StrPrice .tb-rmb-num').text();
    }
  }
  if (site == 'tmall') {
    if (price == "") {
      price = $('#J_DetailMeta #J_PromoPrice span.tm-price').text();
    }
    if (price == "") {
      price = $('span.tm-price').text();
    }
    if (location.host === 'detail.tmall.hk') {
      price = $('span.tm-price:eq(1)').text();
    }
    if ($(".tb-wrTuan-num").text()) {
      price = $(".tb-wrTuan-num").text();
    }
  }
  if (site == 'taobao-95095') {
    price = $('#J_PromoPrice .tm-price').text();
    if (price == "") {
      price = $('#J_StrPriceModBox .tm-price').text();
    }
  }
  if (site == 'ai-taobao') {
    if (!G.chrome_extension) {
      price = window.pageconfig.promoPrice;
    } else {
      var pageconfig = $('.aitaobao-edetail-header script').text();
      price = /promoPrice":"([\d\.]+)"/.exec(pageconfig);
      if (price) price = price[1];
    }
    if (price == '' || !price) {
      price = $('.price-wrap .price-single .price-promo strong').text();
    }
  }
  if (price.indexOf('-') > -1) {
    price = price.split('-')[0];
  }
  return parse_price(price);
};
var tryTimes = 0;
const getContentFromDiv = fn => {
  if (tryTimes >= 9 && G.site == 'amazon' && location.host.indexOf('cn') != -1) return fn(false);else if (tryTimes >= 6) return fn(false);
  var msg = $(`#${G.extBrand}_myDiv`).text();
  if (msg) fn(msg);else {
    tryTimes++;
    setTimeout(function () {
      getContentFromDiv(fn);
    }, 1000);
  }
};
const getPriceInfo = callback => {
  if (G.site === 'amazon' && location.host != 'www.amazon.cn') {
    isForeignSite = true;
    currentCurrency = 'USD';
    if (location.host == 'www.amazon.co.jp') {
      currentCurrency = 'JPY';
    }
    if (['www.amazon.fr', 'www.amazon.de', 'www.amazon.es', 'www.amazon.nl', 'www.amazon.it'].indexOf(location.host) > -1) {
      currentCurrency = 'EUR';
    }
    if (location.host == 'www.amazon.ca') {
      currentCurrency = 'CAD';
    }
    if (location.host == 'www.amazon.co.uk') currentCurrency = 'GBP';
    getCommonInfo(callback);
  } else if (G.site === 'tmall' || G.site === 'taobao-95095' || G.site === 'ai-taobao' || G.site === 'taobao') {
    // require('common/getTaobaoTrend').getTrend(function(trenddata) {
    //   if (!trenddata || trenddata.nodata === true) {
    //     getCommonInfo(callback);
    //   } else {
    //     dealWithEtaoData(trenddata, function(data) {
    //       if (data) callback(data)
    //       else getCommonInfo(callback);
    //     });
    //   }
    // })

    /*以前因为我们价格走势对淘宝天猫的支持不好 所以使用了别人的数据， 现在基本上都使用了自己的数据， 所以上面也被注释了*/
    setTimeout(() => {
      getCommonInfo(callback);
    }, 200);
    // 避开lint js 检测
    if (false) {}
  } else if (G.site === 'aliexpress') {
    (__webpack_require__(20669).getTrendData)(data => {
      if (data) callback(data);
    });
  } else {
    getCommonInfo(callback);
  }
};
const getPriceStatus = trenddata => {
  // 对于使用第三方数据的， 判断价格走势
  var price_status = 0;
  var price_num = trenddata.length;
  let priceArr = trenddata.map(i => i[1]);
  let lowest = Math.min.apply(void 0, priceArr);
  var price_last = trenddata[price_num - 1][1];
  let islowest = false;
  var change_range = 20;
  let time_length = 0;
  for (var i = price_num - 1; i >= 0; i--) {
    var now_price = trenddata[i][1];
    if (i > 0) {
      time_length += (trenddata[i][0] - trenddata[i - 1][0]) / 86400000;
    }
    if (now_price == 0) {
      continue;
    }
    if (price_last == now_price) {
      if (time_length > 180) {
        break;
      }
      continue;
    } else if (parseFloat(price_last) > parseFloat(now_price) && i >= price_num - change_range - 1) {
      price_status = 1;
      break;
    } else if (parseFloat(price_last) < parseFloat(now_price)) {
      price_status = -1;
      if (price_last === lowest) {
        islowest = true;
        price_status = -2;
      }
      break;
    }
  }
  return {
    price_status: price_status,
    islowest: islowest,
    price_last: price_last
  };
};
let topRendered = false;
const renderBtnTop = data => {
  if (!data.store || data.store[0].all_line.length < 2) return;
  let w1 = c_width - 321;
  let status = data.price_status;
  status = 'pri-t' + status;
  let tle = priceTle[status];
  if (topRendered) {
    $('#gwdang-trend .btn-tab-sp').html(`
      <em class="gwd_bg ${status}"></em>
      <span class="tab-sp1 blkcolor1">${tle}</span>
    `);
    return;
  }
  let t = `<span class="btn-tab-sp">
      <em class="gwd_bg ${status}"></em>
      <span class="tab-sp1 blkcolor1">${tle}</span>
    </span>
    <div id="gwdang-trend-detail" class="gwdang-trend-detail top-bar-detail" style="white-space: nowrap">
      <div id="gwdang-pri-trend-chart" style="flex: 1; height:260px;" class="chart">
        <div id="big_tooltip_top" class="big_tooltip_box"></div>
        <div id="bar_trend_legend_btn" class="legend-btn-box">
          <span class="price-trend-sp pt-sp1 " data-id="days180">
            <em></em>
            <span>到手价(单件)</span>
          </span>
          <span class="review-trend-sp" data-id="plotSpecial">
            <em></em>
            <span>到手价(多件)</span>
          </span>
        </div>
      </div>
      <div class="gwd-collection-trend-content"></div>
    </div>
    `;
  topRendered = true;
  $('#gwdang-trend').append(t).css("display", "block");
  (__webpack_require__(7053).autoFixWidth)();
};
const renderBtnBtm = data => {
  if (!data.store || data.store[0].all_line.length < 2) return;
  let w1 = c_width - 321;
  let status = data.price_status;
  status = 'pri-t' + status;
  let tle = priceTle[status];
  for (let key in priceTle) {
    $('#gwdang-trend .trend-box-dev span').removeClass(key);
    $('#gwdang-trend .trend-box-dev em').removeClass(key);
  }
  $('#gwdang-trend .trend-box-dev span').text(tle).addClass(status);
  $('#gwdang-trend .trend-box-dev em').addClass(status);
  // $('#gwdang-pri-trend-chart').css('width', w1 + 'px')
  $('#gwdang-trend').css("display", "block");
};
const renderMini = async data => {
  await (__webpack_require__(30888).waitForConditionFn)(() => $('#mini_price_history').length);
  let no_price = '',
    settbg = 'setting-bg';
  let status = data.price_status;
  status = 'pri-t' + status;
  let tle = priceTle[status];
  if (!data.store || data.store[0].all_line.length < 2) {
    no_price = 'no-price';
    tle = '暂无价格走势';
    status = '';
    settbg = '';
    $('.gwd-collection-mini').remove();
  }
  if (G.site == 'amazon' || G.site == '6pm') {
    settbg = 'ht-bg';
  }
  let t = `<div class="minibar-btn-box ${no_price}">
        <em class="${settbg} pri-history-icon ${status}"></em>
        <span class="${status}">${tle}</span>
      </div>`;
  if (!data.store || data.store[0].all_line.length < 2) {
    $('#mini_price_history').addClass('no_price').off();
    $('#mini_price_history_detail').remove();
    $('#ht_minitrend_detail').remove();
  }
  $('#mini_price_history').append(t).css("display", "block");
  (__webpack_require__(7129).log)('render mini trend');
};
const yanzhengma = url => {
  (__webpack_require__(5300).log)('验证码', '弹出');
  let permanent = userData.get('permanent');
  if (G.site === 'steampowered' && permanent.setsteam !== '0') {
    renderYanzhengmaSteam(url);
    return;
  }
  let style = userData.get('permanent').style;
  if (style === 'top') {
    renderyanzhengmaTop(url);
  } else if (style === 'bottom') {
    renderyanzhengmaBtm(url);
  }
  renderyanzhengmaMini(url);
  setTimeout(() => {
    $('a.error-sp').on('click', e => {
      e.preventDefault();
      (__webpack_require__(5300).log)('验证码', '点击');
      location.href = url;
    });
  }, 0);
};
const renderYanzhengmaSteam = url => {
  let dom = $('.game_purchase_action:contains("开始游戏")');
  if (dom.length === 0) dom = $('.game_purchase_action:contains("在购物车中")');
  if (dom.length === 0) dom = $('.game_purchase_action:contains("添加至购物车")');
  let html = __webpack_require__(96044);
  let btntxt = `<span class="blkcolor1">访问异常</span>`;
  dom.eq(0).prepend(template.compile(html)({
    url: url
  }));
  dom.eq(0).parents('.game_area_purchase_game_wrapper').css('z-index', '999999');
  dom.eq(0).parents('.game_area_purchase_game').css('z-index', '9999999');
};
const renderyanzhengmaBtm = url => {
  let w1 = c_width - 321;
  let html = __webpack_require__(83357);
  let btntxt = `<span class="blkcolor1">访问异常</span>`;
  $('#gwdang-trend').append($(btntxt));
  $('.trend-box-dev').remove();
  // $('#gwdang-pri-trend-chart').css('width', w1 + 'px')
  $('#gwdang-trend-detail').empty().append(template.compile(html)({
    url: url
  }));
  $('#gwdang-trend').css("display", "block");
};
const renderyanzhengmaTop = url => {
  let html = __webpack_require__(97643);
  let btntxt = `<span class="blkcolor1">访问异常</span>`;
  $('#gwdang-trend').append($(btntxt));
  $('#gwdang-trend').append(template.compile(html)({
    url: url
  })).css('display', 'block');
  $('#gwdang-trend').on('mouseleave', function (e) {
    $('#gwdang-trend').removeClass('tab-hover');
  });
};
const renderyanzhengmaMini = url => {
  // 中间部分访问异常情况
  let html = __webpack_require__(12889);
  let btntxt = `<span class="blkcolor1">访问异常</span>`;
  $('#mini_price_history').append($(btntxt));
  $('#mini_price_history').append(template.compile(html)({
    url: url
  })).css('display', 'block');
};
const renderMiniDetail = async data => {
  // 加载中间展开部分
  await (__webpack_require__(30888).waitForConditionFn)(() => $('#mini_price_history').length);
  let dpdata = userData.get('dp_query');
  // if (G.site == 'amazon' || G.site == '6pm') return;
  let showapp = false;
  if (!G.forbidCoupon) {
    showapp = true;
  }
  if (G.IE7 || G.IE8 || G.IE9 || G.IE10 || G.IE11) {
    showapp = false;
  }
  if (dpdata && dpdata.b2c && !(dpdata.b2c instanceof Array)) {
    showapp = false;
  }
  if (G.aliSite) {
    showapp = false;
  }
  let html = __webpack_require__(725);
  $('#mini_price_history').append(html({
    showapp: showapp
  }));
  const TrendSideLine = (__webpack_require__(32606)/* ["default"] */ .A);
  let promoCopy = data.nopuzzle_promo ? JSON.parse(JSON.stringify(data.nopuzzle_promo)) : '';
  let storeCopy = data.store ? JSON.parse(JSON.stringify(data.store)) : '';
  let promoData = (__webpack_require__(75957).editData)(data.promo, promoCopy, storeCopy);
  data.promoShow = promoData;
  if (G.aliSite || G.site === '360buy') {
    $('#mini_price_history_detail').css('width', '690px');
  } else {
    // $('#mini_price_history_detail').css('width', '460px')
    $('#mini_price_history_detail').css('width', '690px');
  }
  if (true) {
    window.rightPromo = new Vue({
      el: '#gwd-mini-promo-history',
      render: h => h(TrendSideLine, {
        props: {
          promoHistory: data
        }
      })
    });
  }
  if (showapp) {
    $('#mini_price_history').addClass('showapp');
  }
  setTimeout(function () {
    if (!$('#mini_price_history').is(':visible')) {
      $('#mini_price_history').show();
    }
  }, 100);
};
const renderBtn = async data => {
  //$('#gwdang-trend').html('')
  let style = userData.get('permanent').style;
  if (style === 'top') {
    renderBtnTop(data);
  } else if (style === 'bottom') {
    renderBtnBtm(data);
  }
  $('#mini_price_history').html('');
  renderMini(data);
  if (!data.store || data.store[0].all_line.length < 2) return;
  renderMiniDetail(data);
  // const MiniTrendBox = require('./trend/MiniTrendBox.vue').default;
  // await require('standard/module/util').waitForConditionFn(() =>
  //   $('#mini_price_history').length)
  // const el = document.createElement('DIV')
  // $('#mini_price_history').append(el)
  // new Vue({
  //   el: el,
  //   render: h => h(MiniTrendBox, {
  //     props: {
  //       trendData: data
  //     }
  //   })
  // })

  $('#gwdang-trend').on('mouseleave', function (e) {
    setTimeout(function () {
      let arrs = $(e.target).parents();
      for (let i = 0; i < arrs.length; i++) {
        let id = $(arrs[i]).attr('id');
        if (id === 'favor_box') {
          return;
        }
      }
      //$('#gwdang-trend-detail').hide()
      $('#gwdang-trend').removeClass('tab-hover');
    }, 150);
  });
};
const renderRemind = data => {
  var money = '&yen;';
  let site = G.logsite;
  let moneyInfo = countryConfig.getMoneyInfo(site);
  if (moneyInfo) money = moneyInfo[0];
  setTimeout(async function () {
    await (__webpack_require__(41761).met)('PriceRemindSetted');
    (__webpack_require__(57652)/* .setPriceData */ .mW)(money, data);
    //require('./price_remind').init(`#gwdang-trend-detail`, money, data)
  }, 400);
};
const addPriceStatus = data => {
  if (data.price_status === -1 && data.store.length > 0) {
    let lastPrice = data.store[0].last_price / 100;
    let lowestP = data.store[0].lowest;
    if (lastPrice === lowestP) {
      data.price_status = -2;
    }
  }
  if (!data.now_day) {
    data.now_day = Date.now();
  }
  return data;
};
const init = async () => {
  G.shaidanAvailable = false;
  topRendered = false;
  (__webpack_require__(30241)["default"]).resetBind();
  if (G.site === 'epic') {
    (__webpack_require__(15554).init)();
    return;
  }

  // 获取价格走势数据
  await (__webpack_require__(60340).sleep)(1000);
  let urlBeforeRequest = location.href;
  window.gwd_trend_request_id = Date.now();
  let d = window.gwd_trend_request_id;
  getPriceInfo(async data => {
    if (d !== window.gwd_trend_request_id) {
      return;
    }
    if (location.href !== urlBeforeRequest) {
      if (G.aliSite) {
        let oldId = (__webpack_require__(60340).getParameterByName)('id', urlBeforeRequest);
        let currentId = (__webpack_require__(60340).getParameterByName)('id');
        let oldSku = (__webpack_require__(60340).getParameterByName)('skuId', urlBeforeRequest);
        let currentSku = (__webpack_require__(60340).getParameterByName)('skuId');
        (__webpack_require__(7129).log)('situation 1');
        if (oldId !== currentId || oldSku !== currentSku) {
          (__webpack_require__(7129).warn)('url mismatch tb', {
            old: urlBeforeRequest,
            current: location.href
          });
          if (oldSku) {
            return;
          }
        }
      } else {
        (__webpack_require__(7129).warn)('url mismatch 2', {
          old: urlBeforeRequest,
          current: location.href
        });
        return;
      }
    }
    if (G.site === 'steampowered') {
      // 如果当前页面是steam网站 就加载steam价格走势
      let permanent = userData.get('permanent');
      if (permanent && permanent.setsteam !== '0') {
        (__webpack_require__(16327).init)(data);
      }
      return;
    }
    // 判断是否是历史最低价
    data = addPriceStatus(data);
    // 加载价格走势标签
    renderBtn(data);
    // 加载价格走势里面的降价提醒
    renderRemind(data);
    // renderDetail()
    let dpId = await (__webpack_require__(41761).met)('GwdDpIdGot');
    if (!data.store || data.store[0].all_line.length < 2) return;
    $(`#biggraph_${G.from_device}`).remove();
    (__webpack_require__(7129).log)(data.store);
    (__webpack_require__(30241)["default"]).init(data, 'dpPage', false, {
      top: false,
      middle: false,
      bottom: false,
      baidu: false
    });
    //let img = await require('common/request').get(`${G.server}/extension/QrCode?tag=PromoDetail&dp_id=${dpId}`)
    if (data.promo && data.promo.length > 0) {
      //$('#trend_com_detail').remove();
      //G.promoTrendRendered = true
      //$('.app-tuiguang').remove()
      //$('#mini_price_history').removeClass('showapp')
      //require('./promoHistory').init(data.promo, data.nopuzzle_promo, data.store, '')
    }
  });
};
exports.T = init;

/***/ }),

/***/ 87583:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {


const canPromise = __webpack_require__(91333)

const QRCode = __webpack_require__(90157)
const CanvasRenderer = __webpack_require__(47899)
const SvgRenderer = __webpack_require__(56756)

function renderCanvas (renderFunc, canvas, text, opts, cb) {
  const args = [].slice.call(arguments, 1)
  const argsNum = args.length
  const isLastArgCb = typeof args[argsNum - 1] === 'function'

  if (!isLastArgCb && !canPromise()) {
    throw new Error('Callback required as last argument')
  }

  if (isLastArgCb) {
    if (argsNum < 2) {
      throw new Error('Too few arguments provided')
    }

    if (argsNum === 2) {
      cb = text
      text = canvas
      canvas = opts = undefined
    } else if (argsNum === 3) {
      if (canvas.getContext && typeof cb === 'undefined') {
        cb = opts
        opts = undefined
      } else {
        cb = opts
        opts = text
        text = canvas
        canvas = undefined
      }
    }
  } else {
    if (argsNum < 1) {
      throw new Error('Too few arguments provided')
    }

    if (argsNum === 1) {
      text = canvas
      canvas = opts = undefined
    } else if (argsNum === 2 && !canvas.getContext) {
      opts = text
      text = canvas
      canvas = undefined
    }

    return new Promise(function (resolve, reject) {
      try {
        const data = QRCode.create(text, opts)
        resolve(renderFunc(data, canvas, opts))
      } catch (e) {
        reject(e)
      }
    })
  }

  try {
    const data = QRCode.create(text, opts)
    cb(null, renderFunc(data, canvas, opts))
  } catch (e) {
    cb(e)
  }
}

exports.create = QRCode.create
exports.toCanvas = renderCanvas.bind(null, CanvasRenderer.render)
exports.toDataURL = renderCanvas.bind(null, CanvasRenderer.renderToDataURL)

// only svg for now.
exports.toString = renderCanvas.bind(null, function (data, _, opts) {
  return SvgRenderer.render(data, opts)
})


/***/ }),

/***/ 87633:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var getBuiltIn = __webpack_require__(97751);
var defineBuiltInAccessor = __webpack_require__(62106);
var wellKnownSymbol = __webpack_require__(78227);
var DESCRIPTORS = __webpack_require__(43724);

var SPECIES = wellKnownSymbol('species');

module.exports = function (CONSTRUCTOR_NAME) {
  var Constructor = getBuiltIn(CONSTRUCTOR_NAME);

  if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
    defineBuiltInAccessor(Constructor, SPECIES, {
      configurable: true,
      get: function () { return this; }
    });
  }
};


/***/ }),

/***/ 87772:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, data = $data.data, $each = $imports.$each, $value = $data.$value, $index = $data.$index, s_server = $data.s_server;
    $$out += '<div id="review_detail" class="review-box">\n  <div class="review-left">\n    <div class="review-tab review-good selected" data-d="';
    $$out += $escape(data.goodbox);
    $$out += '">\n      <em class="gwd_bg"></em>\n      <span class="blkcolor1">好评</span>\n    </div>\n    <div class="review-tab review-bad" data-d="';
    $$out += $escape(data.badbox);
    $$out += '">\n      <em class="gwd_bg"></em>\n      <span class="blkcolor1">差评</span>\n    </div>\n  </div>\n  <div class="review-right">\n    <div class="review-r-good">\n      ';
    $each(data.good, function ($value, $index) {
        $$out += '\n        <a href="';
        $$out += $escape($value.url);
        $$out += '" class="blkcolor3" target="_blank">';
        $$out += $escape($value.label);
        $$out += '(';
        $$out += $escape($value.num);
        $$out += ')</a>\n      ';
    });
    $$out += '\n    </div>\n    <div class="review-r-bad">\n      ';
    $each(data.bad, function ($value, $index) {
        $$out += '\n        <a href="';
        $$out += $escape($value.url);
        $$out += '" class="blkcolor3" target="_blank">';
        $$out += $escape($value.label);
        $$out += '(';
        $$out += $escape($value.num);
        $$out += ')</a>\n      ';
    });
    $$out += '\n    </div>\n    <div class="review-r-noinfo">\n      <em class="review-bg"></em>\n      <span>暂无评论</span>\n    </div>\n  </div> \n  <style type="text/css">\n    .review-bg {\n      background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/xbt/review-bg.png\') no-repeat;\n    }\n    #review_btn {\n      width: 59px;\n    }\n    #review_btn .review_icon{\n      float: left;\n      height: 22px;\n      width: 22px;\n      background-position: -171px -19px;\n      margin-left: 0px;\n      margin-top: 6px;\n      margin-right: 6px;\n    }\n    #review_btn.msenter {\n      background-color: #edf1f2;\n      z-index: 9999999999999999;\n      height: 36px;\n      position: relative;\n    }\n    #review_btn .review_text {\n      font-weight: normal;\n      color: #494d50;\n      line-height: 35px;\n      font-weight: bold;\n    }\n    #review_detail {\n      position: fixed;\n      top: 37px;\n      width: 570px;\n      height: 85px;\n      z-index: 99999999;\n      background-color: #fff;\n      border: 1px solid #edf1f2;\n      display: none;\n      box-shadow: 0 5px 10px 0 rgba(22,24,26,0.15);\n      box-sizing: content-box;\n    }\n    .review-left {\n      float: left!important;\n      height: 100%;\n      width: 80px;\n    }\n    .review-right {\n      float: left!important;  \n      width: 490px;\n      height: 85px;\n    }\n    .review-tab {\n      height: 42px;\n      width: 100%;\n      background-color: #fff;\n      line-height: 42px;\n      font-size: 14px;\n      color: #333;\n      cursor: pointer;\n      border-right: 1px solid #edf1f2;\n    }\n    .review-tab em {\n      float: left;\n      height: 18px;\n      width: 18px;\n      margin: 11px 8px 0 12px;\n    }\n    .review-tab.selected span {\n      font-weight: bold;\n    }\n    .review-good em {\n      background-position: -122px -85px;\n    }\n    .review-bad em {\n      background-position: -146px -85px;\n    }\n    .review-tab.selected {\n      background-color: #fff;\n      border-right: none;\n    }\n    .review-good {\n      border-bottom: 1px solid #e6e6e6;\n    }\n    .review-r-bad {\n      display: none;\n    }\n    .review-right .review-r-bad, .review-right .review-r-good {\n      padding: 0px 2px 0 12px;\n      overflow: hidden;\n      height: 80px;\n    }\n    .review-r-bad a, .review-r-good a {\n      font-size: 12px;\n      color: #333;\n      background-color: #f4f4f4;\n      text-align: center;\n      margin-right: 6px;\n      margin-top: 12px;\n      margin-bottom: 2px;\n      float: left;\n      height: 24px;\n      line-height: 24px;\n      letter-spacing: 1px;\n      width: auto;\n      padding: 0 6px;\n      border-radius: 10px;\n      text-decoration: none!important;\n    }\n    .review-r-good a:hover {\n      color: #fff!important;\n      background-color: #ff9f22;\n    }\n    .review-r-bad a:hover {\n      color: #fff!important;\n      background-color: #bcb9b2;\n    }\n    .review-r-noinfo {\n      height: 100%;\n      width: 130px;\n      float: left!important;\n      display: none;\n      margin-left: 169px;\n    }\n    .review-r-noinfo em {\n      float: left;\n      width: 39px;\n      height: 43px;\n      background-position: -53px -117px;\n      margin-top: 23px;\n      margin-left: 20px;\n    }\n    .review-r-noinfo span {\n      font-size: 14px;\n      color: #b2b2b2;\n      background-color: #fff;\n      margin-top: 35px;\n      margin-left: 3px;\n      float: left;\n     }\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 87853:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "gwd-member-coupon-top gwd-member-coupon",
    attrs: {
      title: "点击领取",
      href: _vm.link,
      target: "_blank"
    }
  }, [_c("span", {
    staticStyle: {
      color: "white",
      "margin-left": "5px"
    }
  }, [_vm._v("当前商品可领会员券")]), _vm._v(" "), _c("span", {
    staticStyle: {
      color: "white",
      "margin-left": "9px",
      "margin-right": "9px"
    }
  }, [_vm._v("领取")])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 88114:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _PrivacyDialog = _interopRequireDefault(__webpack_require__(42034));
var _default = exports.A = {
  props: ['installComplete'],
  components: {
    PrivacyDialog: _PrivacyDialog.default
  },
  data: () => ({
    showPrivacyDialog: true,
    secondConfirm: false
  }),
  mounted() {
    document.body.style.overflow = 'hidden';
  },
  methods: {
    dialogClose(result) {
      if (!result.allowCookieAndUrl) {
        this.secondConfirm = true;
      } else {
        this.showPrivacyDialog = false;
        if (!this.installComplete) {
          this.$destroy();
          document.body.style.overflow = 'auto';
          this.$el.parentNode.removeChild(this.$el);
        }
      }
    }
  }
};

/***/ }),

/***/ 88727:
/***/ ((module) => {

"use strict";

// IE8- don't enum bug keys
module.exports = [
  'constructor',
  'hasOwnProperty',
  'isPrototypeOf',
  'propertyIsEnumerable',
  'toLocaleString',
  'toString',
  'valueOf'
];


/***/ }),

/***/ 88944:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-member-coupon-top[data-v-0a149135] {\n  height: 28px;\n  background: linear-gradient(to right, #f28936, #ff351e);\n  position: relative;\n  background-size: cover;\n  display: inline-flex;\n  align-items: center;\n  margin-top: 2px;\n  cursor: pointer;\n  border-radius: 2px;\n}\n.gwd-member-coupon-top .gwd-qr-container[data-v-0a149135] {\n  display: none;\n  position: absolute;\n  top: 28px;\n}\n.gwd-member-coupon-top[data-v-0a149135]::before,\n.gwd-member-coupon-top[data-v-0a149135]::after {\n  content: '';\n  position: absolute;\n  left: 115px;\n  width: 4px;\n  height: 4px;\n  background: white;\n  border-radius: 2px;\n  top: -2px;\n}\n.gwd-member-coupon-top[data-v-0a149135]::after {\n  top: unset;\n  bottom: -2px;\n}\n.gwd-member-coupon-top[data-v-0a149135]:hover {\n  text-decoration: none;\n}\n.gwd-member-coupon-top:hover .gwd-qr-container[data-v-0a149135] {\n  display: block;\n}\n", ""]);

// exports


/***/ }),

/***/ 88980:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(95317);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("24d91dfb", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 89084:
/***/ ((module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
var __WEBPACK_AMD_DEFINE_RESULT__;

/*
 * 监控模块，负责监控库存和价格，上报给服务器,需要依赖 库存监控模块 和价格监控模块
 * @version:0.0.1
 * @author:caoyuanye
 * @since:2014-07-30
 */
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  let request = __webpack_require__(49388);
  let priceParser = __webpack_require__(5286);
  const detect = __webpack_require__(3494);
  const userData = __webpack_require__(74222);
  var priceCheck = __webpack_require__(78878),
    inventoryCheck = __webpack_require__(19777);
  return {
    timeOut: 5,
    //监控的最长时间,秒计算
    timer: null,
    //查询库存的计时器
    sendTimer: null,
    //发送计时器，用来确保获取dp_id
    inventory: null,
    //监控到的库存
    price: null,
    //监控到的价格
    specialSendFlag: false,
    //如果是天猫淘宝，就不抓取库存直接运行
    hasRun: false,
    init: function () {
      if (this.hasRun) {
        return;
      }
      this.hasRun = true;
      var $this = this;
      $this._setPrice(() => {
        $this._setInventory();
        $this._trySendMonitorData();
      });
    },
    _trySendMonitorData: function () {
      var $this = this;
      var trySendTime = 0;
      $this.sendTimer = setInterval(function () {
        ++trySendTime;
        if (trySendTime > $this.timeOut || G.save_dp_query != null) {
          let other_info = userData.get('other_info');
          var dp_id = other_info && other_info.now && other_info.now.dp_id;
          $this._sendMonitorData(dp_id);
          clearInterval($this.sendTimer);
        }
      }, 1000);
    },
    //发送监控到的库存和价格趋势，如果没有抓取到，就把库存默认设定成-2,价格默认设定成0
    _sendMonitorData: function (dp_id) {
      var $this = this;
      let spPage = (__webpack_require__(79963).specialFilter)();
      if (spPage) return;
      if ($this.inventory == null) {
        $this.inventory = "-2";
      }
      if ($this.price == null) {
        $this.price = "0";
      }
      let payload = {
        site: G.site,
        subsite_id: G.subsite_id,
        dp_id: dp_id,
        province_id: G.province_id,
        url: encodeURIComponent(G.dp.url),
        price: $this.price,
        stock: $this.inventory,
        rawurl: encodeURIComponent(window.location.href)
      };
      if (G.priceTextCollectedFromPage) {
        payload.price_text = G.priceTextCollectedFromPage;
      }
      const url = request.makeUrl(G.server, '/brwext/monitor', payload);
      request.get(url);
    },
    _setPrice: function (callback) {
      var that = this;
      var siteName = G.site;
      let siteId = detect.getSiteId(siteName);
      if (!siteId) siteId = 9999;
      priceParser.init(siteId, function (price) {
        if (price && price > 0) {
          that.price = price;
          G.dp.oldPrice = price;
        } else {
          that.price = G.dp.price;
        }
        if (!that.price) that.price = priceCheck.getOnlinePrice(siteName);
        if (siteName == 'taobao' && that.price != '0') {
          that.specialSendFlag = true;
        }
        if (siteName == '360buy') {
          // 京东的定金不发
          if ($(".itemInfo-wrap:contains('定　　金')").length) {
            return;
          }
        }
        if (callback) {
          callback();
        }
      });
    },
    _setInventory: function () {
      this.inventory = inventoryCheck.init(G.site);
    }
  };
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

/***/ }),

/***/ 89287:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(65904);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("0e4e2f9e", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 89330:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIiBvcGFjaXR5PSIwLjgiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTEuNSAxOEMxMy4wMTg4IDE4IDE0LjM5MzggMTcuMzg0NCAxNS4zODkxIDE2LjM4OTFDMTYuMzg0NCAxNS4zOTM4IDE3IDE0LjAxODggMTcgMTIuNUMxNyAxMC45ODEyIDE2LjM4NDQgOS42MDYyMyAxNS4zODkxIDguNjEwOTFDMTQuMzkzOCA3LjYxNTYxIDEzLjAxODggNyAxMS41IDdDOS45ODEyMyA3IDguNjA2MjMgNy42MTU2MSA3LjYxMDkxIDguNjEwOTFDNi42MTU2MSA5LjYwNjIzIDYgMTAuOTgxMiA2IDEyLjVDNiAxNC4wMTg4IDYuNjE1NjEgMTUuMzkzOCA3LjYxMDkxIDE2LjM4OTFDOC42MDYyMyAxNy4zODQ0IDkuOTgxMjMgMTggMTEuNSAxOFoiIHN0cm9rZT0iIzk2OTg5OSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBpZD0iVmVjdG9yXzIiIGQ9Ik0xMS41IDE0LjVWMTMuMjVDMTIuNjA0NiAxMy4yNSAxMy41IDEyLjQxMDUgMTMuNSAxMS4zNzVDMTMuNSAxMC4zMzk1IDEyLjYwNDYgOS41IDExLjUgOS41QzEwLjM5NTQgOS41IDkuNSAxMC4zMzk1IDkuNSAxMS4zNzUiIHN0cm9rZT0iIzk2OTg5OSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGlkPSJWZWN0b3JfMyIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS41IDE2LjVDMTEuNzc2MSAxNi41IDEyIDE2LjI3NjEgMTIgMTZDMTIgMTUuNzIzOSAxMS43NzYxIDE1LjUgMTEuNSAxNS41QzExLjIyMzkgMTUuNSAxMSAxNS43MjM5IDExIDE2QzExIDE2LjI3NjEgMTEuMjIzOSAxNi41IDExLjUgMTYuNVoiIGZpbGw9IiM5Njk4OTkiLz4KPC9nPgo8L3N2Zz4K";

/***/ }),

/***/ 89463:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
// `Symbol.prototype.description` getter
// https://tc39.es/ecma262/#sec-symbol.prototype.description

var $ = __webpack_require__(46518);
var DESCRIPTORS = __webpack_require__(43724);
var globalThis = __webpack_require__(44576);
var uncurryThis = __webpack_require__(79504);
var hasOwn = __webpack_require__(39297);
var isCallable = __webpack_require__(94901);
var isPrototypeOf = __webpack_require__(1625);
var toString = __webpack_require__(655);
var defineBuiltInAccessor = __webpack_require__(62106);
var copyConstructorProperties = __webpack_require__(77740);

var NativeSymbol = globalThis.Symbol;
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;

if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototype) ||
  // Safari 12 bug
  NativeSymbol().description !== undefined
)) {
  var EmptyStringDescriptionStore = {};
  // wrap Symbol constructor for correct work with undefined description
  var SymbolWrapper = function Symbol() {
    var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0]);
    var result = isPrototypeOf(SymbolPrototype, this)
      // eslint-disable-next-line sonarjs/inconsistent-function-call -- ok
      ? new NativeSymbol(description)
      // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
      : description === undefined ? NativeSymbol() : NativeSymbol(description);
    if (description === '') EmptyStringDescriptionStore[result] = true;
    return result;
  };

  copyConstructorProperties(SymbolWrapper, NativeSymbol);
  SymbolWrapper.prototype = SymbolPrototype;
  SymbolPrototype.constructor = SymbolWrapper;

  var NATIVE_SYMBOL = String(NativeSymbol('description detection')) === 'Symbol(description detection)';
  var thisSymbolValue = uncurryThis(SymbolPrototype.valueOf);
  var symbolDescriptiveString = uncurryThis(SymbolPrototype.toString);
  var regexp = /^Symbol\((.*)\)[^)]+$/;
  var replace = uncurryThis(''.replace);
  var stringSlice = uncurryThis(''.slice);

  defineBuiltInAccessor(SymbolPrototype, 'description', {
    configurable: true,
    get: function description() {
      var symbol = thisSymbolValue(this);
      if (hasOwn(EmptyStringDescriptionStore, symbol)) return '';
      var string = symbolDescriptiveString(symbol);
      var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1');
      return desc === '' ? undefined : desc;
    }
  });

  $({ global: true, constructor: true, forced: true }, {
    Symbol: SymbolWrapper
  });
}


/***/ }),

/***/ 89544:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var userAgent = __webpack_require__(82839);

// eslint-disable-next-line redos/no-vulnerable -- safe
module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);


/***/ }),

/***/ 89989:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABGFJREFUWEetWFF22kYUfW8kcDA0xTvAK6jbwDn9Kw74nNg/ob+tcwwrMKzAsALjFYCb5tvOj+uTQFH+WnAbdmB2YBoDzgGk18yAlBHG0si2/pCe3lzdee/OfSDc80pmr9NI+h4wKw0EiXmaLgL2gOFp+13k+D6pMehLAgiymgRieQqEHpFVuGh8YwRZIxCgVGa0D0hV1wJiYerxe0iYAHTYEmEIrNxuRCqqoJQBpbYGeSCs2YkJyACgyiIDP6ZvEqZmlgFxz45FYvl2U20LlQBtvLhKhMxwy94mBKi0G9Gy11cns9dlBHYwj+lPpuP1rrHW92NKCVAqM6jbX6wCxl70Wea6ypDti99ER51mrPg4gLLDKwCIA0Gv04yu+yW1n2+kr+IhPXwp3gVQYsmXIdFVwFqzr4R6pxktqALicTJLBNamX9f5Avph61NeI00UM4Geu2isvA0G6FOOoXbC3zHRLPz7/mnd631fQMnngyIyPJwB8v/CxcVkhgks3pWezeALSGZI5QsXAT3LPDJDqa3BBhB+DNIpMii5Q1UY9mWIJ0/ZXabYKU6Xyfql2KFKgNwih9VOY7WkUtip7OgQgGbao9ihSoCEnmjhj/Y5pXI+JbPDgy/JZwVM0NNMtvmXERFn3oO6zH7ZpUf8JkLPQrP0z7unp/ICszjtAIDS9n2V2rFjlRiyg+cdwzWJK698dQEhTkRxBHSeEVAfLSh1/ox5ao+cKBAgvnWapped88mf/spYH9e752u+WxWIIQ4krD/Zt8Asygz41YPznKA+CY0rKsB8GeKmjNAqLwIhoC4SfABglyab/scX1yz9WwBrnRC+Q0CnhgQwhB4iK/tZW09ArrYVzUJ9ADqKTWNVw0BPbyOMGjPTgHjgdpHesnEnoNTWkPvmvNQpFRUgy7Zxwaxxtuqd98tdw1JAC4LWA5N+7hixrnLNLAlMpQcboOGJw9YdoG4B8hO0nTf8bAvtf6kRw5yYH84LbrFL1yge0UdpRP0lMXj7xy8rjk7N/LbVskExwNLfjVXX0OACJLzzVDg8US/6VPt+UV23f//cQgCpYLFukXXMmNkHCL1Ei4qEjk71z3afrMmECaZ05IZP6NVEH6/L3ecClMyMThApNwdUumjE3CMPAGz/9rmIDIQ/8r+wfra7csthyh4LAI1OY3Xzlg4tWFVP7/yidpNAHfio8xOCew4Dgj4xNMiyjs5fRe4cEpPZUQvnx4t8tDgM3RXgx8LO61EVnMkCTkfTlYJR8JYEntN9Nn5lSQC666EfGP58583N1wGSqHL2KuJpUeWcy0gQgNyuLpiRfxggeaKZzW0zQPecux7KkGvtuRvFh85d26+HOZyPORBwyzigxbkNgw5yi3WVq13FJ3rkkmuPBSx/vhsO9L+QmxA6Qqmw+p1G1CViKkXNY7gMsLAZP/v1fseLNER0MZUd0mxht0CpgnmMOLnbxJYh4h4jLLSbUZc/fozFVHKkng/yxOAQCY7/B/kLSv/DHfOeAAAAAElFTkSuQmCC";

/***/ }),

/***/ 90084:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ Errorvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ Error)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Error.vue?vue&type=template&id=12202de2&scoped=true
var Errorvue_type_template_id_12202de2_scoped_true = __webpack_require__(12591);
;// ./src/standard/module/components/ImgSame/Error.vue?vue&type=template&id=12202de2&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Error.vue?vue&type=script&lang=js
var Errorvue_type_script_lang_js = __webpack_require__(40473);
;// ./src/standard/module/components/ImgSame/Error.vue?vue&type=script&lang=js
 /* harmony default export */ const ImgSame_Errorvue_type_script_lang_js = (Errorvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ImgSame/Error.vue?vue&type=style&index=0&id=12202de2&prod&scoped=true&lang=less
var Errorvue_type_style_index_0_id_12202de2_prod_scoped_true_lang_less = __webpack_require__(3651);
;// ./src/standard/module/components/ImgSame/Error.vue?vue&type=style&index=0&id=12202de2&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/ImgSame/Error.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  ImgSame_Errorvue_type_script_lang_js,
  Errorvue_type_template_id_12202de2_scoped_true/* render */.XX,
  Errorvue_type_template_id_12202de2_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "12202de2",
  null
  
)

/* harmony default export */ const Error = (component.exports);

/***/ }),

/***/ 90145:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-row[data-v-0ca5d897] {\n  display: flex;\n  flex-direction: row;\n}\n.gwd-inline-row[data-v-0ca5d897] {\n  display: inline-flex;\n  flex-direction: row;\n}\n.gwd-column[data-v-0ca5d897] {\n  display: flex;\n  flex-direction: column;\n}\n.gwd-inline-column[data-v-0ca5d897] {\n  display: inline-flex;\n  flex-direction: column;\n}\n.gwd-align[data-v-0ca5d897] {\n  align-content: center;\n  align-items: center;\n}\n.gwd-jcc[data-v-0ca5d897] {\n  justify-content: center;\n}\n.gwd-jic[data-v-0ca5d897] {\n  justify-items: center;\n}\n.gwd-button[data-v-0ca5d897] {\n  outline: none;\n  border: none;\n}\n.bjg-bar-button[data-v-0ca5d897] {\n  font-size: 0;\n}\n.bjg-hover-bg[data-v-0ca5d897] {\n  background: #fffbef;\n}\n.bjg-bar-button[data-v-0ca5d897]:hover {\n  background: #fffbef;\n  cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window[data-v-0ca5d897] {\n  display: block;\n}\n.mainbar-fold .bjg-bar-button[data-v-0ca5d897],\n.mainbar-fold #top_coupon_btn[data-v-0ca5d897],\n.mainbar-fold .rinfo-btn[data-v-0ca5d897],\n.mainbar-fold .gwd-bottom-tmall[data-v-0ca5d897] {\n  display: none!important;\n}\n.gwd-font12[data-v-0ca5d897] {\n  font-size: 12px;\n}\n.gwd-font14[data-v-0ca5d897] {\n  font-size: 14px;\n}\n.gwd-red[data-v-0ca5d897] {\n  color: #ff3532;\n}\n.gwd-red-bg[data-v-0ca5d897] {\n  background: #ff3532;\n}\n.gwd-hui333[data-v-0ca5d897] {\n  color: #333333;\n}\n.gwd-hui999[data-v-0ca5d897] {\n  color: #999999;\n}\n.gwd-font10[data-v-0ca5d897] {\n  font-size: 12px;\n  transform: scale(0.8333);\n  transform-origin: bottom center;\n}\n.gwd-font11[data-v-0ca5d897] {\n  font-size: 12px;\n  transform: scale(0.91666);\n  transform-origin: bottom center;\n}\n.gwd-font9[data-v-0ca5d897] {\n  font-size: 12px;\n  transform: scale(0.75);\n  transform-origin: bottom center;\n}\n.gwd-hoverable[data-v-0ca5d897]:hover {\n  background: #edf1f2;\n}\n.right-info > *[data-v-0ca5d897] {\n  border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit[data-v-0ca5d897]:hover {\n  color: #e03024 !important;\n}\n.gwd-button[data-v-0ca5d897]:hover {\n  filter: brightness(1.1);\n}\n.gwd-button[data-v-0ca5d897] {\n  padding-top: 1px;\n  padding-bottom: 1px;\n}\n.gwd-button[data-v-0ca5d897]:active {\n  filter: brightness(0.9);\n}\n.gwd-fadeout-5s[data-v-0ca5d897] {\n  opacity: 0;\n  transition: opacity 5s;\n}\n.gwd-scrollbar[data-v-0ca5d897]::-webkit-scrollbar {\n  width: 6px;\n  border-radius: 17px;\n}\n.gwd-scrollbar[data-v-0ca5d897]::-webkit-scrollbar-thumb {\n  border-radius: 17px;\n  background: #999;\n}\n#gwdang_main[data-v-0ca5d897],\n.gwdang-main[data-v-0ca5d897],\n.bjgext-detail[data-v-0ca5d897] {\n  font-size: 12px;\n}\n#gwdang_main button[data-v-0ca5d897],\n.gwdang-main button[data-v-0ca5d897],\n.bjgext-detail button[data-v-0ca5d897] {\n  text-align: center;\n}\n.gwd-width-100[data-v-0ca5d897] {\n  width: 100%;\n}\n.gwd-overlay[data-v-0ca5d897] {\n  font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n  font-size: 0;\n  position: fixed;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  background: rgba(0, 0, 0, 0.35);\n  z-index: 999999999;\n}\n.gwd-font-pfm[data-v-0ca5d897] {\n  font-family: 'PingFangSC-Medium';\n  font-weight: normal!important;\n}\n@font-face {\n  font-family: 'PingFangSC-Medium';\n  src: local('PingFangSC-Medium');\n}\n.gwd-font-pfm[data-v-0ca5d897] {\n  font-family: local('PingFangSC-Medium'), system-ui;\n  font-weight: bold;\n}\n#gwd_minibar svg[data-v-0ca5d897],\n.gwdang-main svg[data-v-0ca5d897],\n#bjgext_mb_bg svg[data-v-0ca5d897],\n#bjgext_mainbar svg[data-v-0ca5d897] {\n  fill: transparent;\n}\n.gwd-common-font[data-v-0ca5d897] {\n  font-family: 'PingFang SC', 'Microsoft YaHei', '\\5FAE\\8F6F\\96C5\\9ED1', 'Hiragino Sans GB', 'WenQuanYi Micro Hei';\n}\n.gwd-member-coupon-mini[data-v-0ca5d897] {\n  width: 460px;\n  background: white;\n  border-left: 1px solid #e6e9eb;\n  border-right: 1px solid #e6e9eb;\n  border-bottom: 1px solid #e6e9eb;\n  height: 37px;\n}\n.gwd-coupon-take[data-v-0ca5d897] {\n  width: 50px;\n  height: 26px;\n  background: #ff3d5d;\n  border-radius: 2px;\n  color: white;\n  font-size: 13px;\n  text-align: center;\n  line-height: 26px;\n  cursor: pointer;\n  position: relative;\n  margin-left: 20px;\n  margin-right: 15px;\n  display: inline-block;\n}\n.gwd-coupon-take .gwd-qr-container[data-v-0ca5d897] {\n  position: absolute;\n  display: none;\n  right: -15px;\n  top: 30px;\n  z-index: 9;\n}\n.gwd-member-coupon-mini:hover .gwd-qr-container[data-v-0ca5d897] {\n  display: block;\n}\n", ""]);

// exports


/***/ }),

/***/ 90157:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

const Utils = __webpack_require__(56886)
const ECLevel = __webpack_require__(49953)
const BitBuffer = __webpack_require__(99899)
const BitMatrix = __webpack_require__(8820)
const AlignmentPattern = __webpack_require__(6421)
const FinderPattern = __webpack_require__(7756)
const MaskPattern = __webpack_require__(81332)
const ECCode = __webpack_require__(97518)
const ReedSolomonEncoder = __webpack_require__(74764)
const Version = __webpack_require__(31427)
const FormatInfo = __webpack_require__(84565)
const Mode = __webpack_require__(30208)
const Segments = __webpack_require__(29801)

/**
 * QRCode for JavaScript
 *
 * modified by Ryan Day for nodejs support
 * Copyright (c) 2011 Ryan Day
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
//---------------------------------------------------------------------
// QRCode for JavaScript
//
// Copyright (c) 2009 Kazuhiko Arase
//
// URL: http://www.d-project.com/
//
// Licensed under the MIT license:
//   http://www.opensource.org/licenses/mit-license.php
//
// The word "QR Code" is registered trademark of
// DENSO WAVE INCORPORATED
//   http://www.denso-wave.com/qrcode/faqpatent-e.html
//
//---------------------------------------------------------------------
*/

/**
 * Add finder patterns bits to matrix
 *
 * @param  {BitMatrix} matrix  Modules matrix
 * @param  {Number}    version QR Code version
 */
function setupFinderPattern (matrix, version) {
  const size = matrix.size
  const pos = FinderPattern.getPositions(version)

  for (let i = 0; i < pos.length; i++) {
    const row = pos[i][0]
    const col = pos[i][1]

    for (let r = -1; r <= 7; r++) {
      if (row + r <= -1 || size <= row + r) continue

      for (let c = -1; c <= 7; c++) {
        if (col + c <= -1 || size <= col + c) continue

        if ((r >= 0 && r <= 6 && (c === 0 || c === 6)) ||
          (c >= 0 && c <= 6 && (r === 0 || r === 6)) ||
          (r >= 2 && r <= 4 && c >= 2 && c <= 4)) {
          matrix.set(row + r, col + c, true, true)
        } else {
          matrix.set(row + r, col + c, false, true)
        }
      }
    }
  }
}

/**
 * Add timing pattern bits to matrix
 *
 * Note: this function must be called before {@link setupAlignmentPattern}
 *
 * @param  {BitMatrix} matrix Modules matrix
 */
function setupTimingPattern (matrix) {
  const size = matrix.size

  for (let r = 8; r < size - 8; r++) {
    const value = r % 2 === 0
    matrix.set(r, 6, value, true)
    matrix.set(6, r, value, true)
  }
}

/**
 * Add alignment patterns bits to matrix
 *
 * Note: this function must be called after {@link setupTimingPattern}
 *
 * @param  {BitMatrix} matrix  Modules matrix
 * @param  {Number}    version QR Code version
 */
function setupAlignmentPattern (matrix, version) {
  const pos = AlignmentPattern.getPositions(version)

  for (let i = 0; i < pos.length; i++) {
    const row = pos[i][0]
    const col = pos[i][1]

    for (let r = -2; r <= 2; r++) {
      for (let c = -2; c <= 2; c++) {
        if (r === -2 || r === 2 || c === -2 || c === 2 ||
          (r === 0 && c === 0)) {
          matrix.set(row + r, col + c, true, true)
        } else {
          matrix.set(row + r, col + c, false, true)
        }
      }
    }
  }
}

/**
 * Add version info bits to matrix
 *
 * @param  {BitMatrix} matrix  Modules matrix
 * @param  {Number}    version QR Code version
 */
function setupVersionInfo (matrix, version) {
  const size = matrix.size
  const bits = Version.getEncodedBits(version)
  let row, col, mod

  for (let i = 0; i < 18; i++) {
    row = Math.floor(i / 3)
    col = i % 3 + size - 8 - 3
    mod = ((bits >> i) & 1) === 1

    matrix.set(row, col, mod, true)
    matrix.set(col, row, mod, true)
  }
}

/**
 * Add format info bits to matrix
 *
 * @param  {BitMatrix} matrix               Modules matrix
 * @param  {ErrorCorrectionLevel}    errorCorrectionLevel Error correction level
 * @param  {Number}    maskPattern          Mask pattern reference value
 */
function setupFormatInfo (matrix, errorCorrectionLevel, maskPattern) {
  const size = matrix.size
  const bits = FormatInfo.getEncodedBits(errorCorrectionLevel, maskPattern)
  let i, mod

  for (i = 0; i < 15; i++) {
    mod = ((bits >> i) & 1) === 1

    // vertical
    if (i < 6) {
      matrix.set(i, 8, mod, true)
    } else if (i < 8) {
      matrix.set(i + 1, 8, mod, true)
    } else {
      matrix.set(size - 15 + i, 8, mod, true)
    }

    // horizontal
    if (i < 8) {
      matrix.set(8, size - i - 1, mod, true)
    } else if (i < 9) {
      matrix.set(8, 15 - i - 1 + 1, mod, true)
    } else {
      matrix.set(8, 15 - i - 1, mod, true)
    }
  }

  // fixed module
  matrix.set(size - 8, 8, 1, true)
}

/**
 * Add encoded data bits to matrix
 *
 * @param  {BitMatrix}  matrix Modules matrix
 * @param  {Uint8Array} data   Data codewords
 */
function setupData (matrix, data) {
  const size = matrix.size
  let inc = -1
  let row = size - 1
  let bitIndex = 7
  let byteIndex = 0

  for (let col = size - 1; col > 0; col -= 2) {
    if (col === 6) col--

    while (true) {
      for (let c = 0; c < 2; c++) {
        if (!matrix.isReserved(row, col - c)) {
          let dark = false

          if (byteIndex < data.length) {
            dark = (((data[byteIndex] >>> bitIndex) & 1) === 1)
          }

          matrix.set(row, col - c, dark)
          bitIndex--

          if (bitIndex === -1) {
            byteIndex++
            bitIndex = 7
          }
        }
      }

      row += inc

      if (row < 0 || size <= row) {
        row -= inc
        inc = -inc
        break
      }
    }
  }
}

/**
 * Create encoded codewords from data input
 *
 * @param  {Number}   version              QR Code version
 * @param  {ErrorCorrectionLevel}   errorCorrectionLevel Error correction level
 * @param  {ByteData} data                 Data input
 * @return {Uint8Array}                    Buffer containing encoded codewords
 */
function createData (version, errorCorrectionLevel, segments) {
  // Prepare data buffer
  const buffer = new BitBuffer()

  segments.forEach(function (data) {
    // prefix data with mode indicator (4 bits)
    buffer.put(data.mode.bit, 4)

    // Prefix data with character count indicator.
    // The character count indicator is a string of bits that represents the
    // number of characters that are being encoded.
    // The character count indicator must be placed after the mode indicator
    // and must be a certain number of bits long, depending on the QR version
    // and data mode
    // @see {@link Mode.getCharCountIndicator}.
    buffer.put(data.getLength(), Mode.getCharCountIndicator(data.mode, version))

    // add binary data sequence to buffer
    data.write(buffer)
  })

  // Calculate required number of bits
  const totalCodewords = Utils.getSymbolTotalCodewords(version)
  const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)
  const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8

  // Add a terminator.
  // If the bit string is shorter than the total number of required bits,
  // a terminator of up to four 0s must be added to the right side of the string.
  // If the bit string is more than four bits shorter than the required number of bits,
  // add four 0s to the end.
  if (buffer.getLengthInBits() + 4 <= dataTotalCodewordsBits) {
    buffer.put(0, 4)
  }

  // If the bit string is fewer than four bits shorter, add only the number of 0s that
  // are needed to reach the required number of bits.

  // After adding the terminator, if the number of bits in the string is not a multiple of 8,
  // pad the string on the right with 0s to make the string's length a multiple of 8.
  while (buffer.getLengthInBits() % 8 !== 0) {
    buffer.putBit(0)
  }

  // Add pad bytes if the string is still shorter than the total number of required bits.
  // Extend the buffer to fill the data capacity of the symbol corresponding to
  // the Version and Error Correction Level by adding the Pad Codewords 11101100 (0xEC)
  // and 00010001 (0x11) alternately.
  const remainingByte = (dataTotalCodewordsBits - buffer.getLengthInBits()) / 8
  for (let i = 0; i < remainingByte; i++) {
    buffer.put(i % 2 ? 0x11 : 0xEC, 8)
  }

  return createCodewords(buffer, version, errorCorrectionLevel)
}

/**
 * Encode input data with Reed-Solomon and return codewords with
 * relative error correction bits
 *
 * @param  {BitBuffer} bitBuffer            Data to encode
 * @param  {Number}    version              QR Code version
 * @param  {ErrorCorrectionLevel} errorCorrectionLevel Error correction level
 * @return {Uint8Array}                     Buffer containing encoded codewords
 */
function createCodewords (bitBuffer, version, errorCorrectionLevel) {
  // Total codewords for this QR code version (Data + Error correction)
  const totalCodewords = Utils.getSymbolTotalCodewords(version)

  // Total number of error correction codewords
  const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)

  // Total number of data codewords
  const dataTotalCodewords = totalCodewords - ecTotalCodewords

  // Total number of blocks
  const ecTotalBlocks = ECCode.getBlocksCount(version, errorCorrectionLevel)

  // Calculate how many blocks each group should contain
  const blocksInGroup2 = totalCodewords % ecTotalBlocks
  const blocksInGroup1 = ecTotalBlocks - blocksInGroup2

  const totalCodewordsInGroup1 = Math.floor(totalCodewords / ecTotalBlocks)

  const dataCodewordsInGroup1 = Math.floor(dataTotalCodewords / ecTotalBlocks)
  const dataCodewordsInGroup2 = dataCodewordsInGroup1 + 1

  // Number of EC codewords is the same for both groups
  const ecCount = totalCodewordsInGroup1 - dataCodewordsInGroup1

  // Initialize a Reed-Solomon encoder with a generator polynomial of degree ecCount
  const rs = new ReedSolomonEncoder(ecCount)

  let offset = 0
  const dcData = new Array(ecTotalBlocks)
  const ecData = new Array(ecTotalBlocks)
  let maxDataSize = 0
  const buffer = new Uint8Array(bitBuffer.buffer)

  // Divide the buffer into the required number of blocks
  for (let b = 0; b < ecTotalBlocks; b++) {
    const dataSize = b < blocksInGroup1 ? dataCodewordsInGroup1 : dataCodewordsInGroup2

    // extract a block of data from buffer
    dcData[b] = buffer.slice(offset, offset + dataSize)

    // Calculate EC codewords for this data block
    ecData[b] = rs.encode(dcData[b])

    offset += dataSize
    maxDataSize = Math.max(maxDataSize, dataSize)
  }

  // Create final data
  // Interleave the data and error correction codewords from each block
  const data = new Uint8Array(totalCodewords)
  let index = 0
  let i, r

  // Add data codewords
  for (i = 0; i < maxDataSize; i++) {
    for (r = 0; r < ecTotalBlocks; r++) {
      if (i < dcData[r].length) {
        data[index++] = dcData[r][i]
      }
    }
  }

  // Apped EC codewords
  for (i = 0; i < ecCount; i++) {
    for (r = 0; r < ecTotalBlocks; r++) {
      data[index++] = ecData[r][i]
    }
  }

  return data
}

/**
 * Build QR Code symbol
 *
 * @param  {String} data                 Input string
 * @param  {Number} version              QR Code version
 * @param  {ErrorCorretionLevel} errorCorrectionLevel Error level
 * @param  {MaskPattern} maskPattern     Mask pattern
 * @return {Object}                      Object containing symbol data
 */
function createSymbol (data, version, errorCorrectionLevel, maskPattern) {
  let segments

  if (Array.isArray(data)) {
    segments = Segments.fromArray(data)
  } else if (typeof data === 'string') {
    let estimatedVersion = version

    if (!estimatedVersion) {
      const rawSegments = Segments.rawSplit(data)

      // Estimate best version that can contain raw splitted segments
      estimatedVersion = Version.getBestVersionForData(rawSegments, errorCorrectionLevel)
    }

    // Build optimized segments
    // If estimated version is undefined, try with the highest version
    segments = Segments.fromString(data, estimatedVersion || 40)
  } else {
    throw new Error('Invalid data')
  }

  // Get the min version that can contain data
  const bestVersion = Version.getBestVersionForData(segments, errorCorrectionLevel)

  // If no version is found, data cannot be stored
  if (!bestVersion) {
    throw new Error('The amount of data is too big to be stored in a QR Code')
  }

  // If not specified, use min version as default
  if (!version) {
    version = bestVersion

  // Check if the specified version can contain the data
  } else if (version < bestVersion) {
    throw new Error('\n' +
      'The chosen QR Code version cannot contain this amount of data.\n' +
      'Minimum version required to store current data is: ' + bestVersion + '.\n'
    )
  }

  const dataBits = createData(version, errorCorrectionLevel, segments)

  // Allocate matrix buffer
  const moduleCount = Utils.getSymbolSize(version)
  const modules = new BitMatrix(moduleCount)

  // Add function modules
  setupFinderPattern(modules, version)
  setupTimingPattern(modules)
  setupAlignmentPattern(modules, version)

  // Add temporary dummy bits for format info just to set them as reserved.
  // This is needed to prevent these bits from being masked by {@link MaskPattern.applyMask}
  // since the masking operation must be performed only on the encoding region.
  // These blocks will be replaced with correct values later in code.
  setupFormatInfo(modules, errorCorrectionLevel, 0)

  if (version >= 7) {
    setupVersionInfo(modules, version)
  }

  // Add data codewords
  setupData(modules, dataBits)

  if (isNaN(maskPattern)) {
    // Find best mask pattern
    maskPattern = MaskPattern.getBestMask(modules,
      setupFormatInfo.bind(null, modules, errorCorrectionLevel))
  }

  // Apply mask pattern
  MaskPattern.applyMask(maskPattern, modules)

  // Replace format info bits with correct values
  setupFormatInfo(modules, errorCorrectionLevel, maskPattern)

  return {
    modules: modules,
    version: version,
    errorCorrectionLevel: errorCorrectionLevel,
    maskPattern: maskPattern,
    segments: segments
  }
}

/**
 * QR Code
 *
 * @param {String | Array} data                 Input data
 * @param {Object} options                      Optional configurations
 * @param {Number} options.version              QR Code version
 * @param {String} options.errorCorrectionLevel Error correction level
 * @param {Function} options.toSJISFunc         Helper func to convert utf8 to sjis
 */
exports.create = function create (data, options) {
  if (typeof data === 'undefined' || data === '') {
    throw new Error('No input text')
  }

  let errorCorrectionLevel = ECLevel.M
  let version
  let mask

  if (typeof options !== 'undefined') {
    // Use higher error correction level as default
    errorCorrectionLevel = ECLevel.from(options.errorCorrectionLevel, ECLevel.M)
    version = Version.from(options.version)
    mask = MaskPattern.from(options.maskPattern)

    if (options.toSJISFunc) {
      Utils.setToSJISFunction(options.toSJISFunc)
    }
  }

  return createSymbol(data, version, errorCorrectionLevel, mask)
}


/***/ }),

/***/ 90234:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ TagLinkvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ TagLink)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/SideBar/TagLink.vue?vue&type=template&id=38c1c9be&scoped=true
var TagLinkvue_type_template_id_38c1c9be_scoped_true = __webpack_require__(8756);
;// ./src/standard/module/components/SideBar/TagLink.vue?vue&type=template&id=38c1c9be&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/SideBar/TagLink.vue?vue&type=script&lang=js
var TagLinkvue_type_script_lang_js = __webpack_require__(8804);
;// ./src/standard/module/components/SideBar/TagLink.vue?vue&type=script&lang=js
 /* harmony default export */ const SideBar_TagLinkvue_type_script_lang_js = (TagLinkvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/SideBar/TagLink.vue?vue&type=style&index=0&id=38c1c9be&prod&scoped=true&lang=less
var TagLinkvue_type_style_index_0_id_38c1c9be_prod_scoped_true_lang_less = __webpack_require__(50412);
;// ./src/standard/module/components/SideBar/TagLink.vue?vue&type=style&index=0&id=38c1c9be&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/SideBar/TagLink.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  SideBar_TagLinkvue_type_script_lang_js,
  TagLinkvue_type_template_id_38c1c9be_scoped_true/* render */.XX,
  TagLinkvue_type_template_id_38c1c9be_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "38c1c9be",
  null
  
)

/* harmony default export */ const TagLink = (component.exports);

/***/ }),

/***/ 90537:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var NativePromiseConstructor = __webpack_require__(80550);
var checkCorrectnessOfIteration = __webpack_require__(84428);
var FORCED_PROMISE_CONSTRUCTOR = (__webpack_require__(10916).CONSTRUCTOR);

module.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {
  NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });
});


/***/ }),

/***/ 90617:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _Index = _interopRequireDefault(__webpack_require__(27334));
const arrowImg = __webpack_require__(95604);
var _default = exports.A = {
  props: ['img', 'site', 'price'],
  data() {
    return {
      arrow: arrowImg
    };
  },
  methods: {
    openApp() {
      if (!window.gwdImgApp) {
        const el = document.createElement('div');
        document.body.appendChild(el);
        window.gwdImgApp = new Vue({
          el,
          render: h => h(_Index.default, {
            props: {
              img: this.img,
              price: this.price
            },
            ref: 'index'
          })
        });
      }
      window.gwdImgApp.$refs.index.open();
    }
  }
};

/***/ }),

/***/ 90664:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(95131);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("b50c777a", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 90679:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var isPrototypeOf = __webpack_require__(1625);

var $TypeError = TypeError;

module.exports = function (it, Prototype) {
  if (isPrototypeOf(Prototype, it)) return it;
  throw new $TypeError('Incorrect invocation');
};


/***/ }),

/***/ 90757:
/***/ ((module) => {

"use strict";

module.exports = function (a, b) {
  try {
    // eslint-disable-next-line no-console -- safe
    arguments.length === 1 ? console.error(a) : console.error(a, b);
  } catch (error) { /* empty */ }
};


/***/ }),

/***/ 90827:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
    return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (g && (g = 0, op[0] && (_ = 0)), _) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.selectProductBySkuProps = exports.extractJdProductPrice = exports.getJdProductPrice = exports.extractAliProductPrice = exports.reArangeSkuProps = exports.extractAliSkuProps = exports.extractJdSkuProps = void 0;
var request = __webpack_require__(49388);
var extractJdSkuProps = function () {
    var skuProps = [];
    // Find all choose-attr elements
    var chooseAttrs = document.querySelectorAll('#choose-attrs [id^="choose-attr-"]');
    chooseAttrs.forEach(function (attrEl) {
        // Get the property name from the dt element
        var dtEl = attrEl.querySelector('.dt');
        if (!dtEl)
            return;
        // Extract property name, removing "选择" prefix if present
        var name = attrEl.getAttribute('data-type') || '';
        // name = name.replace(/^选择/, '').trim();
        // Get all options from item elements
        var options = Array.from(attrEl.querySelectorAll('.item')).map(function (itemEl) {
            var value = itemEl.getAttribute('data-value') || '';
            // Check for image
            var imgEl = itemEl.querySelector('img');
            var img = imgEl ? imgEl.getAttribute('src').replace('s28x28', 's114x114') || undefined : undefined;
            return { value: value, img: img };
        });
        // Add to skuProps if options exist
        if (options.length > 0) {
            skuProps.push({ name: name, options: options });
        }
    });
    return skuProps;
};
exports.extractJdSkuProps = extractJdSkuProps;
var extractAliSkuProps = function (skuInfo) {
    var _a;
    if (!((_a = skuInfo === null || skuInfo === void 0 ? void 0 : skuInfo.skuBase) === null || _a === void 0 ? void 0 : _a.props)) {
        return [];
    }
    return skuInfo.skuBase.props.map(function (prop) {
        var name = prop.name;
        var options = prop.values.map(function (value) {
            var option = {
                value: value.name,
                img: undefined
            };
            // Check for image in the value object
            if (value.image) {
                option.img = value.image;
            }
            return option;
        });
        return { name: name, options: options };
    });
};
exports.extractAliSkuProps = extractAliSkuProps;
var reArangeSkuProps = function (skuProps) {
    // Create two arrays: one for props with images, one without
    var propsWithImages = skuProps.filter(function (prop) {
        return prop.options.some(function (option) { return option.img; });
    });
    var propsWithoutImages = skuProps.filter(function (prop) {
        return !prop.options.some(function (option) { return option.img; });
    });
    // Combine arrays to put image props first while preserving original order within each group
    return __spreadArray(__spreadArray([], propsWithImages, true), propsWithoutImages, true);
};
exports.reArangeSkuProps = reArangeSkuProps;
var extractAliProductPrice = function (skuInfo) {
    var _a, _b;
    // Check if the necessary data exists
    if (!((_a = skuInfo === null || skuInfo === void 0 ? void 0 : skuInfo.skuBase) === null || _a === void 0 ? void 0 : _a.skus) || !((_b = skuInfo === null || skuInfo === void 0 ? void 0 : skuInfo.skuCore) === null || _b === void 0 ? void 0 : _b.sku2info)) {
        return [];
    }
    var products = [];
    // Create a map of pid to prop name for easier lookup
    var pidToPropName = {};
    // Create a map of vid to value name for easier lookup
    var vidToValueName = {};
    // Populate the maps
    if (skuInfo.skuBase.props) {
        for (var _i = 0, _c = skuInfo.skuBase.props; _i < _c.length; _i++) {
            var prop = _c[_i];
            pidToPropName[prop.pid] = prop.name;
            for (var _d = 0, _e = prop.values; _d < _e.length; _d++) {
                var value = _e[_d];
                vidToValueName[value.vid] = value.name;
            }
        }
    }
    // Process each sku
    for (var _f = 0, _g = skuInfo.skuBase.skus; _f < _g.length; _f++) {
        var sku = _g[_f];
        var skuId = sku.skuId;
        var skuInfo2 = skuInfo.skuCore.sku2info[skuId];
        // Skip if price info doesn't exist
        if (!skuInfo2 || !skuInfo2.price) {
            console.warn("[alisku] Missing price info for skuId ".concat(skuId), skuInfo2);
            continue;
        }
        // Extract price as number
        var price = parseFloat(skuInfo2.price.priceMoney) / 100; // Convert from cents to yuan/dollars
        if (skuInfo2.subPrice) {
            // If there's a subPrice, use it instead
            price = parseFloat(skuInfo2.subPrice.priceText);
        }
        // Parse propPath to get properties
        var props = {};
        if (sku.propPath) {
            var propPairs = sku.propPath.split(';');
            for (var _h = 0, propPairs_1 = propPairs; _h < propPairs_1.length; _h++) {
                var pair = propPairs_1[_h];
                var _j = pair.split(':'), pid = _j[0], vid = _j[1];
                if (pid && vid && pidToPropName[pid] && vidToValueName[vid]) {
                    props[pidToPropName[pid]] = vidToValueName[vid];
                }
            }
        }
        products.push({
            props: props,
            price: price,
            skuId: skuId
        });
    }
    return products;
};
exports.extractAliProductPrice = extractAliProductPrice;
var getJdProductPrice = function (skuIdList) { return __awaiter(void 0, void 0, void 0, function () {
    var response;
    return __generator(this, function (_a) {
        switch (_a.label) {
            case 0: return [4 /*yield*/, request.post("".concat(G.server, "/extension/ProductFilter?scene=skulist"), {
                    dp_ids: skuIdList.map(function (x) { return x + '-3'; }).join(','),
                    dp_id: pageConfig.product.skuid + '-3'
                }, true)];
            case 1:
                response = _a.sent();
                return [2 /*return*/, response];
        }
    });
}); };
exports.getJdProductPrice = getJdProductPrice;
var extractJdProductPrice = function () { return __awaiter(void 0, void 0, void 0, function () {
    var jdColorSize, skuIdList, response, products;
    return __generator(this, function (_a) {
        switch (_a.label) {
            case 0:
                jdColorSize = pageConfig.product.colorSize;
                skuIdList = jdColorSize.map(function (item) { return item.skuId; });
                return [4 /*yield*/, (0, exports.getJdProductPrice)(skuIdList)];
            case 1:
                response = _a.sent();
                console.log('jd product sku price response', response);
                if (!response) {
                    return [2 /*return*/, []];
                }
                if (response.error_msg === 'Limited') {
                    throw new Error('limitReached');
                }
                products = [];
                // Process each color-size variant
                jdColorSize.forEach(function (item) {
                    var _a, _b;
                    // Extract properties, excluding skuId and stock
                    var props = {};
                    for (var key in item) {
                        if (key !== 'skuId' && key !== 'stock' && typeof item[key] === 'string') {
                            props[key] = item[key];
                        }
                    }
                    // Get price from response
                    var dpId = "".concat(item.skuId, "-3");
                    var price = 0;
                    if (response.list && response.list[dpId]) {
                        // Check if there's a promotional price
                        if ((_a = response.list[dpId].promo) === null || _a === void 0 ? void 0 : _a.current_price) {
                            price = parseFloat(response.list[dpId].promo.current_price);
                        }
                        // Otherwise use the regular price
                        else if (response.list[dpId].pri) {
                            price = parseFloat(response.list[dpId].pri) / 100;
                        }
                    }
                    if (pageConfig.product.skuid.toString() === item.skuId.toString()) {
                        if (pageConfig.product.fPrice) {
                            price = parseFloat(pageConfig.product.fPrice);
                        }
                        else if (pageConfig.product.jp) {
                            price = parseFloat(pageConfig.product.jp);
                        }
                        else if ((_b = pageConfig.product.pinGouInfo) === null || _b === void 0 ? void 0 : _b.bp) {
                            price = parseFloat(pageConfig.product.pinGouInfo.bp);
                        }
                    }
                    products.push({
                        props: props,
                        price: price,
                        skuId: item.skuId.toString()
                    });
                });
                return [2 /*return*/, products];
        }
    });
}); };
exports.extractJdProductPrice = extractJdProductPrice;
var selectProductBySkuProps = function (skuProps, products) {
    return products.filter(function (product) {
        for (var key in skuProps) {
            if (product.props[key] !== skuProps[key]) {
                return false;
            }
        }
        return true;
    });
};
exports.selectProductBySkuProps = selectProductBySkuProps;


/***/ }),

/***/ 90834:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['d1', 'd2', 'aliSite', 'promoUrl', 'lowtle', 'showcoudan']
};

/***/ }),

/***/ 90837:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
__webpack_require__(23792);
__webpack_require__(62953);
var _default = exports.A = {
  props: ['trendInfoList'],
  data() {
    return {
      promo: []
    };
  },
  mounted() {
    (__webpack_require__(41761).met)('showingPromo').then(promo => {
      if (G.currency) {
        return;
      }
      this.promo = promo.map(item => ({
        text: (item.dateStr === '06-18' ? '618' : '双11') + item.type + ': ¥' + item.price,
        date: item.date
      }));
      this.$nextTick(() => {
        const rightPos = this.$el.querySelector('.gwd-placeholder').offsetLeft;
        // console.log('rightPos', rightPos, this.displayInfoList)
        if (rightPos > 470) {
          (__webpack_require__(41761).setMet)('hasTop');
        }
      });
    });
  },
  computed: {
    displayText() {
      return this.displayInfoList.map(item => item.text.replace('.00', '')).join('');
    },
    displayInfoList() {
      const list = [...this.trendInfoList, ...this.promo];
      if (list.length > 4) {
        (__webpack_require__(41761).setMet)('hasTop');
      }
      return list;
    },
    classList() {
      return {
        'gwd-mini': this.displayInfoList.length < 3,
        'gwd-big': this.displayInfoList.length > 4 || this.displayText.length > 50
      };
    }
  },
  watch: {
    displayText(newVal) {
      const realLen = newVal.replace(/[\d.]/g, '').length + Math.ceil(newVal.replace(/[^\d.]/g, '').length / 1.5);
      if (realLen > 43) {
        // require('common/globalCondition').setMet('hasTop')
      }
    }
  }
};

/***/ }),

/***/ 90937:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-trend-info-list[data-v-e0ed5136] {\n  margin-top: -3px;\n  padding-left: 12px;\n  padding-right: 12px;\n  box-sizing: border-box;\n  background-color: white;\n  width: auto;\n}\n.gwd-trend-info-list .gwd-column[data-v-e0ed5136] {\n  align-items: flex-start;\n  margin-right: 20px;\n}\n.gwd-trend-info-list .gwd-column[data-v-e0ed5136]:last-child {\n  margin-right: 0;\n}\n.gwd-trend-info-list .gwd-text[data-v-e0ed5136] {\n  font-size: 12px;\n  line-height: 20px;\n  color: #404547;\n  white-space: nowrap;\n}\n.gwd-trend-info-list .gwd-date[data-v-e0ed5136] {\n  font-size: 12px;\n  line-height: 14px;\n  color: #999;\n  transform: scale(0.9166);\n  transform-origin: center left;\n}\n", ""]);

// exports


/***/ }),

/***/ 90961:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
module.exports = __webpack_require__.p + "images/extensions/build/4f5f256024b1ca7797f4.png";

/***/ }),

/***/ 90987:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, data = $data.data, domclass = $data.domclass, aliSite = $data.aliSite;
    $$out += '<div class="prifontf tip-time">';
    $$out += $escape(data.time);
    $$out += '</div>\n<div class="pri-right-info ';
    $$out += $escape(domclass);
    $$out += '">\n  ';
    if (data.pagePrice && domclass == '') {
        $$out += '\n    <div class="tip-item tip-pagepri tip-pagepri2">\n      <em></em>\n      ';
        if (!aliSite) {
            $$out += '\n      <span class="tip-item-sp1">到手价 / 页面价</span>\n      <span class="tip-item-sp2">:</span>\n      ';
        }
        $$out += '\n      <span class="tip-item-sp3 prifontf">';
        $$out += $escape(data.pagePrice);
        $$out += '</span>\n    </div>\n  ';
    } else if (data.pagePrice) {
        $$out += '\n    <div class="tip-item tip-pagepri">\n      <em></em>\n      <span class="tip-item-sp1">页面价</span>\n      <span class="tip-item-sp2">:</span>\n      <span class="tip-item-sp3 prifontf">';
        $$out += $escape(data.pagePrice);
        $$out += '</span>\n    </div>\n  ';
    }
    $$out += '\n  ';
    if (data.directpro) {
        $$out += '\n    <div class="tip-item tip-directpro">\n      <em></em>\n      <span class="tip-item-sp1">到手价</span>\n      <span class="tip-item-sp2">:</span>\n      <span class="tip-item-sp3 prifontf">\xA5';
        $$out += $escape(data.directpro);
        $$out += '</span>\n      <span class="tip-item-sp4"> ';
        $$out += data.promo2;
        $$out += '</span>\n    </div>\n  ';
    }
    $$out += '\n  ';
    if (data.addpro) {
        $$out += '\n    <div class="tip-item tip-addpro">\n      <em></em>\n      <span class="tip-item-sp1">到手价(多件)</span>\n      <span class="tip-item-sp2">:</span>\n      <span class="tip-item-sp3 prifontf">\xA5';
        $$out += $escape(data.addpro);
        $$out += '</span>\n      <span class="tip-item-sp4">';
        $$out += data.promo1;
        $$out += '</span>\n    </div>\n  ';
    }
    $$out += '\n</div>';
    return $$out;
};

/***/ }),

/***/ 91129:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
const template = __webpack_require__(26133);
const promoQuanDetail = __webpack_require__(4314);
const gwdAd = __webpack_require__(51131);
const request = __webpack_require__(49388);
const detect = __webpack_require__(3494);
const userData = __webpack_require__(74222);
let style;
const addEm = data => {
  for (let i = 0; i < data.length; i++) {
    data[i].puretle = data[i].title;
    data[i].title = data[i].title.replace(/\b([0-9.]+)\b/g, '<em>$1</em>');
  }
  return data;
};
const addEvent = () => {
  let timer;
  let btn = $('#promo_quan_btn'),
    addC = "",
    detail = $('#promo_quan_detail');
  if (style == 'bottom') {
    btn = $(`#${G.extBrand}-hui`);
    addC = `${G.extBrand}-compare-item-hover`;
  }
  btn.on('mouseenter', () => {
    detail.show();
    btn.addClass('msHover');
    btn.find('a').addClass(addC);
    let left = btn.offset().left - 1;
    if (detail.width() + left > $(window).width()) {
      detail.css('right', '0px');
    } else {
      detail.css('left', parseInt(left) + 'px');
    }
  });
  btn.on('mouseleave', () => {
    timer = setTimeout(() => {
      detail.hide();
      btn.removeClass('msHover');
      btn.find('a').removeClass(addC);
    }, 100);
  });
  detail.on('mouseenter', () => {
    clearTimeout(timer);
  });
  detail.on('mouseleave', () => {
    detail.hide();
    btn.removeClass('msHover');
    btn.find('a').removeClass(addC);
  });
};
const renderDetailTop = (dom, data, now) => {
  if (!now) now = {
    site_name: data.site_name
  };
  let promo_site = now.site_name || data.site_name;
  let quan_site = now.site_name || data.site_name;
  let promo_url = data.promotion.url;
  let quan_url = data.quan && data.quan.url;
  if (!data.promotion.site_has_promo) {
    promo_site = "全网最新";
  }
  if (data.promotion.promos.length == 1) {
    promo_url = data.promotion.promos[0].url;
  }
  if (data.quan && !data.quan.site_has_quan) {
    quan_site = "全网最受关注";
  }
  let showingPromos = addEm(data.promotion.promos.slice(0, 4));
  let showingQuans = addEm(data.quan && data.quan.quans && data.quan.quans.slice(0, 4) || []);
  if (!showingQuans.length && !showingPromos.length) {
    return;
  }
  $(dom).append(template.compile(promoQuanDetail)({
    promo_site: promo_site,
    quan_site: quan_site,
    promos: showingPromos,
    promo_url: promo_url,
    quans: showingQuans,
    quan_url: quan_url,
    s_server: G.s_server,
    new_extension: G.new_extension,
    style: style
  }));
  addEvent();
};
const renderDetail = (now, data) => {
  if (style == 'top') renderDetailTop(`.gwd-topbar-left`, data, now);else if (style == 'bottom') renderDetailTop(G.dval, data, now);
};
const renderAd = data => {
  if (!data) return;
  if (data.promo.length === 0) return;
  let size = 1;
  if (data.promo.length === 1) size = 0;
  let promo = data.promo[size];
  let html = __webpack_require__(91638);
  $('.detail_right').append(template.compile(html)({
    item: promo
  }));
  $('.detail_right').show();
};
const renderBtnTop = () => {
  let dom = `<div id="promo_quan_btn" class="gwdang-tab">
    <span class="btn-tab-sp">
      <em class="gwd-bg"></em>
      <span class="tab-sp1 blkcolor1">促销优惠券</span>
    </span>
  </div>`;
  if ($(`.gwd-topbar-left`).length > 0) {
    $(`.gwd-topbar-left`).append($(dom));
  } else {
    $(`#${G.extName}-main-contents`).append($(dom));
  }
  $('#promo_quan_btn').show();
  (__webpack_require__(7053).autoFixWidth)();
};
const renderBtnBottom = () => {};
const renderBtn = () => {
  if (style == 'top') renderBtnTop();else if (style == 'bottom') renderBtnBottom();
};
const getPromoInfo = (obj, callback) => {
  let url = `${G.server}/extension?ac=promotion&site_id=${obj.site_id}&class_id=${obj.class_id}&style=${style}`;
  request.get(url).done(data => {
    if (data) {
      callback(data);
    }
  });
};

// const renderZol = (obj, data) => {
//   gwdAd.init({
//     class_id: obj.class_id,
//     keyword: obj.keyword
//   }, (msg) => {
//     if (msg.promo.length > 0) {
//       msg.promo[0].puretle = msg.promo[0].title;
//       data.promotion.promos = msg.promo.concat(data.promotion.promos);
//     }
//     let html = require('art-template-loader!../views/zolpromo.html')
//     $('.wrapper .breadcrumb').eq(0).after(template.compile(html)({
//       data: data.promotion.promos.slice(0, 3)
//     }))
//   })

// }

module.exports.renderSearch = () => {
  if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1 || G.site == '1688') {
    $(`#${G.extBrand}-hui`).hide();
    return;
  }
  let siteId = detect.getSiteId(G.site);
  if (!siteId) return;
  let obj = {};
  obj.site_id = siteId;
  getPromoInfo(obj, msg => {
    renderDetail(null, msg);
  });
};
module.exports.init = async data => {
  let d = await (__webpack_require__(41761).met)('dp_query_latest_complete');
  if (d.ingre) {
    await (__webpack_require__(41761).met)('no_reviews');
    await (__webpack_require__(41761).met)('ingreComplete');
  }
  if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1 || G.site == '1688') {
    $(`#${G.extBrand}-hui`).hide();
    return;
  }
  style = userData.get('permanent').style;
  let code_info = data['code-server'];
  let cate = code_info && code_info.class_id;
  let keyword = data.now.coreword;
  let siteId = data.now.site_id;
  if (siteId === '0') siteId = detect.getSiteId(G.site);
  let obj = {};
  obj.keyword = keyword;
  obj.site_id = siteId;
  obj.class_id = data.now.class_id;
  obj.brand_id = data.exact_arr.brand_id;
  getPromoInfo(obj, msg => {
    if (!msg.promotion.site_has_promo && !msg.quan.site_has_quan) {
      return;
    }
    renderBtn();
    renderDetail(data.now, msg);
    // if (G.site === 'zol') {
    //   renderZol(obj, msg)
    // }
    gwdAd.init({
      class_id: cate,
      keyword: keyword
    }, renderAd);
  });
};

/***/ }),

/***/ 91181:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var NATIVE_WEAK_MAP = __webpack_require__(58622);
var globalThis = __webpack_require__(44576);
var isObject = __webpack_require__(20034);
var createNonEnumerableProperty = __webpack_require__(66699);
var hasOwn = __webpack_require__(39297);
var shared = __webpack_require__(77629);
var sharedKey = __webpack_require__(66119);
var hiddenKeys = __webpack_require__(30421);

var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
var TypeError = globalThis.TypeError;
var WeakMap = globalThis.WeakMap;
var set, get, has;

var enforce = function (it) {
  return has(it) ? get(it) : set(it, {});
};

var getterFor = function (TYPE) {
  return function (it) {
    var state;
    if (!isObject(it) || (state = get(it)).type !== TYPE) {
      throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
    } return state;
  };
};

if (NATIVE_WEAK_MAP || shared.state) {
  var store = shared.state || (shared.state = new WeakMap());
  /* eslint-disable no-self-assign -- prototype methods protection */
  store.get = store.get;
  store.has = store.has;
  store.set = store.set;
  /* eslint-enable no-self-assign -- prototype methods protection */
  set = function (it, metadata) {
    if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
    metadata.facade = it;
    store.set(it, metadata);
    return metadata;
  };
  get = function (it) {
    return store.get(it) || {};
  };
  has = function (it) {
    return store.has(it);
  };
} else {
  var STATE = sharedKey('state');
  hiddenKeys[STATE] = true;
  set = function (it, metadata) {
    if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
    metadata.facade = it;
    createNonEnumerableProperty(it, STATE, metadata);
    return metadata;
  };
  get = function (it) {
    return hasOwn(it, STATE) ? it[STATE] : {};
  };
  has = function (it) {
    return hasOwn(it, STATE);
  };
}

module.exports = {
  set: set,
  get: get,
  has: has,
  enforce: enforce,
  getterFor: getterFor
};


/***/ }),

/***/ 91223:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


__webpack_require__(23792);
__webpack_require__(3362);
__webpack_require__(62953);
const bgClient = __webpack_require__(40076);
const getList = async () => {
  const res = await bgClient.get('/getStorage', {
    key: 'aliSkuHistory'
  });
  if (!res) return [];
  return res;
};
const setList = async list => {
  await bgClient.get('/setStorage', {
    'aliSkuHistory': list
  });
};
const add = async item => {
  let list = await getList();
  list.push(item);
  list = [...new Set(list)];
  await setList(list);
};
const remove = async item => {
  let list = await getList();
  list = list.filter(i => i !== item);
  await setList(list);
};
module.exports = {
  getList,
  setList,
  add,
  remove
};

/***/ }),

/***/ 91291:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var trunc = __webpack_require__(80741);

// `ToIntegerOrInfinity` abstract operation
// https://tc39.es/ecma262/#sec-tointegerorinfinity
module.exports = function (argument) {
  var number = +argument;
  // eslint-disable-next-line no-self-compare -- NaN check
  return number !== number || number === 0 ? 0 : trunc(number);
};


/***/ }),

/***/ 91333:
/***/ ((module) => {

// can-promise has a crash in some versions of react native that dont have
// standard global objects
// https://github.com/soldair/node-qrcode/issues/157

module.exports = function () {
  return typeof Promise === 'function' && Promise.prototype && Promise.prototype.then
}


/***/ }),

/***/ 91386:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ ReviewCountvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ ReviewCount)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ReviewCount.vue?vue&type=template&id=a38ef2b4&scoped=true
var ReviewCountvue_type_template_id_a38ef2b4_scoped_true = __webpack_require__(18861);
;// ./src/standard/module/components/ReviewCount.vue?vue&type=template&id=a38ef2b4&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ReviewCount.vue?vue&type=script&lang=js
var ReviewCountvue_type_script_lang_js = __webpack_require__(26552);
;// ./src/standard/module/components/ReviewCount.vue?vue&type=script&lang=js
 /* harmony default export */ const components_ReviewCountvue_type_script_lang_js = (ReviewCountvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/ReviewCount.vue?vue&type=style&index=0&id=a38ef2b4&prod&scoped=true&lang=less
var ReviewCountvue_type_style_index_0_id_a38ef2b4_prod_scoped_true_lang_less = __webpack_require__(18995);
;// ./src/standard/module/components/ReviewCount.vue?vue&type=style&index=0&id=a38ef2b4&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/ReviewCount.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_ReviewCountvue_type_script_lang_js,
  ReviewCountvue_type_template_id_a38ef2b4_scoped_true/* render */.XX,
  ReviewCountvue_type_template_id_a38ef2b4_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "a38ef2b4",
  null
  
)

/* harmony default export */ const ReviewCount = (component.exports);

/***/ }),

/***/ 91547:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ ShaiDanvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ ShaiDan)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/ShaiDan.vue?vue&type=template&id=1ba131f5&scoped=true
var ShaiDanvue_type_template_id_1ba131f5_scoped_true = __webpack_require__(70176);
;// ./src/standard/module/trend/ShaiDan.vue?vue&type=template&id=1ba131f5&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/ShaiDan.vue?vue&type=script&lang=js
var ShaiDanvue_type_script_lang_js = __webpack_require__(13454);
;// ./src/standard/module/trend/ShaiDan.vue?vue&type=script&lang=js
 /* harmony default export */ const trend_ShaiDanvue_type_script_lang_js = (ShaiDanvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/trend/ShaiDan.vue?vue&type=style&index=0&id=1ba131f5&prod&scoped=true&lang=less
var ShaiDanvue_type_style_index_0_id_1ba131f5_prod_scoped_true_lang_less = __webpack_require__(3026);
;// ./src/standard/module/trend/ShaiDan.vue?vue&type=style&index=0&id=1ba131f5&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/trend/ShaiDan.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  trend_ShaiDanvue_type_script_lang_js,
  ShaiDanvue_type_template_id_1ba131f5_scoped_true/* render */.XX,
  ShaiDanvue_type_template_id_1ba131f5_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "1ba131f5",
  null
  
)

/* harmony default export */ const ShaiDan = (component.exports);

/***/ }),

/***/ 91574:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAABnlBMVEUAmeYAk9kAlNkAlNgAk9gBk9gClNgDlNgFldkHltkIltkJl9kLmNoMmNoNmdoQmtoRmtsTm9sVnNsWnNsXndwYndwbntwcn9wdn9wfoN0hod0jot0kot4mo94npN4vp982quA3quA5q+E6rOE7rOE+reFCr+JEsOJIseNPtORStuVVt+VXuOVcuuZfu+dgvOdivedkvedlvudmvuhnv+hsweluwulyw+l2xep6x+t+yOuAyeyByuyCyuyEy+yLzu2Nz+6R0O6S0e6T0e6X0++Y0++b1fCd1fCf1vCh1/Gk2PGl2fGp2/Kw3vOy3vOz3/O03/S14PS24PS44fS54fS64vS74vW84/W94/W+4/W/5PXA5PXB5fbC5fbD5vbE5vbF5vbG5/bK6ffL6ffO6vjS7PjT7PjU7fjV7fnX7vnY7vnZ7/na7/nb8Pnc8Prd8fre8frg8vrh8vri8/vj8/vk9Pvl9Pvm9Pvo9fvp9vzq9vzr9/zs9/zt9/zv+P3w+f3y+f3z+v30+v32+/73/P75/P77/f79/v/+//////9fb4B/AAAABHRSTlMKlevsM8B4kQAAAWJJREFUKM9jYGBkZsEKmBgZGBhZcAJGBmbckkwMLHgAEZIK3v5A4CHPohpsiCHp1xwNBE0BLM6dPoZAYKCCJBlRZA8EBZGyNZ0Q0GHHipDMMgWCjBCtzkBbEHBrbZGCS0amagFBSqh2HA/EtqhORYTOTGMgSIsW5efRUAYJ+HcqICRzLYAgK46FRa/THSQQgCyZDbYzDqRFHV0yrMoXCCqiWSQa87iFHHRQJMNLXYCgKIbFqNOBRbAlHlWy2AkICmNYgtuVWFgSSjj8kCSj8q1srK1yYgXryoU4uf1bhX2RJD07O8uqOzs9Beo7C3MLOip4kXWKp7RLq3UmibEYppeWluaaoNjJYlbr6FWlD2Rw8vHxcrCwBCIk2ZzaEnMzklvs2UE8dmlZ1dI2OZgkR1mpJjeXbnUlF4gn2QCMlkgOmCSnuSSIkrHkBlEiQVGRrpJEJhNckniTJt5EjTM7MDMyAACIhl/uojTJggAAAABJRU5ErkJggg==";

/***/ }),

/***/ 91604:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
var _default = exports.A = {
  props: ['value', 'allowAnimation'],
  computed: {
    inputVal: {
      get() {
        return this.value;
      },
      set(val) {
        this.$emit('input', val);
      }
    }
  }
};

/***/ }),

/***/ 91638:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, item = $data.item;
    $$out += '<div id="promo_item_ad">\n  <a class="item_id_img" href="';
    $$out += $escape(item.url);
    $$out += '" target="_blank">\n    <img src="';
    $$out += $escape(item.img);
    $$out += '">\n  </a>\n  <a href="';
    $$out += $escape(item.url);
    $$out += '" class="item_tle" target="_blank" title="';
    $$out += $escape(item.title);
    $$out += '">';
    $$out += $escape(item.title);
    $$out += '</a>\n  <span class="item_brand">';
    $$out += $escape(item.brand);
    $$out += '</span>\n  <a href="';
    $$out += $escape(item.store_url);
    $$out += '" class="item_shopname" target="_blank">';
    if (item.platform) {
        $$out += ' ';
        $$out += $escape(item.platform + ' ');
        $$out += ' ';
    }
    $$out += $escape(item.store_name);
    $$out += '</a>\n  <span  class="tuiguang_link" >热卖</span>\n  <style type="text/css">\n    #promo_item_ad {\n      position: relative;\n      width: 206px;\n      height: 248px;\n      text-align: center;\n    }\n    #promo_item_ad>a, #promo_item_ad>span {\n      display: inline-block;\n      font-size: 12px;\n    }\n    #promo_item_ad .item_id_img {\n      width: 100px;\n      height: 100px;\n      margin: 0 auto;\n      margin-top: 35px;\n    }\n    #promo_item_ad .item_id_img img {\n      width: 100px;\n      height: 100px;\n    }\n    div#promo_item_ad a.item_tle {\n      margin-top: 20px;\n      font-size: 12px;\n      color: #111;\n      width: 100%;\n      font-weight: bold;\n      line-height: 16px;\n      height: 33px;\n    }\n    #promo_item_ad .item_brand {\n      color: #666;\n      width: 100%;\n      height: 24px;\n      line-height: 24px;\n    }\n    #promo_item_ad .item_shopname {\n      color: #333;\n      font-weight: bold;\n    }\n    div#promo_item_ad span.tuiguang_link {\n      position: absolute;\n      color: #bbb;\n      right: 10px;\n      top: 15px;\n    }\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 91746:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, c_server = $data.c_server, s_server = $data.s_server;
    $$out += '<div class="gwd_addcredit bjd_btn_box" id="addcredit_btn">\n  <a href="';
    $$out += $escape(c_server);
    $$out += '" target="_blank" title="购物党"></a>\n  <span class="bjd_addcart">添加信用卡</span>\n  <span class="bjd_close"></span>\n  <div class="credit_detail"></div>\n</div>\n<style type="text/css">\n  .gwd_addcredit {\n    width: 180px;\n    height: 36px;\n    background-color: #fff;\n    color: #494b4d;\n    position: absolute;\n    line-height: 35px;\n    border-bottom-right-radius: 28px;\n    border-top-right-radius: 28px;\n    font-size: 14px;\n    border: 1px solid #47befe;\n    font-family: \'Microsoft Yahei\';\n    top: 47px;\n    z-index: 99;\n    left: 122px;\n  }\n  .amazon-jp .gwd_addcredit {\n    top: 54px;\n    left: 130px;\n  }\n  .amazon-de .gwd_addcredit {\n    top: 53px;\n    left: 180px;\n  }\n  .credit_detail {\n    position: absolute;\n    display: none;\n    z-index: 999;\n    top: -53px;\n    left: 196px;\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao/amazon_remind_credit_info.png\') 0px 0px no-repeat;\n    width: 342px;\n    height: 140px;\n  }\n  .amazon-de .credit_detail {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao/amazon_remind_credit_info_de.png\') 0px 0px no-repeat;\n  }\n  .amazon-jp .credit_detail {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao/amazon_remind_credit_info_jp.png\') 0px 0px no-repeat;\n  }\n  #addcredit_btn:hover .credit_detail {\n    display: block;\n  }\n  .gwd_addcredit a, .gwd_addcredit span {\n    float: left;\n    margin-left: 19px;\n  }\n  .gwd_addcredit .bjd_addcart {\n    cursor: text;\n  }\n  .gwd_addcredit a {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_siteicon.png\') 0px 6px no-repeat;\n    background-size: 24px 22px;\n    height: 35px;\n    width: 26px;\n    margin-left: 7px;\n  }\n  .bjd_close {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_closeicon.png\') 0px 0px no-repeat;\n    width: 20px;\n    height: 20px;\n    margin-top: 12px;\n    background-size: 12px 12px;\n  }\n  .gwd_addcredit:before{\n    border: 29px solid transparent;\n    border-right-color: #47befe;\n    content: "";\n    border-bottom-width: 18px;\n    border-top-width: 18px;\n    position: absolute;\n    left: -58px;\n    width: 0px;\n    height: 0px;\n    top: -1px;\n  }\n  .gwd_addcredit:after {\n    border: 27px solid transparent;\n    border-right-color: #fff;\n    content: "";\n    border-bottom-width: 17px;\n    border-top-width: 17px;\n    border-left-width: 30px;\n    position: absolute;\n    left: -57px;\n    width: 0px;\n    height: 0px;\n    top: 0px;\n  }\n  #identity-add-new-address #enterAddressFullNameContainer{\n    position: relative;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 91909:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-jd-rank[data-v-51dc1e02] {\n  width: 232px;\n  height: 32px;\n  background: url(https://cdn.gwdang.com/images/extensions/jdRanking/ranklistBg.svg);\n}\n.gwd-jd-rank .gwd-icon-rank[data-v-51dc1e02] {\n  width: 15px;\n  height: 15px;\n  margin-left: 5px;\n}\n.gwd-jd-rank .gwd-vline[data-v-51dc1e02] {\n  display: block;\n  width: 1px;\n  height: 10px;\n  background: #000000;\n  margin-left: 0px;\n  border: 0;\n}\n.gwd-jd-rank .gwd-rank-list[data-v-51dc1e02] {\n  flex: 1;\n  height: 100%;\n}\n.gwd-jd-rank .gwd-rank-list a[data-v-51dc1e02] {\n  padding-left: 7px;\n  flex: 1;\n}\n.gwd-jd-rank .gwd-rank-list a span[data-v-51dc1e02] {\n  display: inline-block;\n  transform-origin: left center;\n  color: #111111;\n  white-space: nowrap;\n  overflow: hidden;\n  vertical-align: middle;\n  text-overflow: ellipsis;\n}\n.gwd-jd-rank .gwd-rank-list a span.gwd-mw[data-v-51dc1e02] {\n  max-width: 130px;\n}\n.gwd-jd-rank .gwd-rank-list a:hover span[data-v-51dc1e02] {\n  color: #e03024;\n  font-weight: bold;\n}\n.gwd-jd-rank .gwd-rank-list .gwd-rank-first span[data-v-51dc1e02] {\n  color: #e03024;\n}\n.gwd-jd-rank .gwd-rank-list .gwd-rank-addition[data-v-51dc1e02] {\n  display: none;\n  position: absolute;\n  right: 0;\n  width: 153px;\n  top: 100%;\n  border: 1px solid #ffeded;\n  overflow: hidden;\n  background: white;\n  z-index: 9;\n}\n.gwd-jd-rank .gwd-rank-list .gwd-rank-addition a[data-v-51dc1e02] {\n  height: 25px;\n  line-height: 25px;\n  display: inline-block;\n  width: 100%;\n  vertical-align: middle;\n  border-bottom: 1px solid #f1f1f1;\n}\n.gwd-jd-rank .gwd-rank-list .gwd-rank-addition a[data-v-51dc1e02]:last-of-type {\n  border-bottom: none;\n}\n.gwd-jd-rank .gwd-rank-list:hover .gwd-rank-addition[data-v-51dc1e02] {\n  display: block;\n}\n.gwd-jd-rank .gwd-rank-list[data-v-51dc1e02]::after {\n  content: '';\n  position: absolute;\n  width: 16px;\n  height: 16px;\n  background: url(https://cdn.gwdang.com/images/extensions/jdRanking/arrow-right-default.svg);\n  right: 3px;\n  top: 5px;\n  pointer-events: none;\n}\n.gwd-jd-rank .gwd-rank-list.gwd-rotate[data-v-51dc1e02]::after {\n  transform: rotate(90deg);\n}\n.gwd-jd-rank .gwd-rank-list.gwd-rotate[data-v-51dc1e02]:hover::after {\n  transform: rotate(270deg);\n}\n.gwd-jd-rank .gwd-rank-list[data-v-51dc1e02]:hover::after {\n  background: url(https://cdn.gwdang.com/images/extensions/jdRanking/arrow-right-hilighted.svg);\n}\n.gwd-w217[data-v-51dc1e02] {\n  width: 217px;\n  height: 26px;\n  background: url(https://cdn.gwdang.com/images/extensions/jdRanking/w217.svg);\n}\n.gwd-w210[data-v-51dc1e02],\n.gwd-w235[data-v-51dc1e02] {\n  width: 210px;\n  height: 30px;\n  background: url(https://cdn.gwdang.com/images/extensions/jdRanking/w210.svg);\n}\n.gwd-w210 .gwd-rank-list .gwd-rank-addition[data-v-51dc1e02],\n.gwd-w235 .gwd-rank-list .gwd-rank-addition[data-v-51dc1e02] {\n  width: 140px;\n}\n.gwd-w210 .gwd-rank-list[data-v-51dc1e02]::after,\n.gwd-w235 .gwd-rank-list[data-v-51dc1e02]::after {\n  top: 7px;\n  background: url(https://cdn.gwdang.com/images/extensions/jdRanking/arrow-right-default-gray.svg);\n}\n.gwd-w210 .gwd-rank-list a span[data-v-51dc1e02],\n.gwd-w235 .gwd-rank-list a span[data-v-51dc1e02] {\n  color: #555555;\n}\n.gwd-w210 .gwd-rank-list a span span.gwd-mw[data-v-51dc1e02],\n.gwd-w235 .gwd-rank-list a span span.gwd-mw[data-v-51dc1e02] {\n  max-width: 80px;\n}\n.gwd-w210 .gwd-font11[data-v-51dc1e02],\n.gwd-w235 .gwd-font11[data-v-51dc1e02] {\n  transform: scale(1);\n}\n.gwd-w235[data-v-51dc1e02] {\n  width: 235px;\n  height: 23px;\n  background: url(https://cdn.gwdang.com/images/extensions/jdRanking/w235.svg);\n}\n.gwd-w235 .gwd-rank-list a[data-v-51dc1e02] {\n  padding-left: 12px;\n}\n.gwd-w235 .gwd-rank-list a span span.gwd-mw[data-v-51dc1e02] {\n  max-width: 95px;\n}\n.gwd-w235 .gwd-rank-list .gwd-rank-addition[data-v-51dc1e02] {\n  width: 165px;\n}\n.gwd-w235 .gwd-rank-list[data-v-51dc1e02]::after {\n  right: 6px;\n  top: 3px;\n}\n", ""]);

// exports


/***/ }),

/***/ 91920:
/***/ ((__unused_webpack_module, exports) => {

"use strict";


Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports["default"] = void 0;
var _default = exports["default"] = {
  methods: {
    updateData(obj) {
      Object.keys(obj).forEach(key => {
        this[key] = obj[key];
      });
    }
  }
};

/***/ }),

/***/ 91955:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);
var safeGetBuiltIn = __webpack_require__(93389);
var bind = __webpack_require__(76080);
var macrotask = (__webpack_require__(59225).set);
var Queue = __webpack_require__(18265);
var IS_IOS = __webpack_require__(89544);
var IS_IOS_PEBBLE = __webpack_require__(44265);
var IS_WEBOS_WEBKIT = __webpack_require__(7860);
var IS_NODE = __webpack_require__(16193);

var MutationObserver = globalThis.MutationObserver || globalThis.WebKitMutationObserver;
var document = globalThis.document;
var process = globalThis.process;
var Promise = globalThis.Promise;
var microtask = safeGetBuiltIn('queueMicrotask');
var notify, toggle, node, promise, then;

// modern engines have queueMicrotask method
if (!microtask) {
  var queue = new Queue();

  var flush = function () {
    var parent, fn;
    if (IS_NODE && (parent = process.domain)) parent.exit();
    while (fn = queue.get()) try {
      fn();
    } catch (error) {
      if (queue.head) notify();
      throw error;
    }
    if (parent) parent.enter();
  };

  // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
  // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
  if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {
    toggle = true;
    node = document.createTextNode('');
    new MutationObserver(flush).observe(node, { characterData: true });
    notify = function () {
      node.data = toggle = !toggle;
    };
  // environments with maybe non-completely correct, but existent Promise
  } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {
    // Promise.resolve without an argument throws an error in LG WebOS 2
    promise = Promise.resolve(undefined);
    // workaround of WebKit ~ iOS Safari 10.1 bug
    promise.constructor = Promise;
    then = bind(promise.then, promise);
    notify = function () {
      then(flush);
    };
  // Node.js without promises
  } else if (IS_NODE) {
    notify = function () {
      process.nextTick(flush);
    };
  // for other environments - macrotask based on:
  // - setImmediate
  // - MessageChannel
  // - window.postMessage
  // - onreadystatechange
  // - setTimeout
  } else {
    // `webpack` dev server bug on IE global methods - use bind(fn, global)
    macrotask = bind(macrotask, globalThis);
    notify = function () {
      macrotask(flush);
    };
  }

  microtask = function (fn) {
    if (!queue.head) notify();
    queue.add(fn);
  };
}

module.exports = microtask;


/***/ }),

/***/ 92140:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var wellKnownSymbol = __webpack_require__(78227);

var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var test = {};

test[TO_STRING_TAG] = 'z';

module.exports = String(test) === '[object z]';


/***/ }),

/***/ 92411:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("a", {
    staticClass: "bjgou-subsidy-bar bjgou-component",
    attrs: {
      href: _vm.link,
      target: "_blank",
      title: "点击领取"
    }
  }, [_c("span", {
    staticClass: "bjg-coupon-white",
    staticStyle: {
      "font-size": "18px",
      "font-weight": "bold",
      "margin-left": "75px",
      "margin-top": "6px"
    }
  }, [_vm._v(_vm._s(_vm.getText("当前商品可领会员券")))]), _vm._v(" "), _c("div", {
    staticStyle: {
      flex: "1"
    }
  }), _vm._v(" "), _c("span", {
    staticClass: "bjg-coupon-white",
    staticStyle: {
      "font-size": "18px",
      "font-weight": "bold",
      "margin-right": "22px"
    }
  }, [_vm._v(_vm._s(_vm.getText("立即领取")))]), _vm._v(" "), _vm.qr ? _c("div", {
    staticClass: "qrcode"
  }, [_c("img", {
    staticStyle: {
      "margin-top": "7px",
      width: "120px",
      height: "120px"
    },
    attrs: {
      src: _vm.qr,
      alt: ""
    }
  }), _vm._v(" "), _c("div", {
    staticStyle: {
      "margin-top": "4px",
      "text-align": "center"
    }
  }, [_c("span", {
    staticStyle: {
      "font-weight": "bold",
      color: "#ff6132",
      "font-size": "14px"
    }
  }, [_vm._v(_vm._s(_vm.getText("手淘扫码")))]), _vm._v(" "), _c("span", {
    staticStyle: {
      "margin-left": "4px",
      color: "#333333",
      "font-size": "12px"
    }
  }, [_vm._v(_vm._s(_vm.getText("联系客服领取")))])])]) : _vm._e()]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 92433:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '';
    $$out += '<div class="gwd-minibar-bg">\n  <div id="gwd_minibar" class="" style="display: flex;">\n    <a class="ht_website" title="功能设置" id="gwd_website_icon" target="_blank" href="#">\n      <em class="ht-bg website_icon"></em>\n    </a>\n    <div id="mini_price_history" class="minibar-tab" style="flex: 1">\n      <div class="trend-detail ht-com-detail" id="ht_minitrend_detail">\n        <div class="ht-trend-otinfo">\n          <div class="ht-trend-minmax">\n            <span class="ht-mm-sp1">最高:</span>\n            <span class="ht-mm-sp2 ht-mm-max prifontf"></span>\n            <span class="ht-mm-sp3">最低:</span>\n            <span class="ht-mm-sp4 ht-mm-min prifontf"></span>\n          </div>\n          <span class="ht-favor-btn" id="ht_favor">降价提醒</span>\n        </div>\n        <div id="big_tooltip" class="big_tooltip_box"></div>\n        <div id="mini_ht_detail_chart"></div>\n      </div>\n    </div>\n    <div id="amazon_global_box" class="minibar-tab" style="flex: 1"></div>\n    <div id="yj_haitao" class="minibar-tab">\n\n    </div>\n    <div style="flex: 1" id="gwd_mini_remind" class="minibar-tab">\n      <div class="minibar-btn-box">\n<!--        <em class="setting-bg collect_mailout_icon"></em>-->\n<!--        <span>降价提醒</span>-->\n      </div>\n      <div class="gwd-collection-mini">\n        <div class="gwd-collection-mini-content"></div>\n      </div>\n    </div>\n  </div>\n  <style type="text/css">\n  .gwd-minibar-bg {\n    /*float: left;*/\n    width: 100%;\n    margin: 10px 0;\n  }\n  .gwd-minibar-bg::after {\n      clear: none!important;\n  }\n  .gwd_6pm .gwd-minibar-bg {\n    max-width: 445px;\n    margin-left: 118px;\n  }\n  .minibar-tab:hover .ht-com-detail {\n    display: block;\n  }\n  #ht_minitrend_detail {\n    height: 250px;\n    left: -1px;\n  }\n  .ht-trend-otinfo {\n    float: left;\n    height: 56px;\n    width: 100%;\n  }\n  .ht-trend-minmax span {\n    float: left;\n    margin-top: 15px;\n    line-height: 16px;\n    font-size: 12px;\n  }\n  .ht-com-detail .ht-mm-sp1 {\n    margin-left: 18px;\n  }\n  .ht-com-detail .ht-mm-sp1, .ht-com-detail .ht-mm-sp2 {\n    color:  #E4393C;\n    font-weight: bold;\n  }\n  .ht-com-detail .ht-mm-sp2, .ht-com-detail .ht-mm-sp4 {\n    line-height: 18px;\n    margin-left: 3px;\n  }\n  .ht-com-detail .ht-mm-sp3 {\n    margin-left: 10px;\n  }\n  .ht-com-detail .ht-mm-sp3, .ht-com-detail .ht-mm-sp4 {\n    color: #35BD67;\n    font-weight: bold;\n  }\n  .ht-com-detail .ht-favor-btn {\n    width: 74px;\n    height: 26px;\n    border: 1px solid #F07960;\n    border-radius: 2px;\n    color: #F07860;\n    float: right;\n    margin-right: 22px;\n    margin-top: 11px;\n    line-height: 26px;\n    font-size: 12px;\n    cursor: pointer;\n    text-align: center;\n  }\n  .ht-com-detail .ht-favor-btn.collected {\n    background: #F07860;\n    color: #fff;\n  }\n  #mini_ht_detail_chart {\n    width: 402px;\n    height: 172px;\n    margin-left: 18px;\n    position: relative;\n    float: left;\n  }\n    div#gwd_minibar,div#gwd_minibar .ht_website, div#gwd_minibar .minibar-tab {\n      height: 40px;\n    }\n    .ht_website {\n      width: 44px;\n      height: 40px;\n      float: left;\n    }\n    #gwd_minibar .minibar-tab {\n      line-height: 40px;\n    }\n    #gwd_minibar .minibar-tab:hover {\n      background: #EDF1F2;\n     }\n    .ht_website em{\n      background-position: -7px -8px;\n      height: 20px;\n      width: 22px;\n      float: left;\n      margin-left: 14px;\n      margin-top: 10px;\n    }\n    .hasglobal .ht_website em {\n      margin-left: 11px;\n    }\n    #mini_price_history em.ht-bg {\n      width: 20px;\n      height: 13px;\n      margin-top: 14px;\n      margin-right: 6px;\n    }\n    #mini_price_history em.pri-t1.ht-bg {\n      background-position: -58px -13px;\n    }\n    #mini_price_history em.pri-t0.ht-bg {\n      background-position: -82px -13px;\n    }\n    #mini_price_history em.pri-t-1.ht-bg {\n      background-position: -35px -13px;\n    }\n    #mini_price_history em.pri-t-2.ht-bg {\n      background-position: -107px -13px;\n    }\n    div#gwd_minibar .ht_website {\n      width: 50px;\n    }\n    div#gwd_minibar.hasglobal .ht_website {\n      width: 44px;\n    }\n    div#gwd_minibar {\n      width: 460px;\n    }\n    #yj_haitao {\n      text-align: center;\n      width: 209px;\n    }\n    .hasglobal #yj_haitao {\n      width: 151px;\n    }\n    .minibar-tab {\n      width: auto;\n    }\n\n\n    .ht-bg {\n      background: url(\'https://cdn.gwdang.com/images/extensions/xbt/haitao_mini1.png\') 0px 0px no-repeat;\n    }\n    .ht-com-detail {\n      position: absolute;\n      top: 40px;\n      left: -1px;\n      background: #FFFFFF;\n      border: 1px solid #E6E9EB;\n      box-shadow: 0 2px 4px 0 rgba(0,0,0,0.11);\n      height: 220px;\n      width: 440px;\n      z-index: 999;\n      display: none;\n    }\n    .global-content {\n      height: 180px;\n      width: 100%;\n    }\n    .gl-left {\n      width: 153px;\n      height: 100%;\n      float: left;\n    }\n    .global-model .gl-left {\n      width: 153px;\n    }\n    .yjht-model .gl-left {\n      width: 160px;\n    }\n    .gl-left .gl-l-item{\n      border-bottom: 1px solid #F9F9F9;\n      border-right: 1px solid #F9F9F9;\n    }\n    .gl-l-item {\n      height: 44px;\n      width: 100%;\n      float: left;\n      position: relative;\n    }\n    .gl-left .gl-l-item:last-child {\n      border-bottom: none;\n    }\n    .gl-l-item em {\n      float: left;\n      width: 20px;\n      height: 20px;\n      margin-left: 26px;\n      margin-top: 12px;\n      margin-right: 10px;\n    }\n    .ziying em{\n      background-position: -4px -36px;\n    }\n    .sanfang em {\n      background-position: -28px -36px;\n    }\n    .zhiyou em {\n      background-position: -124px -36px;\n    }\n    .samestyle em {\n      background-position: -148px -36px;\n    }\n    .vipfee em {\n      background-position: -172px -36px;\n    }\n    .gl-l-item span {\n      color: #404547;\n      font-size: 12px;\n      line-height: 44px;\n      text-align: left;\n      float: left;\n      margin-left: 10px;\n    }\n    .global-foot {\n      height: 40px;\n    }\n    .global-content .prifontf {\n      line-height: 46px;\n    }\n    .global-foot span {\n      float: left;\n      width: 285px;\n      height: 40px;\n      background-color: #EDF1F2;\n      line-height: 40px;\n      text-align: center;\n      font-size: 12px;\n      color: #969899;\n    }\n    .global-foot a {\n      width: 155px;\n      height: 40px;\n      background: #646FB0;\n      font-weight: 400;\n      line-height: 40px;\n      color: #fff;\n      font-size: 13px;\n      text-align: center;\n      float: left;\n    }\n    .gl-right a {\n      float: left;\n      width: 285px;\n      height: 180px;\n    }\n    .gl-img-box {\n      height: 100px;\n      width: 100%;\n      margin-top: 14px;\n      float: left;\n      text-align:center;\n      font-size:0;\n    }\n    .gl-right a img {\n      height: auto;\n      width: auto;\n      max-width: 100px;\n      max-height: 100px;\n      vertical-align:middle;\n      display:inline-block;\n      font-size:16px;\n    }\n    .gl-img-box:after {\n      content:\'\';\n      width:0;\n      height:100%;\n      display:inline-block;\n      vertical-align:middle;\n    }\n    .gl-right p {\n      float: left;\n      width: 240px;\n      height: auto;\n      margin-left: 22px;\n      margin-top: 14px;\n      line-height: 17px;\n      max-height: 34px;\n      overflow: hidden;\n      font-size: 12px;\n      color: #5C6266;\n    }\n\n    div.gwd_haitao .ht_getprice {\n      width: 160px;\n      font-size: 14px;\n      overflow: hidden;\n    }\n    div.gwd_haitao .ht_getprice span {\n      font-size: 16px;\n    }\n    #amazon_global_box {\n      width: 155px;\n      text-align: center;\n    }\n    #amazon_global {\n      float: none;\n      height: 40px;\n      line-height: 40px;\n      text-align: center;\n      width: auto;\n      color: #404547;\n      font-size: 14px;\n      overflow: hidden;\n      margin: 0 auto;\n      display: inline-block;\n    }\n    .hasglobal #mini_price_history {\n      width: 97px;\n    }\n    #mini_price_history {\n      width: 179px;\n    }\n    #amazon_global span, .yjhtbtn span {\n      font-size: 13px;\n      color: #404547;\n      float: left;\n      cursor: default;\n    }\n    #amazon_global:hover {\n      text-decoration: none;\n      color: #454a4d;\n    }\n\n    .ht_getprice_num, .yjht-tle-pri {\n      font-size: 12px;\n      color: #E4393C!important;\n      margin-left: 2px;\n      line-height: 42px!important;\n    }\n    #gwd_minibar .minibar-btn-box>span {\n      font-size: 13px;\n      cursor: default;\n    }\n\n  .gwd-collection-mini {\n    display: none;\n    /*display: flex;*/\n    width: 462px;\n    height: 278px;\n    background: white;\n    border-radius: 2px;\n    box-shadow: 0px 4px 12px 0px rgba(0,0,0,0.1);\n    border: 1px solid #e6e9eb;\n    position: absolute;\n    top: 36px;\n    left: -1px;\n    z-index: 1001;\n    box-sizing: border-box;\n    cursor: default;\n    overflow: visible;\n  }\n\n  #gwd_mini_remind:hover .gwd-collection-mini {\n    display: flex;\n  }\n  </style>\n</div>\n';
    return $$out;
};

/***/ }),

/***/ 92557:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, pages = $data.pages, productW = $data.productW, $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, imgLoad = $data.imgLoad, value = $data.value, width = $data.width;
    $$out += '<div id="gwdang-amazon-dp-detail" class="panel gwd_compare top-compare-detail top-bar-detail">\n  <div class="panel-wrap">\n    <div class="b2c-pages blkcolor4">\n      第 \n      <span class="current-page" id="b2c-current-page">1</span>\n       页\uFF0C共 \n       <span class="page-num blkcolor4" id="b2c-page-num">';
    $$out += $escape(pages);
    $$out += '</span>\n        页\n    </div>\n    <div class="left-page turn-page" style="left:10px;">\n      <a id="fuzzy-prev-page" target="_self" title="上一页" class="gwd_bg" href="javascript:"></a>\n    </div>\n    <div class="all-products" style="width:';
    $$out += $escape(productW);
    $$out += 'px">\n      <ul id="amazon-item-list">\n        ';
    $each(data.product, function ($value, $index) {
        $$out += '\n          <li id="amazon-prod-item-';
        $$out += $escape($index);
        $$out += '" >\n            <a id="img-';
        $$out += $escape($value.dp_id);
        $$out += '" title="';
        $$out += $escape($value.title);
        $$out += '" target="_blank" class="small-img" href="';
        $$out += $escape($value.url);
        $$out += '">\n              <img src="';
        $$out += $escape(imgLoad);
        $$out += '" data-original="';
        $$out += $escape($value.img_url);
        $$out += '" id="dp-image-small-';
        $$out += $escape($value.dp_id);
        $$out += '" class="gwdang-lazy">\n            </a>\n            <a target="_blank" class="b2c-other-info"  href="';
        $$out += $escape($value.url);
        $$out += '">\n              <span class="gwd-price prifontf">';
        $$out += $escape($value.price_rmb ? $value.price_rmb : $value.price);
        $$out += '</span>\n              <span class="b2c-store blkcolor1">';
        $$out += $escape($value.site_name);
        $$out += '</span>\n              ';
        if ($value.promodom) {
            $$out += '\n              <span id="';
            $$out += $escape($value.dp_id);
            $$out += '_promotion">';
            $$out += $escape($value.promodom);
            $$out += '</span>\n              ';
        }
        $$out += '\n              <span class="b2c-fees blkcolor4">';
        $$out += $escape($value.rev_cnt ? '评论数:' + value.rev_cnt : $value.fee);
        $$out += '</span>\n              <span class="b2c-tle blkcolor1">';
        $$out += $escape($value.title);
        $$out += '</span>\n            </a>\n          </li>\n        ';
    });
    $$out += '\n      </ul>\n    </div>\n    <div class="right-page turn-page">\n      <a href="javascript:" id="fuzzy-next-page" class="gwd_bg" title="下一页"></a>\n    </div>\n  </div>\n  <style type="text/css">\n    #gwdang-amazon-dp-detail {\n      display: none;\n    }\n  .amazon .turn-page {\n    width: ';
    $$out += $escape(width);
    $$out += 'px;\n  }\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 92704:
/***/ ((module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
var __WEBPACK_AMD_DEFINE_RESULT__;

/**
 * b2c 比价模块
 * 包括普通的样式和模糊搜索的样式
 * @author:mllong(mllong0925@gmail.com)
 * @since:2013-07-24
 * @version:1.0.0
 */
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  var $ = __webpack_require__(10333);
  var exports = {};
  var template = __webpack_require__(26133);
  var viewB2cStore = __webpack_require__(72328);
  var specialFilter = __webpack_require__(22480);
  var calWidth = __webpack_require__(42869);
  let rateSite = {
    '228': 'USD',
    '229': 'JPY',
    '238': 'USD',
    '246': 'EUR'
  };
  let priceSite = {
    '228': '$',
    '238': '$',
    '229': '日元',
    '246': 'EUR'
  };
  let fixedPrice = price => {
    if (!price) return price;
    try {
      let priarr = price.split('.');
      price = priarr[0].replace(',', '');
      if (Number(price) > 99999) {
        price = priarr[0];
      } else {
        price = priarr[0] + '.' + priarr[1];
      }
    } catch (e) {
      __webpack_require__(35743)('b2cCompare:fixedPrice:error');
      return price;
    }
    return price;
  };
  let transRate = dp => {
    if (dp.price_rmb) return dp;
    let parseprice = __webpack_require__(86421);
    if (!dp.dp_id) return dp;
    let site_id = dp.dp_id.split('-')[1];
    let type = site_id && rateSite[site_id];
    if (!type) return dp;
    let price2 = parseprice(dp.price, type);
    let price3 = fixedPrice(dp.price);
    if (site_id == '229') {
      dp.price_rmb = price2 + `(${price3}${priceSite[site_id]})`;
    } else {
      dp.price_rmb = price2 + `(${priceSite[site_id]}${price3})`;
    }
    dp.price = price2;
    return dp;
  };
  function showExactView(data) {
    let widthObj = calWidth.init();
    data.b2c.product = specialFilter(data.b2c.product);
    if (data.b2c.product.length === 0) return;
    data.b2c.product[0] = transRate(data.b2c.product[0]);
    data.b2c.min_price = data.b2c.product[0].price.replace(',', '');
    //var dp_ids = '0-0';//统计当前有售的商家编号们
    //顶栏商城比价模块
    let b2cdom = `<a href="javascript:" id="${G.extName}-b2c-dp" class="${G.extName}-tab" >
                  <span class="b2c-icon"></span>
                  <span class="b2c-store-n">商城</span>
                  <span class="lowest ${G.extBrand}-price">&yen;${data.b2c.min_price}</span>
                </a>`;
    $(`#${G.extName}-main-contents`).append(b2cdom);
    function editData() {
      var len = data.b2c.store.length;
      for (var i = 0; i < data.b2c.store.length; i++) {
        data.b2c.store[i].price = data.b2c.store[i].price.replace(',', '');
        if (data.b2c.store[i].promo.length > 3) {
          data.b2c.store[i].promo2 = data.b2c.store[i].promo.slice(0, 3);
        }
      }
      data.b2c.store2 = data.b2c.store.slice(0, 6);
      return len;
    }
    for (var i = 0; i < data.b2c.product.length; i++) {
      var dp = data.b2c.product[i];
      dp = transRate(dp);
      //添加商品的促销活动信息
      dp.promo = editPromoIcon(dp.promo);
      if (dp.promo && dp.promo.length > 0) {
        dp.promodom = '';
        for (var p = 0, plen = dp.promo.length; p < 3 && p < plen; p++) {
          var pinfo = dp.promo[p];
          if (pinfo.hasSame) continue;
          dp.promodom += `<span  title="${pinfo.hasSameTitle ? pinfo.hasSameTitle : pinfo.desc}" class="promo_icon promo_icon_${pinfo.type}"></span>`;
        }
      }
    }
    //商城比价模块详情模块
    var len = editData();
    $(`#${G.extName}-main`).append(viewB2cStore({
      data: data,
      len: len,
      extName: G.extName,
      width: widthObj.b2cTurnpW,
      productW: widthObj.b2cProductW
    }));
    $(`#${G.extName}-b2c-dp-detail li img.store`).on('error', function () {
      if (!G.new_extension) $(this).attr('src', G.c_server + '/favicon.ico');
    });
    $('#b2c-prev-page').click(function () {
      G.change_page('b2c', -1);
    });
    $('#b2c-next-page').click(function () {
      G.change_page('b2c', 1);
    });
  }
  function showFuzzyView(data) {
    let widthObj = calWidth.init();
    data.b2c_fuzzy.product = specialFilter(data.b2c_fuzzy.product);
    if (data.b2c_fuzzy.product.length === 0) return;
    data.b2c_fuzzy.product[0] = transRate(data.b2c_fuzzy.product[0]);
    data.b2c_fuzzy.min_price = data.b2c_fuzzy.product[0].price;
    let fuzzdom = `<a href="javascript:" id="${G.extName}-b2c_fuzzy-dp" class="${G.extName}-tab">
                    <span class="b2c-icon gwd_bg"></span>
                    <span class="b2c-store-n">商城相似款</span>
                    <span class="lowest ${G.extBrand}-price">&yen;${data.b2c_fuzzy.min_price}</span>
                  </a>`;
    $(`#${G.extName}-main-contents`).append(fuzzdom);
    for (var i = 0; i < data.b2c_fuzzy.product.length; i++) {
      var dp = data.b2c_fuzzy.product[i];
      dp = transRate(dp);
      //添加商品的促销活动信息
      dp.promo = editPromoIcon(dp.promo);
      if (dp.promo && dp.promo.length > 0) {
        dp.promodom = '';
        for (var p = 0, plen = dp.promo.length; p < 3 && p < plen; p++) {
          var pinfo = dp.promo[p];
          if (pinfo.hasSame) continue;
          dp.promodom += `<span title="${pinfo.hasSameTitle ? pinfo.hasSameTitle : pinfo.desc}" class="promo_icon promo_icon_${pinfo.type}"></span>`;
        }
      }
    }
    let fuzzyDetail = __webpack_require__(20028);
    $(`#${G.extName}-main`).append(fuzzyDetail({
      data: data.b2c_fuzzy.product,
      s_server: G.s_server,
      width: widthObj.turnpW,
      productW: widthObj.allProductW
    }));
    $('#b2c_fuzzy-prev-page').on('click', function (e) {
      e.preventDefault();
      G.change_page('b2c_fuzzy', -1);
    });
    $('#b2c_fuzzy-next-page').on('click', function (e) {
      e.preventDefault();
      G.change_page('b2c_fuzzy', 1);
    });
    $(`#${G.extName}-b2c_fuzzy-dp-detail`).append('<div class="panel-shadow"></div>');
  }
  function showBottomExactView(data) {
    let b2c = data.b2c;
    if (data.b2c2) b2c = data.b2c2;
    var perPageMaxNumber = G.getFixedShowProductNum();
    if (b2c.store.length > 0) {
      //G.where_buy_dps = data.where_buy_dp_ids || '';\
      $(`#${G.extBrand}-compare`).html("");
      try {
        for (var i = 0; i < b2c.store.length; i++) {
          var store = b2c.store[i];
          var dp = store.product[0];
          dp = transRate(dp);
          var len = parseInt(store.product.length);
          var pages = len % perPageMaxNumber == 0 ? parseInt(len / perPageMaxNumber) : parseInt(len / perPageMaxNumber) + 1;
          var li = $('<li>');
          li.append($('<span>', {
            'class': `${G.extBrand}-compare-item`,
            'href': dp.url,
            'target': `_blank`
          }).append($('<p>', {
            'class': `${G.extBrand}-price`
          }).html(`&yen;` + dp.price)).append($('<p>', {
            'class': `${G.extBrand}-store`
          }).text(dp.site_name)));
          var detail = $('<div>', {
            'class': `${G.extBrand}-compare-item-detail re-${G.extBrand}-compare-item-detail ${G.extBrand}-compare-item-detail-fixed`,
            'style': 'display:none;'
          });
          detail.append($('<p>', {
            'class': `${G.extBrand}-compare-item-detail-title ${G.extBrand}-height-auto ${G.extBrand}-compare-item-detail-title-fixed`
          }).append($('<span>', {
            'class': `${G.extBrand}-compare-item-detail-title-desc`
          }).text(dp.site_name + '：' + store.fee)));
          var itemList = $('<ul>', {
            'class': `${G.extBrand}-item-list`
          });
          for (var k = 0; k < len; k++) {
            var item = store.product[k];
            item = transRate(item);
            if (item.site_name.indexOf('微信端') > -1 || item.site_name.indexOf('移动端') > -1) item.isOtherClient = true;
            var rev_cnt = item.rev_cnt ? item.rev_cnt : 0;
            //添加商品的促销活动信息
            var promoHtml = '';
            item.promo = editPromoIcon(item.promo);
            if (item.promo && item.promo.length > 0) {
              for (var p = 0, plen = item.promo.length; p < perPageMaxNumber && p < plen; p++) {
                if (item.promo[p].hasSame) continue;
                let desc = item.promo[p].hasSameTitle ? item.promo[p].hasSameTitle : item.promo[p].desc;
                promoHtml += `<span class="${G.extBrand}-bg promo_icon promo_icon_${item.promo[p].type}" title="${desc}">&nbsp</span>`;
              }
            }
            itemList.append($('<li>', {
              'class': `${G.extBrand}-list-item ` + (k % perPageMaxNumber == perPageMaxNumber - 1 || k == len - 1 ? `${G.extBrand}-last` : ``),
              'style': "display: " + (k >= perPageMaxNumber ? "none" : "block")
            }).append($('<a>', {
              'class': `${G.extBrand}-pic`,
              'href': item.url,
              'target': `_blank`
            }).append($('<img>', {
              'src': G.s_server + `/images/dp_default.jpg`,
              'data-original': item.img_url,
              'title': item.title
            }))).append($('<a>', {
              'class': `${G.extBrand}-product-title`,
              'href': item.url,
              'target': "_blank",
              'title': item.title
            }).append($('<div>').text(item.title))).append($("<div>").append($('<a>', {
              'class': `${G.extBrand}-price`,
              'href': item.url,
              'target': `_blank`
            }).html('&yen;' + (item.price_rmb ? item.price_rmb : item.price)).append(promoHtml))).append($('<div>', {
              'class': `${G.extBrand}_rev_cnt`
            }).append($('<a>', {
              'class': `${G.extBrand}_product_comment_amount`,
              'href': item.url,
              'target': '_blank',
              'title': item.isOtherClient ? item.site_name : '商品评论数'
            }).append($('<span>').text(item.isOtherClient ? item.site_name : rev_cnt != 0 ? `评论数:` + item.rev_cnt : '')))));
          }
          var b2c_PageView = $('<div>', {
            'class': `${G.extBrand}-b2c-PageView ${G.extBrand}-b2c-PageView-fixed`
          });
          b2c_PageView.append($('<p>', {
            'class': `${G.extBrand}-compare-item-detail-title`,
            'style': 'height:auto;'
          }).append($('<span>', {
            'style': 'float:none;padding-left:10px;',
            'class': `${G.extBrand}-compare-item-detail-pages`
          }).append($('<em>', {
            'id': 'page-now-' + i,
            'class': 'page-now'
          }).text('1')).append('/').append($('<em>', {
            'id': 'page-total-' + i,
            'class': 'page-total'
          }).text('1'))));
          detail.append($("<div>", {
            'class': `${G.extBrand}-compare-prev-page ${G.extBrand}-left`
          }).append($('<div>', {
            'class': `${G.extBrand}-bg page-arrow`
          }))).append(itemList).append($("<div>", {
            'class': `${G.extBrand}-compare-next-page ${G.extBrand}-right`
          }).append($('<div>', {
            'class': `${G.extBrand}-bg page-arrow`
          }))).append(b2c_PageView);
          li.append(detail);
          if (pages == 1) {
            li.find(`.${G.extBrand}-compare-prev-page`).hide();
            li.find(`.${G.extBrand}-compare-next-page`).hide();
            li.find(`.${G.extBrand}-b2c-PageView-fixed`).hide();
            li.attr("pages", 1);
            li.attr("len", len);
            var bannerWidth = len * 200;
            //border
            li.children(`div.${G.extBrand}-compare-item-detail-fixed`).css("width", bannerWidth + 2);
          } else {
            //还要考虑到边框的border，必须减去两个像素
            li.children(`div.${G.extBrand}-compare-item-detail-fixed`).css("width", G.width - 2);
          }
          $(`#${G.extBrand}-compare`).append(li);
          $(`#page-total-${i}`).text(pages);
        }
      } catch (e) {
        if (G.debug) {
          throw e;
        }
      }
    }
    $(`#${G.extBrand}-compare`).show();
  }
  function editPromoIcon(promo) {
    /*把相同的促销活动放一起， 避免显示多个相同图标， 但是不能直接改原来的内容， 会影响其他地方的价格计算*/
    if (!promo || promo && !promo.length) return promo;
    for (let i = 0, len = promo.length; i < len; i++) {
      if (!promo[i]) continue;
      for (let j = 1; j < len; j++) {
        if (!promo[i + j]) continue;
        if (promo[i].type == promo[i + j].type) {
          if (promo[i].hasSame) continue;
          promo[i].hasSameTitle = (promo[i].hasSameTitle ? promo[i].hasSameTitle : promo[i].desc) + ' ' + promo[i + j].desc;
          promo[i + j].hasSame = true;
        }
      }
    }
    return promo;
  }
  //把模糊匹配的b2c转化成正规的b2c商城内容
  function exchangeDataFormat(b2cFuzzy) {
    var b2c = {};
    var fuzzy = b2cFuzzy.product;
    fuzzy = specialFilter(fuzzy);
    for (var fuzzyIndex in fuzzy) {
      if (fuzzy[fuzzyIndex].more == '1') {
        var product = fuzzy[fuzzyIndex].all;
        for (var productIndex in product) {
          var site_name = product[productIndex].site_name;
          if (b2c[site_name] == null) {
            b2c[site_name] = [];
          }
          b2c[site_name].push(product[productIndex]);
        }
      } else {
        var site_name = fuzzy[fuzzyIndex].site_name;
        if (b2c[site_name] == null) {
          b2c[site_name] = [];
        }
        b2c[site_name].push(fuzzy[fuzzyIndex]);
      }
    }
    var returnB2c = {
      'store': []
    };
    for (var b2cIndex in b2c) {
      if (typeof b2c[b2cIndex][0].fee != 'undefined') {
        var store = {
          'product': b2c[b2cIndex],
          'fee': b2c[b2cIndex][0].fee
        };
        returnB2c.store.push(store);
      }
    }
    return returnB2c;
  }

  //初始化，根据数据的类型确定展示什么样式
  exports.init = function (data, type) {
    if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) {
      return;
    }
    if (type == "bottom") {
      if (data.b2c && data.b2c.min_price) {
        showBottomExactView(data);
        G.setPageArgs(`${G.extBrand}-compare`, G.getFixedShowProductNum());
        this.setBottomViewOffset();
      } else if (data.b2c_fuzzy) {
        var obj = {};
        obj.b2c2 = exchangeDataFormat(data.b2c_fuzzy);
        showBottomExactView(obj);
        G.setPageArgs(`${G.extBrand}-compare`, G.getFixedShowProductNum());
        this.setBottomViewOffset();
        $(`.${G.extBrand}-bi`).addClass(`${G.extBrand}-bi-bg`);
      }
      //小红点提示
      G.circleNotice(data.quan, data.promotion);
    } else {
      if (data.b2c && data.b2c.min_price) {
        showExactView(data);
      } else if (data.b2c_fuzzy) {
        showFuzzyView(data);
      }
    }
  };
  //设定底部版的详情页的偏移位置
  exports.setBottomViewOffset = function () {
    $(`ul.${G.extBrand}-item-list`).each(function () {
      var menu_li = $(this).parent().parent().eq(0);
      if (menu_li.attr("pages") == '1') {
        //尽量根据菜单的位置居中，实在不能居中的，就靠右
        var menu_li_left = menu_li.offset().left;
        var menu_li_width = menu_li.width();
        var bannerWidth = parseInt(menu_li.attr("len")) * 200;
        var target_left = menu_li_left - (bannerWidth / 2 - menu_li_width / 2);
        if (target_left < 0) {
          target_left = 0;
        }
        var remainWidth = G.width - target_left;
        if (bannerWidth < remainWidth) {
          menu_li.children(`div.${G.extBrand}-compare-item-detail-fixed`).css('left', target_left);
          menu_li.find(`.${G.extBrand}-compare-item-detail-title-fixed`).css('left', target_left);
        } else {
          menu_li.children(`div.${G.extBrand}-compare-item-detail-fixed`).css('left', G.width - bannerWidth);
          menu_li.find(`.${G.extBrand}-compare-item-detail-title-fixed`).css('left', G.width - bannerWidth);
        }
      }
    });
  };
  return exports;
}).call(exports, __webpack_require__, exports, module),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));

/***/ }),

/***/ 92726:
/***/ ((__unused_webpack_module, exports) => {

function hex2rgba (hex) {
  if (typeof hex === 'number') {
    hex = hex.toString()
  }

  if (typeof hex !== 'string') {
    throw new Error('Color should be defined as hex string')
  }

  let hexCode = hex.slice().replace('#', '').split('')
  if (hexCode.length < 3 || hexCode.length === 5 || hexCode.length > 8) {
    throw new Error('Invalid hex color: ' + hex)
  }

  // Convert from short to long form (fff -> ffffff)
  if (hexCode.length === 3 || hexCode.length === 4) {
    hexCode = Array.prototype.concat.apply([], hexCode.map(function (c) {
      return [c, c]
    }))
  }

  // Add default alpha value
  if (hexCode.length === 6) hexCode.push('F', 'F')

  const hexValue = parseInt(hexCode.join(''), 16)

  return {
    r: (hexValue >> 24) & 255,
    g: (hexValue >> 16) & 255,
    b: (hexValue >> 8) & 255,
    a: hexValue & 255,
    hex: '#' + hexCode.slice(0, 6).join('')
  }
}

exports.getOptions = function getOptions (options) {
  if (!options) options = {}
  if (!options.color) options.color = {}

  const margin = typeof options.margin === 'undefined' ||
    options.margin === null ||
    options.margin < 0
    ? 4
    : options.margin

  const width = options.width && options.width >= 21 ? options.width : undefined
  const scale = options.scale || 4

  return {
    width: width,
    scale: width ? 4 : scale,
    margin: margin,
    color: {
      dark: hex2rgba(options.color.dark || '#000000ff'),
      light: hex2rgba(options.color.light || '#ffffffff')
    },
    type: options.type,
    rendererOpts: options.rendererOpts || {}
  }
}

exports.getScale = function getScale (qrSize, opts) {
  return opts.width && opts.width >= qrSize + opts.margin * 2
    ? opts.width / (qrSize + opts.margin * 2)
    : opts.scale
}

exports.getImageWidth = function getImageWidth (qrSize, opts) {
  const scale = exports.getScale(qrSize, opts)
  return Math.floor((qrSize + opts.margin * 2) * scale)
}

exports.qrToImageData = function qrToImageData (imgData, qr, opts) {
  const size = qr.modules.size
  const data = qr.modules.data
  const scale = exports.getScale(size, opts)
  const symbolSize = Math.floor((size + opts.margin * 2) * scale)
  const scaledMargin = opts.margin * scale
  const palette = [opts.color.light, opts.color.dark]

  for (let i = 0; i < symbolSize; i++) {
    for (let j = 0; j < symbolSize; j++) {
      let posDst = (i * symbolSize + j) * 4
      let pxColor = opts.color.light

      if (i >= scaledMargin && j >= scaledMargin &&
        i < symbolSize - scaledMargin && j < symbolSize - scaledMargin) {
        const iSrc = Math.floor((i - scaledMargin) / scale)
        const jSrc = Math.floor((j - scaledMargin) / scale)
        pxColor = palette[data[iSrc * size + jSrc] ? 1 : 0]
      }

      imgData[posDst++] = pxColor.r
      imgData[posDst++] = pxColor.g
      imgData[posDst++] = pxColor.b
      imgData[posDst] = pxColor.a
    }
  }
}


/***/ }),

/***/ 92771:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports.getStore = void 0;
__webpack_require__(3362);
var _vuex = _interopRequireDefault(__webpack_require__(95353));
var _userData = _interopRequireDefault(__webpack_require__(74222));
var _log = _interopRequireDefault(__webpack_require__(35743));
var _cnzz = _interopRequireDefault(__webpack_require__(5300));
var _request = _interopRequireDefault(__webpack_require__(49388));
const userCenter = __webpack_require__(76904);
const extConsole = __webpack_require__(7129);
let inited = false;
let instanceId = null,
  store = null;
const getStore = () => {
  (__webpack_require__(7129).log)('getStore with instanceId', instanceId, 'G.instanceId', G.instanceId, 'G', G);
  if (G.instanceId !== instanceId) {
    instanceId = G.instanceId;
    store = makeStore();
    window.gwdStore = store;
    return store;
  } else {
    window.gwdStore = store;
    return store;
  }
};
exports.getStore = getStore;
const makeStore = () => new _vuex.default.Store({
  modules: {
    user: {
      namespaced: true,
      state: {
        login: false,
        wxQr: ''
      },
      mutations: {
        setLogin(state, login = true) {
          state.login = login;
        },
        setWxQr(state, qr) {
          state.wxQr = qr;
        }
      }
    },
    priceRemind: {
      namespaced: true,
      state: {
        instanceId: G.instanceId,
        mode: 0,
        notifySite: 0,
        // 0 全网商家 1 当前商家
        notifierMPromo: 1,
        // 多件推送 0 不开启 1 开启
        allPrice: 0,
        currentPrice: 0,
        hovered: false,
        collected: false,
        settedNotifySite: null,
        nowPrice: 0,
        showMPromo: false
      },
      mutations: {
        setState(state, payload) {
          Object.keys(payload).forEach(key => {
            state[key] = payload[key];
          });
        },
        updateRemindSettings(state, payload) {
          // if (G.productChecked && G.productChecked.collected) {
          //   debugger
          // }
          Object.keys(payload).forEach(key => {
            state[key] = payload[key];
          });
        }
      },
      actions: {
        async cancel(ctx) {
          return userCenter.delete().then(res => {
            ctx.commit('updateRemindSettings', {
              collected: false,
              settedNotifySite: null
            });
            return new Promise(resolve => resolve());
          });
        },
        async reset(ctx) {},
        async init(ctx) {
          // if (inited) {
          //   return
          // }
          inited = true;
          if (G.userLogin) {
            ctx.commit('user/setLogin', true, {
              root: true
            });
          }
          if (G.userLogin && G.productChecked && G.productChecked.collected) {
            ctx.commit('setState', {
              collected: true
            });
          }
          await (__webpack_require__(41761).met)('dp_query_set');
          let dp_query = _userData.default.get('dp_query');
          let currentPrice = await (__webpack_require__(41761).met)('NowPrice');
          // let single = await Promise.race([
          //   require('common/globalCondition').met('SinglePrice'),
          //   require('common/commonUtil').sleep(1000)
          // ])
          // if (single) {
          //   currentPrice = single
          // }
          if (G.aliSite && G.dp.price) currentPrice = G.dp.price;
          let allPrice = parseFloat(dp_query.b2c.min_price) || currentPrice;
          if (!allPrice || isNaN(allPrice)) allPrice = currentPrice;
          currentPrice = parseFloat(currentPrice.toString().replace(',', ''));
          allPrice = parseFloat(allPrice.toString().replace(',', ''));
          if (dp_query.b2c.product && dp_query.b2c.product.length !== 0) {
            (0, _log.default)('allsite-lowpri-show');
            _cnzz.default.log('allsite-lowpri-show');
          }
          if (!(G.productChecked && G.productChecked.collected)) {
            ctx.commit('updateRemindSettings', {
              allPrice: allPrice,
              currentPrice: currentPrice,
              notifySite: 1,
              nowPrice: currentPrice
            });
            (__webpack_require__(41761).met)('SinglePrice').then(single => {
              ctx.commit('updateRemindSettings', {
                currentPrice: single
              });
            });
          }
          (__webpack_require__(41761).setMet)('PriceRemindSetted');
        },
        async hover(ctx) {
          if (!ctx.state.hovered) {
            if (G.userLogin) {
              let url = `https://www.gwdang.com/collect/get_qrcode/`;
              if (G.qrApi && G.qrApi !== 'default') {
                url = G.qrApi;
              }
              _request.default.rawGet(url, true).then(data => {
                ctx.commit('user/setWxQr', data.img_url, {
                  root: true
                });
              });
              let cat_id = G.dp.cat_id;
              if (cat_id && cat_id.includes('-')) {
                let cats = cat_id.split('-');
                if (cats.length > 3) {
                  cats.pop();
                }
                cat_id = cats.join(',');
              }
              _request.default.get(`${G.server}/extension/ProductFilter?scene=collection&dp_ids=${G.dp.dpId}&one=1&cid=${cat_id}`).then(r => {
                if (r.data && !r.data.is_black_class) {
                  G.showMPromo = true;
                  ctx.commit('setState', {
                    showMPromo: true
                  });
                }
              });
            }
            if (G.userLogin && ctx.state.collected) {
              await (__webpack_require__(41761).met)('GwdDpIdGot');
              userCenter.detail(G.dp.dpId).then(r => {
                extConsole.log('detail', r);
                let payload = {
                  mode: r.data.notifier.mode,
                  notifySite: r.data.notifier.site,
                  settedNotifySite: r.data.notifier.site,
                  notifierMPromo: r.data.notifier.mpromo
                };
                if (payload.notifySite === 1) {
                  payload.currentPrice = r.data.notifier.threshold;
                } else {
                  payload.allPrice = r.data.notifier.threshold;
                }
                // payload.currentPrice = r.data.notifier.threshold
                ctx.commit('updateRemindSettings', payload);
              });
            }
            ctx.commit('setState', {
              hovered: true
            });
          }
        },
        async submit(ctx, payload) {
          return userCenter.add(payload.price, payload.notifySite, payload.mode, payload.notifyMPromo, ctx.state.showMPromo ? 0 : 1).then(r => {
            if (r.error_code && r.error_code === 1000) {
              ctx.commit('user/setLogin', false, {
                root: true
              });
            }
            if (r.code === 100 || r.code <= 0) {
              return new Promise((resolve, reject) => {
                reject(r.msg);
              });
            }
            if (r.code === 1) {
              let mode = payload.mode;
              let site = payload.notifySite;
              if (r.data) {
                mode = r.data.notifier.mode;
                site = r.data.notifier.site;
              }
              let payloadRes = {
                mode: mode,
                notifySite: site,
                settedNotifySite: site,
                collected: true,
                notifierMPromo: payload.notifyMPromo ? 1 : 0
              };
              if (r.data) {
                if (payloadRes.notifySite === 1) {
                  payloadRes.currentPrice = r.data.notifier.threshold;
                } else {
                  payloadRes.allPrice = r.data.notifier.threshold;
                }
              } else {
                if (payloadRes.notifySite === 1) {
                  payloadRes.currentPrice = payload.price;
                } else {
                  payloadRes.allPrice = payload.price;
                }
              }
              ctx.commit('updateRemindSettings', payloadRes);
              return new Promise(resolve => {
                resolve('提交成功');
              });
            }
          });
        }
      }
    },
    promos: {
      namespaced: true,
      state: {
        coupon: null,
        rebate: null,
        firstBuy: null,
        governmentSubsidy: null,
        activityRedpack: null
      },
      getters: {
        hasPromo(state) {
          return state.coupon || state.rebate || state.firstBuy || state.governmentSubsidy || state.activityRedpack;
        }
      },
      mutations: {
        setState(state, payload) {
          Object.keys(payload).forEach(key => {
            state[key] = payload[key];
          });
        }
      }
    },
    priceTrend: {
      namespaced: true,
      state: {
        money: '',
        priceRange: '',
        nowPrice: ''
      },
      mutations: {
        setState(state, payload) {
          Object.keys(payload).forEach(key => {
            state[key] = payload[key];
          });
        }
      }
    }
  }
});

/***/ }),

/***/ 92796:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var fails = __webpack_require__(79039);
var isCallable = __webpack_require__(94901);

var replacement = /#|\.prototype\./;

var isForced = function (feature, detection) {
  var value = data[normalize(feature)];
  return value === POLYFILL ? true
    : value === NATIVE ? false
    : isCallable(detection) ? fails(detection)
    : !!detection;
};

var normalize = isForced.normalize = function (string) {
  return String(string).replace(replacement, '.').toLowerCase();
};

var data = isForced.data = {};
var NATIVE = isForced.NATIVE = 'N';
var POLYFILL = isForced.POLYFILL = 'P';

module.exports = isForced;


/***/ }),

/***/ 92834:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(23792);
__webpack_require__(62953);
__webpack_require__(3296);
__webpack_require__(27208);
__webpack_require__(48408);
var href = window.location.href;
var host = window.location.host;
var pageInfo;

//检查是否在此页面出现小工具栏
module.exports.isAvailablePage = () => {
  if (location.hostname.includes('.gwdang.com') && location.href.includes('/jd_enhance')) {
    return 'gwdang';
  }
  for (var pattern in sitePattern) {
    if (host.match(new RegExp(pattern, 'i'))) {
      return sitePattern[pattern];
    }
  }
  return false;
};

//检查是否在此页面出现比价
module.exports.isProductPage = url => {
  url = url || href;
  if (url.indexOf('oneplus.com/cn/store') > -1) {
    return false;
  }
  if (G.from_device === 'bijiago' && location.href.indexOf('https://pcsitepp-fm.jd.com/') > -1) {
    return '360buy';
  }
  for (var pattern in productPattern) {
    let matchs = url.match(new RegExp(pattern, 'i'));
    if (matchs) {
      //if (url.match(new RegExp(pattern))) {
      let site = productPattern[pattern];
      const host = new URL(url).host;
      if (site === "amazon" && host !== "www.amazon.cn" && matchs[1]) {
        let m = matchs[1];
        if (m.indexOf('.') > -1) m = m.split('.')[1];
        m = 'amazon-' + m;
        return m;
      }
      return productPattern[pattern];
    }
  }
  return false;
};
const page404 = site => {
  var page;
  switch (site) {
    default:
      if ($('#content h2').text().indexOf('您查看的商品找不到了') > -1) page = true;
      break;
  }
  return page;
};
//检查是否屏蔽此域名
module.exports.isInBanList = () => {
  if (G.dcmExt) return false;
  if (!G.iframe) {
    var no_url = href.match(/[&\?]no_url/);
    if (!no_url && (self.location != top.location || self.frameElement && self.frameElement.tagName == "IFRAME" || window.top != window.self)) {
      return true;
    }
  }
  var main_url = href;
  if (location.href.indexOf('?') > 0) {
    main_url = href.substr(0, href.indexOf('?'));
  }
  // kaluli网站
  if (main_url.match(/\.kaluli.com/)) {
    return false;
  }
  //有一个carters的网站，防止被下面cart匹配到给屏蔽，提前判断如果匹配到carters就return false
  if (main_url.match(/(?:cartridge|Camcorder|carters|feifei\.com\/order\/|ref=ord_cart_shr)/) != null) {
    return false;
  }
  if (location.host.indexOf(`${G.extName}.com`) > -1 && !location.href.includes('jd_enhance')) return true;
  if (main_url.match(/detail\.zol\.com\.cn/)) return false;
  if (main_url.match(/(?:cart|member|order|myhome|picture_index|handle-buy-box|chat|t.sina.com.cn|discussion|union.dangdang|eve.360buy|bank.vmall|checkout|confirm|gateway|trade|http:\/\/i.taobao.com|we.taobao.com|passport.yougou.com)/ig) != null) {
    return true;
  }
  return false;
};
const specialHost = name => {
  if (name === 'swarovski') {
    if (location.href.match(/Web_GB\/en/)) {
      name = 'swarovski-en';
    }
  }
  return name;
};
let getPageInfo = () => {
  if (pageInfo) return pageInfo;
  var name = "";
  if (module.exports.isInBanList()) {
    return pageInfo = {
      type: 0,
      siteName: name
    };
  }
  name = module.exports.isProductPage();
  if (name) {
    if (typeof name !== 'string') {
      G.hidebar = name.hidebar;
      name = name.name;
    }
    G.site = name;
    G.logsite = name;
    if (name.indexOf("amazon") > -1) G.site = "amazon";
    if (page404(name)) {
      return pageInfo = {
        type: 0,
        siteName: name
      };
    }
    return pageInfo = {
      type: 2,
      siteName: name
    };
  }
  name = module.exports.isAvailablePage();
  if (name) {
    if (typeof name !== 'string') {
      G.hidebar = name.hidebar;
      name = name.name;
    }
    name = specialHost(name);
    G.site = name;
    G.logsite = name;
    return pageInfo = {
      type: 1,
      siteName: name
    };
  }
  return pageInfo = {
    type: 0,
    siteName: ''
  };
};
let sitePattern = {
  '\\.comix\\.com\\.cn': 'comix',
  '\\.3c2p\\.com': '3c2p',
  '\\.nbdeli.com': 'nbdeli',
  '\\.colipu.com': 'colipu',
  'www\\.epicgames\\.com': 'epic',
  'www\\.stbchina\\.cn': 'stbchina',
  'www\\.mafengwo\\.cn': 'mafengwo',
  'www\\.kjt\\.com': 'kjt',
  'www\\.lifevc.com': 'lifevc',
  'www\\.coocaa\\.com': 'coocaa',
  '(?:www|shop)\\.nubia\\.(?:cn|com)': 'nubia',
  'www\\.kzj365\\.com': 'kzj365',
  '\\.kaola\\.com': 'kaola',
  'www\\.ymatou\\.(?:com|hk)': 'ymatou',
  'www\\.metao\\.com': 'metao',
  'shop\\.philips\\.com\\.cn': 'philips',
  'www\\.tcl\\.com': 'tcl',
  'www\\.e-changhong\\.com': 'changhong',
  'shop\\.konka\\.com': 'konka',
  'shop\\.hisense\\.com': 'hisense',
  'www\\.ineigo\\.com': 'ineigo',
  'www\\.skg\\.com': 'skg',
  'www\\.k-touch\\.cn': 'k-touch',
  '\\.gionee\\.com': 'gionee',
  '(?:www|store)\\.oppo\\.com': 'oppo',
  'gfive\\.b2c\\.eqimingxing\\.com': 'gfive',
  'shop\\.vivo\\.com\\.cn': 'vivo',
  'www\\.grainger\\.cn': 'grainger',
  '(?:mall|piao)\\.163\\.com': 'wy163',
  't\\.dianping\\.com': 'dianping',
  '\\.nuomi\\.com': 'nuomi',
  '\\.meituan\\.com': 'meituan',
  'www\\.ebay\\.com': 'ebay',
  'yao\\.95095\\.com': {
    name: 'taobao',
    hidebar: true
  },
  '\\.feiniu\\.com': 'feiniu',
  'item\\.feiniu\\.com': 'feiniu',
  '\\.feifei\\.(?:cn|com)': 'feifei',
  '\\.guang\\.com': 'guang',
  '\\.meilishuo\\.com': 'meilishuo',
  '\\.mogu(?:jie|)\\.com': 'mogujie',
  'shop\\.coolpad\\.cn': 'coolpad',
  '\\.sephora\\.cn': 'sephoracps',
  'cn\\d*\\.strawberrynet\\.com': 'strawberrynet',
  '\\.yesmywine\\.com': 'yesmywine',
  '(\\.)?yiguo\\.com': 'yiguo',
  '\\.wanggou\\.com': 'wanggou',
  'mall\\.jia\\.com': 'jia',
  'weigou\\.baidu\\.com': 'baidu-weigou',
  '\\.(xiao)?mi\\.com': 'xiaomi',
  'shop\\.letv\\.com': 'lemall',
  '\\.handu\\.com': 'handu',
  '(?:www\\.|^)taoshu\\.com': 'taoshu',
  '\\.ouku\\.com': 'ouku',
  '\\.j1\\.com': 'j1',
  '\\.zm7\\.cn': 'zm7',
  '\\.1688\\.com': {
    name: '1688',
    hidebar: true
  },
  '\\.yiwugou\\.com': 'yiwugou',
  '\\.zhiwo\\.com': 'zhiwo',
  '\\.muyingzhijia\\.com': 'muyingzhijia',
  '\\.vmall\\.com': 'vmall',
  '\\.hihonor\\.com': 'hihonor',
  '\\.didamall\\.com': 'didamall',
  '\\.xiji.com': 'xiji',
  '\\.xijie.com': 'xijie',
  '\\.miqi\\.cn': 'miqi',
  '\\.zol\\.com(?:$|/|\\?)': 'zol',
  'zol\\.com\\.cn': 'zol',
  '\\.camel\\.com\\.cn': 'camel',
  'camel.com.cn': 'camel',
  '(\\.)?homevv\\.com': 'homevv',
  '\\.paixie\\.net': 'paixie',
  '\\.tao3c\\.com': 'tao3c',
  '\\.amazon\\.cn': 'amazon',
  '\\.dangdang\\.com': 'dangdang',
  's8\\.taobao\\.com': 's8',
  'taobao\\.(?:com|hk)': {
    name: 'taobao',
    hidebar: true
  },
  'fake\\.taobao\\.com': 'taobao',
  '\\.(?:360buy|jd|jkcsjd)\\.com': '360buy',
  '\\.(?:360buy|jd)\\.hk': '360buy',
  '\\.yiyaojd.com': '360buy',
  '\\.jingdonghealth.cn': '360buy',
  '\\i-item\\.jd\\.com': '360buy',
  '\\.newegg(\\.com)?\\.cn': 'newegg',
  '\\.redbaby\\.com\\.cn': 'redbaby',
  '\\.51buy\\.com': '51buy',
  '\\.yixun\\.com': '51buy',
  '\\.okbuy\\.com': 'okbuy',
  '\\.shopee\\.tw': 'shopee',
  '\\.suning\\.com': 'suning',
  '\\.coo8\\.com': 'coo8',
  '\\.lusen\\.com': 'lusen',
  '\\.gome\\.com\\.cn': 'gome',
  '\\.gomehome\\.com': 'gome',
  '\\.gomehigo\\.hk': 'gomehigo',
  '\\.yhd\\.com': 'yihaodian',
  '\\.yihaodian\\.com': 'yihaodian',
  '\\.1mall\\.com': 'yihaodian',
  '\\.womai\\.com': 'womai',
  '\\.leyou\\.com\\.cn': 'leyou',
  '\\.shopin\\.net': 'shopin',
  '\\.no5\\.com\\.cn': 'no5',
  '\\.xiu\\.com': 'xiu',
  '\\.mbaobao\\.com': 'mbaobao',
  '\\.360kxr\\.com': '360kxr',
  '\\.m6go\\.com': 'm6go',
  '\\.gou\\.com': 'm6go',
  '\\.smzdm\\.com': 'smzdm',
  '\\.99read\\.com': '99read',
  '\\.china-pub\\.com': 'china-pub',
  '\\.bookschina\\.com': 'bookschina',
  '\\.efeihu\\.com': 'efeihu',
  '\\.yintai\\.com': 'yintai',
  '\\.quwan\\.com': 'quwan',
  '\\.k121\\.com': 'k121',
  '\\.happigo\\.com': 'happigo',
  '\\.gap\\.cn': 'gap',
  '\\.binggo\\.com/': 'binggo',
  '\\.yougou\\.com': 'yougou',
  '\\.jxdyf\\.com': 'jxdyf',
  '\\.winxuan\\.com': 'winxuan',
  '\\.bookuu\\.com': 'bookuu',
  '\\.jiuxian\\.com': 'jiuxian',
  '\\.vancl\\.com': 'vancl',
  '\\.111\\.com\\.cn': '111',
  '\\.sfbest\\.(?:hk|com)': 'sfbest',
  '\\.vip(shop)?\\.com': 'vipshop',
  '\\.vipglobal\\.hk': 'vipshop',
  '\\.jumei\\.com': 'jumei',
  'jumeiglobal\\.com': 'jumeiglobal',
  '\\.lefeng\\.com': 'lefeng',
  'www\\.benlai\\.com': 'benlai',
  '(?:\\.|^)letao\\.com': 'letao',
  '\\.139shop\\.com': '139shop',
  '(?:\\.|^)zzl365\\.com': 'zzl365',
  '\\.tiantian\\.com': 'tiantian',
  '\\.taoxie\\.com': 'taoxie',
  '\\.gjw\\.com': 'gjw',
  'www\\.d1\\.com\\.cn': 'd1',
  '\\.ihush\\.com': 'ihush',
  'www\\.s\\.cn': 's',
  '\\.(?:moonbasa|korirl|rutisher|suorang|alaves|ing2ing|0-100s|qjherb|monteamor)\\.com': 'moonbasa',
  '\\.wangjiu\\.com': 'wangjiu',
  '\\.liebo\\.com': 'liebo',
  '\\.esprit\\.cn': 'esprit',
  '(?:\\.|^)lamiu\\.com': 'lamiu',
  '\\.aimer\\.com\\.cn': 'aimer',
  'www\\.kadang\\.com': 'kadang',
  'www\\.lizi\\.com': 'lizi',
  'www\\.metromall\\.cn': 'metromall',
  'www\\.pba\\.cn': 'pba',
  '\\.shangpin\\.com': 'shangpin',
  '\\.wbiao\\.cn': 'wbiao',
  '\\.handuyishe\\.com': 'handuyishe',
  '\\.ehaier\\.com': 'ehaier',
  '\\.secoo\\.com': 'secoo',
  '(?:vivian|linkmasa|masamaso)\\.(?:com|cn)': 'masamaso',
  'www\\.naruko\\.cn': 'naruku',
  'www\\.sportica\\.cn': 'sportica',
  '(?:\\.|^)xifuquan\\.com': 'xifuquan',
  'www\\.milier\\.com': 'milier',
  'www\\.nop\\.cn': 'nop',
  '\\.lenovo\\.com': 'lenovo',
  'shop\\.lenovo\\.com\\.cn': 'lenovo',
  'shop\\.lenovomobile\\.com': 'lenovo',
  '\\.189\\.cn': '189',
  '\\.hicdma\\.com': 'hicdma',
  '\\.e100\\.cn': 'e100',
  'store\\.samsung\\.com': 'samsung',
  'www.apple\\.com': 'apple',
  'store.apple\\.com': 'apple',
  '\\.meizu\\.com': 'meizu',
  '\\.958shop\\.com': '958shop',
  '\\.okhqb\\.com': 'okhqb',
  '\\.ztedevice\\.com\\.cn': 'ztedevice',
  '\\.kuaishubao\\.com': 'kuaishubao',
  '\\.lvyoumall\\.com': 'lvyoumall',
  '(?:www\\.|^)x\\.com\\.cn': 'x',
  '\\.lingshi\\.com': 'lingshi',
  '\\.ctrip\\.com': 'ctrip',
  '\\.zuipin\\.cn': 'zuipin',
  'www\\.xgbaby\\.com': 'bbready',
  '\\.yohobuy\\.com': 'yohobuy',
  '\\.lvmama\\.com': 'lvmama',
  '(?:\\.|^)qmango\\.com': 'qmango',
  'www\\.228cai\\.com': '228cai',
  '\\.ikjtao\\.com': 'ikjtao',
  'www\\.bestkeep\\.cn': 'ikjtao',
  '\\.bagtree\\.cn': 'bagtree',
  'yichengpin\\.com': 'yichengpin',
  'zgzcw\\.com': {
    name: 'zgzcw',
    hidebar: true
  },
  'www\\.mia\\.com': 'miyabaobei',
  '\\.miyabaobei.hk': 'miyabaobei',
  '\\.ule\\.com': 'ule',
  'minshengec\\.com': 'minshengec',
  'wangfujing\\.com': 'wangfujing',
  '\\.qunar\\.com': 'qunar',
  '\\.meilele\\.com': 'meilele',
  'www\\.55tuan\\.com': '55tuan',
  'jinjianginns\\.com': 'jinjianginns',
  '\\.elong\\.com': 'elong',
  'podinns\\.com': 'podinns',
  'mangocity\\.com': 'mangocity',
  '\\.500\\.com': '500',
  'www\\.ly\\.com': 'ly',
  'e-lining\\.com': 'e-lining',
  '\\.lining\\.com': 'lining',
  '\\.koolearn\\.com': 'koolearn',
  '\\.springtour\\.com': 'springtour',
  '\\.qinqinbaby\\.com': 'qinqinbaby',
  'winenice\\.com': 'winenice',
  '\\.sasa\\.com': 'sasa',
  '(?:\\.|^)5lux\\.com': '5lux',
  '\\.228\\.com\\.cn': '228',
  '\\.rrs\\.com': 'rrs',
  '\\.rrsjk.com': 'rrs',
  '(?:\\.|^)buy\\.ccb\\.com': 'ccb',
  '\\.banggo\\.com': 'banggo',
  'www\\.amazon\\.com': 'amazon-com',
  'www\\.amazon\\.co\\.jp': 'amazon-jp',
  'www\\.amazon\\.in': 'amazon-in',
  'www\\.amazon\\.fr': 'amazon-fr',
  'www\\.amazon\\.de': 'amazon-de',
  'www\\.amazon\\.it': 'amazon-it',
  'www\\.amazon\\.co.uk': 'amazon-uk',
  'www\\.amazon\\.nl': 'amazon-nl',
  'www\\.amazon\\.es': 'amazon-es',
  'www\\.amazon\\.ca': 'amazon-ca',
  'www\\.amazon\\.com\\.mx': 'amazon-mx',
  'www\\.amazon\\.com\\.br': 'amazon-br',
  'www\\.amazon\\.com\\.au': 'amazon-au',
  'store\\.logitech\\.com\\.cn': 'logitech',
  '\\.boohee\\.com': 'boohee',
  'nike\\.com': 'nike',
  '\\.jianke\\.com': 'jianke',
  '\\.360kad\\.com': '360kad',
  '\\.lbxcn\\.com': 'lbxcn',
  '\\.meici\\.com': 'meici',
  '\\.beibei\\.com': 'beibei',
  '\\.aliexpress\.com': {
    name: 'aliexpress',
    hidebar: true
  },
  '\\.6pm\\.com': '6pm',
  '\\.gnc\\.com': 'gnc',
  '\\.myhabit\\.com': 'myhabit',
  '\\.shopbop\\.com': 'shopbop',
  '\\.drugstore\\.com': 'drugstore',
  'www\\.walgreens\\.com': 'walgreens',
  'sierratradingpost\\.com': 'sierratradingpost',
  '\\.newegg\\.com': 'newegg-us',
  '\\.jomashop\\.com': 'jomashop',
  '\\.ashford\\.com': 'ashford',
  'lookfantastic\\.com': 'lookfantastic-com',
  'lookfantastic\\.cn': 'lookfantastic-cn',
  '\\.rei\\.com': 'rei',
  'cn\\.iherb\\.com': 'iherb',
  '\\.iherb\\.com': 'iherb-com',
  '\\.carters\\.com': 'carters',
  'www\\.endclothing\\.com': 'endclothing',
  '\\.campsaver\\.com': 'campsaver',
  'global\\.rakuten\\.com': 'rakuten',
  '(?:\\.|^)100yue\\.com': '100yue',
  'www\\.woot\\.com': 'woot',
  'www\\.haitaocheng\\.com': 'haitaocheng',
  'joesnewbalanceoutlet\\.com': 'joesnewbalanceoutlet',
  '\\.finishline\\.com': 'finishline',
  '\\.vitacost\\.com': 'vitacost',
  '\\.groupon.com': 'groupon',
  '\\.supumall\\.com': 'supumall',
  'www1\\.macys\\.com': 'macys',
  'www\\.moosejaw\\.com': 'moosejaw',
  'www\\.lemall\\.com': 'lemall',
  'www\\.jiumei\\.com': 'jiumei',
  '(?:\\.|^)chunshuitang\\.com': 'chunshuitang',
  'www\\.daling.com': 'daling',
  'www\\.oyeah\\.com': 'oyeah',
  'www\\.morefood\\.com': 'morefood',
  'www\\.yummy77\\.com': 'yummy77',
  'www\\.fruitday\\.com': 'fruitday',
  'www\\.gilt\\.com': 'gilt',
  'www\\.fengqu\\.com': 'fengqu',
  'www\\.mei\\.com': 'mei',
  '\\.vsigo\\.cn': 'vsigo',
  'www\\.keede\\.com': 'keede',
  'www\\.kede\\.com': 'keede',
  'k1\\.keede\\.cn': 'keede',
  'www\\.showjoy\\.com': 'showjoy',
  '\\.ocj\\.com\\.cn': 'ocj',
  '\\.ocj\\.kr': 'ocj',
  '\\.tmall\\.(?:com|hk)': {
    name: 'tmall',
    hidebar: true
  },
  'www\\.sundan\\.com': 'sundan',
  'www\\.jiae\\.com': 'jiae',
  '(?:\\.|^)zazhipu\\.com': 'zazhipu',
  'www\\.easeeyes\\.com': 'easeeyes',
  'microsoftstore\\.com\\.cn': 'microsoftstore',
  '(?:\\.|^)xgdq\\.com': 'xgdq',
  '\\.bestcake\\.com': 'bestcake',
  '\\.lovo\\.cn': 'lovo',
  'www\\.hua\\.com': 'hua',
  'www\\.xtep\\.com\\.cn': 'xtep',
  'www\\.staples\\.cn': 'staples',
  '(?:\\.|^)efotile\\.com': 'efotile',
  'www\\.zhe800\\.com': 'zhe800',
  'www\\.aidai\\.com': 'aidai',
  'www\\.bftv\\.com': 'bftv',
  '\\.tujia\\.com': 'tujia',
  '\\.cosme\\.com': 'cosme',
  'www\\.diapers\\.com': 'diapers',
  'www\\.windeln\\.de': 'windeln',
  'www\\.babyneo\\.de': 'babyneo',
  'www\\.escentual\\.com': 'escentual',
  'www\\.thewatchery\\.com': 'thewatchery',
  '\\.biccamera.com': 'biccamera',
  '\\.tuhu.(?:cn|com)': 'tuhu',
  'eshop\\.htc\\.com': 'htc',
  'roseonly\\.com\\.cn': 'roseonly',
  '\\.rong360.com': 'rong360',
  '\\.niwodai.com': 'niwodai',
  'www\\.esteelauder.com': 'esteelauder',
  '\\.saksfifthavenue.com': 'saksfifthavenue',
  '\\.taqu.cn': 'taqu',
  '\\.qyer.com': 'qyer',
  '\\.axmall\\.com\\.au': 'axmall',
  '\\.muji.net': 'muji',
  '(?:\\.|^)gmarket.co.kr': 'gmarket',
  'english.11st.co.kr': '11st',
  '\\.smartbargains\\.com': 'smartbargains',
  '\\.shopping\\.yahoo\\.co\\.jp': 'yahooshop',
  '\\.bloomingdales\\.com': 'bloomingdales',
  '\\.mikihouse\\.jp': 'mikihouse',
  '\\.toysrus\\.co\\.jp': 'toysrus',
  '\\.comfortfirst\\.com': 'comfortfirst',
  '\\.gymboree\\.com': 'gymboree',
  '\\.albeebaby.com': 'albeebaby',
  '\\.babymarkt.de': 'babymarkt',
  '\\.uggaustralia.co.uk': 'uggaustralia',
  'www\\.ugg\\.com': 'ugg',
  'neimanmarcus\\.com': 'neimanmarcus',
  'www\\.shoebuy.com': 'shoebuy',
  'www\\.szul\\.com': 'szul',
  'www\\.timex.com': 'timex',
  '\\.timex.com': 'timex',
  'www\\.kay.com': 'kay',
  '\\.ewatches.com': 'ewatches',
  '\\.swarovski.com': 'swarovski',
  '\\.worldofwatches.com': 'worldofwatches',
  'www.danielwellington.com': 'danielwellington',
  '\\.danielwellington\\.cn': 'danielwellington-cn',
  '\\.beautybay.com': 'beautybay',
  '\\.beauty.com': 'beauty',
  'www.beautybar.com': 'beautybar',
  'skinstore.com': 'skinstore',
  'www.laneige.com': 'laneige',
  '(?:\\.|^)bose.com': 'bose',
  '(?:\\.|^)bestbuy.com': 'bestbuy',
  'bhphotovideo.com': 'bhphotovideo',
  '(?:\\.|^)sony.jp': 'sony',
  '\\.bl\\.com': 'bl',
  '(?:\\.|^)you.163.com': 'you163',
  '(?:\\.|^)jinjiang.com': 'jinjiang',
  '(?:\\.|^)bestinfoods.com': 'bestinfoods',
  '(?:\\.|^)jinxiang.com': 'jinxiang',
  '(?:\\.|^)guojimami.com': 'guojimami',
  '(?:\\.|^)baiyangwang.com': 'baiyangwang',
  '\\.aoyou.com': 'aoyou',
  '(?:\\.|^)royyoungchemist.com.au': 'royyoungchemist',
  '(?:\\.|^)medihealshop.com': 'medihealshop',
  '(?:\\.|^)1001pharmacies.com': '1001pharmacies',
  '(?:\\.|^)lookfantastic.cn': 'lookfantastic-cn',
  '(?:\\.|^)1\\.163\\.com': '1-163',
  'www\\.kaixinbao.com': 'kaixinbao',
  '(?:\\.|^)booking.com': 'booking',
  '(?:\\.|^)juanpi.com': 'juanpi',
  '(?:\\.|^)pharmacyonline.com': 'pharmacyonline',
  '(?:\\.|^)bodyguardapotheke.com': 'bodyguardapotheke',
  '(?:\\.|^)purcotton.com': 'purcotton',
  '(?:\\.|^)wstx.com': 'wstx',
  'www\\.midea\\.com': 'midea',
  'www\\.midea\\.cn': 'midea',
  'mall\\.midea\\.com': 'midea',
  '\\.kaluli.com': 'kaluli',
  "(?:\\.|^)yunhou\\.com": "yunhou",
  "(?:\\.|^)haituncun\\.com": "haituncun",
  "(?:\\.|^)vmei\\.com": "vmei",
  "(?:\\.|^)jgb\\.cn": "jgb",
  "(?:\\.|^)51din\\.com": "51din",
  "(?:\\.|^)boqii\\.com": "boqii",
  "cn.toursforfun\\.com": "toursforfun",
  "(?:\\.|^)lulutrip\\.com": "lulutrip",
  "(?:\\.|^)spider\\.com\\.cn": "spider",
  "(?:\\.|^)walmart\\.com": "walmart",
  "mall.to8to.com": "to8to",
  'www.opposhop.cn': 'opposhop',
  'baobeigezi.com': 'baobeigezi',
  'www.yao123.com': 'yao123',
  'www.menglu.com': 'menglu',
  'www.guopi.com': 'guopi',
  'www.likeface.com': 'likeface',
  'www.mallvv.com': 'homevv',
  'www.markmall.com': 'markmall',
  'www\\.baicheng\\.com': 'baicheng',
  'www\\.suanjuzi\\.com': 'suanjuzi',
  '\\.jinxiang\\.com': 'jinxiang',
  '\\.aomygod\\.com': 'aomygod',
  '(?:\\.|^)luolai\\.cn': 'luolai',
  '\\.vivo\\.com\\.cn': 'vivo',
  '\\.dixintong\\.com': 'dixintong',
  '\\.coolpad\\.com': 'coolpad',
  '\\.skg\\.com': 'skg',
  'vip\\.iqiyi\\.com': 'iqiyi',
  '\\aolaigo\\.com': 'aolaigo',
  'vip\\.missfresh\\.cn': 'missfresh',
  '\\.pushenkuajing\\.com': 'pushenkuajing',
  'cn\\.feelunique\\.com': 'feelunique-cn',
  '\\.chemistdirect\\.com\\.au': 'chemistdirect',
  '\\.netpharmacy\\.co\\.nz': 'netpharmacy',
  '\\.pharmacy4less\\.com\\.au': 'pharmacy4less',
  '\\.pharmacydirect\\.co\\.nz': 'pharmacydirect',
  '\\.amcal\\.com\\.au': 'amcal',
  '\\.laredoute\\.cn': 'laredoute',
  'cn\\.unserekleineapotheke\\.de': 'unserekleineapotheke',
  '\\.erwinmueller\\.com\\.cn': 'erwinmueller',
  '\\.kiwidiscovery\\.co\\.nz': 'kiwidiscovery',
  '\\.springlane\\.de': 'springlane',
  '\\.jako-o\\.com': 'jako-o',
  '\\.easytoys\\.cn': 'easytoys',
  '\\.tlcpharmacy\\.cn\\.com': 'tlcpharmacy',
  '\\.bienmanger\\.cn': 'bienmanger',
  '\\.dewaren\\.com': 'dewaren',
  '\\.discount-apotheke\\.de': 'discount-apotheke',
  '\\.holland-at-home\\.com': 'holland-at-home',
  '\\.youyu\\.com': 'youyu',
  '\\.kiwistarcare\\.com': 'kiwistarcare',
  '\\.lenovomobile\\.com': 'lenovomobile',
  '\\.51taouk\\.com': '51taouk',
  '\\.kiehls\\.com': 'kiehls',
  '\\.zappos\\.com': 'zappos',
  '\\.coach\\.com': 'coach',
  '\\.yoox\\.cn': 'yoox',
  '\\.11street\\.com\\.cn': '11street',
  '\\.ba\\.de': 'ba',
  'www\\.hqhair\\.com': 'hqhair',
  'www\\.katespade\\.co\\.uk': 'katespade',
  'cn\\.vitafy\\.de': 'vitafy',
  'www\\.yoox\\.cn': 'yoox',
  '\\.m18\\.com': 'm18',
  'comfortfirst\\.com': 'comfortfirst',
  'china\\.lotte\\.com': 'lotte',
  '\\.carrefour\\.cn': 'carrefour',
  'www\\.tea7\\.com': 'tea7',
  '\\.zhongjiu.cn': 'zhongjiu',
  '\\.puzeyf\\.com': 'puzeyf',
  'www\\.kohls\\.com': 'kohls',
  'www\\.bodybuilding\\.com': 'bodybuilding',
  '\\.nordstrom\\.com': 'nordstrom',
  'www\\.costco\\.com': 'costco',
  'www\\.target\\.com': 'target',
  'www\\.kmart\\.com': 'kmart',
  'www\\.overstock\\.com': 'overstock',
  'www\\.sears\\.com': 'sears',
  'www\\.shoprobam\\.com': 'shoprobam',
  'mall\\.goumin\\.com': 'goumin',
  'www\\.flyco\\.com': 'flyco',
  'www\\.opplestore\\.com': 'opplestore',
  'www\\.syshop\\.com': 'syshop',
  'www\\.yfdyf\\.com': 'yfdyf',
  'ssl\\.hotels\\.cn': 'hotels',
  'aihuishou\\.com': 'aihuishou',
  'www\\.thebeastshop\\.com': 'thebeastshop',
  'www\\.jomooshop\\.com': 'jomooshop',
  'www\\.septwolves\\.cn': 'septwolves',
  '\\.lianjia\\.com': {
    name: 'lianjia',
    hidebar: true
  },
  '\\.maitian\\.cn': {
    name: 'maitian',
    hidebar: true
  },
  '\\.5i5j\\.com': {
    name: '5i5j',
    hidebar: true
  },
  '\\.ke\\.com': {
    name: 'ke',
    hidebar: true
  },
  '\\.6\\.cn': 'home6',
  'www\\.800pharm\\.com': '800pharm',
  'www\\.ujipin\\.com': 'ujipin',
  'pc\\.mmb\\.cn': 'mmb',
  'www\\.ihaveu\\.com': 'ihaveu',
  'mall\\.ikang\\.com': 'ikang',
  'www\\.wyn88\\.com': 'wyn88',
  'www\\.mcake\\.com': 'mcake',
  'www\\.xmeise\\.com': 'xmeise',
  'www\\.lecake\\.com': 'lecake',
  'www\\.jd100\\.com': 'jd100',
  'www\\.jinghua\\.com': 'jinghua',
  'www\\.taohwu\\.com': 'taohwu',
  'www\\.zbird\\.com': 'zbird',
  'www\\.km1818\\.com': 'km1818',
  'www\\.zocai\\.com': 'zocai',
  'www\\.taoshu\\.com': 'taoshu',
  'www\\.aizhigu\\.com\\.cn': 'aizhigu',
  'www\\.tieyou\\.com': 'tieyou',
  'www\\.fieldschina\\.com': 'fieldschina',
  'www\\.wdmcake\\.cn': 'wdmcake',
  'mall\\.lqxshop\\.com': 'lqxshop',
  'www\\.usashopcn\\.com': 'usashopcn',
  'www\\.wine9\\.com': 'wine9',
  'www\\.qipaimall\\.com': 'qipaimall',
  'www\\.yododo\\.cn': 'yododo',
  'www\\.yoger\\.com\\.cn': 'yoger',
  'www\\.dapu\\.dapu': 'dapu',
  'www\\.winona\\.cn': 'winona',
  'www\\.wl\\.cn': 'wl',
  'www\\.shanmai\\.cn': 'shanmai',
  'www\\.zgshoes\\.com': 'zgshoes',
  'www\\.maichawang\\.com': 'maichawang',
  'www\\.uemall\\.com': 'uemall',
  '\\.51you\\.com': '51you',
  '\\.beifabook\\.com': 'beifabook',
  'www\\.jpeen\\.com': 'jpeen',
  'www\\.huatuoyf\\.com': 'huatuoyf',
  'www\\.fengbuy\\.com': 'fengbuy',
  '\\.uiyi\\.com': 'uiyi',
  'www\\.hecha\\.cn': 'hecha',
  'www\\.t10\\.com': 't10',
  'www\\.qw\\.cc': 'qw',
  '\\.miutour\\.com': 'miutour',
  'www\\.ehaoyao\\.com': 'ehaoyao',
  'www\\.idx\\.com\\.cn': 'idx',
  'www\\.uya100\\.com': 'uya100',
  'www\\.ssnewyork\\.com': 'ssnewyork',
  'www\\.clinique\\.com': 'clinique',
  'www\\.hxepawn\\.com': 'hxepawn',
  'www\\.brooksbrothers\\.com': 'brooksbrothers',
  'www\\.omtao\\.com': 'omtao',
  'www\\.ep365\\.com': 'ep365',
  'www\\.columbiasports\\.cn': 'columbiasports',
  '\\.bstapp\\.cn': 'bstapp',
  'www\\.newbalance\\.com': 'newbalance',
  '\\.wjike\\.com': 'wjike',
  'www\\.bally\\.co\\.uk': 'bally',
  '\\.1hai\\.cn': '1hai',
  'www\\.jialich\\.cn': 'jialich',
  '\\.takeya\\.co\\.jp': 'takeya',
  'www\\.forever21\\.com': 'forever21',
  'www\\.modernavenue\\.com': 'modernavenue',
  'www\\.muniao\\.com': 'muniao',
  '\\.centanet\\.com': 'centanet',
  'www\\.zuihuiyou\\.com': 'zuihuiyou',
  'www\\.bobbibrowncosmetic\\.com': 'bobbibrowncosmetics',
  'www\\.super-in\\.com': 'super-in',
  'www\\.hangowa\\.com': 'hangowa',
  'www\\.levi\\.com': 'levi',
  'www\\.fila\\.cn': 'fila',
  'www\\.converse\\.com\\.cn': 'converse',
  'us\\.nextdirect\\.com': 'nextdirect',
  'www\\.itrip\\.com': 'itrip',
  'www\\.lashou\\.com': 'lashou',
  'www\\.liufeng\\.com': 'liufeng',
  'www\\.trt\\.hk': 'trt',
  'www1\\.wodinghua\\.com': 'wodinghua',
  '\\.wuliwuli\\.cn': 'wuliwuli',
  'www\\.forestfood\\.com': 'forestfood',
  '\\.bonjourhk\\.com': 'bonjourhk',
  'www\\.vitagou\\.hk': 'vitagou',
  '\\.kinhom\\.com': 'kinhom',
  'www\\.360lj\\.com': '360lj',
  'v\\.changba\\.com': 'changba',
  'www\\.oakley\\.com': 'oakley',
  'www\\.jpyoo\\.com': 'jpyoo',
  'www\\.clarksusa\\.com': 'clarksusa',
  'www\\.starwoodhotels\\.com': 'starwoodhotels',
  'www\\.marriott\\.com\\.cn': 'marriott-cn',
  'www\\.yesstyle\\.com': 'yesstyle',
  '^evisu\\.com': 'evisu',
  '^lifeseasy\\.com\\.cn': 'lifeseasy',
  'www\\.ccxpet\\.com': 'ccxpet',
  'www\\.0061\\.com\\.au': 'x0061',
  'www\\.kkguan\\.com': 'kkguan',
  'www\\.style-oclock\\.com': 'style-oclock',
  'www\\.peikua\\.com': 'peikua',
  'www\\.airfrance\\.(?:us|com)': 'airfrance',
  'www\\.accorhotels\\.com': 'accorhotels',
  'www\\.spacenk\\.com': 'spacenk',
  'www\\.haichufang\\.com': 'haichufang',
  'us\\.wconcept\\.com': 'wconcept',
  'www\\.gant\\.co\\.uk': 'gant',
  'www\\.catfootwear\\.com': 'catfootwear',
  'www\\.saucony\\.com': 'saucony',
  'www\\.zaozuo\\.com': 'zaozuo',
  '\\.littleswan\\.com': 'littleswan',
  'www\\.can\\.tv': 'can',
  'www\\.ssrj\\.com': 'ssrj',
  'shop\\.guess\\.net\\.au': 'guess',
  'www\\.etihad\\.com': 'etihad',
  'store\\.fiil\\.com': 'fiil',
  'www\\.mianshui365\\.com': 'mianshui365',
  'www\\.tegoushe\\.com': 'tegoushe',
  'www\\.wiggle\\.cn': 'wiggle',
  'www\\.mdreams\\.com': 'mdreams',
  '\\.ecovacs\\.cn': 'ecovacs',
  'www\\.calvinklein\\.cn': 'calvinklein',
  'cn\\.memebox\\.com': 'memebox',
  'www3\\.hilton\\.com': 'hilton',
  'www\\.revolve\\.com': 'revolve',
  'www\\.shiseido\\.com': 'shiseido',
  'www\\.clarinsusa\\.com': 'clarinsusa',
  'store\\.starbucks\\.com': 'starbucks',
  'www\\.ray-ban\\.com': 'ray-ban',
  'us\\.puma\\.com': 'puma',
  'www\\.nautica\\.com': 'nautica',
  'www\\.cremedelamer\\.com': 'cremedelamer',
  'www\\.kipling-usa\\.com': 'kipling-usa',
  'www\\.jurlique\\.com': 'jurlique',
  'www\\.hushpuppies\\.com': 'hushpuppies',
  'www\\.origins\\.com': 'origins',
  'www\\.follifollie\\.us\\.com': 'follifollie',
  'usa\\.loccitane\\.com': 'loccitane',
  '\\.hpstore\\.cn': 'hpstore',
  '\\.01home\\.com': '01home',
  'www\\.healthpost\\.co\\.nz': 'healthpost',
  '\\.imengxiang\\.cn': 'imengxiang',
  'www\\.hysj\\.com': 'hysj',
  '\\.saohuo7\\.com': 'saohuo7',
  '\\.repai\\.com': 'repai',
  'www\\.mayi\\.com': 'mayi',
  '\\.yinpiao\\.com': 'yinpiao',
  '\\.ihome-ins.com': 'ihome-ins',
  '\\.incake\\.net': 'incake',
  '\\.kuwo\\.cn': 'kuwo',
  'www\\.ywart\\.com': 'ywart',
  'www\\.cct\\.cn': 'cct',
  'www\\.ansgo\\.com': 'ansgo',
  'www\\.pilibaba\\.com': 'pilibaba',
  'www\\.xiaoniu88\\.com': 'xiaoniu88',
  'www\\.ahava\\.com': 'ahava',
  '\\.5-fifth\\.com': '5-fifth',
  '\\.thewatchhut\\.co\\.uk': 'thewatchhut',
  '\\.babyhaven\\.com': 'babyhaven',
  'cn\\.cosme-de\\.com': 'cosme-de',
  'cn\\.getthelabel\\.com': 'getthelabel',
  'cn\\.matsuya\\.com': 'matsuya',
  'www\\.timberland\\.com': 'timberland',
  '\\.topman\\.com': 'topman',
  'www\\.homeaway\\.com': 'homeaway',
  'www\\.beautyexpert\\.com': 'beautyexpert',
  '\\.haimi\\.com': 'haimi',
  'www\\.mankind\\.co\\.uk': 'mankind',
  'www\\.thehut\\.com': 'thehut',
  'www\\.topshop\\.com': 'topshop',
  'mamaladen\\.com': 'mamaladen',
  'www\\.traveler-store\\.com': 'traveler-store',
  'www\\.travelzoo\\.com': 'travelzoo',
  'www\\.umishoes\\.com': 'umishoes',
  'store\\.ferrari\\.com': 'ferrari',
  'willerexpress\\.com': 'willerexpress',
  'www\\.unineed\\.com': 'unineed',
  'www\\.acnestudios\\.com': 'acnestudios',
  'www\\.aeropostale\\.com': 'aeropostale',
  'www\\.agoda\\.com': 'agoda',
  'www\\.albamoda\\.de': 'albamoda',
  'www\\.allbeauty\\.com': 'allbeauty',
  'www\\.allsaints\\.com': 'allsaints',
  'www\\.allsole\\.com': 'allsole',
  'www\\.urbanoutfitters\\.com': 'urbanoutfitters',
  'www\\.vitabiotics\\.com': 'vitabiotics',
  'www\\.bellemaison\\.jp': 'bellemaison',
  'www\\.benefitcosmetics\\.com': 'benefitcosmetics',
  'www\\.bhcosmetics\\.com': 'bhcosmetics',
  'www\\.bjmylikes\\.com': 'bjmylikes',
  'www\\.vitaminbay\\.com': 'vitaminbay',
  'www\\.waitrose\\.com': 'waitrose',
  'www\\.wolfordshop\\.co\\.uk': 'wolfordshop',
  'www\\.boohoo\\.com': 'boohoo',
  'www\\.boots\\.com': 'boots',
  'www\\.britishcornershop\\.co\\.uk': 'britishcornershop',
  'www\\.yirendai\\.com': 'yirendai',
  'www\\.ys7\\.com': 'ys7',
  'www\\.coggles\\.com': 'coggles',
  'www\\.corsetdeal\\.com': 'corsetdeal',
  '^cottonon\\.com': 'cottonon',
  'www\\.crocs\\.co\\.uk': 'crocs',
  'www\\.cruisefashion\\.com': 'cruisefashion',
  'www\\.dell\\.com': 'dell',
  'www\\.dermstore\\.com': 'dermstore',
  'www\\.disneystore\\.com': 'disneystore',
  'www\\.dorothyperkins\\.com': 'dorothyperkins',
  'www\\.doudoukang\\.com': 'doudoukang',
  'www\\.dujiake\\.com': 'dujiake',
  'www\\.dunelondon\\.com': 'dunelondon',
  'www\\.eastbay\\.com': 'eastbay',
  'www\\.eastdane\\.com': 'eastdane',
  'www\\.zaful\\.com': 'zaful',
  'www\\.zavvi\\.com': 'zavvi',
  'cn\\.feinkeit\\.de': 'feinkeit',
  'www\\.eibmarkt\\.com': 'eibmarkt',
  'www\\.belluna\\.cn': 'belluna',
  'www\\.emirates\\.com': 'emirates',
  'www\\.ems\\.com': 'ems',
  'www\\.eterna\\.de': 'eterna',
  'www\\.eurail\\.com': 'eurail',
  'www\\.exantediet\\.com': 'exantediet',
  'www\\.expedia\\.co\\.uk': 'expedia',
  'www\\.falke\\.com': 'falke',
  'www\\.famousfootwear\\.com': 'famousfootwear',
  'www\\.foreo\\.com': 'foreo',
  'www\\.wangxinlicai\\.com': 'wangxinlicai',
  'www\\.foreverunique\\.co\\.uk': 'foreverunique',
  'www\\.au\\.forzieri\\.com': 'forzieri',
  'www\\.freecountry\\.com': 'freecountry',
  'www\\.frenchconnection\\.com': 'frenchconnection',
  'www\\.gift-land\\.com': 'gift-land',
  'cn\\.growgorgeous\\.com': 'growgorgeous',
  'www\\.hotel\\.info': 'hotel',
  'www\\.houseoffraser\\.co\\.uk': 'houseoffraser',
  'www\\.huizuche\\.com': 'huizuche',
  'www\\.iwantoneofthose\\.com': 'iwantoneofthose',
  'www\\.jjglobal\\.com': 'jjglobal',
  'www\\.juicycouture\\.com': 'juicycouture',
  'www\\.kenko\\.com': 'kenko',
  'www\\.kikocosmetics\\.com': 'kikocosmetics',
  'www\\.lancerskincare\\.co\\.uk': 'lancerskincare',
  'shop\\.lego\\.com': 'lego',
  'www\\.lordandtaylor\\.com': 'lordandtaylor',
  'www\\.maizhi\\.com': 'maizhi',
  'www\\.matchesfashion\\.com': 'matchesfashion',
  'www\\.matsukiyo\\.co\\.jp': 'matsukiyo',
  'www\\.microsoft\\.com': 'microsoft',
  'cn\\.mioskincare\\.com': 'mioskincare',
  'www\\.missselfridge\\.com': 'missselfridge',
  'www\\.mountaingear\\.com': 'mountaingear',
  'www\\.mybag\\.com': 'mybag',
  'www\\.myprotein\\.com': 'myprotein-com',
  'www\\.myvitamins\\.com': 'myvitamins',
  'www\\.net-a-porter\\.com': 'net-a-porter',
  'www\\.newbalance\\.co\\.uk': 'newbalance-uk',
  'www\\.newlook\\.com': 'newlook',
  'www\\.nike\\.com\\.br': 'nike-br',
  'www\\.nike\\.com\\.hk': 'nike-hk',
  'www\\.nyandcompany\\.com': 'nyandcompany',
  'www\\.oasis-stores\\.com': 'oasis-stores',
  'www\\.orbitz\\.com': 'orbitz',
  'www\\.orchira\\.co\\.uk': 'orchira',
  'www\\.origins\\.co\\.uk': 'origins-uk',
  'www\\.petsmart\\.com': 'petsmart',
  'www\\.probikekit\\.co\\.uk': 'probikekit',
  'www\\.qatarairways\\.com': 'qatarairways',
  'www\\.radley\\.co\\.uk': 'radley',
  'www\\.ralphlauren\\.cn': 'ralphlauren',
  'www\\.rebeccaminkoff\\.com': 'rebeccaminkoff',
  'www\\.rentalcars\\.com': 'rentalcars',
  'www\\.ricaud\\.com': 'ricaud',
  'www\\.rockport\\.com': 'rockport',
  'www\\.ruelala\\.com': 'ruelala',
  'www\\.saksoff5th\\.com': 'saksoff5th',
  'www\\.sc24\\.com': 'sc24',
  'www\\.shoes\\.com': 'shoes',
  'www\\.shopspring\\.com': 'shopspring',
  'www\\.simplysupplements\\.co\\.uk': 'simplysupplements',
  'www\\.ssense\\.com': 'ssense',
  'www\\.stevemadden\\.com': 'stevemadden',
  'www\\.taodo\\.com': 'taodo',
  'www\\.michaelkors\\.cn': 'michaelkors',
  'www\\.ttcj\\.tv': 'ttcj',
  'www\\.uf-club\\.com': 'uf-club',
  'www\\.zhaidou\\.com': 'zhaidou',
  'www\\.163yun\\.com': '163yun',
  'cn\\.apo\\.com': 'apo',
  'loan-m\\.jimu\\.com': 'jimu',
  'www\\.hao24\\.com': 'hao24',
  'm\\.seagoor\\.com': 'seagoor',
  'www\\.wannar\\.com': 'wannar',
  'www\\.caihang\\.com': 'caihang',
  'www\\.csmall\\.com': 'csmall',
  'www\\.kuajing\\.com': 'kuajing',
  'www\\.millenniumhotels\\.com': 'millenniumhotels',
  'www\\.reebonz\\.cn': 'reebonz',
  'cn\\.wemakeprice\\.com': 'wemakeprice',
  'www\\.wzhouhui\\.com': 'wzhouhui',
  'www\\.huijiayou\\.cn': 'huijiayou',
  'www\\.melimelo\\.cn': 'melimelo',
  'www\\.91xcm\\.com': '91xcm',
  'zh\\.ashford\\.com': 'ashford-zh',
  'cjonmart\\.cn': 'cjonmart',
  'www\\.cnyto\\.me': 'cnyto',
  'www\\.granddfs\\.com': 'granddfs',
  'www\\.officedepot\\.com': 'officedepot',
  'www\\.tianhong\\.cn': 'tianhong',
  'www\\.yilingshop\\.com': 'yilingshop',
  'www\\.klook\\.com': 'klook',
  'm\\.ddky\\.com': 'ddky',
  'www\\.chinaacc\\.com': 'chinaacc',
  'www\\.bmai\\.com': 'bmai',
  'm\\.inke\\.cn': 'inke',
  'www\\.junrongdai\\.com': 'junrongdai',
  'www\\.napai\\.cn': 'napai',
  'mall\\.gree\\.com': 'gree',
  'sales\\.allianz\\.com': 'allianz',
  'v\\.youmi\\.cn': 'youmi',
  'www\\.21cake\\.com': '21cake',
  'www\\.56ren\\.com': '56ren',
  'www\\.anantara\\.com': 'anantara',
  'www\\.chesudi\\.com': 'chesudi',
  'www\\.ehmall\\.com': 'ehmall',
  'www\\.farfetch\\.cn': 'farfetch',
  'www\\.freepeople\\.com': 'freepeople',
  'www\\.gaosouyi\\.com': 'gaosouyi',
  'www\\.charm-color\\.': 'charm-color',
  'www\\.felissimo\\.co\\.jp': 'felissimo',
  'www\\.surfstitch\\.com': 'surfstitch',
  'www\\.lornajane\\.sg': 'lornajane',
  'www\\.reiss\\.com': 'reiss',
  'www\\.gzl\\.com\\.cn': 'gzl',
  'www\\.9drug\\.com': '9drug',
  'www\\.yungoubs\\.com': 'yungoubs',
  'www\\.yencity\\.com': 'yencity',
  'class\\.hujiang\\.com': 'hujiang',
  'iphx\\.meituan\\.com': 'meituan-iphx',
  'www\\.svgouwu\\.com': 'svgouwu',
  'linktech\\.hqwx\\.com': 'hqwx',
  '\\.hysjg\\.com': 'hysjg',
  '\\.maimaicn\\.com': 'maimaicn',
  '\\.tyfo\\.com': 'tyfo',
  'www\\.tthigo\\.com': 'tthigo',
  'www\\.mayn\\.com\\.cn': 'mayn',
  '\\.harrods\\.com': 'harrods',
  '\\.theundone\\.com': 'theundone',
  'www\\.imomoko\\.com': 'imomoko',
  'www\\.perfumesclub\\.cn': 'perfumesclub',
  'www\\.godaddy\\.com': 'godaddy',
  'www\\.mytheresa\\.com': 'mytheresa',
  'www\\.backcountry\\.com': 'backcountry',
  'www\\.marriott\\.com': 'marriott',
  'www\\.mrporter\\.com': 'mrporter',
  'www\\.priceline\\.com': 'priceline',
  'english\\.ctrip\\.com': 'ctrip-en',
  'cn\\.monnierfreres\\.com': 'monnierfreres',
  'www\\.myprotein\\.cn': 'myprotein',
  'www\\.toryburch\\.com': 'toryburch-com',
  'www\\.italist\\.com': 'italist',
  'www\\.askderm\\.com': 'askderm',
  'www\\.tatcha\\.com': 'tatcha',
  'www\\.hollandandbarrett\\.com': 'hollandandbarrett',
  'www\\.ninewest\\.com': 'ninewest',
  'www\\.bergdorfgoodman\\.com': 'bergdorfgoodman',
  'www\\.ihg\\.com': 'ihg',
  'www\\.footlocker\\.com': 'footlocker',
  'www\\.rodial\\.co': 'rodial',
  'www\\.feelunique\\.com': 'feelunique',
  'www\\.jackwills\\.com': 'jackwills',
  'www\\.kidsroom\\.de': 'kidsroom',
  'cn\\.dod\\.nl': 'dod',
  'www\\.karenmillen\\.com': 'karenmillen',
  'cn\\.illicopharma\\.com': 'illicopharma',
  'www\\.tedbaker\\.com': 'tedbaker',
  'www\\.b-glowing\\.com': 'b-glowing',
  'www\\.adiexpress\\.com': 'adiexpress',
  'www\\.fragrancex\\.com': 'fragrancex',
  'www\\.peterthomasroth\\.com': 'peterthomasroth',
  'www\\.gap\\.com': 'gap-com',
  'www\\.cecile\\.co': 'cecile',
  'www\\.barneys\\.com': 'barneys',
  'www\\.debuycn\\.com': 'debuycn',
  'www\\.smashbox\\.com': 'smashbox',
  'www\\.lastcall\\.com': 'lastcall',
  'www\\.superdrug\\.com': 'superdrug',
  'www\\.libertylondon\\.com': 'libertylondon',
  'www\\.chemistdirect\\.co\\.uk': 'chemistdirect-uk',
  'www\\.skincarerx\\.com': 'skincarerx',
  'www\\.haba\\.co': 'haba',
  'shop\\.panasonic\\.com': 'panasonic',
  'www\\.beautifiedyou\\.com': 'beautifiedyou',
  'store\\.nba\\.com': 'nba',
  'www\\.elfcosmetics\\.com': 'elfcosmetics',
  'www\\.uniqlo\\.com': 'uniqlo',
  'www\\.uniqlo\\.cn': 'uniqlo',
  'www\\.colehaan\\.com': 'colehaan',
  'www\\.carters\\.com': 'carters',
  'www\\.sportsdirect\\.com': 'sportsdirect',
  'www\\.adorama\\.com': 'adorama',
  'www\\.ae\\.com': 'ae',
  'us\\.amorepacific\\.com': 'amorepacific',
  'www\\.anntaylor\\.com': 'anntaylor',
  'clearance\\.asics\\.com': 'asics',
  'www\\.asos\\.com': 'asos',
  'www\\.aveneusa\\.com': 'aveneusa',
  'www\\.barneyswarehouse\\.com': 'barneyswarehouse',
  'bensherman\\.com': 'bensherman',
  'www\\.blissworld\\.com': 'blissworld',
  'www\\.blueandcream\\.com': 'blueandcream',
  'www\\.bonds\\.com': 'bonds',
  'www\\.cookieskids\\.com': 'cookieskids',
  'www\\.cosmeland\\.jp': 'cosmeland',
  'www\\.crabtree-evelyn\\.com': 'crabtree-evelyn',
  'www\\.crocs\\.ca': 'crocs-ca',
  'www\\.darphin\\.com': 'darphin',
  'www\\.davidscookies\\.com': 'davidscookies',
  'www\\.dickiesstore\\.co': 'dickiesstore',
  'us\\.dockers\\.com': 'dockers',
  'www\\.easyspirit\\.com': 'easyspirit',
  'www\\.ebags\\.com': 'ebags',
  'www\\.echemist\\.co': 'echemist',
  'www\\.eddiebauer\\.com': 'eddiebauer',
  'www\\.elemis\\.com': 'elemis',
  'www\\.elizabetharden\\.co': 'elizabetharden',
  'www\\.ena\\.travel': 'ena',
  'www\\.evitamins\\.com': 'evitamins',
  'www\\.fashionesta\\.com': 'fashionesta',
  'www\\.figleaves\\.com': 'figleaves',
  'www\\.folica\\.com': 'folica',
  'www\\.fragrancenet\\.com': 'fragrancenet',
  'www\\.glamglow\\.co\\.uk': 'glamglow-uk',
  'www\\.godivachocolates\\.co': 'godivachocolates',
  'www\\.goldsmiths\\.co': 'goldsmiths',
  'www\\.growgorgeous\\.co\\.uk': 'growgorgeous-uk',
  'www\\.happysocks\\.com': 'happysocks',
  'www\\.harveynichols\\.com': 'harveynichols',
  'www\\.hatley\\.com': 'hatley',
  'www\\.herbspro\\.com': 'herbspro',
  'www\\.houseofholland\\.co': 'houseofholland',
  'www\\.jayjays\\.com': 'jayjays',
  'www\\.jetairways\\.com': 'jetairways',
  'www\\.journeys\\.com': 'journeys',
  'www\\.karmaloop\\.com': 'karmaloop',
  'www\\.keds\\.com': 'keds',
  'www\\.labseries\\.co': 'labseries',
  'leejeans\\.com': 'leejeans',
  'livingsocial\\.com': 'livingsocial',
  'www\\.wkzuche\\.com': 'wkzuche',
  'www\\.uzise\\.com': 'uzise',
  'm\\.laiyifen\\.com': 'laiyifen',
  'www\\.avast\\.com': 'avast',
  'usa\\.kaspersky\\.com': 'kaspersky',
  'www\\.steepandcheap\\.com': 'steepandcheap',
  'www\\.glamglow\\.com': 'glamglow-com',
  'www\\.cledepeaubeaute\\.com': 'cledepeaubeaute',
  'www\\.kicksusa\\.com': 'kicksusa',
  'www\\.lacoste\\.com': 'lacoste',
  '.*\\.bilibili\\.com': 'bilibili',
  'www\\.perriconemd\\.com': 'perriconemd',
  'www\\.gemvara\\.com': 'gemvara',
  'www\\.bluenile\\.com': 'bluenile',
  'www\\.modaoperandi\\.com': 'modaoperandi',
  'www\\.parrot\\.com': 'parrot',
  'cn\\.fashionbunker\\.com': 'fashionbunker',
  'www\\.final-score\\.com': 'final-score',
  'www\\.dkny\\.com': 'dkny',
  'shop\\.mango\\.com': 'mango',
  'www\\.charlottetilbury\\.com': 'charlottetilbury',
  'www\\.vmware\\.com': 'vmware',
  'www\\.avira\\.com': 'avira',
  'www\\.jewelry\\.com': 'jewelry',
  'www\\.eset\\.com': 'eset',
  'buy\\.norton\\.com': 'norton',
  'www\\.jimmyjazz\\.com': 'jimmyjazz',
  'www\\.roxy\\.com': 'roxy',
  'www\\.nastygal\\.com': 'nastygal',
  'www\\.marcjacobs\\.com': 'marcjacobs',
  '(?:^|www\\.)beastsmode\\.cn': 'beastsmode',
  'www\\.theapollobox\\.com': 'theapollobox',
  'www\\.yamibuy\\.com': 'yamibuy',
  'www\\.hbx\\.com': 'hbx',
  'www\\.horchow\\.com': 'horchow',
  'www\\.bluefly\\.com': 'bluefly',
  'www\\.swansonvitamins\\.com': 'swansonvitamins',
  'www\\.jcrew\\.com': 'jcrew',
  'www\\.bebe\\.com': 'bebe',
  'www\\.mucfc\\.com': 'mucfc',
  'www\\.only\\.cn': 'only',
  'www\\.veromoda\\.com': 'veromoda',
  'www\\.jackjones\\.com': 'jackjones',
  'www\\.selected\\.com': 'selected',
  'www\\.hanes\\.com': 'hanes',
  'www\\.algenist\\.com': 'algenist',
  '(?:^|www\\.)factory\\.jcrew\\.com': 'jcrew-factory',
  'www\\.lolewomen\\.com': 'lolewomen',
  'www\\.underarmour\\.com': 'underarmour-com',
  'www\\.theory\\.com': 'theory',
  'www\\.intimina\\.com': 'intimina',
  'www\\.nydj\\.com': 'nydj',
  'www\\.jny\\.com': 'jny',
  'bonobos\\.com': 'bonobos',
  'www\\.alphaindustries\\.com': 'alphaindustries',
  'venuekings\\.com': 'venuekings',
  '(?:^|www\\.)goop\\.com': 'goop',
  'www\\.silkyscents\\.com': 'silkyscents',
  'www\\.shopsky\\.com': 'shopsky',
  'www\\.vitaminworld\\.com': 'vitaminworld',
  'www\\.bumbleandbumble\\.com': 'bumbleandbumble',
  'mattandnat\\.com': 'mattandnat',
  'www\\.ladyfootlocker\\.com': 'ladyfootlocker',
  'www\\.aliceandolivia\\.com': 'aliceandolivia',
  'www\\.lancome-usa\\.com': 'lancome-usa',
  'www\\.sk-ii\\.com': 'sk-ii',
  'www\\.beautifulhalo\\.com': 'beautifulhalo',
  'www\\.footaction\\.com': 'footaction',
  'www\\.vitaminshoppe\\.com': 'vitaminshoppe',
  'www\\.reebok\\.com': 'reebok',
  '(?:^|www\\.)jet\\.com': 'jet',
  'www\\.burtsbeesbaby\\.com': 'burtsbeesbaby',
  'www\\.yoins\\.com': 'yoins',
  'www\\.skechers\\.com': 'skechers',
  'www\\.toofaced\\.com': 'toofaced',
  'elevtd\\.shoebuy\\.com': 'shoebuy-elevtd',
  'www\\.katvondbeauty\\.com': 'katvondbeauty',
  'www\\.mountainsteals\\.com': 'mountainsteals',
  'www\\.tours4fun\\.com': 'tours4fun',
  'www\\.jewelryaffairs\\.com': 'jewelryaffairs',
  'www\\.perfume\\.com': 'perfume',
  'www\\.tgw\\.com': 'tgw',
  'www\\.prescriptives\\.com': 'prescriptives',
  'www\\.perryellis\\.com': 'perryellis',
  'www\\.originalpenguin\\.com': 'originalpenguin',
  'www\\.naturalizer\\.com': 'naturalizer',
  'www\\.luisaviaroma\\.com': 'luisaviaroma',
  'www\\.giorgioarmanibeauty-usa\\.com': 'giorgioarmanibeauty-usa',
  'us\\.caudalie\\.com': 'caudalie',
  'www\\.murad\\.com': 'murad',
  'www\\.betseyjohnson\\.com': 'betseyjohnson',
  'www\\.thebodyshop\\.com': 'thebodyshop',
  'hampdenclothing\\.com': 'hampdenclothing',
  'www\\.anthropologie\\.com': 'anthropologie',
  'www\\.armani\\.com': 'armani',
  'us\\.shop\\.ecco\\.com': 'ecco-us',
  'www\\.loft\\.com': 'loft',
  'www\\.shuuemura-usa\\.com': 'shuuemura-usa',
  'www\\.therealreal\\.com': 'therealreal',
  'www\\.c21stores\\.com': 'c21stores',
  'www\\.ctshirts\\.com': 'ctshirts',
  'www\\.superjeweler\\.com': 'superjeweler',
  'us\\.jimmychoo\\.com': 'jimmychoo',
  'www\\.fwrd\\.com': 'fwrd',
  'www\\.aveda\\.com': 'aveda',
  'na-kd\\.com': 'na-kd',
  'www\\.nancymeyer\\.com': 'nancymeyer',
  'www\\.baublebar\\.com': 'baublebar',
  'us\\.elevenparis\\.com': 'elevenparis',
  'www\\.lindtusa\\.com': 'lindtusa',
  'www\\.narscosmetics\\.com': 'narscosmetics',
  'www\\.jackrabbit\\.com': 'jackrabbit',
  'www\\.macmall\\.com': 'macmall',
  'www\\.champssports\\.com': 'champssports',
  'store\\.dji\\.com': 'dji',
  'www\\.bodenusa\\.com': 'bodenusa',
  'www\\.crazy8\\.com': 'crazy8',
  'www\\.moltonbrown\\.com': 'moltonbrown',
  'needsupply\\.com': 'needsupply',
  'www\\.solesociety\\.com': 'solesociety',
  'www\\.childrensplace\\.com': 'childrensplace',
  'www\\.sigmabeauty\\.com': 'sigmabeauty',
  'www\\.adidas\\.com': 'adidas-us',
  'www\\.veronicabeard\\.com': 'veronicabeard',
  'www\\.cross\\.com': 'cross',
  'www\\.monsterproducts\\.com': 'monsterproducts',
  'www\\.theoutnet\\.com': 'theoutnet',
  'www\\.clarisonic\\.com': 'clarisonic',
  'www\\.dermadoctor\\.com': 'dermadoctor',
  'www\\.solsticesunglasses\\.com': 'solsticesunglasses',
  'www\\.pixiemarket\\.com': 'pixiemarket',
  'vip\\.yunifang\\.com': 'yunifang',
  'api\\.globalwinner\\.cn': 'globalwinner',
  'www\\.biotherm-usa\\.com': 'biotherm-usa',
  'www\\.jomalone\\.com': 'jomalone',
  'www\\.yvesrocherusa\\.com': 'yvesrocherusa',
  'www\\.mountainhardwear\\.com': 'mountainhardwear',
  'www\\.boscovs\\.com': 'boscovs',
  'www\\.putmeinthestory\\.com': 'putmeinthestory',
  'www\\.petit-bateau\\.us': 'petit-bateau',
  'www\\.striderite\\.com': 'striderite',
  'www\\.bcbg\\.com': 'bcbg',
  'www\\.marissacollections\\.com': 'marissacollections',
  'www\\.chineselaundry\\.com': 'chineselaundry',
  'www\\.ylang23\\.com': 'ylang23',
  'www\\.thewalkingcompany\\.com': 'thewalkingcompany',
  'www\\.perfumania\\.com': 'perfumania',
  'www\\.philosophy\\.com': 'philosophy',
  'www\\.underarmour\\.cn': 'underarmour',
  'www\\.bestgymequipment\\.co': 'bestgymequipment',
  'thesportsedit\\.com': 'thesportsedit',
  'www\\.treds\\.co': 'treds',
  'www\\.selfridges\\.com': 'selfridges',
  'www\\.toryburch\\.co\\.uk': 'toryburch-uk',
  'zh\\.virginatlantic\\.com': 'virginatlantic',
  'www.\\chowsangsang\\.com': 'chowsangsang',
  'www.speedo.com.cn': 'speedo',
  // '\\.steampowered\\.com': 'steampowered',
  '\\.pinduoduo\\.com': 'pinduoduo',
  '\\.yangkeduo\\.com': 'yangkeduo',
  '\\.rakuten\\.co\\.jp': 'rakuten',
  '\\.computeruniverse\\.net': 'computeruniverse',
  '\\.prodirectsoccer\\.com': 'prodirectsoccer',
  '\\.prodirectrunning\\.com': 'prodirectrunning',
  '\\.dbox\\.co\\.nz': 'dbox',
  '\\.motorola\\.com\\.cn': 'motorola',
  '\\.haiershui\\.com': 'haiershui',
  '\\.wandougongzhu\\.cn': 'wandougongzhu',
  'www\\.xiaomiyoupin\\.com': 'youpin-mi',
  'bananarepublic\\.gap\\.com': 'bananarepublic-gap',
  '\\.decathlon\\.com\\.cn': 'decathlon',
  '\\.oneplus\\.com': 'oneplus',
  '\\.heytap\\.com': 'heytap',
  '\\.momoshop\\.com\\.tw': 'momoshop',
  '\\.rakuten\\.com\\.tw': 'rakuten',
  '\\.books\\.com\\.tw': 'books',
  '\\.pchome\\.com\\.tw': 'pchometw',
  '\\.tw\\.buy\\.yahoo\\.com': 'twbuyyahoo',
  '\\.rakuten\\.com\\.tw': 'rakuten'
};
let productPattern = {
  'dest/test\\.html': 'test',
  '\\.books\\.com\\.tw/products/': 'books',
  '24h\\.pchome\\.com\\.tw/prod/.*': 'pchometw',
  'tw\\.buy\\.yahoo\\.com/gdsale/.*\\.html': 'twbuyyahoo',
  'tw\\.bid\\.yahoo\\.com/item/': 'twbuyyahoo',
  'tw\\.buy\\.yahoo\\.com/gdsale/gdsale\\.asp': 'twbuyyahoo',
  'https://www\\.rakuten\\.com\\.tw/shop/.*/product/.*': 'rakuten',
  '^(?:http|https)://www\\.epicgames\\.com/store\\/[\\w\\W]+': 'epic',
  '^(?:http|https)://www\\.stbchina\\.cn/item.html#\\?itemId=\\d+': 'heytap',
  '^(?:http|https)://www\\.heytap\\.com/products\\/\\d+\\.html': 'heytap',
  '^(?:http|https)://shopee\\.tw/.*\\.\\d+\\.\\d+': 'shopee',
  '^(?:http|https)://shopee\\.tw/product\\/\\d+\\/\\d+': 'shopee',
  'https://www\\.momoshop\\.com\\.tw/goods/GoodsDetail.jsp': 'momoshop',
  '^(?:http|https)://traveldetail\\.fliggy\\.com/item.htm': 'fliggy',
  '^(?:http|https)://www\\.wzhouhui\\.com/product[\\d\\-\\/]+.html': 'wzhouhui',
  '^(?:http|https)://cn\\.wemakeprice\\.com/[\\d\\-\\/]+': 'wemakeprice',
  '^(?:http|https)://cn\\.dod\\.nl/product/\\d+\\.html': 'dod',
  '^(?:http|https)://www\\.decathlon\\.com\\.cn/zh/p/': 'decathlon',
  '^(?:http|https)://cn\\.apo\\.com/product/detail/\\d+': 'apo',
  '^(?:http|https)://www\\.ansgo\\.com/product-\\d+\\.html': 'ansgo',
  '^(?:http|https)://www\\.perfumesclub\\.cn/product/\\d+\\.html': 'perfumesclub',
  '^(?:http|https)://www\\.net-a-porter\\.com/cn/[a-z]{2}/product/[\\w\\W]+': 'net-a-porter',
  '^(?:http|https)://www\\.kidsroom\\.cn/zh/[\\w\\W]+': 'kidsroom',
  '^(?:http|https)://cn\\.getthelabel\\.com/product/\\d+\\.html': 'getthelabel',
  '^(?:http|https)://www\\.farfetch\\.cn/cn/shopping/[\\w\\W]+\\.aspx': 'farfetch',
  '^(?:http|https)://item\\.kongfz\\.com/book/\\d+\\.html': 'kongfz',
  '^(?:http|https)://book\\.kongfz\\.com/\\d+/\\d+/': 'kongfz',
  '^(?:http|https)://cn\\.iherb\\.com/pr/[a-z0-9A-Z-]+/\\d+': 'iherb',
  '^(?:http|https)://www\\.hqhair\\.com/[a-z0-9-]+/\\d+\\.html': 'hqhair',
  '^(?:http|https)://www\\.wl\\.cn/\\d+': 'wl',
  '^(?:http|https)://www\\.columbia\\.com/[a-z0-9A-Z-]+\\.html\\?cgid=': 'columbia',
  '^(?:http|https)://www\\.columbiasports\\.cn/product-\\d+\\.html': 'columbiasports',
  '^(?:http|https)://www\\.ehaoyao\\.com/product-\\d+\\.html': 'ehaoyao',
  '^(?:http|https)://www\\.bhphotovideo\\.com/c/product/\\d+': 'bhphotovideo',
  '^(?:http|https)://www\\.shoes\\.com/[a-z0-9-]+/\\d+/\\d+': 'shoes',
  '^(?:http|https)://www\\.jomashop\\.com/[a-z0-9-]+\\.html': 'jomashop',
  '^(?:http|https)://cn\\.pharmacydirect\\.co\\.nz/\\d+\\.html': 'pharmacydirect',
  '^(?:http|https)://cn\\.pharmacydirect\\.co\\.nz/product/\\d+\\.html': 'pharmacydirect',
  '^(?:http|https)://www\\.holland-at-home\\.com/cn/(\\w+/){1,5}\\w+\\.html': 'holland-at-home',
  '^(?:http|https)://cn\\.holland-at-home\\.com/product/\\d+.html': 'holland-at-home',
  '^(?:http|https)://www\\.rei\\.com/product/\\d+': 'rei',
  '^(?:http|https)://item\\.aomygod\\.com/\\d+\\.html': 'aomygod',
  '^(?:http|https)://www\\.huatuoyf\\.com/product/\\d+\\.htm': 'huatuoyf',
  '^(?:http|https)://www\\.forever21\\.com/uk/shop/catalog/product': 'forever21',
  '^(?:http|https)://zh\\.ashford\\.com/([a-z0-9-]+/){1,6}[a-zA-Z0-9]+\\.pid': 'ashford-zh',
  '^(?:http|https)://www\\.bestbuy\\.com/[a-z]+/[a-z0-9-]+/\\d+\\.p\\?skuId=\\d+': 'bestbuy',
  '^(?:http|https)://www\\.target\\.com/p/[a-z0-0-]+': 'target',
  '^(?:http|https)://cn\\.chemistdirect\\.com\\.au/\\d+\\.html': 'chemistdirect',
  '^(?:http|https)://cn\\.chemistdirect\\.com\\.au/product/\\d+\\.html': 'chemistdirect',
  '^(?:http|https)://www\\.ba\\.de/product/\\d+\\.html': 'ba',
  '^(?:http|https)://m\\.wandougongzhu\\.cn/product/\\d+\\.html': 'wandougongzhu',
  '^(?:http|https)://cn\\.feelunique\\.com/\\d+\\.html': 'feelunique',
  '^(?:http|https)://cn\\.feelunique\\.com/product/\\d+\\.html': 'feelunique',
  '^(?:http|https)://shop\\.dixintong\\.com/products-[0-9-]+\\.html': 'dixintong',
  '^(?:http|https)://cn\\.pharmacyonline\\.com\\.au/\\d+\\.html': 'pharmacyonline',
  '^(?:http|https)://cn\\.pharmacyonline\\.com\\.au/product/\\d+\\.html': 'pharmacyonline',
  '^(?:http|https)://cn\\.discount-apotheke\\.de/\\d+\\.html': 'discount-apotheke',
  '^(?:http|https)://cn\\.discount-apotheke\\.de/product/\\d+\\.html': 'discount-apotheke',
  '^(?:http|https)://www\\.carters\\.com/[a-z0-9-]+/[A-Z]_\\d+\\.html\\?': 'carters',
  '^(?:http|https)://www\\.katespade\\.co\\.uk/[a-z-]+/([a-z0-9-]+/){1,3}[A-Za-z0-9]+\\.html': 'katespade',
  '^(?:http|https)://www\\.katespade\\.cn/[\\W\\w]+': 'katespade',
  '^(?:http|https)://www\\.beautybay\\.com/p/\\w+': 'beautybay',
  '^(?:http|https)://cn\\.pharmacy4less\\.com\\.au/\\d+\\.html': 'pharmacy4less',
  '^(?:http|https)://www\\.newegg\\.com/Product/Product\\.aspx': 'newegg-us',
  '^(?:http|https)://www\\.newbalance\\.com/pd/\\w+': 'newbalance',
  '^(?:http|https)://www\\.bodybuilding\\.com/store/[a-z0-9-]+/[a-z0-9-]+\\.html\\?skuId=': 'bodybuilding',
  '^(?:http|https)://www\\.ssnewyork\\.com/good/detail/\\d+': 'ssnewyork',
  '^(?:http|https)://www\\.wine9\\.com/\\d+\\.html': 'wine9',
  '^(?:http|https)://www\\.kohls\\.com/product/prd-\\d+': 'kohls',
  '^(?:http|https)://www\\.gnc\\.com/[a-z0-9-]+/\\d+\\.html\\?cgid=': 'gnc',
  '^(?:http|https)://www\\.qw\\.cc/goods-\\d+\\.html': 'qw',
  '^(?:http|https)://www\\.haiershui\\.com/product/\\d+\\.html': 'haiershui',
  '^(?:http|https)://www\\.ugg\\.com/[a-z0-9-]+/[a-z0-9-]+/\\d+\\.html': 'ugg',
  '^(?:http|https)://www\\.ugg\\.cn/product-\\d+\\.html': 'ugg',
  '^(?:http|https)://www\\.yoger\\.com\\.cn/product/\\d+\\.html': 'yoger',
  '^(?:http|https)://www\\.flyco\\.com/goods-[a-zA-Z0-9-_]+\\.html': 'flyco',
  '^(?:http|https)://www\\.yfdyf\\.com/product-\\d+\\.html': 'yfdyf',
  '^(?:http|https)://www\\.joesnewbalanceoutlet\\.com/product/': 'joesnewbalanceoutlet',
  '^(?:http|https)://www\\.jomoo\\.com\\.cn/item/[a-z0-9-]+\\.htm': 'jomooshop',
  '^(?:http|https)://www\\.dapu\\.com/product-\\d+\\.html': 'dapu',
  '^(?:http|https)://china\\.coach\\.com/product/\\d+': 'coach',
  '^(?:http|https)://china\\.coach\\.com/[a-z\\-]+/\\d+_\\w+': 'coach',
  '^(?:http|https)://www\\.shanmai\\.cn/product-\\d+\\.html': 'shanmai',
  '^(?:http|https)://www\\.fengbuy\\.com/[a-z0-9-]+\\.html': 'fengbuy',
  '^(?:http|https)://www\\.t10\\.com/\\w+-\\d+/': 't10',
  '^(?:http|https)://cn\\.amcal\\.com\\.au/\\d+\\.html': 'amcal',
  '^(?:http|https)://cn\\.amcal\\.com\\.au/product/\\d+\\.html': 'amcal',
  '^(?:http|https)://cn\\.babyhaven\\.com/product/\\d+\\.html': 'babyhaven',
  '^(?:http|https)://www\\.51taouk\\.com/[A-Z0-9]+$': '51taouk',
  "^(?:http|https)://(?:www|shop)\\.usashopcn\\.com/goods\\.php\\?id=\\d+": "usashopcn",
  "^(?:http|https)://www\\.petit-bateau\\.us/[a-z0-9-]+/d/[0-9A-Z]+\\?CategoryId": "petit-bateau",
  "^(?:http|https)://www\\.tlcpharmacy\\.cn\\.com/\\d+\\.html": "bienmanger",
  "^(?:http|https)://www\\.km1818\\.com/products/\\d+\\.html": "km1818",
  "^(?:http|https)://www\\.bienmanger\\.cn/\\d+\\.html": "bienmanger",
  "^(?:http|https)://www\\.syshop\\.com/goods/gooddetail/\\d+\\.html": "syshop",
  "^(?:http|https)://www\\.qipaimall\\.com/goods/\\?goods_sn=": "qipaimall",
  "^(?:http|https)://mall\\.goumin\\.com/mall/view/\\d+": "goumin",
  "^(?:http|https)://www\\.taohwu\\.com/goods-\\d+\\.html": "taohwu",
  "^(?:http|https)://www\\.xmeise\\.com/goods-\\d+\\.html": "xmeise",
  "^(?:http|https)://www\\.septwolves\\.cn/ishop/web/theme/default/Ishop_pc/dist/#/goods_details\\?goods_id=\\d+": "septwolves",
  "^(?:http|https)://www\\.kiehls\\.com/[a-z]+/[a-z0-9-]+/[a-z0-9-]+/\\d+\\.html": "kiehls",
  "^(?:http|https)://www\\.puzeyf\\.com/detail/\\d+\\.html": "puzeyf",
  "^(?:http|https)://www\\.aizhigu\\.com\\.cn/product\\.\\d+\\.html": "aizhigu",
  "^(?:http|https)://www\\.hecha\\.cn/sgoods-\\d+\\.html": "hecha",
  "^(?:http|https)://www\\.zgshoes\\.com/goods-\\d+\\.html": "zgshoes",
  "^(?:http|https)://cn\\.takeya\\.co\\.jp/\\d+\\.html/": "takeya",
  "^(?:http|https)://cn\\.takeya\\.co\\.jp/product/\\d+\\.html": "takeya",
  "^(?:http|https)://www\\.shoprobam\\.com/Home/Products/detail/gid/\\d+": "shoprobam",
  "^(?:http|https)://www\\.opplestore\\.com/item\\.html\\?itemId=\\d+": "opplestore",
  "^(?:http|https)://www\\.maichawang\\.com/goods-\\d+\\.html": "maichawang",
  "^(?:http|https)://www\\.bose\\.com/en_us/products/": "bose",
  "^(?:http|https)://dewaren\\.com/cn/[a-zA-Z0-9]+/[a-zA-Z0-9-]+/\\w+/[0-9]+\\.html": "dewaren",
  "^(?:http|https)://dewaren\\.com/cn/[a-zA-Z0-9-]+/\\w+[0-9\\-]+\\.html": "dewaren",
  "^(?:http|https)://www\\.winona\\.cn/product/[0-9]+\\.html": "winona",
  "^(?:http|https)://www\\.motorola\\.com\\.cn/store/[0-9_]+\\.html": "motorola",
  "^(?:http|https)://www\\.motorola\\.com\\.cn/[a-z0-9]+/[a-z0-9]+/index\\.html": "motorola",
  "^(?:http|https)://www\\.danielwellington\\.cn/[a-z0-9-]+[^\\/]$": "danielwellington-cn",
  "^(?:http|https)://www\\.danielwellington\\.com/us/[a-z0-9-]+[^\\/]$": "danielwellington",
  "^(?:http|https)://www\\.danielwellington\\.com/global/[a-z0-9-]+[^\\/]$": "danielwellington",
  '^(?:http|https)://youhui\\.pinduoduo\\.com/goods/goods-detail\\?goodsId=\\d+': 'pinduoduo',
  // "^(?:http|https)://www.iherb.com/pr/[a-z0-9A-Z-]+/\\d+": "iherb",
  "^(?:http|https)://(?:mobile\\.|)yangkeduo.com/goods(?:2|1)?\\.html\\?": "yangkeduo",
  "^(?:http|https)://www.finishline.com/store/product/": "finishline",
  "^(?:http|https)://www.skinstore.com/[a-z0-9A-Z-]+/\\d+\\.html": "skinstore",
  "^(?:http|https)://item.wjike.com/\\d+\\.html": "wjike",
  "^(?:http|https)://youpin.mi.com/detail\\?gid=\\d+": "youpin-mi",
  "^(?:http|https)://www\\.xiaomiyoupin\\.com/detail\\?gid=\\d+": "youpin-mi",
  "^(?:http|https)://store\\.steampowered\\.com/app/\\d+": "steampowered",
  "^(?:http|https)://store\\.steampowered\\.com/sub/\\d+": "steampowered",
  "^(?:http|https)://www.forever21.com/UK/Product/Product\\.aspx": "forever21",
  "^(?:http|https)://www.jialich.cn/goods\\.php\\?id=\\d+": "jialich",
  "^(?:http|https)://www.tthigo.com/product/\\w+": "tthigo",
  "^(?:http|https)://www\\.modernavenue\\.com/product-\\d+\\.html": "modernavenue",
  "^(?:http|https)://www\\.tcl\\.com/\\w+/\\w+": "tcl",
  "^(?:http|https)://www\\.bonjourhk\\.com/\\d+": "bonjourhk",
  "^(?:http|https)://m\\.bonjourhk\\.com/[a-z]+/\\d+": "bonjourhk",
  "(?:http:|https:)//www\\.trt\\.hk/page/products/\\d+\\.html": "trt",
  "^(?:http|https)://www\\.forestfood\\.com/goods\\.php\\?id=\\d+": "forestfood",
  "(?:http:|https:)//www\\.converse\\.com\\.cn/[a-z-_]+/\\d+/item": "converse",
  "(?:http:|https:)//www\\.converse\\.com\\.cn/[a-z0-9-_]+/\\w+/item\\.htm": "converse",
  "^(?:http|https)://www\\.fila\\.cn/item-index-[a-z0-9]+\\.html": "fila",
  "^(?:http|https)://www\\.fila\\.cn/fila-[A-Za-z0-9]+\\.html": "fila",
  "(?:http:|https:)//www\\.levi\\.com\\.cn/(?:men|women)/[a-z-]+/[0-9-]+/item": "levi",
  "(?:http:|https:)//www\\.levi\\.com/[A-Z]+/[a-zA-Z_]+/[a-z]+/[a-z0-9-]+/p/\\d+": "levi",
  "^(?:http|https)://www\\.hangowa\\.com/item-\\d+\\.html": "hangowa",
  "^(?:http|https)://www\\.super-in\\.com/product/\\d+\\.html": "super-in",
  "^(?:http|https)://www\\.ccxpet\\.com/Product/Detail": "ccxpet",
  "^(?:http|https)://www\\.360lj\\.com/product/\\d+\\.html": "360lj",
  "^(?:http|https)://www\\.hysjg\\.com/goods\\.php\\?id=\\d+": "hysjg",
  "^(?:http|https)://www\\.0061\\.com\\.au/product/content/\\d+": "x0061",
  "^(?:http|https)://mall\\.ecovacs\\.cn/product-\\d+\\.html": "ecovacs",
  "^(?:http|https)://mall\\.littleswan\\.com/detail/index(?:/sale|)\\?itemid": "littleswan",
  "^(?:http|https)://www\\.vitagou\\.hk/products/id/\\d+": "vitagou",
  "^(?:http|https)://www\\.vitagou\\.hk/product-\\d+\\.html": "vitagou",
  "^(?:http|https)://www\\.vitagou\\.hk/detail-\\d+\\.html": "vitagou",
  "^(?:http|https)://www\\.hpstore\\.cn/accessary/\\w+": "hpstore",
  "^(?:http|https)://www\\.hpstore\\.cn/(?:hp|omen)-": "hpstore",
  "^(?:http|https)://www\\.kkguan\\.com/goods-\\d+\\.html": "kkguan",
  "^(?:http|https)://www\\.mayn\\.com\\.cn/html/\\d+/\\d+": "mayn",
  "^(?:http|https)://www\\.peikua\\.com/product-\\d+\\.html": "peikua",
  "^(?:http|https)://item\\.kinhom\\.com/\\d+\\.html": "kinhom",
  "^(?:http|https)://www.9drug.com/goods-\\d+\\.html": "9drug",
  "^(?:http|https)://www.tea7.com/item/\\d+\\.html": "tea7",
  "^(?:http|https)://www.01home.com/product/[a-z0-9-]+\\.html": "01home",
  "^(?:http|https)://www.hpstore.cn/wasd-ii-[a-z0-9-]+\\.html": "hpstore",
  "^(?:http|https)://www\\.hpstore.cn/(?:[a-z0-9-]+/|)[a-z0-9-]+\\.html": "hpstore",
  "^(?:http|https)://www.aliexpress.com/store/product/": "aliexpress",
  "^(?:http|https)://www.aliexpress.com/item/\\w+": "aliexpress",
  "^(?:http|https)://www.easytoys.cn/\\d+\\.html": "easytoys",
  "^(?:http|https)://www.kiwistarcare.com/goods-\\d+\\.html": "kiwistarcare",
  "^(?:http|https)://www.carrefour.cn/product/\\d+": "carrefour",
  "^(?:http|https)://china.lotte.com/goods/viewGoodsDetail\\.lotte": "lotte",
  "^(?:http|https)://www.ewatches.com/detail\\.asp": "ewatches",
  "^(?:http|https)://global.timex.com/node/\\d+": "timex",
  "^(?:http|https)://comfortfirst.com/[a-z0-9-]+/[a-z0-9-]+/[a-z0-9-]+\\.html": "comfortfirst",
  "^(?:http|https)://www.luolai.cn/product-\\d+\\.html": "luolai",
  "^(?:http|https)://www.youyu.com/goods\\?sn=\\d+": "youyu",
  "^(?:http|https)://www.yoox.cn/(?:cn/)[a-z0-9A-Z]+/item": "yoox",
  "^(?:http|https)://store.yoox.cn/(?:cn/)[a-z0-9A-Z]+/item": "yoox",
  // "^(?:http|https)://www.walgreens.com/store/\\w+/[a-z0-9-]+/ID=prod\\d+-product": "walgreens",
  "^(?:http|https)://www.suanjuzi.com/product-\\d+\\.html": "suanjuzi",
  "^(?:http|https)://www.yao123.com/product/\\w+": "yao123",
  "^(?:http|https)://item.baobeigezi.com/product/\\d+\\.html": "baobeigezi",
  "^(?:http|https)://www.baobeigezi.com/product/\\d+\\.html": "baobeigezi",
  "^(?:http|https)://www.opposhop.cn/products/\\d+\\.html": "opposhop",
  "^(?:http|https)://www.opposhop.cn/products/\\d+": "opposhop",
  '^(?:http|https)://store\\.oppo\\.com/(?:goods|products)/\\d+': 'opposhop',
  '^(?:http|https)://www\\.oppo\\.com/cn/product': 'opposhop',
  '^(?:http|https)://hd.oppo.com/act/\\d+/oppoR9s': 'opposhop',
  "^(?:http|https)://mall.to8to.com/temai/\\d+.html": "to8to",
  "^(?:http|https)://item\\.yunhou\\.com/\\d+\\.html": "yunhou",
  "^(?:http|https)://item\\.yhd\\.com": "yihaodian",
  "^(?:http|https)://www\\.haituncun\\.com/[a-z]+/[a-z0-9]+/\\d+/": "haituncun",
  "^(?:http|https)://www\\.walmart\\.com/ip/[a-zA-Z0-9-]+/\\d+": "walmart",
  "^(?:http|https)://www\\.vmei\\.com/product/[0-9]+": "vmei",
  "^(?:http|https)://www\\.jgb\\.cn/p/[a-z0-9_]+\\.html": "jgb",
  "^(?:http|https)://www\\.51din\\.com/product/[0-9]+/[0-9]+\\.html": "51din",
  "^(?:http|https)://www.51din.com/product/(?!list)/[0-9]+.jhtml": "51din",
  "^(?:http|https)://www\\.aidai\\.com/Product[0-9]+\\.html": "aidai",
  "^(?:http|https)://shop\\.boqii\\.com/product-[0-9]+\\.html": "boqii",
  "^(?:http|https)://www\\.spider\\.com.cn/[a-z]+/[0-9]+\\.html": "spider",
  "^(?:http|https)://www\\.spider\\.com.cn/auction.html?auctionid=[0-9]+ ": "spider",
  "^(?:http|https)://www\\.jiae\\.com/productdetail?productId=[0-9]+": "jiae",
  "^(?:http|https)://(?:item|www)\\.zazhipu\\.com/[0-9]+\\.html": "zazhipu",
  "^(?:http|https)://www\\.walmart\\.com/ip/\\d+": "walmart",
  "^(?:http|https)://www\\.shop\\.philips\\.com\\.cn/item/[a-z0-9-]+": "philips",
  '^(?:http|https)://tuan.zhongjiu.cn/product/detail/\\d+.htm': 'zhongjiu',
  '^(?:http|https)://www.zhongjiu.cn/productdetail/\\d+.htm': 'zhongjiu',
  '^(?:http|https)://www.kaluli.com/product/\\d+.html': 'kaluli',
  '^(?:http|https)://shop.wstx.com/item/\\d+': 'wstx',
  '^(?:http|https)://www.purcotton.com/detail/\\d+/[0-9-]+\\.html': 'purcotton',
  '^(?:http|https)://shop.juanpi.com/[a-z]+/\\d+': 'juanpi',
  '^(?:http|https)://www.gnc.com/[A-Za-z0-9-]+/product.jsp': 'gnc',
  '^(?:http|https)://www.jinxiang.com/product/\\d+\\.html': 'jinxiang',
  '^(?:http|https)://1.163.com/detail/\\d+-\\d+\\.html': '1-163',
  '^(?:http|https)://www.guojimami.com/goods-\\d+\\.html': 'guojimami',
  '^(?:http|https)://www.baiyangwang.com/product/\\d+\\.html': 'baiyangwang',
  '^(?:http|https)://www.baiyangwang.com/item-\\d+\\.html': 'baiyangwang',
  '^(?:http|https)://cn.royyoungchemist.com.au/\\d+\\.html': 'royyoungchemist',
  '^(?:http|https)://cn.medihealshop.com/\\d+': 'medihealshop',
  '^(?:http|https)://(?:www\\.|)medihealshop.com/shop/shopdetail\\.html\\?': 'medihealshop',
  '^(?:http|https)://cn.1001pharmacies.com/\\d+\\.html': '1001pharmacies',
  '^(?:http|https)://www.lookfantastic.cn/[a-z0-9-.]+/\\d+': 'lookfantastic-cn',
  '^(?:http|https)://www.lookfantastic.cn/beauty-box/[a-z0-9-.]+/\\d+': 'lookfantastic-cn',
  '^(?:http|https)://www.lookfantastic.com/[a-z0-9-.]+/\\d+': 'lookfantastic-com',
  '^(?:http|https)://www.lookfantastic.com/beauty-box/[a-z0-9-.]+/\\d+': 'lookfantastic-com',
  '^(?:http|https)://you.163.com/item/detail': 'you163',
  '^(?:http|https)://product.bl.com/\\d+\\.html': 'bl',
  '^(?:http|https)://www.bestinfoods.com/(?:\\?|)product-[0-9]+\\.html': 'bestinfoods',
  '^(?:http|https)://www.muji.net/store/\\w+/detail/[0-9]+': 'muji',
  // 'item2.gmarket.co.kr/Item/detailview/Item.aspx': 'gmarket',
  '^(?:http|https)://www\\.easeeyes\\.com/goods[0-9]+\\.html': 'easeeyes',
  '^(?:http|https)://www\\.lingshi\\.com/product/lingshi-\\d+\\.htm': 'lingshi',
  '^(?:http|https)://www\\.nubia\\.com/(?:nubian1|nubiamyprague|pragues|nubiaz9mark|nubiaz9|nubiaz9max|nubiaz9max|nubiaz9max|nubiaz11mini|nubiaZ11mini|nubiaz11max|nubiaz11max|nubiaz11max|nubiaz11|nubiaz11|nubiaz11)': 'nubia',
  '^(?:http|https)://shop\\.nubia\\.com/active/\\w+\\.html': 'nubia',
  '^(?:http|https)://shop\\.nubia\\.com/product\\.php\\?(?:s|)id=\\d+': 'nubia',
  '^(?:http|https)://(?:www|shop)\\.nubia\\.cn/product\\.php\\?sid=\\d+': "nubia",
  '^(?:http|https)://www.nubia.com/((?!.php).)*$': 'nubia',
  '^(?:http|https)://shop.nubia.com/buy/(?:nubian1|nubiamyprague|pragues|nubiaz9mark|nubiaz9|nubiaz9max|nubiaz9max|nubiaz9max|nubiaz11mini|nubiaZ11mini|nubiaz11max|nubiaz11max|nubiaz11max|nubiaz11|nubiaz11|nubiaz11|nubia\\w+)': 'nubia',
  '^(?:http|https)://www\\.kzj365\\.com/goods-\\d+\\.html': 'kzj365',
  '^(?:http|https)://(?:www|goods)\\.kaola\\.com/product/\\d+\\.html': 'kaola',
  '^(?:http|https)://www\\.kaola\\.com.hk/product/\\d+\\.html': 'kaola',
  '^(?:http|https)://(?:www|goods)\\.kaola\\.com.hk/product/\\d+\\.html': 'kaola',
  '^(?:http|https)://www\\.ymatou\\.(?:com|hk)/product/[a-zA-Z0-9-]+\\.html': 'ymatou',
  '^(?:http|https)://detail\\.metao\\.com/products/\\d+': 'metao',
  '^(?:http|https):tv\\.coocaa\\.com/goods/\\d+.htm': 'coocaa',
  '^(?:http|https)://www\\.coocaa\\.com/goods/get_[0-9]+\\.html': 'coocaa',
  '^(?:http|https)://www\\.lifevc\\.com/item/\\d+': 'lifevc',
  '^(?:http|https)://www\\.supuy\\.com/products/\\d+\\.html': 'supuy',
  '^(?:http|https)://www\\.supumall\\.com/Goods/goodsinfo/goodsCode/[0-9]+': 'supuy',
  '^(?:http|https)://www\\.mia\\.com/item-\\d+\\.html': 'miyabaobei',
  '^(?:http|https)://miyabaobei.hk/item-[0-9]+.html': 'miyabaobei',
  '^(?:http|https)://www.miyabaobei.hk/item-[0-9]+.html': 'miyabaobei',
  //'item.gomehigo.hk/[0-9a-zA-Z]+-pop[0-9]+': 'gomehigo',
  '^(?:http|https)://item.gomehigo.hk/[0-9a-zA-Z]+-.*': 'gomehigo',
  'http://www\\.wangfujing\\.com/item/[0-9A-Z]+': 'wangfujing',
  '^(?:http|https)://global\\.gou\\.com/product_[0-9]+\\.html': 'gou',
  '^(?:http|https)://www\\.gou\\.com/[a-z0-9_]+\\.html': 'gou',
  '^(?:http|https)://(?:www\\.|)ikjtao\\.com/goods-[0-9]+\\.html': 'ikjtao',
  '^(?:http|https)://(?:www\\.|)ikjtao\\.com/goods.php': 'ikjtao',
  '^(?:http|https)://(?:www\\.|)bestkeep\\.cn/item/\\d+': 'ikjtao',
  '^(?:http|https)://(?:item|np)\\.ule\\.com/item/[0-9-]+\\.html': 'ule',
  '^(?:http|https)://shop\\.philips\\.com\\.cn/product/\\w+/detail\\.htm': 'philips',
  '^(?:http|https)://shop\\.tcl\\.com/ProductDetail/index/id/\\d+\\.html': 'tcl',
  '^(?:http|https)://mall\\.tcl\\.com/front/product/toProduct/[a-z0-9]+': 'tcl',
  '^(?:http|https)://www\\.e-changhong\\.com/webapp/wcs/stores/servlet/Product[\\w_-]+': 'changhong',
  '^(?:http|https)://shop\\.konka\\.com/goods\\.php\\?id=\\d+': 'konka',
  '^(?:http|https)://shop\\.konka\\.com/product-[0-9]+\\.html': 'konka',
  '^(?:http|https)://shop\\.hisense\\.com/Home/Products/detail/gid/\\d+': 'hisense',
  '^(?:http|https)://(?:www|shop)\\.hisense\\.com/(?:product|items)/[a-z0-9-]+': 'hisense',
  '^(?:http|https)://www\\.ineigo\\.com/Product/product.aspx\\?&?id=\\d+': 'ineigo',
  '^(?:http|https)://www\\.skg\\.com/\\d+\\.html': 'skg',
  '^(?:http|https)://www\\.skg\\.com/product/[0-9]+\\.htm': 'skg',
  '^(?:http|https)://www\\.oyeah\\.com/giveaway-[0-9a-z-]+': 'oyeah',
  '^(?:http|https)://www\\.morefood\\.com/products/info/[0-9]+\\.html': 'morefood',
  '^(?:http|https)://www\\.zhen\\.com/product-[0-9]+\\.html': 'zhen',
  '^(?:http|https)://shop\\.vivo\\.com\\.cn/index\\.php/product-\\d+\\.html': 'vivo',
  '^(?:http|https)://shop\\.vivo\\.com\\.cn/product-[0-9]+': 'vivo',
  '^(?:http|https)://shop\\.vivo\\.com\\.cn/product/[0-9]+': 'vivo',
  '^(?:http|https)://gfive\\.b2c\\.eqimingxing\\.com/product-\\d+\\.html': 'gfive',
  '^(?:http|https)://www\\.6pm\\.com/product/': '6pm',
  '^(?:http|https)://www\\.6pm\\.com/p/[a-z0-9-]+/product/': '6pm',
  // '^(?:http|https)://www\\.sierratradingpost\\.com/[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-': 'sierratradingpost',
  '^(?:http|https)://shop\\.gionee\\.com/goods/\\d+': 'gionee',
  '^(?:http|https)://z\\.gionee\\.com/details-pc/\\w+/index\\.html': 'gionee',
  '^(?:http|https)://store\\.lining\\.com/shop/goods-[0-9]+': 'lining',
  '^(?:http|https)://store\\.lining\\.com/goods/detail.*': 'lining',
  '^(?:http|https)://www\\.mf910\\.com/product-[0-9]+\\.html': 'mf910',
  '^(?:http|https)://www\\.k-touch\\.cn/product/detail/prod_id/\\d+\\.html': 'k-touch',
  '^(?:http|https)://www\\.k-touch\\.cn/Product/ProductDetail\\?productid': 'k-touch',
  '^(?:http|https)://item\\.grainger\\.cn/g/\\d+': 'grainger',
  '^(?:http|https)://piao\\.163\\.com/\\w+/movie/\\d+\\.html': 'wy163',
  '^(?:http|https)://mall\\.163\\.com/p/product/\\d+\\.html': 'wy163',
  //'^(?:http|https)://[\\w]+\\.nuomi\\.com/deal/\\w+\\.html':'nuomi',
  '^(?:http|https)://detail\\.yao.\\95095\\.com/item\\.htm': 'taobao-95095',
  '^(?:http|https)://www\\.ebay\\.com/itm/[0-9a-zA-Z]+': 'ebay',
  '^(?:http|https)://(?:www\\.|)100yue\\.com/product-[0-9]+\\.html': '100yue',
  '^(?:http|https)://www\\.feiniu\\.com/item/[-\\w]+': 'feiniu',
  '^(?:http|https)://www\\.lemall\\.com/product/': 'lemall',
  '^(?:http|https)://www\\.lemall\\.com/cn/(?:tv|sale|phone)/\\w+': 'lemall',
  '^(?:http|https)://www\\.lemall\\.com/(?:le_2|le_max|le_1pro|x55pro|x65|x55|x43s|x40s|umax120|chao4max70)': 'lemall',
  '^(?:http|https)://www\\.lemall\\.com/(?:chao4|le_max|le_max2|le_2pro|le_2|le_max2|x40sx40s)/(?:\\w+/|)\\w+\\.html': 'lemall',
  '^(?:http|https)://item\\.feiniu\\.com/[0-9]+': 'feiniu',
  '^(?:http|https)://www\\.xgbaby\\.com/product/[0-9]+': 'bbready',
  '^(?:http|https)://www\\.zuipin\\.cn/[0-9a-z-]+\\.html': 'zuipin',
  '^(?:http|https)://www\\.zuipin\\.cn/goods\\?id=\\d+': 'zuipin',
  '^(?:http|https)://item\\.feifei\\.(?:cn|com)/\\w+\\.html': 'feifei',
  '^(?:http|https)://www\\.feifei\\.com/order/-/product-info/productname/[0-9]+\\.html': 'feifei',
  '^(?:http|https)://guang\\.com/baobei/\\d+': 'guang',
  '^(?:http|https)://www\\.haitaocheng\\.com/Product/Detail-\\d+\\.html': 'haitaocheng',
  '^(?:http|https)://www\\.rrs(?:jk|)\\.com/product/[0-9]+\\.html': 'rrs',
  '^(?:http|https)://shop\\.ccb\\.com/products/pd_[0-9]+\\.jhtml': 'ccb',
  '^(?:http|https)://www\\.meilishuo\\.com/(?:prom|share)/item/\\d+': 'meilishuo',
  '^(?:http|https)://www\\.meilishuo\\.com/share/[\\d]+': 'meilishuo',
  '^(?:http|https)://item\\.meilishuo\\.com/detail/': 'meilishuo',
  '^(?:http|https)://www\\.mogujie\\.com/tuan/detail/\\w+': 'mogujie',
  '^(?:http|https)://shop\\.mogu(?:jie|)\\.com/detail/\\w+': 'mogujie',
  '^(?:http|https)://www\\.mogujie\\.com/note/.*?showtype=good': 'mogujie',
  '^(?:http|https)://www\\.supumall\\.com/products/[0-9]+\\.html': 'supumall',
  '^(?:http|https)://shop\\.coolpad\\.(?:com|cn)/goods/\\d+\\.htm': 'coolpad',
  '^(?:http|https)://(www\\.)?yiguo\\.com/product/\\d+\\.html': 'yiguo',
  '^(?:http|https)://(www\\.)?yiguo\\.com/CommodityDetail\\.aspx\\?CommodityId=': 'yiguo',
  '^(?:http|https)://item\\.wanggou\\.com/': 'wanggou',
  '^(?:http|https)://mall\\.jia\\.com/item/': 'jia',
  '^(?:http|https)://www\\.jiumei\\.com/product/[a-z0-9_-]+\\.shtml': 'jiumei',
  '^(?:http|https)://weigou\\.baidu\\.com/item': 'baidu-weigou',
  '^(?:http|https)://shop\\.letv\\.com/product/': 'letv',
  '^(?:http|https)://www\\.(xiao)?mi\\.com/(goods|item)/': 'xiaomi',
  '^(?:http|https)://item\\.mi\\.com/[0-9]+\\.html': 'xiaomi',
  '^(?:http|https)://item\\.mi\\.com/product/[0-9]+\\.html': 'xiaomi',
  '^(?:http|https)://www\\.mi\\.com/(shop/)?buy/detail': 'xiaomi',
  '^(?:http|https)://item\\.mi\\.com/buy(?:phone|mitv|mitv\\w+)/[a-z0-9]+': 'xiaomi',
  '^(?:http|https)://item\\.mi\\.com/static/[a-z0-9]+': 'xiaomi',
  '^(?:http|https)://item\\.mi\\.com/buy/[a-z0-9]+': 'xiaomi',
  '^(?:http|https)://www\\.mi\\.com/(?:mi5|mimax|redminote4|note3|hongmi3s|redmipro|hongmi3|hongmi3x|mibookair|mipad2|mitv3s|mitv3s|mitv3s|mitv3|mitv3|mitv3|tvzj|hezi3s|hezi3|hezimini|shb|mivr1c|miwifi3|scooter|mibicycle|kettle|dianfanbao|micamera|xiaoyi|air2|water|water2|ihealth2|ihealth|mjsmartlamp|desklamp|mitu|cute|wangguan|shouhuan2|shouhuan|scale|mituwatch|miwifimini|miwifilite|miwifi3c|miwifi|dianyuan10000|dianyuan10000|dianyuan5000|chaxianban2|powerstrip|recharger|chongdianqi4kou|headphone|quantie|capsuleearphone|pocketaudio|littleaudio|yinxiang|speaker|radio|mimosdge|gelpen|pillowZ1|pillowZ2|roomrobot|recharger7|charger|bluetooth-headset|suitcase|redmi\\w+|mi5splus|mi5s|mix|minote\\w+|mi5c|max\\w+|mi6|mipad3|mitv\\w+)/': 'xiaomi',
  '^(?:http|https)://www\\.handu\\.com/goods-': 'handu',
  '^(?:http|https)://www\\.yummy77\\.com/product/[0-9]+\\.html': 'yummy77',
  '^(?:http|https)://www\\.fruitday\\.com/web/pro/[0-9]+': 'fruitday',
  '^(?:http|https)://www\\.fruitday\\.com/prodetail/index/[0-9]+': 'fruitday',
  '^(?:http|https)://www\\.benlai\\.com/items?-\\d+': 'benlai',
  '^(?:http|https)://www\\.benlai\\.com/[a-z/]+/item-[0-9]+\\.html': 'benlai',
  '^(?:http|https)://taoshu\\.com/\\d+\\.html': 'taoshu',
  '^(?:http|https)://www\\.meilele\\.com/category-[a-z]+/goods-[0-9]+\\.html': 'meilele',
  '^(?:http|https)://www\\.meilele\\.com/tuangou/info-[0-9]+.html': 'meilele-tuan',
  '^(?:http|https)://www\\.meilele\\.com/miaosha/ms-[0-9]+.html': 'meilele-ms',
  '^(?:http|https)://www\\.gjw\\.com/product/item': 'gjw',
  '^(?:http|https)://www\\.gjw\\.com/Home/TuanItem/\\d+\\.htm': 'gjw',
  '^(?:http|https)://www\\.gjw\\.com/TryDrink/item-id-[0-9]+\\.htm': 'gjw',
  '^(?:http|https)://www\\.oneplus\\.com/cn/': 'oneplus',
  '^(?:http|https)://store\\.apple\\.com/cn/product/': 'apple',
  '^(?:http|https)://www\\.apple\\.com/cn/(?:macbook|ipad-pro|ipad|ipad-mini-4|iphone-7|iphone-\\w+|ipod-shuffle)/': 'apple',
  '^(?:http|https)://store\\.apple\\.com/cn/buy-iphone/iphone\\w+': 'apple',
  '^(?:http|https)://store\\.apple\\.com/cn/buy-mac/\\w+-\\w+\\?product=\\w+/\\w+': 'apple',
  '^(?:http|https)://www\\.apple\\.com\\.cn/shop/': 'apple',
  '^(?:http|https)://store\\.apple\\.com/cn/buy-ipad/ipad-\\w+-\\w+': 'apple',
  '^(?:http|https)://store\\.apple\\.com/cn/buy-ipod/ipod-\\w+-\\w+': 'apple',
  '^(?:http|https)://www\\.apple\\.com/cn/shop/(?:product|buy-[a-z]+)/[a-z0-9-]+': 'apple',
  '^(?:http|https)://www\\.j1\\.com/product/': 'j1',
  '^(?:http|https)://miao\\.j1\\.com/product/': 'j1-miao',
  '^(?:http|https)://(?:www\\.|)zzl365\\.com/product-\\d+': 'zzl365',
  '^(?:http|https)://mobile\\.139shop\\.com/.*?/\\d+/\\d+\\.htm': '139shop',
  '^(?:http|https)://139shop\\.com/[a-z0-9-]+/[a-z0-9]+/[a-z0-9]+\\.htm': '139shop',
  '^(?:http|https)://detail\\.1688\\.com/offer/\\d+': '1688',
  '^(?:http|https)://www\\.yiwugou\\.com/product/detail/[0-9]+\\.html': 'yiwugou',
  '^(?:http|https)://www\\.zhiwo\\.com/product/\\d+': 'zhiwo',
  '^(?:http|https)://www\\.zhiwo\\.com/group/\\d+': 'zhiwo-tuan',
  '^(?:http|https)://[^\\.]+\\.miqi\\.cn/[^/]+/p\\d+': 'miqi',
  '^(?:http|https)://www\\.miqi\\.cn/[a-z]+/[0-9]+\\.html': 'miqi',
  '^(?:http|https)://www\\.camel\\.com\\.cn/[a-zA-Z0-9]+(_[a-zA-Z0-9]+)+/[\\w]+\\.shtml': 'camel',
  '^(?:http|https)://www\\.camel\\.com\\.cn/[a-zA-Z0-9_]+/[A-Za-z0-9]+\\.shtml': 'camel',
  '^(?:http|https)://www\\.kuaishubao\\.com/\\d+/\\d+': 'kuaishubao',
  '^(?:http|https)://www.kuaishubao.com/g/': 'kuaishubao',
  '^(?:http|https)://www\\.juegg\\.com/templets/DefaultGreen/Product\\.jsp': 'juegg',
  '^(?:http|https)://mall\\.10010\\.com/goodsdetail/[\\d]+\\.html': 'mall10010',
  '^(?:http|https)://www\\.wowsai\\.com/goods/': 'wowsai',
  '^(?:http|https)://www\\.tianpin\\.com/item/': 'tianpin',
  '^(?:http|https)://www\\.tootoo\\.cn/product-': 'tootoo',
  '^(?:http|https)://www\\.tootoo\\.cn/[a-z]+/detail/[0-9]+': 'tootoo',
  '^(?:http|https)://item\\.minshengec\\.com/[a-z]-(?:|[a-zA-Z%0-9]+)/[a-z0-9-]+\\.jhtml': 'minshengec',
  '^(?:http|https)://www\\.sfbest\\.com/html/(sfv)?products/': 'sfbest',
  '^(?:http|https)://ht\\.sfbest\\.hk/[0-9a-z_]+\\.htm': 'sfbest',
  '^(?:http|https)://shop\\.lenovo\\.com\\.cn/product-': 'lenovo',
  '^(?:http|https)://(?:item|\\w+)\\.lenovo\\.com\\.cn/product/\\d+\\.html': 'lenovo',
  '^(?:http|https)://shop\\.lenovomobile\\.com/ShowPhone.aspx\\?GdsID=': 'lenovo',
  '^(?:http|https)://www\\.lenovomobile\\.com/store/\\d+\\.html': 'lenovo',
  '^(?:http|https)://www\\.lenovo\\.com\\.cn/product/[0-9]+\\.html': 'lenovo',
  '^(?:http|https)://www\\.lenovo\\.com\\.cn/abtest/[0-9_]+\\.shtml': 'lenovo',
  '^(?:http|https)://thinkpad\\.lenovo\\.com\\.cn/product/[0-9]+\\.html': 'lenovo',
  '^(?:http|https)://www\\.vmall\\.com/item/\\d+/(?:index|buy)': 'vmall',
  '^(?:http|https)://www\\.vmall\\.com/product/\\d+\\.html': 'vmall',
  '^(?:http|https)://www\\.vmall\\.com/product/comdetail/index.html': 'vmall',
  '^(?:http|https)://www.hihonor.com/cn/shop/product/\\d+\\.html': 'hihonor',
  '^(?:http|https)://www\\.ihush\\.com/product': 'ihush',
  '^(?:http|https)://(?:www\\.)?fclub\\.cn/goods': 'fclub',
  '^(?:http|https)://item\\.yohobuy\\.com/product/\\w+/\\w+\\.html': 'yohobuy',
  '^(?:http|https)://item\\.yohobuy\\.com/\\w+\\.html': 'yohobuy',
  '^(?:http|https)://www\\.yohobuy\\.com/product/\\d+\\.html': 'yohobuy',
  '^(?:http|https)://www\\.fclub\\.cn/tuangouDetail\\.html': 'fclub',
  '^(?:http|https)://ju\\.taobao\\.com/tg/home\\.htm.*(item_)?id=[\\d]+': 'taobao-ju',
  '^(?:http|https)://detail\\.tmall\\.com/item(_o)?\\.htm': 'tmall',
  '^(?:http|https)://detail\\.liangxinyao\\.com/item\\.htm': 'tmall',
  '^(?:http|https)://world\\.tmall\\.com/item/[0-9]+\.htm': 'tmall',
  '^(?:http|https)://detail\\.tmall\\.hk/hk/item\.htm': 'tmall',
  '^(?:http|https)://detail\\.tmall\\.hk/item\\.htm': 'tmall',
  '^(?:http|https)://item\\.taobao\\.com/item\.htm': 'taobao',
  '^(?:http|https)://2\\.taobao\\.com/item\\.htm': 'taobao-xianyu',
  '^(?:http|https)://ai\\.taobao\\.com/auction': 'ai-taobao',
  '^(?:http|https)://chaoshi\\.detail\\.tmall\\.com/item\\.htm': 'tmall',
  '^(?:http|https)://chaoshi\\.detail\\.tmall\\.com/item_o\\.htm': 'tmall',
  '^(?:http|https)://detail\\.ju\\.taobao\\.com/home\\.htm': 'taobao-ju',
  '^(?:http|https)://(?:archive-shop|shop|www|day|lux)\\.vip(shop)?\\.com/detail': 'vipshop',
  '^(?:https|http):\\/\\/detail\\.vip\\.com\\/detail-\\d+': 'vipshop',
  '^(?:https|http):\\/\\/www\\.vipglobal\\.hk\\/detail-\\d+': 'vipshop',
  '^(?:http|https)://tuan\\.lefeng\\.com/.*?/\\d+_\\d+\\.html': 'lefeng',
  '^(?:http|https)://(?:www|product)\\.lefeng\\.com/(product|pklist)/': 'lefeng',
  '^(?:http|https)://(?:www|1hour)\\.jxdyf\\.com/product[-/][\\d]+': 'jxdyf',
  '^(?:http|https)://www\\.jxdyf\\.com/ProductContent': 'jxdyf',
  '^(?:http|https)://www\\.tnice\\.com/product/': 'tnice',
  '^(?:http|https)://auction1\\.paipai\\.com/': 'paipai',
  '^(?:http|https)://item\\.xinbaigo\\.com/Goods/StyleDetail': 'xinbaigo',
  '^(?:http|https)://www\\.orbis\\.com\\.cn.*product\\-[\\d]+': 'orbis',
  '^(?:http|https)://www\\.sfht\\.com/detail/[0-9]+\\.html': 'sfht',
  '^(?:http|https)://(?:www|cosmetic)\\.d1\\.com\\.cn/product/': 'd1',
  '^(?:http|https)://www\\.chazuo\\.com/Product/p\\-[\\d]+': 'chazuo',
  '^(?:http|https)://www\\.u1baby\\.com/product\\-[\\d]+': 'u1baby',
  '^(?:http|https)://(www\\.)?homevv\\.com/vvshopProductView/pid\\-[\\d]+\\.jhtml': 'homevv',
  '^(?:http|https)://(www\\.)?homevv\\.com/vvshopProductView\\.jhtml': 'homevv',
  '^(?:http|https)://www\\.paixie\\.net/shoe\\-.+\\.html': 'paixie',
  '^(?:http|https)://tuan\\.paixie\\.net/[0-9]+\\.html': 'paixie-tuan',
  '^(?:http|https)://faxian\\.paixie\\.net/[0-9]+\\.html': 'paixie-faxian',
  '^(?:http|https)://www\\.tao3c\\.com/(outlets/)?product/[\\d]+\\.html': 'tao3c',
  '^(?:http|https)://www\\.zm7\\.cn/goods': 'zm7',
  '^(?:http|https)://s\\.etao\\.com/item/[\\d]+\\.html': 'etao',
  '^(?:http|https)://s\\.etao\\.com/search\\?epid=[\\d]+': 'etao',
  '^(?:http|https)://product\\.pchouse\\.com\\.cn/item/[\\d]+\\.html': 'pchouse',
  '^(?:http|https)://buy\\.daphne\\.cn/goods\\.php': 'daphne',
  '^(?:http|https)://www\\.lucemall\\.com\\.cn/.+/[\\d]+\\.html': 'lucemall',
  '^(?:http|https)://www\\.lifevc\\.com/detail/': 'lifevc',
  '^(?:http|https)://www\\.easy361\\.com/[^\\?]*goods-[\\d]+\\.html': 'easy361',
  '^(?:http|https)://item\\.360hqb\\.com/spu\\-[\\d]+\\.html': '360hqb',
  '^(?:http|https)://item\\.360hqb\\.com/[\\d]+\\.html': '360hqb',
  '^(?:http|https)://q\\.360hqb\\.com/detail/[\\d\\_]+\\.html': '360hqb',
  '^(?:http|https)://www\\.goujiuwang\\.com/product/item\\-id\\-[\\d]+\\.htm': 'goujiuwang',
  '^(?:http|https)://www\\.huimai365\\.com/goods\\-[\\d]+\\.html': 'huimai365',
  '^(?:http|https)://(www|tuan|dingzhi)\\.jiuxian\\.com/(goods|tuan_detail)\\-.+\\.htm': 'jiuxian',
  '^(?:http|https)://www\\.winenice\\.com/p_[\\d]+\\.shtml': 'winenice',
  '^(?:http|https)://www\\.yesmywine\\.com/goods/[\\d]+\\.html': 'yesmywine',
  '^(?:http|https)://mall\\.yesmywine\\.com/shop/junkang/item-[\\d]+': 'yesmywine',
  '^(?:http|https)://mall\\.yesmywine\\.com/shop/[\\w]+/item-[\\d]+': 'yesmywine',
  '^(?:http|https)://mall\\.yesmywine\\.com/groupbuy/\\d+\\.html': 'yesmywine',
  '^(?:http|https)://www\\.banggo\\.com/Goods/[\\d]+\\.shtml': 'banggo',
  '^(?:http|https)://www\\.banggo\\.com/goods_[0-9]+\\.shtml': 'banggo',
  '^(?:http|https)://www\\.banggo\\.com/goods/[0-9A-Za-z]+\\.s?html': 'banggo',
  '^(?:http|https)://www\\.banggo\\.com/goods/[0-9A-Za-z]+': 'banggo',
  '^(?:http|https)://ploy\\.banggo\\.com/second/[0-9-_]+\\.shtml': 'banggo',
  '^(?:http|https)://www\\.yanyue\\.cn/smoke\\-product\\-[\\d]+\\.html': 'yanyue',
  '^(?:http|https)://www\\.bearbuy\\.com\\.cn/goods\\.php\\?id=[\\d]+': 'bearbuy',
  '^(?:http|https)://www\\.amazon\\.cn/.*?(?:dp/|gp/product/|detailApp)': 'amazon',
  '^(?:http|https)://www\\.amazon\\.(com|co\\.uk|de|co\\.jp|fr|ca|cn|it|es|com\\.au)/.*?(?:dp/|gp/product/|detailApp)(?!search)': 'amazon',
  '^(?:http|https)://(?:product\\.dangdang\\.com/[^\\?]*product.aspx|reco\\.dangdang\\.com/reco_pub\\.php)\\?product_id=\\d+': 'dangdang',
  '^(?:http|https)://(?:product|detail)\\.dangdang\\.com/[\\d]+': 'dangdang',
  '^(?:http|https)://(?:product|detail)\\.globaldangdang\\.hk/[\\d]+\\.html': 'dangdang',
  '^(?:http|https)://z\\.jd\\.com/project/details/\\d+\\.html': "360buy",
  '^(?:http|https)://item\\.jd\\.com/\\d+\\.html': '360buy',
  '^(?:http|https)://item\\.m\\.jd\\.com/product/\\d+\\.html': '360buy',
  '^(?:http|https)://item\\.m\\.jd\\.com/ware/view.action': '360buy',
  '^(?:http|https)://kpl\\.m\\.jd\\.com/product\\?wareId=\\d+': '360buy',
  '^(?:http|https)://pcitem\\.jd\\.hk/\\d+\\.html': '360buy',
  '^(?:http|https)://npcitem\\.jd\\.hk/\\d+\\.html': '360buy',
  '^(?:http|https)://i-item\\.jd\\.com/\\d+\\.html': '360buy',
  '^(?:http|https)://item\\.paipai\\.com/\\d+\\.html': '360buy',
  '^(?:http|https)://item\\.yiyaojd\\.com/\\d+\\.html': '360buy',
  '^(?:http|https)://item\\.jingdonghealth\\.cn/\\d+\\.html': '360buy',
  '^(?:http|https)://item\\.jkcsjd\\.com/\\d+\\.html': '360buy',
  '^(?:http|https)://item\\.jd\\.hk/\\d+\\.html': '360buy',
  '^(?:http|https)://paimai\\.jd\\.com/\\d+': '360buy-paimai',
  '^(?:http|https)://day\\.jd\\.com/item/.*\\.html': '360buy-day',
  '^(?:http|https)://www\\.(?:360buy|jd)\\.com/product/\\d+\\.html': '360buy',
  '^(?:http|https)://(?:book|e)\\.(?:360buy|jd)\\.com/\\d+\\.html': '360buy-book',
  '^(?:http|https)://re\\.jd\\.com/cps/item/[0-9]+\\.html': '360buy-re',
  '^(?:http|https)://auction\\.jd\\.com/[0-9]+': '360buy-auction',
  '^(?:http|https)://mvd\\.(?:360buy|jd)\\.com/\\d+\\.html': '360buy-mvd',
  '^(?:http|https)://tuan\\.(?:360buy|jd)\\.com/team\\-\\d+\\.html': '360buy-tuan',
  '^(?:http|https)://www\\.(?:360buy|jd)\\.com/tuan/[\\d]+\\-[\\d]+\\.html': '360buy-tuan',
  '^(?:http|https)://www\\.(?:360buy|jd)\\.com/bigimage\\.aspx\\?id=\\d+': '360buy-bigimage',
  '^(?:http|https)://club\\.jd\\.com/bbsDetail/[a-z0-9_-]+\\.html': '360buy-club',
  '^(?:http|https)://www\\.360top\\.com/product/\\d+\\.html': '360top',
  '^(?:http|https)://detail\\.zol\\.com\\.cn/.*?(?:index).*?\\.shtml': 'zol',
  '^(?:http|https)://detail\\.zol\\.com\\.cn/[\\d]+/[\\d]+/[a-zA-Z]+\\.shtml': 'zol',
  '^(?:http|https)://dealer\\.zol\\.com\\.cn/detail/[\\d]+/[\\d]+_[\\d]+.html': 'zol',
  '^(?:http|https)://(?:www|mall)\\.zol\\.com/detail': 'zol',
  '^(?:http|https)://detail\\.zol\\.com\\.cn/series/[0-9]+/[0-9_]+\\.html': 'zol',
  '^(?:http|https)://www\\.fglady\\.cn/BMsgL': 'fglady',
  '^(?:http|https)://(www.|)ouku\\.com/(?:goods|product)': 'ouku',
  '^(?:http|https)://(www.|)ouku\\.com/cn/[0-9a-z-_]+\\.html': 'ouku',
  '^(?:http|https)://www\\.newegg(\\.com)?\\.cn/Product/.*?\\.htm': 'newegg',
  '^(?:http|https)://zhadan\\.newegg(\\.com)?\\.cn/Bomb-\\d+\\.htm': 'newegg',
  '^(?:http|https)://zhadan\\.newegg\\.cn': 'newegg-zhadan',
  '^(?:http|https)://tuan\\.newegg\\.cn/deal/[0-9]+\\.htm': 'newegg-tuan',
  '^(?:http|https)://product\\.kimiss\\.com/product/': 'kimiss',
  '^(?:http|https)://www\\.redbaby\\.com\\.cn/.*?/\\d{7}\\d+\\.html': 'redbaby',
  '^(?:http|https)://product\\.m18\\.com/': 'm18',
  '^(?:http|https)://list\\.m18\\.com/item/': 'm18',
  '^(?:http|https)://list\\.m18\\.com/g/': 'm18',
  '^(?:http|https)://list\\.m18\\.com/.*Goods.aspx': 'm18',
  '^(?:http|https)://www\\.m18\\.com/item/': 'm18',
  '^(?:http|https)://www\\.w1\\.cn/goods': 'w1',
  '^(?:http|https)://www\\.ashford\\.com/us/watches/[a-z0-9-]+/[a-z0-9-]+': 'ashford',
  '^(?:http|https)://www\\.sephora\\.cn/productDetailAction/': 'sephoracps',
  '^(?:http|https)://www\\.sephora\\.cn/product/\\d+\\.html': 'sephoracps',
  '^(?:http|https)://www\\.sephora\\.cn/tryout/\\d+\\.html': 'sephoracps',
  '^(?:http|https)://www\\.lafaso\\.com/(?:product/|goods/product_detail)': 'lafaso',
  '^(?:http|https)://www\\.s\\.cn/(?!page)\\w{2,}\\-[A-Za-z0-9]+?[0-9]+?[A-Za-z0-9]+?[\\-_*\\.].*?html': 's',
  // '^(?:http|https)://www\\.s\\.cn/\\w{2,}\\-[A-Z0-9]+?[0-9]+?[A-Z0-9]+?[\\-_*\\.].*?html': 's',
  '^(?:http|https)://w?item\\.(?:51buy|yixun)\\.com/': '51buy',
  '^(?:http|https)://www\\.okbuy\\.com/.*?/detail-': 'okbuy',
  '^(?:http|https)://www\\.okbuy\\.com/.*?-[\\d]+.html': 'okbuy',
  '^(?:http|https)://(www\\.)?letao\\.com/[^\\?]*shoe\\-[^\\~]*$': 'letao',
  '^(?:http|https)://(www\\.)?letao\\.com/[a-z0-9]+/detail\\.do\\?id=': 'letao',
  '^(?:http|https)://www\\.buy007\\.com/.*?/.*?/[A-Za-z\\d\\_\\-]*?\\.html': 'buy007',
  '^(?:http|https)://www\\.taoxie\\.com/commodity': 'taoxie',
  '^(?:http|https)://ju\\.suning\\.com/product-[a-zA-Z0-9]+\\.htm': 'suning-ju',
  '^(?:http|https)://item\\.suning\\.com/[0-9]+\\.html': 'suning',
  '^(?:http|https)://item\\.suning\\.com/[0-9]+/[0-9]+\\.html': 'suning',
  '^(?:http|https)://www\\.suning\\.(?:com|cn)/webapp/wcs/stores/servlet/(Prod|prd)': 'suning',
  '^(?:http|https)://pai\\.suning\\.(?:com|cn)/shanpai/detail/': 'suning-pai',
  '^(?:http|https)://pai\\.suning\\.(?:com|cn)/shanpai/[0-9]/detail/d/[0-9]+\-[0-9]': 'suning-pai',
  '^(?:http|https)://[\\w]+\\.suning\\.(?:com|cn)/emall/dgf': 'suning-dgf',
  '^(?:http|https)://qiang\\.suning\\.com/rps-web/rp/showActivity_[\\d]+\\.htm': 'suning-qiang',
  '^(?:http|https)://product\\.suning\\.com/\\d+': 'suning',
  '^(?:http|https)://product\\.suning\\.com/detail[0-9_]+\\.html': 'suning',
  '^(?:http|https)://www\\.suning\\.com/detail/': 'suning-book-new',
  '^(?:http|https)://snbook\\.suning\\.(?:com|cn)/web/prd/': 'suning-snbook',
  '^(?:http|https)://www\\.coo8\\.com/product/': 'coo8',
  '^(?:http|https)://(www.|)lusen\\.com/product/productinfo': 'lusen',
  '^(?:http|https)://www\\.lusen\\.com/Tuan/ComityInfo\\.aspx\\?id=[0-9]+': 'lusen',
  '^(?:http|https)://item\\.gome\\.com\\.cn/[^\\?]': 'gome',
  '^(?:http|https)://tao\\.gome\\.com\\.cn/p\\-D[0-9]+': 'gome-tao',
  '^(?:http|https)://q\\.gome\\.com\\.cn/item/\\w[0-9]+\\.html': 'gome-q',
  '^(?:http|https)://tuan\\.gome\\.com\\.cn/deal/\\w+\\.html': 'gome-tuan',
  '^(?:http|https)://www\\.gomehome\\.com/product/productinfo\\?p=[0-9-]+': 'gome-home',
  '^(?:http|https)://www\\.gome\\.com\\.cn/ec/rushbuy/limitbuy/itemdetail': 'gome-rushbuy',
  '^(?:http|https)://(?:www|item|s)\\.(yhd|yihaodian|1mall)\\.com/(?:product|item)/\\d+': 'yihaodian',
  '^(?:http|https)://item\\.yhd\\.com/item/lp/[0-9_]+': 'yihaodian',
  '^(?:http|https)://try\\.yhd\\.com/(free|fee)/\\d{4,6}_\\d+/': 'yihaodian',
  '^(?:http|https)://t\\.(yhd|yihaodian|1mall)\\.com/detail/\\d+': 'yihaodian-tuan',
  '^(?:http|https)://[a-zA-Z]+\\.womai\\.com/(.*)Product(?:\\-|\\.do\\?m?id)': 'womai',
  '^(?:http|https)://(www|sh|gz|zs)\\.womai\\.com/related-': 'womai-related',
  '^(?:http|https)://(www\\.)?leyou\\.com\\.cn/product/single/': 'leyou',
  '^(?:http|https)://haitao\\.leyou\\.com\\.cn/item/single/sku/': 'leyou',
  '^(?:http|https)://leleshan\\.leyou\\.com\\.cn/product/single/[A-Z0-9]+': 'leyou-leleshan',
  '^(?:http|https)://www\\.shopin\\.net/product/': 'shopin',
  '^(?:http|https)://(?:item|www|ebay)\\.xiu\\.com/product/': 'xiu',
  '^(?:http|https)://outlets\\.xiu\\.com/[\\d]+\\.shtml': 'xiu',
  '^(?:http|https)://ferragamo\\.xiu\\.com/[\\d]{6,10}\\.shtml': 'xiu',
  '^(?:http|https)://tuan\\.xiu\\.com/team_[\\d]+': 'xiu-tuan',
  '^(?:http|https)://item\\.mbaobao\\.com/pshow': 'mbaobao',
  '^(?:http|https)://www\\.mbaobao\\.com/item/': 'mbaobao',
  '^(?:http|https)://item\\.vjia\\.com/[\\d]*?\\.html': 'vjia',
  '^(?:http|https)://www\\.7cv\\.com/product/': '7cv',
  '^(?:http|https)://www\\.qinqinbaby\\.com/product/': 'qinqinbaby',
  '^(?:http|https)://www\\.qinqinbaby\\.com/goods/[0-9]+': 'qinqinbaby',
  '^(?:http|https)://www\\.chunshuitang\\.com/[a-z]+/[0-9]+\\.html': 'chunshuitang',
  '^(?:http|https)://www\\.x\\.com\\.cn/n_product/[\\w]+\\.shtml': 'x',
  '^(?:http|https)://www\\.x\\.com\\.cn/product': 'x',
  '^(?:http|https)://www\\.guopi\\.com/p\\.jsp': 'guopi',
  '^(?:http|https)://www\\.no5\\.com\\.cn/goods/': 'no5',
  '^(?:http|https)://www\\.no5\\.com\\.cn/product/[0-9]+\\.html': 'no5',
  '^(?:http|https)://web[\\d]+\\.sasa\\.com/SasaWeb/sch/product/viewProductDetail': 'sasa',
  '^(?:http|https)://www\\.sasa\\.com/[a-z]+/[a-zA-Z0-9_-]+': 'sasa',
  '^(?:http|https)://www\\.sasa\\.com/[a-z]+-\\d+\\.html': 'sasa',
  '^(?:http|https)://www\\.hksasa\\.cn/[a-z]+-\\d+\\.html': 'sasa',
  '^(?:http|https)://www\\.dhc\\.net\\.cn/gds/(?:detail|csearch\\.jsp\\?ccd=[\\d]+)': 'dhc',
  '^(?:http|https)://www\\.9dadao\\.com/product/': '9dadao',
  '^(?:http|https)://www\\.360kxr\\.com/product/': '360kxr',
  '^(?:http|https)://www\\.m6go\\.com/product': 'm6go',
  '^(?:http|https)://www\\.gou\\.com/product': 'm6go',
  '^(?:http|https)://www\\.m6go\\.com/qg/product': 'm6go',
  '^(?:http|https)://www\\.gou\\.com/qg/product': 'm6go',
  '^(?:http|https)://www\\.likeface\\.com/product': 'likeface',
  '^(?:http|https)://www\\.qxian\\.com/.*?[0-9]*?\\.html': 'qxian',
  '^(?:http|https)://www\\.didamall\\.com/(?:products|libao)/info/': 'didamall',
  '^(?:http|https)://www\\.yaodian100\\.com/ecmall/product': 'yaodian100',
  '^(?:http|https)://www\\.yaofang\\.cn/goods': 'yaofang',
  '^(?:http|https)://www\\.lijiababy\\.com\\.cn/(?:eshop/product|Clothing/.*?/Product_item\\.aspx)': 'lijiababy',
  '^(?:http|https)://99read\\.com/Product/[a-zA-Z]*\\d+[a-zA-Z]*\\.aspx': '99read',
  '^(?:http|https)://product\\.china-pub\\.com/\\d+': 'china-pub',
  '^(?:http|https)://(www.|)bookschina\\.com/[\\d]+\\.htm': 'bookschina',
  '^(?:http|https)://(www.|)bookschina\\.com/GROUPBUY/groupbuy.aspx\\?groupid\\=[0-9]+': 'bookschina-tuan',
  '^(?:http|https)://(?:|www\\.)efeihu\\.com/(?:Product/|Pages/ProductShow/ProductDetails\\.aspx)': 'efeihu',
  '^(?:http|https)://tuan\\.efeihu\\.com/[0-9a-zA-Z]+/Detials.aspx\\?id=[0-9]+': 'efeihu',
  '^(?:http|https)://www\\.360mart\\.com/product[s]?/.*?\\.html': '360mart',
  '^(?:http|https)://www\\.yintai\\.com/product/productdetail': 'yintai',
  '^(?:http|https)://item\\.yintai\\.com/': 'yintai',
  '^(?:http|https)://www\\.quwan\\.com/goods': 'quwan',
  '^(?:http|https)://www\\.urcosme\\.com/search/final': 'urcosme',
  '^(?:http|https)://cn\\d*\\.strawberrynet\\.com/.*?/[0-9]+/': 'strawberrynet',
  '^(?:http|https)://www\\.strawberrynet\\.com/.*?/[0-9]+/': 'strawberrynet',
  '^(?:http|https)://www\\.luce\\.com\\.cn/product/': 'luce',
  '^(?:http|https)://www\\.k121\\.com/item': 'k121',
  '^(?:http|https)://www\\.happigo\\.com/[\\w]+/[\\w]+/[\\w]+/[\\d]+\\.html': 'happigo',
  '^(?:http|https)://www.happigo.com/item-[0-9]+.html': 'happigo',
  '^(?:http|https)://mall\\.happigo\\.com/goods-[\\d]+\\.html': 'happigo',
  '^(?:http|https)://mall\\.happigo\\.com/groupbuy-[0-9-]+\\.html': 'happigo',
  '^(?:http|https)://www\\.gap\\.cn/[^\\?]*product/[\\d]+\\.html': 'gap',
  '^(?:http|https)://www\\.misslele\\.com/.+[\\d]+\\.html': 'misslele',
  '^(?:http|https)://www\\.5lux\\.com/goods': '5lux',
  '^(?:http|https)://(?:www|hui)\\.5lux\.com/good/detail/[0-9]+': '5lux',
  '^(?:http|https)://www\\.xiaozhuren\\.com/(Disney/)?goods\\.php': 'xiaozhuren',
  '^(?:http|https)://www\\.all3c\\.com/product/': 'all3c',
  '^(?:http|https)://www\\.idaphne\\.com/goods': 'idaphne',
  '^(?:http|https)://product\\.pcbaby\\.com\\.cn/a/': 'pcbaby',
  '^(?:http|https)://www\\.binggo\\.com/.*?/\\d{7}\\d+\\.html': 'binggo',
  '^(?:http|https)://www\\.tiantian\\.com/.+/[a-zA-Z]?[\\d]+\\.html': 'tiantian',
  '^(?:http|https)://tuan\\.tiantian\\.com/Sale/(?:Details|FlashDetails)/[a-zA-Z0-9]+': 'tiantian-tuan',
  '^(?:http|https)://www\\.xiji\\.com/product-[0-9]+\\.html': 'xiji',
  '^(?:http|https)://www\\.xijie\\.com/prod': 'xijie',
  '^(?:http|https)://mall\\.jumei\\.com[^\\?]*/product_': 'jumei',
  '^(?:http|https)://pop\\.jumei\\.com/i/deal/\\w+\\.html': 'jumei',
  '^(?:http|https)://(gz|bj|sh)\\.jumei\\.com/i/deal/\\w+\\.html': 'jumei',
  '^(?:http|https)://item\\.jumei\\.com/[0-9a-zA-Z]+\\.html': 'jumei',
  '^(?:http|https)://www\\.jumeiglobal\\.com/deal/\\w+\\.html': 'jumeiglobal',
  '^(?:http|https)://item\\.jumeiglobal\\.com/[0-9a-zA-Z]+\\.html': 'jumeiglobal',
  '^(?:http|https)://www\\.jumeiglobal\\.com/Deal/Combination\\?': 'jumeiglobal',
  '^(?:http|https)://buy\\.caomeipai\\.com/goods': 'caomeipai',
  '^(?:http|https)://www\\.dahuozhan\\.com/product/': 'dahuozhan',
  '^(?:http|https)://www\\.dazhe\\.cn/goodsdetail': 'dazhe',
  '^(?:http|https)://www\\.huolida\\.com/product/': 'huolida',
  '^(?:http|https)://www\\.12dian\\.com/product': '12dian',
  '^(?:http|https)://www\\.yougou\\.com/c_': 'yougou',
  '^(?:http|https)://(?:outlets|www)\\.yougou\\.com/[^?]+sku-[\\w]+': 'yougou',
  '^(?:http|https)://(?:outlets|seoul|www)\\.yougou\\.com/[a-z-]+/sku-[a-z0-9-]+\\.shtml': 'yougou',
  '^(?:http|https)://www\\.111\\.com\\.cn/(?:product|item)/': '111',
  '^(?:http|https)://www\\.daoyao\\.com/product': 'daoyao',
  '^(?:http|https)://www\\.jianke\\.com/product/': 'jianke',
  '^(?:http|https)://www\\.jianke\\.com/tuan/product/[0-9]+\\.html': 'jianke',
  '^(?:http|https)://www\\.360kad\\.com/product/[0-9a-z]+\\.shtml': '360kad',
  '^(?:http|https)://www\\.lbxcn.com/(?:Product|item)/[0-9]+.html': 'lbxcn',
  '^(?:http|https)://www\\.lbxcn.com/hepstorefront/lbx/zh/LBX/.*/p/[0-9]+': 'lbxcn',
  '^(?:http|https)://book\\.douban\\.com/subject/[\\d]+': 'douban',
  '^(?:http|https)://dongxi\\.douban\\.com/show/[\\d]+': 'douban-dongxi',
  '^(?:http|https)://product\\.it168\\.com/detail/doc/[0-9]+/index\\.shtml': 'it168',
  '^(?:http|https)://product\\.pconline\\.com\\.cn/[^/]*?/[^/]*?/[0-9]+\\.html': 'pconline',
  '^(?:http|https)://product\\.pcpop\\.com/[0-9]+/Index\\.html': 'pcpop',
  '^(?:http|https)://cosme\\.pclady\\.com\\.cn/product/[0-9]+\\.html': 'pclady',
  '^(?:http|https)://brand\\.yoka\\.com/cosmetics/.*?/detail[0-9]+\\.htm': 'yoka',
  '^(?:http|https)://detail\\.55bbs\\.com/.*?/index[0-9]+\\.shtml': '55bbs',
  '^(?:http|https)://hzp\\.onlylady.com/.*?/[0-9]+/': 'onlylady',
  '^(?:http|https)://www\\.24dq.com/product.*?html': '24dq',
  '^(?:http|https)://www\\.muyingzhijia\\.com/Shopping/ProductDetail\\.aspx': 'muyingzhijia',
  '^(?:http|https)://www\\.muyingzhijia\\.com/product/\\d+\\.html': 'muyingzhijia',
  '^(?:http|https)://item\\.muyingzhijia\\.com/\\d+\\.html': 'muyingzhijia',
  '^(?:http|https)://www\\.houmart\\.com/p\\-[\\d]+\\.html': 'houmart',
  '^(?:http|https)://www\\.onlyts\\.cn/goods': 'onlyts',
  '^(?:http|https)://www\\.winxuan\\.com/product/.*?[0-9]*?': 'winxuan',
  '^(?:http|https)://item\\.winxuan\\.com/[0-9]+': 'winxuan',
  '^(?:http|https)://detail\\.bookuu\\.com/[0-9]*?\\.html': 'bookuu',
  '^(?:http|https)://www\\.bookuu\\.com/detail\\.php\\?id=\\d+': 'bookuu',
  '^(?:http|https)://e\\.bookuu\\.com/detail\\.php\\?id=\\d+': 'bookuu',
  '^(?:http|https)://wenju\\.bookuu\\.com/detail\\.php\\?id=\\d+': 'bookuu',
  '^(?:http|https)://book\\.beifabook\\.com/Product/BookDetail.aspx': 'beifabook',
  '^(?:http|https)://product\\.yesky\\.com/product/.*?[0-9]*?/': 'yesky',
  '^(?:http|https)://product\\.pchome\\.net/.*?[0-9]*?\\.html': 'pchome',
  '^(?:http|https)://product\\.enet\\.com\\.cn/[a-zA-Z\\-].*?[\\d].*?\\.html': 'enet',
  '^(?:http|https)://(www\\.)?(?:ruiyi|rayi)\\.(?:com|cn|com\\.cn)/\\?product-[\\d].*?\\.html': 'ruiyi',
  '^(?:http|https)://www\\.nop\\.cn/product-[\\d]*?\\.html': 'nop',
  '^(?:http|https)://product\\.imobile\\.com\\.cn/show/[\\d].*?\\.html': 'imobile',
  '^(?:http|https)://product\\.cnmo\\.com/cell_phone/index[\\d].*?\\.shtml': 'cnmo',
  '^(?:http|https)://phone\\.shouji\\.com\\.cn/[\\d]+/detail/[\\d]+': 'shouji',
  '^(?:http|https)://product\\.tompda\\.com/[a-zA-Z]/[a-zA-Z]/[\\d]+/[\\d]+': 'tompda',
  '^(?:http|https)://www\\.3533\\.com/phone/phone.+\\.htm': 'phone3533',
  '^(?:http|https)://product\\.intozgc\\.com/[a-zA-Z\\_]+\\_[\\d]+': 'intozgc',
  '^(?:http|https)://product\\.chinabyte\\.com/product/[\\d]+/[\\d]+': 'chinabyte',
  '^(?:http|https)://app\\.tech\\.ifeng\\.com/[a-zA-Z\\-\\_]+/[a-zA-Z\\-\\_]+/[a-zA-Z0-9\\-\\_]+': 'ifeng',
  '^(?:http|https)://app\\.tech\\.ifeng\\.com/[a-zA-Z\\-\\_]+/detail\\-index\\-[0-9]+\\.html': 'ifeng',
  '^(?:http|https)://www2\\.xitek\\.com/production/product.php': 'xitek',
  '^(?:http|https)://product\\.imp3\\.net/product\\.php': 'imp3',
  '^(?:http|https)://www\\.menglu\\.com/product/[\\d]+\\.html': 'menglu',
  '^(?:http|https)://(?:lady|lingerie|www|fashion|shipin|item)\\.moonbasa\\.com/[a-zA-Z]\\-[\\d]+\\.html': 'moonbasa',
  '^(?:http|https)://www\\.(?:ing2ing|qjherb|korirl|alaves|0-100s|cherriespie|clafield|baoyeah|suorang|monteamor|rutisher)\\.com/p\\-[\\d]+\\.html': 'moonbasa',
  '^(?:http|https)://www\\.keede\\.com(\\.cn)?/[a-zA-Z]+[\\d]+\\.html': 'keede',
  '^(?:http|https)://www\\.kede\\.com(\\.cn)?/[a-zA-Z]+[\\d]+\\.html': 'keede',
  '^(?:http|https)://k1\\.keede\\.cn/[a-zA-Z]+[\\d]+\\.html': 'keede',
  '^(?:http|https)://k1\\.kede\\.cn/[a-zA-Z]+[\\d]+\\.html': 'keede',
  '^(?:http|https)://item(\\.vt)?\\.vancl\\.com/[\\d]+\\.html': 'vancl',
  '^(?:http|https)://www\\.dazhongdianqi\\.com\\.cn/dazhong/product[\\-\\d]+\\.htm': 'dazhongdianqi',
  '^(?:http|https)://www\\.skinstorechina\\.com/.+/.+[\\d]+\\-p\\.html': 'skinstorechina',
  '^(?:http|https)://item\\.buy\\.qq\\.com/item/': 'qq',
  '^(?:http|https)://.*\\.zol\\.com\\.cn/\\d+/\\d+\\.html': 'zol-article',
  '^(?:http|https)://.*\\.pconline\\.com\\.cn/\\d+/\\d+\\.html': 'pconline-article',
  '^(?:http|https)://.*\\.yesky\\.com/\\d+/\\d+\\.shtml': 'yesky-article',
  '^(?:http|https)://.*\\.it168\\.com/[a-z]\\d+/\\d+/\\d+/\\d+\\.shtml': 'it168-article',
  '^(?:http|https)://.*\\.pcpop\\.com/doc/\\d+/\\d+/\\d+\\.shtml': 'pcpop-article',
  '^(?:http|https)://.*\\.pchome\\.net/content-\\d+\\.html': 'pchome-article',
  '^(?:http|https)://.*\\.139shop\\.com/.*?/\\d+/\\d+\\.htm': '139shop-article',
  '^(?:http|https)://www\\.milier\\.com/product/': 'milier',
  '^(?:http|https)://www\\.sportica\\.cn/goods': 'sportica',
  '^(?:http|https)://www\\.zhenpin\\.com/product': 'zhenpin',
  '^(?:http|https)://www\\.gaojie\\.com/product/': 'gaojie',
  '^(?:http|https)://www\\.naruko\\.com\\.cn/shop/product/Goods\\.aspx': 'naruko',
  '^(?:http|https)://www\\.(?:vivian|masamaso|linkmasa)\\.(?:com|cn)/goods_': 'masamaso',
  '^(?:http|https)://item\\.secoo\\.com/': 'secoo',
  '^(?:http|https)://paimai\\.secoo\\.com/[0-9]+\\.shtml': 'secoo',
  '^(?:http|https)://sale\\.secoo\\.com/[0-9]+\\.shtml': 'secoo',
  '^(?:http|https)://(?:www|tuan)\\.ehaier\\.com/product/': 'ehaier',
  '^(?:http|https)://qiji\\.ehaier\\.com/new/newExploreManager/dateil/[0-9]+': 'ehaier',
  '^(?:http|https)://www\\.handuyishe\\.com/goods': 'handuyishe',
  '^(?:http|https)://www\\.wbiao\\.cn/[a-z0-9-]+\\.html': 'wbiao',
  // '^(?:http|https)://www\\.wbiao\\.cn/[a-z]+/[a-z0-9-]+\\.html': 'wbiao',
  '^(?:http|https)://www\\.wbiao\\.cn/goods\\.php\\?goods_id=[0-9]+': 'wbiao',
  '^(?:http|https)://www\\.wbiao\\.cn/van-der-bauwede-\\w[0-9]+\\.html': 'wbiao',
  '^(?:http|https)://www\\.shangpin\\.com(\\.hk)*/.*?product/': 'shangpin',
  '^(?:http|https)://www\\.pba\\.cn/(?:product|sp)': 'pba',
  '^(?:http|https)://www\\.metromall\\.cn/Product/': 'metromall',
  '^(?:http|https)://www\\.lizi\\.com/product': 'lizi',
  '^(?:http|https)://www\\.kadang\\.com/[a-zA-Z0-9/]*detail\\d+': 'kadang',
  '^(?:http|https)://www\\.kadang\\.com/product/[0-9]+': 'kadang',
  '^(?:http|https)://www\\.aimer\\.com\\.cn/goods/': 'aimer',
  '^(?:http|https)://www\\.lamiu\\.com/goods_': 'lamiu',
  '^(?:http|https)://www\\.lamiu\\.com/(?:goods_|product-)': 'lamiu',
  '^(?:http|https)://www\\.esprit\\.cn/(?:product|item)/\\w+': 'esprit',
  '^(?:http|https)://www\\.liebo\\.com/product/': 'liebo',
  '^(?:http|https)://www\\.wangjiu\\.com/product/(?!flashPromotion)': 'wangjiu',
  '^(?:http|https)://www.wangjiu.com/mall/item-pid-[a-zA-Z0-9]+\\.html': 'wangjiu',
  '^(?:http|https)://www\\.xifuquan\\.com/product/': 'xifuquan',
  '^(?:http|https)://www\\.189\\.cn/products/': '189',
  '^(?:http|https)://www\\.hicdma\\.com/product_detail_': 'hicdma',
  '^(?:http|https)://mall\\.10010\\.com/goodsdetail/': '10010',
  '^(?:http|https)://www\\.e100\\.cn/ebiz/channel/(.*/)+\\d+\\.html': 'e100',
  '^(?:http|https)://store\\.samsung\\.com/cn/.*/p/.*': 'samsung',
  '^(?:http|https)://www\\.samsungeshop\\.com\\.cn/product/.*': 'samsung',
  '^(?:http|https)://store\\.meizu\\.com/product/': 'meizu',
  '^(?:http|https)://detail\\.meizu\\.com/item/\\w+': 'meizu',
  '^(?:http|https)://b2c\\.958shop\\.com/.*/\\d+\\.html': '958shop',
  '^(?:http|https)://www\\.okhqb\\.com/item/\\d+\\.html': 'okhqb',
  '^(?:http|https)://www\\.okhqb\\.com/qiang/\\d+/\\d+\\.html': 'okhqb',
  '^(?:http|https)://www\\.ztedevice\\.com\\.cn/product/': 'ztedevice',
  '^(?:http|https)://www\\.daling\\.com/detail-[0-9]+\\.html': 'daling',
  '^(?:http|https)://item\\.showjoy\\.com/sku/[0-9]+\\.html': 'showjoy',
  '^(?:http|https)://www\\.ocj\\.com\\.cn/detail/[0-9]+': 'ocj',
  '^(?:http|https)://www\\.ocj\\.kr/detail/[0-9]+': 'ocj-kr',
  '^(?:http|https)://www\\.ocj\\.com\\.cn/otuans/[a-z]+/[0-9]+': 'ocj-tuan',
  '^http://www\\.lvyoumall\\.com/(tuan/goods-|tmh/goods-|goods/)\\d+': 'lvyoumall',
  'http://www\\.kjt\\.com/product/detail/\\d+': 'kjt',
  '^(?:http|https)://store\\.logitech\\.com\\.cn/pro/proDetail/\\d+': 'logitech',
  '^(?:http|https)://store\\.logitech\\.com\\.cn/product/PointDetail/\\d+': 'logitech',
  'http://shop\\.boohee\\.com/store/goods/\\w+': 'boohee',
  'http://www\\.meici\\.com/product-[a-zA-Z0-9-]+\\.html': 'meici',
  'http://www\\.meici\\.com/product.*': 'meici',
  'http://(?:global|you|www)\\.beibei\\.com/detail/[0-9-]+\\.html': 'beibei',
  'http://store\\.nike\\.com/cn/zh_cn/pd/[a-zA-Z0-9\\u4e00-\\u9fa5-]+': 'nike',
  'http://store\\.nike\\.com/cn/zh_cn/product/[a-zA-Z0-9\\u4e00-\\u9fa5-]+': 'nike',
  '^(?:http|https)://www\\.nike\\.com/cn/t/[a-zA-Z0-9\\u4e00-\\u9fa5-]+': 'nike',
  '^(?:http|https)://www\\.fengqu\\.com\/detail\/': 'fengqu',
  '^(?:http|https)://www\\.mei\\.com/silo/.*-event-event/.*\\.html': 'mei',
  '^(?:http|https)://www\\.mei\\.com/item\\.html\\?': 'mei',
  '^(?:http|https)://www\\.vsigo\\.cn/.*\\.html': 'vsigo',
  '^(?:http|https)://www\\.sundan\\.com/product-[0-9]+': 'sundan',
  '^(?:http|https)://www\\.jiae\\.com/productdetail': 'jiae',
  '^(?:http|https)://hd\\.zazhipu\\.com/.*\\.asp\\?id=[0-9]+': 'zazhipu',
  '^(?:http|https)://www\\.microsoftstore\\.com\\.cn/%E7%B1%BB%E5%88%AB/.*/p/.*': 'microsoftstore',
  '^(?:http|https)://www\\.microsoftstore\\.com\\.cn/surface/[a-z0-9A-Z-]+': 'microsoftstore',
  '^(?:http|https)://www\\.xgdq\\.com/product-[0-9]+\\.html': 'xgdq',
  '^(?:http|https)://(?:www\\.|)xtep\\.com\\.cn/goods/do_index': 'xtep',
  '^(?:http|https)://www\\.xtep\\.com\\.cn/team-[0-9]+\\.html': 'xtep',
  '^(?:http|https)://www\\.xtep\\.com\\.cn/spike-[0-9]+\\.html': 'xtep',
  '^(?:http|https)://www\\.staples\\.cn/product/[0-9a-zA-Z]+': 'staples',
  // '^(?:http|https)://(?:www\\.|)efotile\\.com/productdetail/[a-z0-9-_]+/[a-z0-9-_]+\\.html': 'efotile',
  '^(?:http|https)://mall\\.midea\\.com/detail/index': 'midea',
  '^(?:http|https)://www\\.midea\\.cn/detail/index': 'midea',
  '^(?:http|https)://www\\.midea\\.cn/[0-9]+/[0-9]+\\.html': 'midea',
  '^(?:http|https)://www1\\.macys\\.com/shop/product/\\w+': 'macys',
  '^(?:http|https)://cn.shopbop.com/[a-z0-9-]+/vp/\\w+': 'shopbop',
  // 'www\\.bestcake\\.com/\\w+/item/[a-z0-9-]+': 'bestcake',
  '^(?:http|https)://www\\.hua\\.com/product/[0-9]+\\.html': 'hua',
  '^(?:http|https)://shop.zhe800.com/products/[0-9a-z]+': 'zhe800',
  '^(?:http|https)://www.cosme.com/products/detail.php\\?product_id': 'cosme',
  '^(?:http|https)://www.diapers.com/p/': 'diapers',
  '^(?:http|https)://www.windeln.de/zh/\\w+-': 'windeln',
  '^(?:http|https)://www.windeln.com\\.cn/product/\\d+': 'windeln',
  '^(?:http|https)://www.escentual.com/[a-z]+[0-9]+/': 'escentual',
  '^(?:http|https)://www.biccamera.com/bc/disp/\\w+': 'biccamera',
  '^(?:http|https)://www.esteelauder.com/product/\\d+/\\d+/\\w+': 'esteelauder',
  '^(?:http|https)://www.saksfifthavenue.com/main/ProductDetail.jsp': 'saksfifthavenue',
  '^(?:http|https)://www.thewatchery.com/detail.asp': 'thewatchery',
  '^(?:http|https)://item.tuhu.(cn|com)/Products/': 'tuhu',
  '^(?:http|https)://item\\.tuhu\\.cn/Products/[A-Z-]+/\\d+\\.html': 'tuhu',
  '^(?:http|https)://eshop.htc.com/mall/zh-CN/htc/[a-z0-9-]+': 'htc',
  '^(?:http|https)://roseonly.com.cn/item/[0-9]+.html': 'roseonly',
  '^(?:http|https)://www.taqu.cn/goods-\\d+.html': 'taqu',
  '^(?:http|https)://shop.jx.189.cn/web/productDetail.action\\?productInfoID': '189',
  '^(?:http|https)://www.bftv.com/product/[0-9]+': 'bftv',
  '^(?:http|https)://www.axmall.com.au/p/\\d+\\.html': 'axmall',
  '^(?:http|https)://www\\.lovo\\.cn/pr-[0-9]+\\.htm': 'lovo',
  '^(?:http|https)://www\\.adidas\\.com\\.cn/item/': 'adidas',
  '^(?:http|https)://www\\.smzdm\\.com/p/[0-9]+': 'smzdm',
  '^(?:http|https)://www\\.uniqlo\\.cn/product-detail\\.html\\?productCode=[a-z0-9-]+': 'uniqlo',
  // https://www.colipu.com/category3-paper-computerprintingpaper-80columncomputerprintingpaper-colipu-48293.html
  '^(?:http|https)://www\\.colipu\\.com/[a-z0-9-]+\\.html': 'colipu',
  // https://b2b.nbdeli.com/pcweb/detail?sku=100002912
  '^(?:http|https)://b2b\\.nbdeli\\.com/pcweb/detail\\?sku=\\d+': 'nbdeli',
  // https://www.3c2p.com/views/detail/detail.html?productId=5066002
  '^(?:http|https)://www\\.3c2p\\.com/views/detail/detail\\.html\\?productId=\\d+': '3c2p',
  // https://www.comix.com.cn/3011710.html
  '^(?:http|https)://www\\.comix\\.com\\.cn/\\d+\\.html': 'comix'
  // '^(?:http|https)://(main|h5)\\.m\\.taobao\\.com/awp/': 'taobao',
};
module.exports.init = () => {
  let pageInfo = getPageInfo();
  (__webpack_require__(7129).log)(pageInfo);
  let productSites = new Set(Object.values(productPattern).filter(x => typeof x === 'string'));
  let allSites = new Set(Object.values(sitePattern).map(x => typeof x === 'string' ? x : x.name));
  let noProductSites = new Set([...allSites].filter(x => !productSites.has(x)));
  G.pageInfo = pageInfo;
  // if (noProductSites.has(G.site)) {
  //   require('common/log')('view:unsupportedSite')
  // } else {
  //   require('common/log')('view:supportedSite:' + pageInfo.type)
  // }
  // if (G.from_device === 'biyibi') require('common/log')('viewurl')
  if (G.sjfix) return;
  if (G.site && (G.site == 'taobao' || G.site == 'tmall' || G.site.indexOf('taobao') > -1 || G.site == '1688')) {
    G.aliSite = true;
    if (window.__ASSET_PATH__) {
      // check UI version
      // //g.alicdn.com/detail-project/pc-detail/0.2.49/web/

      let match = window.__ASSET_PATH__.match(/\/(\d+\.\d+\.\d+)\/web\//);
      if (match) {
        let version = match[1];
        G.aliUIVersion = version;
      }
    }
  }
};

/***/ }),

/***/ 92857:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(99784);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("1a7d9bed", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 93207:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $each = $imports.$each, data = $data.data, $value = $data.$value, $index = $data.$index, $escape = $imports.$escape, allLink = $data.allLink, storeSize = $data.storeSize;
    $$out += '<div id="gwd_mini_compare_detail" class="minibar-detail">\n  <ul>\n    ';
    $each(data, function ($value, $index) {
        $$out += '\n      <li>\n        <a href="';
        $$out += $escape($value.url);
        $$out += '" target="_blank">\n          <img src="';
        $$out += $escape($value.icourl);
        $$out += '">\n          <span class="m-item-sitename">';
        $$out += $escape($value.site_name);
        $$out += '</span>\n          <span class="m-item-price prifontf">\xA5';
        $$out += $escape($value.price);
        $$out += '</span>\n        </a>\n      </li>\n    ';
    });
    $$out += '\n  </ul>\n  <a href="';
    $$out += $escape(allLink);
    $$out += '" target="_blank" class="m-all-link">\n    查看全部(';
    $$out += $escape(storeSize);
    $$out += ')\n  </a>\n</div>\n';
    return $$out;
};

/***/ }),

/***/ 93327:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "B", ({
  value: true
}));
exports.A = void 0;
__webpack_require__(26910);
__webpack_require__(3362);
var _Price = _interopRequireDefault(__webpack_require__(83007));
var _ProductItem = _interopRequireDefault(__webpack_require__(80636));
var _Error = _interopRequireDefault(__webpack_require__(90084));
const extConsole = __webpack_require__(7129);
const util = __webpack_require__(30888);
const bgClient = __webpack_require__(40076);
const transText = __webpack_require__(54600);
const siteMap = {
  tb: transText('淘宝'),
  jd: transText('京东'),
  pdd: '拼多多',
  1688: '1688',
  amazon: '亚马逊'
};
const sortMap = {
  default: transText('相似度'),
  price: transText('价格从低到高'),
  sales: transText('销量从高到低')
};
const SiteStatus = {
  pending: 'pending',
  finish: 'finish',
  loading: '加载中...',
  empty: transText('暂无同款'),
  error: transText('加载失败'),
  needLogin: 'needLogin',
  needVisit: 'needVisit'
};
const apis = {
  tb: (__webpack_require__(55494)/* ["default"] */ .A),
  jd: __webpack_require__(98153),
  1688: __webpack_require__(81174),
  amazon: __webpack_require__(65275)
};
const makeDefaultStatus = () => ({
  status: SiteStatus.pending,
  list: [],
  statusDetail: ''
});
if (window.gwd_G && window.gwd_G.apiReplace) {
  Object.keys(window.gwd_G.apiReplace).forEach(key => {
    apis[key] = window.gwd_G.apiReplace[key];
  });
}
let showedAlert = false;
var _default = exports.A = {
  components: {
    Price: _Price.default,
    ProductItem: _ProductItem.default,
    Error: _Error.default
  },
  props: ['img', 'price'],
  data: () => ({
    logo: G.lang === 'zh-tr' ? __webpack_require__(26521) : __webpack_require__(40075),
    isBjg: G.from_device === 'bijiago',
    is1688: location.hostname.includes('.1688.com'),
    firefox: navigator.userAgent.indexOf('Firefox') > -1,
    siteMap,
    SiteStatus: SiteStatus,
    show: true,
    xhs: location.hostname.includes('xiaohongshu.com'),
    style: G.from_device === 'bijiago' ? 'bottom' : G.style,
    expanded: false,
    hasPermission: true,
    sites: G.site === '360buy' ? ['jd', 'tb'] : ['tb', 'jd'],
    currentViewing: location.hostname.includes('.1688.com') ? '1688' : G.site === '360buy' ? 'jd' : 'tb',
    permissionTextOnly: false,
    currentSort: 'default',
    sortOptions: ['default', 'price', 'sales'],
    products: {
      tb: makeDefaultStatus(),
      jd: makeDefaultStatus(),
      pdd: makeDefaultStatus(),
      1688: makeDefaultStatus(),
      amazon: makeDefaultStatus()
    }
  }),
  methods: {
    overlayClick(e) {
      if (e.target === this.$refs.overlay) {
        this.close();
      }
    },
    transText(text) {
      return transText(text);
    },
    getSiteName(site) {
      return siteMap[site];
    },
    getSortName(sort) {
      if ((this.currentViewing === 'jd' || this.currentViewing === 'amazon') && sort === 'sales') {
        return transText('评论数从高到低');
      }
      return sortMap[sort];
    },
    close() {
      this.show = false;
      document.body.style.overflow = 'auto';
    },
    open() {
      this.show = true;
      document.body.style.overflow = 'hidden';
    },
    reset() {
      this.products.tb.status = SiteStatus.pending;
      this.products.jd.status = SiteStatus.pending;
      this.products.tb.list = [];
      this.products.jd.list = [];
      this.products.tb.statusDetail = '';
      this.products.jd.statusDetail = '';
    },
    async doSearch(site, canRetry = true) {
      if (this.products[site].status === SiteStatus.loading) {
        return;
      }
      if (!this.img) {
        return;
      }
      if (G.from_device === 'bijiago') {
        const permissionResult = await bgClient.get('/checkPermission');
        extConsole.log('permissionResult', permissionResult);
        if (permissionResult !== 'ok') {
          this.products[site].status = SiteStatus.error;
          this.products[site].statusDetail = '没有权限';
          if (!showedAlert) {
            showedAlert = true;
            this.permissionTextOnly = true;
          }
          this.hasPermission = false;
          bgClient.get('/requestTb').then(permissionResult => {
            this.permissionTextOnly = false;
            if (permissionResult) {
              this.hasPermission = true;
            }
          });
          return;
        }
      }
      this.products[site].status = SiteStatus.loading;
      apis[site].get(this.img).then(res => {
        extConsole.log(res);
        if (res instanceof Array) {
          this.products[site].list = res;
          this.products[site].status = res.length ? SiteStatus.finish : SiteStatus.empty;
        } else if (res === 'needLogin') {
          this.products[site].status = SiteStatus.needLogin;
        } else if (res === 'needVisit') {
          this.products[site].status = SiteStatus.needVisit;
        } else {
          if (canRetry && res.includes('fail-')) {
            setTimeout(() => {
              this.products[site].status = SiteStatus.pending;
              this.doSearch(site, false);
            }, 200);
            return;
          }
          this.products[site].status = SiteStatus.error;
          this.products[site].statusDetail = res;
          console.error('imgSearch', res);
        }
      }).catch(err => {
        extConsole.error('imgSearch', err);
        this.products[site].status = SiteStatus.error;
      });
    }
  },
  computed: {
    unit() {
      return G.site === 'amazon' ? '$' : '¥';
    },
    currentSiteResult() {
      if (!this.products[this.currentViewing]) {
        console.error('imgSearch not found', this.currentViewing);
        console.log(this.products[this.currentViewing]);
        return makeDefaultStatus();
      }
      return this.products[this.currentViewing];
    },
    sortedList() {
      this.$nextTick(() => {
        this.$refs.list.scrollTop = 0;
      });
      return JSON.parse(JSON.stringify(this.currentSiteResult.list)).sort((a, b) => {
        if (this.currentSort === 'default') {
          return 0;
        } else if (this.currentSort === 'price') {
          return parseFloat(a.price) - parseFloat(b.price);
        } else if (this.currentSort === 'sales') {
          return util.stringToNumber(b.salesAmount) - util.stringToNumber(a.salesAmount);
        }
      });
    }
  },
  watch: {
    currentViewing(newVal) {
      extConsole.log('site load start', newVal);
      this.currentSort = 'default';
      if (this.currentSiteResult.status === SiteStatus.pending) {
        this.doSearch(newVal);
      }
    }
  },
  mounted() {
    this.currentViewing = this.is1688 ? '1688' : G.site === '360buy' ? 'jd' : 'tb';
    if (this.is1688) {
      this.sites.unshift('1688');
    }
    if (G.site === 'amazon') {
      this.sites = this.sites.filter(site => site === 'tb');
      this.sites.unshift('1688');
      this.sites.unshift('amazon');
      this.currentViewing = 'amazon';
    }
    this.doSearch(this.currentViewing);
  }
};

/***/ }),

/***/ 93389:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);
var DESCRIPTORS = __webpack_require__(43724);

// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;

// Avoid NodeJS experimental warning
module.exports = function (name) {
  if (!DESCRIPTORS) return globalThis[name];
  var descriptor = getOwnPropertyDescriptor(globalThis, name);
  return descriptor && descriptor.value;
};


/***/ }),

/***/ 93438:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var anObject = __webpack_require__(28551);
var isObject = __webpack_require__(20034);
var newPromiseCapability = __webpack_require__(36043);

module.exports = function (C, x) {
  anObject(C);
  if (isObject(x) && x.constructor === C) return x;
  var promiseCapability = newPromiseCapability.f(C);
  var resolve = promiseCapability.resolve;
  resolve(x);
  return promiseCapability.promise;
};


/***/ }),

/***/ 93503:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-amazon-link[data-v-cd1584e4] {\n  display: inline-block;\n  outline: none;\n  font-size: 14px;\n  margin-left: 12px;\n  margin-right: 12px;\n  font-family: PingFang SC-Medium, PingFang SC, Microsoft YaHei, serif;\n  font-weight: 500;\n  color: #FFFFFF;\n  line-height: 30px;\n  padding-left: 12px;\n  padding-right: 12px;\n  height: 30px;\n  background: #FE9E0F;\n  border-radius: 34px;\n  opacity: 1;\n  border: 1px solid;\n  white-space: nowrap;\n}\n.gwd-amazon-link[data-v-cd1584e4]:hover {\n  background: #FF8F00;\n  text-decoration: none;\n}\n", ""]);

// exports


/***/ }),

/***/ 94145:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, c_server = $data.c_server, s_server = $data.s_server;
    $$out += '<div class="gwd_continue2 bjd_btn_box">\n  <a href="';
    $$out += $escape(c_server);
    $$out += '" target="_blank" title="购物党"></a>\n  <span class="bjd_addcart">点此进入下一步</span>\n  <span class="bjd_close"></span>\n</div>\n<style type="text/css">\n  .gwd_continue2 {\n    width: 210px;\n    height: 36px;\n    background-color: #fff;\n    color: #494b4d;\n    position: absolute;\n    left: -253px;\n    top: -33px;\n    text-align: center;\n    line-height: 35px;\n    border-bottom-left-radius: 28px;\n    border-top-left-radius: 28px;\n    font-size: 14px;\n    border: 1px solid #47befe;\n    font-family: \'Microsoft Yahei\';\n  }\n  .gwd_continue2 a, .gwd_continue2 span {\n    float: left;\n    margin-left: 19px;\n  }\n  .gwd_continue2 .bjd_addcart {\n    cursor: text;\n  }\n  .gwd_continue2 a {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_siteicon.png\') 0px 6px no-repeat;\n    background-size: 24px 22px;\n    height: 35px;\n    width: 26px;\n  }\n  .bjd_close {\n    background: url(\'';
    $$out += $escape(s_server);
    $$out += '/images/extensions/haitao_closeicon.png\') 0px 0px no-repeat;\n    width: 20px;\n    height: 20px;\n    margin-top: 12px;\n    background-size: 12px 12px;\n  }\n  .gwd_continue2:before{\n    border: 18px solid transparent;\n    border-left-color: #47befe;\n    content: "";\n    position: absolute;\n    left: 208px;\n    width: 0px;\n    height: 0px;\n    top: -1px;\n  }\n  .gwd_continue2:after{\n    border: 17px solid transparent;\n    border-left-color: #fff;\n    content: "";\n    position: absolute;\n    left: 208px;\n    width: 0px;\n    height: 0px;\n    top: 0px;\n  }\n  #order-summary-container .a-box-inner span, #shippingOptionFormId .a-box-inner .continue-button .a-button-primary{\n    overflow: visible;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 94226:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);


const cnzz = __webpack_require__(5300);
const log = __webpack_require__(35743);
module.exports.init = () => {
  cnzz.log('fine3q:track');
  log('fine3q:track');
  $('#overview .ov-act').on('click', function (e) {
    let txt = $(e.target).text();
    let url = location.href;
    if (txt.indexOf('立即购买') > -1 && url.indexOf('gouwudang') > -1) {
      cnzz.log('fine3q:click');
      log('fine3q:click');
    }
  });
};

/***/ }),

/***/ 94320:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-head-item[data-v-549382c4] {\n  line-height: 14px;\n  height: 14px;\n  width: 100%;\n}\n.gwd-head-item span[data-v-549382c4] {\n  float: left;\n}\n.gwd-head-item[data-v-549382c4]:after {\n  display: block;\n  content: \"\";\n  clear: both;\n}\n.gwd-re-strong[data-v-549382c4] {\n  font-weight: bold;\n}\n", ""]);

// exports


/***/ }),

/***/ 94612:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".miniPanel .gwd-hint {\n  display: none;\n}\n.miniPanel .gwd-vline {\n  margin-left: 0;\n  margin-right: 10px;\n}\n.QJEEHAN8H5--quantityTip--_7871329 {\n  white-space: nowrap;\n}\n.root--uHUOEAcH .gwd-hint {\n  display: none;\n}\n", ""]);

// exports


/***/ }),

/***/ 94634:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-jd-self[data-v-fa024638] {\n  display: inline-block;\n  width: 30px;\n  height: 16px;\n  line-height: 16px;\n  text-align: center;\n  border-radius: 2px;\n  background: #ff4449;\n  color: #fff;\n  font-size: 12px;\n  margin-right: 4px;\n}\n.gwd-img-same-item[data-v-fa024638] {\n  transition: all 0.3s;\n  width: 220px;\n  padding: 10px;\n  box-sizing: border-box;\n  background: #ffffff;\n  border-radius: 8px;\n  margin-left: 20px;\n  margin-bottom: 20px;\n}\n.gwd-img-same-item img[data-v-fa024638] {\n  width: 200px;\n  height: 200px;\n  border-radius: 8px;\n}\n.gwd-img-same-item .gwd-sales[data-v-fa024638] {\n  color: #999;\n  font-size: 12px;\n}\n.gwd-img-same-item .gwd-title[data-v-fa024638] {\n  font-size: 14px;\n  color: #3c4c54;\n  overflow: hidden;\n  display: -webkit-box;\n  -webkit-line-clamp: 2;\n  -webkit-box-orient: vertical;\n  word-break: break-all;\n  height: 40px;\n  line-height: 20px;\n}\n.gwd-img-same-item .gwd-shop-name[data-v-fa024638] {\n  color: #999;\n  font-size: 12px;\n  white-space: nowrap;\n}\n.gwd-img-same-item .gwd-shop-name span[data-v-fa024638] {\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.gwd-img-same-item .gwd-item-promos[data-v-fa024638] {\n  margin-top: 10px;\n  margin-bottom: 12px;\n  height: 16px;\n  overflow: hidden;\n}\n.gwd-img-same-item .gwd-item-promos span[data-v-fa024638] {\n  color: #ff4449;\n  font-size: 12px;\n  display: inline-block;\n  margin-right: 4px;\n  border: 1px solid #ff4449;\n  padding-left: 4px;\n  padding-right: 4px;\n  height: 16px;\n  box-sizing: border-box;\n  line-height: 14px;\n}\n.gwd-img-same-item .gwd-favicon[data-v-fa024638] {\n  width: 13px;\n  height: 13px;\n  border-radius: 100%;\n  margin-right: 4px;\n}\n.gwd-img-same-item[data-v-fa024638]:hover {\n  box-shadow: 0px 8px 14px 0px rgba(0, 0, 0, 0.06);\n}\n.gwd-bjg.gwd-img-same-item[data-v-fa024638] {\n  margin-left: 17px;\n  margin-bottom: 17px;\n  border: 1px solid #e6e9eb;\n}\n", ""]);

// exports


/***/ }),

/***/ 94644:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var NATIVE_ARRAY_BUFFER = __webpack_require__(77811);
var DESCRIPTORS = __webpack_require__(43724);
var globalThis = __webpack_require__(44576);
var isCallable = __webpack_require__(94901);
var isObject = __webpack_require__(20034);
var hasOwn = __webpack_require__(39297);
var classof = __webpack_require__(36955);
var tryToString = __webpack_require__(16823);
var createNonEnumerableProperty = __webpack_require__(66699);
var defineBuiltIn = __webpack_require__(36840);
var defineBuiltInAccessor = __webpack_require__(62106);
var isPrototypeOf = __webpack_require__(1625);
var getPrototypeOf = __webpack_require__(42787);
var setPrototypeOf = __webpack_require__(52967);
var wellKnownSymbol = __webpack_require__(78227);
var uid = __webpack_require__(33392);
var InternalStateModule = __webpack_require__(91181);

var enforceInternalState = InternalStateModule.enforce;
var getInternalState = InternalStateModule.get;
var Int8Array = globalThis.Int8Array;
var Int8ArrayPrototype = Int8Array && Int8Array.prototype;
var Uint8ClampedArray = globalThis.Uint8ClampedArray;
var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;
var TypedArray = Int8Array && getPrototypeOf(Int8Array);
var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);
var ObjectPrototype = Object.prototype;
var TypeError = globalThis.TypeError;

var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(globalThis.opera) !== 'Opera';
var TYPED_ARRAY_TAG_REQUIRED = false;
var NAME, Constructor, Prototype;

var TypedArrayConstructorsList = {
  Int8Array: 1,
  Uint8Array: 1,
  Uint8ClampedArray: 1,
  Int16Array: 2,
  Uint16Array: 2,
  Int32Array: 4,
  Uint32Array: 4,
  Float32Array: 4,
  Float64Array: 8
};

var BigIntArrayConstructorsList = {
  BigInt64Array: 8,
  BigUint64Array: 8
};

var isView = function isView(it) {
  if (!isObject(it)) return false;
  var klass = classof(it);
  return klass === 'DataView'
    || hasOwn(TypedArrayConstructorsList, klass)
    || hasOwn(BigIntArrayConstructorsList, klass);
};

var getTypedArrayConstructor = function (it) {
  var proto = getPrototypeOf(it);
  if (!isObject(proto)) return;
  var state = getInternalState(proto);
  return (state && hasOwn(state, TYPED_ARRAY_CONSTRUCTOR)) ? state[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor(proto);
};

var isTypedArray = function (it) {
  if (!isObject(it)) return false;
  var klass = classof(it);
  return hasOwn(TypedArrayConstructorsList, klass)
    || hasOwn(BigIntArrayConstructorsList, klass);
};

var aTypedArray = function (it) {
  if (isTypedArray(it)) return it;
  throw new TypeError('Target is not a typed array');
};

var aTypedArrayConstructor = function (C) {
  if (isCallable(C) && (!setPrototypeOf || isPrototypeOf(TypedArray, C))) return C;
  throw new TypeError(tryToString(C) + ' is not a typed array constructor');
};

var exportTypedArrayMethod = function (KEY, property, forced, options) {
  if (!DESCRIPTORS) return;
  if (forced) for (var ARRAY in TypedArrayConstructorsList) {
    var TypedArrayConstructor = globalThis[ARRAY];
    if (TypedArrayConstructor && hasOwn(TypedArrayConstructor.prototype, KEY)) try {
      delete TypedArrayConstructor.prototype[KEY];
    } catch (error) {
      // old WebKit bug - some methods are non-configurable
      try {
        TypedArrayConstructor.prototype[KEY] = property;
      } catch (error2) { /* empty */ }
    }
  }
  if (!TypedArrayPrototype[KEY] || forced) {
    defineBuiltIn(TypedArrayPrototype, KEY, forced ? property
      : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property, options);
  }
};

var exportTypedArrayStaticMethod = function (KEY, property, forced) {
  var ARRAY, TypedArrayConstructor;
  if (!DESCRIPTORS) return;
  if (setPrototypeOf) {
    if (forced) for (ARRAY in TypedArrayConstructorsList) {
      TypedArrayConstructor = globalThis[ARRAY];
      if (TypedArrayConstructor && hasOwn(TypedArrayConstructor, KEY)) try {
        delete TypedArrayConstructor[KEY];
      } catch (error) { /* empty */ }
    }
    if (!TypedArray[KEY] || forced) {
      // V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable
      try {
        return defineBuiltIn(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property);
      } catch (error) { /* empty */ }
    } else return;
  }
  for (ARRAY in TypedArrayConstructorsList) {
    TypedArrayConstructor = globalThis[ARRAY];
    if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
      defineBuiltIn(TypedArrayConstructor, KEY, property);
    }
  }
};

for (NAME in TypedArrayConstructorsList) {
  Constructor = globalThis[NAME];
  Prototype = Constructor && Constructor.prototype;
  if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
  else NATIVE_ARRAY_BUFFER_VIEWS = false;
}

for (NAME in BigIntArrayConstructorsList) {
  Constructor = globalThis[NAME];
  Prototype = Constructor && Constructor.prototype;
  if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
}

// WebKit bug - typed arrays constructors prototype is Object.prototype
if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
  // eslint-disable-next-line no-shadow -- safe
  TypedArray = function TypedArray() {
    throw new TypeError('Incorrect invocation');
  };
  if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
    if (globalThis[NAME]) setPrototypeOf(globalThis[NAME], TypedArray);
  }
}

if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {
  TypedArrayPrototype = TypedArray.prototype;
  if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
    if (globalThis[NAME]) setPrototypeOf(globalThis[NAME].prototype, TypedArrayPrototype);
  }
}

// WebKit bug - one more object in Uint8ClampedArray prototype chain
if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {
  setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);
}

if (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) {
  TYPED_ARRAY_TAG_REQUIRED = true;
  defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG, {
    configurable: true,
    get: function () {
      return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
    }
  });
  for (NAME in TypedArrayConstructorsList) if (globalThis[NAME]) {
    createNonEnumerableProperty(globalThis[NAME], TYPED_ARRAY_TAG, NAME);
  }
}

module.exports = {
  NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,
  TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG,
  aTypedArray: aTypedArray,
  aTypedArrayConstructor: aTypedArrayConstructor,
  exportTypedArrayMethod: exportTypedArrayMethod,
  exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,
  getTypedArrayConstructor: getTypedArrayConstructor,
  isView: isView,
  isTypedArray: isTypedArray,
  TypedArray: TypedArray,
  TypedArrayPrototype: TypedArrayPrototype
};


/***/ }),

/***/ 94842:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "\na[data-v-6fda7d74] {\n  text-decoration: none;\n}\n", ""]);

// exports


/***/ }),

/***/ 94901:
/***/ ((module) => {

"use strict";

// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
var documentAll = typeof document == 'object' && document.all;

// `IsCallable` abstract operation
// https://tc39.es/ecma262/#sec-iscallable
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  return typeof argument == 'function' || argument === documentAll;
} : function (argument) {
  return typeof argument == 'function';
};


/***/ }),

/***/ 94968:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


__webpack_require__(3362);
function findSku2infoFromDomFiber(dom) {
  const fiberKey = Object.keys(dom).find(k => k.startsWith('__reactFiber$'));
  if (!fiberKey) {
    console.warn('❌ 找不到 React Fiber');
    return null;
  }
  let fiber = dom[fiberKey];
  while (fiber) {
    const stateNode = fiber.stateNode;
    if (stateNode && typeof stateNode === 'object' && stateNode.state) {
      var _stateNode$state$deta;
      if ((_stateNode$state$deta = stateNode.state.detail) !== null && _stateNode$state$deta !== void 0 && _stateNode$state$deta.skuBase) {
        return stateNode.state.detail;
      }
    }
    fiber = fiber.return;
  }
  return null;
}
module.exports.getLocalSku = async () => {
  if (!window.gwd_G) {
    return {};
  }
  if (!window.gwd_G.aliSite) {
    return;
  }
  if (window.gwd_G.aliSkuInfo) {
    return window.gwd_G.aliSkuInfo;
  }
  await (__webpack_require__(30888).waitForConditionFn)(() => document.querySelector(`.${window.gwd_G.aliPrefix}--Item2024--_21891f7`) || document.querySelector('input[name="x_id"]'));
  const el = document.querySelector(`.${window.gwd_G.aliPrefix}--Item2024--_21891f7`);
  if (el) {
    window.gwd_G.aliSkuInfo = findSku2infoFromDomFiber(el);
    return window.gwd_G.aliSkuInfo;
  } else {
    const z = document.querySelector('input[name="x_id"]');
    if (z._r) {
      window.gwd_G.aliSkuInfo = z._r._internal.Z._owner.Z.props.detail;
    } else {
      window.gwd_G.aliSkuInfo = findSku2infoFromDomFiber(z);
    }
    return window.gwd_G.aliSkuInfo;
  }
};

/***/ }),

/***/ 94985:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IiYjMjI5OyYjMTU1OyYjMTkwOyYjMjMwOyYjMTYwOyYjMTM1Oy8mIzIyOTsmIzEzMzsmIzE3OTsmIzIzMzsmIzE1MTsmIzE3MzsiIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMzA5XzI2NDEpIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTEyLjAwMTcgMjMuMTEwOUMxOC4xMzgyIDIzLjExMDkgMjMuMTEyOCAxOC4xMzYzIDIzLjExMjggMTEuOTk5OEMyMy4xMTI4IDUuODYzMjggMTguMTM4MiAwLjg4ODY3MiAxMi4wMDE3IDAuODg4NjcyQzUuODY1MjQgMC44ODg2NzIgMC44OTA2MjUgNS44NjMyOCAwLjg5MDYyNSAxMS45OTk4QzAuODkwNjI1IDE4LjEzNjMgNS44NjUyNCAyMy4xMTA5IDEyLjAwMTcgMjMuMTEwOVoiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGlkPSJWZWN0b3JfMiIgZD0iTTE2IDhMOCAxNiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBpZD0iVmVjdG9yXzMiIGQ9Ik04IDhMMTYgMTYiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xMzA5XzI2NDEiPgo8cmVjdCB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";

/***/ }),

/***/ 95131:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".bjg .minibar-btn-box span[data-v-5aa6bd38] {\n  color: #6b6761;\n  font-size: 14px;\n}\n.bjg#gwd_mini_compare[data-v-5aa6bd38]:hover {\n  background: #fffbef;\n}\n", ""]);

// exports


/***/ }),

/***/ 95187:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, text = $data.text, qr = $data.qr;
    $$out += '<div target="_blank" class="gwd-middle-act-bar">\n  <img ';
    $$out += 'src="https://cdn.bijiago.com/images/extensions/activity/tmall-redpack-middle.png"';
    $$out += ' style="width: 17px; height: 19px; margin-left: 11px">\n  <span style="font-size: 12px; color: #ff471a; margin-left: 7px; font-weight: bold">';
    $$out += $escape(text);
    $$out += '</span>\n  <div style="flex: 1"></div>\n  <img ';
    $$out += 'src="https://cdn.bijiago.com/images/extensions/activity/arrow.svg"';
    $$out += ' style="width: 26px; height: 10px;">\n  <span class="gwd-take" style="line-height: initial">\n    立即领取\n    <div class="gwd-qr-act-mid" style="margin-left: -84px;">\n      <img class="gwd-act-qr-img" loading="lazy" src="';
    $$out += $escape(qr);
    $$out += '" alt="" style="width: 130px; height: 130px; margin-top: 7px">\n      <span style="margin-top: 5px; vertical-align: middle; font-size: 0; height: 14px; line-height: 14px;">\n        <span style="font-size: 14px; color: #ff471a; font-weight: bold">微信扫码</span>\n        <span style="margin-left: 3px; color: #070707; font-size: 12px; transform-origin: center center; transform: scale(0.9166)">领红包</span>\n      </span>\n    </div>\n  </span>\n</div>\n<style>\n  .gwd-middle-act-bar {\n    width: 462px;\n    height: 34px;\n    box-sizing: border-box;\n    display: flex;\n    align-items: center;\n    border: 1px solid #e6e9eb;\n    background: white;\n    font-size: 0;\n  }\n\n  .gwd-take {\n    display: inline-block;\n    margin-left: 10px;\n    margin-right: 15px;\n    text-align: center;\n    width:70px;\n    height:18px;\n    background:linear-gradient(90deg,rgba(255,42,26,1) 0%,rgba(255,98,31,1) 100%);\n    border-radius:9px;\n    font-size: 12px;\n    color: white;\n    position: relative;\n    cursor: pointer;\n  }\n\n  .gwd-qr-act-mid {\n    display: none;\n    flex-direction: column;\n    position: absolute;\n    width: 144px;\n    height: 167px;\n    box-sizing: border-box;\n    border: 1px solid #ff471a;\n    background: #fff9f6;\n    top: 25px;\n    z-index: 99;\n    /*left: 50%;*/\n    right: -16px;\n    align-items: center;\n    margin-left: -72px;\n  }\n\n  .gwd-qr-act-mid span {\n    width: initial;\n    margin: 0;\n  }\n\n  .gwd-take:hover .gwd-qr-act-mid {\n    display: flex;\n  }\n</style>';
    return $$out;
};

/***/ }),

/***/ 95317:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-subsidy-top[data-v-7b63187c] {\n  width: 194px;\n  height: 32px;\n  background: url(" + __webpack_require__(90961) + ");\n  background-size: cover;\n  display: inline-flex;\n  align-items: center;\n  position: relative;\n  margin-top: 2px;\n  cursor: pointer;\n}\n.gwd-subsidy-top span.value[data-v-7b63187c] {\n  font-size: 13.5px;\n  color: #fff1d8;\n  margin-left: 124px;\n  margin-top: -2px;\n  font-weight: bold;\n}\n.gwd-subsidy-top .qrcode[data-v-7b63187c] {\n  display: none;\n  position: absolute;\n  top: 33px;\n  left: 25px;\n  width: 144px;\n  height: 167px;\n  background: #FFF7F7;\n  border: 1px solid #FF2D53;\n  z-index: 9;\n}\n.gwd-subsidy-top[data-v-7b63187c]:hover {\n  text-decoration: none!important;\n}\n.gwd-subsidy-top:hover .qrcode[data-v-7b63187c] {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  text-decoration: none!important;\n}\n.gwd-alter-text[data-v-7b63187c] {\n  background: #f4100f;\n  color: #fff;\n  font-size: 12px;\n  position: absolute;\n  top: 6px;\n  left: 0px;\n  height: 18px;\n  line-height: 18px;\n  padding-left: 35px;\n  font-family: 'Microsoft YaHei';\n}\n", ""]);

// exports


/***/ }),

/***/ 95353:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Store: () => (/* binding */ Store),
/* harmony export */   createLogger: () => (/* binding */ createLogger),
/* harmony export */   createNamespacedHelpers: () => (/* binding */ createNamespacedHelpers),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   install: () => (/* binding */ install),
/* harmony export */   mapActions: () => (/* binding */ mapActions),
/* harmony export */   mapGetters: () => (/* binding */ mapGetters),
/* harmony export */   mapMutations: () => (/* binding */ mapMutations),
/* harmony export */   mapState: () => (/* binding */ mapState)
/* harmony export */ });
/*!
 * vuex v3.6.2
 * (c) 2021 Evan You
 * @license MIT
 */
function applyMixin (Vue) {
  var version = Number(Vue.version.split('.')[0]);

  if (version >= 2) {
    Vue.mixin({ beforeCreate: vuexInit });
  } else {
    // override init and inject vuex init procedure
    // for 1.x backwards compatibility.
    var _init = Vue.prototype._init;
    Vue.prototype._init = function (options) {
      if ( options === void 0 ) options = {};

      options.init = options.init
        ? [vuexInit].concat(options.init)
        : vuexInit;
      _init.call(this, options);
    };
  }

  /**
   * Vuex init hook, injected into each instances init hooks list.
   */

  function vuexInit () {
    var options = this.$options;
    // store injection
    if (options.store) {
      this.$store = typeof options.store === 'function'
        ? options.store()
        : options.store;
    } else if (options.parent && options.parent.$store) {
      this.$store = options.parent.$store;
    }
  }
}

var target = typeof window !== 'undefined'
  ? window
  : typeof global !== 'undefined'
    ? global
    : {};
var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;

function devtoolPlugin (store) {
  if (!devtoolHook) { return }

  store._devtoolHook = devtoolHook;

  devtoolHook.emit('vuex:init', store);

  devtoolHook.on('vuex:travel-to-state', function (targetState) {
    store.replaceState(targetState);
  });

  store.subscribe(function (mutation, state) {
    devtoolHook.emit('vuex:mutation', mutation, state);
  }, { prepend: true });

  store.subscribeAction(function (action, state) {
    devtoolHook.emit('vuex:action', action, state);
  }, { prepend: true });
}

/**
 * Get the first item that pass the test
 * by second argument function
 *
 * @param {Array} list
 * @param {Function} f
 * @return {*}
 */
function find (list, f) {
  return list.filter(f)[0]
}

/**
 * Deep copy the given object considering circular structure.
 * This function caches all nested objects and its copies.
 * If it detects circular structure, use cached copy to avoid infinite loop.
 *
 * @param {*} obj
 * @param {Array<Object>} cache
 * @return {*}
 */
function deepCopy (obj, cache) {
  if ( cache === void 0 ) cache = [];

  // just return if obj is immutable value
  if (obj === null || typeof obj !== 'object') {
    return obj
  }

  // if obj is hit, it is in circular structure
  var hit = find(cache, function (c) { return c.original === obj; });
  if (hit) {
    return hit.copy
  }

  var copy = Array.isArray(obj) ? [] : {};
  // put the copy into cache at first
  // because we want to refer it in recursive deepCopy
  cache.push({
    original: obj,
    copy: copy
  });

  Object.keys(obj).forEach(function (key) {
    copy[key] = deepCopy(obj[key], cache);
  });

  return copy
}

/**
 * forEach for object
 */
function forEachValue (obj, fn) {
  Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
}

function isObject (obj) {
  return obj !== null && typeof obj === 'object'
}

function isPromise (val) {
  return val && typeof val.then === 'function'
}

function assert (condition, msg) {
  if (!condition) { throw new Error(("[vuex] " + msg)) }
}

function partial (fn, arg) {
  return function () {
    return fn(arg)
  }
}

// Base data struct for store's module, package with some attribute and method
var Module = function Module (rawModule, runtime) {
  this.runtime = runtime;
  // Store some children item
  this._children = Object.create(null);
  // Store the origin module object which passed by programmer
  this._rawModule = rawModule;
  var rawState = rawModule.state;

  // Store the origin module's state
  this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
};

var prototypeAccessors = { namespaced: { configurable: true } };

prototypeAccessors.namespaced.get = function () {
  return !!this._rawModule.namespaced
};

Module.prototype.addChild = function addChild (key, module) {
  this._children[key] = module;
};

Module.prototype.removeChild = function removeChild (key) {
  delete this._children[key];
};

Module.prototype.getChild = function getChild (key) {
  return this._children[key]
};

Module.prototype.hasChild = function hasChild (key) {
  return key in this._children
};

Module.prototype.update = function update (rawModule) {
  this._rawModule.namespaced = rawModule.namespaced;
  if (rawModule.actions) {
    this._rawModule.actions = rawModule.actions;
  }
  if (rawModule.mutations) {
    this._rawModule.mutations = rawModule.mutations;
  }
  if (rawModule.getters) {
    this._rawModule.getters = rawModule.getters;
  }
};

Module.prototype.forEachChild = function forEachChild (fn) {
  forEachValue(this._children, fn);
};

Module.prototype.forEachGetter = function forEachGetter (fn) {
  if (this._rawModule.getters) {
    forEachValue(this._rawModule.getters, fn);
  }
};

Module.prototype.forEachAction = function forEachAction (fn) {
  if (this._rawModule.actions) {
    forEachValue(this._rawModule.actions, fn);
  }
};

Module.prototype.forEachMutation = function forEachMutation (fn) {
  if (this._rawModule.mutations) {
    forEachValue(this._rawModule.mutations, fn);
  }
};

Object.defineProperties( Module.prototype, prototypeAccessors );

var ModuleCollection = function ModuleCollection (rawRootModule) {
  // register root module (Vuex.Store options)
  this.register([], rawRootModule, false);
};

ModuleCollection.prototype.get = function get (path) {
  return path.reduce(function (module, key) {
    return module.getChild(key)
  }, this.root)
};

ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  var module = this.root;
  return path.reduce(function (namespace, key) {
    module = module.getChild(key);
    return namespace + (module.namespaced ? key + '/' : '')
  }, '')
};

ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  update([], this.root, rawRootModule);
};

ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
    var this$1 = this;
    if ( runtime === void 0 ) runtime = true;

  if ((false)) {}

  var newModule = new Module(rawModule, runtime);
  if (path.length === 0) {
    this.root = newModule;
  } else {
    var parent = this.get(path.slice(0, -1));
    parent.addChild(path[path.length - 1], newModule);
  }

  // register nested modules
  if (rawModule.modules) {
    forEachValue(rawModule.modules, function (rawChildModule, key) {
      this$1.register(path.concat(key), rawChildModule, runtime);
    });
  }
};

ModuleCollection.prototype.unregister = function unregister (path) {
  var parent = this.get(path.slice(0, -1));
  var key = path[path.length - 1];
  var child = parent.getChild(key);

  if (!child) {
    if ((false)) {}
    return
  }

  if (!child.runtime) {
    return
  }

  parent.removeChild(key);
};

ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  var parent = this.get(path.slice(0, -1));
  var key = path[path.length - 1];

  if (parent) {
    return parent.hasChild(key)
  }

  return false
};

function update (path, targetModule, newModule) {
  if ((false)) {}

  // update target module
  targetModule.update(newModule);

  // update nested modules
  if (newModule.modules) {
    for (var key in newModule.modules) {
      if (!targetModule.getChild(key)) {
        if ((false)) {}
        return
      }
      update(
        path.concat(key),
        targetModule.getChild(key),
        newModule.modules[key]
      );
    }
  }
}

var functionAssert = {
  assert: function (value) { return typeof value === 'function'; },
  expected: 'function'
};

var objectAssert = {
  assert: function (value) { return typeof value === 'function' ||
    (typeof value === 'object' && typeof value.handler === 'function'); },
  expected: 'function or object with "handler" function'
};

var assertTypes = {
  getters: functionAssert,
  mutations: functionAssert,
  actions: objectAssert
};

function assertRawModule (path, rawModule) {
  Object.keys(assertTypes).forEach(function (key) {
    if (!rawModule[key]) { return }

    var assertOptions = assertTypes[key];

    forEachValue(rawModule[key], function (value, type) {
      assert(
        assertOptions.assert(value),
        makeAssertionMessage(path, key, type, value, assertOptions.expected)
      );
    });
  });
}

function makeAssertionMessage (path, key, type, value, expected) {
  var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  if (path.length > 0) {
    buf += " in module \"" + (path.join('.')) + "\"";
  }
  buf += " is " + (JSON.stringify(value)) + ".";
  return buf
}

var Vue; // bind on install

var Store = function Store (options) {
  var this$1 = this;
  if ( options === void 0 ) options = {};

  // Auto install if it is not done yet and `window` has `Vue`.
  // To allow users to avoid auto-installation in some cases,
  // this code should be placed here. See #731
  if (!Vue && typeof window !== 'undefined' && window.Vue) {
    install(window.Vue);
  }

  if ((false)) {}

  var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  var strict = options.strict; if ( strict === void 0 ) strict = false;

  // store internal state
  this._committing = false;
  this._actions = Object.create(null);
  this._actionSubscribers = [];
  this._mutations = Object.create(null);
  this._wrappedGetters = Object.create(null);
  this._modules = new ModuleCollection(options);
  this._modulesNamespaceMap = Object.create(null);
  this._subscribers = [];
  this._watcherVM = new Vue();
  this._makeLocalGettersCache = Object.create(null);

  // bind commit and dispatch to self
  var store = this;
  var ref = this;
  var dispatch = ref.dispatch;
  var commit = ref.commit;
  this.dispatch = function boundDispatch (type, payload) {
    return dispatch.call(store, type, payload)
  };
  this.commit = function boundCommit (type, payload, options) {
    return commit.call(store, type, payload, options)
  };

  // strict mode
  this.strict = strict;

  var state = this._modules.root.state;

  // init root module.
  // this also recursively registers all sub-modules
  // and collects all module getters inside this._wrappedGetters
  installModule(this, state, [], this._modules.root);

  // initialize the store vm, which is responsible for the reactivity
  // (also registers _wrappedGetters as computed properties)
  resetStoreVM(this, state);

  // apply plugins
  plugins.forEach(function (plugin) { return plugin(this$1); });

  var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  if (useDevtools) {
    devtoolPlugin(this);
  }
};

var prototypeAccessors$1 = { state: { configurable: true } };

prototypeAccessors$1.state.get = function () {
  return this._vm._data.$$state
};

prototypeAccessors$1.state.set = function (v) {
  if ((false)) {}
};

Store.prototype.commit = function commit (_type, _payload, _options) {
    var this$1 = this;

  // check object-style commit
  var ref = unifyObjectStyle(_type, _payload, _options);
    var type = ref.type;
    var payload = ref.payload;
    var options = ref.options;

  var mutation = { type: type, payload: payload };
  var entry = this._mutations[type];
  if (!entry) {
    if ((false)) {}
    return
  }
  this._withCommit(function () {
    entry.forEach(function commitIterator (handler) {
      handler(payload);
    });
  });

  this._subscribers
    .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
    .forEach(function (sub) { return sub(mutation, this$1.state); });

  if (
    false
  ) {}
};

Store.prototype.dispatch = function dispatch (_type, _payload) {
    var this$1 = this;

  // check object-style dispatch
  var ref = unifyObjectStyle(_type, _payload);
    var type = ref.type;
    var payload = ref.payload;

  var action = { type: type, payload: payload };
  var entry = this._actions[type];
  if (!entry) {
    if ((false)) {}
    return
  }

  try {
    this._actionSubscribers
      .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
      .filter(function (sub) { return sub.before; })
      .forEach(function (sub) { return sub.before(action, this$1.state); });
  } catch (e) {
    if ((false)) {}
  }

  var result = entry.length > 1
    ? Promise.all(entry.map(function (handler) { return handler(payload); }))
    : entry[0](payload);

  return new Promise(function (resolve, reject) {
    result.then(function (res) {
      try {
        this$1._actionSubscribers
          .filter(function (sub) { return sub.after; })
          .forEach(function (sub) { return sub.after(action, this$1.state); });
      } catch (e) {
        if ((false)) {}
      }
      resolve(res);
    }, function (error) {
      try {
        this$1._actionSubscribers
          .filter(function (sub) { return sub.error; })
          .forEach(function (sub) { return sub.error(action, this$1.state, error); });
      } catch (e) {
        if ((false)) {}
      }
      reject(error);
    });
  })
};

Store.prototype.subscribe = function subscribe (fn, options) {
  return genericSubscribe(fn, this._subscribers, options)
};

Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  var subs = typeof fn === 'function' ? { before: fn } : fn;
  return genericSubscribe(subs, this._actionSubscribers, options)
};

Store.prototype.watch = function watch (getter, cb, options) {
    var this$1 = this;

  if ((false)) {}
  return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
};

Store.prototype.replaceState = function replaceState (state) {
    var this$1 = this;

  this._withCommit(function () {
    this$1._vm._data.$$state = state;
  });
};

Store.prototype.registerModule = function registerModule (path, rawModule, options) {
    if ( options === void 0 ) options = {};

  if (typeof path === 'string') { path = [path]; }

  if ((false)) {}

  this._modules.register(path, rawModule);
  installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  // reset store to update getters...
  resetStoreVM(this, this.state);
};

Store.prototype.unregisterModule = function unregisterModule (path) {
    var this$1 = this;

  if (typeof path === 'string') { path = [path]; }

  if ((false)) {}

  this._modules.unregister(path);
  this._withCommit(function () {
    var parentState = getNestedState(this$1.state, path.slice(0, -1));
    Vue.delete(parentState, path[path.length - 1]);
  });
  resetStore(this);
};

Store.prototype.hasModule = function hasModule (path) {
  if (typeof path === 'string') { path = [path]; }

  if ((false)) {}

  return this._modules.isRegistered(path)
};

Store.prototype.hotUpdate = function hotUpdate (newOptions) {
  this._modules.update(newOptions);
  resetStore(this, true);
};

Store.prototype._withCommit = function _withCommit (fn) {
  var committing = this._committing;
  this._committing = true;
  fn();
  this._committing = committing;
};

Object.defineProperties( Store.prototype, prototypeAccessors$1 );

function genericSubscribe (fn, subs, options) {
  if (subs.indexOf(fn) < 0) {
    options && options.prepend
      ? subs.unshift(fn)
      : subs.push(fn);
  }
  return function () {
    var i = subs.indexOf(fn);
    if (i > -1) {
      subs.splice(i, 1);
    }
  }
}

function resetStore (store, hot) {
  store._actions = Object.create(null);
  store._mutations = Object.create(null);
  store._wrappedGetters = Object.create(null);
  store._modulesNamespaceMap = Object.create(null);
  var state = store.state;
  // init all modules
  installModule(store, state, [], store._modules.root, true);
  // reset vm
  resetStoreVM(store, state, hot);
}

function resetStoreVM (store, state, hot) {
  var oldVm = store._vm;

  // bind store public getters
  store.getters = {};
  // reset local getters cache
  store._makeLocalGettersCache = Object.create(null);
  var wrappedGetters = store._wrappedGetters;
  var computed = {};
  forEachValue(wrappedGetters, function (fn, key) {
    // use computed to leverage its lazy-caching mechanism
    // direct inline function use will lead to closure preserving oldVm.
    // using partial to return function with only arguments preserved in closure environment.
    computed[key] = partial(fn, store);
    Object.defineProperty(store.getters, key, {
      get: function () { return store._vm[key]; },
      enumerable: true // for local getters
    });
  });

  // use a Vue instance to store the state tree
  // suppress warnings just in case the user has added
  // some funky global mixins
  var silent = Vue.config.silent;
  Vue.config.silent = true;
  store._vm = new Vue({
    data: {
      $$state: state
    },
    computed: computed
  });
  Vue.config.silent = silent;

  // enable strict mode for new vm
  if (store.strict) {
    enableStrictMode(store);
  }

  if (oldVm) {
    if (hot) {
      // dispatch changes in all subscribed watchers
      // to force getter re-evaluation for hot reloading.
      store._withCommit(function () {
        oldVm._data.$$state = null;
      });
    }
    Vue.nextTick(function () { return oldVm.$destroy(); });
  }
}

function installModule (store, rootState, path, module, hot) {
  var isRoot = !path.length;
  var namespace = store._modules.getNamespace(path);

  // register in namespace map
  if (module.namespaced) {
    if (store._modulesNamespaceMap[namespace] && ("production" !== 'production')) {}
    store._modulesNamespaceMap[namespace] = module;
  }

  // set state
  if (!isRoot && !hot) {
    var parentState = getNestedState(rootState, path.slice(0, -1));
    var moduleName = path[path.length - 1];
    store._withCommit(function () {
      if ((false)) {}
      Vue.set(parentState, moduleName, module.state);
    });
  }

  var local = module.context = makeLocalContext(store, namespace, path);

  module.forEachMutation(function (mutation, key) {
    var namespacedType = namespace + key;
    registerMutation(store, namespacedType, mutation, local);
  });

  module.forEachAction(function (action, key) {
    var type = action.root ? key : namespace + key;
    var handler = action.handler || action;
    registerAction(store, type, handler, local);
  });

  module.forEachGetter(function (getter, key) {
    var namespacedType = namespace + key;
    registerGetter(store, namespacedType, getter, local);
  });

  module.forEachChild(function (child, key) {
    installModule(store, rootState, path.concat(key), child, hot);
  });
}

/**
 * make localized dispatch, commit, getters and state
 * if there is no namespace, just use root ones
 */
function makeLocalContext (store, namespace, path) {
  var noNamespace = namespace === '';

  var local = {
    dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
      var args = unifyObjectStyle(_type, _payload, _options);
      var payload = args.payload;
      var options = args.options;
      var type = args.type;

      if (!options || !options.root) {
        type = namespace + type;
        if (false) {}
      }

      return store.dispatch(type, payload)
    },

    commit: noNamespace ? store.commit : function (_type, _payload, _options) {
      var args = unifyObjectStyle(_type, _payload, _options);
      var payload = args.payload;
      var options = args.options;
      var type = args.type;

      if (!options || !options.root) {
        type = namespace + type;
        if (false) {}
      }

      store.commit(type, payload, options);
    }
  };

  // getters and state object must be gotten lazily
  // because they will be changed by vm update
  Object.defineProperties(local, {
    getters: {
      get: noNamespace
        ? function () { return store.getters; }
        : function () { return makeLocalGetters(store, namespace); }
    },
    state: {
      get: function () { return getNestedState(store.state, path); }
    }
  });

  return local
}

function makeLocalGetters (store, namespace) {
  if (!store._makeLocalGettersCache[namespace]) {
    var gettersProxy = {};
    var splitPos = namespace.length;
    Object.keys(store.getters).forEach(function (type) {
      // skip if the target getter is not match this namespace
      if (type.slice(0, splitPos) !== namespace) { return }

      // extract local getter type
      var localType = type.slice(splitPos);

      // Add a port to the getters proxy.
      // Define as getter property because
      // we do not want to evaluate the getters in this time.
      Object.defineProperty(gettersProxy, localType, {
        get: function () { return store.getters[type]; },
        enumerable: true
      });
    });
    store._makeLocalGettersCache[namespace] = gettersProxy;
  }

  return store._makeLocalGettersCache[namespace]
}

function registerMutation (store, type, handler, local) {
  var entry = store._mutations[type] || (store._mutations[type] = []);
  entry.push(function wrappedMutationHandler (payload) {
    handler.call(store, local.state, payload);
  });
}

function registerAction (store, type, handler, local) {
  var entry = store._actions[type] || (store._actions[type] = []);
  entry.push(function wrappedActionHandler (payload) {
    var res = handler.call(store, {
      dispatch: local.dispatch,
      commit: local.commit,
      getters: local.getters,
      state: local.state,
      rootGetters: store.getters,
      rootState: store.state
    }, payload);
    if (!isPromise(res)) {
      res = Promise.resolve(res);
    }
    if (store._devtoolHook) {
      return res.catch(function (err) {
        store._devtoolHook.emit('vuex:error', err);
        throw err
      })
    } else {
      return res
    }
  });
}

function registerGetter (store, type, rawGetter, local) {
  if (store._wrappedGetters[type]) {
    if ((false)) {}
    return
  }
  store._wrappedGetters[type] = function wrappedGetter (store) {
    return rawGetter(
      local.state, // local state
      local.getters, // local getters
      store.state, // root state
      store.getters // root getters
    )
  };
}

function enableStrictMode (store) {
  store._vm.$watch(function () { return this._data.$$state }, function () {
    if ((false)) {}
  }, { deep: true, sync: true });
}

function getNestedState (state, path) {
  return path.reduce(function (state, key) { return state[key]; }, state)
}

function unifyObjectStyle (type, payload, options) {
  if (isObject(type) && type.type) {
    options = payload;
    payload = type;
    type = type.type;
  }

  if ((false)) {}

  return { type: type, payload: payload, options: options }
}

function install (_Vue) {
  if (Vue && _Vue === Vue) {
    if ((false)) {}
    return
  }
  Vue = _Vue;
  applyMixin(Vue);
}

/**
 * Reduce the code which written in Vue.js for getting the state.
 * @param {String} [namespace] - Module's namespace
 * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
 * @param {Object}
 */
var mapState = normalizeNamespace(function (namespace, states) {
  var res = {};
  if (false) {}
  normalizeMap(states).forEach(function (ref) {
    var key = ref.key;
    var val = ref.val;

    res[key] = function mappedState () {
      var state = this.$store.state;
      var getters = this.$store.getters;
      if (namespace) {
        var module = getModuleByNamespace(this.$store, 'mapState', namespace);
        if (!module) {
          return
        }
        state = module.context.state;
        getters = module.context.getters;
      }
      return typeof val === 'function'
        ? val.call(this, state, getters)
        : state[val]
    };
    // mark vuex getter for devtools
    res[key].vuex = true;
  });
  return res
});

/**
 * Reduce the code which written in Vue.js for committing the mutation
 * @param {String} [namespace] - Module's namespace
 * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
 * @return {Object}
 */
var mapMutations = normalizeNamespace(function (namespace, mutations) {
  var res = {};
  if (false) {}
  normalizeMap(mutations).forEach(function (ref) {
    var key = ref.key;
    var val = ref.val;

    res[key] = function mappedMutation () {
      var args = [], len = arguments.length;
      while ( len-- ) args[ len ] = arguments[ len ];

      // Get the commit method from store
      var commit = this.$store.commit;
      if (namespace) {
        var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
        if (!module) {
          return
        }
        commit = module.context.commit;
      }
      return typeof val === 'function'
        ? val.apply(this, [commit].concat(args))
        : commit.apply(this.$store, [val].concat(args))
    };
  });
  return res
});

/**
 * Reduce the code which written in Vue.js for getting the getters
 * @param {String} [namespace] - Module's namespace
 * @param {Object|Array} getters
 * @return {Object}
 */
var mapGetters = normalizeNamespace(function (namespace, getters) {
  var res = {};
  if (false) {}
  normalizeMap(getters).forEach(function (ref) {
    var key = ref.key;
    var val = ref.val;

    // The namespace has been mutated by normalizeNamespace
    val = namespace + val;
    res[key] = function mappedGetter () {
      if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
        return
      }
      if (false) {}
      return this.$store.getters[val]
    };
    // mark vuex getter for devtools
    res[key].vuex = true;
  });
  return res
});

/**
 * Reduce the code which written in Vue.js for dispatch the action
 * @param {String} [namespace] - Module's namespace
 * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
 * @return {Object}
 */
var mapActions = normalizeNamespace(function (namespace, actions) {
  var res = {};
  if (false) {}
  normalizeMap(actions).forEach(function (ref) {
    var key = ref.key;
    var val = ref.val;

    res[key] = function mappedAction () {
      var args = [], len = arguments.length;
      while ( len-- ) args[ len ] = arguments[ len ];

      // get dispatch function from store
      var dispatch = this.$store.dispatch;
      if (namespace) {
        var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
        if (!module) {
          return
        }
        dispatch = module.context.dispatch;
      }
      return typeof val === 'function'
        ? val.apply(this, [dispatch].concat(args))
        : dispatch.apply(this.$store, [val].concat(args))
    };
  });
  return res
});

/**
 * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
 * @param {String} namespace
 * @return {Object}
 */
var createNamespacedHelpers = function (namespace) { return ({
  mapState: mapState.bind(null, namespace),
  mapGetters: mapGetters.bind(null, namespace),
  mapMutations: mapMutations.bind(null, namespace),
  mapActions: mapActions.bind(null, namespace)
}); };

/**
 * Normalize the map
 * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
 * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
 * @param {Array|Object} map
 * @return {Object}
 */
function normalizeMap (map) {
  if (!isValidMap(map)) {
    return []
  }
  return Array.isArray(map)
    ? map.map(function (key) { return ({ key: key, val: key }); })
    : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
}

/**
 * Validate whether given map is valid or not
 * @param {*} map
 * @return {Boolean}
 */
function isValidMap (map) {
  return Array.isArray(map) || isObject(map)
}

/**
 * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
 * @param {Function} fn
 * @return {Function}
 */
function normalizeNamespace (fn) {
  return function (namespace, map) {
    if (typeof namespace !== 'string') {
      map = namespace;
      namespace = '';
    } else if (namespace.charAt(namespace.length - 1) !== '/') {
      namespace += '/';
    }
    return fn(namespace, map)
  }
}

/**
 * Search a special module from store by namespace. if module not exist, print error message.
 * @param {Object} store
 * @param {String} helper
 * @param {String} namespace
 * @return {Object}
 */
function getModuleByNamespace (store, helper, namespace) {
  var module = store._modulesNamespaceMap[namespace];
  if (false) {}
  return module
}

// Credits: borrowed code from fcomb/redux-logger

function createLogger (ref) {
  if ( ref === void 0 ) ref = {};
  var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  var logger = ref.logger; if ( logger === void 0 ) logger = console;

  return function (store) {
    var prevState = deepCopy(store.state);

    if (typeof logger === 'undefined') {
      return
    }

    if (logMutations) {
      store.subscribe(function (mutation, state) {
        var nextState = deepCopy(state);

        if (filter(mutation, prevState, nextState)) {
          var formattedTime = getFormattedTime();
          var formattedMutation = mutationTransformer(mutation);
          var message = "mutation " + (mutation.type) + formattedTime;

          startMessage(logger, message, collapsed);
          logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
          logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
          logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
          endMessage(logger);
        }

        prevState = nextState;
      });
    }

    if (logActions) {
      store.subscribeAction(function (action, state) {
        if (actionFilter(action, state)) {
          var formattedTime = getFormattedTime();
          var formattedAction = actionTransformer(action);
          var message = "action " + (action.type) + formattedTime;

          startMessage(logger, message, collapsed);
          logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
          endMessage(logger);
        }
      });
    }
  }
}

function startMessage (logger, message, collapsed) {
  var startMessage = collapsed
    ? logger.groupCollapsed
    : logger.group;

  // render
  try {
    startMessage.call(logger, message);
  } catch (e) {
    logger.log(message);
  }
}

function endMessage (logger) {
  try {
    logger.groupEnd();
  } catch (e) {
    logger.log('—— log end ——');
  }
}

function getFormattedTime () {
  var time = new Date();
  return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
}

function repeat (str, times) {
  return (new Array(times + 1)).join(str)
}

function pad (num, maxLength) {
  return repeat('0', maxLength - num.toString().length) + num
}

var index = {
  Store: Store,
  install: install,
  version: '3.6.2',
  mapState: mapState,
  mapMutations: mapMutations,
  mapGetters: mapGetters,
  mapActions: mapActions,
  createNamespacedHelpers: createNamespacedHelpers,
  createLogger: createLogger
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (index);



/***/ }),

/***/ 95450:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


var pako = __webpack_require__(51668);
module.exports.gZip = str => {
  return pako.gzip(JSON.stringify(str));
};
module.exports.unGzip = str => {
  let z = pako.ungzip(str);
  const decoder = new TextDecoder('utf8');
  return JSON.parse(decoder.decode(z));
};

/***/ }),

/***/ 95554:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
const cnzz = __webpack_require__(5300);
const QRCode = __webpack_require__(87583);

/**获取二维码
 *
 * @param obj
 * @param url
 * @param callback
 * @param useOriTitle 使用原始标题
 * @param noReplace 直接生成二维码，不请求接口
 */
module.exports = async (obj, url, callback, useOriTitle = false, noReplace = false) => {
  obj.couponUrl = url;
  if (obj.title.length === 0 && !useOriTitle) {
    obj.title = 'x';
  }
  let id = obj.id;
  obj = JSON.stringify(obj);
  // let xml = new XMLHttpRequest()
  // xml.open('POST', `${G.server}/extension/CouponQrCode?w=150`)
  // xml.addEventListener('load', function() {
  //     try {
  //         let data = JSON.parse(xml.response);
  //         callback(data)
  //     } catch (e) {}
  // })
  // xml.send(obj);
  if (noReplace) {
    QRCode.toDataURL(url, {
      errorCorrectionLevel: 'L'
    }, function (err, url) {
      if (err) {
        //require('common/extConsole').error(err)
        return;
      }
      callback([{
        imgSrc: url
      }]);
    });
    return;
  }
  if (G.ss_name === 'priceDog' && G.aliSite) {
    (__webpack_require__(49388).get)(`${G.u_server}/helper/qrcode?event=appQrcode&dp_id=${id}&union=${G.union}`).then(res => {
      if (res.code === 1 && res.data && res.data.qrImgStr) {
        callback([{
          imgSrc: res.data.qrImgStr
        }]);
      } else {
        callback([{
          etag: 0
        }]);
      }
    });
    return;
  }
  (__webpack_require__(49388).post)(`${G.server}/extension/CouponQrCode?union=${G.union}&w=150&from_device=${G.from_device}&rand=${parseInt(Math.random() * 1000)}`, obj, false, false).then(function (data) {
    try {
      data = JSON.parse(data);
      callback(data);
    } catch (e) {
      callback(data);
      //require('common/extConsole').error(e)
    }
  });
  cnzz.log("实时抓取发送请求");
};

/***/ }),

/***/ 95604:
/***/ ((module) => {

"use strict";
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAANlJREFUWEft1jEKAjEQBdDJgtYewSNoJ5LGTiSFRTyP3sdmK/EEsqVH8AamNwRJY2EjM/9DEDYH2P92Ej7jpPFxjfNlBPzXBNa7w6JMX2no+wfr7agm4EN81uBS3OZ2Od8ZCC3gJCJHEUkshApQ/9iHSEWoAWyECcBEmAEsBARgIGAAiqAAEAQNYEWwAbWkak+knPNyuP6ubBrAh/gJ17QkBWANr9cGA5BwGICGQwBGuBnACjcBmOFqADvcAmi7kq22+3nXTWasfVA9AcYS+v0NuIhQ1AhoPoE306mqIT7YeDoAAAAASUVORK5CYII=";

/***/ }),

/***/ 95625:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.imgSameAppVisible || _vm.qrAppVisible || _vm.compareAppVisible || _vm.hasPromo,
      expression: "imgSameAppVisible || qrAppVisible || compareAppVisible || hasPromo"
    }],
    staticClass: "gwd-side-bar"
  }, [_c("div", {
    staticClass: "gwd-side-bar-app-list gwd-column",
    class: {
      "gwd-expanded": _vm.expanded,
      "gwd-folded": !_vm.expanded
    }
  }, [_vm.promos.coupon ? _c("TagLink", {
    attrs: {
      link: _vm.promos.coupon.link,
      value: _vm.promos.coupon.value,
      unit: "元",
      name: "隐藏券"
    }
  }) : _vm._e(), _vm._v(" "), _vm.promos.rebate ? _c("TagLink", {
    attrs: {
      link: _vm.promos.rebate.link,
      value: _vm.promos.rebate.value,
      unit: "元",
      name: "专享红包"
    }
  }) : _vm._e(), _vm._v(" "), _vm.promos.firstBuy ? _c("TagLink", {
    attrs: {
      link: _vm.promos.firstBuy.link,
      value: _vm.promos.firstBuy.value,
      unit: "元",
      name: "首购礼金"
    }
  }) : _vm._e(), _vm._v(" "), _vm.promos.activityRedpack && !_vm.promos.firstBuy ? _c("TagLink", {
    attrs: {
      link: _vm.promos.activityRedpack.link,
      value: _vm.promos.activityRedpack.value,
      unit: _vm.promos.activityRedpack.unit,
      name: "超级红包"
    }
  }) : _vm._e(), _vm._v(" "), _vm.promos.governmentSubsidy ? _c("GovBt", {
    attrs: {
      link: _vm.promos.governmentSubsidy.link
    }
  }) : _vm._e(), _vm._v(" "), _vm.imgSameAppVisible ? _c("ImgSameApp", {
    attrs: {
      img: _vm.imgSameData.img,
      price: _vm.imgSameData.price
    }
  }) : _vm._e(), _vm._v(" "), _vm.qrAppVisible ? _c("QRLinkSideBar", {
    attrs: {
      tag: "qr-left"
    }
  }) : _vm._e(), _vm._v(" "), _vm.compareAppVisible ? _c("RateButton") : _vm._e()], 1), _vm._v(" "), _c("button", {
    staticClass: "gwd-side-bar-expand-btn",
    on: {
      click: _vm.toggle
    }
  }, [_c("img", {
    staticStyle: {
      width: "12px",
      height: "12px"
    },
    style: {
      transform: _vm.expanded ? "" : "rotate(180deg)"
    },
    attrs: {
      src: _vm.leftIcon,
      alt: ""
    }
  })])]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 95917:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    directives: [{
      name: "show",
      rawName: "v-show",
      value: _vm.data && _vm.data.length,
      expression: "data && data.length"
    }],
    staticClass: "gwd-promo-plan"
  }, [_c("table", [_c("thead", [_c("tr", {
    staticStyle: {
      "min-height": "30px"
    }
  }, [_c("th", [_c("span", [_vm._v(_vm._s(_vm.getText("购买方案")))])]), _vm._v(" "), _c("th", [_c("span", [_vm._v(_vm._s(_vm.getText("实付总价")) + "(¥)")])]), _vm._v(" "), _c("th", [_c("span", [_vm._v(_vm._s(_vm.getText("折合每件")) + "(¥)")])]), _vm._v(" "), _c("th", [_c("span", [_vm._v(_vm._s(_vm.getText("使用的促销")))])])])]), _vm._v(" "), _c("tbody", _vm._l(_vm.data, function (item, idx) {
    return _c("tr", [_c("td", {
      staticStyle: {
        "padding-left": "10px"
      }
    }, [_vm._v(_vm._s(item.plan_text))]), _vm._v(" "), _c("td", {
      class: idx === 0 ? "red" : "",
      staticStyle: {
        "padding-right": "10px",
        "text-align": "right"
      }
    }, [_vm._v(_vm._s(parseFloat(item.total_price).toFixed(2)))]), _vm._v(" "), _c("td", {
      class: idx === 0 ? "red" : "",
      staticStyle: {
        "padding-right": "10px",
        "text-align": "right"
      }
    }, [_vm._v(_vm._s(parseFloat(item.current_price).toFixed(2)))]), _vm._v(" "), _c("td", {
      staticStyle: {
        padding: "10px"
      }
    }, _vm._l(item.promo_list, function (p) {
      return _c(p.url || p.id ? "a" : "span", {
        key: p.url,
        tag: "component",
        style: "color: #7d7e80;" + (p.url ? "text-decoration: underline" : ""),
        attrs: {
          href: p.id ? _vm.link2(p.url_format, p.id) : p.url,
          target: "_blank"
        }
      }, [_vm._v(_vm._s(p.text) + " ")]);
    }), 1)]);
  }), 0)]), _vm._v(" "), _vm.G.aliSite ? _c("div", {
    staticClass: "gwd-p-qrcode gwd-column gwd-align gwd-jcc"
  }, [_c("div", {
    staticStyle: {
      width: "100px",
      height: "100px",
      position: "relative"
    }
  }, [_c("img", {
    staticStyle: {
      width: "100%"
    },
    attrs: {
      src: _vm.qr,
      alt: ""
    }
  }), _vm._v(" "), _c("img", {
    staticStyle: {
      position: "absolute",
      top: "50%",
      left: "50%",
      width: "20px",
      height: "20px",
      transform: "translate(-50%, -50%)"
    },
    attrs: {
      src: __webpack_require__(1194),
      alt: ""
    }
  })]), _vm._v(" "), _c("div", {
    staticClass: "gwd-row",
    staticStyle: {
      "margin-top": "8px",
      "white-space": "nowrap",
      height: "10px",
      "line-height": "10px"
    }
  }, [_c("span", {
    staticClass: "gwd-font10",
    staticStyle: {
      color: "#ff3220",
      "font-weight": "bold",
      "transform-origin": "top left",
      width: "42px",
      "margin-left": "6px"
    }
  }, [_vm._v(_vm._s(_vm.getText("淘宝APP")))]), _vm._v(" "), _c("span", {
    staticClass: "gwd-font9",
    staticStyle: {
      color: "#070707",
      "transform-origin": "top left",
      width: "64px"
    }
  }, [_vm._v(_vm._s(_vm.getText("扫码 参加活动")))])])]) : _vm._e()]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 96044:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, url = $data.url;
    $$out += '<div class="gwd-steam-verify-btn">\n    <span>访问异常</span>\n    <div class="detail">\n        <a href="';
    $$out += $escape(url);
    $$out += '" style="margin-top: 20px; font-size: 25px; color: black; border: 1px solid black; border-radius: 10px; display: inline-block">去验证</a>\n    </div>\n</div>\n<style>\n    .gwd-steam-verify-btn {\n        background: white;\n        color: black;\n        height: 36px;\n        line-height: 36px;\n        width: 112px;\n        display: inline-block;\n        text-align: center;\n        position: relative;\n        cursor: pointer;\n    }\n\n    .gwd-steam-verify-btn .detail {\n        position: absolute;\n        left: 50%;\n        width: 300px;\n        margin-left: -150px;\n        height: 200px;\n        top: 36px;\n        display: none;\n        background: white;\n        z-index: 9999;\n        color: black\n    }\n\n    .gwd-steam-verify-btn .detail a::selection {\n        background: white;\n        color: black;\n    }\n\n    .gwd-steam-verify-btn:hover .detail {\n        display: block;\n    }\n\n</style>';
    return $$out;
};

/***/ }),

/***/ 96319:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var anObject = __webpack_require__(28551);
var iteratorClose = __webpack_require__(9539);

// call something on iterator step with safe closing on error
module.exports = function (iterator, fn, value, ENTRIES) {
  try {
    return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
  } catch (error) {
    iteratorClose(iterator, 'throw', error);
  }
};


/***/ }),

/***/ 96367:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("table", {
    staticClass: "barTrendInfoBox gwd-mini-table",
    class: {
      showcoudan: _vm.showcoudan
    },
    staticStyle: {
      "margin-left": "30px",
      "margin-top": "12px",
      height: "48px",
      "box-sizing": "border-box",
      width: "unset"
    }
  }, [_c("tr", {
    staticClass: "orign-pri-info"
  }, [_vm.d1.nowprice ? _c("td", [_c("span", {
    staticClass: "opi-sp1 nowpri",
    staticStyle: {
      "margin-left": "10px"
    }
  }, [_vm._v("现价:")]), _vm._v(" "), _c("span", {
    staticClass: "opi-sp2 nowpri"
  }, [_vm._v(_vm._s(_vm.d1.display_nowprice))])]) : [_c("td", {
    staticStyle: {
      "vertical-align": "middle"
    }
  }, [_c("span", {
    staticClass: "opi-sp1"
  }, [_vm._v("最高:")]), _vm._v(" "), _c("span", {
    staticClass: "opi-sp2"
  }, [_vm._v(_vm._s(_vm.d1.display_Phighest))])]), _vm._v(" "), _c("td", {
    staticStyle: {
      "min-width": "400px",
      "vertical-align": "middle"
    }
  }, [_c("span", {
    staticClass: "opi-sp3",
    staticStyle: {
      "margin-left": "10px"
    },
    domProps: {
      innerHTML: _vm._s(_vm.lowtle)
    }
  }), _vm._v(" "), _c("span", {
    staticClass: "opi-sp4"
  }, [_vm._v(_vm._s(_vm.d1.display_Plowest))]), _vm._v(" "), _c("span", {
    staticClass: "opi-sp5"
  }, [_vm._v(_vm._s(_vm.d1.lowestDate))]), _vm._v(" "), !_vm.d2 && !_vm.aliSite && _vm.promoUrl ? _c("a", {
    staticClass: "promo-history-link",
    attrs: {
      href: _vm.promoUrl,
      target: "_blank"
    }
  }, [_vm._v("历史促销明细＞")]) : _vm._e()])]], 2), _vm._v(" "), _vm.d2 ? _c("tr", {
    staticClass: "promo-pri-info",
    staticStyle: {
      height: "auto"
    }
  }, [!_vm.d1.nowprice ? _c("td", {
    staticStyle: {
      "text-align": "center"
    }
  }, [_c("span", {
    staticClass: "ppi-sp1"
  })]) : _vm._e(), _vm._v(" "), _c("td", {
    staticStyle: {
      "min-width": "400px",
      "vertical-align": "middle"
    }
  }, [_c("span", {
    staticClass: "ppi-sp2",
    staticStyle: {
      "margin-left": "10px"
    }
  }, [_vm._v("最低(多   件):")]), _vm._v(" "), _c("span", {
    staticClass: "ppi-sp3"
  }, [_vm._v(_vm._s(_vm.d2.display_Plowest))]), _vm._v(" "), _c("span", {
    staticClass: "ppi-sp4"
  }, [_vm._v(_vm._s(_vm.d2.lowestDate))]), _vm._v(" "), _vm.promoUrl ? _c("a", {
    staticClass: "promo-history-link",
    attrs: {
      href: _vm.promoUrl,
      target: "_blank"
    }
  }, [_vm._v("历史促销明细＞")]) : _vm._e()])]) : _vm._e()]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 96395:
/***/ ((module) => {

"use strict";

module.exports = false;


/***/ }),

/***/ 96801:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

var DESCRIPTORS = __webpack_require__(43724);
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(48686);
var definePropertyModule = __webpack_require__(24913);
var anObject = __webpack_require__(28551);
var toIndexedObject = __webpack_require__(25397);
var objectKeys = __webpack_require__(71072);

// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
// eslint-disable-next-line es/no-object-defineproperties -- safe
exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  anObject(O);
  var props = toIndexedObject(Properties);
  var keys = objectKeys(Properties);
  var length = keys.length;
  var index = 0;
  var key;
  while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  return O;
};


/***/ }),

/***/ 97013:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("CommonCouponBarMini", {
    attrs: {
      icon: "https://cdn.bijiago.com/images/extensions/activity/giftMoneyV3@2x.png",
      type: _vm.qr ? "qr" : "link",
      href: _vm.url + (_vm.isButie ? "&butie=1" : ""),
      text: _vm.text,
      couponValue: _vm.value,
      mainColor: "#fd0937",
      secondColor: "#ff5e79",
      qrParams: _vm.payload,
      takeBg: _vm.takeBg,
      title: "购物党用户专享红包，下单自动抵扣！",
      qrTitle: "领红包"
    }
  });
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 97040:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var DESCRIPTORS = __webpack_require__(43724);
var definePropertyModule = __webpack_require__(24913);
var createPropertyDescriptor = __webpack_require__(6980);

module.exports = function (object, key, value) {
  if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
  else object[key] = value;
};


/***/ }),

/***/ 97254:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _default = exports.A = {
  props: ['data', 'domclass', 'aliSite']
};

/***/ }),

/***/ 97342:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-promotion-window gwd-column",
    class: `gwd-window-${_vm.site}`
  }, [_c("div", {
    staticClass: "gwd-title gwd-align gwd-row"
  }, [_vm._v("\n    折扣精选\n    "), _c("div", {
    staticStyle: {
      flex: "1"
    }
  }), _vm._v(" "), _c("img", {
    staticStyle: {
      width: "20px",
      height: "20px",
      cursor: "pointer"
    },
    attrs: {
      src: __webpack_require__(15585)
    },
    on: {
      click: _vm.openSetting
    }
  })]), _vm._v(" "), _c("div", {
    staticClass: "gwd-column gwd-align gwd-list",
    staticStyle: {
      flex: "1",
      "overflow-y": "auto",
      "overflow-x": "hidden"
    }
  }, [_vm._l(_vm.promotions, function (promotion) {
    return _c("div", {
      key: promotion.dp_id
    }, [_c("a", {
      staticClass: "gwd-promo-item gwd-row gwd-align",
      staticStyle: {
        overflow: "hidden"
      },
      attrs: {
        target: "_blank",
        title: promotion.title,
        href: _vm.getUrl(promotion)
      }
    }, [_c("img", {
      staticStyle: {
        width: "82px",
        height: "82px"
      },
      attrs: {
        src: promotion.img_url,
        alt: "",
        onerror: "this.src = 'https://cdn.gwdang.com/plt_web/template/metro/images/dp/loading.png'"
      }
    }), _vm._v(" "), _c("div", {
      staticClass: "gwd-column",
      staticStyle: {
        "margin-left": "8px",
        height: "82px",
        "justify-content": "space-between",
        overflow: "hidden",
        flex: "1"
      }
    }, [_c("div", {
      staticClass: "gwd-pd-title"
    }, [_vm._v(_vm._s(promotion.title))]), _vm._v(" "), _c("div", {
      staticClass: "gwd-pinfo"
    }, [_vm._v(_vm._s(promotion.pinfo))]), _vm._v(" "), _c("div", {
      staticClass: "gwd-font11",
      staticStyle: {
        "line-height": "11px",
        color: "#999",
        "transform-origin": "bottom left"
      }
    }, [_vm._v(_vm._s(_vm.displayTime(promotion.update_time)))])])]), _vm._v(" "), _c("div", {
      staticClass: "gwd-spliter"
    })]);
  }), _vm._v(" "), _vm.status === "loaded" && _vm.promotions.length === 0 ? _c("div", {
    staticClass: "gwd-column gwd-align"
  }, [_c("img", {
    staticStyle: {
      width: "100px",
      height: "100px",
      "margin-top": "122px"
    },
    attrs: {
      src: "https://cdn.gwdang.com/images/extensions/empty@2x.png",
      alt: "",
      onerror: "this.src = 'https://cdn.gwdang.com/plt_web/template/metro/images/dp/loading.png'"
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "line-height": "20px",
      color: "#404547",
      "font-size": "12px"
    }
  }, [_vm._v("暂无促销折扣商品推荐")])]) : _vm._e()], 2)]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 97353:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


__webpack_require__(26910);
__webpack_require__(3362);
const userData = __webpack_require__(74222);
const request = __webpack_require__(49388);
const calWidth = __webpack_require__(42869);
// const replaceHref = require('common/replaceHref')
const golbal2 = __webpack_require__(7053);
const htmlObj = {
  'taobao': __webpack_require__(81376),
  'tmall': __webpack_require__(82059)
};
var tmData = {};
const renderBtnTop = data => {
  let html = __webpack_require__(18112);
  data.ss = 0;
  if (data.tmall.length !== 0 && data.tmall.product) {
    $('#tm_compare').append(html({
      store_tle: '天猫',
      min_price: data.tmall.min_price
    })).css("display", "block");
    tmData['tmall'] = data.tmall;
    data.ss++;
    data.tmm = true;
    renderTopDetail('tmall');
  }
  if (data.taobao.length !== 0 && data.taobao.product) {
    $('#tb_compare').append(html({
      store_tle: '淘宝',
      min_price: data.taobao.min_price
    })).css("display", "block");
    tmData['taobao'] = data.taobao;
    data.ss++;
    data.tbb = true;
    renderTopDetail('taobao');
  }
  (__webpack_require__(7053).autoFixWidth)();
  userData.set('tbData', data);
  if (G.site === 'suning') {
    $('#tb_compare, #tm_compare').on('click', 'a', function (e) {
      if ($(this).find('.coupon_span')) return;
      let url = $(this).attr('href');
      if (url && url.indexOf('http') > -1) {
        window.open($(this).attr('href'));
        e.preventDefault();
      }
    });
  }
};
const render = data => {
  let permanent = userData.get('permanent');
  if (permanent.style === 'top') {
    renderTop(data);
  } else {
    (__webpack_require__(35161).renderBt)(data);
  }
};
const renderTopDetail = id => {
  let data = tmData[id];
  // if (!G.aliSite && G.from_device !== '360')
  //   replaceHref.init(id, data.product, '&column=b2c')
  let len = data.product.length;
  let str = 'tb';
  if (id === 'tmall') str = 'tm';
  let widthObj = calWidth.init();
  var sale_tle = "最近销量";
  if (data.from_self === true) sale_tle = "总销量";
  let html = htmlObj[id];
  let pages = Math.ceil(len / widthObj.showListNum);
  const el = document.createElement('div');
  $(`#${str}_compare`).append(el);
  const TmCompare = (__webpack_require__(83754)/* ["default"] */ .A);
  new Vue({
    el: el,
    render: h => h(TmCompare, {
      props: {
        data: data.product,
        s_server: G.s_server,
        width: widthObj.turnpW,
        link: data.more_link,
        pages: pages,
        imgLoad: G.imgLoad,
        sale_tle: sale_tle,
        allProductW: widthObj.allProductW
      }
    }),
    mounted() {
      // this.$nextTick(() => {
      //   golbal2.loadImg(0, widthObj.showListNum, $(`#${str}_compare li .small-img img`))
      // })
    }
  });
  // $(`#${str}_compare`).append((html)({
  //   data: data.product,
  //   s_server: G.s_server,
  //   width: widthObj.turnpW,
  //   link: data.more_link,
  //   pages: pages,
  //   imgLoad: G.imgLoad,
  //   sale_tle: sale_tle,
  //   allProductW: widthObj.allProductW
  // }))
  if (G.from_device !== '360') (__webpack_require__(49042).init)(data.product, id, false, data.min_price);
  // $(`#gwdang-${id}-dp-detail`).show()
};
const renderTop = data => {
  renderBtnTop(data);
};
const getTmInfo = async callback => {
  await (__webpack_require__(41761).met)('productInfoReady');
  let code_server = '1';
  let other_info = userData.get('other_info');
  let msg = other_info.exact_arr;
  let code = other_info['code-server'];
  let coreword = encodeURIComponent(other_info.now.coreword);
  if (!code) {
    code = {};
    code_server = '0';
  }
  let price = G.dp.price * 100;
  var url = `${G.server}/brwext/tbres?union=${G.union}&url=${encodeURIComponent(msg.url)}&site=${msg.site}&isbn=${msg.isbn}&keywords=${encodeURIComponent(msg.keywords)}&brand=${encodeURIComponent(msg.brand)}&type=${encodeURIComponent(msg.type)}&price=${price}&class_id=${msg.class_id}&name=${encodeURIComponent(G.dp.name)}&code_brand_id=${code.brand_id}&code_clean_title=${encodeURIComponent(code.clean_title)}&code_code=${code.code}&code_display_brand=${encodeURIComponent(code.display_brand)}&code_brand=${encodeURIComponent(code.brand)}&code_class_id=${encodeURIComponent(code.class_id)}&code_price=${encodeURIComponent(code.price)}&code_spec=${encodeURIComponent(code.spec)}&code-server=${code_server}&coreword=${coreword}&catid=${G.dp.cat_id}`;
  request.get(url).then(data => {
    if (data) {
      if (G.site == 'taobao' || G.site == 'tmall') {
        getUniqPid(data, mm => {
          callback(mm);
        });
      } else {
        getImgSearch(data, mm => {
          callback(mm);
        });
      }
    }
  });
};
const getImgSearch = function (msg, callback) {
  let buildTaobaoUrl = __webpack_require__(77342);
  msg = buildTaobaoUrl.buildCommon(msg);
  if (G.btype == 'luyou') {
    callback(msg);
    return;
  }
  let dataShare = __webpack_require__(34810);
  let brandId = dataShare.get('dp_data') && dataShare.get('dp_data')['exact_arr']['brand_id'];
  if (G.site == '360buy' && brandId && (!msg.taobao.sort || !msg.tmall.sort)) {
    // 在京东有brand 有比价结果的情况下， 不走图片检索
    callback(msg);
    return;
  }
  (__webpack_require__(80339).init)(data => {
    if (data) {
      if (msg.tmall.sort) msg.tmall = {};
      if (data.tmall.length > 0) {
        msg.tmall.min_price = data.tmall[0].price;
        msg.tmall.max_price = data.tmall[data.tmall.length - 1].price;
        msg.tmall.store = data.tmall;
        msg.tmall.product = data.tmall;
      }
      if (msg.taobao.sort) msg.taobao = {};
      if (data.taobao.length > 0) {
        msg.taobao.product = data.taobao;
        msg.taobao.store = data.taobao;
        msg.taobao.min_price = data.taobao[0].price;
        msg.taobao.max_price = data.taobao[data.taobao.length - 1].price;
      }
      if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union;
      if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union;
      callback(msg);
    } else {
      callback(msg);
    }
  });
};
const getUniqPid = function (msg, callback) {
  let buildTaobaoUrl = __webpack_require__(77342);
  msg = buildTaobaoUrl.buildCommon(msg);
  (__webpack_require__(19778).getTaobaouniqData)(data => {
    if (data) {
      if (msg.tmall.sort) {
        msg.tmall = {};
      }
      if (data.tmall.length > 0) {
        msg.tmall.min_price = data.tmall[0].price;
        msg.tmall.max_price = data.tmall[data.tmall.length - 1].price;
        msg.tmall.store = data.tmall;
        msg.tmall.product = data.tmall;
      }
      if (msg.taobao.sort) {
        msg.taobao = {};
      }
      if (data.taobao.length > 0) {
        msg.taobao.product = data.taobao;
        msg.taobao.store = data.taobao;
        msg.taobao.min_price = data.taobao[0].price;
        msg.taobao.max_price = data.taobao[data.taobao.length - 1].price;
      }
      if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union;
      if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union;
      callback(msg);
    } else {
      callback(msg);
    }
  });
};
module.exports.init = () => {
  getTmInfo(render);
};
module.exports.renderTopDetail2 = function (id) {
  let widthObj = calWidth.init();
  golbal2.loadImg(0, widthObj.showListNum, $(`#${id}-item-list li .small-img img`));
  $(`#gwdang-${id}-dp-detail`).show();
};

/***/ }),

/***/ 97354:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(65151);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("9024ddb2", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 97375:
/***/ ((module) => {

"use strict";
module.exports = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxNiAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIDIiPgo8cGF0aCBpZD0iU3VidHJhY3QiIGQ9Ik0xNS41NjE1IDVMMTMuMjg0MiA4SDExTDEzLjI3NjQgNUwxMSAySDEzLjI4NDJMMTUuNTYxNSA1WiIgZmlsbD0iI0ZGRUE5OCIvPgo8cGF0aCBpZD0iU3VidHJhY3RfMiIgZD0iTTEwLjU2MTUgNUw4LjI4NDE4IDhINkw4LjI3NjM3IDVMNiAySDguMjg0MThMMTAuNTYxNSA1WiIgZmlsbD0iI0ZGRUE5OCIgZmlsbC1vcGFjaXR5PSIwLjciLz4KPHBhdGggaWQ9IlN1YnRyYWN0XzMiIGQ9Ik01LjU2MTUyIDVMMy4yODQxOCA4SDFMMy4yNzYzNyA1TDEgMkgzLjI4NDE4TDUuNTYxNTIgNVoiIGZpbGw9IiNGRkVBOTgiIGZpbGwtb3BhY2l0eT0iMC41Ii8+CjwvZz4KPC9zdmc+Cg==";

/***/ }),

/***/ 97398:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c(_vm.qr ? "div" : "a", {
    tag: "component",
    staticClass: "gwd-subsidy-top gwd-component",
    attrs: {
      target: "_blank",
      title: _vm.qr ? "" : "点击领取"
    },
    on: {
      mouseover: _vm.over,
      click: _vm.goLink
    }
  }, [_vm.alterText ? _c("span", {
    staticClass: "gwd-alter-text"
  }, [_vm._v(_vm._s(_vm.alterText))]) : _vm._e(), _vm._v(" "), _c("span", {
    staticClass: "value"
  }, [_vm._v(_vm._s(_vm.value) + "元")]), _vm._v(" "), _vm.qr ? _c("div", {
    staticClass: "qrcode gwd-align"
  }, [_c("img", {
    staticStyle: {
      "margin-top": "7px",
      width: "130px",
      height: "130px"
    },
    style: _vm.qrcode ? "" : "visibility: hidden",
    attrs: {
      src: _vm.qrcode,
      alt: ""
    }
  }), _vm._v(" "), _vm.error ? _c("QrError", {
    on: {
      refresh: _vm.over
    }
  }) : _vm._e(), _vm._v(" "), _c("div", {
    staticStyle: {
      "margin-top": "4px",
      "text-align": "center"
    }
  }, [_c("span", {
    staticStyle: {
      "font-weight": "bold",
      color: "#f40f0f",
      "font-size": "14px"
    }
  }, [_vm._v("微信扫码")]), _vm._v(" "), _c("span", {
    staticStyle: {
      "margin-left": "4px",
      color: "#070707",
      "font-size": "12px"
    }
  }, [_vm._v("领红包")])])], 1) : _vm._e()]);
};
var staticRenderFns = exports.Yp = [];
render._withStripped = true;

/***/ }),

/***/ 97518:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

const ECLevel = __webpack_require__(49953)

const EC_BLOCKS_TABLE = [
// L  M  Q  H
  1, 1, 1, 1,
  1, 1, 1, 1,
  1, 1, 2, 2,
  1, 2, 2, 4,
  1, 2, 4, 4,
  2, 4, 4, 4,
  2, 4, 6, 5,
  2, 4, 6, 6,
  2, 5, 8, 8,
  4, 5, 8, 8,
  4, 5, 8, 11,
  4, 8, 10, 11,
  4, 9, 12, 16,
  4, 9, 16, 16,
  6, 10, 12, 18,
  6, 10, 17, 16,
  6, 11, 16, 19,
  6, 13, 18, 21,
  7, 14, 21, 25,
  8, 16, 20, 25,
  8, 17, 23, 25,
  9, 17, 23, 34,
  9, 18, 25, 30,
  10, 20, 27, 32,
  12, 21, 29, 35,
  12, 23, 34, 37,
  12, 25, 34, 40,
  13, 26, 35, 42,
  14, 28, 38, 45,
  15, 29, 40, 48,
  16, 31, 43, 51,
  17, 33, 45, 54,
  18, 35, 48, 57,
  19, 37, 51, 60,
  19, 38, 53, 63,
  20, 40, 56, 66,
  21, 43, 59, 70,
  22, 45, 62, 74,
  24, 47, 65, 77,
  25, 49, 68, 81
]

const EC_CODEWORDS_TABLE = [
// L  M  Q  H
  7, 10, 13, 17,
  10, 16, 22, 28,
  15, 26, 36, 44,
  20, 36, 52, 64,
  26, 48, 72, 88,
  36, 64, 96, 112,
  40, 72, 108, 130,
  48, 88, 132, 156,
  60, 110, 160, 192,
  72, 130, 192, 224,
  80, 150, 224, 264,
  96, 176, 260, 308,
  104, 198, 288, 352,
  120, 216, 320, 384,
  132, 240, 360, 432,
  144, 280, 408, 480,
  168, 308, 448, 532,
  180, 338, 504, 588,
  196, 364, 546, 650,
  224, 416, 600, 700,
  224, 442, 644, 750,
  252, 476, 690, 816,
  270, 504, 750, 900,
  300, 560, 810, 960,
  312, 588, 870, 1050,
  336, 644, 952, 1110,
  360, 700, 1020, 1200,
  390, 728, 1050, 1260,
  420, 784, 1140, 1350,
  450, 812, 1200, 1440,
  480, 868, 1290, 1530,
  510, 924, 1350, 1620,
  540, 980, 1440, 1710,
  570, 1036, 1530, 1800,
  570, 1064, 1590, 1890,
  600, 1120, 1680, 1980,
  630, 1204, 1770, 2100,
  660, 1260, 1860, 2220,
  720, 1316, 1950, 2310,
  750, 1372, 2040, 2430
]

/**
 * Returns the number of error correction block that the QR Code should contain
 * for the specified version and error correction level.
 *
 * @param  {Number} version              QR Code version
 * @param  {Number} errorCorrectionLevel Error correction level
 * @return {Number}                      Number of error correction blocks
 */
exports.getBlocksCount = function getBlocksCount (version, errorCorrectionLevel) {
  switch (errorCorrectionLevel) {
    case ECLevel.L:
      return EC_BLOCKS_TABLE[(version - 1) * 4 + 0]
    case ECLevel.M:
      return EC_BLOCKS_TABLE[(version - 1) * 4 + 1]
    case ECLevel.Q:
      return EC_BLOCKS_TABLE[(version - 1) * 4 + 2]
    case ECLevel.H:
      return EC_BLOCKS_TABLE[(version - 1) * 4 + 3]
    default:
      return undefined
  }
}

/**
 * Returns the number of error correction codewords to use for the specified
 * version and error correction level.
 *
 * @param  {Number} version              QR Code version
 * @param  {Number} errorCorrectionLevel Error correction level
 * @return {Number}                      Number of error correction codewords
 */
exports.getTotalCodewordsCount = function getTotalCodewordsCount (version, errorCorrectionLevel) {
  switch (errorCorrectionLevel) {
    case ECLevel.L:
      return EC_CODEWORDS_TABLE[(version - 1) * 4 + 0]
    case ECLevel.M:
      return EC_CODEWORDS_TABLE[(version - 1) * 4 + 1]
    case ECLevel.Q:
      return EC_CODEWORDS_TABLE[(version - 1) * 4 + 2]
    case ECLevel.H:
      return EC_CODEWORDS_TABLE[(version - 1) * 4 + 3]
    default:
      return undefined
  }
}


/***/ }),

/***/ 97628:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.T = void 0;
__webpack_require__(3362);
var _PriceProtect = _interopRequireDefault(__webpack_require__(41239));
const prefix = G.aliPrefix;
function getDaysByJdClass() {
  const classID = pageConfig.product.cat.join(',');
  const days = {
    jd: {}
  };
  days.jd['2'] = '12218';
  days.jd['7'] = '6196|670|1315|1620|9847|737,17394|9855|15248|12259,14716|12259,14718|1672|1316|6728|9987|652|17329|11729|9192|1318|5025|6144'.split('|');
  days.jd['30'] = '6994|16750|737|15901|12259|1319|1320|6233'.split('|');
  for (let key in days.jd) {
    for (let i = 0; i < days.jd[key].length; i++) {
      if (classID.startsWith(days.jd[key][i])) {
        return parseInt(key);
      }
    }
  }
  return 7;
}
async function getProtectDays() {
  if (G.site === '360buy') {
    const aList = $('.services a').toArray();
    for (let i = 0; i < aList.length; i++) {
      const a = aList[i];
      if (a.innerText.indexOf('价保') > -1) {
        const match = a.innerText.match(/\d+/);
        if (match) {
          return parseInt(match[0]);
        }
        return getDaysByJdClass();
      }
    }
  }
  if (G.aliSite) {
    // return 7
    let text = $('span[class^=guaranteeText--]').text();
    if (!text) {
      text = $('[class^=PromotionNew--caption--]').text();
    }
    if (!text) {
      text = $(`[class^=${G.aliPrefix}--guaranteeText--]`).text();
    }
    if (text.includes('价保')) {
      const match = text.match(/(\d+)天价保/);
      if (match) {
        return parseInt(match[1]);
      }
      return 7;
    } else {
      const id = (__webpack_require__(60340).getParameterByName)('id');
      const site = G.site === 'taobao' ? 'taobao' : 'tmall';
      let detail = await (__webpack_require__(71159).tmallDetail)(id, site);
      const guaranteeInfo = JSON.stringify(detail);
      text = JSON.stringify(guaranteeInfo);
      if (text.includes('价保')) {
        const match = text.match(/(\d+)天价保/);
        if (match) {
          return parseInt(match[1]);
        }
        return 7;
      }
    }
  }
  if (G.site === 'vipshop') {
    const list = $('.services').toArray();
    for (let i = 0; i < list.length; i++) {
      const item = list[i];
      if (item.innerText.includes('价保')) {
        const match = item.innerText.match(/\d+/);
        if (match) {
          return parseInt(match[0]);
        }
        return 7;
      }
    }
  }
  return 0;
}
window.gwdLogs = [];
const log = msg => {
  gwdLogs.push(msg);
};
const init = async () => {
  log('protect start');
  if (window.gwdPriceProtect) {
    log('duplicate');
    return;
  }
  if ((__webpack_require__(60340).isNewJd)()) {
    return;
  }
  const globalConfig = await (__webpack_require__(41761).met)('GwdConfig');
  const days = await getProtectDays();
  if (!days) {
    log('no protect days');
    return;
  }
  const store = (__webpack_require__(92771).getStore)();
  const el = document.createElement('DIV');
  if (G.site === '360buy') {
    if ($('.information-wrap').length) {
      $('#page_opprice').after(el);
    } else {
      $('.J-summary-price .J-plus-price').before(el);
    }
  }
  const offset = {};
  if (G.aliSite) {
    // const fakeEl = document.createElement('DIV')
    // fakeEl.style.display = 'inline-block'
    // fakeEl.style.width = '30px'
    // fakeEl.style.height = '17px'
    // fakeEl.style.background = 'red'
    // fakeEl.style.verticalAlign = 'middle'
    await (__webpack_require__(30888).waitForConditionFn)(() => {
      return $('[class^=guaranteeListWrap--]').length || $(`[class^=${prefix}--guaranteeListWrap--]`).length;
    });
    if ($(`[class^=${prefix}--guaranteeListWrap--]`).length) {
      $(`[class^=${prefix}--guaranteeListWrap--]`).append(el);
    } else {
      $('[class^=guaranteeListWrap--]').append(el);
    }
    if ($('[class^=PromotionNew--section--]').length) {
      $('[class^=PromotionNew--caption--]').append(el);
    }

    // const bodyOffset = require('common/commonUtil').getBodyOffset(fakeEl)
    // offset.top = bodyOffset.top - 2
    // if ($('.guaranteeListWrap--JVI9TAfF').length) {
    //   offset.top += 33
    // }
    // offset.left = bodyOffset.left
    // document.body.appendChild(el)
  }
  if (G.site === 'vipshop') {
    await (__webpack_require__(30888).waitForConditionFn)(() => {
      return $('#J-button-box').length;
    });
    log('appending');
    $('#J-button-box').append(el);
  }
  await (__webpack_require__(41761).met)('userLoginChecked');
  log('login checked');
  const nowPrice = await (__webpack_require__(41761).met)('NowPrice');
  if (window.gwdPriceProtect) {
    return;
  }
  const app = new Vue({
    el,
    store,
    render: h => h(_PriceProtect.default, {
      props: {
        defaultDays: days,
        login: G.userLogin,
        nowPrice,
        offset
      }
    })
  });
  window.gwdPriceProtect = app;
  if (G.aliSite) {
    const panel = globalConfig.aliMobileNotifierConfig.map(i => i.panel).find(item => {
      if ($(item).length) {
        return $(item)[0];
      }
      return false;
    });
    if (panel) {
      let selector = '[class^=guaranteeListWrap--]';
      if (!$(selector).length) {
        selector = `[class^=${prefix}--guaranteeListWrap--]`;
      }
      (__webpack_require__(41968).observe)(panel, async mutations => {
        if ($(selector).length && !$(selector)[0].contains(app.$el)) {
          $(selector).append(app.$el);
        }
      }, {
        attributes: true,
        attributeFilter: ['class']
      });
    }
  }
  if (G.site === 'vipshop') {
    setInterval(() => {
      if (!$('#J-button-box')[0].contains(app.$el)) {
        (__webpack_require__(7129).log)('recover protect');
        $('#J-button-box').append(app.$el);
      }
    }, 500);
  }
};
exports.T = init;

/***/ }),

/***/ 97643:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, url = $data.url;
    $$out += '<div class="trend-error-info">\n  <p class="error-p">我们检测到访问异常\uFF0C请您验证后继续使用</p>\n  <a class="error-sp" href="';
    $$out += $escape(url);
    $$out += '">点击验证</a>\n  <style type="text/css">\n    #gwdang-trend {\n      width: 105px;\n    }\n    #gwdang-trend, #gwdang-trend span {\n      cursor: default;\n    }\n    #gwdang-trend span {\n      float: left;\n      width: 105px;\n      text-align: center;\n      line-height: 36px;\n      color: #666;\n      font-size: 14px;\n    }\n    #gwdang-trend .trend-error-info {\n      position: absolute;\n      top: 36px;\n      left: -1px;\n      width: 100%;\n      background: #fff;\n      z-index: 99999999;\n      height: 268px;\n      display: none;\n      box-shadow: 0 5px 10px 0 rgba(22,24,26,.15);\n      border: 1px solid #edf1f2!important;\n    }\n    #gwdang-trend .error-p {\n      width: 100%;\n      float: left;\n      text-align: center;\n      margin-top: 45px;\n      font-size: 14px;\n      color: #666;\n    }\n    #gwdang-trend .error-sp {\n      width: 95px;\n      margin: 110px auto;\n      height: 20px;\n      line-height: 20px;\n      text-align: center;\n      color: #000!important;\n      border: 1px solid #333;\n      border-radius: 5px;\n      display: block;\n      text-decoration: none!important;\n    }\n    #gwdang-trend:hover .trend-error-info {\n      display: block;\n    }\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 97745:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var $imports = __webpack_require__(53095);
module.exports = function ($data) {
    'use strict';
    $data = $data || {};
    var $$out = '', $escape = $imports.$escape, url = $data.url;
    $$out += '<div class="trend-error-info-mini">\n  <p class="error-p">我们检测到访问异常\uFF0C请您验证后继续使用</p>\n  <a class="error-sp" href="';
    $$out += $escape(url);
    $$out += '">点击验证</a>\n  <style type="text/css">\n    .trend-error-info-mini {\n      float: left;\n      width: 370px;\n      height: 242px;\n      background: #fff;\n      z-index: 99999999;\n      height: 268px;\n      font-family: \'Microsoft YaHei\';\n    }\n    .error-p {\n      width: 100%;\n      float: left;\n      text-align: center;\n      margin-top: 45px!important;\n      font-size: 14px;\n      color: #666;\n    }\n    .error-sp {\n      width: 95px;\n      margin: 110px auto!important;\n      height: 20px;\n      line-height: 20px;\n      text-align: center;\n      color: #000!important;\n      border: 1px solid #333;\n      border-radius: 5px;\n      display: block;\n      font-size: 12px;\n      text-decoration: none!important;\n    }\n  </style>\n</div>';
    return $$out;
};

/***/ }),

/***/ 97751:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var globalThis = __webpack_require__(44576);
var isCallable = __webpack_require__(94901);

var aFunction = function (argument) {
  return isCallable(argument) ? argument : undefined;
};

module.exports = function (namespace, method) {
  return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
};


/***/ }),

/***/ 97825:
/***/ ((module) => {

"use strict";


/* istanbul ignore next  */
function apply(styleElement, options, obj) {
  var css = "";
  if (obj.supports) {
    css += "@supports (".concat(obj.supports, ") {");
  }
  if (obj.media) {
    css += "@media ".concat(obj.media, " {");
  }
  var needLayer = typeof obj.layer !== "undefined";
  if (needLayer) {
    css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
  }
  css += obj.css;
  if (needLayer) {
    css += "}";
  }
  if (obj.media) {
    css += "}";
  }
  if (obj.supports) {
    css += "}";
  }
  var sourceMap = obj.sourceMap;
  if (sourceMap && typeof btoa !== "undefined") {
    css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
  }

  // For old IE
  /* istanbul ignore if  */
  options.styleTagTransform(css, styleElement, options.options);
}
function removeStyleElement(styleElement) {
  // istanbul ignore if
  if (styleElement.parentNode === null) {
    return false;
  }
  styleElement.parentNode.removeChild(styleElement);
}

/* istanbul ignore next  */
function domAPI(options) {
  if (typeof document === "undefined") {
    return {
      update: function update() {},
      remove: function remove() {}
    };
  }
  var styleElement = options.insertStyleElement(options);
  return {
    update: function update(obj) {
      apply(styleElement, options, obj);
    },
    remove: function remove() {
      removeStyleElement(styleElement);
    }
  };
}
module.exports = domAPI;

/***/ }),

/***/ 97916:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var bind = __webpack_require__(76080);
var call = __webpack_require__(69565);
var toObject = __webpack_require__(48981);
var callWithSafeIterationClosing = __webpack_require__(96319);
var isArrayIteratorMethod = __webpack_require__(44209);
var isConstructor = __webpack_require__(33517);
var lengthOfArrayLike = __webpack_require__(26198);
var createProperty = __webpack_require__(97040);
var getIterator = __webpack_require__(70081);
var getIteratorMethod = __webpack_require__(50851);

var $Array = Array;

// `Array.from` method implementation
// https://tc39.es/ecma262/#sec-array.from
module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
  var O = toObject(arrayLike);
  var IS_CONSTRUCTOR = isConstructor(this);
  var argumentsLength = arguments.length;
  var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
  var mapping = mapfn !== undefined;
  if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
  var iteratorMethod = getIteratorMethod(O);
  var index = 0;
  var length, result, step, iterator, next, value;
  // if the target is not iterable or it's an array with the default iterator - use a simple case
  if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
    result = IS_CONSTRUCTOR ? new this() : [];
    iterator = getIterator(O, iteratorMethod);
    next = iterator.next;
    for (;!(step = call(next, iterator)).done; index++) {
      value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
      createProperty(result, index, value);
    }
  } else {
    length = lengthOfArrayLike(O);
    result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
    for (;length > index; index++) {
      value = mapping ? mapfn(O[index], index) : O[index];
      createProperty(result, index, value);
    }
  }
  result.length = index;
  return result;
};


/***/ }),

/***/ 97995:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, "\n.gwdang-trend-detail .orign-pri-info[data-v-803e699c] {\n  margin-top: 12px;\n}\n.gwdang-trend-detail .promo-pri-info[data-v-803e699c] {\n  margin-top: 8px;\n}\n#gwdang-trend-detail .opi-sp1[data-v-803e699c], #gwdang-trend-detail .ppi-sp1[data-v-803e699c], #gwdang-trend-detail .ppi-sp2[data-v-803e699c] {\n  margin-left: 0px;\n}\n#gwdang-trend-detail .ppi-sp1+.ppi-sp2[data-v-803e699c], .opi-sp3[data-v-803e699c] {\n  margin-left: 0px;\n}\n#gwdang-trend-detail .promo-history-link[data-v-803e699c] {\n  margin-left: 20px;\n  float: left!important;\n}\n", ""]);

// exports


/***/ }),

/***/ 98153:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var $ = __webpack_require__(10333);


var _interopRequireDefault = __webpack_require__(24994);
Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports.get = void 0;
__webpack_require__(3362);
var _fillPriceAndPromo = _interopRequireDefault(__webpack_require__(26431));
const request = __webpack_require__(49388);
const bgClient = __webpack_require__(40076);
const extConsole = __webpack_require__(7129);
const commonUtil = __webpack_require__(60340);
const fillList = async list => {
  // const uniqueList = [...new Set(list)]
  // const shopIds = uniqueList.map(item => item.shopId).join(',')
  //
  // const shopInfos = commonUtil.arrayToObj(await request.rawGet(
  //   request.makeUrl('https://rms.shop.jd.com', '/json/pop/shopInfo.action', {
  //     ids: shopIds,
  //     _: Date.now()
  //   })
  // ), 'venderId')
  const shopInfosText = await request.rawGet(request.makeUrl('https://chat1.jd.com', '/api/checkChat', {
    pidList: list.map(item => item.skuId).join(','),
    _: Date.now(),
    callback: 'jQuery6537064'
  }));
  const shopInfosList = JSON.parse(shopInfosText.replace('jQuery6537064(', '').slice(0, -2));
  const shopInfos = commonUtil.arrayToObj(shopInfosList, 'pid');
  extConsole.log('shopInfos', shopInfos);
  return list.map(item => {
    item.shopName = shopInfos[item.skuId] && shopInfos[item.skuId].seller ? shopInfos[item.skuId].seller : '京东商城';
    return item;
  });
};
const fillSaleAmount = async list => {
  const ids = list.map(item => item.skuId).join(',');
  const saleAmountInfos = commonUtil.arrayToObj((await request.rawGet(request.makeUrl('https://club.jd.com', '/comment/productCommentSummaries.action', {
    referenceIds: ids,
    _: Date.now()
  }))).CommentsCount, 'SkuId');
  extConsole.log('saleAmountInfos', saleAmountInfos);
  return list.map(item => {
    item.salesAmount = saleAmountInfos[item.skuId] ? saleAmountInfos[item.skuId].CommentCountStr : '';
    return item;
  });
};
const get = async imgBase64 => {
  const uid = await bgClient.get('/getCookie', {
    url: 'https://search.jd.com/image',
    name: 'unick'
  });
  if (!(uid && uid.value)) {
    return 'needLogin';
  }
  const res = await request.post('https://search.jd.com/image?op=upload', {
    file: imgBase64,
    GWD_FORCE_FILE: ['file']
  }, true);
  // extConsole.log('jd path', res)
  const match = res.match(/callback\('(.*)'\)/);
  if (!match) {
    // if (res.includes('<title>京东-欢迎登录</title>')) {
    //   return 'needLogin'
    // }
    return 'needLogin';
  }
  const path = encodeURIComponent(match[1]);
  const searchUrl = request.makeUrl('https://search.jd.com', '/image', {
    path: path,
    op: 'search',
    isur: 0,
    category_id: undefined,
    category_list: '',
    stype: 0,
    main_rect: ''
  }, true);
  const jdResultHTML = await request.rawGet(searchUrl);
  extConsole.log('jd result', jdResultHTML);
  let list = $('li.gl-item', jdResultHTML).toArray().map(item => ({
    title: $('.p-name em', item).text(),
    price: $('.p-price i', item).text(),
    img: $('.p-img img', item).attr('src') || $('.p-img img', item).attr('data-lazy-img'),
    url: $('.p-img a', item).attr('href'),
    dpId: $(item).attr('data-sku') + '-3',
    skuId: $(item).attr('data-sku'),
    shopId: $('.p-shop', item).attr('data-venderid'),
    self: $('.p-icons', item).html().includes('自营')
  }));
  list = await (0, _fillPriceAndPromo.default)(list);
  list = await fillList(list);
  list = await fillSaleAmount(list);
  extConsole.log(list);
  if (list.length) {
    return list;
  }
  return 'fail';
};
exports.get = get;

/***/ }),

/***/ 98324:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);


let communicate = __webpack_require__(79560);
let globalObj,
  callbacks = [];
let hascallback;
let init = () => {
  debugger;
  let nowurl = location.href;
  let itemId = nowurl.match(/[?&]id=([0-9]+)/) && nowurl.match(/[?&]id=([0-9]+)/)[1];
  if (!itemId) return;
  let website = G.dp && G.dp.site || G.site;
  if (website.indexOf('95095') > -1) {
    globalObj = {
      'nodata': true
    };
    return;
  }
  if (website == 'ai-taobao') website = 'taobao';
  // let price = Number(G.dp.price)*100;
  // let url = 'https://browserre.taotaosou.com/priceHistory.do?itemId='+ itemId + '&website=' + website + '&price=' + price.toString();
  let url = (__webpack_require__(8081).init)();
  communicate.trigger({
    'type': 'getTaobaoTrend',
    'info': url
  });
  communicate.on(data => {
    if (typeof data === 'string') {
      data = JSON.parse(data);
    }
    if (data.type == 'getTaobaoTrend') {
      if (data.value) try {
        globalObj = JSON.parse(data.value).priceHistoryData;
        if (!globalObj) globalObj = {
          'nodata': true
        };
        if (callbacks.length > 0 && !hascallback) {
          //hascallback = true; // debug
          for (var i = 0; i < callbacks.length; i++) {
            callbacks[i](globalObj);
          }
          hascallback = true;
        }
      } catch (e) {}
    }
  });
};
module.exports._init = () => {
  // G.on('pageType=2', () => {
  //   init()
  // })
};
module.exports.init2 = () => {
  // init()
};
module.exports.getTrend = callback => {
  if (globalObj) {
    if (globalObj['nodata']) globalObj = null;
    hascallback = true;
    callback(globalObj);
    return;
  } else {
    callbacks.push(callback);
  }
  setTimeout(function () {
    if (!hascallback) {
      hascallback = true;
      callback(null);
    }
  }, 3000);
};

/***/ }),

/***/ 98356:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


var _interopRequireDefault = __webpack_require__(24994);
__webpack_unused_export__ = ({
  value: true
});
exports.A = void 0;
var _Stamp = _interopRequireDefault(__webpack_require__(36408));
var _default = exports.A = {
  props: ['link', 'icon', 'mainColor', 'secondColor', 'text', 'showStampBg', 'rebate'],
  components: {
    Stamp: _Stamp.default
  }
};

/***/ }),

/***/ 98406:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
__webpack_require__(23792);
__webpack_require__(27337);
var $ = __webpack_require__(46518);
var globalThis = __webpack_require__(44576);
var safeGetBuiltIn = __webpack_require__(93389);
var getBuiltIn = __webpack_require__(97751);
var call = __webpack_require__(69565);
var uncurryThis = __webpack_require__(79504);
var DESCRIPTORS = __webpack_require__(43724);
var USE_NATIVE_URL = __webpack_require__(67416);
var defineBuiltIn = __webpack_require__(36840);
var defineBuiltInAccessor = __webpack_require__(62106);
var defineBuiltIns = __webpack_require__(56279);
var setToStringTag = __webpack_require__(10687);
var createIteratorConstructor = __webpack_require__(33994);
var InternalStateModule = __webpack_require__(91181);
var anInstance = __webpack_require__(90679);
var isCallable = __webpack_require__(94901);
var hasOwn = __webpack_require__(39297);
var bind = __webpack_require__(76080);
var classof = __webpack_require__(36955);
var anObject = __webpack_require__(28551);
var isObject = __webpack_require__(20034);
var $toString = __webpack_require__(655);
var create = __webpack_require__(2360);
var createPropertyDescriptor = __webpack_require__(6980);
var getIterator = __webpack_require__(70081);
var getIteratorMethod = __webpack_require__(50851);
var createIterResultObject = __webpack_require__(62529);
var validateArgumentsLength = __webpack_require__(22812);
var wellKnownSymbol = __webpack_require__(78227);
var arraySort = __webpack_require__(74488);

var ITERATOR = wellKnownSymbol('iterator');
var URL_SEARCH_PARAMS = 'URLSearchParams';
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
var setInternalState = InternalStateModule.set;
var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);

var nativeFetch = safeGetBuiltIn('fetch');
var NativeRequest = safeGetBuiltIn('Request');
var Headers = safeGetBuiltIn('Headers');
var RequestPrototype = NativeRequest && NativeRequest.prototype;
var HeadersPrototype = Headers && Headers.prototype;
var TypeError = globalThis.TypeError;
var encodeURIComponent = globalThis.encodeURIComponent;
var fromCharCode = String.fromCharCode;
var fromCodePoint = getBuiltIn('String', 'fromCodePoint');
var $parseInt = parseInt;
var charAt = uncurryThis(''.charAt);
var join = uncurryThis([].join);
var push = uncurryThis([].push);
var replace = uncurryThis(''.replace);
var shift = uncurryThis([].shift);
var splice = uncurryThis([].splice);
var split = uncurryThis(''.split);
var stringSlice = uncurryThis(''.slice);
var exec = uncurryThis(/./.exec);

var plus = /\+/g;
var FALLBACK_REPLACER = '\uFFFD';
var VALID_HEX = /^[0-9a-f]+$/i;

var parseHexOctet = function (string, start) {
  var substr = stringSlice(string, start, start + 2);
  if (!exec(VALID_HEX, substr)) return NaN;

  return $parseInt(substr, 16);
};

var getLeadingOnes = function (octet) {
  var count = 0;
  for (var mask = 0x80; mask > 0 && (octet & mask) !== 0; mask >>= 1) {
    count++;
  }
  return count;
};

var utf8Decode = function (octets) {
  var codePoint = null;

  switch (octets.length) {
    case 1:
      codePoint = octets[0];
      break;
    case 2:
      codePoint = (octets[0] & 0x1F) << 6 | (octets[1] & 0x3F);
      break;
    case 3:
      codePoint = (octets[0] & 0x0F) << 12 | (octets[1] & 0x3F) << 6 | (octets[2] & 0x3F);
      break;
    case 4:
      codePoint = (octets[0] & 0x07) << 18 | (octets[1] & 0x3F) << 12 | (octets[2] & 0x3F) << 6 | (octets[3] & 0x3F);
      break;
  }

  return codePoint > 0x10FFFF ? null : codePoint;
};

var decode = function (input) {
  input = replace(input, plus, ' ');
  var length = input.length;
  var result = '';
  var i = 0;

  while (i < length) {
    var decodedChar = charAt(input, i);

    if (decodedChar === '%') {
      if (charAt(input, i + 1) === '%' || i + 3 > length) {
        result += '%';
        i++;
        continue;
      }

      var octet = parseHexOctet(input, i + 1);

      // eslint-disable-next-line no-self-compare -- NaN check
      if (octet !== octet) {
        result += decodedChar;
        i++;
        continue;
      }

      i += 2;
      var byteSequenceLength = getLeadingOnes(octet);

      if (byteSequenceLength === 0) {
        decodedChar = fromCharCode(octet);
      } else {
        if (byteSequenceLength === 1 || byteSequenceLength > 4) {
          result += FALLBACK_REPLACER;
          i++;
          continue;
        }

        var octets = [octet];
        var sequenceIndex = 1;

        while (sequenceIndex < byteSequenceLength) {
          i++;
          if (i + 3 > length || charAt(input, i) !== '%') break;

          var nextByte = parseHexOctet(input, i + 1);

          // eslint-disable-next-line no-self-compare -- NaN check
          if (nextByte !== nextByte) {
            i += 3;
            break;
          }
          if (nextByte > 191 || nextByte < 128) break;

          push(octets, nextByte);
          i += 2;
          sequenceIndex++;
        }

        if (octets.length !== byteSequenceLength) {
          result += FALLBACK_REPLACER;
          continue;
        }

        var codePoint = utf8Decode(octets);
        if (codePoint === null) {
          result += FALLBACK_REPLACER;
        } else {
          decodedChar = fromCodePoint(codePoint);
        }
      }
    }

    result += decodedChar;
    i++;
  }

  return result;
};

var find = /[!'()~]|%20/g;

var replacements = {
  '!': '%21',
  "'": '%27',
  '(': '%28',
  ')': '%29',
  '~': '%7E',
  '%20': '+'
};

var replacer = function (match) {
  return replacements[match];
};

var serialize = function (it) {
  return replace(encodeURIComponent(it), find, replacer);
};

var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
  setInternalState(this, {
    type: URL_SEARCH_PARAMS_ITERATOR,
    target: getInternalParamsState(params).entries,
    index: 0,
    kind: kind
  });
}, URL_SEARCH_PARAMS, function next() {
  var state = getInternalIteratorState(this);
  var target = state.target;
  var index = state.index++;
  if (!target || index >= target.length) {
    state.target = null;
    return createIterResultObject(undefined, true);
  }
  var entry = target[index];
  switch (state.kind) {
    case 'keys': return createIterResultObject(entry.key, false);
    case 'values': return createIterResultObject(entry.value, false);
  } return createIterResultObject([entry.key, entry.value], false);
}, true);

var URLSearchParamsState = function (init) {
  this.entries = [];
  this.url = null;

  if (init !== undefined) {
    if (isObject(init)) this.parseObject(init);
    else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init));
  }
};

URLSearchParamsState.prototype = {
  type: URL_SEARCH_PARAMS,
  bindURL: function (url) {
    this.url = url;
    this.update();
  },
  parseObject: function (object) {
    var entries = this.entries;
    var iteratorMethod = getIteratorMethod(object);
    var iterator, next, step, entryIterator, entryNext, first, second;

    if (iteratorMethod) {
      iterator = getIterator(object, iteratorMethod);
      next = iterator.next;
      while (!(step = call(next, iterator)).done) {
        entryIterator = getIterator(anObject(step.value));
        entryNext = entryIterator.next;
        if (
          (first = call(entryNext, entryIterator)).done ||
          (second = call(entryNext, entryIterator)).done ||
          !call(entryNext, entryIterator).done
        ) throw new TypeError('Expected sequence with length 2');
        push(entries, { key: $toString(first.value), value: $toString(second.value) });
      }
    } else for (var key in object) if (hasOwn(object, key)) {
      push(entries, { key: key, value: $toString(object[key]) });
    }
  },
  parseQuery: function (query) {
    if (query) {
      var entries = this.entries;
      var attributes = split(query, '&');
      var index = 0;
      var attribute, entry;
      while (index < attributes.length) {
        attribute = attributes[index++];
        if (attribute.length) {
          entry = split(attribute, '=');
          push(entries, {
            key: decode(shift(entry)),
            value: decode(join(entry, '='))
          });
        }
      }
    }
  },
  serialize: function () {
    var entries = this.entries;
    var result = [];
    var index = 0;
    var entry;
    while (index < entries.length) {
      entry = entries[index++];
      push(result, serialize(entry.key) + '=' + serialize(entry.value));
    } return join(result, '&');
  },
  update: function () {
    this.entries.length = 0;
    this.parseQuery(this.url.query);
  },
  updateURL: function () {
    if (this.url) this.url.update();
  }
};

// `URLSearchParams` constructor
// https://url.spec.whatwg.org/#interface-urlsearchparams
var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
  anInstance(this, URLSearchParamsPrototype);
  var init = arguments.length > 0 ? arguments[0] : undefined;
  var state = setInternalState(this, new URLSearchParamsState(init));
  if (!DESCRIPTORS) this.size = state.entries.length;
};

var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;

defineBuiltIns(URLSearchParamsPrototype, {
  // `URLSearchParams.prototype.append` method
  // https://url.spec.whatwg.org/#dom-urlsearchparams-append
  append: function append(name, value) {
    var state = getInternalParamsState(this);
    validateArgumentsLength(arguments.length, 2);
    push(state.entries, { key: $toString(name), value: $toString(value) });
    if (!DESCRIPTORS) this.length++;
    state.updateURL();
  },
  // `URLSearchParams.prototype.delete` method
  // https://url.spec.whatwg.org/#dom-urlsearchparams-delete
  'delete': function (name /* , value */) {
    var state = getInternalParamsState(this);
    var length = validateArgumentsLength(arguments.length, 1);
    var entries = state.entries;
    var key = $toString(name);
    var $value = length < 2 ? undefined : arguments[1];
    var value = $value === undefined ? $value : $toString($value);
    var index = 0;
    while (index < entries.length) {
      var entry = entries[index];
      if (entry.key === key && (value === undefined || entry.value === value)) {
        splice(entries, index, 1);
        if (value !== undefined) break;
      } else index++;
    }
    if (!DESCRIPTORS) this.size = entries.length;
    state.updateURL();
  },
  // `URLSearchParams.prototype.get` method
  // https://url.spec.whatwg.org/#dom-urlsearchparams-get
  get: function get(name) {
    var entries = getInternalParamsState(this).entries;
    validateArgumentsLength(arguments.length, 1);
    var key = $toString(name);
    var index = 0;
    for (; index < entries.length; index++) {
      if (entries[index].key === key) return entries[index].value;
    }
    return null;
  },
  // `URLSearchParams.prototype.getAll` method
  // https://url.spec.whatwg.org/#dom-urlsearchparams-getall
  getAll: function getAll(name) {
    var entries = getInternalParamsState(this).entries;
    validateArgumentsLength(arguments.length, 1);
    var key = $toString(name);
    var result = [];
    var index = 0;
    for (; index < entries.length; index++) {
      if (entries[index].key === key) push(result, entries[index].value);
    }
    return result;
  },
  // `URLSearchParams.prototype.has` method
  // https://url.spec.whatwg.org/#dom-urlsearchparams-has
  has: function has(name /* , value */) {
    var entries = getInternalParamsState(this).entries;
    var length = validateArgumentsLength(arguments.length, 1);
    var key = $toString(name);
    var $value = length < 2 ? undefined : arguments[1];
    var value = $value === undefined ? $value : $toString($value);
    var index = 0;
    while (index < entries.length) {
      var entry = entries[index++];
      if (entry.key === key && (value === undefined || entry.value === value)) return true;
    }
    return false;
  },
  // `URLSearchParams.prototype.set` method
  // https://url.spec.whatwg.org/#dom-urlsearchparams-set
  set: function set(name, value) {
    var state = getInternalParamsState(this);
    validateArgumentsLength(arguments.length, 1);
    var entries = state.entries;
    var found = false;
    var key = $toString(name);
    var val = $toString(value);
    var index = 0;
    var entry;
    for (; index < entries.length; index++) {
      entry = entries[index];
      if (entry.key === key) {
        if (found) splice(entries, index--, 1);
        else {
          found = true;
          entry.value = val;
        }
      }
    }
    if (!found) push(entries, { key: key, value: val });
    if (!DESCRIPTORS) this.size = entries.length;
    state.updateURL();
  },
  // `URLSearchParams.prototype.sort` method
  // https://url.spec.whatwg.org/#dom-urlsearchparams-sort
  sort: function sort() {
    var state = getInternalParamsState(this);
    arraySort(state.entries, function (a, b) {
      return a.key > b.key ? 1 : -1;
    });
    state.updateURL();
  },
  // `URLSearchParams.prototype.forEach` method
  forEach: function forEach(callback /* , thisArg */) {
    var entries = getInternalParamsState(this).entries;
    var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined);
    var index = 0;
    var entry;
    while (index < entries.length) {
      entry = entries[index++];
      boundFunction(entry.value, entry.key, this);
    }
  },
  // `URLSearchParams.prototype.keys` method
  keys: function keys() {
    return new URLSearchParamsIterator(this, 'keys');
  },
  // `URLSearchParams.prototype.values` method
  values: function values() {
    return new URLSearchParamsIterator(this, 'values');
  },
  // `URLSearchParams.prototype.entries` method
  entries: function entries() {
    return new URLSearchParamsIterator(this, 'entries');
  }
}, { enumerable: true });

// `URLSearchParams.prototype[@@iterator]` method
defineBuiltIn(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });

// `URLSearchParams.prototype.toString` method
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
defineBuiltIn(URLSearchParamsPrototype, 'toString', function toString() {
  return getInternalParamsState(this).serialize();
}, { enumerable: true });

// `URLSearchParams.prototype.size` getter
// https://github.com/whatwg/url/pull/734
if (DESCRIPTORS) defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
  get: function size() {
    return getInternalParamsState(this).entries.length;
  },
  configurable: true,
  enumerable: true
});

setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);

$({ global: true, constructor: true, forced: !USE_NATIVE_URL }, {
  URLSearchParams: URLSearchParamsConstructor
});

// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
if (!USE_NATIVE_URL && isCallable(Headers)) {
  var headersHas = uncurryThis(HeadersPrototype.has);
  var headersSet = uncurryThis(HeadersPrototype.set);

  var wrapRequestOptions = function (init) {
    if (isObject(init)) {
      var body = init.body;
      var headers;
      if (classof(body) === URL_SEARCH_PARAMS) {
        headers = init.headers ? new Headers(init.headers) : new Headers();
        if (!headersHas(headers, 'content-type')) {
          headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
        }
        return create(init, {
          body: createPropertyDescriptor(0, $toString(body)),
          headers: createPropertyDescriptor(0, headers)
        });
      }
    } return init;
  };

  if (isCallable(nativeFetch)) {
    $({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
      fetch: function fetch(input /* , init */) {
        return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
      }
    });
  }

  if (isCallable(NativeRequest)) {
    var RequestConstructor = function Request(input /* , init */) {
      anInstance(this, RequestPrototype);
      return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
    };

    RequestPrototype.constructor = RequestConstructor;
    RequestConstructor.prototype = RequestPrototype;

    $({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
      Request: RequestConstructor
    });
  }
}

module.exports = {
  URLSearchParams: URLSearchParamsConstructor,
  getState: getInternalParamsState
};


/***/ }),

/***/ 98456:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ NumLabelvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ NumLabel)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/NumLabel.vue?vue&type=template&id=1e27a946&scoped=true
var NumLabelvue_type_template_id_1e27a946_scoped_true = __webpack_require__(58255);
;// ./src/standard/module/components/Widgets/NumLabel.vue?vue&type=template&id=1e27a946&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/NumLabel.vue?vue&type=script&lang=js
var NumLabelvue_type_script_lang_js = __webpack_require__(47241);
;// ./src/standard/module/components/Widgets/NumLabel.vue?vue&type=script&lang=js
 /* harmony default export */ const Widgets_NumLabelvue_type_script_lang_js = (NumLabelvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
var injectStylesIntoStyleTag = __webpack_require__(85072);
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
var styleDomAPI = __webpack_require__(97825);
var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
var insertBySelector = __webpack_require__(77659);
var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
var setAttributesWithoutAttributes = __webpack_require__(55056);
var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
var insertStyleElement = __webpack_require__(10540);
var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
var styleTagTransform = __webpack_require__(41113);
var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
// EXTERNAL MODULE: ./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/NumLabel.vue?vue&type=style&index=0&id=1e27a946&prod&scoped=true&lang=css
var NumLabelvue_type_style_index_0_id_1e27a946_prod_scoped_true_lang_css = __webpack_require__(4188);
var NumLabelvue_type_style_index_0_id_1e27a946_prod_scoped_true_lang_css_default = /*#__PURE__*/__webpack_require__.n(NumLabelvue_type_style_index_0_id_1e27a946_prod_scoped_true_lang_css);
;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Widgets/NumLabel.vue?vue&type=style&index=0&id=1e27a946&prod&scoped=true&lang=css

      
      
      
      
      
      
      
      
      

var options = {};

options.styleTagTransform = (styleTagTransform_default());
options.setAttributes = (setAttributesWithoutAttributes_default());

      options.insert = insertBySelector_default().bind(null, "head");
    
options.domAPI = (styleDomAPI_default());
options.insertStyleElement = (insertStyleElement_default());

var update = injectStylesIntoStyleTag_default()((NumLabelvue_type_style_index_0_id_1e27a946_prod_scoped_true_lang_css_default()), options);




       /* harmony default export */ const Widgets_NumLabelvue_type_style_index_0_id_1e27a946_prod_scoped_true_lang_css = ((NumLabelvue_type_style_index_0_id_1e27a946_prod_scoped_true_lang_css_default()) && (NumLabelvue_type_style_index_0_id_1e27a946_prod_scoped_true_lang_css_default()).locals ? (NumLabelvue_type_style_index_0_id_1e27a946_prod_scoped_true_lang_css_default()).locals : undefined);

;// ./src/standard/module/components/Widgets/NumLabel.vue?vue&type=style&index=0&id=1e27a946&prod&scoped=true&lang=css

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/Widgets/NumLabel.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  Widgets_NumLabelvue_type_script_lang_js,
  NumLabelvue_type_template_id_1e27a946_scoped_true/* render */.XX,
  NumLabelvue_type_template_id_1e27a946_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "1e27a946",
  null
  
)

/* harmony default export */ const NumLabel = (component.exports);

/***/ }),

/***/ 98503:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _vm._m(0);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-column gwd-align bjg-mini-program-qr"
  }, [_c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      "margin-top": "23px",
      height: "16px"
    }
  }, [_c("div", {
    staticClass: "bjg-line"
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "font-size": "12px",
      color: "#999"
    }
  }, [_vm._v("比价狗省钱助手")]), _vm._v(" "), _c("div", {
    staticClass: "bjg-line"
  })]), _vm._v(" "), _c("img", {
    staticStyle: {
      "margin-top": "12px",
      width: "96px",
      height: "96px"
    },
    attrs: {
      src: "https://cdn.bijiago.com/images/extensions/bijiago/qr-miniprogram.jpg",
      alt: ""
    }
  }), _vm._v(" "), _c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      "margin-top": "12px",
      "line-height": "16px",
      height: "16px"
    }
  }, [_c("img", {
    attrs: {
      src: __webpack_require__(97375),
      alt: ""
    }
  }), _vm._v(" "), _c("span", {
    staticStyle: {
      "font-size": "12px",
      color: "#333",
      "margin-left": "3px",
      "margin-right": "3px"
    }
  }, [_vm._v("微信扫码使用")]), _vm._v(" "), _c("img", {
    staticStyle: {
      transform: "rotate(180deg)"
    },
    attrs: {
      src: __webpack_require__(97375),
      alt: ""
    }
  })]), _vm._v(" "), _c("span", {
    staticStyle: {
      "font-size": "12px",
      color: "#333",
      "font-weight": "bold",
      "margin-top": "3px",
      "line-height": "16px"
    }
  }, [_vm._v("买京东商品，都省钱")])]);
}];
render._withStripped = true;

/***/ }),

/***/ 98522:
/***/ ((__unused_webpack_module, exports) => {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = ({
  value: true
});
exports.Yp = exports.XX = void 0;
var render = exports.XX = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-column gwd-collection-comp gwd-align",
    style: `width: ${_vm.haitao ? 340 : 330}px; height: 100%; padding: 10px; box-sizing: border-box`
  }, [_c("div", {
    staticClass: "gwd-price-head",
    staticStyle: {
      "font-weight": "bold",
      "font-size": "14px",
      width: "100%"
    }
  }, [_c("div", {
    staticClass: "gwd-head-item now-pri-div"
  }, [_c("span", {
    staticClass: "gwd-re-strong gwd-blkcolor1"
  }, [_vm._v("当前价格：")]), _vm._v(" "), _c("span", {
    staticClass: "gwd-red-price"
  }, [_vm._v(_vm._s(_vm.trend.money) + _vm._s(_vm.trend.nowPrice))])]), _vm._v(" "), _c("div", {
    staticClass: "gwd-head-item his-pri-div",
    staticStyle: {
      "margin-top": "5px"
    }
  }, [_c("span", {
    staticClass: "gwd-re-strong gwd-blkcolor1"
  }, [_vm._v("历史价格：")]), _vm._v(" "), _c("span", {
    staticClass: "gwd-re-price-num gwd-blkcolor1 gwd-prifontf"
  }, [_vm._v(_vm._s(_vm.trend.money) + _vm._s(_vm.trend.priceRange))])])]), _vm._v(" "), _vm.user.login && _vm.settedNotifySite !== null ? _c("div", {
    staticClass: "gwd-row",
    staticStyle: {
      position: "absolute",
      top: "5px",
      left: "0",
      right: "10px"
    }
  }, [_c("div", {
    staticStyle: {
      flex: "1"
    }
  }), _vm._v(" "), _c("button", {
    staticClass: "gwd-button gwd-btn-del"
  }, [_c("span", {
    staticClass: "gwd-font11",
    staticStyle: {
      "transform-origin": "center center",
      "z-index": "2",
      position: "relative"
    },
    on: {
      click: function ($event) {
        return _vm.cancel();
      }
    }
  }, [_vm._v("取消提醒")])])]) : _vm._e(), _vm._v(" "), _vm.user.login ? _c("div", {
    staticClass: "gwd-column gwd-collection-detail",
    class: {
      "gwd-ht": _vm.haitao
    },
    staticStyle: {
      flex: "1"
    }
  }, [_c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      "margin-top": "13px"
    }
  }, [_c("div", {
    staticClass: "gwd-column",
    staticStyle: {
      flex: "1",
      position: "relative"
    }
  }, [_c("div", {
    staticClass: "gwd-container gwd-column",
    class: {
      "gwd-ht": _vm.haitao
    },
    staticStyle: {
      "justify-content": "space-between"
    }
  }, [_c("div", {
    staticClass: "gwd-row gwd-align gwd-remind-option"
  }, [_c("span", [_vm._v("当价格低于")]), _vm._v(" "), _c("PriceInput", {
    staticStyle: {
      width: "120px"
    },
    attrs: {
      currency: _vm.currency
    },
    model: {
      value: _vm.currentPrice,
      callback: function ($$v) {
        _vm.currentPrice = $$v;
      },
      expression: "currentPrice"
    }
  }), _vm._v(" "), _c("span", [_vm._v("时提醒我")])], 1)]), _vm._v(" "), _c("div", {
    staticClass: "gwd-container gwd-row gwd-align",
    staticStyle: {
      "margin-top": "8px"
    },
    style: {
      visibility: _vm.priceRemind.showMPromo ? "visible" : "hidden"
    }
  }, [_vm._m(0), _vm._v(" "), _c("SwitchBtn", {
    attrs: {
      allowAnimation: _vm.allowAnimation
    },
    model: {
      value: _vm.mPromo,
      callback: function ($$v) {
        _vm.mPromo = $$v;
      },
      expression: "mPromo"
    }
  })], 1)])]), _vm._v(" "), _c("div", {
    staticStyle: {
      "margin-top": "47px",
      width: "100%",
      "text-align": "center"
    }
  }, [_c("button", {
    staticClass: "gwd-btn-submit gwd-button",
    on: {
      click: _vm.submit
    }
  }, [_vm._v("提交")])]), _vm._v(" "), _vm.errorText ? _c("div", {
    staticClass: "gwd-remind-error-text",
    class: {
      "gwd-fadeout-5s": _vm.errorFadeClass
    }
  }, [_vm._v("\n        " + _vm._s(_vm.errorText) + "\n      ")]) : _vm._e(), _vm._v(" "), _vm.hintText ? _c("div", {
    staticClass: "gwd-remind-hint-text",
    class: {
      "gwd-fadeout-5s": _vm.hintFadeClass
    }
  }, [_vm._v("\n        " + _vm._s(_vm.hintText) + "\n      ")]) : _vm._e(), _vm._v(" "), _vm.user.wxQr ? _c("div", {
    staticClass: "gwd-remind-qr",
    staticStyle: {
      clear: "both",
      "text-align": "center",
      top: "10px",
      position: "relative"
    }
  }, [_vm._m(1), _vm._v(" "), _c("div", {
    staticStyle: {
      "text-align": "justify"
    },
    attrs: {
      id: "gwd-remind-qrcode_img"
    }
  }, [_c("img", {
    attrs: {
      src: _vm.user.wxQr,
      alt: "二维码"
    }
  }), _vm._v(" "), _c("p", [_vm._v("购物党提醒")])])]) : _vm._e()]) : _vm._e(), _vm._v(" "), !_vm.user.login ? _c("div", {
    staticClass: "gwd-row gwd-align",
    staticStyle: {
      flex: "1",
      width: "100%"
    }
  }, [_c("CommonLogin", {
    staticStyle: {
      flex: "1"
    },
    attrs: {
      position: "gwd-trend-top",
      "show-alter-login": "true",
      "alter-login-position": "row"
    }
  })], 1) : _vm._e()]);
};
var staticRenderFns = exports.Yp = [function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "gwd-column",
    staticStyle: {
      flex: "1",
      "align-items": "flex-start"
    }
  }, [_c("span", {
    staticStyle: {
      color: "#404547",
      "font-size": "13px",
      "line-height": "18px"
    }
  }, [_vm._v("多件优惠时提醒我")]), _vm._v(" "), _c("span", {
    staticClass: "gwd-font11",
    staticStyle: {
      "transform-origin": "left center",
      color: "#999999",
      "line-height": "14px"
    }
  }, [_vm._v("同一商品，购买多件才能享受优惠")])]);
}, function () {
  var _vm = this,
    _c = _vm._self._c;
  return _c("span", {
    staticClass: "gwd-font12"
  }, [_vm._v("为了更好接收降价提醒，请您及时"), _c("span", {
    staticStyle: {
      color: "#48befe"
    },
    attrs: {
      id: "gwd-remind-qrcode",
      "data-spm-anchor-id": "2013.1.0.i5.44ae3fa7NIPzzq"
    }
  }, [_vm._v("扫码绑定微信")])]);
}];
render._withStripped = true;

/***/ }),

/***/ 98671:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ AmazonSameLinksvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ AmazonSameLinks)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/AmazonSameLinks.vue?vue&type=template&id=cd1584e4&scoped=true
var AmazonSameLinksvue_type_template_id_cd1584e4_scoped_true = __webpack_require__(81518);
;// ./src/standard/module/components/AmazonSameLinks.vue?vue&type=template&id=cd1584e4&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/AmazonSameLinks.vue?vue&type=script&lang=js
var AmazonSameLinksvue_type_script_lang_js = __webpack_require__(7804);
;// ./src/standard/module/components/AmazonSameLinks.vue?vue&type=script&lang=js
 /* harmony default export */ const components_AmazonSameLinksvue_type_script_lang_js = (AmazonSameLinksvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/AmazonSameLinks.vue?vue&type=style&index=0&id=cd1584e4&prod&scoped=true&lang=less
var AmazonSameLinksvue_type_style_index_0_id_cd1584e4_prod_scoped_true_lang_less = __webpack_require__(666);
;// ./src/standard/module/components/AmazonSameLinks.vue?vue&type=style&index=0&id=cd1584e4&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/AmazonSameLinks.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  components_AmazonSameLinksvue_type_script_lang_js,
  AmazonSameLinksvue_type_template_id_cd1584e4_scoped_true/* render */.XX,
  AmazonSameLinksvue_type_template_id_cd1584e4_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "cd1584e4",
  null
  
)

/* harmony default export */ const AmazonSameLinks = (component.exports);

/***/ }),

/***/ 99174:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-coupon-color-bg {\n  position: absolute;\n  z-index: 0;\n  background-size: contain;\n}\n.gwd-coupon-color-bg.gwd-tl {\n  top: 0;\n  left: 0;\n  width: 30px;\n  height: 28px;\n  background-image: url(https://cdn.gwdang.com/images/extensions/coupon-tl-bg@2x.png);\n}\n.gwd-coupon-color-bg.gwd-br {\n  bottom: 0;\n  right: 49px;\n  width: 46px;\n  height: 23px;\n  background-image: url(https://cdn.gwdang.com/images/extensions/coupon-br-bg@2x.png);\n}\n.gwd-butie .gwd-coupon-color-bg.gwd-tl {\n  background-image: url(https://cdn.gwdang.com/images/extensions/bt-tl-bg@2x.png);\n}\n.gwd-butie .gwd-coupon-color-bg.gwd-br {\n  background-image: url(https://cdn.gwdang.com/images/extensions/bt-br-bg@2x.png);\n}\n", ""]);

// exports


/***/ }),

/***/ 99230:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  __esModule: () => (/* reexport */ Switchvue_type_script_lang_js/* __esModule */.B),
  "default": () => (/* binding */ Switch)
});

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Controls/Switch.vue?vue&type=template&id=ea7ea5c4&scoped=true
var Switchvue_type_template_id_ea7ea5c4_scoped_true = __webpack_require__(68463);
;// ./src/standard/module/components/Controls/Switch.vue?vue&type=template&id=ea7ea5c4&scoped=true

// EXTERNAL MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-3.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Controls/Switch.vue?vue&type=script&lang=js
var Switchvue_type_script_lang_js = __webpack_require__(91604);
;// ./src/standard/module/components/Controls/Switch.vue?vue&type=script&lang=js
 /* harmony default export */ const Controls_Switchvue_type_script_lang_js = (Switchvue_type_script_lang_js/* default */.A); 
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/standard/module/components/Controls/Switch.vue?vue&type=style&index=0&id=ea7ea5c4&prod&scoped=true&lang=less
var Switchvue_type_style_index_0_id_ea7ea5c4_prod_scoped_true_lang_less = __webpack_require__(51373);
;// ./src/standard/module/components/Controls/Switch.vue?vue&type=style&index=0&id=ea7ea5c4&prod&scoped=true&lang=less

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(14486);
;// ./src/standard/module/components/Controls/Switch.vue



;


/* normalize component */

var component = (0,componentNormalizer/* default */.A)(
  Controls_Switchvue_type_script_lang_js,
  Switchvue_type_template_id_ea7ea5c4_scoped_true/* render */.XX,
  Switchvue_type_template_id_ea7ea5c4_scoped_true/* staticRenderFns */.Yp,
  false,
  null,
  "ea7ea5c4",
  null
  
)

/* harmony default export */ const Switch = (component.exports);

/***/ }),

/***/ 99495:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


__webpack_require__(26910);
const request = __webpack_require__(49388);
const parseprice = __webpack_require__(86421);
const template = __webpack_require__(26133);
const userData = __webpack_require__(74222);
const log = __webpack_require__(35743);
const golbal2 = __webpack_require__(7053);
const go_union = __webpack_require__(71363);
let runed;
let amazonName = {
  '1': '中国',
  '228': '美国',
  '229': '日本',
  '246': '德国',
  '266': '英国',
  '365': '法国',
  '366': '加拿大'
};
let amazonCurrency = {
  '228': 'USD',
  '229': 'JPY',
  '246': 'EUR',
  '266': 'GBP',
  '365': 'EUR',
  '366': 'CAD'
};
let amazonMoney = {
  '1': '¥',
  '228': '$',
  '229': '円',
  '246': 'EUR',
  '266': '£',
  '365': 'EUR',
  '366': 'CDN$'
};
let amazonTab = `#${G.extName}-amazon-dp`;
let amazonDetail = `#${G.extName}-amazon-dp-detail`;
const reqInfo = (dp_id, callback) => {
  let url = `${G.server}/extension?ac=amazonGlobal&dp_id=${dp_id}`;
  request.get(url).done(data => {
    if (data && data.length > 0) {
      callback(data);
    }
  });
};
const editData = data => {
  for (let i = 0, len = data.length; i < len; i++) {
    let site_id = data[i].dp_id.split('-')[1];
    if (data[i].nowpage === '1') data[i].siteName = amazonName[site_id] + '亚马逊(当前商城)';else data[i].siteName = amazonName[site_id] + '亚马逊';
    let price = (Number(data[i].pri) / 100).toFixed(2);
    let purePrice = '';
    if (site_id !== "1") {
      let price2 = '';
      if (site_id === '229') price2 = price + amazonMoney[site_id];else price2 = amazonMoney[site_id] + price;
      purePrice = parseprice(price, amazonCurrency[site_id]);
      price = '¥' + purePrice + `(${price2})`;
    } else {
      purePrice = price;
      price = '¥' + price;
    }
    data[i].title = data[i].tle;
    data[i].img_url = data[i].img;
    data[i].site_name = '中国亚马逊';
    data[i].fee = '不同卖家运费不同';
    var obj = {
      'site_id': site_id,
      'url': data[i].url,
      'mod': 'amazon_global',
      'union': G.union.split('_')[1],
      'dp_id': data[i].dp_id
    };
    data[i].url = go_union.init(obj);
    data[i].price = price;
    data[i].purePrice = purePrice;
  }
  data.sort(function (value1, value2) {
    return Number(value1.purePrice) - Number(value2.purePrice);
  });
  return data;
};
const render = data => {
  data = editData(data);
  let permanent = userData.get('permanent');
  if (permanent.style === 'top') {
    renderBtnTop(data[0].pri);
    renderTopDetail(data);
  }
  renderInner(data);
  addEvent();
};
const renderBtnTop = pri => {
  let price = Number(pri) / 100;
  let html = __webpack_require__(18112);
  $('#amazon_compare').append(template.compile(html)({
    store_tle: "亚马逊海外购：",
    min_price: price
  })).show();
};
const addEvent = () => {
  let Time1;
  $(amazonTab).on('mouseenter', () => {
    $(amazonDetail).addClass(`_mshover`);
    $(amazonTab).addClass('_mshover');
    log('track:amazon_global:mshover');
  });
  $(amazonTab).on('mouseleave', () => {
    Time1 = setTimeout(() => {
      $(amazonDetail).removeClass(`_mshover`);
      $(amazonTab).removeClass(`_mshover`);
    }, 200);
  });
  $(amazonDetail).on('mouseenter', () => {
    clearTimeout(Time1);
    $(amazonDetail).addClass('_mshover');
    $(amazonTab).addClass('_mshover');
  });
  $(amazonDetail).on('mouseleave', () => {
    $(amazonDetail).removeClass('_mshover');
    $(amazonTab).removeClass('_mshover');
  });
  $('#amazon_dp-item-list li').on('click', () => {
    log('track:amazon_global:click');
  });
};
const renderTopDetail = data => {
  if (runed) {
    $(`#amazon_compare`).find('.top-compare-detail').show();
    return;
  }
  runed = true;
  let html = __webpack_require__(92557);
  let dom = template.compile(html)({
    data: {
      product: data,
      imgLoad: G.imgLoad
    },
    pages: 1
  });
  $(`#amazon_compare`).append(dom);
  golbal2.loadImg(0, data.length, $(`#amazon-item-list li .small-img img`));
  log('track:amazon_global:track');
};
let times = 0;
const renderInner = data => {
  let product = data[0];
  if (!product) return;
  let html = __webpack_require__(21052);
  let dom = $('#gwd_ht_main .ht_head');
  if (dom.length === 0 && times < 15) {
    times++;
    setTimeout(function () {
      renderInner(data);
    }, 800);
    return;
  }
  let view = template.compile(html)({
    data: product
  });
  dom.append(view);
  $('#amazon_global_box').append(view).show();
  log('track:amazon_global_inner:track');
  $('#amazon_global').on('click', () => {
    log('track:amazon_global_inner:click');
  });
  renderInnerDetail(data);
};
const renderInnerDetail = data => {
  let html = __webpack_require__(39851);
  let dom = template.compile(html)({
    data: data[0]
  });
  // $('#gwd_ht_main .ht_content').append(dom);
  $('#amazon_global_box').append(dom);
  $('#amazon_global').on('mouseenter', () => {
    let dom = $('#globalInnerDetail');
    if (!dom.is(':visible')) {
      $('.content_default').hide();
      dom.show();
    }
  });
  $('#gwd_minibar').addClass('hasglobal');
  $('#globalInnerDetail .content_default_left a').on('click', function () {
    log('track:amazon_global_inner_detail:click');
  });
};
module.exports.renderTopDetail = renderTopDetail;
module.exports.init = dp_id => {
  if (location.host.indexOf('amazon') === -1) return;
  // 暂时屏蔽中国亚马逊 以为只展示中国亚马逊的商品
  if (location.host.indexOf('.cn') > -1) return;
  reqInfo(dp_id, render);
};

/***/ }),

/***/ 99545:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/* provided dependency */ var G = __webpack_require__(53558);
/* provided dependency */ var $ = __webpack_require__(10333);


// 某些网站单品页的元素会被工具条遮挡,因此需要修改网站css

const appendCss = function (styleText) {
  let style = document.createElement('style');
  style.type = 'text/css';
  style.innerHTML = styleText;
  document.getElementsByTagName('head')[0].appendChild(style);
};
let toolbarHeight = 37;
if (G.site === '360buy' && $('.information-wrap').length) {
  toolbarHeight = 21;
}
const increaseTop = elementSelector => {
  // .gwd_unfold类是顶部工具条展开的情况
  appendCss(`
        .gwd_unfold ${elementSelector} {
            top: ${toolbarHeight}px!important;
        }
     `);
};
module.exports = function () {
  if (location.hostname === 'item.taobao.com') {
    increaseTop('.tb-tabbar-wrap-sticky');
  }
  if (location.hostname === 'detail.tmall.com') {
    increaseTop('#J_TabBarBox');
    increaseTop('.tm-floatcart-link');
    increaseTop('.hook-float');
    increaseTop('#side-shop-info .shop-intro-float');
  }
  if (location.hostname === 'item.jd.com') {
    increaseTop('.pro-detail-hd-fixed-div');
    increaseTop('.popbox .popbox-inner.pro-detail-hd-fixed');
    increaseTop('#detail .tab-main.pro-detail-hd-fixed');

    // 京东单品页的tabItem点击后会滚动到上面去，导致取消悬浮效果
    $('.tab-main ul li').on('click', function () {
      setTimeout(() => {
        if ($(document).scrollTop() > 1260) {
          $(document).scrollTop($(document).scrollTop() + 3);
        }
      }, 300);
    });
  }
  if (location.hostname === 'product.suning.com') {
    increaseTop('.fixbar');
  }
  if (location.hostname === 'product.dangdang.com') {
    increaseTop('.product_content .t_box .tab_panel_fixed');
  }
  if (location.hostname === 'www.vmall.com') {
    increaseTop('.product-tab-top');
  }
  if (location.hostname === 'item.mi.com') {
    increaseTop('.xm-product-box.nav-bar-hidden.nav_fix');
  }
  if (location.hostname === 'www.adidas.com.cn') {
    increaseTop('.page-header-new');
    $('body').css('padding-top', `${toolbarHeight}px`);
  }
};

/***/ }),

/***/ 99590:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";

var toIntegerOrInfinity = __webpack_require__(91291);

var $RangeError = RangeError;

module.exports = function (it) {
  var result = toIntegerOrInfinity(it);
  if (result < 0) throw new $RangeError("The argument can't be less than 0");
  return result;
};


/***/ }),

/***/ 99759:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(58602);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("2f4a1026", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ }),

/***/ 99784:
/***/ ((module, exports, __webpack_require__) => {

exports = module.exports = __webpack_require__(54765)();
// imports


// module
exports.push([module.id, ".gwd-folded[data-v-36e11cc6] {\n  margin-left: -64px;\n}\n.gwd-side-bar[data-v-36e11cc6] {\n  position: fixed;\n  top: 50%;\n  left: 0;\n  transform: translateY(-127px);\n  z-index: 1000;\n  box-shadow: 0px 0px 16px 0px rgba(50, 85, 104, 0.2);\n  border-radius: 0px 12px 12px 0px;\n  background: white;\n  font-family: PingFang SC, Microsoft YaHei, Arial, sans-serif;\n}\n.gwd-side-bar .gwd-side-bar-app-list[data-v-36e11cc6] {\n  padding: 12px 4px;\n  background: white;\n  box-sizing: border-box;\n  width: 64px;\n  border-radius: 0px 12px 12px 0px;\n  gap: 4px;\n}\n.gwd-side-bar .gwd-side-bar-app-list > div[data-v-36e11cc6],\n.gwd-side-bar .gwd-side-bar-app-list a[data-v-36e11cc6] {\n  background: white;\n}\n.gwd-side-bar .gwd-side-bar-app-list > div[data-v-36e11cc6]:hover,\n.gwd-side-bar .gwd-side-bar-app-list a[data-v-36e11cc6]:hover {\n  background: #f5f6fa;\n}\n.gwd-side-bar .gwd-side-bar-expand-btn[data-v-36e11cc6] {\n  position: absolute;\n  top: 33%;\n  right: -20px;\n  transform: translateY(-50%);\n  padding: 0;\n  width: 24px;\n  height: 24px;\n  border: none;\n  background: white;\n  border-radius: 0px 12px 12px 0px;\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n}\n.gwd-side-bar .gwd-side-bar-expand-btn img[data-v-36e11cc6] {\n  margin-left: 7px;\n}\n.gwd-side-bar .gwd-side-bar-expand-btn[data-v-36e11cc6]::after {\n  content: '';\n  position: absolute;\n  top: 0;\n  left: -2px;\n  width: 6px;\n  height: 100%;\n  background: white;\n  display: block;\n}\n", ""]);

// exports


/***/ }),

/***/ 99899:
/***/ ((module) => {

function BitBuffer () {
  this.buffer = []
  this.length = 0
}

BitBuffer.prototype = {

  get: function (index) {
    const bufIndex = Math.floor(index / 8)
    return ((this.buffer[bufIndex] >>> (7 - index % 8)) & 1) === 1
  },

  put: function (num, length) {
    for (let i = 0; i < length; i++) {
      this.putBit(((num >>> (length - i - 1)) & 1) === 1)
    }
  },

  getLengthInBits: function () {
    return this.length
  },

  putBit: function (bit) {
    const bufIndex = Math.floor(this.length / 8)
    if (this.buffer.length <= bufIndex) {
      this.buffer.push(0)
    }

    if (bit) {
      this.buffer[bufIndex] |= (0x80 >>> (this.length % 8))
    }

    this.length++
  }
}

module.exports = BitBuffer


/***/ }),

/***/ 99937:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(65952);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.id, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = (__webpack_require__(70534)/* ["default"] */ .A)
var update = add("4a472027", content, false, {});
// Hot Module Replacement
if(false) {}

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			id: moduleId,
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/amd options */
/******/ 	(() => {
/******/ 		__webpack_require__.amdO = {};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	(() => {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = (module) => {
/******/ 			var getter = module && module.__esModule ?
/******/ 				() => (module['default']) :
/******/ 				() => (module);
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	(() => {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = (exports, definition) => {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = (exports) => {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/publicPath */
/******/ 	(() => {
/******/ 		__webpack_require__.p = "https://cdn.gwdang.com/";
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/nonce */
/******/ 	(() => {
/******/ 		__webpack_require__.nc = undefined;
/******/ 	})();
/******/ 	
/************************************************************************/
var __webpack_exports__ = {};
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
(() => {
"use strict";
/* provided dependency */ var Vue = __webpack_require__(85471)["Ay"];
/* provided dependency */ var $ = __webpack_require__(10333);
/* provided dependency */ var G = __webpack_require__(53558);


__webpack_require__(3362);
__webpack_require__(12041);
//window.TShop.onProduct(e => {console.log(e.get('config').valItemInfo)})
const request = __webpack_require__(49388);
const cnzz = __webpack_require__(5300);
__webpack_require__(58531);
(function () {
  'use strict';

  // skip cloudflare
  if (location.host.includes('cloudflare')) return;
  if (location.hostname.endsWith('.gwdang.com')) {
    __webpack_require__(22795);
  }
  if (document.getElementById('gwd-setting-page') && location.protocol === 'chrome-extension:') {
    (__webpack_require__(72073).init)();
    return;
  }
  const Vuex = __webpack_require__(95353);
  Vue.use(Vuex);
  (__webpack_require__(7129).log)('chrome.js');
  const communicate = __webpack_require__(79560);
  window.disable_gwd_privacy = function () {
    communicate.trigger({
      type: 'disable_gwd_privacy'
    });
  };
  window.enable_gwd_privacy = function () {
    communicate.trigger({
      type: 'enable_gwd_privacy'
    });
  };
  if (location.href.indexOf('plogin.m.jd.com') > -1) {
    // require('common/touch').init()
  }
  if (location.href.includes('221.122.98.229:8000')) {
    (__webpack_require__(40076).get)('/getStorage', {
      key: 'rateProduct'
    }).then(res => {
      console.log('rateProduct', res);
      $('#data').val(JSON.stringify(res));
    });
  }
  window.trueLog = console.log;
  __webpack_require__(21992);
  (__webpack_require__(92834).init)();
  G.allowBackgroundRequest = true;
  var cnzz = __webpack_require__(5300);
  if (cnzz) cnzz.init(G.gwd_cnzz);
  (__webpack_require__(21770)/* .init */ .T)();
  window.tbDetailRequest = id => {
    const exParams = {
      id: id,
      queryParams: `id=${id}`
    };
    const payload = {
      id: id,
      detail_v: '3.3.2',
      exParams: JSON.stringify(exParams)
    };
    const toRequest = {
      AntiCreep: true,
      AntiFlood: true,
      api: 'mtop.taobao.pcdetail.data.get',
      data: JSON.stringify(payload),
      dataType: 'jsonp',
      ecode: '0',
      isSec: '0',
      preventFallback: true,
      timeout: 10000,
      ttid: '2022@taobao_litepc_9.17.0',
      type: 'get',
      v: '1.0'
    };
    return window.lib.mtop.request(toRequest);
  };
  if (location.host === 'm.fine3q.com') (__webpack_require__(94226).init)();
  (__webpack_require__(7129).log)(G.pageInfo);
  (__webpack_require__(35580).init)();
  if (location.hostname.includes('trade.jd.com') || location.hostname.includes('checkout.vip.com')) {
    G.pageInfo.type = 1;
  }
  if (location.host === 'pro.m.jd.com' || location.host === 'pro.jd.com' || location.host === 'prodev.m.jd.com' || location.host === 'prodev.jd.com') {
    // require('common/jdActivityQr').init()
  }
  if (location.host === 'h5.m.taobao.com' || location.host === 'main.m.taobao.com') {
    // require('common/tbActivityQr').init()
  }
  if (G.pageInfo.type === 0) return;
  // require('common/logInfo').init()
  //hao123和百度域名全部不加载任何内容
  (__webpack_require__(76118).init)();
  if (__webpack_require__(27207)()) return;
  // require('common/firstVisit').init(() => {
  //判断是否为重复加载，如果为重复加载，直接结束脚本
  if (__webpack_require__(84309)) return;
  __webpack_require__(9844);
  G.logoName = __webpack_require__(27252)(8);
  //require('standard/module/tbRank').init()
  (__webpack_require__(86421).getRate)(() => {
    (__webpack_require__(32752).common)(data => {
      if (data && data.result.address.indexOf('北京') > -1) {
        G.forbidGiftMoney = true;
      }
      request.rawGet('https://cdn.gwdang.com/js/configs/gwdang.json?v=6', true, 30000).then(async t => {
        if (G.aliSite && !$('#root').length) {
          await (__webpack_require__(30888).waitForConditionFn)(() => $('#ice-container > div').length);
          const className = $('#ice-container > div').attr('class');
          const prefix = className.split('--')[0];
          G.aliPrefix = prefix;
        }
        const r = JSON.parse(JSON.stringify(t).replaceAll('QJEEHAN8H5', G.aliPrefix));
        (__webpack_require__(41761).setMet)('GwdConfig', r);
        window.gwd_G = G;
        window.gwd_G.GwdConfig = r;
      }).catch(e => {
        console.error(e);
        debugger;
      });
      (__webpack_require__(12826).get)(() => {
        G.clientImgSame = true;
        (__webpack_require__(29340).init)();
      });
    });
  });
  // })
})();
})();

/******/ })()
;