Advertisement
Samanta_Moen

Untitled

Jul 12th, 2023
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "use strict";(self.webpackChunkwht=self.webpackChunkwht||[]).push([
  2.     [
  3.         7342
  4.     ],
  5.     {
  6.         17342:function(t,r,e){e.d(r,
  7.             {rp:function(){return m
  8.                 },CT:function(){return _
  9.                 },Xc:function(){return v
  10.                 },ci:function(){return s
  11.                 },ym:function(){return u
  12.                 },oH:function(){return p
  13.                 },ir:function(){return I
  14.                 },mz:function(){return j
  15.                 },Kg:function(){return A
  16.                 },bt:function(){return F
  17.                 },Zk:function(){return y
  18.                 },_3:function(){return w
  19.                 },G2:function(){return x
  20.                 },dS:function(){return E
  21.                 },fn:function(){return g
  22.                 },a7:function(){return P
  23.                 },H_:function(){return L
  24.                 },Yl:function(){return k
  25.                 },D4:function(){return $
  26.                 },L1:function(){return O
  27.                 },dI:function(){return T
  28.                 },WI:function(){return M
  29.                 },Gt:function(){return z
  30.                 },w$:function(){return h
  31.                 }
  32.             }),e(74916),e(15306),e(24603),e(39714),e(41539),e(57327),e(4723),e(26699),e(32023),e(23123),e(69600),e(56977),e(34553),e(54747),e(21249);var n={cn: {can_not_null: "密码不能为空",not_conform_to_rule: "输入的密码不符合规则",more_eight_less_thirty: "密码不能少于8字符且不能超过30字符",cannot_incloud_userPin: "密码不允许有用户名",must_have_threeType: "密码必须包含大小写字母、数字及特殊字符其中三类"
  33.                 },en: {can_not_null: "Cannot be blank",not_conform_to_rule: "Does not comply with the rule",more_eight_less_thirty: "Must be no less than 8 characters and no more than 30 characters",cannot_incloud_userPin: "Can't include the username",must_have_threeType: "Must include three types of the capital and lowercase letters, numbers and special characters"
  34.                 }
  35.             },i={cn: {can_not_null: "名称不能为空",less_thrity_two: "名称长度不能超过32个字符",rule: "名称只支持中文、数字、大小写字母及英文下划线“_”及中划线"
  36.                 },en: {can_not_null: "Must provide a name",less_thrity_two: "Length cannot exceed 32 characters",rule: "Name only supports Chinese, numbers, capital and lowercase letters, English underline “_” and hyphen"
  37.                 }
  38.             },a={cn: {input_desc: "请输入描述",less: "描述长度不能超过256个字符",rule: "描述只支持中文、数字、大小写字母及英文下划线“_”"
  39.                 },en: {input_desc: "Please input description",less: "Description length cannot exceed 256 characters",rule: "Description only supports Chinese, numbers, capital and lowercase letters and English underline “_”"
  40.                 }
  41.             },o=e(96486);function u(t){var r=arguments.length>1&&void 0!==arguments[
  42.                     1
  43.                 ]?arguments[
  44.                     1
  45.                 ]: "cn",e="";return void 0===t||""===t?i[r
  46.                 ].can_not_null:t.length>32?i[r
  47.                 ].less_thrity_two:/^([a-zA-Z0-9\_-
  48.                 ]|[\u4e00-\u9fa5
  49.                 ]){
  50.                     1,
  51.                     32
  52.                 }$/.test(t)?e:i[r
  53.                 ].rule
  54.             }function s(t,r){var e=arguments.length>2&&void 0!==arguments[
  55.                     2
  56.                 ]?arguments[
  57.                     2
  58.                 ]: "cn",n="";return void 0===t||""===t?r||(n=a[e
  59.                 ].input_desc):t.length>256?n=a[e
  60.                 ].less:/^([a-zA-Z0-9\_
  61.                 ]|[\u4e00-\u9fa5
  62.                 ]){
  63.                     1,
  64.                     256
  65.                 }$/.test(t)||(n=a[e
  66.                 ].rule),n
  67.             }Date.prototype.Format=function(t){var r={
  68.                     "M+":this.getMonth()+1,
  69.                     "d+":this.getDate(),
  70.                     "h+":this.getHours(),
  71.                     "m+":this.getMinutes(),
  72.                     "s+":this.getSeconds(),
  73.                     "q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()
  74.                 };for(var e in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,
  75.                 "".concat(this.getFullYear()).substr(4-RegExp.$1.length))),r)new RegExp("(".concat(e,
  76.                 ")")).test(t)&&(t=t.replace(RegExp.$1,
  77.                 1==RegExp.$1.length?r[e
  78.                 ]: "00".concat(r[e
  79.                 ]).substr("".concat(r[e
  80.                 ]).length)));return t
  81.             };var c=[
  82.                 "abc",
  83.                 "bcd",
  84.                 "cde",
  85.                 "def",
  86.                 "efg",
  87.                 "fgh",
  88.                 "ghi",
  89.                 "hij",
  90.                 "ijk",
  91.                 "jkl",
  92.                 "klm",
  93.                 "lmn",
  94.                 "mno",
  95.                 "nop",
  96.                 "opq",
  97.                 "pqr",
  98.                 "qrs",
  99.                 "rst",
  100.                 "stu",
  101.                 "tuv",
  102.                 "uvw",
  103.                 "vwx",
  104.                 "wxy",
  105.                 "xyz",
  106.                 "cba",
  107.                 "dcb",
  108.                 "edc",
  109.                 "fed",
  110.                 "gfe",
  111.                 "hgf",
  112.                 "ihg",
  113.                 "jih",
  114.                 "kji",
  115.                 "lkj",
  116.                 "mlk",
  117.                 "nml",
  118.                 "onm",
  119.                 "pon",
  120.                 "qpo",
  121.                 "rqp",
  122.                 "srq",
  123.                 "tsr",
  124.                 "uts",
  125.                 "vut",
  126.                 "wvu",
  127.                 "xwv",
  128.                 "yxw",
  129.                 "zyx",
  130.                 "qaz",
  131.                 "wsx",
  132.                 "edc",
  133.                 "rfv",
  134.                 "tgb",
  135.                 "yhn",
  136.                 "ujm",
  137.                 "esz",
  138.                 "rdx",
  139.                 "tfc",
  140.                 "ygv",
  141.                 "uhb",
  142.                 "ijn",
  143.                 "okm",
  144.                 "zaq",
  145.                 "xsw",
  146.                 "cde",
  147.                 "vfr",
  148.                 "bgt",
  149.                 "nhy",
  150.                 "mju",
  151.                 "zse",
  152.                 "xdr",
  153.                 "cft",
  154.                 "vgy",
  155.                 "bhu",
  156.                 "nji",
  157.                 "mko",
  158.                 "ewq",
  159.                 "rew",
  160.                 "tre",
  161.                 "ytr",
  162.                 "uyt",
  163.                 "iuy",
  164.                 "oiu",
  165.                 "poi",
  166.                 "dsa",
  167.                 "fds",
  168.                 "gfd",
  169.                 "hgf",
  170.                 "jhg",
  171.                 "kjh",
  172.                 "lkj",
  173.                 "cxz",
  174.                 "vcx",
  175.                 "bvc",
  176.                 "nbv",
  177.                 "mnb",
  178.                 "qwe",
  179.                 "wer",
  180.                 "ert",
  181.                 "rty",
  182.                 "tyu",
  183.                 "yui",
  184.                 "uio",
  185.                 "iop",
  186.                 "asd",
  187.                 "sdf",
  188.                 "dfg",
  189.                 "fgh",
  190.                 "ghj",
  191.                 "hjk",
  192.                 "jkl",
  193.                 "zxc",
  194.                 "xcv",
  195.                 "cvb",
  196.                 "vbn",
  197.                 "bnm"
  198.             ],l=[
  199.                 "jd",
  200.                 "360",
  201.                 "bug",
  202.                 "com",
  203.                 "cloud",
  204.                 "password"
  205.             ],f=[
  206.                 "123",
  207.                 "234",
  208.                 "345",
  209.                 "456",
  210.                 "567",
  211.                 "678",
  212.                 "789",
  213.                 "890",
  214.                 "098",
  215.                 "987",
  216.                 "876",
  217.                 "765",
  218.                 "654",
  219.                 "543",
  220.                 "432",
  221.                 "321"
  222.             ],d=function(t){var r=c.some((function(r){return t.indexOf(r)>=0||t.indexOf(r.toUpperCase())>=0
  223.                 })),e=f.some((function(r){return t.indexOf(r)>=0
  224.                 })),n=l.some((function(r){return t.indexOf(r)>=0||t.indexOf(r.toUpperCase())>=0
  225.                 }));return!(r||e||n)
  226.             };function p(t,r,e){var i=arguments.length>3&&void 0!==arguments[
  227.                     3
  228.                 ]?arguments[
  229.                     3
  230.                 ]: "cn";return!e||null!=t&&""!=t?null==t||""==t?n[i
  231.                 ].can_not_null:t.length>30||t.length<8?n[i
  232.                 ].more_eight_less_thirty:!/^[\x21-\x7e
  233.                 ]*$/.test(t)||t.indexOf("\\")>-1?n[i
  234.                 ].not_conform_to_rule:/^(((?=.*[
  235.                     0-9
  236.                 ])(?=.*[a-z
  237.                 ])(?=.*[A-Z
  238.                 ]))|((?=.*[
  239.                     0-9
  240.                 ])(?=.*[a-z
  241.                 ])(?=.*[()`~!+=|{}\[\
  242.                     ]:";'<>,.?/@#$%^&*_-]))|((?=.*[0-9])(?=.*[A-Z])(?=.*[()`~!+=|{}\[\]:";'<>,.?/@#$%^&*_-
  243.                ]))|((?=.*[a-z
  244.                ])(?=.*[A-Z
  245.                ])(?=.*[()`~!+=|{}\[\
  246.                    ]:";'<>,.?/@#$%^&*_-])))[\x21-\x7e]{8,30}$/.test(t)?d(t)?-1!=t.indexOf(r)?n[i].cannot_incloud_userPin:"":n[i].not_conform_to_rule:n[i].must_have_threeType:""}function h(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e={len:!1,characterRestrict:!1,digital:!1,lowercaseLetter:!1,uppercaseLetter:!1,specialLetter:!1,includeLetter:!1,allowedWord:!1,allowedNumber:!1,allowedLetter:!1},n=/[()`~!@#$%^&*_\-+=|{}[\]:";'<>,.?\/
  247.                ]/gi;if(!t&&(e.len=!1,r))return" ";if(/[^a-z\d()`~!@#$%^&*_\-+=|{}[\
  248.                    ]: ";'<>,.?/]/gi.test(t)){if(e.includeLetter=!1,r)return"只支持输入中文、数字、大小写字母、英文下划线“_”、中划线“-”或点“.”,不能以“.”作为首尾"}else e.includeLetter=!0;/\d/g.test(t)?e.digital=!0:e.digital=!1,/[a-z]/g.test(t)?e.lowercaseLetter=!0:e.lowercaseLetter=!1,/[A-Z]/g.test(t)?e.uppercaseLetter=!0:e.uppercaseLetter=!1,n.test(t)?e.specialLetter=!0:e.specialLetter=!1;var i=[e.digital,e.lowercaseLetter,e.uppercaseLetter,e.specialLetter];if(i.filter((function(t){return t})).length<3){if(e.characterRestrict=!1,r)return"密码必须包含大/小写字母、数字及特殊字符其中的三类"}else e.characterRestrict=!0;if(t.length<8||t.length>30){if(e.len=!1,r)return"密码长度须在8~30字符以内"}else e.len=!0;var a=t.toLowerCase().match(/[a-z\d]+/gi)||[],o=a.some((function(t){return c.some((function(r){return t.includes(r)}))})),u=a.some((function(t){return l.some((function(r){return t.includes(r)}))})),s=t.toLowerCase().match(/\d+/gi)||[],d=s.some((function(t){return f.some((function(r){return t.includes(r)}))}));if(o){if(e.allowedLetter=!1,r)return" "}else e.allowedLetter=!0;if(u){if(e.allowedWord=!1,r)return" "}else e.allowedWord=!0;if(d){if(e.allowedNumber=!1,r)return" "}else e.allowedNumber=!0;return!!r||e}function g(t,r){return"building"===t?{id:1,name:"创建中"}:"deleting"===r?{id:8,name:"删除中"}:"powering-off"===r?{id:5,name:"停止中"}:-1!==o.indexOf(["rebooting","reboot_pending","reboot_started","rebooting_hard","reboot_pending_hard","reboot_started_hard"],r)?{id:7,name:"重启中"}:"powering-on"===r?{id:6,name:"启动中"}:-1!==o.indexOf(["resize_prep","resize_migrated","resize_reverting","resize_migrating","resize_finish","resize_confirming","resized"],r)||"resized"==t?{id:9,name:"修改配置中"}:-1!==o.indexOf(["rebuilding","rebuild_block_device_mapping","rebuild_spawning"],r)?{id:11,name:"重置系统中"}:-1!==o.indexOf(["image_snapshot","image_snapshot_pending","image_pending_upload","image_uploading"],r)?{id:12,name:"制作镜像中"}:"active"===t?{id:2,name:"运行"}:"stopped"===t?{id:3,name:"停止"}:"error"===t?{id:4,name:"错误"}:4}function _(t,r){var e=c(t),n=c(r),i=function(){for(var t=0,r=0;r<32&&"1"==n.charAt(r);r++)t++;return t}(),a="",o="",u="",s="";function c(t){for(var r=t.split("."),e="",n=0;n<r.length;n++)e+=l(parseInt(r[n]).toString(2));return e}function l(t){var r=t;if(t.length<8)for(var e=t.length,n=0;n<8-e;n++)r="0"+r;return r}this.isInRange=function(t){this.getNetwork();var r=c(t),e=parseInt(r,2),n=parseInt(s,2),l=r.substr(0,i),f=r.substr(i);return l==a&&e!=n+1&&e!=n+2&&f!=o&&f!=u},this.getNetwork=function(){return s=function(t,r){for(var e="",n=0;n<32;n++)e+=parseInt(t.charAt(n))&parseInt(r.charAt(n));return e}(e,n),a=s.substr(0,i),o=s.substr(i),u=o.replace(/0/g,"1"),function(t){for(var r="",e=0;e<t.length;e+=8)r+="."+parseInt(t.substr(e,8),2);return r.substr(1)}(s)}}function v(t,r){var e=c(t),n=c(r),i=function(){for(var t=0,r=0;r<32&&"1"==n.charAt(r);r++)t++;return t}(),a="",o="",u="",s="";function c(t){for(var r=t.split("."),e="",n=0;n<r.length;n++)e+=l(parseInt(r[n]).toString(2));return e}function l(t){var r=t;if(t.length<8)for(var e=t.length,n=0;n<8-e;n++)r="0"+r;return r}this.isInRange=function(t){this.getNetwork();var r=c(t),e=parseInt(r,2),n=parseInt(s,2),l=r.substr(0,i),f=r.substr(i);return l==a&&(e==n+1||e==n+2||f==o||f==u)},this.getNetwork=function(){return s=function(t,r){for(var e="",n=0;n<32;n++)e+=parseInt(t.charAt(n))&parseInt(r.charAt(n));return e}(e,n),a=s.substr(0,i),o=s.substr(i),u=o.replace(/0/g,"1"),function(t){for(var r="",e=0;e<t.length;e+=8)r+="."+parseInt(t.substr(e,8),2);return r.substr(1)}(s)}}function m(t,r){var e=u(t),n=u(r),i=function(){for(var t=0,r=0;r<32&&"1"==n.charAt(r);r++)t++;return t}(),a="",o="";function u(t){for(var r=t.split("."),e="",n=0;n<r.length;n++)e+=s(parseInt(r[n]).toString(2));return e}function s(t){var r=t;if(t.length<8)for(var e=t.length,n=0;n<8-e;n++)r="0"+r;return r}this.isInRange=function(t){this.getNetwork();var r=u(t),e=(parseInt(r,2),parseInt(o,2),r.substr(0,i));return r.substr(i),e==a},this.getNetwork=function(){return o=function(t,r){for(var e="",n=0;n<32;n++)e+=parseInt(t.charAt(n))&parseInt(r.charAt(n));return e}(e,n),a=o.substr(0,i),o.substr(i).replace(/0/g,"1"),function(t){for(var r="",e=0;e<t.length;e+=8)r+="."+parseInt(t.substr(e,8),2);return r.substr(1)}(o)}}var b=function(t){var r=function(t){var r=new Date;return r.setTime(t),r}(t);return r.Format("yyyy-MM-dd hh:mm:ss")},w=function(t,r){var e={},n=(new Date).toString()+"",i=0,a=0;n.indexOf("GMT")>-1?(i=n.indexOf("GMT")+3,a=n.lastIndexOf("(")>-1?n.lastIndexOf("(")-1:n.length):n.indexOf("UTC")>-1&&(i=n.indexOf("UTC")+3,a=n.lastIndexOf(" ")>i?n.lastIndexOf(" "):n.length),n=n.substring(i,a);var o=b(t),u=b(r);return e.startTime=o?o+n:"",e.endTime=u?u+n:"",e};function x(t){return"postpaid_by_duration"===t?1:"postpaid_by_usage"===t?2:"prepaid_by_duration"===t?3:void 0}function y(t){if(t instanceof Object){if(t.target||t.srcElement)return t.target||t.srcElement;throw TypeError("compatibleTarget: event must be event")}throw TypeError("compatibleTarget: event must be Object")}function z(t){var r,e=r=t<104857.6?(t/1024).toFixed(2)+"KB":t<107374182.4?(t/1048576).toFixed(2)+"MB":t<109951162777.6?(t/1073741824).toFixed(2)+"GB":t<112589990684262.4?(t/1099511627776).toFixed(2)+"TB":(t/0x4000000000000).toFixed(2)+"PB",n=e.indexOf(".");return"00"==e.substr(n+1,2)?e.substring(0,n)+e.substr(n+3,3):r}function E(t){if(null==t)return"";if("string"!=typeof t)return"";var r=t.split(".");if(r&&r.length&&r[1]){var e=r[1];if(e.length>=2){var n=e.substr(1,1);if(!isNaN(n))return parseInt(n)}}return""}function I(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"cn";return null==t||""==t?"":t.length>30||t.length<8&&t.length>0?n[e].more_eight_less_thirty:!/^[\x21-\x7e]*$/.test(t)||t.indexOf("\\")>-1?n[e].not_conform_to_rule:/^(((?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]))|((?=.*[0-9])(?=.*[a-z])(?=.*[()`~!+=|{}\[\]:";'<>,.?/@#$%^&*_-
  249.                 ]))|((?=.*[
  250.                     0-9
  251.                 ])(?=.*[A-Z
  252.                 ])(?=.*[()`~!+=|{}\[\
  253.                     ]:";'<>,.?/@#$%^&*_-]))|((?=.*[a-z])(?=.*[A-Z])(?=.*[()`~!+=|{}\[\]:";'<>,.?/@#$%^&*_-
  254.                ])))[\x21-\x7e
  255.                ]{
  256.                    8,
  257.                    30
  258.                }$/.test(t)?d(t)?-1!=t.indexOf(r)?n[e
  259.                ].cannot_incloud_userPin: "":n[e
  260.                ].not_conform_to_rule:n[e
  261.                ].must_have_threeType
  262.            }function T(t,r){if(t.generation&&r.generation){if(t.generation<r.generation)return 1;if(t.generation>r.generation)return-1
  263.                }return 0
  264.            }function $(t,r){if(t.instanceType&&r.instanceType){var e=t.instanceType,n=r.instanceType,i=e.split("."),a=n.split(".");if(i&&i.length>=2&&a&&a.length>=2){var o=i[
  265.                            1
  266.                        ],u=a[
  267.                            1
  268.                        ];if(o<u)return-1;if(o===u)return t.hasOwnProperty("cpu")&&r.hasOwnProperty("cpu")?t.cpu<r.cpu?-1:t.hasOwnProperty("memoryMB")&&r.hasOwnProperty("memoryMB")?t.cpu===r.cpu&&t.memoryMB<r.memoryMB||t.hasOwnProperty("burstInfo")&&r.hasOwnProperty("burstInfo")&&t.cpu===r.cpu&&t.memoryMB===r.memoryMB&&t.burstInfo.basePerformance<r.burstInfo.basePerformance?-1: 1: 0: 0;if(o>u)return 1
  269.                    }return 0
  270.                }return 0
  271.            }function O(t,r){var e=[
  272.                    "p.q",
  273.                    "p.c",
  274.                    "p.n",
  275.                    "s.d",
  276.                    "s.i",
  277.                    "h.g",
  278.                    "t.e",
  279.                    "t.g",
  280.                    "t.c",
  281.                    "m.s",
  282.                    "m.n",
  283.                    "c.s",
  284.                    "c.c",
  285.                    "c.n",
  286.                    "g.s",
  287.                    "g.n"
  288.                ],n=e.findIndex((function(r){return r===t.family
  289.                })),i=e.findIndex((function(t){return t===r.family
  290.                }));return n<i?1:n>i?-1: 0
  291.            }function k(t,r){if(t.value&&r.value){if(t.value<r.value)return 1;if(t.value>r.value)return-1
  292.                }return 0
  293.            }function L(t){if(t&&t.addressPrefix&&t.availableIpCount){var r=Math.pow(2,
  294.                    32-t.addressPrefix.split("/")[
  295.                        1
  296.                    ])-4;return t.availableIpCount<r
  297.                }return!1
  298.            }var M=function(t){t=parseInt(t);for(var r="",e="",n=1;n<=32;n++)t>0?(e+="1",t--):e+="0",n%8==0&&(r+=parseInt(e,
  299.                2).toString(),e="",
  300.                32!=n&&(r+="."));return r
  301.            },j=function(t,r){var e=!1;return 0!==t[r
  302.                ].length&&("host"!==r||"${host}"!==t[r
  303.                ])&&(/[^0-9.
  304.                ]{
  305.                    1,
  306.                }/g.test(t[r
  307.                ])?/^[-a-zA-Z0-9.
  308.                ]*$/.test(t[r
  309.                ])?/-\.|\.-|^-|-$/.test(t[r
  310.                ])?(t[
  311.                    "".concat(r,
  312.                    "Error")
  313.                ]=!0,e=!0,t[
  314.                    "".concat(r,
  315.                    "ErrorTip")
  316.                ]='域名不能以英文中划线"-"开头和结尾,且英文中划线"-"前后不能为点"."'):!t[r
  317.                ].includes(".")||/^(\.)|(\.\-)+|(\-\.)+|(\.)$/.test(t[r
  318.                ])?(t[
  319.                    "".concat(r,
  320.                    "Error")
  321.                ]=!0,e=!0,t[
  322.                    "".concat(r,
  323.                    "ErrorTip")
  324.                ]='域名最少包括一个点".",且不能以点"."开头和结尾'):t[r
  325.                ].length>110?(t[
  326.                    "".concat(r,
  327.                    "Error")
  328.                ]=!0,e=!0,t[
  329.                    "".concat(r,
  330.                    "ErrorTip")
  331.                ]="域名不能超过110字符"):/^(\*\.)(([a-z
  332.                ]+)|[a-z\d
  333.                ]([-a-z\d
  334.                ]*[a-z\d
  335.                ])?(\.[a-z\d
  336.                ]([-a-z\d
  337.                ]*[a-z\d
  338.                ])?)*(\.[a-z
  339.                ]+))$|^((\*\.)?[a-z\d
  340.                ]([-a-z\d
  341.                ]*[a-z\d
  342.                ])?(\.[a-z\d
  343.                ]([-a-z\d
  344.                ]*[a-z\d
  345.                ])?)*)(\.[a-z
  346.                ]+)$|^([a-z\d
  347.                ]([-a-z\d
  348.                ]*[a-z\d
  349.                ])?(\.[a-z\d
  350.                ]([-a-z\d
  351.                ]*[a-z\d
  352.                ])?)*(\.\*))$|^([a-z\d
  353.                ]([-a-z\d
  354.                ]*[a-z\d
  355.                ])?(\.[a-z\d
  356.                ]([-a-z\d
  357.                ]*[a-z\d
  358.                ])?)*(\.[a-z
  359.                ]+)(\.\*)?)$/gi.test(t[r
  360.                ])?(t[
  361.                    "".concat(r,
  362.                    "Error")
  363.                ]=!1,e=!1,t[
  364.                    "".concat(r,
  365.                    "ErrorTip")
  366.                ]=""):(t[
  367.                    "".concat(r,
  368.                    "Error")
  369.                ]=!0,e=!0,t[
  370.                    "".concat(r,
  371.                    "ErrorTip")
  372.                ]="请输入合法域名"):(t[
  373.                    "".concat(r,
  374.                    "Error")
  375.                ]=!0,e=!0,t[
  376.                    "".concat(r,
  377.                    "ErrorTip")
  378.                ]='域名仅支持输入大小写字母、数字、英文中划线"-"、点".",不区分大小写'):/^[
  379.                    1-9
  380.                ]{
  381.                    1
  382.                }[
  383.                    0-9
  384.                ]{
  385.                    0,
  386.                    2
  387.                }\.([
  388.                    1-9
  389.                ]{
  390.                    1
  391.                }[
  392.                    0-9
  393.                ]{
  394.                    0,
  395.                    2
  396.                }|0)\.([
  397.                    1-9
  398.                ]{
  399.                    1
  400.                }[
  401.                    0-9
  402.                ]{
  403.                    0,
  404.                    2
  405.                }|0)\.([
  406.                    1-9
  407.                ]{
  408.                    1
  409.                }[
  410.                    0-9
  411.                ]{
  412.                    0,
  413.                    2
  414.                })$/.test(t[r
  415.                ])&&/^((?:(?: 25[
  416.                    0-5
  417.                ]|2[
  418.                    0-4
  419.                ]\d|(?: 1\d{
  420.                    2
  421.                }|[
  422.                    1-9
  423.                ]?\d))\.){
  424.                    3
  425.                }(?: 25[
  426.                    0-5
  427.                ]|2[
  428.                    0-4
  429.                ]\d|(?: 1\d{
  430.                    2
  431.                }|[
  432.                    1-9
  433.                ]?\d)))$/.test(t[r
  434.                ])||(t[
  435.                    "".concat(r,
  436.                    "Error")
  437.                ]=!0,e=!0,t[
  438.                    "".concat(r,
  439.                    "ErrorTip")
  440.                ]="请输入合法IP地址"),e)
  441.            },A=function(t){var r=arguments.length>1&&void 0!==arguments[
  442.                    1
  443.                ]?arguments[
  444.                    1
  445.                ]: "path",e=arguments.length>2?arguments[
  446.                    2
  447.                ]:void 0,n={invalidFlag:!1,pathError:!1,pathErrorTip: ""
  448.                },i=/^[\/\w\-\_\.\+\!\'\(\)\%\:\@\&\=
  449.                ]*$/g,a=/\/[\w\-\.\+\!\'\(\)\%\:\@\&\=
  450.                ]*(\*)+[\/\w\-\.\+\!\'\(\)\%\:\@\&\=
  451.                ]+/g,o=/^(\/[\w\-\.\+\!\'\(\)\%\:\@\&\=
  452.                ]*)+(\*)?$/g,u=e&&(""===e.path||e.path&&e.path.includes("*"));return""===t[r
  453.                ]||"${path}"===t[r
  454.                ]||("/"!==t[r
  455.                ][
  456.                    0
  457.                ]?(n.invalidFlag=!0,n.pathError=!0,n.pathErrorTip="path必须以/开头"):t[r
  458.                ].length>128?(n.invalidFlag=!0,n.pathError=!0,n.pathErrorTip="path长度不能超过128字符"):t[r
  459.                ].includes("*")?u?!a.test(t[r
  460.                ])&&o.test(t[r
  461.                ])||(n.invalidFlag=!0,n.pathError=!0,n.pathErrorTip="仅当匹配条件URL路径包括通配符*时,重写后path也支持输入一个后缀*,两个*表示的内容一致"):!u&&t[r
  462.                ].includes("*")?(n.invalidFlag=!0,n.pathError=!0,n.pathErrorTip="仅当匹配条件URL路径包括通配符*时,重写后path也支持输入一个后缀*,两个*表示的内容一致"):(n.invalidFlag=!0,n.pathError=!0,n.pathErrorTip="仅支持输入大小写字母、数字和特殊字符:-_.+!'()%:@&=/,区分大小写,且不能超过128字符"):i.test(t[r
  463.                ])||(n.invalidFlag=!0,n.pathError=!0,n.pathErrorTip="仅支持输入大小写字母、数字和特殊字符:-_.+!'()%:@&=/,区分大小写,且不能超过128字符")),n
  464.            },F=function(t){var r=arguments.length>1&&void 0!==arguments[
  465.                    1
  466.                ]?arguments[
  467.                    1
  468.                ]: "path",e={invalidFlag:!1,pathError:!1,pathErrorTip: ""
  469.                },n=/^[\/\w\-\_\.\+\!\'\(\)\%\:\@\&\=
  470.                ]*$/g;return""===t[r
  471.                ]||"${path}"===t[r
  472.                ]||("/"!==t[r
  473.                ][
  474.                    0
  475.                ]?(e.invalidFlag=!0,e.pathError=!0,e.pathErrorTip="path必须以/开头"):t[r
  476.                ].length>128?(e.invalidFlag=!0,e.pathError=!0,e.pathErrorTip="path长度不能超过128字符"):n.test(t[r
  477.                ])||(e.invalidFlag=!0,e.pathError=!0,e.pathErrorTip="仅支持输入大小写字母、数字和特殊字符:-_.+!'()%:@&=/,区分大小写,且不能超过128字符")),e
  478.            },P=function(t){var r=arguments.length>1&&void 0!==arguments[
  479.                    1
  480.                ]?arguments[
  481.                    1
  482.                ]: [],e=arguments.length>2&&void 0!==arguments[
  483.                    2
  484.                ]?arguments[
  485.                    2
  486.                ]: [];return r.map((function(r){return{protocol:r,ciphers:(t[r
  487.                        ]||[]).filter((function(t){return e.includes(t)
  488.                        }))
  489.                    }
  490.                }))
  491.            }
  492.        }
  493.    }
  494. ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement