2 lines
108 KiB
Plaintext
2 lines
108 KiB
Plaintext
/*! For license information please see 45527.d9443c7f.js.LICENSE.txt */
|
|
!function(t,e){"object"==typeof module&&"object"==typeof module.exports?e():"function"==typeof define&&define.amd?define([],e):(t="undefined"!=typeof globalThis?globalThis:t||self)&&e()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).xss={})}(this,function(t){"use strict";var e=function(){return(e=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function i(t,e,i){if(i||2==arguments.length)for(var n,r=0,s=e.length;r<s;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))}var n=/[^a-zA-Z0-9\\_:.-]/gim,r=/</g,s=/>/g,o=/&#([a-zA-Z0-9]*);?/gim,a=/"/g,l=/:?/gim,h=/&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,c=/u\s*r\s*l\s*\(.*/gi,d=/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(t){return t.replace(r,"<").replace(s,">")},g={indexOf:function(t,e){var i,n;for(i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return -1},forEach:function(t,e,i){var n,r;for(n=0,r=t.length;n<r;n++)e.call(i,t[n],n,t)},some:function(t,e,i){var n,r;for(n=0,r=t.length;n<r;n++)if(e.call(i,t[n],n,t))return!0;return!1},trim:function(t){return t.replace(/(^\s*)|(\s*$)/g,"")},includes:function(t,e){if("string"==typeof t)return -1!==t.indexOf(e);for(var i=0;i<t.length;i++)if(t[i]===e)return!0;return!1},spaceIndex:function(t){var e=/\s|\n|\t/.exec(t);return e?e.index:-1},uniq:function(t){for(var e={},i=[],n=0;n<t.length;n++)e[t[n]]||(i.push(t[n]),e[t[n]]=!0);return i},from:function(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i]);return e},keys:function(t){var e=[];for(var i in t)e.push(i);return e}};function v(t){return null==t}function m(t){var e;return'"'===(e=t)[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]?t.substr(1,t.length-2):t}function _(t){var e,i,n,r,s,o,a,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",h="",u=0;for(t=function(t){t=t.replace(/rn/g,"n");for(var e="",i=0;i<t.length;i++){var n=t.charCodeAt(i);n<128?e+=String.fromCharCode(n):n>127&&n<2048?e+=String.fromCharCode(n>>6|192)+String.fromCharCode(63&n|128):e+=String.fromCharCode(n>>12|224)+String.fromCharCode(n>>6&63|128)+String.fromCharCode(63&n|128)}return e}(t);u<t.length;)r=(e=t.charCodeAt(u++))>>2,s=(3&e)<<4|(i=t.charCodeAt(u++))>>4,o=(15&i)<<2|(n=t.charCodeAt(u++))>>6,a=63&n,isNaN(i)?o=a=64:isNaN(n)&&(a=64),h=h+l.charAt(r)+l.charAt(s)+l.charAt(o)+l.charAt(a);return h}function b(t){var e,i,n,r,s,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",h=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");h<t.length;)e=a.indexOf(t.charAt(h++))<<2|(r=a.indexOf(t.charAt(h++)))>>4,i=(15&r)<<4|(s=a.indexOf(t.charAt(h++)))>>2,n=(3&s)<<6|(o=a.indexOf(t.charAt(h++))),l+=String.fromCharCode(e),64!==s&&(l+=String.fromCharCode(i)),64!==o&&(l+=String.fromCharCode(n));return function(t){for(var e="",i=0,n=0,r=0,s=0;i<t.length;)(n=t.charCodeAt(i))<128?(e+=String.fromCharCode(n),i++):n>191&&n<224?(e+=String.fromCharCode((31&n)<<6|63&(s=t.charCodeAt(i+1))),i+=2):(s=t.charCodeAt(i+1),e+=String.fromCharCode((15&n)<<12|(63&s)<<6|63&(r=t.charCodeAt(i+2))),i+=3);return e}(l)}function y(t,e,i){var n="",r=0,s=!1,o=!1,a=0,l=t.length,h="",u="";t:for(a=0;a<l;a++){var c=t.charAt(a);if(!1===s){if("<"===c){s=a;continue}}else if(!1===o){if("<"===c){n+=i(t.slice(r,a)),s=a,r=a;continue}if(">"===c||a===l-1){n+=i(t.slice(r,s)),h=function(t){var e,i=g.spaceIndex(t);return e=-1===i?t.slice(1,-1):t.slice(1,i+1),"/"===(e=g.trim(e).toLowerCase()).slice(0,1)&&(e=e.slice(1)),"/"===e.slice(-1)&&(e=e.slice(0,-1)),e}(u=t.slice(s,a+1)),n+=e(s,n.length,h,u,"</"===u.slice(0,2)),r=a+1,s=!1;continue}if('"'===c||"'"===c)for(var d=1,f=t.charAt(a-d);""===f.trim()||"="===f;){if("="===f){o=c;continue t}f=t.charAt(a-++d)}}else if(c===o){o=!1;continue}}return r<l&&(n+=i(t.substr(r))),n}function S(t,e){var i=0,r=0,s=[],o=!1,a=t.length;function l(t,i){if(!((t=(t=g.trim(t)).replace(n,"").toLowerCase()).length<1)){var r=e(t,i||"");r&&s.push(r)}}for(var h=0;h<a;h++){var u=t.charAt(h),c=void 0;if(!1!==o||"="!==u){if(!1===o||h!==r){if(/\s|\n|\t/.test(u)){if(t=t.replace(/\s|\n|\t/g," "),!1===o){if(-1===(c=function(t,e){for(;e<t.length;e++){var i=t[e];if(" "!==i)return"="===i?e:-1}return -1}(t,h))){l(g.trim(t.slice(i,h))),o=!1,i=h+1;continue}h=c-1;continue}if(-1===(c=function(t,e){for(;e>0;e--){var i=t[e];if(" "!==i)return"="===i?e:-1}return -1}(t,h-1))){l(o,m(g.trim(t.slice(i,h)))),o=!1,i=h+1;continue}}}else{if(-1===(c=t.indexOf(u,h+1)))break;l(o,g.trim(t.slice(r+1,c))),o=!1,i=(h=c)+1}}else o=t.slice(i,h),i=h+1,r='"'===t.charAt(i)||"'"===t.charAt(i)?i:function(t,e){for(;e<t.length;e++){var i=t[e];if(" "!==i)return"'"===i||'"'===i?e:-1}return -1}(t,h+1)}return i<t.length&&(!1===o?l(t.slice(i)):l(o,m(g.trim(t.slice(i))))),g.trim(s.join(" "))}function w(t,e,i){if(i=function(t){return t=function(t){for(var e="",i=0,n=t.length;i<n;i++)e+=32>t.charCodeAt(i)?" ":t.charAt(i);return g.trim(e)}(t=(t=(t=t.replace(a,'"')).replace(o,function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))})).replace(l,":").replace(h," "))}(i),"href"===e||"src"===e){if("#"===(i=g.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"===e){if(u.lastIndex=0,u.test(i))return""}else if("style"===e&&(d.lastIndex=0,d.test(i)||(c.lastIndex=0,c.test(i)&&(u.lastIndex=0,u.test(i)))))return"";return i=function(t){return t=p(t=t.replace(f,"""))}(i)}var x=function(t){return"string"==typeof t?t.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},C=function(){function t(t){var e=function(t){var e={};for(var i in t)e[i]=t[i];return e}(t||{});e.stripIgnoreTag&&(e.onIgnoreTag,e.onIgnoreTag=function(){return""}),e.whiteList={},e.onTag=function(){},e.onTagAttr=function(){},e.onIgnoreTag=function(){},e.onIgnoreTagAttr=function(){},e.safeAttrValue=w,e.escapeHtml=p,this.options=Object.assign(e,t)}return t.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e,i,n,r,s,o,a=this.options,l=a.whiteList,h=a.onTag,u=a.onIgnoreTag,c=a.onTagAttr,d=a.onIgnoreTagAttr,f=a.safeAttrValue,p=a.escapeHtml;a.stripBlankChar&&(t=(e=(e=t.split("")).filter(function(t){var e=t.charCodeAt(0);return!(127===e||e<=31&&10!==e&&13!==e)})).join("")),a.allowCommentTag||(t=function(t){for(var e="",i=0;i<t.length;){var n=t.indexOf("\x3c!--",i);if(-1===n){e+=t.slice(i);break}e+=t.slice(i,n);var r=t.indexOf("--\x3e",n);if(-1===r)break;i=r+3}return e}(t));var v=!1;a.stripIgnoreTagBody&&(i=a.stripIgnoreTagBody,"function"!=typeof(n=u)&&(n=function(){}),r=!Array.isArray(i),s=[],o=!1,u=(v={onIgnoreTag:function(t,e,a){var l;if(l=t,r||-1!==g.indexOf(i,l)){if(a.isClosing){var h="[/removed]",u=a.position+h.length;return s.push([!1!==o?o:a.position,u]),o=!1,h}return o||(o=a.position),"[removed]"}return n(t,e,a)},remove:function(t){var e="",i=0;return g.forEach(s,function(n){e+=t.slice(i,n[0]),i=n[1]}),e+=t.slice(i)}}).onIgnoreTag);var m=y(t,function(t,e,i,n,r){var s={sourcePosition:t,position:e,isClosing:r,isWhite:Object.prototype.hasOwnProperty.call(l,i)},o=h(i,n,s);if(null!=o)return o;if(s.isWhite){if(s.isClosing)return"</".concat(i,">");var a=function(t){var e=g.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var i="/"===(t=g.trim(t.slice(e+1,-1)))[t.length-1];return i&&(t=g.trim(t.slice(0,-1))),{html:t,closing:i}}(n),v=l[i],m=S(a.html,function(t,e){var n=-1!==g.indexOf(v,t),r=c(i,t,e,n);return null==r?n?(e=f(i,t,e,null))?"".concat(t,'="').concat(e,'"'):t:null==(r=d(i,t,e,n))?void 0:r:r});return n="<".concat(i),m&&(n+=" ".concat(m)),a.closing&&(n+=" /"),n+=">"}return null==(o=u(i,n,s))?p(n):o},p);return v&&(m=v.remove(m)),m},t}(),k=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")(),E=new(function(){function t(){var t=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var e,i,n="douyin_web";if(!g.includes(n,"bid"))return n;if(t.config&&t.config.bid)return t.config.bid;if(k&&k._xssBid)return k._xssBid;if(k&&k.slardar&&"function"==typeof k.slardar.config){var r=(k.slardar.config()||{}).bid;if(r)return r}if(k&&k.Slardar&&"function"==typeof k.Slardar.config){var s=(k.Slardar.config()||{}).bid;if(s)return s}return(null===(i=null===(e=null==k?void 0:k.Slardar)||void 0===e?void 0:e._baseParams)||void 0===i?void 0:i.bid)||"argus"},this.getConfigRegion=function(){var e;return g.includes("cn","region")?t.config&&t.config.region?t.config.region:((null===(e=null==k?void 0:k.gfdatav1)||void 0===e?void 0:e.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var e={cn:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:b("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[t.getConfigRegion()];if(e)return e+t.getSlardarBid()}}return t.prototype.setConfig=function(t){this.config=t},t.prototype.upload=function(){var t=this,e=this.gerReportUrl();!this.lock&&e&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var i=t.batchData.slice(0,100);t.batchData=t.batchData.slice(100),k.fetch(e,{method:"post",body:JSON.stringify(i),headers:{"Content-Type":"application/json"}}).catch(function(t){}),t.lock=!1,t.upload()},this.timeout))},t.prototype.generateKey=function(t){return t.collectKey?[t.collectMode,t.collectKey].join("___"):""},t.prototype.push=function(t){this.batchData.push(t),this.upload()},t.prototype.report=function(t){var e=this.generateKey(t);if(k.fetch&&t.collectKey){var i="object"==typeof window?window.location.href:"SSR";t.documentUrl=i;var n={age:Math.floor(Date.now()),type:"xss",url:i,body:t,"user-agent":""};"enforce"===t.disposition&&"SSR"!==i||(n.url=e),"SSR"===i&&(n.url="SSR___".concat(n.url),n.body.ssr=!0),this.push(n)}},t}()),O=function(t){for(var e=0,i=function(i){Array.isArray(t[i])?0===t[i].length?delete t[i]:(t[i]=g.from(g.uniq(t[i])),e+=t[i].length):0===g.keys(t[i]).length?delete t[i]:g.keys(t[i]).forEach(function(n){t[i][n]=g.from(g.uniq(t[i][n])),e+=t[i][n].length})},n=0,r=g.keys(t);n<r.length;n++)i(r[n]);return{count:e,ret:t}};function R(t,e){return E.setConfig(e),new C(e).process(t)}function I(t){var e,i=(e=/\s|\n|\t/.exec(t))?e.index:-1;if(-1===i)return{html:"",closing:"/"===t[t.length-2]};var n="/"===(t=t.slice(i+1,-1).trim())[t.length-1];return n&&(t=t.slice(0,-1).trim()),{html:t,closing:n}}var T=function(t){return -1===(t=(t=(t=(t=t.replace(/:/gi,":")).replace(/&tab;/gi,"")).replace(/&newline;/gi,"")).replace(/(\t|\n|\r)/g,"")).indexOf("&#")?t.trim().toLowerCase():t.trim().replace(/&#(?:(x)([0-9a-f]+)|([0-9]+));?/gi,function(t,e,i,n){return String.fromCharCode(e?parseInt(i,16):parseInt(n))}).replace(/(\t|\n|\r)/g,"").toLowerCase()};function A(t,e){if(void 0===t&&(t=""),"string"!=typeof t)return!0;if(t=T(t),g.includes(t,"base64")&&!function(t){if(""===t||""===t.trim())return!0;try{return!g.includes(t,"data:text/html;base64")}catch(t){return!0}}(t))return e&&e("data:text/html;base64"),!1;var i=["expression(","behavior:","view-source:"];if(g.some(i,function(e){return -1!==t.indexOf(e)}))return g.forEach(i,function(i){-1!==t.indexOf(i)&&e&&e(i)}),!1;var n=["data:application","data:javascript","data:text/html","data:texthtml"];if(g.some(n,function(e){return -1!==t.indexOf(e)}))return g.forEach(n,function(i){-1!==t.indexOf(i)&&e&&e(i)}),!1;if(t.indexOf("javascript:")>0)return e&&e("javascript:"),!1;if(/^javascript:/i.test(t)){var r=t.slice(11).replace(/\s/g,"").trim();return!!g.some(["void","void(0)","void0","false","undefined",";"],function(t){return t===r})||(e&&e("javascript:"),!1)}return!0}var P=function(t,e){var i,n,r="<%= isSaveValidUrl =>";if("string"!=typeof t||(n=Number("<%= urlLimit =>"),void 0!==i&&(n=i),"NaN"!==t.toString()&&-1!==n&&t.length>=n)||A(t,e))return t;try{if(!0===(r=JSON.parse(r))||"true"===r){var s=new URL(t);return s.origin+s.pathname}}catch(t){}return"#"};function L(t,e,n){if(void 0===t&&(t=""),void 0===e&&(e=[]),"string"!=typeof t)return!0;if(!A(t=T(t)))return!1;var r,s={url:(r=t.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:r[1],slash:r[2],host:r[3],port:r[4],path:r[5],query:r[6],hash:r[7]},o=s.scheme,a=s.host;return n?!!n(t):!(!o||!a)&&(!g.includes(["http","https","file"],o)||("object"==typeof window&&window&&(e=i(i([],e,!0),[location.host],!1)),g.some(e,function(t){return!!(t instanceof RegExp&&t.test(a))||t===a})))}var j={a:["target","title","spellcheck","rel"],canvas:[],abbr:["title"],address:[],area:["shape","coords","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:["dir"],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["alt","title","width","height","decoding"],ins:["datetime"],li:[],mark:[],nav:[],ol:["start"],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],delete:[],form:[],strong:[],mask:["maskunits","x","y","width","height","fill"],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],wbr:[],video:["autoplay","controls","loop","preload","height","width"],svg:["viewBox","version","xmlns","fill","width","height","stroke","stroke-width","style"],path:["d","fill","opacity","stroke","p-id","fill-rule","clip-rule","stroke-width","stroke-linecap","stroke-linejoin","fill-opacity","mask"],rect:["x","y","width","height","fill","stroke","rx"],g:[]},W={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var t=O(this.collect),e=t.count,i=t.ret;return this.collect=null,{collectKey:0===e?null:JSON.stringify(i),collectMode:"white"}},onIgnoreTagAttr:function(t,e,n){return t&&g.indexOf(["href","src"],e)>-1?W.domainWhiteList&&Array.isArray(W.domainWhiteList)&&W.domainWhiteList.length>0&&!L(n,i([],W.domainWhiteList,!0))?"":"".concat(e,'="').concat(P(n,function(t){var e;null===(e=W.collect)||void 0===e||e.filterProtocol.push(t)}),'"'):t&&(g.indexOf(["style","class","id"],e)>-1||e.indexOf("data-")>-1)?"".concat(e,'="').concat(n,'"'):(W.collect.whiteList[t]=W.collect.whiteList[t]||[],void W.collect.whiteList[t].push(e))},onIgnoreTag:function(t,e){if("style"===t)return e;y(e,function(t,e,i,n){S(I(n).html.replace("/",""),function(t){W.collect.whiteList[i]=W.collect.whiteList[i]||[],W.collect.whiteList[i].push(t)})},p)},whiteList:j,mergeWhiteList:function(t){for(var e,i={},n=0,r=g.keys(j);n<r.length;n++)i[e=r[n]]=g.from(j[e]);for(var s=0,o=g.keys(t);s<o.length;s++)i[e=o[s]]=e in j?j[e].concat(t[e]):g.from(t[e]);return i},setWhiteList:function(t){for(var e=0,i=g.keys(t);e<i.length;e++){var n=i[e];this.whiteList[n]=n in j?j[n].concat(t[n]):g.from(t[n])}}};try{var F={},N="merge";g.includes(N,"override")&&(W.whiteList=F.whiteList),g.includes(N,"merge")&&W.setWhiteList(F.whiteList)}catch(t){}var M=function(t,e){for(var i={},n=0,r=g.keys(t);n<r.length;n++){var s=r[n];Array.isArray(t[s])?i[s]=g.from(t[s]):i[s]=M({},t[s])}for(var o=0,a=g.keys(e);o<a.length;o++)(s=a[o])in t?Array.isArray(t[s])?i[s]=t[s].concat(e[s]):i[s]=M(t[s],e[s]):Array.isArray(e[s])?i[s]=g.from(e[s]):i[s]=M({},e[s]);return i},D={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 Z={};Z.blackAttrRegExps&&(Z.blackAttrRegExps=Z.blackAttrRegExps.map(function(t){return new RegExp(t.toString().slice(1,t.toString().length-1))}));var z="merge";g.includes(z,"override")&&(D=Z),g.includes(z,"merge")&&(D=M(D,Z))}catch(t){}var V={mode:"black",whiteList:{},blackConfig:D,collect:null,initCollect:function(){V.collect={blackList:{},blackTags:[],blackAttrs:[],blackAttrRegExps:[],filterAttrs:[],filterList:{},filterProtocol:[]}},removeCollect:function(){var t=O(V.collect),e=t.count,i=t.ret;return V.collect=null,{collectKey:0===e?null:JSON.stringify(i),collectMode:"black"}},onIgnoreTag:function(t,e){var i;if(!g.includes(D.blackTags,t))return y(e,function(t,e,i,n,r){if(-1!==i.indexOf("/"))return p(n);if(r)return"</".concat(i,">");var s=I(n),o=S(s.html,function(t,e){var n,r=0;if(D.blackList[i]&&g.includes(D.blackList[i],t)&&(V.collect.blackList[i]=V.collect.blackList[i]||[],V.collect.blackList[i].push(t),r++),D.blackAttrRegExps.length&&D.blackAttrRegExps.some(function(e){return e.test(t)})&&g.forEach(D.blackAttrRegExps,function(e){e.test(t)&&(V.collect.blackAttrRegExps.push("".concat(e.toString(),"->").concat(t)),r++)}),D.blackAttrs.length&&g.includes(D.blackAttrs,t)&&(D.blackAttrs.push(t),r++),!r){if(D.filterList&&D.filterList[i]&&g.includes(D.filterList[i],t)){var s=P(e,function(t){var e;null===(e=V.collect)||void 0===e||e.filterProtocol.push(t)});return s!==e&&(V.collect.filterList[i]=V.collect.filterList[i]||[],V.collect.filterList[i].push(t)),e?"".concat(t,"='").concat(s,"'"):t}return D.filterAttrs&&g.includes(D.filterAttrs,t)?((s=P(e,function(t){var e;null===(e=V.collect)||void 0===e||e.filterProtocol.push(t)}))!==e&&(null===(n=V.collect)||void 0===n||n.filterAttrs.push(t)),e?"".concat(t,"='").concat(s,"'"):t):e?"".concat(t,"='").concat(e,"'"):t}});return n="<".concat(i),o&&(n+=" ".concat(o)),s.closing&&(n+=" /"),n+=">"},p);null===(i=V.collect)||void 0===i||i.blackTags.push(t)}},H=function(t){var e=t.reportOnly,i=void 0===e||e,n=t.block;return i&&"all"===i?"report":("string"==typeof i&&("true"===i&&(i=!0),"false"===i&&(i=!1)),n?"enforce":i?"report":"enforce")},X=function(t){return function(i,n,r){if(!i||"string"!=typeof i)return i;var s=n;t===R&&(s=W).initCollect();var o=t(i,s);if(x(o)===x(i))return i;if(!r)return o;var a=r.logType,l=H(r),h=s.removeCollect();return E.report(e(e({type:a,disposition:l},h),{sourceText:_(i),filterText:_(o)})),"enforce"===l?o:i}},B=X(function(t,e){return void 0===e&&(e={}),e&&e.whiteList||(e.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 C(e).process(t)}),$=X(R),U=function(t,e,i){var n=[],r=P(t,function(t){n.push(t)});if(r===t)return t;n=g.from(g.uniq(n));var s=e||i||{};if(!s)return r;var o=s.logType,a=H(i);return E.report({type:o,disposition:a,collectKey:n.join("___"),collectData:JSON.stringify(n),collectMode:"black",sourceText:_(t),filterText:_(r)}),"enforce"===a?r:t},Y=k._xssProject||{},G=k.xssNamespace||{},K="3.0.26",J={FilterXSS:C,version:K,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:B,_filterXSS:$,filterUrl:U,Config:W,BlackConfig:V,project:Y,setProjectName:function(t){Y[t]=this,k._xssProjectName=t}};G.douyin_web=J,k.xssNamespace=G,k.Math&&!k.Math.xssNamespace&&(k.Math.xssNamespace=G),Y[K]=J,k.globalThis=k,k.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:J},k.xss=J,k.isSafeUrl=L,k.isSafeDomain=L,k.isSafeProtocol=A,k._xssProject=Y,k._xssProjectName&&(Y[k._xssProjectName]=J);var q=J.setProjectName.bind(J);t.BlackConfig=V,t.Config=W,t.FilterXSS=C,t._filterXSS=$,t.filterUrl=U,t.filterXSS=B,t.isSafeDomain=L,t.isSafeProtocol=A,t.isSafeUrl=L,t.project=Y,t.setProjectName=q,t.setXssNamespace=function(t){var e=t.appId,i=t.bid,n=t.region;G[e]=J;W.bid=i,W.region=n,W.enabled=!0},t.xssNamespace=G,Object.defineProperty(t,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["45527"],{678446:function(t,e,i){"use strict";var n=i(101199),r=i(994298);let s=(0,r.A)(function(t){return n.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},t),n.createElement("path",{d:"m17.55 15.66-4.8 5.48a1 1 0 0 1-1.5 0l-4.8-5.48A1 1 0 0 1 7.2 14h9.6a1 1 0 0 1 .75 1.66Z",fill:"currentColor"}))},"caretdown");e.Z=s},151943:function(t,e,i){"use strict";var n=i(101199),r=i(994298);let s=(0,r.A)(function(t){return n.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},t),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.28 4.24a1.5 1.5 0 0 1 0 2.12l-5.66 5.66 5.66 5.65a1.5 1.5 0 1 1-2.12 2.13l-6.72-6.72a1.5 1.5 0 0 1 0-2.12l6.72-6.72a1.5 1.5 0 0 1 2.12 0Z",fill:"currentColor"}))},"chevron_left");e.Z=s},835245:function(t,e,i){"use strict";var n=i(101199),r=i(994298);let s=(0,r.A)(function(t){return n.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},t),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a1 1 0 0 0-1.62-.78L4.65 7H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h2.65l5.73 4.78A1 1 0 0 0 12 21V3Zm2.06 4.94a1.5 1.5 0 0 1 2.12 0L18 9.76l1.82-1.82a1.5 1.5 0 1 1 2.12 2.12l-1.82 1.82 1.94 1.94a1.5 1.5 0 0 1-2.12 2.12L18 14l-1.94 1.94a1.5 1.5 0 0 1-2.12-2.12l1.94-1.94-1.82-1.82a1.5 1.5 0 0 1 0-2.12Z",fill:"currentColor"}))},"mute");e.Z=s},173190:function(t,e,i){"use strict";i.d(e,{Z:function(){return r}});var n=i(101199),r=function(t,e){(0,n.useEffect)(function(){var e=t();return function(){e.then(function(t){"function"==typeof t&&t()})}},e)}},996242:function(t,e,i){"use strict";var n=i(101199),r=i(287964),s=i(163417),o=i(739010);e.Z=function(t){return function(e,i,a){var l=(0,n.useRef)(!1),h=(0,n.useRef)([]),u=(0,n.useRef)([]),c=(0,n.useRef)();t(function(){var t,n=(Array.isArray(a)?a:[a]).map(function(t){return(0,o.n)(t)});if(!l.current){l.current=!0,h.current=n,u.current=i,c.current=e();return}(n.length!==h.current.length||!(0,s.Z)(h.current,n)||!(0,s.Z)(u.current,i))&&(null===(t=c.current)||void 0===t||t.call(c),h.current=n,u.current=i,c.current=e())}),(0,r.Z)(function(){var t;null===(t=c.current)||void 0===t||t.call(c),l.current=!1})}}},423305:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultOptions=function(){return i},e.setDefaultOptions=function(t){i=t};var i={}},573207:function(t,e){"use strict";var i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};e.Z=function(t,e,n){var r,s=i[t];if(r="string"==typeof s?s:1===e?s.one:s.other.replace("{{count}}",e.toString()),null!=n&&n.addSuffix)return n.comparison&&n.comparison>0?"in "+r:r+" ago";return r}},529593:function(t){t.exports=function(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}},946798:function(t,e,i){var n=i(105723);t.exports=function(t,e){var i=[];return n(t,function(t,n,r){e(t,n,r)&&i.push(t)}),i}},55177:function(t,e,i){var n=i(390063),r=i(721039),s=i(812958),o=i(408442),a=/^\[object .+?Constructor\]$/,l=Object.prototype,h=Function.prototype.toString,u=l.hasOwnProperty,c=RegExp("^"+h.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!s(t)||r(t))&&(n(t)?c:a).test(o(t))}},353003:function(t,e,i){var n=i(933082),r=Object.prototype.hasOwnProperty;t.exports=function(t,e,i,s,o,a){var l=1&i,h=n(t),u=h.length;if(u!=n(e).length&&!l)return!1;for(var c=u;c--;){var d=h[c];if(!(l?d in e:r.call(e,d)))return!1}var f=a.get(t),p=a.get(e);if(f&&p)return f==e&&p==t;var g=!0;a.set(t,e),a.set(e,t);for(var v=l;++c<u;){var m=t[d=h[c]],_=e[d];if(s)var b=l?s(_,m,d,e,t,a):s(m,_,d,t,e,a);if(!(void 0===b?m===_||o(m,_,i,s,a):b)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var y=t.constructor,S=e.constructor;y!=S&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof S&&S instanceof S)&&(g=!1)}return a.delete(t),a.delete(e),g}},503853:function(t,e,i){var n=i(170101);t.exports=function(t){return n(this,t).has(t)}},182534:function(t,e,i){"use strict";i.d(e,{Z:function(){return F}}),i(932651),i(706056),i(490629),i(14275),i(759943),i(374954);var n=i(72137),r=i.n(n),s=i(876553),o=i.n(s),a=i(390063),l=i.n(a),h=i(198412),u=i.n(h),c=i(977925),d=i.n(c),f=i(877866),p=i.n(f),g=i(795233),v=i.n(g),m=i(101199),_=i(469935),b=i.n(_),y=i(622689),S=i.n(y),w=i(230720),x=i(298832),C=i(109242),k=i(932083),E=i(426337),O=i(619050),R=i(168947),I=i(7958),T=i(197715),A=i(181238),P=i(111748),L=i(913584);i(776458);var j=i(678503),W=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)0>e.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i};class F extends E.Z{get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,e)=>{this.setState({panelShow:t},e),!t&&(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{let e=this.triggerElRef&&this.triggerElRef.current,i=this.panelRef&&this.panelRef.current,n=t.target,r=t.composedPath&&t.composedPath()||[n];!(e&&e.contains(n))&&!(i&&i.contains(n))&&!(r.includes(e)||r.includes(i))&&(this.props.onClickOutSide(t),!this.adapter.needConfirm()&&this.foundation.closePanel())},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return t.props.onBlur(...arguments)},notifyFocus:function(){return t.props.onFocus(...arguments)},notifyClear:function(){return t.props.onClear(...arguments)},notifyChange:function(){return t.props.onChange(...arguments)},notifyCancel:function(){return t.props.onCancel(...arguments)},notifyConfirm:function(){return t.props.onConfirm(...arguments)},notifyOpenChange:function(){return t.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return t.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let e=t;t&&!Array.isArray(t)&&(e=[...t]),this.setState({cachedSelectedValue:e})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{let{insetInput:e}=this.props;e&&!o()(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&!0===this.props.needConfirm,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{let{preventScroll:e}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":let i=u()(this,"rangeInputStartRef.current");i&&i.focus({preventScroll:e}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":let n=u()(this,"rangeInputEndRef.current");n&&n.focus({preventScroll:e}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{let{preventScroll:t}=this.props,{rangeInputFocus:e}=this.state;if("rangeEnd"===e){if(document.activeElement!==this.rangeInputEndRef.current){let e=u()(this,"rangeInputEndRef.current");e&&e.focus({preventScroll:t})}}else if(document.activeElement!==this.rangeInputStartRef.current){let e=u()(this,"rangeInputStartRef.current");e&&e.focus({preventScroll:t})}},setInputFocus:()=>{let{preventScroll:t}=this.props,e=u()(this,"inputRef.current");e&&e.focus({preventScroll:t})},setInputBlur:()=>{let t=u()(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{let{rangeInputFocus:t}=this.state;if("rangeStart"===t){let t=u()(this,"rangeInputStartRef.current");t&&t.blur()}else if("rangeEnd"===t){let t=u()(this,"rangeInputEndRef.current");t&&t.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(t,e){return/range/i.test(t)&&!l()(e)}componentDidUpdate(t){o()(t.value,this.props.value)?this.props.timeZone!==t.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:t.timeZone}):this.foundation.initFromProps(Object.assign({},this.props)),t.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),!this.props.open&&this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(t){this.foundation.focus(t)}blur(){this.foundation.blur()}renderMonthGrid(t,e,i){let{type:n,multiple:r,max:s,weekStartsOn:o,timePickerOpts:a,defaultPickerValue:l,format:h,hideDisabledOptions:u,disabledTimePicker:c,renderDate:d,renderFullDate:f,startDateOffset:p,endDateOffset:g,autoSwitchDate:v,density:_,syncSwitchMonth:b,onPanelChange:y,timeZone:S,triggerRender:w,insetInput:x,presetPosition:C,yearAndMonthOpts:k,startYear:E,endYear:O}=this.props,{cachedSelectedValue:R,rangeInputFocus:T}=this.state;return m.createElement(I.Z,{ref:this.monthGrid,locale:t,localeCode:e,dateFnsLocale:i,weekStartsOn:o,type:n,multiple:r,max:s,format:h,disabledDate:this.disabledDisposeDate,hideDisabledOptions:u,disabledTimePicker:c,disabledTime:this.disabledDisposeTime,defaultValue:R,defaultPickerValue:l,timePickerOpts:a,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:d,renderFullDate:f,startDateOffset:p,endDateOffset:g,autoSwitchDate:v,density:_,rangeInputFocus:T,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:b,onPanelChange:y,timeZone:S,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:x,presetPosition:C,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:k,startYear:E,endYear:O})}renderQuickControls(){let{presets:t,type:e,presetPosition:i,insetInput:n,locale:r}=this.props;return m.createElement(T.Z,{type:e,presets:t,insetInput:n,presetPosition:i,onPresetClick:(t,e)=>this.foundation.handlePresetClick(t,e),locale:r})}renderDateInput(){let{insetInput:t,dateFnsLocale:e,density:i,type:n,format:r,rangeSeparator:s,defaultPickerValue:o}=this.props,{insetInputValue:a,value:l}=this.state,h={dateFnsLocale:e,format:r,insetInputValue:a,rangeSeparator:s,type:n,value:l,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:i,defaultPickerValue:o};return t?m.createElement(R.Z,Object.assign({},h,{insetInput:t})):null}renderInner(t){let{clearIcon:e,type:i,format:n,multiple:r,disabled:s,showClear:o,insetLabel:a,insetLabelId:l,placeholder:h,validateStatus:u,inputStyle:c,prefix:d,locale:f,dateFnsLocale:p,triggerRender:g,size:v,inputReadOnly:_,rangeSeparator:y,insetInput:S,defaultPickerValue:w,borderless:x}=this.props,{value:k,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,T=this.isRangeType(i,g),A=s||S&&I,L=b()(`${C.UX.PREFIX}-input`,{[`${C.UX.PREFIX}-range-input`]:T,[`${C.UX.PREFIX}-range-input-${v}`]:T&&v,[`${C.UX.PREFIX}-range-input-active`]:T&&O&&!A,[`${C.UX.PREFIX}-range-input-disabled`]:T&&A,[`${C.UX.PREFIX}-range-input-${u}`]:T&&u,[`${C.UX.PREFIX}-borderless`]:x}),j=h||f.placeholder[i],W=Object.assign(Object.assign({},t),{showClearIgnoreDisabled:!!S,placeholder:j,clearIcon:e,disabled:A,inputValue:E,value:k,defaultPickerValue:w,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:c,showClear:o,insetLabel:a,insetLabelId:l,type:i,format:n,multiple:r,validateStatus:u,inputReadOnly:_||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:d,size:v,autofocus:this.state.autofocus,dateFnsLocale:p,rangeInputFocus:O,rangeSeparator:y,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return m.createElement("div",{role:"combobox","aria-label":Array.isArray(k)&&k.length?"Change date":"Choose date","aria-disabled":s,onClick:this.handleTriggerWrapperClick,className:L},"function"==typeof g?m.createElement(P.Z,Object.assign({},W,{triggerRender:g,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):m.createElement(R.Z,Object.assign({},W)))}render(){let t=this.props,{style:e,className:i,prefixCls:n,type:s}=t,o=W(t,["style","className","prefixCls","type"]),a=Object.assign({style:e,className:b()(i,{[n]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];!s.toLowerCase().includes("range")&&l.push("borderless");let h=this.renderInner(r()(this.props,l)),u=this.wrapPopover(h);return m.createElement("div",Object.assign({},a),u)}constructor(t){var e;super(t),e=this,this.setTriggerRef=t=>this.triggerElRef.current=t,this.handleSelectedChange=(t,e)=>this.foundation.handleSelectedChange(t,e),this.handleYMSelectedChange=t=>this.foundation.handleYMSelectedChange(t),this.disabledDisposeDate=function(t){for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return e.foundation.disabledDisposeDate(t,...n)},this.disabledDisposeTime=function(t){for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return e.foundation.disabledDisposeTime(t,...n)},this.handleOpenPanel=()=>this.foundation.openPanel(),this.handleInputChange=function(){return e.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=t=>this.foundation.handleInsetInputChange(t),this.handleInputComplete=t=>this.foundation.handleInputComplete(t),this.handleInputBlur=t=>this.foundation.handleInputBlur(u()(t,"nativeEvent.target.value"),t),this.handleInputFocus=function(){return e.foundation.handleInputFocus(...arguments)},this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleTriggerWrapperClick=t=>this.foundation.handleTriggerWrapperClick(t),this.handleSetRangeFocus=t=>this.foundation.handleSetRangeFocus(t),this.handleRangeInputBlur=(t,e)=>this.foundation.handleRangeInputBlur(t,e),this.handleRangeInputClear=t=>this.foundation.handleRangeInputClear(t),this.handleRangeEndTabPress=t=>this.foundation.handleRangeEndTabPress(t),this.isAnotherPanelHasOpened=t=>"rangeStart"===t?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(t,e)=>{let i=u()(this,"monthGrid.current.foundation");i&&(i.showDatePanel(C.j2.PANEL_TYPE_LEFT),i.showDatePanel(C.j2.PANEL_TYPE_RIGHT)),this.handleInputFocus(t,e)},this.handleInsetTimeFocus=()=>{let t=u()(this,"monthGrid.current.foundation");t&&(t.showTimePicker(C.j2.PANEL_TYPE_LEFT),t.showTimePicker(C.j2.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=t=>{this.foundation.handlePanelVisibleChange(t)},this.handleConfirm=t=>this.foundation.handleConfirm(),this.handleCancel=t=>this.foundation.handleCancel(),this.renderFooter=(t,e)=>this.adapter.needConfirm()?m.createElement(A.Z,Object.assign({},this.props,{locale:t,localeCode:e,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(t,e,i)=>{let{dropdownClassName:n,dropdownStyle:r,density:s,topSlot:o,bottomSlot:a,presetPosition:l,type:h,leftSlot:u,rightSlot:c}=this.props,d=b()(C.UX.PREFIX,{[C.UX.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${C.UX.PREFIX}-compact`]:"compact"===s},n);return m.createElement("div",{ref:this.panelRef,className:d,style:r,"x-type":h},m.createElement("div",{className:`${C.UX.PREFIX}-container`},u&&m.createElement("div",{className:`${C.UX.PREFIX}-leftSlot`,"x-semi-prop":"leftSlot"},u),m.createElement("div",null,o&&m.createElement("div",{className:`${C.UX.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},o),"top"===l&&"monthRange"!==h&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(t,e):this.renderMonthGrid(t,e,i),"bottom"===l&&"monthRange"!==h&&this.renderQuickControls(),a&&m.createElement("div",{className:`${C.UX.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},a)),c&&m.createElement("div",{className:`${C.UX.PREFIX}-rightSlot`,"x-semi-prop":"rightSlot"},c)),this.renderFooter(t,e))},this.renderYearMonthPanel=(t,e)=>{let{density:i,presetPosition:n,yearAndMonthOpts:r,type:s,startYear:o,endYear:a}=this.props,l=this.state.value[0],h={left:0,right:0},u={left:0,right:0};if(d()(l)&&(h.left=l.getFullYear(),u.left=l.getMonth()+1),"monthRange"===s){let t=this.state.value[1];d()(t)&&(h.right=t.getFullYear(),u.right=t.getMonth()+1)}return m.createElement(L.Z,{locale:t,localeCode:e,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:h,currentMonth:u,density:i,presetPosition:n,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:s,yearAndMonthOpts:r,startYear:o,endYear:a})},this.wrapPopover=t=>{let{panelShow:e}=this.state,{direction:i}=this.context,{motion:n,zIndex:r,position:s="rtl"===i?"bottomRight":"bottomLeft",getPopupContainer:o,locale:a,localeCode:l,dateFnsLocale:h,stopPropagation:u,autoAdjustOverflow:c,spacing:d,dropdownMargin:f}=this.props;return m.createElement(O.Z,{getPopupContainer:o,autoAdjustOverflow:c,zIndex:r,motion:n,margin:f,content:this.renderPanel(a,l,h),trigger:"custom",position:s,visible:e,stopPropagation:u,spacing:d,onVisibleChange:this.handlePanelVisibleChange},t)},this.state={panelShow:t.open||t.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:t.autoFocus||this.isRangeType(t.type,t.triggerRender)&&(t.open||t.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=m.createRef(),this.panelRef=m.createRef(),this.monthGrid=m.createRef(),this.inputRef=m.createRef(),this.rangeInputStartRef=m.createRef(),this.rangeInputEndRef=m.createRef(),this.focusRecordsRef=m.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new x.Z(this.adapter)}}F.contextType=w.Z,F.propTypes={"aria-describedby":S().string,"aria-errormessage":S().string,"aria-invalid":S().bool,"aria-labelledby":S().string,"aria-required":S().bool,borderless:S().bool,type:S().oneOf(C.j2.TYPE_SET),size:S().oneOf(C.j2.SIZE_SET),clearIcon:S().node,density:S().oneOf(C.j2.DENSITY_SET),defaultValue:S().oneOfType([S().string,S().number,S().object,S().array]),value:S().oneOfType([S().string,S().number,S().object,S().array]),defaultPickerValue:S().oneOfType([S().string,S().number,S().object,S().array]),disabledTime:S().func,disabledTimePicker:S().bool,hideDisabledOptions:S().bool,format:S().string,disabled:S().bool,multiple:S().bool,max:S().number,placeholder:S().oneOfType([S().string,S().array]),presets:S().array,presetPosition:S().oneOf(C.j2.PRESET_POSITION_SET),onChange:S().func,onChangeWithDateFirst:S().bool,weekStartsOn:S().number,disabledDate:S().func,timePickerOpts:S().object,showClear:S().bool,onOpenChange:S().func,open:S().bool,defaultOpen:S().bool,motion:S().oneOfType([S().bool,S().func,S().object]),className:S().string,prefixCls:S().string,prefix:S().node,insetLabel:S().node,insetLabelId:S().string,zIndex:S().number,position:S().oneOf(k.j2.POSITION_SET),getPopupContainer:S().func,onCancel:S().func,onConfirm:S().func,needConfirm:S().bool,inputStyle:S().object,timeZone:S().oneOfType([S().string,S().number]),triggerRender:S().func,stopPropagation:S().oneOfType([S().bool,S().string]),autoAdjustOverflow:S().bool,onBlur:S().func,onFocus:S().func,onClear:S().func,style:S().object,autoFocus:S().bool,inputReadOnly:S().bool,validateStatus:S().oneOf(C.j2.STATUS),renderDate:S().func,renderFullDate:S().func,spacing:S().oneOfType([S().number,S().object]),startDateOffset:S().func,endDateOffset:S().func,autoSwitchDate:S().bool,dropdownClassName:S().string,dropdownStyle:S().object,dropdownMargin:S().oneOfType([S().number,S().object]),topSlot:S().node,bottomSlot:S().node,dateFnsLocale:S().object,syncSwitchMonth:S().bool,onPanelChange:S().func,rangeSeparator:S().string,preventScroll:S().bool,yearAndMonthOpts:S().object,onClickOutSide:S().func},F.__SemiComponentName__="DatePicker",F.defaultProps=(0,j.GW)(F.__SemiComponentName__,{onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:C.UX.PREFIX,presetPosition:"bottom",zIndex:k.KT.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:v(),disabledMinutes:v(),disabledSeconds:v(),hideDisabledOptions:!1,onBlur:v(),onFocus:v(),onClear:v(),onCancel:v(),onConfirm:v(),onChange:v(),onOpenChange:v(),onPanelChange:v(),onPresetClick:v(),weekStartsOn:C.KT.WEEK_START_ON,disabledDate:p(),disabledTime:p(),inputReadOnly:!1,spacing:C.KT.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:C.j2.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:v()})},260129:function(t,e,i){"use strict";i(932651);var n=i(101199),r=i(622689),s=i.n(r),o=i(469935),a=i.n(o),l=i(88204),h=i(603582),u=i(608104),c=i(426337),d=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)0>e.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i};let f=l.UX.PREFIX;class p extends c.Z{get adapter(){return Object.assign({},super.adapter)}render(){let t=this.props,{children:e,className:i,style:r}=t,s=d(t,["children","className","style"]);return n.createElement("ul",Object.assign({role:"menu","aria-orientation":"vertical"},s,{className:a()(`${f}-menu`,i),style:r,onKeyDown:t=>this.foundation.onMenuKeydown(t)}),e)}constructor(t){super(t),this.foundation=new h.Z(this.adapter)}}p.propTypes={children:s().node,className:s().string,style:s().object},p.contextType=u.Z,e.Z=p},331944:function(t,e,i){"use strict";i.d(e,{Z:function(){return m}}),i(932651),i(490629);var n=i(101199),r=i(890710),s=i(426337),o=i(469935),a=i.n(o),l=i(230720),h=i(266173),u=i(622689),c=i.n(u),d=i(786202),f=i(942447),p=i(104200),g=i(331609);i(768737);var v=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)0>e.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i};class m extends s.Z{static getDerivedStateFromProps(t,e){return"value"in t&&void 0!==t.value?Object.assign(Object.assign({},e),{value:t.value}):e}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{let{disabled:t,count:e}=this.props,{value:i}=this.state;if(!t){let t=Math.ceil(i)-1;this.stars[t<0?e:t].starFocus()}},getStarDOM:t=>{let e=this.stars&&this.stars[t];return r.findDOMNode(e)},notifyHoverChange:(t,e)=>{let{onHoverChange:i}=this.props;this.setState({hoverValue:t,clearedValue:e}),i(t)},updateValue:t=>{let{onChange:e}=this.props;!("value"in this.props)&&this.setState({value:t}),e(t)},clearValue:t=>{this.setState({clearedValue:t})},notifyFocus:t=>{let{onFocus:e}=this.props;this.setState({focused:!0}),e&&e(t)},notifyBlur:t=>{let{onBlur:e}=this.props;this.setState({focused:!1}),e&&e(t)},notifyKeyDown:t=>{let{onKeyDown:e}=this.props;this.setState({focused:!1}),e&&e(t)},setEmptyStarFocusVisible:t=>{this.setState({emptyStarFocusVisible:t})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){let t=this.props,{style:e,prefixCls:i,disabled:r,className:s,id:o,count:l,tabIndex:h}=t,u=v(t,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:f}=this.state,p=this.getAriaLabelPrefix(),g=`Rating: ${c} of ${l} ${p}${1===c?"":"s"},`,m=this.getItemList(p),_=a()(i,{[`${i}-disabled`]:r,[`${i}-focus`]:f},s);return n.createElement("ul",Object.assign({"aria-label":g,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:_,style:e,onMouseLeave:r?d.Z:this.onMouseLeave,tabIndex:r?-1:h,onFocus:r?d.Z:this.onFocus,onBlur:r?d.Z:this.onBlur,onKeyDown:r?d.Z:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),m)}constructor(t){super(t),this.rate=null,this.onHover=(t,e)=>{this.foundation.handleHover(t,e)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(t,e)=>{this.foundation.handleClick(t,e)},this.onFocus=t=>{this.foundation.handleFocus(t)},this.onBlur=t=>{this.foundation.handleBlur(t)},this.onKeyDown=t=>{let{value:e}=this.state;this.foundation.handleKeyDown(t,e)},this.focus=()=>{let{disabled:t,preventScroll:e}=this.props;!t&&this.rate.focus({preventScroll:e})},this.blur=()=>{let{disabled:t}=this.props;!t&&this.rate.blur()},this.saveRef=t=>e=>{this.stars[t]=e},this.saveRate=t=>{this.rate=t},this.handleStarFocusVisible=t=>{this.foundation.handleStarFocusVisible(t)},this.handleStarBlur=t=>{this.foundation.handleStarBlur(t)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let t="star",{character:e}=this.props;return"string"==typeof e&&(t=e),t},this.getItemList=t=>{let{count:e,allowHalf:i,prefixCls:r,disabled:s,character:o,size:a,tooltips:l}=this.props,{value:h,hoverValue:u,focused:c}=this.state;return[...Array(e+1).keys()].map(g=>{let v=n.createElement(f.Z,{ref:this.saveRef(g),index:g,count:e,prefixCls:`${r}-star`,allowHalf:i,value:void 0===u?h:u,onClick:s?d.Z:this.onClick,onHover:s?d.Z:this.onHover,key:g,disabled:s,character:o,focused:c,size:g===e?0:a,ariaLabelPrefix:t,onFocus:s||e!==g?d.Z:this.handleStarFocusVisible,onBlur:s||e!==g?d.Z:this.handleStarBlur});if(l){let t=l[g]?l[g]:"",e=u-1===g;return n.createElement(p.Z,{visible:e,trigger:"custom",content:t,key:`${g}-${e}`},v)}return v})};let e=void 0===t.value?t.defaultValue:t.value;this.stars={},this.state={value:e,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new g.Z(this.adapter)}}m.contextType=l.Z,m.propTypes={"aria-describedby":c().string,"aria-errormessage":c().string,"aria-invalid":c().bool,"aria-label":c().string,"aria-labelledby":c().string,"aria-required":c().bool,disabled:c().bool,value:c().number,defaultValue:c().number,count:c().number,allowHalf:c().bool,allowClear:c().bool,style:c().object,prefixCls:c().string,onChange:c().func,onHoverChange:c().func,className:c().string,character:c().node,tabIndex:c().number,onFocus:c().func,onBlur:c().func,onKeyDown:c().func,autoFocus:c().bool,size:c().oneOfType([c().oneOf(h.j.SIZE_SET),c().number]),tooltips:c().arrayOf(c().string),id:c().string,preventScroll:c().bool},m.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:h.U.PREFIX,onChange:d.Z,onHoverChange:d.Z,tabIndex:-1,size:"default"}},936249:function(t,e,i){"use strict";i.d(e,{Z:function(){return y}}),i(414931),i(932651);var n=i(61766),r=i.n(n),s=i(5784),o=i.n(s),a=i(198412),l=i.n(a),h=i(101199),u=i(622689),c=i.n(u),d=i(469935),f=i.n(d),p=i(278766),g=i(553827),v=i(260813),m=i(629283),_=i(37827),b=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)0>e.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i};class y extends h.PureComponent{render(){let{record:t,columns:e=[],prefixCls:i,className:n,expanded:s,expandedRowRender:a,renderExpandIcon:u,index:c,store:d,components:v,style:y,virtualized:S,indentSize:w,cellWidths:x,displayNone:C}=this.props,{tableWidth:k,anyColumnFixed:E,getCellWidths:O}=this.context,R=a(t,c,s),I=null,T={},A={};if(r()(R))return null;if((0,h.isValidElement)(R))I=R;else if(R&&"[object Object]"===Object.prototype.toString.call(R)){let{children:t,fixed:e}=R,i=b(R,["children","fixed"]);I=t,A=Object.assign({},i)}l()(v,"body.cell")!==p.j2.DEFAULT_COMPONENTS.body.cell?(S&&o()(T,"style.height","100%"),o()(T,"style.display","block"),o()(T,"style.width",(0,g.iT)(x,0,e.length))):T.colSpan=(0,g.I2)(e).length;let P=[Object.assign({render:()=>({props:T,children:h.createElement("div",{className:f()(`${i}-expand-inner`),style:{width:E?(0,_.OG)(k):void 0}},I)})},A)],L=f()(n,`${i}-row-expand`),j=O(P);return h.createElement(m.Z,{style:y,components:v,className:L,expandedRow:!0,renderExpandIcon:u,rowKey:`${t.key}-expanded-row`,columns:P,store:d,virtualized:S,indentSize:w,cellWidths:j,displayNone:C})}}y.contextType=v.Z,y.propTypes={cellWidths:c().array.isRequired,className:c().string,columns:c().array,components:c().object,defaultExpandAllRows:c().bool,defaultExpandedRowKeys:c().array,expandIcon:c().oneOfType([c().object,c().node,c().func]),expandRowByClick:c().bool,expanded:c().bool,expandedRowKeys:c().array,expandedRowRender:c().func,indentSize:c().number,index:c().oneOfType([c().string,c().number]),onExpand:c().func,onExpandedRowsChange:c().func,prefixCls:c().string,record:c().object,renderExpandIcon:c().func,store:c().object,style:c().object,virtualized:c().oneOfType([c().bool,c().object])},y.defaultProps={record:{},prefixCls:p.UX.PREFIX}},235806:function(t,e,i){"use strict";i.d(e,{Z:function(){return y}}),i(932651);var n=i(22186),r=i.n(n),s=i(101199),o=i(469935),a=i.n(o),l=i(622689),h=i.n(l),u=i(519627),c=i(328638),d=i(170651),f=i(114376);i(667031);var p=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)0>e.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i};let g=u.U.PREFIX,v=u.j.TAG_COLOR,m=u.j.TAG_SIZE,_=u.j.TAG_TYPE,b=u.j.AVATAR_SHAPE;class y extends s.Component{static getDerivedStateFromProps(t){return"visible"in t?{visible:t.visible}:null}setVisible(t){!("visible"in this.props)&&this.setState({visible:t})}close(t,e,i){let{onClose:n}=this.props;if(t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),n&&n(e,t,i),!t.defaultPrevented)this.setVisible(!1)}handleKeyDown(t){let{closable:e,onClick:i,onKeyDown:n}=this.props;switch(t.key){case"Backspace":case"Delete":e&&this.close(t,this.props.children,this.props.tagKey),(0,f.Jt)(t);break;case"Enter":i(t),(0,f.Jt)(t);break;case"Escape":t.target.blur()}n&&n(t)}renderAvatar(){let{avatarShape:t,avatarSrc:e}=this.props;return s.createElement(c.Z,{src:e,shape:t})}render(){let t=this.props,{tagKey:e,children:i,size:n,color:o,closable:l,visible:h,onClose:u,onClick:c,className:f,type:v,shape:m,avatarSrc:_,avatarShape:b,tabIndex:S,prefixIcon:w,suffixIcon:x}=t,C=p(t,["tagKey","children","size","color","closable","visible","onClose","onClick","className","type","shape","avatarSrc","avatarShape","tabIndex","prefixIcon","suffixIcon"]),{visible:k}=this.state,E=c!==y.defaultProps.onClick||l,O={role:"button",tabIndex:S||0,onKeyDown:this.handleKeyDown},R=Object.assign(Object.assign({},C),{onClick:c,tabIndex:S,className:a()(g,{[`${g}-default`]:"default"===n,[`${g}-small`]:"small"===n,[`${g}-large`]:"large"===n,[`${g}-square`]:"square"===m,[`${g}-circle`]:"circle"===m,[`${g}-${v}`]:v,[`${g}-${o}-${v}`]:o&&v,[`${g}-closable`]:l,[`${g}-invisible`]:!k,[`${g}-avatar-${b}`]:_},f)}),I=E?Object.assign(Object.assign({},R),O):R,T=l?s.createElement("div",{className:`${g}-close`,onClick:t=>this.close(t,i,e)},s.createElement(d.Z,{size:"small"})):null,A=r()(i),P=a()(`${g}-content`,`${g}-content-${A?"ellipsis":"center"}`);return s.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||A?`${l?"Closable ":""}Tag: ${i}`:""},I),w?s.createElement("div",{className:`${g}-prefix-icon`},w):null,_?this.renderAvatar():null,s.createElement("div",{className:P},i),x?s.createElement("div",{className:`${g}-suffix-icon`},x):null,T)}constructor(t){super(t),this.state={visible:!0},this.close=this.close.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}}y.defaultProps={size:m[0],color:v[0],closable:!1,type:_[0],onClose:()=>void 0,onClick:()=>void 0,onMouseEnter:()=>void 0,style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null},y.propTypes={children:h().node,tagKey:h().oneOfType([h().string,h().number]),size:h().oneOf(m),color:h().oneOf(v),type:h().oneOf(_),closable:h().bool,visible:h().bool,onClose:h().func,onClick:h().func,prefixIcon:h().node,suffixIcon:h().node,style:h().object,className:h().string,avatarSrc:h().string,avatarShape:h().oneOf(b),"aria-label":h().string}},799585:function(t,e,i){"use strict";i.d(e,{g:function(){return a}});var n=i(480333);i(591964);var r=i(970420),s=i(459282),o=i(500264);class a{get lowLatency(){var t;return null===(t=this.currentStream)||void 0===t?void 0:t.lowLatency}get lastSegment(){var t;return null===(t=this.currentStream)||void 0===t?void 0:t.lastSegment}get currentSegment(){var t;return null===(t=this.currentSegments)||void 0===t?void 0:t[this._segmentPointer]}get nextSegment(){var t;return null===(t=this.currentSegments)||void 0===t?void 0:t[this._segmentPointer+1]}get currentSegments(){var t;return null===(t=this.currentStream)||void 0===t?void 0:t.segments}get currentSubtitleEndSn(){var t;return null===(t=this.currentStream)||void 0===t?void 0:t.currentSubtitleEndSn}get liveEdge(){var t;return null===(t=this.currentStream)||void 0===t?void 0:t.liveEdge}set liveEdge(t){this.currentStream&&(this.currentStream.liveEdge=t)}get totalDuration(){var t;return(null===(t=this.currentStream)||void 0===t?void 0:t.totalDuration)||0}get seekRange(){let t=this.currentSegments;if(t&&t.length)return[t[0].start,t[t.length-1].end]}get nbSegments(){var t;return(null===(t=this.currentSegments)||void 0===t?void 0:t.length)||0}get isEmpty(){var t;return!(null===(t=this.currentSegments)||void 0===t?void 0:t.length)}get isLive(){var t;return null===(t=this.currentStream)||void 0===t?void 0:t.live}get hadSegmentLoaded(){return -1!==this._segmentPointer}get hasSubtitle(){var t;return!!(null===(t=this.currentStream)||void 0===t?void 0:t.currentSubtitleStream)}getAudioSegment(t){var e;return null===(e=this.currentStream)||void 0===e?void 0:e.getAudioSegment(t)}moveSegmentPointer(t){var e;null==t&&(t=this._segmentPointer+1),this._segmentPointer=(0,r.u)(t,-1,null===(e=this.currentSegments)||void 0===e?void 0:e.length)}reset(){this.streams=[],this.currentStream=null,this.dvrWindow=0,this._segmentPointer=-1}getSegmentByIndex(t){var e;return null===(e=this.currentSegments)||void 0===e?void 0:e[t]}setNextSegmentByIndex(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._segmentPointer=t-1}setNextSegmentBySN(){var t;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=null===(t=this.currentSegments)||void 0===t?void 0:t.findIndex(t=>t.sn===e);return -1!==i&&this.setNextSegmentByIndex(i+1),i}findSegmentIndexByTime(t){let e=this.currentSegments;if(e){for(let i=0,n=e.length,r;i<n;i++)if(t>=(r=e[i]).start&&t<r.end)return i;let i=e[e.length-1];if(.2>Math.abs(t-(null==i?void 0:i.end)))return e.length-1}}upsertPlaylist(t,e,i){if(!!t){if(t.isMaster)this.streams.length=t.streams.length,t.streams.filter(t=>t.url).forEach((t,e)=>{this.streams[e]?this.streams[e].update(t):this.streams[e]=new s.F(t)}),this.currentStream=this.streams[0];else if(Array.isArray(t.segments)){let n=this.currentStream;if(n){n.update(t,e,i);let r=n.updateSubtitle(i);r&&this.hls.emit(o.j.SUBTITLE_SEGMENTS,{list:r})}else this.reset(),this.currentStream=this.streams[0]=new s.F(t,e,i)}this.currentStream&&this.hls.isLive&&!this.dvrWindow&&(this.dvrWindow=this.currentSegments.reduce((t,e)=>t+=e.duration,0))}}updateSegmentsRanges(t,e){var i;(null===(i=this.currentSegments)||void 0===i?void 0:i.filter(e=>e.sn>=t)).forEach(t=>{t.start=e,e=t.end})}switchSubtitle(t){var e;null===(e=this.currentStream)||void 0===e||e.switchSubtitle(t)}clearOldSegment(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hls.config.maxPlaylistSize||50,e=this.currentStream;if(!this.dvrWindow||!e)return;let i=e.endTime-this.dvrWindow;if(!(i<=0))!(e.segments.length<=t)&&(this._segmentPointer=e.clearOldSegment(i,this._segmentPointer))}checkSegmentTrackChange(t,e){let i=this.findSegmentIndexByTime(t),n=this.getSegmentByIndex(i);if(!n||!n.hasAudio&&!n.hasVideo)return;if(2!==e&&n.hasAudio&&n.hasVideo)return n;if(n.end-t>.3)return;let r=this.getSegmentByIndex(i+1);if(!!r){if((r.hasAudio||r.hasVideo)&&(r.hasAudio!==n.hasAudio||r.hasVideo!==n.hasVideo))return r}}feedbackLiveEdge(t,e){var i;if(!!this.currentSegments){if((null===(i=this.lastSegment)||void 0===i?void 0:i.sn)===t.sn){this.liveEdge=e;return}this.updateSegmentsRanges(t.sn+1,e)}}constructor(t){(0,n._)(this,"streams",[]),(0,n._)(this,"currentStream",null),(0,n._)(this,"dvrWindow",0),(0,n._)(this,"_segmentPointer",-1),this.hls=t}}},402129:function(t,e,i){"use strict";i.d(e,{_:function(){return r}});var n=i(480333);class r{get cts(){return this.pts-this.dts}setToKeyframe(){this.keyframe=!0,this.flag.dependsOn=2,this.flag.isNonSyncSample=0}constructor(t,e,i){(0,n._)(this,"flag",{}),(0,n._)(this,"keyframe",!1),(0,n._)(this,"gopId",0),(0,n._)(this,"duration",0),(0,n._)(this,"size",0),(0,n._)(this,"units",[]),(0,n._)(this,"chromaFormat",420),this.originPts=this.pts=t,this.originDts=this.dts=e,i&&(this.units=i)}}},516859:function(t,e,i){"use strict";i.d(e,{i:function(){return s}});var n=i(629686),r=i(669839);function s(t){return(0,n._)({retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:r.U.TEXT,range:void 0,url:"",params:void 0,method:"GET",headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0,onProcessMinLen:0},t)}},413485:function(t,e,i){"use strict";i.d(e,{G7:function(){return o},Gu:function(){return r},rO:function(){return a}}),i(683656),i(759943),i(362051),i(780582),i(527553);var n=i(312193);function r(t){if(!t||null===t[0]||void 0===t[0]||0===t[0]&&(null===t[1]||void 0===t[1]))return;let e="bytes="+t[0]+"-";return t[1]&&(e+=t[1]),e}function s(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function o(t,e){let i;if(!t)return;if(!e)return t;let r=Object.keys(e).map(t=>{if(null!=(i=e[t]))return Array.isArray(i)?t+="[]":i=[i],i.map(e=>((0,n.J_)(e)?e=e.toISOString():(0,n.Kn)(e)&&(e=JSON.stringify(e)),`${s(t)}=${s(e)}`)).join("&")}).filter(Boolean).join("&");if(r){let e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}function a(t,e,i,n,r,s,o,a,l,h,u){return r=null!=r?parseFloat(r):null,Number.isNaN(n=parseInt(n||"0",10))&&(n=0),{data:t,done:e,options:{range:l,vid:h,index:a,contentLength:n,age:r,startTime:s,firstByteTime:o,endTime:Date.now(),priOptions:u},response:i}}},731157:function(t,e,i){"use strict";i.d(e,{Z:function(){return r}});var n=i(480333);i(527553),i(374954),i(591964);class r{recordLoading(t){let e=parseInt(t.get("content-length")||"0"),i=t.get("Accept-Ranges"),n=t.get("Content-Range");if(!e||i||n)return;this._contentLength=e;let r=Math.floor(e/this._speed*1e3);!(r<50)&&(this._dit=performance.now(),this._startTick(e,r))}recordLoaded(){this._cleanTimer();let t=performance.now()-this._dit;this._addSample(Math.floor(this._contentLength/t))}recordChunk(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this._timer){this._dit=performance.now(),this._startTickForStream();return}this._totalByteSize+=t,this._contentLength+=t}_startTick(t,e){this._cleanTimer(),this._timer=setInterval(()=>{let e=performance.now()-this._dit;this._addSample(Math.floor(t/e))},e)}_startTickForStream(){this._timer=setInterval(()=>{this._addSample(this._calcSampleSpeed())},3e3)}_calcSampleSpeed(){if(!this._contentLength)return this._dit=performance.now(),0;let t=performance.now()-this._dit,e=Math.floor(this._contentLength/t);return this._contentLength=0,this._dit=performance.now(),e}_addSample(t){this._recentSpeed=1e3*t,this._sampleQueue.length>3&&(this._sampleQueue=[]),this._sampleQueue.push(t),this._calcAvgSpeed(this._sampleQueue)}_calcAvgSpeed(t){let e=t.length,i=t.reduce((t,e)=>t+=e,0)/e;this._speed=1e3*Math.floor(i)}_cleanTimer(){clearTimeout(this._timer),this._timer=0}reset(){this._cleanTimer(),this._totalByteSize=0,this._sampleQueue=[]}destroy(){this._cleanTimer()}get speedInfo(){return{totalByteSize:this._totalByteSize,currentSpeed:this.avgSpeed/8e3,avgSpeed:this.avgSpeed,recentSpeed:this.recentSpeed}}get totalByteSize(){return this._totalByteSize}get avgSpeed(){return!this._speed&&this._addSample(this._calcSampleSpeed()),8*this._speed}get recentSpeed(){return!this._recentSpeed&&this._addSample(this._calcSampleSpeed()),8*this._recentSpeed}constructor(){(0,n._)(this,"_sampleQueue",[]),(0,n._)(this,"_speed",0),(0,n._)(this,"_recentSpeed",0),(0,n._)(this,"_timer",0),(0,n._)(this,"_dit",0),(0,n._)(this,"_contentLength",0),(0,n._)(this,"_totalByteSize",0),(0,n._)(this,"_speedDown",!1)}}},715784:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var n=i(480333);i(374954),i(490629);var r=i(742744);class s{addSample(t){this._seiSet.add(t)}throw(t){if(!t||!this._seiSet.size)return;let e=t-.2,i=t+.2,n=[];this._seiSet.forEach(t=>{t.time>=e&&t.time<=i&&n.push(t)}),n.forEach(t=>{this._seiSet.delete(t);let e={code:t.data.type,content:t.data.payload,dts:t.originPts,time:t.time};5===e.code&&(e.uuid=t.data.uuid),this._core.emit(r.le.SEI,e)}),this._seiSet.forEach(e=>{e.time<t-5&&this._seiSet.delete(e)})}reset(){this._seiSet.clear()}constructor(t){(0,n._)(this,"_core",void 0),(0,n._)(this,"_seiSet",new Set),this._core=t}}},204256:function(t,e,i){"use strict";i(240148),i(759943);e.Z=(t,e)=>{let i=t.match(/^\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*,?\s*([\d.]*)\s*$/),n=[];n[0]=Number(null==i?void 0:i[1]),n[1]=Number(null==i?void 0:i[2]),n[2]=Number(null==i?void 0:i[3]),n[3]=Number((null==i?void 0:i[4])===void 0||(null==i?void 0:i[4])===""?1:null==i?void 0:i[4]);let r=(t,e)=>!(isNaN(t)||t<0||t>e);return!!(r(n[0],"rgba"===e?255:360)&&r(n[1],"rgba"===e?255:100)&&r(n[2],"rgba"===e?255:100)&&r(n[3],1))&&("rgba"===e?{r:n[0],g:n[1],b:n[2],a:n[3]}:{h:n[0],s:n[1],v:n[2],a:n[3]})}},650065:function(t,e,i){"use strict";i.d(e,{Z:function(){return d}}),i(932651),i(104882),i(228983),i(759943);var n=i(908219),r=i.n(n),s=i(92122),o=i.n(s),a=i(114376),l=i(856445),h=i(108220),u=i(417057);let c=["icon","footer"];class d extends l.Z{beforeShow(){this._adapter.registerKeyDownListener(),this._adapter.disabledBodyScroll(),this.updateTimer()}afterHide(){this._adapter.unregisterKeyDownListener(),this._adapter.enabledBodyScroll(),this.clearTimer()}constructor(t){var e;super(Object.assign({},t)),e=this,this._timer=null,this._startMouseDown={x:0,y:0},this.handleViewVisibleChange=()=>{let{viewerVisible:t}=this.getStates();t&&(this.setState({viewerVisible:!1}),this.clearTimer())},this.handleMouseMove=t=>{this._persistEvent(t),this.mouseMoveHandler(t)},this.mouseMoveHandler=r()(t=>{let{viewerVisible:e}=this.getStates();this._adapter.isValidTarget(t)?(!e&&this.setState({viewerVisible:!0}),this.updateTimer()):this.clearTimer()},50),this.updateTimer=()=>{let{viewerVisibleDelay:t}=this.getProps();this.clearTimer(),this._timer=setTimeout(this.handleViewVisibleChange,t)},this.clearTimer=()=>{this._timer&&(clearTimeout(this._timer),this._timer=null)},this.handleWheel=t=>{this.onWheel(t),(0,a.Jt)(t)},this.onWheel=t=>{let e;let{zoomStep:i,maxZoom:n,minZoom:r}=this.getProps(),{zoom:s}=this.getStates();t.deltaY<0?s+i<=n&&(e=Number((s+i).toFixed(2))):t.deltaY>0&&s-i>=r&&(e=Number((s-i).toFixed(2))),!o()(e)&&this.handleZoomImage(e,!0,t)},this.handleMouseUp=t=>{let{maskClosable:e}=this.getProps(),i=!(0,u.zW)(t,c),{clientX:n,clientY:r}=t,{x:s,y:o}=this._startMouseDown;(Math.abs(n-s)>5||Math.abs(o-r)>5)&&(i=!1),i&&e&&this._adapter.notifyVisibleChange(!1)},this.handleMouseDown=t=>{let{clientX:e,clientY:i}=t;this._startMouseDown={x:e,y:i}},this.handleKeyDown=t=>{let{closeOnEsc:e}=this.getProps();if(e&&t.keyCode===h.ZP.ESC){t.stopPropagation(),this._adapter.notifyVisibleChange(!1),this._adapter.notifyClose();return}},this.handleSwitchImage=t=>{let e="prev"===t?-1:1,{imgSrc:i,currentIndex:n}=this.getStates(),r=i.length,s=(n+e+r)%r;"currentIndex"in this.getProps()?this._adapter.getIsInGroup()&&this._adapter.getContext("setCurrentIndex")(s):this.setState({currentIndex:s}),this._adapter.notifyChange(s,t),this.setState({direction:t,rotation:0})},this.handleDownload=()=>{let{currentIndex:t,imgSrc:e}=this.getStates(),i=this._adapter.getSetDownloadFunc(),n=e[t],r=i?i(n):n.slice(n.lastIndexOf("/")+1).split("?")[0];(0,u.GN)(n,r,this._adapter.notifyDownloadError),this._adapter.notifyDownload(n,t)},this.handlePreviewClose=t=>{this._adapter.notifyVisibleChange(!1),this._adapter.notifyClose(),(0,a.Jt)(t)},this.handleAdjustRatio=t=>{this.setState({ratio:t}),this._adapter.notifyRatioChange(t)},this.handleRotateImage=t=>{let{rotation:e}=this.getStates(),i=e+("left"===t?-90:90);this.setState({rotation:i}),this._adapter.notifyRotateChange(i)},this.handleZoomImage=function(t){let i=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=arguments.length>2?arguments[2]:void 0,{zoom:r}=e.getStates();r!==t&&(i&&e._adapter.notifyZoom(t,t>r),e._adapter.changeImageZoom(t,n),e.setState({zoom:t}))},this.preloadGapImage=()=>{let{preLoad:t,preLoadGap:e,infinite:i,currentIndex:n}=this.getProps(),{imgSrc:r}=this.getStates();if(!t||"number"!=typeof e||e<1)return;let s=(0,u.fQ)(r,n,e,i);if(0===s.length)return;let o=new Image,a=0;function l(t){++a<s.length&&(o.src=s[a])}o.onload=t=>{this.setLoadSuccessStatus(o.src),l(t)},o.onerror=l,o.src=s[0]},this.preloadSingleImage=()=>{let{preLoad:t,preLoadGap:e,infinite:i}=this.getProps(),{imgSrc:n,currentIndex:r,direction:s,imgLoadStatus:o}=this.getStates();if(!t||"number"!=typeof e||e<1)return;let a=r+("prev"===s?-1:1)*e;if(a<0||a>=n.length){if(!i)return;a=(a+n.length)%n.length}if(!o[a]){let t=new Image;t.onload=t=>{this.setLoadSuccessStatus(n[a])},t.src=n[a]}},this.setLoadSuccessStatus=t=>{let{imgLoadStatus:e}=this.getStates(),i=Object.assign({},e);i[t]=!0,this.setState({imgLoadStatus:i})},this.onImageLoad=t=>{let{preloadAfterVisibleChange:e}=this.getStates();this.setLoadSuccessStatus(t),e?(this.preloadGapImage(),this.setState({preloadAfterVisibleChange:!1})):this.preloadSingleImage()}}}},533833:function(t,e,i){"use strict";i(932651);var n=i(856445),r=i(431987),s=i.n(r);class o extends n.Z{init(t){var e,i;super.init(t),this.animation=s().loadAnimation(this._adapter.getLoadParams()),null===(e=this.getProp("getAnimationInstance"))||void 0===e||e(this.animation),null===(i=this.getProp("getLottie"))||void 0===i||i(o.getLottie())}destroy(){super.destroy(),this.animation.destroy()}constructor(t){super(Object.assign(Object.assign({},o.defaultAdapter),t)),this.animation=null,this.handleParamsUpdate=()=>{var t;this.animation.destroy(),this.animation=s().loadAnimation(this._adapter.getLoadParams()),null===(t=this.getProp("getAnimationInstance"))||void 0===t||t(this.animation)}}}o.getLottie=()=>s(),e.Z=o},104167:function(t,e,i){"use strict";i.d(e,{Bl:function(){return f},ER:function(){return h},e$:function(){return s},ec:function(){return l},fl:function(){return u},jb:function(){return c},kQ:function(){return d},mc:function(){return o},os:function(){return p},uZ:function(){return n},xE:function(){return a},zp:function(){return r}}),i(374285),i(566071),i(759943),i(414931),i(14275),i(591964),i(559561),i(683656),i(780582);let n=(t,e,i)=>Math.max(Math.min(t,i),e),r=(t,e)=>Math.round(t/e)*e,s=(t,e)=>RegExp(t,"i").test(e),o=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.reduce((i,n,r)=>Math.abs(n-t)<Math.abs(e[i]-t)?r:i,0),r=Math.abs(e[n]-t);return 0===i||r<i?e[n]:t},a=t=>"auto"===(t=t.toString())||t.endsWith("px")||t.endsWith("%")||t.endsWith("vh")||t.endsWith("vw")||t.endsWith("vmax")||t.endsWith("vmin")?t:`${t}px`,l=(t,e,i,n)=>{if(t&&"string"==typeof t){if(t.endsWith("px"))return Number(t.replace("px",""));if(t.endsWith("%"))return e*(Number(t.replace("%",""))/100);if(t.endsWith("vw"))return i*(Number(t.replace("vw",""))/100);if(t.endsWith("vh"))return n*(Number(t.replace("vh",""))/100)}return void 0===t?t:Number(t)},h=(t,e,i,n,r,s,o)=>(n=l(n,t.width,e,i),r=l(r,t.height,e,i),s=l(s,t.width,e,i),{maxWidth:n,maxHeight:r,minWidth:s,minHeight:o=l(o,t.height,e,i)}),u=t=>"vertical"===t?["bottom","top"]:["right","left"],c=(t,e)=>t.endsWith("px")?Number(t.replace("px","")):t.endsWith("%")?Number(t.replace("%",""))/100*e:void 0===t?t:Number(t),d=function(t,e,i,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;i=null!=i?i:"100%";let s=c(e=null!=e?e:"0%",n),o=c(i,n);return!!(t<s+r)||!!(t>o)||!1},f=(t,e,i,n,r)=>{i=null!=i?i:"100%";let s=c(e=null!=e?e:"0%",n),o=c(i,n);return t<s+r?s+r:t>o?o:t},p=(t,e)=>{if("horizontal"===e){let e=parseFloat(t.paddingLeft),i=parseFloat(t.paddingRight),n=parseFloat(t.borderLeftWidth);return e+i+n+parseFloat(t.borderRightWidth)}{let e=parseFloat(t.paddingTop),i=parseFloat(t.paddingBottom),n=parseFloat(t.borderTopWidth);return e+i+n+parseFloat(t.borderBottomWidth)}}},4863:function(t,e,i){"use strict";i(932651);var n=i(101199);function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}let s=n.forwardRef(function(t,e){return n.createElement("svg",r({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,ref:e},t),n.createElement("path",{d:"M15.9056 17.3199C14.551 18.3729 12.8487 19 11 19C6.58172 19 3 15.4183 3 11C3 6.58172 6.58172 3 11 3C15.4183 3 19 6.58172 19 11C19 12.8487 18.3729 14.551 17.3199 15.9056L20.7071 19.2929C21.0976 19.6834 21.0976 20.3166 20.7071 20.7071C20.3166 21.0976 19.6834 21.0976 19.2929 20.7071L15.9056 17.3199ZM17 11C17 7.68629 14.3137 5 11 5C7.68629 5 5 7.68629 5 11C5 14.3137 7.68629 17 11 17C14.3137 17 17 14.3137 17 11Z",fill:"currentColor"}))});s.elementType="Icon",e.Z=s},952974:function(t,e,i){"use strict";i(932651);var n=i(101199);function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}let s=n.forwardRef(function(t,e){return n.createElement("svg",r({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,ref:e},t),n.createElement("g",{clipPath:"url(#clip0_1_1670)"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.25 9.25H10H22H22.75V10V22V22.75H22H10H9.25V22V10V9.25ZM10.75 10.75V21.25H21.25V10.75H10.75Z",fill:"currentColor"})),n.createElement("defs",null,n.createElement("clipPath",{id:"clip0_1_1670"},n.createElement("rect",{width:32,height:32,fill:"currentColor"}))))});s.elementType="Icon",e.Z=s},166637:function(t,e,i){"use strict";i.d(e,{g:function(){return f}}),i(490629),i(780582),i(104882),i(374954);var n=i(320165),r=i(509608),s=i(705998),o=i(299690),a=i(101199),l=i(693653),h=i(618115),u=i(400853),c=i(356410);i(841986);let d=(0,a.forwardRef)((t,e)=>{let{defaultVolume:i,disabled:o,onVolumeChange:l,showVolume:d}=t,{IconVolumeMuted:f=h.Z,IconVolumeSmall:p=u.Z,IconVolume:g=c.Z}=t,v=(0,a.useRef)(t);v.current=t;let{playerRef:m}=(0,a.useContext)(r.E),_=(0,a.useRef)(null),b=(0,a.useRef)(null),y=(0,s.DM)(l),[{muted:S,volume:w},x]=(0,a.useState)({muted:m.current.muted,volume:m.current.volume}),{showControl:C,hideControl:k}=(0,a.useMemo)(()=>{let t=!1,e=0,i=!1;return{showControl(n){var r,s;if(!v.current.disabled){if(!1===t&&(t=null===(s=m.current)||void 0===s?void 0:s.pluginsConfig.controls),i=n instanceof MouseEvent,e){clearTimeout(e),e=0;return}null===(r=m.current)||void 0===r||r.updateConfig({pluginsConfig:{controls:{autoHide:!1}}}),_.current.style.display="block"}},hideControl(n){if(v.current.disabled||!1===t)return;let r=()=>{var i;e=0,null===(i=m.current)||void 0===i||i.updateConfig({pluginsConfig:{controls:t}}),t=!1,_.current&&(_.current.style.display="")};n instanceof MouseEvent?e=setTimeout(()=>{r(),i=!1},200):!i&&(e=setTimeout(r,1e3))}}},[]);(0,a.useImperativeHandle)(e,()=>({focus:C,blur:k}),[]),(0,r.T)(()=>{let t=()=>{let t={volume:m.current.volume,muted:m.current.muted};x(t),y(t)};return m.current.on("volumechange",t),()=>{var e;null===(e=m.current)||void 0===e||e.off("volumechange",t)}}),(0,r.T)(()=>{let t=m.current,e=_.current.firstElementChild,i=e.firstElementChild,n=()=>{i.style.height=100*t.volume+"%"};n(),t.on("volumechange",n);let r=n=>{n.stopPropagation();let{clientY:r}=n,s=e.getBoundingClientRect(),o=0;r<=s.top?o=1:r<=s.bottom&&(o=(s.bottom-r)/s.height);let a=t.volume,l=t.muted;t.volume=parseFloat(o.toFixed(2)),o>0&&(t.muted=!1),requestAnimationFrame(()=>{i.style.height=100*o+"%"});let h=[];a!==t.volume&&h.push({prop:"volume",from:a,to:t.volume}),l!==t.muted&&h.push({prop:"muted",from:l,to:t.muted}),t.emitUserAction(n,"change_volume",{muted:t.muted,volume:t.volume,pluginName:"volume",props:h})},s=t=>{var e;null===(e=t.view)||void 0===e||e.addEventListener("mouseup",()=>{_.current.removeEventListener("mousemove",r,!0)},{once:!0,capture:!0}),_.current.addEventListener("mousemove",r,!0),r(t)};return _.current.addEventListener("mousedown",s),b.current.addEventListener("mouseenter",C),b.current.addEventListener("mouseleave",k),()=>{var e,i,r;null===(e=_.current)||void 0===e||e.removeEventListener("mousedown",s),null===(i=b.current)||void 0===i||i.removeEventListener("mouseenter",C),null===(r=b.current)||void 0===r||r.removeEventListener("mouseleave",k),t.off("volumechange",n)}});let E=(0,s.DM)(t=>{if(o)return;let e=m.current,n=e.muted||0===e.volume;e.muted=!n,0===e.volume&&(e.volume=i||e.baseConfig.volume||.2),e.emitUserAction(t,"change_muted",{muted:n,volume:e.volume,pluginName:"volume",props:{prop:"muted",from:n,to:!n}})}),O=S||0===w;return(0,n.jsxs)("div",{className:`douyin-player-icon douyin-player-volume ${o?"douyin-player-icon-disabled":""}`,ref:b,children:[(0,n.jsx)(O?f:w<.5?p:g,{onClick:E}),(0,n.jsxs)("div",{className:`douyin-player-volume-slider ${O?"douyin-player-muted":""} ${d?"douyin-player-volume-slider-show-number":""}`,ref:_,children:[(0,n.jsx)("div",{className:"douyin-player-volume-slider-track",children:(0,n.jsx)("div",{className:"douyin-player-volume-slider-thumb"})}),d&&(0,n.jsx)("span",{className:"douyin-player-volume-number",children:S?0:Math.round(100*w)})]})]})}),f=(0,l.r)(d,{position:o.PZ.CONTROL_RIGHT})},540522:function(t,e,i){"use strict";i.d(e,{g:function(){return s}});let n=/\s+/g,r=/[\t\n\v\f\r ]+/g;function s(t,e){e?"string"==typeof e&&(e={style:e}):e={};let i=e.preserveLineEndings?o:a;return String(t).replace("html"===e.style?r:n,e.trim?function(t){return function(e,i,n){return 0===i||i+e.length===n.length?"":t(e)}}(i):i)}function o(t){let e=/\r?\n|\r/.exec(t);return e?e[0]:" "}function a(){return" "}},331790:function(t,e,i){"use strict";function n(t){return"object"==typeof t&&null!=t&&1===t.nodeType}function r(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function s(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var i,n,s=getComputedStyle(t,null);return r(s.overflowY,e)||r(s.overflowX,e)||!!(n=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(i=t))&&(n.clientHeight<i.scrollHeight||n.clientWidth<i.scrollWidth)}return!1}function o(t,e,i,n,r,s,o,a){return s<t&&o>e||s>t&&o<e?0:s<=t&&a<=i||o>=e&&a>=i?s-t-n:o>e&&a<i||s<t&&a>i?o-e+r:0}i.d(e,{Z:function(){return a}});var a=function(t,e){var i=window,r=e.scrollMode,a=e.block,l=e.inline,h=e.boundary,u=e.skipOverflowHiddenElements,c="function"==typeof h?h:function(t){return t!==h};if(!n(t))throw TypeError("Invalid target");for(var d,f,p=document.scrollingElement||document.documentElement,g=[],v=t;n(v)&&c(v);){if((v=null==(f=(d=v).parentElement)?d.getRootNode().host||null:f)===p){g.push(v);break}null!=v&&v===document.body&&s(v)&&!s(document.documentElement)||null!=v&&s(v,u)&&g.push(v)}for(var m=i.visualViewport?i.visualViewport.width:innerWidth,_=i.visualViewport?i.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,S=t.getBoundingClientRect(),w=S.height,x=S.width,C=S.top,k=S.right,E=S.bottom,O=S.left,R="start"===a||"nearest"===a?C:"end"===a?E:C+w/2,I="center"===l?O+x/2:"end"===l?k:O,T=[],A=0;A<g.length;A++){var P=g[A],L=P.getBoundingClientRect(),j=L.height,W=L.width,F=L.top,N=L.right,M=L.bottom,D=L.left;if("if-needed"===r&&C>=0&&O>=0&&E<=_&&k<=m&&C>=F&&E<=M&&O>=D&&k<=N)break;var Z=getComputedStyle(P),z=parseInt(Z.borderLeftWidth,10),V=parseInt(Z.borderTopWidth,10),H=parseInt(Z.borderRightWidth,10),X=parseInt(Z.borderBottomWidth,10),B=0,$=0,U="offsetWidth"in P?P.offsetWidth-P.clientWidth-z-H:0,Y="offsetHeight"in P?P.offsetHeight-P.clientHeight-V-X:0,G="offsetWidth"in P?0===P.offsetWidth?0:W/P.offsetWidth:0,K="offsetHeight"in P?0===P.offsetHeight?0:j/P.offsetHeight:0;if(p===P)B="start"===a?R:"end"===a?R-_:"nearest"===a?o(y,y+_,_,V,X,y+R,y+R+w,w):R-_/2,$="start"===l?I:"center"===l?I-m/2:"end"===l?I-m:o(b,b+m,m,z,H,b+I,b+I+x,x),B=Math.max(0,B+y),$=Math.max(0,$+b);else{B="start"===a?R-F-V:"end"===a?R-M+X+Y:"nearest"===a?o(F,M,j,V,X+Y,R,R+w,w):R-(F+j/2)+Y/2,$="start"===l?I-D-z:"center"===l?I-(D+W/2)+U/2:"end"===l?I-N+H+U:o(D,N,W,z,H+U,I,I+x,x);var J=P.scrollLeft,q=P.scrollTop;R+=q-(B=Math.max(0,Math.min(q+B/K,P.scrollHeight-j/K+Y))),I+=J-($=Math.max(0,Math.min(J+$/G,P.scrollWidth-W/G+U)))}T.push({el:P,top:B,left:$})}return T}},401192:function(t,e,i){"use strict";i.r(e),i.d(e,{attentionMarkers:function(){return A},contentInitial:function(){return k},disable:function(){return P},document:function(){return C},flow:function(){return O},flowInitial:function(){return E},insideSpan:function(){return T},string:function(){return R},text:function(){return I}});var n=i(771579),r=i(358498),s=i(953117),o=i(754478),a=i(170035),l=i(103709),h=i(203527),u=i(954260),c=i(308271),d=i(722049),f=i(696838),p=i(890361),g=i(99312),v=i(525293),m=i(245631),_=i(664491),b=i(872072),y=i(141729),S=i(473818),w=i(930676),x=i(470342);let C={42:n.p,43:n.p,45:n.p,48:n.p,49:n.p,50:n.p,51:n.p,52:n.p,53:n.p,54:n.p,55:n.p,56:n.p,57:n.p,62:r.m},k={91:s.D},E={[-2]:o.S,[-1]:o.S,32:o.S},O={35:a.Z,42:l.C,45:[h.C,l.C],60:u.P,61:h.C,95:l.C,96:c._,126:c._},R={38:d.u,92:f.L},I={[-5]:p.g,[-4]:p.g,[-3]:p.g,33:g.C,38:d.u,42:v.v,60:[m.j,_.L],91:b.F,92:[y.R,f.L],93:S.Z,95:v.v,96:w.h},T={null:[v.v,x.UW]},A={null:[42,95]},P={null:[]}},281501:function(t,e,i){"use strict";i.d(e,{C:function(){return o}});var n=i(368183),r=i(252819),s=i(278825);function o(t,e,i){let o={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0},a={},l=[],h=[],u=[],c={attempt:_(function(t,e){b(t,e.from)}),check:_(m),consume:function(t){(0,n.Ch)(t)?(o.line++,o.column=1,o.offset+=-3===t?2:1,y()):-1!==t&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===h[o._index].length&&(o._bufferIndex=-1,o._index++)),d.previous=t},enter:function(t,e){let i=e||{};return i.type=t,i.start=g(),d.events.push(["enter",i,d]),u.push(i),i},exit:function(t){let e=u.pop();return e.end=g(),d.events.push(["exit",e,d]),e},interrupt:_(m,{interrupt:!0})},d={code:null,containerState:{},defineSkip:function(t){a[t.line]=t.column,y()},events:[],now:g,parser:t,previous:null,sliceSerialize:function(t,e){return function(t,e){let i,n=-1,r=[];for(;++n<t.length;){let s;let o=t[n];if("string"==typeof o)s=o;else switch(o){case -5:s="\r";break;case -4:s="\n";break;case -3:s="\r\n";break;case -2:s=e?" ":" ";break;case -1:if(!e&&i)continue;s=" ";break;default:s=String.fromCharCode(o)}i=-2===o,r.push(s)}return r.join("")}(p(t),e)},sliceStream:p,write:function(t){return(h=(0,r.V)(h,t),function(){let t;for(;o._index<h.length;){let e=h[o._index];if("string"==typeof e)for(t=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===t&&o._bufferIndex<e.length;)(function(t){f=f(t)})(e.charCodeAt(o._bufferIndex));else(function(t){f=f(t)})(e)}}(),null!==h[h.length-1])?[]:(b(e,0),d.events=(0,s.C)(l,d.events,d),d.events)}},f=e.tokenize.call(d,c);return e.resolveAll&&l.push(e),d;function p(t){return function(t,e){let i;let n=e.start._index,r=e.start._bufferIndex,s=e.end._index,o=e.end._bufferIndex;if(n===s)i=[t[n].slice(r,o)];else{if(i=t.slice(n,s),r>-1){let t=i[0];"string"==typeof t?i[0]=t.slice(r):i.shift()}o>0&&i.push(t[s].slice(0,o))}return i}(h,t)}function g(){let{_bufferIndex:t,_index:e,line:i,column:n,offset:r}=o;return{_bufferIndex:t,_index:e,line:i,column:n,offset:r}}function v(t){f=f(t)}function m(t,e){e.restore()}function _(t,e){return function(i,n,r){let s,a,l,h;return Array.isArray(i)?f(i):"tokenize"in i?f([i]):function(t){return function(e){let i=null!==e&&t[e],n=null!==e&&t.null;return f([...Array.isArray(i)?i:i?[i]:[],...Array.isArray(n)?n:n?[n]:[]])(e)}}(i);function f(t){return(s=t,a=0,0===t.length)?r:p(t[a])}function p(t){return function(i){return(h=function(){let t=g(),e=d.previous,i=d.currentConstruct,n=d.events.length,r=Array.from(u);return{from:n,restore:function(){o=t,d.previous=e,d.currentConstruct=i,d.events.length=n,u=r,y()}}}(),l=t,!t.partial&&(d.currentConstruct=t),t.name&&d.parser.constructs.disable.null.includes(t.name))?m(i):t.tokenize.call(e?Object.assign(Object.create(d),e):d,c,v,m)(i)}}function v(e){return t(l,h),n}function m(t){return(h.restore(),++a<s.length)?p(s[a]):r}}}function b(t,e){t.resolveAll&&!l.includes(t)&&l.push(t),t.resolve&&(0,r.d)(d.events,e,d.events.length-e,t.resolve(d.events.slice(e),d)),t.resolveTo&&(d.events=t.resolveTo(d.events,d))}function y(){o.line in a&&o.column<2&&(o.column=a[o.line],o.offset+=a[o.line]-1)}}},65458:function(t,e,i){"use strict";i.d(e,{D:function(){return n}});let n={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"}},118622:function(t,e,i){"use strict";i.d(e,{H:function(){return n}});let n=(0,i(355965).U)({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(t,e)=>"xlink:"+e.slice(5).toLowerCase()})},458714:function(t,e,i){"use strict";i.d(e,{M:function(){return r}});var n=i(291804);class r extends n.T8{}r.Encryptor=class extends r{processBlock(t,e){let i=this._cipher,{blockSize:n}=i,r=this._iv,s=this._counter;r&&(this._counter=r.slice(0),s=this._counter,this._iv=void 0);let o=s.slice(0);i.encryptBlock(o,0),s[n-1]=s[n-1]+1|0;for(let i=0;i<n;i+=1)t[e+i]^=o[i]}},r.Decryptor=r.Encryptor},427141:function(t,e,i){"use strict";i.d(e,{z:function(){return tp}});var n,r=i(274470),s=i(882626),o=i(620303),a=i(798021),l=i(40689),h=i(801927),u=i(216649),c=i(404473),d=i(480333),f=i(629686),p=i(402748);i(490629),i(302356),i(374954),i(313036),i(190932),i(808483),i(126159),i(100832),i(825666),i(943281),i(82726),i(76375),i(834923),i(559352),i(679308),i(932651);var g=i(777296);let v="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,m=new Set,_="object"==typeof g&&g?g:{},b=(t,e,i,n)=>{"function"==typeof _.emitWarning&&_.emitWarning(t,e,i,n)},y=globalThis.AbortController,S=globalThis.AbortSignal;if(void 0===y){S=class{addEventListener(t,e){this._onabort.push(e)}constructor(){(0,d._)(this,"onabort",void 0),(0,d._)(this,"_onabort",[]),(0,d._)(this,"reason",void 0),(0,d._)(this,"aborted",!1)}},y=class{abort(t){var e,i;if(!this.signal.aborted){for(let e of(this.signal.reason=t,this.signal.aborted=!0,this.signal._onabort))e(t);null===(e=(i=this.signal).onabort)||void 0===e||e.call(i,t)}}constructor(){(0,d._)(this,"signal",new S),e()}};let t=(null===(n=_.env)||void 0===n?void 0:n.LRU_CACHE_IGNORE_AC_WARNING)!=="1",e=()=>{t&&(t=!1,b("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}let w=t=>!m.has(t);Symbol("type");let x=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),C=t=>x(t)?t<=256?Uint8Array:t<=65536?Uint16Array:t<=4294967296?Uint32Array:t<=Number.MAX_SAFE_INTEGER?k:null:null;class k extends Array{constructor(t){super(t),this.fill(0)}}class E{static create(t){let e=C(t);if(!e)return[];(0,c._)(E,E,O,!0);let i=new E(t,e);return(0,c._)(E,E,O,!1),i}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}constructor(t,e){if((0,d._)(this,"heap",void 0),(0,d._)(this,"length",void 0),!(0,u._)(E,E,O))throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}}var O={writable:!0,value:!1},R=new WeakMap,I=new WeakMap,T=new WeakMap,A=new WeakMap,P=new WeakMap,L=new WeakMap,j=new WeakMap,W=new WeakMap,F=new WeakMap,N=new WeakMap,M=new WeakMap,D=new WeakMap,Z=new WeakMap,z=new WeakMap,V=new WeakMap,H=new WeakMap,X=new WeakMap,B=new WeakMap,$=new WeakMap,U=new WeakMap,Y=new WeakMap,G=new WeakMap,K=new WeakSet,J=new WeakMap,q=new WeakMap,Q=new WeakMap,tt=new WeakMap,te=new WeakSet,ti=new WeakMap,tn=new WeakMap,tr=new WeakMap,ts=new WeakSet,to=new WeakSet,ta=new WeakSet,tl=new WeakSet,th=new WeakSet,tu=new WeakSet,tc=new WeakSet,td=new WeakSet;let tf=Symbol.iterator;class tp{static unsafeExposeInternals(t){return{starts:(0,r._)(t,B),ttls:(0,r._)(t,$),sizes:(0,r._)(t,X),keyMap:(0,r._)(t,W),keyList:(0,r._)(t,F),valList:(0,r._)(t,N),next:(0,r._)(t,M),prev:(0,r._)(t,D),get head(){return(0,r._)(t,Z)},get tail(){return(0,r._)(t,z)},free:(0,r._)(t,V),isBackgroundFetch:e=>(0,l._)(t,tu,tw).call(t,e),backgroundFetch:(e,i,n,r)=>(0,l._)(t,th,tS).call(t,e,i,n,r),moveToTail:e=>(0,l._)(t,td,tC).call(t,e),indexes:e=>(0,l._)(t,ts,tm).call(t,e),rindexes:e=>(0,l._)(t,to,t_).call(t,e),isStale:e=>(0,r._)(t,tt).call(t,e)}}get max(){return(0,r._)(this,R)}get maxSize(){return(0,r._)(this,I)}get calculatedSize(){return(0,r._)(this,j)}get size(){return(0,r._)(this,L)}get fetchMethod(){return(0,r._)(this,P)}get dispose(){return(0,r._)(this,T)}get disposeAfter(){return(0,r._)(this,A)}getRemainingTTL(t){return(0,r._)(this,W).has(t)?1/0:0}*entries(){for(let t of(0,l._)(this,ts,tm).call(this))void 0!==(0,r._)(this,N)[t]&&void 0!==(0,r._)(this,F)[t]&&!(0,l._)(this,tu,tw).call(this,(0,r._)(this,N)[t])&&(yield[(0,r._)(this,F)[t],(0,r._)(this,N)[t]])}*rentries(){for(let t of(0,l._)(this,to,t_).call(this))void 0!==(0,r._)(this,N)[t]&&void 0!==(0,r._)(this,F)[t]&&!(0,l._)(this,tu,tw).call(this,(0,r._)(this,N)[t])&&(yield[(0,r._)(this,F)[t],(0,r._)(this,N)[t]])}*keys(){for(let t of(0,l._)(this,ts,tm).call(this)){let e=(0,r._)(this,F)[t];void 0!==e&&!(0,l._)(this,tu,tw).call(this,(0,r._)(this,N)[t])&&(yield e)}}*rkeys(){for(let t of(0,l._)(this,to,t_).call(this)){let e=(0,r._)(this,F)[t];void 0!==e&&!(0,l._)(this,tu,tw).call(this,(0,r._)(this,N)[t])&&(yield e)}}*values(){for(let t of(0,l._)(this,ts,tm).call(this))void 0!==(0,r._)(this,N)[t]&&!(0,l._)(this,tu,tw).call(this,(0,r._)(this,N)[t])&&(yield(0,r._)(this,N)[t])}*rvalues(){for(let t of(0,l._)(this,to,t_).call(this))void 0!==(0,r._)(this,N)[t]&&!(0,l._)(this,tu,tw).call(this,(0,r._)(this,N)[t])&&(yield(0,r._)(this,N)[t])}[tf](){return this.entries()}find(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(let i of(0,l._)(this,ts,tm).call(this)){let n=(0,r._)(this,N)[i],s=(0,l._)(this,tu,tw).call(this,n)?n.__staleWhileFetching:n;if(void 0!==s&&t(s,(0,r._)(this,F)[i],this))return this.get((0,r._)(this,F)[i],e)}}forEach(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(let i of(0,l._)(this,ts,tm).call(this)){let n=(0,r._)(this,N)[i],s=(0,l._)(this,tu,tw).call(this,n)?n.__staleWhileFetching:n;void 0!==s&&t.call(e,s,(0,r._)(this,F)[i],this)}}rforEach(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(let i of(0,l._)(this,to,t_).call(this)){let n=(0,r._)(this,N)[i],s=(0,l._)(this,tu,tw).call(this,n)?n.__staleWhileFetching:n;void 0!==s&&t.call(e,s,(0,r._)(this,F)[i],this)}}purgeStale(){let t=!1;for(let e of(0,l._)(this,to,t_).call(this,{allowStale:!0}))(0,r._)(this,tt).call(this,e)&&(this.delete((0,r._)(this,F)[e]),t=!0);return t}dump(){let t=[];for(let e of(0,l._)(this,ts,tm).call(this,{allowStale:!0})){let i=(0,r._)(this,F)[e],n=(0,r._)(this,N)[e],s=(0,l._)(this,tu,tw).call(this,n)?n.__staleWhileFetching:n;if(void 0===s||void 0===i)continue;let o={value:s};if((0,r._)(this,$)&&(0,r._)(this,B)){o.ttl=(0,r._)(this,$)[e];let t=v.now()-(0,r._)(this,B)[e];o.start=Math.floor(Date.now()-t)}(0,r._)(this,X)&&(o.size=(0,r._)(this,X)[e]),t.unshift([i,o])}return t}load(t){for(let[e,i]of(this.clear(),t)){if(i.start){let t=Date.now()-i.start;i.start=v.now()-t}this.set(e,i.value,i)}}set(t,e){var i,n,s,h,u;let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(void 0===e)return this.delete(t),this;let{ttl:d=this.ttl,start:f,noDisposeOnSet:p=this.noDisposeOnSet,sizeCalculation:g=this.sizeCalculation,status:v}=c,{noUpdateTTL:m=this.noUpdateTTL}=c,_=(0,r._)(this,tr).call(this,t,e,c.size||0,g);if(this.maxEntrySize&&_>this.maxEntrySize)return v&&(v.set="miss",v.maxEntrySizeExceeded=!0),this.delete(t),this;let b=0===(0,r._)(this,L)?void 0:(0,r._)(this,W).get(t);if(void 0===b)b=0===(0,r._)(this,L)?(0,r._)(this,z):0!==(0,r._)(this,V).length?(0,r._)(this,V).pop():(0,r._)(this,L)===(0,r._)(this,R)?(0,l._)(this,tl,ty).call(this,!1):(0,r._)(this,L),(0,r._)(this,F)[b]=t,(0,r._)(this,N)[b]=e,(0,r._)(this,W).set(t,b),(0,r._)(this,M)[(0,r._)(this,z)]=b,(0,r._)(this,D)[b]=(0,r._)(this,z),(0,o._)(this,z,b),(0,a._)(this,L).value++,(0,r._)(this,tn).call(this,b,_,v),v&&(v.set="add"),m=!1;else{(0,l._)(this,td,tC).call(this,b);let s=(0,r._)(this,N)[b];if(e!==s){if((0,r._)(this,Y)&&(0,l._)(this,tu,tw).call(this,s)){s.__abortController.abort(Error("replaced"));let{__staleWhileFetching:e}=s;void 0!==e&&!p&&((0,r._)(this,U)&&(null===(i=(0,r._)(this,T))||void 0===i||i.call(this,e,t,"set")),(0,r._)(this,G)&&(null===(h=(0,r._)(this,H))||void 0===h||h.push([e,t,"set"])))}else!p&&((0,r._)(this,U)&&(null===(n=(0,r._)(this,T))||void 0===n||n.call(this,s,t,"set")),(0,r._)(this,G)&&(null===(u=(0,r._)(this,H))||void 0===u||u.push([s,t,"set"])));if((0,r._)(this,ti).call(this,b),(0,r._)(this,tn).call(this,b,_,v),(0,r._)(this,N)[b]=e,v){v.set="replace";let t=s&&(0,l._)(this,tu,tw).call(this,s)?s.__staleWhileFetching:s;void 0!==t&&(v.oldValue=t)}}else v&&(v.set="update")}if(0!==d&&!(0,r._)(this,$)&&(0,l._)(this,K,tg).call(this),(0,r._)(this,$)&&(!m&&(0,r._)(this,Q).call(this,b,d,f),v&&(0,r._)(this,q).call(this,v,b)),!p&&(0,r._)(this,G)&&(0,r._)(this,H)){let t;let e=(0,r._)(this,H);for(;t=null==e?void 0:e.shift();)null===(s=(0,r._)(this,A))||void 0===s||s.call(this,...t)}return this}pop(){var t;try{for(;(0,r._)(this,L);){let t=(0,r._)(this,N)[(0,r._)(this,Z)];if((0,l._)(this,tl,ty).call(this,!0),(0,l._)(this,tu,tw).call(this,t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if((0,r._)(this,G)&&(0,r._)(this,H)){let e;let i=(0,r._)(this,H);for(;e=null==i?void 0:i.shift();)null===(t=(0,r._)(this,A))||void 0===t||t.call(this,...e)}}}has(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=e,s=(0,r._)(this,W).get(t);if(void 0!==s){let t=(0,r._)(this,N)[s];if((0,l._)(this,tu,tw).call(this,t)&&void 0===t.__staleWhileFetching)return!1;if(!(0,r._)(this,tt).call(this,s))return i&&(0,r._)(this,J).call(this,s),n&&(n.has="hit",(0,r._)(this,q).call(this,n,s)),!0;n&&(n.has="stale",(0,r._)(this,q).call(this,n,s))}else n&&(n.has="miss");return!1}peek(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{allowStale:i=this.allowStale}=e,n=(0,r._)(this,W).get(t);if(void 0!==n&&(i||!(0,r._)(this,tt).call(this,n))){let t=(0,r._)(this,N)[n];return(0,l._)(this,tu,tw).call(this,t)?t.__staleWhileFetching:t}}async fetch(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:h=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:g=this.allowStaleOnFetchAbort,context:v,forceRefresh:m=!1,status:_,signal:b}=e;if(!(0,r._)(this,Y))return _&&(_.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:_});let y={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:h,sizeCalculation:u,noUpdateTTL:c,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:g,ignoreFetchAbort:p,status:_,signal:b},S=(0,r._)(this,W).get(t);if(void 0===S){_&&(_.fetch="miss");let e=(0,l._)(this,th,tS).call(this,t,S,y,v);return e.__returned=e}{let e=(0,r._)(this,N)[S];if((0,l._)(this,tu,tw).call(this,e)){let t=i&&void 0!==e.__staleWhileFetching;return _&&(_.fetch="inflight",t&&(_.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}let s=(0,r._)(this,tt).call(this,S);if(!m&&!s)return _&&(_.fetch="hit"),(0,l._)(this,td,tC).call(this,S),n&&(0,r._)(this,J).call(this,S),_&&(0,r._)(this,q).call(this,_,S),e;let o=(0,l._)(this,th,tS).call(this,t,S,y,v),a=void 0!==o.__staleWhileFetching&&i;return _&&(_.fetch=s?"stale":"refresh",a&&s&&(_.returnedStale=!0)),a?o.__staleWhileFetching:o.__returned=o}}get(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=e,a=(0,r._)(this,W).get(t);if(void 0!==a){let e=(0,r._)(this,N)[a],h=(0,l._)(this,tu,tw).call(this,e);if(o&&(0,r._)(this,q).call(this,o,a),(0,r._)(this,tt).call(this,a))return(o&&(o.get="stale"),h)?(o&&i&&void 0!==e.__staleWhileFetching&&(o.returnedStale=!0),i?e.__staleWhileFetching:void 0):(!s&&this.delete(t),o&&i&&(o.returnedStale=!0),i?e:void 0);return(o&&(o.get="hit"),h)?e.__staleWhileFetching:((0,l._)(this,td,tC).call(this,a),n&&(0,r._)(this,J).call(this,a),e)}o&&(o.get="miss")}delete(t){var e,i,n,s;let h=!1;if(0!==(0,r._)(this,L)){let e=(0,r._)(this,W).get(t);if(void 0!==e){if(h=!0,1===(0,r._)(this,L))this.clear();else{(0,r._)(this,ti).call(this,e);let n=(0,r._)(this,N)[e];(0,l._)(this,tu,tw).call(this,n)?n.__abortController.abort(Error("deleted")):((0,r._)(this,U)||(0,r._)(this,G))&&((0,r._)(this,U)&&(null===(i=(0,r._)(this,T))||void 0===i||i.call(this,n,t,"delete")),(0,r._)(this,G)&&(null===(s=(0,r._)(this,H))||void 0===s||s.push([n,t,"delete"]))),(0,r._)(this,W).delete(t),(0,r._)(this,F)[e]=void 0,(0,r._)(this,N)[e]=void 0,e===(0,r._)(this,z)?(0,o._)(this,z,(0,r._)(this,D)[e]):e===(0,r._)(this,Z)?(0,o._)(this,Z,(0,r._)(this,M)[e]):((0,r._)(this,M)[(0,r._)(this,D)[e]]=(0,r._)(this,M)[e],(0,r._)(this,D)[(0,r._)(this,M)[e]]=(0,r._)(this,D)[e]),(0,a._)(this,L).value--,(0,r._)(this,V).push(e)}}}if((0,r._)(this,G)&&(null===(e=(0,r._)(this,H))||void 0===e?void 0:e.length)){let t;let e=(0,r._)(this,H);for(;t=null==e?void 0:e.shift();)null===(n=(0,r._)(this,A))||void 0===n||n.call(this,...t)}return h}clear(){var t,e,i;for(let e of(0,l._)(this,to,t_).call(this,{allowStale:!0})){let n=(0,r._)(this,N)[e];if((0,l._)(this,tu,tw).call(this,n))n.__abortController.abort(Error("deleted"));else{let s=(0,r._)(this,F)[e];(0,r._)(this,U)&&(null===(t=(0,r._)(this,T))||void 0===t||t.call(this,n,s,"delete")),(0,r._)(this,G)&&(null===(i=(0,r._)(this,H))||void 0===i||i.push([n,s,"delete"]))}}if((0,r._)(this,W).clear(),(0,r._)(this,N).fill(void 0),(0,r._)(this,F).fill(void 0),(0,r._)(this,$)&&(0,r._)(this,B)&&((0,r._)(this,$).fill(0),(0,r._)(this,B).fill(0)),(0,r._)(this,X)&&(0,r._)(this,X).fill(0),(0,o._)(this,Z,0),(0,o._)(this,z,0),(0,r._)(this,V).length=0,(0,o._)(this,j,0),(0,o._)(this,L,0),(0,r._)(this,G)&&(0,r._)(this,H)){let t;let i=(0,r._)(this,H);for(;t=null==i?void 0:i.shift();)null===(e=(0,r._)(this,A))||void 0===e||e.call(this,...t)}}constructor(t){(0,h._)(this,K),(0,h._)(this,te),(0,h._)(this,ts),(0,h._)(this,to),(0,h._)(this,ta),(0,h._)(this,tl),(0,h._)(this,th),(0,h._)(this,tu),(0,h._)(this,tc),(0,h._)(this,td),(0,s._)(this,R,{writable:!0,value:void 0}),(0,s._)(this,I,{writable:!0,value:void 0}),(0,s._)(this,T,{writable:!0,value:void 0}),(0,s._)(this,A,{writable:!0,value:void 0}),(0,s._)(this,P,{writable:!0,value:void 0}),(0,d._)(this,"ttl",void 0),(0,d._)(this,"ttlResolution",void 0),(0,d._)(this,"ttlAutopurge",void 0),(0,d._)(this,"updateAgeOnGet",void 0),(0,d._)(this,"updateAgeOnHas",void 0),(0,d._)(this,"allowStale",void 0),(0,d._)(this,"noDisposeOnSet",void 0),(0,d._)(this,"noUpdateTTL",void 0),(0,d._)(this,"maxEntrySize",void 0),(0,d._)(this,"sizeCalculation",void 0),(0,d._)(this,"noDeleteOnFetchRejection",void 0),(0,d._)(this,"noDeleteOnStaleGet",void 0),(0,d._)(this,"allowStaleOnFetchAbort",void 0),(0,d._)(this,"allowStaleOnFetchRejection",void 0),(0,d._)(this,"ignoreFetchAbort",void 0),(0,s._)(this,L,{writable:!0,value:void 0}),(0,s._)(this,j,{writable:!0,value:void 0}),(0,s._)(this,W,{writable:!0,value:void 0}),(0,s._)(this,F,{writable:!0,value:void 0}),(0,s._)(this,N,{writable:!0,value:void 0}),(0,s._)(this,M,{writable:!0,value:void 0}),(0,s._)(this,D,{writable:!0,value:void 0}),(0,s._)(this,Z,{writable:!0,value:void 0}),(0,s._)(this,z,{writable:!0,value:void 0}),(0,s._)(this,V,{writable:!0,value:void 0}),(0,s._)(this,H,{writable:!0,value:void 0}),(0,s._)(this,X,{writable:!0,value:void 0}),(0,s._)(this,B,{writable:!0,value:void 0}),(0,s._)(this,$,{writable:!0,value:void 0}),(0,s._)(this,U,{writable:!0,value:void 0}),(0,s._)(this,Y,{writable:!0,value:void 0}),(0,s._)(this,G,{writable:!0,value:void 0}),(0,s._)(this,J,{writable:!0,value:()=>{}}),(0,s._)(this,q,{writable:!0,value:()=>{}}),(0,s._)(this,Q,{writable:!0,value:()=>{}}),(0,s._)(this,tt,{writable:!0,value:()=>!1}),(0,s._)(this,ti,{writable:!0,value:t=>{}}),(0,s._)(this,tn,{writable:!0,value:(t,e,i)=>{}}),(0,s._)(this,tr,{writable:!0,value:(t,e,i,n)=>{if(i||n)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0}});let{max:e=0,ttl:i,ttlResolution:n=1,ttlAutopurge:a,updateAgeOnGet:u,updateAgeOnHas:c,allowStale:f,dispose:p,disposeAfter:g,noDisposeOnSet:v,noUpdateTTL:_,maxSize:y=0,maxEntrySize:S=0,sizeCalculation:k,fetchMethod:O,noDeleteOnFetchRejection:tf,noDeleteOnStaleGet:tm,allowStaleOnFetchRejection:t_,allowStaleOnFetchAbort:tb,ignoreFetchAbort:ty}=t;if(0!==e&&!x(e))throw TypeError("max option must be a nonnegative integer");let tS=e?C(e):Array;if(!tS)throw Error("invalid max value: "+e);if((0,o._)(this,R,e),(0,o._)(this,I,y),this.maxEntrySize=S||(0,r._)(this,I),this.sizeCalculation=k,this.sizeCalculation){if(!(0,r._)(this,I)&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw TypeError("sizeCalculation set to non-function")}if(void 0!==O&&"function"!=typeof O)throw TypeError("fetchMethod must be a function if specified");if((0,o._)(this,P,O),(0,o._)(this,Y,!!O),(0,o._)(this,W,new Map),(0,o._)(this,F,Array(e).fill(void 0)),(0,o._)(this,N,Array(e).fill(void 0)),(0,o._)(this,M,new tS(e)),(0,o._)(this,D,new tS(e)),(0,o._)(this,Z,0),(0,o._)(this,z,0),(0,o._)(this,V,E.create(e)),(0,o._)(this,L,0),(0,o._)(this,j,0),"function"==typeof p&&(0,o._)(this,T,p),"function"==typeof g?((0,o._)(this,A,g),(0,o._)(this,H,[])):((0,o._)(this,A,void 0),(0,o._)(this,H,void 0)),(0,o._)(this,U,!!(0,r._)(this,T)),(0,o._)(this,G,!!(0,r._)(this,A)),this.noDisposeOnSet=!!v,this.noUpdateTTL=!!_,this.noDeleteOnFetchRejection=!!tf,this.allowStaleOnFetchRejection=!!t_,this.allowStaleOnFetchAbort=!!tb,this.ignoreFetchAbort=!!ty,0!==this.maxEntrySize){if(0!==(0,r._)(this,I)&&!x((0,r._)(this,I)))throw TypeError("maxSize must be a positive integer if specified");if(!x(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");(0,l._)(this,te,tv).call(this)}if(this.allowStale=!!f,this.noDeleteOnStaleGet=!!tm,this.updateAgeOnGet=!!u,this.updateAgeOnHas=!!c,this.ttlResolution=x(n)||0===n?n:1,this.ttlAutopurge=!!a,this.ttl=i||0,this.ttl){if(!x(this.ttl))throw TypeError("ttl must be a positive integer if specified");(0,l._)(this,K,tg).call(this)}if(0===(0,r._)(this,R)&&0===this.ttl&&0===(0,r._)(this,I))throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!(0,r._)(this,R)&&!(0,r._)(this,I)){let t="LRU_CACHE_UNBOUNDED";if(w(t)){m.add(t);b("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,tp)}}}}function tg(){var t=this;let e=new k((0,r._)(this,R)),i=new k((0,r._)(this,R));(0,o._)(this,$,e),(0,o._)(this,B,i),(0,o._)(this,Q,function(n,s){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.now();if(i[n]=0!==s?o:0,e[n]=s,0!==s&&t.ttlAutopurge){let e=setTimeout(()=>{(0,r._)(t,tt).call(t,n)&&t.delete((0,r._)(t,F)[n])},s+1);e.unref&&e.unref()}}),(0,o._)(this,J,t=>{i[t]=0!==e[t]?v.now():0}),(0,o._)(this,q,(t,r)=>{if(e[r]){let o=e[r],a=i[r];t.ttl=o,t.start=a,t.now=n||s();let l=t.now-a;t.remainingTTL=o-l}});let n=0,s=()=>{let t=v.now();if(this.ttlResolution>0){n=t;let e=setTimeout(()=>n=0,this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=t=>{let o=(0,r._)(this,W).get(t);if(void 0===o)return 0;let a=e[o],l=i[o];return 0===a||0===l?1/0:a-((n||s())-l)},(0,o._)(this,tt,t=>0!==e[t]&&0!==i[t]&&(n||s())-i[t]>e[t])}function tv(){let t=new k((0,r._)(this,R));(0,o._)(this,j,0),(0,o._)(this,X,t),(0,o._)(this,ti,e=>{(0,o._)(this,j,(0,r._)(this,j)-t[e]),t[e]=0}),(0,o._)(this,tr,(t,e,i,n)=>{if((0,l._)(this,tu,tw).call(this,e))return 0;if(!x(i)){if(n){if("function"!=typeof n)throw TypeError("sizeCalculation must be a function");if(!x(i=n(e,t)))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.")}return i}),(0,o._)(this,tn,(e,i,n)=>{if(t[e]=i,(0,r._)(this,I)){let i=(0,r._)(this,I)-t[e];for(;(0,r._)(this,j)>i;)(0,l._)(this,tl,ty).call(this,!0)}(0,o._)(this,j,(0,r._)(this,j)+t[e]),n&&(n.entrySize=i,n.totalCalculatedSize=(0,r._)(this,j))})}function*tm(){let{allowStale:t=this.allowStale}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,r._)(this,L))for(let e=(0,r._)(this,z);(0,l._)(this,ta,tb).call(this,e);){;if((t||!(0,r._)(this,tt).call(this,e))&&(yield e),e===(0,r._)(this,Z))break;e=(0,r._)(this,D)[e]}}function*t_(){let{allowStale:t=this.allowStale}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,r._)(this,L))for(let e=(0,r._)(this,Z);(0,l._)(this,ta,tb).call(this,e);){;if((t||!(0,r._)(this,tt).call(this,e))&&(yield e),e===(0,r._)(this,z))break;e=(0,r._)(this,M)[e]}}function tb(t){return void 0!==t&&(0,r._)(this,W).get((0,r._)(this,F)[t])===t}function ty(t){var e,i;let n=(0,r._)(this,Z),s=(0,r._)(this,F)[n],h=(0,r._)(this,N)[n];return(0,r._)(this,Y)&&(0,l._)(this,tu,tw).call(this,h)?h.__abortController.abort(Error("evicted")):((0,r._)(this,U)||(0,r._)(this,G))&&((0,r._)(this,U)&&(null===(e=(0,r._)(this,T))||void 0===e||e.call(this,h,s,"evict")),(0,r._)(this,G)&&(null===(i=(0,r._)(this,H))||void 0===i||i.push([h,s,"evict"]))),(0,r._)(this,ti).call(this,n),t&&((0,r._)(this,F)[n]=void 0,(0,r._)(this,N)[n]=void 0,(0,r._)(this,V).push(n)),1===(0,r._)(this,L)?((0,o._)(this,Z,(0,o._)(this,z,0)),(0,r._)(this,V).length=0):(0,o._)(this,Z,(0,r._)(this,M)[n]),(0,r._)(this,W).delete(s),(0,a._)(this,L).value--,n}function tS(t,e,i,n){var s,o,a,h=this;let u=void 0===e?void 0:(0,r._)(this,N)[e];if((0,l._)(this,tu,tw).call(this,u))return u;let c=new y,{signal:d}=i;null==d||d.addEventListener("abort",()=>c.abort(d.reason),{signal:c.signal});let g={signal:c.signal,options:i,context:n},v=function(n){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{aborted:o}=c.signal,a=i.ignoreFetchAbort&&void 0!==n;return(i.status&&(o&&!s?(i.status.fetchAborted=!0,i.status.fetchError=c.signal.reason,a&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),!o||a||s)?((0,r._)(h,N)[e]===_&&(void 0===n?_.__staleWhileFetching?(0,r._)(h,N)[e]=_.__staleWhileFetching:h.delete(t):(i.status&&(i.status.fetchUpdated=!0),h.set(t,n,g.options))),n):m(c.signal.reason)},m=n=>{let{aborted:s}=c.signal,o=s&&i.allowStaleOnFetchAbort,a=o||i.allowStaleOnFetchRejection,l=a||i.noDeleteOnFetchRejection;if((0,r._)(this,N)[e]===_&&(l&&void 0!==_.__staleWhileFetching?!o&&((0,r._)(this,N)[e]=_.__staleWhileFetching):this.delete(t)),a)return i.status&&void 0!==_.__staleWhileFetching&&(i.status.returnedStale=!0),_.__staleWhileFetching;if(_.__returned===_)throw n};i.status&&(i.status.fetchDispatched=!0);let _=new Promise((e,n)=>{let a=null===(s=(0,r._)(o=this,P))||void 0===s?void 0:s.call(o,t,u,g);a&&a instanceof Promise&&a.then(t=>e(void 0===t?void 0:t),n),c.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>v(t,!0)))})}).then(v,t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),m(t))),b=Object.assign(_,{__abortController:c,__staleWhileFetching:u,__returned:void 0});return void 0===e?(this.set(t,b,(0,p._)((0,f._)({},g.options),{status:void 0})),e=(0,r._)(this,W).get(t)):(0,r._)(this,N)[e]=b,b}function tw(t){return!!(0,r._)(this,Y)&&!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof y}function tx(t,e){(0,r._)(this,D)[e]=t,(0,r._)(this,M)[t]=e}function tC(t){t!==(0,r._)(this,z)&&(t===(0,r._)(this,Z)?(0,o._)(this,Z,(0,r._)(this,M)[t]):(0,l._)(this,tc,tx).call(this,(0,r._)(this,D)[t],(0,r._)(this,M)[t]),(0,l._)(this,tc,tx).call(this,(0,r._)(this,z),t),(0,o._)(this,z,t))}}}]); |