douxiaoyun.js/profiles/douyin-profile/Default/Cache/Cache_Data/f_0003a6
2026-07-17 22:23:39 +08:00

23 lines
111 KiB
Plaintext

/*! For license information please see 30672.a0dde194.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,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function i(e,t,i){if(i||2==arguments.length)for(var r,n=0,s=t.length;n<s;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}var r=/[^a-zA-Z0-9\\_:.-]/gim,n=/</g,s=/>/g,o=/&#([a-zA-Z0-9]*);?/gim,a=/&quot;/g,l=/&colon;?/gim,c=/&newline;?/gim,u=/((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,h=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,f=/"/g,p=function(e){return e.replace(n,"&lt;").replace(s,"&gt;")},m={indexOf:function(e,t){var i,r;for(i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return -1},forEach:function(e,t,i){var r,n;for(r=0,n=e.length;r<n;r++)t.call(i,e[r],r,e)},some:function(e,t,i){var r,n;for(r=0,n=e.length;r<n;r++)if(t.call(i,e[r],r,e))return!0;return!1},trim:function(e){return e.replace(/(^\s*)|(\s*$)/g,"")},includes:function(e,t){if("string"==typeof e)return -1!==e.indexOf(t);for(var i=0;i<e.length;i++)if(e[i]===t)return!0;return!1},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1},uniq:function(e){for(var t={},i=[],r=0;r<e.length;r++)t[e[r]]||(i.push(e[r]),t[e[r]]=!0);return i},from:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i]);return t},keys:function(e){var t=[];for(var i in e)t.push(i);return t}};function g(e){return null==e}function v(e){var t;return'"'===(t=e)[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]?e.substr(1,e.length-2):e}function _(e){var t,i,r,n,s,o,a,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;for(e=function(e){e=e.replace(/rn/g,"n");for(var t="",i=0;i<e.length;i++){var r=e.charCodeAt(i);r<128?t+=String.fromCharCode(r):r>127&&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);u<e.length;)n=(t=e.charCodeAt(u++))>>2,s=(3&t)<<4|(i=e.charCodeAt(u++))>>4,o=(15&i)<<2|(r=e.charCodeAt(u++))>>6,a=63&r,isNaN(i)?o=a=64:isNaN(r)&&(a=64),c=c+l.charAt(n)+l.charAt(s)+l.charAt(o)+l.charAt(a);return c}function y(e){var t,i,r,n,s,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",c=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");c<e.length;)t=a.indexOf(e.charAt(c++))<<2|(n=a.indexOf(e.charAt(c++)))>>4,i=(15&n)<<4|(s=a.indexOf(e.charAt(c++)))>>2,r=(3&s)<<6|(o=a.indexOf(e.charAt(c++))),l+=String.fromCharCode(t),64!==s&&(l+=String.fromCharCode(i)),64!==o&&(l+=String.fromCharCode(r));return function(e){for(var t="",i=0,r=0,n=0,s=0;i<e.length;)(r=e.charCodeAt(i))<128?(t+=String.fromCharCode(r),i++):r>191&&r<224?(t+=String.fromCharCode((31&r)<<6|63&(s=e.charCodeAt(i+1))),i+=2):(s=e.charCodeAt(i+1),t+=String.fromCharCode((15&r)<<12|(63&s)<<6|63&(n=e.charCodeAt(i+2))),i+=3);return t}(l)}function b(e,t,i){var r="",n=0,s=!1,o=!1,a=0,l=e.length,c="",u="";e:for(a=0;a<l;a++){var d=e.charAt(a);if(!1===s){if("<"===d){s=a;continue}}else if(!1===o){if("<"===d){r+=i(e.slice(n,a)),s=a,n=a;continue}if(">"===d||a===l-1){r+=i(e.slice(n,s)),c=function(e){var t,i=m.spaceIndex(e);return t=-1===i?e.slice(1,-1):e.slice(1,i+1),"/"===(t=m.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}(u=e.slice(s,a+1)),r+=t(s,r.length,c,u,"</"===u.slice(0,2)),n=a+1,s=!1;continue}if('"'===d||"'"===d)for(var h=1,f=e.charAt(a-h);""===f.trim()||"="===f;){if("="===f){o=d;continue e}f=e.charAt(a-++h)}}else if(d===o){o=!1;continue}}return n<l&&(r+=i(e.substr(n))),r}function w(e,t){var i=0,n=0,s=[],o=!1,a=e.length;function l(e,i){if(!((e=(e=m.trim(e)).replace(r,"").toLowerCase()).length<1)){var n=t(e,i||"");n&&s.push(n)}}for(var c=0;c<a;c++){var u=e.charAt(c),d=void 0;if(!1!==o||"="!==u){if(!1===o||c!==n){if(/\s|\n|\t/.test(u)){if(e=e.replace(/\s|\n|\t/g," "),!1===o){if(-1===(d=function(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"="===i?t:-1}return -1}(e,c))){l(m.trim(e.slice(i,c))),o=!1,i=c+1;continue}c=d-1;continue}if(-1===(d=function(e,t){for(;t>0;t--){var i=e[t];if(" "!==i)return"="===i?t:-1}return -1}(e,c-1))){l(o,v(m.trim(e.slice(i,c)))),o=!1,i=c+1;continue}}}else{if(-1===(d=e.indexOf(u,c+1)))break;l(o,m.trim(e.slice(n+1,d))),o=!1,i=(c=d)+1}}else o=e.slice(i,c),i=c+1,n='"'===e.charAt(i)||"'"===e.charAt(i)?i:function(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"'"===i||'"'===i?t:-1}return -1}(e,c+1)}return i<e.length&&(!1===o?l(e.slice(i)):l(o,v(m.trim(e.slice(i))))),m.trim(s.join(" "))}function E(e,t,i){if(i=function(e){return e=function(e){for(var t="",i=0,r=e.length;i<r;i++)t+=32>e.charCodeAt(i)?" ":e.charAt(i);return m.trim(t)}(e=(e=(e=e.replace(a,'"')).replace(o,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(c," "))}(i),"href"===t||"src"===t){if("#"===(i=m.trim(i)))return"#";if("http://"!==i.substr(0,7)&&"https://"!==i.substr(0,8)&&"mailto:"!==i.substr(0,7)&&"tel:"!==i.substr(0,4)&&"data:image/"!==i.substr(0,11)&&"ftp://"!==i.substr(0,6)&&"./"!==i.substr(0,2)&&"../"!==i.substr(0,3)&&"#"!==i[0]&&"/"!==i[0])return""}else if("background"===t){if(u.lastIndex=0,u.test(i))return""}else if("style"===t&&(h.lastIndex=0,h.test(i)||(d.lastIndex=0,d.test(i)&&(u.lastIndex=0,u.test(i)))))return"";return i=function(e){return e=p(e=e.replace(f,"&quot;"))}(i)}var R=function(e){return"string"==typeof e?e.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},S=function(){function e(e){var t=function(e){var t={};for(var i in e)t[i]=e[i];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=p,this.options=Object.assign(t,e)}return e.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t,i,r,n,s,o,a=this.options,l=a.whiteList,c=a.onTag,u=a.onIgnoreTag,d=a.onTagAttr,h=a.onIgnoreTagAttr,f=a.safeAttrValue,p=a.escapeHtml;a.stripBlankChar&&(e=(t=(t=e.split("")).filter(function(e){var t=e.charCodeAt(0);return!(127===t||t<=31&&10!==t&&13!==t)})).join("")),a.allowCommentTag||(e=function(e){for(var t="",i=0;i<e.length;){var r=e.indexOf("\x3c!--",i);if(-1===r){t+=e.slice(i);break}t+=e.slice(i,r);var n=e.indexOf("--\x3e",r);if(-1===n)break;i=n+3}return t}(e));var g=!1;a.stripIgnoreTagBody&&(i=a.stripIgnoreTagBody,"function"!=typeof(r=u)&&(r=function(){}),n=!Array.isArray(i),s=[],o=!1,u=(g={onIgnoreTag:function(e,t,a){var l;if(l=e,n||-1!==m.indexOf(i,l)){if(a.isClosing){var c="[/removed]",u=a.position+c.length;return s.push([!1!==o?o:a.position,u]),o=!1,c}return o||(o=a.position),"[removed]"}return r(e,t,a)},remove:function(e){var t="",i=0;return m.forEach(s,function(r){t+=e.slice(i,r[0]),i=r[1]}),t+=e.slice(i)}}).onIgnoreTag);var v=b(e,function(e,t,i,r,n){var s={sourcePosition:e,position:t,isClosing:n,isWhite:Object.prototype.hasOwnProperty.call(l,i)},o=c(i,r,s);if(null!=o)return o;if(s.isWhite){if(s.isClosing)return"</".concat(i,">");var a=function(e){var t=m.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var i="/"===(e=m.trim(e.slice(t+1,-1)))[e.length-1];return i&&(e=m.trim(e.slice(0,-1))),{html:e,closing:i}}(r),g=l[i],v=w(a.html,function(e,t){var r=-1!==m.indexOf(g,e),n=d(i,e,t,r);return null==n?r?(t=f(i,e,t,null))?"".concat(e,'="').concat(t,'"'):e:null==(n=h(i,e,t,r))?void 0:n:n});return r="<".concat(i),v&&(r+=" ".concat(v)),a.closing&&(r+=" /"),r+=">"}return null==(o=u(i,r,s))?p(r):o},p);return g&&(v=g.remove(v)),v},e}(),x=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")(),L=new(function(){function e(){var e=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var t,i,r="douyin_web";if(!m.includes(r,"bid"))return r;if(e.config&&e.config.bid)return e.config.bid;if(x&&x._xssBid)return x._xssBid;if(x&&x.slardar&&"function"==typeof x.slardar.config){var n=(x.slardar.config()||{}).bid;if(n)return n}if(x&&x.Slardar&&"function"==typeof x.Slardar.config){var s=(x.Slardar.config()||{}).bid;if(s)return s}return(null===(i=null===(t=null==x?void 0:x.Slardar)||void 0===t?void 0:t._baseParams)||void 0===i?void 0:i.bid)||"argus"},this.getConfigRegion=function(){var t;return m.includes("cn","region")?e.config&&e.config.region?e.config.region:((null===(t=null==x?void 0:x.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 i=e.batchData.slice(0,100);e.batchData=e.batchData.slice(100),x.fetch(t,{method:"post",body:JSON.stringify(i),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(x.fetch&&e.collectKey){var i="object"==typeof window?window.location.href:"SSR";e.documentUrl=i;var r={age:Math.floor(Date.now()),type:"xss",url:i,body:e,"user-agent":""};"enforce"===e.disposition&&"SSR"!==i||(r.url=t),"SSR"===i&&(r.url="SSR___".concat(r.url),r.body.ssr=!0),this.push(r)}},e}()),T=function(e){for(var t=0,i=function(i){Array.isArray(e[i])?0===e[i].length?delete e[i]:(e[i]=m.from(m.uniq(e[i])),t+=e[i].length):0===m.keys(e[i]).length?delete e[i]:m.keys(e[i]).forEach(function(r){e[i][r]=m.from(m.uniq(e[i][r])),t+=e[i][r].length})},r=0,n=m.keys(e);r<n.length;r++)i(n[r]);return{count:t,ret:e}};function C(e,t){return L.setConfig(t),new S(t).process(e)}function P(e){var t,i=(t=/\s|\n|\t/.exec(e))?t.index:-1;if(-1===i)return{html:"",closing:"/"===e[e.length-2]};var r="/"===(e=e.slice(i+1,-1).trim())[e.length-1];return r&&(e=e.slice(0,-1).trim()),{html:e,closing:r}}var k=function(e){return -1===(e=(e=(e=(e=e.replace(/&colon;/gi,":")).replace(/&tab;/gi,"")).replace(/&newline;/gi,"")).replace(/(\t|\n|\r)/g,"")).indexOf("&#")?e.trim().toLowerCase():e.trim().replace(/&#(?:(x)([0-9a-f]+)|([0-9]+));?/gi,function(e,t,i,r){return String.fromCharCode(t?parseInt(i,16):parseInt(r))}).replace(/(\t|\n|\r)/g,"").toLowerCase()};function A(e,t){if(void 0===e&&(e=""),"string"!=typeof e)return!0;if(e=k(e),m.includes(e,"base64")&&!function(e){if(""===e||""===e.trim())return!0;try{return!m.includes(e,"data:text/html;base64")}catch(e){return!0}}(e))return t&&t("data:text/html;base64"),!1;var i=["expression(","behavior:","view-source:"];if(m.some(i,function(t){return -1!==e.indexOf(t)}))return m.forEach(i,function(i){-1!==e.indexOf(i)&&t&&t(i)}),!1;var r=["data:application","data:javascript","data:text/html","data:texthtml"];if(m.some(r,function(t){return -1!==e.indexOf(t)}))return m.forEach(r,function(i){-1!==e.indexOf(i)&&t&&t(i)}),!1;if(e.indexOf("javascript:")>0)return t&&t("javascript:"),!1;if(/^javascript:/i.test(e)){var n=e.slice(11).replace(/\s/g,"").trim();return!!m.some(["void","void(0)","void0","false","undefined",";"],function(e){return e===n})||(t&&t("javascript:"),!1)}return!0}var O=function(e,t){var i,r,n="<%= isSaveValidUrl =>";if("string"!=typeof e||(r=Number("<%= urlLimit =>"),void 0!==i&&(r=i),"NaN"!==e.toString()&&-1!==r&&e.length>=r)||A(e,t))return e;try{if(!0===(n=JSON.parse(n))||"true"===n){var s=new URL(e);return s.origin+s.pathname}}catch(e){}return"#"};function I(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=[]),"string"!=typeof e)return!0;if(!A(e=k(e)))return!1;var n,s={url:(n=e.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:n[1],slash:n[2],host:n[3],port:n[4],path:n[5],query:n[6],hash:n[7]},o=s.scheme,a=s.host;return r?!!r(e):!(!o||!a)&&(!m.includes(["http","https","file"],o)||("object"==typeof window&&window&&(t=i(i([],t,!0),[location.host],!1)),m.some(t,function(e){return!!(e instanceof RegExp&&e.test(a))||e===a})))}var M={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:[]},D={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var e=T(this.collect),t=e.count,i=e.ret;return this.collect=null,{collectKey:0===t?null:JSON.stringify(i),collectMode:"white"}},onIgnoreTagAttr:function(e,t,r){return e&&m.indexOf(["href","src"],t)>-1?D.domainWhiteList&&Array.isArray(D.domainWhiteList)&&D.domainWhiteList.length>0&&!I(r,i([],D.domainWhiteList,!0))?"":"".concat(t,'="').concat(O(r,function(e){var t;null===(t=D.collect)||void 0===t||t.filterProtocol.push(e)}),'"'):e&&(m.indexOf(["style","class","id"],t)>-1||t.indexOf("data-")>-1)?"".concat(t,'="').concat(r,'"'):(D.collect.whiteList[e]=D.collect.whiteList[e]||[],void D.collect.whiteList[e].push(t))},onIgnoreTag:function(e,t){if("style"===e)return t;b(t,function(e,t,i,r){w(P(r).html.replace("/",""),function(e){D.collect.whiteList[i]=D.collect.whiteList[i]||[],D.collect.whiteList[i].push(e)})},p)},whiteList:M,mergeWhiteList:function(e){for(var t,i={},r=0,n=m.keys(M);r<n.length;r++)i[t=n[r]]=m.from(M[t]);for(var s=0,o=m.keys(e);s<o.length;s++)i[t=o[s]]=t in M?M[t].concat(e[t]):m.from(e[t]);return i},setWhiteList:function(e){for(var t=0,i=m.keys(e);t<i.length;t++){var r=i[t];this.whiteList[r]=r in M?M[r].concat(e[r]):m.from(e[r])}}};try{var j={},N="merge";m.includes(N,"override")&&(D.whiteList=j.whiteList),m.includes(N,"merge")&&D.setWhiteList(j.whiteList)}catch(e){}var U=function(e,t){for(var i={},r=0,n=m.keys(e);r<n.length;r++){var s=n[r];Array.isArray(e[s])?i[s]=m.from(e[s]):i[s]=U({},e[s])}for(var o=0,a=m.keys(t);o<a.length;o++)(s=a[o])in e?Array.isArray(e[s])?i[s]=e[s].concat(t[s]):i[s]=U(e[s],t[s]):Array.isArray(t[s])?i[s]=m.from(t[s]):i[s]=U({},t[s]);return i},F={blackList:{a:["folder"],meta:["content"],iframe:["srcdoc"],input:["pattern"],vmlframe:["xmlns"]},blackTags:["script","xml","embed","isindex","object","base","set","handler","animate","payload","import"],blackAttrs:["charset","ns","namespace","formaction","xlink:href","xmlns:xlink","handler","repeat","repeat-start","repeat-end"],blackAttrRegExps:[/^on/],filterList:{param:["value"],video:["poster"],form:["action"]},filterAttrs:["href","src","background","style","dynsrc","lowsrc","content"]};try{var $={};$.blackAttrRegExps&&($.blackAttrRegExps=$.blackAttrRegExps.map(function(e){return new RegExp(e.toString().slice(1,e.toString().length-1))}));var Z="merge";m.includes(Z,"override")&&(F=$),m.includes(Z,"merge")&&(F=U(F,$))}catch(e){}var z={mode:"black",whiteList:{},blackConfig:F,collect:null,initCollect:function(){z.collect={blackList:{},blackTags:[],blackAttrs:[],blackAttrRegExps:[],filterAttrs:[],filterList:{},filterProtocol:[]}},removeCollect:function(){var e=T(z.collect),t=e.count,i=e.ret;return z.collect=null,{collectKey:0===t?null:JSON.stringify(i),collectMode:"black"}},onIgnoreTag:function(e,t){var i;if(!m.includes(F.blackTags,e))return b(t,function(e,t,i,r,n){if(-1!==i.indexOf("/"))return p(r);if(n)return"</".concat(i,">");var s=P(r),o=w(s.html,function(e,t){var r,n=0;if(F.blackList[i]&&m.includes(F.blackList[i],e)&&(z.collect.blackList[i]=z.collect.blackList[i]||[],z.collect.blackList[i].push(e),n++),F.blackAttrRegExps.length&&F.blackAttrRegExps.some(function(t){return t.test(e)})&&m.forEach(F.blackAttrRegExps,function(t){t.test(e)&&(z.collect.blackAttrRegExps.push("".concat(t.toString(),"->").concat(e)),n++)}),F.blackAttrs.length&&m.includes(F.blackAttrs,e)&&(F.blackAttrs.push(e),n++),!n){if(F.filterList&&F.filterList[i]&&m.includes(F.filterList[i],e)){var s=O(t,function(e){var t;null===(t=z.collect)||void 0===t||t.filterProtocol.push(e)});return s!==t&&(z.collect.filterList[i]=z.collect.filterList[i]||[],z.collect.filterList[i].push(e)),t?"".concat(e,"='").concat(s,"'"):e}return F.filterAttrs&&m.includes(F.filterAttrs,e)?((s=O(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(s,"'"):e):t?"".concat(e,"='").concat(t,"'"):e}});return r="<".concat(i),o&&(r+=" ".concat(o)),s.closing&&(r+=" /"),r+=">"},p);null===(i=z.collect)||void 0===i||i.blackTags.push(e)}},B=function(e){var t=e.reportOnly,i=void 0===t||t,r=e.block;return i&&"all"===i?"report":("string"==typeof i&&("true"===i&&(i=!0),"false"===i&&(i=!1)),r?"enforce":i?"report":"enforce")},W=function(e){return function(i,r,n){if(!i||"string"!=typeof i)return i;var s=r;e===C&&(s=D).initCollect();var o=e(i,s);if(R(o)===R(i))return i;if(!n)return o;var a=n.logType,l=B(n),c=s.removeCollect();return L.report(t(t({type:a,disposition:l},c),{sourceText:_(i),filterText:_(o)})),"enforce"===l?o:i}},G=W(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 S(t).process(e)}),H=W(C),V=function(e,t,i){var r=[],n=O(e,function(e){r.push(e)});if(n===e)return e;r=m.from(m.uniq(r));var s=t||i||{};if(!s)return n;var o=s.logType,a=B(i);return L.report({type:o,disposition:a,collectKey:r.join("___"),collectData:JSON.stringify(r),collectMode:"black",sourceText:_(e),filterText:_(n)}),"enforce"===a?n:e},X=x._xssProject||{},Y=x.xssNamespace||{},K="3.0.26",J={FilterXSS:S,version:K,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:G,_filterXSS:H,filterUrl:V,Config:D,BlackConfig:z,project:X,setProjectName:function(e){X[e]=this,x._xssProjectName=e}};Y.douyin_web=J,x.xssNamespace=Y,x.Math&&!x.Math.xssNamespace&&(x.Math.xssNamespace=Y),X[K]=J,x.globalThis=x,x.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:J},x.xss=J,x.isSafeUrl=I,x.isSafeDomain=I,x.isSafeProtocol=A,x._xssProject=X,x._xssProjectName&&(X[x._xssProjectName]=J);var q=J.setProjectName.bind(J);e.BlackConfig=z,e.Config=D,e.FilterXSS=S,e._filterXSS=H,e.filterUrl=V,e.filterXSS=G,e.isSafeDomain=I,e.isSafeProtocol=A,e.isSafeUrl=I,e.project=X,e.setProjectName=q,e.setXssNamespace=function(e){var t=e.appId,i=e.bid,r=e.region;Y[t]=J;D.bid=i,D.region=r,D.enabled=!0},e.xssNamespace=Y,Object.defineProperty(e,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["30672"],{191493:function(e,t,i){"use strict";var r=i(101199),n=i(994298);let s=(0,n.A)(function(e){return r.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.92 4.01a1.5 1.5 0 0 0-2.84 0l-5 14.5a1.5 1.5 0 0 0 2.84.98l1.03-2.99h5.1l1.03 2.99a1.5 1.5 0 1 0 2.84-.98l-5-14.5Zm.1 9.49H5.98L7.5 9.1l1.52 4.4Zm6.98 1c0-2.03 1.22-3 2-3s2 .97 2 3c0 2.03-1.22 3-2 3s-2-.97-2-3Zm2-6c.85 0 1.62.23 2.28.63A1.5 1.5 0 0 1 23 10v9a1.5 1.5 0 0 1-2.72.87c-.66.4-1.43.63-2.28.63-3.1 0-5-3.06-5-6s1.9-6 5-6Z",fill:"currentColor"}))},"case_sensitive");t.Z=s},822772:function(e,t,i){"use strict";var r=i(101199),n=i(994298);let s=(0,n.A)(function(e){return r.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.35 4.27c.68.47.86 1.4.38 2.08l-10 14.5a1.5 1.5 0 0 1-2.33.17l-6.5-7a1.5 1.5 0 0 1 2.2-2.04l5.23 5.63 8.94-12.96a1.5 1.5 0 0 1 2.08-.38Z",fill:"currentColor"}))},"tick");t.Z=s},18296:function(e,t,i){"use strict";i.d(t,{$z:function(){return l},bl:function(){return u},tq:function(){return c}});var r,n,s,o=i(685114);function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var l=(a(r={},o.lS.default,Object.create(null)),a(r,o.lS.host,Object.create(null)),r),c=(a(n={},o.lS.default,Object.create(null)),a(n,o.lS.host,Object.create(null)),n),u=(a(s={},o.lS.default,Object.create(null)),a(s,o.lS.host,Object.create(null)),s)},570130:function(e,t,i){"use strict";i.d(t,{TQ:function(){return U}});var r=i(764367),n=i(555729),s=i(132893),o=i(63270),a=i(832862),l=i(970509),c=i.n(l),u=i(799695),d=Object.defineProperty,h=Object.defineProperties,f=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,v=(e,t,i)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,_=(e,t)=>{for(var i in t||(t={}))m.call(t,i)&&v(e,i,t[i]);if(p)for(var i of p(t))g.call(t,i)&&v(e,i,t[i]);return e},y=(e,t)=>h(e,f(t)),b=(e,t,i)=>new Promise((r,n)=>{var s=e=>{try{a(i.next(e))}catch(e){n(e)}},o=e=>{try{a(i.throw(e))}catch(e){n(e)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(s,o);a((i=i.apply(e,t)).next())});function w(e){if(!Array.isArray(e))throw TypeError("Middleware stack must be an array!");if(e.some(e=>"function"!=typeof e))throw TypeError("Middleware must be composed of functions!");return function(t,i){let r=-1;return function n(s){if(s<=r)return Promise.reject(Error("next() called multiple times"));r=s;let o=s===e.length?i:e[s];if(!o)return Promise.resolve();try{return Promise.resolve(o(t,n.bind(null,s+1)))}catch(e){return Promise.reject(e)}}(0)}}var E=c()("im:mw:decode"),R=c()("im:mw:decode_raw"),S=c()("im:mw:decoded");function x(e,t){return`wrds#${e.replace(o.nl,"")}${t?"_":""}${null!=t?t:""}`}var L=(e,t)=>{var i;return t.has(null!=(i=e.method.replace(o.nl,""))?i:"")},T="__skip_wrds_version_check__",C=c()("im:mw:wrds"),P=(e,t)=>(C("wrds initd"),(i,r)=>b(void 0,null,function*(){yield r();let{msgs:n,decoder:s,emitter:a,systemEmitter:l}=i;C("check wrds message"),yield Promise.all((null!=n?n:[]).map(i=>b(void 0,null,function*(){var r;if(L(i,t)){C("receive wrds v1",i.method,i.msg_id);let{method:t}=i,{payload:n,version:c,syncKey:d}=i.payload;try{i.payload.payload=yield s.decode(n,d)}catch(e){e.message&&(e.message=`wrds decode ${t} ${i.msg_id} failed: ${e.message}`),l.emit("error","decode",e)}let h=x(t,d),f=d?x(t):"",p=e.get(h);i.msg_id!==o.KM&&i.wrds_version!==T&&(null==(r=null==p?void 0:p.payload)?void 0:r.version)&&1>(0,u.b)(c,p.payload.version)?(C("wrds version chaos",i,p),l.emit("wrds_version_chaos",i,p)):(e.set(h,i),a.emit(h,i),f&&(e.set(f,i),a.emit(f,i)))}else if(i.need_wrds_store){let t;C("receive wrds v2",i.method,i.msg_id);let{method:r,wrds_sub_key:n,wrds_version:s}=i,c=x(r,n),d=n?x(r):"";if(d)t=e.get(c);else{let i=e.get(c);Array.isArray(i)&&(t=i.sort((e,t)=>(0,u.b)(t.wrds_version||"",e.wrds_version||""))[0])}if(i.msg_id!==o.KM&&i.wrds_version!==T&&(null==t?void 0:t.wrds_version)&&1>(0,u.b)(s,t.wrds_version))C("wrds version chaos",i,t),l.emit("wrds_version_chaos",i,t);else if(e.set(c,i),a.emit(c,i),d){let t=e.get(d)||[];!Array.isArray(t)&&(t=[t]);let r=t.findIndex(e=>(null==e?void 0:e.wrds_sub_key)===n);-1!==r?t[r]=i:t.push(i),e.set(d,t),a.emit(d,i)}}})))})),k=c()("im:mw:emit"),A=(e,t,i,r=1e3)=>(!function t(){if(i.size>0){let t=[...i.entries()];k("emit async",i.size,t),i.clear(),k("cleared cache"),t.forEach(([t,i])=>{e.emit(t,i)})}try{return setTimeout(t,r)}catch(e){return 0}}(),(r,n)=>b(void 0,null,function*(){r.emitter=e,r.syncEmitter=t,r.cacheStorage=i,k("set emitter, syncEmitter, cacheStorage"),yield n();let{msgs:s,emitted:a,cached:l}=r;null==s||s.forEach(e=>{var r,n;let s=e.method.replace(o.nl,""),c=null==(n=null==(r=null==e?void 0:e.payload)?void 0:r.common)?void 0:n.msg_id;if(!c){k("live IM filter has not commonMsgId",e);return}let u=`${s}-${c}`;if(a.has(u)){k("live IM filter message by msgID",e);return}!l.has(u)&&(i.set(s,e),l.add(u)),k("emit sync",s,e.msg_id),t.emit(s,e),a.add(u)}),k("set context emitted",null==s?void 0:s.map(e=>e.msg_id))})),O=c()("im:mw:wrds"),I=e=>(O("wrds-patcher initd"),(t,i)=>b(void 0,null,function*(){yield i(),t.msgs&&(t.msgs=t.msgs.map(t=>e.every(e=>e!==t.method)?t:(O("patch wrds",t.method,t.msg_id),y(_({},t),{wrds_version:T,need_wrds_store:!0}))))})),M=class extends Set{constructor(e){super(),this.maxSize=e}add(e){if(e===o.KM)return this;if(super.add(e),this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}has(e){return e!==o.KM&&super.has(e)}},D=c()("im:mw:backdrop"),j=class extends Map{set(e,t){var i;let r=null!=(i=this.get(e))?i:[];return r.push(t),super.set(e,r)}},N=c()("im:sdk"),U=class{constructor(e,t,i=[],{wrdsPatchMethods:l=["WebcastProfitInteractionScoreMessage","WebcastOpenProfitInteractionScoreMessage"],wrdsV1:c=["RoomDataSyncMessage"],emitter:u=s.Q.instance,syncEmitter:d=function(e){let t={has(t){let i=`#sync#${t}`;return e.has(i)},on(t,i){let r=`#sync#${t}`;return e.on(r,i)},off(i,r){if("*"===i)return e.off("*"),t;let n=`#sync#${i}`;return e.off(n,r),t},emit(t,...i){let r=`#sync#${t}`;return e.emit(r,...i),e}};return t}(u),systemEmitter:h=new s.Q,maxCachedCount:f=100,downgradePingCount:p=2,backdropWhenHidden:m,cursor:g,reporter:v}={}){if(this.messages=new j,this.originMiddleware=[],this.started=!1,this.roomID="",this.plugins=new Map,this.upgrade=(e,t,i,r)=>{if("websocket"===e){let{push_server:e,route_params:n,heartbeat_duration:s}=r;this.socket.start(y(_(_({},i),t),{pushServer:e,routeParams:n,heartbeatDuration:s}))(()=>{this.polling.stopBySocket()},e=>{this.polling.stopBySocket(e)})}},this.downgrade=(e="polling")=>{"polling"===e&&this.polling.stopBySocket(Error("socket downgrade to polling"))},this.mock=(e,t)=>{N("mock msg",e,t),this._onMessage({messages:[y(_({},t),{msg_id:o.KM})]})},this.reconnect=()=>{N("live IM reconnect"),this.systemEmitter.emit("reconnect"),this.socket&&this.socket.restart()},this._onMessage=(e,...t)=>b(this,[e,...t],function*(e,t="liveIM"){let{messages:i=[]}=e,r={im:this,systemEmitter:this.systemEmitter,response:e,msgs:i,socket:this.socket,polling:this.polling,decoder:this.decoder,emitted:this.emitted,cached:new Set,roomID:this.roomID,from:t};yield this.middleware(r)}),"loadSchema"in e)this.decoder=e;else{let t=e();this.decoder={loadSchema:()=>b(this,null,function*(){let e=yield t;null==e||e.loadSchema()}),decode:(...e)=>b(this,null,function*(){var i;let r=yield t;return null==(i=null==r?void 0:r.decode)?void 0:i.call(r,...e)}),encode:(...e)=>b(this,null,function*(){var i;let r=yield t;return null==(i=null==r?void 0:r.encode)?void 0:i.call(r,...e)})}}this.systemEmitter=h,this.cursor=g||new a.C(h),this.polling=new r.P(this.systemEmitter,t,this.cursor,v),this.socket=new n.u(this.systemEmitter,this.cursor,p),this.emitted=new M(f);let L=new Set(["RoomDataSyncMessage"].concat(c).map(e=>e.replace(o.nl,""))),{wrds:T,wrdsPool:C}=function(e,t){let i=new Map,r={on(r,n,s,o="v2"){if("v1"===o&&t.has(r))throw Error("wrds v1 only support RoomDataSyncMessage");let a=i.get(x(r,n));return a&&(Array.isArray(a)?a.forEach(e=>{s(e)}):s(a)),e.on(x(r,n),s)},off:(t,i,n)=>"*"===t?(e.off("*"),r):(e.off(x(t,i),n),r)};return{wrds:r,wrdsPool:i}}(u,L);this.wrdsPool=C,this.wrds=T,this.on=u.on.bind(u),this.off=u.off.bind(u),this.syncOn=d.on.bind(d),this.syncOff=d.off.bind(d),this.originMiddleware=[].concat(m?function(e){let t=e.reduce((e,t)=>y(_({},e),{[t]:!0}),{});return"undefined"==typeof window?(e,t)=>t():(e,i)=>{let{msgs:r}=e;if("hidden"!==document.visibilityState){i();return}let n="",s=null==r?void 0:r.filter(({method:e})=>{let i=t[e.replace(o.nl,"")];return i&&(n+=`${e} `),!i});n&&D(n),(null==s?void 0:s.length)&&(e.msgs=s,i())}}(m):[]).concat([A(u,d,this.messages),function(e){return(t,i)=>b(this,null,function*(){t.decoder=e;let{msgs:r,systemEmitter:n}=t;return t.msgs=yield Promise.all((null!=r?r:[]).map(t=>b(this,null,function*(){let{payload:i,method:r,msg_id:s}=t;E("decode msg",r,s),R("decode msg",r,s,t);let a=yield b(this,null,function*(){try{if(!i||!r)return;if(s===o.KM&&!(i instanceof Uint8Array))return i;return yield e.decode(i,r)}catch(e){return e.message&&(e.message=`decode ${r} ${s} failed: ${e.message}`),n.emit("error","decode",e),i}});!a&&E("no payload can be decoded, maybe cannot find idl",r);let l=y(_({},t),{payload:a});return S(r,s,l),l}))),i()})}(this.decoder),P(this.wrdsPool,L),I(l)]).concat(i),this.middleware=w(this.originMiddleware)}start(e){if(this.started){N("this instance has started");return}!this.systemEmitter.has("upgrade")&&this.systemEmitter.on("upgrade",this.upgrade),!this.systemEmitter.has("downgrade")&&this.systemEmitter.on("downgrade",this.downgrade),!this.systemEmitter.has("message")&&this.systemEmitter.on("message",this._onMessage),this.roomID=null==e?void 0:e.room_id,this.started=!0,this.polling.start(e)}pause(){this.started=!1,this.polling.stop(),this.socket.stop()}stop(){this.pause(),this.off("*"),this.syncOff("*"),this.wrds.off("*")}destroy(){this.stop(),this.systemEmitter.off("*")}getPlugin(e){return this.plugins.get(e)}registerPlugin(e,t){if(this.plugins.has(e.id)){c()(`has registered plugin [${e.id}]`);return}let i=e.register(this,t);return this.middleware=w(this.originMiddleware),this.plugins.set(e.id,i),this.unregisterPlugin.bind(this,e.id)}unregisterPlugin(e){var t;let i=this.plugins.get(e);try{null==(t=null==i?void 0:i.unregister)||t.call(i)}catch(e){c()(`unregister error ${e}`)}this.plugins.delete(e)}};U.VERSION="2.0.26"},35565:function(e,t,i){"use strict";i.d(t,{Q:function(){return n}});let r=class e{constructor(){this.listeners=new Map}static get instance(){return!e.__instance&&(e.__instance=new e),e.__instance}on(e,t){var i;let r=null!=(i=this.listeners.get(e))?i:[];return r.push(t),this.listeners.set(e,r),()=>{this.off(e,t)}}once(e,t){var i;let r=null!=(i=this.listeners.get(e))?i:[],n=(...i)=>(this.off(e,n),t(...i));return r.push(n),this.listeners.set(e,r),()=>{this.off(e,n)}}off(e,t){var i;if(t){let r=null!=(i=this.listeners.get(e))?i:[],n=r.indexOf(t);if(-1===n)return this;r.splice(n,1),this.listeners.set(e,r)}else"*"===e?this.listeners.clear():this.listeners.delete(e);return this}emit(e,...t){var i,r;return(null!=(i=this.listeners.get(e))?i:[]).forEach(e=>{var i;try{e(...t)}catch(t){null==(i=this._debug)||i.call(this,"emit_error",t,e)}}),null==(r=this._debug)||r.call(this,e,...t),this}has(e){var t,i;return(null!=(i=null==(t=this.listeners.get(e))?void 0:t.length)?i:0)>0}debug(e){return this._debug=e,this}};r.VERSION="0.1.12";let n=r},471839:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var r=i(726588),n=i(144256);function s(e){(0,n.Z)(1,arguments);var t=(0,r.Z)(e),i=t.getFullYear(),s=t.getMonth(),o=new Date(0);return o.setFullYear(i,s+1,0),o.setHours(0,0,0,0),o.getDate()}},830776:function(e,t,i){"use strict";var r=i(722873),n={date:(0,r.Z)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,r.Z)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,r.Z)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.Z=n},917376:function(e,t,i){"use strict";i.d(t,{A:function(){return d}});var r=i(315355),n=i(919209),s=i(732905),o=i(625813),a=i(92833),l=i(272787),c=i(483803),u=i(19470),d=function(e){(0,o.Z)(i,e);var t=(0,a.Z)(i);function i(){var e;(0,r.Z)(this,i);for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,l.Z)((0,s.Z)(e),"priority",80),(0,l.Z)((0,s.Z)(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return(0,n.Z)(i,[{key:"parse",value:function(e,t,i){switch(t){case"a":case"aa":case"aaa":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(e,{width:"narrow",context:"formatting"});default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,i){return e.setUTCHours((0,u.RQ)(i),0,0,0),e}}]),i}(c._)},167417:function(e,t,i){"use strict";var r=i(247390),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t,i=arguments[1];if(r(e),void 0!==i){if(!(t=n.call(e,"__ee__")&&e.__ee__))return;t[i]&&delete t[i];return}n.call(e,"__ee__")&&delete e.__ee__}},730099:function(e){var t,i,r,n="__lodash_hash_undefined__",s=/^\[object .+?Constructor\]$/,o="object"==typeof window&&window&&window.Object===Object&&window,a="object"==typeof self&&self&&self.Object===Object&&self,l=o||a||Function("return this")();function c(e,t){return!!(e?e.length:0)&&function(e,t,i){if(t!=t)return function(e,t,i,r){for(var n=e.length,s=i+-1;r?s--:++s<n;)if(t(e[s],s,e))return s;return -1}(e,d,i);for(var r=i-1,n=e.length;++r<n;)if(e[r]===t)return r;return -1}(e,t,0)>-1}function u(e,t,i){for(var r=-1,n=e?e.length:0;++r<n;)if(i(t,e[r]))return!0;return!1}function d(e){return e!=e}function h(e,t){return e.has(t)}function f(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}var p=Array.prototype,m=Function.prototype,g=Object.prototype,v=l["__core-js_shared__"];var _=(t=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"",y=m.toString,b=g.hasOwnProperty,w=g.toString,E=RegExp("^"+y.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=p.splice,S=Math.max,x=j(l,"Map"),L=j(l,"Set"),T=j(Object,"create");function C(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function P(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}C.prototype.clear=function(){this.__data__=T?T(null):{}},C.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},C.prototype.get=function(e){var t=this.__data__;if(T){var i=t[e];return i===n?void 0:i}return b.call(t,e)?t[e]:void 0},C.prototype.has=function(e){var t=this.__data__;return T?void 0!==t[e]:b.call(t,e)},C.prototype.set=function(e,t){return this.__data__[e]=T&&void 0===t?n:t,this};function k(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}P.prototype.clear=function(){this.__data__=[]},P.prototype.delete=function(e){var t=this.__data__,i=O(t,e);return!(i<0)&&(i==t.length-1?t.pop():R.call(t,i,1),!0)},P.prototype.get=function(e){var t=this.__data__,i=O(t,e);return i<0?void 0:t[i][1]},P.prototype.has=function(e){return O(this.__data__,e)>-1},P.prototype.set=function(e,t){var i=this.__data__,r=O(i,e);return r<0?i.push([e,t]):i[r][1]=t,this};function A(e){var t=-1,i=e?e.length:0;for(this.__data__=new k;++t<i;)this.add(e[t])}k.prototype.clear=function(){this.__data__={hash:new C,map:new(x||P),string:new C}},k.prototype.delete=function(e){return D(this,e).delete(e)},k.prototype.get=function(e){return D(this,e).get(e)},k.prototype.has=function(e){return D(this,e).has(e)},k.prototype.set=function(e,t){return D(this,e).set(e,t),this};function O(e,t){for(var i=e.length;i--;)if(function(e,t){return e===t||e!=e&&t!=t}(e[i][0],t))return i;return -1}function I(e,t,i,r){var n,s=-1,o=c,a=!0,l=e.length,d=[],f=t.length;if(!l)return d;if(i){;t=function(e,t){for(var i=-1,r=e?e.length:0,n=Array(r);++i<r;)n[i]=t(e[i],i,e);return n}(t,(n=i,function(e){return n(e)}))}r?(o=u,a=!1):t.length>=200&&(o=h,a=!1,t=new A(t));t:for(;++s<l;){var p=e[s],m=i?i(p):p;if(p=r||0!==p?p:0,a&&m==m){for(var g=f;g--;)if(t[g]===m)continue t;d.push(p)}else!o(t,m,r)&&d.push(p)}return d}A.prototype.add=A.prototype.push=function(e){return this.__data__.set(e,n),this},A.prototype.has=function(e){return this.__data__.has(e)};var M=L&&1/f(new L([,-0]))[1]==1/0?function(e){return new L(e)}:function(){};function D(e,t){var i=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?i["string"==typeof t?"string":"hash"]:i.map}function j(e,t){var i,r,n,o=(i=e,r=t,null==i?void 0:i[r]);return!(!$(n=o)||function(e){return!!_&&_ in e}(n))&&(F(n)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(n)?E:s).test(function(e){if(null!=e){try{return y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?o:void 0}var N=(i=function(e){return function(e,t,i){for(var r=-1,n=e.length;++r<n;)var s=s?function(e,t){for(var i=-1,r=t.length,n=e.length;++i<r;)e[n+i]=t[i];return e}(I(s,e[r],void 0,void 0),I(e[r],s,t,i)):e[r];return s&&s.length?function(e,t,i){var r=-1,n=c,s=e.length,o=!0,a=[],l=a;if(i)o=!1,n=u;else if(s>=200){var d=t?null:M(e);if(d)return f(d);o=!1,n=h,l=new A}else l=t?[]:a;t:for(;++r<s;){var p=e[r],m=t?t(p):p;if(p=i||0!==p?p:0,o&&m==m){for(var g=l.length;g--;)if(l[g]===m)continue t;t&&l.push(m),a.push(p)}else!n(l,m,i)&&(l!==a&&l.push(m),a.push(p))}return a}(s,t,i):[]}(function(e,t){for(var i=-1,r=e?e.length:0,n=0,s=[];++i<r;){var o=e[i];t(o,i,e)&&(s[n++]=o)}return s}(e,U))},r=S(void 0===r?i.length-1:r,0),function(){for(var e=arguments,t=-1,n=S(e.length-r,0),s=Array(n);++t<n;)s[t]=e[r+t];t=-1;for(var o=Array(r+1);++t<r;)o[t]=e[t];return o[r]=s,function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}(i,this,o)});function U(e){var t;return function(e){return!!e&&"object"==typeof e}(e)&&null!=(t=e)&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!F(t)}function F(e){var t=$(e)?w.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function $(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=N},266041:function(e,t,i){var r=i(518869)(i(956823),"Promise");e.exports=r},793572:function(e,t,i){var r=i(815527),n=i(617883),s=i(281148),o=i(770012),a=s(function(e,t){return o(e)?r(e,n(t,1,o,!0)):[]});e.exports=a},53651:function(e,t,i){var r=i(117161),n=i(79594),s=i(745627),o=Math.max,a=Math.min;e.exports=function(e,t,i){var l=null==e?0:e.length;if(!l)return -1;var c=l-1;return void 0!==i&&(c=s(i),c=i<0?o(l+c,0):a(c,l-1)),r(e,n(t,3),c,!0)}},337793:function(e,t,i){var r=i(793116),n=i(105723),s=i(399257),o=i(431356);e.exports=function(e,t){return(o(e)?r:n)(e,s(t))}},849191:function(e,t,i){var r=i(243392);e.exports=function(e){return r(e)&&e!=+e}},897471:function(e,t,i){var r=i(79594),n=i(472458);e.exports=function(e,t){return e&&e.length?n(e,r(t,2)):[]}},150236:function(e,t,i){"use strict";var r=i(331790);function n(e){return e===Object(e)&&0!==Object.keys(e).length}t.Z=function(e,t){var i,s=e.isConnected||e.ownerDocument.documentElement.contains(e);if(n(t)&&"function"==typeof t.behavior)return t.behavior(s?(0,r.Z)(e,t):[]);if(!!s){var o=!1===(i=t)?{block:"end",inline:"nearest"}:n(i)?i:{block:"start",inline:"nearest"};return function(e,t){void 0===t&&(t="auto");var i="scrollBehavior"in document.body.style;e.forEach(function(e){var r=e.el,n=e.top,s=e.left;r.scroll&&i?r.scroll({top:n,left:s,behavior:t}):(r.scrollTop=n,r.scrollLeft=s)})}((0,r.Z)(e,o),o.behavior)}}},29245:function(e,t,i){"use strict";i.d(t,{Z:function(){return d}});var r=i(697233);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t,i){return(t=u(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function u(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!==n(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(f,e);var t,i,r,u,d,h=(t=f,i=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=l(t);return e=i?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return a(e)}(this,e)});function f(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,f);for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return c(a(e=h.call.apply(h,[this].concat(i))),"_onMouseenter",function(t){e.emit("icon_mouseenter",{pluginName:e.pluginName})}),c(a(e),"_onMouseLeave",function(t){e.emit("icon_mouseleave",{pluginName:e.pluginName})}),e}return r=f,u=[{key:"afterCreate",value:function(){this.bind("mouseenter",this._onMouseenter),this.bind("mouseleave",this._onMouseLeave),this.config.disable&&this.disable()}},{key:"destroy",value:function(){this.unbind("mouseenter",this._onMouseenter),this.unbind("mouseleave",this._onMouseLeave)}}],s(r.prototype,u),Object.defineProperty(r,"prototype",{writable:!1}),f}(r.ZP)},725882:function(e,t,i){"use strict";i.r(t)},330616:function(e,t,i){"use strict";i.r(t)},131995:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}}),i("932651");var r=i("101199"),n=i("793545"),s=i("431380"),o=i("469935"),a=i.n(o),l=i("856445");class c extends l.Z{constructor(e){super(Object.assign({},e)),this.handleMouseDown=e=>{this._adapter.handleMouseDown(e)},this.handleMouseUp=e=>{this._adapter.handleMouseUp(e)},this.setHandlePositionByMousePosition=e=>{var t;let i=null===(t=this._adapter.getDOM())||void 0===t?void 0:t.getBoundingClientRect();if(!i)return;let{width:r,handleSize:n}=this._adapter.getProps(),s=this._adapter.getColorPickerFoundation(),o=e.clientX-i.x;s.handleColorChangeByHandle({h:Math.round(360*Math.min(Math.max(o/r,0),1))});let a=s.getColorHandlePositionByMousePosition(o,r,n);this.setState({handlePosition:a})}}}var u=i("426337");class d extends u.Z{get adapter(){return Object.assign(Object.assign({},super.adapter),{handleMouseDown:e=>{this.setState({isHandleGrabbing:!0}),window.addEventListener("mousemove",this.foundation.setHandlePositionByMousePosition),window.addEventListener("mouseup",this.foundation.handleMouseUp)},handleMouseUp:e=>{this.setState({isHandleGrabbing:!1}),window.removeEventListener("mousemove",this.foundation.setHandlePositionByMousePosition),window.removeEventListener("mouseup",this.foundation.handleMouseUp)},getColorPickerFoundation:()=>this.props.foundation,getDOM:()=>this.ref.current})}componentDidUpdate(e,t,i){e.hue!==this.props.hue&&this.setState({handlePosition:this.props.hue/360*this.props.width-this.props.handleSize/2})}render(){return r.createElement("div",{className:a()(`${s.U.PREFIX}-colorSlider`,this.props.className),ref:this.ref,onMouseDown:this.handleClick,style:Object.assign({width:this.props.width,height:this.props.height},this.props.style)},r.createElement("div",{className:`${s.U.PREFIX}-handle`,style:{width:this.props.handleSize,height:this.props.handleSize,left:this.state.handlePosition,top:"50%",transform:"translateY(-50%)",backgroundColor:n.Z.hsvaToHslString({h:this.props.hue,s:100,v:100,a:1})},onMouseDown:e=>this.foundation.handleMouseDown(e)}))}constructor(e){super(e),this.handleClick=e=>{this.foundation.setHandlePositionByMousePosition(e),this.foundation.handleMouseDown(e)},this.foundation=new c(this.adapter),this.state={handlePosition:e.hue/360*e.width-e.handleSize/2,isHandleGrabbing:!1},this.ref=r.createRef()}}var h=d},533282:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}}),i("932651"),i("706056");var r=i("92122"),n=i.n(r),s=i("101199"),o=i("426337"),a=i("469935"),l=i.n(a),c=i("622689"),u=i.n(c);i("251060");var d=i("648038"),h=i("707852");let f=`${h.T}-cropper`,p={PREFIX:`${f}`,IMG:`${f}-img`,IMG_WRAPPER:`${f}-img-wrapper`,CROPPER_BOX:`${f}-box`,CROPPER_VIEW_BOX:`${f}-view-box`,CROPPER_VIEW_BOX_ROUND:`${f}-view-box-round`,CROPPER_IMG:`${f}-view-img`,MASK:`${f}-mask`,CORNER:`${f}-box-corner`},m={corner:["tl","tm","tr","ml","mr","bl","bm","br"],roundCorner:["tm","ml","mr","bm"]};var g=i("57559");let v=p.PREFIX;class _ extends o.Z{get adapter(){return Object.assign(Object.assign({},super.adapter),{getContainer:()=>this.containerRef,notifyZoomChange:e=>{let{onZoomChange:t}=this.props;null==t||t(e)},getImg:()=>this.imgRef.current})}static getDerivedStateFromProps(e,t){let{rotate:i,zoom:r}=e,{rotate:s,zoom:o,imgData:a,cropperBox:l,loaded:c}=t,u=a.width,d=a.height,h=Object.assign({},a.centerPoint),f={};if(!c)return null;if(!n()(i)&&i!==s&&(f.rotate=i,c)){let e={x:l.centerPoint.x,y:-l.centerPoint.y},t={x:a.centerPoint.x,y:-a.centerPoint.y},r=(i-s)*Math.PI/180;h={x:(t.x-e.x)*Math.cos(r)+(t.y-e.y)*Math.sin(r)+e.x,y:-(-(t.x-e.x)*Math.sin(r)+(t.y-e.y)*Math.cos(r)+e.y)}}if(!n()(i)&&r!==o&&(f.zoom=r,c)){let e={x:l.centerPoint.x,y:-l.centerPoint.y},t={x:h.x,y:-h.y};u=a.width/o*r,d=a.height/o*r,h={x:(t.x-e.x)/o*r+e.x,y:-[(t.y-e.y)/o*r+e.y]}}return((i!==s||r!==o)&&(f.imgData={width:u,height:d,centerPoint:h}),Object.keys(f).length)?f:null}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy(),this.unRegisterImageWrapRef()}render(){let{className:e,style:t,src:i,shape:r,showResizeBox:n,cropperBoxStyle:o,cropperBoxCls:a}=this.props,{imgData:c,cropperBox:u,rotate:d,loaded:h}=this.state,f=c.centerPoint.x-c.width/2,_=c.centerPoint.y-c.height/2,y=u.centerPoint.x-u.width/2,b=u.centerPoint.y-u.height/2,w=f-y,E=_-b;return this.foundation.updatePreview({width:c.width,height:c.height,translateX:w,translateY:E,rotate:d}),s.createElement(g.Z,{onResize:this.foundation.handleResize,observerProperty:g.t.Width},s.createElement("div",{className:l()(v,e),style:t,ref:this.registryImageWrapRef},s.createElement("div",{className:p.IMG_WRAPPER},s.createElement("img",{ref:this.imgRef,src:i,onLoad:this.foundation.handleImageLoad,className:p.IMG,crossOrigin:"anonymous",style:{width:c.width,height:c.height,transformOrigin:"center",transform:`translate(${f}px, ${_}px) rotate(${d}deg)`}})),s.createElement("div",{className:p.MASK,onMouseDown:this.foundation.handleMaskMouseDown}),s.createElement("div",{className:l()(p.CROPPER_BOX,{[a]:a,[p.CROPPER_VIEW_BOX_ROUND]:"round"===r}),style:Object.assign(Object.assign({},o),{width:u.width,height:u.height,transform:`translate(${y}px, ${b}px)`}),onMouseDown:this.foundation.handleCropperBoxMouseDown},s.createElement("div",{className:l()(p.CROPPER_VIEW_BOX,{[p.CROPPER_VIEW_BOX_ROUND]:r.includes("round")})},s.createElement("img",{onDragStart:this.foundation.viewIMGDragStart,className:p.CROPPER_IMG,src:i,style:{width:c.width,height:c.height,transformOrigin:"center",transform:`translate(${w}px, ${E}px) rotate(${d}deg)`}})),h&&n&&("round"===r?m.roundCorner:m.corner).map(e=>s.createElement("div",{className:l()(p.CORNER,`${p.CORNER}-${e}`),"data-dir":e,key:e,onMouseDown:this.foundation.handleCornerMouseDown})))))}constructor(e){super(e),this.unRegisterImageWrapRef=()=>{this.containerRef&&this.containerRef.removeEventListener("wheel",this.foundation.handleWheel),this.containerRef=null},this.registryImageWrapRef=e=>{this.unRegisterImageWrapRef(),e&&e.addEventListener("wheel",this.foundation.handleWheel,{passive:!1}),this.containerRef=e},this.getCropperCanvas=()=>this.foundation.getCropperCanvas(),this.state={imgData:{width:0,height:0,centerPoint:{x:0,y:0}},cropperBox:{width:0,height:0,centerPoint:{x:0,y:0}},zoom:1,rotate:0,loaded:!1},this.foundation=new d.Z(this.adapter),this.imgRef=s.createRef()}}_.__SemiComponentName__="Cropper",_.propTypes={className:u().string,style:u().object},_.defaultProps={shape:"rect",defaultAspectRatio:1,showResizeBox:!0,fill:"rgba(0, 0, 0, 0)",maxZoom:3,minZoom:.1,zoomStep:.1};var y=_},879278:function(e,t,i){"use strict";i.r(t),i.d(t,{a:function(){return c.Z},code:function(){return f.Z},h1:function(){return r.Z},h2:function(){return n.Z},h3:function(){return s.Z},h4:function(){return o.Z},h5:function(){return a.Z},h6:function(){return l.Z},img:function(){return u.Z},p:function(){return h.Z},table:function(){return d.Z}});var r=i(680053),n=i(164411),s=i(17558),o=i(34529),a=i(400937),l=i(709882),c=i(882295),u=i(437476),d=i(36657),h=i(176304),f=i(387132)},451659:function(e,t,i){"use strict";i.d(t,{Z:function(){return S}}),i("932651");var r=i("971259"),n=i.n(r),s=i("92122"),o=i.n(s),a=i("795233"),l=i.n(a),c=i("101199"),u=i("622689"),d=i.n(u),h=i("469935"),f=i.n(h);i("490629");var p=i("856445"),m=i("182811");class g extends p.Z{init(){let{children:e,extra:t,extraId:i,addonId:r}=this._adapter.getProps();e&&!r&&this._adapter.setAddonId(),t&&!i&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}constructor(){super(...arguments),this.handleFocusVisible=e=>{let{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch(e){(0,m.Z)(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}}var v=i("680093"),_=i("155553");i("522252");var y=i("426337"),b=i("833958"),w=i("67495"),E=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i};class R extends y.Z{componentDidUpdate(e){this.props.checked!==e.checked&&(o()(this.props.checked)?this.foundation.setChecked(!1):n()(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:(0,_.Ms)({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:(0,_.Ms)({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){let e,t,i,r,n,s,o,a,l;let u=this.props,{addonClassName:d,addonStyle:h,disabled:p,style:m,className:g,prefixCls:_,displayMode:y,children:w,extra:R,mode:S,type:x,value:L,name:T}=u,C=E(u,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]),{hover:P,addonId:k,extraId:A,focusVisible:O,checked:I}=this.state,M={checked:I,disabled:p};this.isInGroup()?(e=this.context.radioGroup.value===L,t=p||this.context.radioGroup.disabled,i=this.context.mode,r=this.context.radioGroup.isButtonRadio,n=this.context.radioGroup.isCardRadio,s=this.context.radioGroup.isPureCardRadio,a=this.context.radioGroup.buttonSize,l=_||this.context.radioGroup.prefixCls,M.checked=e,M.disabled=t):(e=I,t=p,i=S,o="button"===x,l=_,r=x===v.j2.TYPE_BUTTON,s=x===v.j2.TYPE_PURECARD,n=x===v.j2.TYPE_CARD||s);let D=void 0===r?o:r,j=l||v.Gv.PREFIX,N=n||s||D,U=f()(j,{[`${j}-disabled`]:t,[`${j}-checked`]:e,[`${j}-${y}`]:!!y,[`${j}-buttonRadioComponent`]:o,[`${j}-buttonRadioGroup`]:r,[`${j}-buttonRadioGroup-${a}`]:r&&a,[`${j}-cardRadioGroup`]:n,[`${j}-cardRadioGroup_disabled`]:t&&n,[`${j}-cardRadioGroup_checked`]:n&&e&&!t,[`${j}-cardRadioGroup_checked_disabled`]:n&&e&&t,[`${j}-cardRadioGroup_hover`]:n&&!e&&P&&!t,[g]:!!g,[`${j}-focus`]:O&&(n||s)}),F=this.isInGroup()&&this.context.radioGroup.name,$=f()({[`${j}-addon`]:!D,[`${j}-addon-buttonRadio`]:D,[`${j}-addon-buttonRadio-checked`]:D&&e,[`${j}-addon-buttonRadio-disabled`]:D&&t,[`${j}-addon-buttonRadio-hover`]:D&&!e&&!t&&P,[`${j}-addon-buttonRadio-${a}`]:D&&a,[`${j}-focus`]:O&&D},d);return c.createElement("label",Object.assign({style:m,className:U,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(C)),c.createElement(b.Z,Object.assign({},this.props,M,{mode:i,name:null!=T?T:F,isButtonRadio:D,isPureCardRadioGroup:s,onChange:this.onChange,ref:e=>{this.radioEntity=e},addonId:w&&k,extraId:R&&A,focusInner:O&&!N,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),w||R?c.createElement("div",{className:f()([`${j}-content`,{[`${j}-isCardRadioGroup_content`]:n}])},w?c.createElement("span",{className:$,style:h,id:k,"x-semi-prop":"children"},w):null,R&&!D?c.createElement("div",{className:`${j}-extra`,id:A,"x-semi-prop":"extra"},R):null):null)}constructor(e){super(e),this.onChange=e=>{let{onChange:t}=this.props;if(this.isInGroup()){let{radioGroup:t}=this.context;t.onChange&&t.onChange(e)}"checked"in this.props||this.foundation.setChecked(e.target.checked),t&&t(e)},this.handleMouseEnter=e=>{this.props.onMouseEnter(e),this.foundation.setHover(!0)},this.handleMouseLeave=e=>{this.props.onMouseLeave(e),this.foundation.setHover(!1)},this.handleFocusVisible=e=>{this.foundation.handleFocusVisible(e)},this.handleBlur=e=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new g(this.adapter),this.radioEntity=null}}R.contextType=w.Z,R.propTypes={autoFocus:d().bool,checked:d().bool,defaultChecked:d().bool,value:d().any,style:d().object,className:d().string,disabled:d().bool,prefixCls:d().string,displayMode:d().oneOf(["vertical",""]),onChange:d().func,onMouseEnter:d().func,onMouseLeave:d().func,mode:d().oneOf(v.j2.MODE),extra:d().node,addonStyle:d().object,addonClassName:d().string,type:d().oneOf([v.j2.TYPE_DEFAULT,v.j2.TYPE_BUTTON,v.j2.TYPE_CARD,v.j2.TYPE_PURECARD]),"aria-label":d().string,preventScroll:d().bool},R.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:l(),onMouseLeave:l(),mode:"",type:"default"},R.elementType="Radio";var S=R},417513:function(e,t,i){"use strict";i(932651),i(490629);var r=i(101199),n=i(469935),s=i.n(n),o=i(423340),a=i(361965),l=i(426337),c=i(59691);i(562600);var u=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i};let d=a.U.PREFIX;class h extends l.Z{componentDidMount(){this.foundation.init(),window.addEventListener("resize",this.foundation.ensureConstraint)}componentDidUpdate(e){this.props.direction!==e.direction&&(this.setState(e=>Object.assign(Object.assign({},e),{contextValue:Object.assign(Object.assign({},e.contextValue),{direction:this.props.direction})})),this.foundation.direction=this.props.direction)}componentWillUnmount(){this.foundation.destroy(),window.removeEventListener("resize",this.foundation.ensureConstraint)}get adapter(){return Object.assign(Object.assign({},super.adapter),{getGroupRef:()=>this.groupRef.current,getItem:e=>this.itemRefs.get(e).current,getItemCount:()=>this.itemRefs.size,getHandler:e=>this.handlerRefs.get(e).current,getHandlerCount:()=>this.handlerRefs.size,getItemMin:e=>this.itemMinMap.get(e),getItemMax:e=>this.itemMaxMap.get(e),getItemChange:e=>this.itemResizing.get(e),getItemEnd:e=>this.itemResizeEnd.get(e),getItemStart:e=>this.itemResizeStart.get(e),getItemDefaultSize:e=>this.itemDefaultSizeList.get(e),registerEvents:this.registerEvent,unregisterEvents:this.unregisterEvent})}get window(){var e;return null!==(e=this.groupRef.current.ownerDocument.defaultView)&&void 0!==e?e:null}render(){let e=this.props,{children:t,direction:i,className:n}=e,o=u(e,["children","direction","className"]);return r.createElement(c.M.Provider,{value:this.state.contextValue},r.createElement("div",Object.assign({style:{flexDirection:"vertical"===i?"column":"row"},ref:this.groupRef,className:s()(n,d+"-group")},o),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle,className:s()(n,d+"-background")}),t))}constructor(e){var t;super(e),t=this,this.itemRefs=new Map,this.itemMinMap=new Map,this.itemMaxMap=new Map,this.itemMinusMap=new Map,this.itemDefaultSizeList=new Map,this.itemResizeStart=new Map,this.itemResizing=new Map,this.itemResizeEnd=new Map,this.handlerRefs=new Map,this.registerEvent=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mouse";t.window&&("mouse"===e?(t.window.addEventListener("mousemove",t.foundation.onMouseMove),t.window.addEventListener("mouseup",t.foundation.onResizeEnd),t.window.addEventListener("mouseleave",t.foundation.onResizeEnd)):(t.window.addEventListener("touchmove",t.foundation.onTouchMove,{passive:!1}),t.window.addEventListener("touchend",t.foundation.onResizeEnd),t.window.addEventListener("touchcancel",t.foundation.onResizeEnd)))},this.unregisterEvent=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mouse";t.window&&("mouse"===e?(t.window.removeEventListener("mousemove",t.foundation.onMouseMove),t.window.removeEventListener("mouseup",t.foundation.onResizeEnd),t.window.removeEventListener("mouseleave",t.foundation.onResizeEnd)):(t.window.removeEventListener("touchmove",t.foundation.onTouchMove,{passive:!1}),t.window.removeEventListener("touchend",t.foundation.onResizeEnd),t.window.removeEventListener("touchcancel",t.foundation.onResizeEnd)))},this.registerItem=(e,t,i,r,n,s,o)=>{if(Array.from(this.itemRefs.values()).some(t=>t===e))return -1;let a=this.itemRefs.size;return this.itemRefs.set(a,e),this.itemMinMap.set(a,t),this.itemMaxMap.set(a,i),this.itemDefaultSizeList.set(a,r),this.itemResizeStart.set(a,n),this.itemResizing.set(a,s),this.itemResizeEnd.set(a,o),a},this.registerHandler=e=>{if(Array.from(this.handlerRefs.values()).some(t=>t===e))return -1;let t=this.handlerRefs.size;return this.handlerRefs.set(t,e),t},this.getGroupSize=()=>this.groupSize,this.groupRef=(0,r.createRef)(),this.foundation=new o.qY(this.adapter),this.state={isResizing:!1,originalPosition:{x:0,y:0,lastItemSize:0,nextItemSize:0,lastOffset:0,nextOffset:0},backgroundStyle:{cursor:"auto"},curHandler:null,contextValue:{direction:e.direction,registerItem:this.registerItem,registerHandler:this.registerHandler,notifyResizeStart:this.foundation.onResizeStart,getGroupSize:this.getGroupSize}}}}h.propTypes={},h.defaultProps={direction:"horizontal"},h.contextType=c.M,t.Z=h},382141:function(e,t,i){"use strict";i(932651);var r=i(101199),n=i(862656),s=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i};class o extends r.PureComponent{render(){let e=this.props,{onResize:t,onResizeStart:i,onResizeStop:o,width:a,resize:l}=e,c=s(e,["onResize","onResizeStart","onResizeStop","width","resize"]);if("number"!=typeof a||!1===l)return r.createElement("th",Object.assign({},c));let{children:u}=c;return u=r.Children.map(u,(e,t)=>r.createElement(r.Fragment,{key:t},e)),r.createElement(n.Resizable,{width:a,height:0,onResize:t,onResizeStart:i,onResizeStop:o,draggableOpts:{enableUserSelectHack:!1},axis:"x"},r.createElement("th",Object.assign({},c),u))}}t.Z=o},691801:function(e,t,i){"use strict";i(932651),i(683656),i(759943);var r=i(72137),n=i.n(r),s=i(795233),o=i.n(s),a=i(101199),l=i(469935),c=i.n(l),u=i(622689),d=i.n(u),h=i(544026),f=i(642911),p=i(640815),m=i(426337),g=i(209873),v=i(14786);i(529962);var _=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i};let y=f.UX.PREFIX;class b extends m.Z{static getDerivedStateFromProps(e){let{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,i,r)=>this.props.onError(e,t,i,r),notifySuccess:(e,t,i)=>this.props.onSuccess(e,t,i),notifyProgress:(e,t,i)=>this.props.onProgress(e,t,i),notifyRemove:(e,t,i)=>this.props.onRemove(e,t,i),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{"function"==typeof t?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:i}=e;return this.props.beforeUpload({file:t,fileList:i})},notifyAfterUpload:e=>{let{response:t,file:i,fileList:r}=e;return this.props.afterUpload({response:t,file:i,fileList:r})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:i}=e;return this.props.onChange({currentFile:t,fileList:i})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,i)=>this.props.onDrop(e,t,i),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){let e=this.props,{style:t,className:i,multiple:r,accept:n,disabled:s,children:o,capture:l,listType:u,prompt:d,promptPosition:h,draggable:p,validateMessage:m,validateStatus:g,directory:v}=e,b=_(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),w=c()(y,{[`${y}-picture`]:u===f.j2.FILE_LIST_PIC,[`${y}-disabled`]:s,[`${y}-default`]:"default"===g,[`${y}-error`]:"error"===g,[`${y}-warning`]:"warning"===g,[`${y}-success`]:"success"===g},i),E=c()(`${y}-hidden-input`),R=c()(`${y}-hidden-input-replace`),S=c()(`${y}-prompt`),x=c()(`${y}-validate-message`);return a.createElement("div",Object.assign({className:w,style:t,"x-prompt-pos":h},this.getDataAttr(b)),a.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:r,accept:n,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:E,ref:this.inputRef},v?{directory:"directory",webkitdirectory:"webkitdirectory"}:{})),a.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:n,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:R,ref:this.replaceInputRef}),this.renderAddContent(),d?a.createElement("div",{className:S,"x-semi-prop":"prompt"},d):null,m?a.createElement("div",{className:x,"x-semi-prop":"validateMessage"},m):null,this.renderFileList())}constructor(e){super(e),this.inputRef=null,this.replaceInputRef=null,this.onClick=()=>{let{inputRef:e,props:t}=this,{onOpenFileDialog:i}=t;if(!this.props.disabled&&!!e&&!!e.current)e.current.click(),i&&i()},this.onChange=e=>{let{files:t}=e.target;this.foundation.handleChange(t)},this.replace=e=>{this.setState({replaceIdx:e},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=e=>{let{files:t}=e.target;this.foundation.handleReplaceChange(t)},this.clear=()=>{this.foundation.handleClear()},this.remove=e=>{this.foundation.handleRemove(e)},this.insert=(e,t)=>this.foundation.insertFileToList(e,t),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(e,t,i)=>{let{name:r,status:s,validateMessage:o,_sizeInvalid:l,uid:c}=e,{previewFile:u,listType:d,itemStyle:h,showPicInfo:m,renderPicInfo:g,renderPicClose:v,renderPicPreviewIcon:_,renderFileOperation:y,renderFileItem:b,renderThumbnail:w,disabled:E,onPreviewClick:R,picWidth:S,picHeight:x,showTooltip:L}=this.props,T=Object.assign(Object.assign(Object.assign({},n()(this.props,["showRetry","showReplace",""])),e),{previewFile:u,listType:d,onRemove:()=>this.remove(e),onRetry:()=>{this.foundation.retry(e)},index:t,key:c||`${r}${t}`,style:h,disabled:E,showPicInfo:m,renderPicInfo:g,renderPicPreviewIcon:_,renderPicClose:v,renderFileOperation:y,renderThumbnail:w,onReplace:()=>{this.replace(t)},onPreviewClick:void 0!==R?()=>this.foundation.handlePreviewClick(e):void 0,picWidth:S,picHeight:x,showTooltip:L});return(s===f.j2.FILE_STATUS_UPLOAD_FAIL&&!o&&(T.validateMessage=i.fail),l&&!o&&(T.validateMessage=i.illegalSize),void 0===b)?a.createElement(p.Z,Object.assign({},T)):b(T)},this.renderFileList=()=>{let{listType:e}=this.props;return e===f.j2.FILE_LIST_PIC?this.renderFileListPic():e===f.j2.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{let{showUploadList:e,limit:t,disabled:i,children:r,draggable:n,hotSpotLocation:s,picHeight:o,picWidth:l}=this.props,{fileList:u,dragAreaStatus:d}=this.state,h=this.props.fileList||u,p=!t||t>h.length,m=`${y}-drag-area`,v=c()(`${y}-add`,{[`${y}-picture-add`]:!0,[`${y}-picture-add-disabled`]:i}),_=c()(`${y}-file-list`,{[`${y}-picture-file-list`]:!0}),b=c()({[`${m}-legal`]:d===f.j2.DRAG_AREA_LEGAL,[`${m}-illegal`]:d===f.j2.DRAG_AREA_ILLEGAL}),w=`${y}-file-list-main`,E={role:"button",className:v,onClick:this.onClick,style:{height:o,width:l}},R={className:_},S={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};n&&Object.assign(E,S,{className:c()(v,b)});let x=a.createElement("div",Object.assign({},E,{"x-semi-prop":"children"}),r);if(!e||!h.length)return p?x:null;return a.createElement(g.Z,{componentName:"Upload"},e=>a.createElement("div",Object.assign({},R),a.createElement("div",{className:w,role:"list","aria-label":"picture list"},p&&"start"===s?x:null,h.map((t,i)=>this.renderFile(t,i,e)),p&&"end"===s?x:null)))},this.renderFileListDefault=()=>{let{showUploadList:e,limit:t,disabled:i}=this.props,{fileList:r}=this.state,n=this.props.fileList||r,s=c()(`${y}-file-list`),o=`${y}-file-list-title`,l=`${y}-file-list-main`,u=1!==t&&n.length,d=this.props.showClear&&!i,h={className:s};return e&&n.length?a.createElement(g.Z,{componentName:"Upload"},e=>a.createElement("div",Object.assign({},h),u?a.createElement("div",{className:o},a.createElement("span",{className:`${o}-choosen`},e.selectedFiles),d?a.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${o}-clear`},e.clear):null):null,a.createElement("div",{className:l,role:"list","aria-label":"file list"},n.map((t,i)=>this.renderFile(t,i,e))))):null},this.onDrop=e=>{this.foundation.handleDrop(e)},this.onDragOver=e=>{this.foundation.handleDragOver(e)},this.onDragLeave=e=>{this.foundation.handleDragLeave(e)},this.onDragEnter=e=>{this.foundation.handleDragEnter(e)},this.renderAddContent=()=>{let{draggable:e,children:t,listType:i,disabled:r}=this.props,n=c()(`${y}-add`);return i===f.j2.FILE_LIST_PIC?null:e?this.renderDragArea():a.createElement("div",{role:"button",tabIndex:0,"aria-disabled":r,className:n,onClick:this.onClick},t)},this.renderDragArea=()=>{let{dragAreaStatus:e}=this.state,{children:t,dragIcon:i,dragMainText:r,dragSubText:n,disabled:s}=this.props,o=`${y}-drag-area`,l=c()(o,{[`${o}-legal`]:e===f.j2.DRAG_AREA_LEGAL,[`${o}-illegal`]:e===f.j2.DRAG_AREA_ILLEGAL,[`${o}-custom`]:t});return a.createElement(g.Z,{componentName:"Upload"},c=>a.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:l,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},t||a.createElement(a.Fragment,null,a.createElement("div",{className:`${o}-icon`,"x-semi-prop":"dragIcon"},i||a.createElement(v.Z,{size:"extra-large"})),a.createElement("div",{className:`${o}-text`},a.createElement("div",{className:`${o}-main-text`,"x-semi-prop":"dragMainText"},r||c.mainText),a.createElement("div",{className:`${o}-sub-text`,"x-semi-prop":"dragSubText"},n),a.createElement("div",{className:`${o}-tips`},e===f.j2.DRAG_AREA_LEGAL&&a.createElement("span",{className:`${o}-tips-legal`},c.legalTips),e===f.j2.DRAG_AREA_ILLEGAL&&a.createElement("span",{className:`${o}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new h.Z(this.adapter),this.inputRef=a.createRef(),this.replaceInputRef=a.createRef()}}b.propTypes={accept:d().string,action:d().string.isRequired,addOnPasting:d().bool,afterUpload:d().func,beforeClear:d().func,beforeRemove:d().func,beforeUpload:d().func,children:d().node,className:d().string,customRequest:d().func,data:d().oneOfType([d().object,d().func]),defaultFileList:d().array,directory:d().bool,disabled:d().bool,dragIcon:d().node,dragMainText:d().node,dragSubText:d().node,draggable:d().bool,fileList:d().array,fileName:d().string,headers:d().oneOfType([d().object,d().func]),hotSpotLocation:d().oneOf(["start","end"]),itemStyle:d().object,limit:d().number,listType:d().oneOf(f.j2.LIST_TYPE),maxSize:d().number,minSize:d().number,multiple:d().bool,name:d().string,onAcceptInvalid:d().func,onChange:d().func,onClear:d().func,onDrop:d().func,onError:d().func,onExceed:d().func,onFileChange:d().func,onOpenFileDialog:d().func,onPreviewClick:d().func,onProgress:d().func,onRemove:d().func,onRetry:d().func,onSizeError:d().func,onSuccess:d().func,onPastingError:d().func,previewFile:d().func,prompt:d().node,promptPosition:d().oneOf(f.j2.PROMPT_POSITION),picWidth:d().oneOfType([d().number,d().string]),picHeight:d().oneOfType([d().number,d().string]),renderFileItem:d().func,renderPicPreviewIcon:d().func,renderFileOperation:d().func,renderPicClose:d().func,renderPicInfo:d().func,renderThumbnail:d().func,showClear:d().bool,showPicInfo:d().bool,showReplace:d().bool,showRetry:d().bool,showUploadList:d().bool,style:d().object,timeout:d().number,transformFile:d().func,uploadTrigger:d().oneOf(f.j2.UPLOAD_TRIGGER),validateMessage:d().node,validateStatus:d().oneOf(f.j2.VALIDATE_STATUS),withCredentials:d().bool,showTooltip:d().oneOfType([d().bool,d().object])},b.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:o(),onChange:o(),beforeRemove:()=>!0,beforeClear:()=>!0,onClear:o(),onDrop:o(),onError:o(),onExceed:o(),onFileChange:o(),onOpenFileDialog:o(),onProgress:o(),onRemove:o(),onRetry:o(),onSizeError:o(),onSuccess:o(),onPastingError:o(),promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1,showTooltip:!0},b.FileCard=p.Z,t.Z=b},382753:function(e,t,i){"use strict";i.d(t,{$:function(){return s}}),i(374954),i(490629),i(527553),i(780582),i(228983),i(759943),i(14275),i(76375),i(190932),i(808483),i(126159),i(100832),i(825666),i(943281),i(82726);var r=i(374315),n=i(204982);function s(e,t,i){let s;let o=new r.j6;o.url=t;let a=new r.Xt(t),l=null,c=null,u=0,d=0,h=0,f=0,p=!1,m=0;for(;s=e[f++];){if("#"!==s[0]){if(o.lowLatency){d++;continue}a.sn=d,a.cc=h,a.url=(0,n.WN)(s,t),c&&(a.key=c.clone(d)),l&&(a.initSegment=l),o.segments.push(a),a=new r.Xt(t),d++;continue}let e=(0,n.nI)(s);if(!e)continue;let[f,g]=e;switch(f){case"VERSION":o.version=parseInt(g);break;case"PLAYLIST-TYPE":o.type=null==g?void 0:g.toUpperCase();break;case"TARGETDURATION":o.targetDuration=parseFloat(g);break;case"PART-INF":{i&&(o.lowLatency=!0);let e=(0,n.AK)(g);e["PART-TARGET"]&&(o.partTargetDuration=parseFloat(e["PART-TARGET"]))}break;case"SERVER-CONTROL":{let e=(0,n.AK)(g);o.canBlockReload="YES"===e["CAN-BLOCK-RELOAD"],o.partHoldBack=parseFloat(e["PART-HOLD-BACK"]||0),o.canSkipUntil=parseFloat(e["CAN-SKIP-UNTIL"]||0),o.canSkipDateRanges=o.canSkipUntil>0&&"YES"===e["CAN-SKIP-DATERANGES"]}break;case"ENDLIST":p=!0;break;case"MEDIA-SEQUENCE":d=o.startSN=parseInt(g);break;case"DISCONTINUITY-SEQUENCE":h=o.startCC=parseInt(g);break;case"DISCONTINUITY":h++;break;case"BYTERANGE":a.setByteRange(g,o.segments[o.segments.length-1]);break;case"PART":{if(!o.lowLatency)break;let e=(0,n.AK)(g);a.duration=parseFloat(e.DURATION),a.independent="YES"===e.INDEPENDENT,a.sn=d,a.cc=h,a.partIndex=m,a.start=u,a.duration=parseFloat(e.DURATION),u+=a.duration,a.url=(0,n.WN)(e.URI,t),c&&(a.key=c.clone(d)),l&&(a.initSegment=l),o.segments.push(a),a=new r.Xt(t),m++}break;case"PRELOAD-HINT":{let e=(0,n.AK)(g);if(o.preloadHint=e,"PART"===e.TYPE&&e.URI){let t=e.URI.split(".ts")[0].split("-");o.nextSN=t[3],o.nextIndex=t[t.length-1]}}break;case"PROGRAM-DATE-TIME":a.dataTime=g;break;case"EXTINF":{if(o.lowLatency){m=0;break}let[e,t]=g.split(",");a.start=u,a.duration=parseFloat(e),u+=a.duration,a.title=t}break;case"KEY":{let e=(0,n.AK)(g);if("NONE"===e.METHOD){c=null;break}if((c=new r.Vs).method=e.METHOD,c.url=/^blob:/.test(e.URI)?e.URI:(0,n.WN)(e.URI,t),c.keyFormat=e.KEYFORMAT||"identity",c.keyFormatVersions=e.KEYFORMATVERSIONS,!c.isSupported())throw Error(`encrypt ${e.METHOD}/${e.KEYFORMAT} is not supported`);if(e.IV){let t=e.IV.slice(2);t=(1&t.length?"0":"")+t,c.iv=new Uint8Array(t.length/2);for(let e=0,i=t.length/2;e<i;e++)c.iv[e]=parseInt(t.slice(2*e,2*e+2),16)}}break;case"MAP":{let e=(0,n.AK)(g);a.url=(0,n.WN)(e.URI,t),e.BYTERANGE&&a.setByteRange(e.BYTERANGE),a.isInitSegment=!0,a.sn=0,c&&(a.key=c.clone(0)),l=a,a=new r.Xt(t)}break;case"SKIP":{let e=parseInt((0,n.AK)(g)["SKIPPED-SEGMENTS"],10);e<=Number.MAX_SAFE_INTEGER&&(o.skippedSegments+=e,d+=e)}break;case"DATERANGE":{let e=(0,n.AK)(g),t=o.dateRanges[e.ID];e._startDate=t?t._startDate:new Date(e["START-DATE"]);let i=(null==t?void 0:t._endDate)||new Date(e.END_DATE);Number.isFinite(i)&&(e._endDate=i),((0,n.I6)(e,t)||o.skippedSegments)&&(o.dateRanges[e.ID]=e)}}}o.segments=o.segments.filter(e=>0!==e.duration);let g=o.segments[o.segments.length-1];return g&&(p&&(g.isLast=!0),o.endSN=g.sn,o.endPartIndex=g.partIndex),p&&(o.live=!1),o.totalDuration=u,o.endCC=h,o}},699634:function(e,t,i){"use strict";i.d(t,{VB:function(){return s.V},Wc:function(){return r.W},e3:function(){return a.e},lE:function(){return o.l},xW:function(){return n.x}});var r=i(289767),n=i(649216),s=i(380723),o=i(161833);i(738708);var a=i(768388)},48934:function(e,t,i){"use strict";i.d(t,{Z:function(){return S}});var r=i("480333"),n=i("629686"),s=i("141773"),o=i("402748");i("679308"),i("302356"),i("490629"),i("76375");var a=i("220442"),l=i("665480"),c=i("306607"),u=i("125471"),d=i("487359"),h=i("148079"),f=i("731157"),p=i("906331"),m=i("742744"),g=i("289982"),v=i("445083");let _=new d.ZP("flv");class y extends s.Z{get isLive(){return this._opts.isLive}get seekable(){return!!this._keyframes&&this._acceptRanges}get loader(){return this._mediaLoader}speedInfo(){return this._bandwidthService.speedInfo}bufferInfo(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.1;return p.l.info(p.l.get(this.media),null===(e=this.media)||void 0===e?void 0:e.currentTime,t)}updateOption(e){this._opts=(0,l.R)((0,n._)({},this._opts,e)),this._bufferService&&(this._bufferService._demuxer._awManager=this._opts.awManager),this.initAbr()}initAbr(){if(!!this._opts.useAbr)this._abr?this._abr.updateConfig(this._opts.abr):this._opts.abr&&!this._initABRing&&(this._initABRing=!0,fetch("https://unpkg.byted-static.com/byted/webplayer-extensions/0.0.8-beta.5/dist/abr.js").then(e=>e.text()).then(e=>{Function(e)(),this._player.seamlessLoad=this.seamlessLoad.bind(this),this._abr=new globalThis.__ABRClass(this._opts.abr,this._player),this._initABRing=!1}).catch(e=>{this._initABRing=!1}))}async load(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._opts.url,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this._bufferService){if(!e)return;await this._reset(t),this._loadData(e,this._opts.isLive?[]:[0,this._opts.defaultVodLoadSize]),clearTimeout(this._tickTimer),this._tickTimer=setTimeout(this._tick,this._tickInterval)}}disconnect(){return _.debug("disconnect!"),this._clear()}async switchURL(e,t){if(this._bufferService){if(this._resetDisconnectCount(),!t||!this._opts.isLive){var i;return await this.load(e),this._urlSwitching=!0,null===(i=this.media)||void 0===i?void 0:i.play().catch(()=>{})}await this._clear(),setTimeout(()=>{this._urlSwitching=!0,this._seamlessSwitching=!0,this._loadData(e,[]),this._bufferService.seamlessSwitch()})}}async seamlessLoad(e){this._player._onSwitchURL(e,!0)}async destroy(){this.media&&(this.removeAllListeners(),this.media.removeEventListener("play",this._onPlay),this.media.removeEventListener("loadeddata",this._onLoadeddata),this.media.removeEventListener("seeking",this._onSeeking),this.media.removeEventListener("timeupdate",this._onTimeupdate),this.media.removeEventListener("waiting",this._onWaiting),this.media.removeEventListener("progress",this._onBufferUpdate),this._player.off(m.le.KEYFRAME,this._onKeyframe),await Promise.all([this._clear(),this._bufferService.destroy()]),this.media=null,this._bufferService=null)}_emitError(e){var t;let i=!(arguments.length>1)||void 0===arguments[1]||arguments[1];_.table(e),_.error(e),_.error(null===(t=this.media)||void 0===t?void 0:t.error),this._urlSwitching&&(this._urlSwitching=!1,this._seamlessSwitching=!1,this._player.emit("switch_url_fail",e)),this._player.emit(m.le.FLVERROR,e),i&&this._end()}async _reset(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._bandwidthService.reset(),await this._clear(),await this._bufferService.reset(e)}async _loadData(e,t){e&&(this._opts.url=e);let i=e=this._opts.url;if(!e)throw Error("Source url is missing");this._opts.preProcessUrl&&(i=this._opts.preProcessUrl(e).url),this._mediaLoader._finnalUrl=i,_.debug("load data, loading:",this._loading,i),this._loading&&await this._mediaLoader.cancel(),this._loading=!0;try{this._seamlessSwitching&&this._player.emit(m.le.SWITCH_START,{url:e}),await this._mediaLoader.load((0,o._)((0,n._)({},this._opts.fetchOptions),{url:i,range:t,retry:this._opts.retryCount,retryDelay:this._opts.retryDelay,timeout:this._opts.loadTimeout,onRetryError:this._onRetryError,onProgress:this._onProgress,responseType:"arraybuffer"}))}catch(i){let t=g.Fc.network(i);if(this._loading=!1,this._seamlessSwitching){var r;this._seamlessSwitching=!1,this._player.emit(m.le.SWITCH_ERROR,{errorType:t.errorType,code:t.errorCode,message:t.message,httpCode:null===(r=t.ext)||void 0===r?void 0:r.httpCode,url:e})}return this._emitError(t,!1)}}async _clear(){this._mediaLoader&&await this._mediaLoader.cancel(),clearTimeout(this._maxChunkWaitTimer),clearTimeout(this._tickTimer),this._loading=!1,this._firstProgressEmit=!1}constructor(e,t){super(),(0,r._)(this,"media",void 0),(0,r._)(this,"_loading",!1),(0,r._)(this,"_opts",void 0),(0,r._)(this,"_player",void 0),(0,r._)(this,"_abr",void 0),(0,r._)(this,"_bufferService",void 0),(0,r._)(this,"_mediaLoader",void 0),(0,r._)(this,"_bandwidthService",void 0),(0,r._)(this,"_maxChunkWaitTimer",void 0),(0,r._)(this,"_tickTimer",void 0),(0,r._)(this,"_tickInterval",500),(0,r._)(this,"_urlSwitching",!1),(0,r._)(this,"_seamlessSwitching",!1),(0,r._)(this,"_disconnectRetryCount",0),(0,r._)(this,"_preLoadEndPoint",0),(0,r._)(this,"_seamlessSwitchTime",Date.now()),(0,r._)(this,"_keyframes",null),(0,r._)(this,"_acceptRanges",!0),(0,r._)(this,"_firstProgressEmit",!1),(0,r._)(this,"_transferCost",new u.P),(0,r._)(this,"_initABRing",!1),(0,r._)(this,"_gapService",new v.l),(0,r._)(this,"_onKeyframe",e=>{let{pts:t}=e;if(!this._abr||this._seamlessSwitching||Date.now()-this._seamlessSwitchTime<this._abr.config.start_limit)return;let{playbackRate:i=1}=this.media,r=this._player.bufferLength/1e3;this._abr.checkStatus(t,this._bandwidthService.speedInfo.currentSpeed,i,r)}),(0,r._)(this,"_onProgress",async(e,t,i,r)=>{var n,s;let{startTime:o,endTime:a,st:l,firstByteTime:c}=i;if(this._loading=!t,!this._firstProgressEmit){if(!this.media){null===(n=this._mediaLoader)||void 0===n||n.cancel();return}let e=r.headers,t=l?c-l:a-o;this._player.emit(m.le.TTFB,{url:this._opts.url,responseUrl:r.url,elapsed:t}),this._player.emit(m.le.RESPONSEHEADERS,{headers:e}),this._transferCost.set(u.b.TTFB,t),this._acceptRanges=!!(null==e?void 0:e.get("Accept-Ranges"))||!!(null==e?void 0:e.get("Content-Range")),this._firstProgressEmit=!0}if(!this._bufferService)return;clearTimeout(this._maxChunkWaitTimer),this._bandwidthService.recordChunk(null==e?void 0:e.byteLength);try{await this._bufferService.appendBuffer(e),null===(s=this._bufferService)||void 0===s||s.evictBuffer(this._opts.bufferBehind)}catch(e){if(!this.isLive&&this._bufferService.isFull()){await this._mediaLoader.cancel(),this._loading=!1;let e=this.bufferInfo().remaining;this._opts.preloadTime=e/2;return}return this._emitError(e)}if(this._urlSwitching&&(this._urlSwitching=!1),this._seamlessSwitching&&(this._seamlessSwitchTime=Date.now(),this._player.emit(m.le.SWITCH_COMPLETE,{url:this._opts.url}),this._seamlessSwitching=!1,this._tick()),t&&!this.media.seeking){_.debug("load done"),this.isLive&&this._disconnectRetryCount<=0&&this._end();return}if(!this.isLive)return;let{maxReaderInterval:d}=this._opts;d&&this._firstProgressEmit&&(clearTimeout(this._maxChunkWaitTimer),this._maxChunkWaitTimer=setTimeout(()=>{if(this._disconnectRetryCount){this._disconnectRetryCount--,this.load(this._opts.url,!1);return}_.debug("onMaxChunkWait",d),this._end()},d))}),(0,r._)(this,"_onRetryError",(e,t)=>{_.debug("load retry",e,t)}),(0,r._)(this,"_end",()=>{var e;this._clear(),this._bufferService&&this._bufferService.endOfStream(),null===(e=this.media)||void 0===e||e.dispatchEvent(new CustomEvent("ended")),_.debug("end stream")}),(0,r._)(this,"_resetDisconnectCount",()=>{this._disconnectRetryCount=this._opts.disconnectRetryCount}),(0,r._)(this,"_tick",()=>{clearTimeout(this._tickTimer);let{media:e}=this;if(!e)return;this._tickTimer=setTimeout(this._tick,this._tickInterval);let t=p.l.end(p.l.get(e));if(t<.1||!e.readyState)return;let i=this._opts;if((0,c.k)(e))this._gapService&&this._gapService.do(e,i.maxJumpDistance,this.isLive,3);else{if(!e.currentTime&&this._gapService&&i.enableStartGapJump){(this._opts.mseLowLatency||!1===this._opts.mseLowLatency&&this.bufferInfo(.3).nextStart)&&this._gapService.do(e,i.maxJumpDistance,this.isLive,3);return}i.isLive&&4===e.readyState&&t-e.currentTime>i.disconnectTime&&this.disconnect()}}),(0,r._)(this,"_onPlay",()=>{var e,t,i;let r=this._opts.softDecode||(null===(t=this.media)||void 0===t?void 0:null===(e=t.buffered)||void 0===e?void 0:e.length);if(this.isLive){if(!this._loading&&r){this._resetDisconnectCount(),this.load(this._opts.url);let e=null===(i=this.media)||void 0===i?void 0:i.play();return e&&e.catch?e.catch(()=>{}):e}return}let n=this.bufferInfo();(n.start||n.nextStart)>.1&&this._tick()}),(0,r._)(this,"_onLoadeddata",()=>{this.isLive&&!this._opts.mseLowLatency&&this.media.duration!==1/0&&this._bufferService.updateDuration(1/0).catch(()=>{})}),(0,r._)(this,"_onSeeking",async()=>{!this.isLive&&this.seekable&&(this._preLoadEndPoint=-1,this._checkPreload())}),(0,r._)(this,"_onTimeupdate",()=>{var e;if(!this.media)return;let t=this._opts,i=this.media.currentTime;if(t.isLive&&t.maxLatency&&t.targetLatency){let e=p.l.end(p.l.get(this.media));e-i>=t.maxLatency&&(this.media.currentTime=e-t.targetLatency)}null===(e=this._bufferService)||void 0===e||e._seiService.throw(i),!t.isLive&&this.seekable&&!this._loading&&this._checkPreload()}),(0,r._)(this,"_onWaiting",()=>{this.isLive&&!this._loading&&this._disconnectRetryCount&&(this._disconnectRetryCount--,this.load())}),(0,r._)(this,"_onBufferUpdate",()=>{if(this._opts.isLive)return;let{end:e,nextEnd:t}=this.bufferInfo();1>Math.abs((e||t)-this.media.duration)&&(this._end(),this.media.readyState<=2&&this._tick())}),(0,r._)(this,"_checkPreload",async()=>{let{remaining:e=0}=this.bufferInfo(),t=this._opts,i=this._keyframes.filepositions,r=this._keyframes.times,n=this.media.currentTime;if(e<t.preloadTime){let t=(0,c.s)(this._keyframes.times,n+e+.1),s=(0,c.s)(this._keyframes.times,n+e+this._opts.preloadTime);if(s===t&&(s=t+1),this._preLoadEndPoint===s)return;let o=i[t];if(null==o)return;await this._mediaLoader.cancel(),this._preLoadEndPoint=s,this._bufferService.unContiguous(r[t])}}),(0,r._)(this,"_onFlvScriptData",e=>{var t,i,r,n;let s=null===(i=e.data)||void 0===i?void 0:null===(t=i.onMetaData)||void 0===t?void 0:t.keyframes,o=null===(n=e.data)||void 0===n?void 0:null===(r=n.onMetaData)||void 0===r?void 0:r.duration;s&&(this._keyframes=s),!this._opts.isLive&&o&&this._bufferService.updateDuration(o)}),this._opts=(0,l.R)(e),this._player=t,this.media=this._opts.media,this._mediaLoader=new h.j,this._disconnectRetryCount=this._opts.disconnectRetryCount,this._transferCost=new u.P,this._bufferService=new a.y(this,null,this._opts),this._bandwidthService=new f.Z,this.media.addEventListener("play",this._onPlay),this.media.addEventListener("loadeddata",this._onLoadeddata),this.media.addEventListener("seeking",this._onSeeking),this.media.addEventListener("timeupdate",this._onTimeupdate),this.media.addEventListener("progress",this._onBufferUpdate),this.media.addEventListener("waiting",this._onWaiting),this._player.on(m.le.KEYFRAME,this._onKeyframe),this.initAbr()}}var b=i("34768"),w=i("773897"),E=i("469561"),R=i("603846");class S extends s.v{init(e){this._media=e;let{config:t}=this;if(this._flv=new y((0,n._)({isLive:!t.isVod,media:e},t),this),e.addEventListener("timeupdate",this.handleTimeupdate),e.autoplay){let t=()=>{e.removeEventListener("canplay",t),e.play().catch(()=>{null==e||e.dispatchEvent(new CustomEvent(R.c.AUTOPLAY_WAS_PREVENTED,{}))})};e.addEventListener("canplay",t)}this.initPlugins()}initPlugins(){let{plugins:e}=this.config;e&&(this.plugins=e.map(e=>new e(this))),this.plugins.forEach(e=>{e.afterPlayerInit()})}playBy(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{url:i}=t;this._src=i,this.updateProtoConfig(t),t.seamless?this.emit(b.Zo.SEAMLESS_LOAD_STREAM,{url:i}):this.emit(b.Zo.URLCHANGE,{url:i}),this._onSwitchURL(t.url,!!t.seamless),null===(e=this.media)||void 0===e||e.dispatchEvent(new CustomEvent("loadstart",{}))}updateProtoConfig(){var e,t,i,r;let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(s.decryption){if(s.decryption.entry===(null===(t=this.config.decryption)||void 0===t?void 0:t.entry)&&this.config.awManager)s.awManager=this.config.awManager;else{let e=(0,E.j)(s.decryption.entry);(null==e?void 0:e.default)&&(s.awManager=new e.default)}s.decryption.keyStr!==(null===(i=this.config.decryption)||void 0===i?void 0:i.keyStr)&&(null===(r=s.awManager)||void 0===r||r.descryptKey(s.decryption.keyStr))}else null===s.decryption&&(s.awManager=void 0);let o=(0,w.i)((0,n._)({},this.config,s));return this.config=o,null===(e=this._flv)||void 0===e||e.updateOption((0,n._)({isLive:!o.isVod},o)),o}reset(){this._flv&&(this._flv.destroy(),this._flv=void 0)}get src(){return this._src}get buffered(){var e;return null===(e=this.media)||void 0===e?void 0:e.buffered}get currentTime(){var e;return null===(e=this.media)||void 0===e?void 0:e.currentTime}get duration(){var e;return null===(e=this.media)||void 0===e?void 0:e.duration}get media(){return this._media}get speed(){var e;return null===(e=this.media)||void 0===e?void 0:e.playbackRate}set speed(e){this.speed!==e&&(this.media.playbackRate=e)}get bufferLength(){let{currentTime:e=0,buffered:t}=this._media||{};if(!t)return 0;for(let i=0;i<t.length;i++){let r=t.end(i);if(t.start(i)<=e&&r>=e)return(r-e)*1e3}return 0}play(){var e;return null===(e=this._media)||void 0===e?void 0:e.play()}constructor(e,t){super(),(0,r._)(this,"_media",null),(0,r._)(this,"_flv",void 0),(0,r._)(this,"_src",void 0),(0,r._)(this,"preUrl",void 0),(0,r._)(this,"_revocable",null),(0,r._)(this,"config",{}),(0,r._)(this,"plugins",[]),(0,r._)(this,"destroy",()=>{var e;this.removeAllListeners(),null===(e=this._media)||void 0===e||e.removeEventListener("timeupdate",this.handleTimeupdate),this._flv&&(this._flv.destroy(),this._flv=void 0),this.plugins.forEach(e=>{e.destroy()})}),(0,r._)(this,"_onSwitchURL",(e,t)=>{if(this._flv){var i;this.preUrl=this.config.url,this.config.url=e,this._flv.switchURL(e,t),!t&&(null===(i=this.config)||void 0===i?void 0:i.keepStatusAfterSwitch)&&this._keepPauseStatus()}}),(0,r._)(this,"onSwitchCancel",()=>{this._flv&&this._flv._seamlessSwitching&&this._flv._loading&&this.preUrl&&this.playBy({url:this.preUrl})}),(0,r._)(this,"_keepPauseStatus",()=>{var e,t;if(!(null===(e=this._media)||void 0===e?void 0:e.paused))return;let i=()=>{var e,t;null===(e=this.media)||void 0===e||e.removeEventListener("canplay",i),null===(t=this._media)||void 0===t||t.pause()};null===(t=this.media)||void 0===t||t.addEventListener("canplay",i)}),(0,r._)(this,"handleTimeupdate",()=>{var e;this.emit(m.le.PROP_SPEED,(0,n._)({},null===(e=this._flv)||void 0===e?void 0:e._bandwidthService.speedInfo));let t=this.bufferLength;1.1===this.speed?t<=1800&&(this.speed=1):1===this.speed&&t>=2500&&(this.speed=1.1)}),this.config=this.updateProtoConfig(t),this._src=this.config.url,this.init(e)}}},833827:function(e,t,i){"use strict";function r(){let e,t;let i=new Promise((i,r)=>{e=i,t=r});return i.resolve=function(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return e(...i)},i.reject=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return t(...i)},i}i.d(t,{Q:function(){return r}}),i(679308),i(490629)},324793:function(e,t,i){"use strict";i.d(t,{U:function(){return n},j:function(){return s}});var r=i(707852);let n={PREFIX:`${r.T}-anchor`},s={SIZE:["small","default"],SLIDE_COLOR:["primary","tertiary","muted"],MAX_WIDTH:"200px",MAX_HEIGHT:"750px",POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"]}},876794:function(e,t,i){"use strict";i.d(t,{Z:function(){return o}}),i(932651);var r=i(243392),n=i.n(r),s=i(856445);class o extends s.Z{init(){this._startCloseTimer(),this._id=this.getProp("id")}destroy(){this._clearCloseTimer()}_startCloseTimer(){let e=this.getProp("duration");e&&n()(e)&&(this._timer=setTimeout(()=>{this.close()},1e3*e))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}_clearCloseTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this._clearCloseTimer(),this._startCloseTimer()}constructor(e){super(Object.assign(Object.assign({},o.defaultAdapter),e)),this._timer=null,this._id=null}}},573797:function(e,t,i){"use strict";i.d(t,{KT:function(){return o},UX:function(){return n},j2:function(){return s},mw:function(){return a}});var r=i(707852);let n={PREFIX:`${r.T}-videoPlayer`,PREFIX_CONTROLS:`${r.T}-videoPlayer-controls`,PREFIX_PROGRESS:`${r.T}-videoPlayer-progress`},s={DARK:"dark",LIGHT:"light",PLAY:"play",NEXT:"next",TIME:"time",VOLUME:"volume",PLAYBACK_RATE:"playbackRate",QUALITY:"quality",ROUTE:"route",MIRROR:"mirror",FULLSCREEN:"fullscreen",PICTURE_IN_PICTURE:"pictureInPicture"},o={DEFAULT_VOLUME:100,DEFAULT_SEEK_TIME:10,DEFAULT_VOLUME_STEP:10,DEFAULT_PLAYBACK_RATE:1},a=[{label:"2.0x",value:2},{label:"1.5x",value:1.5},{label:"1.25x",value:1.25},{label:"1.0x",value:1},{label:"0.75x",value:.75}]},191316:function(e,t,i){"use strict";i(932651);var r=i(101199);function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}let s=r.forwardRef(function(e,t){return r.createElement("svg",n({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,ref:t},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 8.75H7V7.25H17V8.75ZM17 12.75H7V11.25H17V12.75ZM7 16.75H17V15.25H7V16.75Z",fill:"currentColor"}))});s.elementType="Icon",t.Z=s},290913:function(e,t,i){"use strict";i(932651);var r=i(101199);function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}let s=r.forwardRef(function(e,t){return r.createElement("svg",n({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,ref:t},e),r.createElement("path",{d:"M23.5 15.134C24.1667 15.5189 24.1667 16.4811 23.5 16.866L12.25 23.3612C11.5833 23.7461 10.75 23.265 10.75 22.4952L10.75 9.50481C10.75 8.73501 11.5833 8.25388 12.25 8.63878L23.5 15.134Z",fill:"currentColor"}))});s.elementType="Icon",t.Z=s},356410:function(e,t,i){"use strict";i.d(t,{Z:function(){return o}});var r=i(629686),n=i(402748),s=i(320165);i(101199);var o=e=>(0,s.jsx)("svg",(0,n._)((0,r._)({xmlns:"http://www.w3.org/2000/svg",width:33,height:32,fill:"none",viewBox:"0 0 33 32"},e),{children:(0,s.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M14.033 8.027c1.981-1.453 4.774-.038 4.774 2.42v11.106c0 2.457-2.792 3.873-4.774 2.42l-3.79-2.78a1 1 0 0 0-.59-.193h-.846a3 3 0 0 1-3-3v-4a3 3 0 0 1 3-3h.845a1 1 0 0 0 .592-.194l3.789-2.779Zm2.774 2.42a1 1 0 0 0-1.591-.807l-3.79 2.78a3 3 0 0 1-1.774.58h-.845a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h.845a3 3 0 0 1 1.774.58l3.79 2.78a1 1 0 0 0 1.591-.807V10.447Zm4.8 1.378.58.815a5.772 5.772 0 0 1 0 6.72l-.58.815-1.629-1.16.58-.815a3.771 3.771 0 0 0 0-4.4l-.58-.814 1.629-1.16Zm3.58-1.326-.58-.814-1.629 1.16.58.815a7.445 7.445 0 0 1 0 8.68l-.58.815 1.629 1.16.58-.814a9.445 9.445 0 0 0 0-11.002Z",clipRule:"evenodd"})}))},983915:function(e,t,i){"use strict";i.d(t,{x:function(){return h}});var r,n=i(480333);i(190932),i(808483),i(126159),i(100832),i(825666),i(943281),i(82726),i(490629);var s=i(292948),o=i(934180);i(833255);var a=Object.defineProperty,l=Object.getOwnPropertyDescriptor;let c="douyin-player-triple-video-hide",u="douyin-player-triple-video",d=(r=class e extends s.di{static isSupported(){if("undefined"==typeof window)return!1;let e=document.createElement("canvas");return!!(e.getContext("webgl")||e.getContext("experimental-webgl"))&&!!window.requestAnimationFrame}render(){let{enable:e}=this._config;return`
<div class="${u} ${e&&this.isSupport?"":c}">
<canvas class="${u}-canvas"></canvas>
</div>
`}afterPlayerInit(){if(!this._inited)this._inited=!0,this._video=this._root.querySelector("video"),this._video.crossOrigin="anonymous",this.bindVideoEvents(),this._renderCanvas=this.el.querySelector(`.${u}-canvas`),this._renderCanvas.addEventListener("webglcontextlost",this.emitDegrade)}configDidUpdate(){(this._config.enable||this._config.enableTip)&&this.isSupport?(this._render?!this._rafId&&(this._rafId=window.requestAnimationFrame(this._render)):this.initRender(),this._config.enable?(this._video.style.display="none",this.el.classList.remove(c),this.showTripe(),this.hideTip()):(this._video.style.display="block",this.el.classList.add(c),this.showTip())):(this.cancelRaf(),this._video.style.display="block",this.el.classList.add(c),this.hideTip())}beforeDestroy(){this.cancelRaf(),this._renderCanvas.removeEventListener("webglcontextlost",this.emitDegrade),this._video&&(this._video.style.display="block",this.hideTip(),this._video.removeEventListener("loadeddata",this.initRender),this._video.removeEventListener("enterpictureinpicture",this.enterpictureinpicture),this._video.removeEventListener("leavepictureinpicture",this.leavepictureinpicture))}bindVideoEvents(){this._video.addEventListener("loadeddata",this.initRender),this._video.addEventListener("enterpictureinpicture",this.enterpictureinpicture),this._video.addEventListener("leavepictureinpicture",this.leavepictureinpicture)}initCanvasSize(){var e;if(null===(e=this._renderCanvas)||void 0===e?void 0:e.inited)return!0;if(!this._video.videoWidth||!this._video.videoHeight)return this.emitDegrade("videoWidth or videoHeight is 0"),!1;if(this._video.videoHeight>this._video.videoWidth){let e=Math.ceil(1080/this._video.videoHeight);return this._renderCanvas.width=3*this._video.videoWidth*e,this._renderCanvas.height=this._video.videoHeight*e,this._renderCanvas.inited=!0,!0}return this.emitDegrade("videoHeight <= videoWidth"),!1}initWebGL(){let e=this._renderCanvas.getContext("webgl")||this._renderCanvas.getContext("experimental-webgl"),t=`
attribute vec2 aPosition;
attribute vec2 aTexCoord;
varying vec2 vTexCoord;
void main() {
gl_Position = vec4(aPosition, 0.0, 1.0);
vTexCoord = aTexCoord;
}
`,i=`
precision mediump float;
varying vec2 vTexCoord;
uniform sampler2D uSampler;
void main() {
gl_FragColor = texture2D(uSampler, vTexCoord);
}
`,r=this.initShaderProgram(e,t,i),n={program:r,attribLocations:{position:e.getAttribLocation(r,"aPosition"),texCoord:e.getAttribLocation(r,"aTexCoord")},uniformLocations:{sampler:e.getUniformLocation(r,"uSampler")}},s=this.initBuffers(e),o=this.initTexture(e);this._render=()=>{this.drawScene(e,n,s,o),this._rafId=requestAnimationFrame(this._render)},this._rafId=requestAnimationFrame(this._render)}initShaderProgram(e,t,i){let r=this.loadShader(e,e.VERTEX_SHADER,t),n=this.loadShader(e,e.FRAGMENT_SHADER,i),s=e.createProgram();return(e.attachShader(s,r),e.attachShader(s,n),e.linkProgram(s),e.getProgramParameter(s,e.LINK_STATUS))?s:(this.emitDegrade("init shader program failed"),null)}loadShader(e,t,i){let r=e.createShader(t);return(e.shaderSource(r,i),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))?r:(e.deleteShader(r),this.emitDegrade("load shader failed"),null)}initBuffers(e){let t=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,t),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,-1/3,-1,-1,1,-1/3,1,-1/3,-1,1/3,-1,-1/3,1,1/3,1,1/3,-1,1,-1,1/3,1,1,1]),e.STATIC_DRAW);let i=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,i),e.bufferData(e.ARRAY_BUFFER,new Float32Array([0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,0]),e.STATIC_DRAW);let r=e.createBuffer();return e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,r),e.bufferData(e.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,1,2,3,4,5,6,5,6,7,8,9,10,9,10,11]),e.STATIC_DRAW),{position:t,textureCoord:i,indices:r}}initTexture(e){let t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),this.updateTexture(e,t),t}drawScene(e,t,i,r){e.clearColor(0,0,0,1),e.clear(e.COLOR_BUFFER_BIT),this.updateTexture(e,r),e.bindBuffer(e.ARRAY_BUFFER,i.position),e.vertexAttribPointer(t.attribLocations.position,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(t.attribLocations.position),e.bindBuffer(e.ARRAY_BUFFER,i.textureCoord),e.vertexAttribPointer(t.attribLocations.texCoord,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(t.attribLocations.texCoord),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,i.indices),e.useProgram(t.program),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,r),e.uniform1i(t.uniformLocations.sampler,0),e.drawElements(e.TRIANGLES,18,e.UNSIGNED_SHORT,0)}updateTexture(e,t){var i;e.bindTexture(e.TEXTURE_2D,t),(null===(i=this._video)||void 0===i?void 0:i.videoWidth)&&e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,this._video)}constructor(...t){var i;super(...t),i=this,(0,n._)(this,"isSupport",e.isSupported()),(0,n._)(this,"_renderCanvas",void 0),(0,n._)(this,"_video",void 0),(0,n._)(this,"isUseTriple",!1),(0,n._)(this,"_rafId",void 0),(0,n._)(this,"_render",void 0),(0,n._)(this,"showTripe",()=>{!this.el.querySelector(`.${u}-canvas`)&&this.el.appendChild(this._renderCanvas)}),(0,n._)(this,"showTip",()=>{this._config.tipDom&&this._renderCanvas&&this._config.tipDom.appendChild(this._renderCanvas)}),(0,n._)(this,"hideTip",()=>{this._config.tipDom&&this._renderCanvas&&this._renderCanvas.parentElement===this._config.tipDom&&this._config.tipDom.removeChild(this._renderCanvas)}),(0,n._)(this,"cancelRaf",()=>{this._rafId&&(window.cancelAnimationFrame(this._rafId),this._rafId=void 0)}),(0,n._)(this,"initRender",()=>{if(!this._render){if(this.isUseTriple=this.initCanvasSize(),this.isUseTriple&&(this._config.enableTip||this._config.enable)&&this.isSupport){if(this.cancelRaf(),this.initWebGL(),this._config.enable)this._video.style.display="none";else{var e;null===(e=this._config.tipDom)||void 0===e||e.appendChild(this._renderCanvas)}}else this._video.style.display="block"}}),(0,n._)(this,"enterpictureinpicture",()=>{this.el.classList.add(c)}),(0,n._)(this,"leavepictureinpicture",()=>{this.isUseTriple&&this._config.enable&&this.isSupport&&this.el.classList.remove(c)}),(0,n._)(this,"emitDegrade",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"webglcontextlost",t=new Event("degrade");t.message=e.type||e,i.el.classList.add(c),i.hideTip(),"webglcontextlost"===t.message&&(i.isSupport=!1),i._video&&(i._video.style.display="block",i._video.dispatchEvent(t))})}},(0,n._)(r,"pluginName","tripleVideo"),r);((e,t,i,r)=>{for(var n=r>1?void 0:r?l(t,i):t,s,o=e.length-1;o>=0;o--)(s=e[o])&&(n=(r?s(t,i,n):s(n))||n);return r&&n&&a(t,i,n)})([(0,o.I)(["pluginsConfig.tripleVideo.enable","pluginsConfig.tripleVideo.enableTip"])],d.prototype,"configDidUpdate",1);let h=d},128692:function(e,t,i){"use strict";i(679308),i.e("24121").then(i.bind(i,732494))},177405:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},645406:function(e,t,i){"use strict";function r(e){return e.length}function n(e,t){let i=t||{},n=(i.align||[]).concat(),o=i.stringLength||r,a=[],l=[],c=[],u=[],d=0,h=-1;for(;++h<e.length;){let t=[],r=[],n=-1;for(e[h].length>d&&(d=e[h].length);++n<e[h].length;){let s=function(e){return null==e?"":String(e)}(e[h][n]);if(!1!==i.alignDelimiters){let e=o(s);r[n]=e,(void 0===u[n]||e>u[n])&&(u[n]=e)}t.push(s)}l[h]=t,c[h]=r}let f=-1;if("object"==typeof n&&"length"in n)for(;++f<d;)a[f]=s(n[f]);else{let e=s(n);for(;++f<d;)a[f]=e}f=-1;let p=[],m=[];for(;++f<d;){let e=a[f],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let n=!1===i.alignDelimiters?1:Math.max(1,u[f]-t.length-r.length),s=t+"-".repeat(n)+r;!1!==i.alignDelimiters&&((n=t.length+n+r.length)>u[f]&&(u[f]=n),m[f]=n),p[f]=s}l.splice(1,0,p),c.splice(1,0,m),h=-1;let g=[];for(;++h<l.length;){let e=l[h],t=c[h];f=-1;let r=[];for(;++f<d;){let n=e[f]||"",s="",o="";if(!1!==i.alignDelimiters){let e=u[f]-(t[f]||0),i=a[f];114===i?s=" ".repeat(e):99===i?e%2?(s=" ".repeat(e/2+.5),o=" ".repeat(e/2-.5)):o=s=" ".repeat(e/2):o=" ".repeat(e)}!1!==i.delimiterStart&&!f&&r.push("|"),!1!==i.padding&&!(!1===i.alignDelimiters&&""===n)&&(!1!==i.delimiterStart||f)&&r.push(" "),!1!==i.alignDelimiters&&r.push(s),r.push(n),!1!==i.alignDelimiters&&r.push(o),!1!==i.padding&&r.push(" "),(!1!==i.delimiterEnd||f!==d-1)&&r.push("|")}g.push(!1===i.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return g.join("\n")}i.d(t,{x:function(){return n}});function s(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}},869705:function(e,t,i){"use strict";function r(e,t){let i={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,i);let r={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(t,r),e.applyData(t,r)}i.d(t,{Y:function(){return r}})},892415:function(e,t,i){"use strict";function r(e,t,i,r){let n=e.referenceType,s=i.enter("linkReference"),o=i.enter("label"),a=i.createTracker(r),l=a.move("["),c=i.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),o();let u=i.stack;i.stack=[],o=i.enter("reference");let d=i.safe(i.associationId(e),{before:l,after:"]",...a.current()});return o(),i.stack=u,s(),"full"!==n&&c&&c===d?"shortcut"===n?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(d+"]"),l}i.d(t,{N:function(){return r}}),r.peek=function(){return"["}},473818:function(e,t,i){"use strict";i.d(t,{Z:function(){return d}});var r=i(73665),n=i(769007),s=i(80662),o=i(680655),a=i(368183),l=i(252819),c=i(460968),u=i(278825);let d={name:"labelEnd",resolveAll:function(e){let t=-1,i=[];for(;++t<e.length;){let r=e[t][1];if(i.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==i.length&&(0,l.d)(e,0,e.length,i),e},resolveTo:function(e,t){let i,r,n,s,o=e.length,a=0;for(;o--;)if(i=e[o][1],r){if("link"===i.type||"labelLink"===i.type&&i._inactive)break;"enter"===e[o][0]&&"labelLink"===i.type&&(i._inactive=!0)}else if(n){if("enter"===e[o][0]&&("labelImage"===i.type||"labelLink"===i.type)&&!i._balanced&&(r=o,"labelLink"!==i.type)){a=2;break}}else"labelEnd"===i.type&&(n=o);let c={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[r][1].start},end:{...e[n][1].end}},h={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[n-2][1].start}};return s=[["enter",c,t],["enter",d,t]],s=(0,l.V)(s,e.slice(r+1,r+a+3)),s=(0,l.V)(s,[["enter",h,t]]),s=(0,l.V)(s,(0,u.C)(t.parser.constructs.insideSpan.null,e.slice(r+a+4,n-3),t)),s=(0,l.V)(s,[["exit",h,t],e[n-2],e[n-1],["exit",d,t]]),s=(0,l.V)(s,e.slice(n+1)),s=(0,l.V)(s,[["exit",c,t]]),(0,l.d)(e,r,e.length,s),e},tokenize:function(e,t,i){let r,n;let s=this,o=s.events.length;for(;o--;)if(("labelImage"===s.events[o][1].type||"labelLink"===s.events[o][1].type)&&!s.events[o][1]._balanced){r=s.events[o][1];break}return function(t){return r?r._inactive?d(t):(n=s.parser.defined.includes((0,c.d)(s.sliceSerialize({start:r.end,end:s.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):i(t)};function a(t){return 40===t?e.attempt(h,u,n?u:d)(t):91===t?e.attempt(f,u,n?l:d)(t):n?u(t):d(t)}function l(t){return e.attempt(p,u,d)(t)}function u(e){return t(e)}function d(e){return r._balanced=!0,i(e)}}},h={tokenize:function(e,t,i){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),n};function n(t){return(0,a.z3)(t)?(0,o.S)(e,l)(t):l(t)}function l(t){return 41===t?f(t):(0,r.Z)(e,c,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function c(t){return(0,a.z3)(t)?(0,o.S)(e,d)(t):f(t)}function u(e){return i(e)}function d(t){return 34===t||39===t||40===t?(0,s.X)(e,h,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):f(t)}function h(t){return(0,a.z3)(t)?(0,o.S)(e,f)(t):f(t)}function f(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):i(r)}}},f={tokenize:function(e,t,i){let r=this;return function(t){return n.f.call(r,e,s,o,"reference","referenceMarker","referenceString")(t)};function s(e){return r.parser.defined.includes((0,c.d)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):i(e)}function o(e){return i(e)}}},p={tokenize:function(e,t,i){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):i(r)}}}},588358:function(e,t,i){"use strict";i.d(t,{j:function(){return r}});function r(e){let t=String(e),i=/\r?\n|\r/g,r=i.exec(t),s=0,o=[];for(;r;)o.push(n(t.slice(s,r.index),s>0,!0),r[0]),s=r.index+r[0].length,r=i.exec(t);return o.push(n(t.slice(s),s>0,!1)),o.join("")}function n(e,t,i){let r=0,n=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(i){let t=e.codePointAt(n-1);for(;9===t||32===t;)n--,t=e.codePointAt(n-1)}return n>r?e.slice(r,n):""}},946114:function(e,t,i){"use strict";function r(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[i,r]of e)if(!Object.is(r,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let i of e)if(!t.has(i))return!1;return!0}let i=Object.keys(e);if(i.length!==Object.keys(t).length)return!1;for(let r=0;r<i.length;r++)if(!Object.prototype.hasOwnProperty.call(t,i[r])||!Object.is(e[i[r]],t[i[r]]))return!1;return!0}i.d(t,{Z:function(){return r}})}}]);