(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
  [3126],
  {
    12005: function (n, t, e) {
      "use strict";
      e.d(t, {
        QO: function () {
          return z;
        },
        zp: function () {
          return na;
        },
        Nb: function () {
          return W;
        },
        Kk: function () {
          return function n(t, e) {
            var o = t.parentNode;
            return o
              ? o.classList.contains(e)
                ? o
                : "BODY" === o.tagName
                ? null
                : n(o, e)
              : null;
          };
        },
        HK: function () {
          return F;
        },
        iz: function () {
          return D;
        },
        eN: function () {
          return j;
        },
        LT: function () {
          return nc;
        },
        eS: function () {
          return ni;
        },
        A2: function () {
          return R;
        },
        Lc: function () {
          return M;
        },
        U4: function () {
          return U;
        },
        mX: function () {
          return J;
        },
        w4: function () {
          return X;
        },
        ig: function () {
          return L;
        },
        Zd: function () {
          return O;
        },
        Ky: function () {
          return P;
        },
        cx: function () {
          return k;
        },
        oD: function () {
          return V;
        },
        Qq: function () {
          return Q;
        },
        ZR: function () {
          return x;
        },
        XT: function () {
          return E;
        },
        pH: function () {
          return G;
        },
        w1: function () {
          return N;
        },
        tC: function () {
          return H;
        },
        Yo: function () {
          return Y;
        },
        Go: function () {
          return I;
        },
        NN: function () {
          return ne;
        },
        b1: function () {
          return nr;
        },
        V1: function () {
          return K;
        },
        PB: function () {
          return nn;
        },
        Sw: function () {
          return B;
        },
        z: function () {
          return q;
        },
        QU: function () {
          return C;
        },
        mx: function () {
          return S;
        },
      });
      var o = e(57135),
        r = e(72006),
        c = e(4405),
        i = e(59072),
        a = e(9970),
        u = e(96583),
        s = e(41934),
        l = e(96131),
        d = e(1753),
        p = e(47147),
        m = e(42369),
        f = e(75239),
        v = e(88576),
        h = e(88929),
        b = e(57473),
        g = e(93881),
        y = e.n(g),
        w = e(56719),
        A = e.n(w),
        T = e(48522),
        _ = function (n, t) {
          if (
            !t ||
            ((t = t.toUpperCase()),
            /^\d{6}\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}$/.test(t))
          )
            return Promise.resolve();
          if (
            !/^\d{6}(18|19|20)\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(
              t
            ) ||
            !{
              11: "北京",
              12: "天津",
              13: "河北",
              14: "山西",
              15: "内蒙古",
              21: "辽宁",
              22: "吉林",
              23: "黑龙江 ",
              31: "上海",
              32: "江苏",
              33: "浙江",
              34: "安徽",
              35: "福建",
              36: "江西",
              37: "山东",
              41: "河南",
              42: "湖北",
              43: "湖南",
              44: "广东",
              45: "广西",
              46: "海南",
              50: "重庆",
              51: "四川",
              52: "贵州",
              53: "云南",
              54: "西藏 ",
              61: "陕西",
              62: "甘肃",
              63: "青海",
              64: "宁夏",
              65: "新疆",
              71: "台湾",
              81: "香港",
              82: "澳门",
              91: "国外 ",
            }[t.substring(0, 2)]
          )
            return Promise.reject(Error("请输入正确的身份证号"));
          if (18 === t.length) {
            for (
              var e = t[17],
                o = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2],
                r = 0,
                c = 0;
              c < 17;
              c++
            )
              r += Number(t[c]) * o[c];
            return e ===
              ["1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2"][r % 11]
              ? Promise.resolve()
              : Promise.reject(Error("请输入正确的身"));
          }
          return Promise.resolve();
        },
        k = function () {
          return document.documentElement.scrollTop || document.body.scrollTop;
        },
        C = function (n) {
          (document.documentElement.scrollTop = n),
            (document.body.scrollTop = n);
        };
      function U(n) {
        return k() + n.getBoundingClientRect().top;
      }
      function O() {
        var n = (0, s.BW)(T.q).isProdOnline ? h.ZE.online : h.ZE.sandbox;
        return ""
          .concat(n, "?redirect=")
          .concat(
            encodeURIComponent(location.href.replace(location.hash, "")) +
              location.hash
          );
      }
      function P() {
        var n = (0, s.BW)(T.q).isProdOnline ? h.vY.online : h.vY.sandbox;
        return ""
          .concat(n, "?redirect=")
          .concat(
            encodeURIComponent(location.href.replace(location.hash, "")) +
              location.hash
          );
      }
      function x() {
        var n = location.host.includes("")
            ? "bce.baidu.com"
            : "bcetest.baidu.com",
          t = "//".concat(n, "/api/account/v2/displayName");
        return new Promise(function (n, e) {
          (0, d.R)(t, { timeout: 3e3 })
            .then(function (t) {
              t.success || e(t);
              var o = t && t.result;
              !0 !== o.hasLogin && e(t);
              var r = o.cookies,
                c = location.hostname;
              for (var i in (l.Z.remove("bce-sessionid", {
                path: "/",
                domain: c,
              }),
              r))
                if ("bce-sessionid" === i) {
                  var a = r["bce-sessionid"];
                  a &&
                    l.Z.set("bce-sessionid", a, {
                      path: "/",
                      domain: ".".concat(c),
                    });
                } else {
                  var u = r[i] || "";
                  l.Z.set(i, u, { path: "/", domain: ".".concat(c) });
                }
              n(t);
            })
            .catch(function (n) {
              return e(n);
            });
        });
      }
      function I(n) {
        return "others" === n ? "其它" : "其它" === n ? "others" : n;
      }
      var S = function (n) {
        var t =
          arguments.length > 1 && void 0 !== arguments[1]
            ? arguments[1]
            : "wx2e48c7f781c8f283";
        f.y
          .post(v.N.GET_WX_SHARE, {
            appId: t,
            url: encodeURIComponent(window.location.href.split("#")[0]),
          })
          .then(function (t) {
            (0, m.wxSdkLoad)({
              appId: t.result.appId,
              timestamp: t.result.timestamp,
              nonceStr: t.result.nonceStr,
              signature: t.result.signature,
              shareInfo: {
                title: n.title || document.title,
                desc: n.desc,
                imgUrl:
                  n.img ||
                  "https://.png",
                link: location.href,
                success: function () {
                  console.info("微信sdk加载成功了");
                },
              },
            });
          })
          .catch(function (n) {
            console.info(n);
          });
      };
      function E() {
        var n = document.createElement("link");
        (n.href =
          "https://bce.bdstatic.com/developer-static/dep/editor.md/css/editormd.css"),
          (n.rel = "stylesheet"),
          document.head.appendChild(n);
      }
      function N() {
        return (
          !!(0, s.BW)(T.q).isClient &&
          (!!window.ActiveXObject || "ActiveXObject" in window)
        );
      }
      var Z,
        R =
          ((Z = (0, o.Z)(function () {
            var n, t;
            return (0, u.__generator)(this, function (e) {
              switch (e.label) {
                case 0:
                  if (((n = window["paris_".concat(h.vw)]), (t = 600), !n))
                    return [2, t];
                  return [
                    4,
                    n.getAcsTokenWithAbcliteActiveReport(
                      { subid: "" },
                      function (n) {
                        t = n;
                      }
                    ),
                  ];
                case 1:
                  return e.sent(), [2, t];
              }
            });
          })),
          function () {
            return Z.apply(this, arguments);
          });
      function L(n) {
        return n <= 700 ? h.Um.wap : n <= 1220 ? h.Um.pcWrap : h.Um.pc;
      }
      var q = function (n) {
        window.require
          ? window.require(["monitor"], function (t) {
              t.default.trackBehavior(n);
            })
          : window.Monitor
          ? window.Monitor.default.trackBehavior(n)
          : setTimeout(function () {
              var t;
              null === (t = window.Monitor) ||
                void 0 === t ||
                t.default.trackBehavior(n);
            }, 500);
      };
      function z(n) {
        return new Promise(function (t, e) {
          new b.T(
            (0, c.Z)((0, r.Z)({}, n), {
              callback: function (e, o) {
                n.callback && n.callback(e, o), t(e);
              },
              errHandler: function (n) {
                e(n);
              },
            })
          );
        });
      }
      function W(n) {
        var t = { lt: "<", gt: ">", nbsp: " ", amp: "&", quot: '"' };
        return n.replace(/&(lt|gt|nbsp|amp|quot);/gi, function (n, e) {
          return t[e];
        });
      }
      function B(n) {
        return n.replace(h.t0, h.V0);
      }
      function H() {
        var n = document.createElement("script");
        (n.src = "///"),
          (n.async = !0),
          document.body.appendChild(n);
      }
      var j = function (n) {
          n.count = n.count || 1;
          var t = [
              "serviceType",
              "configId",
              "configGroupId",
              "region",
              "duration",
              "timeUnit",
              "count",
              "specs",
            ].reduce(function (t, e) {
              var o, r;
              return "specs" !== e
                ? "".concat(t).concat(n[e] || "")
                : null !==
                    (r =
                      null === (o = n[e]) || void 0 === o
                        ? void 0
                        : o.reduce(function (n, t) {
                            return ""
                              .concat(n)
                              .concat(t.name || "")
                              .concat(t.value || "")
                              .concat(t.scale || "");
                          }, t)) && void 0 !== r
                ? r
                : t;
            }, ""),
            e = (0, s.BW)(T.q).isProdOnline
              ? "07d92e84-7d59-46cf-84bf-e339b6d32e09"
              : "8b661235-ac07-478c-9b7d-a8ab463f8c89";
          return A().stringify(y()(t + e));
        },
        D = function () {
          return {
            18628: {
              content: "您不是百度智能云新用户，请领取其他代金券",
              okText: "确定",
              url: "",
            },
            18656: { content: "您已领取过优惠券", okText: "确定", url: "" },
            230: {
              content: "您还未完成实名，请完成实名认证后再参与活动",
              okText: "去实名",
              // url: "https://console.bce.baidu.com/iam/#/iam/user/overview",
            },
            209: {
              content: "您还未完成实名，请完成实名认证后再参与活动",
              okText: "去实名",
              // url: "https://console.bce.baidu.com/iam/#/iam/user/overview",
            },
            210: {
              content: "您还未完成实名，请完成实名认证后再参与活动",
              okText: "去实名",
              // url: "https://console.bce.baidu.com/iam/#/iam/user/overview",
            },
            211: {
              content: "您还未完成实名，请完成实名认证后再参与活动",
              okText: "去实名",
              // url: "https://console.bce.baidu.com/iam/#/iam/user/overview",
            },
            203: {
              content: "您还未完成实名，请完成实名认证后再参与活动",
              okText: "去实名",
              // url: "https://console.bce.baidu.com/iam/#/iam/user/overview",
            },
            226: {
              content: "您不是企业用户，请完成企业实名后再参与活动",
              okText: "去企业实名",
              // url: "https://console.bce.baidu.com/iam/#/iam/user/overview",
            },
            227: {
              content: "您不是个人用户，请完成个人实名后再参与活动",
              okText: "去个人实名",
              // url: "https://console.bce.baidu.com/iam/#/iam/user/overview",
            },
            201: {
              content: "您还未完成实名和激活，请激活并实名后再参与活动",
              okText: "去激活",
              // url: "https://console.bce.baidu.com/iam/#/iam/user/v2/activate~hideBar=1&redirect=".concat(
              //   encodeURIComponent(window.location.href)
              // ),
            },
          };
        },
        M = function (n) {
          var t, e, o;
          return "DISCOUNT_COUPON" === n.couponType
            ? {
                type: (
                  null == n
                    ? void 0
                    : null === (o = n.conditionArgsMap) || void 0 === o
                    ? void 0
                    : o.productTotalPrice
                )
                  ? "discount_limit"
                  : "discount",
                name: "预付费单订单通用券",
                isApportionmentAmount: !1,
              }
            : "CASH_COUPON" === n.couponType &&
              (null === (t = n.conditionArgsMap) || void 0 === t
                ? void 0
                : t.productTotalPrice)
            ? {
                type: "single_product_order_cash_full",
                name: "单产品单订单满减券",
                isApportionmentAmount: !0,
              }
            : "CASH_COUPON" === n.couponType &&
              (null == n
                ? void 0
                : null === (e = n.conditionArgsMap) || void 0 === e
                ? void 0
                : e.price)
            ? {
                type: "single_product_cash_full",
                name: "单订单满减券",
                isApportionmentAmount: !0,
              }
            : "CASH_COUPON" === n.couponType && null === n.conditionArgsMap
            ? { type: "common", name: "通用券", isApportionmentAmount: !0 }
            : {
                type: "other",
                name: n.conditionEffectDescription,
                isApportionmentAmount: !1,
              };
        };
      function X(n, t, e) {
        var o = (0, s.BW)(T.q).isProdOnline ? h.ye.online : h.ye.sandbox;
        return ""
          .concat(o, "?orderId=")
          .concat(n, "&succUrl=")
          .concat(t, "&failUrl=")
          .concat(e);
      }
      var Y = function (n) {
          var t =
              arguments.length > 1 && void 0 !== arguments[1]
                ? arguments[1]
                : "_blank",
            e = document.createElement("a");
          e.setAttribute("href", n),
            e.setAttribute("target", t),
            e.setAttribute("style", "display: none;"),
            document.body.appendChild(e),
            e.click(),
            e.parentNode.removeChild(e);
        },
        $ = null,
        G = function () {
          var n =
            !(arguments.length > 0) || void 0 === arguments[0] || arguments[0];
          n
            ? (document.body.classList.remove("header-body-no-scroll"),
              (document.body.style.top = null),
              (document.body.style.overflowY = null),
              $ && window.scrollTo({ top: $ }),
              ($ = null))
            : ($ || ($ = window.scrollY),
              document.body.classList.add("header-body-no-scroll"),
              (document.body.style.top = "-".concat($ || 0, "px")),
              document.body.scrollHeight > document.body.clientHeight &&
                (document.body.style.overflowY = "scroll"));
        };
      function J(n) {
        return window.innerWidth * (n / 750);
      }
      var K = function () {
          var n = window.localStorage.getItem("portalPageUrl"),
            t = ((n && JSON.parse(n)) || { prev: "" }).prev,
            e = location.href.replace(location.origin, "");
          location.replace(
            "/404.html?from="
              .concat(encodeURIComponent(t), "&target=")
              .concat(encodeURIComponent(e))
          );
        },
        Q = function (n) {
          var t =
            arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
          return (t && h.p_[n]) || n;
        },
        V = function () {
          var n =
            arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
          return {
            id: { validator: _, message: Q("身份证信息不正确", n) },
            mobile: {
              pattern: /^1[3|4|5|6|7|8|9][0-9]{9}$/,
              message: Q("请正确填写手机号码", n),
            },
            email: {
              pattern:
                /^([A-Za-z0-9_\-.])+@([A-Za-z0-9_\-.])+\.([A-Za-z]{2,4})$/,
              message: Q("请正确填写电子邮箱", n),
            },
            number: {
              pattern: /^[0-9]+\.{0,1}[0-9]{0,2}$/,
              message: Q("输入有误，请输入数字", n),
            },
            url: {
              pattern:
                /[-a-zA-Z0-9@:%._\\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)/,
              message: Q("输入的URL有误，请输入正确的URL地址", n),
            },
            letter: {
              pattern: /^[A-Za-z]+$/,
              message: Q("输入有误，请输入字母", n),
            },
          };
        },
        F = function (n) {
          var t = n.formData,
            e = n.pageData,
            o = {
              questions: Object.entries(t).map(function (n) {
                var t = (0, i.Z)(n, 2),
                  e = t[0],
                  o = t[1];
                return {
                  title: e,
                  answers: (0, p.kJ)(o)
                    ? o.map(function (n) {
                        return { answer: n };
                      })
                    : [{ answer: o }],
                };
              }),
              campaignId: e.serviceType,
            };
          return (
            e.needLogin && (o.pageId = e.pageId),
            e.path.includes("survey_summit") &&
              ((o.pageId = e.pageId), (o.needLogin = !!e.needLogin)),
            o
          );
        },
        nn = function (n, t) {
          var e,
            o = JSON.parse(
              localStorage.getItem("PORTAL_LATEST_PRODUCT") || "[]"
            ),
            r = [],
            c = [];
          return (
            null == n ||
              n.forEach(function (n) {
                if (r.length < t) {
                  if ("dynamic" === n.recommendType) {
                    var e,
                      i = new Set(o),
                      u = new Set(
                        (null === (e = n.recommendKey) || void 0 === e
                          ? void 0
                          : e.split(",").map(function (n) {
                              return n.toUpperCase();
                            })) || []
                      );
                    new Set(
                      (0, a.Z)(Array.from(i)).concat((0, a.Z)(Array.from(u)))
                    ).size <
                    i.size + u.size
                      ? r.push(n)
                      : c.push(n);
                  } else r.push(n);
                }
              }),
            r.length < t && r.push.apply(r, (0, a.Z)(c.slice(0, t - r.length))),
            r
          );
        },
        nt = ["", "cloudtest.baidu.com"],
        ne = function () {
          var n = new URLSearchParams(location.search).get("track"),
            t = location.pathname.startsWith("/doc/");
          nt.includes(location.host) &&
            (location.pathname.startsWith("/product/") ||
              location.pathname.startsWith("/campaign/") ||
              "/" === location.pathname ||
              t ||
              location.pathname.startsWith("/cloudlive/")) &&
            f.y.post(
              v.N.POST_PUSH_LEADS_TO_CRM,
              {
                sourcePath: t
                  ? location.pathname.split("/").slice(0, 3).join("/")
                  : location.pathname,
              },
              null,
              { headers: { track: n } }
            );
        },
        no = [
          "qifu.baidu.com",
          "qifu-sandbox.baidu-int.com",
          "tms.baidu.com",
          "tms.baidu-int.com",
        ],
        nr = function () {
          no.includes(location.host) &&
            f.y.post("/api/portal/leads", {
              sourcePath: location.origin + location.pathname,
            });
        },
        nc = function (n) {
          return f.y.get(v.N.GET_AI_ACCELERATE_JOIN_STATUS, { campaignId: n });
        };
      function ni(n, t, e) {
        return e[
          Object.keys(t).find(function (e) {
            return t[e].includes(n);
          }) || "serverErr"
        ];
      }
      var na = function (n) {
        var t = n.text,
          e = n.successCb,
          o = n.errorCb;
        if (navigator.clipboard) navigator.clipboard.writeText(t), e && e();
        else {
          var r = document.createElement("textarea");
          (r.value = t),
            (r.style.position = "absolute"),
            (r.style.opacity = "0"),
            (r.style.left = "-999999px"),
            (r.style.top = "-999999px"),
            document.body.appendChild(r),
            r.focus(),
            r.select(),
            document.execCommand("copy") ? e && e() : o && o(),
            r.remove();
        }
      };
    },
    86010: function () {},
  },
]);
