/*! For license information please see 36147.ea741eaa.js.LICENSE.txt */ !function(e,t){"object"==typeof module&&"object"==typeof module.exports?t():"function"==typeof define&&define.amd?define([],t):(e="undefined"!=typeof globalThis?globalThis:e||self)&&t()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).xss={})}(this,function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n/g,a=/&#([a-zA-Z0-9]*);?/gim,s=/"/g,l=/:?/gim,u=/&newline;?/gim,c=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,d=/u\s*r\s*l\s*\(.*/gi,f=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,p=/"/g,h=function(e){return e.replace(i,"<").replace(o,">")},g={indexOf:function(e,t){var n,r;for(n=0,r=e.length;n127&&r<2048?t+=String.fromCharCode(r>>6|192)+String.fromCharCode(63&r|128):t+=String.fromCharCode(r>>12|224)+String.fromCharCode(r>>6&63|128)+String.fromCharCode(63&r|128)}return t}(e);c>2,o=(3&t)<<4|(n=e.charCodeAt(c++))>>4,a=(15&n)<<2|(r=e.charCodeAt(c++))>>6,s=63&r,isNaN(n)?a=s=64:isNaN(r)&&(s=64),u=u+l.charAt(i)+l.charAt(o)+l.charAt(a)+l.charAt(s);return u}function y(e){var t,n,r,i,o,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",u=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");u>4,n=(15&i)<<4|(o=s.indexOf(e.charAt(u++)))>>2,r=(3&o)<<6|(a=s.indexOf(e.charAt(u++))),l+=String.fromCharCode(t),64!==o&&(l+=String.fromCharCode(n)),64!==a&&(l+=String.fromCharCode(r));return function(e){for(var t="",n=0,r=0,i=0,o=0;n191&&r<224?(t+=String.fromCharCode((31&r)<<6|63&(o=e.charCodeAt(n+1))),n+=2):(o=e.charCodeAt(n+1),t+=String.fromCharCode((15&r)<<12|(63&o)<<6|63&(i=e.charCodeAt(n+2))),n+=3);return t}(l)}function w(e,t,n){var r="",i=0,o=!1,a=!1,s=0,l=e.length,u="",c="";e:for(s=0;s"===d||s===l-1){r+=n(e.slice(i,o)),u=function(e){var t,n=g.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=g.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}(c=e.slice(o,s+1)),r+=t(o,r.length,u,c,"0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}return -1}(e,u-1))){l(a,b(g.trim(e.slice(n,u)))),a=!1,n=u+1;continue}}}else{if(-1===(d=e.indexOf(c,u+1)))break;l(a,g.trim(e.slice(i+1,d))),a=!1,n=(u=d)+1}}else a=e.slice(n,u),n=u+1,i='"'===e.charAt(n)||"'"===e.charAt(n)?n:function(e,t){for(;te.charCodeAt(n)?" ":e.charAt(n);return g.trim(t)}(e=(e=(e=e.replace(s,'"')).replace(a,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})).replace(l,":").replace(u," "))}(n),"href"===t||"src"===t){if("#"===(n=g.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(c.lastIndex=0,c.test(n))return""}else if("style"===t&&(f.lastIndex=0,f.test(n)||(d.lastIndex=0,d.test(n)&&(c.lastIndex=0,c.test(n)))))return"";return n=function(e){return e=h(e=e.replace(p,"""))}(n)}var O=function(e){return"string"==typeof e?e.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},k=function(){function e(e){var t=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{});t.stripIgnoreTag&&(t.onIgnoreTag,t.onIgnoreTag=function(){return""}),t.whiteList={},t.onTag=function(){},t.onTagAttr=function(){},t.onIgnoreTag=function(){},t.onIgnoreTagAttr=function(){},t.safeAttrValue=E,t.escapeHtml=h,this.options=Object.assign(t,e)}return e.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t,n,r,i,o,a,s=this.options,l=s.whiteList,u=s.onTag,c=s.onIgnoreTag,d=s.onTagAttr,f=s.onIgnoreTagAttr,p=s.safeAttrValue,h=s.escapeHtml;s.stripBlankChar&&(e=(t=(t=e.split("")).filter(function(e){var t=e.charCodeAt(0);return!(127===t||t<=31&&10!==t&&13!==t)})).join("")),s.allowCommentTag||(e=function(e){for(var t="",n=0;n");var s=function(e){var t=g.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=g.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=g.trim(e.slice(0,-1))),{html:e,closing:n}}(r),m=l[n],b=x(s.html,function(e,t){var r=-1!==g.indexOf(m,e),i=d(n,e,t,r);return null==i?r?(t=p(n,e,t,null))?"".concat(e,'="').concat(t,'"'):e:null==(i=f(n,e,t,r))?void 0:i:i});return r="<".concat(n),b&&(r+=" ".concat(b)),s.closing&&(r+=" /"),r+=">"}return null==(a=c(n,r,o))?h(r):a},h);return m&&(b=m.remove(b)),b},e}(),S=Function("\nvar _checkXSS = function (it) {\n return it && it.Math == Math && it;\n};\nreturn _checkXSS(typeof globalThis === 'object' && globalThis) ||\n_checkXSS(typeof window === 'object' && window) ||\n_checkXSS(typeof self === 'object' && self) ||\n_checkXSS(typeof global === 'object' && global) ||\nFunction('return this')();\n")(),_=new(function(){function e(){var e=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var t,n,r="douyin_web";if(!g.includes(r,"bid"))return r;if(e.config&&e.config.bid)return e.config.bid;if(S&&S._xssBid)return S._xssBid;if(S&&S.slardar&&"function"==typeof S.slardar.config){var i=(S.slardar.config()||{}).bid;if(i)return i}if(S&&S.Slardar&&"function"==typeof S.Slardar.config){var o=(S.Slardar.config()||{}).bid;if(o)return o}return(null===(n=null===(t=null==S?void 0:S.Slardar)||void 0===t?void 0:t._baseParams)||void 0===n?void 0:n.bid)||"argus"},this.getConfigRegion=function(){var t;return g.includes("cn","region")?e.config&&e.config.region?e.config.region:((null===(t=null==S?void 0:S.gfdatav1)||void 0===t?void 0:t.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var t={cn:y("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:y("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:y("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[e.getConfigRegion()];if(t)return t+e.getSlardarBid()}}return e.prototype.setConfig=function(e){this.config=e},e.prototype.upload=function(){var e=this,t=this.gerReportUrl();!this.lock&&t&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var n=e.batchData.slice(0,100);e.batchData=e.batchData.slice(100),S.fetch(t,{method:"post",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}).catch(function(e){}),e.lock=!1,e.upload()},this.timeout))},e.prototype.generateKey=function(e){return e.collectKey?[e.collectMode,e.collectKey].join("___"):""},e.prototype.push=function(e){this.batchData.push(e),this.upload()},e.prototype.report=function(e){var t=this.generateKey(e);if(S.fetch&&e.collectKey){var n="object"==typeof window?window.location.href:"SSR";e.documentUrl=n;var r={age:Math.floor(Date.now()),type:"xss",url:n,body:e,"user-agent":""};"enforce"===e.disposition&&"SSR"!==n||(r.url=t),"SSR"===n&&(r.url="SSR___".concat(r.url),r.body.ssr=!0),this.push(r)}},e}()),C=function(e){for(var t=0,n=function(n){Array.isArray(e[n])?0===e[n].length?delete e[n]:(e[n]=g.from(g.uniq(e[n])),t+=e[n].length):0===g.keys(e[n]).length?delete e[n]:g.keys(e[n]).forEach(function(r){e[n][r]=g.from(g.uniq(e[n][r])),t+=e[n][r].length})},r=0,i=g.keys(e);r0)return t&&t("javascript:"),!1;if(/^javascript:/i.test(e)){var i=e.slice(11).replace(/\s/g,"").trim();return!!g.some(["void","void(0)","void0","false","undefined",";"],function(e){return e===i})||(t&&t("javascript:"),!1)}return!0}var P=function(e,t){var n,r,i="<%= isSaveValidUrl =>";if("string"!=typeof e||(r=Number("<%= urlLimit =>"),void 0!==n&&(r=n),"NaN"!==e.toString()&&-1!==r&&e.length>=r)||R(e,t))return e;try{if(!0===(i=JSON.parse(i))||"true"===i){var o=new URL(e);return o.origin+o.pathname}}catch(e){}return"#"};function L(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=[]),"string"!=typeof e)return!0;if(!R(e=I(e)))return!1;var i,o={url:(i=e.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:i[1],slash:i[2],host:i[3],port:i[4],path:i[5],query:i[6],hash:i[7]},a=o.scheme,s=o.host;return r?!!r(e):!(!a||!s)&&(!g.includes(["http","https","file"],a)||("object"==typeof window&&window&&(t=n(n([],t,!0),[location.host],!1)),g.some(t,function(e){return!!(e instanceof RegExp&&e.test(s))||e===s})))}var j={a:["target","title","spellcheck","rel"],canvas:[],abbr:["title"],address:[],area:["shape","coords","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:["dir"],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["alt","title","width","height","decoding"],ins:["datetime"],li:[],mark:[],nav:[],ol:["start"],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],delete:[],form:[],strong:[],mask:["maskunits","x","y","width","height","fill"],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],wbr:[],video:["autoplay","controls","loop","preload","height","width"],svg:["viewBox","version","xmlns","fill","width","height","stroke","stroke-width","style"],path:["d","fill","opacity","stroke","p-id","fill-rule","clip-rule","stroke-width","stroke-linecap","stroke-linejoin","fill-opacity","mask"],rect:["x","y","width","height","fill","stroke","rx"],g:[]},N={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var e=C(this.collect),t=e.count,n=e.ret;return this.collect=null,{collectKey:0===t?null:JSON.stringify(n),collectMode:"white"}},onIgnoreTagAttr:function(e,t,r){return e&&g.indexOf(["href","src"],t)>-1?N.domainWhiteList&&Array.isArray(N.domainWhiteList)&&N.domainWhiteList.length>0&&!L(r,n([],N.domainWhiteList,!0))?"":"".concat(t,'="').concat(P(r,function(e){var t;null===(t=N.collect)||void 0===t||t.filterProtocol.push(e)}),'"'):e&&(g.indexOf(["style","class","id"],t)>-1||t.indexOf("data-")>-1)?"".concat(t,'="').concat(r,'"'):(N.collect.whiteList[e]=N.collect.whiteList[e]||[],void N.collect.whiteList[e].push(t))},onIgnoreTag:function(e,t){if("style"===e)return t;w(t,function(e,t,n,r){x(A(r).html.replace("/",""),function(e){N.collect.whiteList[n]=N.collect.whiteList[n]||[],N.collect.whiteList[n].push(e)})},h)},whiteList:j,mergeWhiteList:function(e){for(var t,n={},r=0,i=g.keys(j);r");var o=A(r),a=x(o.html,function(e,t){var r,i=0;if(Z.blackList[n]&&g.includes(Z.blackList[n],e)&&(z.collect.blackList[n]=z.collect.blackList[n]||[],z.collect.blackList[n].push(e),i++),Z.blackAttrRegExps.length&&Z.blackAttrRegExps.some(function(t){return t.test(e)})&&g.forEach(Z.blackAttrRegExps,function(t){t.test(e)&&(z.collect.blackAttrRegExps.push("".concat(t.toString(),"->").concat(e)),i++)}),Z.blackAttrs.length&&g.includes(Z.blackAttrs,e)&&(Z.blackAttrs.push(e),i++),!i){if(Z.filterList&&Z.filterList[n]&&g.includes(Z.filterList[n],e)){var o=P(t,function(e){var t;null===(t=z.collect)||void 0===t||t.filterProtocol.push(e)});return o!==t&&(z.collect.filterList[n]=z.collect.filterList[n]||[],z.collect.filterList[n].push(e)),t?"".concat(e,"='").concat(o,"'"):e}return Z.filterAttrs&&g.includes(Z.filterAttrs,e)?((o=P(t,function(e){var t;null===(t=z.collect)||void 0===t||t.filterProtocol.push(e)}))!==t&&(null===(r=z.collect)||void 0===r||r.filterAttrs.push(e)),t?"".concat(e,"='").concat(o,"'"):e):t?"".concat(e,"='").concat(t,"'"):e}});return r="<".concat(n),a&&(r+=" ".concat(a)),o.closing&&(r+=" /"),r+=">"},h);null===(n=z.collect)||void 0===n||n.blackTags.push(e)}},W=function(e){var t=e.reportOnly,n=void 0===t||t,r=e.block;return n&&"all"===n?"report":("string"==typeof n&&("true"===n&&(n=!0),"false"===n&&(n=!1)),r?"enforce":n?"report":"enforce")},V=function(e){return function(n,r,i){if(!n||"string"!=typeof n)return n;var o=r;e===T&&(o=N).initCollect();var a=e(n,o);if(O(a)===O(n))return n;if(!i)return a;var s=i.logType,l=W(i),u=o.removeCollect();return _.report(t(t({type:s,disposition:l},u),{sourceText:v(n),filterText:v(a)})),"enforce"===l?a:n}},H=V(function(e,t){return void 0===t&&(t={}),t&&t.whiteList||(t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}),new k(t).process(e)}),U=V(T),G=function(e,t,n){var r=[],i=P(e,function(e){r.push(e)});if(i===e)return e;r=g.from(g.uniq(r));var o=t||n||{};if(!o)return i;var a=o.logType,s=W(n);return _.report({type:a,disposition:s,collectKey:r.join("___"),collectData:JSON.stringify(r),collectMode:"black",sourceText:v(e),filterText:v(i)}),"enforce"===s?i:e},B=S._xssProject||{},X=S.xssNamespace||{},Y="3.0.26",J={FilterXSS:k,version:Y,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:H,_filterXSS:U,filterUrl:G,Config:N,BlackConfig:z,project:B,setProjectName:function(e){B[e]=this,S._xssProjectName=e}};X.douyin_web=J,S.xssNamespace=X,S.Math&&!S.Math.xssNamespace&&(S.Math.xssNamespace=X),B[Y]=J,S.globalThis=S,S.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:J},S.xss=J,S.isSafeUrl=L,S.isSafeDomain=L,S.isSafeProtocol=R,S._xssProject=B,S._xssProjectName&&(B[S._xssProjectName]=J);var K=J.setProjectName.bind(J);e.BlackConfig=z,e.Config=N,e.FilterXSS=k,e._filterXSS=U,e.filterUrl=G,e.filterXSS=H,e.isSafeDomain=L,e.isSafeProtocol=R,e.isSafeUrl=L,e.project=B,e.setProjectName=K,e.setXssNamespace=function(e){var t=e.appId,n=e.bid,r=e.region;X[t]=J;N.bid=n,N.region=r,N.enabled=!0},e.xssNamespace=X,Object.defineProperty(e,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["36147"],{868752:function(e,t,n){"use strict";var r=n(777296);function i(){return(i=Object.assign||function(e){for(var t=1;t=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}}):i}void 0!==r&&r.env;function f(e,t){var n;if(null==e||"array"===t&&Array.isArray(e)&&!e.length)return!0;return("string"===(n=t)||"url"===n||"hex"===n||"email"===n||"date"===n||"pattern"===n)&&"string"==typeof e&&!e&&!0}function p(e,t,n){var r=0,i=e.length;!function o(a){if(a&&a.length){n(a);return}var s=r;r+=1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},y={integer:function(e){return y.number(e)&&parseInt(e,10)===e},float:function(e){return y.number(e)&&!y.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!y.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(v.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(v.url)},hex:function(e){return"string"==typeof e&&!!e.match(v.hex)}},w="enum",x={required:b,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(d(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&void 0===t){b(e,t,n,r,i);return}var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?!y[o](t)&&r.push(d(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(d(i.messages.types[o],e.fullField,e.type))},range:function(e,t,n,r,i){var o="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,u=null,c="number"==typeof t,f="string"==typeof t,p=Array.isArray(t);if(c?u="number":f?u="string":p&&(u="array"),!u)return!1;p&&(l=t.length),f&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?l!==e.len&&r.push(d(i.messages[u].len,e.fullField,e.len)):a&&!s&&le.max?r.push(d(i.messages[u].max,e.fullField,e.max)):a&&s&&(le.max)&&r.push(d(i.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,i){e[w]=Array.isArray(e[w])?e[w]:[],-1===e[w].indexOf(t)&&r.push(d(i.messages[w],e.fullField,e[w].join(", ")))},pattern:function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,!e.pattern.test(t)&&r.push(d(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&!new RegExp(e.pattern).test(t)&&r.push(d(i.messages.pattern.mismatch,e.fullField,t,e.pattern)))}};function E(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t,o)&&!e.required)return n();x.required(e,t,r,a,i,o),!f(t,o)&&x.type(e,t,r,a,i)}n(a)}var O={string:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t,"string")&&!e.required)return n();x.required(e,t,r,o,i,"string"),!f(t,"string")&&(x.type(e,t,r,o,i),x.range(e,t,r,o,i),x.pattern(e,t,r,o,i),!0===e.whitespace&&x.whitespace(e,t,r,o,i))}n(o)},method:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,o,i),void 0!==t&&x.type(e,t,r,o,i)}n(o)},number:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),f(t)&&!e.required)return n();x.required(e,t,r,o,i),void 0!==t&&(x.type(e,t,r,o,i),x.range(e,t,r,o,i))}n(o)},boolean:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,o,i),void 0!==t&&x.type(e,t,r,o,i)}n(o)},regexp:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,o,i),!f(t)&&x.type(e,t,r,o,i)}n(o)},integer:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,o,i),void 0!==t&&(x.type(e,t,r,o,i),x.range(e,t,r,o,i))}n(o)},float:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,o,i),void 0!==t&&(x.type(e,t,r,o,i),x.range(e,t,r,o,i))}n(o)},array:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();x.required(e,t,r,o,i,"array"),null!=t&&(x.type(e,t,r,o,i),x.range(e,t,r,o,i))}n(o)},object:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,o,i),void 0!==t&&x.type(e,t,r,o,i)}n(o)},enum:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,o,i),void 0!==t&&x.enum(e,t,r,o,i)}n(o)},pattern:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t,"string")&&!e.required)return n();x.required(e,t,r,o,i),!f(t,"string")&&x.pattern(e,t,r,o,i)}n(o)},date:function(e,t,n,r,i){var o,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t,"date")&&!e.required)return n();x.required(e,t,r,a,i),!f(t,"date")&&(o=t instanceof Date?t:new Date(t),x.type(e,o,r,a,i),o&&x.range(e,o.getTime(),r,a,i))}n(a)},url:E,hex:E,email:E,required:function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":typeof t;x.required(e,t,r,o,i,a),n(o)},any:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();x.required(e,t,r,o,i)}n(o)}};function k(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var S=k();function _(e){this.rules=null,this._messages=S,this.define(e)}_.prototype={messages:function(e){return e&&(this._messages=m(k(),e)),this._messages},define:function(e){var t,n;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw Error("Rules must be an object");for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var r,o,a=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var s=e,l=t,u=n;if("function"==typeof l&&(u=l,l={}),!this.rules||0===Object.keys(this.rules).length)return u&&u(),Promise.resolve();if(l.messages){var f=this.messages();f===S&&(f=k()),m(f,l.messages),l.messages=f}else l.messages=this.messages();var b={};(l.keys||Object.keys(this.rules)).forEach(function(t){r=a.rules[t],o=s[t],r.forEach(function(n){var r=n;if("function"==typeof r.transform&&(s===e&&(s=i({},s)),o=s[t]=r.transform(o)),(r="function"==typeof r?{validator:r}:i({},r)).validator=a.getValidationMethod(r),r.field=t,r.fullField=r.fullField||t,r.type=a.getType(r),!!r.validator)b[t]=b[t]||[],b[t].push({rule:r,value:o,source:s,field:t})})});var v={};return function(e,t,n,r){if(t.first){var i=new Promise(function(t,i){var o,a;p((a=[],Object.keys(o=e).forEach(function(e){a.push.apply(a,o[e])}),a),n,function(e){return r(e),e.length?i(new h(e,c(e))):t()})});return i.catch(function(e){return e}),i}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var a=Object.keys(e),s=a.length,l=0,u=[],d=new Promise(function(t,i){var d=function(e){if(u.push.apply(u,e),++l===s)return r(u),u.length?i(new h(u,c(u))):t()};!a.length&&(r(u),t()),a.forEach(function(t){var r=e[t];-1!==o.indexOf(t)?p(r,n,d):!function(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,e),++i===o&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,d)})});return d.catch(function(e){return e}),d}(b,l,function(e,t){var n,r=e.rule,o=("object"===r.type||"array"===r.type)&&("object"==typeof r.fields||"object"==typeof r.defaultField);function a(e,t){return i({},t,{fullField:r.fullField+"."+e})}function s(n){void 0===n&&(n=[]);var s=n;if(!Array.isArray(s)&&(s=[s]),!l.suppressWarning&&s.length&&_.warning("async-validator:",s),s.length&&void 0!==r.message&&(s=[].concat(r.message)),s=s.map(g(r)),l.first&&s.length)return v[r.field]=1,t(s);if(o){if(r.required&&!e.value)return void 0!==r.message?s=[].concat(r.message).map(g(r)):l.error&&(s=[l.error(r,d(l.messages.required,r.field))]),t(s);var u={};if(r.defaultField)for(var c in e.value)e.value.hasOwnProperty(c)&&(u[c]=r.defaultField);for(var f in u=i({},u,e.rule.fields))if(u.hasOwnProperty(f)){var p=Array.isArray(u[f])?u[f]:[u[f]];u[f]=p.map(a.bind(null,f))}var h=new _(u);h.messages(l.messages),e.rule.options&&(e.rule.options.messages=l.messages,e.rule.options.error=l.error),h.validate(e.value,e.rule.options||l,function(e){var n=[];s&&s.length&&n.push.apply(n,s),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)})}else t(s)}o=o&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator?n=r.asyncValidator(r,e.value,s,e.source,l):r.validator&&(!0===(n=r.validator(r,e.value,s,e.source,l))?s():!1===n?s(r.message||r.field+" fails"):n instanceof Array?s(n):n instanceof Error&&s(n.message)),n&&n.then&&n.then(function(){return s()},function(e){return s(e)})},function(e){!function(e){var t,n=[],r={};for(t=0;t>>8^255&h^99,r[n]=h,i[h]=n;var g=e[n],m=e[g],b=e[m],v=257*e[h]^16843008*h;o[n]=v<<24|v>>>8,a[n]=v<<16|v>>>16,s[n]=v<<8|v>>>24,l[n]=v;var v=16843009*b^65537*m^257*g^16843008*n;u[h]=v<<24|v>>>8,c[h]=v<<16|v>>>16,d[h]=v<<8|v>>>24,f[h]=v,n?(n=g^e[e[e[b^g]]],p^=e[e[p]]):n=p=1}}(),p=[0,1,2,4,8,16,32,64,128,27,54],h=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e,t=this._keyPriorReset=this._key,n=t.words,i=t.sigBytes/4,o=((this._nRounds=i+6)+1)*4,a=this._keySchedule=[],s=0;s6&&s%i==4&&(e=r[e>>>24]<<24|r[e>>>16&255]<<16|r[e>>>8&255]<<8|r[255&e]):e=(r[(e=e<<8|e>>>24)>>>24]<<24|r[e>>>16&255]<<16|r[e>>>8&255]<<8|r[255&e])^p[s/i|0]<<24,a[s]=a[s-i]^e);for(var l=this._invKeySchedule=[],h=0;h>>24]]^c[r[e>>>16&255]]^d[r[e>>>8&255]]^f[r[255&e]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,a,s,l,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,c,d,f,i);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var l=this._nRounds,u=e[t]^n[0],c=e[t+1]^n[1],d=e[t+2]^n[2],f=e[t+3]^n[3],p=4,h=1;h>>24]^i[c>>>16&255]^o[d>>>8&255]^a[255&f]^n[p++],m=r[c>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&u]^n[p++],b=r[d>>>24]^i[f>>>16&255]^o[u>>>8&255]^a[255&c]^n[p++],v=r[f>>>24]^i[u>>>16&255]^o[c>>>8&255]^a[255&d]^n[p++];u=g,c=m,d=b,f=v}var g=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^n[p++],m=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&u])^n[p++],b=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^n[p++],v=(s[f>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^n[p++];e[t]=g,e[t+1]=m,e[t+2]=b,e[t+3]=v},keySize:8}),e.AES=t._createHelper(h),e.AES},e.exports=i(n(776340),n(782996),n(785005),n(308980),n(126641))},973372:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(726588),i=n(144256);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return n.getTime()===o.getTime()}},660725:function(e,t,n){"use strict";var r=n(210256),i={ordinalNumber:function(e,t){var n=Number(e);switch(null==t?void 0:t.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},era:(0,r.Z)({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:(0,r.Z)({values:{narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,r.Z)({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:(0,r.Z)({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:(0,r.Z)({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultFormattingWidth:"wide"})};t.Z=i},778177:function(e,t,n){"use strict";n.d(t,{x:function(){return p}});var r=n(315355),i=n(919209),o=n(732905),a=n(625813),s=n(92833),l=n(272787),u=n(483803),c=n(19470),d=n(763731),f=n(462796),p=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,a=Array(i),s=0;s0}},{key:"set",value:function(e,t,n,r){var i=(0,d.Z)(e,r);if(n.isTwoDigitYear){var o=(0,c.WG)(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,f.Z)(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,f.Z)(e,r)}}]),n}(u._)},994625:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(634771),i=n(726588),o=n(708863),a=n(557094),s=n(144256);function l(e,t){if((0,s.Z)(2,arguments),"object"!==(0,r.Z)(t)||null===t)throw RangeError("values parameter must be an object");var n=(0,i.Z)(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=(0,o.Z)(n,t.month)),null!=t.date&&n.setDate((0,a.Z)(t.date)),null!=t.hours&&n.setHours((0,a.Z)(t.hours)),null!=t.minutes&&n.setMinutes((0,a.Z)(t.minutes)),null!=t.seconds&&n.setSeconds((0,a.Z)(t.seconds)),null!=t.milliseconds&&n.setMilliseconds((0,a.Z)(t.milliseconds)),n)}},549733:function(e,t,n){"use strict";var r=n(634233);e.exports=function(e){if(!r(e))throw TypeError("Cannot use null or undefined");return e}},642987:function(e){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},214522:function(e,t,n){var r=n(773413),i=n(618600),o=n(35379),a=n(503853),s=n(589282);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0?2===l.length?typeof l[1]==i?this[l[0]]=l[1].call(this,c):this[l[0]]=l[1]:3===l.length?typeof l[1]!==i||l[1].exec&&l[1].test?this[l[0]]=c?c.replace(l[1],l[2]):void 0:this[l[0]]=c?l[1].call(this,c,l[2]):r:4===l.length&&(this[l[0]]=c?l[3].call(this,c.replace(l[1],l[2])):r):this[l]=c||r}d+=2}},B=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var i=0;i2&&(e[u]="iPad",e[d]=b),e},this.getEngine=function(){var e={};return e[c]=r,e[p]=r,G.call(e,v,w.engine),e},this.getOS=function(){var e={};return e[c]=r,e[p]=r,G.call(e,v,w.os),x&&!e[c]&&y&&y.platform&&"Unknown"!=y.platform&&(e[c]=y.platform.replace(/chrome os/i,Z).replace(/macos/i,$)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return v},this.setUA=function(e){return v=typeof e===s&&e.length>500?U(e,500):e,this},this.setUA(v),this};J.VERSION="0.7.40",J.BROWSER=W([c,p,l]),J.CPU=W([h]),J.DEVICE=W([u,f,d,g,m,v,b,y,w]),J.ENGINE=J.OS=W([c,p]),typeof t!==o?(e.exports&&(t=e.exports=J),t.UAParser=J):typeof define===i&&define.amd?define(function(){return J}):typeof n!==o&&(n.UAParser=J);var K=typeof n!==o&&(n.jQuery||n.Zepto);if(K&&!K.ua){var Q=new J;K.ua=Q.getResult(),K.ua.get=function(){return Q.getUA()},K.ua.set=function(e){Q.setUA(e);var t=Q.getResult();for(var n in t)K.ua[n]=t[n]}}}("object"==typeof window?window:this)},939445:function(e,t,n){"use strict";e.exports=n(873019)},401918:function(e,t,n){"use strict";var r=n(383708),i=n(951877);t.Z=function(e,t,n){var o=(e=e||{}).random||(e.rng||r.Z)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=o[a];return t}return(0,i.Z)(o)}},159957:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindDebug=function(e){e.logInfo=o.logInfo.bind(e),e.logWarn=o.logWarn.bind(e),e.logError=o.logError.bind(e)},t.default=void 0;var n="undefined"!=typeof window&&window.location&&window.location.href.indexOf("xgplayerdebugger=1")>-1,r={info:"color: #525252; background-color: #90ee90;",error:"color: #525252; background-color: red;",warn:"color: #525252; background-color: yellow; "},i="%c[xgplayer]",o={config:{debug:n?3:1},logInfo:function(e){for(var t,n=arguments.length,o=Array(n>1?n-1:0),a=1;a=3&&(t=console).log.apply(t,[i,r.info,e].concat(o))},logWarn:function(e){for(var t,n=arguments.length,o=Array(n>1?n-1:0),a=1;a=1&&(t=console).warn.apply(t,[i,r.warn,e].concat(o))},logError:function(e){if(!(this.config.debug<1)){for(var t,n=this.config.debug>=2?"trace":"error",o=arguments.length,a=Array(o>1?o-1:0),s=1;s{setTimeout(()=>h(this,void 0,void 0,function*(){yield e(t,n-1),r()}),0)})})}},UW:function(){return g},Xh:function(){return m},np:function(){return x},ql:function(){return b},vY:function(){return y}}),n(679308),n(414931),n(240148),n(759943),n(302356),n(932651),n(181365),n(808885),n(490629);var r=n(198412),i=n.n(r),o=n(5784),a=n.n(o),s=n(410082),l=n.n(s),u=n(101199),c=n(182811),d=n(634957),f=n(283433),p=n(777296),h=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})};function g(e,t){e&&"function"==typeof e.stopPropagation&&e.stopPropagation(),!t&&e.nativeEvent&&"function"==typeof e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation()}function m(e,t){return l()(e,e=>{if("function"==typeof t)return t(e);if("function"==typeof e||u.isValidElement(e)||"[object Error]"===Object.prototype.toString.call(e))return e;if(Array.isArray(e)&&0===e.length){let t=Object.keys(e);if(t.length){let n=[];t.forEach(t=>{a()(n,t,e[t])});try{(0,c.Z)("production"!==i()(p,"env.NODE_ENV"),`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. The maximum length of an array is 4294967295. Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch(e){}return n}}})}let b=(e,t)=>{let{match:n,unmatch:r,callInInit:i=!0}=t;if("undefined"!=typeof window){let t=window.matchMedia(e);function o(e){e.matches?n&&n(e):r&&r(e)}return(i&&o(t),Object.prototype.hasOwnProperty.call(t,"addEventListener"))?(t.addEventListener("change",o),()=>t.removeEventListener("change",o)):(t.addListener(o),()=>t.removeListener(o))}return()=>void 0},v=e=>u.isValidElement(e)&&"Icon"===i()(e.type,"elementType");function y(){return document?document.activeElement:null}function w(e){if(!(0,d.Z)(e))return[];let t="input:not([disabled]):not([tabindex='-1']),textarea:not([disabled]):not([tabindex='-1']),button:not([disabled]):not([tabindex='-1']),a[href]:not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),area[href]:not([tabindex='-1']),iframe:not([tabindex='-1']),object:not([tabindex='-1']),*[tabindex]:not([tabindex='-1']),*[contenteditable]:not([tabindex='-1'])";return Array.from(e.querySelectorAll(t))}function x(){return globalThis&&"[object Window]"===Object.prototype.toString.call(globalThis)?window.innerWidth-document.documentElement.clientWidth:0}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=()=>{var t,n;return(null===(n=null===(t=null===f.Z||void 0===f.Z?void 0:f.Z.config)||void 0===t?void 0:t.overrideDefaultProps)||void 0===n?void 0:n[e])||{}};return new Proxy(Object.assign({},t),{get(e,t,r){let i=n();return t in i?i[t]:Reflect.get(e,t,r)},set:(e,t,n,r)=>Reflect.set(e,t,n,r),ownKeys(){let e=n();return Array.from(new Set([...Reflect.ownKeys(t),...Object.keys(e)]))},getOwnPropertyDescriptor(e,t){let r=n();return t in r?Reflect.getOwnPropertyDescriptor(r,t):Reflect.getOwnPropertyDescriptor(e,t)}})}},610655:function(e,t,n){"use strict";let r=n(101199).createContext({});t.Z=r},176304:function(e,t,n){"use strict";n(932651);var r=n(101199),i=n(392129),o=n(859725);t.Z=e=>r.createElement(i.Z.Paragraph,Object.assign({className:`${o.U.PREFIX}-component-p`},e))},419974:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}}),n(932651);var r=n(101199),i=n(622689),o=n.n(i),a=n(469935),s=n.n(a),l=n(109841),u=n(318330);n(985650);var c=n(549644);class d extends r.PureComponent{renderLogo(e){return r.isValidElement(e)?e:null}render(){let{children:e,style:t,className:n,logo:i,text:o,link:a,linkOptions:c,prefixCls:d}=this.props,{isCollapsed:f}=this.context,p=s()(n,`${u.UX.PREFIX}-header`,{[`${u.UX.PREFIX}-header-collapsed`]:f}),h=r.createElement(r.Fragment,null,i?r.createElement("i",{className:`${u.UX.PREFIX}-header-logo`},this.renderLogo(i)):null,(0,l.Z)(o)||f?null:r.createElement("span",{className:`${u.UX.PREFIX}-header-text`},o),e);return"string"==typeof a&&(h=r.createElement("a",Object.assign({className:`${d}-header-link`,href:a},c),h)),r.createElement("div",{className:p,style:t},h)}}d.contextType=c.Z,d.propTypes={prefixCls:o().string,logo:o().oneOfType([o().string,o().object,o().node]),text:o().oneOfType([o().string,o().node]),children:o().node,style:o().object,className:o().string,link:o().string,linkOptions:o().object},d.defaultProps={prefixCls:u.UX.PREFIX},d.elementType="NavHeader"},992968:function(e,t,n){"use strict";n(706056),n(932651),n(490629),n(679308),n(374954);var r=n(390063),i=n.n(r),o=n(243392),a=n.n(o),s=n(198412),l=n.n(s),u=n(795233),c=n.n(u),d=n(22186),f=n.n(d),p=n(876553),h=n.n(p),g=n(101199),m=n(890710),b=n(469935),v=n.n(b),y=n(622689),w=n.n(y),x=n(230720),E=n(248848),O=n(864793),k=n(426337),S=n(235806),_=n(837423),C=n(297222),T=n(739541),A=n(640269),I=n(209873),R=n(619050),P=n(932083),L=n(181160),j=n(493272),N=n(551758),D=n(267983),M=n(975044),q=n(679895),Z=n(703473),$=n(180007),F=n(111748),z=n(877004),W=n(329206),V=n(343388),H=n(678503),U=n(155553);n(424719);var G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let B=O.UX.PREFIX;class X extends k.Z{get adapter(){var e=this;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),{registerKeyDown:e=>{this.setState({keyboardEventSet:{onKeyDown:e}})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:e=>{this.setState({focusIndex:e})},scrollToFocusOption:()=>{}}),{updateInputValue:e=>{this.setState({inputValue:e})},toggleInputShow:(e,t)=>{this.setState({showInput:e},()=>{t()})},focusInput:()=>{let{preventScroll:e}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:e})},focusDropdownInput:()=>{let{preventScroll:e}=this.props;this.dropdownInputRef&&this.dropdownInputRef.current&&this.dropdownInputRef.current.focus({preventScroll:e})}}),{notifyMaxLimit:e=>this.props.onExceed(e),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:e=>{let t=t=>{let n=this.optionsRef&&this.optionsRef.current,r=this.triggerRef&&this.triggerRef.current,i=m.findDOMNode(n),o=t.target,a=t.composedPath&&t.composedPath()||[o];!(i&&i.contains(o))&&!(r&&r.contains(o))&&!(a.includes(r)||a.includes(i))&&e(t)};this.clickOutsideHandler=t,document.addEventListener("mousedown",t,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:e}=this.state;e+=1,this.setState({optionKey:e})},notifyDeselect:(e,t)=>{delete t._parentGroup,this.props.onDeselect(e,t)}}),{on:(e,t)=>this.eventManager.on(e,t),off:e=>this.eventManager.off(e),once:(e,t)=>this.eventManager.once(e,t),emit:e=>this.eventManager.emit(e),getOptionsFromChildren:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.children,n=[],r=[],{optionList:i}=e.props;if(i&&i.length)r=i.map((e,t)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:t},e)),n[0]={children:r,label:""};else{let e=(0,N.r)(t);n=e.optionGroups,r=e.options}return e.setState({optionGroups:n}),r},updateOptions:e=>{this.setState({options:e})},openMenu:e=>{this.setState({isOpen:!0},()=>{null==e||e()})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{let e=this.triggerRef.current;return e&&e.getBoundingClientRect().width},setOptionWrapperWidth:e=>{this.setState({dropdownMinWidth:e})},updateSelection:e=>{this.setState({selections:e})},getSelections:()=>new Map(this.state.selections),notifyChange:e=>{this.props.onChange(e)},notifySelect:(e,t)=>{delete t._parentGroup,this.props.onSelect(e,t)},notifyDropdownVisibleChange:e=>{this.props.onDropdownVisibleChange(e)},notifySearch:(e,t)=>{this.props.onSearch(e,t)},notifyCreate:e=>{this.props.onCreate(e)},notifyMouseEnter:e=>{this.props.onMouseEnter(e)},notifyMouseLeave:e=>{this.props.onMouseLeave(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyBlur:e=>{this.props.onBlur(e)},notifyClear:()=>{this.props.onClear()},notifyListScroll:e=>{this.props.onListScroll(e)},updateHovering:e=>{this.setState({isHovering:e})},updateFocusState:e=>{this.setState({isFocus:e})},updateOverflowItemCount:e=>{this.setState({overflowItemCount:e})},focusTrigger:()=>{try{let{preventScroll:e}=this.props;this.triggerRef.current.focus({preventScroll:e})}catch(e){}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:e=>(0,H.GO)(e),getActiveElement:()=>(0,H.vY)(),setIsFocusInContainer:e=>{this.setState({isFocusInContainer:e})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:e=>{let t;"renderOptionItem"in this.props?(t=`.${B}-option-custom-selected`,void 0!==e&&(t=`.${B}-option-custom:nth-child(${e+1})`)):(t=`.${B}-option-selected`,void 0!==e&&(t=`.${B}-option:nth-child(${e+1})`));let n=document.querySelector(`#${B}-${this.selectOptionListID} ${t}`);if(Array.isArray(n)&&(n=n[0]),n){let e=n.parentNode;e.scrollTop=n.offsetTop-e.offsetTop-e.clientHeight/2+n.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=(0,U.Ms)(),this.selectID=this.props.id||(0,U.Ms)()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){let n=g.Children.toArray(e.children).map(e=>e.key),r=g.Children.toArray(this.props.children).map(e=>e.key),i=!1;(!h()(n,r)||!h()(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!h()(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderTriggerInput(){let{size:e,multiple:t,disabled:n,inputProps:r,filter:i}=this.props,o=l()(r,"className"),a=v()(`${B}-input`,{[`${B}-input-single`]:!t,[`${B}-input-multiple`]:t},o),{inputValue:s,focusIndex:u}=this.state,c=Object.assign({value:s,disabled:n,className:a,onChange:this.handleInputChange},r),d={};return t&&(d={width:s?`${16*s.length}px`:"2px"},c.style=d),g.createElement(M.Z,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":-1!==u?`${this.selectID}-option-${u}`:"",onFocus:e=>{t&&i&&this.setState({isFocus:!0}),e.stopPropagation()},onBlur:e=>this.foundation.handleInputBlur(e)},c))}renderDropdownInput(){let{size:e,multiple:t,disabled:n,inputProps:r,filter:i,searchPosition:o,searchPlaceholder:a}=this.props,{inputValue:s,focusIndex:u}=this.state,c=v()(`${B}-dropdown-search-wrapper`,{}),d=l()(r,"className"),f=Object.assign(Object.assign({value:s,disabled:n,className:v()(`${B}-dropdown-input`,{[`${B}-dropdown-input-single`]:!t,[`${B}-dropdown-input-multiple`]:t},d),onChange:this.handleInputChange,placeholder:a,showClear:!0},r),{onKeyDown:e=>this.foundation._handleKeyDown(e)});return g.createElement("div",{className:c},g.createElement(M.Z,Object.assign({ref:this.dropdownInputRef,prefix:g.createElement(z.Z,null),"aria-activedescendant":-1!==u?`${this.selectID}-option-${u}`:""},f)))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,n){this.foundation.onSelect(e,t,n)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return g.createElement(q.Z,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){let e=`${B}-loading-wrapper`;return g.createElement("div",{className:e},g.createElement($.Z,null))}renderOption(e,t,n){let r;let{focusIndex:i,inputValue:o}=this.state,{renderOptionItem:a}=this.props,s=t===i,l=n||{};return e.style&&(l=Object.assign(Object.assign({},l),e.style)),e._inputCreateOnly?r=this.renderCreateOption(e,s,t,n):("key"in e&&(e._keyInOptionList=e.key),r=g.createElement(q.Z,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(e,n)=>this.onSelect(e,t,n),focused:s,onMouseEnter:()=>this.onOptionHover(t),style:l,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:a,inputValue:o,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),r}renderCreateOption(e,t,n,r){let{renderCreateItem:i}=this.props;if(void 0===i)return g.createElement(q.Z,Object.assign({key:e.key||e.label+e.value,onSelect:(e,t)=>this.onSelect(e,n,t),onMouseEnter:()=>this.onOptionHover(n),showTick:!0},e,{focused:t,style:r}),g.createElement(I.Z,{componentName:"Select"},t=>g.createElement(g.Fragment,null,g.createElement("span",{className:`${B}-create-tips`},t.createText),e.value)));let o=i(e.value,t,r);return g.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:t=>this.onSelect(e,n,t),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){let t=[],n=new Map;return e.forEach((e,r)=>{let i=e._parentGroup,o=this.renderOption(e,r);if(i&&!n.has(i.label)){let e=g.createElement(Z.Z,Object.assign({},i,{key:i.label}));n.set(i.label,!0),t.push(e)}t.push(o)}),t}renderVirtualizeList(e){let{virtualize:t}=this.props,{direction:n}=this.context,{height:r,width:i,itemSize:o}=t;return g.createElement(j.t7,{ref:this.virtualizeListRef,height:r||O.KT.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:n}},D.Z)}renderOptions(e){let{dropdownMinWidth:t,options:n,selections:r}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:a,outerTopSlot:s,innerTopSlot:l,outerBottomSlot:u,innerBottomSlot:c,loading:d,virtualize:f,multiple:p,emptyContent:h,searchPosition:m,filter:b}=this.props,y=n.filter(e=>e._show),w=this.renderWithGroup(y);f&&(w=this.renderVirtualizeList(y));let x=Object.assign({minWidth:t},a),E=v()({[`${B}-option-list`]:!0,[`${B}-option-list-chosen`]:r.size}),k=!n.length||!n.some(e=>e._show);return g.createElement("div",{id:`${B}-${this.selectOptionListID}`,className:v()({[`${B}-option-list-wrapper`]:!(k&&null===h)},o),style:x,ref:this.setOptionContainerEl,onKeyDown:e=>this.foundation.handleContainerKeyDown(e)},s?g.createElement("div",{className:`${B}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},s):null,m===O.j2.SEARCH_POSITION_DROPDOWN&&b?this.renderDropdownInput():null,g.createElement("div",{style:{maxHeight:`${i}px`},className:E,role:"listbox","aria-multiselectable":p,onScroll:e=>this.foundation.handleListScroll(e)},l?g.createElement("div",{className:`${B}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,d?this.renderLoading():k?this.renderEmpty():w,c?g.createElement("div",{className:`${B}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null),u?g.createElement("div",{className:`${B}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null)}renderSingleSelection(e,t){let{renderSelectedItem:n,searchPosition:r}=this.props,{placeholder:i}=this.props,{showInput:o,inputValue:a}=this.state,s="",l=[...e];void 0===n&&(n=e=>e.label),l.length&&(s=n(l[0][1]));let u=r===O.j2.SEARCH_POSITION_TRIGGER,c=v()({[`${B}-selection-text`]:!0,[`${B}-selection-placeholder`]:!s&&0!==s,[`${B}-selection-text-hide`]:a&&o&&u,[`${B}-selection-text-inactive`]:!a&&o&&u}),d=`${B}-content-wrapper`;return g.createElement(g.Fragment,null,g.createElement("div",{className:d},g.createElement("span",{className:c,"x-semi-prop":"placeholder"},s||0===s?s:i),t&&o&&u?this.renderTriggerInput():null))}renderTag(e,t,n){let{size:r,disabled:o}=this.props,{renderSelectedItem:a}=this.props,s=e[0],{value:l}=e[1],u=e[1].disabled||o,c=(e,t)=>{t&&"function"==typeof t.preventDefault&&t.preventDefault(),this.foundation.removeTag({label:s,value:l})};void 0===a&&(a=e=>({isRenderInTag:!0,content:e.label}));let{content:d,isRenderInTag:f}=a(e[1],{index:t,disabled:u,onClose:c}),p=n&&!i()(this.props.renderSelectedItem)?g.createElement(A.Z,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?g.createElement(S.Z,Object.assign({},{disabled:u,closable:!u,onClose:c},{color:"white",size:r||"large",key:l,style:{maxWidth:"100%"}}),p):g.createElement(g.Fragment,{key:l},p)}renderNTag(e,t){let{size:n,showRestTagsPopover:r,restTagsPopoverProps:i}=this.props,o=g.createElement(S.Z,{closable:!1,size:n||"large",color:"grey",className:`${B}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return r&&(o=g.createElement(R.Z,Object.assign({showArrow:!0,content:g.createElement(T.Z,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((e,t)=>this.renderTag(e,t))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){let{overflowItemCount:t,selections:n}=this.state,{maxTagCount:r}=this.props,i=n.size-r>0?n.size-r+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(n.size,i)}renderCollapsedTags(e,t){let{overflowItemCount:n}=this.state,r="number"==typeof t?e.slice(0,t):e;return g.createElement("div",{className:`${B}-content-wrapper-collapse`},g.createElement(C.Z,{items:r,key:String(e.length),overflowRenderer:e=>this.renderOverflow(e,t-1),onOverflow:e=>this.handleOverflow(e),visibleItemRenderer:(e,t)=>this.renderTag(e,t)}),n>0&&this.renderNTag(n,e.slice(e.length-n)))}renderOneLineTags(e,t){let n,{renderSelectedItem:r}=this.props,{showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a}=this.props,{isFullTags:s}=this.state;if(void 0===r&&(r=e=>({isRenderInTag:!0,content:e.label})),i){let l=(s?e:e.slice(0,a)).map((e,t)=>this.getTagItem(e,t,r));n=g.createElement(_.Z,{tagList:l,maxTagCount:t,restCount:s?void 0:e.length-a,size:"large",mode:"custom",showPopover:i,popoverProps:o,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{let i=e.slice(0,a).map((e,t)=>this.getTagItem(e,t,r));n=g.createElement(_.Z,{tagList:i,maxTagCount:t,restCount:e.length-a,size:"large",mode:"custom"})}return n}renderMultipleSelection(e,t){let{renderSelectedItem:n,searchPosition:r}=this.props,{placeholder:i,maxTagCount:o,expandRestTagsOnClick:a,ellipsisTrigger:s}=this.props,{inputValue:l,isOpen:u}=this.state,c=[...e];void 0===n&&(n=e=>({isRenderInTag:!0,content:e.label}));let d=v()({[`${B}-content-wrapper`]:!0,[`${B}-content-wrapper-one-line`]:o&&!u,[`${B}-content-wrapper-empty`]:!c.length}),f=v()({[`${B}-selection-text`]:!0,[`${B}-selection-placeholder`]:!c.length,[`${B}-selection-text-hide`]:c&&c.length}),p=i&&!l?g.createElement("span",{className:f},i):null,h=c.length>o?o:void 0,m=!o,b=s?this.renderCollapsedTags(c,h):this.renderOneLineTags(c,h),y=m||a&&u?c.map((e,t)=>this.renderTag(e,t)):b,w=t&&r===O.j2.SEARCH_POSITION_TRIGGER;return g.createElement(g.Fragment,null,g.createElement("div",{className:d},c&&c.length?y:p,w?this.renderTriggerInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){let{virtualize:t}=this.props,{selections:n}=this.state;if(!!e)if(t){let e=-1;if(n.forEach(t=>{let n=l()(t,"_scrollIndex");a()(n)&&n>=0&&(e=-1!==e&&ethis.foundation.removeTag(e),onClear:this.onClear,disabled:t,triggerRender:h,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[g.createElement(g.Fragment,{key:"prefix"},d||f?this.renderPrefix():null),g.createElement(g.Fragment,{key:"selection"},g.createElement("div",{className:v()(`${B}-selection`)},n?this.renderMultipleSelection(x,I):this.renderSingleSelection(x,I))),g.createElement(g.Fragment,{key:"suffix"},c?this.renderSuffix():null),g.createElement(g.Fragment,{key:"clearicon"},P?g.createElement("div",{className:v()(`${B}-clear`),onClick:this.onClear},j):L)],D=t||I&&C||I&&n?-1:0;return g.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":E,"aria-controls":`${B}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":x.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:R,ref:e=>this.triggerRef.current=e,onClick:e=>this.foundation.handleClick(e),style:i,id:this.selectID,tabIndex:D,"aria-activedescendant":-1!==T?`${this.selectID}-option-${T}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:e=>this.foundation.handleTriggerFocus(e),onBlur:e=>this.foundation.handleTriggerBlur(e),onKeyPress:this.onKeyPress},O,this.getDataAttr(w)),N)}render(){let{direction:e}=this.context,{children:t,position:n="rtl"===e?"bottomRight":"bottomLeft",zIndex:r,getPopupContainer:i,motion:o,autoAdjustOverflow:a,mouseLeaveDelay:s,mouseEnterDelay:l,spacing:u,stopPropagation:c,dropdownMargin:d}=this.props,{isOpen:f,optionKey:p}=this.state,h=this.renderSelection();return g.createElement(R.Z,{getPopupContainer:i,motion:o,margin:d,autoAdjustOverflow:a,mouseLeaveDelay:s,mouseEnterDelay:l,zIndex:r,ref:this.optionsRef,content:()=>this.renderOptions(t),visible:f,trigger:"custom",rePosKey:p,position:n,spacing:u,stopPropagation:c,disableArrowKeyDown:!0,onVisibleChange:e=>this.handlePopoverVisibleChange(e),afterClose:()=>this.foundation.handlePopoverClose()},h)}constructor(e){super(e),this.setOptionContainerEl=e=>this.optionContainerEl={current:e},this.handleInputChange=(e,t)=>this.foundation.handleInputChange(e,t),this.getTagItem=(e,t,n)=>{let{size:r,disabled:i}=this.props,o=e[0],{value:a}=e[1],s=e[1].disabled||i,l=(e,t)=>{t&&"function"==typeof t.preventDefault&&t.preventDefault(),this.foundation.removeTag({label:o,value:a})},{content:u,isRenderInTag:c}=n(e[1],{index:t,disabled:s,onClose:l});return c?g.createElement(S.Z,Object.assign({},{disabled:s,closable:!s,onClose:l},{color:"white",size:r||"large",key:a,tabIndex:-1}),u):g.createElement(g.Fragment,{key:a},u)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:0,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=g.createRef(),this.inputRef=g.createRef(),this.dropdownInputRef=g.createRef(),this.triggerRef=g.createRef(),this.optionsRef=g.createRef(),this.optionContainerEl=g.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new L.Z,this.foundation=new E.Z(this.adapter)}}X.contextType=x.Z,X.Option=q.Z,X.OptGroup=Z.Z,X.propTypes={"aria-describedby":w().string,"aria-errormessage":w().string,"aria-invalid":w().bool,"aria-labelledby":w().string,"aria-required":w().bool,autoFocus:w().bool,autoClearSearchValue:w().bool,borderless:w().bool,children:w().node,clearIcon:w().node,defaultValue:w().oneOfType([w().string,w().number,w().array,w().object]),ellipsisTrigger:w().bool,value:w().oneOfType([w().string,w().number,w().array,w().object]),placeholder:w().node,onChange:w().func,multiple:w().bool,filter:w().oneOfType([w().func,w().bool]),max:w().number,maxTagCount:w().number,maxHeight:w().oneOfType([w().string,w().number]),style:w().object,className:w().string,size:w().oneOf(O.j2.SIZE_SET),disabled:w().bool,emptyContent:w().node,expandRestTagsOnClick:w().bool,onDropdownVisibleChange:w().func,zIndex:w().number,position:w().oneOf(O.j2.POSITION_SET),onSearch:w().func,getPopupContainer:w().func,dropdownClassName:w().string,dropdownStyle:w().object,dropdownMargin:w().oneOfType([w().number,w().object]),outerTopSlot:w().node,innerTopSlot:w().node,inputProps:w().object,outerBottomSlot:w().node,innerBottomSlot:w().node,optionList:w().array,dropdownMatchSelectWidth:w().bool,loading:w().bool,defaultOpen:w().bool,validateStatus:w().oneOf(O.j2.STATUS),defaultActiveFirstOption:w().bool,triggerRender:w().func,stopPropagation:w().bool,searchPosition:w().string,motion:w().bool,onChangeWithObject:w().bool,suffix:w().node,prefix:w().node,insetLabel:w().node,insetLabelId:w().string,showClear:w().bool,showArrow:w().bool,renderSelectedItem:w().func,allowCreate:w().bool,renderCreateItem:w().func,onMouseEnter:w().func,onMouseLeave:w().func,clickToHide:w().bool,onExceed:w().func,onCreate:w().func,remote:w().bool,onDeselect:w().func,onSelect:w().func,autoAdjustOverflow:w().bool,mouseEnterDelay:w().number,mouseLeaveDelay:w().number,spacing:w().oneOfType([w().number,w().object]),onBlur:w().func,onFocus:w().func,onClear:w().func,virtualize:w().object,renderOptionItem:w().func,onListScroll:w().func,arrowIcon:w().node,preventScroll:w().bool},X.__SemiComponentName__="Select",X.defaultProps=(0,H.GW)(X.__SemiComponentName__,{stopPropagation:!0,motion:!0,borderless:!1,zIndex:P.KT.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:c(),onChangeWithObject:!1,onChange:c(),onSearch:c(),onMouseEnter:c(),onMouseLeave:c(),onDeselect:c(),onSelect:c(),onCreate:c(),onExceed:c(),onFocus:c(),onBlur:c(),onClear:c(),onListScroll:c(),maxHeight:O.KT.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,searchPosition:O.j2.SEARCH_POSITION_TRIGGER,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:g.createElement(V.Z,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1}),t.Z=X},801930:function(e,t,n){"use strict";n.d(t,{l:function(){return o},z:function(){return a}});var r=n(622689),i=n.n(r);let o={panelHeader:i().oneOfType([i().node,i().string]),panelFooter:i().oneOfType([i().node,i().string])},a={}},792210:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}}),n(527553);var r=n(198412),i=n.n(r),o=n(101199),a=n(622689),s=n.n(a),l=n(261341),u=n(57559);let c=l.UX.PREFIX;class d extends o.PureComponent{componentDidMount(){let{height:e}=this.state;if("number"==typeof e)return}render(){let{children:e,defaultWidth:t,defaultHeight:n}=this.props,{height:r}=this.state,i=!1;return(0===r||"number"!=typeof r)&&(i=!0),o.createElement(u.Z,{observeParent:!0,onResize:this._onResize},o.createElement("div",{style:{height:n,overflow:"visible"},className:`${c}-auto-wrapper`},!i&&e({height:r,width:t})))}constructor(e){super(e),this._onResize=e=>{let t=e&&e[1]&&e[1].target;if(t){let e=i()(t,"offsetHeight")||0,n=window.getComputedStyle(t)||{},r=parseInt(i()(n,"paddingTop"),10)||0,o=parseInt(i()(n,"paddingBottom"),10)||0;this.state.height!==e-r-o&&this.setState({height:e-r-o})}},this.state={height:this.props.defaultHeight||0}}}d.propTypes={defaultHeight:s().oneOfType([s().number,s().string]),defaultWidth:s().oneOfType([s().number,s().string])},d.defaultProps={defaultHeight:"100%",defaultWidth:"100%"}},306607:function(e,t,n){"use strict";function r(e,t){let n=0,r=e.length-1,i=0,o=0,a=r;for(t=e[i]&&t{e?r.buffer=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r>8&255,255&e])}static writeUint32(e){return new Uint8Array([e>>24,e>>16&255,e>>8&255,255&e])}constructor(){this.buffer=new Uint8Array(0)}}},403278:function(e,t,n){"use strict";function r(e){let t={};return null==e||e.forEach((e,n)=>{t[n]=e}),t}n.d(t,{u8:function(){return r}}),n(374954),n(490629),n(190932),n(808483),n(126159),n(100832),n(825666),n(943281),n(82726),n(591964),n(76375),n(14275),n(759943)},441779:function(e,t,n){"use strict";function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise(t=>setTimeout(t,e))}n.d(t,{_:function(){return r}}),n(679308)},894140:function(e,t,n){"use strict";n.d(t,{Dc:function(){return s},Lx:function(){return a},Zy:function(){return u},eY:function(){return c},vH:function(){return l}}),n(706056),n(679308),n(414931);var r=n(783696),i=n(511979),o=n(282132);let a=new i.C("playerActxs");function s(e,t){let n=[r.b.FLV,r.b.RTM,r.b.RTM_WEBTS].includes(t.protocol),{sampleRate:i,heAAC:o,channelCount:s}=e,l=a.getIdleTracks(o&&n?2*i:i,s).filter(e=>void 0===e.isLive||(!!t.audioWorkerLetInWorker||!e.writableNeutered)&&e.isLive===n);if(l.length){let e=l[0];if(!e)return;return e.setEnabled?e.setEnabled(!0):e.track&&(e.track.enabled=!0),void 0===e.isLive&&(e.isLive=n),e}}async function l(e,t){let{protocol:n}=t,i=s(e,t);if(i)return i;let{sampleRate:o,heAAC:a,channelCount:l}=e,c=a&&[r.b.FLV,r.b.RTM,r.b.RTM_WEBTS].includes(n)?2*o:o,d=await u({sampleRate:c,channelCount:l,latencyHint:function(e){let t=null==e?void 0:e.audioCtxLatencyHint;if("interactive"===t||"balanced"===t||"playback"===t||"number"==typeof t&&Number.isFinite(t)&&t>=0)return t}(t)});return d&&n&&(d.isLive=[r.b.FLV,r.b.RTM,r.b.RTM_WEBTS].includes(n)),d}async function u(e){let t,{sampleRate:n,channelCount:r,latencyHint:i}=e,s={sampleRate:n};void 0!==i&&(s.latencyHint=i);let l=new AudioContext(s);l.suspend();let u=l.createMediaStreamDestination(),c=u.stream.getAudioTracks()[0],d=(null==c?void 0:c.id)||`audio-track-${Math.random().toString(36).slice(2)}`,f=await (0,o.Z)(l,{trackId:d});if(!f)return;let p=new OscillatorNode(l,{type:"sine",channelCount:r||2,channelCountMode:"explicit",channelInterpretation:"speakers"}),h=l.createGain();h.gain.value=0,h.connect(l.destination);p.connect(f),p.start();let g={id:d,track:c,writable:f.port,writableNeutered:!1,ctx:l,workletNode:f,disconnect:function(){try{null==u||u.disconnect(),null==h||h.disconnect(),null==f||f.disconnect(),p.stop(),p.disconnect()}catch(e){}},setEnabled(e){c&&(c.enabled=e)},setOutput:function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];t!==e&&("mediaStream"===t?f.disconnect(u):"audioContext"===t&&f.disconnect(h),"mediaStream"===e?f.connect(u):"audioContext"===e&&f.connect(h),t=e),h.gain.value="audioContext"!==e||r?0:n},source:p,gainNode:h,sampleRate:l.sampleRate,channelCount:(null==c?void 0:c.getSettings().channelCount)||r||0,isLive:void 0};return a.register(g),g}function c(){let e=new MediaStreamTrackGenerator({kind:"video"});return{track:e,writable:e.writable}}},601820:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});let r=["default","error","warning","success"]},88204:function(e,t,n){"use strict";n.d(t,{KT:function(){return s},UX:function(){return o},j2:function(){return a}});var r=n(236913),i=n(707852);let o={PREFIX:`${i.T}-dropdown`,SELECTED:`${i.T}-dropdown-item-selected`,DISABLED:`${i.T}-dropdown-item-disabled`},a={POSITION_SET:r.j2.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},s={SPACING:4,NESTED_SPACING:2}},588799:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(707852);let i={PREFIX:`${r.T}-highlight`}},262149:function(e,t,n){"use strict";n.d(t,{KT:function(){return a},UX:function(){return i},j2:function(){return o}});var r=n(707852);let i={WRAPPER:`${r.T}-notification-wrapper`,LIST:`${r.T}-notification-list`,NOTICE:`${r.T}-notification-notice`},o={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},a={duration:3}},938631:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(480333),i=n(629686),o=n(402748);n(490629),n(228983),n(759943),n(706056),n(362051),n(932651);var a=n(299690),s=n(268474);class l{config(e){window.collectEvent(`${this._name}.config`,e)}event(e,t){window.collectEvent(`${this._name}.${e}`,t)}init(e){window.collectEvent(`${this._name}.init`,e)}start(){window.collectEvent(`${this._name}.start`)}constructor(e){this._name=e}}let u=1;class c{get videoSize(){if(!this._player)return{width:0,height:0,play_width:0,play_height:0};let{clientWidth:e,clientHeight:t,videoWidth:n,videoHeight:r}=this._player;return{width:n,height:r,play_width:e,play_height:t}}initTea(e){let{TeaCtor:t=l}=e,n=this._Tea=new t(`douyin-player-logger-${u++}`),{user_unique_id:r,teaInitPre:i,user_id:o,device_id:a}=e;i&&i(n),n.init({app_id:7497}),n.start(),n.config({user_unique_id:r||o,device_id:a})}push(e){var t,n,r,l,u,c,d;e.timestamp=(0,s.Xn)(),(e=(0,o._)((0,i._)({},e,this.videoSize),{core_type:this._player.srcObject?"mediastream":"media"})).play_current_time=this._player.currentTime,e.cdn_play_url=this._player.src;try{let i;let o=null===(r=this._player)||void 0===r?void 0:null===(n=r.config)||void 0===n?void 0:null===(t=n.baseConfig)||void 0===t?void 0:t.protocol;if(o===a.b$.RTM?i=null===(u=this._player)||void 0===u?void 0:null===(l=u._rtmPreloader)||void 0===l?void 0:l.url:o===a.b$.RTM_WEBTS&&(i=null===(c=this._player)||void 0===c?void 0:c._rtmWebTsPreloadUrl),"string"==typeof i&&i){let[t]=i.split("?");t&&e.cdn_play_url.includes(t)&&(e.cdn_play_url=i)}}catch(e){}if(!!e.cdn_play_url){{e.live_stream_session_id=(0,s.pf)(e.cdn_play_url,"_session_id"),e.random_session_id=+e.cdn_play_url.includes("rsi=0");let{url:t,protocol:n,abr:r}=(null===(d=this._player.config)||void 0===d?void 0:d.baseConfig)||{};e.play_format=(0,s.l6)(e.cdn_play_url,n);try{e.base_config=JSON.stringify({url:t,protocol:n,abr:r})}catch(e){}}e.visible=document.visibilityState,e.muted=+this._player.muted,e.volume=this._player.volume,Object.assign(e,(0,s.dz)(),this.commonParams),this.send(e)}}send(e){var t;if(null===(t=this.isDisableReport)||void 0===t?!void 0:!t.call(this,e.event_key,e,this._player))this.onReport&&this.onReport(e.event_key,e,this._player),this._Tea.event(e.event_key,e)}constructor(e,t){(0,r._)(this,"commonParams",void 0),(0,r._)(this,"_player",void 0),(0,r._)(this,"onReport",void 0),(0,r._)(this,"isDisableReport",void 0),(0,r._)(this,"updateCommonParams",e=>{Object.assign(this.commonParams,e)}),this.initTea(e),this.commonParams=t,this.onReport=e.onReport,this.isDisableReport=e.isDisableReport,this._player=e.player}}},292948:function(e,t,n){"use strict";n.d(t,{PZ:function(){return o.P},Sy:function(){return r.S},di:function(){return i.d}});var r=n(848522),i=n(443238),o=n(818266)},882626:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var r=n(151950);function i(e,t,n){(0,r._)(e,t),t.set(e,n)}},400423:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(574392);function i(e,t){let n;let i=e.data&&e.data.estree,o=i&&i.comments||[];i&&(t.comments.push(...o),(0,r.S)(i,i.comments),n=i.body[0]&&"ExpressionStatement"===i.body[0].type&&i.body[0].expression||void 0),!n&&(n={type:"JSXEmptyExpression"},t.patch(e,n));let a={type:"JSXExpressionContainer",expression:n};return t.inherit(e,a),a}},224760:function(e,t,n){"use strict";function r(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}n.d(t,{A:function(){return r}})},301961:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(900312),i=n(423882);function o(e,t){let n=String(t.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return(0,i.C)(e,t);let a={href:(0,r.F)(o.url||"")};null!==o.title&&void 0!==o.title&&(a.title=o.title);let s={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}},730396:function(e,t,n){"use strict";function r(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length,s=-1,l=[];for(;++s{let{children:t,fallback:n}=e,[o,a]=(0,i.useState)(!1);return((0,i.useEffect)(()=>a(!0),[]),o)?t:null!=n?n:(0,r.jsx)(r.Fragment,{})}},925846:function(e,t,n){"use strict";n.r(t),n.d(t,{useRouteCacheManager:function(){return o}});var r=n(101199),i=n(187345);n(320165);let o=()=>(0,r.useContext)(i.RouteCacheMangerContext)||{}}}]);