react-chrono
Version:
A Modern Timeline component for React
1 lines • 143 kB
JavaScript
"use strict";var e=require("react/jsx-runtime"),t=require("react"),i=require("styled-components"),n=require("react-dom");function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,a,l,s,d,c,u,h,m,p,f,g={exports:{}},v={},b={exports:{}},x={};function w(){if(r)return x;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}r=1;var t=/javascript\s*\:/gim;return x.whiteList=e(),x.getDefaultWhiteList=e,x.onAttr=function(e,t,i){},x.onIgnoreAttr=function(e,t,i){},x.safeAttrValue=function(e,i){return t.test(i)?"":i},x}function C(){return l?a:(l=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,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}})}function y(){if(u)return c;u=1;var e=w(),t=function(){if(d)return s;d=1;var e=C();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 C(),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}}))},c=n}function T(){return h||(h=1,function(e,t){var i=w(),n=y();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)}(b,b.exports)),b.exports}function k(){return p?m:(p=1,m={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 S(){if(f)return v;f=1;var e=T().FilterCSS,t=T().getDefaultWhiteList,i=k();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 b(e){return e.replace(s,""")}function x(e){return e.replace(d,'"')}function w(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 C(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 S(e){return e=y(e=C(e=w(e=x(e))))}function I(e){return e=r(e=b(e))}return v.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"]},v.getDefaultWhiteList=n,v.onTag=function(e,t,i){},v.onIgnoreTag=function(e,t,i){},v.onTagAttr=function(e,t,i){},v.onIgnoreTagAttr=function(e,t,i){},v.safeAttrValue=function(e,t,n,r){if(n=S(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=I(n)},v.escapeHtml=r,v.escapeQuote=b,v.unescapeQuote=x,v.escapeHtmlEntities=w,v.escapeDangerHtml5Entities=C,v.clearNonPrintableCharacter=y,v.friendlyAttrValue=S,v.escapeAttrValue=I,v.onIgnoreTagStripAll=function(){return""},v.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)}}},v.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},v.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("")},v.attributeWrapSign='"',v.cssFilter=o,v.getDefaultCSSWhiteList=t,v}var I,M,L,$,A={};function j(){if(I)return A;I=1;var e=k();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 A.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,f=e.charAt(d-p);""===f.trim()||"="===f;){if("="===f){s=m;continue e}f=e.charAt(d-++p)}}else if(m===s){s=!1;continue}}return a<c&&(r+=o(e.substr(a))),r},A.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 f,g=t.charAt(p);if(!1!==u||"="!==g)if(!1===u||p!==d)if(/\s|\n|\t/.test(g)){if(t=t.replace(/\s|\n|\t/g," "),!1===u){if(-1===(f=o(t,p))){m(e.trim(t.slice(s,p))),u=!1,s=p+1;continue}p=f-1;continue}if(-1===(f=a(t,p-1))){m(u,l(e.trim(t.slice(s,p)))),u=!1,s=p+1;continue}}else;else{if(-1===(f=t.indexOf(g,p+1)))break;m(u,e.trim(t.slice(d+1,f))),u=!1,s=(p=f)+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(" "))},A}function N(){if(L)return M;L=1;var e=T().FilterCSS,t=S(),i=j(),n=i.parseTag,o=i.parseAttr,r=k();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,f=i.attributeWrapSign,g=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 x=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),w=s[i],C=o(x.html,(function(e,t){var n=-1!==r.indexOf(w,e),o=u(i,e,t,n);return a(o)?n?(t=m(i,e,t,g))?e+"="+f+t+f:e:a(o=h(i,e,t,n))?void 0:o:o}));return n="<"+i,C&&(n+=" "+C),x.closing&&(n+=" /"),n+=">"}return a(b=c(i,n,v))?p(n):b}),p);return v&&(b=v.remove(b)),b},M=l}var D=($||($=1,function(e,t){var i=S(),n=j(),o=N();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)}(g,g.exports)),g.exports),H=o(D);const R={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)"},O={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)"},E=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"}),z=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"}),B=/^#[0-9a-fA-F]{6}$/,P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",F=(e,t)=>{if("string"!=typeof e||"number"!=typeof t)return`rgba(0, 0, 0, ${Math.max(0,Math.min(1,t||0))})`;if(!B.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))})`},W=()=>E,V=()=>z,q=()=>{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=>P[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 P[(1664525*(n+t)+1013904223)%i%62]})).join("");return`id-${t}-${o}`};var _,G={exports:{}};var U=(_||(_=1,G.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+)?$/,f=/\[([^\]]+)]|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,g={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}},x="en",w={};w[x]=g;var C="$isDayjsObject",y=function(e){return e instanceof I||!(!e||!e[C])},T=function e(t,i,n){var o;if(!t)return x;if("string"==typeof t){var r=t.toLowerCase();w[r]&&(o=r),i&&(w[r]=i,o=r);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;w[l]=t,o=l}return!n&&o&&(x=o),o||!n&&x},k=function(e,t){if(y(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new I(i)},S=b;S.l=T,S.i=y,S.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var I=function(){function g(e){this.$L=T(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[C]=!0}var v=g.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(S.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 S},v.isValid=function(){return!(this.$d.toString()===m)},v.isSame=function(e,t){var i=k(e);return this.startOf(t)<=i&&i<=this.endOf(t)},v.isAfter=function(e,t){return k(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<k(e)},v.$g=function(e,t,i){return S.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=!!S.u(t)||t,c=S.p(e),m=function(e,t){var o=S.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 S.w(i.toDate()[e].apply(i.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),i)},f=this.$W,g=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,g):m(0,g+1);case s:var x=this.$locale().weekStart||0,w=(f<x?f+7:f)-x;return m(n?v-w:v+(6-w),g);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=S.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 f=this.clone().set(h,1);f.$d[m](p),f.init(),this.$d=f.set(h,Math.min(this.$D,f.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[S.p(e)]()},v.add=function(n,c){var h,m=this;n=Number(n);var p=S.p(c),f=function(e){var t=k(m);return S.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 f(1);if(p===s)return f(7);var g=(h={},h[r]=t,h[a]=i,h[o]=e,h)[p]||1,v=this.$d.getTime()+n*g;return S.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=S.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 S.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(f,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return l+1;case"MM":return S.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 S.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 S.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 S.s(a,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.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,f=this,g=S.p(h),v=k(n),b=(v.utcOffset()-this.utcOffset())*t,x=this-v,w=function(){return S.m(f,v)};switch(g){case u:p=w()/12;break;case d:p=w();break;case c:p=w()/3;break;case s:p=(x-b)/6048e5;break;case l:p=(x-b)/864e5;break;case a:p=x/i;break;case r:p=x/t;break;case o:p=x/e;break;default:p=x}return m?p:S.a(p)},v.daysInMonth=function(){return this.endOf(d).$D},v.$locale=function(){return w[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 S.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()},g}(),M=I.prototype;return k.prototype=M,[["$ms",n],["$s",o],["$m",r],["$H",a],["$W",l],["$M",d],["$y",u],["$D",h]].forEach((function(e){M[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,I,k),e.$i=!0),k},k.locale=T,k.isDayjs=y,k.unix=function(e){return k(1e3*e)},k.en=w[x],k.Ls=w,k.p={},k}()),G.exports),Y=o(U);const Z=t.createContext({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:{}}),J=t.createContext({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:()=>{}}),Q=t.createContext({}),K=()=>t.useContext(Q),X=()=>{const e=t.useContext(Z);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:{...V(),...null==e?void 0:e.buttonTexts},memoizedClassNames:{...W(),...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}))(K())},ee=()=>{const e=t.useContext(J);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)??(()=>{})}))(K())};function te(e,i,n){var o=this,r=t.useRef(null),a=t.useRef(0),l=t.useRef(null),s=t.useRef([]),d=t.useRef(),c=t.useRef(),u=t.useRef(e),h=t.useRef(!0);u.current=e;var m="undefined"!=typeof window,p=!i&&0!==i&&m;if("function"!=typeof e)throw new TypeError("Expected a function");i=+i||0;var f=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,v="maxWait"in n,b="debounceOnServer"in n&&!!n.debounceOnServer,x=v?Math.max(+n.maxWait||0,i):null;t.useEffect((function(){return h.current=!0,function(){h.current=!1}}),[]);var w=t.useMemo((function(){var e=function(e){var t=s.current,i=d.current;return s.current=d.current=null,a.current=e,c.current=u.current.apply(i,t)},t=function(e,t){p&&cancelAnimationFrame(l.current),l.current=p?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!h.current)return!1;var t=e-r.current;return!r.current||t>=i||t<0||v&&e-a.current>=x},w=function(t){return l.current=null,g&&s.current?e(t):(s.current=d.current=null,c.current)},C=function e(){var o=Date.now();if(n(o))return w(o);if(h.current){var l=i-(o-r.current),s=v?Math.min(l,x-(o-a.current)):l;t(e,s)}},y=function(){if(m||b){var u=Date.now(),p=n(u);if(s.current=[].slice.call(arguments),d.current=o,r.current=u,p){if(!l.current&&h.current)return a.current=r.current,t(C,i),f?e(r.current):c.current;if(v)return t(C,i),e(r.current)}return l.current||t(C,i),c.current}};return y.cancel=function(){l.current&&(p?cancelAnimationFrame(l.current):clearTimeout(l.current)),a.current=0,s.current=r.current=d.current=l.current=null},y.isPending=function(){return!!l.current},y.flush=function(){return l.current?w(Date.now()):c.current},y}),[f,v,i,x,g,p,m,b]);return w}function ie(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 ne=(e,{onMatch:i,enabled:n=!0,debounceDelay:o=100}={})=>{const[r,a]=t.useState(!1),l=t.useRef(null),s=t.useRef(!1),d=t.useCallback((e=>{s.current||a(e.matches)}),[]),c=te((()=>{if(!l.current||s.current)return;const e=l.current.matches;a(e)}),o,{maxWait:1e3});t.useEffect((()=>{if(!n||"undefined"==typeof window)return;s.current=!1,l.current&&ie(l.current,d,c),l.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=l.current;return t?(d(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,d,c),()=>{s.current=!0,t&&ie(t,d,c),c.cancel(),l.current=null}):void 0}),[e,n,d,c]);const u=t.useRef(i);return u.current=i,t.useEffect((()=>{r&&u.current&&u.current()}),[r]),r},oe=i=>{const{cardHeight:n=200,cardLess:o=!1,flipLayout:r,items:a=[],theme:l,buttonTexts:s,classNames:d,mode:c="VERTICAL_ALTERNATING",fontSizes:u,textOverlay:h,darkMode:m,slideShow:p,onThemeChange:f,mediaSettings:g,mediaHeight:v=200,contentDetailsHeight:b=10,showAllCardsHorizontal:x,textDensity:w="HIGH",responsiveBreakPoint:C=1024,enableBreakPoint:y,semanticTags:T,children:k}=i,[S,I]=t.useState(m),[M,L]=t.useState(x??!1),[$,A]=t.useState(!1),[j,N]=t.useState(w),D=t.useCallback((()=>{I(!S),null==f||f()}),[S,f]),H=t.useCallback((e=>{L(e)}),[]),E=t.useCallback((e=>{N(e)}),[]);ne(`(max-width: ${C-1}px)`,{onMatch:()=>A(!0),enabled:y}),ne(`(min-width: ${C}px)`,{onMatch:()=>A(!1),enabled:y});const z=t.useMemo((()=>({borderLessCards:i.borderLessCards??!1,cardLess:o,disableToolbar:i.disableToolbar??!1,enableBreakPoint:i.enableBreakPoint??!0,enableDarkToggle:i.enableDarkToggle??!1,enableLayoutSwitch:i.enableLayoutSwitch??!0,enableQuickJump:i.enableQuickJump??!0,focusActiveItemOnLoad:i.focusActiveItemOnLoad??!1,highlightCardsOnHover:i.highlightCardsOnHover??!1,lineWidth:i.lineWidth??3,mediaHeight:v,nestedCardHeight:i.nestedCardHeight??150,parseDetailsAsHTML:i.parseDetailsAsHTML??!1,scrollable:i.scrollable??{scrollbar:!1},timelinePointDimension:i.timelinePointDimension??16,timelinePointShape:i.timelinePointShape??"circle",titleDateFormat:i.titleDateFormat??"MMM DD, YYYY",toolbarPosition:i.toolbarPosition??"top",uniqueId:i.uniqueId??"react-chrono",useReadMore:i.useReadMore??!0,disableTimelinePoint:i.disableTimelinePoint??!1,isChild:i.isChild??!1,noUniqueId:i.noUniqueId??!1})),[i.borderLessCards,o,i.disableToolbar,i.enableBreakPoint,i.enableDarkToggle,i.enableLayoutSwitch,i.enableQuickJump,i.focusActiveItemOnLoad,i.highlightCardsOnHover,i.lineWidth,v,i.nestedCardHeight,i.parseDetailsAsHTML,i.scrollable,i.timelinePointDimension,i.timelinePointShape,i.titleDateFormat,i.toolbarPosition,i.uniqueId,i.useReadMore,i.disableTimelinePoint,i.isChild,i.noUniqueId]),B=t.useMemo((()=>Math.max((b??0)+(v??0),n)),[b,v,n]),P=t.useMemo((()=>{const e=Math.round(.75*B),t=b??0;return t>B?Math.min(t,e):Math.max(t,e)}),[B,b]),F=t.useMemo((()=>o?n??80:n),[o,n]),q=t.useMemo((()=>r?(null==a?void 0:a.length)-1:0),[r,null==a?void 0:a.length]),_=t.useMemo((()=>(e=>"VERTICAL_ALTERNATING"===e?"slide_from_sides":"reveal")(c)),[c]),G=t.useMemo((()=>"VERTICAL"!==c||h?"center":"left"),[c,h]),U=t.useMemo((()=>({...V(),...s})),[s]),Y=t.useMemo((()=>({...W(),...d})),[d]),Q=t.useMemo((()=>({cardSubtitle:"0.85rem",cardText:"1rem",cardTitle:"1rem",title:"1rem",...u})),[u]),K=t.useMemo((()=>({align:G,fit:"cover",...g})),[G,g]),X=t.useMemo((()=>({cardTitle:"span",cardSubtitle:"span",...T})),[T]),ee=t.useMemo((()=>({staticDefaults:z,computedCardHeight:F,computedActiveItemIndex:q,computedSlideShowType:_,computedMediaAlign:G,newContentDetailsHeight:P,memoizedButtonTexts:U,memoizedClassNames:Y,memoizedFontSizes:Q,memoizedMediaSettings:K,memoizedSemanticTags:X,mode:c,cardHeight:n,flipLayout:r,items:a,fontSizes:u,textOverlay:h,mediaSettings:g,responsiveBreakPoint:C,enableBreakPoint:y,slideItemDuration:i.slideItemDuration??2e3,slideShowType:_,cardPositionHorizontal:i.cardPositionHorizontal,disableNavOnKey:i.disableNavOnKey,itemWidth:i.itemWidth??200,lineWidth:i.lineWidth??3,scrollable:"boolean"!=typeof i.scrollable||i.scrollable,onScrollEnd:i.onScrollEnd,toolbarPosition:i.toolbarPosition??"top",disableToolbar:i.disableToolbar??!1,cardWidth:i.cardWidth,borderLessCards:i.borderLessCards??!1,disableAutoScrollOnClick:!!i.disableInteraction,classNames:Y,showProgressOnSlideshow:p,showOverallSlideshowProgress:i.showOverallSlideshowProgress??p,disableInteraction:!1,highlightCardsOnHover:i.highlightCardsOnHover??!1,disableClickOnCircle:!!i.disableInteraction,disableTimelinePoint:!!i.disableInteraction,enableQuickJump:i.enableQuickJump??!0,enableLayoutSwitch:i.enableLayoutSwitch??!0,cardLess:o,useReadMore:i.useReadMore??!0})),[z,F,q,_,G,P,U,Y,Q,K,X,c,n,r,a,u,h,g,C,y,p,i.cardPositionHorizontal,i.disableNavOnKey,i.itemWidth,i.lineWidth,i.scrollable,i.onScrollEnd,i.toolbarPosition,i.disableToolbar,i.cardWidth,i.borderLessCards,i.disableInteraction,i.highlightCardsOnHover,i.enableQuickJump,i.enableLayoutSwitch,i.useReadMore,i.showOverallSlideshowProgress]),te=t.useMemo((()=>{return{...(e=S,e?O:R),...l};var e}),[S,l]),ie=t.useMemo((()=>({isDarkMode:S,isMobile:$,horizontalAll:M,textContentDensity:j,memoizedTheme:te,toggleDarkMode:D,updateHorizontalAllCards:H,updateTextContentDensity:E})),[S,$,M,j,te,D,H,E]);return e.jsx(Z.Provider,{value:ee,children:e.jsx(J.Provider,{value:ie,children:k})})},re=Q,ae=t=>e.jsx(oe,{...t,children:e.jsx(le,{children:t.children})}),le=({children:i})=>{const n={...t.useContext(Z),...t.useContext(J)},o={...n,textDensity:n.textContentDensity,theme:n.memoizedTheme,buttonTexts:n.memoizedButtonTexts,classNames:n.memoizedClassNames,fontSizes:n.memoizedFontSizes,mediaSettings:n.memoizedMediaSettings,semanticTags:n.memoizedSemanticTags,contentDetailsHeight:n.newContentDetailsHeight,activeItemIndex:n.computedActiveItemIndex,slideShowType:n.slideShowType??n.computedSlideShowType,cardPositionHorizontal:n.cardPositionHorizontal,isMobile:n.isMobile,showAllCardsHorizontal:n.horizontalAll,darkMode:n.isDarkMode,borderLessCards:n.staticDefaults.borderLessCards,cardLess:n.staticDefaults.cardLess,disableToolbar:n.staticDefaults.disableToolbar,enableBreakPoint:n.staticDefaults.enableBreakPoint,enableDarkToggle:n.staticDefaults.enableDarkToggle,enableLayoutSwitch:n.staticDefaults.enableLayoutSwitch,enableQuickJump:n.staticDefaults.enableQuickJump,focusActiveItemOnLoad:n.staticDefaults.focusActiveItemOnLoad,highlightCardsOnHover:n.staticDefaults.highlightCardsOnHover,lineWidth:n.staticDefaults.lineWidth,mediaHeight:n.staticDefaults.mediaHeight,nestedCardHeight:n.staticDefaults.nestedCardHeight,parseDetailsAsHTML:n.staticDefaults.parseDetailsAsHTML,scrollable:n.staticDefaults.scrollable,timelinePointDimension:n.staticDefaults.timelinePointDimension,timelinePointShape:n.staticDefaults.timelinePointShape,titleDateFormat:n.staticDefaults.titleDateFormat,toolbarPosition:n.staticDefaults.toolbarPosition,uniqueId:n.staticDefaults.uniqueId,useReadMore:n.staticDefaults.useReadMore,toggleDarkMode:n.toggleDarkMode,updateHorizontalAllCards:n.updateHorizontalAllCards,updateTextContentDensity:n.updateTextContentDensity};return e.jsx(Q.Provider,{value:o,children:i})};var se,de={exports:{}};var ce,ue=o((se||(se=1,ce=de,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}ce.exports?(t.default=t,ce.exports=t):window.classNames=t}()),de.exports));const he=(e,i)=>{const[n,o]=t.useState(0),r=t.useMemo((()=>(t,n)=>{const{clientWidth:r,scrollLeft:a,scrollTop:l,clientHeight:s}=t,{pointOffset:d=0,pointWidth:c=0,contentHeight:u=0,contentOffset:h=0}=n;"HORIZONTAL"===e&&i?((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,i,o):"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,o)}),[e,i]);return[n,r]},me=0,pe=2,fe=5,ge=10,ve=100,be=i.css(["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})),xe=i.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;}"],fe-2),we=i.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"}),be,(({$scrollable:e})=>e?"":"0 1rem 0")),Ce=i.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%;}"]),ye=i.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));i.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 Te=i.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")),ke=i.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),ge-1),Se=i.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"));i.li.withConfig({displayName:"ExtraControlChild",componentId:"sc-cif21b-8"})(["display:flex;margin:0.5rem 0;margin-right:0.5rem;"]);const Ie=i.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