diff options
author | 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> | 2024-03-29 23:22:55 +0900 |
---|---|---|
committer | 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> | 2024-03-29 23:22:55 +0900 |
commit | 683c8a4235fdbd13ecbc5c0cd4f691f2e421c78d (patch) | |
tree | fdbc38c390f294e5656f37fee61d0eca25e7b7e4 /build/assets/js/9794.aac285ea.js | |
parent | a109f5a0ed27bfaf891380f6aae1fb108acdc912 (diff) |
build
Diffstat (limited to 'build/assets/js/9794.aac285ea.js')
-rw-r--r-- | build/assets/js/9794.aac285ea.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build/assets/js/9794.aac285ea.js b/build/assets/js/9794.aac285ea.js new file mode 100644 index 00000000..56d56308 --- /dev/null +++ b/build/assets/js/9794.aac285ea.js @@ -0,0 +1,2 @@ +/*! For license information please see 9794.aac285ea.js.LICENSE.txt */ +(self.webpackChunkdocuments=self.webpackChunkdocuments||[]).push([[9794],{87394:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=e<0?"-":"",n=Math.abs(e).toString();for(;n.length<t;)n="0"+n;return r+n},e.exports=t.default},97561:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(82512)).default;t.default=a,e.exports=t.default},98729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultOptions=function(){return r},t.setDefaultOptions=function(e){r=e};var r={}},52084:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(21603)),i=n(r(91354)),o=n(r(81370)),s=n(r(60623)),u=n(r(66226)),l=n(r(87394)),d=n(r(62699)),c="midnight",f="noon",h="morning",m="afternoon",v="evening",g="night";function p(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),i=n%60;if(0===i)return r+String(a);var o=t||"";return r+String(a)+o+(0,l.default)(i,2)}function w(e,t){return e%60==0?(e>0?"-":"+")+(0,l.default)(Math.abs(e)/60,2):y(e,t)}function y(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e);return n+(0,l.default)(Math.floor(a/60),2)+r+(0,l.default)(a%60,2)}var x={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return d.default.y(e,t)},Y:function(e,t,r,n){var a=(0,u.default)(e,n),i=a>0?a:1-a;if("YY"===t){var o=i%100;return(0,l.default)(o,2)}return"Yo"===t?r.ordinalNumber(i,{unit:"year"}):(0,l.default)(i,t.length)},R:function(e,t){var r=(0,o.default)(e);return(0,l.default)(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return(0,l.default)(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return(0,l.default)(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return(0,l.default)(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return d.default.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return(0,l.default)(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var a=(0,s.default)(e,n);return"wo"===t?r.ordinalNumber(a,{unit:"week"}):(0,l.default)(a,t.length)},I:function(e,t,r){var n=(0,i.default)(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):(0,l.default)(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):d.default.d(e,t)},D:function(e,t,r){var n=(0,a.default)(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):(0,l.default)(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var a=e.getUTCDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return(0,l.default)(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var a=e.getUTCDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return(0,l.default)(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),a=0===n?7:n;switch(t){case"i":return String(a);case"ii":return(0,l.default)(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,a=e.getUTCHours();switch(n=12===a?f:0===a?c:a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,a=e.getUTCHours();switch(n=a>=17?v:a>=12?m:a>=4?h:g,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return d.default.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):d.default.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):(0,l.default)(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):(0,l.default)(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):d.default.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):d.default.s(e,t)},S:function(e,t){return d.default.S(e,t)},X:function(e,t,r,n){var a=(n._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return w(a);case"XXXX":case"XX":return y(a);default:return y(a,":")}},x:function(e,t,r,n){var a=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return w(a);case"xxxx":case"xx":return y(a);default:return y(a,":")}},O:function(e,t,r,n){var a=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+p(a,":");default:return"GMT"+y(a,":")}},z:function(e,t,r,n){var a=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+p(a,":");default:return"GMT"+y(a,":")}},t:function(e,t,r,n){var a=n._originalDate||e,i=Math.floor(a.getTime()/1e3);return(0,l.default)(i,t.length)},T:function(e,t,r,n){var a=(n._originalDate||e).getTime();return(0,l.default)(a,t.length)}};t.default=x,e.exports=t.default},62699:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(87394)),i={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return(0,a.default)("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):(0,a.default)(r+1,2)},d:function(e,t){return(0,a.default)(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return(0,a.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,a.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,a.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,a.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,r-3));return(0,a.default)(i,t.length)}};t.default=i,e.exports=t.default},95209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},n=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},a={p:n,P:function(e,t){var a,i=e.match(/(P+)(p+)?/)||[],o=i[1],s=i[2];if(!s)return r(e,t);switch(o){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",r(o,t)).replace("{{time}}",n(s,t))}};t.default=a,e.exports=t.default},93561:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default},21603:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,a.default)(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),s=r-n;return Math.floor(s/o)+1};var a=n(r(71171)),i=n(r(68734)),o=864e5;e.exports=t.default},81370:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,a.default)(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var s=(0,o.default)(n),u=new Date(0);u.setUTCFullYear(r,0,4),u.setUTCHours(0,0,0,0);var l=(0,o.default)(u);return t.getTime()>=s.getTime()?r+1:t.getTime()>=l.getTime()?r:r-1};var a=n(r(71171)),i=n(r(68734)),o=n(r(80079));e.exports=t.default},91354:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,s.default)(1,arguments);var t=(0,a.default)(e),r=(0,i.default)(t).getTime()-(0,o.default)(t).getTime();return Math.round(r/u)+1};var a=n(r(71171)),i=n(r(80079)),o=n(r(94275)),s=n(r(68734)),u=6048e5;e.exports=t.default},66226:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n,l,d,c,f,h,m;(0,i.default)(1,arguments);var v=(0,a.default)(e),g=v.getUTCFullYear(),p=(0,u.getDefaultOptions)(),w=(0,s.default)(null!==(r=null!==(n=null!==(l=null!==(d=null==t?void 0:t.firstWeekContainsDate)&&void 0!==d?d:null==t||null===(c=t.locale)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:p.firstWeekContainsDate)&&void 0!==n?n:null===(h=p.locale)||void 0===h||null===(m=h.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==r?r:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(g+1,0,w),y.setUTCHours(0,0,0,0);var x=(0,o.default)(y,t),b=new Date(0);b.setUTCFullYear(g,0,w),b.setUTCHours(0,0,0,0);var _=(0,o.default)(b,t);return v.getTime()>=x.getTime()?g+1:v.getTime()>=_.getTime()?g:g-1};var a=n(r(71171)),i=n(r(68734)),o=n(r(69209)),s=n(r(82084)),u=r(98729);e.exports=t.default},60623:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,s.default)(1,arguments);var r=(0,a.default)(e),n=(0,i.default)(r,t).getTime()-(0,o.default)(r,t).getTime();return Math.round(n/u)+1};var a=n(r(71171)),i=n(r(69209)),o=n(r(34118)),s=n(r(68734)),u=6048e5;e.exports=t.default},56736:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectedDayOfYearToken=function(e){return-1!==r.indexOf(e)},t.isProtectedWeekYearToken=function(e){return-1!==n.indexOf(e)},t.throwProtectedError=function(e,t,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))};var r=["D","DD"],n=["YY","YYYY"]},68734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")},e.exports=t.default},94275:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,a.default)(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),(0,i.default)(r)};var a=n(r(81370)),i=n(r(80079)),o=n(r(68734));e.exports=t.default},80079:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,a.default)(e),r=t.getUTCDay(),n=(r<1?7:0)+r-1;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t};var a=n(r(71171)),i=n(r(68734));e.exports=t.default},34118:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n,l,d,c,f,h,m;(0,i.default)(1,arguments);var v=(0,u.getDefaultOptions)(),g=(0,s.default)(null!==(r=null!==(n=null!==(l=null!==(d=null==t?void 0:t.firstWeekContainsDate)&&void 0!==d?d:null==t||null===(c=t.locale)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:v.firstWeekContainsDate)&&void 0!==n?n:null===(h=v.locale)||void 0===h||null===(m=h.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==r?r:1),p=(0,a.default)(e,t),w=new Date(0);return w.setUTCFullYear(p,0,g),w.setUTCHours(0,0,0,0),(0,o.default)(w,t)};var a=n(r(66226)),i=n(r(68734)),o=n(r(69209)),s=n(r(82084)),u=r(98729);e.exports=t.default},69209:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n,u,l,d,c,f,h;(0,i.default)(1,arguments);var m=(0,s.getDefaultOptions)(),v=(0,o.default)(null!==(r=null!==(n=null!==(u=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(d=t.locale)||void 0===d||null===(c=d.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==u?u:m.weekStartsOn)&&void 0!==n?n:null===(f=m.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==r?r:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,a.default)(e),p=g.getUTCDay(),w=(p<v?7:0)+p-v;return g.setUTCDate(g.getUTCDate()-w),g.setUTCHours(0,0,0,0),g};var a=n(r(71171)),i=n(r(68734)),o=n(r(82084)),s=r(98729);e.exports=t.default},82084:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);if(isNaN(t))return t;return t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default},5065:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var r=(0,i.default)(e).getTime(),n=(0,a.default)(t);return new Date(r+n)};var a=n(r(82084)),i=n(r(71171)),o=n(r(68734));e.exports=t.default},15616:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n,x,b,_,j,T,M,k,C,O,S,P,N,D,E,U,L,W;(0,f.default)(2,arguments);var R=String(t),q=(0,h.getDefaultOptions)(),Y=null!==(n=null!==(x=null==r?void 0:r.locale)&&void 0!==x?x:q.locale)&&void 0!==n?n:m.default,z=(0,c.default)(null!==(b=null!==(_=null!==(j=null!==(T=null==r?void 0:r.firstWeekContainsDate)&&void 0!==T?T:null==r||null===(M=r.locale)||void 0===M||null===(k=M.options)||void 0===k?void 0:k.firstWeekContainsDate)&&void 0!==j?j:q.firstWeekContainsDate)&&void 0!==_?_:null===(C=q.locale)||void 0===C||null===(O=C.options)||void 0===O?void 0:O.firstWeekContainsDate)&&void 0!==b?b:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=(0,c.default)(null!==(S=null!==(P=null!==(N=null!==(D=null==r?void 0:r.weekStartsOn)&&void 0!==D?D:null==r||null===(E=r.locale)||void 0===E||null===(U=E.options)||void 0===U?void 0:U.weekStartsOn)&&void 0!==N?N:q.weekStartsOn)&&void 0!==P?P:null===(L=q.locale)||void 0===L||null===(W=L.options)||void 0===W?void 0:W.weekStartsOn)&&void 0!==S?S:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Y.localize)throw new RangeError("locale must contain localize property");if(!Y.formatLong)throw new RangeError("locale must contain formatLong property");var I=(0,o.default)(e);if(!(0,a.default)(I))throw new RangeError("Invalid time value");var H=(0,l.default)(I),B=(0,i.default)(I,H),V={firstWeekContainsDate:z,weekStartsOn:F,locale:Y,_originalDate:I};return R.match(g).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,u.default[t])(e,Y.formatLong):e})).join("").match(v).map((function(n){if("''"===n)return"'";var a=n[0];if("'"===a)return function(e){var t=e.match(p);if(!t)return e;return t[1].replace(w,"'")}(n);var i=s.default[a];if(i)return null!=r&&r.useAdditionalWeekYearTokens||!(0,d.isProtectedWeekYearToken)(n)||(0,d.throwProtectedError)(n,t,String(e)),null!=r&&r.useAdditionalDayOfYearTokens||!(0,d.isProtectedDayOfYearToken)(n)||(0,d.throwProtectedError)(n,t,String(e)),i(B,n,Y.localize,V);if(a.match(y))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return n})).join("")};var a=n(r(39989)),i=n(r(33239)),o=n(r(71171)),s=n(r(52084)),u=n(r(95209)),l=n(r(93561)),d=r(56736),c=n(r(82084)),f=n(r(68734)),h=r(98729),m=n(r(97561)),v=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,p=/^'([^]*?)'?$/,w=/''/g,y=/[a-zA-Z]/;e.exports=t.default},62382:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(1,arguments),e instanceof Date||"object"===(0,a.default)(e)&&"[object Date]"===Object.prototype.toString.call(e)};var a=n(r(18698)),i=n(r(68734));e.exports=t.default},39989:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(1,arguments),!(0,a.default)(e)&&"number"!=typeof e)return!1;var t=(0,i.default)(e);return!isNaN(Number(t))};var a=n(r(62382)),i=n(r(71171)),o=n(r(68734));e.exports=t.default},20289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}},e.exports=t.default},16245:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,i=null!=r&&r.width?String(r.width):a;n=e.formattingValues[i]||e.formattingValues[a]}else{var o=e.defaultWidth,s=null!=r&&r.width?String(r.width):e.defaultWidth;n=e.values[s]||e.values[o]}return n[e.argumentCallback?e.argumentCallback(t):t]}},e.exports=t.default},43421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o,s=i[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r;return}(u,(function(e){return e.test(s)})):function(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r;return}(u,(function(e){return e.test(s)}));return o=e.valueCallback?e.valueCallback(l):l,{value:o=r.valueCallback?r.valueCallback(o):o,rest:t.slice(s.length)}}},e.exports=t.default},78926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:o=r.valueCallback?r.valueCallback(o):o,rest:t.slice(a.length)}}},e.exports=t.default},71924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={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"}},n=function(e,t,n){var a,i=r[e];return a="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};t.default=n,e.exports=t.default},95062:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(20289)),i={date:(0,a.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,a.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.default=i,e.exports=t.default},5102:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n=function(e,t,n,a){return r[e]};t.default=n,e.exports=t.default},87839:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(16245)),i={ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:(0,a.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,a.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,a.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,a.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,a.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};t.default=i,e.exports=t.default},9796:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(43421)),i={ordinalNumber:(0,n(r(78926)).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,a.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,a.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,a.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,a.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,a.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};t.default=i,e.exports=t.default},82512:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(71924)),i=n(r(95062)),o=n(r(5102)),s=n(r(87839)),u=n(r(9796)),l={code:"en-US",formatDistance:a.default,formatLong:i.default,formatRelative:o.default,localize:s.default,match:u.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=l,e.exports=t.default},33239:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var r=(0,o.default)(t);return(0,a.default)(e,-r)};var a=n(r(5065)),i=n(r(68734)),o=n(r(82084));e.exports=t.default},71171:(e,t,r)=>{"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,a.default)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))};var a=n(r(18698)),i=n(r(68734));e.exports=t.default},53250:(e,t,r)=>{"use strict";var n=r(67294);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,o=n.useEffect,s=n.useLayoutEffect,u=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!a(e,r)}catch(n){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),a=n[0].inst,d=n[1];return s((function(){a.value=r,a.getSnapshot=t,l(a)&&d({inst:a})}),[e,r,t]),o((function(){return l(a)&&d({inst:a}),e((function(){l(a)&&d({inst:a})}))}),[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:d},61688:(e,t,r)=>{"use strict";e.exports=r(53250)},64836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},18698:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},11151:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s,a:()=>o});var n=r(67294);const a={},i=n.createContext(a);function o(e){const t=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),n.createElement(i.Provider,{value:t},e.children)}},77289:(e,t,r)=>{"use strict";r.d(t,{t:()=>ar});var n=r(85893);function a(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=a(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const i=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=a(e))&&(n&&(n+=" "),n+=t);return n},o="root_D3qd",s="article_kRZ8",u=({className:e,children:t})=>(0,n.jsx)("div",{className:i("react-tweet-theme",o,e),children:(0,n.jsx)("article",{className:s,children:t})}),l="skeleton_FMR8",d=({style:e})=>(0,n.jsx)("span",{className:l,style:e}),c="root_Y6tr",f=()=>(0,n.jsxs)(u,{className:c,children:[(0,n.jsx)(d,{style:{height:"3rem",marginBottom:"0.75rem"}}),(0,n.jsx)(d,{style:{height:"6rem",margin:"0.5rem 0"}}),(0,n.jsx)("div",{style:{borderTop:"var(--tweet-border)",margin:"0.5rem 0"}}),(0,n.jsx)(d,{style:{height:"2rem"}}),(0,n.jsx)(d,{style:{height:"2rem",borderRadius:"9999px",marginTop:"0.5rem"}})]}),h="root_tqpQ",m=e=>(0,n.jsx)(u,{children:(0,n.jsxs)("div",{className:h,children:[(0,n.jsx)("h3",{children:"Tweet not found"}),(0,n.jsx)("p",{children:"The embedded tweet could not be found\u2026"})]})}),v=e=>(0,n.jsx)("img",{...e}),g="header_bjW0",p="avatar_OLqR",w="avatarOverflow_eJmC",y="avatarSquare_iXbn",x="avatarShadow_wzyg",b="author_QZ2S",_="authorLink_cyQp",j="authorVerified_rVnZ",T="authorLinkText_teDJ",M="authorMeta_qxsC",k="authorFollow_fxrM",C="username_qz1H",O="follow_seIc",S="separator_rJ9Q",P="brand_iwzK",N="twitterIcon__mAg",D="verified_XaUV",E=()=>(0,n.jsx)("svg",{viewBox:"0 0 24 24","aria-label":"Verified account",role:"img",className:D,children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{d:"M22.25 12c0-1.43-.88-2.67-2.19-3.34.46-1.39.2-2.9-.81-3.91s-2.52-1.27-3.91-.81c-.66-1.31-1.91-2.19-3.34-2.19s-2.67.88-3.33 2.19c-1.4-.46-2.91-.2-3.92.81s-1.26 2.52-.8 3.91c-1.31.67-2.2 1.91-2.2 3.34s.89 2.67 2.2 3.34c-.46 1.39-.21 2.9.8 3.91s2.52 1.26 3.91.81c.67 1.31 1.91 2.19 3.34 2.19s2.68-.88 3.34-2.19c1.39.45 2.9.2 3.91-.81s1.27-2.52.81-3.91c1.31-.67 2.19-1.91 2.19-3.34zm-11.71 4.2L6.8 12.46l1.41-1.42 2.26 2.26 4.8-5.23 1.47 1.36-6.2 6.77z"})})}),U=()=>(0,n.jsx)("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:D,children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M12.05 2.056c-.568-.608-1.532-.608-2.1 0l-1.393 1.49c-.284.303-.685.47-1.1.455L5.42 3.932c-.832-.028-1.514.654-1.486 1.486l.069 2.039c.014.415-.152.816-.456 1.1l-1.49 1.392c-.608.568-.608 1.533 0 2.101l1.49 1.393c.304.284.47.684.456 1.1l-.07 2.038c-.027.832.655 1.514 1.487 1.486l2.038-.069c.415-.014.816.152 1.1.455l1.392 1.49c.569.609 1.533.609 2.102 0l1.393-1.49c.283-.303.684-.47 1.099-.455l2.038.069c.832.028 1.515-.654 1.486-1.486L18 14.542c-.015-.415.152-.815.455-1.099l1.49-1.393c.608-.568.608-1.533 0-2.101l-1.49-1.393c-.303-.283-.47-.684-.455-1.1l.068-2.038c.029-.832-.654-1.514-1.486-1.486l-2.038.07c-.415.013-.816-.153-1.1-.456zm-5.817 9.367l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fillRule:"evenodd"})})}),L=()=>(0,n.jsx)("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:D,children:(0,n.jsxs)("g",{children:[(0,n.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-a",x1:"4.411",x2:"18.083",y1:"2.495",y2:"21.508",children:[(0,n.jsx)("stop",{offset:"0",stopColor:"#f4e72a"}),(0,n.jsx)("stop",{offset:".539",stopColor:"#cd8105"}),(0,n.jsx)("stop",{offset:".68",stopColor:"#cb7b00"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#f4ec26"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#f4e72a"})]}),(0,n.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-b",x1:"5.355",x2:"16.361",y1:"3.395",y2:"19.133",children:[(0,n.jsx)("stop",{offset:"0",stopColor:"#f9e87f"}),(0,n.jsx)("stop",{offset:".406",stopColor:"#e2b719"}),(0,n.jsx)("stop",{offset:".989",stopColor:"#e2b719"})]}),(0,n.jsxs)("g",{clipRule:"evenodd",fillRule:"evenodd",children:[(0,n.jsx)("path",{d:"M13.324 3.848L11 1.6 8.676 3.848l-3.201-.453-.559 3.184L2.06 8.095 3.48 11l-1.42 2.904 2.856 1.516.559 3.184 3.201-.452L11 20.4l2.324-2.248 3.201.452.559-3.184 2.856-1.516L18.52 11l1.42-2.905-2.856-1.516-.559-3.184zm-7.09 7.575l3.428 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-a)"}),(0,n.jsx)("path",{d:"M13.101 4.533L11 2.5 8.899 4.533l-2.895-.41-.505 2.88-2.583 1.37L4.2 11l-1.284 2.627 2.583 1.37.505 2.88 2.895-.41L11 19.5l2.101-2.033 2.895.41.505-2.88 2.583-1.37L17.8 11l1.284-2.627-2.583-1.37-.505-2.88zm-6.868 6.89l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-b)"}),(0,n.jsx)("path",{d:"M6.233 11.423l3.429 3.428 5.65-6.17.038-.033-.005 1.398-5.683 6.206-3.429-3.429-.003-1.405.005.003z",fill:"#d18800"})]})]})}),W="verifiedOld_dr_7",R="verifiedBlue_d5Yb",q="verifiedGovernment_REEv",Y=({user:e,className:t})=>{const r=e.verified||e.is_blue_verified||e.verified_type;let a=(0,n.jsx)(E,{}),o=R;if(r)switch(e.is_blue_verified||(o=W),e.verified_type){case"Government":a=(0,n.jsx)(U,{}),o=q;break;case"Business":a=(0,n.jsx)(L,{}),o=null}return r?(0,n.jsx)("div",{className:i(t,o),children:a}):null},z=({tweet:e,components:t})=>{var r;const a=null!=(r=null==t?void 0:t.AvatarImg)?r:v,{user:o}=e;return(0,n.jsxs)("div",{className:g,children:[(0,n.jsxs)("a",{href:e.url,className:p,target:"_blank",rel:"noopener noreferrer",children:[(0,n.jsx)("div",{className:i(w,"Square"===o.profile_image_shape&&y),children:(0,n.jsx)(a,{src:o.profile_image_url_https,alt:o.name,width:48,height:48})}),(0,n.jsx)("div",{className:w,children:(0,n.jsx)("div",{className:x})})]}),(0,n.jsxs)("div",{className:b,children:[(0,n.jsxs)("a",{href:e.url,className:_,target:"_blank",rel:"noopener noreferrer",children:[(0,n.jsx)("div",{className:T,children:(0,n.jsx)("span",{title:o.name,children:o.name})}),(0,n.jsx)(Y,{user:o,className:j})]}),(0,n.jsxs)("div",{className:M,children:[(0,n.jsx)("a",{href:e.url,className:C,target:"_blank",rel:"noopener noreferrer",children:(0,n.jsxs)("span",{title:`@${o.screen_name}`,children:["@",o.screen_name]})}),(0,n.jsxs)("div",{className:k,children:[(0,n.jsx)("span",{className:S,children:"\xb7"}),(0,n.jsx)("a",{href:o.follow_url,className:O,target:"_blank",rel:"noopener noreferrer",children:"Follow"})]})]})]}),(0,n.jsx)("a",{href:e.url,className:P,target:"_blank",rel:"noopener noreferrer","aria-label":"View on Twitter",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:N,children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})})})]})},F="root_iMnh",I=({tweet:e})=>(0,n.jsxs)("a",{href:e.in_reply_to_url,className:F,target:"_blank",rel:"noopener noreferrer",children:["Replying to @",e.in_reply_to_screen_name]}),H="root_zgtB",B=({href:e,children:t})=>(0,n.jsx)("a",{href:e,className:H,target:"_blank",rel:"noopener noreferrer",children:t}),V="root_z3Ec",A=({tweet:e})=>(0,n.jsx)("p",{className:V,children:e.entities.map(((e,t)=>{switch(e.type){case"hashtag":case"mention":case"url":case"symbol":return(0,n.jsx)(B,{href:e.href,children:e.text},t);case"media":return;default:return(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:e.text}},t)}}))});var $=r(67294);const X=e=>`https://twitter.com/${e.user.screen_name}/status/${e.id_str}`,G=e=>`https://twitter.com/${"string"==typeof e?e:e.user.screen_name}`,Q=e=>`https://twitter.com/intent/like?tweet_id=${e.id_str}`,J=e=>`https://twitter.com/intent/tweet?in_reply_to=${e.id_str}`,K=e=>`https://twitter.com/intent/follow?screen_name=${e.user.screen_name}`,Z=e=>`https://twitter.com/${e.in_reply_to_screen_name}/status/${e.in_reply_to_status_id_str}`,ee=(e,t)=>{const r=new URL(e.media_url_https),n=r.pathname.split(".").pop();return n?(r.pathname=r.pathname.replace(`.${n}`,""),r.searchParams.set("format",n),r.searchParams.set("name",t),r.toString()):e.media_url_https},te=e=>e>999999?`${(e/1e6).toFixed(1)}M`:e>999?`${(e/1e3).toFixed(1)}K`:e.toString();function re(e){const t=Array.from(e.text),r=[{indices:e.display_text_range,type:"text"}];return ne(r,"hashtag",e.entities.hashtags),ne(r,"mention",e.entities.user_mentions),ne(r,"url",e.entities.urls),ne(r,"symbol",e.entities.symbols),e.entities.media&&ne(r,"media",e.entities.media),function(e,t){e.entities.media&&e.entities.media[0].indices[0]<e.display_text_range[1]&&(e.display_text_range[1]=e.entities.media[0].indices[0]);const r=t.at(-1);r&&r.indices[1]>e.display_text_range[1]&&(r.indices[1]=e.display_text_range[1])}(e,r),r.map((e=>{const r=t.slice(e.indices[0],e.indices[1]).join("");switch(e.type){case"hashtag":return Object.assign(e,{href:(a=e,`https://twitter.com/hashtag/${a.text}`),text:r});case"mention":return Object.assign(e,{href:G(e.screen_name),text:r});case"url":case"media":return Object.assign(e,{href:e.expanded_url,text:e.display_url});case"symbol":return Object.assign(e,{href:(n=e,`https://twitter.com/search?q=%24${n.text}`),text:r});default:return Object.assign(e,{text:r})}var n,a}))}function ne(e,t,r){for(const n of r)for(const[r,a]of e.entries()){if(a.indices[0]>n.indices[0]||a.indices[1]<n.indices[1])continue;const i=[{...n,type:t}];a.indices[0]<n.indices[0]&&i.unshift({indices:[a.indices[0],n.indices[0]],type:"text"}),a.indices[1]>n.indices[1]&&i.push({indices:[n.indices[1],a.indices[1]],type:"text"}),e.splice(r,1,...i);break}}const ae="root__sIp",ie="rounded_dKug",oe="mediaWrapper_T0we",se="grid2Columns_YryS",ue="grid3_GBAC",le="grid2x2__RM2",de="mediaContainer_pdV5",ce="mediaLink_tILL",fe="skeleton_kXyX",he="image_kWlZ",me="anchor_O_ID",ve="videoButton_zM5T",ge="videoButtonIcon_ShP3",pe="watchOnTwitter_al_H",we="viewReplies_OPYE",ye=({tweet:e,media:t})=>{const[r,a]=(0,$.useState)(!0),[o,s]=(0,$.useState)(!1),[u,l]=(0,$.useState)(!1),d=(e=>{const t=(e=>{const{variants:t}=e.video_info;return t.filter((e=>"video/mp4"===e.content_type)).sort(((e,t)=>{var r,n;return(null!=(r=t.bitrate)?r:0)-(null!=(n=e.bitrate)?n:0)}))})(e);return t.length>1?t[1]:t[0]})(t);let c=0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("video",{className:he,poster:ee(t,"small"),controls:!r,muted:!0,preload:"metadata",tabIndex:r?-1:0,onPlay:()=>{c&&window.clearTimeout(c),o||s(!0),u&&l(!1)},onPause:()=>{c&&window.clearTimeout(c),c=window.setTimeout((()=>{o&&s(!1),c=0}),100)},onEnded:()=>{l(!0)},children:(0,n.jsx)("source",{src:d.url,type:d.content_type})}),r&&(0,n.jsx)("button",{type:"button",className:ve,"aria-label":"View video on Twitter",onClick:e=>{const t=e.currentTarget.previousSibling;e.preventDefault(),a(!1),s(!0),t.play(),t.focus()},children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:ge,"aria-hidden":"true",children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{d:"M21 12L4 2v20l17-10z"})})})}),!o&&!u&&(0,n.jsx)("div",{className:pe,children:(0,n.jsx)("a",{href:e.url,className:me,target:"_blank",rel:"noopener noreferrer",children:r?"Watch on Twitter":"Continue watching on Twitter"})}),u&&(0,n.jsx)("a",{href:e.url,className:i(me,we),target:"_blank",rel:"noopener noreferrer",children:"View replies"})]})},xe=e=>(0,n.jsx)("img",{...e}),be=(e,t)=>{let r=56.25;return 1===t&&(r=100/e.original_info.width*e.original_info.height),2===t&&(r*=2),{width:"photo"===e.type?void 0:"unset",paddingBottom:`${r}%`}},_e=({tweet:e,components:t,quoted:r})=>{var a,o,s;const u=null!=(s=null==(a=e.mediaDetails)?void 0:a.length)?s:0;var l;const d=null!=(l=null==t?void 0:t.MediaImg)?l:xe;return(0,n.jsx)("div",{className:i(ae,!r&&ie),children:(0,n.jsx)("div",{className:i(oe,u>1&&se,3===u&&ue,u>4&&le),children:null==(o=e.mediaDetails)?void 0:o.map((t=>(0,n.jsx)($.Fragment,{children:"photo"===t.type?(0,n.jsxs)("a",{href:e.url,className:i(de,ce),target:"_blank",rel:"noopener noreferrer",children:[(0,n.jsx)("div",{className:fe,style:be(t,u)}),(0,n.jsx)(d,{src:ee(t,"small"),alt:t.ext_alt_text||"Image",className:he,draggable:!0})]},t.media_url_https):(0,n.jsxs)("div",{className:de,children:[(0,n.jsx)("div",{className:fe,style:be(t,u)}),(0,n.jsx)(ye,{tweet:e,media:t})]},t.media_url_https)},t.media_url_https)))})})};var je=r(15616),Te=r(61688);const Me=()=>{},ke=Me(),Ce=Object,Oe=e=>e===ke,Se=e=>"function"==typeof e,Pe=(e,t)=>({...e,...t}),Ne=new WeakMap;let De=0;const Ee=e=>{const t=typeof e,r=e&&e.constructor,n=r==Date;let a,i;if(Ce(e)!==e||n||r==RegExp)a=n?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(a=Ne.get(e),a)return a;if(a=++De+"~",Ne.set(e,a),r==Array){for(a="@",i=0;i<e.length;i++)a+=Ee(e[i])+",";Ne.set(e,a)}if(r==Ce){a="#";const t=Ce.keys(e).sort();for(;!Oe(i=t.pop());)Oe(e[i])||(a+=i+":"+Ee(e[i])+",");Ne.set(e,a)}}return a},Ue=new WeakMap,Le={},We={},Re="undefined",qe=typeof window!=Re,Ye=typeof document!=Re,ze=(e,t)=>{const r=Ue.get(e);return[()=>!Oe(t)&&e.get(t)||Le,n=>{if(!Oe(t)){const a=e.get(t);t in We||(We[t]=a),r[5](t,Pe(a,n),a||Le)}},r[6],()=>!Oe(t)&&t in We?We[t]:!Oe(t)&&e.get(t)||Le]};let Fe=!0;const[Ie,He]=qe&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Me,Me],Be={isOnline:()=>Fe,isVisible:()=>{const e=Ye&&document.visibilityState;return Oe(e)||"hidden"!==e}},Ve={initFocus:e=>(Ye&&document.addEventListener("visibilitychange",e),Ie("focus",e),()=>{Ye&&document.removeEventListener("visibilitychange",e),He("focus",e)}),initReconnect:e=>{const t=()=>{Fe=!0,e()},r=()=>{Fe=!1};return Ie("online",t),Ie("offline",r),()=>{He("online",t),He("offline",r)}}},Ae=!$.useId,$e=!qe||"Deno"in window,Xe=e=>qe&&typeof window.requestAnimationFrame!=Re?window.requestAnimationFrame(e):setTimeout(e,1),Ge=$e?$.useEffect:$.useLayoutEffect,Qe="undefined"!=typeof navigator&&navigator.connection,Je=!$e&&Qe&&(["slow-2g","2g"].includes(Qe.effectiveType)||Qe.saveData),Ke=e=>{if(Se(e))try{e=e()}catch(r){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Ee(e):"",t]};let Ze=0;const et=()=>++Ze;var tt=3,rt=0,nt=2,at=1;async function it(...e){const[t,r,n,a]=e,i=Pe({populateCache:!0,throwOnError:!0},"boolean"==typeof a?{revalidate:a}:a||{});let o=i.populateCache;const s=i.rollbackOnError;let u=i.optimisticData;const l=i.throwOnError;if(Se(r)){const e=r,n=[],a=t.keys();for(const r of a)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&n.push(r);return Promise.all(n.map(d))}return d(r);async function d(r){const[a]=Ke(r);if(!a)return;const[d,c]=ze(t,a),[f,h,m,v]=Ue.get(t),g=()=>{const e=f[a];return(Se(i.revalidate)?i.revalidate(d().data,r):!1!==i.revalidate)&&(delete m[a],delete v[a],e&&e[0])?e[0](2).then((()=>d().data)):d().data};if(e.length<3)return g();let p,w=n;const y=et();h[a]=[y,0];const x=!Oe(u),b=d(),_=b.data,j=b._c,T=Oe(j)?_:j;if(x&&(u=Se(u)?u(T,_):u,c({data:u,_c:T})),Se(w))try{w=w(T)}catch(M){p=M}if(w&&Se(w.then)){if(w=await w.catch((e=>{p=e})),y!==h[a][0]){if(p)throw p;return w}p&&x&&(e=>"function"==typeof s?s(e):!1!==s)(p)&&(o=!0,c({data:T,_c:ke}))}if(o&&!p)if(Se(o)){const e=o(w,T);c({data:e,error:ke,_c:ke})}else c({data:w,error:ke,_c:ke});if(h[a][1]=et(),Promise.resolve(g()).then((()=>{c({_c:ke})})),!p)return w;if(l)throw p}}const ot=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},st=(e,t)=>{if(!Ue.has(e)){const r=Pe(Ve,t),n={},a=it.bind(ke,e);let i=Me;const o={},s=(e,t)=>{const r=o[e]||[];return o[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},u=(t,r,n)=>{e.set(t,r);const a=o[t];if(a)for(const e of a)e(r,n)},l=()=>{if(!Ue.has(e)&&(Ue.set(e,[n,{},{},{},a,u,s]),!$e)){const t=r.initFocus(setTimeout.bind(ke,ot.bind(ke,n,0))),a=r.initReconnect(setTimeout.bind(ke,ot.bind(ke,n,1)));i=()=>{t&&t(),a&&a(),Ue.delete(e)}}};return l(),[e,a,l,i]}return[e,Ue.get(e)[4]]},[ut,lt]=st(new Map),dt=Pe({onLoadingSlow:Me,onSuccess:Me,onError:Me,onErrorRetry:(e,t,r,n,a)=>{const i=r.errorRetryCount,o=a.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*r.errorRetryInterval;!Oe(i)&&o>i||setTimeout(n,s,a)},onDiscarded:Me,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Je?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Je?5e3:3e3,compare:(e,t)=>Ee(e)==Ee(t),isPaused:()=>!1,cache:ut,mutate:lt,fallback:{}},Be),ct=(e,t)=>{const r=Pe(e,t);if(t){const{use:n,fallback:a}=e,{use:i,fallback:o}=t;n&&i&&(r.use=n.concat(i)),a&&o&&(r.fallback=Pe(a,o))}return r},ft=(0,$.createContext)({}),ht=qe&&window.__SWR_DEVTOOLS_USE__,mt=ht?window.__SWR_DEVTOOLS_USE__:[],vt=e=>Se(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],gt=mt.concat((e=>(t,r,n)=>e(t,r&&((...e)=>{const[n]=Ke(t),[,,,a]=Ue.get(ut);if(n.startsWith("$inf$"))return r(...e);const i=a[n];return Oe(i)?r(...e):(delete a[n],i)}),n)));ht&&(window.__SWR_DEVTOOLS_REACT__=$);const pt=$.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),wt={dedupe:!0},yt=(Ce.defineProperty((e=>{const{value:t}=e,r=(0,$.useContext)(ft),n=Se(t),a=(0,$.useMemo)((()=>n?t(r):t),[n,r,t]),i=(0,$.useMemo)((()=>n?a:ct(r,a)),[n,r,a]),o=a&&a.provider,s=(0,$.useRef)(ke);o&&!s.current&&(s.current=st(o(i.cache||ut),a));const u=s.current;return u&&(i.cache=u[0],i.mutate=u[1]),Ge((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,$.createElement)(ft.Provider,Pe(e,{value:i}))}),"defaultValue",{value:dt}),xt=(e,t,r)=>{const{cache:n,compare:a,suspense:i,fallbackData:o,revalidateOnMount:s,revalidateIfStale:u,refreshInterval:l,refreshWhenHidden:d,refreshWhenOffline:c,keepPreviousData:f}=r,[h,m,v,g]=Ue.get(n),[p,w]=Ke(e),y=(0,$.useRef)(!1),x=(0,$.useRef)(!1),b=(0,$.useRef)(p),_=(0,$.useRef)(t),j=(0,$.useRef)(r),T=()=>j.current,M=()=>T().isVisible()&&T().isOnline(),[k,C,O,S]=ze(n,p),P=(0,$.useRef)({}).current,N=Oe(o)?r.fallback[p]:o,D=(e,t)=>{for(const r in P){const n=r;if("data"===n){if(!a(e[n],t[n])){if(!Oe(e[n]))return!1;if(!a(F,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},E=(0,$.useMemo)((()=>{const e=!!p&&!!t&&(Oe(s)?!T().isPaused()&&!i&&(!!Oe(u)||u):s),r=t=>{const r=Pe(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},n=k(),a=S(),o=r(n),l=n===a?o:r(a);let d=o;return[()=>{const e=r(k());return D(e,d)?(d.data=e.data,d.isLoading=e.isLoading,d.isValidating=e.isValidating,d.error=e.error,d):(d=e,e)},()=>l]}),[n,p]),U=(0,Te.useSyncExternalStore)((0,$.useCallback)((e=>O(p,((t,r)=>{D(r,t)||e()}))),[n,p]),E[0],E[1]),L=!y.current,W=h[p]&&h[p].length>0,R=U.data,q=Oe(R)?N:R,Y=U.error,z=(0,$.useRef)(q),F=f?Oe(R)?z.current:R:q,I=!(W&&!Oe(Y))&&(L&&!Oe(s)?s:!T().isPaused()&&(i?!Oe(q)&&u:Oe(q)||u)),H=!!(p&&t&&L&&I),B=Oe(U.isValidating)?H:U.isValidating,V=Oe(U.isLoading)?H:U.isLoading,A=(0,$.useCallback)((async e=>{const t=_.current;if(!p||!t||x.current||T().isPaused())return!1;let n,i,o=!0;const s=e||{},u=!v[p]||!s.dedupe,l=()=>Ae?!x.current&&p===b.current&&y.current:p===b.current,d={isValidating:!1,isLoading:!1},c=()=>{C(d)},f=()=>{const e=v[p];e&&e[1]===i&&delete v[p]},g={isValidating:!0};Oe(k().data)&&(g.isLoading=!0);try{if(u&&(C(g),r.loadingTimeout&&Oe(k().data)&&setTimeout((()=>{o&&l()&&T().onLoadingSlow(p,r)}),r.loadingTimeout),v[p]=[t(w),et()]),[n,i]=v[p],n=await n,u&&setTimeout(f,r.dedupingInterval),!v[p]||v[p][1]!==i)return u&&l()&&T().onDiscarded(p),!1;d.error=ke;const e=m[p];if(!Oe(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return c(),u&&l()&&T().onDiscarded(p),!1;const s=k().data;d.data=a(s,n)?s:n,u&&l()&&T().onSuccess(n,p,r)}catch(j){f();const e=T(),{shouldRetryOnError:t}=e;e.isPaused()||(d.error=j,u&&l()&&(e.onError(j,p,e),(!0===t||Se(t)&&t(j))&&(T().revalidateOnFocus&&T().revalidateOnReconnect&&!M()||e.onErrorRetry(j,p,e,(e=>{const t=h[p];t&&t[0]&&t[0](tt,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return o=!1,c(),!0}),[p,n]),X=(0,$.useCallback)(((...e)=>it(n,b.current,...e)),[]);if(Ge((()=>{_.current=t,j.current=r,Oe(R)||(z.current=R)})),Ge((()=>{if(!p)return;const e=A.bind(ke,wt);let t=0;const r=((e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}})(p,h,((r,n={})=>{if(r==rt){const r=Date.now();T().revalidateOnFocus&&r>t&&M()&&(t=r+T().focusThrottleInterval,e())}else if(r==at)T().revalidateOnReconnect&&M()&&e();else{if(r==nt)return A();if(r==tt)return A(n)}}));return x.current=!1,b.current=p,y.current=!0,C({_k:w}),I&&(Oe(q)||$e?e():Xe(e)),()=>{x.current=!0,r()}}),[p]),Ge((()=>{let e;function t(){const t=Se(l)?l(k().data):l;t&&-1!==e&&(e=setTimeout(r,t))}function r(){k().error||!d&&!T().isVisible()||!c&&!T().isOnline()?t():A(wt).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[l,d,c,p]),(0,$.useDebugValue)(F),i&&Oe(q)&&p){if(!Ae&&$e)throw new Error("Fallback data is required when using suspense in SSR.");_.current=t,j.current=r,x.current=!1;const e=g[p];if(!Oe(e)){const t=X(e);pt(t)}if(!Oe(Y))throw Y;{const e=A(wt);Oe(F)||(e.status="fulfilled",e.value=!0),pt(e)}}return{mutate:X,get data(){return P.data=!0,F},get error(){return P.error=!0,Y},get isValidating(){return P.isValidating=!0,B},get isLoading(){return P.isLoading=!0,V}}},function(...e){const t=Pe(dt,(0,$.useContext)(ft)),[r,n,a]=vt(e),i=ct(t,a);let o=xt;const{use:s}=i,u=(s||[]).concat(gt);for(let l=u.length;l--;)o=u[l](o);return o(r,n||i.fetcher||null,i)});var xt;class bt extends Error{constructor({message:e,status:t,data:r}){super(e),this.name="TwitterApiError",this.status=t,this.data=r}}const _t=yt.default||yt;async function jt([e,t]){const r=await fetch(e,t),n=await r.json();if(r.ok)return n.data||null;throw new bt({message:`Failed to fetch tweet at "${e}" with "${r.status}".`,data:n,status:r.status})}const Tt="root_FOba",Mt=({tweet:e})=>{const t=(()=>{const[e,t]=(0,$.useState)(!1);return(0,$.useEffect)((()=>t(!0)),[]),e})(),r="undefined"!=typeof window&&t?new Date(e.created_at):null;return r?(0,n.jsx)("a",{className:Tt,href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":je(r,"h:mm a \xb7 MMM d, y"),children:(0,n.jsx)("time",{dateTime:r.toISOString(),children:je(r,"h:mm a \xb7 MMM d, y")})}):null},kt="info_Kyz8",Ct="infoLink_coB3",Ot="infoIcon_vXUt",St=({tweet:e})=>(0,n.jsxs)("div",{className:kt,children:[(0,n.jsx)(Mt,{tweet:e}),(0,n.jsx)("a",{className:Ct,href:"https://help.twitter.com/en/twitter-for-websites-ads-info-and-privacy",target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter for Websites, Ads Information and Privacy",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:Ot,children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{d:"M13.5 8.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5S11.17 7 12 7s1.5.67 1.5 1.5zM13 17v-5h-2v5h2zm-1 5.25c5.66 0 10.25-4.59 10.25-10.25S17.66 1.75 12 1.75 1.75 6.34 1.75 12 6.34 22.25 12 22.25zM20.25 12c0 4.56-3.69 8.25-8.25 8.25S3.75 16.56 3.75 12 7.44 3.75 12 3.75s8.25 3.69 8.25 8.25z"})})})})]}),Pt="actions_jOEJ",Nt="like_AZSs",Dt="reply_PYbJ",Et="copy_npTP",Ut="likeIconWrapper_KHFx",Lt="likeCount_b04X",Wt="replyIconWrapper_jCup",Rt="copyIconWrapper_oEVy",qt="likeIcon_gbwt",Yt="replyIcon_ipa5",zt="copyIcon_IhOq",Ft="replyText_jXTI",It="copyText_vRl0",Ht=({tweet:e})=>{const[t,r]=(0,$.useState)(!1),[a,i]=(0,$.useState)(!1);return(0,$.useEffect)((()=>{if(t){const e=setTimeout((()=>{r(!1),i(!0)}),6e3);return()=>clearTimeout(e)}}),[t]),(0,n.jsxs)("button",{type:"button",className:Et,"aria-label":"Copy link",onClick:()=>{navigator.clipboard.writeText(e.url),r(!0)},children:[(0,n.jsx)("div",{className:Rt,children:t?(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:zt,"aria-hidden":"true",children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{d:"M9.64 18.952l-5.55-4.861 1.317-1.504 3.951 3.459 8.459-10.948L19.4 6.32 9.64 18.952z"})})}):(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:zt,"aria-hidden":"true",children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{d:"M18.36 5.64c-1.95-1.96-5.11-1.96-7.07 0L9.88 7.05 8.46 5.64l1.42-1.42c2.73-2.73 7.16-2.73 9.9 0 2.73 2.74 2.73 7.17 0 9.9l-1.42 1.42-1.41-1.42 1.41-1.41c1.96-1.96 1.96-5.12 0-7.07zm-2.12 3.53l-7.07 7.07-1.41-1.41 7.07-7.07 1.41 1.41zm-12.02.71l1.42-1.42 1.41 1.42-1.41 1.41c-1.96 1.96-1.96 5.12 0 7.07 1.95 1.96 5.11 1.96 7.07 0l1.41-1.41 1.42 1.41-1.42 1.42c-2.73 2.73-7.16 2.73-9.9 0-2.73-2.74-2.73-7.17 0-9.9z"})})})}),(0,n.jsx)("span",{className:It,children:t?"Copied!":a?"Copy link to Tweet":"Copy link"})]})},Bt=({tweet:e})=>{const t=te(e.favorite_count);return(0,n.jsxs)("div",{className:Pt,children:[(0,n.jsxs)("a",{className:Nt,href:e.like_url,target:"_blank",rel:"noopener noreferrer","aria-label":`Like. This Tweet has ${t} likes`,children:[(0,n.jsx)("div",{className:Ut,children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:qt,"aria-hidden":"true",children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{d:"M20.884 13.19c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"})})})}),(0,n.jsx)("span",{className:Lt,children:t})]}),(0,n.jsxs)("a",{className:Dt,href:e.reply_url,target:"_blank",rel:"noopener noreferrer","aria-label":"Reply to this Tweet on Twitter",children:[(0,n.jsx)("div",{className:Wt,children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:Yt,"aria-hidden":"true",children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{d:"M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01z"})})})}),(0,n.jsx)("span",{className:Ft,children:"Reply"})]}),(0,n.jsx)(Ht,{tweet:e})]})},Vt="replies_enWO",At="link_cCIX",$t="text_Zp5K",Xt=({tweet:e})=>(0,n.jsx)("div",{className:Vt,children:(0,n.jsx)("a",{className:At,href:e.url,target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)("span",{className:$t,children:0===e.conversation_count?"Read more on Twitter":1===e.conversation_count?`Read ${te(e.conversation_count)} reply`:`Read ${te(e.conversation_count)} replies`})})}),Gt="root_IExM",Qt="article_pepT",Jt=({tweet:e,children:t})=>(0,n.jsx)("div",{className:Gt,onClick:t=>{t.preventDefault(),window.open(e.url,"_blank")},children:(0,n.jsx)("article",{className:Qt,children:t})}),Kt={header:"header_RYYj",avatar:"avatar_K4HU",avatarSquare:"avatarSquare_Zzxq",author:"author_jsWI",authorText:"authorText_dUjv",username:"username_Jiht"},Zt=({tweet:e})=>{const{user:t}=e;return(0,n.jsxs)("div",{className:Kt.header,children:[(0,n.jsx)("a",{href:e.url,className:Kt.avatar,target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)("div",{className:i(Kt.avatarOverflow,"Square"===t.profile_image_shape&&Kt.avatarSquare),children:(0,n.jsx)(v,{src:t.profile_image_url_https,alt:t.name,width:20,height:20})})}),(0,n.jsxs)("div",{className:Kt.author,children:[(0,n.jsx)("div",{className:Kt.authorText,children:(0,n.jsx)("span",{title:t.name,children:t.name})}),(0,n.jsx)(Y,{user:t}),(0,n.jsx)("div",{className:Kt.username,children:(0,n.jsxs)("span",{title:`@${t.screen_name}`,children:["@",t.screen_name]})})]})]})},er="root_sTw3",tr=({tweet:e})=>(0,n.jsx)("p",{className:er,children:e.entities.map(((e,t)=>(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:e.text}},t)))}),rr=({tweet:e})=>{var t;return(0,n.jsxs)(Jt,{tweet:e,children:[(0,n.jsx)(Zt,{tweet:e}),(0,n.jsx)(tr,{tweet:e}),(null==(t=e.mediaDetails)?void 0:t.length)?(0,n.jsx)(_e,{quoted:!0,tweet:e}):null]})},nr=({tweet:e,components:t})=>{var r;const a=(0,$.useMemo)((()=>(e=>({...e,url:X(e),user:{...e.user,url:G(e),follow_url:K(e)},like_url:Q(e),reply_url:J(e),in_reply_to_url:e.in_reply_to_screen_name?Z(e):void 0,entities:re(e),quoted_tweet:e.quoted_tweet?{...e.quoted_tweet,url:X(e.quoted_tweet),entities:re(e.quoted_tweet)}:void 0}))(e)),[e]);return(0,n.jsxs)(u,{children:[(0,n.jsx)(z,{tweet:a,components:t}),a.in_reply_to_status_id_str&&(0,n.jsx)(I,{tweet:a}),(0,n.jsx)(A,{tweet:a}),(null==(r=a.mediaDetails)?void 0:r.length)?(0,n.jsx)(_e,{tweet:a,components:t}):null,a.quoted_tweet&&(0,n.jsx)(rr,{tweet:a.quoted_tweet}),(0,n.jsx)(St,{tweet:a}),(0,n.jsx)(Bt,{tweet:a}),(0,n.jsx)(Xt,{tweet:a})]})},ar=({id:e,apiUrl:t,fallback:r=(0,n.jsx)(f,{}),components:a,fetchOptions:i,onError:o})=>{const{data:s,error:u,isLoading:l}=((e,t,r)=>{const{isLoading:n,data:a,error:i}=_t((()=>t||e?[t||e&&`https://react-tweet.vercel.app/api/tweet/${e}`,r]:null),jt,{revalidateIfStale:!1,revalidateOnFocus:!1,shouldRetryOnError:!1});return{isLoading:Boolean(n||void 0===a&&!i),data:a,error:i}})(e,t,i);if(l)return r;if(u||!s){const e=(null==a?void 0:a.TweetNotFound)||m;return(0,n.jsx)(e,{error:o?o(u):u})}return(0,n.jsx)(nr,{tweet:s,components:a})}}}]);
\ No newline at end of file |