1var TL;(()=>{var ia={856:function(at){at.exports=function(){"use strict";var mt=Object.hasOwnProperty,_t=Object.setPrototypeOf,Tt=Object.isFrozen,Ft=Object.getPrototypeOf,ee=Object.getOwnPropertyDescriptor,it=Object.freeze,Yt=Object.seal,ni=Object.create,ie=typeof Reflect<"u"&&Reflect,$t=ie.apply,ct=ie.construct;$t||($t=function(q,R,N){return q.apply(R,N)}),it||(it=function(q){return q}),Yt||(Yt=function(q){return q}),ct||(ct=function(q,R){return new(Function.prototype.bind.apply(q,[null].concat(function(N){if(Array.isArray(N)){for(var rt=0,K=Array(N.length);rt<N.length;rt++)K[rt]=N[rt];return K}return Array.from(N)}(R))))});var T,F=Dt(Array.prototype.forEach),$=Dt(Array.prototype.pop),b=Dt(Array.prototype.push),pt=Dt(String.prototype.toLowerCase),bt=Dt(String.prototype.match),wt=Dt(String.prototype.replace),Y=Dt(String.prototype.indexOf),me=Dt(String.prototype.trim),Rt=Dt(RegExp.prototype.test),tt=(T=TypeError,function(){for(var q=arguments.length,R=Array(q),N=0;N<q;N++)R[N]=arguments[N];return ct(T,R)});function Dt(q){return function(R){for(var N=arguments.length,rt=Array(N>1?N-1:0),K=1;K<N;K++)rt[K-1]=arguments[K];return $t(q,R,rt)}}function X(q,R){_t&&_t(q,null);for(var N=R.length;N--;){var rt=R[N];if("string"==typeof rt){var K=pt(rt);K!==rt&&(Tt(R)||(R[N]=K),rt=K)}q[rt]=!0}return q}function J(q){var R=ni(null),N=void 0;for(N in q)$t(mt,q,[N])&&(R[N]=q[N]);return R}function Bt(q,R){for(;null!==q;){var N=ee(q,R);if(N){if(N.get)return Dt(N.get);if("function"==typeof N.value)return Dt(N.value)}q=Ft(q)}return function(rt){return console.warn("fallback value for",rt),null}}var oi=it(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),je=it(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),be=it(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),zt=it(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Mt=it(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),ri=it(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),le=it(["#text"]),ki=it(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),Re=it(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),_e=it(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ae=it(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),li=Yt(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ze=Yt(/<%[\s\S]*|[\s\S]*%>/gm),xi=Yt(/^data-[\-\w.\u00B7-\uFFFF]/),Le=Yt(/^aria-[\-\w]+$/),Fi=Yt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Pe=Yt(/^(?:\w+script|data):/i),He=Yt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q};function Xt(q){if(Array.isArray(q)){for(var R=0,N=Array(q.length);R<q.length;R++)N[R]=q[R];return N}return Array.from(q)}return function q(){var R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:typeof window>"u"?null:window,N=function(c){return q(c)};if(N.version="2.2.7",N.removed=[],!R||!R.document||9!==R.document.nodeType)return N.isSupported=!1,N;var rt=R.document,K=R.document,Pt=R.DocumentFragment,Ui=R.HTMLTemplateElement,Ut=R.Node,Ti=R.Element,se=R.NodeFilter,V=R.NamedNodeMap,ne=void 0===V?R.NamedNodeMap||R.MozNamedAttrMap:V,qe=R.Text,we=R.Comment,Fe=R.DOMParser,Kt=R.trustedTypes,Qt=Ti.prototype,Mi=Bt(Qt,"cloneNode"),Wi=Bt(Qt,"nextSibling"),Ei=Bt(Qt,"childNodes"),ke=Bt(Qt,"parentNode");if("function"==typeof Ui){var $e=K.createElement("template");$e.content&&$e.content.ownerDocument&&(K=$e.content.ownerDocument)}var Wt=function(q,R){if("object"!==(void 0===q?"undefined":pe(q))||"function"!=typeof q.createPolicy)return null;
1var N=null,rt="data-tt-policy-suffix";R.currentScript&&R.currentScript.hasAttribute(rt)&&(N=R.currentScript.getAttribute(rt));var K="dompurify"+(N?"#"+N:"");try{return q.createPolicy(K,{createHTML:function(Pt){return Pt}})}catch{return console.warn("TrustedTypes policy "+K+" could not be created."),null}}(Kt,rt),Be=Wt&&Je?Wt.createHTML(""):"",De=K.implementation,Li=K.createNodeIterator,he=K.getElementsByTagName,Ue=K.createDocumentFragment,We=rt.importNode,hi={};try{hi=J(K).documentMode?K.documentMode:{}}catch{}var vt={};N.isSupported="function"==typeof ke&&De&&void 0!==De.createHTMLDocument&&9!==hi;var Ze=li,Ge=ze,de=xi,di=Le,oe=Pe,Se=He,Te=Fi,Et=null,Di=X({},[].concat(Xt(oi),Xt(je),Xt(be),Xt(Mt),Xt(le))),Lt=null,ci=X({},[].concat(Xt(ki),Xt(Re),Xt(_e),Xt(ae))),ui=null,Ae=null,Si=!0,mi=!0,_i=!1,Me=!1,Vt=!1,Ye=!1,Ve=!1,Jt=!1,Ne=!1,Ai=!0,Je=!1,Xe=!0,Ke=!0,Ie=!1,fe={},Ni=X({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pi=null,fi=X({},["audio","video","img","source","image","track"]),Qe=null,ot=X({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),ge=null,ve=K.createElement("form"),Ce=function(c){ge&&ge===c||(c&&"object"===(void 0===c?"undefined":pe(c))||(c={}),c=J(c),Et="ALLOWED_TAGS"in c?X({},c.ALLOWED_TAGS):Di,Lt="ALLOWED_ATTR"in c?X({},c.ALLOWED_ATTR):ci,Qe="ADD_URI_SAFE_ATTR"in c?X(J(ot),c.ADD_URI_SAFE_ATTR):ot,pi="ADD_DATA_URI_TAGS"in c?X(J(fi),c.ADD_DATA_URI_TAGS):fi,ui="FORBID_TAGS"in c?X({},c.FORBID_TAGS):{},Ae="FORBID_ATTR"in c?X({},c.FORBID_ATTR):{},Si=!1!==c.ALLOW_ARIA_ATTR,mi=!1!==c.ALLOW_DATA_ATTR,_i=c.ALLOW_UNKNOWN_PROTOCOLS||!1,Vt=c.WHOLE_DOCUMENT||!1,Jt=c.RETURN_DOM||!1,Ai=!1!==c.RETURN_DOM_IMPORT,Je=c.RETURN_TRUSTED_TYPE||!1,Ve=c.FORCE_BODY||!1,Xe=!1!==c.SANITIZE_DOM,Ke=!1!==c.KEEP_CONTENT,Ie=c.IN_PLACE||!1,Te=c.ALLOWED_URI_REGEXP||Te,(Me=c.SAFE_FOR_TEMPLATES||!1)&&(mi=!1),(Ne=c.RETURN_DOM_FRAGMENT||!1)&&(Jt=!0),(fe="USE_PROFILES"in c&&c.USE_PROFILES)&&(Et=X({},[].concat(Xt(le))),Lt=[],!0===fe.html&&(X(Et,oi),X(Lt,ki)),!0===fe.svg&&(X(Et,je),X(Lt,Re),X(Lt,ae)),!0===fe.svgFilters&&(X(Et,be),X(Lt,Re),X(Lt,ae)),!0===fe.mathMl&&(X(Et,Mt),X(Lt,_e),X(Lt,ae))),c.ADD_TAGS&&(Et===Di&&(Et=J(Et)),X(Et,c.ADD_TAGS)),c.ADD_ATTR&&(Lt===ci&&(Lt=J(Lt)),X(Lt,c.ADD_ATTR)),c.ADD_URI_SAFE_ATTR&&X(Qe,c.ADD_URI_SAFE_ATTR),Ke&&(Et["#text"]=!0),Vt&&X(Et,["html","head","body"]),Et.table&&(X(Et,["tbody"]),delete ui.tbody),it&&it(c),ge=c)},gi=X({},["mi","mo","mn","ms","mtext"]),Ii=X({},["foreignobject","desc","title","annotation-xml"]),ti=X({},je);X(ti,be),X(ti,zt);var vi=X({},Mt);X(vi,ri);var yi="http://www.w3.org/1998/Math/MathML",ei="http://www.w3.org/2000/svg",ii="http://www.w3.org/1999/xhtml",ce=function(c){b(N.removed,{element:c});try{c.parentNode.removeChild(c)}catch{try{c.outerHTML=Be}catch{c.remove()}}},Ci=function(c,C){try{b(N.removed,{attribute:C.getAttributeNode(c),from:C})}catch{b(N.removed,{attribute:null,from:C})}if(C.removeAttribute(c),"is"===c&&!Lt[c])if(Jt||Ne)try{ce(C)}catch{}else try{C.setAttribute(c,"")}catch{}},Oi=function(c){var C=void 0,D=void 0;if(Ve)c="<remove></remove>"+c;else{var nt=bt(c,/^[\r\n\t ]+/);D=nt&&nt[0]}var ft=Wt?Wt.createHTML(c):c;try{C=(new Fe).parseFromString(ft,"text/html")}catch{}if(!C||!C.documentElement){var Ct=(C=De.createHTMLDocument("")).body;Ct.parentNode.removeChild(Ct.parentNode.firstElementChild),Ct.outerHTML=ft}return c&&D&&C.body.insertBefore(K.createTextNode(D),C.body.childNodes[0]||null),he.call(C,Vt?"html":"body")[0]},ji=function(c){return Li.call(c.ownerDocument||c,c,se.SHOW_ELEMENT|se.SHOW_COMMENT|se.SHOW_TEXT,function(){return se.FILTER_ACCEPT},!1)},Oe=function(c){return"object"===(void 0===Ut?"undefined":pe(Ut))?c instanceof Ut:c&&"object"===(void 0===c?"undefined":pe(c))&&"number"==typeof c.nodeType&&"string"==typeof c.nodeName},te=function(c,C,D){vt[c]&&F(vt[c],function(nt){nt.call(N,C,D,ge)})},zi=function(c){var C=void 0;if(te("beforeSanitizeElements",c,null),function(c){return!(c instanceof qe||c instanceof we||"string"==typeof c.nodeName&&"string"==typeof c.textContent&&"function"==typeof c.removeChild&&c.attributes instanceof ne&&"function"==typeof c.removeAttribute&&"function"==typeof c.setAttribute&&"string"==typeof c.namespaceURI&&"function"==typeof c.insertBefore)}(c)||bt(c.nodeName,/[\u0080-\uFFFF]/))return ce(c),!0;var D=pt(c.nodeName);if(te("uponSanitizeElement",c,{tagName:D,allowedTags:Et}),!Oe(c.firstElementChild)&&(!Oe(c.content)||!Oe(c.content.firstElementChild))&&Rt(/<[/\w]/g,c.innerHTML)&&Rt(/<[/\w]/g,c.textContent))return ce(c),!0;if(!Et[D]||ui[D]){if(Ke&&!Ni[D]){var nt=ke(c),ft=Ei(c);if(ft&&nt)for(var Ct=ft.length-1;Ct>=0;--Ct)nt.insertBefore(Mi(ft[Ct],!0),Wi(c))}return ce(c),!0}return c instanceof Ti&&!function(c){var C=ke(c);C&&C.tagName||(C={namespaceURI:ii,tagName:"template"});var D=pt(c.tagName),nt=pt(C.tagName);if(c.namespaceURI===ei)return C.namespaceURI===ii?"svg"===D:C.namespaceURI===yi?"
1svg"===D&&("annotation-xml"===nt||gi[nt]):!!ti[D];if(c.namespaceURI===yi)return C.namespaceURI===ii?"math"===D:C.namespaceURI===ei?"math"===D&&Ii[nt]:!!vi[D];if(c.namespaceURI===ii){if(C.namespaceURI===ei&&!Ii[nt]||C.namespaceURI===yi&&!gi[nt])return!1;var ft=X({},["title","style","font","a","script"]);return!vi[D]&&(ft[D]||!ti[D])}return!1}(c)?(ce(c),!0):"noscript"!==D&&"noembed"!==D||!Rt(/<\/no(script|embed)/i,c.innerHTML)?(Me&&3===c.nodeType&&(C=wt(C=c.textContent,Ze," "),C=wt(C,Ge," "),c.textContent!==C&&(b(N.removed,{element:c.cloneNode()}),c.textContent=C)),te("afterSanitizeElements",c,null),!1):(ce(c),!0)},Pi=function(c,C,D){if(Xe&&("id"===C||"name"===C)&&(D in K||D in ve))return!1;if(!(mi&&Rt(de,C)||Si&&Rt(di,C))){if(!Lt[C]||Ae[C])return!1;if(!Qe[C]&&!Rt(Te,wt(D,Se,""))&&("src"!==C&&"xlink:href"!==C&&"href"!==C||"script"===c||0!==Y(D,"data:")||!pi[c])&&(!_i||Rt(oe,wt(D,Se,"")))&&D)return!1}return!0},Hi=function(c){var C=void 0,D=void 0,nt=void 0,ft=void 0;te("beforeSanitizeAttributes",c,null);var Ct=c.attributes;if(Ct){var St={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Lt};for(ft=Ct.length;ft--;){var ai=C=Ct[ft],At=ai.name,bi=ai.namespaceURI;if(D=me(C.value),nt=pt(At),St.attrName=nt,St.attrValue=D,St.keepAttr=!0,St.forceKeepAttr=void 0,te("uponSanitizeAttribute",c,St),D=St.attrValue,!St.forceKeepAttr&&(Ci(At,c),St.keepAttr))if(Rt(/\/>/i,D))Ci(At,c);else{Me&&(D=wt(D,Ze," "),D=wt(D,Ge," "));var wi=c.nodeName.toLowerCase();if(Pi(wi,nt,D))try{bi?c.setAttributeNS(bi,At,D):c.setAttribute(At,D),$(N.removed)}catch{}}}te("afterSanitizeAttributes",c,null)}},Gi=function c(C){var D=void 0,nt=ji(C);for(te("beforeSanitizeShadowDOM",C,null);D=nt.nextNode();)te("uponSanitizeShadowNode",D,null),zi(D)||(D.content instanceof Pt&&c(D.content),Hi(D));te("afterSanitizeShadowDOM",C,null)};return N.sanitize=function(c,C){var D=void 0,nt=void 0,ft=void 0,Ct=void 0,St=void 0;if(c||(c="\x3c!--\x3e"),"string"!=typeof c&&!Oe(c)){if("function"!=typeof c.toString)throw tt("toString is not a function");if("string"!=typeof(c=c.toString()))throw tt("dirty is not a string, aborting")}if(!N.isSupported){if("object"===pe(R.toStaticHTML)||"function"==typeof R.toStaticHTML){if("string"==typeof c)return R.toStaticHTML(c);if(Oe(c))return R.toStaticHTML(c.outerHTML)}return c}if(Ye||Ce(C),N.removed=[],"string"==typeof c&&(Ie=!1),!Ie)if(c instanceof Ut)1===(nt=(D=Oi("\x3c!----\x3e")).ownerDocument.importNode(c,!0)).nodeType&&"BODY"===nt.nodeName||"HTML"===nt.nodeName?D=nt:D.appendChild(nt);else{if(!Jt&&!Me&&!Vt&&-1===c.indexOf("<"))return Wt&&Je?Wt.createHTML(c):c;if(!(D=Oi(c)))return Jt?null:Be}D&&Ve&&ce(D.firstChild);for(var ai=ji(Ie?c:D);ft=ai.nextNode();)3===ft.nodeType&&ft===Ct||zi(ft)||(ft.content instanceof Pt&&Gi(ft.content),Hi(ft),Ct=ft);if(Ct=null,Ie)return c;if(Jt){if(Ne)for(St=Ue.call(D.ownerDocument);D.firstChild;)St.appendChild(D.firstChild);else St=D;return Ai&&(St=We.call(rt,St,!0)),St}var At=Vt?D.outerHTML:D.innerHTML;return Me&&(At=wt(At,Ze," "),At=wt(At,Ge," ")),Wt&&Je?Wt.createHTML(At):At},N.setConfig=function(c){Ce(c),Ye=!0},N.clearConfig=function(){ge=null,Ye=!1},N.isValidAttribute=function(c,C,D){ge||Ce({});var nt=pt(c),ft=pt(C);return Pi(nt,ft,D)},N.addHook=function(c,C){"function"==typeof C&&(vt[c]=vt[c]||[],b(vt[c],C))},N.removeHook=function(c){vt[c]&&$(vt[c])},N.removeHooks=function(c){vt[c]&&(vt[c]=[])},N.removeAllHooks=function(){vt={}},N}()}()},102:()=>{var at=function(){function _t(Tt,Ft){for(var ee=0;ee<Ft.length;ee++){var it=Ft[ee];it.enumerable=it.enumerable||!1,it.configurable=!0,"value"in it&&(it.writable=!0),Object.defineProperty(Tt,it.key,it)}}return function(Tt,Ft,ee){return Ft&&_t(Tt.prototype,Ft),ee&&_t(Tt,ee),Tt}}();function mt(_t,Tt){if(!(_t instanceof Tt))throw new TypeError("Cannot call a class as a function")}!function(){if(typeof window<"u"){var _t=Array.prototype.slice,Tt=Element.prototype.matches||Element.prototype.msMatchesSelector,Ft=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","details","summary","iframe","object","embed","[contenteditable]"].join(","),ee=function(){function ct(T,F){mt(this,ct),this._inertManager=F,this._rootElement=T,this._managedNodes=new Set,this._savedAriaHidden=this._rootElement.hasAttribute("aria-hidden")?this._rootElement.getAttribute("aria-hidden"):null,this._rootElement.setAttribute("aria-hidden","true"),this._makeSubtreeUnfocusable(this._rootElement),this._observer=new MutationObserver(this._onMutation.bind(this)),this._observer.observe(this._rootElement,{attributes:!0,childList:!0,subtree:!0})}
vendor: 4,523 bytes, line 1
1return at(ct,[{key:"destructor",value:function(){this._observer.disconnect(),this._rootElement&&(null!==this._savedAriaHidden?this._rootElement.setAttribute("aria-hidden",this._savedAriaHidden):this._rootElement.removeAttribute("aria-hidden")),this._managedNodes.forEach(function(T){this._unmanageNode(T.node)},this),this._observer=null,this._rootElement=null,this._managedNodes=null,this._inertManager=null}},{key:"_makeSubtreeUnfocusable",value:function(T){var F=this;ie(T,function(bt){return F._visitNode(bt)});var $=document.activeElement;if(!document.body.contains(T)){for(var b=T,pt=void 0;b;){if(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){pt=b;break}b=b.parentNode}pt&&($=pt.activeElement)}T.contains($)&&($.blur(),$===document.activeElement&&document.body.focus())}},{key:"_visitNode",value:function(T){if(T.nodeType===Node.ELEMENT_NODE){var F=T;F!==this._rootElement&&F.hasAttribute("inert")&&this._adoptInertRoot(F),(Tt.call(F,Ft)||F.hasAttribute("tabindex"))&&this._manageNode(F)}}},{key:"_manageNode",value:function(T){var F=this._inertManager.register(T,this);this._managedNodes.add(F)}},{key:"_unmanageNode",value:function(T){var F=this._inertManager.deregister(T,this);F&&this._managedNodes.delete(F)}},{key:"_unmanageSubtree",value:function(T){var F=this;ie(T,function($){return F._unmanageNode($)})}},{key:"_adoptInertRoot",value:function(T){var F=this._inertManager.getInertRoot(T);F||(this._inertManager.setInert(T,!0),F=this._inertManager.getInertRoot(T)),F.managedNodes.forEach(function($){this._manageNode($.node)},this)}},{key:"_onMutation",value:function(T,F){T.forEach(function($){var b=$.target;if("childList"===$.type)_t.call($.addedNodes).forEach(function(bt){this._makeSubtreeUnfocusable(bt)},this),_t.call($.removedNodes).forEach(function(bt){this._unmanageSubtree(bt)},this);else if("attributes"===$.type)if("tabindex"===$.attributeName)this._manageNode(b);else if(b!==this._rootElement&&"inert"===$.attributeName&&b.hasAttribute("inert")){this._adoptInertRoot(b);var pt=this._inertManager.getInertRoot(b);this._managedNodes.forEach(function(bt){b.contains(bt.node)&&pt._manageNode(bt.node)})}},this)}},{key:"managedNodes",get:function(){return new Set(this._managedNodes)}},{key:"hasSavedAriaHidden",get:function(){return null!==this._savedAriaHidden}},{key:"savedAriaHidden",set:function(T){this._savedAriaHidden=T},get:function(){return this._savedAriaHidden}}]),ct}(),it=function(){function ct(T,F){mt(this,ct),this._node=T,this._overrodeFocusMethod=!1,this._inertRoots=new Set([F]),this._savedTabIndex=null,this._destroyed=!1,this.ensureUntabbable()}return at(ct,[{key:"destructor",value:function(){if(this._throwIfDestroyed(),this._node&&this._node.nodeType===Node.ELEMENT_NODE){var T=this._node;null!==this._savedTabIndex?T.setAttribute("tabindex",this._savedTabIndex):T.removeAttribute("tabindex"),this._overrodeFocusMethod&&delete T.focus}this._node=null,this._inertRoots=null,this._destroyed=!0}},{key:"_throwIfDestroyed",value:function(){if(this.destroyed)throw new Error("Trying to access destroyed InertNode")}},{key:"ensureUntabbable",value:function(){if(this.node.nodeType===Node.ELEMENT_NODE){var T=this.node;if(Tt.call(T,Ft)){if(-1===T.tabIndex&&this.hasSavedTabIndex)return;T.hasAttribute("tabindex")&&(this._savedTabIndex=T.tabIndex),T.setAttribute("tabindex","-1"),T.nodeType===Node.ELEMENT_NODE&&(T.focus=function(){},this._overrodeFocusMethod=!0)}else T.hasAttribute("tabindex")&&(this._savedTabIndex=T.tabIndex,T.removeAttribute("tabindex"))}}},{key:"addInertRoot",value:function(T){this._throwIfDestroyed(),this._inertRoots.add(T)}},{key:"removeInertRoot",value:function(T){this._throwIfDestroyed(),this._inertRoots.delete(T),0===this._inertRoots.size&&this.destructor()}},{key:"destroyed",get:function(){return this._destroyed}},{key:"hasSavedTabIndex",get:function(){return null!==this._savedTabIndex}},{key:"node",get:function(){return this._throwIfDestroyed(),this._node}},{key:"savedTabIndex",set:function(T){this._throwIfDestroyed(),this._savedTabIndex=T},get:function(){return this._throwIfDestroyed(),this._savedTabIndex}}]),ct}(),Yt=function(){function ct(T){if(mt(this,ct),!T)throw new Error("Missing required argument; InertManager needs to wrap a document.");this._document=T,this._managedNodes=new Map,this._inertRoots=new Map,this._observer=new MutationObserver(this._watchForInert.bind(this)),$t(T.head||T.body||T.documentElement),"loading"===T.readyState?T.addEventListener("DOMContentLoaded",this._onDocumentLoaded.bind(this)):this._onDocumentLoaded()}
1return at(ct,[{key:"setInert",value:function(T,F){if(F){if(this._inertRoots.has(T))return;var $=new ee(T,this);if(T.setAttribute("inert",""),this._inertRoots.set(T,$),!this._document.body.contains(T))for(var b=T.parentNode;b;)11===b.nodeType&&$t(b),b=b.parentNode}else{if(!this._inertRoots.has(T))return;this._inertRoots.get(T).destructor(),this._inertRoots.delete(T),T.removeAttribute("inert")}}},{key:"getInertRoot",value:function(T){return this._inertRoots.get(T)}},{key:"register",value:function(T,F){var $=this._managedNodes.get(T);return void 0!==$?$.addInertRoot(F):$=new it(T,F),this._managedNodes.set(T,$),$}},{key:"deregister",value:function(T,F){var $=this._managedNodes.get(T);return $?($.removeInertRoot(F),$.destroyed&&this._managedNodes.delete(T),$):null}},{key:"_onDocumentLoaded",value:function(){_t.call(this._document.querySelectorAll("[inert]")).forEach(function(T){this.setInert(T,!0)},this),this._observer.observe(this._document.body||this._document.documentElement,{attributes:!0,subtree:!0,childList:!0})}},{key:"_watchForInert",value:function(T,F){var $=this;T.forEach(function(b){switch(b.type){case"childList":_t.call(b.addedNodes).forEach(function(wt){if(wt.nodeType===Node.ELEMENT_NODE){var Y=_t.call(wt.querySelectorAll("[inert]"));Tt.call(wt,"[inert]")&&Y.unshift(wt),Y.forEach(function(me){this.setInert(me,!0)},$)}},$);break;case"attributes":if("inert"!==b.attributeName)return;var pt=b.target,bt=pt.hasAttribute("inert");$.setInert(pt,bt)}},this)}}]),ct}();if(!HTMLElement.prototype.hasOwnProperty("inert")){var ni=new Yt(document);Object.defineProperty(HTMLElement.prototype,"inert",{enumerable:!0,get:function(){return this.hasAttribute("inert")},set:function(ct){ni.setInert(this,ct)}})}}function ie(ct,T,F){if(ct.nodeType==Node.ELEMENT_NODE){var $=ct;T&&T($);var b=$.shadowRoot;if(b)return void ie(b,T,b);if("content"==$.localName){for(var bt=$.getDistributedNodes?$.getDistributedNodes():[],wt=0;wt<bt.length;wt++)ie(bt[wt],T,F);return}if("slot"==$.localName){for(var me=$.assignedNodes?$.assignedNodes({flatten:!0}):[],Rt=0;Rt<me.length;Rt++)ie(me[Rt],T,F);return}}for(var tt=ct.firstChild;null!=tt;)ie(tt,T,F),tt=tt.nextSibling}function $t(ct){if(!ct.querySelector("style#inert-style, link#inert-style")){var T=document.createElement("style");T.setAttribute("id","inert-style"),T.textContent="\n[inert] {\n pointer-events: none;\n cursor: default;\n}\n\n[inert], [inert] * {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n",ct.appendChild(T)}}}()}},Xi={};function Gt(at){var mt=Xi[at];if(void 0!==mt)return mt.exports;var _t=Xi[at]={exports:{}};return ia[at].call(_t.exports,_t,_t.exports,Gt),_t.exports}Gt.n=at=>{var mt=at&&at.__esModule?()=>at.default:()=>at;return Gt.d(mt,{a:mt}),mt},Gt.d=(at,mt)=>{for(var _t in mt)Gt.o(mt,_t)&&!Gt.o(at,_t)&&Object.defineProperty(at,_t,{enumerable:!0,get:mt[_t]})},Gt.o=(at,mt)=>Object.prototype.hasOwnProperty.call(at,mt),Gt.r=at=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(at,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(at,"__esModule",{value:!0})};var qi={};(()=>{"use strict";Gt.r(qi),Gt.d(qi,{Timeline:()=>ea,lookupMediaType:()=>At,parseGoogleSpreadsheetURL:()=>Ne});const at=navigator?navigator.userAgent.toLowerCase():"no-user-agent-specified",_t=(document&&document,!!at&&-1!==at.indexOf("phantom")),Tt=window&&"ActiveXObject"in window,Ft=(Tt&&at.match(/MSIE 9/i),Tt&&document&&document,-1!==at.indexOf("webkit")),it=(at.indexOf("android"),at.search("android [23]"),!!window&&void 0!==window.orientation),Yt=!(!navigator||!window)&&navigator.msPointerEnabled&&navigator.msMaxTouchPoints&&!window.PointerEvent,ni=navigator&&window?window.PointerEvent&&navigator.pointerEnabled&&navigator.maxTouchPoints:Yt,ie=!!window&&window.opera,$t=(at.indexOf("gecko"),-1!==at.indexOf("gecko")&&!Ft&&!ie&&!Tt),ct=(at.indexOf("chrome"),-1!==at.indexOf("edge/"));window&&"WebKitCSSMatrix"in window&&new window.WebKitCSSMatrix,window&&window,it&&window;let T=!!window&&"devicePixelRatio"in window&&window.devicePixelRatio>1;if(!T&&window&&"matchMedia"in window){let i=window.matchMedia("(min-resolution:144dpi)");T=i&&i.matches}const F=window&&!window.L_NO_TOUCH&&!_t&&(ni||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch);function $(i){return"string"==typeof i?document.getElementById(i):i}function b(i,t,e){var a=document.createElement(i);return a.className=t,e&&e.appendChild(a),a}function pt(i,t){var e=b("button",i,t);return e.type="button",e}function bt(i){for(var t={x:0,y:0};i&&!isNaN(i.offsetLeft)&&!isNaN(i.offsetTop);)t.x+=i.offsetLeft,t.y+=i.offsetTop,i=i.offsetParent;return t}function wt(i){for(var t=document.documentElement.style,e=0;e<i.length;e++)if(i[e]in t)return i[e];return!1}wt(["transition","webkitTransition","OTransition","MozTransition","msTransition"]),wt(["transformProperty","WebkitTransform","OTransform","MozTransform","msTransform"]);class Y extends Error{constructor(t,e){super(),this.name="TLError",this.message=t||"error",this.message_key=this.message,this.detail=e||""}}const me={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",s
1almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Rt(i){me[i.toLowerCase()]&&(i=me[i.toLowerCase()]),i=i.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,a,s,r){return a+a+s+s+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(i);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function tt(i,t){var e;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=t[e]);return i}function Dt(i){for(var t=Array.prototype.slice.call(arguments,1),e=0,a=t.length;e<a;e++)tt(i,t[e]||{});return i}const X=[];function J(i){X.forEach(t=>{try{t(i)}catch(e){console&&console.log&&console.log("Error handling trace",e)}})}function Bt(i,t){for(i=String(i),t=t||2;i.length<t;)i="0"+i;return i}const oi=(je=0,be="_tl_id",function(i){return i[be]=i[be]||++je,i[be]});var je,be;function zt(i){return i&&"function"==typeof i.replace?i.replace(/^\s+|\s+$/g,""):""}function Mt(i,...t){for(let a of t)for(var e of Object.getOwnPropertyNames(a.prototype))i.prototype[e]=a.prototype[e]}function ri(i){i=(i=zt(i)).toLowerCase();for(var e=0;e<31;e++)i=i.replace(new RegExp("\xe3\xe0\xe1\xe4\xe2\u1ebd\xe8\xe9\xeb\xea\xec\xed\xef\xee\xf5\xf2\xf3\xf6\xf4\xf9\xfa\xfc\xfb\xf1\xe7\xb7/_,:;".charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc------".charAt(e));return(i=i.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")).replace(/^([0-9])/,"_$1")}function le(i,t){var e=function(a){for(var s="",r=0;r<a;r++)s+="abcdefghijklmnopqurstuvwxyz".substr(Math.floor(32*Math.random()),1);return s};return t?t+"-"+e(i):"tl-"+e(i)}function Re(i,t,e,a){for(var s=a||0,r=0;r<t.length;r++)t[r].data[e]==i&&(s=r);return s}function _e(i){return i&&(i=i.replace(/<a\b[^>]*>/i,"")).replace(/<\/a>/i,"")}function ae(i){return(i=i.replace(/(<[^>]*>)+/g,"")).replace('"',"'")}function li(i,t,e){var a=function(s,r,l){return l||(l=""),r&&r.length>30&&(r=r.substring(0,30)+"\u2026"),l+"<a class='tl-makelink' href='"+s+"' onclick='void(0)'>"+r+"</a>"};return i.replace(/\b(?:https?|ftp):\/\/([a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|])/gim,function(s,r,l,d){if(l>0){var u=d[l-1];if('"'==u||"'"==u||"="==u)return s}return a(s,r)}).replace(/(^|[^\/>])(www\.[\S]+(\b|$))/gim,function(s,r,l,d,u){return a("http://"+l,l,r)}).replace(/([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)/gim,function(s,r,l,d){return a("mailto:"+r,r)})}function ze(i){return i.replace(/(.*)www.dropbox.com\/(.*)/,"$1dl.dropboxusercontent.com/$2")}const xi=i=>{var t={w:0,h:0};return i.w>i.h&&i.h>0?(t.h=i.h,t.w=i.h):(t.w=i.w,t.h=i.w),t},Le=i=>null!==i.w&&""!==i.w?Math.round(i.w/16*9):null!==i.h&&""!==i.h?Math.round(i.h/9*16):0;let Fi=(He=(Pe="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ").length,{encode:function(i){if("number"!=typeof i||i!==parseInt(i))throw'"encode" only accepts integers.';for(var t="";i;){var e=i%He;i=Math.floor(i/He),t=Pe[e].toString()+t}return t},decode:function(i){if("string"!=typeof i)throw'"decode" only accepts strings.';for(var t=0;i;){var e=Pe.indexOf(i[0]);if(e<0)throw'"decode" can\'t find "'+i[0]+'" in the alphabet: "'+Pe+'"';t+=e*Math.pow(He,i.length-1),i=i.substring(1)}return t}});var Pe,He;function pe(i){if("string"==typeof i){let a=i.match(/^\s*(\d+h)?(\d+m)?(\d+s)?\s*/i);if(a){var t=parseInt(a[1])||0,e=parseInt(a[2])||0;return(parseInt(a[3])||0)+60*e+60*t*60}}else if("number"==typeof i)return i;return 0}function Xt(i){return(new DOMParser).parseFromString(i,"text/html").body.textContent||""}const $i=[.42,0,1,1];function Bi(i){}function q(i){return new Bi($i).get(i)}function R(i){return 1==i?1:1-Math.pow(2,-10*i)}function N(i){return i<.5?16*i*i*i*i*i:1+16*--i*i*i*i*i}let rt=function(){};rt.extend=function(i){var t=function(){this.initialize&&this.initialize.apply(this,arguments)},e=function(){};e.prototype=this.prototype;var a=new e;for(var s in a.constructor=t,t.prototype=a,t.superclass=this.prototype,this)this.hasOwnProperty(s)&&"prototype"!==s&&"superclass"!==s&&(t[s]=this[s]);return i.statics&&(Dt(t,i.statics),delete i.statics),i.includes&&(Dt.apply(null,[a].concat(i.includes)),delete i.includes),i.options&&a.options&&(i.options=Dt({},a.options,i.options)),Dt(a,i),t.extend=rt.extend,t.include=function(r){Dt(this.prototype,r)},t};class K{on(t,e,a){if(!e)throw new Y("No callback function provided");var s=this._tl_events=this._tl_events||{};return s[t]=s[t]||[],s[t].push({action:e,context:a||this}),this}addEventListener(t,e,a){return this.on(t,e,a)}hasEventListeners(t){var e="_tl_events";return e in this&&t in this[e]&&this[e][t].length>0}removeEventListener(t,e,a){if(!this.hasEventListeners(t))return this;for(var s=0,r=this._tl_events,l=r[t].length;s<l;s++)if(r[t][s].action===e&&(!a||r[t][s].context===a))return r[t].splice(s,1),this;return this}off(t,e,a){return this.removeEventListener(t,e,a)}fire(t,e){if(!this.hasEventListeners(t))return this;for(var a=tt({type:t,target:this},e),s=this._tl_events[t].slice(),r=0,l=s.length;r<l;r++)s[r].action?s[r].action.call(s[r].context||this,a):J(`no action defined for ${t} listener`);return this}}function Pt(i,t){return Ui(i,t)}const Ui=function(){var i=document,t=window,e=t.performance,a=e&&(e.now||e.webkitNow||e.msNow||e.mozNow),s=a?function(){return a.call(e)}:function(){return+new Date},r=i.documentElement,l=!1,d=1e3,u=/^rgb\(|#/,v=/^([+\-])=([\d\.]+)/,x=/^(?:[\+\-]=?)?\d+(?:\.\d+)?(%|in|cm|mm|em|ex|pt|pc|px)$/,L=/rotate\(((?:[+\-]=)?([\-\d\.]+))deg\)/,U=/scale\(((?:[+\-]=)?([\d\.]+))\)/,H=/skew\(((?:[+\-]=)?([\-\d\.]+))deg, ?((?:[+\-]=)?([\-\d\.]+))deg\)/,Q=/translate\(((?:[+\-]=)?([\-\d\.]+))px, ?((?:[+\-]=)?([\-\d\.]+))px\)/,lt={lineHeight:1,zoom:1,zIndex:1,opacity:1,transform:1},ht=function(){var E,f=i.createElement("a").style,w=["webkitTransform","MozTransform","OTransform","msTransform","Transform"];for(E=0;E<w.length;E++)if(w[E]in f)return w[E]}(),et=void 0!==i.createElement("a").style.opacity,ut=i.defaultView&&i.defaultView.getComputedStyle?function(E,f){f=p(f="transform"==f?ht:f);var w=null,S=i.defaultView.getComputedStyle(E,"");return S&&(w=S[f]),E.style[f]||w}:r.currentStyle?function(E,f){if("opacity"==(f=p(f))){var w=100;try{w=E.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch{try{w=E.filters("alpha").opacity}catch{}}return w/100}return E.style[f]||(E.currentStyle?E.currentStyle[f]:null)}:function(E,f){return E.style[p(f)]},dt=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||t.oRequestAnimationFrame||function(E){t.setTimeout(function(){E(+new Date)},17)},kt=[];function j(E){var f,w=kt.length;for(a&&E>1e12&&(E=s()),l&&(E=s()),f=w;f--;)kt[f](E);kt.length&&dt(j)}function g(E,f){var w,S={};return(w=E.match(L))&&(S.rotate=A(w[1],f?f.rotate:null)),(w=E.match(U))&&(S.scale=A(w[1],f?f.scale:null)),(w=E.match(H))&&(S.skewx=A(w[1],f?f.skewx:null),S.skewy=A(w[3],f?f.skewy:null)),(w=E.match(Q))&&
1(S.translatex=A(w[1],f?f.translatex:null),S.translatey=A(w[3],f?f.translatey:null)),S}function I(E){var f="";return"rotate"in E&&(f+="rotate("+E.rotate+"deg) "),"scale"in E&&(f+="scale("+E.scale+") "),"translatex"in E&&(f+="translate("+E.translatex+"px,"+E.translatey+"px) "),"skewx"in E&&(f+="skew("+E.skewx+"deg,"+E.skewy+"deg)"),f}function m(E){var f,w,S,B=E.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);return(B?(f=B[1],w=B[2],S=B[3],"#"+(1<<24|f<<16|w<<8|S).toString(16).slice(1)):E).replace(/#(\w)(\w)(\w)$/,"#$1$1$2$2$3$3")}function p(E){return E.replace(/-(.)/g,function(f,w){return w.toUpperCase()})}function y(E){return"function"==typeof E}function O(E){return Math.sin(E*Math.PI/2)}function Z(E,f,w,S,B,z){S=y(S)?S:yt.easings[S]||O;var Zt,Ht=E||d,Ee=this,qt=z-B,Nt=s(),It=0,xt=0;return Zt=function jt(ue){var _,M,o=ue-Nt;if(o>Ht||It)return z=isFinite(z)?z:1,It?xt&&f(z):f(z),(M=function(P,G,gt){if(Array.prototype.indexOf)return P.indexOf(G);for(gt=0;gt<P.length;++gt)if(P[gt]===G)return gt}(kt,jt))>=0&&(_=kt.slice(M+1),kt.length=M,kt=kt.concat(_)),w&&w.apply(Ee);isFinite(z)?f(qt*S(o/Ht)+B):f(S(o/Ht))},1===kt.push(Zt)&&dt(j),{stop:function(jt){It=1,xt=jt,jt||(w=null)}}}function W(E,f){var w,S,B=E.length,z=[];for(w=0;w<B;++w)z[w]=[E[w][0],E[w][1]];for(S=1;S<B;++S)for(w=0;w<B-S;++w)z[w][0]=(1-f)*z[w][0]+f*z[parseInt(w+1,10)][0],z[w][1]=(1-f)*z[w][1]+f*z[parseInt(w+1,10)][1];return[z[0][0],z[0][1]]}function st(E,f,w,S,B,z,Zt){if("transform"==B){for(var Ht in Zt={},w[z][B])Zt[Ht]=Ht in S[z][B]?Math.round(((S[z][B][Ht]-w[z][B][Ht])*E+w[z][B][Ht])*d)/d:w[z][B][Ht];return Zt}return"string"==typeof w[z][B]?function(Ee,qt,Nt){var It,xt,jt,ue,o=[];for(It=0;It<6;It++)jt=Math.min(15,parseInt(qt.charAt(It),16)),ue=Math.min(15,parseInt(Nt.charAt(It),16)),xt=(xt=Math.floor((ue-jt)*Ee+jt))>15?15:xt<0?0:xt,o[It]=xt.toString(16);return"#"+o.join("")}(E,w[z][B],S[z][B]):(Zt=Math.round(((S[z][B]-w[z][B])*E+w[z][B])*d)/d,B in lt||(Zt+=f[z][B]||"px"),Zt)}function A(E,f,w,S,B){return(w=v.exec(E))?(B=parseFloat(w[2]))&&f+("+"==w[1]?1:-1)*B:parseFloat(E)}function yt(E,f){var w,S,B,z=E?z=isFinite(E.length)?E:[E]:[],Zt=f.complete,Ht=f.duration,Ee=f.easing,qt=f.bezier,Nt=[],It=[],xt=[],jt=[];for(qt&&(S=f.left,B=f.top,delete f.right,delete f.bottom,delete f.left,delete f.top),w=z.length;w--;){if(Nt[w]={},It[w]={},xt[w]={},qt){var ue=ut(z[w],"left"),o=ut(z[w],"top"),h=[A(y(S)?S(z[w]):S||0,parseFloat(ue)),A(y(B)?B(z[w]):B||0,parseFloat(o))];jt[w]=y(qt)?qt(z[w],h):qt,jt[w].push(h),jt[w].unshift([parseInt(ue,10),parseInt(o,10)])}for(var _ in f){switch(_){case"complete":case"duration":case"easing":case"bezier":continue}var M,P=ut(z[w],_),G=y(f[_])?f[_](z[w]):f[_];"string"!=typeof G||!u.test(G)||u.test(P)?(Nt[w][_]="transform"==_?g(P):"string"==typeof G&&u.test(G)?m(P).slice(1):parseFloat(P),It[w][_]="transform"==_?g(G,Nt[w][_]):"string"==typeof G&&"#"==G.charAt(0)?m(G).slice(1):A(G,parseFloat(P)),"string"==typeof G&&(M=G.match(x))&&(xt[w][_]=M[1])):delete f[_]}}return Z.apply(z,[Ht,function(gt,Ot,re){for(w=z.length;w--;)for(var ye in qt&&(re=W(jt[w],gt),z[w].style.left=re[0]+"px",z[w].style.top=re[1]+"px"),f)Ot=st(gt,xt,Nt,It,ye,w),"transform"==ye?z[w].style[ht]=I(Ot):"opacity"!=ye||et?z[w].style[p(ye)]=Ot:z[w].style.filter="alpha(opacity="+100*Ot+")"},Zt,Ee])}return dt(function(E){l=E>1e12!=s()>1e12}),yt.tween=Z,yt.getStyle=ut,yt.bezier=W,yt.transform=ht,yt.parseTransform=g,yt.formatTransform=I,yt.easings={},yt}();class Ut{show(t){t||(this._el.container.style.display="block")}hide(t){this._el.container.style.display="none"}addTo(t){t.appendChild(this._el.container),this.onAdd()}removeFrom(t){t.removeChild(this._el.container),this.onRemove()}animatePosition(t,e){var a={duration:this.options.duration,easing:this.options.ease};for(var s in t)t.hasOwnProperty(s)&&(a[s]=t[s]+"px");this.animator&&this.animator.stop(),this.animator=Pt(e,a)}onLoaded(){this.fire("loaded",this.data)}onAdd(){this.fire("added",this.data)}onRemove(){this.fire("removed",this.data)}setPosition(t,e){for(var a in t)t.hasOwnProperty(a)&&(e?e.style[a]=t[a]+"px":this._el.container.style[a]=t[a]+"px")}getPosition(){return bt(this._el.container)}}class Ti{constructor(t,e,a){this._el={drag:t,move:t}
1,this.mousedrag={down:"mousedown",up:"mouseup",leave:"mouseleave",move:"mousemove"},this.touchdrag={down:"touchstart",up:"touchend",leave:"mouseleave",move:"touchmove"},a&&(this._el.move=a),this.options={enable:{x:!0,y:!0},constraint:{top:!1,bottom:!1,left:!1,right:!1},momentum_multiplier:2e3,duration:1e3,ease:N},this.animator=null,this.dragevent=this.mousedrag,F&&(this.dragevent=this.touchdrag),this.data={sliding:!1,direction:"none",pagex:{start:0,end:0},pagey:{start:0,end:0},pos:{start:{x:0,y:0},end:{x:0,y:0}},new_pos:{x:0,y:0},new_pos_parent:{x:0,y:0},time:{start:0,end:0},touch:!1},tt(this.options,e)}enable(t){this.data.pos.start=0,this._el.move.style.left=this.data.pos.start.x+"px",this._el.move.style.top=this.data.pos.start.y+"px",this._el.move.style.position="absolute"}disable(){V.removeListener(this._el.drag,this.dragevent.down,this._onDragStart,this),V.removeListener(this._el.drag,this.dragevent.up,this._onDragEnd,this)}stopMomentum(){this.animator&&this.animator.stop()}updateConstraint(t){this.options.constraint=t}_onDragStart(t){F?t.originalEvent?(this.data.pagex.start=t.originalEvent.touches[0].screenX,this.data.pagey.start=t.originalEvent.touches[0].screenY):(this.data.pagex.start=t.targetTouches[0].screenX,this.data.pagey.start=t.targetTouches[0].screenY):(this.data.pagex.start=t.pageX,this.data.pagey.start=t.pageY),this.options.enable.x&&(this._el.move.style.left=this.data.pagex.start-this._el.move.offsetWidth/2+"px"),this.options.enable.y&&(this._el.move.style.top=this.data.pagey.start-this._el.move.offsetHeight/2+"px"),this.data.pos.start=bt(this._el.drag),this.data.time.start=(new Date).getTime(),this.fire("dragstart",this.data),V.addListener(this._el.drag,this.dragevent.move,this._onDragMove,this),V.addListener(this._el.drag,this.dragevent.leave,this._onDragEnd,this)}_onDragEnd(t){this.data.sliding=!1,V.removeListener(this._el.drag,this.dragevent.move,this._onDragMove,this),V.removeListener(this._el.drag,this.dragevent.leave,this._onDragEnd,this),this.fire("dragend",this.data),this._momentum()}_onDragMove(t){t.preventDefault(),this.data.sliding=!0,F?t.originalEvent?(this.data.pagex.end=t.originalEvent.touches[0].screenX,this.data.pagey.end=t.originalEvent.touches[0].screenY):(this.data.pagex.end=t.targetTouches[0].screenX,this.data.pagey.end=t.targetTouches[0].screenY):(this.data.pagex.end=t.pageX,this.data.pagey.end=t.pageY),this.data.pos.end=bt(this._el.drag),this.data.new_pos.x=-(this.data.pagex.start-this.data.pagex.end-this.data.pos.start.x),this.data.new_pos.y=-(this.data.pagey.start-this.data.pagey.end-this.data.pos.start.y),this.options.enable.x&&(this._el.move.style.left=this.data.new_pos.x+"px"),this.options.enable.y&&(this._el.move.style.top=this.data.new_pos.y+"px"),this.fire("dragmove",this.data)}_momentum(){var t={x:0,y:0,time:0},e={x:0,y:0,time:0},a=!1;t.time=10*((new Date).getTime()-this.data.time.start),e.time=10*((new Date).getTime()-this.data.time.start),e.x=this.options.momentum_multiplier*(Math.abs(this.data.pagex.end)-Math.abs(this.data.pagex.start)),e.y=this.options.momentum_multiplier*(Math.abs(this.data.pagey.end)-Math.abs(this.data.pagey.start)),t.x=Math.round(e.x/e.time),t.y=Math.round(e.y/e.time),this.data.new_pos.x=Math.min(this.data.pos.end.x+t.x),this.data.new_pos.y=Math.min(this.data.pos.end.y+t.y),this.options.enable.x?this.data.new_pos.x<0&&(this.data.new_pos.x=0):this.data.new_pos.x=this.data.pos.start.x,this.options.enable.y?this.data.new_pos.y<0&&(this.data.new_pos.y=0):this.data.new_pos.y=this.data.pos.start.y,e.time<3e3&&(a=!0),Math.abs(e.x)>1e4&&(this.data.direction="left",e.x>0&&(this.data.direction="right")),Math.abs(e.y)>1e4&&(this.data.direction="up",e.y>0&&(this.data.direction="down")),this._animateMomentum(),a&&this.fire("swipe_"+this.data.direction,this.data)}_animateMomentum(){var t={x:this.data.new_pos.x,y:this.data.new_pos.y},e={duration:this.options.duration,easing:R};this.options.enable.y&&((this.options.constraint.top||this.options.constraint.bottom)&&(t.y>this.options.constraint.bottom?t.y=this.options.constraint.bottom:t.y<this.options.constraint.top&&(t.y=this.options.constraint.top)),e.top=Math.floor(t.y)+"px"),this.options.enable.x&&((this.options.constraint.left||this.options.constraint.right)&&(t.x>this.options.constraint.left?t.x=this.options.constraint.left:t.x<this.options.constraint.right&&(t.x=this.options.constraint.right)),e.left=Math.floor(t.x)+"px"),this.animator=Pt(this._el.move,e),this.fire("momentum",this.data)}}Mt(K);var se,V={addListener:function(i,t,e,a){var s=oi(e),r="_tl_"+t+s;if(!i[r]){var l=function(v){return e.call(a||i,v||V._getEvent())};if(F&&"dblclick"===t&&this.addDoubleTapListener)this.addDoubleTapListener(i,l,s);else if("addEventListener"in i)if("mousewheel"===t)i.addEventListener("DOMMouseScroll",l,!1),i.addEventListener(t,l,!1);
1else if("mouseenter"===t||"mouseleave"===t){var d=l;i.addEventListener("mouseenter"===t?"mouseover":"mouseout",l=function(v){if(V._checkMouse(i,v))return d(v)},!1)}else i.addEventListener(t,l,!1);else"attachEvent"in i&&i.attachEvent("on"+t,l);i[r]=l}},removeListener:function(i,t,e){var a=oi(e),s="_tl_"+t+a,r=i[s];r&&(F&&"dblclick"===t&&this.removeDoubleTapListener?this.removeDoubleTapListener(i,a):"removeEventListener"in i?"mousewheel"===t?(i.removeEventListener("DOMMouseScroll",r,!1),i.removeEventListener(t,r,!1)):i.removeEventListener("mouseenter"===t||"mouseleave"===t?"mouseenter"===t?"mouseover":"mouseout":t,r,!1):"detachEvent"in i&&i.detachEvent("on"+t,r),i[s]=null)},_checkMouse:function(i,t){var e=t.relatedTarget;if(!e)return!0;try{for(;e&&e!==i;)e=e.parentNode}catch{return!1}return e!==i},_getEvent:function(){var i=window.event;if(!i)for(var t=arguments.callee.caller;t&&(!(i=t.arguments[0])||window.Event!==i.constructor);)t=t.caller;return i},stopPropagation:function(i){i.stopPropagation?i.stopPropagation():i.cancelBubble=!0},disableClickPropagation:function(i){V.addListener(i,Ti.START,V.stopPropagation),V.addListener(i,"click",V.stopPropagation),V.addListener(i,"dblclick",V.stopPropagation)},preventDefault:function(i){i.preventDefault?i.preventDefault():i.returnValue=!1},stop:function(i){V.preventDefault(i),V.stopPropagation(i)},getWheelDelta:function(i){var t=0;return i.wheelDelta&&(t=i.wheelDelta/120),i.detail&&(t=-i.detail/3),t}},ne=function(){var i,t,e,a,s,r,l=[],d=l.slice,u=l.filter,v=window.document,x={},L={},U={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},H=/^\s*<(\w+|!)[^>]*>/,Q=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,lt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ht=/^(?:body|html)$/i,et=/([A-Z])/g,ut=["val","css","html","text","data","width","height","offset"],dt=v.createElement("table"),kt=v.createElement("tr"),j={tr:v.createElement("tbody"),tbody:dt,thead:dt,tfoot:dt,td:kt,th:kt,"*":v.createElement("div")},g=/complete|loaded|interactive/,I=/^[\w-]*$/,m={},p=m.toString,y={},O=v.createElement("div"),Z={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},W=Array.isArray||function(o){return o instanceof Array};function st(o){return null==o?String(o):m[p.call(o)]||"object"}function A(o){return"function"==st(o)}function yt(o){return null!=o&&o==o.window}function E(o){return null!=o&&o.nodeType==o.DOCUMENT_NODE}function f(o){return"object"==st(o)}function w(o){return f(o)&&!yt(o)&&Object.getPrototypeOf(o)==Object.prototype}function S(o){return"number"==typeof o.length}function B(o){return o.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function z(o){return o in L?L[o]:L[o]=new RegExp("(^|\\s)"+o+"(\\s|$)")}function Zt(o,h){return"number"!=typeof h||U[B(o)]?h:h+"px"}function Ht(o){return"children"in o?d.call(o.children):e.map(o.childNodes,function(h){if(1==h.nodeType)return h})}function Ee(o,h,_){for(t in h)_&&(w(h[t])||W(h[t]))?(w(h[t])&&!w(o[t])&&(o[t]={}),W(h[t])&&!W(o[t])&&(o[t]=[]),Ee(o[t],h[t],_)):h[t]!==i&&(o[t]=h[t])}function qt(o,h){return null==h?e(o):e(o).filter(h)}function Nt(o,h,_,M){return A(h)?h.call(o,_,M):h}function It(o,h,_){null==_?o.removeAttribute(h):o.setAttribute(h,_)}function xt(o,h){var _=o.className,M=_&&_.baseVal!==i;if(h===i)return M?_.baseVal:_;M?_.baseVal=h:o.className=h}function jt(o){var h;try{return o&&("true"==o||"false"!=o&&("null"==o?null:/^0/.test(o)||isNaN(h=Number(o))?/^[\[\{]/.test(o)?e.parseJSON(o):o:h))}catch{return o}}function ue(o,h){for(var _ in h(o),o.childNodes)ue(o.childNodes[_],h)}return y.matches=function(o,h){if(!h||!o||1!==o.nodeType)return!1;var _=o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.matchesSelector;if(_)return _.call(o,h);var M,P=o.parentNode,G=!P;return G&&(P=O).appendChild(o),M=~y.qsa(P,h).indexOf(o),G&&O.removeChild(o),M},s=function(o){return o.replace(/-+(.)?/g,function(h,_){return _?_.toUpperCase():""})},r=function(o){return u.call(o,function(h,_){return o.indexOf(h)==_})},y.fragment=function(o,h,_){var M,P,G;return Q.test(o)&&(M=e(v.createElement(RegExp.$1))),M||(o.replace&&(
vendor: 4,962 bytes, line 1
1o=o.replace(lt,"<$1></$2>")),h===i&&(h=H.test(o)&&RegExp.$1),h in j||(h="*"),(G=j[h]).innerHTML=""+o,M=e.each(d.call(G.childNodes),function(){G.removeChild(this)})),w(_)&&(P=e(M),e.each(_,function(gt,Ot){ut.indexOf(gt)>-1?P[gt](Ot):P.attr(gt,Ot)})),M},y.Z=function(o,h){return(o=o||[]).__proto__=e.fn,o.selector=h||"",o},y.isZ=function(o){return o instanceof y.Z},y.init=function(o,h){var _;if(!o)return y.Z();if("string"==typeof o)if("<"==(o=o.trim())[0]&&H.test(o))_=y.fragment(o,RegExp.$1,h),o=null;else{if(h!==i)return e(h).find(o);_=y.qsa(v,o)}else{if(A(o))return e(v).ready(o);if(y.isZ(o))return o;if(W(o))_=u.call(o,function(P){return null!=P});else if(f(o))_=[o],o=null;else if(H.test(o))_=y.fragment(o.trim(),RegExp.$1,h),o=null;else{if(h!==i)return e(h).find(o);_=y.qsa(v,o)}}return y.Z(_,o)},(e=function(o,h){return y.init(o,h)}).extend=function(o){var h,_=d.call(arguments,1);return"boolean"==typeof o&&(h=o,o=_.shift()),_.forEach(function(M){Ee(o,M,h)}),o},y.qsa=function(o,h){var _,M="#"==h[0],P=!M&&"."==h[0],G=M||P?h.slice(1):h,gt=I.test(G);return E(o)&>&&M?(_=o.getElementById(G))?[_]:[]:1!==o.nodeType&&9!==o.nodeType?[]:d.call(gt&&!M?P?o.getElementsByClassName(G):o.getElementsByTagName(h):o.querySelectorAll(h))},e.contains=function(o,h){return o!==h&&o.contains(h)},e.type=st,e.isFunction=A,e.isWindow=yt,e.isArray=W,e.isPlainObject=w,e.isEmptyObject=function(o){var h;for(h in o)return!1;return!0},e.inArray=function(o,h,_){return l.indexOf.call(h,o,_)},e.camelCase=s,e.trim=function(o){return null==o?"":String.prototype.trim.call(o)},e.uuid=0,e.support={},e.expr={},e.map=function(o,h){var _,M,P,G,gt=[];if(S(o))for(M=0;M<o.length;M++)null!=(_=h(o[M],M))&>.push(_);else for(P in o)null!=(_=h(o[P],P))&>.push(_);return(G=gt).length>0?e.fn.concat.apply([],G):G},e.each=function(o,h){var _,M;if(S(o)){for(_=0;_<o.length;_++)if(!1===h.call(o[_],_,o[_]))return o}else for(M in o)if(!1===h.call(o[M],M,o[M]))return o;return o},e.grep=function(o,h){return u.call(o,h)},window.JSON&&(e.parseJSON=JSON.parse),e.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(o,h){m["[object "+h+"]"]=h.toLowerCase()}),e.fn={forEach:l.forEach,reduce:l.reduce,push:l.push,sort:l.sort,indexOf:l.indexOf,concat:l.concat,map:function(o){return e(e.map(this,function(h,_){return o.call(h,_,h)}))},slice:function(){return e(d.apply(this,arguments))},ready:function(o){return g.test(v.readyState)&&v.body?o(e):v.addEventListener("DOMContentLoaded",function(){o(e)},!1),this},get:function(o){return o===i?d.call(this):this[o>=0?o:o+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(o){return l.every.call(this,function(h,_){return!1!==o.call(h,_,h)}),this},filter:function(o){return A(o)?this.not(this.not(o)):e(u.call(this,function(h){return y.matches(h,o)}))},add:function(o,h){return e(r(this.concat(e(o,h))))},is:function(o){return this.length>0&&y.matches(this[0],o)},not:function(o){var h=[];if(A(o)&&o.call!==i)this.each(function(M){o.call(this,M)||h.push(this)});else{var _="string"==typeof o?this.filter(o):S(o)&&A(o.item)?d.call(o):e(o);this.forEach(function(M){_.indexOf(M)<0&&h.push(M)})}return e(h)},has:function(o){return this.filter(function(){return f(o)?e.contains(this,o):e(this).find(o).size()})},eq:function(o){return-1===o?this.slice(o):this.slice(o,+o+1)},first:function(){var o=this[0];return o&&!f(o)?o:e(o)},last:function(){var o=this[this.length-1];return o&&!f(o)?o:e(o)},find:function(o){var h=this;return"object"==typeof o?e(o).filter(function(){var _=this;return l.some.call(h,function(M){return e.contains(M,_)})}):1==this.length?e(y.qsa(this[0],o)):this.map(function(){return y.qsa(this,o)})},closest:function(o,h){var _=this[0],M=!1;for("object"==typeof o&&(M=e(o));_&&!(M?M.indexOf(_)>=0:y.matches(_,o));)_=_!==h&&!E(_)&&_.parentNode;return e(_)},parents:function(o){for(var h=[],_=this;_.length>0;)_=e.map(_,function(M){if((M=M.parentNode)&&!E(M)&&h.indexOf(M)<0)return h.push(M),M});return qt(h,o)},parent:function(o){return qt(r(this.pluck("parentNode")),o)},children:function(o){return qt(this.map(function(){return Ht(this)}),o)},contents:function(){return this.map(function(){return d.call(this.childNodes)})},siblings:function(o){return qt(this.map(function(h,_){return u.call(Ht(_.parentNode),function(M){return M!==_})}),o)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(o){return e.map(this,function(h){return h[o]})},show:function(){return this.each(function(){var o,h,_;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(x[o=this.nodeName]||(h=v.createElement(o),v.body.appendChild(h),_=getComputedStyle(h,"").getPropertyValue("display"),h.parentNode.removeChild(h),"none"==_&&(_="block"),x[o]=_),x[o]
1))})},replaceWith:function(o){return this.before(o).remove()},wrap:function(o){var h=A(o);if(this[0]&&!h)var _=e(o).get(0),M=_.parentNode||this.length>1;return this.each(function(P){e(this).wrapAll(h?o.call(this,P):M?_.cloneNode(!0):_)})},wrapAll:function(o){if(this[0]){var h;for(e(this[0]).before(o=e(o));(h=o.children()).length;)o=h.first();e(o).append(this)}return this},wrapInner:function(o){var h=A(o);return this.each(function(_){var M=e(this),P=M.contents(),G=h?o.call(this,_):o;P.length?P.wrapAll(G):M.append(G)})},unwrap:function(){return this.parent().each(function(){e(this).replaceWith(e(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(o){return this.each(function(){var h=e(this);(o===i?"none"==h.css("display"):o)?h.show():h.hide()})},prev:function(o){return e(this.pluck("previousElementSibling")).filter(o||"*")},next:function(o){return e(this.pluck("nextElementSibling")).filter(o||"*")},html:function(o){return 0===arguments.length?this.length>0?this[0].innerHTML:null:this.each(function(h){var _=this.innerHTML;e(this).empty().append(Nt(this,o,h,_))})},text:function(o){return 0===arguments.length?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=o===i?"":""+o})},attr:function(o,h){var _;return"string"==typeof o&&h===i?0==this.length||1!==this[0].nodeType?i:"value"==o&&"INPUT"==this[0].nodeName?this.val():!(_=this[0].getAttribute(o))&&o in this[0]?this[0][o]:_:this.each(function(M){if(1===this.nodeType)if(f(o))for(t in o)It(this,t,o[t]);else It(this,o,Nt(this,h,M,this.getAttribute(o)))})},removeAttr:function(o){return this.each(function(){1===this.nodeType&&It(this,o)})},prop:function(o,h){return o=Z[o]||o,h===i?this[0]&&this[0][o]:this.each(function(_){this[o]=Nt(this,h,_,this[o])})},data:function(o,h){var _=this.attr("data-"+o.replace(et,"-$1").toLowerCase(),h);return null!==_?jt(_):i},val:function(o){return 0===arguments.length?this[0]&&(this[0].multiple?e(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value):this.each(function(h){this.value=Nt(this,o,h,this.value)})},offset:function(o){if(o)return this.each(function(_){var M=e(this),P=Nt(this,o,_,M.offset()),G=M.offsetParent().offset(),gt={top:P.top-G.top,left:P.left-G.left};"static"==M.css("position")&&(gt.position="relative"),M.css(gt)});if(0==this.length)return null;var h=this[0].getBoundingClientRect();return{left:h.left+window.pageXOffset,top:h.top+window.pageYOffset,width:Math.round(h.width),height:Math.round(h.height)}},css:function(o,h){if(arguments.length<2){var _=this[0],M=getComputedStyle(_,"");if(!_)return;if("string"==typeof o)return _.style[s(o)]||M.getPropertyValue(o);if(W(o)){var P={};return e.each(W(o)?o:[o],function(gt,Ot){P[Ot]=_.style[s(Ot)]||M.getPropertyValue(Ot)}),P}}var G="";if("string"==st(o))h||0===h?G=B(o)+":"+Zt(o,h):this.each(function(){this.style.removeProperty(B(o))});else for(t in o)o[t]||0===o[t]?G+=B(t)+":"+Zt(t,o[t])+";":this.each(function(){this.style.removeProperty(B(t))});return this.each(function(){this.style.cssText+=";"+G})},index:function(o){return o?this.indexOf(e(o)[0]):this.parent().children().indexOf(this[0])},hasClass:function(o){return!!o&&l.some.call(this,function(h){return this.test(xt(h))},z(o))},addClass:function(o){return o?this.each(function(h){a=[];var _=xt(this);Nt(this,o,h,_).split(/\s+/g).forEach(function(M){e(this).hasClass(M)||a.push(M)},this),a.length&&xt(this,_+(_?" ":"")+a.join(" "))}):this},removeClass:function(o){return this.each(function(h){if(o===i)return xt(this,"");a=xt(this),Nt(this,o,h,a).split(/\s+/g).forEach(function(_){a=a.replace(z(_)," ")}),xt(this,a.trim())})},toggleClass:function(o,h){return o?this.each(function(_){var M=e(this);Nt(this,o,_,xt(this)).split(/\s+/g).forEach(function(P){(h===i?!M.hasClass(P):h)?M.addClass(P):M.removeClass(P)})}):this},scrollTop:function(o){if(this.length){var h="scrollTop"in this[0];return o===i?h?this[0].scrollTop:this[0].pageYOffset:this.each(h?function(){this.scrollTop=o}:function(){this.scrollTo(this.scrollX,o)})}}
1,scrollLeft:function(o){if(this.length){var h="scrollLeft"in this[0];return o===i?h?this[0].scrollLeft:this[0].pageXOffset:this.each(h?function(){this.scrollLeft=o}:function(){this.scrollTo(o,this.scrollY)})}},position:function(){if(this.length){var o=this[0],h=this.offsetParent(),_=this.offset(),M=ht.test(h[0].nodeName)?{top:0,left:0}:h.offset();return _.top-=parseFloat(e(o).css("margin-top"))||0,_.left-=parseFloat(e(o).css("margin-left"))||0,M.top+=parseFloat(e(h[0]).css("border-top-width"))||0,M.left+=parseFloat(e(h[0]).css("border-left-width"))||0,{top:_.top-M.top,left:_.left-M.left}}},offsetParent:function(){return this.map(function(){for(var o=this.offsetParent||v.body;o&&!ht.test(o.nodeName)&&"static"==e(o).css("position");)o=o.offsetParent;return o})}},e.fn.detach=e.fn.remove,["width","height"].forEach(function(o){var h=o.replace(/./,function(_){return _[0].toUpperCase()});e.fn[o]=function(_){var M,P=this[0];return _===i?yt(P)?P["inner"+h]:E(P)?P.documentElement["scroll"+h]:(M=this.offset())&&M[o]:this.each(function(G){(P=e(this)).css(o,Nt(this,_,G,P[o]()))})}}),["after","prepend","before","append"].forEach(function(o,h){var _=h%2;e.fn[o]=function(){var M,P,G=e.map(arguments,function(Ot){return"object"==(M=st(Ot))||"array"==M||null==Ot?Ot:y.fragment(Ot)}),gt=this.length>1;return G.length<1?this:this.each(function(Ot,re){P=_?re:re.parentNode,re=0==h?re.nextSibling:1==h?re.firstChild:2==h?re:null,G.forEach(function(ye){if(gt)ye=ye.cloneNode(!0);else if(!P)return e(ye).remove();ue(P.insertBefore(ye,re),function(si){null==si.nodeName||"SCRIPT"!==si.nodeName.toUpperCase()||si.type&&"text/javascript"!==si.type||si.src||window.eval.call(window,si.innerHTML)})})})},e.fn[_?o+"To":"insert"+(h?"Before":"After")]=function(M){return e(M)[o](this),this}}),y.Z.prototype=e.fn,y.uniq=r,y.deserializeValue=jt,e.zepto=y,e}();window.Zepto=ne,void 0===window.$&&(window.$=ne),function(i){var t,e=1,a=Array.prototype.slice,s=i.isFunction,r=function(m){return"string"==typeof m},l={},d={},u="onfocusin"in window,v={focus:"focusin",blur:"focusout"}
vendor: 4,138 bytes, line 1
1,x={mouseenter:"mouseover",mouseleave:"mouseout"};function L(m){return m._zid||(m._zid=e++)}function U(m,p,y,O){if((p=H(p)).ns)var Z=new RegExp("(?:^| )"+p.ns.replace(" "," .* ?")+"(?: |$)");return(l[L(m)]||[]).filter(function(st){return st&&(!p.e||st.e==p.e)&&(!p.ns||Z.test(st.ns))&&(!y||L(st.fn)===L(y))&&(!O||st.sel==O)})}function H(m){var p=(""+m).split(".");return{e:p[0],ns:p.slice(1).sort().join(" ")}}function Q(m,p){return m.del&&!u&&m.e in v||!!p}function lt(m){return x[m]||u&&v[m]||m}function ht(m,p,y,O,Z,W,st){var A=L(m),yt=l[A]||(l[A]=[]);p.split(/\s/).forEach(function(E){if("ready"==E)return i(document).ready(y);var f=H(E);f.fn=y,f.sel=Z,f.e in x&&(y=function(S){var B=S.relatedTarget;if(!B||B!==this&&!i.contains(this,B))return f.fn.apply(this,arguments)}),f.del=W;var w=W||y;f.proxy=function(S){if(!(S=g(S)).isImmediatePropagationStopped()){S.data=O;var B=w.apply(m,S._args==t?[S]:[S].concat(S._args));return!1===B&&(S.preventDefault(),S.stopPropagation()),B}},f.i=yt.length,yt.push(f),"addEventListener"in m&&m.addEventListener(lt(f.e),f.proxy,Q(f,st))})}function et(m,p,y,O,Z){var W=L(m);(p||"").split(/\s/).forEach(function(st){U(m,st,y,O).forEach(function(A){delete l[W][A.i],"removeEventListener"in m&&m.removeEventListener(lt(A.e),A.proxy,Q(A,Z))})})}d.click=d.mousedown=d.mouseup=d.mousemove="MouseEvents",i.event={add:ht,remove:et},i.proxy=function(m,p){if(s(m)){var y=function(){return m.apply(p,arguments)};return y._zid=L(m),y}if(r(p))return i.proxy(m[p],m);throw new TypeError("expected function")},i.fn.bind=function(m,p,y){return this.on(m,p,y)},i.fn.unbind=function(m,p){return this.off(m,p)},i.fn.one=function(m,p,y,O){return this.on(m,p,y,O,1)};var ut=function(){return!0},dt=function(){return!1},kt=/^([A-Z]|returnValue$|layer[XY]$)/,j={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function g(m,p){return!p&&m.isDefaultPrevented||(p||(p=m),i.each(j,function(y,O){var Z=p[y];m[y]=function(){return this[O]=ut,Z&&Z.apply(p,arguments)},m[O]=dt}),(p.defaultPrevented!==t?p.defaultPrevented:"returnValue"in p?!1===p.returnValue:p.getPreventDefault&&p.getPreventDefault())&&(m.isDefaultPrevented=ut)),m}function I(m){var p,y={originalEvent:m};for(p in m)kt.test(p)||m[p]===t||(y[p]=m[p]);return g(y,m)}i.fn.delegate=function(m,p,y){return this.on(p,m,y)},i.fn.undelegate=function(m,p,y){return this.off(p,m,y)},i.fn.live=function(m,p){return i(document.body).delegate(this.selector,m,p),this},i.fn.die=function(m,p){return i(document.body).undelegate(this.selector,m,p),this},i.fn.on=function(m,p,y,O,Z){var W,st,A=this;return m&&!r(m)?(i.each(m,function(yt,E){A.on(yt,p,y,E,Z)}),A):(r(p)||s(O)||!1===O||(O=y,y=p,p=t),(s(y)||!1===y)&&(O=y,y=t),!1===O&&(O=dt),A.each(function(yt,E){Z&&(W=function(f){return et(E,f.type,O),O.apply(this,arguments)}),p&&(st=function(f){var w,S=i(f.target).closest(p,E).get(0);if(S&&S!==E)return w=i.extend(I(f),{currentTarget:S,liveFired:E}),(W||O).apply(S,[w].concat(a.call(arguments,1)))}),ht(E,m,O,y,p,st||W)}))},i.fn.off=function(m,p,y){var O=this;return m&&!r(m)?(i.each(m,function(Z,W){O.off(Z,p,W)}),O):(r(p)||s(y)||!1===y||(y=p,p=t),!1===y&&(y=dt),O.each(function(){et(this,m,y,p)}))},i.fn.trigger=function(m,p){return(m=r(m)||i.isPlainObject(m)?i.Event(m):g(m))._args=p,this.each(function(){"dispatchEvent"in this?this.dispatchEvent(m):i(this).triggerHandler(m,p)})},i.fn.triggerHandler=function(m,p){var y,O;return this.each(function(Z,W){(y=I(r(m)?i.Event(m):m))._args=p,y.target=W,i.each(U(W,m.type||m),function(st,A){if(O=A.proxy(y),y.isImmediatePropagationStopped())return!1})}),O},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(m){i.fn[m]=function(p){return p?this.bind(m,p):this.trigger(m)}}),["focus","blur"].forEach(function(m){i.fn[m]=function(p){return p?this.bind(m,p):this.each(function(){try{this[m]()}catch{}}),this}}),i.Event=function(m,p){r(m)||(m=(p=m).type);var y=document.createEvent(d[m]||"Events"),O=!0;
1if(p)for(var Z in p)"bubbles"==Z?O=!!p[Z]:y[Z]=p[Z];return y.initEvent(m,O,!0),g(y)}}(ne),function(i){var t,e,a=0,s=window.document,r=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,l=/^(?:text|application)\/javascript/i,d=/^(?:text|application)\/xml/i,u="application/json",v="text/html",x=/^\s*$/;function L(j,g,I,m){if(j.global)return p=g||s,O=m,Z=i.Event(I),i(p).trigger(Z,O),!Z.isDefaultPrevented();var p,O,Z}function U(j,g){var I=g.context;if(!1===g.beforeSend.call(I,j,g)||!1===L(g,I,"ajaxBeforeSend",[j,g]))return!1;L(g,I,"ajaxSend",[j,g])}function H(j,g,I,m){var p=I.context,y="success";I.success.call(p,j,y,g),m&&m.resolveWith(p,[j,y,g]),L(I,p,"ajaxSuccess",[g,I,j]),lt(y,g,I)}function Q(j,g,I,m,p){var y=m.context;m.error.call(y,I,g,j),p&&p.rejectWith(y,[I,g,j]),L(m,y,"ajaxError",[I,m,j||g]),lt(g,I,m)}function lt(j,g,I){var p,m=I.context;I.complete.call(m,g,j),L(I,m,"ajaxComplete",[g,I]),(p=I).global&&! --i.active&&L(p,null,"ajaxStop")}function ht(){}function et(j,g){return""==g?j:(j+"&"+g).replace(/[&?]{1,2}/,"?")}function ut(j,g,I,m){var p=!i.isFunction(g);return{url:j,data:p?g:void 0,success:p?i.isFunction(I)?I:void 0:g,dataType:p&&m||I}}i.active=0,i.ajaxJSONP=function(j,g){if(!("type"in j))return i.ajax(j);var I,m,p=j.jsonpCallback,y=(i.isFunction(p)?p():p)||"jsonp"+ ++a,O=s.createElement("script"),Z=window[y],W=function(A){i(O).triggerHandler("error",A||"abort")},st={abort:W};return g&&g.promise(st),i(O).on("load error",function(A,yt){clearTimeout(m),i(O).off().remove(),"error"!=A.type&&I?H(I[0],st,j,g):Q(null,yt||"error",st,j,g),window[y]=Z,I&&i.isFunction(Z)&&Z(I[0]),Z=I=void 0}),!1===U(st,j)?(W("abort"),st):(window[y]=function(){I=arguments},O.src=j.url.replace(/\?(.+)=\?/,"?$1="+y),s.head.appendChild(O),j.timeout>0&&(m=setTimeout(function(){W("timeout")},j.timeout)),st)},i.ajaxSettings={type:"GET",beforeSend:ht,success:ht,error:ht,complete:ht,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:u,xml:"application/xml, text/xml",html:v,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},i.ajax=function(j){var f,g=i.extend({},j||{}),I=i.Deferred&&i.Deferred();for(t in i.ajaxSettings)void 0===g[t]&&(g[t]=i.ajaxSettings[t]);(f=g).global&&0==i.active++&&L(f,null,"ajaxStart"),g.crossDomain||(g.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(g.url)&&RegExp.$2!=window.location.host),g.url||(g.url=window.location.toString()),function(f){f.processData&&f.data&&"string"!=i.type(f.data)&&(f.data=i.param(f.data,f.traditional)),!f.data||f.type&&"GET"!=f.type.toUpperCase()||(f.url=et(f.url,f.data),f.data=void 0)}(g),!1===g.cache&&(g.url=et(g.url,"_="+Date.now()));var m=g.dataType,p=/\?.+=\?/.test(g.url);if("jsonp"==m||p)return p||(g.url=et(g.url,g.jsonp?g.jsonp+"=?":!1===g.jsonp?"":"callback=?")),i.ajaxJSONP(g,I);var y,O=g.accepts[m],Z={},W=function(f,w){Z[f.toLowerCase()]=[f,w]},st=/^([\w-]+:)\/\//.test(g.url)?RegExp.$1:window.location.protocol,A=g.xhr(),yt=A.setRequestHeader;if(I&&I.promise(A),g.crossDomain||W("X-Requested-With","XMLHttpRequest"),W("Accept",O||"*/*"),(O=g.mimeType||O)&&(O.indexOf(",")>-1&&(O=O.split(",",2)[0]),A.overrideMimeType&&A.overrideMimeType(O)),(g.contentType||!1!==g.contentType&&g.data&&"GET"!=g.type.toUpperCase())&&W("Content-Type",g.contentType||"application/x-www-form-urlencoded"),g.headers)for(e in g.headers)W(e,g.headers[e]);if(A.setRequestHeader=W,A.onreadystatechange=function(){if(4==A.readyState){A.onreadystatechange=ht,clearTimeout(y);var f,w=!1;if(A.status>=200&&A.status<300||304==A.status||0==A.status&&"file:"==st){m=m||((S=g.mimeType||A.getResponseHeader("content-type"))&&(S=S.split(";",2)[0]),S&&(S==v?"html":S==u?"json":l.test(S)?"script":d.test(S)&&"xml")||"text"),f=A.responseText;try{"script"==m?(0,eval)(f):"xml"==m?f=A.responseXML:"json"==m&&(f=x.test(f)?null:i.parseJSON(f))}catch(S){w=S}w?Q(w,"parsererror",A,g,I):H(f,A,g,I)}else Q(A.statusText||null,A.status?"error":"abort",A,g,I)}var S},!1===U(A,g))return A.abort(),Q(null,"abort",A,g,I),A;if(g.xhrFields)for(e in g.xhrFields)A[e]=g.xhrFields[e];var E=!("async"in g)||g.async;for(e in A.open(g.type,g.url,E,g.username,g.password),Z)yt.apply(A,Z[e]);return g.timeout>0&&(y=setTimeout(function(){A.onreadystatechange=ht,A.abort(),Q(null,"timeout",A,g,I)},g.timeout)),A.send(g.data?g.data:null),A},i.get=function(j,g,I,m){return i.ajax(ut.apply(null,arguments))},i.post=function(j,g,I,m){var p=ut.apply(null,arguments);return p.type="POST",i.ajax(p)},i.getJSON=function(j,g,I){var m=ut.apply(null,arguments);return m.dataType="json",i.ajax(m)},i.fetchJSON=function(j){var g=new XMLHttpRequest;return new Promise(function(I,m){g.onreadystatechange=function(){try{if(4!==g.readyState)return;if(g.status>=200&&g.status<300){var p=JSON.parse(g.responseText);I(p)}else m({status:g.status,statusText:g.statusText})}catch(y){m({status:400,statusText:`Error fetching JSON from ${j}: ${y}`})}},g.open("GET",j,!0),g.send()})},i.fn.load=function(j,g,I){if(!this.length)return this;var m,p=this,y=j.split(/\s/),O=ut(j,g,I),Z=O.success;return y.length>1&&(O.url=y[0],m=y[1]),O.success=function(W){p.html(m?i("<div>").html(W.replace(r,"")).find(m):W),Z&&Z.apply(p,arguments)},i.ajax(O),this};var dt=encodeURIComponent;function kt(j,g,I,m){var p,y=i.isArray(g),O=i.isPlainObject(g);
1i.each(g,function(Z,W){p=i.type(W),m&&(Z=I?m:m+"["+(O||"object"==p||"array"==p?Z:"")+"]"),!m&&y?j.add(W.name,W.value):"array"==p||!I&&"object"==p?kt(j,W,I,Z):j.add(Z,W)})}i.param=function(j,g){var I=[];return I.add=function(m,p){this.push(dt(m)+"="+dt(p))},kt(I,j,g),I.join("&").replace(/%20/g,"+")}}(ne),(se=ne).fn.serializeArray=function(){var i,t=[];return se([].slice.call(this.get(0).elements)).each(function(){var e=(i=se(this)).attr("type");"fieldset"!=this.nodeName.toLowerCase()&&!this.disabled&&"submit"!=e&&"reset"!=e&&"button"!=e&&("radio"!=e&&"checkbox"!=e||this.checked)&&t.push({name:i.attr("name"),value:i.val()})}),t},se.fn.serialize=function(){var i=[];return this.serializeArray().forEach(function(t){i.push(encodeURIComponent(t.name)+"="+encodeURIComponent(t.value))}),i.join("&")},se.fn.submit=function(i){if(i)this.bind("submit",i);else if(this.length){var t=se.Event("submit");this.eq(0).trigger(t),t.isDefaultPrevented()||this.get(0).submit()}return this},function(i){"__proto__"in{}||i.extend(i.zepto,{Z:function(e,a){return i.extend(e=e||[],i.fn),e.selector=a||"",e.__Z=!0,e},isZ:function(e){return"array"===i.type(e)&&"__Z"in e}});try{getComputedStyle(void 0)}catch{var t=getComputedStyle;window.getComputedStyle=function(a,s){try{return t(a,s)}catch{return null}}}}(ne);const qe=ne.getJSON,we=ne.ajax,Fe=ne.fetchJSON,Kt=[["millisecond",1,function(i){}],["second",1e3,function(i){i.setMilliseconds(0)}],["minute",6e4,function(i){i.setSeconds(0)}],["hour",36e5,function(i){i.setMinutes(0)}],["day",864e5,function(i){i.setHours(0)}],["month",2592e6,function(i){i.setDate(1)}],["year",31536e6,function(i){i.setMonth(0)}],["decade",31536e7,function(i){var t=i.getFullYear();i.setFullYear(t-t%10)}],["century",31536e8,function(i){var t=i.getFullYear();i.setFullYear(t-t%100)}],["millennium",31536e9,function(i){var t=i.getFullYear();i.setFullYear(t-t%1e3)}]],Qt=["millisecond","second","minute","hour","day","month","year"],Mi=/^([\+-]?\d+?)(-\d{2}?)?(-\d{2}?)?$/,Wi=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,Ei={base:{millisecond:"time_short",second:"time",minute:"time_no_seconds_small_date",hour:"time_no_seconds_small_date",day:"full",month:"month",year:"year",decade:"year",century:"year",millennium:"year",age:"fallback",epoch:"fallback",era:"fallback",eon:"fallback",eon2:"fallback"},short:{millisecond:"time_short",second:"time_short",minute:"time_no_seconds_short",hour:"time_no_minutes_short",day:"full_short",month:"month_short",year:"year",decade:"year",century:"year",millennium:"year",age:"fallback",epoch:"fallback",era:"fallback",eon:"fallback",eon2:"fallback"}},ke=rt.extend({initialize:function(i,t,e){"number"==typeof i?this.data={format:"yyyy mmmm",date_obj:new Date(i)}:Date==i.constructor?this.data={format:"yyyy mmmm",date_obj:i}:(this.data=JSON.parse(JSON.stringify(i)),this._createDateObj()),i.format&&!t&&(t=i.format),this._setFormat(t,e)},setDateFormat:function(i){this.data.format=i},getDisplayDate:function(i,t){return this.data.display_date?this.data.display_date:(i||(i=vt.fallback),i.constructor!=vt&&(J("First argument to getDisplayDate must be type Language"),i=vt.fallback),i.formatDate(this.data.date_obj,t||this.data.format))},getMillisecond:function(){return this.getTime()},getTime:function(){return this.data.date_obj.getTime()},isBefore:function(i){if(!this.data.date_obj.constructor==i.data.date_obj.constructor)throw new Y("date_compare_err");return"isBefore"in this.data.date_obj?this.data.date_obj.isBefore(i.data.date_obj):this.data.date_obj<i.data.date_obj},isAfter:function(i){if(!this.data.date_obj.constructor==i.data.date_obj.constructor)throw new Y("date_compare_err");return"isAfter"in this.data.date_obj?this.data.date_obj.isAfter(i.data.date_obj):this.data.date_obj>i.data.date_obj},floor:function(i){for(var t=new Date(this.data.date_obj.getTime()),e=0;e<Kt.length;e++)if(Kt[e][2](t),Kt[e][0]==i)return new ke(t);throw new Y("invalid_scale_err",i)},_getDateData:function(){var i={year:0,month:1,day:1,hour:0,minute:0,second:0,millisecond:0};for(var t in tt(i,this.data),Qt){if(!zt(i[Qt[t]]).match(/^-?\d*$/))throw new Y("invalid_date_err",Qt[t]+" = '"+i[Qt[t]]+"'");var e=parseInt(i[Qt[t]]);isNaN(e)&&(e=4==t||5==t?1:0),i[Qt[t]]=e}return i.month>0&&i.month<=12&&(i.month=i.month-1),i},_createDateObj:function(){var i=this._getDateData();this.data.date_obj=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond),this.data.date_obj.getFullYear()!=i.year&&this.data.date_obj.setFullYear(i.year)},findBestFormat:function(i){for(var t=Qt,e=0;e<t.length;
1e++)if(this.data[t[e]])return i?i in Ei||(i="short"):i="base",Ei[i][t[e]];return""},_setFormat:function(i,t){i?this.data.format=i:this.data.format||(this.data.format=this.findBestFormat()),t?this.data.format_short=t:this.data.format_short||(this.data.format_short=this.findBestFormat(!0))},getFullYear:function(){return this.data.date_obj.getFullYear()}});function $e(i){if(i.match(Mi)){var t=i.match(Mi).slice(1),e={year:t[0].replace("+","")};return t[1]&&(e.month=t[1].replace("-","")),t[2]&&(e.day=t[2].replace("-","")),e}if(i.match(Wi))return cls.parseISODate(i);if(i.match(/^\-?\d+$/))return{year:i};var a={};if(i.match(/\d+\/\d+\/\d+/)){var s=i.match(/\d+\/\d+\/\d+/)[0];i=zt(i.replace(s,""));var r=s.split("/");a.month=r[0],a.day=r[1],a.year=r[2]}if(i.match(/\d+\/\d+/)&&(s=i.match(/\d+\/\d+/)[0],i=zt(i.replace(s,"")),r=s.split("/"),a.month=r[0],a.year=r[1]),i.match(":")){var l=i.split(":");if(a.hour=l[0],a.minute=l[1],l[2]){let d=l[2].split(".");a.second=d[0],a.millisecond=d[1]}}return a}const Wt=rt.extend({initialize:function(i){if(this.year=parseInt(i),isNaN(this.year))throw new Y("invalid_year_err",i)},isBefore:function(i){return this.year<i.year},isAfter:function(i){return this.year>i.year},getTime:function(){return this.year}}),Be=1e6,xe=10*Be,De=10*xe,Li=10*De;function he(i){return function(t){var e=t.getTime();return new Wt(Math.floor(e/i)*i)}}const Ue=[["year",1,new he(1)],["decade",10,new he(10)],["century",100,new he(100)],["millennium",1e3,new he(1e3)],["age",Be,new he(Be)],["epoch",xe,new he(xe)],["era",De,new he(De)],["eon",Li,new he(Li)]],We=ke.extend({initialize:function(i,t,e){Wt==i.constructor?this.data={date_obj:i}:(this.data=JSON.parse(JSON.stringify(i)),this._createDateObj()),i.format&&!t&&(t=i.format),this._setFormat(t,e)},_createDateObj:function(){var i=this._getDateData();this.data.date_obj=new Wt(i.year)},floor:function(i){for(var t=0;t<Ue.length;t++)if(Ue[t][0]==i){var e=Ue[t][2](this.data.date_obj);return new We(e)}throw new Y("invalid_scale_err",i)},getFullYear:function(){return this.data.date_obj.getTime()}}),hi=new RegExp(/\$\{(.+?)\}/g);class vt{constructor(t,e){for(let r in de.en)this[r]=de.en[r];if(t&&"string"==typeof t&&"en"!=t){var a=t;if(!(a in de)){console.log(`Expected language ${a} to be cached. Did you call the constructor directly?`);var s=Ze(a,e);Fe(s).then(r=>{de[a]=r}).catch(r=>{console.log(`Error loading language [${s}] ${r.statusText} [${r.status}]`)})}tt(this,de[a])}}mergeData(t){for(k in de.en)t[k]&&("object"==typeof this[k]?tt(t[k],this[k]):this[k]=t[k])}formatBigYear(t,e){var a=t.year,s=this.bigdateformats[e]||this.bigdateformats.fallback;if(s){for(var r=0;r<s.length;r++){var l=s[r];if(Math.abs(a/l[0])>1)return Ge(Math.abs(a/l[0]),l[1])}return a.toString()}return J("Language file dateformats missing cosmological. Falling back."),Ge(a,e)}_(t,e){let a=this.messages[t]||vt.fallback.messages[t]||t;if(a.match(hi)){if(!e)throw new Y("template_message_without_context");for(let s of a.matchAll(hi)){if(!(s[1]in e))throw new Y("template_message_without_context");a=a.replace(s[0],e[s[1]])}}return a}formatDate(t,e){return t.constructor==Date?this.formatJSDate(t,e):t.constructor==Wt?this.formatBigYear(t,e):t.data&&t.data.date_obj?this.formatDate(t.data.date_obj,e):(J("Unfamiliar date presented for formatting"),t.toString())}formatJSDate(t,e){var a=this,s=function(et,ut){var dt=a.period_labels[et];return dt&&(et=ut<12?dt[0]:dt[1]),"<span class='tl-timeaxis-timesuffix'>"+et+"</span>"};e||(e="full");var r=this.dateformats[e]||vt.fallback.dateformats[e];r||(r=e);var l=t.getDate(),d=t.getDay(),u=t.getMonth(),v=t.getFullYear(),x=t.getHours(),L=t.getMinutes(),U=t.getSeconds(),H=t.getMilliseconds(),Q=t.getTimezoneOffset(),lt={d:l,dd:Bt(l),ddd:this.date.day_abbr[d],dddd:this.date.day[d],m:u+1,mm:Bt(u+1),mmm:this.date.month_abbr[u],mmmm:this.date.month[u],yy:String(v).slice(2),yyyy:v<0&&this.has_negative_year_modifier()?Math.abs(v):v,h:x%12||12,hh:Bt(x%12||12),H:x,HH:Bt(x),M:L,MM:Bt(L),s:U,ss:Bt(U),l:Bt(H,3),L:Bt(H>99?Math.round(H/10):H),t:s("t",x),tt:s("tt",x),T:s("T",x),TT:s("TT",x),Z:(String(t).match(/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g)||[""]).pop().replace(/[^-+\dA-Z]/g,""),o:(Q>0?"-":"+")+Bt(100*Math.floor(Math.abs(Q)/60)+Math.abs(Q)%60,4),S:["th","st","nd","rd"][l%10>3?0:(l%100-l%10!=10)*l%10]},ht=r.replace(vt.DATE_FORMAT_TOKENS,function(et){return et in lt?lt[et]:et.slice(1,et.length-1)});return this._applyEra(ht,v)}has_negative_year_modifier(){return!(!this.era_labels.negative_year.prefix&&!this.era_labels.negative_year.suffix)}_applyEra(t,e){var a=e<0?this.era_labels.negative_year:this.era_labels.positive_year,s="";return a.prefix&&(s+="<span>"+a.prefix+"</span> "),s+=t,a.suffix&&(s+=" <span>"+a.suffix+"</span>"),s}}function Ze(i,t){if(/\.json$/.test(i))var e=i;else{var a="/locale/"+i+".json";/\/$/.test(t)&&(a=a.substr(1)),e=t+a}return e}function Ge(i,t){if(t.match(/%(\.(\d+))?f/)){var e=t.match(/%(\.(\d+))?f/),a=e[0];return e[2]&&(i=i.toFixed(e[2])),t.replace(a,i)}return t}vt.fallback={messages:{}},vt.DATE_FORMAT_TOKENS=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g;var de={en:{name:"English (built-in)",lang:"en",api:{wikipedia:"en"}
1,messages:{loading:"Loading",wikipedia:"From Wikipedia, the free encyclopedia",error:"Error",return_to_title:"Return to Title",go_to_end:"Go to the last slide",loading_content:"Loading Content",loading_timeline:"Loading Timeline... ",swipe_to_navigate:"Swipe to Navigate<br><span class='tl-button'>OK</span>",zoom_in:"Zoom in",zoom_out:"Zoom out",unknown_read_err:"An unexpected error occurred trying to read your spreadsheet data",invalid_url_err:"Unable to read Timeline data. Make sure your URL is for a Google Spreadsheet or a Timeline JSON file.",network_err:"Unable to read your Google Spreadsheet. Make sure you have published it to the web.",missing_start_date_err:"Missing start_date",invalid_start_time_without_date:"Invalid configuration: time cannot be used without date.",invalid_end_time_without_date:"Invalid configuration: end time cannot be used without end date.",date_compare_err:"Can't compare timeline date objects on different scales",invalid_scale_err:"Invalid scale",invalid_date_err:"Invalid date: month, day and year must be numbers.",invalid_separator_error:"Invalid time: misuse of : or . as separator.",invalid_hour_err:"Invalid time (hour)",invalid_minute_err:"Invalid time (minute)",invalid_second_err:"Invalid time (second)",invalid_fractional_err:"Invalid time (fractional seconds)",invalid_second_fractional_err:"Invalid time (seconds and fractional seconds)",invalid_year_err:"Invalid year",flickr_notfound_err:"Photo not found or private",flickr_invalidurl_err:"Invalid Flickr URL",imgur_invalidurl_err:"Invalid Imgur URL",twitter_load_err:"Unable to load Tweet",twitterembed_invalidurl_err:"Invalid Twitter Embed url",wikipedia_load_err:"Unable to load Wikipedia entry",wikipedia_image_load_err:"Unable to load Wikipedia image data",spotify_invalid_url:"Invalid Spotify URL",invalid_rgb_err:"Invalid RGB argument",time_scale_scale_err:"Don't know how to get date from time for scale",axis_helper_no_options_err:"Axis helper must be configured with options",axis_helper_scale_err:"No AxisHelper available for scale",invalid_integer_option:"Invalid option value\u2014must be a whole number.",instagram_bad_request:"Invalid or private Instagram URL",template_message_without_context:"Required variables not provided for template translation message",aria_label_timeline:"Timeline",aria_label_timeline_navigation:"Timeline navigation",aria_label_timeline_content:"Timeline content",aria_label_zoomin:"Show less than ${start} to ${end}",aria_label_zoomout:"Show more than ${start} to ${end}"},date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},era_labels:{positive_year:{prefix:"",suffix:""},negative_year:{prefix:"",suffix:"BCE"}},period_labels:{t:["a","p"],tt:["am","pm"],T:["A","P"],TT:["AM","PM"]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time:"h:MM:ss TT' <small>'mmmm d',' yyyy'</small>'",time_short:"h:MM:ss TT",time_no_seconds_short:"h:MM TT",time_no_minutes_short:"h TT",time_no_seconds_small_date:"h:MM TT' <small>'mmmm d',' yyyy'</small>'",time_milliseconds:"l",full_long:"mmm d',' yyyy 'at' h:MM TT",full_long_small_date:"h:MM TT' <small>mmm d',' yyyy'</small>'"},bigdateformats:{fallback:[[1e9,"%.2f billion years ago"],[1e6,"%.1f million years ago"],[1e3,"%.1f thousand years ago"],[1,"%f years ago"]],compact:[[1e9,"%.2f bya"],[1e6,"%.1f mya"],[1e3,"%.1f kya"],[1,"%f years ago"]],verbose:[[1e9,"%.2f billion years ago"],[1e6,"%.1f million years ago"],[1e3,"%.1f thousand years ago"],[1,"%f years ago"]]}}};let di=new vt;vt.fallback=di;class oe{setLanguage(t){this.language=t}getLanguage(){if(this.language){if("object"==typeof this.language)return this.language;J("I18NMixins.getLanguage: this.language should be object, but is "+typeof this.language)}return di}_(t,e){return this.getLanguage()._(t,e)}}class Se{constructor(t,e,a){a&&this.setLanguage(a),this._el={parent:{},container:{},message_container:{},loading_icon:{},message:{}},this.options={width:600,height:600,message_class:"tl-message",message_icon_class:"tl-loading-icon"},this.container=t,tt(this.options,e),this._el.container=b("div",this.options.message_class),t&&(t.appendChild(this._el.container),this._el.parent=t),this.animator={},this._initLayout(),this._initEvents()}updateMessage(t){this._el.message.innerHTML=t||this._("loading"),!this._el.parent.atributes&&this.container.attributes&&(this.container.appendChild(this._el.container),this._el.parent=this.container)}updateDisplay(t,e){}_onMouseClick(){this.fire("clicked",this.options)}_onRemove(){this._el.parent={}}_initLayout(){this._el.message_container=b("div","tl-message-container",this._el.container),this._el.loading_icon=b("div",this.options.message_icon_class,this._el.message_container),this._el.message=b("div","tl-message-content",this._el.message_container),this.updateMessage()}_initEvents(){V.addListener(this._el.container,"click",this._onMouseClick,this),V.addListener(this,"removed",this._onRemove,this)}}function Te(i,t){t=t||"start_date",i.sort(function(e,a){return e[t].isBefore(a[t])?-1:e[t].isAfter(a[t])?1:0})}function Et(i){var t={hour:null,minute:null,second:null,millisecond:null},e=null,a=i.match(/(\s*[AaPp]\.?[Mm]\.?\s*)$/);a&&(e=zt(a[0]),i=zt(i.substring(0,i.lastIndexOf(e))));var s=[],r=i.match(/^\s*(\d{1,2})(\d{2})\s*$/);if(r?s=r.slice(1):1==(s=i.split(":")).length&&(s=i.split(".")),s.length>4)throw new Y("invalid_separator_error");let l=s[0];if(t.hour=parseInt(l),e&&"p"==e.toLowerCase()[0]&&12!=t.hour?t.hour+=12:e&&"a"==e.toLowerCase()[0]&&12==t.hour&&(t.hour=0),isNaN(t.hour)||t.hour<0||t.hour>23)throw new Y("invalid_hour_err",l);if(s.length>1){let v=s[1];if(t.minute=parseInt(v),isNaN(t.minute))throw new Y("invalid_minute_err",v)}if(s.length>2){var d=s[2].split(/[\.,]/);if((s=d.concat(s.slice(3))).length>2)throw new Y("invalid_second_fractional_err");if(t.second=parseInt(s[0]),isNaN(t.second))throw new Y("invalid_second_err",s[0]);if(2==s.length){var u=parseInt(s[1]);if(isNaN(u))throw new Y("invalid_fractional_err",s[1]);t.millisecond=100*u}}return t}Mt(Se,oe,K,Ut);const Di=new RegExp("(^-?\\d+$|^$)");
1function Lt(i){try{return Object.keys(i).forEach(t=>{let e=i[t];if(e&&e.match&&!e.match(Di))throw`invalid value ${e} for ${t}`}),!0}catch{return!1}}const ci={human:ke,cosmological:We};var ui=Gt(856),Ae=Gt.n(ui);const Si={text:["headline","text"],media:["caption","credit"]},mi={start_date:["display_date"],end_date:["display_date"],slide:["display_date","group"],date:["display_date"]};function _i(i,t,e){Object.keys(e).forEach(a=>{var s="slide"==a?i:i[a];s&&e[a].forEach(r=>{void 0!==s[r]&&(s[r]=t(s[r]))})})}function Me(i){return Ae().sanitize(i,{ADD_TAGS:["iframe"],ADD_ATTR:["frameborder","target"]})}Ae().addHook("afterSanitizeAttributes",function(i){if("A"==i.nodeName&&"href"in i){"target"in i.attributes||i.setAttribute("target","_blank");let t=i.attributes.rel;t?-1==t.value.indexOf("noopener")&&i.setAttribute("rel",`noopener ${t.value}`):i.setAttribute("rel","noopener")}});class Vt{constructor(t){if(this.title="",this.scale="",this.events=[],this.eras=[],this.event_dict={},this.messages={errors:[],warnings:[]},"object"==typeof t&&t.events){if(this.scale=t.scale,this.events=[],this._ensureValidScale(t.events),t.title){var e=this._assignID(t.title);this._tidyFields(t.title),this.title=t.title,this.event_dict[e]=this.title}for(var a=0;a<t.events.length;a++)try{this.addEvent(t.events[a],!0)}catch(s){this.logError(s)}t.eras&&t.eras.forEach((s,r)=>{try{this.addEra(s)}catch(l){this.logError("Era "+r+": "+l)}}),Te(this.events),Te(this.eras)}}logError(t){J(`logError: ${t}`),this.messages.errors.push(t)}getErrors(t){return t?this.messages.errors.join(t):this.messages.errors}validate(){void 0!==this.events&&void 0!==this.events.length&&0!=this.events.length||this.logError("Timeline configuration has no events.");for(var t=0;t<this.eras.length;t++)void 0!==this.eras[t].start_date&&void 0!==this.eras[t].end_date||this.logError("All eras must have start and end dates. ["+(this.eras[t].headline?this.eras[t].headline:"era "+(t+1))+"]")}isValid(){return 0==this.messages.errors.length}addEvent(t,e){var a=this._assignID(t);return void 0===t.start_date?(J("Missing start date, skipping event"),console.log(t),null):(this._processDates(t),this._tidyFields(t),this.events.push(t),this.event_dict[a]=t,e||Te(this.events),a)}addEra(t){var e=this._assignID(t);if(void 0===t.start_date)throw new Y("missing_start_date_err",e);this._processDates(t),this._tidyFields(t),this.eras.push({start_date:t.start_date,end_date:t.end_date,headline:t.text.headline})}_assignID(t){var e=t.unique_id;return zt(e)||(e=t.text?ri(t.text.headline):null),t.unique_id=function(a,s){if(s||(s=le(6)),!(s in a))return s;var r=s.match(/^(.+)(-\d+)?$/)[1],l=[];for(let u in a)u.match(/^(.+?)(-\d+)?$/)[1]==r&&l.push(u);s=r+"-"+(l.length+1);for(var d=l.length;-1!=l.indexOf(s);d++)s=r+"-"+d;return s}(this.event_dict,e),t.unique_id}_makeUniqueIdentifiers(t,e){for(var a=[t],s=0;s<e.length;s++)zt(e[s].unique_id)&&(e[s].unique_id=ri(e[s].unique_id),-1==a.indexOf(e[s].unique_id)?a.push(e[s].unique_id):e[s].unique_id="");if(a.length!=e.length+1)for(s=0;s<e.length;s++)if(!e[s].unique_id){var r=e[s].text?ri(e[s].text.headline):null;r||(r=le(6)),-1!=a.indexOf(r)&&(r=r+"-"+s),a.push(r),e[s].unique_id=r}}_ensureValidScale(t){if(!this.scale){this.scale="human";
1for(var e=0;e<t.length;e++){if("cosmological"==t[e].scale){this.scale="cosmological";break}if(t[e].start_date&&void 0!==t[e].start_date.year){var a=new We(t[e].start_date).data.date_obj.year;if(a<-271820||a>275759){this.scale="cosmological";break}}}J(`Determining scale dynamically: ${this.scale}`)}ci[this.scale]||this.logError("Don't know how to process dates on scale "+this.scale)}_processDates(t){var e=ci[this.scale];if(!(t.start_date instanceof e)){var a=t.start_date;if(t.start_date=new e(a),void 0!==t.end_date&&!(t.end_date instanceof e)){var s=t.end_date,r=!0;for(let l in a)r=r&&a[l]==s[l];r?(J("End date same as start date is redundant; dropping end date"),delete t.end_date):t.end_date=new e(s)}}}getEarliestDate(){var t=this.events[0].start_date;return this.eras&&this.eras.length>0&&this.eras[0].start_date.isBefore(t)?this.eras[0].start_date:t}getLatestDate(){for(var t=[],e=0;e<this.events.length;e++)t.push(this.events[e].end_date?{date:this.events[e].end_date}:{date:this.events[e].start_date});for(e=0;e<this.eras.length;e++)t.push(this.eras[e].end_date?{date:this.eras[e].end_date}:{date:this.eras[e].start_date});return Te(t,"date"),t.slice(-1)[0].date}_tidyFields(t){function e(a,s,r){r||(r=""),a.hasOwnProperty(s)||(a[s]=r)}t.group&&(t.group=zt(t.group)),t.text||(t.text={}),e(t.text,"text"),e(t.text,"headline"),_i(t,Me,Si),_i(t,Xt,mi)}}function Ye(i,t){return!0!==(t=t||{}).noHeaderRow&&i.length>0?{fields:i[0].map((e,a)=>e&&e.trim?e.trim():`untitled${a}`),records:i.slice(1)}:{records:i}}function Ve(i,t){var L,U;(!t||t&&!t.lineterminator)&&(L=i,i=(U=t)&&!U.lineterminator?L.replace(/(\r\n|\n|\r)/gm,"\n"):L);var e=function(L){var U={delimiter:",",doublequote:!0,lineterminator:"\n",quotechar:'"',skipinitialspace:!0,skipinitialrows:0};for(var H in L)"trim"===H?U.skipinitialspace=L.trim:U[H.toLowerCase()]=L[H];return U}(t);i=function(L,U){return null==L?"":L.charAt(L.length-(U=U||"\n").length)!==U?L:L.substring(0,L.length-U.length)}(i,e.lineterminator);var a,s,r="",l=!1,d=!1,u="",v=[],x=[];for(s=function(L){return!0!==d&&(""===L?L=null:!0===e.skipinitialspace&&(L=L.trim())),L},a=0;a<i.length;a+=1)r=i.charAt(a),!1!==l||r!==e.delimiter&&r!==e.lineterminator?r!==e.quotechar?u+=r:l?i.charAt(a+1)===e.quotechar?(u+=e.quotechar,a+=1):l=!1:(l=!0,d=!0):(u=s(u),v.push(u),r===e.lineterminator&&(x.push(v),v=[]),u="",d=!1);return u=s(u),v.push(u),x.push(v),e.skipinitialrows&&(x=x.slice(e.skipinitialrows)),x}function Jt(i){if(i)return i.replace(/[\s,]+/g,"")}function Ne(i){let t={key:null,worksheet:0};var e=/\bkey=([-_A-Za-z0-9]+)&?/i,a=/docs.google.com\/spreadsheets(.*?)\/d\//;if(i.match(e))t.key=i.match(e)[1];else if(i.match(a)){var s=i.search(a)+i.match(a)[0].length,r=i.substr(s);t.key=r.split("/")[0],i.match(/\?gid=(\d+)/)&&(t.worksheet=i.match(/\?gid=(\d+)/)[1])}else i.match(/^\b[-_A-Za-z0-9]+$/)&&(t.key=i);return t.key?t:null}class Je{constructor(t){if(!t)throw new Y("axis_helper_no_options_err");this.scale=t.scale,this.minor=t.minor,this.major=t.major}getPixelsPerTick(t){return t*this.minor.factor}getMajorTicks(t){return this._getTicks(t,this.major)}getMinorTicks(t){return this._getTicks(t,this.minor)}_getTicks(t,e){for(var a=t._scaled_padding*e.factor,r=t._latest+a,l=[],d=t._earliest-a;d<r;d+=e.factor)l.push(t.getDateFromTime(d).floor(e.name));return{name:e.name,ticks:l}}}var Xe={},Ke=function(i,t){Xe[i]=[];for(var e=0;e<t.length-1;e++){var a=t[e],s=t[e+1];Xe[i].push(new Je({scale:a[3],minor:{name:a[0],factor:a[1]},major:{name:s[0],factor:s[1]}}))}};Ke("human",Kt),Ke("cosmological",Ue);const Ie={millisecond:"time_milliseconds",second:"time_short",minute:"time_no_seconds_short",hour:"time_no_minutes_short",day:"full_short",month:"month_short",year:"year",decade:"year",century:"year",millennium:"year",age:"compact",epoch:"compact",era:"compact",eon:"compact",eon2:"compact"};class fe{constructor(t,e){var a=t.events;this._scale=t.scale,e=tt({display_width:500,screen_multiplier:3,max_rows:null},e),this._display_width=e.display_width,this._screen_multiplier=e.screen_multiplier,this._pixel_width=this._screen_multiplier*this._display_width,this._group_labels=void 0,this._positions=[],this._pixels_per_milli=0,this._earliest=t.getEarliestDate().getTime(),this._latest=t.getLatestDate().getTime(),this._span_in_millis=this._latest-this._earliest,this._span_in_millis<=0&&(this._span_in_millis=this._computeDefaultSpan(t)),this._average=this._span_in_millis/a.length,this._pixels_per_milli=this.getPixelWidth()/this._span_in_millis,this._axis_helper=function(s,r){"number"!=typeof r&&(r=100);var l=s.getScale(),d=Xe[l];
1if(!d)throw new Y("axis_helper_scale_err",l);for(var u=null,v=0;v<d.length;v++){var x=d[v],L=x.getPixelsPerTick(s._pixels_per_milli);if(L>r)return null==u||Math.abs(r-L)<Math.abs(r-L)?x:u;u=x}return d[d.length-1]}(this),this._scaled_padding=1/this.getPixelsPerTick()*(this._display_width/2),this._computePositionInfo(a,e.max_rows)}_computeDefaultSpan(t){if("human"==t.scale){for(var e={},a=0;a<t.events.length;a++){var s=t.events[a].start_date.findBestFormat();e[s]=e[s]?e[s]+1:1}for(a=Kt.length-1;a>=0;a--)if(e.hasOwnProperty(Kt[a][0])){var r=Kt[Kt.length-1];return Kt[a+1]&&(r=Kt[a+1]),r[1]}return 31536e6}return 2e5}getGroupLabels(){return this._group_labels||[]}getScale(){return this._scale}getNumberOfRows(){return this._number_of_rows}getPixelWidth(){return this._pixel_width}getPosition(t){return(t-this._earliest)*this._pixels_per_milli}getPositionInfo(t){return this._positions[t]}getPixelsPerTick(){return this._axis_helper.getPixelsPerTick(this._pixels_per_milli)}getTicks(){return{major:this._axis_helper.getMajorTicks(this),minor:this._axis_helper.getMinorTicks(this)}}getDateFromTime(t){if("human"==this._scale)return new ke(t);if("cosmological"==this._scale)return new We(new Wt(t));throw new Y("time_scale_scale_err",this._scale)}getMajorScale(){return this._axis_helper.major.name}getMinorScale(){return this._axis_helper.minor.name}_assessGroups(t){for(var e=[],a=!1,s=0;s<t.length;s++)t[s].group&&(e.indexOf(t[s].group)<0?e.push(t[s].group):a=!0);return e.length&&a&&e.push(""),e}_computeRowInfo(t,e){for(var a=[],s=0,r=0;r<t.length;r++){var l=t[r],d=[];delete l.row;for(var u=0;u<a.length;u++)if(d.push(a[u].end-l.start),d[u]<=0){l.row=u,a[u]=l;break}if(void 0===l.row)if(null===e)l.row=a.length,a.push(l);else if(e>0)l.row=a.length,a.push(l),e--;else{var v=Math.min.apply(null,d),x=d.indexOf(v);l.row=x,l.end>a[x].end&&(a[x]=l),s++}}return{n_rows:a.length,n_overlaps:s}}_computePositionInfo(t,e,a){a=a||100;for(var s=[],r=!1,l=0;l<t.length;l++){var d={start:this.getPosition(t[l].start_date.getTime())};if(this._positions.push(d),void 0!==t[l].end_date){var u=this.getPosition(t[l].end_date.getTime());d.width=u-d.start,d.end=d.width>a?d.start+d.width:d.start+a}else d.width=a,d.end=d.start+a;t[l].group?s.indexOf(t[l].group)<0&&s.push(t[l].group):r=!0}if(s.length){r&&s.push("");var v=[];for(l=0;l<s.length;l++)v[l]={label:s[l],idx:l,positions:[],n_rows:1,n_overlaps:0};for(l=0;l<this._positions.length;l++){(d=this._positions[l]).group=s.indexOf(t[l].group||""),d.row=0;for(var x=(H=v[d.group]).positions.length-1;x>=0;x--)H.positions[x].end>d.start&&H.n_overlaps++;H.positions.push(d)}for(var L=s.length;;){var U=Math.max(0,e-L);if(!U||(v.sort(function(et,ut){return et.n_overlaps>ut.n_overlaps?-1:et.n_overlaps<ut.n_overlaps?1:et.idx-ut.idx}),!v[0].n_overlaps))break;for(L=0,l=0;l<v.length;l++){var H;if((H=v[l]).n_overlaps&&U){var Q=this._computeRowInfo(H.positions,H.n_rows+1);H.n_rows=Q.n_rows,H.n_overlaps=Q.n_overlaps,U--}L+=H.n_rows}}this._number_of_rows=L,this._group_labels=[],v.sort(function(et,ut){return et.idx-ut.idx}),l=0;for(var lt=0;l<v.length;l++){for(this._group_labels.push({label:v[l].label,rows:v[l].n_rows}),x=0;x<v[l].positions.length;x++)(d=v[l].positions[x]).row+=lt;lt+=v[l].n_rows}}else{var ht=this._computeRowInfo(this._positions,e);this._number_of_rows=ht.n_rows}}getAxisTickDateFormat(t){return"cosmological"==this._scale?"compact":Ie[t]}}class Ni{constructor(t){this._el={parent:{},container:{},message:{}},this.options={width:600,height:600},this.data={label:"",rows:1},this._el.container=b("div","tl-timegroup"),tt(this.data,t),this.animator={},this._initLayout(),this._initEvents()}updateDisplay(t,e){}setRowPosition(t,e){this.options.height=e*this.data.rows,this.setPosition({top:t}),this._el.container.style.height=this.options.height+"px"}setAlternateRowColor(t,e){var a="tl-timegroup";t&&(a+=" tl-timegroup-alternate"),e&&(a+=" tl-timegroup-hidden"),this._el.container.className=a}_onMouseClick(){this.fire("clicked",this.options)}_initLayout(){this._el.message=b("div","tl-timegroup-message",this._el.container),this._el.message.innerHTML=this.data.label}_initEvents(){V.addListener(this._el.container,"click",this._onMouseClick,this)}_updateDisplay(t,e,a){}}Mt(Ni,K,Ut);class pi{constructor(t,e,a,s){this.start_date=t,this.end_date=e,this.headline=a,this._el={container:{},background:{},content_container:{},content:{},text:{}},this._text={},this._state={loaded:!1},this.options={duration:1e3,ease:q,width:600,height:600,marker_width_min:100},this.active=!1,this.animator={},this.has_end_date=!1,tt(this.options,s),this._initLayout(),this._initEvents()}show(){}hide(){}setActive(t){}addTo(t){t.appendChild(this._el.container)}removeFrom(t){t.removeChild(this._el.container)}updateDisplay(t,e){this._updateDisplay(t,e)}getLeft(){return this._el.container.style.left.slice(0,-2)}getTime(){return this.start_date.getTime()}getEndTime(){return!!this.end_date&&this.end_date.getTime()}setHeight(t){var e=1;this._el.content_container.style.height=t+"px",this._el.content.className="tl-timeera-content",Ft?((e=Math.floor(t/14))<1&&(e=1),this._text.className="tl-headline",this._text.style.webkitLineClamp=e):(this._text.className=(e=t/12)>1?"tl-headline tl-headline-fadeout":"tl-headline",this._text.style.height=12*e+"px")}setWidth(t){this.end_date&&(this._el.container.style.width=t+"px",t>this.options.marker_width_min?(this._el.content_container.style.width=t+"px",this._el.content_container.className="tl-timeera-content-container tl-timeera-content-container-long"):(this._el.content_container.style.width=this.options.marker_width_min+"px",this._el.content_container.className="tl-timeera-content-container"))}setClass(t){this._el.container.className=t}setRowPosition(t,e){this.setPosition({top:t}),e<56&&this._el.content_container.remove("tl-timeera-content-container-small")}setColor(t){this._el.container.className="tl-timeera tl-timeera-color"+t}_initLayout(){this._el.container=b("div","tl-timeera"),this.end_date&&(this.has_end_date=!0,this._el.container.className="tl-timeera tl-timeera-with-end"),this._el.content_container=b("div","tl-timeera-content-container",this._el.container),this._el.background=b("div","tl-timeera-background",this._el.content_container),this._el.content=b("div","tl-timeera-content",this._el.content_container),this._el.text=b("div","tl-timeera-text",this._el.content),this._text=b("h2","tl-headline",this._el.text),this.headline&&""!=this.headline&&(this._text.innerHTML=_e(this.headline)),this.onLoaded()}_initEvents(){}_updateDisplay(t,e,a){t&&(this.options.width=t),e&&(this.options.height=e)}}Mt(pi,K,Ut);class fi{constructor(t,e,a){a&&this.setLanguage(a),this._el={container:{},content_container:{},major:{},minor:{}},this._text={},this._state={loaded:!1},this.data={},this.options={duration:1e3,ease:q,width:600,height:600},this.active=!1,this.animator={},this.axis_helper={},this.minor_ticks=[],this.major_ticks=[],this._el.container="object"==typeof t?t:$(t),tt(this.options,e),this._initLayout(),this._initEvents()}show(){}hide(){}addTo(t){t.appendChild(this._el.container)}removeFrom(t){t.removeChild(this._el.container)}updateDisplay(t,e){this._updateDisplay(t,e)}getLeft(){return this._el.container.style.left.slice(0,-2)}
1drawTicks(t,e){var a=t.getTicks();this._el.major.className="tl-timeaxis-major",this._el.minor.className="tl-timeaxis-minor",this._el.major.style.opacity=0,this._el.minor.style.opacity=0,this.major_ticks=this._createTickElements(a.major.ticks,this._el.major,t.getAxisTickDateFormat(a.major.name)),this.minor_ticks=this._createTickElements(a.minor.ticks,this._el.minor,t.getAxisTickDateFormat(a.minor.name),a.major.ticks),this.positionTicks(t,e,!0),this._el.major.className="tl-timeaxis-major tl-animate-opacity tl-timeaxis-animate-opacity",this._el.minor.className="tl-timeaxis-minor tl-animate-opacity tl-timeaxis-animate-opacity",this._el.major.style.opacity=1,this._el.minor.style.opacity=1}_createTickElements(t,e,a,s){e.innerHTML="";var r={};if(r[new Date(-1,13,-30).getTime()]=!0,s)for(var l=0;l<s.length;l++)r[s[l].getTime()]=!0;var d=[];for(l=0;l<t.length;l++){var u=t[l];if(!(u.getTime()in r)){var v=b("div","tl-timeaxis-tick",e),x=b("span","tl-timeaxis-tick-text tl-animate-opacity",v);let L=u.getDisplayDate(this.getLanguage(),a);x.innerHTML=L,d.push({tick:v,tick_text:x,display_date:L,date:u})}}return d}positionTicks(t,e,a){a?(this._el.major.className="tl-timeaxis-major",this._el.minor.className="tl-timeaxis-minor"):(this._el.major.className="tl-timeaxis-major tl-timeaxis-animate",this._el.minor.className="tl-timeaxis-minor tl-timeaxis-animate"),this._positionTickArray(this.major_ticks,t,e),this._positionTickArray(this.minor_ticks,t,e)}_positionTickArray(t,e,a){if(t[1]&&t[0]){var s=1;e.getPosition(t[1].date.getMillisecond())-e.getPosition(t[0].date.getMillisecond())<a&&(s=Math.round(a/e.getPixelsPerTick()));for(var r=1,l=0;l<t.length;l++){var d=t[l];d.tick.style.left=e.getPosition(d.date.getMillisecond())+"px",d.tick_text.innerHTML=d.display_date,s>1?r>=s?(r=1,d.tick_text.style.opacity=1,d.tick.className="tl-timeaxis-tick"):(r++,d.tick_text.style.opacity=0,d.tick.className="tl-timeaxis-tick tl-timeaxis-tick-hidden"):(d.tick_text.style.opacity=1,d.tick.className="tl-timeaxis-tick")}}}getVisibleTicks(){return{major:this._getVisibleTickArray(this.major_ticks),minor:this._getVisibleTickArray(this.minor_ticks)}}_getVisibleTickArray(t){return t.filter(({tick:e})=>function(a){const s=a.getBoundingClientRect();return s.left>=0&&s.right<=(window.innerWidth||document.documentElement.clientWidth)}(e))}_initLayout(){this._el.content_container=b("div","tl-timeaxis-content-container",this._el.container),this._el.major=b("div","tl-timeaxis-major",this._el.content_container),this._el.minor=b("div","tl-timeaxis-minor",this._el.content_container),this.onLoaded()}_initEvents(){}_updateDisplay(t,e,a){t&&(this.options.width=t),e&&(this.options.height=e)}}Mt(fi,K,Ut,oe);class Qe{constructor(t,e,a){var s;this._el={container:{},content_container:{},content:{},headline_container:{},headline:{},date:{}},this.options={title:!1},this.data={unique_id:"",headline:"headline",text:"text"},(s=this).data=Dt({},s.data,t),""===s.data.unique_id&&(s.data.unique_id=le(6)),tt(this.options,e),this._el.container=b("div","tl-text"),this._el.container.id=this.data.unique_id,this._initLayout(),a&&a.appendChild(this._el.container)}show(){}hide(){}addTo(t){t.appendChild(this._el.container)}removeFrom(t){t.removeChild(this._el.container)}headlineHeight(){return this._el.headline.offsetHeight+40}addDateText(t){this._el.date.innerHTML=t}onLoaded(){this.fire("loaded",this.data)}onAdd(){this.fire("added",this.data)}onRemove(){this.fire("removed",this.data)}_initLayout(){if(this._el.content_container=b("div","tl-text-content-container",this._el.container),this._el.headline_container=b("div","tl-text-headline-container",this._el.content_container),""!=this.data.headline){var t="tl-headline";this.options.title&&(t="tl-headline tl-headline-title"),this._el.headline=b("h2",t,this._el.headline_container),this._el.headline.innerHTML=this.data.headline}if(this._el.date=b("h3","tl-headline-date",this._el.headline_container),""!=this.data.text){var e="";e+=(a=1==this.options.autolink?li(this.data.text):this.data.text).match(/<p>[\s\S]*?<\/p>/)?a:"<p>"+a+"</p>",this._el.content=b("div","tl-text-content",this._el.content_container),this._el.content.innerHTML=e}var a;this.onLoaded()}}Mt(Qe,K);
1class ot{constructor(t,e,a){a&&this.setLanguage(a),this._el={container:{},content_container:{},content:{},content_item:{},content_link:{},caption:null,credit:null,parent:{},link:null},this.player=null,this.timer=null,this.load_timer=null,this.message=null,this.media_id=null,this._state={loaded:!1,show_meta:!1,media_loaded:!1},this.data={unique_id:null,url:null,credit:null,caption:null,credit_alternate:null,caption_alternate:null,link:null,link_target:null},this.options={api_key_flickr:"bd3a7c45ddd52f3101825d41563a6125",api_key_googlemaps:"AIzaSyB9dW8e_iRrATFa8g24qB6BDBGdkrLDZYI",api_key_embedly:"",credit_height:0,caption_height:0,background:0},this.animator={},tt(this.options,e),tt(this.data,t),this.options.background||(this._el.container=b("div","tl-media"),this.data.unique_id&&(this._el.container.id=this.data.unique_id),this._initLayout())}loadMedia(){var t=this;if(!this._state.loaded)try{this.load_timer=setTimeout(function(){t.loadingMessage(),t._loadMedia(),t._updateDisplay()},1200)}catch(e){J("Error loading media for "),J(e)}}_updateMessage(t){this.message&&this.message.updateMessage(t)}loadingMessage(){this._updateMessage(this._("loading")+" "+this.options.media_name)}errorMessage(t){t=t?this._("error")+": "+t:this._("error"),this._updateMessage(t)}updateMediaDisplay(t){this._state.loaded&&!this.options.background&&(this._el.content_item.style.maxHeight=it?this.options.height/2+"px":this.options.height-this.options.credit_height-this.options.caption_height-30+"px",this._el.container.style.maxWidth=this.options.width+"px",this._updateMediaDisplay(t),this._state.media_loaded&&(this._el.credit&&(this._el.credit.style.width=this._el.content_item.offsetWidth+"px"),this._el.caption&&(this._el.caption.style.width=this._el.content_item.offsetWidth+"px")))}_loadMedia(){this.onLoaded()}_updateMediaDisplay(t){$t&&(this._el.content_item.style.maxWidth=this.options.width+"px",this._el.content_item.style.width="auto")}_getMeta(){}_getImageURL(t,e){return""}show(){}hide(){}addTo(t){t.appendChild(this._el.container),this.onAdd()}removeFrom(t){t.removeChild(this._el.container),this.onRemove()}getImageURL(t,e){return this._getImageURL(t,e)}updateDisplay(t,e,a){this._updateDisplay(t,e,a)}stopMedia(){try{this._stopMedia()}catch(t){J(`stopMedia() exception: ${t}`)}}loadErrorDisplay(t){try{this._el.content.removeChild(this._el.content_item)}catch{}this._el.content_item=b("div","tl-media-item tl-media-loaderror",this._el.content),this._el.content_item.innerHTML="<div class='tl-icon-"+this.options.media_type+"'></div><p>"+t+"</p>",this.onLoaded(!0)}onLoaded(t){this._state.loaded=!0,this.fire("loaded",this.data),this.message&&this.message.hide(),t||this.options.background||this.showMeta(),this.updateDisplay()}onMediaLoaded(t){this._state.media_loaded=!0,this.fire("media_loaded",this.data),this._el.credit&&(this._el.credit.style.width=this._el.content_item.offsetWidth+"px"),this._el.caption&&(this._el.caption.style.width=this._el.content_item.offsetWidth+"px")}showMeta(t,e){this._state.show_meta=!0,this.data.credit&&""!=this.data.credit&&(this._el.credit=b("div","tl-credit",this._el.content_container),this._el.credit.innerHTML=1==this.options.autolink?li(this.data.credit):this.data.credit,this.options.credit_height=this._el.credit.offsetHeight),this.data.caption&&""!=this.data.caption&&(this._el.caption=b("div","tl-caption",this._el.content_container),this._el.caption.innerHTML=1==this.options.autolink?li(this.data.caption):this.data.caption,this.options.caption_height=this._el.caption.offsetHeight),this.data.caption&&this.data.credit||this.getMeta()}getMeta(){this._getMeta()}updateMeta(){!this.data.credit&&this.data.credit_alternate&&(this._el.credit=b("div","tl-credit",this._el.content_container),this._el.credit.innerHTML=this.data.credit_alternate,this.options.credit_height=this._el.credit.offsetHeight),!this.data.caption&&this.data.caption_alternate&&(this._el.caption=b("div","tl-caption",this._el.content_container),this._el.caption.innerHTML=this.data.caption_alternate,this.options.caption_height=this._el.caption.offsetHeight),this.updateDisplay()}onAdd(){this.fire("added",this.data)}onRemove(){this.fire("removed",this.data)}_initLayout(){this.message=new Se(this._el.container,this.options,this.getLanguage()),this._el.content_container=b("div","tl-media-content-container",this._el.container),this.data.link&&""!=this.data.link?(this._el.link=b("a","tl-media-link",this._el.content_container),this._el.link.href=this.data.link,this._el.link.target=this.data.link_target&&""!=this.data.link_target?this.data.link_target:"_blank","_blank"==this._el.link.target&&this._el.link.setAttribute("rel","noopener"),this._el.content=b("div","tl-media-content",this._el.link)):this._el.content=b("div","tl-media-content",this._el.content_container)}_updateDisplay(t,e,a){t&&(this.options.width=t),e&&(this.options.height=e),a&&(this.options.layout=a),this._el.credit&&(this.options.credit_height=this._el.credit.offsetHeight),this._el.caption&&(this.options.caption_height=this._el.caption.offsetHeight+5),this.updateMediaDisplay(this.options.layout)}domCreate(...t){return b(...t)}_stopMedia(){}}Mt(ot,K,oe);class ge extends ot{_loadMedia(){this.loadingMessage(),this.options.background||this.createMedia(),this.onLoaded()}createMedia(){var t=this,e="tl-media-item tl-media-image tl-media-sha
1dow";(this.data.url.match(/.png(\?.*)?$/)||this.data.url.match(/.svg(\?.*)?$/))&&(e="tl-media-item tl-media-image"),this._el.content_item=this.domCreate("img",e,this._el.content),this.data.alt?this._el.content_item.alt=this.data.alt:this.data.caption&&(this._el.content_item.alt=ae(this.data.caption)),this.data.title?this._el.content_item.title=this.data.title:this.data.caption&&(this._el.content_item.title=ae(this.data.caption)),this._el.content_item.addEventListener("load",function(a){t.onMediaLoaded()}),this._el.content_item.src=this.getImageURL()}getImageURL(t,e){return ze(this.data.url)}_updateMediaDisplay(t){$t&&(this._el.content_item.style.width="auto")}}function ve(i,t,e,a){gi.js(i,t,e,a)}function Ce(i,t,e,a){gi.css(i,t,e,a)}let gi=new class{constructor(i){this.doc=i,this.pending={},this.queue={css:[],js:[]},this.styleSheets=i.styleSheets,this.env=this.getEnv(),this.head=this.doc.head||this.doc.getElementsByTagName("head")[0],this.pollCount=0}createNode(i,t){var e,a=this.doc.createElement(i);for(e in t)t.hasOwnProperty(e)&&a.setAttribute(e,t[e]);return a}finish(i){var t,e,a=this.pending[i];a&&(t=a.callback,(e=a.urls).shift(),this.pollCount=0,e.length||(t&&t.call(a.context,a.obj),this.pending[i]=null,this.queue[i].length&&this.load(i)))}getEnv(){var i=navigator.userAgent,t={async:!0===this.doc.createElement("script").async};return(t.webkit=/AppleWebKit\//.test(i))||(t.ie=/MSIE/.test(i))||(t.opera=/Opera/.test(i))||(t.gecko=/Gecko\//.test(i))||(t.unknown=!0),t}load(i,t,e,a,s){var r,l,d,u,v,x,L=function(){this.finish(i)}.bind(this),U="css"===i,H=[];if(t)if(t="string"==typeof t?[t]:t.concat(),U||this.env.async||this.env.gecko||this.env.opera)this.queue[i].push({urls:t,callback:e,obj:a,context:s});else for(r=0,l=t.length;r<l;++r)this.queue[i].push({urls:[t[r]],callback:r===l-1?e:null,obj:a,context:s});if(!this.pending[i]&&(u=this.pending[i]=this.queue[i].shift())){for(r=0,l=(v=u.urls).length;r<l;++r)x=v[r],U?d=this.env.gecko?this.createNode("style"):this.createNode("link",{href:x,rel:"stylesheet"}):(d=this.createNode("script",{src:x})).async=!1,d.className="lazyload",d.setAttribute("charset","utf-8"),this.env.ie&&!U?d.onreadystatechange=function(){/loaded|complete/.test(d.readyState)&&(d.onreadystatechange=null,L())}:U&&(this.env.gecko||this.env.webkit)?this.env.webkit?(u.urls[r]=d.href,this.pollWebKit()):(d.innerHTML='@import "'+x+'";',this.pollGecko(d)):d.onload=d.onerror=L,H.push(d);for(r=0,l=H.length;r<l;++r)this.head.appendChild(H[r])}}pollGecko(i){var t;try{t=!!i.sheet.cssRules}catch{if(this.pollCount+=1,this.pollCount<200){var e=this;setTimeout(function(){e.pollGecko(i)},50)}else t&&this.finish("css");return}this.finish("css")}pollWebKit(){var i,t=this.pending.css;if(t){for(i=this.styleSheets.length;--i>=0;)if(this.styleSheets[i].href===t.urls[0]){this.finish("css");break}this.pollCount+=1,t&&(this.pollCount<200?setTimeout(this.pollWebKit.bind(this),50):this.finish("css"))}}css(i,t,e,a){this.load("css",i,t,e,a)}js(i,t,e,a){this.load("js",i,t,e,a)}}(document);class Ii extends ot{_loadMedia(){var t,e=this;this.youtube_loaded=!1,this._el.content_item=this.domCreate("div","tl-media-item tl-media-youtube tl-media-shadow",this._el.content),this._el.content_item.id=le(7),t=function(a){var s,r,l,d=[];(s=a.toString()).match("&")?s=s.replace("&","&"):s.match("&")?s=s.replace("&","&"):s.match("&")&&(s=s.replace("&","&")),l=s.slice(s.indexOf("?")+1).split("&");for(var u=0;u<l.length;u++)r=l[u].split("="),d.push(r[0]),d[r[0]]=r[1];return d}(this.data.url),this.media_id={},this.data.url.match("v=")?this.media_id.id=t.v:this.data.url.match("/embed/")?this.media_id.id=this.data.url.split("embed/")[1].split(/[?&]/)[0]:this.data.url.match(/v\/|v=|youtu\.be\//)?this.media_id.id=this.data.url.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0]:J("YOUTUBE IN URL BUT NOT A VALID VIDEO"),this.data.url.match("start=")?this.media_id.start=pe(this.data.url.split("start=")[1]):this.data.url.match("t=")&&(this.media_id.start=pe(this.data.url.split("t=")[1])),this.data.url.match("end=")&&(this.media_id.end=pe(this.data.url.split("end=")[1])),this.media_id.hd=void 0!==t.hd,ve("https://www.youtube.com/iframe_api",function(){e.createMedia()})}_updateMediaDisplay(){this._el.content_item.style.height=Le({w:this.options.width})+"px",this._el.content_item.style.width=this.options.width+"px"}_stopMedia(){if(this.youtube_loaded)try{this.player.getPlayerState()==YT.PlayerState.PLAYING&&this.player.pauseVideo()}catch(t){J(t)}}createMedia(){var t=this;clearTimeout(this.timer),typeof YT<"u"&&void 0!==YT.Player?this.player=new YT.Player(this._el.content_item.id,{playerVars:{enablejsapi:1,
1color:"white",controls:1,start:this.media_id.start,end:this.media_id.end,fs:1},videoId:this.media_id.id,events:{onReady:function(){t.onPlayerReady(),t.onLoaded()},onStateChange:t.onStateChange}}):this.timer=setTimeout(function(){t.createMedia()},1e3)}onPlayerReady(t){this.youtube_loaded=!0,this._el.content_item=document.getElementById(this._el.content_item.id),this.onMediaLoaded()}onStateChange(t){t.data==YT.PlayerState.ENDED&&(t.target.seekTo(0),t.target.pauseVideo())}}class ti extends ot{_loadMedia(){this._el.content_item=this.domCreate("div","tl-media-item tl-media-map tl-media-shadow",this._el.content),this.media_id=this.data.url,this.mapframe=this.domCreate("iframe","",this._el.content_item),this.mapframe.width="100%",this.mapframe.height="100%",this.mapframe.frameBorder="0",this.mapframe.src=this.makeGoogleMapsEmbedURL(this.media_id,this.options.api_key_googlemaps),this.onLoaded()}_updateMediaDisplay(){if(this._state.loaded){var t=xi({w:this._el.content_item.offsetWidth});this._el.content_item.style.height=t.h+"px"}}makeGoogleMapsEmbedURL(t,e){var a=!1,s={view:["center"],place:["q","center"],directions:["origin","destination","center"],search:["q","center"],streetview:["fov","heading","pitch"]},r=/(https:\/\/.+google.+?\/maps)/,l=/@([-\d.]+),([-\d.]+)/,d=/([\w\W]+)/,u=/,((?:[-\d.]+[zmayht],?)*)/,v={view:new RegExp(r.source+"/"+l.source+u.source),place:new RegExp(r.source+"/place/"+d.source+"/"+l.source+u.source),directions:new RegExp(r.source+"/dir/"+d.source+"/"+d.source+"/"+l.source+u.source),search:new RegExp(r.source+"/search/"+d.source+"/"+l.source+u.source)};return function(x){let U="view";return x.match(v.place)?U="place":x.match(v.directions)?U="directions":x.match(v.search)&&(U="search"),function(H,Q){var lt={},ht=Q[1],et=Q[Q.length-1];for(let dt in s[H]){var ut=parseInt(dt)+2;lt[s[H][dt]]="center"==s[H][dt]?Q[ut]+","+Q[++ut]:Q[ut]}return(lt=function L(H,Q){if("z"==H.slice(-1))Q.zoom=H;else if("m"==H.slice(-1))Q.zoom=14,Q.maptype="satellite";else if("t"==H.slice(-1)){if(a=!0,"place"==U)var lt=x.match(v.place)[3]+","+x.match(v.place)[4];else lt=Q.center,delete Q.center;(Q={}).location=lt,streetview_params=H.split(",");for(let et in s.streetview){var ht=parseInt(et)+1;Q[s.streetview[et]]="pitch"==s.streetview[et]&&"90t"==streetview_params[ht]?0:streetview_params[ht].slice(0,-1)}}return Q}(et,lt)).key=e,1==a&&(H="streetview"),ht+"/embed/v1/"+H+function(dt){var kt=[];for(var j in dt)dt.hasOwnProperty(j)&&kt.push(j+"="+dt[j]);return"?"+kt.join("&")}(lt)}(U,x.match(v[U]))}(t)}}class vi extends ot{constructor(t,e,a){super(t,e,a),this.blockquote=Ae().sanitize(this.data.url)}_loadMedia(){this._el.content_item=this.domCreate("div","tl-media-item tl-media-blockquote",this._el.content),this._el.content_container.className="tl-media-content-container tl-media-content-container-text",this._el.content_item.innerHTML=this.blockquote,this.onLoaded()}updateMediaDisplay(){}}class yi extends ot{_loadMedia(){var t,e=this;this._el.content_item=this.domCreate("div","tl-media-item tl-media-wikipedia",this._el.content),this._el.content_container.className="tl-media-content-container tl-media-content-container-text",this.media_id=this.data.url.split("wiki/")[1].split("#")[0].replace("_"," "),this.media_id=this.media_id.replace(" ","%20"),t="https://"+this.data.url.split("//")[1].split(".wikipedia")[0]+".wikipedia.org/w/api.php?action=query&prop=extracts|pageimages&redirects=&titles="+this.media_id+"&exintro=1&format=json&callback=?",we({type:"GET",url:t,dataType:"json",success:function(a){e.createMedia(a)},error:function(a,s){var r="";r+=e._("wikipedia_load_err")+"<br/>"+e.media_id+"<br/>"+s,e.loadErrorDisplay(r)}})}createMedia(t){var e="";if(t.query){var a="";(e={entry:{},title:"",text:"",extract:"",paragraphs:1,page_image:"",text_array:[]}).entry=function(r,l){if(void 0!==r){var d=0;for(var u in r){if(0===d)return r[u];d++}return""}return""}(t.query.pages),e.extract=e.entry.extract,e.title=e.entry.title,e.page_image=e.entry.thumbnail,e.extract.match("<p>")?e.text_array=e.extract.split("<p>"):e.text_array.push(e.extract);for(var s=0;s<e.text_array.length;s++)s+1<=e.paragraphs&&s+1<e.text_array.length&&(e.text+="<p>
1"+e.text_array[s+1]);a+="<span class='tl-icon-wikipedia'></span>",a+="<div class='tl-wikipedia-title'><h4><a href='"+this.data.url+"' target='_blank' rel='noopener'>"+e.title+"</a></h4>",a+="<span class='tl-wikipedia-source'>"+this._("wikipedia")+"</span></div>",a+=e.text,e.extract.match("REDIRECT")||(this._el.content_item.innerHTML=a,this.onLoaded())}}updateMediaDisplay(){}}class ei extends ot{_loadMedia(){var e=this.options.width||1e3,a=this.getLanguage().lang.toLowerCase(),s=this;try{this.establishMediaID(),qe(`https://commons.wikimedia.org/w/api.php?action=query&titles=${this.media_id}&prop=imageinfo|entityterms&iiprop=url&&iiurlwidth=${e}&format=json&origin=*&wbetlanguage=${a}`,function(r){let l=function(d){let u={};if(d.query&&d.query.pages){let v=Object.keys(d.query.pages);u.page_id=v[0];let x=d.query.pages[u.page_id];u.url=x.imageinfo[0].thumburl,x.entityterms&&x.entityterms.label&&(u.label=x.entityterms.label[0])}return u}(r);l.url?(s.base_image_url=l.url,s.page_id=l.page_id,!s.data.alt&&l.label&&(s.data.alt=l.label),s.options.background||s.createMedia(),s.onLoaded()):s.loadErrorDisplay(s._("wikipedia_image_load_err"))})}catch(r){s.loadErrorDisplay(s._(r.message_key))}}establishMediaID(){let t=function(e){if(e.match(/^.+#\/media\/.+/))return`File:${e.split("#")[1].split(":")[1]}`;if(e.match(/^.*commons.wikimedia.org\/wiki\/File:.+/)){let a=e.split("/");return a[a.length-1]}return null}(this.data.url);if(!t)throw new Y("Invalid Wikipedia Image URL");this.media_id=t}createMedia(){var t=this;if(this._el.content_item=this.domCreate("img","tl-media-item tl-media-image tl-media-wikipedia-image tl-media-shadow",this._el.content),this.data.alt)this._el.content_item.alt=this.data.alt;else if(this.page_id){let e=`M${this.page_id}`;Fe(`https://commons.wikimedia.org/w/api.php?action=wbgetentities&format=json&ids=${e}&format=json&origin=*`).then(a=>{if(a.entities&&a.entities[e]){let s=a.entities[e].labels,r=t.getLanguage().lang.toLowerCase(),l=null;s[r]?l=s[r]:r.length>2&&s[r.substr(0,2)]?l=s[r.substr(0,2)]:s.en&&(l=s.en),l?(console.log(`wikibase_id: ${t.media_id} alt ${l.value}`),t.data.alt=l.value,t._el.content_item.alt=t.data.alt):console.log(`wikibase_id: ${t.media_id} ain't got no alt`)}})}this.data.title&&(this._el.content_item.title=this.data.title),this._el.content_item.addEventListener("load",function(e){t.onMediaLoaded()}),this._el.content_item.src=this.getImageURL(this.options.width,this.options.height)}_getImageURL(t,e){if(t&&this.base_image_url){let a=this.base_image_url.match(/(\/\d+px-)/);if(a)return this.base_image_url.replace(a[1],`/${t}px-`)}return this.base_image_url}}class ii extends ot{_loadMedia(){var e=this;this._el.content_item=this.domCreate("div","tl-media-item tl-media-iframe tl-media-soundcloud tl-media-shadow",this._el.content),this.media_id=this.data.url,qe("https://soundcloud.com/oembed?url="+this.media_id+"&format=js&callback=?",function(a){ve("https://w.soundcloud.com/player/api.js",function(){e.createMedia(a)})})}createMedia(t){this._el.content_item.innerHTML=t.html,self.widget=SC.Widget(this._el.content_item.querySelector("iframe")),this.soundCloudCreated=!0,this.onLoaded()}_stopMedia(){this.soundCloudCreated&&self.widget.pause()}}class Zi extends ot{_loadMedia(){var t,e=this;this._el.content_item=this.domCreate("div","tl-media-item tl-media-iframe tl-media-vimeo tl-media-shadow",this._el.content),this.media_id=this.data.url.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];var a=null;this.data.url.match(/#t=([^&]+).*/)&&(a=this.data.url.match(/#t=([^&]+).*/)[1]),t="https://player.vimeo.com/video/"+this.media_id+"?api=1&title=0&byline=0&portrait=0&color=ffffff",a&&(t=t+="&#t="+a),this.player=this.domCreate("iframe","",this._el.content_item),this.player.addEventListener("load",function(s){e.onMediaLoaded()}),this.player.width="100%",this.player.height="100%",this.player.frameBorder="0",this.player.src=t,this.player.setAttribute("allowfullscreen",""),this.player.setAttribute("webkitallowfullscreen",""),this.player.setAttribute("mozallowfullscreen",""),this.onLoaded()}_updateMediaDisplay(){this._el.content_item.style.height=Le({w:this._el.content_item.offsetWidth})+"px"}_stopMedia(){try{this.player&&this.player.contentWindow&&this.player.contentWindow.postMessage(JSON.stringify({method:"pause"}),"https://player.vimeo.com")}catch(t){J(t)}}}class ce extends ot{_loadMedia(){this._el.content_item=this.domCreate("div","tl-media-item tl-media-iframe tl-media-dailymotion",this._el.content),this.media_id=-1!=this.data.url.indexOf("dai.ly/")?this.data.url.substr(this.data.url.indexOf("dai.ly/")+7):this.data.url.match("video")?this.data.url.split("video/")[1].split(/[?&]/)[0]:this.data.url.split("embed/")[1].split(/[?&]/)[0],-1!=this.media_id.indexOf("_")&&(this.media_id=this.media_id.split("_")[0]),this._el.content_item.innerHTML="<iframe autostart='false' frameborder='0' width='100%' height='100%' src='https://www.dailymotion.com/embed/video/"+this.media_id+"?api=postMessage'></iframe>",this.onLoaded()}_updateMediaDisplay(){this._state.loaded&&(this._el.content_item.style.height=Le({w:this._el.content_item.offsetWidth})+"px")}_stopMedia(){this._state.loaded&&this._el.content_item.querySelector("iframe").contentWindow.postMessage('{"command":"pause","parameters":[]}',"*")}}class Ci extends ot{_loadMedia(){this._el.content_item=this.domCreate("div","tl-media-item tl-media-iframe tl-media-vine tl-media-sha
1dow",this._el.content),this.media_id=this.data.url.split("vine.co/v/")[1],this._el.content_item.innerHTML="<iframe frameborder='0' width='100%' height='100%' src='https://vine.co/v/"+this.media_id+"/embed/simple'></iframe><script async src='https://platform.vine.co/static/scripts/embed.js' charset='utf-8'><\/script>",this.onLoaded()}_updateMediaDisplay(){var t=xi({w:this._el.content_item.offsetWidth,h:this.options.height});this._el.content_item.style.height=t.h+"px"}_stopMedia(){this._el.content_item.querySelector("iframe").contentWindow.postMessage("pause","*")}}class Oi extends ot{_loadMedia(){var e=this;if(this._el.content_item=this.domCreate("div","tl-media-twitter",this._el.content),this._el.content_container.className="tl-media-content-container tl-media-content-container-text",this.data.url.match("^(https?:)?/*(www.)?twitter.com"))this.media_id=this.data.url.match("status/")?this.data.url.split("status/")[1]:this.data.url.match("statuses/")?this.data.url.split("statuses/")[1]:"";else if(this.data.url.match("<blockquote class=['\"]twitter-tweet['\"]")){var a=this.data.url.match(/(status|statuses)\/(\d+)/);if(!(a&&a.length>2))return void e.loadErrorDisplay(e._("twitterembed_invalidurl_err"));this.media_id=a[2]}we({type:"GET",url:"https://api.twitter.com/1/statuses/oembed.json?id="+this.media_id+"&omit_script=true&include_entities=true&callback=?",dataType:"json",success:function(s){e.createMedia(s)},error:function(s,r){var l="";l+=e._("twitter_load_err")+"<br/>"+e.media_id+"<br/>"+r,e.loadErrorDisplay(l)}})}createMedia(t){var e,a,s,r="",l="",d="",u=this;l=t.html.split("</p>—")[0]+"</p></blockquote>",e=t.author_url.split("twitter.com/")[1],a=(d=t.html.split("</p>—")[1].split('<a href="')[1]).split('">')[0],s=d.split('">')[1].split("</a>")[0],(l=l.replace(/<a href/gi,'<a target="_blank" rel="noopener" href')).includes("pic.twitter.com")?(ve("https://platform.twitter.com/widgets.js",function(){twttr.widgets.createTweet(u.media_id,u._el.content_item,{conversation:"none",linkColor:"#cc0000",theme:"light"})}),this.onLoaded()):(r+=l,r+="<div class='vcard'>",r+="<a href='"+a+"' class='twitter-date' rel='noopener' target='_blank'>"+s+"</a>",r+="<img src='' class='tl-media-item tl-media-image'></a>",r+="<div class='author'>",r+="<a class='screen-name url' href='"+t.author_url+"' rel='noopener' target='_blank'>",r+="<span class='avatar'></span>",r+="<span class='fn'>"+t.author_name+" <span class='tl-icon-twitter'></span></span>",r+="<span class='nickname'>@"+e+"<span class='thumbnail-inline'></span></span>",r+="</a>",r+="</div>",this._el.content_item.innerHTML=r+="</div>",this.onLoaded())}updateMediaDisplay(){}_updateMediaDisplay(){}}class ji extends ot{_loadMedia(){var t,e=this;this._el.content_item=this.domCreate("div","tl-media-twitter",this._el.content),this._el.content_container.className="tl-media-content-container tl-media-content-container-text";var a,s,r,l,d,u,v=this.data.url.match(/(status|statuses)\/(\d+)/);v&&v.length>2?(this.media_id=v[2],t="https://api.twitter.com/1/statuses/oembed.json?id="+this.media_id+"&omit_script=true&include_entities=true&callback=?",window.twttr=(s="script",r="twitter-wjs",d=(a=document).getElementsByTagName(s)[0],u=window.twttr||{},a.getElementById(r)||((l=a.createElement(s)).id=r,l.src="https://platform.twitter.com/widgets.js",d.parentNode.insertBefore(l,d),u._e=[],u.ready=function(x){u._e.push(x)}),u),we({type:"GET",url:t,dataType:"json",success(x){e.createMedia(x)},error:function(x,L){var U="";U+=e._("twitter_load_err")+"<br/>"+e.media_id+"<br/>"+L,e.loadErrorDisplay(U)}})):e.loadErrorDisplay(e._("twitterembed_invalidurl_err"))}createMedia(t){var e,a,s,r="",l="",d="";l=t.html.split("</p>—")[0]+"</p></blockquote>",e=t.author_url.split("twitter.com/")[1],a=(d=t.html.split("</p>—")[1].split('<a href="')[1]).split('">')[0],s=d.split('">')[1].split("</a>")[0],l=l.replace(/<a href/gi,'<a target="_blank" rel="noopener" href');let u=this.media_id;l.includes("pic.twitter.com")?(twttr.ready(function(v){r=document.getElementsByClassName("tl-media-twitter")[0];var x=String(u);twttr.widgets.createTweet(x,r,{conversation:"none",linkColor:"#cc0000",theme:"light"}).then(function(L){this.onLoaded()})}),this._el.content_item.innerHTML=r,this.onLoaded()):(r+=l,r+="<div class='vcard'>",r+="<a href='"+a+"' class='twitter-date' rel='noopener' target='_blank'>"+s+"</a>",r+="<div class='author'>",r+="<a class='screen-name url' href='"+t.author_url+"' rel='noopener' target='_blank'>",r+="<span class='avatar'></span>",r+="<span class='fn'>"+t.author_name+" <span class='tl-icon-twitter'></span></span>",r+="<span class='nickname'>@"+e+"<span class='thumbnail-inline'></span></span>",r+="</a>",r+="</div>",this._el.content_item.innerHTML=r+="</div>",this.onLoaded())}updateMediaDisplay(){}_updateMediaDisplay(){}}class Ri extends ot{_loadMedia(){var e=this;try{this.establishMediaID(),qe("https://api.flickr.com/services/rest/?method=flickr.photos.getSizes&api_key="+this.options.api_key_flickr+"&photo_id="+this.media_id+"&format=json&jsoncallback=?",function(a){"ok"==a.stat?(e.sizes=a.sizes.size,e.options.background||e.createMedia(),e.onLoaded()):e.loadErrorDisplay(e._("flickr_notfound_err"))})}catch(a){e.loadErrorDisplay(e._(a.message_key))}}establishMediaID(){if(this.data.url.match(/flic.kr\/.+/i)){var t=this.data.url.split("/").slice(-1)[0];this.media_id=Fi.decode(t)}else{var a=this.data.url.indexOf("flickr.com/photos/");if(-1==a)throw new Y("flickr_invalidurl_err");this.media_id=this.data.url.substr(a+18).split("/")[1]}}createMedia(){var t=this;this._el.content_link=this.domCreate("a","",this._el.content),this._el.content_link.href=this.data.url,this._el.content_link.target="_blank",this._el.content_link.setAttribute("rel","noopener"),this._el.content_item=this.domCreate("img","tl-media-item tl-media-image tl-media-flickr tl-media-sha
1dow",this._el.content_link),this.data.alt?this._el.content_item.alt=this.data.alt:this.data.caption&&(this._el.content_item.alt=ae(this.data.caption)),this.data.title?this._el.content_item.title=this.data.title:this.data.caption&&(this._el.content_item.title=ae(this.data.caption)),this._el.content_item.addEventListener("load",function(e){t.onMediaLoaded()}),this._el.content_item.src=this.getImageURL(this.options.width,this.options.height)}getImageURL(t,e){for(var a=this.size_label(e),s=this.sizes[this.sizes.length-2].source,r=0;r<this.sizes.length;r++)this.sizes[r].label==a&&(s=this.sizes[r].source);return s}_getMeta(){var e=this;qe("https://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key="+this.options.api_key_flickr+"&photo_id="+this.media_id+"&format=json&jsoncallback=?",function(a){e.data.credit_alternate="<a href='"+e.data.url+"' target='_blank' rel='noopener'>"+a.photo.owner.realname+"</a>",e.data.caption_alternate=a.photo.title._content+" "+a.photo.description._content,e.updateMeta()})}size_label(t){return t<=75?t<=0?"Large":"Thumbnail":t<=180?"Small":t<=240?"Small 320":t<=375?"Medium":t<=480?"Medium 640":"Large"}}class Oe extends ot{_loadMedia(){var t=this;this._el.content_item=this.domCreate("div","tl-media-item tl-media-documentcloud tl-media-shadow",this._el.content),this._el.content_item.id=le(7),this.data.url.match(/\.html$/)?this.data.url=this._transformURL(this.data.url):this.data.url.match(/.(json|js)$/)||J("DOCUMENT CLOUD IN URL BUT INVALID SUFFIX"),ve(["https://assets.documentcloud.org/viewer/loader.js","https://assets.documentcloud.org/viewer/viewer.js"],function(){t.createMedia()})}_transformURL(t){return t.replace(/(.*)\.html$/,"$1.js")}_updateMediaDisplay(){this._el.content_item.style.height=this.options.height+"px"}createMedia(){DV.load(this.data.url,{container:"#"+this._el.content_item.id,showSidebar:!1}),this.onLoaded()}}const te="https://graph.facebook.com/v8.0/instagram_oembed?access_token=704270473831239|830b21071290df4f81a35c56abbea096&fields=html,thumbnail_url,author_name&url=";function zi(i){this.oembed_response=i,this._el.content_link=this.domCreate("a","",this._el.content),this._el.content_link.href=this.data.url,this._el.content_link.target="_blank",this._el.content_link.setAttribute("rel","noopener"),this._el.content_item=this.domCreate("img","tl-media-item tl-media-image tl-media-instagram tl-media-shadow",this._el.content_link),this.data.alt?this._el.content_item.alt=this.data.alt:this.data.caption&&(this._el.content_item.alt=ae(this.data.caption)),this.data.title?this._el.content_item.title=this.data.title:this.data.caption&&(this._el.content_item.title=ae(this.data.caption)),this._el.content_item.addEventListener("load",function(t){this.onMediaLoaded()}.bind(this)),this._el.content_item.src=i.thumbnail_url,this.onLoaded()}function Pi(i){let t=`${i.statusText} [${i.status}]`;400==i.status&&(t=this._("instagram_bad_request")),this.loadErrorDisplay(t)}class Hi extends ot{_loadMedia(){this.media_id=this.data.url.split("/p/")[1].split("/")[0],this.options.background||this.createMedia()}createMedia(){this.oembed_response=null;let t=`${te}${this.data.url}`;try{we({url:t,dataType:"json",success:zi,error:Pi,context:this})}catch(e){console.log(`Instagram: error fetching ${t}`),console.log(e)}}getImageURL(){if(this.oembed_response&&this.oembed_response.thumbnail_url)return this.oembed_response.thumbnail_url;Fe(`${te}${this.data.url}`).then(t=>t.thumbnail_url).catch(t=>{J(`Instagram getImageURL Error: ${t.status} ${t.statusText}`)})}_getMeta(){this.oembed_response&&this.oembed_response.author_name&&(this.data.credit_alternate=`Instagram: <a href="https://instagram.com/${this.oembed_response.author_name}" target="_blank">@${this.oembed_response.author_name}</a>`),this.updateMeta()}sizes(t){return t<=150?"t":t<=306?"m":"l"}}class Gi extends ot{_loadMedia(){this._el.content_item=this.domCreate("img","tl-media-item tl-media-image tl-media-profile tl-media-shadow",this._el.content),this._el.content_item.src=this.data.url,this.onLoaded()}_updateMediaDisplay(t){$t&&(this._el.content_item.style.maxWidth=this.options.width/2-40+"px")}}class c extends ot{_loadMedia(){var t;this._el.content_item=this.domCreate("div","tl-media-item tl-media-iframe",this._el.content),t=this.data.url.match(/open\?id=([^&]+)/)?"https://drive.google.com/file/d/"+this.data.url.match(/open\?id=([^&]+)/)[1]+"/preview":this.data.url.match(/file\/d\/([^/]*)\/?/)?"https://drive.google.com/file/d/"+this.data.url.match(/file\/d\/([^/]*)\/?/)[1]+"/preview":this.data.url,this._el.content_item.innerHTML="<iframe class='doc' frameborder='0' width='100%' height='100%' src='"+t+"'></iframe>",this.onLoaded()}_updateMediaDisplay(){this._el.content_item.style.height=this.options.height+"px"}}class C extends ot{_loadMedia(){var t,e;this._el.content_item=this.domCreate("div","tl-media-item tl-media-iframe tl-media-spotify",this._el.content),this.media_id=(e=this.data.url).match(/^spotify:/)?e:`spotify${(e=new URL(e)).pathname.replace(/\/$/,"").replace(/\//g,":")}`,this.media_id?(t="https://embed.spotify.com/?uri="+this.media_id+"&theme=white&view=coverart",this.player=this.domCreate("iframe","tl-media-sha
1dow",this._el.content_item),this.player.width="100%",this.player.height="100%",this.player.frameBorder="0",this.player.src=t,this.onLoaded()):this.loadErrorDisplay(this._("spotify_invalid_url"))}_updateMediaDisplay(t){var e,a=0,s=0;e=it?this.options.height/2:this.options.height-this.options.credit_height-this.options.caption_height-30,this._el.content_item.style.maxHeight="none",J(e),J(this.options.width),e>this.options.width?(J("height is greater"),a=this.options.width+80+"px",s=this.options.width+"px"):(J("width is greater"),J(this.options.width),a=e+"px",s=e-80+"px"),this.player.style.width=s,this.player.style.height=a,this._el.credit&&(this._el.credit.style.width=s),this._el.caption&&(this._el.caption.style.width=s)}_stopMedia(){}}class D extends ot{constructor(t,e,a){super(t,e,a),this.iframe=Ae().sanitize(this.data.url,{ADD_TAGS:["iframe"],ADD_ATTR:["frameborder"]})}_loadMedia(){this._el.content_item=this.domCreate("div","tl-media-item tl-media-iframe",this._el.content),this._el.content_item.innerHTML=this.iframe,this.onLoaded()}_updateMediaDisplay(){this._el.content_item.style.height=this.options.height+"px"}}class nt extends ot{_loadMedia(){try{var t=this;if(this.data.url.match("<blockquote class=['\"]imgur-embed-pub['\"]")){var e=this.data.url.match(/(imgur\.com)\/(\w+)/);this.media_id=e[2],this.data.url="http://imgur.com/gallery/"+this.media_id}else this.data.url&&(this.media_id=this.data.url.split("/").slice(-1)[0]);ve(["https://s.imgur.com/min/embed.js"],function(){t.createMedia()})}catch{this.loadErrorDisplay(this._("imgur_invalidurl_err"))}}createMedia(){var t=this,e="https://api.imgur.com/oembed.json?url="+this.data.url;this._el.content_item=this.domCreate("div","tl-media-item tl-media-image tl-media-imgur",this._el.content),we({type:"GET",url:e,dataType:"json",success:function(a){try{t._el.content_item.innerHTML=a.html,setInterval(function(){null==document.querySelector("blockquote.imgur-embed-pub")?clearInterval():(imgurEmbed.createIframe(),document.getElementById("imageElement").removeAttribute("style"),document.getElementById("image").removeAttribute("style"))},2e3)}catch{J("Error processing imgur ajax response")}},error:function(a,s,r){t.loadErrorDisplay("parsererror"==s?t._("imgur_invalidurl_err"):t._("unknown_read_err",s))}}),this.onLoaded()}_updateMediaDisplay(){this._el.content_item.style.width=this.options.width+"px",this._el.content_item.style.height=Le({w:this.options.width})+"px"}}class ft extends ot{_loadMedia(){var e,t=ze(this.data.url);this._el.content_item=this.domCreate("div","tl-media-item tl-media-iframe",this._el.content),e=Tt||ct||t.match(/dl.dropboxusercontent.com/)?"<iframe class='doc' frameborder='0' width='100%' height='100%' src='//docs.google.com/viewer?url="+t+"&embedded=true'></iframe>":"<iframe class='doc' frameborder='0' width='100%' height='100%' src='"+t+"'></iframe>",this._el.content_item.innerHTML=e,this.onLoaded()}_updateMediaDisplay(){this._el.content_item.style.height=this.options.height+"px"}}class Ct extends ot{_loadMedia(){this.loadingMessage(),this.options.background||this.createMedia(),this.onLoaded()}createMedia(){var t=ze(this.data.url),e=this;this._el.content_item=this.domCreate("audio","tl-media-item tl-media-audio tl-media-shadow",this._el.content),this._el.content_item.controls=!0,this._el.source_item=this.domCreate("source","",this._el.content_item),this._el.content_item.addEventListener("load",function(a){e.onMediaLoaded()}),this._el.source_item.src=t,this._el.source_item.type=this._getType(this.data.url,this.data.mediatype.match_str),this._el.content_item.innerHTML+="Your browser doesn't support HTML5 audio with "+this._el.source_item.type,this.player_element=this._el.content_item}_updateMediaDisplay(t){$t&&(this._el.content_item.style.width="auto")}_stopMedia(){this.player_element&&this.player_element.pause()}_getType(t,e){var a="audio/";switch(t.match(e)[1]){case"mp3":a+="mpeg";break;case"wav":a+="wav";break;case"m4a":a+="mp4";break;default:a="audio"}return a}}class St extends ot{_loadMedia(){this.loadingMessage(),this.options.background||this.createMedia(),this.onLoaded()}createMedia(){var t=ze(this.data.url),e=this;this._el.content_item=this.domCreate("video","tl-media-item tl-media-video tl-media-sha
1dow",this._el.content),this._el.content_item.controls=!0,this._el.source_item=this.domCreate("source","",this._el.content_item),this._el.content_item.addEventListener("load",function(a){e.onMediaLoaded()}),this._el.source_item.src=t,this._el.source_item.type=this._getType(this.data.url,this.data.mediatype.match_str),this._el.content_item.innerHTML+="Your browser doesn't support HTML5 video with "+this._el.source_item.type,this.player_element=this._el.content_item}_updateMediaDisplay(t){$t&&(this._el.content_item.style.width="auto")}_stopMedia(){this.player_element&&this.player_element.pause()}_getType(t,e){var a="video/";switch(t.match(e)[1]){case"mp4":a+="mp4";break;case"webm":a+="webm";break;default:a="video"}return a}}class ai extends ot{_loadMedia(){var t,e=this;this._el.content_item=this.domCreate("div","tl-media-item tl-media-iframe tl-media-wistia tl-media-shadow",this._el.content),this.media_id=this.data.url.split(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/medias\/(.*)/)[3],J(`Wistia: media_id: ${this.media_id}`),t="https://fast.wistia.com/embed/iframe/"+this.media_id+"?version=v1&controlsVisibleOnLoad=true&playerColor=aae3d8",this.player=this.domCreate("iframe","",this._el.content_item),this.player.addEventListener("load",function(a){e.onMediaLoaded()}),this.player.width="100%",this.player.height="100%",this.player.frameBorder="0",this.player.src=t,this.player.setAttribute("allowfullscreen",""),this.player.setAttribute("webkitallowfullscreen",""),this.player.setAttribute("mozallowfullscreen",""),this.onLoaded()}_updateMediaDisplay(){this._el.content_item.style.height=Le({w:this._el.content_item.offsetWidth})+"px"}_stopMedia(){try{this.player.contentWindow.postMessage(JSON.stringify({method:"pause"}),"https://player.vimeo.com")}catch(t){J(t)}}}function At(i,t){var e=[{type:"youtube",name:"YouTube",match_str:"^(https?:)?/*(www.|m.)?youtube|youtu.be",cls:Ii},{type:"vimeo",name:"Vimeo",match_str:"^(https?:)?/*(player.)?vimeo.com",cls:Zi},{type:"dailymotion",name:"DailyMotion",match_str:"^(https?:)?/*(www.)?(dailymotion.com|dai.ly)",cls:ce},{type:"vine",name:"Vine",match_str:"^(https?:)?/*(www.)?vine.co",cls:Ci},{type:"soundcloud",name:"SoundCloud",match_str:"^(https?:)?/*(player.)?soundcloud.com",cls:ii},{type:"twitter",name:"Twitter",match_str:"^(https?:)?/*(www.)?twitter.com",cls:Oi},{type:"twitterembed",name:"TwitterEmbed",match_str:"<blockquote class=['\"]twitter-tweet['\"]",cls:ji},{type:"googlemaps",name:"Google Map",match_str:/google.+?\/maps\/@([-\d.]+),([-\d.]+),((?:[-\d.]+[zmayht],?)*)|google.+?\/maps\/search\/([\w\W]+)\/@([-\d.]+),([-\d.]+),((?:[-\d.]+[zmayht],?)*)|google.+?\/maps\/place\/([\w\W]+)\/@([-\d.]+),([-\d.]+),((?:[-\d.]+[zmayht],?)*)|google.+?\/maps\/dir\/([\w\W]+)\/([\w\W]+)\/@([-\d.]+),([-\d.]+),((?:[-\d.]+[zmayht],?)*)/,cls:ti},{type:"flickr",name:"Flickr",match_str:"^(https?:)?/*(www.)?flickr.com/photos",cls:Ri},{type:"flickr",name:"Flickr",match_str:"^(https?://)?flic.kr/.*",cls:Ri},{type:"instagram",name:"Instagram",match_str:/^(https?:)?\/*(www.)?(instagr.am|^(https?:)?\/*(www.)?instagram.com)\/p\//,cls:Hi},{type:"profile",name:"Profile",match_str:/^(https?:)?\/*(www.)?instagr.am\/[a-zA-Z0-9]{2,}|^(https?:)?\/*(www.)?instagram.com\/[a-zA-Z0-9]{2,}/,cls:Gi},{type:"documentcloud",name:"Document Cloud",match_str:/documentcloud.org\//,cls:Oe},{type:"wikipedia-image",name:"WikipediaImage",match_str:"^https://.+.wiki[mp]edia.org.+#/media/.+.(jpg|jpeg|png|gif|svg|webp)",cls:ei},{type:"wikipedia-image",name:"WikipediaImage",match_str:"^https://commons.wikimedia.org/wiki/File:.+.(jpg|jpeg|png|gif|svg|webp)",cls:ei},{type:"wikipedia",name:"Wikipedia",match_str:"^(https?:)?/.+.wikipedia.org",cls:yi},{type:"image",name:"Image",match_str:/(jpg|jpeg|png|gif|svg|webp)(\?.*)?$/i,cls:ge},{type:"imgur",name:"Imgur",match_str:/^.*imgur.com\/.+$|<blockquote class=['\"]imgur-embed-pub['\"]/i,cls:nt},{type:"googledocs",name:"Google Doc",match_str:"^(https?:)?/*[^.]*.google.com/[^/]*/d/[^/]*/[^/]*?usp=shar.*|^(https?:)?/*drive.google.com/open?id=[^&]*&authuser=0|^(https?:)?//*drive.google.com/open\\?id=[^&]*|^(https?:)?/*[^.]*.googledrive.com/host/[^/]*/",cls:c},{type:"pdf",name:"PDF",match_str:/^.*\.pdf(\?.*)?(\#.*)?/,cls:ft},{type:"spotify",name:"spotify",match_str:"spotify",cls:C},{type:"iframe",name:"iFrame",match_str:"iframe",cls:D},{type:"blockquote",name:"Quote",match_str:"blockquote",cls:vi},{type:"video",name:"Video",match_str:/(mp4|webm)(\?.*)?$/i,cls:St},{type:"wistia",name:"Wistia",match_str:/https?:\/\/(.+)?(wistia\.com|wi\.st)\/.*/i,cls:ai},{type:"audio",name:"Audio",match_str:/(mp3|wav|m4a)(\?.*)?$/i,cls:Ct},{type:"imageblank",name:"Imageblank",match_str:"",cls:ge}];if(t){if(i instanceof Array)return!1;for(var a=0;a<e.length;a++)switch(e[a].type){case"flickr":case"image":case"instagram":if(i.url.match(e[a].match_str))return e[a]}}else for(a=0;a<e.length;a++)if(i.url.match(e[a].match_str))return e[a];return!1}class bi{constructor(t,e){this._el={container:{},content_container:{},media_container:{},timespan:{},line_left:{},line_right:{},content:{},text:{},media:{}},this._text={},this._state={loaded:!1},this.data={unique_id:"",background:null,date:{year:0,month:0,day:0,hour:0,minute:0,second:0,millisecond:0,thumbnail:"",format:""},text:{headline:"",text:""},media:null},this.options={duration:1e3,ease:q,width:600,height:600,marker_width_min:100},this.active=!1,this.animator={},this.has_end_date=!1,this.ariaLabel="",tt(this.options,e),tt(this.data,t),this._initLayout(),this._initEvents()}show(){}hide(){}setActive(t){this.active=t,this._el.container.className=this.active&&this.has_end_date?"tl-timemarker tl-timemarker-with-end tl-timemarker-active":this.active?"tl-timemarker tl-timemarker-active":this.has_end_date?"tl-timemarker tl-timemarker-with-end":"tl-timemarker",this._el.container.ariaLabel=this.ariaLabel,this._el.container.ariaLabel+=this.active?", shown":", press space to show"}setFocus(t={preventScroll:!0}){this._el.container.focus(t)}addTo(t){t.appendChild(this._el.container)}removeFrom(t){t.removeChild(this._el.container)}updateDisplay(t,e){this._updateDisplay(t,e)}loadMedia(){this._media&&!this._state.loaded&&(this._media.loadMedia(),this._state.loaded=!0)}stopMedia(){this._media&&this._state.loaded&&this._media.stopMedia()}getLeft(){return this._el.container.style.left.slice(0,-2)}getTime(){return this.data.start_date.getTime()}getEndTime(){return!!this.data.end_date&&this.data.end_date.getTime()}setHeight(t){var e=1;this._el.content_container.style.height=t+"px",this._el.timespan_content.style.height=t+"px",this._el.content.className=t<=30?"tl-timemarker-content tl-timemarker-content-small":"tl-timemarker-content",t<=56?this._el.content_container.classList.add("tl-timemarker-content-container-small"):this._el.content_container.classList.remove("tl-timemarker-content-container-small"),Ft?((e=Math.floor(t/14))<1&&(e=1),this._text.className="tl-headline",this._text.style.webkitLineClamp=e):(this._text.className=(e=t/12)>1?"tl-headline tl-headline-fadeout":"tl-headline",this._text.style.height=12*e+"px")}setWidth(t){this.data.end_date&&(this._el.container.style.width=t+"px",t>this.options.marker_width_min?(this._el.content_container.style.width=t+"px",this._el.content_container.className="tl-timemarker-content-container tl-timemarker-content-container-long"):(this._el.content_container.style.width=this.options.marker_width_min+"px",this._el.content_container.className="tl-timemarker-content-container"))}setClass(t){this._el.container.className=t}setRowPosition(t,e){this.setPosition({top:t}),this._el.timespan.style.height=e+"px"}getFormattedDate(){if(zt(this.data.display_date).length>0)return this.data.display_date;let t="";return this.data.end_date&&(t=" to "+this.data.end_date.getDisplayDate(this.getLanguage())),this.data.start_date&&(t=(t?"from ":"")+this.data.start_date.getDisplayDate(this.getLanguage())+t),t}_onMarkerClick(t){this.fire("markerclick",{unique_id:this.data.unique_id})}_onMarkerKeydown(t){/Space|Enter/.test(t.code)&&this.fire("markerclick",{unique_id:this.data.unique_id})}_onMarkerBlur(t){this.fire("markerblur",{unique_id:this.data.unique_id})}_initLayout(){if(this._el.container=b("div","tl-timemarker"),this._el.container.setAttribute("tabindex","-1"),this.data.unique_id&&(this._el.container.id=this.data.unique_id+"-marker"),this.data.end_date&&(this.has_end_date=!0,this._el.container.className="tl-timemarker tl-timemarker-with-end"),this._el.timespan=b("div","tl-timemarker-timespan",this._el.container),this._el.timespan_content=b("div","tl-timemarker-timespan-content",this._el.timespan),this._el.content_container=b("div","tl-timemarker-content-container",this._el.container),this._el.content=b("div","tl-timemarker-content",this._el.content_container),this._el.line_left=b("div","tl-timemarker-line-left",this._el.timespan),this._el.line_right=b("div","tl-timemarker-line-right",this._el.timespan),this.data.media){this._el.media_container=b("div","tl-timemarker-media-container",this._el.content);var t={url:this.data.media.thumbnail},e=this.data.media.thumbnail?At(t,!0):null;if(e){var a=new e.cls(t);a.on("loaded",function(){this._el.media=b("img","tl-timemarker-media",this._el.media_container),this._el.media.src=a.getImageURL()}.bind(this)),a.loadMedia()}else{var s=At(this.data.media).type;this._el.media=b("span","tl-icon-"+s,this._el.media_container)}}this._el.text=b("div","tl-timemarker-text",this._el.content),this._text=b("h2","tl-headline",this._el.text),this.data.text.headline&&""!=this.data.text.headline?this._text.innerHTML=_e(this.data.text.headline):this.data.text.text&&""!=this.data.text.text?this._text.innerHTML=_e(this.data.text.text):this.data.media&&this.data.media.caption&&""!=this.data.media.caption&&(this._text.innerHTML=_e(this.data.media.caption));const r=this.getFormattedDate();this.ariaLabel=`${this._text.innerHTML}, ${r}`,this.onLoaded()}_initEvents(){V.addListener(this._el.container,"click",this._onMarkerClick,this),V.addListener(this._el.container,"keydown",this._onMarkerKeydown,this),V.addListener(this._el.container,"blur",this._onMarkerBlur,this)}_updateDisplay(t,e,a){t&&(this.options.width=t),e&&(this.options.height=e)}}Mt(bi,oe,K,Ut);class wi{constructor(t,e,a){this._el={drag:t,move:t}
1,this.mousedrag={down:"mousedown",up:"mouseup",leave:"mouseleave",move:"mousemove"},this.touchdrag={down:"touchstart",up:"touchend",leave:"mouseleave",move:"touchmove"},e&&(this._el.move=e),this.options={snap:!1,enable:{x:!0,y:!0},constraint:{top:!1,bottom:!1,left:0,right:!1},momentum_multiplier:2e3,duration:1e3,ease:N},this.animator=null,this.dragevent=this.mousedrag,F&&(this.dragevent=this.touchdrag),this.data={sliding:!1,direction:"none",pagex:{start:0,end:0},pagey:{start:0,end:0},pos:{start:{x:0,y:0},end:{x:0,y:0}},new_pos:{x:0,y:0},new_pos_parent:{x:0,y:0},time:{start:0,end:0},touch:!1},tt(this.options,a)}enable(t){V.addListener(this._el.drag,this.dragevent.down,this._onDragStart,this),V.addListener(this._el.drag,this.dragevent.up,this._onDragEnd,this),this.data.pos.start=0,this._el.move.style.left=this.data.pos.start.x+"px",this._el.move.style.top=this.data.pos.start.y+"px",this._el.move.style.position="absolute"}disable(){V.removeListener(this._el.drag,this.dragevent.down,this._onDragStart,this),V.removeListener(this._el.drag,this.dragevent.up,this._onDragEnd,this)}stopMomentum(){this.animator&&this.animator.stop()}updateConstraint(t){this.options.constraint=t}_onDragStart(t){this.animator&&this.animator.stop(),F?t.originalEvent?(this.data.pagex.start=t.originalEvent.touches[0].screenX,this.data.pagey.start=t.originalEvent.touches[0].screenY):(this.data.pagex.start=t.targetTouches[0].screenX,this.data.pagey.start=t.targetTouches[0].screenY):(this.data.pagex.start=t.pageX,this.data.pagey.start=t.pageY),this.data.pos.start={x:this._el.move.offsetLeft,y:this._el.move.offsetTop},this.data.time.start=(new Date).getTime(),this.fire("dragstart",this.data),V.addListener(this._el.drag,this.dragevent.move,this._onDragMove,this),V.addListener(this._el.drag,this.dragevent.leave,this._onDragEnd,this)}_onDragEnd(t){this.data.sliding=!1,V.removeListener(this._el.drag,this.dragevent.move,this._onDragMove,this),V.removeListener(this._el.drag,this.dragevent.leave,this._onDragEnd,this),this.fire("dragend",this.data),this._momentum()}_onDragMove(t){var e={x:0,y:0};this.data.sliding=!0,F?t.originalEvent?(this.data.pagex.end=t.originalEvent.touches[0].screenX,this.data.pagey.end=t.originalEvent.touches[0].screenY):(this.data.pagex.end=t.targetTouches[0].screenX,this.data.pagey.end=t.targetTouches[0].screenY):(this.data.pagex.end=t.pageX,this.data.pagey.end=t.pageY),e.x=this.data.pagex.start-this.data.pagex.end,e.y=this.data.pagey.start-this.data.pagey.end,this.data.pos.end={x:this._el.drag.offsetLeft,y:this._el.drag.offsetTop},this.data.new_pos.x=-(e.x-this.data.pos.start.x),this.data.new_pos.y=-(e.y-this.data.pos.start.y),this.options.enable.x&&Math.abs(e.x)>Math.abs(e.y)&&(t.preventDefault(),this._el.move.style.left=this.data.new_pos.x+"px"),this.options.enable.y&&Math.abs(e.y)>Math.abs(e.y)&&(t.preventDefault(),this._el.move.style.top=this.data.new_pos.y+"px"),this.fire("dragmove",this.data)}_momentum(){var t={x:0,y:0,time:0},e={x:0,y:0,time:0},a={x:!1,y:!1},s=!1;this.data.direction=null,t.time=10*((new Date).getTime()-this.data.time.start),e.time=10*((new Date).getTime()-this.data.time.start),e.x=this.options.momentum_multiplier*(Math.abs(this.data.pagex.end)-Math.abs(this.data.pagex.start)),e.y=this.options.momentum_multiplier*(Math.abs(this.data.pagey.end)-Math.abs(this.data.pagey.start)),t.x=Math.round(e.x/e.time),t.y=Math.round(e.y/e.time),this.data.new_pos.x=Math.min(this.data.new_pos.x+t.x),this.data.new_pos.y=Math.min(this.data.new_pos.y+t.y),this.options.enable.x?this.options.constraint.left&&this.data.new_pos.x>this.options.constraint.left&&(this.data.new_pos.x=this.options.constraint.left):this.data.new_pos.x=this.data.pos.start.x,this.options.enable.y?this.data.new_pos.y<0&&(this.data.new_pos.y=0):this.data.new_pos.y=this.data.pos.start.y,e.time<2e3&&(s=!0),this.options.enable.x&&this.options.enable.y?Math.abs(e.x)>Math.abs(e.y)?a.x=!0:a.y=!0:this.options.enable.x?Math.abs(e.x)>Math.abs(e.y)&&(a.x=!0):Math.abs(e.y)>Math.abs(e.x)&&(a.y=!0),a.x&&(Math.abs(e.x)>this._el.drag.offsetWidth/2&&(s=!0),Math.abs(e.x)>1e4&&(this.data.direction="left",e.x>0&&(this.data.direction="right"))),a.y&&(Math.abs(e.y)>this._el.drag.offsetHeight/2&&(s=!0),Math.abs(e.y)>1e4&&(this.data.direction="up",e.y>0&&(this.data.direction="down"))),e.time<1e3||this._animateMomentum(),s&&this.data.direction?this.fire("swipe_"+this.data.direction,this.data):this.data.direction?this.fire("swipe_nodirection",this.data):this.options.snap&&(this.animator.stop(),this.animator=Pt(this._el.move,{top:this.data.pos.start.y,left
1:this.data.pos.start.x,duration:this.options.duration,easing:R}))}_animateMomentum(){var t={x:this.data.new_pos.x,y:this.data.new_pos.y},e={duration:this.options.duration,easing:R};this.options.enable.y&&((this.options.constraint.top||this.options.constraint.bottom)&&(t.y>this.options.constraint.bottom?t.y=this.options.constraint.bottom:t.y<this.options.constraint.top&&(t.y=this.options.constraint.top)),e.top=Math.floor(t.y)+"px"),this.options.enable.x&&(this.options.constraint.left&&t.x>=this.options.constraint.left&&(t.x=this.options.constraint.left),this.options.constraint.right&&t.x<this.options.constraint.right&&(t.x=this.options.constraint.right),e.left=Math.floor(t.x)+"px"),this.animator=Pt(this._el.move,e),this.fire("momentum",this.data)}}Mt(wi,K);class Yi{constructor(t,e,a,s){this.language=s,this._el={parent:{},container:{},slider:{},slider_background:{},line:{},marker_container_mask:{},marker_container:{},marker_item_container:{},timeaxis:{},timeaxis_background:{}},this.collapsed=!1,this._el.container="object"==typeof t?t:$(t),this._el.container.setAttribute("tabindex","0"),this._el.container.setAttribute("role","application"),this._el.container.setAttribute("aria-label",this._("aria_label_timeline_navigation")),this._el.container.setAttribute("aria-description",'Navigate between markers with arrow keys. Press "Home" for the first and "End" for the last markers'),this.config=e,this.options={width:600,height:600,duration:1e3,ease:N,has_groups:!1,optimal_tick_width:50,scale_factor:2,marker_padding:5,timenav_height_min:150,marker_height_min:30,marker_width_min:100,zoom_sequence:[.5,1,2,3,5,8,13,21,34,55,89]},this.animator=null,this.ready=!1,this._markers=[],this._eras=[],this.has_eras=!1,this._groups=[],this._calculated_row_height=100,this.current_id="",this.current_focused_id="",this.timescale={},this.timeaxis={},this.max_rows=6,this.animate_css=!1,tt(this.options,a)}init(){this._initLayout(),this._initEvents(),this._initData(),this.updateDisplay(),this._onLoaded()}positionMarkers(t){for(var e=0;e<this._markers.length;e++){var a=this.timescale.getPositionInfo(e);this._markers[e].setClass(t?"tl-timemarker tl-timemarker-fast":"tl-timemarker"),this._markers[e].setPosition({left:a.start}),this._markers[e].setWidth(a.width)}}updateDisplay(t,e,a){let s=!1;t&&(0==this.options.width&&t>0&&(s=!0),this.options.width=t),e&&e!=this.options.height&&(this.options.height=e,this.timescale=this._getTimeScale()),this._assignRowsToMarkers(),this._el.slider_background.style.width=this.timescale.getPixelWidth()+this.options.width+"px",this._el.slider_background.style.left=-this.options.width/2+"px",this._el.slider.style.width=this.timescale.getPixelWidth()+this.options.width+"px",this._swipable.updateConstraint({top:!1,bottom:!1,left:this.options.width/2,right:-(this.timescale.getPixelWidth()-this.options.width/2)}),s&&this._drawTimeline(),this.goToId(this.current_id,!0)}_getTimeScale(){var t=0;try{t=parseInt(this.options.marker_height_min)}catch{J("Invalid value for marker_height_min option."),t=30}return 0==t&&(J("marker_height_min option must not be zero."),t=30),this.max_rows=Math.round((this.options.height-this._el.timeaxis_background.offsetHeight-this.options.marker_padding)/t),this.max_rows<1&&(this.max_rows=1),new fe(this.config,{display_width:this._el.container.offsetWidth,screen_multiplier:this.options.scale_factor,max_rows:this.max_rows})}_updateTimeScale(t){this.options.scale_factor=t,this._updateDrawTimeline()}zoomIn(){var t=function(e,a,s){for(var r=0;r<e.length;r++)if(a<e[r])return e[r];return a}(this.options.zoom_sequence,this.options.scale_factor);this.setZoomFactor(t)}zoomOut(){var t=function(e,a,s){for(var r=e.length-1;r>=0;r--)if(a>e[r])return e[r];return a}(this.options.zoom_sequence,this.options.scale_factor);this.setZoomFactor(t)}setZoom(t){var e=this.options.zoom_sequence[t];"number"==typeof e?this.setZoomFactor(e):console.warn("Invalid zoom level. Please use an index number between 0 and "+(this.options.zoom_sequence.length-1))}setZoomFactor(t){this.fire("zoomtoggle",t<=this.options.zoom_sequence[0]?{zoom:"out",show:!1}:{zoom:"out",show:!0}),this.fire("zoomtoggle",t>=this.options.zoom_sequence[this.options.zoom_sequence.length-1]?{zoom:"in",show:!1}:{zoom:"in",show:!0}),0==t&&(console.warn("Zoom factor must be greater than zero. Using 0.1"),t=.1),this.options.scale_factor=t,this.goToId(this.current_id,!this._updateDrawTimeline(!0),!0)}_createGroups(){this._groups=[];var t=this.timescale.getGroupLabels();if(t){this.options.has_groups=!0;for(var e=0;e<t.length;e++)this._createGroup(t[e])}}_createGroup(t){var e=new Ni(t);this._addGroup(e),this._groups.push(e)}_addGroup(t){t.addTo(this._el.container)}_positionGroups(){if(this.options.has_groups)for(var t=this.options.height-this._el.timeaxis_background.offsetHeight,e=Math.floor(t/this.timescale.getNumberOfRows()-this.options.marker_padding),a=(this.timescale.getGroupLabels(),0),s=0;a<this._groups.length;a++){var r=Math.floor(s*(e+this.options.marker_padding)),l=!1;r>t-this.options.marker_padding&&(l=!0),this._groups[a].setRowPosition(r,this._calculated_row_height+this.options.marker_padding/2),this._groups[a].setAlternateRowColor((i=a)==parseFloat(i)?!(i%2):void 0,l),s+=this._groups[a].data.rows}var i}_addMarker(t){t.addTo(this._el.marker_item_container),t.on("markerclick",this._onMarkerClick,this),t.on("added",this._onMarkerAdded,this)}_createMarker(t,e){var a=new bi(t,this.options);this._addMarker(a),e<0?this._markers.push(a):this._markers.splice(e,0,a)}_createMarkers(t){for(var e=0;e<t.length;e++)this._createMarker(t[e],-1)}_removeMarker(t){t.removeFrom(this._el.marker_item_container)}_destroyMarker(t){this._removeMarker(this._markers[t]),this._markers.splice(t,1)}_calculateMarkerHeight(t){return t/this.timescale.getNumberOfRows()-this.options.marker_padding}_calculateRowHeight(t){return t/this.timescale.getNumberOfRows()}_calculateAvailableHeight(){return this.options.height-this._el.timeaxis_background.offsetHeight-this.options.marker_padding}_calculateMinimumTimeNavHeight(){return this.timescale.getNumberOfRows()*this.options.marker_height_min+this._el.timeaxis_background.offsetHeight+this.options.marker_padding}getMinimumHeight(){return this._calculateMinimumTimeNavHeight()}_assignRowsToMarkers(){var t=this._calculateAvailableHeight(),e=this._calculateMarkerHeight(t);this._positionGroups(),this._calculated_row_height=this._calculateRowHeight(t);for(var a=0;a<this._markers.length;a++){this._markers[a].setHeight(e);var s=this.timescale.getPositionInfo(a).row,r=Math.floor(s*(e+this.options.marker_padding))+this.options.marker_padding;this._markers[a].setRowPosition(r,t-r+this.options.marker_padding)}}_resetMarkersActive(){for(var t=0;t<this._markers.length;t++)this._markers[t].setActive(!1)}_resetMarkersBlurListeners(){for(var t=0;t<this._markers.length;t++)this._markers[t].off("markerblur",this._onMarkerBlur,this)}_findMarkerIndex(t){var e=-1;return("string"==typeof t||t instanceof String)&&(e=Re(t,this._markers,"unique_id",e)),e}_createEras(t){for(var e=0;e<t.length;e++){var a=t[e],s=new pi(a.start_date,a.end_date,a.headline,this.options);this._eras.push(s),s.addTo(this._el.marker_item_container),s.on("added",this._onEraAdded,this)}}_positionEras(t){for(var e=0,a=0;a<this._eras.length;a++){var s={start:0,end:0,width:0};s.start=this.timescale.getPosition(this._eras[a].start_date.getTime()),s.end=this.timescale.getPosition(this._eras[a].end_date.getTime()),s.width=s.end-s.start,this._eras[a].setClass(t?"tl-timeera tl-timeera-fast":"tl-timeera"),this._eras[a].setPosition({left:s.start}),this._eras[a].setWidth(s.width),++e>5&&(e=0),this._eras[a].setColor(e)}}createMarker(t,e){this._createMarker(t,e)}createMarkers(t){this._createMarkers(t)}destroyMarker(t){this._destroyMarker(t)}destroyMarkerId(t){this.destroyMarker(this._findMarkerIndex(t))}goTo(t,e,a){var s=this.options.ease,r=this.options.duration,l=t<0?0:t;this._resetMarkersActive(),t>=0&&t<this._markers.length&&this._markers[t].setActive(!0),this.animateMovement(l,e,a,r,s),this.current_id=this.current_focused_id=t>=0&&t<this._markers.length?this._markers[t].data.unique_id:"",this._setLabelWithCurrentMarker()}goToId(t,e,a){this.goTo(this._findMarkerIndex(t),e,a)}focusOn(t,e,a){this.animateMovement(t<0?0:t,e,a,this.options.duration,this.options.ease),this._resetMarkersBlurListeners(),t>=0&&t<this._markers.length&&(this._markers[t].setFocus(),this.current_focused_id=this._markers[t].data.unique_id,this._markers[t].on("markerblur",this._onMarkerBlur,this))}focusNext(){const t=this._findMarkerIndex(this.current_focused_id);this.focusOn(t+1<this._markers.length?t+1:t)}focusPrevious(){const t=this._findMarkerIndex(this.current_focused_id);this.focusOn(t-1>=0?t-1:t)}animateMovement(t,e,a,s,r){this.animator&&this.animator.stop(),e?(this._el.slider.className="tl-timenav-slider",this._el.slider.style.left=-this._markers[t].getLeft()+this.options.width/2+"px"):a?(this._el.slider.className="tl-timenav-slider tl-timenav-slider-animate",this.animate_css=!0,this._el.slider.style.left=-this._markers[t].getLeft()+this.options.width/2+"px"):(this._el.slider.className="tl-timenav-slider",this.animator=Pt(this._el.slider,{left
1:-this._markers[t].getLeft()+this.options.width/2+"px",duration:s,easing:r})),this.current_id=t>=0&&t<this._markers.length?this._markers[t].data.unique_id:"",this._dispatchVisibleTicksChange()}goToId(t,e,a){this.goTo(this._findMarkerIndex(t),e,a)}_dispatchVisibleTicksChange(){this.ticks_change_timeout&&(clearTimeout(this.ticks_change_timeout),this.ticks_change_timeout=null),this.ticks_change_timeout=setTimeout(()=>{const t=this.timeaxis.getVisibleTicks();this.fire("visible_ticks_change",{visible_ticks:t})},this.options.duration)}_onLoaded(){this.ready=!0,this.fire("loaded",this.config)}_onMarkerAdded(t){this.fire("dateAdded",this.config)}_onEraAdded(t){this.fire("eraAdded",this.config)}_onMarkerRemoved(t){this.fire("dateRemoved",this.config)}_onMarkerClick(t){this.goToId(t.unique_id),this.fire("change",{unique_id:t.unique_id})}_onMarkerBlur(t){this.current_focused_id!==this.current_id&&this.focusOn(this._findMarkerIndex(this.current_id))}_onMouseScroll(t){var e=0,a=0,s={right:-(this.timescale.getPixelWidth()-this.options.width/2),left:this.options.width/2};t||(t=window.event),t.originalEvent&&(t=t.originalEvent),void 0!==t.wheelDeltaX&&(e=t.wheelDeltaY/6,e=Math.abs(t.wheelDeltaX)>Math.abs(t.wheelDeltaY)?t.wheelDeltaX/6:0),e&&(t.preventDefault&&t.preventDefault(),t.returnValue=!1),(a=parseInt(this._el.slider.style.left.replace("px",""))+e)>s.left?a=s.left:a<s.right&&(a=s.right),this.animate_css&&(this._el.slider.className="tl-timenav-slider",this.animate_css=!1),this._el.slider.style.left=a+"px"}_onDragMove(t){this.animate_css&&(this._el.slider.className="tl-timenav-slider",this.animate_css=!1)}_onKeydown(t){switch(V.stopPropagation(t),t.key){case"ArrowUp":case"ArrowRight":this.focusNext();break;case"ArrowDown":case"ArrowLeft":this.focusPrevious();break;case"Home":this.focusOn(0);break;case"End":this.focusOn(this._markers.length-1)}}_drawTimeline(t){this.timescale=this._getTimeScale(),this.timeaxis.drawTicks(this.timescale,this.options.optimal_tick_width),this.positionMarkers(t),this._assignRowsToMarkers(),this._createGroups(),this._positionGroups(),this.has_eras&&this._positionEras(t)}_updateDrawTimeline(t){var e=!1;if(t){var a=new fe(this.config,{display_width:this._el.container.offsetWidth,screen_multiplier:this.options.scale_factor,max_rows:this.max_rows});this.timescale.getMajorScale()==a.getMajorScale()&&this.timescale.getMinorScale()==a.getMinorScale()&&(e=!0)}else e=!0;return e?(this.timescale=this._getTimeScale(),this.timeaxis.positionTicks(this.timescale,this.options.optimal_tick_width),this.positionMarkers(),this._assignRowsToMarkers(),this._positionGroups(),this.has_eras&&this._positionEras(),this.updateDisplay()):this._drawTimeline(!0),e}_setLabelWithCurrentMarker(){const t=this._markers[this._findMarkerIndex(this.current_focused_id)];this._el.container.setAttribute("aria-label","Timeline navigation "+(t&&t.ariaLabel?`, ${t.ariaLabel}, shown`:""))}_initLayout(){this._el.line=b("div","tl-timenav-line",this._el.container),this._el.slider=b("div","tl-timenav-slider",this._el.container),this._el.slider_background=b("div","tl-timenav-slider-background",this._el.slider),this._el.marker_container_mask=b("div","tl-timenav-container-mask",this._el.slider),this._el.marker_container=b("div","tl-timenav-container",this._el.marker_container_mask),this._el.marker_item_container=b("div","tl-timenav-item-container",this._el.marker_container),this._el.timeaxis=b("div","tl-timeaxis",this._el.slider),this._el.timeaxis_background=b("div","tl-timeaxis-background",this._el.container),this.timeaxis=new fi(this._el.timeaxis,this.options,this.language),this._swipable=new wi(this._el.slider_background,this._el.slider,{enable:{x:!0,y:!1},constraint:{top:!1,bottom:!1,left:this.options.width/2,right:!1},snap:!1}),this._swipable.enable()}_initEvents(){this._swipable.on("dragmove",this._onDragMove,this),V.addListener(this._el.container,"mousewheel",this._onMouseScroll,this),V.addListener(this._el.container,"DOMMouseScroll",this._onMouseScroll,this),V.addListener(this._el.container,"keydown",this._onKeydown,this)}_initData(){this._createMarkers(this.config.events),this.config.eras&&this.config.eras.length>0&&(this.has_eras=!0,this._createEras(this.config.eras)),this._drawTimeline()}}Mt(Yi,K,Ut,oe),Gt(102);class Ki{constructor(t,e,a,s){s&&this.setLanguage(s),this._el={container:{},scroll_container:{},background:{},content_container:{},content:{}},this._media=null,this._mediaclass={},this._text={},this._background_media=null,this._state={loaded:!1},this.has={headline:!1,text:!1,media:!1,title:!1,background:{image:!1,
1color:!1,color_value:""}},this.has.title=a,this.data={unique_id:null,background:null,start_date:null,end_date:null,location:null,text:null,media:null,autolink:!0},this.options={duration:1e3,slide_padding_lr:40,ease:q,width:600,height:600,skinny_size:650,media_name:""},this.active=!1,this.animator={},tt(this.options,e),tt(this.data,t),this._initLayout(),this._initEvents()}show(){this.animator=Pt(this._el.slider_container,{left:-this._el.container.offsetWidth*n+"px",duration:this.options.duration,easing:this.options.ease})}hide(){}setActive(t){this.active=t,this.active?(this.data.background&&this.fire("background_change",this.has.background),this._setInteractive(!0),this.loadMedia()):(this.stopMedia(),this._setInteractive(!1))}addTo(t){t.appendChild(this._el.container)}removeFrom(t){t.removeChild(this._el.container)}updateDisplay(t,e,a){var s,r=this.options.slide_padding_lr,l=this.options.slide_padding_lr;this.options.width=t||this._el.container.offsetWidth,s=this.options.width-2*this.options.slide_padding_lr,it&&this.options.width<=this.options.skinny_size?(r=0,l=0,s=this.options.width):"landscape"==a||this.options.width<=this.options.skinny_size&&(s=this.options.width-(r=50)-(l=50)),this._el.content.style.paddingLeft=r+"px",this._el.content.style.paddingRight=l+"px",this._el.content.style.width=s+"px",this.options.height=e||this._el.container.offsetHeight,this._media&&(!this.has.text&&this.has.headline?this._media.updateDisplay(s,this.options.height-this._text.headlineHeight(),a):this._media.updateDisplay(this.has.text||this.has.headline?this.options.width<=this.options.skinny_size?s:s/2:s,this.options.height,a)),this._updateBackgroun
1dDisplay()}loadMedia(){var t=this;this._media&&!this._state.loaded&&(this._media.loadMedia(),this._state.loaded=!0),this._background_media&&!this._background_media._state.loaded&&(this._background_media.on("loaded",function(){t._updateBackgroundDisplay()}),this._background_media.loadMedia())}stopMedia(){this._media&&this._state.loaded&&this._media.stopMedia()}getBackground(){return this.has.background}scrollToTop(){this._el.container.scrollTop=0}getFormattedDate(){if(zt(this.data.display_date).length>0)return this.data.display_date;var t="";return this.has.title||(this.data.end_date&&(t=" — "+this.data.end_date.getDisplayDate(this.getLanguage())),this.data.start_date&&(t=this.data.start_date.getDisplayDate(this.getLanguage())+t)),t}_initLayout(){if(this._el.container=b("div","tl-slide"),this.has.title&&(this._el.container.className="tl-slide tl-slide-titleslide"),this.data.unique_id&&(this._el.container.id=this.data.unique_id),this._el.scroll_container=b("div","tl-slide-scrollable-container",this._el.container),this._el.content_container=b("div","tl-slide-content-container",this._el.scroll_container),this._el.content=b("div","tl-slide-content",this._el.content_container),this._el.background=b("div","tl-slide-background",this._el.container),this.data.background){if(this.data.background.url){var t=At(this.data.background,!0);t&&(this._background_media=new t.cls(this.data.background,{background:1}),this.has.background.image=!0,this._el.container.className+=" tl-full-image-background",this.has.background.color_value="#000",this._el.background.style.display="block"),this.data.background.alt&&(this._el.background.setAttribute("role","img"),this._el.background.setAttribute("aria-label",this.data.background.alt))}this.data.background.color&&(this.has.background.color=!0,this._el.container.className+=" tl-full-color-background",this.has.background.color_value=this.data.background.color),this.data.background.text_background&&(this._el.container.className+=" tl-text-background")}this.data.media&&this.data.media.url&&""!=this.data.media.url&&(this.has.media=!0),this.data.text&&this.data.text.text&&(this.has.text=!0),this.data.text&&this.data.text.headline&&(this.has.headline=!0),this.has.media&&(this.data.media.mediatype=At(this.data.media),this.options.media_name=this.data.media.mediatype.name,this.options.media_type=this.data.media.mediatype.type,this.options.autolink=this.data.autolink,this._media=new this.data.media.mediatype.cls(this.data.media,this.options,this.getLanguage())),(this.has.text||this.has.headline)&&(this._text=new Qe(this.data.text,{title:this.has.title,language:this.getLanguage(),autolink:this.data.autolink}),this._text.addDateText(this.getFormattedDate())),this.has.text||this.has.headline||!this.has.media?this.has.headline&&this.has.media&&!this.has.text?(this._el.container.classList.add("tl-slide-media-only"),this._text.addTo(this._el.content),this._media.addTo(this._el.content)):this.has.text&&this.has.media?(this._text.addTo(this._el.content),this._media.addTo(this._el.content)):(this.has.text||this.has.headline)&&(this._el.container.classList.add("tl-slide-text-only"),this._text.addTo(this._el.content)):(this._el.container.classList.add("tl-slide-media-only"),this._media.addTo(this._el.content)),this.onLoaded()}_initEvents(){}
1_updateBackgroundDisplay(){this._background_media&&this._background_media._state.loaded&&(this._el.background.style.backgroundImage="url('"+this._background_media.getImageURL(this.options.width,this.options.height)+"')")}_setInteractive(t){t?this._el.container.removeAttribute("inert"):this._el.container.setAttribute("inert",!0)}}Mt(Ki,oe,K,Ut);class Vi{constructor(t,e,a){this._el={container:{},content_container:{},icon:{},title:{},description:{}},this.mediatype={},this.data={title:"Navigation",description:"Description",date:"Date"},this.options={direction:"previous"},this.animator=null,tt(this.options,e),tt(this.data,t),this._el.container=pt("tl-slidenav-"+this.options.direction),it&&this._el.container.setAttribute("ontouchstart"," "),this._initLayout(),this._initEvents(),a&&a.appendChild(this._el.container)}update(t){var e={title:"",description:"",date:t.getFormattedDate()};t.data.text&&t.data.text.headline&&(e.title=t.data.text.headline),this._update(e)}setColor(t){this._el.content_container.className=t?"tl-slidenav-content-container tl-slidenav-inverted":"tl-slidenav-content-container"}_onMouseClick(){this.fire("clicked",this.options)}_update(t){this.data=tt(this.data,t);const e=_e(this.data.title);this._el.title.innerHTML=e;const a=_e(this.data.date);this._el.description.innerHTML=a,this._el.container.setAttribute("aria-label",`${this.options.direction}, ${e}, ${a}`)}_initLayout(){this._el.content_container=b("div","tl-slidenav-content-container",this._el.container),this._el.icon=b("div","tl-slidenav-icon",this._el.content_container),this._el.title=b("div","tl-slidenav-title",this._el.content_container),this._el.description=b("div","tl-slidenav-description",this._el.content_container),this._el.icon.innerHTML=" ",this._update()}_initEvents(){V.addListener(this._el.container,"click",this._onMouseClick,this)}}Mt(Vi,Ut,K);class Qi{constructor(t,e,a,s){s&&this.setLanguage(s),this._el={container:{},background:{},slider_container_mask:{},slider_container:{},slider_item_container:{}},this._nav={},this._nav.previous={},this._nav.next={},this.slide_spacing=0,this._slides=[],this.current_id="",this.data={},this.options={id:"",layout:"portrait",width:600,height:600,default_bg_color:{r:255,g:255,b:255},slide_padding_lr:40,start_at_slide:1,slide_default_fade:"0%",duration:1e3,ease:N,dragging:!0,trackResize:!0},"object"==typeof t?(this._el.container=t,this.options.id=le(6,"tl")):(this.options.id=t,this._el.container=$(t)),this._el.container.id||(this._el.container.id=this.options.id),this.animator=null,tt(this.options,a),tt(this.data,e)}init(){this._initLayout(),this._initEvents(),this._initData(),this.updateDisplay(),this.goTo(this.options.start_at_slide),this._onLoaded()}_addSlide(t){t.addTo(this._el.slider_item_container),t.on("added",this._onSlideAdded,this),t.on("background_change",this._onBackgroundChange,this)}_createSlide(t,e,a){var s=new Ki(t,this.options,e,this.getLanguage());this._addSlide(s),a<0?this._slides.push(s):this._slides.splice(a,0,s)}_createSlides(t){for(var e=0;e<t.length;e++)""==t[e].unique_id&&(t[e].unique_id=le(6,"tl-slide")),this._createSlide(t[e],!1,-1)}_removeSlide(t){t.removeFrom(this._el.slider_item_container),t.off("added",this._onSlideRemoved,this),t.off("background_change",this._onBackgroundChange)}_destroySlide(t){this._removeSlide(this._slides[t]),this._slides.splice(t,1)}_findSlideIndex(t){var e=t;return("string"==typeof t||t instanceof String)&&(e=Re(t,this._slides,"unique_id")),e}updateDisplay(t,e,a,s){var r,l;this.options.layout=l=void 0===s?this.options.layout:s,this.options.width=t||this._el.container.offsetWidth,this.options.height=e||this._el.container.offsetHeight,this.slide_spacing=2*this.options.width,this._nav.next.setPosition({top:r=this.options.height/2}),this._nav.previous.setPosition({top:r});for(var d=0;d<this._slides.length;d++)this._slides[d].updateDisplay(this.options.width,this.options.height,l),this._slides[d].setPosition({left:this.slide_spacing*d,top:0});this.goToId(this.current_id,!0,!0)}createSlide(t,e){this._createSlide(t,!1,e)}createSlides(t){this._createSlides(t)}destroySlide(t){this._destroySlide(t)}destroySlideId(t){this.destroySlide(this._findSlideIndex(t))}goTo(t,e,a){t=parseInt(t),isNaN(t)&&(t=0);var s=this;
1this.changeBackground({color_value:"",image:!1}),this.preloadTimer&&clearTimeout(this.preloadTimer);for(var r=0;r<this._slides.length;r++)this._slides[r].setActive(!1);t<this._slides.length&&t>=0&&(this.current_id=this._slides[t].data.unique_id,this.animator&&this.animator.stop(),this._swipable&&this._swipable.stopMomentum(),e?(this._el.slider_container.style.left=-this.slide_spacing*t+"px",this._onSlideChange(a)):this.animator=Pt(this._el.slider_container,{left:-this.slide_spacing*t+"px",duration:this.options.duration,easing:this.options.ease,complete:this._onSlideChange(a)}),this._slides[t].setActive(!0),this._slides[t+1]?(this.showNav(this._nav.next,!0),this._nav.next.update(this._slides[t+1])):this.showNav(this._nav.next,!1),this._slides[t-1]?(this.showNav(this._nav.previous,!0),this._nav.previous.update(this._slides[t-1])):this.showNav(this._nav.previous,!1),this.preloadTimer=setTimeout(function(){s.preloadSlides(t)},this.options.duration))}goToId(t,e,a){this.goTo(this._findSlideIndex(t),e,a)}preloadSlides(t){this._slides[t+1]&&(this._slides[t+1].loadMedia(),this._slides[t+1].scrollToTop()),this._slides[t+2]&&(this._slides[t+2].loadMedia(),this._slides[t+2].scrollToTop()),this._slides[t-1]&&(this._slides[t-1].loadMedia(),this._slides[t-1].scrollToTop()),this._slides[t-2]&&(this._slides[t-2].loadMedia(),this._slides[t-2].scrollToTop())}next(){var t=this._findSlideIndex(this.current_id);this.goTo(t+1<this._slides.length?t+1:t)}previous(){var t=this._findSlideIndex(this.current_id);this.goTo(t-1>=0?t-1:t)}showNav(t,e){this.options.width<=500&&it?t.hide():e?t.show():t.hide()}changeBackground(t){var e={r:256,g:256,b:256};t.color_value&&""!=t.color_value?(e=Rt(t.color_value))||(J("Invalid color value "+t.color_value),e=this.options.default_bg_color):t.color_value="rgb("+(e=this.options.default_bg_color).r+" , "+e.g+", "+e.b+")",this._el.background.style.backgroundImage="none",this._el.background.style.backgroundColor=t.color_value?t.color_value:"transparent",e.r<255||e.g<255||e.b<255||t.image?(this._nav.next.setColor(!0),this._nav.previous.setColor(!0)):(this._nav.next.setColor(!1),this._nav.previous.setColor(!1))}_updateDrawSlides(){for(var t=this.options.layout,e=0;e<this._slides.length;e++)this._slides[e].updateDisplay(this.options.width,this.options.height,t),this._slides[e].setPosition({left:this.slide_spacing*e,top:0});this.goToId(this.current_id,!0,!1)}_initLayout(){this._el.container.classList.add("tl-storyslider"),this._nav.previous=new Vi({title:"Previous",description:"description"},{direction:"previous"},this._el.container),this._nav.next=new Vi({title:"Next",description:"description"},{direction:"next"},this._el.container),this._el.slider_container_mask=b("div","tl-slider-container-mask",this._el.container),this._el.background=b("div","tl-slider-background tl-animate",this._el.container),this._el.slider_container=b("div","tl-slider-container tlanimate",this._el.slider_container_mask),this._el.slider_item_container=b("div","tl-slider-item-container",this._el.slider_container),this._el.slider_container.setAttribute("aria-live","polite"),this.options.width=this._el.container.offsetWidth,this.options.height=this._el.container.offsetHeight,this._el.slider_container.style.left="0px",F&&(this._swipable=new wi(this._el.slider_container_mask,this._el.slider_container,{enable:{x:!0,y:!1},snap:!0}),this._swipable.enable(),this._message=new Se(this._el.container,{message_class:"tl-message-full",message_icon_class:"tl-icon-swipe-left"},this.getLanguage()),this._message.updateMessage(this._("swipe_to_navigate")),this._message.addTo(this._el.container))}_initEvents(){this._nav.next.on("clicked",this._onNavigation,this),this._nav.previous.on("clicked",this._onNavigation,this),this._message&&this._message.on("clicked",this._onMessageClick,this),this._swipable&&(this._swipable.on("swipe_left",this._onNavigation,this),this._swipable.on("swipe_right",this._onNavigation,this),this._swipable.on("swipe_nodirection",this._onSwipeNoDirection,this))}_initData(){this.data.title&&this._createSlide(this.data.title,!0,-1),this._createSlides(this.data.events)}
1_onBackgroundChange(t){var e=this._findSlideIndex(this.current_id),a=this._slides[e].getBackground();this.changeBackground(t),this.fire("colorchange",a)}_onMessageClick(t){this._message.hide()}_onSwipeNoDirection(t){this.goToId(this.current_id)}_onNavigation(t){"next"==t.direction||"left"==t.direction?this.next():"previous"!=t.direction&&"right"!=t.direction||this.previous(),this.fire("nav_"+t.direction,this.data)}_onSlideAdded(t){J("slideadded"),this.fire("slideAdded",this.data)}_onSlideRemoved(t){this.fire("slideRemoved",this.data)}_onSlideChange(t){t||this.fire("change",{unique_id:this.current_id})}_onMouseClick(t){}_fireMouseEvent(t){if(this._loaded){var e=t.type;this.hasEventListeners(e="mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e)&&("contextmenu"===e&&V.preventDefault(t),this.fire(e,{latlng:"something",layerPoint:"something else"}))}}_onLoaded(){this.fire("loaded",this.data)}}Mt(Qi,oe,K);class ta{constructor(t,e,a,s){this._el={parent:{},container:{},button_forwardtoend:{},button_backtostart:{},button_zoomin:{},button_zoomout:{},arrow:{},line:{},coverbar:{},grip:{}},this.collapsed=!1,this._el.container="object"==typeof t?t:$(t),e&&(this._el.parent=e),this.data={visible_ticks_dates:{}},this.options={width:600,height:600,duration:1e3,ease:N,menubar_default_y:0},this.animator={},this.setLanguage(s),tt(this.options,a),this._initLayout(),this._initEvents()}show(t){}hide(t){}toogleZoomIn(t){t?this._el.button_zoomin.removeAttribute("disabled"):this._el.button_zoomin.setAttribute("disabled",!0)}toogleZoomOut(t){t?this._el.button_zoomout.removeAttribute("disabled"):this._el.button_zoomout.setAttribute("disabled",!0)}changeVisibleTicks(t){const e=t.minor;if(!e.length)return void(this.data.visible_ticks_dates={});const a=e[0].date.getFullYear(),s=e[e.length-1].date.getFullYear();this.data.visible_ticks_dates={start:a,end:s},this._updateZoomAriaLabels()}setSticky(t){this.options.menubar_default_y=t}setColor(t){this._el.container.className=t?"tl-menubar tl-menubar-inverted":"tl-menubar"}updateDisplay(t,e,a,s){this._updateDisplay(t,e,a,s)}_onButtonZoomIn(t){this.fire("zoom_in",t)}_onButtonZoomOut(t){this.fire("zoom_out",t)}_onButtonForwardToEnd(t){this.fire("forward_to_end",t)}_onButtonBackToStart(t){this.fire("back_to_start",t)}_initLayout(){this._el.button_zoomin=pt("tl-menubar-button",this._el.container),this._el.button_zoomout=pt("tl-menubar-button",this._el.container),this._el.button_forwardtoend=pt("tl-menubar-button",this._el.container),this._el.button_backtostart=pt("tl-menubar-button",this._el.container),it&&this._el.container.setAttribute("ontouchstart"," "),this._el.button_backtostart.innerHTML="<span class='tl-icon-goback'></span>",this._el.button_backtostart.setAttribute("aria-label",this._("return_to_title")),this._el.button_forwardtoend.innerHTML="<span class='tl-icon-goend'></span>",this._el.button_forwardtoend.setAttribute("aria-label",this._("go_to_end")),this._el.button_zoomin.innerHTML="<span class='tl-icon-zoom-in'></span>",this._el.button_zoomin.setAttribute("aria-label",this._("zoom_in")),this._el.button_zoomout.innerHTML="<span class='tl-icon-zoom-out'></span>",this._el.button_zoomout.setAttribute("aria-label",this._("zoom_out"))}_initEvents(){V.addListener(this._el.button_forwardtoend,"click",this._onButtonForwardToEnd,this),V.addListener(this._el.button_backtostart,"click",this._onButtonBackToStart,this),V.addListener(this._el.button_zoomin,"click",this._onButtonZoomIn,this),V.addListener(this._el.button_zoomout,"click",this._onButtonZoomOut,this)}_updateDisplay(t,e,a){t&&(this.options.width=t),e&&(this.options.height=e)}_updateZoomAriaLabels(){0==Object.keys(this.data.visible_ticks_dates).length?(this._el.button_zoomin.setAttribute("aria-description",""),this._el.button_zoomout.setAttribute("aria-description","")):(this._el.button_zoomin.setAttribute("aria-description",this._("aria_label_zoomin",this.data.visible_ticks_dates)),this._el.button_zoomout.setAttribute("aria-description",this._("aria_label_zoomout",this.data.visible_ticks_dates)))}}Mt(ta,Ut,K,oe);let Ji=null;if(document){let i=document.getElementsByTagName("script");i&&i.length>0&&(Ji=i[i.length-1].src)}class ea{constructor(t,e,a){if(a||(a={}),this.ready=!1,this._el={container:$(t),storyslider:{},timenav:{},menubar:{}},a.lang&&!a.language&&(a.language=a.lang),this.language=di,this._storyslider={},this._timenav={},this._menubar={},this._loaded={storyslider:!1,timenav:!1},this.config=null,this.options={script_path:"https://cdn.knightlab.com/libs/timeline3/latest/js/",height:this._el.container.offsetHeight,width:this._el.container.offsetWidth,debug:!1,font:"default",is_embed:!1,is_full_embed:!1,hash_bookmark:!1,default_bg_color:{r:255,g:255,b:255},scale_factor:2,layout:"landscape",timenav_position:"bottom",optimal_tick_width:60,base_class:"tl-timeline",timenav_height:null,timenav_height_percentage:25,timenav_mobile_height_percentage:40,timenav_height_min:175,marker_height_min:30,marker_width_min:100,marker_padding:5,start_at_slide:0,start_at_end:!1,menubar_height:0,skinny_size:650,medium_size:800,use_bc:!1,duration:1e3,ease:N,dragging:!0,trackResize:!0,map_type:"stamen:toner
1-lite",slide_padding_lr:100,slide_default_fade:"0%",zoom_sequence:[.5,1,2,3,5,8,13,21,34,55,89],language:"en",ga_measurement_id:null,ga_property_id:null,track_events:["back_to_start","nav_next","nav_previous","zoom_in","zoom_out"],theme:null,sheets_proxy:"https://sheets-proxy.knightlab.com/proxy/",soundcite:!1},this.animator_timenav=null,this.animator_storyslider=null,this.animator_menubar=null,this.message=new Se(this._el.container,{message_class:"tl-message-full"}),"string"==typeof a.default_bg_color){var s=Rt(a.default_bg_color);s?a.default_bg_color=s:(delete a.default_bg_color,J("Invalid default background color. Ignoring."))}var r,l;tt(this.options,a),this.options.script_path||(this.options.script_path=this.determineScriptPath()),a.soundcite&&this.on("ready",()=>{J("Loading Soundcite resources "),Ce("https://cdn.knightlab.com/libs/soundcite/latest/css/player.css"),ve("https://cdn.knightlab.com/libs/soundcite/latest/js/soundcite.min.js")}),this._loadStyles(),document.addEventListener("keydown",(r=this,function(d){if(r.config){var u=d.key,v=r._getSlideIndex(self.current_id),x=r.config.events.length-1,L=r.config.title?x+1:x;"ArrowLeft"==u?0!=v&&r.goToPrev():"ArrowRight"==u&&v!=L&&r.goToNext()}})),window.addEventListener("resize",function(d){this.updateDisplay()}.bind(this)),this.options.debug&&(l=console.log,X.push(l)),this._el.container.classList.add("tl-timeline"),this._el.container.setAttribute("tabindex","0"),this._el.container.setAttribute("role","region"),this._el.container.setAttribute("aria-label",this._("aria_label_timeline")),this.options.is_embed&&this._el.container.classList.add("tl-timeline-embed"),this.options.is_full_embed&&this._el.container.classList.add("tl-timeline-full-embed"),this._loadLanguage(e)}_loadStyles(){let t=null,e=null;if(this.options.font&&(0==this.options.font.indexOf("http")||this.options.font.match(/\.css$/)))t=this.options.font;else if(this.options.font){let a="../css/fonts/font."+this.options.font.toLowerCase()+".css";t=new URL(a,this.options.script_path).toString()}if(t&&Ce(t),this.options.theme&&(0==this.options.theme.indexOf("http")||this.options.theme.match(/\.css$/)))e=this.options.theme;else if(this.options.theme){let a="../css/themes/timeline.theme."+this.options.theme.toLowerCase()+".css";e=new URL(a,this.options.script_path).toString()}e&&Ce(e)}_loadLanguage(t){try{var e=this.options.language;(async function(s,r){var l=Ze(s,r);try{if(!de[s]){let d=await Fe(l);de[s]=d}return new vt(s,r)}catch(d){return console.log(`Error loading language [${l}] ${d.statusText}`),null}})(e,this.options.script_path).then(s=>{s?(this.language=s,this.message.setLanguage(this.language),this.showMessage(this._("loading_timeline"))):this.showMessage(`Error loading ${e}`),this._initData(t)})}catch(s){this.showMessage(this._translateError(s))}}_initData(t){"string"==typeof t?async function(e,a){let s=null,r={};if("function"==typeof a?s=a:"object"==typeof a&&(r=a,s=a.callback,"function"==typeof r.callback&&(s=r.callback)),!s)throw new Y("Second argument to makeConfig must be either a function or an object which includes a 'callback' property with a 'function' type value");var l,d;if(Ne(e)){try{d=await async function(v,x){if(!x.sheets_proxy)throw new Y("Proxy option must be set to read data from Google");var L=await async function Ai(i,t){let e=[];i=function(s){if((s=s.trim()).match(/^[a-zA-Z0-9-_]+$/))return`https://docs.google.com/spreadsheets/d/${s}/pub?output=csv`;if(s.startsWith("https://docs.google.com/spreadsheets/")){if(s.match(/\/pub\?output=csv$/))return s;
1let r=new URL(s),l=new URLSearchParams(r.search);l.set("output","csv"),l.get("gid")&&l.set("single","true"),r.search=`?${l.toString()}`;let d=r.pathname.substr(0,r.pathname.lastIndexOf("/"));return r.pathname=`${d}/pub`,r.toString()}throw new Y("invalid_url_err",s)}(i),await async function(s){return new Promise((r,l)=>{if(s.data){var d=Ye(Ve(s.data,s),s);d.useMemoryStore=!0,r(d)}else s.url&&window.fetch(s.url,{mode:"cors"}).then(function(u){if(200==u.status)return u.text?u.text():u;"application/json"==u.headers.get("content-type")?u.text().then(v=>{l(JSON.parse(v))}):l({status_code:u.status,message:`Error fetching CSV: [${u.status} ${u.statusText}]`})}).then(function(u){if(u){var v=function(x,L){let U=Ye(Ve(x,L)),H=[];return U.records.forEach(Q=>{let lt={};U.fields.forEach((ht,et)=>lt[ht]=Q[et]),H.push(lt)}),H}(u,s);v.useMemoryStore=!0,r(v)}}).catch(u=>{l({status_code:500,message:`Error fetching CSV: ${u}`})})})}({url:`${t}${i}`}).then(s=>{e=s}).catch(s=>{if("response_not_csv"==s.proxy_err_code)throw new Y("Timeline could not read the data for your timeline. Make sure you have published it to the web.");let r="undefined error";throw r=Array.isArray(s.message)?s.message.join("<br>"):String(s.message),new Y(r)});let a={events:[],errors:[],warnings:[],eras:[]};return e.forEach((s,r)=>{try{if(!function(l){var d=[];if(Object.keys)d=Object.keys(l);else for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&d.push(u);for(var v=0;v<d.length;v++){var x=d[v];if(null!=l[x]&&"string"!=typeof l[x]||0!=zt(l[x]).length)return!1}return!0}(s)){let l=function(d){let u={};Object.keys(d).forEach(L=>{u[L]=zt(d[L])});var v,x={media:{caption:u["Media Caption"]||"",credit:u["Media Credit"]||"",url:u.Media||"",thumbnail:u["Media Thumbnail"]||""},text:{headline:u.Headline||"",text:u.Text||""},display_date:u["Display Date"]||"",group:u.Group||u.Tag||"",background:(v=u.Background,"string"!=typeof v?"":v.match(/^(https?:)?\/\/?/)?{url:v}:{color:v}),type:u.Type||""};if(Object.keys(u).includes("Start Date")||Object.keys(u).includes("End Date"))u["Start Date"]&&(x.start_date=$e(u["Start Date"])),u["End Date"]&&(x.end_date=$e(u["End Date"]));else{if(u.Year&&(x.start_date={year:Jt(u.Year),month:Jt(u.Month)||"",day:Jt(u.Day)||""}),u["End Year"]&&(x.end_date={year:Jt(u["End Year"])||"",month:Jt(u["End Month"])||"",day:Jt(u["End Day"])||""}),u.Time){if(!x.start_date)throw new Y("invalid_start_time_without_date");tt(x.start_date,Et(u.Time))}if(u["End Time"]){if(!x.end_date)throw new Y("invalid_end_time_without_date");tt(x.end_date,Et(u["End Time"]))}if(x.start_date&&!Lt(x.start_date))throw new Y("invalid_date_err");if(x.end_date&&!Lt(x.end_date))throw new Y("invalid_date_err")}return x}(s);u=a,v="event",void 0!==(d=l).type&&(v=d.type,delete d.type),"title"==v?u.title?(u.warnings.push("Multiple title slides detected."),u.events.push(d)):u.title=d:"era"==v?u.eras.push(d):u.events.push(d)}}catch(l){l.constructor==Y?a.errors.push(l):(l.message&&(l=l.message),a.errors.push(l+`[${s.Headline||r}]`))}var d,u,v}),a}(v,x.sheets_proxy);if(L)return L}(e,r)}catch(v){return(l=new Vt).logError("NetworkError"==v.name?new Y("network_err"):"TLError"==v.name?v:new Y("unknown_read_err",v.name)),void s(l)}if(l=new Vt(d),d.errors)for(var u=0;u<d.errors.length;u++)l.logError(d.errors[u]);s(l)}else we({url:e,dataType:"json",success:function(v){try{l=new Vt(v)}catch(x){(l=new Vt).logError(x)}s(l)},error:function(v,x,L){l=new Vt,L="parsererror"==x?new Y("invalid_url_err"):new Y("unknown_read_err",x),l.logError(L),s(l)}})}(t,{callback:function(e){this.setConfig(e)}.bind(this),sheets_proxy:this.options.sheets_proxy}):this.setConfig(Vt==t.constructor?t:new Vt(t))}_translateError(t){return t.hasOwnProperty("stack")&&J(t.stack),t.message_key?this._(t.message_key)+(t.detail?" ["+t.detail+"]":""):t}showMessage(t){this.message?this.message.updateMessage(t):(J("No message display available."),J(t))}determineScriptPath(){let t=null;if(Ji)t=Ji;else{let e=document.getElementById("timeline-script-tag");e&&(t=e.src)}if(!t){let e=document.getElementsByTagName("script");for(let a=e.length-1;a>=0;a--)if(e[a].src){t=e[a].src;break}}return t?t.substr(0,t.lastIndexOf("/")+1):""}setConfig(t){if(this.config=t,this.config.isValid()&&(this.config.validate(),this._val
1idateOptions()),this.config.isValid())try{"loading"===document.readyState?document.addEventListener("DOMContentLoaded",this._onDataLoaded.bind(this)):this._onDataLoaded()}catch(r){this.showMessage("<strong>"+this._("error")+":</strong> "+this._translateError(r))}else{for(var e=[],a=0,s=this.config.getErrors();a<s.length;a++)e.push(this._translateError(s[a]));this.showMessage("<strong>"+this._("error")+":</strong> "+e.join("<br>"))}}_onDataLoaded(){this.fire("dataloaded"),this._initLayout(),this._initEvents(),this._initAnalytics(),this.message&&this.message.hide(),new IntersectionObserver(((t,e)=>{t.reduce((a,s)=>a||s.isIntersecting,!1)&&this.updateDisplay()}).bind(this)).observe(this._el.container),this.ready=!0,this.fire("ready")}_initLayout(){this.message.removeFrom(this._el.container),this._el.container.innerHTML="","top"==this.options.timenav_position?(this._el.timenav=b("div","tl-timenav",this._el.container),this._el.menubar=b("div","tl-menubar",this._el.container),this._el.storyslider=b("div","tl-storyslider",this._el.container)):(this._el.storyslider=b("div","tl-storyslider",this._el.container),this._el.timenav=b("div","tl-timenav",this._el.container),this._el.menubar=b("div","tl-menubar",this._el.container)),this._el.attribution=b("div","tl-attribution",this._el.container),this._el.attribution.innerHTML="<a href='https://timeline.knightlab.com' target='_blank' rel='noopener'><span class='tl-knightlab-logo'></span>TimelineJS</a>",this.options.width=this._el.container.offsetWidth,this.options.height=this._el.container.offsetHeight,this.options.timenav_height=this._calculateTimeNavHeight(this.options.timenav_height),this._timenav=new Yi(this._el.timenav,this.config,this.options,this.language),this._timenav.on("loaded",this._onTimeNavLoaded,this),this._timenav.options.height=this.options.timenav_height,this._timenav.init(),this.options.initial_zoom&&this.setZoom(this.options.initial_zoom),this._storyslider=new Qi(this._el.storyslider,this.config,this.options,this.language),this._el.storyslider.setAttribute("role","group"),this._el.storyslider.setAttribute("aria-label",this._("aria_label_timeline_content")),this._storyslider.on("loaded",this._onStorySliderLoaded,this),this._storyslider.init(),this._menubar=new ta(this._el.menubar,this._el.container,this.options,this.getLanguage()),this.options.storyslider_height="portrait"==this.options.layout?this.options.height-this.options.timenav_height-1:this.options.height-1,this._updateDisplay(this._timenav.options.height,!0,2e3)}_initEvents(){this._timenav.on("change",this._onTimeNavChange,this),this._timenav.on("zoomtoggle",this._onZoomToggle,this),this._timenav.on("visible_ticks_change",this._onVisibleTicksChange,this),this._storyslider.on("change",this._onSlideChange,this),this._storyslider.on("colorchange",this._onColorChange,this),this._storyslider.on("nav_next",this._onStorySliderNext,this),this._storyslider.on("nav_previous",this._onStorySliderPrevious,this),this._menubar.on("zoom_in",this._onZoomIn,this),this._menubar.on("zoom_out",this._onZoomOut,this),this._menubar.on("forward_to_end",this._onForwardToEnd,this),this._menubar.on("back_to_start",this._onBackToStart,this)}_onColorChange(t){this.fire("color_change",{unique_id:this.current_id},this)}_onSlideChange(t){this.current_id!=t.unique_id&&(this.current_id=t.unique_id,this._timenav.goToId(this.current_id),this._onChange(t))}_onTimeNavChange(t){this.current_id!=t.unique_id&&(this.current_id=t.unique_id,this._storyslider.goToId(this.current_id),this._onChange(t))}_onZoomToggle(t){"in"==t.zoom?this._menubar.toogleZoomIn(t.show):"out"==t.zoom&&this._menubar.toogleZoomOut(t.show)}_onChange(t){this.fire("change",{unique_id:this.current_id},this),this.options.hash_bookmark&&this.current_id&&this._updateHashBookmark(this.current_id)}_onVisibleTicksChange(t){this._menubar.changeVisibleTicks(t.visible_ticks)}_onForwardToEnd(t){this.goToEnd(),this.fire("forward_to_end",{unique_id:this.current_id},this)}_onBackToStart(t){this.goToStart(),this.fire("back_to_start",{unique_id:this.current_id},this)}_onZoomIn(t){this._timenav.zoomIn(),this.fire("zoom_in",{zoom_level:this._timenav.options.scale_factor},this)}_onZoomOut(t){this._timenav.zoomOut(),this.fire("zoom_out",{zoom_level:this._timenav.options.scale_factor},this)}_onTimeNavLoaded(){this._loaded.timenav=!0,this._onLoaded()}_onStorySliderLoaded(){this._loaded.storyslider=!0,this._onLoaded()}_onStorySliderNext(t){this.fire("nav_next",t)}_onStorySliderPrevious(t){this.fire("nav_previous",t)}_updateDisplay(t,e,a){var s,r,l=this.options.duration,d=this.options.base_class;a&&(l=a),this.options.width=this._el.container.offsetWidth,this.options.height=this._el.container.offsetHeight,this.options.width<=this.options.skinny_size?(d+=" tl-skinny",this.options.layout="portrait"):this.options.width<=this.options.medium_size?(d+=" tl-medium",this.options.layout="landscape"):this.options.layout="landscape",F&&(this.options.layout=(s="portrait",window.innerWidth>window.innerHeight&&(s="landscape"),Math.abs(window.orientation),s)),it?(d+=" tl-mobile",this.options.timenav_height=this._calculateTimeNavHeight(t,this.options.timenav_mobile_height_percentage)):this.options.timenav_height=this._calculateTimeNavHeight(t),d+="portrait"==this.options.layout?" tl-layout-portrait":" tl-layout-landscape",this.options.storyslider_height=this.options.height-this.options.timenav_height,r="top"==this.options.timenav_position?Math.ceil(this.options.timenav_height)/2-this._el.menubar.offsetHeight/2-19.5:Math.round(this.options.storyslider_height+1+Math.ceil(this.options.timenav_height)/2-this._el.menubar.offsetHeight/2-17.5),e?(this._el.timenav.style.height=Math.ceil(this.options.timenav_height)+"px",this.animator_storyslider&&this.animator_storyslider.stop(),this.animator_storyslider=Pt(this._el.storyslider,{height:this.options.storyslider_height+"px",duration:l/2,easing:R}
1),this.animator_menubar&&this.animator_menubar.stop(),this.animator_menubar=Pt(this._el.menubar,{top:r+"px",duration:l/2,easing:R})):(this._el.timenav.style.height=Math.ceil(this.options.timenav_height)+"px",this._el.storyslider.style.height=this.options.storyslider_height+"px",this._el.menubar.style.top=r+"px"),this.message&&this.message.updateDisplay(this.options.width,this.options.height),this._timenav.updateDisplay(this.options.width,this.options.timenav_height,e),this._storyslider.updateDisplay(this.options.width,this.options.storyslider_height,e,this.options.layout),"rtl"==this.language.direction&&(d+=" tl-rtl"),this._el.container.className=d}_calculateTimeNavHeight(t,e){var a=0;return t?a=t:(this.options.timenav_height_percentage||e)&&(a=Math.round(e?this.options.height/100*e:this.options.height/100*this.options.timenav_height_percentage)),this._timenav.ready&&this.options.timenav_height_min<this._timenav.getMinimumHeight()&&(this.options.timenav_height_min=this._timenav.getMinimumHeight()),a<this.options.timenav_height_min&&(a=this.options.timenav_height_min),a-2*this.options.marker_padding}_validateOptions(){for(var t=["timenav_height","timenav_height_min","marker_height_min","marker_width_min","marker_padding","start_at_slide","slide_padding_lr"],e=0;e<t.length;e++){var a=t[e],s=this.options[a];let r=!0;"number"==typeof s?r=s==parseInt(s):"string"==typeof s&&(r=s.match(/^\s*(\-?\d+)?\s*$/)),r||this.config.logError({message_key:"invalid_integer_option",detail:a})}}_getSlideIndex(t){if(this.config){if(this.config.title&&this.config.title.unique_id==t)return 0;for(var e=0;e<this.config.events.length;e++)if(t==this.config.events[e].unique_id)return this.config.title?e+1:e}return-1}_getEventIndex(t){for(var e=0;e<this.config.events.length;e++)if(t==this.config.events[e].unique_id)return e;return-1}_onLoaded(){if(this._loaded.storyslider&&this._loaded.timenav&&(this.fire("loaded",this.config),null!=(t=this.options.start_at_end)&&(1==t||"true"==String(t).toLowerCase()||1==Number(t))||this.options.start_at_slide>this.config.events.length?this.goToEnd():this.goTo(this.options.start_at_slide),this.options.hash_bookmark)){""!=window.location.hash?this.goToId(window.location.hash.replace("#event-","")):this._updateHashBookmark(this.current_id);let e=this;window.addEventListener("hashchange",function(){0==window.location.hash.indexOf("#event-")&&e.goToId(window.location.hash.replace("#event-",""))},!1)}var t}_updateHashBookmark(t){if(t){var e="#event-"+t.toString();window.history.replaceState(null,"Browsing TimelineJS",e),this.fire("hash_updated",{unique_id:this.current_id,hashbookmark:"#event-"+t.toString()},this)}}zoomIn(){this._timenav.zoomIn()}zoomOut(){this._timenav.zoomOut()}setZoom(t){this._timenav.setZoom(t)}goToId(t){this.current_id!=t&&(this.current_id=t,this._timenav.goToId(this.current_id),this._storyslider.goToId(this.current_id,!1,!0),this.fire("change",{unique_id:this.current_id},this))}goTo(t){if(!(t<0))try{this.goToId(this.config.title?0===t?this.config.title.unique_id:this.config.events[t-1].unique_id:this.config.events[t].unique_id)}catch{return}}goToStart(){this.goTo(0)}goToEnd(){var t=this.config.events.length-1;this.goTo(this.config.title?t+1:t)}goToPrev(){this.goTo(this._getSlideIndex(this.current_id)-1),this.focusContainer()}goToNext(){this.goTo(this._getSlideIndex(this.current_id)+1),this.focusContainer()}add(t){var e=this.config.addEvent(t),a=this._getEventIndex(e),s=this.config.events[a];this._storyslider.createSlide(s,this.config.title?a+1:a),this._storyslider._updateDrawSlides(),this._timenav.createMarker(s,a),this._timenav._updateDrawTimeline(!1),this.fire("added",{unique_id:e})}remove(t){if(t>=0&&t<this.config.events.length){this.config.events[t].unique_id==this.current_id&&this.goTo(t<this.config.events.length-1?t+1:t-1);var e=this.config.events.splice(t,1);delete this.config.event_dict[e[0].unique_id],this._storyslider.destroySlide(this.config.title?t+1:t),this._storyslider._updateDrawSlides(),this._timenav.destroyMarker(t),this._timenav._updateDrawTimeline(!1),this.fire("removed",{unique_id:e[0].unique_id})}}removeId(t){this.remove(this._getEventIndex(t))}getData(t){if(this.config.title){if(0==t)return this.config.title;if(t>0&&t<=this.config.events.length)return this.config.events[t-1]}else if(t>=0&&t<this.config.events.length)return this.config.events[t];return null}getDataById(t){return this.getData(this._getSlideIndex(t))}getSlide(t){return t>=0&&t<this._storyslider._slides.length?this._storyslider._slides[t]:null}
1getSlideById(t){return this.getSlide(this._getSlideIndex(t))}getCurrentSlide(){return this.getSlideById(this.current_id)}updateDisplay(){this.ready?this._updateDisplay():J("updateDisplay called but timeline is not in ready state")}focusContainer(){this._el.container.focus()}_initGoogleAnalytics(t){ve(`https://www.googletagmanager.com/gtag/js?id=${t}`),window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)},gtag("js",new Date),gtag("config",t)}_initAnalytics(){let t=this.options.ga_measurement_id||this.options.ga_property_id||null;if(t){this._initGoogleAnalytics(t);var e=this.options.track_events;for(let s=0;s<e.length;s++)this.addEventListener(e[s],function(r){gtag("event",r.type)})}}}Mt(ea,oe,K)})(),TL=qi})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.