react-chrono
Version:
A Modern Timeline component for React
1 lines • 139 kB
JavaScript
import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import n,{createContext as o,useContext as r,useRef as a,useEffect as l,useMemo as s,useState as d,useCallback as c,memo as u,startTransition as h,useReducer as m,forwardRef as p,createElement as g}from"react";import f,{css as v,keyframes as b}from"styled-components";import w from"react-dom";function y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x,C,T,S,k,I,L,$,A,M,N,D={exports:{}},H={},O={exports:{}},z={};function R(){if(x)return z;function e(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}x=1;var t=/javascript\s*\:/gim;return z.whiteList=e(),z.getDefaultWhiteList=e,z.onAttr=function(e,t,i){},z.onIgnoreAttr=function(e,t,i){},z.safeAttrValue=function(e,i){return t.test(i)?"":i},z}function E(){return T?C:(T=1,C={indexOf:function(e,t){var i,n;if(Array.prototype.indexOf)return e.indexOf(t);for(i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},forEach:function(e,t,i){var n,o;if(Array.prototype.forEach)return e.forEach(t,i);for(n=0,o=e.length;n<o;n++)t.call(i,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}})}function B(){if(L)return I;L=1;var e=R(),t=function(){if(k)return S;k=1;var e=E();return S=function(t,i){";"!==(t=e.trimRight(t))[t.length-1]&&(t+=";");var n=t.length,o=!1,r=0,a=0,l="";function s(){if(!o){var n=e.trim(t.slice(r,a)),s=n.indexOf(":");if(-1!==s){var d=e.trim(n.slice(0,s)),c=e.trim(n.slice(s+1));if(d){var u=i(r,l.length,d,c,n);u&&(l+=u+"; ")}}}r=a+1}for(;a<n;a++){var d=t[a];if("/"===d&&"*"===t[a+1]){var c=t.indexOf("*/",a+2);if(-1===c)break;r=(a=c+1)+1,o=!1}else"("===d?o=!0:")"===d?o=!1:";"===d?o||s():"\n"===d&&s()}return e.trim(l)},S}();function i(e){return null==e}function n(t){(t=function(e){var t={};for(var i in e)t[i]=e[i];return t}(t||{})).whiteList=t.whiteList||e.whiteList,t.onAttr=t.onAttr||e.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||e.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||e.safeAttrValue,this.options=t}return E(),n.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var n=this.options,o=n.whiteList,r=n.onAttr,a=n.onIgnoreAttr,l=n.safeAttrValue;return t(e,(function(e,t,n,s,d){var c=o[n],u=!1;if(!0===c?u=c:"function"==typeof c?u=c(s):c instanceof RegExp&&(u=c.test(s)),!0!==u&&(u=!1),s=l(n,s)){var h,m={position:t,sourcePosition:e,source:d,isWhite:u};return u?i(h=r(n,s,m))?n+":"+s:h:i(h=a(n,s,m))?void 0:h}}))},I=n}function P(){return $||($=1,function(e,t){var i=R(),n=B();for(var o in(t=e.exports=function(e,t){return new n(t).process(e)}).FilterCSS=n,i)t[o]=i[o];"undefined"!=typeof window&&(window.filterCSS=e.exports)}(O,O.exports)),O.exports}function F(){return M?A:(M=1,A={indexOf:function(e,t){var i,n;if(Array.prototype.indexOf)return e.indexOf(t);for(i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},forEach:function(e,t,i){var n,o;if(Array.prototype.forEach)return e.forEach(t,i);for(n=0,o=e.length;n<o;n++)t.call(i,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}})}function W(){if(N)return H;N=1;var e=P().FilterCSS,t=P().getDefaultWhiteList,i=F();function n(){return{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","loading"],ins:["datetime"],kbd:[],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"]}}var o=new e;function r(e){return e.replace(a,"<").replace(l,">")}var a=/</g,l=/>/g,s=/"/g,d=/"/g,c=/&#([a-zA-Z0-9]*);?/gim,u=/:?/gim,h=/&newline;?/gim,m=/((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,p=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,g=/u\s*r\s*l\s*\(.*/gi;function f(e){return e.replace(s,""")}function v(e){return e.replace(d,'"')}function b(e){return e.replace(c,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function w(e){return e.replace(u,":").replace(h," ")}function y(e){for(var t="",n=0,o=e.length;n<o;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return i.trim(t)}function x(e){return e=y(e=w(e=b(e=v(e))))}function C(e){return e=r(e=f(e))}return H.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","loading"],ins:["datetime"],kbd:[],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"]},H.getDefaultWhiteList=n,H.onTag=function(e,t,i){},H.onIgnoreTag=function(e,t,i){},H.onTagAttr=function(e,t,i){},H.onIgnoreTagAttr=function(e,t,i){},H.safeAttrValue=function(e,t,n,r){if(n=x(n),"href"===t||"src"===t){if("#"===(n=i.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(m.lastIndex=0,m.test(n))return""}else if("style"===t){if(p.lastIndex=0,p.test(n))return"";if(g.lastIndex=0,g.test(n)&&(m.lastIndex=0,m.test(n)))return"";!1!==r&&(n=(r=r||o).process(n))}return n=C(n)},H.escapeHtml=r,H.escapeQuote=f,H.unescapeQuote=v,H.escapeHtmlEntities=b,H.escapeDangerHtml5Entities=w,H.clearNonPrintableCharacter=y,H.friendlyAttrValue=x,H.escapeAttrValue=C,H.onIgnoreTagStripAll=function(){return""},H.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),o=[],r=!1;return{onIgnoreTag:function(a,l,s){if(function(t){return!!n||-1!==i.indexOf(e,t)}(a)){if(s.isClosing){var d="[/removed]",c=s.position+10;return o.push([!1!==r?r:s.position,c]),r=!1,d}return r||(r=s.position),"[removed]"}return t(a,l,s)},remove:function(e){var t="",n=0;return i.forEach(o,(function(i){t+=e.slice(n,i[0]),n=i[1]})),t+=e.slice(n)}}},H.stripCommentTag=function(e){for(var t="",i=0;i<e.length;){var n=e.indexOf("\x3c!--",i);if(-1===n){t+=e.slice(i);break}t+=e.slice(i,n);var o=e.indexOf("--\x3e",n);if(-1===o)break;i=o+3}return t},H.stripBlankChar=function(e){var t=e.split("");return t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))})),t.join("")},H.attributeWrapSign='"',H.cssFilter=o,H.getDefaultCSSWhiteList=t,H}var j,V,_,q,G={};function U(){if(j)return G;j=1;var e=F();function t(t){var i,n=e.spaceIndex(t);return i=-1===n?t.slice(1,-1):t.slice(1,n+1),"/"===(i=e.trim(i).toLowerCase()).slice(0,1)&&(i=i.slice(1)),"/"===i.slice(-1)&&(i=i.slice(0,-1)),i}function i(e){return"</"===e.slice(0,2)}var n=/[^a-zA-Z0-9\\_:.-]/gim;function o(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"="===i?t:-1}}function r(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"'"===i||'"'===i?t:-1}}function a(e,t){for(;t>0;t--){var i=e[t];if(" "!==i)return"="===i?t:-1}}function l(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}return G.parseTag=function(e,n,o){var r="",a=0,l=!1,s=!1,d=0,c=e.length,u="",h="";e:for(d=0;d<c;d++){var m=e.charAt(d);if(!1===l){if("<"===m){l=d;continue}}else if(!1===s){if("<"===m){r+=o(e.slice(a,d)),l=d,a=d;continue}if(">"===m||d===c-1){r+=o(e.slice(a,l)),u=t(h=e.slice(l,d+1)),r+=n(l,r.length,u,h,i(h)),a=d+1,l=!1;continue}if('"'===m||"'"===m)for(var p=1,g=e.charAt(d-p);""===g.trim()||"="===g;){if("="===g){s=m;continue e}g=e.charAt(d-++p)}}else if(m===s){s=!1;continue}}return a<c&&(r+=o(e.substr(a))),r},G.parseAttr=function(t,i){var s=0,d=0,c=[],u=!1,h=t.length;function m(t,o){if(!((t=(t=e.trim(t)).replace(n,"").toLowerCase()).length<1)){var r=i(t,o||"");r&&c.push(r)}}for(var p=0;p<h;p++){var g,f=t.charAt(p);if(!1!==u||"="!==f)if(!1===u||p!==d)if(/\s|\n|\t/.test(f)){if(t=t.replace(/\s|\n|\t/g," "),!1===u){if(-1===(g=o(t,p))){m(e.trim(t.slice(s,p))),u=!1,s=p+1;continue}p=g-1;continue}if(-1===(g=a(t,p-1))){m(u,l(e.trim(t.slice(s,p)))),u=!1,s=p+1;continue}}else;else{if(-1===(g=t.indexOf(f,p+1)))break;m(u,e.trim(t.slice(d+1,g))),u=!1,s=(p=g)+1}else u=t.slice(s,p),s=p+1,d='"'===t.charAt(s)||"'"===t.charAt(s)?s:r(t,p+1)}return s<t.length&&(!1===u?m(t.slice(s)):m(u,l(e.trim(t.slice(s))))),e.trim(c.join(" "))},G}function Y(){if(_)return V;_=1;var e=P().FilterCSS,t=W(),i=U(),n=i.parseTag,o=i.parseAttr,r=F();function a(e){return null==e}function l(i){(i=function(e){var t={};for(var i in e)t[i]=e[i];return t}(i||{})).stripIgnoreTag&&(i.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),i.onIgnoreTag=t.onIgnoreTagStripAll),i.whiteList||i.allowList?i.whiteList=function(e){var t={};for(var i in e)Array.isArray(e[i])?t[i.toLowerCase()]=e[i].map((function(e){return e.toLowerCase()})):t[i.toLowerCase()]=e[i];return t}(i.whiteList||i.allowList):i.whiteList=t.whiteList,this.attributeWrapSign=!0===i.singleQuotedAttributeValue?"'":t.attributeWrapSign,i.onTag=i.onTag||t.onTag,i.onTagAttr=i.onTagAttr||t.onTagAttr,i.onIgnoreTag=i.onIgnoreTag||t.onIgnoreTag,i.onIgnoreTagAttr=i.onIgnoreTagAttr||t.onIgnoreTagAttr,i.safeAttrValue=i.safeAttrValue||t.safeAttrValue,i.escapeHtml=i.escapeHtml||t.escapeHtml,this.options=i,!1===i.css?this.cssFilter=!1:(i.css=i.css||{},this.cssFilter=new e(i.css))}return l.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var i=this,l=i.options,s=l.whiteList,d=l.onTag,c=l.onIgnoreTag,u=l.onTagAttr,h=l.onIgnoreTagAttr,m=l.safeAttrValue,p=l.escapeHtml,g=i.attributeWrapSign,f=i.cssFilter;l.stripBlankChar&&(e=t.stripBlankChar(e)),l.allowCommentTag||(e=t.stripCommentTag(e));var v=!1;l.stripIgnoreTagBody&&(v=t.StripTagBody(l.stripIgnoreTagBody,c),c=v.onIgnoreTag);var b=n(e,(function(e,t,i,n,l){var v={sourcePosition:e,position:t,isClosing:l,isWhite:Object.prototype.hasOwnProperty.call(s,i)},b=d(i,n,v);if(!a(b))return b;if(v.isWhite){if(v.isClosing)return"</"+i+">";var w=function(e){var t=r.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var i="/"===(e=r.trim(e.slice(t+1,-1)))[e.length-1];return i&&(e=r.trim(e.slice(0,-1))),{html:e,closing:i}}(n),y=s[i],x=o(w.html,(function(e,t){var n=-1!==r.indexOf(y,e),o=u(i,e,t,n);return a(o)?n?(t=m(i,e,t,f))?e+"="+g+t+g:e:a(o=h(i,e,t,n))?void 0:o:o}));return n="<"+i,x&&(n+=" "+x),w.closing&&(n+=" /"),n+=">"}return a(b=c(i,n,v))?p(n):b}),p);return v&&(b=v.remove(b)),b},V=l}var Z=(q||(q=1,function(e,t){var i=W(),n=U(),o=Y();function r(e,t){return new o(t).process(e)}(t=e.exports=r).filterXSS=r,t.FilterXSS=o,function(){for(var e in i)t[e]=i[e];for(var o in n)t[o]=n[o]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)}(D,D.exports)),D.exports),J=y(Z);const Q={cardBgColor:"#ffffff",cardDetailsBackGround:"#ffffff",cardDetailsColor:"#374151",cardMediaBgColor:"#f8fafc",cardSubtitleColor:"#6b7280",cardTitleColor:"#007FFF",detailsColor:"#374151",iconBackgroundColor:"#007FFF",nestedCardBgColor:"#f8fafc",nestedCardDetailsBackGround:"#f8fafc",nestedCardDetailsColor:"#374151",nestedCardSubtitleColor:"#6b7280",nestedCardTitleColor:"#1f2937",primary:"#007FFF",secondary:"#ffdf00",titleColor:"#007FFF",titleColorActive:"#007FFF",toolbarBgColor:"#f1f5f9",toolbarBtnBgColor:"#ffffff",toolbarTextColor:"#1e293b",timelineBgColor:"#ffffff",iconColor:"#007FFF",buttonHoverBgColor:"#e2e8f0",buttonActiveBgColor:"#007FFF",buttonActiveIconColor:"#ffffff",buttonBorderColor:"#e2e8f0",buttonHoverBorderColor:"#007FFF",buttonActiveBorderColor:"#007FFF",shadowColor:"rgba(0, 0, 0, 0.1)",glowColor:"rgba(0, 127, 255, 0.2)",searchHighlightColor:"rgba(0, 127, 255, 0.2)",darkToggleActiveBgColor:"#007FFF",darkToggleActiveIconColor:"#ffffff",darkToggleActiveBorderColor:"#007FFF",darkToggleGlowColor:"rgba(0, 127, 255, 0.2)"},K={cardBgColor:"#1f2937",cardDetailsBackGround:"#1f2937",cardDetailsColor:"#f3f4f6",cardMediaBgColor:"#111827",cardSubtitleColor:"#d1d5db",cardTitleColor:"#60a5fa",detailsColor:"#f3f4f6",iconBackgroundColor:"#3b82f6",nestedCardBgColor:"#111827",nestedCardDetailsBackGround:"#111827",nestedCardDetailsColor:"#f3f4f6",nestedCardSubtitleColor:"#d1d5db",nestedCardTitleColor:"#f9fafb",primary:"#3b82f6",secondary:"#fbbf24",titleColor:"#60a5fa",titleColorActive:"#60a5fa",toolbarBgColor:"#111827",toolbarBtnBgColor:"#374151",toolbarTextColor:"#f3f4f6",timelineBgColor:"#111827",iconColor:"#93c5fd",buttonHoverBgColor:"#4b5563",buttonActiveBgColor:"#fbbf24",buttonActiveIconColor:"#1f2937",buttonBorderColor:"rgba(255, 255, 255, 0.1)",buttonHoverBorderColor:"#3b82f6",buttonActiveBorderColor:"#3b82f6",shadowColor:"rgba(0, 0, 0, 0.4)",glowColor:"rgba(59, 130, 246, 0.4)",searchHighlightColor:"rgba(96, 165, 250, 0.4)",darkToggleActiveBgColor:"#1e40af",darkToggleActiveIconColor:"#e2e8f0",darkToggleActiveBorderColor:"#3b82f6",darkToggleGlowColor:"rgba(59, 130, 246, 0.4)"},X=Object.freeze({card:"rc-card",cardMedia:"rc-card-media",cardSubTitle:"rc-card-subtitle",cardText:"rc-card-text",cardTitle:"rc-card-title",controls:"rc-controls",title:"rc-title"}),ee=Object.freeze({changeDensity:"Change density",changeDensityOptions:Object.freeze({high:Object.freeze({helpText:"Show more items at once",text:"High"}),low:Object.freeze({helpText:"Show fewer items at once",text:"Low"})}),changeLayout:"Change layout",changeLayoutOptions:Object.freeze({alternating:Object.freeze({helpText:"Show cards in a vertical layout with alternating fashion",text:"Alternating"}),horizontal:Object.freeze({helpText:"Show cards in a horizontal layout",text:"Horizontal"}),horizontal_all:Object.freeze({helpText:"Show all cards in a horizontal layout",text:"Show all cards"}),vertical:Object.freeze({helpText:"Show cards in a vertical layout",text:"Vertical"})}),dark:"Switch to Dark Mode",first:"Go to First",jumpTo:"Jump to",last:"Go to Last",light:"Switch to Light Mode",next:"Next",play:"Play Slideshow",previous:"Previous",stop:"Stop Slideshow",searchPlaceholder:"Search Timeline",searchAriaLabel:"Search timeline content",clearSearch:"Clear Search",previousMatch:"Previous Match",nextMatch:"Next Match",timelinePoint:"Timeline point"}),te=/^#[0-9a-fA-F]{6}$/,ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ne=(e,t)=>{if("string"!=typeof e||"number"!=typeof t)return`rgba(0, 0, 0, ${Math.max(0,Math.min(1,t||0))})`;if(!te.test(e))return console.warn("Invalid hex color provided:",e),`rgba(0, 0, 0, ${Math.max(0,Math.min(1,t))})`;const i=parseInt(e.slice(1),16);return`rgba(${i>>16&255}, ${i>>8&255}, ${255&i}, ${Math.max(0,Math.min(1,t))})`},oe=()=>X,re=()=>ee,ae=()=>{var e;if("undefined"!=typeof window&&null!==(e=window.crypto)&&void 0!==e&&e.getRandomValues)try{const e=new Uint8Array(7);return window.crypto.getRandomValues(e),Array.from(e,(e=>ie[e%62])).join("")}catch(e){console.error("Error generating unique ID:",e)}const t=Date.now().toString(36),i="undefined"!=typeof performance&&performance.now?performance.now().toString().replace(".",""):Date.now().toString(),n=parseInt(i.slice(-6),10),o=Array.from({length:8},((e,t)=>{const i=Math.pow(2,32);return ie[(1664525*(n+t)+1013904223)%i%62]})).join("");return`id-${t}-${o}`};var le,se={exports:{}};var de=(le||(le=1,se.exports=function(){var e=1e3,t=6e4,i=36e5,n="millisecond",o="second",r="minute",a="hour",l="day",s="week",d="month",c="quarter",u="year",h="date",m="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}},v=function(e,t,i){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(i)+e},b={s:v,z:function(e){var t=-e.utcOffset(),i=Math.abs(t),n=Math.floor(i/60),o=i%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(o,2,"0")},m:function e(t,i){if(t.date()<i.date())return-e(i,t);var n=12*(i.year()-t.year())+(i.month()-t.month()),o=t.clone().add(n,d),r=i-o<0,a=t.clone().add(n+(r?-1:1),d);return+(-(n+(i-o)/(r?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:u,w:s,d:l,D:h,h:a,m:r,s:o,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},w="en",y={};y[w]=f;var x="$isDayjsObject",C=function(e){return e instanceof I||!(!e||!e[x])},T=function e(t,i,n){var o;if(!t)return w;if("string"==typeof t){var r=t.toLowerCase();y[r]&&(o=r),i&&(y[r]=i,o=r);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;y[l]=t,o=l}return!n&&o&&(w=o),o||!n&&w},S=function(e,t){if(C(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new I(i)},k=b;k.l=T,k.i=C,k.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var I=function(){function f(e){this.$L=T(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=f.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,i=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var o=n[2]-1||0,r=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===m)},v.isSame=function(e,t){var i=S(e);return this.startOf(t)<=i&&i<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,i){return k.u(e)?this[t]:this.set(i,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var i=this,n=!!k.u(t)||t,c=k.p(e),m=function(e,t){var o=k.w(i.$u?Date.UTC(i.$y,t,e):new Date(i.$y,t,e),i);return n?o:o.endOf(l)},p=function(e,t){return k.w(i.toDate()[e].apply(i.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),i)},g=this.$W,f=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(c){case u:return n?m(1,0):m(31,11);case d:return n?m(1,f):m(0,f+1);case s:var w=this.$locale().weekStart||0,y=(g<w?g+7:g)-w;return m(n?v-y:v+(6-y),f);case l:case h:return p(b+"Hours",0);case a:return p(b+"Minutes",1);case r:return p(b+"Seconds",2);case o:return p(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var i,s=k.p(e),c="set"+(this.$u?"UTC":""),m=(i={},i[l]=c+"Date",i[h]=c+"Date",i[d]=c+"Month",i[u]=c+"FullYear",i[a]=c+"Hours",i[r]=c+"Minutes",i[o]=c+"Seconds",i[n]=c+"Milliseconds",i)[s],p=s===l?this.$D+(t-this.$W):t;if(s===d||s===u){var g=this.clone().set(h,1);g.$d[m](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else m&&this.$d[m](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[k.p(e)]()},v.add=function(n,c){var h,m=this;n=Number(n);var p=k.p(c),g=function(e){var t=S(m);return k.w(t.date(t.date()+Math.round(e*n)),m)};if(p===d)return this.set(d,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===l)return g(1);if(p===s)return g(7);var f=(h={},h[r]=t,h[a]=i,h[o]=e,h)[p]||1,v=this.$d.getTime()+n*f;return k.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,i=this.$locale();if(!this.isValid())return i.invalidDate||m;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=k.z(this),r=this.$H,a=this.$m,l=this.$M,s=i.weekdays,d=i.months,c=i.meridiem,u=function(e,i,o,r){return e&&(e[i]||e(t,n))||o[i].slice(0,r)},h=function(e){return k.s(r%12||12,e,"0")},p=c||function(e,t,i){var n=e<12?"AM":"PM";return i?n.toLowerCase():n};return n.replace(g,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return l+1;case"MM":return k.s(l+1,2,"0");case"MMM":return u(i.monthsShort,l,d,3);case"MMMM":return u(d,l);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return u(i.weekdaysMin,t.$W,s,2);case"ddd":return u(i.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(r);case"HH":return k.s(r,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(r,a,!0);case"A":return p(r,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,h,m){var p,g=this,f=k.p(h),v=S(n),b=(v.utcOffset()-this.utcOffset())*t,w=this-v,y=function(){return k.m(g,v)};switch(f){case u:p=y()/12;break;case d:p=y();break;case c:p=y()/3;break;case s:p=(w-b)/6048e5;break;case l:p=(w-b)/864e5;break;case a:p=w/i;break;case r:p=w/t;break;case o:p=w/e;break;default:p=w}return m?p:k.a(p)},v.daysInMonth=function(){return this.endOf(d).$D},v.$locale=function(){return y[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var i=this.clone(),n=T(e,t,!0);return n&&(i.$L=n),i},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},f}(),L=I.prototype;return S.prototype=L,[["$ms",n],["$s",o],["$m",r],["$H",a],["$W",l],["$M",d],["$y",u],["$D",h]].forEach((function(e){L[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,I,S),e.$i=!0),S},S.locale=T,S.isDayjs=C,S.unix=function(e){return S(1e3*e)},S.en=y[w],S.Ls=y,S.p={},S}()),se.exports),ce=y(de);const ue=o({staticDefaults:{borderLessCards:!1,cardLess:!1,disableTimelinePoint:!1,disableToolbar:!1,enableBreakPoint:!0,enableDarkToggle:!1,enableLayoutSwitch:!0,enableQuickJump:!0,focusActiveItemOnLoad:!1,highlightCardsOnHover:!1,isChild:!1,lineWidth:3,mediaHeight:200,nestedCardHeight:150,noUniqueId:!1,parseDetailsAsHTML:!1,scrollable:{scrollbar:!1},showProgressOnSlideshow:!0,showOverallSlideshowProgress:!0,timelinePointDimension:16,timelinePointShape:"circle",titleDateFormat:"MMM DD, YYYY",toolbarPosition:"top",uniqueId:"react-chrono",useReadMore:!0},computedCardHeight:200,computedActiveItemIndex:0,computedSlideShowType:"reveal",computedMediaAlign:"center",newContentDetailsHeight:150,memoizedButtonTexts:{first:"First",last:"Last",play:"Play",stop:"Stop",previous:"Previous",next:"Next",dark:"Dark",light:"Light",timelinePoint:"Timeline Point",searchPlaceholder:"Search...",searchAriaLabel:"Search timeline",clearSearch:"Clear search",nextMatch:"Next match",previousMatch:"Previous match"},memoizedClassNames:{},memoizedFontSizes:{},memoizedMediaSettings:{},memoizedSemanticTags:{}}),he=o({isDarkMode:!1,isMobile:!1,horizontalAll:!1,textContentDensity:"HIGH",memoizedTheme:{primary:"#007FFF",secondary:"#ffdf00",cardBgColor:"#ffffff",cardDetailsBackGround:"#ffffff",cardDetailsColor:"#000",cardMediaBgColor:"#f5f5f5",cardSubtitleColor:"#000",cardTitleColor:"#007FFF",detailsColor:"#000",iconBackgroundColor:"#007FFF",nestedCardBgColor:"#f5f5f5",nestedCardDetailsBackGround:"#f5f5f5",nestedCardDetailsColor:"#000",nestedCardSubtitleColor:"#000",nestedCardTitleColor:"#000",titleColor:"#007FFF",titleColorActive:"#007FFF",toolbarBgColor:"#f5f5f5",toolbarBtnBgColor:"#ffffff",toolbarTextColor:"#000",timelineBgColor:"#f5f5f5"},toggleDarkMode:()=>{},updateHorizontalAllCards:()=>{},updateTextContentDensity:()=>{}}),me=o({}),pe=()=>r(me),ge=()=>{const e=r(ue);if(e&&"react-chrono"!==e.staticDefaults.uniqueId)return e;return(e=>({staticDefaults:{borderLessCards:(null==e?void 0:e.borderLessCards)??!1,cardLess:(null==e?void 0:e.cardLess)??!1,disableTimelinePoint:(null==e?void 0:e.disableTimelinePoint)??!1,disableToolbar:(null==e?void 0:e.disableToolbar)??!1,enableBreakPoint:(null==e?void 0:e.enableBreakPoint)??!0,enableDarkToggle:(null==e?void 0:e.enableDarkToggle)??!1,enableLayoutSwitch:(null==e?void 0:e.enableLayoutSwitch)??!0,enableQuickJump:(null==e?void 0:e.enableQuickJump)??!0,focusActiveItemOnLoad:(null==e?void 0:e.focusActiveItemOnLoad)??!1,highlightCardsOnHover:(null==e?void 0:e.highlightCardsOnHover)??!1,isChild:(null==e?void 0:e.isChild)??!1,lineWidth:(null==e?void 0:e.lineWidth)??3,mediaHeight:(null==e?void 0:e.mediaHeight)??200,nestedCardHeight:(null==e?void 0:e.nestedCardHeight)??150,noUniqueId:(null==e?void 0:e.noUniqueId)??!1,parseDetailsAsHTML:(null==e?void 0:e.parseDetailsAsHTML)??!1,scrollable:(null==e?void 0:e.scrollable)??{scrollbar:!1},timelinePointDimension:(null==e?void 0:e.timelinePointDimension)??16,timelinePointShape:(null==e?void 0:e.timelinePointShape)??"circle",titleDateFormat:(null==e?void 0:e.titleDateFormat)??"MMM DD, YYYY",toolbarPosition:(null==e?void 0:e.toolbarPosition)??"top",uniqueId:(null==e?void 0:e.uniqueId)??"react-chrono",useReadMore:(null==e?void 0:e.useReadMore)??!0},computedCardHeight:(null==e?void 0:e.cardHeight)??200,computedActiveItemIndex:(null==e?void 0:e.activeItemIndex)??0,computedSlideShowType:(null==e?void 0:e.slideShowType)??"reveal",computedMediaAlign:(null==e?void 0:e.mediaAlign)??"center",newContentDetailsHeight:(null==e?void 0:e.contentDetailsHeight)??150,memoizedButtonTexts:{...re(),...null==e?void 0:e.buttonTexts},memoizedClassNames:{...oe(),...null==e?void 0:e.classNames},memoizedFontSizes:(null==e?void 0:e.fontSizes)??{},memoizedMediaSettings:(null==e?void 0:e.mediaSettings)??{},memoizedSemanticTags:(null==e?void 0:e.semanticTags)??{},mode:null==e?void 0:e.mode,cardHeight:null==e?void 0:e.cardHeight,flipLayout:null==e?void 0:e.flipLayout,items:null==e?void 0:e.items,fontSizes:null==e?void 0:e.fontSizes,textOverlay:null==e?void 0:e.textOverlay,mediaSettings:null==e?void 0:e.mediaSettings,responsiveBreakPoint:null==e?void 0:e.responsiveBreakPoint,enableBreakPoint:null==e?void 0:e.enableBreakPoint,slideItemDuration:null==e?void 0:e.slideItemDuration,slideShowType:null==e?void 0:e.slideShowType,cardPositionHorizontal:null==e?void 0:e.cardPositionHorizontal,disableNavOnKey:null==e?void 0:e.disableNavOnKey,itemWidth:null==e?void 0:e.itemWidth,lineWidth:null==e?void 0:e.lineWidth,scrollable:null==e?void 0:e.scrollable,onScrollEnd:null==e?void 0:e.onScrollEnd,toolbarPosition:null==e?void 0:e.toolbarPosition,disableToolbar:null==e?void 0:e.disableToolbar,cardWidth:null==e?void 0:e.cardWidth,borderLessCards:null==e?void 0:e.borderLessCards,disableAutoScrollOnClick:null==e?void 0:e.disableAutoScrollOnClick,classNames:null==e?void 0:e.classNames,showProgressOnSlideshow:null==e?void 0:e.showProgressOnSlideshow,showOverallSlideshowProgress:null==e?void 0:e.showOverallSlideshowProgress,disableInteraction:null==e?void 0:e.disableInteraction,highlightCardsOnHover:null==e?void 0:e.highlightCardsOnHover,disableClickOnCircle:null==e?void 0:e.disableClickOnCircle,disableTimelinePoint:null==e?void 0:e.disableTimelinePoint,enableQuickJump:null==e?void 0:e.enableQuickJump,enableLayoutSwitch:null==e?void 0:e.enableLayoutSwitch,cardLess:null==e?void 0:e.cardLess,useReadMore:null==e?void 0:e.useReadMore}))(pe())},fe=()=>{const e=r(he);if(e&&e.toggleDarkMode&&"function"==typeof e.toggleDarkMode)return e;return(e=>({isDarkMode:(null==e?void 0:e.darkMode)??!1,isMobile:(null==e?void 0:e.isMobile)??!1,horizontalAll:(null==e?void 0:e.showAllCardsHorizontal)??!1,textContentDensity:(null==e?void 0:e.textDensity)??"HIGH",memoizedTheme:(null==e?void 0:e.theme)??{},toggleDarkMode:(null==e?void 0:e.toggleDarkMode)??(()=>{}),updateTextContentDensity:(null==e?void 0:e.updateTextContentDensity)??(()=>{}),updateHorizontalAllCards:(null==e?void 0:e.updateHorizontalAllCards)??(()=>{})}))(pe())};function ve(e,t,i){var n=this,o=a(null),r=a(0),d=a(null),c=a([]),u=a(),h=a(),m=a(e),p=a(!0);m.current=e;var g="undefined"!=typeof window,f=!t&&0!==t&&g;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var v=!!(i=i||{}).leading,b=!("trailing"in i)||!!i.trailing,w="maxWait"in i,y="debounceOnServer"in i&&!!i.debounceOnServer,x=w?Math.max(+i.maxWait||0,t):null;l((function(){return p.current=!0,function(){p.current=!1}}),[]);var C=s((function(){var e=function(e){var t=c.current,i=u.current;return c.current=u.current=null,r.current=e,h.current=m.current.apply(i,t)},i=function(e,t){f&&cancelAnimationFrame(d.current),d.current=f?requestAnimationFrame(e):setTimeout(e,t)},a=function(e){if(!p.current)return!1;var i=e-o.current;return!o.current||i>=t||i<0||w&&e-r.current>=x},l=function(t){return d.current=null,b&&c.current?e(t):(c.current=u.current=null,h.current)},s=function e(){var n=Date.now();if(a(n))return l(n);if(p.current){var s=t-(n-o.current),d=w?Math.min(s,x-(n-r.current)):s;i(e,d)}},C=function(){if(g||y){var l=Date.now(),m=a(l);if(c.current=[].slice.call(arguments),u.current=n,o.current=l,m){if(!d.current&&p.current)return r.current=o.current,i(s,t),v?e(o.current):h.current;if(w)return i(s,t),e(o.current)}return d.current||i(s,t),h.current}};return C.cancel=function(){d.current&&(f?cancelAnimationFrame(d.current):clearTimeout(d.current)),r.current=0,c.current=o.current=u.current=d.current=null},C.isPending=function(){return!!d.current},C.flush=function(){return d.current?l(Date.now()):h.current},C}),[v,w,t,x,b,f,g,y]);return C}function be(e,t,i){if("undefined"!=typeof window)try{e&&e.removeEventListener("change",t),window.removeEventListener("resize",i)}catch(e){console.error("Error removing media listeners:",e)}}const we=(e,{onMatch:t,enabled:i=!0,debounceDelay:n=100}={})=>{const[o,r]=d(!1),s=a(null),u=a(!1),h=c((e=>{u.current||r(e.matches)}),[]),m=ve((()=>{if(!s.current||u.current)return;const e=s.current.matches;r(e)}),n,{maxWait:1e3});l((()=>{if(!i||"undefined"==typeof window)return;u.current=!1,s.current&&be(s.current,h,m),s.current=function(e){if("undefined"==typeof window)return null;try{return window.matchMedia(e)}catch(e){return console.error("Error creating media query:",e),null}}(e);const t=s.current;return t?(h(t),function(e,t,i){if(e&&"undefined"!=typeof window)try{e.addEventListener("change",t),window.addEventListener("resize",i)}catch(e){console.error("Error adding media listeners:",e)}}(t,h,m),()=>{u.current=!0,t&&be(t,h,m),m.cancel(),s.current=null}):void 0}),[e,i,h,m]);const p=a(t);return p.current=t,l((()=>{o&&p.current&&p.current()}),[o]),o},ye=t=>{const{cardHeight:i=200,cardLess:n=!1,flipLayout:o,items:r=[],theme:a,buttonTexts:l,classNames:u,mode:h="VERTICAL_ALTERNATING",fontSizes:m,textOverlay:p,darkMode:g,slideShow:f,onThemeChange:v,mediaSettings:b,mediaHeight:w=200,contentDetailsHeight:y=10,showAllCardsHorizontal:x,textDensity:C="HIGH",responsiveBreakPoint:T=1024,enableBreakPoint:S,semanticTags:k,children:I}=t,[L,$]=d(g),[A,M]=d(x??!1),[N,D]=d(!1),[H,O]=d(C),z=c((()=>{$(!L),null==v||v()}),[L,v]),R=c((e=>{M(e)}),[]),E=c((e=>{O(e)}),[]);we(`(max-width: ${T-1}px)`,{onMatch:()=>D(!0),enabled:S}),we(`(min-width: ${T}px)`,{onMatch:()=>D(!1),enabled:S});const B=s((()=>({borderLessCards:t.borderLessCards??!1,cardLess:n,disableToolbar:t.disableToolbar??!1,enableBreakPoint:t.enableBreakPoint??!0,enableDarkToggle:t.enableDarkToggle??!1,enableLayoutSwitch:t.enableLayoutSwitch??!0,enableQuickJump:t.enableQuickJump??!0,focusActiveItemOnLoad:t.focusActiveItemOnLoad??!1,highlightCardsOnHover:t.highlightCardsOnHover??!1,lineWidth:t.lineWidth??3,mediaHeight:w,nestedCardHeight:t.nestedCardHeight??150,parseDetailsAsHTML:t.parseDetailsAsHTML??!1,scrollable:t.scrollable??{scrollbar:!1},timelinePointDimension:t.timelinePointDimension??16,timelinePointShape:t.timelinePointShape??"circle",titleDateFormat:t.titleDateFormat??"MMM DD, YYYY",toolbarPosition:t.toolbarPosition??"top",uniqueId:t.uniqueId??"react-chrono",useReadMore:t.useReadMore??!0,disableTimelinePoint:t.disableTimelinePoint??!1,isChild:t.isChild??!1,noUniqueId:t.noUniqueId??!1})),[t.borderLessCards,n,t.disableToolbar,t.enableBreakPoint,t.enableDarkToggle,t.enableLayoutSwitch,t.enableQuickJump,t.focusActiveItemOnLoad,t.highlightCardsOnHover,t.lineWidth,w,t.nestedCardHeight,t.parseDetailsAsHTML,t.scrollable,t.timelinePointDimension,t.timelinePointShape,t.titleDateFormat,t.toolbarPosition,t.uniqueId,t.useReadMore,t.disableTimelinePoint,t.isChild,t.noUniqueId]),P=s((()=>Math.max((y??0)+(w??0),i)),[y,w,i]),F=s((()=>{const e=Math.round(.75*P),t=y??0;return t>P?Math.min(t,e):Math.max(t,e)}),[P,y]),W=s((()=>n?i??80:i),[n,i]),j=s((()=>o?(null==r?void 0:r.length)-1:0),[o,null==r?void 0:r.length]),V=s((()=>(e=>"VERTICAL_ALTERNATING"===e?"slide_from_sides":"reveal")(h)),[h]),_=s((()=>"VERTICAL"!==h||p?"center":"left"),[h,p]),q=s((()=>({...re(),...l})),[l]),G=s((()=>({...oe(),...u})),[u]),U=s((()=>({cardSubtitle:"0.85rem",cardText:"1rem",cardTitle:"1rem",title:"1rem",...m})),[m]),Y=s((()=>({align:_,fit:"cover",...b})),[_,b]),Z=s((()=>({cardTitle:"span",cardSubtitle:"span",...k})),[k]),J=s((()=>({staticDefaults:B,computedCardHeight:W,computedActiveItemIndex:j,computedSlideShowType:V,computedMediaAlign:_,newContentDetailsHeight:F,memoizedButtonTexts:q,memoizedClassNames:G,memoizedFontSizes:U,memoizedMediaSettings:Y,memoizedSemanticTags:Z,mode:h,cardHeight:i,flipLayout:o,items:r,fontSizes:m,textOverlay:p,mediaSettings:b,responsiveBreakPoint:T,enableBreakPoint:S,slideItemDuration:t.slideItemDuration??2e3,slideShowType:V,cardPositionHorizontal:t.cardPositionHorizontal,disableNavOnKey:t.disableNavOnKey,itemWidth:t.itemWidth??200,lineWidth:t.lineWidth??3,scrollable:"boolean"!=typeof t.scrollable||t.scrollable,onScrollEnd:t.onScrollEnd,toolbarPosition:t.toolbarPosition??"top",disableToolbar:t.disableToolbar??!1,cardWidth:t.cardWidth,borderLessCards:t.borderLessCards??!1,disableAutoScrollOnClick:!!t.disableInteraction,classNames:G,showProgressOnSlideshow:f,showOverallSlideshowProgress:t.showOverallSlideshowProgress??f,disableInteraction:!1,highlightCardsOnHover:t.highlightCardsOnHover??!1,disableClickOnCircle:!!t.disableInteraction,disableTimelinePoint:!!t.disableInteraction,enableQuickJump:t.enableQuickJump??!0,enableLayoutSwitch:t.enableLayoutSwitch??!0,cardLess:n,useReadMore:t.useReadMore??!0})),[B,W,j,V,_,F,q,G,U,Y,Z,h,i,o,r,m,p,b,T,S,f,t.cardPositionHorizontal,t.disableNavOnKey,t.itemWidth,t.lineWidth,t.scrollable,t.onScrollEnd,t.toolbarPosition,t.disableToolbar,t.cardWidth,t.borderLessCards,t.disableInteraction,t.highlightCardsOnHover,t.enableQuickJump,t.enableLayoutSwitch,t.useReadMore,t.showOverallSlideshowProgress]),X=s((()=>{return{...(e=L,e?K:Q),...a};var e}),[L,a]),ee=s((()=>({isDarkMode:L,isMobile:N,horizontalAll:A,textContentDensity:H,memoizedTheme:X,toggleDarkMode:z,updateHorizontalAllCards:R,updateTextContentDensity:E})),[L,N,A,H,X,z,R,E]);return e(ue.Provider,{value:J,children:e(he.Provider,{value:ee,children:I})})},xe=me,Ce=t=>e(ye,{...t,children:e(Te,{children:t.children})}),Te=({children:t})=>{const i={...r(ue),...r(he)},n={...i,textDensity:i.textContentDensity,theme:i.memoizedTheme,buttonTexts:i.memoizedButtonTexts,classNames:i.memoizedClassNames,fontSizes:i.memoizedFontSizes,mediaSettings:i.memoizedMediaSettings,semanticTags:i.memoizedSemanticTags,contentDetailsHeight:i.newContentDetailsHeight,activeItemIndex:i.computedActiveItemIndex,slideShowType:i.slideShowType??i.computedSlideShowType,cardPositionHorizontal:i.cardPositionHorizontal,isMobile:i.isMobile,showAllCardsHorizontal:i.horizontalAll,darkMode:i.isDarkMode,borderLessCards:i.staticDefaults.borderLessCards,cardLess:i.staticDefaults.cardLess,disableToolbar:i.staticDefaults.disableToolbar,enableBreakPoint:i.staticDefaults.enableBreakPoint,enableDarkToggle:i.staticDefaults.enableDarkToggle,enableLayoutSwitch:i.staticDefaults.enableLayoutSwitch,enableQuickJump:i.staticDefaults.enableQuickJump,focusActiveItemOnLoad:i.staticDefaults.focusActiveItemOnLoad,highlightCardsOnHover:i.staticDefaults.highlightCardsOnHover,lineWidth:i.staticDefaults.lineWidth,mediaHeight:i.staticDefaults.mediaHeight,nestedCardHeight:i.staticDefaults.nestedCardHeight,parseDetailsAsHTML:i.staticDefaults.parseDetailsAsHTML,scrollable:i.staticDefaults.scrollable,timelinePointDimension:i.staticDefaults.timelinePointDimension,timelinePointShape:i.staticDefaults.timelinePointShape,titleDateFormat:i.staticDefaults.titleDateFormat,toolbarPosition:i.staticDefaults.toolbarPosition,uniqueId:i.staticDefaults.uniqueId,useReadMore:i.staticDefaults.useReadMore,toggleDarkMode:i.toggleDarkMode,updateHorizontalAllCards:i.updateHorizontalAllCards,updateTextContentDensity:i.updateTextContentDensity};return e(me.Provider,{value:n,children:t})};var Se,ke={exports:{}};var Ie,Le=y((Se||(Se=1,Ie=ke,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=n(e,i(o)))}return e}function i(i){if("string"==typeof i||"number"==typeof i)return i;if("object"!=typeof i)return"";if(Array.isArray(i))return t.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var r in i)e.call(i,r)&&i[r]&&(o=n(o,r));return o}function n(e,t){return t?e?e+" "+t:e+t:e}Ie.exports?(t.default=t,Ie.exports=t):window.classNames=t}()),ke.exports));const $e=(e,t)=>{const[i,n]=d(0),o=s((()=>(i,o)=>{const{clientWidth:r,scrollLeft:a,scrollTop:l,clientHeight:s}=i,{pointOffset:d=0,pointWidth:c=0,contentHeight:u=0,contentOffset:h=0}=o;"HORIZONTAL"===e&&t?((e,t,i,n,o,r)=>{const a=e+t,l=i+n,s=i-e,d=a-i;(!(i>=e&&l<=a)&&!(i<e&&l>e||l>a&&i<a)||s<=o&&s>=0||d<=o&&d>=0)&&r(i-o)})(a,r,d,c,t,n):"VERTICAL"!==e&&"VERTICAL_ALTERNATING"!==e||((e,t,i,n,o)=>{const r=e+t,a=i+n,l=i-n,s=!(i>=e&&a<=r)||i<e&&a>e||a>r&&i<r;s&&l+n<r?o(l+Math.round(n/2)):s&&o(l)})(l,s,h,u,n)}),[e,t]);return[i,o]},Ae=0,Me=2,Ne=5,De=10,He=100,Oe=v(["scrollbar-color:"," default;scrollbar-width:thin;&::-webkit-scrollbar{width:0.3em;}&::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,0.2);}&::-webkit-scrollbar-thumb{background-color:",";outline:1px solid ",";}"],(e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.primary}),(e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.primary}),(e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.primary})),ze=f.div.withConfig({displayName:"Wrapper",componentId:"sc-cif21b-0"})(["display:flex;flex-direction:column;height:100%;z-index:",";&:focus{outline:0;}overflow:hidden;position:relative;width:100%;&.horizontal{justify-content:flex-start;}&.js-focus-visible :focus:not(.focus-visible){}&.js-focus-visible .focus-visible{outline:2px solid #528deb;}"],Ne-2),Re=f.div.withConfig({displayName:"TimelineMainWrapper",componentId:"sc-cif21b-1"})(["align-items:flex-start;display:flex;justify-content:center;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;",";scroll-behavior:smooth;width:100%;background-color:",";background:transparent;F "," &.horizontal{min-height:150px;}padding:",";"],(e=>"HORIZONTAL"===e.mode?"position: relative":""),(e=>{var t;return(null===(t=e.theme)||void 0===t?void 0:t.timelineBgColor)||"transparent"}),Oe,(({$scrollable:e})=>e?"":"0 1rem 0")),Ee=f.div.withConfig({displayName:"TimelineMain",componentId:"sc-cif21b-2"})(["position:absolute;top:50%;left:0;display:flex;align-items:center;transition:all 0.2s ease;transform:translate(0,-50%);&.vertical{align-items:flex-start;justify-content:flex-start;width:100%;height:100%;}"]),Be=f.div.withConfig({displayName:"Outline",componentId:"sc-cif21b-3"})(["position:absolute;right:0;left:0;width:100%;height:",";margin-right:auto;margin-left:auto;background:",";"],(e=>`${e.height}px`),(e=>e.color));f.div.withConfig({displayName:"TimelineControlContainer",componentId:"sc-cif21b-4"})(["display:flex;align-items:center;justify-content:center;min-height:3rem;filter:",";&.hide{visibility:hidden;}&.show{visibility:visible;}"],(e=>e.active?"opacity(1);":"opacity(0.9);"));const Pe=f.div.withConfig({displayName:"TimelineContentRender",componentId:"sc-cif21b-5"})(["display:flex;align-items:flex-start;justify-content:",";width:98%;margin-right:auto;margin-left:auto;overflow-x:hidden;"],(e=>e.$showAllCards?"flex-start":"center")),Fe=f.div.withConfig({displayName:"ToolbarWrapper",componentId:"sc-cif21b-6"})(["display:flex;font-weight:bold;text-align:center;text-decoration:none;border-radius:6px;width:100%;padding:0;margin:",";order:",";z-index:",";align-items:center;justify-content:space-between;gap:1rem;"],(e=>"top"===e.position?"0 0 20px 0":"20px 0 0 0"),(e=>"top"===e.position?0:1),De-1),We=f.ul.withConfig({displayName:"ExtraControls",componentId:"sc-cif21b-7"})(["display:flex;align-items:center;list-style:none;margin:0;padding:0.1rem;visibility:",";flex-shrink:0;"],(e=>e.$hide?"hidden":"visible"));f.li.withConfig({displayName:"ExtraControlChild",componentId:"sc-cif21b-8"})(["display:flex;margin:0.5rem 0;margin-right:0.5rem;"]);const je=f.div.withConfig({displayName:"SearchWrapper",componentId:"sc-cif21b-9"})(["display:flex;align-items:center;background-color:",";padding:0.1rem 0.5rem;border-radius:6px;border:1px solid ",";flex-grow:1;max-width:400px;margin:0 1rem;transition:border-color 0.2s ease,box-shadow 0.2s ease;&:focus-within{border-color:",";box-shadow:0 0 0 2px ",";}"],(e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.toolbarBtnBgColor}),(e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.buttonBorderColor}),(e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.primary}),(e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.glowColor})),Ve=f.input.withConfig({displayName:"SearchInput",componentId:"sc-cif21b-10"})(["flex-grow:1;border:none;outline:n